@microsoft/applicationinsights-channel-js 2.8.0-beta.2202-06 → 2.8.0-beta.2202-07
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-channel-js.integrity.json +9 -9
- package/browser/applicationinsights-channel-js.js +2 -2
- package/browser/applicationinsights-channel-js.js.map +1 -1
- package/browser/applicationinsights-channel-js.min.js +2 -2
- package/browser/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.d.ts +1 -1
- package/dist/applicationinsights-channel-js.js +2 -2
- package/dist/applicationinsights-channel-js.js.map +1 -1
- package/dist/applicationinsights-channel-js.min.js +2 -2
- package/dist/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.rollup.d.ts +1 -1
- package/dist-esm/EnvelopeCreator.js +2 -2
- package/dist-esm/EnvelopeCreator.js.map +1 -1
- package/dist-esm/Interfaces.js +1 -1
- package/dist-esm/Offline.js +1 -1
- package/dist-esm/SendBuffer.js +1 -1
- package/dist-esm/Sender.js +1 -1
- package/dist-esm/Serializer.js +1 -1
- package/dist-esm/TelemetryProcessors/Sample.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
- package/dist-esm/applicationinsights-channel-js.js +1 -1
- package/package.json +3 -3
- package/src/EnvelopeCreator.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 2.8.0-beta.2202-
|
|
2
|
+
* Application Insights JavaScript SDK - Channel, 2.8.0-beta.2202-07
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(t){"use strict";var a="function",s="object",i="undefined",o="prototype",u="hasOwnProperty",r=Object,l=r[o],m=r.assign,h=r.create,e=r.defineProperty,v=l[u],y=null;function I(e){return void 0===e&&(e=!0),y&&e||(typeof globalThis!==i&&globalThis&&(y=globalThis),typeof self!==i&&self&&(y=self),typeof window!==i&&window&&(y=window),typeof global!==i&&global&&(y=global)),y}function C(e){throw new TypeError(e)}(I()||{}).Symbol,(I()||{}).Reflect;var S=m||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[u].call(n,i)&&(e[i]=n[i]);return e},T=function(e,n){return(T=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[u](t)&&(e[t]=n[t])})(e,n)};function n(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&C("Class extends value "+n+" is not a constructor or null"),T(e,n),e[o]=null===n?function(e){if(h)return h(e);if(null==e)return{};var n=typeof e;function t(){}return n!==s&&n!==a&&C("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var w="constructor",b="prototype",x="function",N="_dynInstFuncs",_="_isDynProxy",R="_dynClass",A="_dynInstChk",F=A,L="_dfOpts",E="_unknown_",B="__proto__",P="useBaseInst",O="setInstFuncs",U=Object,z=U.getPrototypeOf,j=0;function K(e,n){return e&&U[b].hasOwnProperty.call(e,n)}function q(e){return e&&(e===U[b]||e===Array[b])}function V(e){return q(e)||e===Function[b]}function G(e){if(e){if(z)return z(e);e=e[B]||e[b]||(e[w]?e[w][b]:null);if(e)return e}return null}function W(e,n){var t=[],r=U.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&K(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function H(e,n,t){return n!==w&&typeof e[n]===x&&(t||K(e,n))}function X(e){throw new TypeError("DynamicProto: "+e)}function Y(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function J(e,n){return K(e,b)?e.name||n||E:((e||{})[w]||{}).name||n||E}function Z(e,r,n,t){K(e,b)||X("theClass is an invalid class definition.");var c,i,o,a,f,d,s=e[b],u=(function(e){if(z)for(var n=[],t=G(r);t&&!V(t)&&!Y(n,t);){if(t===e)return 1;n.push(t),t=G(t)}}(s)||X("["+J(e)+"] is not in class hierarchy of ["+J(r)+"]"),null),e=(K(s,R)?u=s[R]:(u="_dynCls$"+J(e,"_")+"$"+j,j++,s[R]=u),Z[L]),l=!!e[P],p=(l&&t&&t[P]!==undefined&&(l=!!t[P]),i={},W(c=r,function(e){!i[e]&&H(c,e,!1)&&(i[e]=c[e])}),i),l=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[_]&&o&&!1!==(r=e[N]||{})[F]&&(i=(r[n[R]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(W(t,function(e){i[e]=r(n,t,e)}),G(e)),s=[];a&&!V(a)&&!Y(s,a);)W(a,function(e){!i[e]&&H(a,e,!z)&&(i[e]=r(n,a,e))}),s.push(a),a=G(a);return i}(s,r,p,l)),!!z&&!!e[O]);o=s,n=u,a=r,f=p,e=!1!==(l=l&&t?!!t[O]:l),q(o)||(s=a[N]=a[N]||{},d=s[n]=s[n]||{},!1!==s[F]&&(s[F]=!!e),W(a,function(e){var t,r,i;H(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],K(o,e)&&(!o[e]||o[e][_])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&K(t,R)){var i=e[N]||{};if((r=(i[t[R]]||{})[n])||X("Missing ["+n+"] "+x),!r[A]&&!1!==i[F]){for(var o=!K(e,n),a=G(e),s=[];o&&a&&!V(a)&&!Y(s,a);){var u=a[n];if(u){o=u===c;break}s.push(a),a=G(a)}try{o&&(e[n]=r),r[A]=1}catch(l){i[F]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?G(t)[e]:n)!==x&&X("["+e+"] is not a "+x),n)).apply(this,arguments)})[_]=1,i)))}))}Z[L]={setInstFuncs:!0,useBaseInst:!0},(ie=M=M||{})[ie.CRITICAL=1]="CRITICAL",ie[ie.WARNING=2]="WARNING";var M,D={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},$="on",Q="attachEvent",ee="addEventListener",ne="toISOString",te="indexOf",re="trim",ie="toString",oe="constructor",ae=e,e=r.freeze,se=r.keys,ue=String[o][re],le=Date[o][ne],ce=Array.isArray,fe=l[ie],de=v[ie],pe=de.call(r),ge=Object.getPrototypeOf;function me(e){return e===undefined||typeof e===i}function k(e){return null===e||me(e)}function he(e){return!(!e||typeof e!==s)}function ve(e){return!(!e||typeof e!==a)}function ye(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!k(e))try{k(e[ee])?k(e[Q])||(e[Q]($+n,t),i=!0):(e[ee](n,t,r),i=!0)}catch(o){}return i}function Ie(e,n){if(e)for(var t in e)v.call(e,t)&&n.call(e,t,e[t])}function Ce(e,n){return e&&n&&~e.indexOf(n)}var Se=ce||function(e){return!(!e||"[object Array]"!==fe.call(e))};function Te(e){return e&&"[object Error]"===fe.call(e)}function we(e){return"string"==typeof e}function be(e){return e&&"object"==typeof e&&(!(e=(ge||function(e){if(e){if(ge)return ge(e);e=e.__proto__||e[o]||e[oe];if(e)return e}return null})(e))||typeof(e=e[oe]&&v.call(e,oe)?e[oe]:e)===a&&de.call(e)===pe)}function xe(e){if(e){if(le)return e[ne]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}}function Ne(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function _e(e,n,t){if(e){if(e.map)return e.map(n,t);var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(s){}}return o}function Re(e){return e&&(ue&&e[re]?e[re]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ae=!{toString:null}.propertyIsEnumerable("toString"),Fe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Le(e){var n=typeof e;if(n===a||n===s&&null!==e||C("objKeys called on non-object"),!Ae&&se)return se(e);var t,r=[];for(t in e)e&&v.call(e,t)&&r.push(t);if(Ae)for(var i=Fe.length,o=0;o<i;o++)e&&v.call(e,Fe[o])&&r.push(Fe[o]);return r}var Ee=e||function(e){return e};function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function De(e){return Te(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Be(e){return!!e}function Pe(e){return e&&m?r(m({},e)):e}var Oe="window",Ue="navigator",ze="JSON",je="trident/",Ke="XMLHttpRequest",qe=null,Ve=null;function Ge(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!me((new e)[n])}catch(i){}}return r}function We(e){var n=I();return n&&n[e]?n[e]:e===Oe&&He()?window:null}function He(){return typeof window===s&&window}function Xe(){return He()?window:We(Oe)}function Ye(){return typeof document===s&&document?document:We("document")}function Je(){return!(typeof navigator!==s||!navigator)}function Ze(){return Je()?navigator:We(Ue)}function $e(){return typeof JSON===s&&JSON||null!==We(ze)}function Qe(){return $e()?JSON||We(ze):null}function en(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":$e()&&(t=Qe().stringify(e)),n+t}function nn(){return Ve=null===Ve?Je()&&!!Ze().sendBeacon:Ve}function tn(e){var n=!1;try{var n=!!We("fetch"),t=We("Request");n&&e&&t&&(n=Ge(t,"keepalive"))}catch(r){}return n}function rn(){return qe=null===qe&&(qe=typeof XDomainRequest!==i)&&on()?qe&&!Ge(We(Ke),"withCredentials"):qe}function on(){var e=!1;try{e=!!We(Ke)}catch(n){}return e}var an=null;function sn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function un(e,n){var t,r=typeof console!==i?console:We("console");r&&(t="log",ve(r[t=r[e]?e:t])&&r[t](n))}cn.dataType="MessageData";var ln=cn;function cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",$e()&&(t=Qe().stringify(r)),e=(n?" message:"+sn(n):"")+(r?" props:"+sn(t):"");this.message+=e}function fn(e,n){return(e||{}).logger||new dn(n)}var dn=function kr(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};Z(kr,this,function(o){function e(e,n){e=i[e];return k(e)?n:e}function a(e,n){var t,r=(t=(t=an)||!0===i.disableDbgExt?t:an||(r=We("Microsoft"),an=r?r.ApplicationInsights:an))?t.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,n)}k(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new ln(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===M.CRITICAL?"errorToConsole":"warnToConsole";me(n.message)?a("throw"+(e===M.CRITICAL?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!u[i]&&e<=r&&(o[t](n.message),u[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){un("warn",e),a("warning",e)},o.errorToConsole=function(e){un("error",e),a("error",e)},o.resetInternalMessageCount=function(){s=0,u={}},o.logInternalMessage=function(e,n){var t,r;s>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),s++,a(e===M.CRITICAL?"error":"warn",n)),s===o.maxInternalMessageLimit()&&(r=new ln(D.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===M.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},pn=(gn.ParentContextKey="parent",gn.ChildrenContextKey="childEvts",gn);function gn(e,i,n){var r,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ve(i)&&(a=function(e){if(ae)try{var n={enumerable:!0,configurable:!0,get:function(){return!r&&ve(i)&&(r=i(),i=null),r}};return ae(e,"payload",n),!0}catch(t){}return!1}(o)),o.getCtx=function(e){return e?(e===gn.ParentContextKey||e===gn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===gn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===gn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(gn.ChildrenContextKey);if(Se(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&&ve(i)&&(o.payload=i())}}var mn="CoreUtils.doPerf";function hn(e,n,t,r,i){if(e)if(e=ve(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,s=e.getCtx(mn);try{if(a=e.create(n(),r,i))return s&&a.setCtx&&(a.setCtx(pn.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(pn.ChildrenContextKey))||(o=[],s.setCtx(pn.ChildrenContextKey,o)),o.push(a))),e.setCtx(mn,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(mn,s)}}return t()}var vn="TelemetryPluginChain",yn="_hasRun",In="_getTelCtx",Cn=0;function Sn(e,a,t,n){var r=null,i=null,r=n?function(e,n,t,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return Tn([r],n,t)}(e,a,t,n):e,o={core:function(){return t},diagLog:function(){return fn(t,a)},getCfg:function(){return a},getExtCfg:s,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=s(e,null);return e&&!k(e[n])?r=e[n]:a&&!k(a[n])&&(r=a[n]),k(r)?t:r},hasNext:function(){return null!=r},getNext:function(){return r},setNext:function(e){r=e},processNext:function(n){u(function(e){e.processTelemetry(n,o)})},iterate:function(n){for(;r;)u(function(e){e=e.getPlugin();e&&n(e)})},createNew:function(e,n){return Sn((e=Se(e=void 0===e?null:e)?Tn(e,a,t,n):e)||r,a,t,n)},onComplete:function(e){i=e}};function s(e,n,t){var r,i,o;return void 0===n&&(n={}),void 0===t&&(t=0),!a||(i=a.extensionConfig)&&e&&(r=i[e]),r?he(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e.length,r=!1,i=1;for(0<t&&"boolean"==typeof n&&(r=n,n=e[i]||{},i++),he(n)||(n={});i<t;i++){var o,a,s,u,l=e[i],c=Se(l),f=he(l);for(o in l)(c&&o in l||f&&v.call(l,o))&&(a=l[o],s=void 0,r&&a&&((s=Se(a))||be(a))&&(u=n[o],s?Se(u)||(u=[]):be(u)||(u={}),a=d(r,u,a)),a!==undefined&&(n[o]=a))}return n}(!0,n,r),a&&2===t&&Ie(n,function(e){var n;k(o[e])&&(k(n=a[e])||(o[e]=n))})):r=n,r}function u(e){var n=r;n?(r=n.getNext(),e(n)):i&&(i(),i=null)}return o}function Tn(e,n,t,r){var i,o=null,a=!r;return Se(e)&&0<e.length&&(i=null,Ne(e,function(e){(a=!a&&r===e||a)&&e&&ve(e.processTelemetry)&&(e=wn(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?Tn([r],n,t):o}function wn(u,l,c){var f=null,t=ve(u.processTelemetry),r=ve(u.setNextPlugin),d=u?u.identifier+"-"+u.priority+"-"+Cn++:"Unknown-0-"+Cn++,p={getPlugin:function(){return u},getNext:function(){return f},processTelemetry:function(n,e){i(e,function(e){return!!t&&(r&&u.setNextPlugin(f),u.processTelemetry(n,e),!0)},function(e){f.processTelemetry(n,e)},"processTelemetry",function(){return{item:n}},!n.sync)},_id:d,_setNext:function(e){f=e}};function i(r,i,o,a,e,n){r=(r=r||(u&&ve(u[In])?u[In]():r))||Sn(p,l,c);var t=u?u.identifier:vn,s=(s=r[yn])||(r[yn]={});hn(r.core(),function(){return t+":"+a},function(){var e=!(s[d]=!0);if(r.setNext(f),u)try{var n=f?f._id:"";n&&(s[n]=!1),e=i(r)}catch(t){n=!f||s[f._id];n&&(e=!0),f&&n||r.diagLog().throwInternal(M.CRITICAL,D.PluginException,"Plugin ["+u.identifier+"] failed during "+a+" - "+en(t)+", run flags: "+en(s))}f&&!e&&o(r)},e,n)}return Ee(p)}var bn="getPlugin",ie=function Br(){var o,a,s,n,u=this;function t(e){var n,e=e=void 0===e?null:e;return e||(n=a||Sn(null,{},u.core),e=s&&s[bn]?n.createNew(null,s[bn]):n.createNew(null,s)),e}o=!1,u.core=null,s=a=null,n=[],Z(Br,u,function(e){e.initialize=function(e,n,t,r){e&&ke(e,"extensionConfig",[],null,k),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[bn]&&(i=s[bn]()),u.core=n,a=Sn(r,e,n,i),o=!0},e._addHook=function(e){e&&(Se(e)?n=n.concat(e):n.push(e))}}),u.diagLog=function(e){return t(e).diagLog()},u.isInitialized=function(){return o},u.setInitialized=function(e){o=e},u.setNextPlugin=function(e){s=e},u.processNext=function(e,n){n?n.processNext(e):s&&ve(s.processTelemetry)&&s.processTelemetry(e,null)},u._getTelCtx=t};function xn(e,n,t){var r,i,o=n.length,a=(e=e,(n=n)&&150<(n=Re(n.toString())).length&&(i=n.substring(0,150),e&&e.throwInternal(M.WARNING,D.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));a=u}return a}function Nn(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=Re(n)).toString().length>t&&(r=n.toString().substring(0,t),e&&e.throwInternal(M.WARNING,D.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function _n(e,n){return Ln(e,n,2048,D.UrlTooLong)}function Rn(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,D.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function An(r,e){var i;return e&&(i={},Ie(e,function(e,n){if(he(n)&&$e())try{n=Qe().stringify(n)}catch(t){r&&r.throwInternal(M.WARNING,D.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Nn(r,n,8192),e=xn(r,e,i),i[e]=n}),e=i),e}function Fn(t,e){var r;return e&&(r={},Ie(e,function(e,n){e=xn(t,e,r),r[e]=n}),e=r),e}function Ln(e,n,t,r){var i;return n&&(n=Re(n)).length>t&&(i=n.substring(0,t),e&&e.throwInternal(M.WARNING,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}function En(e){var n=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+t+":"+n+"."+e}var Mn,Dn="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",kn="sampleRate",Bn="ProcessLegacy",Pn="http.method",On="not_specified",Un=((ce=Mn=Mn||{})[ce.LocalStorage=0]="LocalStorage",ce[ce.SessionStorage=1]="SessionStorage",undefined);function zn(e){try{if(k(I()))return null;var n=new Date,t=We(e===Mn.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function jn(){return Kn()?zn(Mn.SessionStorage):null}function Kn(){return Un=Un===undefined?!!zn(Mn.SessionStorage):Un}function qn(e,n){var t=jn();if(null!==t)try{return t.getItem(n)}catch(r){Un=!1,e.throwInternal(M.WARNING,D.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+De(r),{exception:en(r)})}return null}function Vn(e,n,t){var r=jn();if(null!==r)try{return r.setItem(n,t),1}catch(i){Un=!1,e.throwInternal(M.WARNING,D.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+De(i),{exception:en(i)})}}var Gn=Ye()||{},Wn=0,Hn=[null,null,null,null,null];var Xn=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function Yn(e){return~Xn.indexOf(e.toLowerCase())}n(Zn,Jn=function(){});var Jn,e=Zn;function Zn(){return Jn.call(this)||this}n(et,$n=function(){this.ver=1,this.sampleRate=100,this.tags={}});var $n,Qn=et;function et(e,n,t){var r=$n.call(this)||this;return r.name=Nn(e,t)||On,r.data=n,r.time=xe(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var nt,ce=function(){this.ver=2,this.properties={},this.measurements={}},tt=(n(rt,nt=ce),rt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",rt.dataType="EventData",rt);function rt(e,n,t,r){var i=nt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=Nn(e,n)||On,i.properties=An(e,t),i.measurements=Fn(e,r),i}var it="error",ot="stack",at="stackDetails",st="errorSrc",ut="message",lt="description";function ct(e,n){var t=e;return t&&!we(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=ve(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function ft(e,n){var t=e;return e&&((t=t&&!we(t)&&(e[ut]||e[lt])||t)&&!we(t)&&(t=ct(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function dt(e){return e&&e.src&&we(e.src)&&e.obj&&Se(e.obj)}function pt(e){var e=e||"",n=(e=we(e)?e:we(e[ot])?e[ot]:""+e).split("\n");return{src:e,obj:n}}function gt(e){var n,t=null;if(e)try{e[ot]?t=pt(e[ot]):e[it]&&e[it][ot]?t=pt(e[it][ot]):e.exception&&e.exception[ot]?t=pt(e.exception[ot]):dt(e)?t=e:dt(e[at])?t=e[at]:window&&window.opera&&e[ut]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):we(e)?t=pt(e):(n=e[ut]||e[lt]||"",we(e[st])&&(n&&(n+="\n"),n+=" from "+e[st]),n&&(t=pt(n)))}catch(r){t=pt(r)}return t||{src:"",obj:null}}function mt(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function ht(e){if(e)try{var n,t;if(!we(e))return n=mt(e),(t=ct(e,!1))&&"{}"!==t||(e[it]&&(n=mt(e=e[it])),t=ct(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}n(It,vt=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),It.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=mt(i||o||e);return{message:ft(e,u),url:n,lineNumber:t,columnNumber:r,error:ht(i||o||e),evt:ht(o||e),typeName:u,stackDetails:gt(a||i||o),errorSrc:s}},It.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&_e(e.exceptions,function(e){return St.CreateFromInterface(n,e)});return new It(n,S(S({},e),{exceptions:i}),t,r)},It.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&_e(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},It.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},It.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",It.dataType="ExceptionData",It.formatError=ht;var vt,yt=It;function It(e,n,t,r,i,o){var a=vt.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(he(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions,a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),a.ver=2,k(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new St(e,n,t=t||{})],a.properties=An(e,t),a.measurements=Fn(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}n(Tt,Ct=function(){this.hasFullStack=!0,this.parsedStack=[]}),Tt.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_e(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[ot],parsedStack:e||undefined}},Tt.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&_e(n.parsedStack,function(e){return xt.CreateFromInterface(e)})||n.parsedStack;return new Tt(e,S(S({},n),{parsedStack:t}))};var Ct,St=Tt;function Tt(e,n,t){var l,r,i,o,a,s=Ct.call(this)||this;return s.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(he(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(s.typeName=n.typeName,s.message=n.message,s[ot]=n[ot],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(o=n)&&o.evt,Te(o)||(o=o[it]||r||o),s.typeName=Nn(e,mt(o))||On,s.message=Rn(e,ft(n||o,s.typeName))||On,l=n[at]||gt(n),s.parsedStack=function(){var e=l.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(Ne(e,function(e){var e=e.toString();xt.regex.test(e)&&(e=new xt(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,s=i,u=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(s,u-s+1);break}s=i,u=o,i++,o--}}return n}(),s[ot]=(r=e,a="",(o=l)&&(o.obj?Ne(o.obj,function(e){a+=e+"\n"}):a=o.src||""),!(n=a)||32768<(e=""+n).length&&(i=e.substring(0,32768),r&&r.throwInternal(M.WARNING,D.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:n},!0)),i||n),s.hasFullStack=Se(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}n(Nt,wt=function(){}),Nt.CreateFromInterface=function(e){return new Nt(e,null)},Nt.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Nt.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Nt.baseSize=58;var wt,bt,xt=Nt;function Nt(e,n){var t,r=wt.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=Re(t),r.fileName="",r.line=0,(n=t.match(Nt.regex))&&5<=n.length&&(r.method=Re(n[2])||r.method,r.fileName=Re(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Nt.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}bt=0,n(At,_t=function(){this.kind=bt});var _t,Rt=At;function At(){var e=null!==_t&&_t.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}n(Et,Ft=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),Et.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Et.dataType="MetricData";var Ft,Lt=Et;function Et(e,n,t,r,i,o,a,s,c){var u=Ft.call(this)||this,l=(u.aiDataContract={ver:1,metrics:1,properties:0},new Rt);return l.count=0<r?r:undefined,l.max=isNaN(o)||null===o?undefined:o,l.min=isNaN(i)||null===i?undefined:i,l.name=Nn(e,n)||On,l.value=t,l.stdDev=isNaN(a)||null===a?undefined:a,u.metrics=[l],u.properties=An(e,s),u.measurements=Fn(e,c),u}n(Dt,Mt=ce);var Mt,ce=Dt;function Dt(){var e=Mt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(Pt,kt=ce),Pt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pt.dataType="PageviewData";var kt,Bt=Pt;function Pt(e,n,t,r,i,o,a){var s=kt.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Ln(e,a,128,D.IdTooLong).toString(),s.url=_n(e,t),s.name=Nn(e,n)||On,isNaN(r)||(s.duration=En(r)),s.properties=An(e,i),s.measurements=Fn(e,o),s}n(zt,Ot=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),zt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",zt.dataType="RemoteDependencyData";var Ot,Ut=zt;function zt(e,n,t,c,r,f,i,o,a,d,p,g){void 0===a&&(a="Ajax");var m,s,u,l=Ot.call(this)||this,t=(l.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},l.id=n,l.duration=En(r),l.success=f,l.resultCode=i+"",l.type=Nn(e,a),n=e,r=o,a=i=f=c,i=(o=t)&&0<o.length?(m=o,u=(t=Hn)[s=Wn],Gn.createElement?t[s]||(u=t[s]=Gn.createElement("a")):u={host:function(){e=null,!m||null!=(t=m.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t.length&&we(t[2])&&0<t[2].length&&(e=t[2]||"",2<t.length&&(n=(t[1]||"").toLowerCase(),t=t[3]||"",e+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&we(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return n}()},u.href=m,++s>=t.length&&(s=0),Wn=s,s=(t=u).host,i||(null!=t.pathname?("/"!=((u=0===t.pathname.length?"/":t.pathname)[0]||"")&&(u="/"+u),a=t.pathname,Nn(n,r?r+" "+u:u)):Nn(n,o))):s=f,{target:s,name:i,data:a});return l.data=_n(e,c)||t.data,l.target=Nn(e,t.target),d&&(l.target="".concat(l.target," | ").concat(d)),l.name=Nn(e,t.name),l.properties=An(e,p),l.measurements=Fn(e,g),l}n(Vt,jt=function(){this.ver=2,this.properties={},this.measurements={}}),Vt.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Vt.dataType="MessageData";var jt,Kt,qt=Vt;function Vt(e,n,t,r,i){var o=jt.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=Rn(e,n=n||On),o.properties=An(e,r),o.measurements=Fn(e,i),t&&(o.severityLevel=t),o}function Gt(){var e=Kt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(Gt,Kt=ce),n(Xt,Wt=Gt),Xt.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Xt.dataType="PageviewPerformanceData";var Wt,Ht=Xt;function Xt(e,n,t,r,i,o,a){var s=Wt.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=_n(e,t),s.name=Nn(e,n)||On,s.properties=An(e,i),s.measurements=Fn(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}n(Zt,Yt=e);var Yt,Jt=Zt;function Zt(e,n){var t=Yt.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function $t(e){var n="ai."+e+".";return function(e){return n+e}}var Qt,er,ce=$t("application"),e=$t("device"),nr=$t("location"),tr=$t("operation"),rr=$t("session"),ir=$t("user"),or=$t("cloud"),ar=$t("internal"),sr=(er={applicationVersion:ce("ver"),applicationBuild:ce("build"),applicationTypeId:ce("typeId"),applicationId:ce("applicationId"),applicationLayer:ce("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:nr("ip"),locationCountry:nr("country"),locationProvince:nr("province"),locationCity:nr("city"),operationId:tr("id"),operationName:tr("name"),operationParentId:tr("parentId"),operationRootId:tr("rootId"),operationSyntheticSource:tr("syntheticSource"),operationCorrelationVector:tr("correlationVector"),sessionId:rr("id"),sessionIsFirst:rr("isFirst"),sessionIsNew:rr("isNew"),userAccountAcquisitionDate:ir("accountAcquisitionDate"),userAccountId:ir("accountId"),userAgent:ir("userAgent"),userId:ir("id"),userStoreRegion:ir("storeRegion"),userAuthUserId:ir("authUserId"),userAnonymousUserAcquisitionDate:ir("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ir("authUserAcquisitionDate"),cloudName:or("name"),cloudRole:or("role"),cloudRoleVer:or("roleVer"),cloudRoleInstance:or("roleInstance"),cloudEnvironment:or("environment"),cloudLocation:or("location"),cloudDeploymentUnit:or("deploymentUnit"),internalNodeName:ar("nodeName"),internalSdkVersion:ar("sdkVersion"),internalAgentVersion:ar("agentVersion"),internalSnippet:ar("snippet"),internalSdkSrc:ar("sdkSrc")},n(ur,Qt=function(){var t=this;Ie(er,function(e,n){t[e]=n})}),ur);function ur(){return Qt.call(this)||this}var lr,f=new sr,ce=function Pr(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},Z(Pr,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,D.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})},cr=(n(fr,lr=ce),fr);function fr(e,n){e=lr.call(this,e,n)||this;return Z(fr,e,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),e}n(c,dr=ce),c.BUFFER_KEY="AI_buffer",c.SENT_BUFFER_KEY="AI_sentBuffer",c.MAX_BUFFER_SIZE=2e3;var dr,pr=c;function c(s,u){var e=dr.call(this,s,u)||this,l=!1;return Z(c,e,function(t,n){var e=o(c.BUFFER_KEY),r=o(c.SENT_BUFFER_KEY),r=t._set(e.concat(r));function i(n,e){var t=[];return Ne(e,function(e){ve(e)||-1!==function(e,n){if(e){if(e[te])return e[te](n,void 0);var t=e.length;try{for(var r=0;r<t;r++)if(r in e&&e[r]===n)return r}catch(i){}}return-1}(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=qn(s,e);if(n){var t=Qe().parse(n);if((t=we(t)?Qe().parse(t):t)&&Se(t))return t}}catch(r){s.throwInternal(M.CRITICAL,D.FailedToRestoreStorageBuffer," storage key: "+e+", "+De(r),{exception:en(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);Vn(s,e,t)}catch(r){Vn(s,e,JSON.stringify([])),s.throwInternal(M.WARNING,D.FailedToSetStorageBuffer," storage key: "+e+", "+De(r)+". Buffer cleared",{exception:en(r)})}}r.length>c.MAX_BUFFER_SIZE&&(r.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,[]),a(c.BUFFER_KEY,r),t.enqueue=function(e){t.count()>=c.MAX_BUFFER_SIZE?l||(s.throwInternal(M.WARNING,D.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),l=!0):(n.enqueue(e),a(c.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(c.BUFFER_KEY,t._get()),a(c.SENT_BUFFER_KEY,[]),l=!1},t.markAsSent=function(e){a(c.BUFFER_KEY,t._set(i(e,t._get())));var n=o(c.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>c.MAX_BUFFER_SIZE&&(s.throwInternal(M.CRITICAL,D.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,o(c.SENT_BUFFER_KEY));a(c.SENT_BUFFER_KEY,e)}}),e}var gr="baseType",d="baseData",p="properties",mr="true";function g(e,n,t){return ke(e,n,t,Be)}function hr(e,t,r){k(e)||Ie(e,function(e,n){"number"==typeof n?r[e]=n:we(n)?t[e]=n:$e()&&(t[e]=Qe().stringify(n))})}function vr(t,r){k(t)||Ie(t,function(e,n){t[e]=n||r})}function yr(e,n,t,r){for(var r=new Qn(e,r,n),n=(g(r,"sampleRate",t[kn]),(t[d]||{}).startTime&&(r.time=xe(t[d].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r.name=r.name.replace("{0}",n),e),e=t,i=r,o=i.tags=i.tags||{},a=e.ext=e.ext||{},s=e.tags=e.tags||[],u=a.user,u=(u&&(g(o,f.userAuthUserId,u.authId),g(o,f.userId,u.id||u.localId)),a.app),u=(u&&g(o,f.sessionId,u.sesId),a.device),u=(u&&(g(o,f.deviceId,u.id||u.localId),g(o,f.deviceType,u.deviceClass),g(o,f.deviceIp,u.ip),g(o,f.deviceModel,u.model),g(o,f.deviceType,u.deviceType)),e.ext.web),e=(u&&(g(o,f.deviceLanguage,u.browserLang),g(o,f.deviceBrowserVersion,u.browserVer),g(o,f.deviceBrowser,u.browser),g(e=(e=(e=i.data=i.data||{})[d]=e[d]||{})[p]=e[p]||{},"domain",u.domain),g(e,"isManual",u.isManual?mr:null),g(e,"screenRes",u.screenRes),g(e,"userConsent",u.userConsent?mr:null)),a.os),u=(e&&g(o,f.deviceOS,e.name),a.trace),c=(u&&(g(o,f.operationParentId,u.parentID),g(o,f.operationName,Nn(n,u.name)),g(o,f.operationId,u.traceID)),{}),l=s.length-1;0<=l;l--)Ie(s[l],function(e,n){c[e]=n}),s.splice(l,1);Ie(s,function(e,n){c[e]=n});e=S(S({},o),c);return e[f.internalSdkVersion]||(e[f.internalSdkVersion]="javascript:".concat(Cr.Version)),i.tags=Pe(e),t.tags=t.tags||[],Pe(r)}function Ir(e,n){k(n[d])&&e.throwInternal(M.CRITICAL,D.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var Cr={Version:"2.8.0-beta.2202-06"};function Sr(e,n,t){Ir(e,n);var r={},i={},t=(n[gr]!==tt.dataType&&(r.baseTypeSource=n[gr]),n[gr]===tt.dataType?(r=n[d][p]||{},i=n[d].measurements||{}):n[d]&&hr(n[d],r,i),hr(n.data,r,i),k(t)||vr(r,t),n[d].name),t=new tt(e,t,r,i),r=new Jt(tt.dataType,t);return yr(e,tt.envelopeType,n,r)}var Tr=function Or(f){Z(Or,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,D.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,D.CircularReferenceDetected,"Circular reference detected while serializing object",{name:s},!0),u;if(a.aiDataContract)return a[e]=!0,Ie(a.aiDataContract,function(e,n){var t=ve(n)?1&n():1&n,r=ve(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=he(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?c:l)(a[e],e):a[e])!==undefined&&(u[e]=t):f.throwInternal(M.CRITICAL,D.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:s})}),delete a[e],u;if("measurements"===s)u=t(a,"number",s);else if("properties"===s)u=t(a,"string",s);else if("tags"===s)u=t(a,"string",s);else if(Se(a))u=c(a,s);else{f.throwInternal(M.WARNING,D.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Qe().stringify(a),u=a}catch(n){f.throwInternal(M.CRITICAL,D.CannotSerializeObject,n&&ve(n.toString)?n.toString():"Error serializing object",null,!0)}}return u}function c(e,n){if(e)if(Se(e))for(var t=[],r=0;r<e.length;r++){var i=l(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(M.CRITICAL,D.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},Ie(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(M.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=l(e,"root");try{return Qe().stringify(e)}catch(n){f.throwInternal(M.CRITICAL,D.CannotSerializeObject,n&&ve(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function wr(){var a=Xe(),s=Ye(),u=!1,l=!0;Z(wr,this,function(e){try{var n,t;a&&ye(a,"online",r)&&(ye(a,"offline",i),u=!0),s&&(me((n=s.body||s).ononline)||(n.ononline=r,n.onoffline=i,u=!0)),!u||(t=Ze())&&!k(t.onLine)&&(l=t.onLine)}catch(o){u=!1}function r(){l=!0}function i(){l=!1}e.isListening=u,e.isOnline=function(){var e=!0,n=Ze();return u?e=l:n&&!k(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var br=wr.Offline=new wr,xr=(Nr.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Nr.INT_MAX_VALUE*100},Nr.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Nr.INT_MAX_VALUE=2147483647,Nr);function Nr(){}var _r=function(){var n=new xr,t=new sr;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},Rr=(Ar.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===Lt.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},Ar);function Ar(e,n){this.INT_MAX_VALUE=2147483647;n=n||fn(null);(100<e||e<0)&&(n.throwInternal(M.WARNING,D.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new _r}function Fr(e){try{return e.responseText}catch(n){}return null}function Lr(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}(e={})[tt.dataType]=Sr,e[qt.dataType]=function(e,n,t){Ir(e,n);var r=n[d].message,i=n[d].severityLevel,o=n[d][p]||{},a=n[d].measurements||{},t=(hr(n.data,o,a),k(t)||vr(o,t),new qt(e,r,i,o,a)),r=new Jt(qt.dataType,t);return yr(e,qt.envelopeType,n,r)},e[Bt.dataType]=function(e,n,t){Ir(e,n);var r,i="duration",o=n[d],i=(k(o)||k(o[p])||k(o[p][i])?k(n.data)||k(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[p][i],delete o[p][i]),n[d]),o=(((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID),i.id||a),a=i.name,s=i.uri,u=i[p]||{},l=i.measurements||{},i=(k(i.refUri)||(u.refUri=i.refUri),k(i.pageType)||(u.pageType=i.pageType),k(i.isLoggedIn)||(u.isLoggedIn=i.isLoggedIn.toString()),k(i[p])||Ie(i[p],function(e,n){u[e]=n}),hr(n.data,u,l),k(t)||vr(u,t),new Bt(e,a,s,r,u,l,o)),t=new Jt(Bt.dataType,i);return yr(e,Bt.envelopeType,n,t)},e[Ht.dataType]=function(e,n,t){Ir(e,n);var r=n[d],i=r.name,o=r.uri||r.url,a=r[p]||{},s=r.measurements||{},t=(hr(n.data,a,s),k(t)||vr(a,t),new Ht(e,i,o,undefined,a,s,r)),i=new Jt(Ht.dataType,t);return yr(e,Ht.envelopeType,n,i)},e[yt.dataType]=function(e,n,t){Ir(e,n);var r=n[d].measurements||{},i=n[d][p]||{},t=(hr(n.data,i,r),k(t)||vr(i,t),n[d]),t=yt.CreateFromInterface(e,t,i,r),i=new Jt(yt.dataType,t);return yr(e,yt.envelopeType,n,i)},e[Lt.dataType]=function(e,n,t){Ir(e,n);var r=n[d],i=r[p]||{},o=r.measurements||{},t=(hr(n.data,i,o),k(t)||vr(i,t),new Lt(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new Jt(Lt.dataType,t);return yr(e,Lt.envelopeType,n,r)},e[Ut.dataType]=function(e,n,t){Ir(e,n);var r=n[d].measurements||{},i=n[d][p]||{},t=(hr(n.data,i,r),k(t)||vr(i,t),n[d]);if(k(t))return e.warnToConsole("Invalid input for dependency data"),null;var o=t[p]&&t[p][Pn]?t[p][Pn]:"GET",o=new Ut(e,t.id,t.target,t.name,t.duration,t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new Jt(Ut.dataType,o);return yr(e,Ut.envelopeType,n,t)};var Er,Mr=e,nr=(n(Dr,Er=ie),Dr.constructEnvelope=function(e,n,t,r){e=n===e.iKey||k(n)?e:S(S({},e),{iKey:n});return(Mr[e.baseType]||Sr)(t,e,r)},Dr);function Dr(){var w,b,t,E,x,N,_,R=Er.call(this)||this,A=(R.priority=1001,!(R.identifier="AppInsightsChannelPlugin")),F={},L=0;return R._senderConfig=Lr(),Z(Dr,R,function(l,h){function c(e,n,t,r,i,o){var a=null;l._appId||(a=f(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||s(t))&&!l._senderConfig.isRetryDisabled()&&I(e)?(d(n),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):l._onError(n,i):br.isOffline()?l._senderConfig.isRetryDisabled()||(d(n,10),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(br.isOffline(),". Will retry to send ").concat(n.length," items."))):(s(t),206===e?(a=a||f(o))&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,a):l._onError(n,i):(w=0,l._onSuccess(n,r)))}function s(e){return!(10<=x)&&!k(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++x,1)}function n(e,n){_?_(e,!1):a(e)}function o(e){var n=Ze(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t.markAsSent(e),l._onSuccess(e,e.length)),r}function a(e,n){if(Se(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(N(t,!0),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function u(n,e){var t=new XMLHttpRequest,r=l._senderConfig.endpointUrl();try{t[Dn]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),Yn(r)&&t.setRequestHeader("Sdk-Context","appId"),Ne(Le(F),function(e){t.setRequestHeader(e,F[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return l._onError(n,m(t),e)};e=l._buffer.batchPayloads(n);t.send(e),l._buffer.markAsSent(n)}function v(e,n){if(Se(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;L+t<=65e3?i(e,!1):nn()?a(e):(N&&N(e,!0),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function y(e,n){i(e,!0)}function i(t,r){var e=l._senderConfig.endpointUrl(),n=l._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length,n=!1,s=!1,e=(Yn(e)&&o.append("Sdk-Context","appId"),Ne(Le(F),function(e){o.append(e,F[e])}),(i={method:"POST",headers:o,body:i})[Dn]=!0,r||(n=i.keepalive=!0,L+=a),new Request(e,i));try{e[Dn]=!0}catch(u){}l._buffer.markAsSent(t);try{fetch(e).then(function(n){r||(L-=a,a=0),s||(s=!0,n.ok?n.text().then(function(e){c(n.status,t,n.url,t.length,n.statusText,e)}):l._onError(t,n.statusText))})["catch"](function(e){r||(L-=a,a=0),s||(s=!0,l._onError(t,e.message))})}catch(u){s||l._onError(t,en(u))}n&&!s&&(s=!0,l._onSuccess(t,t.length))}function f(e){try{if(e&&""!==e){var n=Qe().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){l.diagLog().throwInternal(M.CRITICAL,D.InvalidBackendResponse,"Cannot parse the response. "+De(t),{response:e})}return null}function d(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=l._buffer;t.clearSent(e),w++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}n=w<=1?10:(e=1+Math.floor((Math.pow(2,w)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=Me()+1e3*n;b=e,p()}}function p(){var e;t||A||(e=b?Math.max(0,b-Me()):0,e=Math.max(l._senderConfig.maxBatchInterval(),e),t=setTimeout(function(){t=null,l.triggerSend(!0,null,1)},e))}function g(){clearTimeout(t),b=t=null}function I(e){return 408===e||429===e||500===e||503===e}function m(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Fr(e)||e.response||"":n}function C(n,e){var t=l._buffer,r=Xe(),i=new XDomainRequest,r=(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l._onError(n,S(i),e)},r&&r.location&&r.location.protocol||"");if(l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=l._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n);i.send(r),t.markAsSent(n)}function S(e,n){return e?"XDomainRequest,Response:"+Fr(e)||"":n}function T(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,D.NotificationException,"send request notification failed: "+De(r),{exception:en(r)})}}l.pause=function(){g(),A=!0},l.resume=function(){A&&(A=!1,b=null,l._buffer.size()>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),p())},l.flush=function(e,n,t){if(void 0===e&&(e=!0),!A){g();try{l.triggerSend(e,null,t||1)}catch(r){l.diagLog().throwInternal(M.CRITICAL,D.FlushFailed,"flush failed, telemetry will not be collected: "+De(r),{exception:en(r)})}}},l.onunloadFlush=function(){if(!A)if(!1!==l._senderConfig.onunloadDisableBeacon()&&!1!==l._senderConfig.isBeaconApiDisabled()||!nn())l.flush();else try{l.triggerSend(!0,n,2)}catch(e){l.diagLog().throwInternal(M.CRITICAL,D.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+De(e),{exception:en(e)})}},l.teardown=function(){throw Error("Method not implemented.")},l.addHeader=function(e,n){F[e]=n},l.initialize=function(e,n,t,r){h.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier,t=(E=new Tr(n.logger),b=null,w=0,l._sender=null,x=0,l.diagLog()),r=(Ie(Lr(),function(e,n){l._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l._senderConfig.enableSessionStorageBuffer()&&Kn()?pr:cr)(t,l._senderConfig),l._sample=new Rr(l._senderConfig.samplingPercentage(),t),!k(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||t.throwInternal(M.CRITICAL,D.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!Yn(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&Ne(l._senderConfig.customHeaders(),function(e){R.addHeader(e.header,e.value)}),l._senderConfig),n=null;!r.disableXhr()&&rn()?n=C:!r.disableXhr()&&on()&&(n=u),!n&&tn()&&(n=y),N=n||u,!r.isBeaconApiDisabled()&&nn()&&(n=a),l._sender=n||u,_=!r.onunloadDisableFetch()&&tn(!0)?v:nn()?a:!r.disableXhr()&&rn()?C:!r.disableXhr()&&on()?u:N},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,D.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,D.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,D.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,D.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:l._sample.sampleRate});e[kn]=l._sample.sampleRate;var n=l._senderConfig.convertUndefined()||undefined,r=e.iKey||l._senderConfig.instrumentationKey(),i=Dr.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void t.diagLog().throwInternal(M.CRITICAL,D.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[Bn]&&(Ne(e.tags[Bn],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){t.diagLog().throwInternal(M.CRITICAL,D.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+De(n),{exception:en(n)},!0)}}),delete e.tags[Bn]),o)return;var a=E.serialize(i),s=l._buffer;s.size()+a.length>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),s.enqueue(a),p()}catch(u){t.diagLog().throwInternal(M.WARNING,D.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+De(u),{exception:en(u)})}l.processNext(e,t)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&c(e.status,n,e.responseURL,t,m(e),Fr(e)||e.response)},l.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!A)try{var r,i=l._buffer;l._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),T(t||0,e),n?n.call(R,r,e):l._sender(r,e)),g()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Ze()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(Ce(n,"msie"))return e=Ye()||{},Math.max(parseInt(n.split("msie")[1]),e.documentMode||0);if(Ce(n,je)){e=parseInt(n.split(je)[1]);if(e)return e+4}return null}();(!i||9<i)&&l.diagLog().throwInternal(M.CRITICAL,D.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+De(o),{exception:en(o)})}},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,D.OnError,"Failed to send telemetry.",{message:n}),l._buffer.clearSent(e)},l._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],s=e.splice(a.index,1)[0];(I(a.statusCode)?r:t).push(s)}0<e.length&&l._onSuccess(e,n.itemsAccepted),0<t.length&&l._onError(t,m(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(d(r),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},l._onSuccess=function(e,n){l._buffer.clearSent(e)},l._xdrOnLoad=function(e,n){var t=Fr(e);!e||t+""!="200"&&""!==t?(t=f(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,t):l._onError(n,S(e)):(w=0,l._onSuccess(n,0))}}),R}t.Sender=nr;tr=t,rr="__esModule",ir={value:!0},or=Object.defineProperty;if(or)try{return void or(tr,rr,ir)}catch(Ur){}typeof ir.value!==undefined&&(tr[rr]=ir.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
5
|
+
var e=this,n=function(t){"use strict";var a="function",s="object",i="undefined",o="prototype",u="hasOwnProperty",r=Object,l=r[o],m=r.assign,h=r.create,e=r.defineProperty,v=l[u],y=null;function I(e){return void 0===e&&(e=!0),y&&e||(typeof globalThis!==i&&globalThis&&(y=globalThis),typeof self!==i&&self&&(y=self),typeof window!==i&&window&&(y=window),typeof global!==i&&global&&(y=global)),y}function C(e){throw new TypeError(e)}(I()||{}).Symbol,(I()||{}).Reflect;var S=m||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[u].call(n,i)&&(e[i]=n[i]);return e},T=function(e,n){return(T=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[u](t)&&(e[t]=n[t])})(e,n)};function n(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&C("Class extends value "+n+" is not a constructor or null"),T(e,n),e[o]=null===n?function(e){if(h)return h(e);if(null==e)return{};var n=typeof e;function t(){}return n!==s&&n!==a&&C("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var w="constructor",b="prototype",x="function",N="_dynInstFuncs",_="_isDynProxy",R="_dynClass",A="_dynInstChk",F=A,L="_dfOpts",E="_unknown_",B="__proto__",P="useBaseInst",O="setInstFuncs",U=Object,z=U.getPrototypeOf,j=0;function K(e,n){return e&&U[b].hasOwnProperty.call(e,n)}function q(e){return e&&(e===U[b]||e===Array[b])}function V(e){return q(e)||e===Function[b]}function G(e){if(e){if(z)return z(e);e=e[B]||e[b]||(e[w]?e[w][b]:null);if(e)return e}return null}function W(e,n){var t=[],r=U.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&K(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function H(e,n,t){return n!==w&&typeof e[n]===x&&(t||K(e,n))}function X(e){throw new TypeError("DynamicProto: "+e)}function Y(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function J(e,n){return K(e,b)?e.name||n||E:((e||{})[w]||{}).name||n||E}function Z(e,r,n,t){K(e,b)||X("theClass is an invalid class definition.");var c,i,o,a,f,d,s=e[b],u=(function(e){if(z)for(var n=[],t=G(r);t&&!V(t)&&!Y(n,t);){if(t===e)return 1;n.push(t),t=G(t)}}(s)||X("["+J(e)+"] is not in class hierarchy of ["+J(r)+"]"),null),e=(K(s,R)?u=s[R]:(u="_dynCls$"+J(e,"_")+"$"+j,j++,s[R]=u),Z[L]),l=!!e[P],p=(l&&t&&t[P]!==undefined&&(l=!!t[P]),i={},W(c=r,function(e){!i[e]&&H(c,e,!1)&&(i[e]=c[e])}),i),l=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[_]&&o&&!1!==(r=e[N]||{})[F]&&(i=(r[n[R]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(W(t,function(e){i[e]=r(n,t,e)}),G(e)),s=[];a&&!V(a)&&!Y(s,a);)W(a,function(e){!i[e]&&H(a,e,!z)&&(i[e]=r(n,a,e))}),s.push(a),a=G(a);return i}(s,r,p,l)),!!z&&!!e[O]);o=s,n=u,a=r,f=p,e=!1!==(l=l&&t?!!t[O]:l),q(o)||(s=a[N]=a[N]||{},d=s[n]=s[n]||{},!1!==s[F]&&(s[F]=!!e),W(a,function(e){var t,r,i;H(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],K(o,e)&&(!o[e]||o[e][_])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&K(t,R)){var i=e[N]||{};if((r=(i[t[R]]||{})[n])||X("Missing ["+n+"] "+x),!r[A]&&!1!==i[F]){for(var o=!K(e,n),a=G(e),s=[];o&&a&&!V(a)&&!Y(s,a);){var u=a[n];if(u){o=u===c;break}s.push(a),a=G(a)}try{o&&(e[n]=r),r[A]=1}catch(l){i[F]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?G(t)[e]:n)!==x&&X("["+e+"] is not a "+x),n)).apply(this,arguments)})[_]=1,i)))}))}Z[L]={setInstFuncs:!0,useBaseInst:!0},(ie=M=M||{})[ie.CRITICAL=1]="CRITICAL",ie[ie.WARNING=2]="WARNING";var M,D={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},$="on",Q="attachEvent",ee="addEventListener",ne="toISOString",te="indexOf",re="trim",ie="toString",oe="constructor",ae=e,e=r.freeze,se=r.keys,ue=String[o][re],le=Date[o][ne],ce=Array.isArray,fe=l[ie],de=v[ie],pe=de.call(r),ge=Object.getPrototypeOf;function me(e){return e===undefined||typeof e===i}function k(e){return null===e||me(e)}function he(e){return!(!e||typeof e!==s)}function ve(e){return!(!e||typeof e!==a)}function ye(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!k(e))try{k(e[ee])?k(e[Q])||(e[Q]($+n,t),i=!0):(e[ee](n,t,r),i=!0)}catch(o){}return i}function Ie(e,n){if(e)for(var t in e)v.call(e,t)&&n.call(e,t,e[t])}function Ce(e,n){return e&&n&&~e.indexOf(n)}var Se=ce||function(e){return!(!e||"[object Array]"!==fe.call(e))};function Te(e){return e&&"[object Error]"===fe.call(e)}function we(e){return"string"==typeof e}function be(e){return e&&"object"==typeof e&&(!(e=(ge||function(e){if(e){if(ge)return ge(e);e=e.__proto__||e[o]||e[oe];if(e)return e}return null})(e))||typeof(e=e[oe]&&v.call(e,oe)?e[oe]:e)===a&&de.call(e)===pe)}function xe(e){if(e){if(le)return e[ne]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}}function Ne(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function _e(e,n,t){if(e){if(e.map)return e.map(n,t);var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(s){}}return o}function Re(e){return e&&(ue&&e[re]?e[re]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ae=!{toString:null}.propertyIsEnumerable("toString"),Fe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Le(e){var n=typeof e;if(n===a||n===s&&null!==e||C("objKeys called on non-object"),!Ae&&se)return se(e);var t,r=[];for(t in e)e&&v.call(e,t)&&r.push(t);if(Ae)for(var i=Fe.length,o=0;o<i;o++)e&&v.call(e,Fe[o])&&r.push(Fe[o]);return r}var Ee=e||function(e){return e};function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function De(e){return Te(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Be(e){return!!e}function Pe(e){return e&&m?r(m({},e)):e}var Oe="window",Ue="navigator",ze="JSON",je="trident/",Ke="XMLHttpRequest",qe=null,Ve=null;function Ge(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!me((new e)[n])}catch(i){}}return r}function We(e){var n=I();return n&&n[e]?n[e]:e===Oe&&He()?window:null}function He(){return typeof window===s&&window}function Xe(){return He()?window:We(Oe)}function Ye(){return typeof document===s&&document?document:We("document")}function Je(){return!(typeof navigator!==s||!navigator)}function Ze(){return Je()?navigator:We(Ue)}function $e(){return typeof JSON===s&&JSON||null!==We(ze)}function Qe(){return $e()?JSON||We(ze):null}function en(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":$e()&&(t=Qe().stringify(e)),n+t}function nn(){return Ve=null===Ve?Je()&&!!Ze().sendBeacon:Ve}function tn(e){var n=!1;try{var n=!!We("fetch"),t=We("Request");n&&e&&t&&(n=Ge(t,"keepalive"))}catch(r){}return n}function rn(){return qe=null===qe&&(qe=typeof XDomainRequest!==i)&&on()?qe&&!Ge(We(Ke),"withCredentials"):qe}function on(){var e=!1;try{e=!!We(Ke)}catch(n){}return e}var an=null;function sn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function un(e,n){var t,r=typeof console!==i?console:We("console");r&&(t="log",ve(r[t=r[e]?e:t])&&r[t](n))}cn.dataType="MessageData";var ln=cn;function cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",$e()&&(t=Qe().stringify(r)),e=(n?" message:"+sn(n):"")+(r?" props:"+sn(t):"");this.message+=e}function fn(e,n){return(e||{}).logger||new dn(n)}var dn=function kr(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};Z(kr,this,function(o){function e(e,n){e=i[e];return k(e)?n:e}function a(e,n){var t,r=(t=(t=an)||!0===i.disableDbgExt?t:an||(r=We("Microsoft"),an=r?r.ApplicationInsights:an))?t.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,n)}k(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new ln(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===M.CRITICAL?"errorToConsole":"warnToConsole";me(n.message)?a("throw"+(e===M.CRITICAL?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!u[i]&&e<=r&&(o[t](n.message),u[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){un("warn",e),a("warning",e)},o.errorToConsole=function(e){un("error",e),a("error",e)},o.resetInternalMessageCount=function(){s=0,u={}},o.logInternalMessage=function(e,n){var t,r;s>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),s++,a(e===M.CRITICAL?"error":"warn",n)),s===o.maxInternalMessageLimit()&&(r=new ln(D.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===M.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},pn=(gn.ParentContextKey="parent",gn.ChildrenContextKey="childEvts",gn);function gn(e,i,n){var r,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ve(i)&&(a=function(e){if(ae)try{var n={enumerable:!0,configurable:!0,get:function(){return!r&&ve(i)&&(r=i(),i=null),r}};return ae(e,"payload",n),!0}catch(t){}return!1}(o)),o.getCtx=function(e){return e?(e===gn.ParentContextKey||e===gn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===gn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===gn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(gn.ChildrenContextKey);if(Se(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&&ve(i)&&(o.payload=i())}}var mn="CoreUtils.doPerf";function hn(e,n,t,r,i){if(e)if(e=ve(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,s=e.getCtx(mn);try{if(a=e.create(n(),r,i))return s&&a.setCtx&&(a.setCtx(pn.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(pn.ChildrenContextKey))||(o=[],s.setCtx(pn.ChildrenContextKey,o)),o.push(a))),e.setCtx(mn,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(mn,s)}}return t()}var vn="TelemetryPluginChain",yn="_hasRun",In="_getTelCtx",Cn=0;function Sn(e,a,t,n){var r=null,i=null,r=n?function(e,n,t,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return Tn([r],n,t)}(e,a,t,n):e,o={core:function(){return t},diagLog:function(){return fn(t,a)},getCfg:function(){return a},getExtCfg:s,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=s(e,null);return e&&!k(e[n])?r=e[n]:a&&!k(a[n])&&(r=a[n]),k(r)?t:r},hasNext:function(){return null!=r},getNext:function(){return r},setNext:function(e){r=e},processNext:function(n){u(function(e){e.processTelemetry(n,o)})},iterate:function(n){for(;r;)u(function(e){e=e.getPlugin();e&&n(e)})},createNew:function(e,n){return Sn((e=Se(e=void 0===e?null:e)?Tn(e,a,t,n):e)||r,a,t,n)},onComplete:function(e){i=e}};function s(e,n,t){var r,i,o;return void 0===n&&(n={}),void 0===t&&(t=0),!a||(i=a.extensionConfig)&&e&&(r=i[e]),r?he(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e.length,r=!1,i=1;for(0<t&&"boolean"==typeof n&&(r=n,n=e[i]||{},i++),he(n)||(n={});i<t;i++){var o,a,s,u,l=e[i],c=Se(l),f=he(l);for(o in l)(c&&o in l||f&&v.call(l,o))&&(a=l[o],s=void 0,r&&a&&((s=Se(a))||be(a))&&(u=n[o],s?Se(u)||(u=[]):be(u)||(u={}),a=d(r,u,a)),a!==undefined&&(n[o]=a))}return n}(!0,n,r),a&&2===t&&Ie(n,function(e){var n;k(o[e])&&(k(n=a[e])||(o[e]=n))})):r=n,r}function u(e){var n=r;n?(r=n.getNext(),e(n)):i&&(i(),i=null)}return o}function Tn(e,n,t,r){var i,o=null,a=!r;return Se(e)&&0<e.length&&(i=null,Ne(e,function(e){(a=!a&&r===e||a)&&e&&ve(e.processTelemetry)&&(e=wn(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?Tn([r],n,t):o}function wn(u,l,c){var f=null,t=ve(u.processTelemetry),r=ve(u.setNextPlugin),d=u?u.identifier+"-"+u.priority+"-"+Cn++:"Unknown-0-"+Cn++,p={getPlugin:function(){return u},getNext:function(){return f},processTelemetry:function(n,e){i(e,function(e){return!!t&&(r&&u.setNextPlugin(f),u.processTelemetry(n,e),!0)},function(e){f.processTelemetry(n,e)},"processTelemetry",function(){return{item:n}},!n.sync)},_id:d,_setNext:function(e){f=e}};function i(r,i,o,a,e,n){r=(r=r||(u&&ve(u[In])?u[In]():r))||Sn(p,l,c);var t=u?u.identifier:vn,s=(s=r[yn])||(r[yn]={});hn(r.core(),function(){return t+":"+a},function(){var e=!(s[d]=!0);if(r.setNext(f),u)try{var n=f?f._id:"";n&&(s[n]=!1),e=i(r)}catch(t){n=!f||s[f._id];n&&(e=!0),f&&n||r.diagLog().throwInternal(M.CRITICAL,D.PluginException,"Plugin ["+u.identifier+"] failed during "+a+" - "+en(t)+", run flags: "+en(s))}f&&!e&&o(r)},e,n)}return Ee(p)}var bn="getPlugin",ie=function Br(){var o,a,s,n,u=this;function t(e){var n,e=e=void 0===e?null:e;return e||(n=a||Sn(null,{},u.core),e=s&&s[bn]?n.createNew(null,s[bn]):n.createNew(null,s)),e}o=!1,u.core=null,s=a=null,n=[],Z(Br,u,function(e){e.initialize=function(e,n,t,r){e&&ke(e,"extensionConfig",[],null,k),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[bn]&&(i=s[bn]()),u.core=n,a=Sn(r,e,n,i),o=!0},e._addHook=function(e){e&&(Se(e)?n=n.concat(e):n.push(e))}}),u.diagLog=function(e){return t(e).diagLog()},u.isInitialized=function(){return o},u.setInitialized=function(e){o=e},u.setNextPlugin=function(e){s=e},u.processNext=function(e,n){n?n.processNext(e):s&&ve(s.processTelemetry)&&s.processTelemetry(e,null)},u._getTelCtx=t};function xn(e,n,t){var r,i,o=n.length,a=(e=e,(n=n)&&150<(n=Re(n.toString())).length&&(i=n.substring(0,150),e&&e.throwInternal(M.WARNING,D.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));a=u}return a}function Nn(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=Re(n)).toString().length>t&&(r=n.toString().substring(0,t),e&&e.throwInternal(M.WARNING,D.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function _n(e,n){return Ln(e,n,2048,D.UrlTooLong)}function Rn(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,D.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function An(r,e){var i;return e&&(i={},Ie(e,function(e,n){if(he(n)&&$e())try{n=Qe().stringify(n)}catch(t){r&&r.throwInternal(M.WARNING,D.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Nn(r,n,8192),e=xn(r,e,i),i[e]=n}),e=i),e}function Fn(t,e){var r;return e&&(r={},Ie(e,function(e,n){e=xn(t,e,r),r[e]=n}),e=r),e}function Ln(e,n,t,r){var i;return n&&(n=Re(n)).length>t&&(i=n.substring(0,t),e&&e.throwInternal(M.WARNING,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}function En(e){var n=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+t+":"+n+"."+e}var Mn,Dn="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",kn="sampleRate",Bn="ProcessLegacy",Pn="http.method",On="not_specified",Un=((ce=Mn=Mn||{})[ce.LocalStorage=0]="LocalStorage",ce[ce.SessionStorage=1]="SessionStorage",undefined);function zn(e){try{if(k(I()))return null;var n=new Date,t=We(e===Mn.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function jn(){return Kn()?zn(Mn.SessionStorage):null}function Kn(){return Un=Un===undefined?!!zn(Mn.SessionStorage):Un}function qn(e,n){var t=jn();if(null!==t)try{return t.getItem(n)}catch(r){Un=!1,e.throwInternal(M.WARNING,D.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+De(r),{exception:en(r)})}return null}function Vn(e,n,t){var r=jn();if(null!==r)try{return r.setItem(n,t),1}catch(i){Un=!1,e.throwInternal(M.WARNING,D.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+De(i),{exception:en(i)})}}var Gn=Ye()||{},Wn=0,Hn=[null,null,null,null,null];var Xn=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function Yn(e){return~Xn.indexOf(e.toLowerCase())}n(Zn,Jn=function(){});var Jn,e=Zn;function Zn(){return Jn.call(this)||this}n(et,$n=function(){this.ver=1,this.sampleRate=100,this.tags={}});var $n,Qn=et;function et(e,n,t){var r=$n.call(this)||this;return r.name=Nn(e,t)||On,r.data=n,r.time=xe(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var nt,ce=function(){this.ver=2,this.properties={},this.measurements={}},tt=(n(rt,nt=ce),rt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",rt.dataType="EventData",rt);function rt(e,n,t,r){var i=nt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=Nn(e,n)||On,i.properties=An(e,t),i.measurements=Fn(e,r),i}var it="error",ot="stack",at="stackDetails",st="errorSrc",ut="message",lt="description";function ct(e,n){var t=e;return t&&!we(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=ve(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function ft(e,n){var t=e;return e&&((t=t&&!we(t)&&(e[ut]||e[lt])||t)&&!we(t)&&(t=ct(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function dt(e){return e&&e.src&&we(e.src)&&e.obj&&Se(e.obj)}function pt(e){var e=e||"",n=(e=we(e)?e:we(e[ot])?e[ot]:""+e).split("\n");return{src:e,obj:n}}function gt(e){var n,t=null;if(e)try{e[ot]?t=pt(e[ot]):e[it]&&e[it][ot]?t=pt(e[it][ot]):e.exception&&e.exception[ot]?t=pt(e.exception[ot]):dt(e)?t=e:dt(e[at])?t=e[at]:window&&window.opera&&e[ut]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):we(e)?t=pt(e):(n=e[ut]||e[lt]||"",we(e[st])&&(n&&(n+="\n"),n+=" from "+e[st]),n&&(t=pt(n)))}catch(r){t=pt(r)}return t||{src:"",obj:null}}function mt(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function ht(e){if(e)try{var n,t;if(!we(e))return n=mt(e),(t=ct(e,!1))&&"{}"!==t||(e[it]&&(n=mt(e=e[it])),t=ct(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}n(It,vt=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),It.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=mt(i||o||e);return{message:ft(e,u),url:n,lineNumber:t,columnNumber:r,error:ht(i||o||e),evt:ht(o||e),typeName:u,stackDetails:gt(a||i||o),errorSrc:s}},It.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&_e(e.exceptions,function(e){return St.CreateFromInterface(n,e)});return new It(n,S(S({},e),{exceptions:i}),t,r)},It.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&_e(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},It.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},It.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",It.dataType="ExceptionData",It.formatError=ht;var vt,yt=It;function It(e,n,t,r,i,o){var a=vt.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(he(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions,a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),a.ver=2,k(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new St(e,n,t=t||{})],a.properties=An(e,t),a.measurements=Fn(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}n(Tt,Ct=function(){this.hasFullStack=!0,this.parsedStack=[]}),Tt.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_e(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[ot],parsedStack:e||undefined}},Tt.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&_e(n.parsedStack,function(e){return xt.CreateFromInterface(e)})||n.parsedStack;return new Tt(e,S(S({},n),{parsedStack:t}))};var Ct,St=Tt;function Tt(e,n,t){var l,r,i,o,a,s=Ct.call(this)||this;return s.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(he(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(s.typeName=n.typeName,s.message=n.message,s[ot]=n[ot],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(o=n)&&o.evt,Te(o)||(o=o[it]||r||o),s.typeName=Nn(e,mt(o))||On,s.message=Rn(e,ft(n||o,s.typeName))||On,l=n[at]||gt(n),s.parsedStack=function(){var e=l.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(Ne(e,function(e){var e=e.toString();xt.regex.test(e)&&(e=new xt(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,s=i,u=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(s,u-s+1);break}s=i,u=o,i++,o--}}return n}(),s[ot]=(r=e,a="",(o=l)&&(o.obj?Ne(o.obj,function(e){a+=e+"\n"}):a=o.src||""),!(n=a)||32768<(e=""+n).length&&(i=e.substring(0,32768),r&&r.throwInternal(M.WARNING,D.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:n},!0)),i||n),s.hasFullStack=Se(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}n(Nt,wt=function(){}),Nt.CreateFromInterface=function(e){return new Nt(e,null)},Nt.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Nt.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Nt.baseSize=58;var wt,bt,xt=Nt;function Nt(e,n){var t,r=wt.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=Re(t),r.fileName="",r.line=0,(n=t.match(Nt.regex))&&5<=n.length&&(r.method=Re(n[2])||r.method,r.fileName=Re(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Nt.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}bt=0,n(At,_t=function(){this.kind=bt});var _t,Rt=At;function At(){var e=null!==_t&&_t.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}n(Et,Ft=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),Et.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Et.dataType="MetricData";var Ft,Lt=Et;function Et(e,n,t,r,i,o,a,s,c){var u=Ft.call(this)||this,l=(u.aiDataContract={ver:1,metrics:1,properties:0},new Rt);return l.count=0<r?r:undefined,l.max=isNaN(o)||null===o?undefined:o,l.min=isNaN(i)||null===i?undefined:i,l.name=Nn(e,n)||On,l.value=t,l.stdDev=isNaN(a)||null===a?undefined:a,u.metrics=[l],u.properties=An(e,s),u.measurements=Fn(e,c),u}n(Dt,Mt=ce);var Mt,ce=Dt;function Dt(){var e=Mt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(Pt,kt=ce),Pt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pt.dataType="PageviewData";var kt,Bt=Pt;function Pt(e,n,t,r,i,o,a){var s=kt.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Ln(e,a,128,D.IdTooLong).toString(),s.url=_n(e,t),s.name=Nn(e,n)||On,isNaN(r)||(s.duration=En(r)),s.properties=An(e,i),s.measurements=Fn(e,o),s}n(zt,Ot=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),zt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",zt.dataType="RemoteDependencyData";var Ot,Ut=zt;function zt(e,n,t,c,r,f,i,o,a,d,p,g){void 0===a&&(a="Ajax");var m,s,u,l=Ot.call(this)||this,t=(l.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},l.id=n,l.duration=En(r),l.success=f,l.resultCode=i+"",l.type=Nn(e,a),n=e,r=o,a=i=f=c,i=(o=t)&&0<o.length?(m=o,u=(t=Hn)[s=Wn],Gn.createElement?t[s]||(u=t[s]=Gn.createElement("a")):u={host:function(){e=null,!m||null!=(t=m.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t.length&&we(t[2])&&0<t[2].length&&(e=t[2]||"",2<t.length&&(n=(t[1]||"").toLowerCase(),t=t[3]||"",e+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&we(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return n}()},u.href=m,++s>=t.length&&(s=0),Wn=s,s=(t=u).host,i||(null!=t.pathname?("/"!=((u=0===t.pathname.length?"/":t.pathname)[0]||"")&&(u="/"+u),a=t.pathname,Nn(n,r?r+" "+u:u)):Nn(n,o))):s=f,{target:s,name:i,data:a});return l.data=_n(e,c)||t.data,l.target=Nn(e,t.target),d&&(l.target="".concat(l.target," | ").concat(d)),l.name=Nn(e,t.name),l.properties=An(e,p),l.measurements=Fn(e,g),l}n(Vt,jt=function(){this.ver=2,this.properties={},this.measurements={}}),Vt.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Vt.dataType="MessageData";var jt,Kt,qt=Vt;function Vt(e,n,t,r,i){var o=jt.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=Rn(e,n=n||On),o.properties=An(e,r),o.measurements=Fn(e,i),t&&(o.severityLevel=t),o}function Gt(){var e=Kt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(Gt,Kt=ce),n(Xt,Wt=Gt),Xt.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Xt.dataType="PageviewPerformanceData";var Wt,Ht=Xt;function Xt(e,n,t,r,i,o,a){var s=Wt.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=_n(e,t),s.name=Nn(e,n)||On,s.properties=An(e,i),s.measurements=Fn(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}n(Zt,Yt=e);var Yt,Jt=Zt;function Zt(e,n){var t=Yt.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function $t(e){var n="ai."+e+".";return function(e){return n+e}}var Qt,er,ce=$t("application"),e=$t("device"),nr=$t("location"),tr=$t("operation"),rr=$t("session"),ir=$t("user"),or=$t("cloud"),ar=$t("internal"),sr=(er={applicationVersion:ce("ver"),applicationBuild:ce("build"),applicationTypeId:ce("typeId"),applicationId:ce("applicationId"),applicationLayer:ce("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:nr("ip"),locationCountry:nr("country"),locationProvince:nr("province"),locationCity:nr("city"),operationId:tr("id"),operationName:tr("name"),operationParentId:tr("parentId"),operationRootId:tr("rootId"),operationSyntheticSource:tr("syntheticSource"),operationCorrelationVector:tr("correlationVector"),sessionId:rr("id"),sessionIsFirst:rr("isFirst"),sessionIsNew:rr("isNew"),userAccountAcquisitionDate:ir("accountAcquisitionDate"),userAccountId:ir("accountId"),userAgent:ir("userAgent"),userId:ir("id"),userStoreRegion:ir("storeRegion"),userAuthUserId:ir("authUserId"),userAnonymousUserAcquisitionDate:ir("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ir("authUserAcquisitionDate"),cloudName:or("name"),cloudRole:or("role"),cloudRoleVer:or("roleVer"),cloudRoleInstance:or("roleInstance"),cloudEnvironment:or("environment"),cloudLocation:or("location"),cloudDeploymentUnit:or("deploymentUnit"),internalNodeName:ar("nodeName"),internalSdkVersion:ar("sdkVersion"),internalAgentVersion:ar("agentVersion"),internalSnippet:ar("snippet"),internalSdkSrc:ar("sdkSrc")},n(ur,Qt=function(){var t=this;Ie(er,function(e,n){t[e]=n})}),ur);function ur(){return Qt.call(this)||this}var lr,f=new sr,ce=function Pr(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},Z(Pr,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,D.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})},cr=(n(fr,lr=ce),fr);function fr(e,n){e=lr.call(this,e,n)||this;return Z(fr,e,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),e}n(c,dr=ce),c.BUFFER_KEY="AI_buffer",c.SENT_BUFFER_KEY="AI_sentBuffer",c.MAX_BUFFER_SIZE=2e3;var dr,pr=c;function c(s,u){var e=dr.call(this,s,u)||this,l=!1;return Z(c,e,function(t,n){var e=o(c.BUFFER_KEY),r=o(c.SENT_BUFFER_KEY),r=t._set(e.concat(r));function i(n,e){var t=[];return Ne(e,function(e){ve(e)||-1!==function(e,n){if(e){if(e[te])return e[te](n,void 0);var t=e.length;try{for(var r=0;r<t;r++)if(r in e&&e[r]===n)return r}catch(i){}}return-1}(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=qn(s,e);if(n){var t=Qe().parse(n);if((t=we(t)?Qe().parse(t):t)&&Se(t))return t}}catch(r){s.throwInternal(M.CRITICAL,D.FailedToRestoreStorageBuffer," storage key: "+e+", "+De(r),{exception:en(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);Vn(s,e,t)}catch(r){Vn(s,e,JSON.stringify([])),s.throwInternal(M.WARNING,D.FailedToSetStorageBuffer," storage key: "+e+", "+De(r)+". Buffer cleared",{exception:en(r)})}}r.length>c.MAX_BUFFER_SIZE&&(r.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,[]),a(c.BUFFER_KEY,r),t.enqueue=function(e){t.count()>=c.MAX_BUFFER_SIZE?l||(s.throwInternal(M.WARNING,D.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),l=!0):(n.enqueue(e),a(c.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(c.BUFFER_KEY,t._get()),a(c.SENT_BUFFER_KEY,[]),l=!1},t.markAsSent=function(e){a(c.BUFFER_KEY,t._set(i(e,t._get())));var n=o(c.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>c.MAX_BUFFER_SIZE&&(s.throwInternal(M.CRITICAL,D.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,o(c.SENT_BUFFER_KEY));a(c.SENT_BUFFER_KEY,e)}}),e}var gr="baseType",d="baseData",p="properties",mr="true";function g(e,n,t){return ke(e,n,t,Be)}function hr(e,t,r){k(e)||Ie(e,function(e,n){"number"==typeof n?r[e]=n:we(n)?t[e]=n:$e()&&(t[e]=Qe().stringify(n))})}function vr(t,r){k(t)||Ie(t,function(e,n){t[e]=n||r})}function yr(e,n,t,r){for(var r=new Qn(e,r,n),n=(g(r,"sampleRate",t[kn]),(t[d]||{}).startTime&&(r.time=xe(t[d].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r.name=r.name.replace("{0}",n),e),e=t,i=r,o=i.tags=i.tags||{},a=e.ext=e.ext||{},s=e.tags=e.tags||[],u=a.user,u=(u&&(g(o,f.userAuthUserId,u.authId),g(o,f.userId,u.id||u.localId)),a.app),u=(u&&g(o,f.sessionId,u.sesId),a.device),u=(u&&(g(o,f.deviceId,u.id||u.localId),g(o,f.deviceType,u.deviceClass),g(o,f.deviceIp,u.ip),g(o,f.deviceModel,u.model),g(o,f.deviceType,u.deviceType)),e.ext.web),e=(u&&(g(o,f.deviceLanguage,u.browserLang),g(o,f.deviceBrowserVersion,u.browserVer),g(o,f.deviceBrowser,u.browser),g(e=(e=(e=i.data=i.data||{})[d]=e[d]||{})[p]=e[p]||{},"domain",u.domain),g(e,"isManual",u.isManual?mr:null),g(e,"screenRes",u.screenRes),g(e,"userConsent",u.userConsent?mr:null)),a.os),u=(e&&g(o,f.deviceOS,e.name),a.trace),c=(u&&(g(o,f.operationParentId,u.parentID),g(o,f.operationName,Nn(n,u.name)),g(o,f.operationId,u.traceID)),{}),l=s.length-1;0<=l;l--)Ie(s[l],function(e,n){c[e]=n}),s.splice(l,1);Ie(s,function(e,n){c[e]=n});e=S(S({},o),c);return e[f.internalSdkVersion]||(e[f.internalSdkVersion]="javascript:".concat(Cr.Version)),i.tags=Pe(e),t.tags=t.tags||[],Pe(r)}function Ir(e,n){k(n[d])&&e.throwInternal(M.CRITICAL,D.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var Cr={Version:"2.8.0-beta.2202-07"};function Sr(e,n,t){Ir(e,n);var r={},i={},t=(n[gr]!==tt.dataType&&(r.baseTypeSource=n[gr]),n[gr]===tt.dataType?(r=n[d][p]||{},i=n[d].measurements||{}):n[d]&&hr(n[d],r,i),hr(n.data,r,i),k(t)||vr(r,t),n[d].name),t=new tt(e,t,r,i),r=new Jt(tt.dataType,t);return yr(e,tt.envelopeType,n,r)}var Tr=function Or(f){Z(Or,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,D.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,D.CircularReferenceDetected,"Circular reference detected while serializing object",{name:s},!0),u;if(a.aiDataContract)return a[e]=!0,Ie(a.aiDataContract,function(e,n){var t=ve(n)?1&n():1&n,r=ve(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=he(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?c:l)(a[e],e):a[e])!==undefined&&(u[e]=t):f.throwInternal(M.CRITICAL,D.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:s})}),delete a[e],u;if("measurements"===s)u=t(a,"number",s);else if("properties"===s)u=t(a,"string",s);else if("tags"===s)u=t(a,"string",s);else if(Se(a))u=c(a,s);else{f.throwInternal(M.WARNING,D.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Qe().stringify(a),u=a}catch(n){f.throwInternal(M.CRITICAL,D.CannotSerializeObject,n&&ve(n.toString)?n.toString():"Error serializing object",null,!0)}}return u}function c(e,n){if(e)if(Se(e))for(var t=[],r=0;r<e.length;r++){var i=l(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(M.CRITICAL,D.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},Ie(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(M.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=l(e,"root");try{return Qe().stringify(e)}catch(n){f.throwInternal(M.CRITICAL,D.CannotSerializeObject,n&&ve(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function wr(){var a=Xe(),s=Ye(),u=!1,l=!0;Z(wr,this,function(e){try{var n,t;a&&ye(a,"online",r)&&(ye(a,"offline",i),u=!0),s&&(me((n=s.body||s).ononline)||(n.ononline=r,n.onoffline=i,u=!0)),!u||(t=Ze())&&!k(t.onLine)&&(l=t.onLine)}catch(o){u=!1}function r(){l=!0}function i(){l=!1}e.isListening=u,e.isOnline=function(){var e=!0,n=Ze();return u?e=l:n&&!k(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var br=wr.Offline=new wr,xr=(Nr.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Nr.INT_MAX_VALUE*100},Nr.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Nr.INT_MAX_VALUE=2147483647,Nr);function Nr(){}var _r=function(){var n=new xr,t=new sr;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},Rr=(Ar.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===Lt.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},Ar);function Ar(e,n){this.INT_MAX_VALUE=2147483647;n=n||fn(null);(100<e||e<0)&&(n.throwInternal(M.WARNING,D.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new _r}function Fr(e){try{return e.responseText}catch(n){}return null}function Lr(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}(e={})[tt.dataType]=Sr,e[qt.dataType]=function(e,n,t){Ir(e,n);var r=n[d].message,i=n[d].severityLevel,o=n[d][p]||{},a=n[d].measurements||{},t=(hr(n.data,o,a),k(t)||vr(o,t),new qt(e,r,i,o,a)),r=new Jt(qt.dataType,t);return yr(e,qt.envelopeType,n,r)},e[Bt.dataType]=function(e,n,t){Ir(e,n);var r,i="duration",o=n[d],i=(k(o)||k(o[p])||k(o[p][i])?k(n.data)||k(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[p][i],delete o[p][i]),n[d]),o=(((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID),i.id||a),a=i.name,s=i.uri,u=i[p]||{},l=i.measurements||{},i=(k(i.refUri)||(u.refUri=i.refUri),k(i.pageType)||(u.pageType=i.pageType),k(i.isLoggedIn)||(u.isLoggedIn=i.isLoggedIn.toString()),k(i[p])||Ie(i[p],function(e,n){u[e]=n}),hr(n.data,u,l),k(t)||vr(u,t),new Bt(e,a,s,r,u,l,o)),t=new Jt(Bt.dataType,i);return yr(e,Bt.envelopeType,n,t)},e[Ht.dataType]=function(e,n,t){Ir(e,n);var r=n[d],i=r.name,o=r.uri||r.url,a=r[p]||{},s=r.measurements||{},t=(hr(n.data,a,s),k(t)||vr(a,t),new Ht(e,i,o,undefined,a,s,r)),i=new Jt(Ht.dataType,t);return yr(e,Ht.envelopeType,n,i)},e[yt.dataType]=function(e,n,t){Ir(e,n);var r=n[d].measurements||{},i=n[d][p]||{},t=(hr(n.data,i,r),k(t)||vr(i,t),n[d]),t=yt.CreateFromInterface(e,t,i,r),i=new Jt(yt.dataType,t);return yr(e,yt.envelopeType,n,i)},e[Lt.dataType]=function(e,n,t){Ir(e,n);var r=n[d],i=r[p]||{},o=r.measurements||{},t=(hr(n.data,i,o),k(t)||vr(i,t),new Lt(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new Jt(Lt.dataType,t);return yr(e,Lt.envelopeType,n,r)},e[Ut.dataType]=function(e,n,t){Ir(e,n);var r=n[d].measurements||{},i=n[d][p]||{},t=(hr(n.data,i,r),k(t)||vr(i,t),n[d]);if(k(t))return e.warnToConsole("Invalid input for dependency data"),null;var o=t[p]&&t[p][Pn]?t[p][Pn]:"GET",o=new Ut(e,t.id,t.target,t.name,t.duration,t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new Jt(Ut.dataType,o);return yr(e,Ut.envelopeType,n,t)};var Er,Mr=e,nr=(n(Dr,Er=ie),Dr.constructEnvelope=function(e,n,t,r){e=n===e.iKey||k(n)?e:S(S({},e),{iKey:n});return(Mr[e.baseType]||Sr)(t,e,r)},Dr);function Dr(){var w,b,t,E,x,N,_,R=Er.call(this)||this,A=(R.priority=1001,!(R.identifier="AppInsightsChannelPlugin")),F={},L=0;return R._senderConfig=Lr(),Z(Dr,R,function(l,h){function c(e,n,t,r,i,o){var a=null;l._appId||(a=f(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||s(t))&&!l._senderConfig.isRetryDisabled()&&I(e)?(d(n),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):l._onError(n,i):br.isOffline()?l._senderConfig.isRetryDisabled()||(d(n,10),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(br.isOffline(),". Will retry to send ").concat(n.length," items."))):(s(t),206===e?(a=a||f(o))&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,a):l._onError(n,i):(w=0,l._onSuccess(n,r)))}function s(e){return!(10<=x)&&!k(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++x,1)}function n(e,n){_?_(e,!1):a(e)}function o(e){var n=Ze(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t.markAsSent(e),l._onSuccess(e,e.length)),r}function a(e,n){if(Se(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(N(t,!0),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function u(n,e){var t=new XMLHttpRequest,r=l._senderConfig.endpointUrl();try{t[Dn]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),Yn(r)&&t.setRequestHeader("Sdk-Context","appId"),Ne(Le(F),function(e){t.setRequestHeader(e,F[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return l._onError(n,m(t),e)};e=l._buffer.batchPayloads(n);t.send(e),l._buffer.markAsSent(n)}function v(e,n){if(Se(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;L+t<=65e3?i(e,!1):nn()?a(e):(N&&N(e,!0),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function y(e,n){i(e,!0)}function i(t,r){var e=l._senderConfig.endpointUrl(),n=l._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length,n=!1,s=!1,e=(Yn(e)&&o.append("Sdk-Context","appId"),Ne(Le(F),function(e){o.append(e,F[e])}),(i={method:"POST",headers:o,body:i})[Dn]=!0,r||(n=i.keepalive=!0,L+=a),new Request(e,i));try{e[Dn]=!0}catch(u){}l._buffer.markAsSent(t);try{fetch(e).then(function(n){r||(L-=a,a=0),s||(s=!0,n.ok?n.text().then(function(e){c(n.status,t,n.url,t.length,n.statusText,e)}):l._onError(t,n.statusText))})["catch"](function(e){r||(L-=a,a=0),s||(s=!0,l._onError(t,e.message))})}catch(u){s||l._onError(t,en(u))}n&&!s&&(s=!0,l._onSuccess(t,t.length))}function f(e){try{if(e&&""!==e){var n=Qe().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){l.diagLog().throwInternal(M.CRITICAL,D.InvalidBackendResponse,"Cannot parse the response. "+De(t),{response:e})}return null}function d(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=l._buffer;t.clearSent(e),w++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}n=w<=1?10:(e=1+Math.floor((Math.pow(2,w)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=Me()+1e3*n;b=e,p()}}function p(){var e;t||A||(e=b?Math.max(0,b-Me()):0,e=Math.max(l._senderConfig.maxBatchInterval(),e),t=setTimeout(function(){t=null,l.triggerSend(!0,null,1)},e))}function g(){clearTimeout(t),b=t=null}function I(e){return 408===e||429===e||500===e||503===e}function m(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Fr(e)||e.response||"":n}function C(n,e){var t=l._buffer,r=Xe(),i=new XDomainRequest,r=(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l._onError(n,S(i),e)},r&&r.location&&r.location.protocol||"");if(l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=l._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n);i.send(r),t.markAsSent(n)}function S(e,n){return e?"XDomainRequest,Response:"+Fr(e)||"":n}function T(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,D.NotificationException,"send request notification failed: "+De(r),{exception:en(r)})}}l.pause=function(){g(),A=!0},l.resume=function(){A&&(A=!1,b=null,l._buffer.size()>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),p())},l.flush=function(e,n,t){if(void 0===e&&(e=!0),!A){g();try{l.triggerSend(e,null,t||1)}catch(r){l.diagLog().throwInternal(M.CRITICAL,D.FlushFailed,"flush failed, telemetry will not be collected: "+De(r),{exception:en(r)})}}},l.onunloadFlush=function(){if(!A)if(!1!==l._senderConfig.onunloadDisableBeacon()&&!1!==l._senderConfig.isBeaconApiDisabled()||!nn())l.flush();else try{l.triggerSend(!0,n,2)}catch(e){l.diagLog().throwInternal(M.CRITICAL,D.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+De(e),{exception:en(e)})}},l.teardown=function(){throw Error("Method not implemented.")},l.addHeader=function(e,n){F[e]=n},l.initialize=function(e,n,t,r){h.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier,t=(E=new Tr(n.logger),b=null,w=0,l._sender=null,x=0,l.diagLog()),r=(Ie(Lr(),function(e,n){l._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l._senderConfig.enableSessionStorageBuffer()&&Kn()?pr:cr)(t,l._senderConfig),l._sample=new Rr(l._senderConfig.samplingPercentage(),t),!k(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||t.throwInternal(M.CRITICAL,D.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!Yn(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&Ne(l._senderConfig.customHeaders(),function(e){R.addHeader(e.header,e.value)}),l._senderConfig),n=null;!r.disableXhr()&&rn()?n=C:!r.disableXhr()&&on()&&(n=u),!n&&tn()&&(n=y),N=n||u,!r.isBeaconApiDisabled()&&nn()&&(n=a),l._sender=n||u,_=!r.onunloadDisableFetch()&&tn(!0)?v:nn()?a:!r.disableXhr()&&rn()?C:!r.disableXhr()&&on()?u:N},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,D.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,D.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,D.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,D.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:l._sample.sampleRate});e[kn]=l._sample.sampleRate;var n=l._senderConfig.convertUndefined()||undefined,r=e.iKey||l._senderConfig.instrumentationKey(),i=Dr.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void t.diagLog().throwInternal(M.CRITICAL,D.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[Bn]&&(Ne(e.tags[Bn],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){t.diagLog().throwInternal(M.CRITICAL,D.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+De(n),{exception:en(n)},!0)}}),delete e.tags[Bn]),o)return;var a=E.serialize(i),s=l._buffer;s.size()+a.length>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),s.enqueue(a),p()}catch(u){t.diagLog().throwInternal(M.WARNING,D.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+De(u),{exception:en(u)})}l.processNext(e,t)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&c(e.status,n,e.responseURL,t,m(e),Fr(e)||e.response)},l.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!A)try{var r,i=l._buffer;l._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),T(t||0,e),n?n.call(R,r,e):l._sender(r,e)),g()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Ze()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(Ce(n,"msie"))return e=Ye()||{},Math.max(parseInt(n.split("msie")[1]),e.documentMode||0);if(Ce(n,je)){e=parseInt(n.split(je)[1]);if(e)return e+4}return null}();(!i||9<i)&&l.diagLog().throwInternal(M.CRITICAL,D.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+De(o),{exception:en(o)})}},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,D.OnError,"Failed to send telemetry.",{message:n}),l._buffer.clearSent(e)},l._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],s=e.splice(a.index,1)[0];(I(a.statusCode)?r:t).push(s)}0<e.length&&l._onSuccess(e,n.itemsAccepted),0<t.length&&l._onError(t,m(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(d(r),l.diagLog().throwInternal(M.WARNING,D.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},l._onSuccess=function(e,n){l._buffer.clearSent(e)},l._xdrOnLoad=function(e,n){var t=Fr(e);!e||t+""!="200"&&""!==t?(t=f(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,t):l._onError(n,S(e)):(w=0,l._onSuccess(n,0))}}),R}t.Sender=nr;tr=t,rr="__esModule",ir={value:!0},or=Object.defineProperty;if(or)try{return void or(tr,rr,ir)}catch(Ur){}typeof ir.value!==undefined&&(tr[rr]=ir.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-channel-js.min.js.map
|