@microsoft/applicationinsights-properties-js 2.7.4-nightly.2202-05 → 2.8.0-nightly.2202-06
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +5 -5
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +5 -5
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +2 -2
- package/dist-esm/Context/Internal.js.map +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/PropertiesPlugin.js +1 -1
- package/dist-esm/TelemetryContext.js +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +3 -3
- package/src/Context/Internal.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 2.
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 2.8.0-nightly.2202-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(n){"use strict";var s="function",u="object",r="undefined",o="prototype",i="hasOwnProperty",t=Object,l=t[o],f=t.create,d=t.defineProperty,y=l[i],x=null;function S(e){return void 0===e&&(e=!0),x&&e||(typeof globalThis!==r&&globalThis&&(x=globalThis),typeof self!==r&&self&&(x=self),typeof window!==r&&window&&(x=window),typeof global!==r&&global&&(x=global)),x}function w(e){throw new TypeError(e)}(S()||{}).Symbol,(S()||{}).Reflect;var T=function(e,n){return(T=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 N(e,n){function t(){this.constructor=e}typeof n!==s&&null!==n&&w("Class extends value "+n+" is not a constructor or null"),T(e,n),e[o]=null===n?function(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==s&&w("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var A="constructor",k="prototype",b="function",M="_dynInstFuncs",P="_isDynProxy",L="_dynClass",R="_dynInstChk",D=R,E="_dfOpts",U="_unknown_",F="__proto__",_="useBaseInst",O="setInstFuncs",B=Object,V=B.getPrototypeOf,j=0;function W(e,n){return e&&B[k].hasOwnProperty.call(e,n)}function q(e){return e&&(e===B[k]||e===Array[k])}function G(e){return q(e)||e===Function[k]}function K(e){if(e){if(V)return V(e);e=e[F]||e[k]||(e[A]?e[A][k]:null);if(e)return e}return null}function z(e,n){var t=[],o=B.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&W(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function H(e,n,t){return n!==A&&typeof e[n]===b&&(t||W(e,n))}function J(e){throw new TypeError("DynamicProto: "+e)}function Z(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function X(e,n){return W(e,k)?e.name||n||U:((e||{})[A]||{}).name||n||U}function Y(e,o,n,t){W(e,k)||J("theClass is an invalid class definition.");var c,r,i,a,f,d,s=e[k],u=(function(e){if(V)for(var n=[],t=K(o);t&&!G(t)&&!Z(n,t);){if(t===e)return 1;n.push(t),t=K(t)}}(s)||J("["+X(e)+"] is not in class hierarchy of ["+X(o)+"]"),null),e=(W(s,L)?u=s[L]:(u="_dynCls$"+X(e,"_")+"$"+j,j++,s[L]=u),Y[E]),l=!!e[_],g=(l&&t&&t[_]!==undefined&&(l=!!t[_]),r={},z(c=o,function(e){!r[e]&&H(c,e,!1)&&(r[e]=c[e])}),r),l=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[P]&&i&&!1!==(o=e[M]||{})[D]&&(r=(o[n[L]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(z(t,function(e){r[e]=o(n,t,e)}),K(e)),s=[];a&&!G(a)&&!Z(s,a);)z(a,function(e){!r[e]&&H(a,e,!V)&&(r[e]=o(n,a,e))}),s.push(a),a=K(a);return r}(s,o,g,l)),!!V&&!!e[O]);i=s,n=u,a=o,f=g,e=!1!==(l=l&&t?!!t[O]:l),q(i)||(s=a[M]=a[M]||{},d=s[n]=s[n]||{},!1!==s[D]&&(s[D]=!!e),z(a,function(e){var t,o,r;H(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],W(i,e)&&(!i[e]||i[e][P])||(i[e]=(t=i,o=e,(r=function(){var e,n;return(function(e,n,t,c){var o=null;if(e&&W(t,L)){var r=e[M]||{};if((o=(r[t[L]]||{})[n])||J("Missing ["+n+"] "+b),!o[R]&&!1!==r[D]){for(var i=!W(e,n),a=K(e),s=[];i&&a&&!G(a)&&!Z(s,a);){var u=a[n];if(u){i=u===c;break}s.push(a),a=K(a)}try{i&&(e[n]=o),o[R]=1}catch(l){r[D]=!1}}}return o}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?K(t)[e]:n)!==b&&J("["+e+"] is not a "+b),n)).apply(this,arguments)})[P]=1,r)))}))}Y[E]={setInstFuncs:!0,useBaseInst:!0},(e=p=p||{})[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING";var p,v={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},$="toISOString",Q="endsWith",ee="trim",ne="keys",e="toString",te=d,d=String[o],oe=d[ee],re=d[Q],ie=Date[o][$],d=Array.isArray,ae=l[e];function se(e){return e===undefined||typeof e===r}function g(e){return null===e||se(e)}function ue(e){return!g(e)}function h(e){return!(!e||typeof e!==s)}function le(e,n){if(e)for(var t in e)y.call(e,t)&&n.call(e,t,e[t])}function m(e,n){return!(!e||!n||!~e.indexOf(n))}y[e].call(t);var ce=d||function(e){return!(!e||"[object Array]"!==ae.call(e))};function C(e){return"string"==typeof e}function fe(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function de(e){return e&&(oe&&e[ee]?e[ee]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var ge=!{toString:null}.propertyIsEnumerable("toString"),pe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ve(){var e=Date;return e.now?e.now():(new e).getTime()}function he(e){return e&&"[object Error]"===ae.call(e)?e.name:""}function I(e,n,t,o,r){var i=t;return e&&((i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)),i}function a(e,n,t){var o;return e?!(o=e[n])&&g(o)&&(o=se(t)?{}:t,e[n]=o):o=se(t)?{}:t,o}function me(e){return!!e}var Ce="window",Ie="navigator",ye="location",xe="JSON",Se="msie",we="trident/",Te=null,Ne=null,Ae=!1;function ke(e){var n=S();return n&&n[e]?n[e]:e===Ce&&be()?window:null}function be(){return typeof window===u&&window}function Me(){return typeof navigator===u&&navigator?navigator:ke(Ie)}function Pe(e){if(e&&Ae){e=ke("__mockLocation");if(e)return e}return typeof location===u&&location?location:ke(ye)}function Le(){return typeof JSON===u&&JSON||null!==ke(xe)}function Re(){return Le()?JSON||ke(xe):null}function De(){var e=Me();return!e||e.userAgent===Ne&&null!==Te||(e=((Ne=e.userAgent)||"").toLowerCase(),Te=m(e,Se)||m(e,we)),Te}function Ee(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Le()&&(t=Re().stringify(e)),n+t}var Ue=null;function Fe(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function _e(e,n){var t,o=typeof console!==r?console:ke("console");o&&(t="log",h(o[t=o[e]?e:t])&&o[t](n))}Be.dataType="MessageData";var Oe=Be;function Be(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",Le()&&(t=Re().stringify(o)),e=(n?" message:"+Fe(n):"")+(o?" props:"+Fe(t):"");this.message+=e}function Ve(e,n){return(e||{}).logger||new je(n)}var je=function Tt(r){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};Y(Tt,this,function(i){function e(e,n){e=r[e];return g(e)?n:e}function a(e,n){var t,o=(t=(t=Ue)||!0===r.disableDbgExt?t:Ue||(o=ke("Microsoft"),Ue=o?o.ApplicationInsights:Ue))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}g(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new Oe(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=e===p.CRITICAL?"errorToConsole":"warnToConsole";se(n.message)?a("throw"+(e===p.CRITICAL?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!u[r]&&e<=o&&(i[t](n.message),u[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){_e("warn",e),a("warning",e)},i.errorToConsole=function(e){_e("error",e),a("error",e)},i.resetInternalMessageCount=function(){s=0,u={}},i.logInternalMessage=function(e,n){var t,o;s>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,u[t]?o=!1:u[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),s++,a(e===p.CRITICAL?"error":"warn",n)),s===i.maxInternalMessageLimit()&&(o=new Oe(v.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),e===p.CRITICAL?i.errorToConsole(t):i.warnToConsole(t))))}})},We=(qe.ParentContextKey="parent",qe.ChildrenContextKey="childEvts",qe);function qe(e,r,n){var o,i=this,a=!1;i.start=ve(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},h(r)&&(a=function(e){if(te)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&h(r)&&(o=r(),r=null),o}};return te(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===qe.ParentContextKey||e===qe.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===qe.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===qe.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(qe.ChildrenContextKey);if(ce(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=ve()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&h(r)&&(i.payload=r())}}var Ge="CoreUtils.doPerf";function Ke(e,n,t,o,r){if(e)if(e=h(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,s=e.getCtx(Ge);try{if(a=e.create(n(),o,r))return s&&a.setCtx&&(a.setCtx(We.ParentContextKey,s),s.getCtx&&s.setCtx&&((i=s.getCtx(We.ChildrenContextKey))||(i=[],s.setCtx(We.ChildrenContextKey,i)),i.push(a))),e.setCtx(Ge,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(Ge,s)}}return t()}var ze=function(r,n){var i=this,a=null,s=h(r.processTelemetry),u=h(r.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return r},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,o){o=o||n;var e=r?r.identifier:"TelemetryPluginChain";Ke(o?o.core():null,function(){return e+":processTelemetry"},function(){if(r&&s){i._hasRun=!0;try{o.setNext(a),u&&r.setNextPlugin(a),a&&(a._hasRun=!1),r.processTelemetry(t,o)}catch(n){var e=a&&a._hasRun;a&&e||o.diagLog().throwInternal(p.CRITICAL,v.PluginException,"Plugin ["+r.identifier+"] failed during processTelemetry - "+Ee(n)),a&&!e&&a.processTelemetry(t,o)}}else a&&(i._hasRun=!0,a.processTelemetry(t,o))},function(){return{item:t}},!t.sync)}};function He(e,n){var t=[];if(e&&0<e.length)for(var o=null,r=0;r<e.length;r++){var i=e[r];i&&h(i.processTelemetry)&&(i=new ze(i,n),t.push(i),o&&o.setNext(i),o=i)}return 0<t.length?t[0]:null}var Je=function Nt(e,r,t,n){var o,i,a,s,u=this,l=null;null!==n&&(e&&h(e.getPlugin)?l=function(e,n,t){var o=[],r=!t;if(e)for(;e;){var i=e.getPlugin();!r&&i!==t||(r=!0,o.push(i)),e=e.getNext()}return r||o.push(t),He(o,n)}(e,u,n||e.getPlugin()):n?(o=u,a=e,s=!1,(i=n)&&e&&(a=[],fe(e,function(e){!s&&e!==i||(s=!0,a.push(e))})),i&&!s&&(a=a||[]).push(i),l=He(a,o)):se(n)&&(l=He(e,u))),u.core=function(){return t},u.diagLog=function(){return Ve(t,r)},u.getCfg=function(){return r},u.getExtCfg=function(e,n){var t,o;return void 0===n&&(n={}),!r||(o=r.extensionConfig)&&e&&(t=o[e]),t||n},u.getConfig=function(e,n,t){void 0===t&&(t=!1);var o,e=u.getExtCfg(e,null);return e&&!g(e[n])?o=e[n]:r&&!g(r[n])&&(o=r[n]),g(o)?t:o},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new Nt((e=void 0===e?null:e)||l,r,t,n)}},Ze="getPlugin",l=(Xe.prototype.initialize=function(e,n,t,o){this._baseTelInit(e,n,t,o)},Xe);function Xe(){var i=this,a=!1,s=null,u=null;i.core=null,i.diagLog=function(e){return i._getTelCtx(e).diagLog()},i.isInitialized=function(){return a},i.setInitialized=function(e){a=e},i.setNextPlugin=function(e){u=e},i.processNext=function(e,n){n?n.processNext(e):u&&h(u.processTelemetry)&&u.processTelemetry(e,null)},i._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=s||new Je(null,{},i.core),e=u&&u[Ze]?n.createNew(null,u[Ze]):n.createNew(null,u)),e},i._baseTelInit=function(e,n,t,o){e&&I(e,"extensionConfig",[],null,g),!o&&n&&(o=n.getProcessTelContext().getNext());var r=u;u&&u[Ze]&&(r=u[Ze]()),i.core=n,s=new Je(o,e,n,r),a=!0}}var Ye="toGMTString",$e="toUTCString",Qe="cookie",en="expires",nn="enabled",tn="isCookieUseDisabled",on="disableCookiesUsage",rn="_ckMgr",an="",sn=null,un=null,ln=null,cn=typeof document===u&&document?document:ke("document"),fn={},dn={};function gn(e){return!e||e.isEnabled()}function pn(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[rn]||vn(n)),t||(e=(e||{}).logger,(o=vn[rn]||dn[rn])||(o=vn[rn]=vn(n,e),dn[rn]=o),t=o),t}function vn(e,r){I(t=(e=e||dn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ue,g),I(t,"path",e.cookiePath||"/",null,g),g(t[nn])&&(n=void 0,se(e[tn])||(n=!e[tn]),se(e[on])||(n=!e[on]),t[nn]=n);var n,t,l=t,c=l.path||"/",f=l.domain,o=!1!==l[nn],d={isEnabled:function(){var e=o&&hn(r),n=dn[rn];return e&&n&&d!==n?gn(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,s,u=!1;return gn(d)&&(i={},-1!=(s=(a=de(n||an)).indexOf(";"))&&(a=de(n.substring(0,s)),i=mn(n.substring(1+s))),I(i,"domain",o||f,me,se),g(t)||(s=De(),!se(i[en])||0<(n=ve()+1e3*t)&&((o=new Date).setTime(n),I(i,en,Cn(o,s?Ye:$e)||Cn(o,s?Ye:$e)||an,me)),s||I(i,"max-age",an+t,null,se)),(n=Pe())&&"https:"===n.protocol&&(I(i,"secure",null,null,se),(un=null===un?!(C(o=(Me()||{}).userAgent)&&(m(o,"CPU iPhone OS 12")||m(o,"iPad; CPU OS 12")||m(o,"Macintosh; Intel Mac OS X 10_14")&&m(o,"Version/")&&m(o,"Safari")||m(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(re)return e[Q](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||m(o,"Chrome/5")||m(o,"Chrome/6")||m(o,"UnrealEngine")&&!m(o,"Chrome")||m(o,"UCBrowser/12")||m(o,"UCBrowser/11"))):un)&&I(i,"SameSite","None",null,se)),I(i,"path",r||c,null,se),(l.setCookie||yn)(e,In(a,i)),u=!0),u},get:function(e){var n=an;return gn(d)?(l.getCookie||function(e){var n,t=an;return cn&&(n=cn[Qe]||an,ln!==n&&(fn=mn(n),ln=n),t=de(fn[e]||an)),t})(e):n},del:function(e,n){return!!gn(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return hn(r)&&((t={}).path=n||"/",t[en]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,De()||(n["max-age"]="0"),(l.delCookie||yn)(e,In(an,n)),o=!0),o}};return d[rn]=d}function hn(e){if(null===sn){sn=!1;try{sn=(cn||{})[Qe]!==undefined}catch(n){e&&e.throwInternal(p.WARNING,v.CannotAccessCookie,"Cannot access document.cookie - "+he(n),{exception:Ee(n)})}}return sn}function mn(e){var t={};return e&&e.length&&fe(de(e).split(";"),function(e){var n;(e=de(e||an))&&(-1==(n=e.indexOf("="))?t[e]=null:t[de(e.substring(0,n))]=de(e.substring(1+n)))}),t}function Cn(e,n){return h(e[n])?e[n]():null}function In(e,n){var t=e||an;return le(n,function(e,n){t+="; "+e+(g(n)?an:"="+n)}),t}function yn(e,n){cn&&(cn[Qe]=e+"="+n)}var xn=4294967296,Sn=4294967295,wn=!1,Tn=123456789,Nn=987654321;function An(e){var n=ke("crypto")||ke("msCrypto"),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Sn:De()?(wn||function(){try{var e=2147483647&ve();(n=(Math.random()*xn^e)+e)<0&&(n>>>=0),Tn=123456789+n&Sn,Nn=987654321-n&Sn,wn=!0}catch(t){}var n}(),n=((Nn=36969*(65535&Nn)+(Nn>>16)&Sn)<<16)+(65535&(Tn=18e3*(65535&Tn)+(Tn>>16)&Sn))>>>0&Sn|0,(n>>>=0)&Sn):Math.floor(xn*Math.random()|0);return e||(n>>>=0),n}function kn(e){void 0===e&&(e=22);for(var n=An()>>>0,t=0,o="";o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(An()<<2&4294967295|3&n)>>>0,t=0);return o}function bn(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=de(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(p.WARNING,v.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(o=void 0,(o="00"+s).substr(o.length-3));a=u}return a}function Mn(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=de(n)).toString().length>t&&(o=n.toString().substring(0,t),e&&e.throwInternal(p.WARNING,v.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function Pn(o,e){var r;return e&&(r={},le(e,function(e,n){if(n&&typeof n===u&&Le())try{n=Re().stringify(n)}catch(t){o&&o.throwInternal(p.WARNING,v.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Mn(o,n,8192),e=bn(o,e,r),r[e]=n}),e=r),e}function Ln(e,n,t,o){var r;return n&&(n=de(n)).length>t&&(r=n.substring(0,t),e&&e.throwInternal(p.WARNING,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}(e=Rn=Rn||{})[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage";var Rn,Dn,En=undefined;function Un(){return _n()?Fn(Rn.LocalStorage):null}function Fn(e){try{if(g(S()))return null;var n=new Date,t=ke(e===Rn.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!o)return t}catch(r){}return null}function _n(){return En=En===undefined?!!Fn(Rn.LocalStorage):En}function On(e,n){var t=Un();if(null!==t)try{return t.getItem(n)}catch(o){En=!1,e.throwInternal(p.WARNING,v.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+he(o),{exception:Ee(o)})}return null}function Bn(e,n,t){var o=Un();if(null!==o)try{return o.setItem(n,t),1}catch(r){En=!1,e.throwInternal(p.WARNING,v.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+he(r),{exception:Ee(r)})}}function Vn(e,n){var t=Un();if(null!==t)try{return t.removeItem(n),1}catch(o){En=!1,e.throwInternal(p.WARNING,v.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+he(o),{exception:Ee(o)})}}function jn(){var e=Dn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}N(jn,Dn=function(){this.ver=2,this.properties={},this.measurements={}}),N(Gn,Wn=jn),Gn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Gn.dataType="PageviewData";var Wn,qn=Gn;function Gn(e,n,t,o,r,c,i){var a,s,u,l=Wn.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},l.id=i&&Ln(e,i,128,v.IdTooLong).toString(),l.url=Ln(e,t,2048,v.UrlTooLong),l.name=Mn(e,n)||"not_specified",isNaN(o)||(l.duration=(t=""+Math.floor((i=Math.round(i=isNaN(i=o)||i<0?0:i))/1e3)%60,n=1===(n=""+i%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(i/6e4)%60).length<2?"0"+o:o,(0<(a=Math.floor(i/864e5))?a+".":"")+(a=(a=""+Math.floor(i/36e5)%24).length<2?"0"+a:a)+":"+o+":"+t+"."+n)),l.properties=Pn(e,r),l.measurements=(s=e,(i=c)&&(u={},le(i,function(e,n){e=bn(s,e,u),u[e]=n}),i=u),i),l}function Kn(e){var n="ai."+e+".";return function(e){return n+e}}var zn,Hn,d=Kn("application"),e=Kn("device"),Jn=Kn("location"),Zn=Kn("operation"),Xn=Kn("session"),Yn=Kn("user"),$n=Kn("cloud"),Qn=Kn("internal");function et(){return zn.call(this)||this}Hn={applicationVersion:d("ver"),applicationBuild:d("build"),applicationTypeId:d("typeId"),applicationId:d("applicationId"),applicationLayer:d("layer"),deviceId:e("id"),deviceIp:e("ip"),deviceLanguage:e("language"),deviceLocale:e("locale"),deviceModel:e("model"),deviceFriendlyName:e("friendlyName"),deviceNetwork:e("network"),deviceNetworkName:e("networkName"),deviceOEMName:e("oemName"),deviceOS:e("os"),deviceOSVersion:e("osVersion"),deviceRoleInstance:e("roleInstance"),deviceRoleName:e("roleName"),deviceScreenResolution:e("screenResolution"),deviceType:e("type"),deviceMachineName:e("machineName"),deviceVMName:e("vmName"),deviceBrowser:e("browser"),deviceBrowserVersion:e("browserVersion"),locationIp:Jn("ip"),locationCountry:Jn("country"),locationProvince:Jn("province"),locationCity:Jn("city"),operationId:Zn("id"),operationName:Zn("name"),operationParentId:Zn("parentId"),operationRootId:Zn("rootId"),operationSyntheticSource:Zn("syntheticSource"),operationCorrelationVector:Zn("correlationVector"),sessionId:Xn("id"),sessionIsFirst:Xn("isFirst"),sessionIsNew:Xn("isNew"),userAccountAcquisitionDate:Yn("accountAcquisitionDate"),userAccountId:Yn("accountId"),userAgent:Yn("userAgent"),userId:Yn("id"),userStoreRegion:Yn("storeRegion"),userAuthUserId:Yn("authUserId"),userAnonymousUserAcquisitionDate:Yn("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Yn("authUserAcquisitionDate"),cloudName:$n("name"),cloudRole:$n("role"),cloudRoleVer:$n("roleVer"),cloudRoleInstance:$n("roleInstance"),cloudEnvironment:$n("environment"),cloudLocation:$n("location"),cloudDeploymentUnit:$n("deploymentUnit"),internalNodeName:Qn("nodeName"),internalSdkVersion:Qn("sdkVersion"),internalAgentVersion:Qn("agentVersion"),internalSnippet:Qn("snippet"),internalSdkSrc:Qn("sdkSrc")},N(et,zn=function(){var t=this;le(Hn,function(e,n){t[e]=n})});var nt="user",tt="device",ot="trace",rt="web",it="app",at="os",st=new et,ut=function(){},lt=(ct.acquisitionSpan=864e5,ct.renewalSpan=18e5,ct.cookieUpdateInterval=6e4,ct);function ct(n,e){var c,f,d=Ve(e),g=pn(e);Y(ct,this,function(s){h((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return ct.acquisitionSpan}),h(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return ct.renewalSpan}),s.config=n;var e=s.config.sessionCookiePostfix&&s.config.sessionCookiePostfix()?s.config.sessionCookiePostfix():s.config.namePrefix&&s.config.namePrefix()?s.config.namePrefix():"";function u(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?d.throwInternal(p.WARNING,v.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(p.WARNING,v.SessionRenewalDateIsZero,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(s){d.throwInternal(p.CRITICAL,v.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+he(s),{exception:Ee(s)})}return t}function l(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,s.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(c(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}c=function(){return"ai_session"+e},s.automaticSession=new ut,s.update=function(){var e,n,t,o=ve(),r=!1,i=s.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(c()))&&h(a.split)?t=u(n,a):(a=On(d,c()))&&(t=u(n,a)),r=!(t||n.id)),s.config.sessionExpirationMs());!r&&0<a&&(t=s.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=s.config||{}).getNewId?n.getNewId():null)||kn,s.automaticSession.id=t(n.idLength?n.idLength():22),s.automaticSession.acquisitionDate=a,l(s.automaticSession,a),_n()||d.throwInternal(p.WARNING,v.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||ct.cookieUpdateInterval<o-f)&&l(i,o)},s.backup=function(){var e=s.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;Bn(d,c(),[n,t,e].join("|"))}})}var ft=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.7.4-nightly.2202-05"};function pt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}c.cookieSeparator="|",c.userCookieName="ai_user",c.authUserCookieName="ai_authUser";var vt=c;function c(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var s,u=Ve(e),l=pn(e);Y(c,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(s=function(){return c.userCookieName+e},l.get(s()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||kn)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(ie)return e[$]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=l.set(s(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(c.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(c.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",Vn(u,n)),o.accountId=a.accountId?a.accountId():undefined;var n=l.get(c.authUserCookieName);n&&((n=(n=decodeURI(n)).split(c.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!pt(e)||n&&!pt(n)?u.throwInternal(p.WARNING,v.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(c.cookieSeparator)),t&&l.set(c.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,l.del(c.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(c.cookieSeparator))}})}var ht=function(){},mt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",o=0;o<4;o++)t+=n[15&(e=An())]+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 r=n[8+(3&An())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,Pe());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=Mn(o,r.name)},Ct="ext",It="tags";function yt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===s||n===u&&null!==e||w("objKeys called on non-object"),!ge&&e[ne])return e[ne]();var t,o=[];for(t in e)e&&y.call(e,t)&&o.push(t);if(ge)for(var r=pe.length,i=0;i<r;i++)e&&y.call(e,pe[i])&&o.push(pe[i]);return o}(e[n]).length&&delete e[n]}var xt,St=function At(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},Y(At,this,function(r){r.application=new ft,r.internal=new gt(n),be()&&(r.sessionManager=new lt(n,e),r.device=new dt,r.location=new ht,r.user=new vt(n,e),r.telemetryTrace=new mt(undefined,undefined,undefined,t),r.session=new ut),r.getSessionId=function(){var e=r.session;return e&&C(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&C(e.id)?e.id:null},r.applySessionContext=function(e,n){I(a(e.ext,it),"sesId",r.getSessionId(),C)},r.applyOperatingSystemContxt=function(e,n){I(e.ext,at,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(I(e=a(e,It),st.applicationVersion,t.ver,C),I(e,st.applicationBuild,t.build,C))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(I(e=a(a(e,Ct),tt),"localId",t.id,C),I(e,"ip",t.ip,C),I(e,"model",t.model,C),I(e,"deviceClass",t.deviceClass,C))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(I(t=a(e,It),st.internalAgentVersion,o.agentVersion,C),I(t,st.internalSdkVersion,o.sdkVersion,C),e.baseType!==Oe.dataType&&e.baseType!==qn.dataType||(I(t,st.internalSnippet,o.snippetVer,C),I(t,st.internalSdkSrc,o.sdkSrc,C)))},r.applyLocationContext=function(e,n){var t=o.location;t&&I(a(e,It,[]),st.locationIp,t.ip,C)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(I(e=a(a(e,Ct),ot,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,C),I(e,"name",t.name,C),I(e,"parentID",t.parentID,C))},r.applyWebContext=function(e,n){var t=o.web;t&&I(a(e,Ct),rt,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(I(a(e,It,[]),st.userAccountId,t.accountId,C),I(e=a(a(e,Ct),nt),"id",t.id,C),I(e,"authId",t.authenticatedId,C))},r.cleanUp=function(e,n){e=e.ext;e&&(yt(e,tt),yt(e,nt),yt(e,rt),yt(e,at),yt(e,it),yt(e,ot))}})};function wt(){var l,c,e=xt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",Y(wt,e,function(s,u){s.initialize=function(e,n,t,o){u.initialize(e,n,t,o);var r,i=s._getTelCtx(),a=s.identifier,e=wt.getDefaultConfig();c=c||{},le(e,function(e,n){c[e]=function(){return i.getConfig(a,e,n())}}),s.context=new St(n,c),r=null,fe(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),l=r,s.context.appId=function(){return l?l._appId:null},s._extConfig=c},s.processTelemetry=function(e,n){var t,o,r,i;g(e)||(n=s._getTelCtx(n),e.name===qn.envelopeType&&n.diagLog().resetInternalMessageCount(),(r=s.context||{}).session&&"string"!=typeof s.context.session.id&&r.sessionManager&&r.sessionManager.update(),(t=r.user)&&!t.isUserCookieSet&&t.update(r.user.id),r=n,a(o=e,"tags",[]),a(o,"ext",{}),(i=s.context).applySessionContext(o,r),i.applyApplicationContext(o,r),i.applyDeviceContext(o,r),i.applyOperationContext(o,r),i.applyUserContext(o,r),i.applyOperatingSystemContxt(o,r),i.applyWebContext(o,r),i.applyLocationContext(o,r),i.applyInternalContext(o,r),i.cleanUp(o,r),t&&t.isNewUser&&(t.isNewUser=!1,o=new Oe(v.SendBrowserInfoOnUserInit,(Me()||{}).userAgent||""),n.diagLog().logInternalMessage(p.CRITICAL,o)),s.processNext(e,n))}}),e}N(wt,xt=l),wt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},n.PropertiesPlugin=wt,n.Session=ut,n.SessionManager=lt,n.TelemetryContext=St,n.TelemetryTrace=mt;d=n,e="__esModule",Jn={value:!0},Zn=Object.defineProperty;if(Zn)try{return void Zn(d,e,Jn)}catch(kt){}typeof Jn.value!==undefined&&(d[e]=Jn.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
5
|
+
var e=this,n=function(n){"use strict";var s="function",u="object",r="undefined",o="prototype",i="hasOwnProperty",t=Object,l=t[o],f=t.create,d=t.defineProperty,y=l[i],x=null;function S(e){return void 0===e&&(e=!0),x&&e||(typeof globalThis!==r&&globalThis&&(x=globalThis),typeof self!==r&&self&&(x=self),typeof window!==r&&window&&(x=window),typeof global!==r&&global&&(x=global)),x}function w(e){throw new TypeError(e)}(S()||{}).Symbol,(S()||{}).Reflect;var T=function(e,n){return(T=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 N(e,n){function t(){this.constructor=e}typeof n!==s&&null!==n&&w("Class extends value "+n+" is not a constructor or null"),T(e,n),e[o]=null===n?function(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==s&&w("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var A="constructor",k="prototype",b="function",M="_dynInstFuncs",P="_isDynProxy",L="_dynClass",R="_dynInstChk",D=R,E="_dfOpts",U="_unknown_",F="__proto__",_="useBaseInst",O="setInstFuncs",B=Object,V=B.getPrototypeOf,j=0;function W(e,n){return e&&B[k].hasOwnProperty.call(e,n)}function q(e){return e&&(e===B[k]||e===Array[k])}function G(e){return q(e)||e===Function[k]}function K(e){if(e){if(V)return V(e);e=e[F]||e[k]||(e[A]?e[A][k]:null);if(e)return e}return null}function z(e,n){var t=[],o=B.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&W(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function H(e,n,t){return n!==A&&typeof e[n]===b&&(t||W(e,n))}function J(e){throw new TypeError("DynamicProto: "+e)}function Z(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function X(e,n){return W(e,k)?e.name||n||U:((e||{})[A]||{}).name||n||U}function Y(e,o,n,t){W(e,k)||J("theClass is an invalid class definition.");var c,r,i,a,f,d,s=e[k],u=(function(e){if(V)for(var n=[],t=K(o);t&&!G(t)&&!Z(n,t);){if(t===e)return 1;n.push(t),t=K(t)}}(s)||J("["+X(e)+"] is not in class hierarchy of ["+X(o)+"]"),null),e=(W(s,L)?u=s[L]:(u="_dynCls$"+X(e,"_")+"$"+j,j++,s[L]=u),Y[E]),l=!!e[_],g=(l&&t&&t[_]!==undefined&&(l=!!t[_]),r={},z(c=o,function(e){!r[e]&&H(c,e,!1)&&(r[e]=c[e])}),r),l=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[P]&&i&&!1!==(o=e[M]||{})[D]&&(r=(o[n[L]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(z(t,function(e){r[e]=o(n,t,e)}),K(e)),s=[];a&&!G(a)&&!Z(s,a);)z(a,function(e){!r[e]&&H(a,e,!V)&&(r[e]=o(n,a,e))}),s.push(a),a=K(a);return r}(s,o,g,l)),!!V&&!!e[O]);i=s,n=u,a=o,f=g,e=!1!==(l=l&&t?!!t[O]:l),q(i)||(s=a[M]=a[M]||{},d=s[n]=s[n]||{},!1!==s[D]&&(s[D]=!!e),z(a,function(e){var t,o,r;H(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],W(i,e)&&(!i[e]||i[e][P])||(i[e]=(t=i,o=e,(r=function(){var e,n;return(function(e,n,t,c){var o=null;if(e&&W(t,L)){var r=e[M]||{};if((o=(r[t[L]]||{})[n])||J("Missing ["+n+"] "+b),!o[R]&&!1!==r[D]){for(var i=!W(e,n),a=K(e),s=[];i&&a&&!G(a)&&!Z(s,a);){var u=a[n];if(u){i=u===c;break}s.push(a),a=K(a)}try{i&&(e[n]=o),o[R]=1}catch(l){r[D]=!1}}}return o}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?K(t)[e]:n)!==b&&J("["+e+"] is not a "+b),n)).apply(this,arguments)})[P]=1,r)))}))}Y[E]={setInstFuncs:!0,useBaseInst:!0},(e=p=p||{})[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING";var p,v={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},$="toISOString",Q="endsWith",ee="trim",e="toString",ne=d,te=t.keys,d=String[o],oe=d[ee],re=d[Q],ie=Date[o][$],d=Array.isArray,ae=l[e];function se(e){return e===undefined||typeof e===r}function g(e){return null===e||se(e)}function ue(e){return!g(e)}function h(e){return!(!e||typeof e!==s)}function le(e,n){if(e)for(var t in e)y.call(e,t)&&n.call(e,t,e[t])}function m(e,n){return!(!e||!n||!~e.indexOf(n))}y[e].call(t);var ce=d||function(e){return!(!e||"[object Array]"!==ae.call(e))};function C(e){return"string"==typeof e}function fe(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function de(e){return e&&(oe&&e[ee]?e[ee]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var ge=!{toString:null}.propertyIsEnumerable("toString"),pe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ve(){var e=Date;return e.now?e.now():(new e).getTime()}function he(e){return e&&"[object Error]"===ae.call(e)?e.name:""}function I(e,n,t,o,r){var i=t;return e&&((i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)),i}function a(e,n,t){var o;return e?!(o=e[n])&&g(o)&&(o=se(t)?{}:t,e[n]=o):o=se(t)?{}:t,o}function me(e){return!!e}var Ce="window",Ie="navigator",ye="location",xe="JSON",Se="msie",we="trident/",Te=null,Ne=null,Ae=!1;function ke(e){var n=S();return n&&n[e]?n[e]:e===Ce&&be()?window:null}function be(){return typeof window===u&&window}function Me(){return typeof navigator===u&&navigator?navigator:ke(Ie)}function Pe(e){if(e&&Ae){e=ke("__mockLocation");if(e)return e}return typeof location===u&&location?location:ke(ye)}function Le(){return typeof JSON===u&&JSON||null!==ke(xe)}function Re(){return Le()?JSON||ke(xe):null}function De(){var e=Me();return!e||e.userAgent===Ne&&null!==Te||(e=((Ne=e.userAgent)||"").toLowerCase(),Te=m(e,Se)||m(e,we)),Te}function Ee(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Le()&&(t=Re().stringify(e)),n+t}var Ue=null;function Fe(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function _e(e,n){var t,o=typeof console!==r?console:ke("console");o&&(t="log",h(o[t=o[e]?e:t])&&o[t](n))}Be.dataType="MessageData";var Oe=Be;function Be(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",Le()&&(t=Re().stringify(o)),e=(n?" message:"+Fe(n):"")+(o?" props:"+Fe(t):"");this.message+=e}function Ve(e,n){return(e||{}).logger||new je(n)}var je=function Tt(r){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};Y(Tt,this,function(i){function e(e,n){e=r[e];return g(e)?n:e}function a(e,n){var t,o=(t=(t=Ue)||!0===r.disableDbgExt?t:Ue||(o=ke("Microsoft"),Ue=o?o.ApplicationInsights:Ue))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}g(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new Oe(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=e===p.CRITICAL?"errorToConsole":"warnToConsole";se(n.message)?a("throw"+(e===p.CRITICAL?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!u[r]&&e<=o&&(i[t](n.message),u[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){_e("warn",e),a("warning",e)},i.errorToConsole=function(e){_e("error",e),a("error",e)},i.resetInternalMessageCount=function(){s=0,u={}},i.logInternalMessage=function(e,n){var t,o;s>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,u[t]?o=!1:u[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),s++,a(e===p.CRITICAL?"error":"warn",n)),s===i.maxInternalMessageLimit()&&(o=new Oe(v.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),e===p.CRITICAL?i.errorToConsole(t):i.warnToConsole(t))))}})},We=(qe.ParentContextKey="parent",qe.ChildrenContextKey="childEvts",qe);function qe(e,r,n){var o,i=this,a=!1;i.start=ve(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},h(r)&&(a=function(e){if(ne)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&h(r)&&(o=r(),r=null),o}};return ne(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===qe.ParentContextKey||e===qe.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===qe.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===qe.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(qe.ChildrenContextKey);if(ce(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=ve()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&h(r)&&(i.payload=r())}}var Ge="CoreUtils.doPerf";function Ke(e,n,t,o,r){if(e)if(e=h(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,s=e.getCtx(Ge);try{if(a=e.create(n(),o,r))return s&&a.setCtx&&(a.setCtx(We.ParentContextKey,s),s.getCtx&&s.setCtx&&((i=s.getCtx(We.ChildrenContextKey))||(i=[],s.setCtx(We.ChildrenContextKey,i)),i.push(a))),e.setCtx(Ge,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(Ge,s)}}return t()}var ze=function(r,n){var i=this,a=null,s=h(r.processTelemetry),u=h(r.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return r},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,o){o=o||n;var e=r?r.identifier:"TelemetryPluginChain";Ke(o?o.core():null,function(){return e+":processTelemetry"},function(){if(r&&s){i._hasRun=!0;try{o.setNext(a),u&&r.setNextPlugin(a),a&&(a._hasRun=!1),r.processTelemetry(t,o)}catch(n){var e=a&&a._hasRun;a&&e||o.diagLog().throwInternal(p.CRITICAL,v.PluginException,"Plugin ["+r.identifier+"] failed during processTelemetry - "+Ee(n)),a&&!e&&a.processTelemetry(t,o)}}else a&&(i._hasRun=!0,a.processTelemetry(t,o))},function(){return{item:t}},!t.sync)}};function He(e,n){var t=[];if(e&&0<e.length)for(var o=null,r=0;r<e.length;r++){var i=e[r];i&&h(i.processTelemetry)&&(i=new ze(i,n),t.push(i),o&&o.setNext(i),o=i)}return 0<t.length?t[0]:null}var Je=function Nt(e,r,t,n){var o,i,a,s,u=this,l=null;null!==n&&(e&&h(e.getPlugin)?l=function(e,n,t){var o=[],r=!t;if(e)for(;e;){var i=e.getPlugin();!r&&i!==t||(r=!0,o.push(i)),e=e.getNext()}return r||o.push(t),He(o,n)}(e,u,n||e.getPlugin()):n?(o=u,a=e,s=!1,(i=n)&&e&&(a=[],fe(e,function(e){!s&&e!==i||(s=!0,a.push(e))})),i&&!s&&(a=a||[]).push(i),l=He(a,o)):se(n)&&(l=He(e,u))),u.core=function(){return t},u.diagLog=function(){return Ve(t,r)},u.getCfg=function(){return r},u.getExtCfg=function(e,n){var t,o;return void 0===n&&(n={}),!r||(o=r.extensionConfig)&&e&&(t=o[e]),t||n},u.getConfig=function(e,n,t){void 0===t&&(t=!1);var o,e=u.getExtCfg(e,null);return e&&!g(e[n])?o=e[n]:r&&!g(r[n])&&(o=r[n]),g(o)?t:o},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new Nt((e=void 0===e?null:e)||l,r,t,n)}},Ze="getPlugin",l=(Xe.prototype.initialize=function(e,n,t,o){this._baseTelInit(e,n,t,o)},Xe);function Xe(){var i=this,a=!1,s=null,u=null;i.core=null,i.diagLog=function(e){return i._getTelCtx(e).diagLog()},i.isInitialized=function(){return a},i.setInitialized=function(e){a=e},i.setNextPlugin=function(e){u=e},i.processNext=function(e,n){n?n.processNext(e):u&&h(u.processTelemetry)&&u.processTelemetry(e,null)},i._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=s||new Je(null,{},i.core),e=u&&u[Ze]?n.createNew(null,u[Ze]):n.createNew(null,u)),e},i._baseTelInit=function(e,n,t,o){e&&I(e,"extensionConfig",[],null,g),!o&&n&&(o=n.getProcessTelContext().getNext());var r=u;u&&u[Ze]&&(r=u[Ze]()),i.core=n,s=new Je(o,e,n,r),a=!0}}var Ye="toGMTString",$e="toUTCString",Qe="cookie",en="expires",nn="enabled",tn="isCookieUseDisabled",on="disableCookiesUsage",rn="_ckMgr",an="",sn=null,un=null,ln=null,cn=typeof document===u&&document?document:ke("document"),fn={},dn={};function gn(e){return!e||e.isEnabled()}function pn(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[rn]||vn(n)),t||(e=(e||{}).logger,(o=vn[rn]||dn[rn])||(o=vn[rn]=vn(n,e),dn[rn]=o),t=o),t}function vn(e,r){I(t=(e=e||dn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ue,g),I(t,"path",e.cookiePath||"/",null,g),g(t[nn])&&(n=void 0,se(e[tn])||(n=!e[tn]),se(e[on])||(n=!e[on]),t[nn]=n);var n,t,l=t,c=l.path||"/",f=l.domain,o=!1!==l[nn],d={isEnabled:function(){var e=o&&hn(r),n=dn[rn];return e&&n&&d!==n?gn(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,s,u=!1;return gn(d)&&(i={},-1!=(s=(a=de(n||an)).indexOf(";"))&&(a=de(n.substring(0,s)),i=mn(n.substring(1+s))),I(i,"domain",o||f,me,se),g(t)||(s=De(),!se(i[en])||0<(n=ve()+1e3*t)&&((o=new Date).setTime(n),I(i,en,Cn(o,s?Ye:$e)||Cn(o,s?Ye:$e)||an,me)),s||I(i,"max-age",an+t,null,se)),(n=Pe())&&"https:"===n.protocol&&(I(i,"secure",null,null,se),(un=null===un?!(C(o=(Me()||{}).userAgent)&&(m(o,"CPU iPhone OS 12")||m(o,"iPad; CPU OS 12")||m(o,"Macintosh; Intel Mac OS X 10_14")&&m(o,"Version/")&&m(o,"Safari")||m(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(re)return e[Q](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||m(o,"Chrome/5")||m(o,"Chrome/6")||m(o,"UnrealEngine")&&!m(o,"Chrome")||m(o,"UCBrowser/12")||m(o,"UCBrowser/11"))):un)&&I(i,"SameSite","None",null,se)),I(i,"path",r||c,null,se),(l.setCookie||yn)(e,In(a,i)),u=!0),u},get:function(e){var n=an;return gn(d)?(l.getCookie||function(e){var n,t=an;return cn&&(n=cn[Qe]||an,ln!==n&&(fn=mn(n),ln=n),t=de(fn[e]||an)),t})(e):n},del:function(e,n){return!!gn(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return hn(r)&&((t={}).path=n||"/",t[en]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,De()||(n["max-age"]="0"),(l.delCookie||yn)(e,In(an,n)),o=!0),o}};return d[rn]=d}function hn(e){if(null===sn){sn=!1;try{sn=(cn||{})[Qe]!==undefined}catch(n){e&&e.throwInternal(p.WARNING,v.CannotAccessCookie,"Cannot access document.cookie - "+he(n),{exception:Ee(n)})}}return sn}function mn(e){var t={};return e&&e.length&&fe(de(e).split(";"),function(e){var n;(e=de(e||an))&&(-1==(n=e.indexOf("="))?t[e]=null:t[de(e.substring(0,n))]=de(e.substring(1+n)))}),t}function Cn(e,n){return h(e[n])?e[n]():null}function In(e,n){var t=e||an;return le(n,function(e,n){t+="; "+e+(g(n)?an:"="+n)}),t}function yn(e,n){cn&&(cn[Qe]=e+"="+n)}var xn=4294967296,Sn=4294967295,wn=!1,Tn=123456789,Nn=987654321;function An(e){var n=ke("crypto")||ke("msCrypto"),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Sn:De()?(wn||function(){try{var e=2147483647&ve();(n=(Math.random()*xn^e)+e)<0&&(n>>>=0),Tn=123456789+n&Sn,Nn=987654321-n&Sn,wn=!0}catch(t){}var n}(),n=((Nn=36969*(65535&Nn)+(Nn>>16)&Sn)<<16)+(65535&(Tn=18e3*(65535&Tn)+(Tn>>16)&Sn))>>>0&Sn|0,(n>>>=0)&Sn):Math.floor(xn*Math.random()|0);return e||(n>>>=0),n}function kn(e){void 0===e&&(e=22);for(var n=An()>>>0,t=0,o="";o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(An()<<2&4294967295|3&n)>>>0,t=0);return o}function bn(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=de(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(p.WARNING,v.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(o=void 0,(o="00"+s).substr(o.length-3));a=u}return a}function Mn(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=de(n)).toString().length>t&&(o=n.toString().substring(0,t),e&&e.throwInternal(p.WARNING,v.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function Pn(o,e){var r;return e&&(r={},le(e,function(e,n){if(n&&typeof n===u&&Le())try{n=Re().stringify(n)}catch(t){o&&o.throwInternal(p.WARNING,v.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Mn(o,n,8192),e=bn(o,e,r),r[e]=n}),e=r),e}function Ln(e,n,t,o){var r;return n&&(n=de(n)).length>t&&(r=n.substring(0,t),e&&e.throwInternal(p.WARNING,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}(e=Rn=Rn||{})[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage";var Rn,Dn,En=undefined;function Un(){return _n()?Fn(Rn.LocalStorage):null}function Fn(e){try{if(g(S()))return null;var n=new Date,t=ke(e===Rn.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!o)return t}catch(r){}return null}function _n(){return En=En===undefined?!!Fn(Rn.LocalStorage):En}function On(e,n){var t=Un();if(null!==t)try{return t.getItem(n)}catch(o){En=!1,e.throwInternal(p.WARNING,v.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+he(o),{exception:Ee(o)})}return null}function Bn(e,n,t){var o=Un();if(null!==o)try{return o.setItem(n,t),1}catch(r){En=!1,e.throwInternal(p.WARNING,v.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+he(r),{exception:Ee(r)})}}function Vn(e,n){var t=Un();if(null!==t)try{return t.removeItem(n),1}catch(o){En=!1,e.throwInternal(p.WARNING,v.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+he(o),{exception:Ee(o)})}}function jn(){var e=Dn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}N(jn,Dn=function(){this.ver=2,this.properties={},this.measurements={}}),N(Gn,Wn=jn),Gn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Gn.dataType="PageviewData";var Wn,qn=Gn;function Gn(e,n,t,o,r,c,i){var a,s,u,l=Wn.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},l.id=i&&Ln(e,i,128,v.IdTooLong).toString(),l.url=Ln(e,t,2048,v.UrlTooLong),l.name=Mn(e,n)||"not_specified",isNaN(o)||(l.duration=(t=""+Math.floor((i=Math.round(i=isNaN(i=o)||i<0?0:i))/1e3)%60,n=1===(n=""+i%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(i/6e4)%60).length<2?"0"+o:o,(0<(a=Math.floor(i/864e5))?a+".":"")+(a=(a=""+Math.floor(i/36e5)%24).length<2?"0"+a:a)+":"+o+":"+t+"."+n)),l.properties=Pn(e,r),l.measurements=(s=e,(i=c)&&(u={},le(i,function(e,n){e=bn(s,e,u),u[e]=n}),i=u),i),l}function Kn(e){var n="ai."+e+".";return function(e){return n+e}}var zn,Hn,d=Kn("application"),e=Kn("device"),Jn=Kn("location"),Zn=Kn("operation"),Xn=Kn("session"),Yn=Kn("user"),$n=Kn("cloud"),Qn=Kn("internal");function et(){return zn.call(this)||this}Hn={applicationVersion:d("ver"),applicationBuild:d("build"),applicationTypeId:d("typeId"),applicationId:d("applicationId"),applicationLayer:d("layer"),deviceId:e("id"),deviceIp:e("ip"),deviceLanguage:e("language"),deviceLocale:e("locale"),deviceModel:e("model"),deviceFriendlyName:e("friendlyName"),deviceNetwork:e("network"),deviceNetworkName:e("networkName"),deviceOEMName:e("oemName"),deviceOS:e("os"),deviceOSVersion:e("osVersion"),deviceRoleInstance:e("roleInstance"),deviceRoleName:e("roleName"),deviceScreenResolution:e("screenResolution"),deviceType:e("type"),deviceMachineName:e("machineName"),deviceVMName:e("vmName"),deviceBrowser:e("browser"),deviceBrowserVersion:e("browserVersion"),locationIp:Jn("ip"),locationCountry:Jn("country"),locationProvince:Jn("province"),locationCity:Jn("city"),operationId:Zn("id"),operationName:Zn("name"),operationParentId:Zn("parentId"),operationRootId:Zn("rootId"),operationSyntheticSource:Zn("syntheticSource"),operationCorrelationVector:Zn("correlationVector"),sessionId:Xn("id"),sessionIsFirst:Xn("isFirst"),sessionIsNew:Xn("isNew"),userAccountAcquisitionDate:Yn("accountAcquisitionDate"),userAccountId:Yn("accountId"),userAgent:Yn("userAgent"),userId:Yn("id"),userStoreRegion:Yn("storeRegion"),userAuthUserId:Yn("authUserId"),userAnonymousUserAcquisitionDate:Yn("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Yn("authUserAcquisitionDate"),cloudName:$n("name"),cloudRole:$n("role"),cloudRoleVer:$n("roleVer"),cloudRoleInstance:$n("roleInstance"),cloudEnvironment:$n("environment"),cloudLocation:$n("location"),cloudDeploymentUnit:$n("deploymentUnit"),internalNodeName:Qn("nodeName"),internalSdkVersion:Qn("sdkVersion"),internalAgentVersion:Qn("agentVersion"),internalSnippet:Qn("snippet"),internalSdkSrc:Qn("sdkSrc")},N(et,zn=function(){var t=this;le(Hn,function(e,n){t[e]=n})});var nt="user",tt="device",ot="trace",rt="web",it="app",at="os",st=new et,ut=function(){},lt=(ct.acquisitionSpan=864e5,ct.renewalSpan=18e5,ct.cookieUpdateInterval=6e4,ct);function ct(n,e){var c,f,d=Ve(e),g=pn(e);Y(ct,this,function(s){h((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return ct.acquisitionSpan}),h(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return ct.renewalSpan}),s.config=n;var e=s.config.sessionCookiePostfix&&s.config.sessionCookiePostfix()?s.config.sessionCookiePostfix():s.config.namePrefix&&s.config.namePrefix()?s.config.namePrefix():"";function u(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?d.throwInternal(p.WARNING,v.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(p.WARNING,v.SessionRenewalDateIsZero,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(s){d.throwInternal(p.CRITICAL,v.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+he(s),{exception:Ee(s)})}return t}function l(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,s.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(c(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}c=function(){return"ai_session"+e},s.automaticSession=new ut,s.update=function(){var e,n,t,o=ve(),r=!1,i=s.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(c()))&&h(a.split)?t=u(n,a):(a=On(d,c()))&&(t=u(n,a)),r=!(t||n.id)),s.config.sessionExpirationMs());!r&&0<a&&(t=s.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=s.config||{}).getNewId?n.getNewId():null)||kn,s.automaticSession.id=t(n.idLength?n.idLength():22),s.automaticSession.acquisitionDate=a,l(s.automaticSession,a),_n()||d.throwInternal(p.WARNING,v.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||ct.cookieUpdateInterval<o-f)&&l(i,o)},s.backup=function(){var e=s.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;Bn(d,c(),[n,t,e].join("|"))}})}var ft=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.0-nightly.2202-06"};function pt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}c.cookieSeparator="|",c.userCookieName="ai_user",c.authUserCookieName="ai_authUser";var vt=c;function c(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var s,u=Ve(e),l=pn(e);Y(c,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(s=function(){return c.userCookieName+e},l.get(s()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||kn)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(ie)return e[$]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=l.set(s(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(c.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(c.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",Vn(u,n)),o.accountId=a.accountId?a.accountId():undefined;var n=l.get(c.authUserCookieName);n&&((n=(n=decodeURI(n)).split(c.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!pt(e)||n&&!pt(n)?u.throwInternal(p.WARNING,v.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(c.cookieSeparator)),t&&l.set(c.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,l.del(c.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(c.cookieSeparator))}})}var ht=function(){},mt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",o=0;o<4;o++)t+=n[15&(e=An())]+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 r=n[8+(3&An())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,Pe());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=Mn(o,r.name)},Ct="ext",It="tags";function yt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===s||n===u&&null!==e||w("objKeys called on non-object"),!ge&&te)return te(e);var t,o=[];for(t in e)e&&y.call(e,t)&&o.push(t);if(ge)for(var r=pe.length,i=0;i<r;i++)e&&y.call(e,pe[i])&&o.push(pe[i]);return o}(e[n]).length&&delete e[n]}var xt,St=function At(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},Y(At,this,function(r){r.application=new ft,r.internal=new gt(n),be()&&(r.sessionManager=new lt(n,e),r.device=new dt,r.location=new ht,r.user=new vt(n,e),r.telemetryTrace=new mt(undefined,undefined,undefined,t),r.session=new ut),r.getSessionId=function(){var e=r.session;return e&&C(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&C(e.id)?e.id:null},r.applySessionContext=function(e,n){I(a(e.ext,it),"sesId",r.getSessionId(),C)},r.applyOperatingSystemContxt=function(e,n){I(e.ext,at,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(I(e=a(e,It),st.applicationVersion,t.ver,C),I(e,st.applicationBuild,t.build,C))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(I(e=a(a(e,Ct),tt),"localId",t.id,C),I(e,"ip",t.ip,C),I(e,"model",t.model,C),I(e,"deviceClass",t.deviceClass,C))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(I(t=a(e,It),st.internalAgentVersion,o.agentVersion,C),I(t,st.internalSdkVersion,o.sdkVersion,C),e.baseType!==Oe.dataType&&e.baseType!==qn.dataType||(I(t,st.internalSnippet,o.snippetVer,C),I(t,st.internalSdkSrc,o.sdkSrc,C)))},r.applyLocationContext=function(e,n){var t=o.location;t&&I(a(e,It,[]),st.locationIp,t.ip,C)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(I(e=a(a(e,Ct),ot,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,C),I(e,"name",t.name,C),I(e,"parentID",t.parentID,C))},r.applyWebContext=function(e,n){var t=o.web;t&&I(a(e,Ct),rt,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(I(a(e,It,[]),st.userAccountId,t.accountId,C),I(e=a(a(e,Ct),nt),"id",t.id,C),I(e,"authId",t.authenticatedId,C))},r.cleanUp=function(e,n){e=e.ext;e&&(yt(e,tt),yt(e,nt),yt(e,rt),yt(e,at),yt(e,it),yt(e,ot))}})};function wt(){var l,c,e=xt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",Y(wt,e,function(s,u){s.initialize=function(e,n,t,o){u.initialize(e,n,t,o);var r,i=s._getTelCtx(),a=s.identifier,e=wt.getDefaultConfig();c=c||{},le(e,function(e,n){c[e]=function(){return i.getConfig(a,e,n())}}),s.context=new St(n,c),r=null,fe(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),l=r,s.context.appId=function(){return l?l._appId:null},s._extConfig=c},s.processTelemetry=function(e,n){var t,o,r,i;g(e)||(n=s._getTelCtx(n),e.name===qn.envelopeType&&n.diagLog().resetInternalMessageCount(),(r=s.context||{}).session&&"string"!=typeof s.context.session.id&&r.sessionManager&&r.sessionManager.update(),(t=r.user)&&!t.isUserCookieSet&&t.update(r.user.id),r=n,a(o=e,"tags",[]),a(o,"ext",{}),(i=s.context).applySessionContext(o,r),i.applyApplicationContext(o,r),i.applyDeviceContext(o,r),i.applyOperationContext(o,r),i.applyUserContext(o,r),i.applyOperatingSystemContxt(o,r),i.applyWebContext(o,r),i.applyLocationContext(o,r),i.applyInternalContext(o,r),i.cleanUp(o,r),t&&t.isNewUser&&(t.isNewUser=!1,o=new Oe(v.SendBrowserInfoOnUserInit,(Me()||{}).userAgent||""),n.diagLog().logInternalMessage(p.CRITICAL,o)),s.processNext(e,n))}}),e}N(wt,xt=l),wt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},n.PropertiesPlugin=wt,n.Session=ut,n.SessionManager=lt,n.TelemetryContext=St,n.TelemetryTrace=mt;d=n,e="__esModule",Jn={value:!0},Zn=Object.defineProperty;if(Zn)try{return void Zn(d,e,Jn)}catch(kt){}typeof Jn.value!==undefined&&(d[e]=Jn.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
6
6
|
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
|