Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/1ds-core-js

Package Overview
Dependencies
Maintainers
4
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/1ds-core-js - npm Package Compare versions

Comparing version 3.1.10 to 3.1.11

bundle/ms.core-3.1.11.gbl.js

4

bundle/ms.core.gbl.min.js
/*!
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
!function(c){"use strict";var u="function",a="object",n="undefined",h="prototype",o="hasOwnProperty",r=Object,l=r[h],m=r.assign,y=r.create,e=r.defineProperty,C=l[o],S=null;function x(e){return void 0===e&&(e=!0),S&&e||(typeof globalThis!==n&&globalThis&&(S=globalThis),typeof self!==n&&self&&(S=self),typeof window!==n&&window&&(S=window),typeof global!==n&&global&&(S=global)),S}function I(e){throw new TypeError(e)}function b(e){if(y)return y(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==u&&I("Object prototype may only be an Object:"+e),t[h]=e,new t}(x()||{}).Symbol,(x()||{}).Reflect;var T=m||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},w=function(e,n){return(w=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==u&&null!==n&&I("Class extends value "+n+" is not a constructor or null"),w(e,n),e[h]=null===n?b(n):(t[h]=n[h],new t)}function E(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var N={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},A="constructor",L="prototype",M="function",k="_dynInstFuncs",F="_isDynProxy",O="_dynClass",R="_dynInstChk",D=R,_="_dfOpts",j="_unknown_",U="__proto__",V="useBaseInst",z="setInstFuncs",B=Object,K=B.getPrototypeOf,H=0;function q(e,n){return e&&B[L].hasOwnProperty.call(e,n)}function W(e){return e&&(e===B[L]||e===Array[L])}function G(e){return W(e)||e===Function[L]}function J(e){if(e){if(K)return K(e);e=e[U]||e[L]||(e[A]?e[A][L]:null);if(e)return e}return null}function X(e,n){var t=[],r=B.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&q(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function Q(e,n,t){return n!==A&&typeof e[n]===M&&(t||q(e,n))}function Z(e){throw new TypeError("DynamicProto: "+e)}function $(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Y(e,n){return q(e,L)?e.name||n||j:((e||{})[A]||{}).name||n||j}function ee(e,r,n,t){q(e,L)||Z("theClass is an invalid class definition.");var c,i,o,a,f,g,u=e[L],l=(function(e){if(K)for(var n=[],t=J(r);t&&!G(t)&&!$(n,t);){if(t===e)return 1;n.push(t),t=J(t)}}(u)||Z("["+Y(e)+"] is not in class hierarchy of ["+Y(r)+"]"),null),e=(q(u,O)?l=u[O]:(l="_dynCls$"+Y(e,"_")+"$"+H,H++,u[O]=l),ee[_]),s=!!e[V],d=(s&&t&&t[V]!==undefined&&(s=!!t[V]),i={},X(c=r,function(e){!i[e]&&Q(c,e,!1)&&(i[e]=c[e])}),i),s=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[F]&&o&&!1!==(r=e[k]||{})[D]&&(i=(r[n[O]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(X(t,function(e){i[e]=r(n,t,e)}),J(e)),u=[];a&&!G(a)&&!$(u,a);)X(a,function(e){!i[e]&&Q(a,e,!K)&&(i[e]=r(n,a,e))}),u.push(a),a=J(a);return i}(u,r,d,s)),!!K&&!!e[z]);o=u,n=l,a=r,f=d,e=!1!==(s=s&&t?!!t[z]:s),W(o)||(u=a[k]=a[k]||{},g=u[n]=u[n]||{},!1!==u[D]&&(u[D]=!!e),X(a,function(e){var t,r,i;Q(a,e,!1)&&a[e]!==f[e]&&(g[e]=a[e],delete a[e],q(o,e)&&(!o[e]||o[e][F])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&q(t,O)){var i=e[k]||{};if((r=(i[t[O]]||{})[n])||Z("Missing ["+n+"] "+M),!r[R]&&!1!==i[D]){for(var o=!q(e,n),a=J(e),u=[];o&&a&&!G(a)&&!$(u,a);){var l=a[n];if(l){o=l===c;break}u.push(a),a=J(a)}try{o&&(e[n]=r),r[R]=1}catch(s){i[D]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?J(t)[e]:n)!==M&&Z("["+e+"] is not a "+M),n)).apply(this,arguments)})[F]=1,i)))}))}ee[_]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Vn=c.LoggingSeverity||(c.LoggingSeverity={}))[Vn.CRITICAL=1]="CRITICAL",Vn[Vn.WARNING=2]="WARNING";var ne={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},te="attachEvent",re="addEventListener",ie="detachEvent",oe="removeEventListener",ae="toISOString",ue=e;function le(e){return l.toString.call(e)}function se(e,n){return typeof e===n}function d(e){return e===undefined||typeof e===n}function v(e){return null===e||d(e)}function ce(e){return!v(e)}function fe(e,n){return e&&C.call(e,n)}function ge(e){return typeof e===a}function f(e){return typeof e===u}function de(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!v(e))try{v(e[re])?v(e[te])||(e[te]("on"+n,t),i=!0):(e[re](n,t,r),i=!0)}catch(o){}return i}function ve(e,n,t,r){if(void 0===r&&(r=!1),!v(e))try{v(e[oe])?v(e[ie])||e[ie]("on"+n,t):e[oe](n,t,r)}catch(i){}}function pe(e,n){if(e)for(var t in e)C.call(e,t)&&n.call(e,t,e[t])}function he(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function t(e,n){return!(!e||!n||!~e.indexOf(n))}function me(e){return"[object Date]"===le(e)}function ye(e){return"[object Array]"===le(e)}function Ce(e){return"[object Error]"===le(e)}function Se(e){return"string"==typeof e}function xe(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function be(e){var n;if(e)return e[ae]?e[ae]():me(e)?(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 g(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 Te(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function we(e,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(u){}return o}function Pe(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Ee(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ne=!{toString:null}.propertyIsEnumerable("toString"),Ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Le(e){var n,t=typeof e,r=(t===u||t===a&&null!==e||I("objKeys called on non-object"),[]);for(n in e)e&&C.call(e,n)&&r.push(n);if(Ne)for(var i=Ae.length,o=0;o<i;o++)e&&C.call(e,Ae[o])&&r.push(Ae[o]);return r}function Me(e,n,t,r){if(ue)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),ue(e,n,i),!0}catch(o){}return!1}function ke(){var e=Date;return e.now?e.now():(new e).getTime()}function Fe(e){return Ce(e)?e.name:""}function p(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 Oe(e,n,t){var r;return e?!(r=e[n])&&v(r)&&(r=d(t)?{}:t,e[n]=r):r=d(t)?{}:t,r}function Re(e){return!e}function De(e){return!!e}function _e(e){throw Error(e)}var je="window",Ue="navigator",Ve="location",ze="performance",Be="JSON",Ke="crypto",He="msCrypto",qe="msie",We="trident/",Ge=null,Je=null,Xe=!1,Qe=null,Ze=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[h])&&(r=n in t)}catch(i){}if(!r)try{r=!d((new e)[n])}catch(i){}}return r}function i(e){var n=x();return n&&n[e]?n[e]:e===je&&Ye()?window:null}function Ye(){return!(typeof window!==a||!window)}function en(){return Ye()?window:i(je)}function nn(){return!(typeof document!==a||!document)}function tn(){return nn()?document:i("document")}function rn(){return!(typeof navigator!==a||!navigator)}function on(){return rn()?navigator:i(Ue)}function an(){return!(typeof history!==a||!history)}function un(e){if(e&&Xe){e=i("__mockLocation");if(e)return e}return typeof location===a&&location?location:i(Ve)}function ln(){return typeof console!==n?console:i("console")}function sn(){return i(ze)}function cn(){return!!(typeof JSON===a&&JSON||null!==i(Be))}function fn(){return cn()?JSON||i(Be):null}function gn(){return i(Ke)}function dn(){return i(He)}function vn(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product}function pn(){var e=on();return!e||e.userAgent===Je&&null!==Ge||(e=((Je=e.userAgent)||"").toLowerCase(),Ge=t(e,qe)||t(e,We)),Ge}function hn(e){var n=Object[h].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":cn()&&(t=fn().stringify(e)),n+t}function mn(){return Ze=null===Ze?rn()&&!!on().sendBeacon:Ze}function yn(){return Qe=null===Qe&&(Qe="undefined"!=typeof XDomainRequest)&&Cn()?Qe&&!$e(i("XMLHttpRequest"),"withCredentials"):Qe}function Cn(){var e=!1;try{e=!!i("XMLHttpRequest")}catch(n){}return e}var Sn,xn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],In=null;function bn(e){var n=In;return(n=n||!0===e.disableDbgExt?n:In||(e=i("Microsoft"),In=e?e.ApplicationInsights:In))?n.ChromeDbgExt:null}function Tn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function wn(e,n){var t,r=ln();r&&(t="log",f(r[t=r[e]?e:t])&&r[t](n))}En.dataType="MessageData";var Pn=En;function En(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",cn()&&(t=fn().stringify(r)),e=(n?" message:"+Tn(n):"")+(r?" props:"+Tn(t):"");this.message+=e}function Nn(e,n){return(e||{}).logger||new An(n)}var An=function Hr(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};ee(Hr,this,function(o){function e(e,n){e=r[e];return v(e)?n:e}function a(e,n){var t=bn(r);t&&t.diagLog&&t.diagLog(e,n)}v(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new Pn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole";d(n.message)?a("throw"+(e===c.LoggingSeverity.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){wn("warn",e),a("warning",e)},o.errorToConsole=function(e){wn("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===c.LoggingSeverity.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new Pn(ne.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===c.LoggingSeverity.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},Ln=(Mn.ParentContextKey="parent",Mn.ChildrenContextKey="childEvts",Mn);function Mn(e,i,n){var t,o=this,a=!1;o.start=ke(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},f(i)&&(a=Me(o,"payload",function(){return!t&&f(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Mn.ParentContextKey||e===Mn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Mn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Mn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Mn.ChildrenContextKey);if(ye(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=ke()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&f(i)&&(o.payload=i())}}var kn=function qr(n){this.ctx={},ee(qr,this,function(t){t.create=function(e,n,t){return new Ln(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&f(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Fn="CoreUtils.doPerf";function On(e,n,t,r,i){if(e)if(e=f(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(Fn);try{if(a=e.create(n(),r,i))return u&&a.setCtx&&(a.setCtx(Ln.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(Ln.ChildrenContextKey))||(o=[],u.setCtx(Ln.ChildrenContextKey,o)),o.push(a))),e.setCtx(Fn,a),t(a)}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&e.fire(a),e.setCtx(Fn,u)}}return t()}var Rn=function(i,n){var o=this,a=null,u=f(i.processTelemetry),l=f(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";On(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,ne.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+hn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Dn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&f(o.processTelemetry)&&(o=new Rn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var _n=function Wr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&f(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Dn(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],g(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=Dn(a,r)):d(n)&&(s=Dn(e,l))),l.core=function(){return t},l.diagLog=function(){return Nn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=l.getExtCfg(e,null);return e&&!v(e[n])?r=e[n]:i&&!v(i[n])&&(r=i[n]),v(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Wr((e=void 0===e?null:e)||s,i,t,n)}},jn="extensionConfig",Un="getPlugin",Vn=(zn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},zn);function zn(){var o=this,a=!1,u=null,l=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&f(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=u||new _n(null,{},o.core),e=l&&l[Un]?n.createNew(null,l[Un]):n.createNew(null,l)),e},o._baseTelInit=function(e,n,t,r){e&&p(e,jn,[],null,v),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[Un]&&(i=l[Un]()),o.core=n,u=new _n(r,e,n,i),a=!0}}var Bn="processTelemetry",Kn="priority",Hn="setNextPlugin",qn="isInitialized";function Wn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&f(r[Hn])&&f(o[Bn])&&r[Hn](o),f(o[qn])&&o[qn]()||e.push(o),r=o,i=i.getNext())}g(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Gn(e){return e.sort(function(e,n){var t=0,r=f(n[Bn]);return f(e[Bn])?t=r?e[Kn]-n[Kn]:1:r&&(t=-1),t})}P(Qn,Jn=Vn),Qn._staticInit=(Me(e=Qn.prototype,"ChannelControls",e.getChannelControls),void Me(e,"channelQueue",e.getChannelControls));var Jn,Xn=Qn;function Qn(){var l,r=Jn.call(this)||this;function s(e){e&&0<e.length&&(g(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&_e("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,ee(Qn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&g(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&g(e,s),i&&(o=[],g(i,function(e){500<e.priority&&o.push(e)}),s(o)),g(l,function(e){return Wn(new _n(e,n,t),r)}))}}),r}var Zn="toGMTString",$n="toUTCString",Yn="cookie",et="expires",nt="enabled",tt="isCookieUseDisabled",rt="disableCookiesUsage",it="_ckMgr",ot="",at=null,ut=null,lt=null,st=tn(),ct={},ft={};function gt(e){return!e||e.isEnabled()}function dt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[it]||vt(n)),t||(e=(e||{}).logger,(r=vt[it]||ft[it])||(r=vt[it]=vt(n,e),ft[it]=r),t=r),t}function vt(e,i){p(t=(e=e||ft).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ce,v),p(t,"path",e.cookiePath||"/",null,v),v(t[nt])&&(n=void 0,d(e[tt])||(n=!e[tt]),d(e[rt])||(n=!e[rt]),t[nt]=n);var n,t,s=t,c=s.path||"/",f=s.domain,r=!1!==s[nt],g={isEnabled:function(){var e=r&&pt(i),n=ft[it];return e&&n&&g!==n?gt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return gt(g)&&(o={},-1!=(u=(a=Ee(n||ot)).indexOf(";"))&&(a=Ee(n.substring(0,u)),o=ht(n.substring(1+u))),p(o,"domain",r||f,De,d),v(t)||(u=pn(),!d(o[et])||0<(n=ke()+1e3*t)&&((r=new Date).setTime(n),p(o,et,mt(r,u?Zn:$n)||mt(r,u?Zn:$n)||ot,De)),u||p(o,"max-age",ot+t,null,d)),(n=un())&&"https:"===n.protocol&&(p(o,"secure",null,null,d),(ut=null===ut?!St((on()||{}).userAgent):ut)&&p(o,"SameSite","None",null,d)),p(o,"path",i||c,null,d),(s.setCookie||Ct)(e,yt(a,o)),l=!0),l},get:function(e){var n=ot;return gt(g)?(s.getCookie||function(e){var n,t=ot;return st&&(n=st[Yn]||ot,lt!==n&&(ct=ht(n),lt=n),t=Ee(ct[e]||ot)),t})(e):n},del:function(e,n){return!!gt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return pt(i)&&((t={}).path=n||"/",t[et]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,pn()||(n["max-age"]="0"),(s.delCookie||Ct)(e,yt(ot,n)),r=!0),r}};return g[it]=g}function pt(e){if(null===at){at=!1;try{at=(st||{})[Yn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,ne.CannotAccessCookie,"Cannot access document.cookie - "+Fe(n),{exception:hn(n)})}}return at}function ht(e){var t={};return e&&e.length&&g(Ee(e).split(";"),function(e){var n;(e=Ee(e||ot))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ee(e.substring(0,n))]=Ee(e.substring(1+n)))}),t}function mt(e,n){return f(e[n])?e[n]():null}function yt(e,n){var t=e||ot;return pe(n,function(e,n){t+="; "+e+(v(n)?ot:"="+n)}),t}function Ct(e,n){st&&(st[Yn]=e+"="+n)}function St(e){return!(!Se(e)||!t(e,"CPU iPhone OS 12")&&!t(e,"iPad; CPU OS 12")&&!(t(e,"Macintosh; Intel Mac OS X 10_14")&&t(e,"Version/")&&t(e,"Safari"))&&(!t(e,"Macintosh; Intel Mac OS X 10_14")||!he(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!t(e,"Chrome/5")&&!t(e,"Chrome/6")&&(!t(e,"UnrealEngine")||t(e,"Chrome"))&&!t(e,"UCBrowser/12")&&!t(e,"UCBrowser/11"))}var xt="_notificationManager";function It(e,n){return new kn(n)}var bt,e=function Gr(){var n,u,l,t,r,s=!1;ee(Gr,this,function(a){a._extensions=[],u=new Xn,a.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&_e("Core should not be initialized more than once"),e&&!v(e.instrumentationKey)||_e("Please provide instrumentation key"),l=t,a[xt]=t,a.config=e||{},t&&!0!==a.config.disableDbgExt&&t.addNotificationListener(function(e){if(!Sn){Sn={};for(var n=0;n<xn.length;n++)Sn[xn[n]]=function(n,t){return function(){var e=bn(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(xn[n],e)}return Sn}(e)),a.config.enablePerfMgr&&p(a.config,"createPerfMgr",It),e.extensions=v(e.extensions)?[]:e.extensions,Oe(e,jn).NotificationManager=t,r&&(a.logger=r);var t=[],i=(t.push.apply(t,E(E([],n),e.extensions)),t=Gn(t),[]),o={};g(t,function(e){(v(e)||v(e.initialize))&&_e("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(v(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Gn(t),a._extensions=t,Wn(new _n([u],e,a),t),Wn(new _n(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&_e("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){p(e,"iKey",a.config.instrumentationKey,null,Re),p(e,"time",be(new Date),null,Re),p(e,"ver","4.0",null,v),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new _n(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=b({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[xt]=l),l},a.getCookieMgr=function(){return r=r||vt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&f(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(g(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},Tt=function Jr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;ee(Jr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Te(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Te(i.listeners,e)},i.eventsSent=function(n){g(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){g(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){g(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||g(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},wt=(P(Pt,bt=e),Pt);function Pt(){var e=bt.call(this)||this,r=0;return ee(Pt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],N.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new An(e),r||new Tt(e))},t.track=function(e){On(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),_e("Invalid telemetry item")),v(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];g(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:be(new Date),baseType:Pn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var Et=4294967296,Nt=4294967295,At=!1,Lt=123456789,Mt=987654321;function kt(e){e<0&&(e>>>=0),Lt=123456789+e&Nt,Mt=987654321-e&Nt,At=!0}function Ft(){try{var e=2147483647&ke();kt((Math.random()*Et^e)+e)}catch(n){}}function Ot(e){return 0<e?Math.floor(Rt()/Nt*(e+1))>>>0:0}function Rt(e){var n=gn()||dn(),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Nt:pn()?(At||Ft(),Dt()&Nt):Math.floor(Et*Math.random()|0);return e||(n>>>=0),n}function Dt(e){var n=((Mt=36969*(65535&Mt)+(Mt>>16)&Nt)<<16)+(65535&(Lt=18e3*(65535&Lt)+(Lt>>16)&Nt))>>>0&Nt|0;return e||(n>>>=0),n}var _t="visibilitychange",jt="pagehide",Ut="pageshow";function Vt(e,n){var t=!1,r=en(),r=(r&&(t=de(r,e,n),t=de(r.body,e,n)||t),tn());return r&&de(r,e,n)||t}function zt(e,n,t){var r,i=!1;return n&&e&&ye(e)&&(r=[],g(e,function(e){Se(e)&&(t&&-1!==Te(t,e)?r.push(e):i=Vt(e,n)||i)}),!i&&0<r.length&&(i=zt(r,n))),i}function Bt(e,n){return zt(["beforeunload","unload","pagehide"],e,n)}function Kt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Gt,function(e){var n=0|Ot(15);return("x"===e?n:3&n|8).toString(16)})}function Ht(){var e=sn();return e&&e.now?e.now():ke()}function qt(e){void 0===e&&(e=22);for(var n=Rt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Rt()<<2&4294967295|3&n)>>>0,t=0);return r}function Wt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Rt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Rt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Gt=/[xy]/g,Jt={Attach:de,AttachEvent:de,Detach:ve,DetachEvent:ve},Xt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},Qt={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},Zt={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},$t=T(T({},ne),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),T="3.1.10",Yt="1DS-Web-JS-"+T,er="withCredentials",nr=((ir={})[0]=Zt.Unspecified,ir[2]=Zt.Double,ir[1]=Zt.String,ir[3]=Zt.Bool,ir[4098]=Zt.Double,ir[4097]=Zt.String,ir[4099]=Zt.Bool,ir),tr=null,rr=!!tn(),ir=!!en();function or(e){return!(""===e||v(e))}function ar(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function ur(){return tr=null===tr?!d(Uint8Array)&&!function(){var e=on();if(!d(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!vn():tr}function lr(e){return!!(e&&xe(e)&&Qt.Normal<=e&&e<=Qt.Immediate)}function sr(e,n,t){if(!n&&!or(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||ye(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(v(n.value)||""===n.value||!Se(n.value)&&!xe(n.value)&&!Ie(n.value)&&!ye(n.value))return null}else n={value:t?JSON.stringify(n):n};if(ye(n.value)&&!Sr(n.value))return null;if(!v(n.kind)){if(ye(n.value)||!Cr(n.kind))return null;n.value=n.value.toString()}return n}function cr(e,n,t){var r=-1;return d(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=nr[Ir(e)]||-1,-1!==r&&-1!==n?r|=n:n===Zt.Double&&(r=n))),r}function fr(){dt(null).setEnabled(!1)}function gr(e,n,t){pt(null)&&dt(null).set(e,n,86400*t,null,"/")}function dr(e){pt(null)&&dt(null).del(e)}function vr(e){return pt(null)?pr(dt(null),e):""}function pr(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function hr(e){void 0===e&&(e="D");var n=Kt();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function mr(e,n,t,s,c){var r={},i=!1,o=0,a=arguments.length,u=Object[h],l=arguments;for("[object Boolean]"===u.toString.call(l[0])&&(i=l[0],o++);o<a;o++)pe(l[o],function(t,e){i&&e&&ge(e)?ye(e)?(r[t]=r[t]||[],g(e,function(e,n){e&&ge(e)?r[t][n]=mr(!0,r[t][n],e):r[t][n]=e})):r[t]=mr(!0,r[t],e):r[t]=e});return r}var yr=Ht;function Cr(e){return e===Xt.NotSet||e>Xt.NotSet&&e<=Xt.Pii_IPV4AddressLegacy||e===Xt.CustomerContent_GenericContent}function Sr(e){return 0<e.length}function xr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=yr()}function Ir(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===a&&(t=4,ye(e)?(t=4096,0<e.length&&(t|=Ir(e[0]))):fe(e,"value")&&(t=8192|Ir(e.value)))),t}var br,Tr={Version:T,FullVersionString:Yt,strUndefined:n,strObject:a,Undefined:n,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,objKeys:Le,toISOString:be,isReactNative:vn,isString:Se,isNumber:xe,isBoolean:Ie,isFunction:f,isArray:ye,isObject:ge,strTrim:Ee,isDocumentObjectAvailable:rr,isWindowObjectAvailable:ir,isValueAssigned:or,getTenantId:ar,isBeaconsSupported:mn,isUint8ArrayAvailable:ur,isLatency:lr,sanitizeProperty:sr,getISOString:be,useXDomainRequest:yn,getCommonSchemaMetaData:cr,cookieAvailable:pt,disallowsSameSiteNone:St,setCookie:gr,deleteCookie:dr,getCookie:vr,createGuid:hr,extend:mr,getTime:yr,isValueKind:Cr,isArrayValid:Sr,objDefineAccessors:Me,addPageUnloadEventListener:Bt,setProcessTelemetryTimings:xr,addEventHandler:Vt,getFieldValueType:Ir,strEndsWith:he,objForEachKey:pe},wr={_canUseCookies:undefined,isTypeof:se,isUndefined:d,isNullOrUndefined:v,hasOwnProperty:fe,isFunction:f,isObject:ge,isDate:me,isArray:ye,isError:Ce,isString:Se,isNumber:xe,isBoolean:Ie,toISOString:be,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,strTrim:Ee,objCreate:b,objKeys:Le,objDefineAccessors:Me,addEventHandler:Vt,dateNow:ke,isIE:pn,disableCookies:fr,newGuid:Kt,perfNow:Ht,newId:qt,randomValue:Ot,random32:Rt,mwcRandomSeed:function(e){e?kt(e):Ft()},mwcRandom32:Dt,generateW3CId:Wt},Pr="version",Er="properties";function Nr(){var e=br.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",ee(Nr,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){On(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&g(r.channels,function(e){e&&g(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&g(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e=u.logger,n=hn(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){On(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=yr(),lr(n.latency)||(n.latency=Qt.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Yt,(e=n.baseData=n.baseData||{})[Er]||(e[Er]={}),(e=e[Er])[Pr]||(e[Pr]=""),""!==u.pluginVersionString&&(e[Pr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}P(Nr,br=wt);var Ar,Lr=Nr;function Mr(){var e=Ar.call(this)||this;return ee(Mr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return rr?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"Initialization Failed: "+hn(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=Yt),a.track(e)}}),e}P(Mr,Ar=e);var kr=Mr,Fr=f;function s(e){var a=0,u=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?Fr(t)?t(u):u:Fr(r)?r(u):u)instanceof s?e.then(i,o):(2!==a||Fr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=2,l())}if(ee(s,this,function(n){n.then=function(t,r){return new s(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!Fr(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(u=e,a=1,l())},t)}catch(r){t(r)}}s.resolve=function(r){return r instanceof s?r:r&&Fr(r.then)?new s(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new s(function(e){e(r)})},s.reject=function(t){return new s(function(e,n){n(t)})},s.all=function(u){if(u&&u.length)return new s(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Fr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},s.race=function(i){return new s(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Fr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})};var Or=s,Rr=0,Dr=[],_r=[],jr=[];function Ur(){return(new Date).getTime()}function Vr(e,n){var h=0,m=(e||"<unnamed>")+"."+Rr;function y(e){var n=x();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Rr++,ee(Vr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(r,e,u){var i,o,n,a=m+"."+v,e=(v++,e&&(a+="-("+e+")"),a+"{"+h+"}"),t=(h++,{evt:null,tm:Ur(),id:e,isRunning:!1,isAborted:!1});return t.evt=d?(i=t,o=d,n=new Or(function(n,t){var e=Ur()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+_r.length+"] waiting and ["+Dr.length+"] running"),i.abort=function(e){i.abort=null,p(_r,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){p(_r,a),c(i).then(n,t)},function(e){p(_r,a),c(i).then(n,t)})}),_r.push(i),n):c(t),(d=t).evt._schId=e,t.evt;function l(e){for(var n=Ur(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Dr,e);i||(i=p(jr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Ur()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(jr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(Dr),l(_r),l(jr)}function f(n,t){return function(e){return s(n,!0),t&&t(e),e}}function g(r,o){var a=r.id;return new Or(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Or?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Or?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):f(n,t)(e)},f(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(Ur()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function c(e){var n=Ur();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Or.reject(Error("["+a+"] was aborted")):(Dr.push(e),g(e,r))}}})}Vr.incomplete=function(){return Dr},Vr.waitingToStart=function(){return _r};var zr=Vr,Br=(Kr.getFieldType=Ir,Kr);function Kr(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(Se(e)&&Se(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!v(i.kind)){if(4096==(4096&r)||!Cr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},pe(n.value,function(e,n){var t;or(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,Ir(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,{path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return or(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){e=s(e,n);return!!e&&e.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!Se(n)||v(t)||""===t)return null;var o=null,a=Ir(t);if(8192==(8192&a)){var u=-8193&a;if(!or((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!Se(n)||v(t)||!or(t.value))return null;var o=Ir(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=Lr,c.BaseCore=kr,c.BaseTelemetryPlugin=Vn,c.CoreUtils=wr,c.DiagnosticLogger=An,c.ESPromise=Or,c.ESPromiseScheduler=zr,c.EventHelper=Jt,c.EventLatency=Qt,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=Zt,c.EventsDiscardedReason=N,c.FullVersionString=Yt,c.InternalAppInsightsCore=wt,c.InternalBaseCore=e,c.MinChannelPriorty=100,c.NotificationManager=Tt,c.PerfEvent=Ln,c.PerfManager=kn,c.ProcessTelemetryContext=_n,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Tr,c.ValueKind=Xt,c.ValueSanitizer=Br,c.Version=T,c._ExtendedInternalMessageId=$t,c._InternalLogMessage=Pn,c._InternalMessageId=ne,c.addEventHandler=Vt,c.addEventListeners=zt,c.addPageHideEventListener=function Xr(t,e){var n=!1;return e&&-1!==Te(e,jt)||(n=Vt(jt,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?Xr(t):n},c.addPageShowEventListener=function Qr(t,e){var n=!1;return e&&-1!==Te(e,Ut)||(n=Vt(Ut,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?Qr(t):n},c.addPageUnloadEventListener=Bt,c.areCookiesSupported=pt,c.arrForEach=g,c.arrIndexOf=Te,c.arrMap=we,c.arrReduce=Pe,c.attachEvent=de,c.cookieAvailable=pt,c.createCookieMgr=vt,c.createGuid=hr,c.dateNow=ke,c.deleteCookie=dr,c.detachEvent=ve,c.disableCookies=fr,c.disallowsSameSiteNone=St,c.doPerf=On,c.dumpObj=hn,c.extend=mr,c.generateW3CId=Wt,c.getCommonSchemaMetaData=cr,c.getConsole=ln,c.getCookie=vr,c.getCookieValue=pr,c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Fe,c.getFieldValueType=Ir,c.getGlobal=x,c.getGlobalInst=i,c.getHistory=function(){return an()?history:i("history")},c.getIEVersion=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(t(n,qe))return e=tn()||{},Math.max(parseInt(n.split(qe)[1]),e.documentMode||0);if(t(n,We)){e=parseInt(n.split(We)[1]);if(e)return e+4}return null},c.getISOString=be,c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=sn,c.getSetValue=Oe,c.getTenantId=ar,c.getTime=yr,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=cn,c.hasNavigator=rn,c.hasOwnProperty=fe,c.hasWindow=Ye,c.isArray=ye,c.isArrayValid=Sr,c.isBeaconsSupported=mn,c.isBoolean=Ie,c.isChromium=function(){return!!i("chrome")},c.isDate=me,c.isDocumentObjectAvailable=rr,c.isError=Ce,c.isFetchSupported=function(e){var n=!1;try{var n=!!i("fetch"),t=i("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=f,c.isIE=pn,c.isLatency=lr,c.isNotTruthy=Re,c.isNullOrUndefined=v,c.isNumber=xe,c.isObject=ge,c.isReactNative=vn,c.isString=Se,c.isTruthy=De,c.isTypeof=se,c.isUint8ArrayAvailable=ur,c.isUndefined=d,c.isValueAssigned=or,c.isValueKind=Cr,c.isWindowObjectAvailable=ir,c.isXhrSupported=Cn,c.newGuid=Kt,c.newId=qt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=b,c.objDefineAccessors=Me,c.objForEachKey=pe,c.objKeys=Le,c.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,er,t),a.open(e,n,!i),t&&o(a,er,t),a},c.optimizeObject=function(e){return e&&r(m?m({},e):e)},c.perfNow=Ht,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ge(r)&&ge(i))for(var e in i)!function(n){var e,t;Se(n)&&(f(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(fe(r,n)&&delete r[n],Me(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Rt,c.randomValue=Ot,c.safeGetCookieMgr=dt,c.safeGetLogger=Nn,c.sanitizeProperty=sr,c.setCookie=gr,c.setEnableEnvMocks=function(e){Xe=e},c.setProcessTelemetryTimings=xr,c.setValue=p,c.strContains=t,c.strEndsWith=he,c.strExtensionConfig=jn,c.strFunction=u,c.strIKey="iKey",c.strObject=a,c.strPrototype=h,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Ee,c.strUndefined=n,c.throwError=_e,c.toISOString=be,c.useXDomainRequest=yn;Lr=c,kr="__esModule",Vn={value:!0},wr=Object.defineProperty;if(wr)try{return wr(Lr,kr,Vn)}catch(Zr){}typeof Vn.value!==undefined&&(Lr[kr]=Vn.value)}(this.oneDS=this.oneDS||{});
!function(c){"use strict";var D="function",a="object",n="undefined",f="prototype",_="hasOwnProperty",t=Object,j=t[f],U=t.assign,V=t.create,e=t.defineProperty,z=j[_],B=null;function K(e){return void 0===e&&(e=!0),B&&e||(typeof globalThis!==n&&globalThis&&(B=globalThis),typeof self!==n&&self&&(B=self),typeof window!==n&&window&&(B=window),typeof global!==n&&global&&(B=global)),B}function H(e){throw new TypeError(e)}function W(e){if(V)return V(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==D&&H("Object prototype may only be an Object:"+e),t[f]=e,new t}(K()||{}).Symbol,(K()||{}).Reflect;var q=U||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])j[_].call(n,i)&&(e[i]=n[i]);return e},G=function(e,n){return(G=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[_](t)&&(e[t]=n[t])})(e,n)};function J(e,n){function t(){this.constructor=e}typeof n!==D&&null!==n&&H("Class extends value "+n+" is not a constructor or null"),G(e,n),e[f]=null===n?W(n):(t[f]=n[f],new t)}function X(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var Q={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},$="constructor",v="prototype",Z="function",Y="_dynInstFuncs",ee="_isDynProxy",ne="_dynClass",te="_dynInstChk",re=te,ie="_dfOpts",oe="_unknown_",ae="__proto__",ue="useBaseInst",le="setInstFuncs",se=Object,ce=se.getPrototypeOf,fe=0;function p(e,n){return e&&se[v].hasOwnProperty.call(e,n)}function ge(e){return e&&(e===se[v]||e===Array[v])}function de(e){return ge(e)||e===Function[v]}function h(e){if(e){if(ce)return ce(e);e=e[ae]||e[v]||(e[$]?e[$][v]:null);if(e)return e}return null}function ve(e,n){var t=[],r=se.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&p(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function pe(e,n,t){return n!==$&&typeof e[n]===Z&&(t||p(e,n))}function he(e){throw new TypeError("DynamicProto: "+e)}function me(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function ye(e,n){return p(e,v)?e.name||n||oe:((e||{})[$]||{}).name||n||oe}function S(e,r,n,t){p(e,v)||he("theClass is an invalid class definition.");var i,o,a,u,l,s,c=e[v],f=(function(e){if(ce)for(var n=[],t=h(r);t&&!de(t)&&!me(n,t);){if(t===e)return 1;n.push(t),t=h(t)}}(c)||he("["+ye(e)+"] is not in class hierarchy of ["+ye(r)+"]"),null),e=(p(c,ne)?f=c[ne]:(f="_dynCls$"+ye(e,"_")+"$"+fe,fe++,c[ne]=f),S[ie]),g=!!e[ue],d=(g&&t&&t[ue]!==undefined&&(g=!!t[ue]),o={},ve(i=r,function(e){!o[e]&&pe(i,e,!1)&&(o[e]=i[e])}),o),g=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[ee]&&o&&!1!==(r=e[Y]||{})[re]&&(i=(r[n[ne]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(ve(t,function(e){i[e]=r(n,t,e)}),h(e)),u=[];a&&!de(a)&&!me(u,a);)ve(a,function(e){!i[e]&&pe(a,e,!ce)&&(i[e]=r(n,a,e))}),u.push(a),a=h(a);return i}(c,r,d,g)),!!ce&&!!e[le]);a=c,n=f,u=r,l=d,e=!1!==(g=g&&t?!!t[le]:g),ge(a)||(c=u[Y]=u[Y]||{},s=c[n]=c[n]||{},!1!==c[re]&&(c[re]=!!e),ve(u,function(e){var t,r,i;pe(u,e,!1)&&u[e]!==l[e]&&(s[e]=u[e],delete u[e],p(a,e)&&(!a[e]||a[e][ee])||(a[e]=(t=a,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&p(t,ne)){var o=e[Y]||{};if((i=(o[t[ne]]||{})[n])||he("Missing ["+n+"] "+Z),!i[te]&&!1!==o[re]){for(var a=!p(e,n),u=h(e),l=[];a&&u&&!de(u)&&!me(l,u);){var s=u[n];if(s){a=s===r;break}l.push(u),u=h(u)}try{a&&(e[n]=i),i[te]=1}catch(c){o[re]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?h(t)[e]:n)!==Z&&he("["+e+"] is not a "+Z),n)).apply(this,arguments)})[ee]=1,i)))}))}S[ie]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(r=c.LoggingSeverity||(c.LoggingSeverity={}))[r.CRITICAL=1]="CRITICAL",r[r.WARNING=2]="WARNING";var Ce={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},Se="attachEvent",xe="addEventListener",Ie="detachEvent",be="removeEventListener",Te="toISOString",we="endsWith",Pe="startsWith",Ee="indexOf",Ae="trim",r="toString",Ne=e,Le=t.keys,e=String[f],Me=e[Ae],ke=e[we],Fe=e[Pe],Oe=Date[f][Te],e=Array.isArray,Re=j[r],De=(z[r].call(t),/-([a-z])/g),_e=/([^\w\d_$])/g,je=/^(\d+[\w\d_$])/;function Ue(e,n){return typeof e===n}function d(e){return e===undefined||typeof e===n}function m(e){return null===e||d(e)}function Ve(e){return!m(e)}function ze(e,n){return!(!e||!z.call(e,n))}function g(e){return!(!e||typeof e!==a)}function y(e){return!(!e||typeof e!==D)}function Be(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!m(e))try{m(e[xe])?m(e[Se])||(e[Se]("on"+n,t),i=!0):(e[xe](n,t,r),i=!0)}catch(o){}return i}function Ke(e,n,t,r){if(void 0===r&&(r=!1),!m(e))try{m(e[be])?m(e[Ie])||e[Ie]("on"+n,t):e[be](n,t,r)}catch(i){}}function He(e,n){if(e)for(var t in e)z.call(e,t)&&n.call(e,t,e[t])}function We(e,n){var t=!1;if(e&&n&&!(t=e===n)){if(ke)return e[we](n);var r=e,i=n,e=!1,n=i?i.length:0,o=r?r.length:0;if(n&&o&&n<=o&&!(e=r===i)){for(var a=o-1,u=n-1;0<=u;u--){if(r[a]!=i[u])return!1;a--}e=!0}return e}return t}function i(e,n){return!(!e||!n||!~e.indexOf(n))}function qe(e){return!(!e||"[object Date]"!==Re.call(e))}var C=e||function(e){return!(!e||"[object Array]"!==Re.call(e))};function Ge(e){return!(!e||"[object Error]"!==Re.call(e))}function x(e){return"string"==typeof e}function Je(e){return"number"==typeof e}function Xe(e){return"boolean"==typeof e}function o(e){if(e){if(Oe)return e[Te]();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 I(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 u(e,n,t){if(e){if(e[Ee])return e[Ee](n,t);var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}}return-1}function Qe(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(u){}}return o}function $e(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++}return r}function b(e){return e&&(Me&&e[Ae]?e[Ae]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ze=!{toString:null}.propertyIsEnumerable("toString"),Ye=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function en(e){var n=typeof e;if(n===D||n===a&&null!==e||H("objKeys called on non-object"),!Ze&&Le)return Le(e);var t,r=[];for(t in e)e&&z.call(e,t)&&r.push(t);if(Ze)for(var i=Ye.length,o=0;o<i;o++)e&&z.call(e,Ye[o])&&r.push(Ye[o]);return r}function l(e,n,t,r){if(Ne)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Ne(e,n,i),!0}catch(o){}return!1}function T(){var e=Date;return e.now?e.now():(new e).getTime()}function nn(e){return Ge(e)?e.name:""}function w(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 tn(e,n,t){var r;return e?!(r=e[n])&&m(r)&&(r=d(t)?{}:t,e[n]=r):r=d(t)?{}:t,r}function rn(e){return!e}function on(e){return!!e}function P(e){throw Error(e)}var an="window",un="navigator",ln="location",sn="performance",cn="JSON",fn="crypto",gn="msCrypto",dn="msie",vn="trident/",pn=null,hn=null,mn=!1,yn=null,Cn=null;function Sn(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[f])&&(r=n in t)}catch(i){}if(!r)try{r=!d((new e)[n])}catch(i){}}return r}function s(e){var n=K();return n&&n[e]?n[e]:e===an&&xn()?window:null}function xn(){return!(typeof window!==a||!window)}function In(){return xn()?window:s(an)}function bn(){return!(typeof document!==a||!document)}function Tn(){return bn()?document:s("document")}function wn(){return!(typeof navigator!==a||!navigator)}function Pn(){return wn()?navigator:s(un)}function En(){return!(typeof history!==a||!history)}function An(e){if(e&&mn){e=s("__mockLocation");if(e)return e}return typeof location===a&&location?location:s(ln)}function Nn(){return typeof console!==n?console:s("console")}function Ln(){return s(sn)}function Mn(){return!!(typeof JSON===a&&JSON||null!==s(cn))}function kn(){return Mn()?JSON||s(cn):null}function Fn(){return s(fn)}function On(){return s(gn)}function Rn(){var e=Pn();return!(!e||!e.product)&&"ReactNative"===e.product}function Dn(){var e=Pn();return!e||e.userAgent===hn&&null!==pn||(e=((hn=e.userAgent)||"").toLowerCase(),pn=i(e,dn)||i(e,vn)),pn}function _n(e){var n=Object[f].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Mn()&&(t=kn().stringify(e)),n+t}function jn(){return Cn=null===Cn?wn()&&!!Pn().sendBeacon:Cn}function Un(){return yn=null===yn&&(yn="undefined"!=typeof XDomainRequest)&&Vn()?yn&&!Sn(s("XMLHttpRequest"),"withCredentials"):yn}function Vn(){var e=!1;try{e=!!s("XMLHttpRequest")}catch(n){}return e}var zn,Bn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],Kn=null;function Hn(e){var n=Kn;return(n=n||!0===e.disableDbgExt?n:Kn||(e=s("Microsoft"),Kn=e?e.ApplicationInsights:Kn))?n.ChromeDbgExt:null}function Wn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function qn(e,n){var t,r=Nn();r&&(t="log",y(r[t=r[e]?e:t])&&r[t](n))}Jn.dataType="MessageData";var Gn=Jn;function Jn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",Mn()&&(t=kn().stringify(r)),e=(n?" message:"+Wn(n):"")+(r?" props:"+Wn(t):"");this.message+=e}function Xn(e,n){return(e||{}).logger||new Qn(n)}var Qn=function ti(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};S(ti,this,function(o){function e(e,n){e=r[e];return m(e)?n:e}function a(e,n){var t=Hn(r);t&&t.diagLog&&t.diagLog(e,n)}m(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new Gn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole";d(n.message)?a("throw"+(e===c.LoggingSeverity.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){qn("warn",e),a("warning",e)},o.errorToConsole=function(e){qn("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===c.LoggingSeverity.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new Gn(Ce.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===c.LoggingSeverity.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},$n=(E.ParentContextKey="parent",E.ChildrenContextKey="childEvts",E);function E(e,i,n){var t,o=this,a=!1;o.start=T(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},y(i)&&(a=l(o,"payload",function(){return!t&&y(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===E.ParentContextKey||e===E.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===E.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===E.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(E.ChildrenContextKey);if(C(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=T()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&y(i)&&(o.payload=i())}}var Zn=function ri(n){this.ctx={},S(ri,this,function(t){t.create=function(e,n,t){return new $n(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&y(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Yn="CoreUtils.doPerf";function et(e,n,t,r,i){if(e)if(e=y(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(Yn);try{if(a=e.create(n(),r,i))return u&&a.setCtx&&(a.setCtx($n.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx($n.ChildrenContextKey))||(o=[],u.setCtx($n.ChildrenContextKey,o)),o.push(a))),e.setCtx(Yn,a),t(a)}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&e.fire(a),e.setCtx(Yn,u)}}return t()}var nt=function(i,n){var o=this,a=null,u=y(i.processTelemetry),l=y(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";et(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,Ce.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+_n(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function tt(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&y(o.processTelemetry)&&(o=new nt(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var rt=function ii(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&y(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),tt(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],I(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=tt(a,r)):d(n)&&(s=tt(e,l))),l.core=function(){return t},l.diagLog=function(){return Xn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),(t=i&&(r=i.extensionConfig)&&e?r[e]:t)||n},l.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=l.getExtCfg(e,null);return e&&!m(e[n])?r=e[n]:i&&!m(i[n])&&(r=i[n]),m(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new ii((e=void 0===e?null:e)||s,i,t,n)}},it="extensionConfig",ot="getPlugin",r=(at.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},at);function at(){var o=this,a=!1,u=null,l=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&y(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=u||new rt(null,{},o.core),e=l&&l[ot]?n.createNew(null,l[ot]):n.createNew(null,l)),e},o._baseTelInit=function(e,n,t,r){e&&w(e,it,[],null,m),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[ot]&&(i=l[ot]()),o.core=n,u=new rt(r,e,n,i),a=!0}}var ut="processTelemetry",lt="priority",st="setNextPlugin",ct="isInitialized";function ft(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&y(r[st])&&y(o[ut])&&r[st](o),y(o[ct])&&o[ct]()||e.push(o),r=o,i=i.getNext())}I(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function gt(e){return e.sort(function(e,n){var t=0,r=y(n[ut]);return y(e[ut])?t=r?e[lt]-n[lt]:1:r&&(t=-1),t})}J(pt,dt=r),pt._staticInit=(l(e=pt.prototype,"ChannelControls",e.getChannelControls),void l(e,"channelQueue",e.getChannelControls));var dt,vt=pt;function pt(){var l,r=dt.call(this)||this;function s(e){e&&0<e.length&&(I(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&P("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,S(pt,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&I(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&I(e,s),i&&(o=[],I(i,function(e){500<e.priority&&o.push(e)}),s(o)),I(l,function(e){return ft(new rt(e,n,t),r)}))}}),r}var ht="toGMTString",mt="toUTCString",yt="cookie",Ct="expires",St="enabled",xt="isCookieUseDisabled",It="disableCookiesUsage",bt="_ckMgr",A="",Tt=null,wt=null,Pt=null,Et=Tn(),At={},Nt={};function Lt(e){return!e||e.isEnabled()}function Mt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[bt]||kt(n)),t||(e=(e||{}).logger,(r=kt[bt]||Nt[bt])||(r=kt[bt]=kt(n,e),Nt[bt]=r),t=r),t}function kt(e,i){w(t=(e=e||Nt).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Ve,m),w(t,"path",e.cookiePath||"/",null,m),m(t[St])&&(n=void 0,d(e[xt])||(n=!e[xt]),d(e[It])||(n=!e[It]),t[St]=n);var n,t,s=t,c=s.path||"/",f=s.domain,r=!1!==s[St],g={isEnabled:function(){var e=r&&N(i),n=Nt[bt];return e&&n&&g!==n?Lt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return Lt(g)&&(o={},-1!=(u=(a=b(n||A)).indexOf(";"))&&(a=b(n.substring(0,u)),o=Ft(n.substring(1+u))),w(o,"domain",r||f,on,d),m(t)||(u=Dn(),d(o[Ct])&&0<(n=T()+1e3*t)&&((r=new Date).setTime(n),w(o,Ct,Ot(r,u?ht:mt)||Ot(r,u?ht:mt)||A,on)),u||w(o,"max-age",A+t,null,d)),(n=An())&&"https:"===n.protocol&&(w(o,"secure",null,null,d),(wt=null===wt?!_t((Pn()||{}).userAgent):wt)&&w(o,"SameSite","None",null,d)),w(o,"path",i||c,null,d),(s.setCookie||Dt)(e,Rt(a,o)),l=!0),l},get:function(e){var n=A;return Lt(g)?(s.getCookie||function(e){var n,t=A;return Et&&(n=Et[yt]||A,Pt!==n&&(At=Ft(n),Pt=n),t=b(At[e]||A)),t})(e):n},del:function(e,n){return!!Lt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return N(i)&&((t={}).path=n||"/",t[Ct]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,Dn()||(n["max-age"]="0"),(s.delCookie||Dt)(e,Rt(A,n)),r=!0),r}};return g[bt]=g}function N(e){if(null===Tt){Tt=!1;try{Tt=(Et||{})[yt]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,Ce.CannotAccessCookie,"Cannot access document.cookie - "+nn(n),{exception:_n(n)})}}return Tt}function Ft(e){var t={};return e&&e.length&&I(b(e).split(";"),function(e){var n;(e=b(e||A))&&(-1==(n=e.indexOf("="))?t[e]=null:t[b(e.substring(0,n))]=b(e.substring(1+n)))}),t}function Ot(e,n){return y(e[n])?e[n]():null}function Rt(e,n){var t=e||A;return He(n,function(e,n){t+="; "+e+(m(n)?A:"="+n)}),t}function Dt(e,n){Et&&(Et[yt]=e+"="+n)}function _t(e){return!(!x(e)||!i(e,"CPU iPhone OS 12")&&!i(e,"iPad; CPU OS 12")&&!(i(e,"Macintosh; Intel Mac OS X 10_14")&&i(e,"Version/")&&i(e,"Safari"))&&(!i(e,"Macintosh; Intel Mac OS X 10_14")||!We(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!i(e,"Chrome/5")&&!i(e,"Chrome/6")&&(!i(e,"UnrealEngine")||i(e,"Chrome"))&&!i(e,"UCBrowser/12")&&!i(e,"UCBrowser/11"))}var jt="_notificationManager";function Ut(e,n){return new Zn(n)}var Vt,e=function oi(){var n,u,l,t,r,s=!1;S(oi,this,function(a){a._extensions=[],u=new vt,a.logger=new Qn({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&P("Core should not be initialized more than once"),e&&!m(e.instrumentationKey)||P("Please provide instrumentation key"),l=t,a[jt]=t,a.config=e||{},t&&!0!==a.config.disableDbgExt&&t.addNotificationListener(function(e){if(!zn){zn={};for(var n=0;n<Bn.length;n++)zn[Bn[n]]=function(n,t){return function(){var e=Hn(t);e&&(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(Bn[n],e)}return zn}(e)),a.config.enablePerfMgr&&w(a.config,"createPerfMgr",Ut),e.extensions=m(e.extensions)?[]:e.extensions,tn(e,it).NotificationManager=t,r&&(a.logger=r);var t=[],i=(t.push.apply(t,X(X([],n),e.extensions)),t=gt(t),[]),o={};I(t,function(e){(m(e)||m(e.initialize))&&P("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(m(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=gt(t),a._extensions=t,ft(new rt([u],e,a),t),ft(new rt(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&P("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){w(e,"iKey",a.config.instrumentationKey,null,rn),w(e,"time",o(new Date),null,rn),w(e,"ver","4.0",null,m),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new rt(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=W({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[jt]=l),l},a.getCookieMgr=function(){return r=r||kt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&y(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(I(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},zt=function ai(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;S(ai,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=u(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=u(i.listeners,e)},i.eventsSent=function(n){I(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){I(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){I(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){!t||!n&&t.isChildEvt()||I(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}})}})},Bt=(J(Kt,Vt=e),Kt);function Kt(){var e=Vt.call(this)||this,r=0;return S(Kt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],Q.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new Qn(e),r||new zt(e))},t.track=function(e){et(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),P("Invalid telemetry item")),m(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];I(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:o(new Date),baseType:Gn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var Ht=4294967296,L=4294967295,Wt=!1,qt=123456789,Gt=987654321;function Jt(e){e<0&&(e>>>=0),qt=123456789+e&L,Gt=987654321-e&L,Wt=!0}function Xt(){try{var e=2147483647&T();Jt((Math.random()*Ht^e)+e)}catch(n){}}function Qt(e){return 0<e?Math.floor($t()/L*(e+1))>>>0:0}function $t(e){var n=Fn()||On(),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&L:Dn()?(Wt||Xt(),Zt()&L):Math.floor(Ht*Math.random()|0);return e||(n>>>=0),n}function Zt(e){var n=((Gt=36969*(65535&Gt)+(Gt>>16)&L)<<16)+(65535&(qt=18e3*(65535&qt)+(qt>>16)&L))>>>0&L|0;return e||(n>>>=0),n}var Yt="visibilitychange",er="pagehide",nr="pageshow";function M(e,n){var t=!1,r=In(),r=(r&&(t=Be(r,e,n),t=Be(r.body,e,n)||t),Tn());return r&&Be(r,e,n)||t}function tr(e,n,t){var r,i=!1;return n&&e&&C(e)&&(r=[],I(e,function(e){x(e)&&(t&&-1!==u(t,e)?r.push(e):i=M(e,n)||i)}),!i&&0<r.length&&(i=tr(r,n))),i}function rr(e,n){return tr(["beforeunload","unload","pagehide"],e,n)}function ir(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(lr,function(e){var n=0|Qt(15);return("x"===e?n:3&n|8).toString(16)})}function or(){var e=Ln();return e&&e.now?e.now():T()}function ar(e){void 0===e&&(e=22);for(var n=$t()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=($t()<<2&4294967295|3&n)>>>0,t=0);return r}function ur(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=$t())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&$t())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var lr=/[xy]/g,sr={Attach:Be,AttachEvent:Be,Detach:Ke,DetachEvent:Ke},cr={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},fr={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},k={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},gr=q(q({},Ce),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),q="3.1.11",dr="1DS-Web-JS-"+q,vr="withCredentials",pr=((F={})[0]=k.Unspecified,F[2]=k.Double,F[1]=k.String,F[3]=k.Bool,F[4098]=k.Double,F[4097]=k.String,F[4099]=k.Bool,F),hr=null,mr=!!Tn(),F=!!In();function yr(e){return!(""===e||m(e))}function Cr(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function Sr(){return hr=null===hr?!d(Uint8Array)&&!function(){var e=Pn();if(!d(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!Rn():hr}function xr(e){return!!(e&&Je(e)&&fr.Normal<=e&&e<=fr.Immediate)}function Ir(e,n,t){if(!n&&!yr(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||C(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(m(n.value)||""===n.value||!x(n.value)&&!Je(n.value)&&!Xe(n.value)&&!C(n.value))return null}else n={value:t?JSON.stringify(n):n};if(C(n.value)&&!Fr(n.value))return null;if(!m(n.kind)){if(C(n.value)||!kr(n.kind))return null;n.value=n.value.toString()}return n}function br(e,n,t){var r=-1;return d(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=pr[O(e)]||-1,-1!==r&&-1!==n?r|=n:n===k.Double&&(r=n))),r}function Tr(){Mt(null).setEnabled(!1)}function wr(e,n,t){N(null)&&Mt(null).set(e,n,86400*t,null,"/")}function Pr(e){N(null)&&Mt(null).del(e)}function Er(e){return N(null)?Ar(Mt(null),e):""}function Ar(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function Nr(e){void 0===e&&(e="D");var n=ir();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function Lr(e,n,t,r,i){var o={},a=!1,u=0,l=arguments.length,s=Object[f],c=arguments;for("[object Boolean]"===s.toString.call(c[0])&&(a=c[0],u++);u<l;u++)He(c[u],function(t,e){a&&e&&g(e)?C(e)?(o[t]=o[t]||[],I(e,function(e,n){e&&g(e)?o[t][n]=Lr(!0,o[t][n],e):o[t][n]=e})):o[t]=Lr(!0,o[t],e):o[t]=e});return o}var Mr=or;function kr(e){return e===cr.NotSet||e>cr.NotSet&&e<=cr.Pii_IPV4AddressLegacy||e===cr.CustomerContent_GenericContent}function Fr(e){return 0<e.length}function Or(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=Mr()}function O(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===a&&(t=4,C(e)?(t=4096,0<e.length&&(t|=O(e[0]))):ze(e,"value")&&(t=8192|O(e.value)))),t}var Rr,Dr={Version:q,FullVersionString:dr,strUndefined:n,strObject:a,Undefined:n,arrForEach:I,arrIndexOf:u,arrMap:Qe,arrReduce:$e,objKeys:en,toISOString:o,isReactNative:Rn,isString:x,isNumber:Je,isBoolean:Xe,isFunction:y,isArray:C,isObject:g,strTrim:b,isDocumentObjectAvailable:mr,isWindowObjectAvailable:F,isValueAssigned:yr,getTenantId:Cr,isBeaconsSupported:jn,isUint8ArrayAvailable:Sr,isLatency:xr,sanitizeProperty:Ir,getISOString:o,useXDomainRequest:Un,getCommonSchemaMetaData:br,cookieAvailable:N,disallowsSameSiteNone:_t,setCookie:wr,deleteCookie:Pr,getCookie:Er,createGuid:Nr,extend:Lr,getTime:Mr,isValueKind:kr,isArrayValid:Fr,objDefineAccessors:l,addPageUnloadEventListener:rr,setProcessTelemetryTimings:Or,addEventHandler:M,getFieldValueType:O,strEndsWith:We,objForEachKey:He},_r={_canUseCookies:undefined,isTypeof:Ue,isUndefined:d,isNullOrUndefined:m,hasOwnProperty:ze,isFunction:y,isObject:g,isDate:qe,isArray:C,isError:Ge,isString:x,isNumber:Je,isBoolean:Xe,toISOString:o,arrForEach:I,arrIndexOf:u,arrMap:Qe,arrReduce:$e,strTrim:b,objCreate:W,objKeys:en,objDefineAccessors:l,addEventHandler:M,dateNow:T,isIE:Dn,disableCookies:Tr,newGuid:ir,perfNow:or,newId:ar,randomValue:Qt,random32:$t,mwcRandomSeed:function(e){e?Jt(e):Xt()},mwcRandom32:Zt,generateW3CId:ur},jr="version",Ur="properties";function Vr(){var e=Rr.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",S(Vr,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new Qn({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){et(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&I(r.channels,function(e){e&&I(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&I(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e=u.logger,n=_n(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(c.LoggingSeverity.CRITICAL,gr.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){et(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=Mr(),xr(n.latency)||(n.latency=fr.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=dr,(e=n.baseData=n.baseData||{})[Ur]||(e[Ur]={}),(e=e[Ur])[jr]||(e[jr]=""),""!==u.pluginVersionString&&(e[jr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}J(Vr,Rr=Bt);var zr,Br=Vr;function Kr(){var e=zr.call(this)||this;return S(Kr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return mr?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,gr.FailedToInitializeSDK,"Initialization Failed: "+_n(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=dr),a.track(e)}}),e}J(Kr,zr=e);var Hr=Kr,Wr=y;function R(e){var a=0,u=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?Wr(t)?t(u):u:Wr(r)?r(u):u)instanceof R?e.then(i,o):(2!==a||Wr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=2,l())}if(S(R,this,function(n){n.then=function(t,r){return new R(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!Wr(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(u=e,a=1,l())},t)}catch(r){t(r)}}R.resolve=function(r){return r instanceof R?r:r&&Wr(r.then)?new R(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new R(function(e){e(r)})},R.reject=function(t){return new R(function(e,n){n(t)})},R.all=function(u){if(u&&u.length)return new R(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Wr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},R.race=function(i){return new R(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Wr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})};var qr=R,Gr=0,Jr=[],Xr=[],Qr=[];function $r(){return(new Date).getTime()}function Zr(e,n){var h=0,m=(e||"<unnamed>")+"."+Gr;function y(e){var n=K();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Gr++,S(Zr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,u){var i,o,n,a=m+"."+v,e=(v++,e&&(a+="-("+e+")"),a+"{"+h+"}"),r=(h++,{evt:null,tm:$r(),id:e,isRunning:!1,isAborted:!1});return r.evt=d?(i=r,o=d,n=new qr(function(n,t){var e=$r()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Xr.length+"] waiting and ["+Jr.length+"] running"),i.abort=function(e){i.abort=null,p(Xr,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){p(Xr,a),g(i).then(n,t)},function(e){p(Xr,a),g(i).then(n,t)})}),Xr.push(i),n):g(r),(d=r).evt._schId=e,r.evt;function l(e){for(var n=$r(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Jr,e);i||(i=p(Qr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=$r()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(Qr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(Jr),l(Xr),l(Qr)}function c(n,t){return function(e){return s(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new qr(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof qr?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof qr?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+($r()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function g(e){var n=$r();return e.wTm=n-e.tm,e.tm=n,e.isAborted?qr.reject(Error("["+a+"] was aborted")):(Jr.push(e),f(e,t))}}})}Zr.incomplete=function(){return Jr},Zr.waitingToStart=function(){return Xr};var Yr=Zr,ei=(ni.getFieldType=O,ni);function ni(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(x(e)&&x(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!m(i.kind)){if(4096==(4096&r)||!kr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},He(n.value,function(e,n){var t;yr(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,O(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,{path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return yr(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){e=s(e,n);return!!e&&e.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!x(n)||m(t)||""===t)return null;var o=null,a=O(t);if(8192==(8192&a)){var u=-8193&a;if(!yr((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!x(n)||m(t)||!yr(t.value))return null;var o=O(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=Br,c.BaseCore=Hr,c.BaseTelemetryPlugin=r,c.CoreUtils=_r,c.DiagnosticLogger=Qn,c.ESPromise=qr,c.ESPromiseScheduler=Yr,c.EventHelper=sr,c.EventLatency=fr,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=k,c.EventsDiscardedReason=Q,c.FullVersionString=dr,c.InternalAppInsightsCore=Bt,c.InternalBaseCore=e,c.MinChannelPriorty=100,c.NotificationManager=zt,c.PerfEvent=$n,c.PerfManager=Zn,c.ProcessTelemetryContext=rt,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Dr,c.ValueKind=cr,c.ValueSanitizer=ei,c.Version=q,c._ExtendedInternalMessageId=gr,c._InternalLogMessage=Gn,c._InternalMessageId=Ce,c.addEventHandler=M,c.addEventListeners=tr,c.addPageHideEventListener=function ui(t,e){var n=!1;return e&&-1!==u(e,er)||(n=M(er,t)),!(n=(!e||-1===u(e,Yt))&&M(Yt,function(e){var n=Tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?ui(t):n},c.addPageShowEventListener=function li(t,e){var n=!1;return e&&-1!==u(e,nr)||(n=M(nr,t)),!(n=(!e||-1===u(e,Yt))&&M(Yt,function(e){var n=Tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?li(t):n},c.addPageUnloadEventListener=rr,c.areCookiesSupported=N,c.arrForEach=I,c.arrIndexOf=u,c.arrMap=Qe,c.arrReduce=$e,c.attachEvent=Be,c.cookieAvailable=N,c.createCookieMgr=kt,c.createGuid=Nr,c.dateNow=T,c.deleteCookie=Pr,c.detachEvent=Ke,c.disableCookies=Tr,c.disallowsSameSiteNone=_t,c.doPerf=et,c.dumpObj=_n,c.extend=Lr,c.generateW3CId=ur,c.getCommonSchemaMetaData=br,c.getConsole=Nn,c.getCookie=Er,c.getCookieValue=Ar,c.getCrypto=Fn,c.getDocument=Tn,c.getExceptionName=nn,c.getFieldValueType=O,c.getGlobal=K,c.getGlobalInst=s,c.getHistory=function(){return En()?history:s("history")},c.getIEVersion=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Pn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(i(n,dn))return e=Tn()||{},Math.max(parseInt(n.split(dn)[1]),e.documentMode||0);if(i(n,vn)){e=parseInt(n.split(vn)[1]);if(e)return e+4}return null},c.getISOString=o,c.getJSON=kn,c.getLocation=An,c.getMsCrypto=On,c.getNavigator=Pn,c.getPerformance=Ln,c.getSetValue=tn,c.getTenantId=Cr,c.getTime=Mr,c.getWindow=In,c.hasDocument=bn,c.hasHistory=En,c.hasJSON=Mn,c.hasNavigator=wn,c.hasOwnProperty=ze,c.hasWindow=xn,c.isArray=C,c.isArrayValid=Fr,c.isBeaconsSupported=jn,c.isBoolean=Xe,c.isChromium=function(){return!!s("chrome")},c.isDate=qe,c.isDocumentObjectAvailable=mr,c.isError=Ge,c.isFetchSupported=function(e){var n=!1;try{var n=!!s("fetch"),t=s("Request");n&&e&&t&&(n=Sn(t,"keepalive"))}catch(r){}return n},c.isFunction=y,c.isIE=Dn,c.isLatency=xr,c.isNotTruthy=rn,c.isNullOrUndefined=m,c.isNumber=Je,c.isObject=g,c.isReactNative=Rn,c.isString=x,c.isTruthy=on,c.isTypeof=Ue,c.isUint8ArrayAvailable=Sr,c.isUndefined=d,c.isValueAssigned=yr,c.isValueKind=kr,c.isWindowObjectAvailable=F,c.isXhrSupported=Vn,c.newGuid=ir,c.newId=ar,c.normalizeJsName=function(e){var n=e;return e&&x(e)?(n=(n=e.replace(De,function(e,n){return n.toUpperCase()})).replace(_e,"_")).replace(je,function(e,n){return"_"+n}):n},c.objCreate=W,c.objDefineAccessors=l,c.objForEachKey=He,c.objKeys=en,c.openXhr=function(e,n,t,r,i,o){function a(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var u=new XMLHttpRequest;return r&&a(u,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&a(u,vr,t),u.open(e,n,!i),t&&a(u,vr,t),!i&&o&&a(u,"timeout",o),u},c.optimizeObject=function(e){return e&&U?t(U({},e)):e},c.perfNow=or,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&g(r)&&g(i))for(var e in i)!function(n){var e,t;x(n)&&(y(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(ze(r,n)&&delete r[n],l(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=$t,c.randomValue=Qt,c.safeGetCookieMgr=Mt,c.safeGetLogger=Xn,c.sanitizeProperty=Ir,c.setCookie=wr,c.setEnableEnvMocks=function(e){mn=e},c.setProcessTelemetryTimings=Or,c.setValue=w,c.strContains=i,c.strEndsWith=We,c.strExtensionConfig=it,c.strFunction=D,c.strIKey="iKey",c.strObject=a,c.strPrototype=f,c.strStartsWith=function(e,n){var t=!1;if(e&&n&&!(t=e===n)){if(Fe)return e[Pe](n);var r=e,i=n,e=!1,o=i?i.length:0;if(r&&o&&r.length>=o&&!(e=r===i)){for(var a=0;a<o;a++)if(r[a]!==i[a])return!1;e=!0}return e}return t},c.strTrim=b,c.strUndefined=n,c.throwError=P,c.toISOString=o,c.useXDomainRequest=Un;Br=c,Hr="__esModule",r={value:!0},_r=Object.defineProperty;if(_r)try{return _r(Br,Hr,r)}catch(si){}typeof r.value!==undefined&&(Br[Hr]=r.value)}(this.oneDS=this.oneDS||{});
//# sourceMappingURL=ms.core.gbl.min.js.map
{
"name": "ms.core",
"version": "3.1.10",
"version": "3.1.11",
"ext": {

@@ -8,7 +8,7 @@ "@gbl.js": {

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-FiXnqeSOF+9V3mplKAtQmR9udy2GIXWRRR1OA0kzbIo= sha384-M5JV6lvAZj2msKy8eOrINzx1TqDXreavxiFzpdxQDwhdcKtF4OtwAgZ0DSNY2rgC sha512-s+BL3pqPiqHcPUbzF16MUFWlD2+hkw8acgHrkY3z5utwb5Zdk/RR+XY7KnEr4uLo4W1mFIWcPyAsQP36xNV9sA==",
"integrity": "sha256-pw4MXsT8HzwcMby+CM0GbB+ubwqLKEzHL/OGT1hyLS8= sha384-rxun5u5rj1VOJMce/ohr9EJAVsF2nLcjZQ7RNce9uwK8T5etyIoVXeoN/4TC9kje sha512-FmlI6f2U5BF8ljDMLW7MyvsE+bHJwK0xb29R/zPieEDLCKGQ2gJETaDo4FEeOLTqm+GI6/6dHTICxLLoC5Ipyw==",
"hashes": {
"sha256": "FiXnqeSOF+9V3mplKAtQmR9udy2GIXWRRR1OA0kzbIo=",
"sha384": "M5JV6lvAZj2msKy8eOrINzx1TqDXreavxiFzpdxQDwhdcKtF4OtwAgZ0DSNY2rgC",
"sha512": "s+BL3pqPiqHcPUbzF16MUFWlD2+hkw8acgHrkY3z5utwb5Zdk/RR+XY7KnEr4uLo4W1mFIWcPyAsQP36xNV9sA=="
"sha256": "pw4MXsT8HzwcMby+CM0GbB+ubwqLKEzHL/OGT1hyLS8=",
"sha384": "rxun5u5rj1VOJMce/ohr9EJAVsF2nLcjZQ7RNce9uwK8T5etyIoVXeoN/4TC9kje",
"sha512": "FmlI6f2U5BF8ljDMLW7MyvsE+bHJwK0xb29R/zPieEDLCKGQ2gJETaDo4FEeOLTqm+GI6/6dHTICxLLoC5Ipyw=="
}

@@ -19,7 +19,7 @@ },

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-umxrDUyyAIerRW4Jsjcsr77dvyl7ms5fqtIjNwR/G4Y= sha384-i3ZKFHlYCz3MRqEhnk/CBPzxpNro2s2Inx+tDDq4YFJ1GEQjQfZq9atVMKJhXmUN sha512-+i/aDY+QJsYOqX4MMHDlHvdxveNHFtLz7I0pODmxTx+k4YXOGANQIWEKVzqLEp18T0wry9DoqJMm4Wi0vLDETA==",
"integrity": "sha256-Uf1BJ3h4kXfLZhGXlXOZTyV9JhDGRDkqH4dciEbe8B0= sha384-L1wIiEpxdYZn+iB2qxiBLiyNJ6y2A47yqS8E5CyL1TFRr5BHW/8fPjBr8DjMemik sha512-lzJ/IrND7PHTNTyun0QfeSHxMjbwBcsxGPEofh7QRC7r5QPQLWGtdnhOc5mTQrOWZsB4h49+HMVfr/tNZVDzlQ==",
"hashes": {
"sha256": "umxrDUyyAIerRW4Jsjcsr77dvyl7ms5fqtIjNwR/G4Y=",
"sha384": "i3ZKFHlYCz3MRqEhnk/CBPzxpNro2s2Inx+tDDq4YFJ1GEQjQfZq9atVMKJhXmUN",
"sha512": "+i/aDY+QJsYOqX4MMHDlHvdxveNHFtLz7I0pODmxTx+k4YXOGANQIWEKVzqLEp18T0wry9DoqJMm4Wi0vLDETA=="
"sha256": "Uf1BJ3h4kXfLZhGXlXOZTyV9JhDGRDkqH4dciEbe8B0=",
"sha384": "L1wIiEpxdYZn+iB2qxiBLiyNJ6y2A47yqS8E5CyL1TFRr5BHW/8fPjBr8DjMemik",
"sha512": "lzJ/IrND7PHTNTyun0QfeSHxMjbwBcsxGPEofh7QRC7r5QPQLWGtdnhOc5mTQrOWZsB4h49+HMVfr/tNZVDzlQ=="
}

@@ -30,7 +30,7 @@ },

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-Za8dVp2vOgaB0Uu5okjt72FGl5y7IFh6covOZ7/FcMo= sha384-UWN03v/qe8BzrZZcYzMl7oAhufJ/1ISQzXUVaHfE+oUi+S1lC1bdzvzKi4qw6UkS sha512-8/0SFcA/XKU4C+wjGnP5sDzW0nmn+FVfoBSqIWyGTQmq2VgJZ5ypemLFFsD2dzNaa7T7I2Zwp3M6A95UmkoX9Q==",
"integrity": "sha256-hEzmFnzv9S1hkB19hiWvwnZEXCU34GczcZcICWbFwNs= sha384-kWyvQxr6nvo7Dbgy50PUBXK28EYCOE93Y4HJWSPSf4NXEeeeaLl77DID8JFxDIdL sha512-0mgpiISIwzP6+tbEkzYDSVXernvsOaiYFpOcmzk17mxcDLscSPyGHjUojxKdZfiCxmsnO8pvo2yfq8I8vCRJoQ==",
"hashes": {
"sha256": "Za8dVp2vOgaB0Uu5okjt72FGl5y7IFh6covOZ7/FcMo=",
"sha384": "UWN03v/qe8BzrZZcYzMl7oAhufJ/1ISQzXUVaHfE+oUi+S1lC1bdzvzKi4qw6UkS",
"sha512": "8/0SFcA/XKU4C+wjGnP5sDzW0nmn+FVfoBSqIWyGTQmq2VgJZ5ypemLFFsD2dzNaa7T7I2Zwp3M6A95UmkoX9Q=="
"sha256": "hEzmFnzv9S1hkB19hiWvwnZEXCU34GczcZcICWbFwNs=",
"sha384": "kWyvQxr6nvo7Dbgy50PUBXK28EYCOE93Y4HJWSPSf4NXEeeeaLl77DID8JFxDIdL",
"sha512": "0mgpiISIwzP6+tbEkzYDSVXernvsOaiYFpOcmzk17mxcDLscSPyGHjUojxKdZfiCxmsnO8pvo2yfq8I8vCRJoQ=="
}

@@ -41,7 +41,7 @@ },

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-3CDiNoil1AZlJA6tXUM1oz2QyALfDuKVszIC6831Tu8= sha384-6MM9vj7QroaBTpn6B7gMp7I/V9hU4z1YnPjvf8ZJOPpPuT+w84hMwbPiYlnITMR+ sha512-xoRN3aqKk1pl1T32HA8c885WWUZRGN6afsYg4aRUhvDEhJIAfo93LLVZgwZ2H0jny7AMU8IjY5nF6ZqTUmsNjA==",
"integrity": "sha256-jo/FK9+8kMIT1clPalQTMYJlt6oZxMdwvLHwrsJdRKA= sha384-46cADSjXO7cWNZEk2UWV7dWlxDbATxHf63CZ0wKFAoxc0s/QHI9Nlag1u906OM0l sha512-+g0t2oAA60U4ie74GOAD/bJB7lXJRTH3nX7g5w/j9dyfWciCgSKiVu8gJd9yRYGGsuXoAvxEYAOyur+nN1P1jA==",
"hashes": {
"sha256": "3CDiNoil1AZlJA6tXUM1oz2QyALfDuKVszIC6831Tu8=",
"sha384": "6MM9vj7QroaBTpn6B7gMp7I/V9hU4z1YnPjvf8ZJOPpPuT+w84hMwbPiYlnITMR+",
"sha512": "xoRN3aqKk1pl1T32HA8c885WWUZRGN6afsYg4aRUhvDEhJIAfo93LLVZgwZ2H0jny7AMU8IjY5nF6ZqTUmsNjA=="
"sha256": "jo/FK9+8kMIT1clPalQTMYJlt6oZxMdwvLHwrsJdRKA=",
"sha384": "46cADSjXO7cWNZEk2UWV7dWlxDbATxHf63CZ0wKFAoxc0s/QHI9Nlag1u906OM0l",
"sha512": "+g0t2oAA60U4ie74GOAD/bJB7lXJRTH3nX7g5w/j9dyfWciCgSKiVu8gJd9yRYGGsuXoAvxEYAOyur+nN1P1jA=="
}

@@ -48,0 +48,0 @@ }

/*!
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
var e=this,n=function(c){"use strict";var u="function",a="object",n="undefined",h="prototype",o="hasOwnProperty",r=Object,l=r[h],m=r.assign,y=r.create,e=r.defineProperty,C=l[o],S=null;function x(e){return void 0===e&&(e=!0),S&&e||(typeof globalThis!==n&&globalThis&&(S=globalThis),typeof self!==n&&self&&(S=self),typeof window!==n&&window&&(S=window),typeof global!==n&&global&&(S=global)),S}function I(e){throw new TypeError(e)}function b(e){if(y)return y(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==u&&I("Object prototype may only be an Object:"+e),t[h]=e,new t}(x()||{}).Symbol,(x()||{}).Reflect;var T=m||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},w=function(e,n){return(w=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==u&&null!==n&&I("Class extends value "+n+" is not a constructor or null"),w(e,n),e[h]=null===n?b(n):(t[h]=n[h],new t)}function E(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var N={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},A="constructor",L="prototype",M="function",k="_dynInstFuncs",F="_isDynProxy",O="_dynClass",R="_dynInstChk",D=R,_="_dfOpts",j="_unknown_",U="__proto__",V="useBaseInst",z="setInstFuncs",B=Object,K=B.getPrototypeOf,H=0;function q(e,n){return e&&B[L].hasOwnProperty.call(e,n)}function W(e){return e&&(e===B[L]||e===Array[L])}function G(e){return W(e)||e===Function[L]}function J(e){if(e){if(K)return K(e);e=e[U]||e[L]||(e[A]?e[A][L]:null);if(e)return e}return null}function X(e,n){var t=[],r=B.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&q(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function Q(e,n,t){return n!==A&&typeof e[n]===M&&(t||q(e,n))}function Z(e){throw new TypeError("DynamicProto: "+e)}function $(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Y(e,n){return q(e,L)?e.name||n||j:((e||{})[A]||{}).name||n||j}function ee(e,r,n,t){q(e,L)||Z("theClass is an invalid class definition.");var c,i,o,a,f,g,u=e[L],l=(function(e){if(K)for(var n=[],t=J(r);t&&!G(t)&&!$(n,t);){if(t===e)return 1;n.push(t),t=J(t)}}(u)||Z("["+Y(e)+"] is not in class hierarchy of ["+Y(r)+"]"),null),e=(q(u,O)?l=u[O]:(l="_dynCls$"+Y(e,"_")+"$"+H,H++,u[O]=l),ee[_]),s=!!e[V],d=(s&&t&&t[V]!==undefined&&(s=!!t[V]),i={},X(c=r,function(e){!i[e]&&Q(c,e,!1)&&(i[e]=c[e])}),i),s=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[F]&&o&&!1!==(r=e[k]||{})[D]&&(i=(r[n[O]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(X(t,function(e){i[e]=r(n,t,e)}),J(e)),u=[];a&&!G(a)&&!$(u,a);)X(a,function(e){!i[e]&&Q(a,e,!K)&&(i[e]=r(n,a,e))}),u.push(a),a=J(a);return i}(u,r,d,s)),!!K&&!!e[z]);o=u,n=l,a=r,f=d,e=!1!==(s=s&&t?!!t[z]:s),W(o)||(u=a[k]=a[k]||{},g=u[n]=u[n]||{},!1!==u[D]&&(u[D]=!!e),X(a,function(e){var t,r,i;Q(a,e,!1)&&a[e]!==f[e]&&(g[e]=a[e],delete a[e],q(o,e)&&(!o[e]||o[e][F])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&q(t,O)){var i=e[k]||{};if((r=(i[t[O]]||{})[n])||Z("Missing ["+n+"] "+M),!r[R]&&!1!==i[D]){for(var o=!q(e,n),a=J(e),u=[];o&&a&&!G(a)&&!$(u,a);){var l=a[n];if(l){o=l===c;break}u.push(a),a=J(a)}try{o&&(e[n]=r),r[R]=1}catch(s){i[D]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?J(t)[e]:n)!==M&&Z("["+e+"] is not a "+M),n)).apply(this,arguments)})[F]=1,i)))}))}ee[_]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Vn=c.LoggingSeverity||(c.LoggingSeverity={}))[Vn.CRITICAL=1]="CRITICAL",Vn[Vn.WARNING=2]="WARNING";var ne={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},te="attachEvent",re="addEventListener",ie="detachEvent",oe="removeEventListener",ae="toISOString",ue=e;function le(e){return l.toString.call(e)}function se(e,n){return typeof e===n}function d(e){return e===undefined||typeof e===n}function v(e){return null===e||d(e)}function ce(e){return!v(e)}function fe(e,n){return e&&C.call(e,n)}function ge(e){return typeof e===a}function f(e){return typeof e===u}function de(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!v(e))try{v(e[re])?v(e[te])||(e[te]("on"+n,t),i=!0):(e[re](n,t,r),i=!0)}catch(o){}return i}function ve(e,n,t,r){if(void 0===r&&(r=!1),!v(e))try{v(e[oe])?v(e[ie])||e[ie]("on"+n,t):e[oe](n,t,r)}catch(i){}}function pe(e,n){if(e)for(var t in e)C.call(e,t)&&n.call(e,t,e[t])}function he(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function t(e,n){return!(!e||!n||!~e.indexOf(n))}function me(e){return"[object Date]"===le(e)}function ye(e){return"[object Array]"===le(e)}function Ce(e){return"[object Error]"===le(e)}function Se(e){return"string"==typeof e}function xe(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function be(e){var n;if(e)return e[ae]?e[ae]():me(e)?(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 g(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 Te(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function we(e,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(u){}return o}function Pe(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Ee(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ne=!{toString:null}.propertyIsEnumerable("toString"),Ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Le(e){var n,t=typeof e,r=(t===u||t===a&&null!==e||I("objKeys called on non-object"),[]);for(n in e)e&&C.call(e,n)&&r.push(n);if(Ne)for(var i=Ae.length,o=0;o<i;o++)e&&C.call(e,Ae[o])&&r.push(Ae[o]);return r}function Me(e,n,t,r){if(ue)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),ue(e,n,i),!0}catch(o){}return!1}function ke(){var e=Date;return e.now?e.now():(new e).getTime()}function Fe(e){return Ce(e)?e.name:""}function p(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 Oe(e,n,t){var r;return e?!(r=e[n])&&v(r)&&(r=d(t)?{}:t,e[n]=r):r=d(t)?{}:t,r}function Re(e){return!e}function De(e){return!!e}function _e(e){throw Error(e)}var je="window",Ue="navigator",Ve="location",ze="performance",Be="JSON",Ke="crypto",He="msCrypto",qe="msie",We="trident/",Ge=null,Je=null,Xe=!1,Qe=null,Ze=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[h])&&(r=n in t)}catch(i){}if(!r)try{r=!d((new e)[n])}catch(i){}}return r}function i(e){var n=x();return n&&n[e]?n[e]:e===je&&Ye()?window:null}function Ye(){return!(typeof window!==a||!window)}function en(){return Ye()?window:i(je)}function nn(){return!(typeof document!==a||!document)}function tn(){return nn()?document:i("document")}function rn(){return!(typeof navigator!==a||!navigator)}function on(){return rn()?navigator:i(Ue)}function an(){return!(typeof history!==a||!history)}function un(e){if(e&&Xe){e=i("__mockLocation");if(e)return e}return typeof location===a&&location?location:i(Ve)}function ln(){return typeof console!==n?console:i("console")}function sn(){return i(ze)}function cn(){return!!(typeof JSON===a&&JSON||null!==i(Be))}function fn(){return cn()?JSON||i(Be):null}function gn(){return i(Ke)}function dn(){return i(He)}function vn(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product}function pn(){var e=on();return!e||e.userAgent===Je&&null!==Ge||(e=((Je=e.userAgent)||"").toLowerCase(),Ge=t(e,qe)||t(e,We)),Ge}function hn(e){var n=Object[h].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":cn()&&(t=fn().stringify(e)),n+t}function mn(){return Ze=null===Ze?rn()&&!!on().sendBeacon:Ze}function yn(){return Qe=null===Qe&&(Qe="undefined"!=typeof XDomainRequest)&&Cn()?Qe&&!$e(i("XMLHttpRequest"),"withCredentials"):Qe}function Cn(){var e=!1;try{e=!!i("XMLHttpRequest")}catch(n){}return e}var Sn,xn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],In=null;function bn(e){var n=In;return(n=n||!0===e.disableDbgExt?n:In||(e=i("Microsoft"),In=e?e.ApplicationInsights:In))?n.ChromeDbgExt:null}function Tn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function wn(e,n){var t,r=ln();r&&(t="log",f(r[t=r[e]?e:t])&&r[t](n))}En.dataType="MessageData";var Pn=En;function En(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",cn()&&(t=fn().stringify(r)),e=(n?" message:"+Tn(n):"")+(r?" props:"+Tn(t):"");this.message+=e}function Nn(e,n){return(e||{}).logger||new An(n)}var An=function Hr(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};ee(Hr,this,function(o){function e(e,n){e=r[e];return v(e)?n:e}function a(e,n){var t=bn(r);t&&t.diagLog&&t.diagLog(e,n)}v(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new Pn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole";d(n.message)?a("throw"+(e===c.LoggingSeverity.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){wn("warn",e),a("warning",e)},o.errorToConsole=function(e){wn("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===c.LoggingSeverity.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new Pn(ne.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===c.LoggingSeverity.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},Ln=(Mn.ParentContextKey="parent",Mn.ChildrenContextKey="childEvts",Mn);function Mn(e,i,n){var t,o=this,a=!1;o.start=ke(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},f(i)&&(a=Me(o,"payload",function(){return!t&&f(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Mn.ParentContextKey||e===Mn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Mn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Mn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Mn.ChildrenContextKey);if(ye(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=ke()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&f(i)&&(o.payload=i())}}var kn=function qr(n){this.ctx={},ee(qr,this,function(t){t.create=function(e,n,t){return new Ln(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&f(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Fn="CoreUtils.doPerf";function On(e,n,t,r,i){if(e)if(e=f(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(Fn);try{if(a=e.create(n(),r,i))return u&&a.setCtx&&(a.setCtx(Ln.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(Ln.ChildrenContextKey))||(o=[],u.setCtx(Ln.ChildrenContextKey,o)),o.push(a))),e.setCtx(Fn,a),t(a)}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&e.fire(a),e.setCtx(Fn,u)}}return t()}var Rn=function(i,n){var o=this,a=null,u=f(i.processTelemetry),l=f(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";On(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,ne.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+hn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Dn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&f(o.processTelemetry)&&(o=new Rn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var _n=function Wr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&f(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Dn(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],g(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=Dn(a,r)):d(n)&&(s=Dn(e,l))),l.core=function(){return t},l.diagLog=function(){return Nn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=l.getExtCfg(e,null);return e&&!v(e[n])?r=e[n]:i&&!v(i[n])&&(r=i[n]),v(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Wr((e=void 0===e?null:e)||s,i,t,n)}},jn="extensionConfig",Un="getPlugin",Vn=(zn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},zn);function zn(){var o=this,a=!1,u=null,l=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&f(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=u||new _n(null,{},o.core),e=l&&l[Un]?n.createNew(null,l[Un]):n.createNew(null,l)),e},o._baseTelInit=function(e,n,t,r){e&&p(e,jn,[],null,v),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[Un]&&(i=l[Un]()),o.core=n,u=new _n(r,e,n,i),a=!0}}var Bn="processTelemetry",Kn="priority",Hn="setNextPlugin",qn="isInitialized";function Wn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&f(r[Hn])&&f(o[Bn])&&r[Hn](o),f(o[qn])&&o[qn]()||e.push(o),r=o,i=i.getNext())}g(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Gn(e){return e.sort(function(e,n){var t=0,r=f(n[Bn]);return f(e[Bn])?t=r?e[Kn]-n[Kn]:1:r&&(t=-1),t})}P(Qn,Jn=Vn),Qn._staticInit=(Me(e=Qn.prototype,"ChannelControls",e.getChannelControls),void Me(e,"channelQueue",e.getChannelControls));var Jn,Xn=Qn;function Qn(){var l,r=Jn.call(this)||this;function s(e){e&&0<e.length&&(g(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&_e("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,ee(Qn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&g(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&g(e,s),i&&(o=[],g(i,function(e){500<e.priority&&o.push(e)}),s(o)),g(l,function(e){return Wn(new _n(e,n,t),r)}))}}),r}var Zn="toGMTString",$n="toUTCString",Yn="cookie",et="expires",nt="enabled",tt="isCookieUseDisabled",rt="disableCookiesUsage",it="_ckMgr",ot="",at=null,ut=null,lt=null,st=tn(),ct={},ft={};function gt(e){return!e||e.isEnabled()}function dt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[it]||vt(n)),t||(e=(e||{}).logger,(r=vt[it]||ft[it])||(r=vt[it]=vt(n,e),ft[it]=r),t=r),t}function vt(e,i){p(t=(e=e||ft).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ce,v),p(t,"path",e.cookiePath||"/",null,v),v(t[nt])&&(n=void 0,d(e[tt])||(n=!e[tt]),d(e[rt])||(n=!e[rt]),t[nt]=n);var n,t,s=t,c=s.path||"/",f=s.domain,r=!1!==s[nt],g={isEnabled:function(){var e=r&&pt(i),n=ft[it];return e&&n&&g!==n?gt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return gt(g)&&(o={},-1!=(u=(a=Ee(n||ot)).indexOf(";"))&&(a=Ee(n.substring(0,u)),o=ht(n.substring(1+u))),p(o,"domain",r||f,De,d),v(t)||(u=pn(),!d(o[et])||0<(n=ke()+1e3*t)&&((r=new Date).setTime(n),p(o,et,mt(r,u?Zn:$n)||mt(r,u?Zn:$n)||ot,De)),u||p(o,"max-age",ot+t,null,d)),(n=un())&&"https:"===n.protocol&&(p(o,"secure",null,null,d),(ut=null===ut?!St((on()||{}).userAgent):ut)&&p(o,"SameSite","None",null,d)),p(o,"path",i||c,null,d),(s.setCookie||Ct)(e,yt(a,o)),l=!0),l},get:function(e){var n=ot;return gt(g)?(s.getCookie||function(e){var n,t=ot;return st&&(n=st[Yn]||ot,lt!==n&&(ct=ht(n),lt=n),t=Ee(ct[e]||ot)),t})(e):n},del:function(e,n){return!!gt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return pt(i)&&((t={}).path=n||"/",t[et]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,pn()||(n["max-age"]="0"),(s.delCookie||Ct)(e,yt(ot,n)),r=!0),r}};return g[it]=g}function pt(e){if(null===at){at=!1;try{at=(st||{})[Yn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,ne.CannotAccessCookie,"Cannot access document.cookie - "+Fe(n),{exception:hn(n)})}}return at}function ht(e){var t={};return e&&e.length&&g(Ee(e).split(";"),function(e){var n;(e=Ee(e||ot))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ee(e.substring(0,n))]=Ee(e.substring(1+n)))}),t}function mt(e,n){return f(e[n])?e[n]():null}function yt(e,n){var t=e||ot;return pe(n,function(e,n){t+="; "+e+(v(n)?ot:"="+n)}),t}function Ct(e,n){st&&(st[Yn]=e+"="+n)}function St(e){return!(!Se(e)||!t(e,"CPU iPhone OS 12")&&!t(e,"iPad; CPU OS 12")&&!(t(e,"Macintosh; Intel Mac OS X 10_14")&&t(e,"Version/")&&t(e,"Safari"))&&(!t(e,"Macintosh; Intel Mac OS X 10_14")||!he(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!t(e,"Chrome/5")&&!t(e,"Chrome/6")&&(!t(e,"UnrealEngine")||t(e,"Chrome"))&&!t(e,"UCBrowser/12")&&!t(e,"UCBrowser/11"))}var xt="_notificationManager";function It(e,n){return new kn(n)}var bt,e=function Gr(){var n,u,l,t,r,s=!1;ee(Gr,this,function(a){a._extensions=[],u=new Xn,a.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&_e("Core should not be initialized more than once"),e&&!v(e.instrumentationKey)||_e("Please provide instrumentation key"),l=t,a[xt]=t,a.config=e||{},t&&!0!==a.config.disableDbgExt&&t.addNotificationListener(function(e){if(!Sn){Sn={};for(var n=0;n<xn.length;n++)Sn[xn[n]]=function(n,t){return function(){var e=bn(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(xn[n],e)}return Sn}(e)),a.config.enablePerfMgr&&p(a.config,"createPerfMgr",It),e.extensions=v(e.extensions)?[]:e.extensions,Oe(e,jn).NotificationManager=t,r&&(a.logger=r);var t=[],i=(t.push.apply(t,E(E([],n),e.extensions)),t=Gn(t),[]),o={};g(t,function(e){(v(e)||v(e.initialize))&&_e("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(v(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Gn(t),a._extensions=t,Wn(new _n([u],e,a),t),Wn(new _n(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&_e("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){p(e,"iKey",a.config.instrumentationKey,null,Re),p(e,"time",be(new Date),null,Re),p(e,"ver","4.0",null,v),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new _n(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=b({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[xt]=l),l},a.getCookieMgr=function(){return r=r||vt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&f(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(g(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},Tt=function Jr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;ee(Jr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Te(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Te(i.listeners,e)},i.eventsSent=function(n){g(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){g(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){g(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||g(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},wt=(P(Pt,bt=e),Pt);function Pt(){var e=bt.call(this)||this,r=0;return ee(Pt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],N.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new An(e),r||new Tt(e))},t.track=function(e){On(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),_e("Invalid telemetry item")),v(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];g(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:be(new Date),baseType:Pn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var Et=4294967296,Nt=4294967295,At=!1,Lt=123456789,Mt=987654321;function kt(e){e<0&&(e>>>=0),Lt=123456789+e&Nt,Mt=987654321-e&Nt,At=!0}function Ft(){try{var e=2147483647&ke();kt((Math.random()*Et^e)+e)}catch(n){}}function Ot(e){return 0<e?Math.floor(Rt()/Nt*(e+1))>>>0:0}function Rt(e){var n=gn()||dn(),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Nt:pn()?(At||Ft(),Dt()&Nt):Math.floor(Et*Math.random()|0);return e||(n>>>=0),n}function Dt(e){var n=((Mt=36969*(65535&Mt)+(Mt>>16)&Nt)<<16)+(65535&(Lt=18e3*(65535&Lt)+(Lt>>16)&Nt))>>>0&Nt|0;return e||(n>>>=0),n}var _t="visibilitychange",jt="pagehide",Ut="pageshow";function Vt(e,n){var t=!1,r=en(),r=(r&&(t=de(r,e,n),t=de(r.body,e,n)||t),tn());return r&&de(r,e,n)||t}function zt(e,n,t){var r,i=!1;return n&&e&&ye(e)&&(r=[],g(e,function(e){Se(e)&&(t&&-1!==Te(t,e)?r.push(e):i=Vt(e,n)||i)}),!i&&0<r.length&&(i=zt(r,n))),i}function Bt(e,n){return zt(["beforeunload","unload","pagehide"],e,n)}function Kt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Gt,function(e){var n=0|Ot(15);return("x"===e?n:3&n|8).toString(16)})}function Ht(){var e=sn();return e&&e.now?e.now():ke()}function qt(e){void 0===e&&(e=22);for(var n=Rt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Rt()<<2&4294967295|3&n)>>>0,t=0);return r}function Wt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Rt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Rt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Gt=/[xy]/g,Jt={Attach:de,AttachEvent:de,Detach:ve,DetachEvent:ve},Xt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},Qt={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},Zt={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},$t=T(T({},ne),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),T="3.1.10",Yt="1DS-Web-JS-"+T,er="withCredentials",nr=((ir={})[0]=Zt.Unspecified,ir[2]=Zt.Double,ir[1]=Zt.String,ir[3]=Zt.Bool,ir[4098]=Zt.Double,ir[4097]=Zt.String,ir[4099]=Zt.Bool,ir),tr=null,rr=!!tn(),ir=!!en();function or(e){return!(""===e||v(e))}function ar(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function ur(){return tr=null===tr?!d(Uint8Array)&&!function(){var e=on();if(!d(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!vn():tr}function lr(e){return!!(e&&xe(e)&&Qt.Normal<=e&&e<=Qt.Immediate)}function sr(e,n,t){if(!n&&!or(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||ye(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(v(n.value)||""===n.value||!Se(n.value)&&!xe(n.value)&&!Ie(n.value)&&!ye(n.value))return null}else n={value:t?JSON.stringify(n):n};if(ye(n.value)&&!Sr(n.value))return null;if(!v(n.kind)){if(ye(n.value)||!Cr(n.kind))return null;n.value=n.value.toString()}return n}function cr(e,n,t){var r=-1;return d(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=nr[Ir(e)]||-1,-1!==r&&-1!==n?r|=n:n===Zt.Double&&(r=n))),r}function fr(){dt(null).setEnabled(!1)}function gr(e,n,t){pt(null)&&dt(null).set(e,n,86400*t,null,"/")}function dr(e){pt(null)&&dt(null).del(e)}function vr(e){return pt(null)?pr(dt(null),e):""}function pr(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function hr(e){void 0===e&&(e="D");var n=Kt();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function mr(e,n,t,s,c){var r={},i=!1,o=0,a=arguments.length,u=Object[h],l=arguments;for("[object Boolean]"===u.toString.call(l[0])&&(i=l[0],o++);o<a;o++)pe(l[o],function(t,e){i&&e&&ge(e)?ye(e)?(r[t]=r[t]||[],g(e,function(e,n){e&&ge(e)?r[t][n]=mr(!0,r[t][n],e):r[t][n]=e})):r[t]=mr(!0,r[t],e):r[t]=e});return r}var yr=Ht;function Cr(e){return e===Xt.NotSet||e>Xt.NotSet&&e<=Xt.Pii_IPV4AddressLegacy||e===Xt.CustomerContent_GenericContent}function Sr(e){return 0<e.length}function xr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=yr()}function Ir(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===a&&(t=4,ye(e)?(t=4096,0<e.length&&(t|=Ir(e[0]))):fe(e,"value")&&(t=8192|Ir(e.value)))),t}var br,Tr={Version:T,FullVersionString:Yt,strUndefined:n,strObject:a,Undefined:n,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,objKeys:Le,toISOString:be,isReactNative:vn,isString:Se,isNumber:xe,isBoolean:Ie,isFunction:f,isArray:ye,isObject:ge,strTrim:Ee,isDocumentObjectAvailable:rr,isWindowObjectAvailable:ir,isValueAssigned:or,getTenantId:ar,isBeaconsSupported:mn,isUint8ArrayAvailable:ur,isLatency:lr,sanitizeProperty:sr,getISOString:be,useXDomainRequest:yn,getCommonSchemaMetaData:cr,cookieAvailable:pt,disallowsSameSiteNone:St,setCookie:gr,deleteCookie:dr,getCookie:vr,createGuid:hr,extend:mr,getTime:yr,isValueKind:Cr,isArrayValid:Sr,objDefineAccessors:Me,addPageUnloadEventListener:Bt,setProcessTelemetryTimings:xr,addEventHandler:Vt,getFieldValueType:Ir,strEndsWith:he,objForEachKey:pe},wr={_canUseCookies:undefined,isTypeof:se,isUndefined:d,isNullOrUndefined:v,hasOwnProperty:fe,isFunction:f,isObject:ge,isDate:me,isArray:ye,isError:Ce,isString:Se,isNumber:xe,isBoolean:Ie,toISOString:be,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,strTrim:Ee,objCreate:b,objKeys:Le,objDefineAccessors:Me,addEventHandler:Vt,dateNow:ke,isIE:pn,disableCookies:fr,newGuid:Kt,perfNow:Ht,newId:qt,randomValue:Ot,random32:Rt,mwcRandomSeed:function(e){e?kt(e):Ft()},mwcRandom32:Dt,generateW3CId:Wt},Pr="version",Er="properties";function Nr(){var e=br.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",ee(Nr,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){On(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&g(r.channels,function(e){e&&g(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&g(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e=u.logger,n=hn(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){On(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=yr(),lr(n.latency)||(n.latency=Qt.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Yt,(e=n.baseData=n.baseData||{})[Er]||(e[Er]={}),(e=e[Er])[Pr]||(e[Pr]=""),""!==u.pluginVersionString&&(e[Pr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}P(Nr,br=wt);var Ar,Lr=Nr;function Mr(){var e=Ar.call(this)||this;return ee(Mr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return rr?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"Initialization Failed: "+hn(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=Yt),a.track(e)}}),e}P(Mr,Ar=e);var kr=Mr,Fr=f;function s(e){var a=0,u=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?Fr(t)?t(u):u:Fr(r)?r(u):u)instanceof s?e.then(i,o):(2!==a||Fr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=2,l())}if(ee(s,this,function(n){n.then=function(t,r){return new s(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!Fr(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(u=e,a=1,l())},t)}catch(r){t(r)}}s.resolve=function(r){return r instanceof s?r:r&&Fr(r.then)?new s(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new s(function(e){e(r)})},s.reject=function(t){return new s(function(e,n){n(t)})},s.all=function(u){if(u&&u.length)return new s(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Fr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},s.race=function(i){return new s(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Fr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})};var Or=s,Rr=0,Dr=[],_r=[],jr=[];function Ur(){return(new Date).getTime()}function Vr(e,n){var h=0,m=(e||"<unnamed>")+"."+Rr;function y(e){var n=x();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Rr++,ee(Vr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(r,e,u){var i,o,n,a=m+"."+v,e=(v++,e&&(a+="-("+e+")"),a+"{"+h+"}"),t=(h++,{evt:null,tm:Ur(),id:e,isRunning:!1,isAborted:!1});return t.evt=d?(i=t,o=d,n=new Or(function(n,t){var e=Ur()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+_r.length+"] waiting and ["+Dr.length+"] running"),i.abort=function(e){i.abort=null,p(_r,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){p(_r,a),c(i).then(n,t)},function(e){p(_r,a),c(i).then(n,t)})}),_r.push(i),n):c(t),(d=t).evt._schId=e,t.evt;function l(e){for(var n=Ur(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Dr,e);i||(i=p(jr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Ur()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(jr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(Dr),l(_r),l(jr)}function f(n,t){return function(e){return s(n,!0),t&&t(e),e}}function g(r,o){var a=r.id;return new Or(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Or?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Or?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):f(n,t)(e)},f(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(Ur()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function c(e){var n=Ur();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Or.reject(Error("["+a+"] was aborted")):(Dr.push(e),g(e,r))}}})}Vr.incomplete=function(){return Dr},Vr.waitingToStart=function(){return _r};var zr=Vr,Br=(Kr.getFieldType=Ir,Kr);function Kr(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(Se(e)&&Se(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!v(i.kind)){if(4096==(4096&r)||!Cr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},pe(n.value,function(e,n){var t;or(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,Ir(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,{path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return or(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){e=s(e,n);return!!e&&e.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!Se(n)||v(t)||""===t)return null;var o=null,a=Ir(t);if(8192==(8192&a)){var u=-8193&a;if(!or((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!Se(n)||v(t)||!or(t.value))return null;var o=Ir(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=Lr,c.BaseCore=kr,c.BaseTelemetryPlugin=Vn,c.CoreUtils=wr,c.DiagnosticLogger=An,c.ESPromise=Or,c.ESPromiseScheduler=zr,c.EventHelper=Jt,c.EventLatency=Qt,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=Zt,c.EventsDiscardedReason=N,c.FullVersionString=Yt,c.InternalAppInsightsCore=wt,c.InternalBaseCore=e,c.MinChannelPriorty=100,c.NotificationManager=Tt,c.PerfEvent=Ln,c.PerfManager=kn,c.ProcessTelemetryContext=_n,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Tr,c.ValueKind=Xt,c.ValueSanitizer=Br,c.Version=T,c._ExtendedInternalMessageId=$t,c._InternalLogMessage=Pn,c._InternalMessageId=ne,c.addEventHandler=Vt,c.addEventListeners=zt,c.addPageHideEventListener=function Xr(t,e){var n=!1;return e&&-1!==Te(e,jt)||(n=Vt(jt,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?Xr(t):n},c.addPageShowEventListener=function Qr(t,e){var n=!1;return e&&-1!==Te(e,Ut)||(n=Vt(Ut,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?Qr(t):n},c.addPageUnloadEventListener=Bt,c.areCookiesSupported=pt,c.arrForEach=g,c.arrIndexOf=Te,c.arrMap=we,c.arrReduce=Pe,c.attachEvent=de,c.cookieAvailable=pt,c.createCookieMgr=vt,c.createGuid=hr,c.dateNow=ke,c.deleteCookie=dr,c.detachEvent=ve,c.disableCookies=fr,c.disallowsSameSiteNone=St,c.doPerf=On,c.dumpObj=hn,c.extend=mr,c.generateW3CId=Wt,c.getCommonSchemaMetaData=cr,c.getConsole=ln,c.getCookie=vr,c.getCookieValue=pr,c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Fe,c.getFieldValueType=Ir,c.getGlobal=x,c.getGlobalInst=i,c.getHistory=function(){return an()?history:i("history")},c.getIEVersion=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(t(n,qe))return e=tn()||{},Math.max(parseInt(n.split(qe)[1]),e.documentMode||0);if(t(n,We)){e=parseInt(n.split(We)[1]);if(e)return e+4}return null},c.getISOString=be,c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=sn,c.getSetValue=Oe,c.getTenantId=ar,c.getTime=yr,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=cn,c.hasNavigator=rn,c.hasOwnProperty=fe,c.hasWindow=Ye,c.isArray=ye,c.isArrayValid=Sr,c.isBeaconsSupported=mn,c.isBoolean=Ie,c.isChromium=function(){return!!i("chrome")},c.isDate=me,c.isDocumentObjectAvailable=rr,c.isError=Ce,c.isFetchSupported=function(e){var n=!1;try{var n=!!i("fetch"),t=i("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=f,c.isIE=pn,c.isLatency=lr,c.isNotTruthy=Re,c.isNullOrUndefined=v,c.isNumber=xe,c.isObject=ge,c.isReactNative=vn,c.isString=Se,c.isTruthy=De,c.isTypeof=se,c.isUint8ArrayAvailable=ur,c.isUndefined=d,c.isValueAssigned=or,c.isValueKind=Cr,c.isWindowObjectAvailable=ir,c.isXhrSupported=Cn,c.newGuid=Kt,c.newId=qt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=b,c.objDefineAccessors=Me,c.objForEachKey=pe,c.objKeys=Le,c.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,er,t),a.open(e,n,!i),t&&o(a,er,t),a},c.optimizeObject=function(e){return e&&r(m?m({},e):e)},c.perfNow=Ht,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ge(r)&&ge(i))for(var e in i)!function(n){var e,t;Se(n)&&(f(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(fe(r,n)&&delete r[n],Me(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Rt,c.randomValue=Ot,c.safeGetCookieMgr=dt,c.safeGetLogger=Nn,c.sanitizeProperty=sr,c.setCookie=gr,c.setEnableEnvMocks=function(e){Xe=e},c.setProcessTelemetryTimings=xr,c.setValue=p,c.strContains=t,c.strEndsWith=he,c.strExtensionConfig=jn,c.strFunction=u,c.strIKey="iKey",c.strObject=a,c.strPrototype=h,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Ee,c.strUndefined=n,c.throwError=_e,c.toISOString=be,c.useXDomainRequest=yn;Lr=c,kr="__esModule",Vn={value:!0},wr=Object.defineProperty;if(wr)try{return void wr(Lr,kr,Vn)}catch(Zr){}typeof Vn.value!==undefined&&(Lr[kr]=Vn.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).oneDS=e.oneDS||{});
var e=this,n=function(c){"use strict";var D="function",a="object",n="undefined",f="prototype",_="hasOwnProperty",t=Object,j=t[f],U=t.assign,V=t.create,e=t.defineProperty,z=j[_],B=null;function K(e){return void 0===e&&(e=!0),B&&e||(typeof globalThis!==n&&globalThis&&(B=globalThis),typeof self!==n&&self&&(B=self),typeof window!==n&&window&&(B=window),typeof global!==n&&global&&(B=global)),B}function H(e){throw new TypeError(e)}function W(e){if(V)return V(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==D&&H("Object prototype may only be an Object:"+e),t[f]=e,new t}(K()||{}).Symbol,(K()||{}).Reflect;var q=U||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])j[_].call(n,i)&&(e[i]=n[i]);return e},G=function(e,n){return(G=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[_](t)&&(e[t]=n[t])})(e,n)};function J(e,n){function t(){this.constructor=e}typeof n!==D&&null!==n&&H("Class extends value "+n+" is not a constructor or null"),G(e,n),e[f]=null===n?W(n):(t[f]=n[f],new t)}function X(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var Q={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},$="constructor",v="prototype",Z="function",Y="_dynInstFuncs",ee="_isDynProxy",ne="_dynClass",te="_dynInstChk",re=te,ie="_dfOpts",oe="_unknown_",ae="__proto__",ue="useBaseInst",le="setInstFuncs",se=Object,ce=se.getPrototypeOf,fe=0;function p(e,n){return e&&se[v].hasOwnProperty.call(e,n)}function ge(e){return e&&(e===se[v]||e===Array[v])}function de(e){return ge(e)||e===Function[v]}function h(e){if(e){if(ce)return ce(e);e=e[ae]||e[v]||(e[$]?e[$][v]:null);if(e)return e}return null}function ve(e,n){var t=[],r=se.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&p(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function pe(e,n,t){return n!==$&&typeof e[n]===Z&&(t||p(e,n))}function he(e){throw new TypeError("DynamicProto: "+e)}function me(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function ye(e,n){return p(e,v)?e.name||n||oe:((e||{})[$]||{}).name||n||oe}function S(e,r,n,t){p(e,v)||he("theClass is an invalid class definition.");var i,o,a,u,l,s,c=e[v],f=(function(e){if(ce)for(var n=[],t=h(r);t&&!de(t)&&!me(n,t);){if(t===e)return 1;n.push(t),t=h(t)}}(c)||he("["+ye(e)+"] is not in class hierarchy of ["+ye(r)+"]"),null),e=(p(c,ne)?f=c[ne]:(f="_dynCls$"+ye(e,"_")+"$"+fe,fe++,c[ne]=f),S[ie]),g=!!e[ue],d=(g&&t&&t[ue]!==undefined&&(g=!!t[ue]),o={},ve(i=r,function(e){!o[e]&&pe(i,e,!1)&&(o[e]=i[e])}),o),g=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[ee]&&o&&!1!==(r=e[Y]||{})[re]&&(i=(r[n[ne]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(ve(t,function(e){i[e]=r(n,t,e)}),h(e)),u=[];a&&!de(a)&&!me(u,a);)ve(a,function(e){!i[e]&&pe(a,e,!ce)&&(i[e]=r(n,a,e))}),u.push(a),a=h(a);return i}(c,r,d,g)),!!ce&&!!e[le]);a=c,n=f,u=r,l=d,e=!1!==(g=g&&t?!!t[le]:g),ge(a)||(c=u[Y]=u[Y]||{},s=c[n]=c[n]||{},!1!==c[re]&&(c[re]=!!e),ve(u,function(e){var t,r,i;pe(u,e,!1)&&u[e]!==l[e]&&(s[e]=u[e],delete u[e],p(a,e)&&(!a[e]||a[e][ee])||(a[e]=(t=a,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&p(t,ne)){var o=e[Y]||{};if((i=(o[t[ne]]||{})[n])||he("Missing ["+n+"] "+Z),!i[te]&&!1!==o[re]){for(var a=!p(e,n),u=h(e),l=[];a&&u&&!de(u)&&!me(l,u);){var s=u[n];if(s){a=s===r;break}l.push(u),u=h(u)}try{a&&(e[n]=i),i[te]=1}catch(c){o[re]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?h(t)[e]:n)!==Z&&he("["+e+"] is not a "+Z),n)).apply(this,arguments)})[ee]=1,i)))}))}S[ie]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(r=c.LoggingSeverity||(c.LoggingSeverity={}))[r.CRITICAL=1]="CRITICAL",r[r.WARNING=2]="WARNING";var Ce={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},Se="attachEvent",xe="addEventListener",Ie="detachEvent",be="removeEventListener",Te="toISOString",we="endsWith",Pe="startsWith",Ee="indexOf",Ae="trim",r="toString",Ne=e,Le=t.keys,e=String[f],Me=e[Ae],ke=e[we],Fe=e[Pe],Oe=Date[f][Te],e=Array.isArray,Re=j[r],De=(z[r].call(t),/-([a-z])/g),_e=/([^\w\d_$])/g,je=/^(\d+[\w\d_$])/;function Ue(e,n){return typeof e===n}function d(e){return e===undefined||typeof e===n}function m(e){return null===e||d(e)}function Ve(e){return!m(e)}function ze(e,n){return!(!e||!z.call(e,n))}function g(e){return!(!e||typeof e!==a)}function y(e){return!(!e||typeof e!==D)}function Be(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!m(e))try{m(e[xe])?m(e[Se])||(e[Se]("on"+n,t),i=!0):(e[xe](n,t,r),i=!0)}catch(o){}return i}function Ke(e,n,t,r){if(void 0===r&&(r=!1),!m(e))try{m(e[be])?m(e[Ie])||e[Ie]("on"+n,t):e[be](n,t,r)}catch(i){}}function He(e,n){if(e)for(var t in e)z.call(e,t)&&n.call(e,t,e[t])}function We(e,n){var t=!1;if(e&&n&&!(t=e===n)){if(ke)return e[we](n);var r=e,i=n,e=!1,n=i?i.length:0,o=r?r.length:0;if(n&&o&&n<=o&&!(e=r===i)){for(var a=o-1,u=n-1;0<=u;u--){if(r[a]!=i[u])return!1;a--}e=!0}return e}return t}function i(e,n){return!(!e||!n||!~e.indexOf(n))}function qe(e){return!(!e||"[object Date]"!==Re.call(e))}var C=e||function(e){return!(!e||"[object Array]"!==Re.call(e))};function Ge(e){return!(!e||"[object Error]"!==Re.call(e))}function x(e){return"string"==typeof e}function Je(e){return"number"==typeof e}function Xe(e){return"boolean"==typeof e}function o(e){if(e){if(Oe)return e[Te]();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 I(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 u(e,n,t){if(e){if(e[Ee])return e[Ee](n,t);var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}}return-1}function Qe(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(u){}}return o}function $e(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++}return r}function b(e){return e&&(Me&&e[Ae]?e[Ae]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ze=!{toString:null}.propertyIsEnumerable("toString"),Ye=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function en(e){var n=typeof e;if(n===D||n===a&&null!==e||H("objKeys called on non-object"),!Ze&&Le)return Le(e);var t,r=[];for(t in e)e&&z.call(e,t)&&r.push(t);if(Ze)for(var i=Ye.length,o=0;o<i;o++)e&&z.call(e,Ye[o])&&r.push(Ye[o]);return r}function l(e,n,t,r){if(Ne)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Ne(e,n,i),!0}catch(o){}return!1}function T(){var e=Date;return e.now?e.now():(new e).getTime()}function nn(e){return Ge(e)?e.name:""}function w(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 tn(e,n,t){var r;return e?!(r=e[n])&&m(r)&&(r=d(t)?{}:t,e[n]=r):r=d(t)?{}:t,r}function rn(e){return!e}function on(e){return!!e}function P(e){throw Error(e)}var an="window",un="navigator",ln="location",sn="performance",cn="JSON",fn="crypto",gn="msCrypto",dn="msie",vn="trident/",pn=null,hn=null,mn=!1,yn=null,Cn=null;function Sn(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[f])&&(r=n in t)}catch(i){}if(!r)try{r=!d((new e)[n])}catch(i){}}return r}function s(e){var n=K();return n&&n[e]?n[e]:e===an&&xn()?window:null}function xn(){return!(typeof window!==a||!window)}function In(){return xn()?window:s(an)}function bn(){return!(typeof document!==a||!document)}function Tn(){return bn()?document:s("document")}function wn(){return!(typeof navigator!==a||!navigator)}function Pn(){return wn()?navigator:s(un)}function En(){return!(typeof history!==a||!history)}function An(e){if(e&&mn){e=s("__mockLocation");if(e)return e}return typeof location===a&&location?location:s(ln)}function Nn(){return typeof console!==n?console:s("console")}function Ln(){return s(sn)}function Mn(){return!!(typeof JSON===a&&JSON||null!==s(cn))}function kn(){return Mn()?JSON||s(cn):null}function Fn(){return s(fn)}function On(){return s(gn)}function Rn(){var e=Pn();return!(!e||!e.product)&&"ReactNative"===e.product}function Dn(){var e=Pn();return!e||e.userAgent===hn&&null!==pn||(e=((hn=e.userAgent)||"").toLowerCase(),pn=i(e,dn)||i(e,vn)),pn}function _n(e){var n=Object[f].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Mn()&&(t=kn().stringify(e)),n+t}function jn(){return Cn=null===Cn?wn()&&!!Pn().sendBeacon:Cn}function Un(){return yn=null===yn&&(yn="undefined"!=typeof XDomainRequest)&&Vn()?yn&&!Sn(s("XMLHttpRequest"),"withCredentials"):yn}function Vn(){var e=!1;try{e=!!s("XMLHttpRequest")}catch(n){}return e}var zn,Bn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],Kn=null;function Hn(e){var n=Kn;return(n=n||!0===e.disableDbgExt?n:Kn||(e=s("Microsoft"),Kn=e?e.ApplicationInsights:Kn))?n.ChromeDbgExt:null}function Wn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function qn(e,n){var t,r=Nn();r&&(t="log",y(r[t=r[e]?e:t])&&r[t](n))}Jn.dataType="MessageData";var Gn=Jn;function Jn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",Mn()&&(t=kn().stringify(r)),e=(n?" message:"+Wn(n):"")+(r?" props:"+Wn(t):"");this.message+=e}function Xn(e,n){return(e||{}).logger||new Qn(n)}var Qn=function ti(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};S(ti,this,function(o){function e(e,n){e=r[e];return m(e)?n:e}function a(e,n){var t=Hn(r);t&&t.diagLog&&t.diagLog(e,n)}m(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new Gn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole";d(n.message)?a("throw"+(e===c.LoggingSeverity.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){qn("warn",e),a("warning",e)},o.errorToConsole=function(e){qn("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===c.LoggingSeverity.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new Gn(Ce.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===c.LoggingSeverity.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},$n=(E.ParentContextKey="parent",E.ChildrenContextKey="childEvts",E);function E(e,i,n){var t,o=this,a=!1;o.start=T(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},y(i)&&(a=l(o,"payload",function(){return!t&&y(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===E.ParentContextKey||e===E.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===E.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===E.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(E.ChildrenContextKey);if(C(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=T()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&y(i)&&(o.payload=i())}}var Zn=function ri(n){this.ctx={},S(ri,this,function(t){t.create=function(e,n,t){return new $n(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&y(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Yn="CoreUtils.doPerf";function et(e,n,t,r,i){if(e)if(e=y(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(Yn);try{if(a=e.create(n(),r,i))return u&&a.setCtx&&(a.setCtx($n.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx($n.ChildrenContextKey))||(o=[],u.setCtx($n.ChildrenContextKey,o)),o.push(a))),e.setCtx(Yn,a),t(a)}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&e.fire(a),e.setCtx(Yn,u)}}return t()}var nt=function(i,n){var o=this,a=null,u=y(i.processTelemetry),l=y(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";et(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,Ce.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+_n(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function tt(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&y(o.processTelemetry)&&(o=new nt(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var rt=function ii(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&y(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),tt(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],I(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=tt(a,r)):d(n)&&(s=tt(e,l))),l.core=function(){return t},l.diagLog=function(){return Xn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),(t=i&&(r=i.extensionConfig)&&e?r[e]:t)||n},l.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=l.getExtCfg(e,null);return e&&!m(e[n])?r=e[n]:i&&!m(i[n])&&(r=i[n]),m(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new ii((e=void 0===e?null:e)||s,i,t,n)}},it="extensionConfig",ot="getPlugin",r=(at.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},at);function at(){var o=this,a=!1,u=null,l=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&y(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=u||new rt(null,{},o.core),e=l&&l[ot]?n.createNew(null,l[ot]):n.createNew(null,l)),e},o._baseTelInit=function(e,n,t,r){e&&w(e,it,[],null,m),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[ot]&&(i=l[ot]()),o.core=n,u=new rt(r,e,n,i),a=!0}}var ut="processTelemetry",lt="priority",st="setNextPlugin",ct="isInitialized";function ft(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&y(r[st])&&y(o[ut])&&r[st](o),y(o[ct])&&o[ct]()||e.push(o),r=o,i=i.getNext())}I(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function gt(e){return e.sort(function(e,n){var t=0,r=y(n[ut]);return y(e[ut])?t=r?e[lt]-n[lt]:1:r&&(t=-1),t})}J(pt,dt=r),pt._staticInit=(l(e=pt.prototype,"ChannelControls",e.getChannelControls),void l(e,"channelQueue",e.getChannelControls));var dt,vt=pt;function pt(){var l,r=dt.call(this)||this;function s(e){e&&0<e.length&&(I(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&P("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,S(pt,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&I(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&I(e,s),i&&(o=[],I(i,function(e){500<e.priority&&o.push(e)}),s(o)),I(l,function(e){return ft(new rt(e,n,t),r)}))}}),r}var ht="toGMTString",mt="toUTCString",yt="cookie",Ct="expires",St="enabled",xt="isCookieUseDisabled",It="disableCookiesUsage",bt="_ckMgr",A="",Tt=null,wt=null,Pt=null,Et=Tn(),At={},Nt={};function Lt(e){return!e||e.isEnabled()}function Mt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[bt]||kt(n)),t||(e=(e||{}).logger,(r=kt[bt]||Nt[bt])||(r=kt[bt]=kt(n,e),Nt[bt]=r),t=r),t}function kt(e,i){w(t=(e=e||Nt).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Ve,m),w(t,"path",e.cookiePath||"/",null,m),m(t[St])&&(n=void 0,d(e[xt])||(n=!e[xt]),d(e[It])||(n=!e[It]),t[St]=n);var n,t,s=t,c=s.path||"/",f=s.domain,r=!1!==s[St],g={isEnabled:function(){var e=r&&N(i),n=Nt[bt];return e&&n&&g!==n?Lt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return Lt(g)&&(o={},-1!=(u=(a=b(n||A)).indexOf(";"))&&(a=b(n.substring(0,u)),o=Ft(n.substring(1+u))),w(o,"domain",r||f,on,d),m(t)||(u=Dn(),d(o[Ct])&&0<(n=T()+1e3*t)&&((r=new Date).setTime(n),w(o,Ct,Ot(r,u?ht:mt)||Ot(r,u?ht:mt)||A,on)),u||w(o,"max-age",A+t,null,d)),(n=An())&&"https:"===n.protocol&&(w(o,"secure",null,null,d),(wt=null===wt?!_t((Pn()||{}).userAgent):wt)&&w(o,"SameSite","None",null,d)),w(o,"path",i||c,null,d),(s.setCookie||Dt)(e,Rt(a,o)),l=!0),l},get:function(e){var n=A;return Lt(g)?(s.getCookie||function(e){var n,t=A;return Et&&(n=Et[yt]||A,Pt!==n&&(At=Ft(n),Pt=n),t=b(At[e]||A)),t})(e):n},del:function(e,n){return!!Lt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return N(i)&&((t={}).path=n||"/",t[Ct]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,Dn()||(n["max-age"]="0"),(s.delCookie||Dt)(e,Rt(A,n)),r=!0),r}};return g[bt]=g}function N(e){if(null===Tt){Tt=!1;try{Tt=(Et||{})[yt]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,Ce.CannotAccessCookie,"Cannot access document.cookie - "+nn(n),{exception:_n(n)})}}return Tt}function Ft(e){var t={};return e&&e.length&&I(b(e).split(";"),function(e){var n;(e=b(e||A))&&(-1==(n=e.indexOf("="))?t[e]=null:t[b(e.substring(0,n))]=b(e.substring(1+n)))}),t}function Ot(e,n){return y(e[n])?e[n]():null}function Rt(e,n){var t=e||A;return He(n,function(e,n){t+="; "+e+(m(n)?A:"="+n)}),t}function Dt(e,n){Et&&(Et[yt]=e+"="+n)}function _t(e){return!(!x(e)||!i(e,"CPU iPhone OS 12")&&!i(e,"iPad; CPU OS 12")&&!(i(e,"Macintosh; Intel Mac OS X 10_14")&&i(e,"Version/")&&i(e,"Safari"))&&(!i(e,"Macintosh; Intel Mac OS X 10_14")||!We(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!i(e,"Chrome/5")&&!i(e,"Chrome/6")&&(!i(e,"UnrealEngine")||i(e,"Chrome"))&&!i(e,"UCBrowser/12")&&!i(e,"UCBrowser/11"))}var jt="_notificationManager";function Ut(e,n){return new Zn(n)}var Vt,e=function oi(){var n,u,l,t,r,s=!1;S(oi,this,function(a){a._extensions=[],u=new vt,a.logger=new Qn({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&P("Core should not be initialized more than once"),e&&!m(e.instrumentationKey)||P("Please provide instrumentation key"),l=t,a[jt]=t,a.config=e||{},t&&!0!==a.config.disableDbgExt&&t.addNotificationListener(function(e){if(!zn){zn={};for(var n=0;n<Bn.length;n++)zn[Bn[n]]=function(n,t){return function(){var e=Hn(t);e&&(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(Bn[n],e)}return zn}(e)),a.config.enablePerfMgr&&w(a.config,"createPerfMgr",Ut),e.extensions=m(e.extensions)?[]:e.extensions,tn(e,it).NotificationManager=t,r&&(a.logger=r);var t=[],i=(t.push.apply(t,X(X([],n),e.extensions)),t=gt(t),[]),o={};I(t,function(e){(m(e)||m(e.initialize))&&P("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(m(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=gt(t),a._extensions=t,ft(new rt([u],e,a),t),ft(new rt(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&P("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){w(e,"iKey",a.config.instrumentationKey,null,rn),w(e,"time",o(new Date),null,rn),w(e,"ver","4.0",null,m),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new rt(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=W({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[jt]=l),l},a.getCookieMgr=function(){return r=r||kt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&y(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(I(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},zt=function ai(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;S(ai,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=u(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=u(i.listeners,e)},i.eventsSent=function(n){I(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){I(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){I(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){!t||!n&&t.isChildEvt()||I(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}})}})},Bt=(J(Kt,Vt=e),Kt);function Kt(){var e=Vt.call(this)||this,r=0;return S(Kt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],Q.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new Qn(e),r||new zt(e))},t.track=function(e){et(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),P("Invalid telemetry item")),m(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];I(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:o(new Date),baseType:Gn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var Ht=4294967296,L=4294967295,Wt=!1,qt=123456789,Gt=987654321;function Jt(e){e<0&&(e>>>=0),qt=123456789+e&L,Gt=987654321-e&L,Wt=!0}function Xt(){try{var e=2147483647&T();Jt((Math.random()*Ht^e)+e)}catch(n){}}function Qt(e){return 0<e?Math.floor($t()/L*(e+1))>>>0:0}function $t(e){var n=Fn()||On(),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&L:Dn()?(Wt||Xt(),Zt()&L):Math.floor(Ht*Math.random()|0);return e||(n>>>=0),n}function Zt(e){var n=((Gt=36969*(65535&Gt)+(Gt>>16)&L)<<16)+(65535&(qt=18e3*(65535&qt)+(qt>>16)&L))>>>0&L|0;return e||(n>>>=0),n}var Yt="visibilitychange",er="pagehide",nr="pageshow";function M(e,n){var t=!1,r=In(),r=(r&&(t=Be(r,e,n),t=Be(r.body,e,n)||t),Tn());return r&&Be(r,e,n)||t}function tr(e,n,t){var r,i=!1;return n&&e&&C(e)&&(r=[],I(e,function(e){x(e)&&(t&&-1!==u(t,e)?r.push(e):i=M(e,n)||i)}),!i&&0<r.length&&(i=tr(r,n))),i}function rr(e,n){return tr(["beforeunload","unload","pagehide"],e,n)}function ir(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(lr,function(e){var n=0|Qt(15);return("x"===e?n:3&n|8).toString(16)})}function or(){var e=Ln();return e&&e.now?e.now():T()}function ar(e){void 0===e&&(e=22);for(var n=$t()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=($t()<<2&4294967295|3&n)>>>0,t=0);return r}function ur(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=$t())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&$t())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var lr=/[xy]/g,sr={Attach:Be,AttachEvent:Be,Detach:Ke,DetachEvent:Ke},cr={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},fr={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},k={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},gr=q(q({},Ce),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),q="3.1.11",dr="1DS-Web-JS-"+q,vr="withCredentials",pr=((F={})[0]=k.Unspecified,F[2]=k.Double,F[1]=k.String,F[3]=k.Bool,F[4098]=k.Double,F[4097]=k.String,F[4099]=k.Bool,F),hr=null,mr=!!Tn(),F=!!In();function yr(e){return!(""===e||m(e))}function Cr(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function Sr(){return hr=null===hr?!d(Uint8Array)&&!function(){var e=Pn();if(!d(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!Rn():hr}function xr(e){return!!(e&&Je(e)&&fr.Normal<=e&&e<=fr.Immediate)}function Ir(e,n,t){if(!n&&!yr(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||C(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(m(n.value)||""===n.value||!x(n.value)&&!Je(n.value)&&!Xe(n.value)&&!C(n.value))return null}else n={value:t?JSON.stringify(n):n};if(C(n.value)&&!Fr(n.value))return null;if(!m(n.kind)){if(C(n.value)||!kr(n.kind))return null;n.value=n.value.toString()}return n}function br(e,n,t){var r=-1;return d(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=pr[O(e)]||-1,-1!==r&&-1!==n?r|=n:n===k.Double&&(r=n))),r}function Tr(){Mt(null).setEnabled(!1)}function wr(e,n,t){N(null)&&Mt(null).set(e,n,86400*t,null,"/")}function Pr(e){N(null)&&Mt(null).del(e)}function Er(e){return N(null)?Ar(Mt(null),e):""}function Ar(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function Nr(e){void 0===e&&(e="D");var n=ir();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function Lr(e,n,t,r,i){var o={},a=!1,u=0,l=arguments.length,s=Object[f],c=arguments;for("[object Boolean]"===s.toString.call(c[0])&&(a=c[0],u++);u<l;u++)He(c[u],function(t,e){a&&e&&g(e)?C(e)?(o[t]=o[t]||[],I(e,function(e,n){e&&g(e)?o[t][n]=Lr(!0,o[t][n],e):o[t][n]=e})):o[t]=Lr(!0,o[t],e):o[t]=e});return o}var Mr=or;function kr(e){return e===cr.NotSet||e>cr.NotSet&&e<=cr.Pii_IPV4AddressLegacy||e===cr.CustomerContent_GenericContent}function Fr(e){return 0<e.length}function Or(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=Mr()}function O(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===a&&(t=4,C(e)?(t=4096,0<e.length&&(t|=O(e[0]))):ze(e,"value")&&(t=8192|O(e.value)))),t}var Rr,Dr={Version:q,FullVersionString:dr,strUndefined:n,strObject:a,Undefined:n,arrForEach:I,arrIndexOf:u,arrMap:Qe,arrReduce:$e,objKeys:en,toISOString:o,isReactNative:Rn,isString:x,isNumber:Je,isBoolean:Xe,isFunction:y,isArray:C,isObject:g,strTrim:b,isDocumentObjectAvailable:mr,isWindowObjectAvailable:F,isValueAssigned:yr,getTenantId:Cr,isBeaconsSupported:jn,isUint8ArrayAvailable:Sr,isLatency:xr,sanitizeProperty:Ir,getISOString:o,useXDomainRequest:Un,getCommonSchemaMetaData:br,cookieAvailable:N,disallowsSameSiteNone:_t,setCookie:wr,deleteCookie:Pr,getCookie:Er,createGuid:Nr,extend:Lr,getTime:Mr,isValueKind:kr,isArrayValid:Fr,objDefineAccessors:l,addPageUnloadEventListener:rr,setProcessTelemetryTimings:Or,addEventHandler:M,getFieldValueType:O,strEndsWith:We,objForEachKey:He},_r={_canUseCookies:undefined,isTypeof:Ue,isUndefined:d,isNullOrUndefined:m,hasOwnProperty:ze,isFunction:y,isObject:g,isDate:qe,isArray:C,isError:Ge,isString:x,isNumber:Je,isBoolean:Xe,toISOString:o,arrForEach:I,arrIndexOf:u,arrMap:Qe,arrReduce:$e,strTrim:b,objCreate:W,objKeys:en,objDefineAccessors:l,addEventHandler:M,dateNow:T,isIE:Dn,disableCookies:Tr,newGuid:ir,perfNow:or,newId:ar,randomValue:Qt,random32:$t,mwcRandomSeed:function(e){e?Jt(e):Xt()},mwcRandom32:Zt,generateW3CId:ur},jr="version",Ur="properties";function Vr(){var e=Rr.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",S(Vr,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new Qn({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){et(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&I(r.channels,function(e){e&&I(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&I(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e=u.logger,n=_n(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(c.LoggingSeverity.CRITICAL,gr.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){et(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=Mr(),xr(n.latency)||(n.latency=fr.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=dr,(e=n.baseData=n.baseData||{})[Ur]||(e[Ur]={}),(e=e[Ur])[jr]||(e[jr]=""),""!==u.pluginVersionString&&(e[jr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}J(Vr,Rr=Bt);var zr,Br=Vr;function Kr(){var e=zr.call(this)||this;return S(Kr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return mr?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,gr.FailedToInitializeSDK,"Initialization Failed: "+_n(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=dr),a.track(e)}}),e}J(Kr,zr=e);var Hr=Kr,Wr=y;function R(e){var a=0,u=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?Wr(t)?t(u):u:Wr(r)?r(u):u)instanceof R?e.then(i,o):(2!==a||Wr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=2,l())}if(S(R,this,function(n){n.then=function(t,r){return new R(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!Wr(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(u=e,a=1,l())},t)}catch(r){t(r)}}R.resolve=function(r){return r instanceof R?r:r&&Wr(r.then)?new R(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new R(function(e){e(r)})},R.reject=function(t){return new R(function(e,n){n(t)})},R.all=function(u){if(u&&u.length)return new R(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Wr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},R.race=function(i){return new R(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Wr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})};var qr=R,Gr=0,Jr=[],Xr=[],Qr=[];function $r(){return(new Date).getTime()}function Zr(e,n){var h=0,m=(e||"<unnamed>")+"."+Gr;function y(e){var n=K();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Gr++,S(Zr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,u){var i,o,n,a=m+"."+v,e=(v++,e&&(a+="-("+e+")"),a+"{"+h+"}"),r=(h++,{evt:null,tm:$r(),id:e,isRunning:!1,isAborted:!1});return r.evt=d?(i=r,o=d,n=new qr(function(n,t){var e=$r()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Xr.length+"] waiting and ["+Jr.length+"] running"),i.abort=function(e){i.abort=null,p(Xr,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){p(Xr,a),g(i).then(n,t)},function(e){p(Xr,a),g(i).then(n,t)})}),Xr.push(i),n):g(r),(d=r).evt._schId=e,r.evt;function l(e){for(var n=$r(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Jr,e);i||(i=p(Qr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=$r()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(Qr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(Jr),l(Xr),l(Qr)}function c(n,t){return function(e){return s(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new qr(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof qr?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof qr?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+($r()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function g(e){var n=$r();return e.wTm=n-e.tm,e.tm=n,e.isAborted?qr.reject(Error("["+a+"] was aborted")):(Jr.push(e),f(e,t))}}})}Zr.incomplete=function(){return Jr},Zr.waitingToStart=function(){return Xr};var Yr=Zr,ei=(ni.getFieldType=O,ni);function ni(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(x(e)&&x(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!m(i.kind)){if(4096==(4096&r)||!kr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},He(n.value,function(e,n){var t;yr(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,O(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,{path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return yr(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){e=s(e,n);return!!e&&e.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!x(n)||m(t)||""===t)return null;var o=null,a=O(t);if(8192==(8192&a)){var u=-8193&a;if(!yr((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!x(n)||m(t)||!yr(t.value))return null;var o=O(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=Br,c.BaseCore=Hr,c.BaseTelemetryPlugin=r,c.CoreUtils=_r,c.DiagnosticLogger=Qn,c.ESPromise=qr,c.ESPromiseScheduler=Yr,c.EventHelper=sr,c.EventLatency=fr,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=k,c.EventsDiscardedReason=Q,c.FullVersionString=dr,c.InternalAppInsightsCore=Bt,c.InternalBaseCore=e,c.MinChannelPriorty=100,c.NotificationManager=zt,c.PerfEvent=$n,c.PerfManager=Zn,c.ProcessTelemetryContext=rt,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Dr,c.ValueKind=cr,c.ValueSanitizer=ei,c.Version=q,c._ExtendedInternalMessageId=gr,c._InternalLogMessage=Gn,c._InternalMessageId=Ce,c.addEventHandler=M,c.addEventListeners=tr,c.addPageHideEventListener=function ui(t,e){var n=!1;return e&&-1!==u(e,er)||(n=M(er,t)),!(n=(!e||-1===u(e,Yt))&&M(Yt,function(e){var n=Tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?ui(t):n},c.addPageShowEventListener=function li(t,e){var n=!1;return e&&-1!==u(e,nr)||(n=M(nr,t)),!(n=(!e||-1===u(e,Yt))&&M(Yt,function(e){var n=Tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?li(t):n},c.addPageUnloadEventListener=rr,c.areCookiesSupported=N,c.arrForEach=I,c.arrIndexOf=u,c.arrMap=Qe,c.arrReduce=$e,c.attachEvent=Be,c.cookieAvailable=N,c.createCookieMgr=kt,c.createGuid=Nr,c.dateNow=T,c.deleteCookie=Pr,c.detachEvent=Ke,c.disableCookies=Tr,c.disallowsSameSiteNone=_t,c.doPerf=et,c.dumpObj=_n,c.extend=Lr,c.generateW3CId=ur,c.getCommonSchemaMetaData=br,c.getConsole=Nn,c.getCookie=Er,c.getCookieValue=Ar,c.getCrypto=Fn,c.getDocument=Tn,c.getExceptionName=nn,c.getFieldValueType=O,c.getGlobal=K,c.getGlobalInst=s,c.getHistory=function(){return En()?history:s("history")},c.getIEVersion=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Pn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(i(n,dn))return e=Tn()||{},Math.max(parseInt(n.split(dn)[1]),e.documentMode||0);if(i(n,vn)){e=parseInt(n.split(vn)[1]);if(e)return e+4}return null},c.getISOString=o,c.getJSON=kn,c.getLocation=An,c.getMsCrypto=On,c.getNavigator=Pn,c.getPerformance=Ln,c.getSetValue=tn,c.getTenantId=Cr,c.getTime=Mr,c.getWindow=In,c.hasDocument=bn,c.hasHistory=En,c.hasJSON=Mn,c.hasNavigator=wn,c.hasOwnProperty=ze,c.hasWindow=xn,c.isArray=C,c.isArrayValid=Fr,c.isBeaconsSupported=jn,c.isBoolean=Xe,c.isChromium=function(){return!!s("chrome")},c.isDate=qe,c.isDocumentObjectAvailable=mr,c.isError=Ge,c.isFetchSupported=function(e){var n=!1;try{var n=!!s("fetch"),t=s("Request");n&&e&&t&&(n=Sn(t,"keepalive"))}catch(r){}return n},c.isFunction=y,c.isIE=Dn,c.isLatency=xr,c.isNotTruthy=rn,c.isNullOrUndefined=m,c.isNumber=Je,c.isObject=g,c.isReactNative=Rn,c.isString=x,c.isTruthy=on,c.isTypeof=Ue,c.isUint8ArrayAvailable=Sr,c.isUndefined=d,c.isValueAssigned=yr,c.isValueKind=kr,c.isWindowObjectAvailable=F,c.isXhrSupported=Vn,c.newGuid=ir,c.newId=ar,c.normalizeJsName=function(e){var n=e;return e&&x(e)?(n=(n=e.replace(De,function(e,n){return n.toUpperCase()})).replace(_e,"_")).replace(je,function(e,n){return"_"+n}):n},c.objCreate=W,c.objDefineAccessors=l,c.objForEachKey=He,c.objKeys=en,c.openXhr=function(e,n,t,r,i,o){function a(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var u=new XMLHttpRequest;return r&&a(u,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&a(u,vr,t),u.open(e,n,!i),t&&a(u,vr,t),!i&&o&&a(u,"timeout",o),u},c.optimizeObject=function(e){return e&&U?t(U({},e)):e},c.perfNow=or,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&g(r)&&g(i))for(var e in i)!function(n){var e,t;x(n)&&(y(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(ze(r,n)&&delete r[n],l(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=$t,c.randomValue=Qt,c.safeGetCookieMgr=Mt,c.safeGetLogger=Xn,c.sanitizeProperty=Ir,c.setCookie=wr,c.setEnableEnvMocks=function(e){mn=e},c.setProcessTelemetryTimings=Or,c.setValue=w,c.strContains=i,c.strEndsWith=We,c.strExtensionConfig=it,c.strFunction=D,c.strIKey="iKey",c.strObject=a,c.strPrototype=f,c.strStartsWith=function(e,n){var t=!1;if(e&&n&&!(t=e===n)){if(Fe)return e[Pe](n);var r=e,i=n,e=!1,o=i?i.length:0;if(r&&o&&r.length>=o&&!(e=r===i)){for(var a=0;a<o;a++)if(r[a]!==i[a])return!1;e=!0}return e}return t},c.strTrim=b,c.strUndefined=n,c.throwError=P,c.toISOString=o,c.useXDomainRequest=Un;Br=c,Hr="__esModule",r={value:!0},_r=Object.defineProperty;if(_r)try{return void _r(Br,Hr,r)}catch(si){}typeof r.value!==undefined&&(Br[Hr]=r.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).oneDS=e.oneDS||{});
//# sourceMappingURL=ms.core.min.js.map
/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

@@ -1,9 +0,1 @@

/**
* BaseCore.ts
* Base Core is a subset of 1DS Web SDK Core. The purpose of Base Core is to generate a smaller bundle size while providing essential features of Core. Features that are not included in Base Core are:
* 1. Internal logging
* 2. Sending notifications on telemetry sent/discarded
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
*/
import { BaseCore as InternalCore, IPlugin, ITelemetryItem, IDiagnosticLogger, INotificationManager } from "@microsoft/applicationinsights-core-js";

@@ -10,0 +2,0 @@ import { IExtendedConfiguration, IExtendedTelemetryItem, IExtendedAppInsightsCore } from "./DataModels";

/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -15,6 +15,6 @@ * (Microsoft Internal Only)

*/
import dynamicProto from "@microsoft/dynamicproto-js";
import { BaseCore as InternalCore, LoggingSeverity, dumpObj } from "@microsoft/applicationinsights-core-js";
import { _ExtendedInternalMessageId } from "./Enums";
import { FullVersionString, isDocumentObjectAvailable } from "./Utils";
import dynamicProto from "@microsoft/dynamicproto-js";
var BaseCore = /** @class */ (function (_super) {

@@ -21,0 +21,0 @@ __extends(BaseCore, _super);

/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

import { IEventProperty } from "./DataModels";
import { GuidStyle, FieldValueSanitizerType, EventLatency } from "./Enums";
import { ITelemetryItem, objForEachKey, isNumber, isReactNative, isString, isBoolean, isArray, isObject, perfNow, addEventHandler, uaDisallowsSameSiteNone, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, areCookiesSupported, ICookieMgr, ICoreUtils, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener } from "@microsoft/applicationinsights-core-js";
export declare const Version = "3.1.10";
import { ITelemetryItem, objForEachKey, isNumber, isReactNative, isString, isBoolean, isObject, perfNow, addEventHandler, uaDisallowsSameSiteNone, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, areCookiesSupported, ICookieMgr, ICoreUtils, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener } from "@microsoft/applicationinsights-core-js";
export declare const Version = "3.1.11";
export declare const FullVersionString: string;

@@ -130,3 +130,3 @@ /**

isFunction: typeof isFunction;
isArray: typeof isArray;
isArray: <T = any>(obj: any) => obj is T[];
isObject: typeof isObject;

@@ -182,4 +182,5 @@ strTrim: typeof strTrim;

* @param isSync - Optional flag indicating if the instance should be a synchronous request (defaults to false)
* @param timeout - Optional value identifying the timeout value that should be assigned to the XHR request
* @returns A new opened XHR request
*/
export declare function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled?: boolean, isSync?: boolean): XMLHttpRequest;
export declare function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled?: boolean, isSync?: boolean, timeout?: number): XMLHttpRequest;
/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -16,3 +16,3 @@ * (Microsoft Internal Only)

import { getDocument, getNavigator, getWindow, getGlobalInst, objForEachKey, isUndefined, isNullOrUndefined, isNumber, isReactNative, isString, isBoolean, isArray, newGuid, isObject, perfNow, hasOwnProperty, addEventHandler, uaDisallowsSameSiteNone, strPrototype, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, strUndefined, strObject, areCookiesSupported, safeGetCookieMgr, generateW3CId, mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener, } from "@microsoft/applicationinsights-core-js";
export var Version = '3.1.10';
export var Version = '3.1.11';
export var FullVersionString = "1DS-Web-JS-" + Version;

@@ -22,2 +22,3 @@ // Defining here so we don't need to take (import) the ApplicationInsights Common module

var strWithCredentials = "withCredentials";
var strTimeout = "timeout";
// If value is array just get the type for the first element

@@ -483,5 +484,6 @@ var _fieldTypeEventPropMap = (_a = {},

* @param isSync - Optional flag indicating if the instance should be a synchronous request (defaults to false)
* @param timeout - Optional value identifying the timeout value that should be assigned to the XHR request
* @returns A new opened XHR request
*/
export function openXhr(method, urlString, withCredentials, disabled, isSync) {
export function openXhr(method, urlString, withCredentials, disabled, isSync, timeout) {
if (disabled === void 0) { disabled = false; }

@@ -515,4 +517,10 @@ if (isSync === void 0) { isSync = false; }

}
// Only set the timeout for asynchronous requests as
// "Timeout shouldn't be used for synchronous XMLHttpRequests requests used in a document environment or it will throw an InvalidAccessError exception.""
// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout
if (!isSync && timeout) {
_wrapSetXhrProp(xhr, strTimeout, timeout);
}
return xhr;
}
//# sourceMappingURL=Utils.js.map
/*
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*!
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -64,6 +64,7 @@ * (Microsoft Internal Only)

var _a;
var Version = '3.1.10';
var Version = '3.1.11';
var FullVersionString = "1DS-Web-JS-" + Version;
var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
var strWithCredentials = "withCredentials";
var strTimeout = "timeout";
var _fieldTypeEventPropMap = (_a = {},

@@ -392,3 +393,3 @@ _a[0 ] = EventPropertyType.Unspecified,

}
function openXhr(method, urlString, withCredentials, disabled, isSync) {
function openXhr(method, urlString, withCredentials, disabled, isSync, timeout) {
if (disabled === void 0) { disabled = false; }

@@ -414,2 +415,5 @@ if (isSync === void 0) { isSync = false; }

}
if (!isSync && timeout) {
_wrapSetXhrProp(xhr, strTimeout, timeout);
}
return xhr;

@@ -416,0 +420,0 @@ }

/*!
* 1DS JS SDK Core, 3.1.10
* 1DS JS SDK Core, 3.1.11
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
var e=this,n=function(e,r,f,t){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var c=o(t),a={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},m={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},i={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},v=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),t="3.1.10",h="1DS-Web-JS-"+t,s="withCredentials",l=((n={})[0]=i.Unspecified,n[2]=i.Double,n[1]=i.String,n[3]=i.Bool,n[4098]=i.Double,n[4097]=i.String,n[4099]=i.Bool,n),S=null,y=!!f.getDocument(),n=!!f.getWindow();function g(e){return!(""===e||f.isNullOrUndefined(e))}function C(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function I(){return S=null===S?!f.isUndefined(Uint8Array)&&!function(){var e=f.getNavigator();if(!f.isUndefined(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!f.isReactNative():S}function E(e){return!!(e&&f.isNumber(e)&&m.Normal<=e&&e<=m.Immediate)}function P(e,n,t){if(!n&&!g(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!L(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!U(n.kind))return null;n.value=n.value.toString()}return n}function w(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=l[p(e)]||-1,-1!==r&&-1!==n?r|=n:n===i.Double&&(r=n))),r}function O(){f.safeGetCookieMgr(null).setEnabled(!1)}function N(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function A(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function T(e){return f.areCookiesSupported(null)?j(f.safeGetCookieMgr(null),e):""}function j(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function F(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function D(e,n,t,u,d){var r={},i=!1,o=0,a=arguments.length,s=Object[f.strPrototype],l=arguments;for("[object Boolean]"===s.toString.call(l[0])&&(i=l[0],o++);o<a;o++)f.objForEachKey(l[o],function(t,e){i&&e&&f.isObject(e)?f.isArray(e)?(r[t]=r[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?r[t][n]=D(!0,r[t][n],e):r[t][n]=e})):r[t]=D(!0,r[t],e):r[t]=e});return r}var k=f.perfNow;function U(e){return e===a.NotSet||e>a.NotSet&&e<=a.Pii_IPV4AddressLegacy||e===a.CustomerContent_GenericContent}function L(e){return 0<e.length}function R(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=k()}function p(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=p(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|p(e.value)))),t}var V,M={Version:t,FullVersionString:h,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:y,isWindowObjectAvailable:n,isValueAssigned:g,getTenantId:C,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:I,isLatency:E,sanitizeProperty:P,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:w,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:N,deleteCookie:A,getCookie:T,createGuid:F,extend:D,getTime:k,isValueKind:U,isArrayValid:L,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:R,addEventHandler:f.addEventHandler,getFieldValueType:p,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},x={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:O,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},_="version",B="properties",G=(V=f.AppInsightsCore,r.__extendsFn(H,V),H);function H(){var e=V.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",c(H,e,function(s,l){s.logger&&s.logger.queue||(s.logger=new f.DiagnosticLogger({loggingLevelConsole:f.LoggingSeverity.CRITICAL})),s.initialize=function(r,i,o,a){f.doPerf(s,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&f.arrForEach(r.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))})})}s.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&f.arrForEach(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))}),s.pluginVersionString=s.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),s.pollInternalLogs("InternalLog")}catch(t){var e=s.logger,n=f.dumpObj(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(f.LoggingSeverity.CRITICAL,v.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},s.track=function(t){f.doPerf(s,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=k(),E(n.latency)||(n.latency=m.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=h,(e=n.baseData=n.baseData||{})[B]||(e[B]={}),(e=e[B])[_]||(e[_]=""),""!==s.pluginVersionString&&(e[_]=s.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}z=f.BaseCore,r.__extendsFn(W,z);var z,K=W;function W(){var e=z.call(this)||this;return c(W,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return y?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,v.FailedToInitializeSDK,"Initialization Failed: "+f.dumpObj(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=h),a.track(e)}}),e}var u=f.isFunction,q=(d.resolve=function(r){return r instanceof d?r:r&&u(r.then)?new d(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new d(function(e){e(r)})},d.reject=function(t){return new d(function(e,n){n(t)})},d.all=function(s){if(s&&s.length)return new d(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&u(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},d.race=function(i){return new d(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&u(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},d);function d(e){var a=0,s=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?u(t)?t(s):s:u(r)?r(s):s)instanceof d?e.then(i,o):(2!==a||u(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=2,l())}if(c(d,this,function(n){n.then=function(t,r){return new d(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!u(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(s=e,a=1,l())},t)}catch(r){t(r)}}var J=0,X=[],b=[],Q=[];function Z(){return(new Date).getTime()}$.incomplete=function(){return X},$.waitingToStart=function(){return b};var Y=$;function $(e,n){var v=0,h=(e||"<unnamed>")+"."+J;function S(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function y(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}J++,c($,this,function(e){var g=null,p=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(r,e,s){var i,o,n,a=h+"."+p,e=(p++,e&&(a+="-("+e+")"),a+"{"+v+"}"),t=(v++,{evt:null,tm:Z(),id:e,isRunning:!1,isAborted:!1});return t.evt=g?(i=t,o=g,n=new q(function(n,t){var e=Z()-o.tm,r=o.id;S("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+b.length+"] waiting and ["+X.length+"] running"),i.abort=function(e){i.abort=null,m(b,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){m(b,a),d(i).then(n,t)},function(e){m(b,a),d(i).then(n,t)})}),b.push(i),n):d(t),(g=t).evt._schId=e,t.evt;function l(e){for(var n=Z(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",y(o),e.splice(i,1),r--):i++}}function u(e,n){var t,r=!1,i=m(X,e);i||(i=m(Q,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Z()-i.tm,n?r?y("Timed out event ["+e+"] finally complete -- "+t+" ms"):S("Promise ["+e+"] Complete -- "+t+" ms"):(Q.push(i),y("Event ["+e+"] Timed out and removed -- "+t+" ms"))):S("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(X),l(b),l(Q)}function c(n,t){return function(e){return u(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new q(function(n,t){S("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,u(a,!1),t(Error(e))};var e=o(a);e instanceof q?(s&&(r.to=setTimeout(function(){u(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof q?(S("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){S("Event ["+a+"] Resolving after "+(Z()-r.tm)+" ms"),n(e)},t)):(S("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function d(e){var n=Z();return e.wTm=n-e.tm,e.tm=n,e.isAborted?q.reject(Error("["+a+"] was aborted")):(X.push(e),f(e,r))}}})}ne.getFieldType=p;var ee=ne;function ne(e){var u=this,o={},a=[],s=[];function l(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!U(i.kind))return null;i.value=i.value.toString()}return function l(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;g(n)&&(t=c(0,0,n),(t=l(i,r,e,p(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(u,{path:o,name:a,type:e,prop:n,sanitizer:u})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return g(t)?{value:t}:null}e&&s.push(e),u.addSanitizer=function(e){e&&(a.push(e),o={})},u.addFieldSanitizer=function(e){e&&(s.push(e),o={})},u.handleField=function(e,n){e=l(e,n);return!!e&&e.canHandle},u.value=function(e,n,t,r){var i=l(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=p(t);if(8192==(8192&a)){var s=-8193&a;if(!g((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},u.property=function(e,n,t,r){var i=l(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!g(t.value))return null;var o=p(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.InternalAppInsightsCore=f.AppInsightsCore,e.InternalBaseCore=f.BaseCore,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e._InternalLogMessage=f._InternalLogMessage,e._InternalMessageId=f._InternalMessageId,e.addEventHandler=f.addEventHandler,e.addEventListeners=f.addEventListeners,e.addPageHideEventListener=f.addPageHideEventListener,e.addPageShowEventListener=f.addPageShowEventListener,e.addPageUnloadEventListener=f.addPageUnloadEventListener,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBeaconsSupported=f.isBeaconsSupported,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFetchSupported=f.isFetchSupported,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isXhrSupported=f.isXhrSupported,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.useXDomainRequest=f.useXDomainRequest,e.AppInsightsCore=G,e.BaseCore=K,e.CoreUtils=x,e.ESPromise=q,e.ESPromiseScheduler=Y,e.EventLatency=m,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=i,e.FullVersionString=h,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=M,e.ValueKind=a,e.ValueSanitizer=ee,e.Version=t,e._ExtendedInternalMessageId=v,e.createGuid=F,e.deleteCookie=A,e.disableCookies=O,e.extend=D,e.getCommonSchemaMetaData=w,e.getCookie=T,e.getCookieValue=j,e.getFieldValueType=p,e.getTenantId=C,e.getTime=k,e.isArrayValid=L,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=y,e.isLatency=E,e.isUint8ArrayAvailable=I,e.isValueAssigned=g,e.isValueKind=U,e.isWindowObjectAvailable=n,e.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,s,t),a.open(e,n,!i),t&&o(a,s,t),a},e.sanitizeProperty=P,e.setCookie=N,e.setProcessTelemetryTimings=R;G=e,K="__esModule",x={value:!0},Y=Object.defineProperty;if(Y)try{return void Y(G,K,x)}catch(te){}typeof x.value!==undefined&&(G[K]=x.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto);
var e=this,n=function(e,r,f,n){"use strict";function R(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=R(n),t={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},i={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},a={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},u=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),n="3.1.11",d="1DS-Web-JS-"+n,V="withCredentials",M=((c={})[0]=a.Unspecified,c[2]=a.Double,c[1]=a.String,c[3]=a.Bool,c[4098]=a.Double,c[4097]=a.String,c[4099]=a.Bool,c),s=null,l=!!f.getDocument(),c=!!f.getWindow();function g(e){return!(""===e||f.isNullOrUndefined(e))}function x(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function _(){return s=null===s?!f.isUndefined(Uint8Array)&&!function(){var e=f.getNavigator();if(!f.isUndefined(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!f.isReactNative():s}function p(e){return!!(e&&f.isNumber(e)&&i.Normal<=e&&e<=i.Immediate)}function B(e,n,t){if(!n&&!g(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!S(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!h(n.kind))return null;n.value=n.value.toString()}return n}function G(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=M[y(e)]||-1,-1!==r&&-1!==n?r|=n:n===a.Double&&(r=n))),r}function H(){f.safeGetCookieMgr(null).setEnabled(!1)}function z(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function K(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function W(e){return f.areCookiesSupported(null)?q(f.safeGetCookieMgr(null),e):""}function q(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function J(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function m(e,n,t,r,i){var o={},a=!1,s=0,l=arguments.length,u=Object[f.strPrototype],d=arguments;for("[object Boolean]"===u.toString.call(d[0])&&(a=d[0],s++);s<l;s++)f.objForEachKey(d[s],function(t,e){a&&e&&f.isObject(e)?f.isArray(e)?(o[t]=o[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?o[t][n]=m(!0,o[t][n],e):o[t][n]=e})):o[t]=m(!0,o[t],e):o[t]=e});return o}var v=f.perfNow;function h(e){return e===t.NotSet||e>t.NotSet&&e<=t.Pii_IPV4AddressLegacy||e===t.CustomerContent_GenericContent}function S(e){return 0<e.length}function X(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=v()}function y(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=y(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|y(e.value)))),t}var b,Q={Version:n,FullVersionString:d,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:l,isWindowObjectAvailable:c,isValueAssigned:g,getTenantId:x,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:_,isLatency:p,sanitizeProperty:B,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:G,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:z,deleteCookie:K,getCookie:W,createGuid:J,extend:m,getTime:v,isValueKind:h,isArrayValid:S,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:X,addEventHandler:f.addEventHandler,getFieldValueType:y,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},C={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:H,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},I="version",E="properties",P=(b=f.AppInsightsCore,r.__extendsFn(w,b),w);function w(){var e=b.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",o(w,e,function(s,l){s.logger&&s.logger.queue||(s.logger=new f.DiagnosticLogger({loggingLevelConsole:f.LoggingSeverity.CRITICAL})),s.initialize=function(r,i,o,a){f.doPerf(s,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&f.arrForEach(r.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))})})}s.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&f.arrForEach(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))}),s.pluginVersionString=s.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),s.pollInternalLogs("InternalLog")}catch(t){var e=s.logger,n=f.dumpObj(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(f.LoggingSeverity.CRITICAL,u.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},s.track=function(t){f.doPerf(s,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=v(),p(n.latency)||(n.latency=i.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d,(e=n.baseData=n.baseData||{})[E]||(e[E]={}),(e=e[E])[I]||(e[I]=""),""!==s.pluginVersionString&&(e[I]=s.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}O=f.BaseCore,r.__extendsFn(Z,O);var O,N=Z;function Z(){var e=O.call(this)||this;return o(Z,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return l?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,u.FailedToInitializeSDK,"Initialization Failed: "+f.dumpObj(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=d),a.track(e)}}),e}var A=f.isFunction,T=(j.resolve=function(r){return r instanceof j?r:r&&A(r.then)?new j(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new j(function(e){e(r)})},j.reject=function(t){return new j(function(e,n){n(t)})},j.all=function(s){if(s&&s.length)return new j(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&A(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},j.race=function(i){return new j(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&A(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},j);function j(e){var a=0,s=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?A(t)?t(s):s:A(r)?r(s):s)instanceof j?e.then(i,o):(2!==a||A(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=2,l())}if(o(j,this,function(n){n.then=function(t,r){return new j(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!A(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(s=e,a=1,l())},t)}catch(r){t(r)}}var Y=0,F=[],D=[],$=[];function k(){return(new Date).getTime()}L.incomplete=function(){return F},L.waitingToStart=function(){return D};var U=L;function L(e,n){var v=0,h=(e||"<unnamed>")+"."+Y;function S(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function y(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}Y++,o(L,this,function(e){var g=null,p=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,s){var i,o,n,a=h+"."+p,e=(p++,e&&(a+="-("+e+")"),a+"{"+v+"}"),r=(v++,{evt:null,tm:k(),id:e,isRunning:!1,isAborted:!1});return r.evt=g?(i=r,o=g,n=new T(function(n,t){var e=k()-o.tm,r=o.id;S("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+D.length+"] waiting and ["+F.length+"] running"),i.abort=function(e){i.abort=null,m(D,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){m(D,a),f(i).then(n,t)},function(e){m(D,a),f(i).then(n,t)})}),D.push(i),n):f(r),(g=r).evt._schId=e,r.evt;function l(e){for(var n=k(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",y(o),e.splice(i,1),r--):i++}}function u(e,n){var t,r=!1,i=m(F,e);i||(i=m($,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=k()-i.tm,n?r?y("Timed out event ["+e+"] finally complete -- "+t+" ms"):S("Promise ["+e+"] Complete -- "+t+" ms"):($.push(i),y("Event ["+e+"] Timed out and removed -- "+t+" ms"))):S("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(F),l(D),l($)}function d(n,t){return function(e){return u(n,!0),t&&t(e),e}}function c(r,o){var a=r.id;return new T(function(n,t){S("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,u(a,!1),t(Error(e))};var e=o(a);e instanceof T?(s&&(r.to=setTimeout(function(){u(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof T?(S("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):d(n,t)(e)},d(n,r))}(a,e,function(e){S("Event ["+a+"] Resolving after "+(k()-r.tm)+" ms"),n(e)},t)):(S("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function f(e){var n=k();return e.wTm=n-e.tm,e.tm=n,e.isAborted?T.reject(Error("["+a+"] was aborted")):(F.push(e),c(e,t))}}})}ne.getFieldType=y;var ee=ne;function ne(e){var u=this,o={},a=[],s=[];function l(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!h(i.kind))return null;i.value=i.value.toString()}return function l(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;g(n)&&(t=c(0,0,n),(t=l(i,r,e,y(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(u,{path:o,name:a,type:e,prop:n,sanitizer:u})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return g(t)?{value:t}:null}e&&s.push(e),u.addSanitizer=function(e){e&&(a.push(e),o={})},u.addFieldSanitizer=function(e){e&&(s.push(e),o={})},u.handleField=function(e,n){e=l(e,n);return!!e&&e.canHandle},u.value=function(e,n,t,r){var i=l(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=y(t);if(8192==(8192&a)){var s=-8193&a;if(!g((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},u.property=function(e,n,t,r){var i=l(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!g(t.value))return null;var o=y(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.InternalAppInsightsCore=f.AppInsightsCore,e.InternalBaseCore=f.BaseCore,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e._InternalLogMessage=f._InternalLogMessage,e._InternalMessageId=f._InternalMessageId,e.addEventHandler=f.addEventHandler,e.addEventListeners=f.addEventListeners,e.addPageHideEventListener=f.addPageHideEventListener,e.addPageShowEventListener=f.addPageShowEventListener,e.addPageUnloadEventListener=f.addPageUnloadEventListener,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBeaconsSupported=f.isBeaconsSupported,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFetchSupported=f.isFetchSupported,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isXhrSupported=f.isXhrSupported,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.useXDomainRequest=f.useXDomainRequest,e.AppInsightsCore=P,e.BaseCore=N,e.CoreUtils=C,e.ESPromise=T,e.ESPromiseScheduler=U,e.EventLatency=i,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=a,e.FullVersionString=d,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=Q,e.ValueKind=t,e.ValueSanitizer=ee,e.Version=n,e._ExtendedInternalMessageId=u,e.createGuid=J,e.deleteCookie=K,e.disableCookies=H,e.extend=m,e.getCommonSchemaMetaData=G,e.getCookie=W,e.getCookieValue=q,e.getFieldValueType=y,e.getTenantId=x,e.getTime=v,e.isArrayValid=S,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=l,e.isLatency=p,e.isUint8ArrayAvailable=_,e.isValueAssigned=g,e.isValueKind=h,e.isWindowObjectAvailable=c,e.openXhr=function(e,n,t,r,i,o){function a(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&a(s,V,t),s.open(e,n,!i),t&&a(s,V,t),!i&&o&&a(s,"timeout",o),s},e.sanitizeProperty=B,e.setCookie=z,e.setProcessTelemetryTimings=X;P=e,N="__esModule",C={value:!0},U=Object.defineProperty;if(U)try{return void U(P,N,C)}catch(te){}typeof C.value!==undefined&&(P[N]=C.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto);
//# sourceMappingURL=ms.core.min.js.map
{
"name": "@microsoft/1ds-core-js",
"version": "3.1.10",
"version": "3.1.11",
"description": "Microsoft Application Insights JavaScript SDK - 1ds-core-js extensions",

@@ -36,3 +36,3 @@ "author": "Microsoft Application Insights Team",

"@microsoft/applicationinsights-shims": "^2.0.1",
"@microsoft/applicationinsights-core-js": "2.7.3",
"@microsoft/applicationinsights-core-js": "2.7.4",
"@microsoft/dynamicproto-js": "^1.1.4"

@@ -39,0 +39,0 @@ },

@@ -19,3 +19,3 @@ ---

Package available [here](https://msasg.visualstudio.com/Shared%20Data/_packaging?_a=package&feed=1DS-SDK&package=%40microsoft%2F1ds-core-js&protocolType=Npm).
Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-core-js/3.1.11/versions).

@@ -22,0 +22,0 @@ ## Basic Usage

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

*/
import dynamicProto from "@microsoft/dynamicproto-js";
import { BaseCore as InternalCore, IPlugin, LoggingSeverity, ITelemetryItem, IDiagnosticLogger, INotificationManager, dumpObj } from "@microsoft/applicationinsights-core-js";

@@ -14,3 +15,2 @@ import { IExtendedConfiguration, IExtendedTelemetryItem, IExtendedAppInsightsCore } from "./DataModels";

import { FullVersionString, isDocumentObjectAvailable } from "./Utils";
import dynamicProto from "@microsoft/dynamicproto-js";

@@ -17,0 +17,0 @@ export default class BaseCore extends InternalCore implements IExtendedAppInsightsCore {

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

const strWithCredentials: string = "withCredentials";
const strTimeout: string = "timeout";

@@ -521,7 +522,8 @@ // If value is array just get the type for the first element

* @param isSync - Optional flag indicating if the instance should be a synchronous request (defaults to false)
* @param timeout - Optional value identifying the timeout value that should be assigned to the XHR request
* @returns A new opened XHR request
*/
export function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled: boolean = false, isSync: boolean = false) {
export function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled: boolean = false, isSync: boolean = false, timeout?: number) {
function _wrapSetXhrProp(xhr: XMLHttpRequest, prop: string, value: boolean) {
function _wrapSetXhrProp<T>(xhr: XMLHttpRequest, prop: string, value: T) {
try {

@@ -557,3 +559,10 @@ xhr[prop] = value;

// Only set the timeout for asynchronous requests as
// "Timeout shouldn't be used for synchronous XMLHttpRequests requests used in a document environment or it will throw an InvalidAccessError exception.""
// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout
if (!isSync && timeout) {
_wrapSetXhrProp(xhr, strTimeout, timeout);
}
return xhr;
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc