Socket
Socket
Sign inDemoInstall

@microsoft/applicationinsights-core-js

Package Overview
Dependencies
Maintainers
2
Versions
561
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-core-js - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

4

browser/applicationinsights-core-js.min.js
/*!
* Application Insights JavaScript SDK - Core, 2.6.1
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,n){"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||{}))}(this,function(c){"use strict";var a="function",u="object",n="undefined",o="prototype",s="hasOwnProperty";function e(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function i(e){var n=Object.create;if(n)return n(e);if(null==e)return{};if((n=typeof e)!=u&&n!==a)throw new TypeError("Object prototype may only be an Object:"+e);function t(){}return t[o]=e,new t}var r=function(e,n){return(r=Object.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)},t=e()||{},l=function(e,n){function t(){this.constructor=e}r(e,n),e[o]=null===n?i(n):(t[o]=n[o],new t)};(Ln=t).__assign||(Ln.__assign=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object[o][s].call(n,i)&&(e[i]=n[i]);return e}),Ln.__extends||(Ln.__extends=l),__assign=__assign||t.__assign,__extends=__extends||t.__extends;var f={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},g="constructor",v="prototype",p="function",h="_dynInstFuncs",y="_isDynProxy",m="_dynClass",C="_dynCls$",x="_dynInstChk",w=x,T="_dfOpts",d="_unknown_",I="__proto__",b="useBaseInst",S="setInstFuncs",N=Object,E=N.getPrototypeOf,_=0;function P(e,n){return e&&N[v].hasOwnProperty.call(e,n)}function M(e){return e&&(e===N[v]||e===Array[v])}function k(e){return M(e)||e===Function[v]}function L(e){if(e){if(E)return E(e);if(e=e[I]||e[v]||e[g])return e}return null}function A(e,n){var t=[],r=N.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&P(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function F(e,n,t){return n!==g&&typeof e[n]===p&&(t||P(e,n))}function O(e){throw new TypeError("DynamicProto: "+e)}function R(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function j(e,n){return P(e,v)?e.name||n||d:((e||{})[g]||{}).name||n||d}function D(e,t,n,r){P(e,v)||O("theClass is an invalid class definition.");var i=e[v];!function(e){for(var n=L(t);n&&!k(n);){if(n===e)return 1;n=L(n)}}(i)&&O("["+j(e)+"] is not in class hierarchy of ["+j(t)+"]");var o=null;P(i,m)?o=i[m]:(o=C+j(e,"_")+"$"+_,_++,i[m]=o);var a,u,s,c,l,f,g=D[T],d=!!g[b];d&&r&&r[b]!==undefined&&(d=!!r[b]),n(t,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[y]&&o&&!1!==(r=e[h]||{})[w]&&(i=(r[n[m]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};A(t,function(e){i[e]=r(n,t,e)});for(var a=L(e),u=[];a&&!k(a)&&!R(u,a);)A(a,function(e){!i[e]&&F(a,e,!E)&&(i[e]=r(n,a,e))}),u.push(a),a=L(a);return i}(i,t,(u={},A(a=t,function(e){!u[e]&&F(a,e,!1)&&(u[e]=a[e])}),e=u),d)),s=i,o=o,c=t,l=e,r=!1!==(g=(g=!!E&&!!g[S])&&r?!!r[S]:g),M(s)||(g=c[h]=c[h]||{},f=g[o]=g[o]||{},!1!==g[w]&&(g[w]=!!r),A(c,function(e){var t,r,i;F(c,e,!1)&&c[e]!==l[e]&&(f[e]=c[e],delete c[e],P(s,e)&&(!s[e]||s[e][y])||(s[e]=(t=s,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&P(t,m)){var o=e[h]||{};if((i=(o[t[m]]||{})[n])||O("Missing ["+n+"] "+p),!i[x]&&!1!==o[w]){for(var a=!P(e,n),u=L(e),s=[];a&&u&&!k(u)&&!R(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=L(u)}try{a&&(e[n]=i),i[x]=1}catch(l){o[w]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?L(t)[e]:n)!==p&&O("["+e+"] is not a "+p),n)).apply(this,arguments)})[y]=1,i)))}))}D[T]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(mt=c.LoggingSeverity||(c.LoggingSeverity={}))[mt.CRITICAL=1]="CRITICAL",mt[mt.WARNING=2]="WARNING";var U={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},z="on",K="attachEvent",B="addEventListener",V="detachEvent",W="removeEventListener",G=Object,q=G[o],H=q.hasOwnProperty,J=G.defineProperty,Q=G.assign,$=G.freeze,X=G.seal;function Z(e){return q.toString.call(e)}function Y(e,n){return typeof e===n}function ee(e){return e===undefined||typeof e===n}function ne(e){return null===e||ee(e)}function te(e){return!ne(e)}function re(e,n){return e&&H.call(e,n)}function ie(e){return typeof e==u}function oe(e){return typeof e===a}function ae(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!ne(e))try{ne(e[B])?ne(e[K])||(e[K](z+n,t),i=!0):(e[B](n,t,r),i=!0)}catch(o){}return i}function ue(e,n,t,r){if(void 0===r&&(r=!1),!ne(e))try{ne(e[W])?ne(e[V])||e[V](z+n,t):e[W](n,t,r)}catch(i){}}function se(e,n){if(e)for(var t in e)H.call(e,t)&&n.call(e,t,e[t])}function ce(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function le(e,n){return!(!e||!n||!~e.indexOf(n))}function fe(e){return"[object Date]"===Z(e)}function ge(e){return"[object Array]"===Z(e)}function de(e){return"[object Error]"===Z(e)}function ve(e){return"string"==typeof e}function pe(e){return"number"==typeof e}function he(e){return"boolean"==typeof e}function ye(e){if(fe(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return 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"}}function me(e,n,t){for(var r=e.length,i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function Ce(e,n,t){for(var r=e.length,i=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i;return-1}function xe(e,n,t){for(var r=e.length,i=t||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e));return o}function we(e,n,t){var r,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}function Te(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),be=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Se(e){var n=typeof e;if(n!==a&&(n!=u||null===e))throw new TypeError("objKeys called on non-object");var t,r=[];for(t in e)e&&H.call(e,t)&&r.push(t);if(Ie)for(var i=be.length,o=0;o<i;o++)e&&H.call(e,be[o])&&r.push(be[o]);return r}function Ne(e,n,t,r){if(J)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),J(e,n,i),!0}catch(o){}return!1}function Ee(){var e=Date;return e.now?e.now():(new e).getTime()}function _e(e){return de(e)?e.name:""}function Pe(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 Me(e,n,t){var r;return e?!(r=e[n])&&ne(r)&&(r=ee(t)?{}:t,e[n]=r):r=ee(t)?{}:t,r}function ke(e){return!e}function Le(e){return!!e}function Ae(e){throw Error(e)}var Fe=n,Oe=u,Re=o,je=a,De="window",Ue="document",ze="navigator",Ke="location",Be="performance",Ve="JSON",We="crypto",Ge="msCrypto",qe="msie",He="trident/",Je=null,Qe=null,$e=!1,Xe=e;function Ze(e){var n=Xe();return n&&n[e]?n[e]:e===De&&Ye()?window:null}function Ye(){return!(typeof window!==Oe||!window)}function en(){return Ye()?window:Ze(De)}function nn(){return!(typeof document!==Oe||!document)}function tn(){return nn()?document:Ze(Ue)}function rn(){return!(typeof navigator!==Oe||!navigator)}function on(){return rn()?navigator:Ze(ze)}function an(){return!(typeof history!==Oe||!history)}function un(e){return e&&$e&&(e=Ze("__mockLocation"))?e:typeof location===Oe&&location?location:Ze(Ke)}function sn(){return typeof console!==Fe?console:Ze("console")}function cn(){return Ze(Be)}function ln(){return!!(typeof JSON===Oe&&JSON||null!==Ze(Ve))}function fn(){return ln()?JSON||Ze(Ve):null}function gn(){return Ze(We)}function dn(){return Ze(Ge)}function vn(){var e=on();return!e||e.userAgent===Qe&&null!==Je||(e=((Qe=e.userAgent)||"").toLowerCase(),Je=le(e,qe)||le(e,He)),Je}function pn(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var yn=(mn.dataType="MessageData",mn);function mn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+hn(n):"")+(r?" props:"+hn(e):""),this.message+=e}function Cn(e,n){return(e||{}).logger||new xn(n)}var xn=function Yt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};D(Yt,this,function(o){function e(e,n){return ne(e=t[e])?n:e}ne(t)&&(t={}),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){if(t=new yn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;ee(t)||!t||ee(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=sn();t&&(n="log",oe(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new yn(U.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},wn="ctx",Tn=(In.ParentContextKey="parent",In.ChildrenContextKey="childEvts",In);function In(e,i,n){var t,o=this,a=!1;o.start=Ee(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},oe(i)&&(a=Ne(o,"payload",function(){return!t&&oe(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===In.ParentContextKey||e===In.ChildrenContextKey?o:o[wn]||{})[e]:null},o.setCtx=function(e,n){e&&(e===In.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===In.ChildrenContextKey?o[e]=n:(o[wn]=o[wn]||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(In.ChildrenContextKey);if(ge(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ee()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&oe(i)&&(o.payload=i())}}var bn=function er(n){this.ctx={},D(er,this,function(t){t.create=function(e,n,t){return new Tn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t[wn]=t[wn]||{})[e]=n)},t.getCtx=function(e){return(t[wn]||{})[e]}})},Sn="CoreUtils.doPerf";function Nn(e,n,t,r,i){if(e){var o=e;if(o=o&&oe(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Sn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Tn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Tn.ChildrenContextKey))||(a=[],e.setCtx(Tn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Sn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Sn,e)}}}return t()}var En=function(i,n){var o=this,a=null,u=oe(i.processTelemetry),s=oe(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){var e=i?i.identifier:"TelemetryPluginChain";Nn((r=r||n)?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,U.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function _n(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&oe(o.processTelemetry)&&(o=new En(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Pn=function nr(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&oe(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),_n(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],me(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=_n(a,r)):ee(n)&&(c=_n(e,s))),s.core=function(){return t},s.diagLog=function(){return Cn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!ne(e[n])?r=e[n]:i&&!ne(i[n])&&(r=i[n]),ne(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new nr((e=void 0===e?null:e)||c,i,t,n)}},Mn="extensionConfig",kn="getPlugin",Ln=(An.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},An);function An(){var o=this,a=!1,u=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&oe(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Pn(null,{},o.core),n=s&&s[kn]?e.createNew(null,s[kn]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&Pe(e,Mn,[],null,ne),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[kn]&&(i=s[kn]()),o.core=n,u=new Pn(r,e,n,i),a=!0}}var Fn="processTelemetry",On="priority",Rn="setNextPlugin",jn="isInitialized";function Dn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&oe(r[Rn])&&oe(o[Fn])&&r[Rn](o),oe(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}me(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Un(e){return e.sort(function(e,n){var t=0,r=oe(n[Fn]);return oe(e[Fn])?t=r?e[On]-n[On]:1:r&&(t=-1),t})}var zn,Kn=500,Bn="Channel has invalid priority",Vn=(zn=Ln,__extends(Wn,zn),Wn._staticInit=(Ne(l=Wn.prototype,"ChannelControls",l.getChannelControls),void Ne(l,"channelQueue",l.getChannelControls)),Wn);function Wn(){var s,r=zn.call(this)||this;function c(e){e&&0<e.length&&(me(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<Kn&&Ae(Bn+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=Kn,D(Wn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&me(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&me(e,c),i&&(o=[],me(i,function(e){e.priority>Kn&&o.push(e)}),c(o)),me(s,function(e){return Dn(new Pn(e,n,t),r)}))}}),r}var Gn="toGMTString",qn="toUTCString",Hn="cookie",Jn="expires",Qn="enabled",$n="isCookieUseDisabled",Xn="disableCookiesUsage",Zn="_ckMgr",Yn="",et=null,nt=null,tt=null,rt=tn(),it={},ot={};function at(e,n){var t=st[Zn]||ot[Zn];return t||(t=st[Zn]=st(e,n),ot[Zn]=t),t}function ut(e){return!e||e.isEnabled()}function st(e,r){var n,t,s=(Pe(t=(n=e||ot).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,te,ne),Pe(t,"path",n.cookiePath||"/",null,ne),ne(t[Qn])&&(e=void 0,ee(n[$n])||(e=!n[$n]),ee(n[Xn])||(e=!n[Xn]),t[Qn]=e),t),c=s.path||"/",l=s.domain,i=!1!==s[Qn],f={isEnabled:function(){var e=i&&ct(r),n=ot[Zn];return e&&n&&f!==n?ut(n):e},setEnabled:function(e){i=!1!==e},set:function(e,n,t,r,i){var o,a,u;ut(f)&&(o={},-1!=(u=(a=Te(n||Yn)).indexOf(";"))&&(a=Te(n.substring(0,u)),o=lt(n.substring(1+u))),Pe(o,"domain",r||l,Le,ee),ne(t)||(n=vn(),!ee(o[Jn])||0<(u=Ee()+1e3*t)&&((r=new Date).setTime(u),Pe(o,Jn,ft(r,n?Gn:qn)||ft(r,n?Gn:qn)||Yn,Le)),n||Pe(o,"max-age",Yn+t,null,ee)),(t=un())&&"https:"===t.protocol&&(Pe(o,"secure",null,null,ee),(nt=null===nt?!vt((on()||{}).userAgent):nt)&&Pe(o,"SameSite","None",null,ee)),Pe(o,"path",i||c,null,ee),(s.setCookie||dt)(e,gt(a,o)))},get:function(e){var n=Yn;return ut(f)?(s.getCookie||function(e){var n,t=Yn;return rt&&(n=rt[Hn]||Yn,tt!==n&&(it=lt(n),tt=n),t=Te(it[e]||Yn)),t})(e):n},del:function(e,n){ut(f)&&f.purge(e,n)},purge:function(e,n){var t;ct(r)&&((t={}).path=n||"/",t[Jn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(s.delCookie||dt)(e,gt(Yn,t)))}};return f[Zn]=f}function ct(e){if(null===et){et=!1;try{et=(rt||{})[Hn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,U.CannotAccessCookie,"Cannot access document.cookie - "+_e(n),{exception:pn(n)})}}return et}function lt(e){var t={};return e&&e.length&&me(Te(e).split(";"),function(e){var n;(e=Te(e||Yn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Te(e.substring(0,n))]=Te(e.substring(1+n)))}),t}function ft(e,n){return oe(e[n])?e[n]():null}function gt(e,n){var t=e||Yn;return se(n,function(e,n){t+="; "+e+(ne(n)?Yn:"="+n)}),t}function dt(e,n){rt&&(rt[Hn]=e+"="+n)}function vt(e){return!(!ve(e)||!le(e,"CPU iPhone OS 12")&&!le(e,"iPad; CPU OS 12")&&!(le(e,"Macintosh; Intel Mac OS X 10_14")&&le(e,"Version/")&&le(e,"Safari"))&&(!le(e,"Macintosh; Intel Mac OS X 10_14")||!ce(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!le(e,"Chrome/5")&&!le(e,"Chrome/6")&&(!le(e,"UnrealEngine")||le(e,"Chrome"))&&!le(e,"UCBrowser/12")&&!le(e,"UCBrowser/11"))}var pt,ht="_notificationManager",yt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;D(tr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Ce(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Ce(i.listeners,e)},i.eventsSent=function(n){me(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){me(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){me(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||me(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},mt=(pt=t=function rr(){var n,u,s,t,r,c=!1;D(rr,this,function(a){a._extensions=[],u=new Vn,a.logger=i({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Ae("Core should not be initialized more than once"),e&&!ne(e.instrumentationKey)||Ae("Please provide instrumentation key"),s=t,a[ht]=t,a.config=e||{},e.extensions=ne(e.extensions)?[]:e.extensions,Me(e,Mn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,n.concat(e.extensions));var t=Un(t),i=[],o={};me(t,function(e){(ne(e)||ne(e.initialize))&&Ae("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(ne(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Un(t),a._extensions=t,Dn(new Pn([u],e,a),t),Dn(new Pn(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Ae("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Pe(e,"iKey",a.config.instrumentationKey,null,ke),Pe(e,"time",ye(new Date),null,ke),Pe(e,"ver","4.0",null,ne),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Pn(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=i({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[ht]=s),s},a.getCookieMgr=function(){return r=r||st(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&(t=new bn(a.getNotifyMgr())),t},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(me(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},__extends(Ct,pt),Ct);function Ct(){var e=pt.call(this)||this;return D(Ct,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],f.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new xn(e),r||new yt(e))},t.track=function(e){Nn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Ae("Invalid telemetry item")),function(){if(ne(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];me(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:ye(new Date),baseType:yn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var xt=4294967296,wt=4294967295,Tt=!1,It=123456789,bt=987654321;function St(e){e<0&&(e>>>=0),It=123456789+e&wt,bt=987654321-e&wt,Tt=!0}function Nt(){try{var e=2147483647&Ee();St((Math.random()*xt^e)+e)}catch(n){}}function Et(e){return 0<e?Math.floor(_t()/wt*(e+1))>>>0:0}function _t(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&wt:vn()?(Tt||Nt(),Mt()&wt):Math.floor(xt*Math.random()|0);return e||(n>>>=0),n}function Pt(e){e?St(e):Nt()}function Mt(e){var n=((bt=36969*(65535&bt)+(bt>>16)&wt)<<16)+(65535&(It=18e3*(65535&It)+(It>>16)&wt))>>>0&wt|0;return e||(n>>>=0),n}var kt,Lt=null,l=n;function At(e,n){var t=!1,r=en();return r&&(t=ae(r,e,n),t=ae(r.body,e,n)||t),(r=tn())&&zt.Attach(r,e,n)||t}function Ft(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ut,function(e){var n=0|Et(15);return("x"===e?n:3&n|8).toString(16)})}function Ot(){var e=cn();return e&&e.now?e.now():Ee()}function Rt(e){void 0===e&&(e=22);for(var n=_t()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(_t()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=_t())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&_t())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Dt={_canUseCookies:undefined,isTypeof:Y,isUndefined:ee,isNullOrUndefined:ne,hasOwnProperty:re,isFunction:oe,isObject:ie,isDate:fe,isArray:ge,isError:de,isString:ve,isNumber:pe,isBoolean:he,toISOString:ye,arrForEach:me,arrIndexOf:Ce,arrMap:xe,arrReduce:we,strTrim:Te,objCreate:i,objKeys:Se,objDefineAccessors:Ne,addEventHandler:At,dateNow:Ee,isIE:vn,disableCookies:Bt,newGuid:Ft,perfNow:Ot,newId:Rt,randomValue:Et,random32:_t,mwcRandomSeed:Pt,mwcRandom32:Mt,generateW3CId:jt},Ut=/[xy]/g,zt={Attach:ae,AttachEvent:ae,Detach:ue,DetachEvent:ue};function Kt(e,n){return e=at(e,n),n=Dt._canUseCookies,null===Lt&&(Lt=[],kt=n,Ne(Dt,"_canUseCookies",function(){return kt},function(n){kt=n,me(Lt,function(e){e.setEnabled(n)})})),-1===Ce(Lt,e)&&Lt.push(e),he(n)&&e.setEnabled(n),he(kt)&&e.setEnabled(kt),e}function Bt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Wt=["req","rsp","hkErr","fnErr"],Gt="__proto__",qt="constructor";function Ht(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Jt(e,a,u,s,c){0<=c&&c<=2&&Ht(e,function(e,n){var t=e.cbks;if(e=t[Wt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Wt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Qt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Ht(e,function(e){n.push(e)}),n}Jt(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Jt(e,r,i,n,3),u}return Jt(e,r,i,n,1),r.rslt}}var $t=Object.getPrototypeOf;function Xt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(re(e,n)?r=e:t&&(r=o(function(e){if(e){if($t)return $t(e);if(e=e[Gt]||e[Re]||e[qt])return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===je){var i=r[Vt];return i||((r=Qt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Ht(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function Zt(n,e,t,r){void 0===r&&(r=!0);var i=null;return Ht(e,function(e){(e=Xt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=mt,c.BaseCore=t,c.BaseTelemetryPlugin=Ln,c.CoreUtils=Dt,c.DiagnosticLogger=xn,c.EventHelper=zt,c.EventsDiscardedReason=f,c.InstrumentFunc=Xt,c.InstrumentFuncs=Zt,c.InstrumentProto=function(e,n,t){return e?Xt(e[Re],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?Zt(e[Re],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=yt,c.PerfEvent=Tn,c.PerfManager=bn,c.ProcessTelemetryContext=Pn,c.Undefined=l,c._InternalLogMessage=yn,c._InternalMessageId=U,c._legacyCookieMgr=Kt,c.addEventHandler=At,c.areCookiesSupported=ct,c.arrForEach=me,c.arrIndexOf=Ce,c.arrMap=xe,c.arrReduce=we,c.attachEvent=ae,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&se(e,function(e,n){t[e]=n})}},c.createCookieMgr=st,c.dateNow=Ee,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ue,c.disableCookies=Bt,c.doPerf=Nn,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=_e,c.getGlobal=Xe,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n=(e=void 0===e?null:e)?e.toLowerCase():"";return le(n=e?n:(e=on()||{})?(e.userAgent||"").toLowerCase():"",qe)?parseInt(n.split(qe)[1]):le(n,He)&&(n=parseInt(n.split(He)[1]))?n+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Me,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=re,c.hasWindow=Ye,c.initializePlugins=Dn,c.isArray=ge,c.isBoolean=he,c.isDate=fe,c.isError=de,c.isFunction=oe,c.isIE=vn,c.isNotNullOrUndefined=te,c.isNotTruthy=ke,c.isNotUndefined=function(e){return!ee(e)},c.isNullOrUndefined=ne,c.isNumber=pe,c.isObject=ie,c.isReactNative=function(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isString=ve,c.isTruthy=Le,c.isTypeof=Y,c.isUndefined=ee,c.mwcRandom32=Mt,c.mwcRandomSeed=Pt,c.newGuid=Ft,c.newId=Rt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=i,c.objDefineAccessors=Ne,c.objForEachKey=se,c.objFreeze=function(e){return $?$(e):e},c.objKeys=Se,c.objSeal=function(e){return X?X(e):e},c.optimizeObject=function(e){return e&&G(Q?Q({},e):e)},c.perfNow=Ot,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ie(r)&&ie(i))for(var e in i)!function(n){var e,t;ve(n)&&(oe(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(re(r,n)&&delete r[n],Ne(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=_t,c.randomValue=Et,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=(n||{}).cookieCfg[Zn]||st(n)),t||at(n,(e||{}).logger)},c.safeGetLogger=Cn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){$e=e},c.setValue=Pe,c.sortPlugins=Un,c.strContains=le,c.strEndsWith=ce,c.strExtensionConfig=Mn,c.strFunction=je,c.strIKey="iKey",c.strObject=Oe,c.strPrototype=Re,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Te,c.strUndefined=Fe,c.throwError=Ae,c.toISOString=ye,c.uaDisallowsSameSiteNone=vt,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
!function(e,n){"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||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",i="hasOwnProperty",t=Object,o=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=o[i];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}var m="constructor",C="prototype",x="function",T="_dynInstFuncs",w="_isDynProxy",I="_dynClass",S="_dynCls$",b="_dynInstChk",N=b,E="_dfOpts",P="_unknown_",M="__proto__",k="useBaseInst",L="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[C].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[C]||e===Array[C])}function j(e){return R(e)||e===Function[C]}function D(e){if(e){if(F)return F(e);if(e=e[M]||e[C]||(e[m]?e[m][C]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==m&&typeof e[n]===x&&(t||O(e,n))}function K(e){throw new TypeError("DynamicProto: "+e)}function B(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function V(e,n){return O(e,C)?e.name||n||P:((e||{})[m]||{}).name||n||P}function W(e,r,n,t){O(e,C)||K("theClass is an invalid class definition.");var i=e[C];!function(e){if(F)for(var n=[],t=D(r);t&&!j(t)&&!B(n,t);){if(t===e)return 1;n.push(t),t=D(t)}}(i)&&K("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;O(i,I)?o=i[I]:(o=S+V(e,"_")+"$"+_,_++,i[I]=o);var a,u,s,c,l,f,g=W[E],d=!!g[k];d&&t&&t[k]!==undefined&&(d=!!t[k]),n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[w]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[I]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var a=D(e),u=[];a&&!j(a)&&!B(u,a);)U(a,function(e){!i[e]&&z(a,e,!F)&&(i[e]=r(n,a,e))}),u.push(a),a=D(a);return i}(i,r,(u={},U(a=r,function(e){!u[e]&&z(a,e,!1)&&(u[e]=a[e])}),e=u),d)),s=i,o=o,c=r,l=e,t=!1!==(g=(g=!!F&&!!g[L])&&t?!!t[L]:g),R(s)||(g=c[T]=c[T]||{},f=g[o]=g[o]||{},!1!==g[N]&&(g[N]=!!t),U(c,function(e){var t,r,i;z(c,e,!1)&&c[e]!==l[e]&&(f[e]=c[e],delete c[e],O(s,e)&&(!s[e]||s[e][w])||(s[e]=(t=s,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,I)){var o=e[T]||{};if((i=(o[t[I]]||{})[n])||K("Missing ["+n+"] "+x),!i[b]&&!1!==o[N]){for(var a=!O(e,n),u=D(e),s=[];a&&u&&!j(u)&&!B(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=D(u)}try{a&&(e[n]=i),i[b]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?D(t)[e]:n)!==x&&K("["+e+"] is not a "+x),n)).apply(this,arguments)})[w]=1,i)))}))}W[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(vt=c.LoggingSeverity||(c.LoggingSeverity={}))[vt.CRITICAL=1]="CRITICAL",vt[vt.WARNING=2]="WARNING";var G={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},q="on",H="attachEvent",J="addEventListener",Q="detachEvent",$="removeEventListener",X=e,Z=t.freeze,Y=t.seal;function ee(e){return o.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ae(e){return typeof e===u}function ue(e){return typeof e===a}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](q+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[$])?re(e[Q])||e[Q](q+n,t):e[$](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function me(e){return"boolean"==typeof e}function Ce(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return 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"}}function xe(e,n,t){for(var r=e.length,i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function Te(e,n,t){for(var r=e.length,i=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i;return-1}function we(e,n,t){for(var r=e.length,i=t||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e));return o}function Ie(e,n,t){var r,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}function Se(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var be=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(be)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Pe(e,n,t,r){if(X)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),X(e,n,i),!0}catch(o){}return!1}function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function ke(e){return pe(e)?e.name:""}function Le(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 Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",je="document",De="navigator",Ue="location",ze="performance",Ke="JSON",Be="crypto",Ve="msCrypto",We="msie",Ge="trident/",qe=null,He=null,Je=!1;function Qe(e){var n=d();return n&&n[e]?n[e]:e===Re&&$e()?window:null}function $e(){return!(typeof window!==u||!window)}function Xe(){return $e()?window:Qe(Re)}function Ze(){return!(typeof document!==u||!document)}function Ye(){return Ze()?document:Qe(je)}function en(){return!(typeof navigator!==u||!navigator)}function nn(){return en()?navigator:Qe(De)}function tn(){return!(typeof history!==u||!history)}function rn(e){return e&&Je&&(e=Qe("__mockLocation"))?e:typeof location===u&&location?location:Qe(Ue)}function on(){return typeof console!==n?console:Qe("console")}function an(){return Qe(ze)}function un(){return!!(typeof JSON===u&&JSON||null!==Qe(Ke))}function sn(){return un()?JSON||Qe(Ke):null}function cn(){return Qe(Be)}function ln(){return Qe(Ve)}function fn(){var e=nn();return!e||e.userAgent===He&&null!==qe||(e=((He=e.userAgent)||"").toLowerCase(),qe=ge(e,We)||ge(e,Ge)),qe}function gn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(t=sn().stringify(e)),n+t}function dn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var vn=(pn.dataType="MessageData",pn);function pn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",un()&&(e=sn().stringify(r)),e=(n?" message:"+dn(n):"")+(r?" props:"+dn(e):""),this.message+=e}function hn(e,n){return(e||{}).logger||new yn(n)}var yn=function Xt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};W(Xt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),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){if(t=new vn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t)||!t||te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=on();t&&(n="log",ue(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new vn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},mn="ctx",Cn=(xn.ParentContextKey="parent",xn.ChildrenContextKey="childEvts",xn);function xn(e,i,n){var t,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ue(i)&&(a=Pe(o,"payload",function(){return!t&&ue(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===xn.ParentContextKey||e===xn.ChildrenContextKey?o:o[mn]||{})[e]:null},o.setCtx=function(e,n){e&&(e===xn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===xn.ChildrenContextKey?o[e]=n:(o[mn]=o[mn]||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(xn.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Me()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ue(i)&&(o.payload=i())}}var Tn=function Zt(n){this.ctx={},W(Zt,this,function(t){t.create=function(e,n,t){return new Cn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t[mn]=t[mn]||{})[e]=n)},t.getCtx=function(e){return(t[mn]||{})[e]}})},wn="CoreUtils.doPerf";function In(e,n,t,r,i){if(e){var o=e;if(o=o&&ue(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(wn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Cn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Cn.ChildrenContextKey))||(a=[],e.setCtx(Cn.ChildrenContextKey,a)),a.push(u))),o.setCtx(wn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(wn,e)}}}return t()}var Sn=function(i,n){var o=this,a=null,u=ue(i.processTelemetry),s=ue(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){var e=i?i.identifier:"TelemetryPluginChain";In((r=r||n)?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function bn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ue(o.processTelemetry)&&(o=new Sn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Nn=function Yt(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&ue(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),bn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],xe(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=bn(a,r)):te(n)&&(c=bn(e,s))),s.core=function(){return t},s.diagLog=function(){return hn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new Yt((e=void 0===e?null:e)||c,i,t,n)}},En="extensionConfig",Pn="getPlugin",Mn=(kn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},kn);function kn(){var o=this,a=!1,u=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&ue(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Nn(null,{},o.core),n=s&&s[Pn]?e.createNew(null,s[Pn]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&Le(e,En,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[Pn]&&(i=s[Pn]()),o.core=n,u=new Nn(r,e,n,i),a=!0}}var Ln="processTelemetry",An="priority",Fn="setNextPlugin",_n="isInitialized";function On(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Fn])&&ue(o[Ln])&&r[Fn](o),ue(o[_n])&&o[_n]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Rn(e){return e.sort(function(e,n){var t=0,r=ue(n[Ln]);return ue(e[Ln])?t=r?e[An]-n[An]:1:r&&(t=-1),t})}var jn,Dn=500,Un="Channel has invalid priority",zn=(y(Kn,jn=Mn),Kn._staticInit=(Pe(kt=Kn.prototype,"ChannelControls",kt.getChannelControls),void Pe(kt,"channelQueue",kt.getChannelControls)),Kn);function Kn(){var s,r=jn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<Dn&&Oe(Un+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=Dn,W(Kn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){e.priority>Dn&&o.push(e)}),c(o)),xe(s,function(e){return On(new Nn(e,n,t),r)}))}}),r}var Bn="toGMTString",Vn="toUTCString",Wn="cookie",Gn="expires",qn="enabled",Hn="isCookieUseDisabled",Jn="disableCookiesUsage",Qn="_ckMgr",$n="",Xn=null,Zn=null,Yn=null,et=Ye(),nt={},tt={};function rt(e,n){var t=ot[Qn]||tt[Qn];return t||(t=ot[Qn]=ot(e,n),tt[Qn]=t),t}function it(e){return!e||e.isEnabled()}function ot(e,r){var n,t,s=(Le(t=(n=e||tt).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),Le(t,"path",n.cookiePath||"/",null,re),re(t[qn])&&(e=void 0,te(n[Hn])||(e=!n[Hn]),te(n[Jn])||(e=!n[Jn]),t[qn]=e),t),c=s.path||"/",l=s.domain,i=!1!==s[qn],f={isEnabled:function(){var e=i&&at(r),n=tt[Qn];return e&&n&&f!==n?it(n):e},setEnabled:function(e){i=!1!==e},set:function(e,n,t,r,i){var o,a,u;it(f)&&(o={},-1!=(u=(a=Se(n||$n)).indexOf(";"))&&(a=Se(n.substring(0,u)),o=ut(n.substring(1+u))),Le(o,"domain",r||l,_e,te),re(t)||(n=fn(),!te(o[Gn])||0<(u=Me()+1e3*t)&&((r=new Date).setTime(u),Le(o,Gn,st(r,n?Bn:Vn)||st(r,n?Bn:Vn)||$n,_e)),n||Le(o,"max-age",$n+t,null,te)),(t=rn())&&"https:"===t.protocol&&(Le(o,"secure",null,null,te),(Zn=null===Zn?!ft((nn()||{}).userAgent):Zn)&&Le(o,"SameSite","None",null,te)),Le(o,"path",i||c,null,te),(s.setCookie||lt)(e,ct(a,o)))},get:function(e){var n=$n;return it(f)?(s.getCookie||function(e){var n,t=$n;return et&&(n=et[Wn]||$n,Yn!==n&&(nt=ut(n),Yn=n),t=Se(nt[e]||$n)),t})(e):n},del:function(e,n){it(f)&&f.purge(e,n)},purge:function(e,n){var t;at(r)&&((t={}).path=n||"/",t[Gn]="Thu, 01 Jan 1970 00:00:01 GMT",fn()||(t["max-age"]="0"),(s.delCookie||lt)(e,ct($n,t)))}};return f[Qn]=f}function at(e){if(null===Xn){Xn=!1;try{Xn=(et||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+ke(n),{exception:gn(n)})}}return Xn}function ut(e){var t={};return e&&e.length&&xe(Se(e).split(";"),function(e){var n;(e=Se(e||$n))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Se(e.substring(0,n))]=Se(e.substring(1+n)))}),t}function st(e,n){return ue(e[n])?e[n]():null}function ct(e,n){var t=e||$n;return le(n,function(e,n){t+="; "+e+(re(n)?$n:"="+n)}),t}function lt(e,n){et&&(et[Wn]=e+"="+n)}function ft(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var gt,dt="_notificationManager",vt=function er(){var n,u,s,t,r,c=!1;W(er,this,function(a){a._extensions=[],u=new zn,a.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,a[dt]=t,a.config=e||{},e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,En).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,n.concat(e.extensions));var t=Rn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Rn(t),a._extensions=t,On(new Nn([u],e,a),t),On(new Nn(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Oe("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Le(e,"iKey",a.config.instrumentationKey,null,Fe),Le(e,"time",Ce(new Date),null,Fe),Le(e,"ver","4.0",null,re),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Nn(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[dt]=s),s},a.getCookieMgr=function(){return r=r||ot(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&(t=new Tn(a.getNotifyMgr())),t},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(xe(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},pt=function nr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;W(nr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Te(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Te(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||xe(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},e=(y(ht,gt=vt),ht);function ht(){var e=gt.call(this)||this;return W(ht,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new yn(e),r||new pt(e))},t.track=function(e){In(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:vn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var yt=4294967296,mt=4294967295,Ct=!1,xt=123456789,Tt=987654321;function wt(e){e<0&&(e>>>=0),xt=123456789+e&mt,Tt=987654321-e&mt,Ct=!0}function It(){try{var e=2147483647&Me();wt((Math.random()*yt^e)+e)}catch(n){}}function St(e){return 0<e?Math.floor(bt()/mt*(e+1))>>>0:0}function bt(e){var n=(n=cn()||ln())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&mt:fn()?(Ct||It(),Et()&mt):Math.floor(yt*Math.random()|0);return e||(n>>>=0),n}function Nt(e){e?wt(e):It()}function Et(e){var n=((Tt=36969*(65535&Tt)+(Tt>>16)&mt)<<16)+(65535&(xt=18e3*(65535&xt)+(xt>>16)&mt))>>>0&mt|0;return e||(n>>>=0),n}var Pt,Mt=null,kt=n;function Lt(e,n){var t=!1,r=Xe();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=Ye())&&Dt.Attach(r,e,n)||t}function At(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(jt,function(e){var n=0|St(15);return("x"===e?n:3&n|8).toString(16)})}function Ft(){var e=an();return e&&e.now?e.now():Me()}function _t(e){void 0===e&&(e=22);for(var n=bt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(bt()<<2&4294967295|3&n)>>>0,t=0);return r}function Ot(){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=bt())]+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&bt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Rt={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ue,isObject:ae,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:me,toISOString:Ce,arrForEach:xe,arrIndexOf:Te,arrMap:we,arrReduce:Ie,strTrim:Se,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:Lt,dateNow:Me,isIE:fn,disableCookies:zt,newGuid:At,perfNow:Ft,newId:_t,randomValue:St,random32:bt,mwcRandomSeed:Nt,mwcRandom32:Et,generateW3CId:Ot},jt=/[xy]/g,Dt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Ut(e,n){return e=rt(e,n),n=Rt._canUseCookies,null===Mt&&(Mt=[],Pt=n,Pe(Rt,"_canUseCookies",function(){return Pt},function(n){Pt=n,xe(Mt,function(e){e.setEnabled(n)})})),-1===Te(Mt,e)&&Mt.push(e),me(n)&&e.setEnabled(n),me(Pt)&&e.setEnabled(Pt),e}function zt(){Ut().setEnabled(!1)}var Kt="_aiHooks",Bt=["req","rsp","hkErr","fnErr"],Vt="__proto__",Wt="constructor";function Gt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function qt(e,a,u,s,c){0<=c&&c<=2&&Gt(e,function(e,n){var t=e.cbks;if(e=t[Bt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Bt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Ht(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Gt(e,function(e){n.push(e)}),n}qt(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,qt(e,r,i,n,3),u}return qt(e,r,i,n,1),r.rslt}}var Jt=Object.getPrototypeOf;function Qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Jt)return Jt(e);if(e=e[Vt]||e[s]||e[Wt])return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var i=r[Kt];return i||((r=Ht(i={i:0,n:n,f:r,h:[]}))[Kt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Gt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Gt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=e,c.BaseCore=vt,c.BaseTelemetryPlugin=Mn,c.CoreUtils=Rt,c.DiagnosticLogger=yn,c.EventHelper=Dt,c.EventsDiscardedReason=r,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=pt,c.PerfEvent=Cn,c.PerfManager=Tn,c.ProcessTelemetryContext=Nn,c.Undefined=kt,c._InternalLogMessage=vn,c._InternalMessageId=G,c._legacyCookieMgr=Ut,c.addEventHandler=Lt,c.areCookiesSupported=at,c.arrForEach=xe,c.arrIndexOf=Te,c.arrMap=we,c.arrReduce=Ie,c.attachEvent=se,c.canUseCookies=function(e){return Ut(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ot,c.dateNow=Me,c.deleteCookie=function(e,n){return Ut(null,e).del(n)},c.detachEvent=ce,c.disableCookies=zt,c.doPerf=In,c.dumpObj=gn,c.generateW3CId=Ot,c.getConsole=on,c.getCookie=function(e,n){return Ut(null,e).get(n)},c.getCrypto=cn,c.getDocument=Ye,c.getExceptionName=ke,c.getGlobal=d,c.getGlobalInst=Qe,c.getHistory=function(){return tn()?history:Qe("history")},c.getIEVersion=function(e){var n=(e=void 0===e?null:e)?e.toLowerCase():"";return ge(n=e?n:(e=nn()||{})?(e.userAgent||"").toLowerCase():"",We)?parseInt(n.split(We)[1]):ge(n,Ge)&&(n=parseInt(n.split(Ge)[1]))?n+4:null},c.getJSON=sn,c.getLocation=rn,c.getMsCrypto=ln,c.getNavigator=nn,c.getPerformance=an,c.getSetValue=Ae,c.getWindow=Xe,c.hasDocument=Ze,c.hasHistory=tn,c.hasJSON=un,c.hasNavigator=en,c.hasOwnProperty=oe,c.hasWindow=$e,c.initializePlugins=On,c.isArray=ve,c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFunction=ue,c.isIE=fn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ae,c.isReactNative=function(){var e=nn();return!(!e||!e.product)&&"ReactNative"===e.product},c.isString=he,c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.mwcRandom32=Et,c.mwcRandomSeed=Nt,c.newGuid=At,c.newId=_t,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Ft,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ae(r)&&ae(i))for(var e in i)!function(n){var e,t;he(n)&&(ue(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=bt,c.randomValue=St,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=(n||{}).cookieCfg[Qn]||ot(n)),t||rt(n,(e||{}).logger)},c.safeGetLogger=hn,c.setCookie=function(e,n,t,r){Ut(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setValue=Le,c.sortPlugins=Rn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=En,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Se,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=ft,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-core-js.min.js.map

@@ -1,8 +0,5 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
import '@microsoft/applicationinsights-shims';
export { MinChannelPriorty } from "./JavaScriptSDK.Interfaces/IChannelControls";

@@ -16,4 +13,4 @@ export { EventsDiscardedReason } from "./JavaScriptSDK.Enums/EventsDiscardedReason";

export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal } from './JavaScriptSDK/HelperFuncs';
export { getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks } from "./JavaScriptSDK/EnvUtils";
export { objCreateFn as objCreate } from '@microsoft/applicationinsights-shims';
export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, setEnableEnvMocks } from "./JavaScriptSDK/EnvUtils";
export { getGlobal, objCreateFn as objCreate, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from '@microsoft/applicationinsights-shims';
export { NotificationManager } from "./JavaScriptSDK/NotificationManager";

@@ -20,0 +17,0 @@ export { PerfEvent, PerfManager, doPerf } from './JavaScriptSDK/PerfManager';

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,5 +0,5 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=INotificationManager.js.map

@@ -1,5 +0,5 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IPerfEvent.js.map

@@ -1,5 +0,5 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IPerfManager.js.map

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,5 +0,6 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
import { __extendsFn } from "@microsoft/applicationinsights-shims";
import { BaseCore } from './BaseCore';

@@ -14,3 +15,3 @@ import { EventsDiscardedReason } from "../JavaScriptSDK.Enums/EventsDiscardedReason";

var AppInsightsCore = /** @class */ (function (_super) {
__extends(AppInsightsCore, _super);
__extendsFn(AppInsightsCore, _super);
function AppInsightsCore() {

@@ -17,0 +18,0 @@ var _this = _super.call(this) || this;

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

"use strict";
import { __extendsFn } from "@microsoft/applicationinsights-shims";
import dynamicProto from '@microsoft/dynamicproto-js';

@@ -17,3 +18,3 @@ import { BaseTelemetryPlugin } from './BaseTelemetryPlugin';

var ChannelController = /** @class */ (function (_super) {
__extends(ChannelController, _super);
__extendsFn(ChannelController, _super);
function ChannelController() {

@@ -20,0 +21,0 @@ var _this = _super.call(this) || this;

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,3 +8,3 @@ */

"use strict";
import { getGlobal as shimsGetGlobal, strShimUndefined, strShimObject, strShimPrototype, strShimFunction } from "@microsoft/applicationinsights-shims";
import { getGlobal, strShimUndefined, strShimObject, strShimPrototype } from "@microsoft/applicationinsights-shims";
import { strContains } from "./HelperFuncs";

@@ -17,6 +17,2 @@ /**

*/
export var strUndefined = strShimUndefined;
export var strObject = strShimObject;
export var strPrototype = strShimPrototype;
export var strFunction = strShimFunction;
var strWindow = "window";

@@ -46,15 +42,2 @@ var strDocument = "document";

/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
export var getGlobal = shimsGetGlobal;
/**
* Return the named global object if available, will return null if the object is not available.

@@ -83,3 +66,3 @@ * @param name The globally named object

export function hasWindow() {
return Boolean(typeof window === strObject && window);
return Boolean(typeof window === strShimObject && window);
}

@@ -106,3 +89,3 @@ /**

export function hasDocument() {
return Boolean(typeof document === strObject && document);
return Boolean(typeof document === strShimObject && document);
}

@@ -128,3 +111,3 @@ /**

export function hasNavigator() {
return Boolean(typeof navigator === strObject && navigator);
return Boolean(typeof navigator === strShimObject && navigator);
}

@@ -150,3 +133,3 @@ /**

export function hasHistory() {
return Boolean(typeof history === strObject && history);
return Boolean(typeof history === strShimObject && history);
}

@@ -176,3 +159,3 @@ /**

}
if (typeof location === strObject && location) {
if (typeof location === strShimObject && location) {
return location;

@@ -186,3 +169,3 @@ }

export function getConsole() {
if (typeof console !== strUndefined) {
if (typeof console !== strShimUndefined) {
return console;

@@ -208,3 +191,3 @@ }

export function hasJSON() {
return Boolean((typeof JSON === strObject && JSON) || getGlobalInst(strJSON) !== null);
return Boolean((typeof JSON === strShimObject && JSON) || getGlobalInst(strJSON) !== null);
}

@@ -211,0 +194,0 @@ /**

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -7,3 +7,3 @@ */

import { strShimUndefined, strShimObject, strShimPrototype, strShimFunction } from "@microsoft/applicationinsights-shims";
import { strShimUndefined, strShimObject, strShimFunction, throwTypeError, ObjClass, ObjProto, ObjAssign, ObjHasOwnProperty, ObjDefineProperty } from "@microsoft/applicationinsights-shims";
// RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this file directly

@@ -16,8 +16,3 @@ // Added to help with minfication

var strRemoveEventListener = "removeEventListener";
var strHasOwnProperty = "hasOwnProperty";
var ObjClass = Object;
var ObjProto = ObjClass[strShimPrototype];
var _objHasOwnProperty = ObjProto[strHasOwnProperty];
var _objDefineProperty = ObjClass["defineProperty"];
var _objAssign = ObjClass["assign"];
var _objDefineProperty = ObjDefineProperty;
var _objFreeze = ObjClass["freeze"];

@@ -46,3 +41,3 @@ var _objSeal = ObjClass["seal"];

export function hasOwnProperty(obj, prop) {
return obj && _objHasOwnProperty.call(obj, prop);
return obj && ObjHasOwnProperty.call(obj, prop);
}

@@ -137,3 +132,3 @@ ;

for (var prop in target) {
if (_objHasOwnProperty.call(target, prop)) {
if (ObjHasOwnProperty.call(target, prop)) {
callbackfn.call(target, prop, target[prop]);

@@ -386,7 +381,7 @@ }

if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
throw new TypeError('objKeys called on non-object');
throwTypeError('objKeys called on non-object');
}
var result = [];
for (var prop in obj) {
if (obj && _objHasOwnProperty.call(obj, prop)) {
if (obj && ObjHasOwnProperty.call(obj, prop)) {
result.push(prop);

@@ -398,3 +393,3 @@ }

for (var lp = 0; lp < dontEnumsLength; lp++) {
if (obj && _objHasOwnProperty.call(obj, _objKeysDontEnums[lp])) {
if (obj && ObjHasOwnProperty.call(obj, _objKeysDontEnums[lp])) {
result.push(_objKeysDontEnums[lp]);

@@ -610,3 +605,3 @@ }

if (theObject) {
theObject = ObjClass(_objAssign ? _objAssign({}, theObject) : theObject);
theObject = ObjClass(ObjAssign ? ObjAssign({}, theObject) : theObject);
}

@@ -613,0 +608,0 @@ return theObject;

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -7,3 +7,3 @@ */

import { strFunction, strPrototype } from "./EnvUtils";
import { strShimFunction, strShimPrototype } from "@microsoft/applicationinsights-shims";
import { hasOwnProperty } from "./HelperFuncs";

@@ -134,3 +134,3 @@ var aiInstrumentHooks = "_aiHooks";

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[strPrototype] || target[strConstructor];
var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor];
if (newProto) {

@@ -163,3 +163,3 @@ return newProto;

if (target) {
return InstrumentFunc(target[strPrototype], funcName, callbacks, false);
return InstrumentFunc(target[strShimPrototype], funcName, callbacks, false);
}

@@ -176,3 +176,3 @@ return null;

if (target) {
return InstrumentFuncs(target[strPrototype], funcNames, callbacks, false);
return InstrumentFuncs(target[strShimPrototype], funcNames, callbacks, false);
}

@@ -194,3 +194,3 @@ return null;

var fn = owner[funcName];
if (typeof fn === strFunction) {
if (typeof fn === strShimFunction) {
var aiHook_1 = fn[aiInstrumentHooks];

@@ -197,0 +197,0 @@ if (!aiHook_1) {

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -1,3 +0,3 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
/*
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -7,3 +7,8 @@ ## API Report File for "@microsoft/applicationinsights-core-js"

import { getGlobal } from '@microsoft/applicationinsights-shims';
import { objCreateFn as objCreate } from '@microsoft/applicationinsights-shims';
import { strShimFunction as strFunction } from '@microsoft/applicationinsights-shims';
import { strShimObject as strObject } from '@microsoft/applicationinsights-shims';
import { strShimPrototype as strPrototype } from '@microsoft/applicationinsights-shims';
import { strShimUndefined as strUndefined } from '@microsoft/applicationinsights-shims';

@@ -177,4 +182,3 @@ // @public

// @public
export const getGlobal: () => Window;
export { getGlobal }

@@ -849,4 +853,3 @@ // @public

// @public (undocumented)
export const strFunction = "function";
export { strFunction }

@@ -856,7 +859,5 @@ // @public (undocumented)

// @public (undocumented)
export const strObject = "object";
export { strObject }
// @public (undocumented)
export const strPrototype = "prototype";
export { strPrototype }

@@ -869,4 +870,3 @@ // @public

// @public
export const strUndefined = "undefined";
export { strUndefined }

@@ -873,0 +873,0 @@ // @public (undocumented)

/*!
* Application Insights JavaScript SDK - Core, 2.6.1
* Application Insights JavaScript SDK - Core, 2.6.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,n){"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||{}))}(this,function(c){"use strict";var a="function",u="object",n="undefined",o="prototype",s="hasOwnProperty";function e(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function i(e){var n=Object.create;if(n)return n(e);if(null==e)return{};if((n=typeof e)!=u&&n!==a)throw new TypeError("Object prototype may only be an Object:"+e);function t(){}return t[o]=e,new t}var r=function(e,n){return(r=Object.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)},t=e()||{},l=function(e,n){function t(){this.constructor=e}r(e,n),e[o]=null===n?i(n):(t[o]=n[o],new t)};(Ln=t).__assign||(Ln.__assign=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object[o][s].call(n,i)&&(e[i]=n[i]);return e}),Ln.__extends||(Ln.__extends=l),__assign=__assign||t.__assign,__extends=__extends||t.__extends;var f={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},g="constructor",v="prototype",p="function",h="_dynInstFuncs",y="_isDynProxy",m="_dynClass",C="_dynCls$",x="_dynInstChk",w=x,T="_dfOpts",d="_unknown_",I="__proto__",b="useBaseInst",S="setInstFuncs",N=Object,E=N.getPrototypeOf,_=0;function P(e,n){return e&&N[v].hasOwnProperty.call(e,n)}function M(e){return e&&(e===N[v]||e===Array[v])}function k(e){return M(e)||e===Function[v]}function L(e){if(e){if(E)return E(e);if(e=e[I]||e[v]||e[g])return e}return null}function A(e,n){var t=[],r=N.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&P(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function F(e,n,t){return n!==g&&typeof e[n]===p&&(t||P(e,n))}function O(e){throw new TypeError("DynamicProto: "+e)}function R(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function j(e,n){return P(e,v)?e.name||n||d:((e||{})[g]||{}).name||n||d}function D(e,t,n,r){P(e,v)||O("theClass is an invalid class definition.");var i=e[v];!function(e){for(var n=L(t);n&&!k(n);){if(n===e)return 1;n=L(n)}}(i)&&O("["+j(e)+"] is not in class hierarchy of ["+j(t)+"]");var o=null;P(i,m)?o=i[m]:(o=C+j(e,"_")+"$"+_,_++,i[m]=o);var a,u,s,c,l,f,g=D[T],d=!!g[b];d&&r&&r[b]!==undefined&&(d=!!r[b]),n(t,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[y]&&o&&!1!==(r=e[h]||{})[w]&&(i=(r[n[m]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};A(t,function(e){i[e]=r(n,t,e)});for(var a=L(e),u=[];a&&!k(a)&&!R(u,a);)A(a,function(e){!i[e]&&F(a,e,!E)&&(i[e]=r(n,a,e))}),u.push(a),a=L(a);return i}(i,t,(u={},A(a=t,function(e){!u[e]&&F(a,e,!1)&&(u[e]=a[e])}),e=u),d)),s=i,o=o,c=t,l=e,r=!1!==(g=(g=!!E&&!!g[S])&&r?!!r[S]:g),M(s)||(g=c[h]=c[h]||{},f=g[o]=g[o]||{},!1!==g[w]&&(g[w]=!!r),A(c,function(e){var t,r,i;F(c,e,!1)&&c[e]!==l[e]&&(f[e]=c[e],delete c[e],P(s,e)&&(!s[e]||s[e][y])||(s[e]=(t=s,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&P(t,m)){var o=e[h]||{};if((i=(o[t[m]]||{})[n])||O("Missing ["+n+"] "+p),!i[x]&&!1!==o[w]){for(var a=!P(e,n),u=L(e),s=[];a&&u&&!k(u)&&!R(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=L(u)}try{a&&(e[n]=i),i[x]=1}catch(l){o[w]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?L(t)[e]:n)!==p&&O("["+e+"] is not a "+p),n)).apply(this,arguments)})[y]=1,i)))}))}D[T]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(mt=c.LoggingSeverity||(c.LoggingSeverity={}))[mt.CRITICAL=1]="CRITICAL",mt[mt.WARNING=2]="WARNING";var U={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},z="on",K="attachEvent",B="addEventListener",V="detachEvent",W="removeEventListener",G=Object,q=G[o],H=q.hasOwnProperty,J=G.defineProperty,Q=G.assign,$=G.freeze,X=G.seal;function Z(e){return q.toString.call(e)}function Y(e,n){return typeof e===n}function ee(e){return e===undefined||typeof e===n}function ne(e){return null===e||ee(e)}function te(e){return!ne(e)}function re(e,n){return e&&H.call(e,n)}function ie(e){return typeof e==u}function oe(e){return typeof e===a}function ae(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!ne(e))try{ne(e[B])?ne(e[K])||(e[K](z+n,t),i=!0):(e[B](n,t,r),i=!0)}catch(o){}return i}function ue(e,n,t,r){if(void 0===r&&(r=!1),!ne(e))try{ne(e[W])?ne(e[V])||e[V](z+n,t):e[W](n,t,r)}catch(i){}}function se(e,n){if(e)for(var t in e)H.call(e,t)&&n.call(e,t,e[t])}function ce(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function le(e,n){return!(!e||!n||!~e.indexOf(n))}function fe(e){return"[object Date]"===Z(e)}function ge(e){return"[object Array]"===Z(e)}function de(e){return"[object Error]"===Z(e)}function ve(e){return"string"==typeof e}function pe(e){return"number"==typeof e}function he(e){return"boolean"==typeof e}function ye(e){if(fe(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return 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"}}function me(e,n,t){for(var r=e.length,i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function Ce(e,n,t){for(var r=e.length,i=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i;return-1}function xe(e,n,t){for(var r=e.length,i=t||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e));return o}function we(e,n,t){var r,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}function Te(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),be=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Se(e){var n=typeof e;if(n!==a&&(n!=u||null===e))throw new TypeError("objKeys called on non-object");var t,r=[];for(t in e)e&&H.call(e,t)&&r.push(t);if(Ie)for(var i=be.length,o=0;o<i;o++)e&&H.call(e,be[o])&&r.push(be[o]);return r}function Ne(e,n,t,r){if(J)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),J(e,n,i),!0}catch(o){}return!1}function Ee(){var e=Date;return e.now?e.now():(new e).getTime()}function _e(e){return de(e)?e.name:""}function Pe(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 Me(e,n,t){var r;return e?!(r=e[n])&&ne(r)&&(r=ee(t)?{}:t,e[n]=r):r=ee(t)?{}:t,r}function ke(e){return!e}function Le(e){return!!e}function Ae(e){throw Error(e)}var Fe=n,Oe=u,Re=o,je=a,De="window",Ue="document",ze="navigator",Ke="location",Be="performance",Ve="JSON",We="crypto",Ge="msCrypto",qe="msie",He="trident/",Je=null,Qe=null,$e=!1,Xe=e;function Ze(e){var n=Xe();return n&&n[e]?n[e]:e===De&&Ye()?window:null}function Ye(){return!(typeof window!==Oe||!window)}function en(){return Ye()?window:Ze(De)}function nn(){return!(typeof document!==Oe||!document)}function tn(){return nn()?document:Ze(Ue)}function rn(){return!(typeof navigator!==Oe||!navigator)}function on(){return rn()?navigator:Ze(ze)}function an(){return!(typeof history!==Oe||!history)}function un(e){return e&&$e&&(e=Ze("__mockLocation"))?e:typeof location===Oe&&location?location:Ze(Ke)}function sn(){return typeof console!==Fe?console:Ze("console")}function cn(){return Ze(Be)}function ln(){return!!(typeof JSON===Oe&&JSON||null!==Ze(Ve))}function fn(){return ln()?JSON||Ze(Ve):null}function gn(){return Ze(We)}function dn(){return Ze(Ge)}function vn(){var e=on();return!e||e.userAgent===Qe&&null!==Je||(e=((Qe=e.userAgent)||"").toLowerCase(),Je=le(e,qe)||le(e,He)),Je}function pn(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var yn=(mn.dataType="MessageData",mn);function mn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+hn(n):"")+(r?" props:"+hn(e):""),this.message+=e}function Cn(e,n){return(e||{}).logger||new xn(n)}var xn=function Yt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};D(Yt,this,function(o){function e(e,n){return ne(e=t[e])?n:e}ne(t)&&(t={}),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){if(t=new yn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;ee(t)||!t||ee(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=sn();t&&(n="log",oe(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new yn(U.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},wn="ctx",Tn=(In.ParentContextKey="parent",In.ChildrenContextKey="childEvts",In);function In(e,i,n){var t,o=this,a=!1;o.start=Ee(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},oe(i)&&(a=Ne(o,"payload",function(){return!t&&oe(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===In.ParentContextKey||e===In.ChildrenContextKey?o:o[wn]||{})[e]:null},o.setCtx=function(e,n){e&&(e===In.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===In.ChildrenContextKey?o[e]=n:(o[wn]=o[wn]||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(In.ChildrenContextKey);if(ge(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ee()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&oe(i)&&(o.payload=i())}}var bn=function er(n){this.ctx={},D(er,this,function(t){t.create=function(e,n,t){return new Tn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t[wn]=t[wn]||{})[e]=n)},t.getCtx=function(e){return(t[wn]||{})[e]}})},Sn="CoreUtils.doPerf";function Nn(e,n,t,r,i){if(e){var o=e;if(o=o&&oe(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Sn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Tn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Tn.ChildrenContextKey))||(a=[],e.setCtx(Tn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Sn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Sn,e)}}}return t()}var En=function(i,n){var o=this,a=null,u=oe(i.processTelemetry),s=oe(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){var e=i?i.identifier:"TelemetryPluginChain";Nn((r=r||n)?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,U.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function _n(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&oe(o.processTelemetry)&&(o=new En(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Pn=function nr(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&oe(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),_n(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],me(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=_n(a,r)):ee(n)&&(c=_n(e,s))),s.core=function(){return t},s.diagLog=function(){return Cn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!ne(e[n])?r=e[n]:i&&!ne(i[n])&&(r=i[n]),ne(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new nr((e=void 0===e?null:e)||c,i,t,n)}},Mn="extensionConfig",kn="getPlugin",Ln=(An.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},An);function An(){var o=this,a=!1,u=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&oe(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Pn(null,{},o.core),n=s&&s[kn]?e.createNew(null,s[kn]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&Pe(e,Mn,[],null,ne),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[kn]&&(i=s[kn]()),o.core=n,u=new Pn(r,e,n,i),a=!0}}var Fn="processTelemetry",On="priority",Rn="setNextPlugin",jn="isInitialized";function Dn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&oe(r[Rn])&&oe(o[Fn])&&r[Rn](o),oe(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}me(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Un(e){return e.sort(function(e,n){var t=0,r=oe(n[Fn]);return oe(e[Fn])?t=r?e[On]-n[On]:1:r&&(t=-1),t})}var zn,Kn=500,Bn="Channel has invalid priority",Vn=(zn=Ln,__extends(Wn,zn),Wn._staticInit=(Ne(l=Wn.prototype,"ChannelControls",l.getChannelControls),void Ne(l,"channelQueue",l.getChannelControls)),Wn);function Wn(){var s,r=zn.call(this)||this;function c(e){e&&0<e.length&&(me(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<Kn&&Ae(Bn+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=Kn,D(Wn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&me(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&me(e,c),i&&(o=[],me(i,function(e){e.priority>Kn&&o.push(e)}),c(o)),me(s,function(e){return Dn(new Pn(e,n,t),r)}))}}),r}var Gn="toGMTString",qn="toUTCString",Hn="cookie",Jn="expires",Qn="enabled",$n="isCookieUseDisabled",Xn="disableCookiesUsage",Zn="_ckMgr",Yn="",et=null,nt=null,tt=null,rt=tn(),it={},ot={};function at(e,n){var t=st[Zn]||ot[Zn];return t||(t=st[Zn]=st(e,n),ot[Zn]=t),t}function ut(e){return!e||e.isEnabled()}function st(e,r){var n,t,s=(Pe(t=(n=e||ot).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,te,ne),Pe(t,"path",n.cookiePath||"/",null,ne),ne(t[Qn])&&(e=void 0,ee(n[$n])||(e=!n[$n]),ee(n[Xn])||(e=!n[Xn]),t[Qn]=e),t),c=s.path||"/",l=s.domain,i=!1!==s[Qn],f={isEnabled:function(){var e=i&&ct(r),n=ot[Zn];return e&&n&&f!==n?ut(n):e},setEnabled:function(e){i=!1!==e},set:function(e,n,t,r,i){var o,a,u;ut(f)&&(o={},-1!=(u=(a=Te(n||Yn)).indexOf(";"))&&(a=Te(n.substring(0,u)),o=lt(n.substring(1+u))),Pe(o,"domain",r||l,Le,ee),ne(t)||(n=vn(),!ee(o[Jn])||0<(u=Ee()+1e3*t)&&((r=new Date).setTime(u),Pe(o,Jn,ft(r,n?Gn:qn)||ft(r,n?Gn:qn)||Yn,Le)),n||Pe(o,"max-age",Yn+t,null,ee)),(t=un())&&"https:"===t.protocol&&(Pe(o,"secure",null,null,ee),(nt=null===nt?!vt((on()||{}).userAgent):nt)&&Pe(o,"SameSite","None",null,ee)),Pe(o,"path",i||c,null,ee),(s.setCookie||dt)(e,gt(a,o)))},get:function(e){var n=Yn;return ut(f)?(s.getCookie||function(e){var n,t=Yn;return rt&&(n=rt[Hn]||Yn,tt!==n&&(it=lt(n),tt=n),t=Te(it[e]||Yn)),t})(e):n},del:function(e,n){ut(f)&&f.purge(e,n)},purge:function(e,n){var t;ct(r)&&((t={}).path=n||"/",t[Jn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(s.delCookie||dt)(e,gt(Yn,t)))}};return f[Zn]=f}function ct(e){if(null===et){et=!1;try{et=(rt||{})[Hn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,U.CannotAccessCookie,"Cannot access document.cookie - "+_e(n),{exception:pn(n)})}}return et}function lt(e){var t={};return e&&e.length&&me(Te(e).split(";"),function(e){var n;(e=Te(e||Yn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Te(e.substring(0,n))]=Te(e.substring(1+n)))}),t}function ft(e,n){return oe(e[n])?e[n]():null}function gt(e,n){var t=e||Yn;return se(n,function(e,n){t+="; "+e+(ne(n)?Yn:"="+n)}),t}function dt(e,n){rt&&(rt[Hn]=e+"="+n)}function vt(e){return!(!ve(e)||!le(e,"CPU iPhone OS 12")&&!le(e,"iPad; CPU OS 12")&&!(le(e,"Macintosh; Intel Mac OS X 10_14")&&le(e,"Version/")&&le(e,"Safari"))&&(!le(e,"Macintosh; Intel Mac OS X 10_14")||!ce(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!le(e,"Chrome/5")&&!le(e,"Chrome/6")&&(!le(e,"UnrealEngine")||le(e,"Chrome"))&&!le(e,"UCBrowser/12")&&!le(e,"UCBrowser/11"))}var pt,ht="_notificationManager",yt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;D(tr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Ce(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Ce(i.listeners,e)},i.eventsSent=function(n){me(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){me(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){me(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||me(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},mt=(pt=t=function rr(){var n,u,s,t,r,c=!1;D(rr,this,function(a){a._extensions=[],u=new Vn,a.logger=i({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Ae("Core should not be initialized more than once"),e&&!ne(e.instrumentationKey)||Ae("Please provide instrumentation key"),s=t,a[ht]=t,a.config=e||{},e.extensions=ne(e.extensions)?[]:e.extensions,Me(e,Mn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,n.concat(e.extensions));var t=Un(t),i=[],o={};me(t,function(e){(ne(e)||ne(e.initialize))&&Ae("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(ne(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Un(t),a._extensions=t,Dn(new Pn([u],e,a),t),Dn(new Pn(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Ae("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Pe(e,"iKey",a.config.instrumentationKey,null,ke),Pe(e,"time",ye(new Date),null,ke),Pe(e,"ver","4.0",null,ne),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Pn(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=i({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[ht]=s),s},a.getCookieMgr=function(){return r=r||st(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&(t=new bn(a.getNotifyMgr())),t},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(me(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},__extends(Ct,pt),Ct);function Ct(){var e=pt.call(this)||this;return D(Ct,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],f.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new xn(e),r||new yt(e))},t.track=function(e){Nn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Ae("Invalid telemetry item")),function(){if(ne(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];me(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:ye(new Date),baseType:yn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var xt=4294967296,wt=4294967295,Tt=!1,It=123456789,bt=987654321;function St(e){e<0&&(e>>>=0),It=123456789+e&wt,bt=987654321-e&wt,Tt=!0}function Nt(){try{var e=2147483647&Ee();St((Math.random()*xt^e)+e)}catch(n){}}function Et(e){return 0<e?Math.floor(_t()/wt*(e+1))>>>0:0}function _t(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&wt:vn()?(Tt||Nt(),Mt()&wt):Math.floor(xt*Math.random()|0);return e||(n>>>=0),n}function Pt(e){e?St(e):Nt()}function Mt(e){var n=((bt=36969*(65535&bt)+(bt>>16)&wt)<<16)+(65535&(It=18e3*(65535&It)+(It>>16)&wt))>>>0&wt|0;return e||(n>>>=0),n}var kt,Lt=null,l=n;function At(e,n){var t=!1,r=en();return r&&(t=ae(r,e,n),t=ae(r.body,e,n)||t),(r=tn())&&zt.Attach(r,e,n)||t}function Ft(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ut,function(e){var n=0|Et(15);return("x"===e?n:3&n|8).toString(16)})}function Ot(){var e=cn();return e&&e.now?e.now():Ee()}function Rt(e){void 0===e&&(e=22);for(var n=_t()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(_t()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=_t())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&_t())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Dt={_canUseCookies:undefined,isTypeof:Y,isUndefined:ee,isNullOrUndefined:ne,hasOwnProperty:re,isFunction:oe,isObject:ie,isDate:fe,isArray:ge,isError:de,isString:ve,isNumber:pe,isBoolean:he,toISOString:ye,arrForEach:me,arrIndexOf:Ce,arrMap:xe,arrReduce:we,strTrim:Te,objCreate:i,objKeys:Se,objDefineAccessors:Ne,addEventHandler:At,dateNow:Ee,isIE:vn,disableCookies:Bt,newGuid:Ft,perfNow:Ot,newId:Rt,randomValue:Et,random32:_t,mwcRandomSeed:Pt,mwcRandom32:Mt,generateW3CId:jt},Ut=/[xy]/g,zt={Attach:ae,AttachEvent:ae,Detach:ue,DetachEvent:ue};function Kt(e,n){return e=at(e,n),n=Dt._canUseCookies,null===Lt&&(Lt=[],kt=n,Ne(Dt,"_canUseCookies",function(){return kt},function(n){kt=n,me(Lt,function(e){e.setEnabled(n)})})),-1===Ce(Lt,e)&&Lt.push(e),he(n)&&e.setEnabled(n),he(kt)&&e.setEnabled(kt),e}function Bt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Wt=["req","rsp","hkErr","fnErr"],Gt="__proto__",qt="constructor";function Ht(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Jt(e,a,u,s,c){0<=c&&c<=2&&Ht(e,function(e,n){var t=e.cbks;if(e=t[Wt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Wt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Qt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Ht(e,function(e){n.push(e)}),n}Jt(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Jt(e,r,i,n,3),u}return Jt(e,r,i,n,1),r.rslt}}var $t=Object.getPrototypeOf;function Xt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(re(e,n)?r=e:t&&(r=o(function(e){if(e){if($t)return $t(e);if(e=e[Gt]||e[Re]||e[qt])return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===je){var i=r[Vt];return i||((r=Qt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Ht(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function Zt(n,e,t,r){void 0===r&&(r=!0);var i=null;return Ht(e,function(e){(e=Xt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=mt,c.BaseCore=t,c.BaseTelemetryPlugin=Ln,c.CoreUtils=Dt,c.DiagnosticLogger=xn,c.EventHelper=zt,c.EventsDiscardedReason=f,c.InstrumentFunc=Xt,c.InstrumentFuncs=Zt,c.InstrumentProto=function(e,n,t){return e?Xt(e[Re],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?Zt(e[Re],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=yt,c.PerfEvent=Tn,c.PerfManager=bn,c.ProcessTelemetryContext=Pn,c.Undefined=l,c._InternalLogMessage=yn,c._InternalMessageId=U,c._legacyCookieMgr=Kt,c.addEventHandler=At,c.areCookiesSupported=ct,c.arrForEach=me,c.arrIndexOf=Ce,c.arrMap=xe,c.arrReduce=we,c.attachEvent=ae,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&se(e,function(e,n){t[e]=n})}},c.createCookieMgr=st,c.dateNow=Ee,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ue,c.disableCookies=Bt,c.doPerf=Nn,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=_e,c.getGlobal=Xe,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n=(e=void 0===e?null:e)?e.toLowerCase():"";return le(n=e?n:(e=on()||{})?(e.userAgent||"").toLowerCase():"",qe)?parseInt(n.split(qe)[1]):le(n,He)&&(n=parseInt(n.split(He)[1]))?n+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Me,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=re,c.hasWindow=Ye,c.initializePlugins=Dn,c.isArray=ge,c.isBoolean=he,c.isDate=fe,c.isError=de,c.isFunction=oe,c.isIE=vn,c.isNotNullOrUndefined=te,c.isNotTruthy=ke,c.isNotUndefined=function(e){return!ee(e)},c.isNullOrUndefined=ne,c.isNumber=pe,c.isObject=ie,c.isReactNative=function(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isString=ve,c.isTruthy=Le,c.isTypeof=Y,c.isUndefined=ee,c.mwcRandom32=Mt,c.mwcRandomSeed=Pt,c.newGuid=Ft,c.newId=Rt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=i,c.objDefineAccessors=Ne,c.objForEachKey=se,c.objFreeze=function(e){return $?$(e):e},c.objKeys=Se,c.objSeal=function(e){return X?X(e):e},c.optimizeObject=function(e){return e&&G(Q?Q({},e):e)},c.perfNow=Ot,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ie(r)&&ie(i))for(var e in i)!function(n){var e,t;ve(n)&&(oe(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(re(r,n)&&delete r[n],Ne(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=_t,c.randomValue=Et,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=(n||{}).cookieCfg[Zn]||st(n)),t||at(n,(e||{}).logger)},c.safeGetLogger=Cn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){$e=e},c.setValue=Pe,c.sortPlugins=Un,c.strContains=le,c.strEndsWith=ce,c.strExtensionConfig=Mn,c.strFunction=je,c.strIKey="iKey",c.strObject=Oe,c.strPrototype=Re,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Te,c.strUndefined=Fe,c.throwError=Ae,c.toISOString=ye,c.uaDisallowsSameSiteNone=vt,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
!function(e,n){"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||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",i="hasOwnProperty",t=Object,o=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=o[i];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}var m="constructor",C="prototype",x="function",T="_dynInstFuncs",w="_isDynProxy",I="_dynClass",S="_dynCls$",b="_dynInstChk",N=b,E="_dfOpts",P="_unknown_",M="__proto__",k="useBaseInst",L="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[C].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[C]||e===Array[C])}function j(e){return R(e)||e===Function[C]}function D(e){if(e){if(F)return F(e);if(e=e[M]||e[C]||(e[m]?e[m][C]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==m&&typeof e[n]===x&&(t||O(e,n))}function K(e){throw new TypeError("DynamicProto: "+e)}function B(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function V(e,n){return O(e,C)?e.name||n||P:((e||{})[m]||{}).name||n||P}function W(e,r,n,t){O(e,C)||K("theClass is an invalid class definition.");var i=e[C];!function(e){if(F)for(var n=[],t=D(r);t&&!j(t)&&!B(n,t);){if(t===e)return 1;n.push(t),t=D(t)}}(i)&&K("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;O(i,I)?o=i[I]:(o=S+V(e,"_")+"$"+_,_++,i[I]=o);var a,u,s,c,l,f,g=W[E],d=!!g[k];d&&t&&t[k]!==undefined&&(d=!!t[k]),n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[w]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[I]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var a=D(e),u=[];a&&!j(a)&&!B(u,a);)U(a,function(e){!i[e]&&z(a,e,!F)&&(i[e]=r(n,a,e))}),u.push(a),a=D(a);return i}(i,r,(u={},U(a=r,function(e){!u[e]&&z(a,e,!1)&&(u[e]=a[e])}),e=u),d)),s=i,o=o,c=r,l=e,t=!1!==(g=(g=!!F&&!!g[L])&&t?!!t[L]:g),R(s)||(g=c[T]=c[T]||{},f=g[o]=g[o]||{},!1!==g[N]&&(g[N]=!!t),U(c,function(e){var t,r,i;z(c,e,!1)&&c[e]!==l[e]&&(f[e]=c[e],delete c[e],O(s,e)&&(!s[e]||s[e][w])||(s[e]=(t=s,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,I)){var o=e[T]||{};if((i=(o[t[I]]||{})[n])||K("Missing ["+n+"] "+x),!i[b]&&!1!==o[N]){for(var a=!O(e,n),u=D(e),s=[];a&&u&&!j(u)&&!B(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=D(u)}try{a&&(e[n]=i),i[b]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?D(t)[e]:n)!==x&&K("["+e+"] is not a "+x),n)).apply(this,arguments)})[w]=1,i)))}))}W[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(vt=c.LoggingSeverity||(c.LoggingSeverity={}))[vt.CRITICAL=1]="CRITICAL",vt[vt.WARNING=2]="WARNING";var G={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},q="on",H="attachEvent",J="addEventListener",Q="detachEvent",$="removeEventListener",X=e,Z=t.freeze,Y=t.seal;function ee(e){return o.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ae(e){return typeof e===u}function ue(e){return typeof e===a}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](q+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[$])?re(e[Q])||e[Q](q+n,t):e[$](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function me(e){return"boolean"==typeof e}function Ce(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return 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"}}function xe(e,n,t){for(var r=e.length,i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function Te(e,n,t){for(var r=e.length,i=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i;return-1}function we(e,n,t){for(var r=e.length,i=t||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e));return o}function Ie(e,n,t){var r,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}function Se(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var be=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(be)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Pe(e,n,t,r){if(X)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),X(e,n,i),!0}catch(o){}return!1}function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function ke(e){return pe(e)?e.name:""}function Le(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 Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",je="document",De="navigator",Ue="location",ze="performance",Ke="JSON",Be="crypto",Ve="msCrypto",We="msie",Ge="trident/",qe=null,He=null,Je=!1;function Qe(e){var n=d();return n&&n[e]?n[e]:e===Re&&$e()?window:null}function $e(){return!(typeof window!==u||!window)}function Xe(){return $e()?window:Qe(Re)}function Ze(){return!(typeof document!==u||!document)}function Ye(){return Ze()?document:Qe(je)}function en(){return!(typeof navigator!==u||!navigator)}function nn(){return en()?navigator:Qe(De)}function tn(){return!(typeof history!==u||!history)}function rn(e){return e&&Je&&(e=Qe("__mockLocation"))?e:typeof location===u&&location?location:Qe(Ue)}function on(){return typeof console!==n?console:Qe("console")}function an(){return Qe(ze)}function un(){return!!(typeof JSON===u&&JSON||null!==Qe(Ke))}function sn(){return un()?JSON||Qe(Ke):null}function cn(){return Qe(Be)}function ln(){return Qe(Ve)}function fn(){var e=nn();return!e||e.userAgent===He&&null!==qe||(e=((He=e.userAgent)||"").toLowerCase(),qe=ge(e,We)||ge(e,Ge)),qe}function gn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(t=sn().stringify(e)),n+t}function dn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var vn=(pn.dataType="MessageData",pn);function pn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",un()&&(e=sn().stringify(r)),e=(n?" message:"+dn(n):"")+(r?" props:"+dn(e):""),this.message+=e}function hn(e,n){return(e||{}).logger||new yn(n)}var yn=function Xt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};W(Xt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),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){if(t=new vn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t)||!t||te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=on();t&&(n="log",ue(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new vn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},mn="ctx",Cn=(xn.ParentContextKey="parent",xn.ChildrenContextKey="childEvts",xn);function xn(e,i,n){var t,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ue(i)&&(a=Pe(o,"payload",function(){return!t&&ue(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===xn.ParentContextKey||e===xn.ChildrenContextKey?o:o[mn]||{})[e]:null},o.setCtx=function(e,n){e&&(e===xn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===xn.ChildrenContextKey?o[e]=n:(o[mn]=o[mn]||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(xn.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Me()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ue(i)&&(o.payload=i())}}var Tn=function Zt(n){this.ctx={},W(Zt,this,function(t){t.create=function(e,n,t){return new Cn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t[mn]=t[mn]||{})[e]=n)},t.getCtx=function(e){return(t[mn]||{})[e]}})},wn="CoreUtils.doPerf";function In(e,n,t,r,i){if(e){var o=e;if(o=o&&ue(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(wn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Cn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Cn.ChildrenContextKey))||(a=[],e.setCtx(Cn.ChildrenContextKey,a)),a.push(u))),o.setCtx(wn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(wn,e)}}}return t()}var Sn=function(i,n){var o=this,a=null,u=ue(i.processTelemetry),s=ue(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){var e=i?i.identifier:"TelemetryPluginChain";In((r=r||n)?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function bn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ue(o.processTelemetry)&&(o=new Sn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Nn=function Yt(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&ue(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),bn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],xe(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=bn(a,r)):te(n)&&(c=bn(e,s))),s.core=function(){return t},s.diagLog=function(){return hn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new Yt((e=void 0===e?null:e)||c,i,t,n)}},En="extensionConfig",Pn="getPlugin",Mn=(kn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},kn);function kn(){var o=this,a=!1,u=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&ue(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Nn(null,{},o.core),n=s&&s[Pn]?e.createNew(null,s[Pn]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&Le(e,En,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[Pn]&&(i=s[Pn]()),o.core=n,u=new Nn(r,e,n,i),a=!0}}var Ln="processTelemetry",An="priority",Fn="setNextPlugin",_n="isInitialized";function On(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Fn])&&ue(o[Ln])&&r[Fn](o),ue(o[_n])&&o[_n]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Rn(e){return e.sort(function(e,n){var t=0,r=ue(n[Ln]);return ue(e[Ln])?t=r?e[An]-n[An]:1:r&&(t=-1),t})}var jn,Dn=500,Un="Channel has invalid priority",zn=(y(Kn,jn=Mn),Kn._staticInit=(Pe(kt=Kn.prototype,"ChannelControls",kt.getChannelControls),void Pe(kt,"channelQueue",kt.getChannelControls)),Kn);function Kn(){var s,r=jn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<Dn&&Oe(Un+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=Dn,W(Kn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){e.priority>Dn&&o.push(e)}),c(o)),xe(s,function(e){return On(new Nn(e,n,t),r)}))}}),r}var Bn="toGMTString",Vn="toUTCString",Wn="cookie",Gn="expires",qn="enabled",Hn="isCookieUseDisabled",Jn="disableCookiesUsage",Qn="_ckMgr",$n="",Xn=null,Zn=null,Yn=null,et=Ye(),nt={},tt={};function rt(e,n){var t=ot[Qn]||tt[Qn];return t||(t=ot[Qn]=ot(e,n),tt[Qn]=t),t}function it(e){return!e||e.isEnabled()}function ot(e,r){var n,t,s=(Le(t=(n=e||tt).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),Le(t,"path",n.cookiePath||"/",null,re),re(t[qn])&&(e=void 0,te(n[Hn])||(e=!n[Hn]),te(n[Jn])||(e=!n[Jn]),t[qn]=e),t),c=s.path||"/",l=s.domain,i=!1!==s[qn],f={isEnabled:function(){var e=i&&at(r),n=tt[Qn];return e&&n&&f!==n?it(n):e},setEnabled:function(e){i=!1!==e},set:function(e,n,t,r,i){var o,a,u;it(f)&&(o={},-1!=(u=(a=Se(n||$n)).indexOf(";"))&&(a=Se(n.substring(0,u)),o=ut(n.substring(1+u))),Le(o,"domain",r||l,_e,te),re(t)||(n=fn(),!te(o[Gn])||0<(u=Me()+1e3*t)&&((r=new Date).setTime(u),Le(o,Gn,st(r,n?Bn:Vn)||st(r,n?Bn:Vn)||$n,_e)),n||Le(o,"max-age",$n+t,null,te)),(t=rn())&&"https:"===t.protocol&&(Le(o,"secure",null,null,te),(Zn=null===Zn?!ft((nn()||{}).userAgent):Zn)&&Le(o,"SameSite","None",null,te)),Le(o,"path",i||c,null,te),(s.setCookie||lt)(e,ct(a,o)))},get:function(e){var n=$n;return it(f)?(s.getCookie||function(e){var n,t=$n;return et&&(n=et[Wn]||$n,Yn!==n&&(nt=ut(n),Yn=n),t=Se(nt[e]||$n)),t})(e):n},del:function(e,n){it(f)&&f.purge(e,n)},purge:function(e,n){var t;at(r)&&((t={}).path=n||"/",t[Gn]="Thu, 01 Jan 1970 00:00:01 GMT",fn()||(t["max-age"]="0"),(s.delCookie||lt)(e,ct($n,t)))}};return f[Qn]=f}function at(e){if(null===Xn){Xn=!1;try{Xn=(et||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+ke(n),{exception:gn(n)})}}return Xn}function ut(e){var t={};return e&&e.length&&xe(Se(e).split(";"),function(e){var n;(e=Se(e||$n))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Se(e.substring(0,n))]=Se(e.substring(1+n)))}),t}function st(e,n){return ue(e[n])?e[n]():null}function ct(e,n){var t=e||$n;return le(n,function(e,n){t+="; "+e+(re(n)?$n:"="+n)}),t}function lt(e,n){et&&(et[Wn]=e+"="+n)}function ft(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var gt,dt="_notificationManager",vt=function er(){var n,u,s,t,r,c=!1;W(er,this,function(a){a._extensions=[],u=new zn,a.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,a[dt]=t,a.config=e||{},e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,En).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,n.concat(e.extensions));var t=Rn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Rn(t),a._extensions=t,On(new Nn([u],e,a),t),On(new Nn(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Oe("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Le(e,"iKey",a.config.instrumentationKey,null,Fe),Le(e,"time",Ce(new Date),null,Fe),Le(e,"ver","4.0",null,re),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Nn(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[dt]=s),s},a.getCookieMgr=function(){return r=r||ot(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&(t=new Tn(a.getNotifyMgr())),t},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(xe(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},pt=function nr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;W(nr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Te(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Te(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||xe(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},e=(y(ht,gt=vt),ht);function ht(){var e=gt.call(this)||this;return W(ht,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new yn(e),r||new pt(e))},t.track=function(e){In(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:vn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var yt=4294967296,mt=4294967295,Ct=!1,xt=123456789,Tt=987654321;function wt(e){e<0&&(e>>>=0),xt=123456789+e&mt,Tt=987654321-e&mt,Ct=!0}function It(){try{var e=2147483647&Me();wt((Math.random()*yt^e)+e)}catch(n){}}function St(e){return 0<e?Math.floor(bt()/mt*(e+1))>>>0:0}function bt(e){var n=(n=cn()||ln())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&mt:fn()?(Ct||It(),Et()&mt):Math.floor(yt*Math.random()|0);return e||(n>>>=0),n}function Nt(e){e?wt(e):It()}function Et(e){var n=((Tt=36969*(65535&Tt)+(Tt>>16)&mt)<<16)+(65535&(xt=18e3*(65535&xt)+(xt>>16)&mt))>>>0&mt|0;return e||(n>>>=0),n}var Pt,Mt=null,kt=n;function Lt(e,n){var t=!1,r=Xe();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=Ye())&&Dt.Attach(r,e,n)||t}function At(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(jt,function(e){var n=0|St(15);return("x"===e?n:3&n|8).toString(16)})}function Ft(){var e=an();return e&&e.now?e.now():Me()}function _t(e){void 0===e&&(e=22);for(var n=bt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(bt()<<2&4294967295|3&n)>>>0,t=0);return r}function Ot(){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=bt())]+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&bt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Rt={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ue,isObject:ae,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:me,toISOString:Ce,arrForEach:xe,arrIndexOf:Te,arrMap:we,arrReduce:Ie,strTrim:Se,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:Lt,dateNow:Me,isIE:fn,disableCookies:zt,newGuid:At,perfNow:Ft,newId:_t,randomValue:St,random32:bt,mwcRandomSeed:Nt,mwcRandom32:Et,generateW3CId:Ot},jt=/[xy]/g,Dt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Ut(e,n){return e=rt(e,n),n=Rt._canUseCookies,null===Mt&&(Mt=[],Pt=n,Pe(Rt,"_canUseCookies",function(){return Pt},function(n){Pt=n,xe(Mt,function(e){e.setEnabled(n)})})),-1===Te(Mt,e)&&Mt.push(e),me(n)&&e.setEnabled(n),me(Pt)&&e.setEnabled(Pt),e}function zt(){Ut().setEnabled(!1)}var Kt="_aiHooks",Bt=["req","rsp","hkErr","fnErr"],Vt="__proto__",Wt="constructor";function Gt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function qt(e,a,u,s,c){0<=c&&c<=2&&Gt(e,function(e,n){var t=e.cbks;if(e=t[Bt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Bt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Ht(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Gt(e,function(e){n.push(e)}),n}qt(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,qt(e,r,i,n,3),u}return qt(e,r,i,n,1),r.rslt}}var Jt=Object.getPrototypeOf;function Qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Jt)return Jt(e);if(e=e[Vt]||e[s]||e[Wt])return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var i=r[Kt];return i||((r=Ht(i={i:0,n:n,f:r,h:[]}))[Kt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Gt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Gt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=e,c.BaseCore=vt,c.BaseTelemetryPlugin=Mn,c.CoreUtils=Rt,c.DiagnosticLogger=yn,c.EventHelper=Dt,c.EventsDiscardedReason=r,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=pt,c.PerfEvent=Cn,c.PerfManager=Tn,c.ProcessTelemetryContext=Nn,c.Undefined=kt,c._InternalLogMessage=vn,c._InternalMessageId=G,c._legacyCookieMgr=Ut,c.addEventHandler=Lt,c.areCookiesSupported=at,c.arrForEach=xe,c.arrIndexOf=Te,c.arrMap=we,c.arrReduce=Ie,c.attachEvent=se,c.canUseCookies=function(e){return Ut(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ot,c.dateNow=Me,c.deleteCookie=function(e,n){return Ut(null,e).del(n)},c.detachEvent=ce,c.disableCookies=zt,c.doPerf=In,c.dumpObj=gn,c.generateW3CId=Ot,c.getConsole=on,c.getCookie=function(e,n){return Ut(null,e).get(n)},c.getCrypto=cn,c.getDocument=Ye,c.getExceptionName=ke,c.getGlobal=d,c.getGlobalInst=Qe,c.getHistory=function(){return tn()?history:Qe("history")},c.getIEVersion=function(e){var n=(e=void 0===e?null:e)?e.toLowerCase():"";return ge(n=e?n:(e=nn()||{})?(e.userAgent||"").toLowerCase():"",We)?parseInt(n.split(We)[1]):ge(n,Ge)&&(n=parseInt(n.split(Ge)[1]))?n+4:null},c.getJSON=sn,c.getLocation=rn,c.getMsCrypto=ln,c.getNavigator=nn,c.getPerformance=an,c.getSetValue=Ae,c.getWindow=Xe,c.hasDocument=Ze,c.hasHistory=tn,c.hasJSON=un,c.hasNavigator=en,c.hasOwnProperty=oe,c.hasWindow=$e,c.initializePlugins=On,c.isArray=ve,c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFunction=ue,c.isIE=fn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ae,c.isReactNative=function(){var e=nn();return!(!e||!e.product)&&"ReactNative"===e.product},c.isString=he,c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.mwcRandom32=Et,c.mwcRandomSeed=Nt,c.newGuid=At,c.newId=_t,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Ft,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ae(r)&&ae(i))for(var e in i)!function(n){var e,t;he(n)&&(ue(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=bt,c.randomValue=St,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=(n||{}).cookieCfg[Qn]||ot(n)),t||rt(n,(e||{}).logger)},c.safeGetLogger=hn,c.setCookie=function(e,n,t,r){Ut(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setValue=Le,c.sortPlugins=Rn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=En,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Se,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=ft,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-core-js.min.js.map
{
"name": "@microsoft/applicationinsights-core-js",
"author": "Microsoft Application Insights Team",
"version": "2.6.1",
"version": "2.6.2",
"description": "Microsoft Application Insights Core Javascript SDK",

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

"globby": "^11.0.0",
"magic-string": "^0.25.7",
"@rollup/plugin-commonjs": "^15.1.0",

@@ -53,2 +54,3 @@ "@rollup/plugin-node-resolve": "^9.0.0",

"typescript": "2.5.3",
"tslib": "^1.13.0",
"qunit": "^2.9.1",

@@ -58,5 +60,5 @@ "sinon": "^7.3.1"

"dependencies": {
"@microsoft/applicationinsights-shims" : "1.0.3",
"@microsoft/dynamicproto-js": "^1.1.1"
"@microsoft/applicationinsights-shims" : "2.0.0",
"@microsoft/dynamicproto-js": "^1.1.2"
}
}

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

import {
getGlobal as shimsGetGlobal, strShimUndefined, strShimObject, strShimPrototype, strShimFunction
getGlobal, strShimUndefined, strShimObject, strShimPrototype, strShimFunction
} from "@microsoft/applicationinsights-shims";

@@ -18,7 +18,2 @@ import { strContains } from "./HelperFuncs";

export const strUndefined = strShimUndefined;
export const strObject = strShimObject;
export const strPrototype = strShimPrototype;
export const strFunction = strShimFunction;
const strWindow = "window";

@@ -51,16 +46,2 @@ const strDocument = "document";

/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
export const getGlobal:() => Window = shimsGetGlobal;
/**
* Return the named global object if available, will return null if the object is not available.

@@ -92,3 +73,3 @@ * @param name The globally named object

export function hasWindow(): boolean {
return Boolean(typeof window === strObject && window);
return Boolean(typeof window === strShimObject && window);
}

@@ -118,3 +99,3 @@

export function hasDocument(): boolean {
return Boolean(typeof document === strObject && document);
return Boolean(typeof document === strShimObject && document);
}

@@ -144,3 +125,3 @@

export function hasNavigator(): boolean {
return Boolean(typeof navigator === strObject && navigator);
return Boolean(typeof navigator === strShimObject && navigator);
}

@@ -169,3 +150,3 @@

export function hasHistory(): boolean {
return Boolean(typeof history === strObject && history);
return Boolean(typeof history === strShimObject && history);
}

@@ -199,3 +180,3 @@

if (typeof location === strObject && location) {
if (typeof location === strShimObject && location) {
return location;

@@ -211,3 +192,3 @@ }

export function getConsole(): Console | null {
if (typeof console !== strUndefined) {
if (typeof console !== strShimUndefined) {
return console;

@@ -236,3 +217,3 @@ }

export function hasJSON(): boolean {
return Boolean((typeof JSON === strObject && JSON) || getGlobalInst(strJSON) !== null);
return Boolean((typeof JSON === strShimObject && JSON) || getGlobalInst(strJSON) !== null);
}

@@ -239,0 +220,0 @@

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { strShimUndefined, strShimObject, strShimPrototype, strShimFunction, objCreateFn } from "@microsoft/applicationinsights-shims";
import {
strShimUndefined, strShimObject, strShimFunction, throwTypeError,
ObjClass, ObjProto, ObjAssign, ObjHasOwnProperty, ObjDefineProperty
} from "@microsoft/applicationinsights-shims";

@@ -13,9 +16,4 @@ // RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this file directly

const strRemoveEventListener = "removeEventListener";
const strHasOwnProperty = "hasOwnProperty";
const ObjClass = Object;
const ObjProto = ObjClass[strShimPrototype];
const _objHasOwnProperty = ObjProto[strHasOwnProperty];
const _objDefineProperty = ObjClass["defineProperty"];
const _objAssign = ObjClass["assign"];
const _objDefineProperty = ObjDefineProperty;
const _objFreeze = ObjClass["freeze"];

@@ -49,3 +47,3 @@ const _objSeal = ObjClass["seal"];

export function hasOwnProperty(obj: any, prop: string): boolean {
return obj && _objHasOwnProperty.call(obj, prop);
return obj && ObjHasOwnProperty.call(obj, prop);
};

@@ -139,3 +137,3 @@

for (let prop in target) {
if (_objHasOwnProperty.call(target, prop)) {
if (ObjHasOwnProperty.call(target, prop)) {
callbackfn.call(target, prop, target[prop]);

@@ -417,3 +415,3 @@ }

if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
throw new TypeError('objKeys called on non-object');
throwTypeError('objKeys called on non-object');
}

@@ -424,3 +422,3 @@

for (let prop in obj) {
if (obj && _objHasOwnProperty.call(obj, prop)) {
if (obj && ObjHasOwnProperty.call(obj, prop)) {
result.push(prop);

@@ -434,3 +432,3 @@ }

for (let lp = 0; lp < dontEnumsLength; lp++) {
if (obj && _objHasOwnProperty.call(obj, _objKeysDontEnums[lp])) {
if (obj && ObjHasOwnProperty.call(obj, _objKeysDontEnums[lp])) {
result.push(_objKeysDontEnums[lp]);

@@ -663,3 +661,3 @@ }

if (theObject) {
theObject = ObjClass(_objAssign ? _objAssign({}, theObject) : theObject);
theObject = ObjClass(ObjAssign ? ObjAssign({}, theObject) : theObject);
}

@@ -666,0 +664,0 @@

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

} from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
import {
strFunction, strPrototype
} from "./EnvUtils"
import { strShimFunction, strShimPrototype } from "@microsoft/applicationinsights-shims";
import { hasOwnProperty } from "./HelperFuncs";

@@ -163,3 +161,3 @@

// target[Constructor] May break if the constructor has been changed or removed
let newProto = target[str__Proto] || target[strPrototype] || target[strConstructor];
let newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor];
if(newProto) {

@@ -195,3 +193,3 @@ return newProto;

if (target) {
return InstrumentFunc(target[strPrototype], funcName, callbacks, false);
return InstrumentFunc(target[strShimPrototype], funcName, callbacks, false);
}

@@ -210,3 +208,3 @@

if (target) {
return InstrumentFuncs(target[strPrototype], funcNames, callbacks, false);
return InstrumentFuncs(target[strShimPrototype], funcNames, callbacks, false);
}

@@ -229,3 +227,3 @@

let fn = owner[funcName]
if (typeof fn === strFunction) {
if (typeof fn === strShimFunction) {
let aiHook:IInstrumentHooks = fn[aiInstrumentHooks];

@@ -232,0 +230,0 @@ if (!aiHook) {

@@ -10,4 +10,5 @@ {

"forceConsistentCasingInFileNames": true,
"importHelpers": false,
"importHelpers": true,
"noEmitHelpers": true,
"skipLibCheck": true,
"alwaysStrict": true,

@@ -14,0 +15,0 @@ "declaration": true,

@@ -1,2 +0,1 @@

import '@microsoft/applicationinsights-shims';
export { IConfiguration } from "./JavaScriptSDK.Interfaces/IConfiguration";

@@ -20,4 +19,4 @@ export { IChannelControls, MinChannelPriorty } from "./JavaScriptSDK.Interfaces/IChannelControls";

export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal } from './JavaScriptSDK/HelperFuncs';
export { getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks } from "./JavaScriptSDK/EnvUtils";
export { objCreateFn as objCreate } from '@microsoft/applicationinsights-shims';
export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, setEnableEnvMocks } from "./JavaScriptSDK/EnvUtils";
export { getGlobal, objCreateFn as objCreate, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from '@microsoft/applicationinsights-shims';
export { NotificationManager } from "./JavaScriptSDK/NotificationManager";

@@ -24,0 +23,0 @@ export { INotificationManager } from "./JavaScriptSDK.Interfaces/INotificationManager";

/**
* This file exists to hold environment utilities that are required to check and
* validate the current operating environment. Unless otherwise required, please
* only defined methods (functions) in this class so that users of these
* functions/properties only need to include those that are used within their own modules.
*/
export declare const strUndefined = "undefined";
export declare const strObject = "object";
export declare const strPrototype = "prototype";
export declare const strFunction = "function";
/**
* Enable the lookup of test mock objects if requested

@@ -17,15 +7,2 @@ * @param enabled

/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
export declare const getGlobal: () => Window;
/**
* Return the named global object if available, will return null if the object is not available.

@@ -32,0 +9,0 @@ * @param name The globally named object

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

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.13.2"
"packageVersion": "7.14.0"
}
]
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc