Socket
Socket
Sign inDemoInstall

@microsoft/1ds-core-js

Package Overview
Dependencies
Maintainers
4
Versions
186
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.2.3 to 3.2.4

bundle/ms.core-3.2.4.gbl.js

4

bundle/ms.core.gbl.min.js
/*!
* 1DS JS SDK Core, 3.2.3
* 1DS JS SDK Core, 3.2.4
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
!function(n){"use strict";var w="function",a="object",e="undefined",f="prototype",P="hasOwnProperty",t=Object,E=t[f],N=t.assign,A=t.create,r=t.defineProperty,z=E[P],B=null;function K(n){return void 0===n&&(n=!0),B&&n||(typeof globalThis!==e&&globalThis&&(B=globalThis),typeof self!==e&&self&&(B=self),typeof window!==e&&window&&(B=window),typeof global!==e&&global&&(B=global)),B}function H(n){throw new TypeError(n)}function q(n){if(A)return A(n);if(null==n)return{};var e=typeof n;function t(){}return e!==a&&e!==w&&H("Object prototype may only be an Object:"+n),t[f]=n,new t}(K()||{}).Symbol,(K()||{}).Reflect;var W=N||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])E[P].call(e,i)&&(n[i]=e[i]);return n},G=function(n,e){return(G=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e[P](t)&&(n[t]=e[t])})(n,e)};function J(n,e){function t(){this.constructor=n}typeof e!==w&&null!==e&&H("Class extends value "+e+" is not a constructor or null"),G(n,e),n[f]=null===e?q(e):(t[f]=e[f],new t)}function X(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n}var g="",Q="processTelemetry",$="priority",Z="setNextPlugin",Y="isInitialized",F="teardown",d="core",nn="update",en="disabled",tn="_doTeardown",rn="processNext",on="resume",an="pause",un="NotificationListener",cn="add"+un,ln="remove"+un,sn="eventsSent",fn="eventsDiscarded",dn="eventsSendRequest",gn="perfEvent",vn="toISOString",pn="endsWith",hn="startsWith",mn="indexOf",yn="reduce",Cn="trim",un="toString",xn="constructor",Sn=r,bn=t.freeze,Tn=t.seal,In=t.keys,wn=String[f],Pn=wn[Cn],En=wn[pn],Nn=wn[hn],An=Date[f][vn],wn=Array.isArray,Fn=E[un],kn=z[un],_n=kn.call(t),Mn=/-([a-z])/g,On=/([^\w\d_$])/g,Ln=/^(\d+[\w\d_$])/,Dn=Object.getPrototypeOf;function Un(n,e){return typeof n===e}function v(n){return n===undefined||typeof n===e}function k(n){return null===n||v(n)}function jn(n){return!k(n)}function Rn(n,e){return!(!n||!z.call(n,e))}function p(n){return!(!n||typeof n!==a)}function _(n){return!(!n||typeof n!==w)}function Vn(n){var e=n;return n&&y(n)?(e=(e=n.replace(Mn,function(n,e){return e.toUpperCase()})).replace(On,"_")).replace(Ln,function(n,e){return"_"+e}):e}function h(n,e){if(n)for(var t in n)z.call(n,t)&&e.call(n,t,n[t])}function zn(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(En)return n[pn](e);var r=n,i=e,n=!1,e=i?i.length:0,o=r?r.length:0;if(e&&o&&e<=o&&!(n=r===i)){for(var a=o-1,u=e-1;0<=u;u--){if(r[a]!=i[u])return!1;a--}n=!0}return n}return t}function i(n,e){return!(!n||!e||!~n.indexOf(e))}function Bn(n){return!(!n||"[object Date]"!==Fn.call(n))}var m=wn||function(n){return!(!n||"[object Array]"!==Fn.call(n))};function Kn(n){return!(!n||"[object Error]"!==Fn.call(n))}function y(n){return"string"==typeof n}function Hn(n){return"number"==typeof n}function qn(n){return"boolean"==typeof n}function Wn(n){return n&&"object"==typeof n&&(!(n=(Dn||function(n){if(n){if(Dn)return Dn(n);n=n.__proto__||n[f]||n[xn];if(n)return n}return null})(n))||typeof(n=n[xn]&&z.call(n,xn)?n[xn]:n)===w&&kn.call(n)===_n)}function Gn(n){if(n){if(An)return n[vn]();var e;return n&&n.getUTCFullYear?(e=function(n){n=""+n;return 1===n.length?"0"+n:n},n.getUTCFullYear()+"-"+e(1+n.getUTCMonth())+"-"+e(n.getUTCDate())+"T"+e(n.getUTCHours())+":"+e(n.getUTCMinutes())+":"+e(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}function M(n,e,t){var r=n.length;try{for(var i=0;i<r&&!(i in n&&-1===e.call(t||n,n[i],i,n));i++);}catch(o){}}function O(n,e,t){if(n){if(n[mn])return n[mn](e,t);var r=n.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in n&&n[i]===e)return i}catch(o){}}return-1}function Jn(n,e,t){if(n){if(n.map)return n.map(e,t);var r=n.length,i=t||n,o=Array(r);try{for(var a=0;a<r;a++)a in n&&(o[a]=e.call(i,n[a],n))}catch(u){}}return o}function Xn(n,e,t){var r;if(n){if(n[yn])return n[yn](e,t);var i=n.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in n);)o++;r=n[o++]}for(;o<i;)o in n&&(r=e(r,n[o],o,n)),o++}return r}function C(n){return n&&(Pn&&n[Cn]?n[Cn]():n.replace?n.replace(/^\s+|\s+$/g,""):n)}var Qn=!{toString:null}.propertyIsEnumerable("toString"),$n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Zn(n){var e=typeof n;if(e===w||e===a&&null!==n||H("objKeys called on non-object"),!Qn&&In)return In(n);var t,r=[];for(t in n)n&&z.call(n,t)&&r.push(t);if(Qn)for(var i=$n.length,o=0;o<i;o++)n&&z.call(n,$n[o])&&r.push($n[o]);return r}function Yn(n,e,t,r){if(Sn)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Sn(n,e,i),!0}catch(o){}return!1}function ne(n){return n}var L=bn||ne,un=Tn||ne;function ee(){var n=Date;return n.now?n.now():(new n).getTime()}function te(n){return Kn(n)?n.name:g}function D(n,e,t,r,i){var o=t;return!n||(o=n[e])===t||i&&!i(o)||r&&!r(t)||(n[e]=o=t),o}function re(n,e,t){var r;return n?!(r=n[e])&&k(r)&&(r=v(t)?{}:t,n[e]=r):r=v(t)?{}:t,r}function ie(n){return!n}function oe(n){return!!n}function U(n){throw Error(n)}function ae(n,e){var t=null,r=null;return _(n)?t=n:r=n,function(){var n=arguments;if(r=t?t():r)return r[e].apply(r,n)}}function ue(n,e,t,r,i){n&&e&&t&&(!1===i&&!v(n[e])||(n[e]=ae(t,r)))}function ce(e,t,n,r){return e&&t&&p(e)&&m(n)&&M(n,function(n){y(n)&&ue(e,n,t,n,r)}),e}function le(){var n=arguments,e=n[0]||{},t=n.length,r=!1,i=1;for(0<t&&qn(e)&&(r=e,e=n[i]||{},i++),p(e)||(e={});i<t;i++){var o,a,u,c,l=n[i],s=m(l),f=p(l);for(o in l)(s&&o in l||f&&z.call(l,o))&&(a=l[o],u=void 0,r&&a&&((u=m(a))||Wn(a))&&(c=e[o],u?m(c)||(c=[]):Wn(c)||(c={}),a=le(r,c,a)),a!==undefined&&(e[o]=a))}return e}function o(n){var t={};return h(n,function(n,e){t[n]=e,t[e]=n}),n=t,bn&&h(n,function(n,e){(m(e)||p(e))&&bn(e)}),L(n)}var wn=o({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),se="constructor",x="prototype",fe="function",de="_dynInstFuncs",ge="_isDynProxy",ve="_dynClass",pe="_dynInstChk",he=pe,me="_dfOpts",ye="_unknown_",Ce="__proto__",xe="_dyn"+Ce,Se="_dynInstProto",be="useBaseInst",Te="setInstFuncs",Ie=Object,we=Ie.getPrototypeOf,Pe=Ie.getOwnPropertyNames,Ee=0;function S(n,e){return n&&Ie[x].hasOwnProperty.call(n,e)}function Ne(n){return n&&(n===Ie[x]||n===Array[x])}function Ae(n){return Ne(n)||n===Function[x]}function Fe(n){if(n){if(we)return we(n);var e=n[Ce]||n[x]||(n[se]?n[se][x]:null),t=n[xe]||e;S(n,xe)||(delete n[Se],t=n[xe]=n[Se]||n[xe],n[Se]=e)}return t}function ke(n,e){var t=[];if(Pe)t=Pe(n);else for(var r in n)"string"==typeof r&&S(n,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)e(t[i])}function _e(n,e,t){return e!==se&&typeof n[e]===fe&&(t||S(n,e))}function Me(n){throw new TypeError("DynamicProto: "+n)}function Oe(n,e){for(var t=n.length-1;0<=t;t--)if(n[t]===e)return 1}function Le(n,e){return S(n,x)?n.name||e||ye:((n||{})[se]||{}).name||e||ye}function j(n,r,e,t){S(n,x)||Me("theClass is an invalid class definition.");var i,o,a,u,c,l,s=n[x],f=(function(n){if(!we)return 1;for(var e=[],t=Fe(r);t&&!Ae(t)&&!Oe(e,t);){if(t===n)return 1;e.push(t),t=Fe(t)}}(s)||Me("["+Le(n)+"] is not in class hierarchy of ["+Le(r)+"]"),null),n=(S(s,ve)?f=s[ve]:(f="_dynCls$"+Le(n,"_")+"$"+Ee,Ee++,s[ve]=f),j[me]),d=!!n[be],g=(d&&t&&t[be]!==undefined&&(d=!!t[be]),o={},ke(i=r,function(n){!o[n]&&_e(i,n,!1)&&(o[n]=i[n])}),o),d=(e(r,function(n,e,t,o){function r(n,e,t){var r,i=e[t];return i[ge]&&o&&!1!==(r=n[de]||{})[he]&&(i=(r[e[ve]]||{})[t]||i),function(){return i.apply(n,arguments)}}for(var i={},a=(ke(t,function(n){i[n]=r(e,t,n)}),Fe(n)),u=[];a&&!Ae(a)&&!Oe(u,a);)ke(a,function(n){!i[n]&&_e(a,n,!we)&&(i[n]=r(e,a,n))}),u.push(a),a=Fe(a);return i}(s,r,g,d)),!!we&&!!n[Te]);a=s,e=f,u=r,c=g,n=!1!==(d=d&&t?!!t[Te]:d),Ne(a)||(s=u[de]=u[de]||{},l=s[e]=s[e]||{},!1!==s[he]&&(s[he]=!!n),ke(u,function(n){var t,r,i;_e(u,n,!1)&&u[n]!==c[n]&&(l[n]=u[n],delete u[n],S(a,n)&&(!a[n]||a[n][ge])||(a[n]=(t=a,r=n,(i=function(){var n,e;return(function(n,e,t,r){var i=null;if(n&&S(t,ve)){var o=n[de]||{};if((i=(o[t[ve]]||{})[e])||Me("Missing ["+e+"] "+fe),!i[pe]&&!1!==o[he]){for(var a=!S(n,e),u=Fe(n),c=[];a&&u&&!Ae(u)&&!Oe(c,u);){var l=u[e];if(l){a=l===r;break}c.push(u),u=Fe(u)}try{a&&(n[e]=i),i[pe]=1}catch(s){o[he]=!1}}}return i}(this,r,t,i)||(typeof(e=(e=t[n=r])===i?Fe(t)[n]:e)!==fe&&Me("["+n+"] is not a "+fe),e)).apply(this,arguments)})[ge]=1,i)))}))}var De="window",Ue="navigator",je="location",Re="performance",Ve="JSON",ze="crypto",Be="msCrypto",Ke="msie",He="trident/",qe="XMLHttpRequest",We=null,Ge=null,Je=!(j[me]={setInstFuncs:!0,useBaseInst:!0}),Xe=null,Qe=null;function $e(n,e){var t,r=!1;if(n){try{(r=e in n)||(t=n[f])&&(r=e in t)}catch(i){}if(!r)try{r=!v((new n)[e])}catch(i){}}return r}function u(n){var e=K();return e&&e[n]?e[n]:n===De&&Ze()?window:null}function Ze(){return!(typeof window!==a||!window)}function Ye(){return Ze()?window:u(De)}function nt(){return!(typeof document!==a||!document)}function c(){return nt()?document:u("document")}function et(){return!(typeof navigator!==a||!navigator)}function tt(){return et()?navigator:u(Ue)}function rt(){return!(typeof history!==a||!history)}function it(n){if(n&&Je){n=u("__mockLocation");if(n)return n}return typeof location===a&&location?location:u(je)}function ot(){return typeof console!==e?console:u("console")}function at(){return u(Re)}function ut(){return!!(typeof JSON===a&&JSON||null!==u(Ve))}function ct(){return ut()?JSON||u(Ve):null}function lt(){return u(ze)}function st(){return u(Be)}function ft(){var n=tt();return!(!n||!n.product)&&"ReactNative"===n.product}function dt(){var n=tt();return!n||n.userAgent===Ge&&null!==We||(n=((Ge=n.userAgent)||g).toLowerCase(),We=i(n,Ke)||i(n,He)),We}function b(n){var e=Object[f].toString.call(n),t=g;return"[object Error]"===e?t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'":ut()&&(t=ct().stringify(n)),e+t}function gt(){return Qe=null===Qe?et()&&!!tt().sendBeacon:Qe}function vt(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==e)&&pt()?Xe&&!$e(u(qe),"withCredentials"):Xe}function pt(){var n=!1;try{n=!!u(qe)}catch(e){}return n}function ht(n,e){if(n)for(var t=0;t<n.length;t++){var r=n[t];if(r.name&&r.name===e)return r}return{}}var mt,yt=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],Ct=null;function xt(n){var e=Ct;return(e=e||!0===n.disableDbgExt?e:Ct||(n=u("Microsoft"),Ct=n?n.ApplicationInsights:Ct))?e.ChromeDbgExt:null}function St(n){return n?'"'+n.replace(/\"/g,g)+'"':g}function bt(n,e){var t,r=ot();r&&(t="log",_(r[t=r[n]?n:t])&&r[t](e))}It.dataType="MessageData";var Tt=It;function It(n,e,t,r){void 0===t&&(t=!1),this.messageId=n,this.message=(t?"AI: ":"AI (Internal): ")+n;t=g,ut()&&(t=ct().stringify(r)),n=(e?" message:"+St(e):g)+(r?" props:"+St(t):g);this.message+=n}function wt(n,e){return(n||{}).logger||new Pt(e)}var Pt=function Bo(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};j(Bo,this,function(o){function n(n,e){n=r[n];return k(n)?e:n}function a(n,e){var t=xt(r);t&&t.diagLog&&t.diagLog(n,e)}k(r)&&(r={}),o.consoleLoggingLevel=function(){return n("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return n("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return n("maxMessageLimit",25)},o.enableDebugExceptions=function(){return n("enableDebugExceptions",!1)},o.throwInternal=function(n,e,t,r,i){e=new Tt(e,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw b(e);t=1===n?"errorToConsole":"warnToConsole";v(e.message)?a("throw"+(1===n?"Critical":"Warning"),e):(r=o.consoleLoggingLevel(),i?(i=+e.messageId,!u[i]&&n<=r&&(o[t](e.message),u[i]=!0)):n<=r&&o[t](e.message),o.logInternalMessage(n,e))},o.warnToConsole=function(n){bt("warn",n),a("warning",n)},o.errorToConsole=function(n){bt("error",n),a("error",n)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(n,e){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+e.messageId,u[t]?r=!1:u[t]=!0,r&&(n<=o.telemetryLoggingLevel()&&(o.queue.push(e),i++,a(1===n?"error":"warn",e)),i===o.maxInternalMessageLimit()&&(r=new Tt(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),1===n?o.errorToConsole(t):o.warnToConsole(t))))}})};function R(n,e,t,r,i,o){void 0===o&&(o=!1),(n||new Pt).throwInternal(e,t,r,i,o)}Nt.ParentContextKey="parent",Nt.ChildrenContextKey="childEvts";var Et=Nt;function Nt(n,i,e){var t,o=this,a=!1;o.start=ee(),o.name=n,o.isAsync=e,o.isChildEvt=function(){return!1},_(i)&&(a=Yn(o,"payload",function(){return!t&&_(i)&&(t=i(),i=null),t})),o.getCtx=function(n){return n?(n===Nt.ParentContextKey||n===Nt.ChildrenContextKey?o:o.ctx||{})[n]:null},o.setCtx=function(n,e){n&&(n===Nt.ParentContextKey?(o[n]||(o.isChildEvt=function(){return!0}),o[n]=e):n===Nt.ChildrenContextKey?o[n]=e:(o.ctx=o.ctx||{})[n]=e)},o.complete=function(){var n=0,e=o.getCtx(Nt.ChildrenContextKey);if(m(e))for(var t=0;t<e.length;t++){var r=e[t];r&&(n+=r.time)}o.time=ee()-o.start,o.exTime=o.time-n,o.complete=function(){},!a&&_(i)&&(o.payload=i())}}var At=function Ko(e){this.ctx={},j(Ko,this,function(t){t.create=function(n,e,t){return new Et(n,e,t)},t.fire=function(n){n&&(n.complete(),e&&_(e.perfEvent)&&e.perfEvent(n))},t.setCtx=function(n,e){n&&((t.ctx=t.ctx||{})[n]=e)},t.getCtx=function(n){return(t.ctx||{})[n]}})},Ft="CoreUtils.doPerf";function kt(n,e,t,r,i){if(n)if(n=_(n.getPerfMgr)?n.getPerfMgr():n){var o,a=void 0,u=n.getCtx(Ft);try{if(a=n.create(e(),r,i))return u&&a.setCtx&&(a.setCtx(Et.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(Et.ChildrenContextKey))||(o=[],u.setCtx(Et.ChildrenContextKey,o)),o.push(a))),n.setCtx(Ft,a),t(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&n.fire(a),n.setCtx(Ft,u)}}return t()}var _t=4294967296,Mt=4294967295,Ot=!1,Lt=123456789,Dt=987654321;function Ut(n){n<0&&(n>>>=0),Lt=123456789+n&Mt,Dt=987654321-n&Mt,Ot=!0}function jt(){try{var n=2147483647&ee();Ut((Math.random()*_t^n)+n)}catch(e){}}function Rt(n){return 0<n?Math.floor(Vt()/Mt*(n+1))>>>0:0}function Vt(n){var e=0,t=lt()||st();return 0===(e=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Mt:e)&&dt()&&(Ot||jt(),e=zt()&Mt),0===e&&(e=Math.floor(_t*Math.random()|0)),n||(e>>>=0),e}function zt(n){var e=((Dt=36969*(65535&Dt)+(Dt>>16)&Mt)<<16)+(65535&(Lt=18e3*(65535&Lt)+(Lt>>16)&Mt))>>>0&Mt|0;return n||(e>>>=0),e}function Bt(n){void 0===n&&(n=22);for(var e=Vt()>>>0,t=0,r=g;r.length<n;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&e]||"",e>>>=6,5==++t&&(e=(Vt()<<2&4294967295|3&e)>>>0,t=0);return r}var Kt=r,Ht="."+Bt(6),qt=0;function Wt(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType}function Gt(n,e){return Vn(n+qt+++((e=void 0!==e&&e)?".2.8.4":"")+Ht)}function Jt(n){var o={id:Gt("_aiData-"+(n||"")+".2.8.4"),accept:Wt,get:function(n,e,t,r){var i=n[o.id];return i?i[Vn(e)]:(r&&((i=function(n,e){var t=e[n.id];if(!t){t={};try{Wt(e)&&!function(n,e,t){if(Kt)try{return Kt(n,e,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(e,n.id,t)&&(e[n.id]=t)}catch(r){}}return t}(o,n))[Vn(e)]=t),t)},kill:function(n,e){if(n&&n[e])try{delete n[e]}catch(t){}}};return o}var Xt="toGMTString",Qt="toUTCString",$t="cookie",Zt="expires",Yt="enabled",nr="isCookieUseDisabled",er="disableCookiesUsage",tr="_ckMgr",rr=null,ir=null,or=null,ar=c(),ur={},cr={};function lr(n){return!n||n.isEnabled()}function sr(n,e){var t,r;return n?t=n.getCookieMgr():e&&(t=e.cookieCfg[tr]||fr(e)),t||(n=(n||{}).logger,(r=fr[tr]||cr[tr])||(r=fr[tr]=fr(e,n),cr[tr]=r),t=r),t}function fr(n,i){D(t=(n=n||cr).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,jn,k),D(t,"path",n.cookiePath||"/",null,k),k(t[Yt])&&(e=void 0,v(n[nr])||(e=!n[nr]),v(n[er])||(e=!n[er]),t[Yt]=e);var e,t,l=t,s=l.path||"/",f=l.domain,r=!1!==l[Yt],d={isEnabled:function(){var n=r&&dr(i),e=cr[tr];return n&&e&&d!==e?lr(e):n},setEnabled:function(n){r=!1!==n},set:function(n,e,t,r,i){var o,a,u,c=!1;return lr(d)&&(o={},-1!=(u=(a=C(e||g)).indexOf(";"))&&(a=C(e.substring(0,u)),o=gr(e.substring(1+u))),D(o,"domain",r||f,oe,v),k(t)||(u=dt(),v(o[Zt])&&0<(e=ee()+1e3*t)&&((r=new Date).setTime(e),D(o,Zt,vr(r,u?Xt:Qt)||vr(r,u?Xt:Qt)||g,oe)),u||D(o,"max-age",g+t,null,v)),(e=it())&&"https:"===e.protocol&&(D(o,"secure",null,null,v),(ir=null===ir?!mr((tt()||{}).userAgent):ir)&&D(o,"SameSite","None",null,v)),D(o,"path",i||s,null,v),(l.setCookie||hr)(n,pr(a,o)),c=!0),c},get:function(n){var e=g;return lr(d)?(l.getCookie||function(n){var e,t=g;return ar&&(e=ar[$t]||g,or!==e&&(ur=gr(e),or=e),t=C(ur[n]||g)),t})(n):e},del:function(n,e){return!!lr(d)&&d.purge(n,e)},purge:function(n,e){var t,r=!1;return dr(i)&&((t={}).path=e||"/",t[Zt]="Thu, 01 Jan 1970 00:00:01 GMT",e=t,dt()||(e["max-age"]="0"),(l.delCookie||hr)(n,pr(g,e)),r=!0),r}};return d[tr]=d}function dr(n){if(null===rr){rr=!1;try{rr=(ar||{})[$t]!==undefined}catch(e){R(n,2,68,"Cannot access document.cookie - "+te(e),{exception:b(e)})}}return rr}function gr(n){var t={};return n&&n.length&&M(C(n).split(";"),function(n){var e;(n=C(n||g))&&(-1==(e=n.indexOf("="))?t[n]=null:t[C(n.substring(0,e))]=C(n.substring(1+e)))}),t}function vr(n,e){return _(n[e])?n[e]():null}function pr(n,e){var t=n||g;return h(e,function(n,e){t+="; "+n+(k(e)?g:"="+e)}),t}function hr(n,e){ar&&(ar[$t]=n+"="+e)}function mr(n){return!(!y(n)||!i(n,"CPU iPhone OS 12")&&!i(n,"iPad; CPU OS 12")&&!(i(n,"Macintosh; Intel Mac OS X 10_14")&&i(n,"Version/")&&i(n,"Safari"))&&(!i(n,"Macintosh; Intel Mac OS X 10_14")||!zn(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!i(n,"Chrome/5")&&!i(n,"Chrome/6")&&(!i(n,"UnrealEngine")||i(n,"Chrome"))&&!i(n,"UCBrowser/12")&&!i(n,"UCBrowser/11"))}var yr="on",Cr="attachEvent",xr="addEventListener",Sr="detachEvent",br="removeEventListener",Tr="events",Ir="visibilitychange",wr="pagehide",Pr="pageshow",Er="beforeunload",Nr=Gt("aiEvtPageHide"),Ar=Gt("aiEvtPageShow"),Fr=/\.[\.]+/g,kr=/[\.]+$/,_r=1,Mr=Jt("events"),Or=/^([^.]*)(?:\.(.+)|)/;function Lr(n){return n&&n.replace?n.replace(/^\s*\.*|\.*\s*$/g,""):n}function Dr(n,e){e&&(t="",m(e)?(t="",M(e,function(n){(n=Lr(n))&&("."!==n[0]&&(n="."+n),t+=n)})):t=Lr(e),t&&(n=(n||"")+(t="."!==t[0]?"."+t:t)));var t,e=Or.exec(n||"")||[];return{type:e[1],ns:(e[2]||"").replace(Fr,".").replace(kr,"").split(".").sort().join(".")}}function Ur(n,e,t){n=Mr.get(n,Tr,{},t=void 0===t||t);return n[e]||(n[e]=[])}function jr(n,e,t,r){n&&e&&e.type&&(n[br]?n[br](e.type,t,r):n[Sr]&&n[Sr](yr+e.type,t))}function Rr(n,e,t,r){for(var i=e.length;i--;){var o=e[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(jr(n,o.evtName,o.handler,o.capture),e.splice(i,1))}}function Vr(n,e){return e?Dr("xx",m(e)?[n].concat(e):[n,e]).ns.split("."):n}function zr(n,e,t,r,i){void 0===i&&(i=!1);var o,a=!1;if(n)try{var u,c=Dr(e,r),l=c,s=t,f=i,d=!1;(o=n)&&l&&l.type&&s&&(o[xr]?(o[xr](l.type,s,f),d=!0):o[Cr]&&(o[Cr](yr+l.type,s),d=!0)),(a=d)&&Mr.accept(n)&&(u={guid:_r++,evtName:c,handler:t,capture:i},Ur(n,c.type).push(u))}catch(g){}return a}function Br(n,e,t,r,i){if(void 0===i&&(i=!1),n)try{var o=Dr(e,r),a=!1,u=n,c=function(n){return!((!o.ns||t)&&n.handler!==t)&&(a=!0)};(l=o).type?Rr(u,Ur(u,l.type),l,c):(h(s=Mr.get(u,Tr,{}),function(n,e){Rr(u,e,l,c)}),0===Zn(s).length&&Mr.kill(u,Tr)),a||jr(n,o,t,i)}catch(f){}var l,s}function Kr(n,e,t,r){return zr(n,e,t,null,r=void 0!==r&&r)}function Hr(n,e,t,r){Br(n,e,t,null,r=void 0!==r&&r)}function qr(n,e,t){var r=!1,i=Ye(),i=(i&&(r=zr(i,n,e,t),r=zr(i.body,n,e,t)||r),c());return i&&zr(i,n,e,t)||r}function Wr(n,e,t){var r=Ye(),r=(r&&(Br(r,n,e,t),Br(r.body,n,e,t)),c());r&&Br(r,n,e,t)}function Gr(n,e,t,r){var i=!1;return e&&n&&0<n.length&&M(n,function(n){!n||t&&-1!==O(t,n)||(i=qr(n,e,r)||i)}),i}function Jr(n,e,t,r){var i=!1;return e&&n&&m(n)&&!(i=Gr(n,e,t,r))&&t&&0<t.length?Gr(n,e,null,r):i}function Xr(n,e,t){n&&m(n)&&M(n,function(n){n&&Wr(n,e,t)})}function Qr(n,e,t){return Jr([Er,"unload",wr],n,e,t)}function $r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ni,function(n){var e=0|Rt(15);return("x"===n?e:3&e|8).toString(16)})}function Zr(){var n=at();return n&&n.now?n.now():ee()}function Yr(){for(var n,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=g,r=0;r<4;r++)t+=e[15&(n=Vt())]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(3&Vt())|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 ni=/[xy]/g,Tn={Attach:Kr,AttachEvent:Kr,Detach:Hr,DetachEvent:Hr},ei=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,ti="00000000000000000000000000000000",ri="0000000000000000";function l(n,e,t){return!(!n||n.length!==e||n===t||!n.match(/^[\da-f]*$/))}function ii(n,e,t){return l(n,e)?n:t}function oi(n){for(var e=(n=isNaN(n)||n<0||255<n?1:n).toString(16);e.length<2;)e="0"+e;return e}function ai(n){if(!n)return null;if(!(n=m(n)?n[0]||"":n)||!y(n)||8192<n.length)return null;n=ei.exec(C(n));return n&&"ff"!==n[1]&&n[2]!==ti&&n[3]!==ri?{version:n[1],traceId:n[2],spanId:n[3],traceFlags:parseInt(n[4],16)}:null}function ui(n){return l(n,32,ti)}function ci(n){return l(n,16,ri)}function li(n){return!!(n&&l(n.version,2,"ff")&&l(n.traceId,32,ti)&&l(n.spanId,16,ri)&&l(oi(n.traceFlags),2))}var si=Jt("plugin");function fi(n){return si.get(n,"state",{},!0)}function di(t,r){for(var i,n=[],e=null,o=t.getNext();o;){var a=o.getPlugin();a&&(e&&_(e[Z])&&_(a[Q])&&e[Z](a),(_(a[Y])?a[Y]():(i=fi(a))[Y])||n.push(a),e=a,o=o.getNext())}M(n,function(n){var e=t.core();n.initialize(t.getCfg(),e,r,t.getNext()),i=fi(n),n[d]||i[d]||(i[d]=e),i[Y]=!0,delete i[F]})}function gi(n){return n.sort(function(n,e){var t,r=0;return e?(t=_(e[Q]),_(n[Q])?r=t?n[$]-e[$]:1:t&&(r=-1)):r=n?1:-1,r})}var vi="TelemetryPluginChain",pi="_hasRun",hi="_getTelCtx",mi=0;function yi(n,a,t,e){var r=null,i=[],o=(null!==e&&(r=e?function(n,e,t){for(;n;){if(n.getPlugin()===t)return n;n=n.getNext()}return Si([t],e.config||{},e)}(n,t,e):n),{_next:function(){var n,e=r;return r=e?e.getNext():null,e||(n=i)&&0<n.length&&(M(n,function(n){try{n.func.call(n.self,n.args)}catch(e){R(t.logger,2,73,"Unexpected Exception during onComplete - "+b(e))}}),i=[]),e},ctx:{core:function(){return t},diagLog:function(){return wt(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(n,e,t){void 0===t&&(t=!1);var r,n=u(n,null);return n&&!k(n[e])?r=n[e]:a&&!k(a[e])&&(r=a[e]),k(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(n){r=n},iterate:function(n){for(;e=o._next();){var e=e.getPlugin();e&&n(e)}},onComplete:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&i.push({func:n,self:v(e)?o.ctx:e,args:t})}}});function u(n,e,t){var r,i,o;return void 0===e&&(e={}),void 0===t&&(t=0),(r=a&&(i=a.extensionConfig)&&n?i[n]:r)?p(e)&&0!==t&&(o=le(!0,e,r),a&&2===t&&h(e,function(n){var e;k(o[n])&&!k(e=a[n])&&(o[n]=e)}),r=o):r=e,r}return o}function V(n,t,r,e){var i=yi(n,t,r,e),o=i.ctx;return o.processNext=function(n){var e=i._next();return e&&e.processTelemetry(n,o),!e},o.createNew=function(n,e){return V((n=m(n=void 0===n?null:n)?Si(n,t,r,e):n)||o.getNext(),t,r,e)},o}function Ci(n,t,e){var r=t.config||{},i=yi(n,r,t,e),o=i.ctx;return o.processNext=function(n){var e=i._next();return e&&e.unload(o,n),!e},o.createNew=function(n,e){return Ci((n=m(n=void 0===n?null:n)?Si(n,r,t,e):n)||o.getNext(),t,e)},o}function xi(n,t,e){var r=t.config||{},i=yi(n,r,t,e).ctx;return i.processNext=function(e){return i.iterate(function(n){_(n.update)&&n.update(i,e)})},i.createNew=function(n,e){return xi((n=m(n=void 0===n?null:n)?Si(n,r,t,e):n)||i.getNext(),t,e)},i}function Si(n,e,t,r){var i,o=null,a=!r;return m(n)&&0<n.length&&(i=null,M(n,function(n){(a=!a&&r===n||a)&&n&&_(n.processTelemetry)&&(n=bi(n,e,t),o=o||n,i&&i._setNext(n),i=n)})),r&&!o?Si([r],e,t):o}function bi(c,r,i){var l=null,o=_(c.processTelemetry),a=_(c.setNextPlugin),s=c?c.identifier+"-"+c.priority+"-"+mi++:"Unknown-0-"+mi++,u={getPlugin:function(){return c},getNext:function(){return l},processTelemetry:function(t,n){var e;f(n=n||(e=(e=c&&_(c[hi])?c[hi]():e)||V(u,r,i)),function(n){if(!c||!o)return!1;var e=fi(c);return!e.teardown&&!e[en]&&(a&&c.setNextPlugin(l),c.processTelemetry(t,n),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||n.processNext(t)},unload:function(r,i){f(r,function(){var n,e,t=!1;return c&&(n=fi(c),e=c[d]||n.core,!c||e&&e!==r[d]()||n[F]||(n[d]=null,n[F]=!0,n[Y]=!1,c[F]&&!0===c[F](r,i)&&(t=!0))),t},"unload",function(){},i.isAsync)||r.processNext(i)},update:function(r,i){f(r,function(){var n,e,t=!1;return c&&(n=fi(c),e=c[d]||n.core,!c||e&&e!==r[d]()||n[F]||c[nn]&&!0===c[nn](r,i)&&(t=!0)),t},"update",function(){},!1)||r.processNext(i)},_id:s,_setNext:function(n){l=n}};function f(t,r,i,n,e){var o=!1,a=c?c.identifier:vi,u=(u=t[pi])||(t[pi]={});return t.setNext(l),c&&kt(t[d](),function(){return a+":"+i},function(){u[s]=!0;try{var n=l?l._id:g;n&&(u[n]=!1),o=r(t)}catch(e){n=!l||u[l._id];n&&(o=!0),l&&n||R(t.diagLog(),1,73,"Plugin ["+a+"] failed during "+i+" - "+b(e)+", run flags: "+b(u))}},n,e),o}return L(u)}var Ti="extensionConfig",Ii=500,wi="Channel has invalid priority - ";function Pi(n,e,t,r){e&&m(e)&&0<e.length&&(M(e=e.sort(function(n,e){return n.priority-e.priority}),function(n){n.priority<Ii&&U(wi+n.identifier)}),n.push({queue:L(e),chain:Si(e,t,r)}))}function Ei(){var e=[];return{add:function(n){n&&e.push(n)},run:function(t,r){M(e,function(n){try{n(t,r)}catch(e){R(t.diagLog(),2,73,"Unexpected error calling unload handler - "+b(e))}}),e=[]}}}var Ni,Ai="getPlugin",r=function Ho(){var i,o,l,s,f,a=this;function e(n){var e,n=n=void 0===n?null:n;return n||(e=o||V(null,{},a.core),n=l&&l[Ai]?e.createNew(null,l[Ai]):e.createNew(null,l)),n}function u(n,e,t){n&&D(n,Ti,[],null,k),!t&&e&&(t=e.getProcessTelContext().getNext());var r=l;l&&l[Ai]&&(r=l[Ai]()),a.core=e,o=V(t,n,e,r)}function d(){i=!1,a.core=null,l=o=null,f=[],s=Ei()}d(),j(Ho,a,function(c){c.initialize=function(n,e,t,r){u(n,e,r),i=!0},c.teardown=function(n,e){var t,r,i,o,a=c.core;if(a&&(!n||a===n.core()))return r=!1,i=n||Ci(null,a,l&&l[Ai]?l[Ai]():l),o=e||{reason:0,isAsync:!1},c[tn]&&!0===c[tn](i,o,u)?t=!0:u(),t;function u(){r||(r=!0,s.run(i,e),M(f,function(n){n.rm()}),f=[],!0===t&&i.processNext(o),d())}},c.update=function(n,e){var t,r,i,o=c.core;if(o&&(!n||o===n.core()))return r=!1,i=n||xi(null,o,l&&l[Ai]?l[Ai]():l),c._doUpdate&&!0===c._doUpdate(i,e||{reason:0},a)?t=!0:a(),t;function a(){r||(r=!0,u(i.getCfg(),i.core(),i.getNext()))}},c._addHook=function(n){n&&(m(n)?f=f.concat(n):f.push(n))},ue(c,"_addUnloadCb",function(){return s},"add")}),a.diagLog=function(n){return e(n).diagLog()},a[Y]=function(){return i},a.setInitialized=function(n){i=n},a[Z]=function(n){l=n},a.processNext=function(n,e){e?e.processNext(n):l&&_(l.processTelemetry)&&l.processTelemetry(n,null)},a._getTelCtx=e},Fi=(J(ki,Ni=r),ki);function ki(){var e,c,n=Ni.call(this)||this;function t(){e=0,c=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,t(),j(ki,n,function(u,n){u.addTelemetryInitializer=function(n){var t={id:e++,fn:n};return c.push(t),{remove:function(){M(c,function(n,e){if(n.id===t.id)return c.splice(e,1),-1})}}},u.processTelemetry=function(n,e){for(var t=!1,r=c.length,i=0;i<r;++i){var o=c[i];if(o)try{if(!1===o.fn.call(null,n)){t=!0;break}}catch(a){R(e.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+te(a),{exception:b(a)},!0)}}t||u.processNext(n,e)},u[tn]=function(){t()}}),n}var _i="Plugins must provide initialize method",Mi="_notificationManager",Oi="SDK is still unloading...",Li={loggingLevelConsole:1};function Di(n,e){return new At(e)}function Ui(e,n){var t=!1;return M(n,function(n){if(n===e)return t=!0,-1}),t}var ji=function qo(){var d,t,i,r,o,g,x,S,b,T,I,w,v,p,h,n,P,E,N,A=0;j(qo,this,function(m){function a(){d=!1,m.config=le(!0,{},Li),m.logger=new Pt(m.config),m._extensions=[],p=new Fi,t=[],v=!(S=[]),n=Gt("AIBaseCore",!(h=w=I=T=b=x=g=o=r=i=null)),P=Ei(),N=null}function y(){return V(C(),m.config,m)}function c(n,e){r=m.logger,i=Ii,o=[],a={},M(v=S,function(n){(k(n)||k(n.initialize))&&U(_i);var e=n.priority,t=n.identifier;n&&e&&(k(a[e])?a[e]=t:(t="Two extensions have same priority #"+e+" - "+a[e]+", "+t,(r||new Pt).warnToConsole(t))),(!e||e<i)&&o.push(n)});var r,i,o,a,t,u,c,l,s,f,d,g,v={all:v,core:o},v=(b=v.core,x=null,v.all);function p(){return V(null,f.config,f,null)}function h(n,e,t,r){var i=n?n.length+1:1;function o(){0==--i&&(r&&r(),r=null)}0<i&&M(n,function(n){n&&0<n.queue.length?(n=n.chain,(n=e.createNew(n)).onComplete(o),t(n)):i--}),o()}w=L((d=v,t=n,u=m,l=[],I&&M(I,function(n){return Pi(l,n,t,u)}),d&&(c=[],M(d,function(n){n.priority>Ii&&c.push(n)}),Pi(l,c,t,u)),l)),T?(-1!==(d=O(v,T))&&v.splice(d,1),-1!==(d=O(b,T))&&b.splice(d,1),T._setQueue(w)):(s=w,f=m,g=!1,(d={identifier:"ChannelControllerPlugin",priority:Ii,initialize:function(e,t,r,n){g=!0,M(s,function(n){n&&0<n.queue.length&&di(V(n.chain,e,t),r)})},isInitialized:function(){return g},processTelemetry:function(e,n){h(s,n||p(),function(n){n[rn](e)},function(){n[rn](e)})},update:function(n,e){var t=e||{reason:0};return h(s,n,function(n){n[rn](t)},function(){n[rn](t)}),!0}})[an]=function(){h(s,p(),function(n){n.iterate(function(n){n[an]&&n[an]()})},null)},d[on]=function(){h(s,p(),function(n){n.iterate(function(n){n[on]&&n[on]()})},null)},d[F]=function(n,e){var t=e||{reason:0,isAsync:!1};return h(s,n,function(n){n[rn](t)},function(){n[rn](t),g=!1}),!0},d.getChannel=function(e){var t=null;return s&&0<s.length&&M(s,function(n){if(n&&0<n.queue.length&&(M(n.queue,function(n){if(n.identifier===e)return t=n,-1}),t))return-1}),t},d.flush=function(t,n,r,i){var o=1,e=!1,a=null;function u(){o--,e&&0===o&&(a&&(clearTimeout(a),a=null),n&&n(e),n=null)}return i=i||5e3,h(s,p(),function(n){n.iterate(function(n){var e;n.flush&&(o++,e=!1,n.flush(t,function(){e=!0,u()},r)||e||(t&&null==a?a=setTimeout(function(){a=null,u()},i):u()))})},function(){e=!0,u()}),!0},d._setQueue=function(n){s=n},T=d),v.push(T),b.push(T),m._extensions=gi(v),T.initialize(n,m,v),di(y(),v),m._extensions=L(gi(b||[])).slice(),e&&(d=e,n=xi(C(),m),m._updateHook&&!0===m._updateHook(n,d)||n.processNext(d))}function l(e){var r=null;return M(m._extensions,function(n){if(n.identifier===e&&n!==T&&n!==p)return r=n,-1}),(r=!r&&T?T.getChannel(e):r)?{plugin:r,setEnabled:function(n){fi(r)[en]=!n},isEnabled:function(){var n=fi(r);return!n[F]&&!n[en]},remove:function(n,e){var t=[r];s(t,{reason:1,isAsync:n=void 0===n||n},function(n){n&&c(m.config,{reason:32,removed:t}),e&&e(n)})}}:null}function C(){var n;return x||(-1===O(n=(b||[]).slice(),p)&&n.push(p),x=Si(gi(n),m.config,m)),x}function s(o,n,e){var t;o&&0<o.length?((t=Ci(Si(o,m.config,m),m)).onComplete(function(){var r=!1,t=[],i=(M(S,function(n,e){Ui(n,o)?r=!0:t.push(n)}),S=t,[]);I&&(M(I,function(n,e){var t=[];M(n,function(n){Ui(n,o)?r=!0:t.push(n)}),i.push(t)}),I=i),e&&e(r)}),t.processNext(n)):e(!1)}function e(){var n=m.logger?m.logger.queue:[];n&&(M(n,function(n){n={name:h||"InternalMessageId: "+n.messageId,iKey:m.config.instrumentationKey,time:Gn(new Date),baseType:Tt.dataType,baseData:{message:n.message}};m.track(n)}),n.length=0)}function u(n,e,t,r){return T?T.flush(n,e,t||6,r):(e&&e(!1),!0)}function f(n){var e=m.logger;e?R(e,2,73,n):U(n)}a(),m.isInitialized=function(){return d},m.initialize=function(n,e,t,r){v&&U(Oi),m.isInitialized()&&U("Core should not be initialized more than once"),n&&!k(n.instrumentationKey)||U("Please provide instrumentation key"),i=r,m[Mi]=r,m.config=n||{};r=n,!0===r.disableDbgExt&&E&&(i[ln](E),E=null),i&&!E&&!0!==r.disableDbgExt&&(E=function(n){if(!mt){mt={};for(var e=0;e<yt.length;e++)mt[yt[e]]=function(e,t){return function(){var n=xt(t);n&&(n=n.listener)&&n[e]&&n[e].apply(n,arguments)}}(yt[e],n)}return mt}(r),i[cn](E)),r=n;!r.enablePerfMgr&&o&&(o=null),r.enablePerfMgr&&D(m.config,"createPerfMgr",Di),n.extensions=k(n.extensions)?[]:n.extensions,re(n,Ti).NotificationManager=i,t&&(m.logger=t),(S=[]).push.apply(S,X(X([],e),n.extensions)),I=(n||{}).channels,c(n,null),w&&0!==w.length||U("No channels available"),d=!0,m.releaseQueue()},m.getTransmissionControls=function(){var e=[];return w&&M(w,function(n){e.push(n.queue)}),L(e)},m.track=function(n){D(n,"iKey",m.config.instrumentationKey,null,ie),D(n,"time",Gn(new Date),null,ie),D(n,"ver","4.0",null,k),!v&&m.isInitialized()?y().processNext(n):t.push(n)},m.getProcessTelContext=y,m.getNotifyMgr=function(){var n;return i||(i=q(((n={})[cn]=function(n){},n[ln]=function(n){},n[sn]=function(n){},n[fn]=function(n,e){},n[dn]=function(n,e){},n)),m[Mi]=i),i},m[cn]=function(n){i&&i[cn](n)},m[ln]=function(n){i&&i[ln](n)},m.getCookieMgr=function(){return g=g||fr(m.config,m.logger)},m.setCookieMgr=function(n){g=n},m.getPerfMgr=function(){return r||o||m.config&&m.config.enablePerfMgr&&_(m.config.createPerfMgr)&&(o=m.config.createPerfMgr(m,m.getNotifyMgr())),r||o||null},m.setPerfMgr=function(n){r=n},m.eventCnt=function(){return t.length},m.releaseQueue=function(){var n;d&&0<t.length&&(n=t,t=[],M(n,function(n){y().processNext(n)}))},m.pollInternalLogs=function(n){h=n||null;n=m.config.diagnosticLogInterval;return n&&0<n||(n=1e4),A&&clearInterval(A),A=setInterval(function(){e()},n)},m.stopPollingInternalLogs=function(){A&&(clearInterval(A),A=0,e())},ce(m,function(){return p},["addTelemetryInitializer"]),m.unload=function(n,e,t){d||U("SDK is not initialized"),v&&U(Oi);var r={reason:50,isAsync:n=void 0===n||n,flushComplete:!1},i=Ci(C(),m);function o(n){r.flushComplete=n,v=!0,P.run(i,r),m.stopPollingInternalLogs(),i.processNext(r)}i.onComplete(function(){a(),e&&e(r)},m),u(n,o,6,t)||o(!1)},m.getPlugin=l,m.addPlugin=function(n,e,t,r){if(!n)return r&&r(!1),void f(_i);var i=l(n.identifier);if(i&&!e)return r&&r(!1),void f("Plugin ["+n.identifier+"] is already loaded!");var o,a={reason:16};function u(){S.push(n),a.added=[n],c(m.config,a),r&&r(!0)}i?s(o=[i.plugin],{reason:2,isAsync:!!t},function(n){n?(a.removed=o,a.reason|=32,u()):r&&r(!1)}):u()},m.evtNamespace=function(){return n},m.flush=u,m.getTraceCtx=function(n){var e;return N||(e={},N={getName:function(){return e.name},setName:function(n){e.name=n},getTraceId:function(){return e.traceId},setTraceId:function(n){ui(n)&&(e.traceId=n)},getSpanId:function(){return e.spanId},setSpanId:function(n){ci(n)&&(e.spanId=n)},getTraceFlags:function(){return e.traceFlags},setTraceFlags:function(n){e.traceFlags=n}}),N},m.setTraceCtx=function(n){N=n||null},ue(m,"addUnloadCb",function(){return P},"add")})};function Ri(n,t,r,i){M(n,function(n){if(n&&n[t])if(r)setTimeout(function(){return i(n)},0);else try{i(n)}catch(e){}})}var Vi,zi=function Wo(n){this.listeners=[];var t=!!(n||{}).perfEvtsSendAll;j(Wo,this,function(r){r[cn]=function(n){r.listeners.push(n)},r[ln]=function(n){for(var e=O(r.listeners,n);-1<e;)r.listeners.splice(e,1),e=O(r.listeners,n)},r[sn]=function(e){Ri(r.listeners,sn,!0,function(n){n[sn](e)})},r[fn]=function(e,t){Ri(r.listeners,fn,!0,function(n){n[fn](e,t)})},r[dn]=function(e,t){Ri(r.listeners,dn,t,function(n){n[dn](e,t)})},r[gn]=function(e){!e||!t&&e.isChildEvt()||Ri(r.listeners,gn,!1,function(n){e.isAsync?setTimeout(function(){return n[gn](e)},0):n[gn](e)})}})},Bi=(J(Ki,Vi=ji),Ki);function Ki(){var n=Vi.call(this)||this;return j(Ki,n,function(t,i){function r(n){var e=t.getNotifyMgr();e&&e.eventsDiscarded([n],2)}t.initialize=function(n,e,t,r){i.initialize(n,e,t||new Pt(n),r||new zi(n))},t.track=function(e){kt(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){var n;null===e&&(r(e),U("Invalid telemetry item")),k((n=e).name)&&(r(n),U("telemetry name required")),i.track(e)},function(){return{item:e}},!e.sync)}}),n}var Hi=o({CRITICAL:1,WARNING:2}),qi=o({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,InstrumentationKeyDeprecation:106}),Wi=o({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}),Gi=o({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),Ji=o({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),Xi=o({Normal:1,Critical:2}),Qi=o({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),W=L(W(W({},qi),o({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}))),$i="3.2.3",Zi="1DS-Web-JS-"+$i,Yi="withCredentials",no=((s={})[0]=0,s[2]=6,s[1]=1,s[3]=7,s[4098]=6,s[4097]=1,s[4099]=7,s),eo=null,to=!!c(),s=!!Ye();function ro(n){return!(""===n||k(n))}function io(n){if(n){var e=n.indexOf("-");if(-1<e)return n.substring(0,e)}return""}function oo(){return eo=null===eo?!v(Uint8Array)&&!function(){var n=tt();if(!v(n)&&n.userAgent)return!~(n=n.userAgent.toLowerCase()).indexOf("safari")&&!~n.indexOf("firefox")||~n.indexOf("chrome")?void 0:1}()&&!ft():eo}function ao(n){return!!(n&&Hn(n)&&1<=n&&n<=4)}function uo(n,e,t){if(!e&&!ro(e)||"string"!=typeof n)return null;n=typeof e;if("string"==n||"number"==n||"boolean"==n||m(e))e={value:e};else if("object"!=n||e.hasOwnProperty("value")){if(k(e.value)||""===e.value||!y(e.value)&&!Hn(e.value)&&!qn(e.value)&&!m(e.value))return null}else e={value:t?JSON.stringify(e):e};if(m(e.value)&&!Co(e.value))return null;if(!k(e.kind)){if(m(e.value)||!yo(e.kind))return null;e.value=e.value.toString()}return e}function co(n,e,t){var r=-1;return v(n)||(0<e&&(32===e?r=8192:e<=13&&(r=e<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=no[T(n)]||-1,-1!==r&&-1!==e?r|=e:6===e&&(r=e))),r}function lo(){sr(null).setEnabled(!1)}function so(n,e,t){dr(null)&&sr(null).set(n,e,86400*t,null,"/")}function fo(n){dr(null)&&sr(null).del(n)}function go(n){return dr(null)?vo(sr(null),n):""}function vo(n,e,t){var r;return void 0===t&&(t=!0),n&&(r=n.get(e),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function po(n){void 0===n&&(n="D");var e=$r();return"B"===n?e="{"+e+"}":"P"===n?e="("+e+")":"N"===n&&(e=e.replace(/-/g,"")),e}function ho(n,e,t,r,i){var o={},a=!1,u=0,c=arguments.length,l=Object[f],s=arguments;for("[object Boolean]"===l.toString.call(s[0])&&(a=s[0],u++);u<c;u++)h(s[u],function(t,n){a&&n&&p(n)?m(n)?(o[t]=o[t]||[],M(n,function(n,e){n&&p(n)?o[t][e]=ho(!0,o[t][e],n):o[t][e]=n})):o[t]=ho(!0,o[t],n):o[t]=n});return o}var mo=Zr;function yo(n){return 0===n||0<n&&n<=13||32===n}function Co(n){return 0<n.length}function xo(n,e){n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[e]=mo()}function T(n){var e,t=0;return null!==n&&n!==undefined&&("string"==(e=typeof n)?t=1:"number"==e?t=2:"boolean"==e?t=3:e===a&&(t=4,m(n)?(t=4096,0<n.length&&(t|=T(n[0]))):Rn(n,"value")&&(t=8192|T(n.value)))),t}var So,bo={Version:$i,FullVersionString:Zi,strUndefined:e,strObject:a,Undefined:e,arrForEach:M,arrIndexOf:O,arrMap:Jn,arrReduce:Xn,objKeys:Zn,toISOString:Gn,isReactNative:ft,isString:y,isNumber:Hn,isBoolean:qn,isFunction:_,isArray:m,isObject:p,strTrim:C,isDocumentObjectAvailable:to,isWindowObjectAvailable:s,isValueAssigned:ro,getTenantId:io,isBeaconsSupported:gt,isUint8ArrayAvailable:oo,isLatency:ao,sanitizeProperty:uo,getISOString:Gn,useXDomainRequest:vt,getCommonSchemaMetaData:co,cookieAvailable:dr,disallowsSameSiteNone:mr,setCookie:so,deleteCookie:fo,getCookie:go,createGuid:po,extend:ho,getTime:mo,isValueKind:yo,isArrayValid:Co,objDefineAccessors:Yn,addPageUnloadEventListener:Qr,setProcessTelemetryTimings:xo,addEventHandler:qr,getFieldValueType:T,strEndsWith:zn,objForEachKey:h},To={_canUseCookies:undefined,isTypeof:Un,isUndefined:v,isNullOrUndefined:k,hasOwnProperty:Rn,isFunction:_,isObject:p,isDate:Bn,isArray:m,isError:Kn,isString:y,isNumber:Hn,isBoolean:qn,toISOString:Gn,arrForEach:M,arrIndexOf:O,arrMap:Jn,arrReduce:Xn,strTrim:C,objCreate:q,objKeys:Zn,objDefineAccessors:Yn,addEventHandler:qr,dateNow:ee,isIE:dt,disableCookies:lo,newGuid:$r,perfNow:Zr,newId:Bt,randomValue:Rt,random32:Vt,mwcRandomSeed:function(n){n?Ut(n):jt()},mwcRandom32:zt,generateW3CId:Yr},Io="version",wo="properties";function Po(){var n=So.call(this)||this;return n.pluginVersionStringArr=[],n.pluginVersionString="",j(Po,n,function(u,c){u.logger&&u.logger.queue||(u.logger=new Pt({loggingLevelConsole:1})),u.initialize=function(r,i,o,a){kt(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var n=r.propertyStorageOverride;if(n&&(!n.getProperty||!n.setProperty))throw Error("Invalid property storage override passed.");r.channels&&M(r.channels,function(n){n&&M(n,function(n){n.identifier&&n.version&&(n=n.identifier+"="+n.version,u.pluginVersionStringArr.push(n))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&M(i,function(n){n&&n.identifier&&n.version&&(n=n.identifier+"="+n.version,u.pluginVersionStringArr.push(n))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{c.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var n=u.logger,e=b(t);~e.indexOf("channels")&&(e+="\n - Channels must be provided through config.channels only!"),n.throwInternal(1,514,"SDK Initialization Failed - no telemetry will be sent: "+e)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){kt(u,function(){return"AppInsightsCore.track"},function(){var n,e=t;e&&(e.timings=e.timings||{},e.timings.trackStart=mo(),ao(e.latency)||(e.latency=1),(n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=Zi,(n=e.baseData=e.baseData||{})[wo]||(n[wo]={}),(n=n[wo])[Io]||(n[Io]=""),""!==u.pluginVersionString&&(n[Io]=u.pluginVersionString)),c.track(e)},function(){return{item:t}},!t.sync)}}),n}J(Po,So=Bi);var Eo,No=Po;function Ao(){var n=Eo.call(this)||this;return j(Ao,n,function(o,a){o.initialize=function(n,e,t,r){n&&!n.endpointUrl&&(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return to?0:-1};try{a.initialize(n,e,t,r)}catch(i){R(o.logger,1,514,"Initialization Failed: "+b(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(n){var e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Zi),a.track(n)}}),n}J(Ao,Eo=ji);var Fo=Ao,ko=_;function I(n){var a=0,u=null,e=[];function i(t,r,i,o){e.push(function(){var n;try{(n=1===a?ko(t)?t(u):u:ko(r)?r(u):u)instanceof I?n.then(i,o):(2!==a||ko(r)?i:o)(n)}catch(e){return void o(e)}}),0!==a&&c()}function c(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var n=0,e=r.length;n<e;++n)try{r[n]()}catch(t){}},0))}function t(n){0===a&&(u=n,a=2,c())}if(j(I,this,function(e){e.then=function(t,r){return new I(function(n,e){i(t,r,n,e)})},e["catch"]=function(n){return e.then(null,n)}}),!ko(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(function(n){0===a&&(u=n,a=1,c())},t)}catch(r){t(r)}}I.resolve=function(r){return r instanceof I?r:r&&ko(r.then)?new I(function(n,e){try{r.then(n,e)}catch(t){e(t)}}):new I(function(n){n(r)})},I.reject=function(t){return new I(function(n,e){e(t)})},I.all=function(u){if(u&&u.length)return new I(function(r,n){try{for(var i=[],o=0,e=0;e<u.length;e++){var t=u[e];t&&ko(t.then)?(o++,t.then(function(e,t){return function(n){e[t]=n,0==--o&&r(i)}}(i,e),n)):i[e]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){n(a)}})},I.race=function(i){return new I(function(e,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var n=i[r];n&&ko(n.then)?n.then(e,t):setTimeout(function(){e(n)},0)}()}catch(n){t(n)}})};var _o=I,Mo=0,Oo=[],Lo=[],Do=[];function Uo(){return(new Date).getTime()}function jo(n,e){var h=0,m=(n||"<unnamed>")+"."+Mo;function y(n){var e=K();e&&e.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+n)}function C(n){e&&e.warnToConsole("ESPromiseScheduler["+m+"] "+n)}Mo++,j(jo,this,function(n){var g=null,v=0;function p(n,e){for(var t=0;t<n.length;t++)if(n[t].id===e)return n.splice(t,1)[0];return null}n.scheduleEvent=function(t,n,u){var i,o,e,a=m+"."+v,n=(v++,n&&(a+="-("+n+")"),a+"{"+h+"}"),r=(h++,{evt:null,tm:Uo(),id:n,isRunning:!1,isAborted:!1});return r.evt=g?(i=r,o=g,e=new _o(function(e,t){var n=Uo()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+Lo.length+"] waiting and ["+Oo.length+"] running"),i.abort=function(n){i.abort=null,p(Lo,a),i.isAborted=!0,t(Error(n))},o.evt.then(function(n){p(Lo,a),d(i).then(e,t)},function(n){p(Lo,a),d(i).then(e,t)})}),Lo.push(i),e):d(r),(g=r).evt._schId=n,r.evt;function c(n){for(var e=Uo(),t=e-6e5,r=n.length,i=0;i<r;){var o,a=n[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(e-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(e-a.tm)+" ms)",C(o),n.splice(i,1),r--):i++}}function l(n,e){var t,r=!1,i=p(Oo,n);i||(i=p(Do,n),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Uo()-i.tm,e?r?C("Timed out event ["+n+"] finally complete -- "+t+" ms"):y("Promise ["+n+"] Complete -- "+t+" ms"):(Do.push(i),C("Event ["+n+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+n+"] from running queue"),g&&g.id===n&&(g=null),c(Oo),c(Lo),c(Do)}function s(e,t){return function(n){return l(e,!0),t&&t(n),n}}function f(r,o){var a=r.id;return new _o(function(e,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(n){r.abort=null,r.isAborted=!0,l(a,!1),t(Error(n))};var n=o(a);n instanceof _o?(u&&(r.to=setTimeout(function(){l(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(e,n,t,r){n.then(function(n){return n instanceof _o?(y("Event ["+e+"] returned a promise -- waiting"),i(e,n,t,r),n):s(e,t)(n)},s(e,r))}(a,n,function(n){y("Event ["+a+"] Resolving after "+(Uo()-r.tm)+" ms"),e(n)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),e())})}function d(n){var e=Uo();return n.wTm=e-n.tm,n.tm=e,n.isAborted?_o.reject(Error("["+a+"] was aborted")):(Oo.push(n),f(n,t))}}})}jo.incomplete=function(){return Oo},jo.waitingToStart=function(){return Lo};var Ro=jo,Vo=(zo.getFieldType=T,zo);function zo(n){var c=this,o={},a=[],u=[];function l(n,e){var t=o[n];if(!(i=t?t[e]:i)&&null!==i){if(y(n)&&y(e))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(n,e)){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(n,e)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[n]={}))[e]=i}return i}function s(n,e,t,r,i,o){if(n.handler)return n.handler.property(e,t,i,o);if(!k(i.kind)){if(4096==(4096&r)||!yo(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,n,e){var t,a;return e&&r&&(t=r.getSanitizer(i,o,n,e.kind,e.propertyType))&&(4===n?(a={},h(e.value,function(n,e){var t;ro(e)&&(t=f(0,0,e),(t=u(r,i+"."+o,n,T(e),t))&&(a[n]=t.value))}),e.value=a):e=t.call(c,{path:i,name:o,type:n,prop:e,sanitizer:c})),e}(n.fieldHandler,e,t,r,i)}function f(n,e,t){return ro(t)?{value:t}:null}n&&u.push(n),c.addSanitizer=function(n){n&&(a.push(n),o={})},c.addFieldSanitizer=function(n){n&&(u.push(n),o={})},c.handleField=function(n,e){n=l(n,e);return!!n&&n.canHandle},c.value=function(n,e,t,r){var i=l(n,e);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(n,e,t,r);if(!y(e)||k(t)||""===t)return null;var o=null,a=T(t);if(8192==(8192&a)){var u=-8193&a;if(!ro((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 s(i,n,e,a,o,r)}return null},c.property=function(n,e,t,r){var i=l(n,e);if(!i||!i.canHandle)return null;if(!y(e)||k(t)||!ro(t.value))return null;var o=T(t.value);return 0===o?null:s(i,n,e,o,t,r)}}n.AppInsightsCore=No,n.BaseCore=Fo,n.BaseTelemetryPlugin=r,n.CoreUtils=To,n.DiagnosticLogger=Pt,n.ESPromise=_o,n.ESPromiseScheduler=Ro,n.EventHelper=Tn,n.EventLatency=Gi,n.EventPersistence=Xi,n.EventPropertyType=Ji,n.EventsDiscardedReason=wn,n.FullVersionString=Zi,n.InternalAppInsightsCore=Bi,n.InternalBaseCore=ji,n.LoggingSeverity=Hi,n.MinChannelPriorty=100,n.NotificationManager=zi,n.PerfEvent=Et,n.PerfManager=At,n.ProcessTelemetryContext=function(n,e,t,r){n=V(n,e,t,r);ce(this,n,Zn(n))},n.TraceLevel=Qi,n.Undefined=e,n.Utils=bo,n.ValueKind=Wi,n.ValueSanitizer=Vo,n.Version=$i,n._ExtendedInternalMessageId=W,n._InternalLogMessage=Tt,n._InternalMessageId=qi,n.__getRegisteredEvents=function(n,e,t){var r=[],n=Mr.get(n,Tr,{},!1),i=Dr(e,t);return h(n,function(n,e){M(e,function(n){i.type&&i.type!==n.evtName.type||i.ns&&i.ns!=i.ns||r.push({name:n.evtName.type+(n.evtName.ns?"."+n.evtName.ns:""),handler:n.handler})})}),r},n._throwInternal=R,n.addEventHandler=qr,n.addEventListeners=Jr,n.addPageHideEventListener=function Go(t,n,e){var r=Vr(Nr,e),i=Gr([wr],t,n,r);return!(i=(!n||-1===O(n,Ir))&&Gr([Ir],function(n){var e=c();t&&e&&"hidden"===e.visibilityState&&t(n)},n,r)||i)&&n?Go(t,null,e):i},n.addPageShowEventListener=function Jo(t,n,e){var r=Vr(Ar,e),i=Gr([Pr],t,n,r);return!(i=Gr([Ir],function(n){var e=c();t&&e&&"visible"===e.visibilityState&&t(n)},n,r)||i)&&n?Jo(t,null,e):i},n.addPageUnloadEventListener=Qr,n.areCookiesSupported=dr,n.arrForEach=M,n.arrIndexOf=O,n.arrMap=Jn,n.arrReduce=Xn,n.attachEvent=Kr,n.cookieAvailable=dr,n.createCookieMgr=fr,n.createEnumStyle=o,n.createGuid=po,n.createProcessTelemetryContext=V,n.createTraceParent=function(n,e,t,r){return{version:l(r,2,"ff")?r:"00",traceId:ui(n)?n:Yr(),spanId:ci(e)?e:Yr().substr(0,16),traceFlags:0<=t&&t<=255?t:1}},n.createUniqueNamespace=Gt,n.createUnloadHandlerContainer=Ei,n.dateNow=ee,n.deleteCookie=fo,n.detachEvent=Hr,n.disableCookies=lo,n.disallowsSameSiteNone=mr,n.doPerf=kt,n.dumpObj=b,n.eventOff=Br,n.eventOn=zr,n.extend=ho,n.findW3cTraceParent=function(){var n,e;return ai((e=c())?ht(e.querySelectorAll("meta"),"traceparent").content:null)||ai(n=(e=at())?ht((0<(e=e.getEntriesByType("navigation")||[]).length?e[0]:{}).serverTiming,"traceparent").description:n)},n.formatTraceParent=function(n){var e,t;return n?(l(e=oi(n.traceFlags),2)||(e="01"),t=n.version||"00","".concat(t="00"!==t&&"ff"!==t?"00":t,"-").concat(ii(n.traceId,32,ti),"-").concat(ii(n.spanId,16,ri),"-").concat(e)):""},n.generateW3CId=Yr,n.getCommonSchemaMetaData=co,n.getConsole=ot,n.getCookie=go,n.getCookieValue=vo,n.getCrypto=lt,n.getDocument=c,n.getExceptionName=te,n.getFieldValueType=T,n.getGlobal=K,n.getGlobalInst=u,n.getHistory=function(){return rt()?history:u("history")},n.getIEVersion=function(n){var e=((n=(n=void 0===n?null:n)?n:(e=tt()||{})?(e.userAgent||g).toLowerCase():g)||g).toLowerCase();if(i(e,Ke))return n=c()||{},Math.max(parseInt(e.split(Ke)[1]),n.documentMode||0);if(i(e,He)){n=parseInt(e.split(He)[1]);if(n)return n+4}return null},n.getISOString=Gn,n.getJSON=ct,n.getLocation=it,n.getMsCrypto=st,n.getNavigator=tt,n.getPerformance=at,n.getSetValue=re,n.getTenantId=io,n.getTime=mo,n.getWindow=Ye,n.hasDocument=nt,n.hasHistory=rt,n.hasJSON=ut,n.hasNavigator=et,n.hasOwnProperty=Rn,n.hasWindow=Ze,n.isArray=m,n.isArrayValid=Co,n.isBeaconsSupported=gt,n.isBoolean=qn,n.isChromium=function(){return!!u("chrome")},n.isDate=Bn,n.isDocumentObjectAvailable=to,n.isError=Kn,n.isFetchSupported=function(n){var e=!1;try{var e=!!u("fetch"),t=u("Request");e&&n&&t&&(e=$e(t,"keepalive"))}catch(r){}return e},n.isFunction=_,n.isIE=dt,n.isLatency=ao,n.isNotTruthy=ie,n.isNullOrUndefined=k,n.isNumber=Hn,n.isObject=p,n.isReactNative=ft,n.isSampledFlag=function(n){return!!li(n)&&1==(1&n.traceFlags)},n.isString=y,n.isTruthy=oe,n.isTypeof=Un,n.isUint8ArrayAvailable=oo,n.isUndefined=v,n.isValidSpanId=ci,n.isValidTraceId=ui,n.isValidTraceParent=li,n.isValueAssigned=ro,n.isValueKind=yo,n.isWindowObjectAvailable=s,n.isXhrSupported=pt,n.mergeEvtNamespace=Vr,n.newGuid=$r,n.newId=Bt,n.normalizeJsName=Vn,n.objCreate=q,n.objDefineAccessors=Yn,n.objForEachKey=h,n.objFreeze=L,n.objKeys=Zn,n.objSeal=un,n.openXhr=function(n,e,t,r,i,o){function a(n,e,t){try{n[e]=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,Yi,t),u.open(n,e,!i),t&&a(u,Yi,t),!i&&o&&a(u,"timeout",o),u},n.optimizeObject=function(n){return n&&N?t(N({},n)):n},n.parseTraceParent=ai,n.perfNow=Zr,n.proxyAssign=function(t,r,i){if(t&&r&&p(t)&&p(r))for(var n in r)!function(e){var n;y(e)&&(_(n=r[e])?i&&!i(e,!0,r,t)||(t[e]=ae(r,e)):i&&!i(e,!1,r,t)||(Rn(t,e)&&delete t[e],Yn(t,e,function(){return r[e]},function(n){r[e]=n})||(t[e]=n)))}(n);return t},n.proxyFunctionAs=ue,n.proxyFunctions=ce,n.random32=Vt,n.randomValue=Rt,n.removeEventHandler=Wr,n.removeEventListeners=Xr,n.removePageHideEventListener=function(n,e){e=Vr(Nr,e);Xr([wr],n,e),Xr([Ir],null,e)},n.removePageShowEventListener=function(n,e){e=Vr(Ar,e);Xr([Pr],n,e),Xr([Ir],null,e)},n.removePageUnloadEventListener=function(n,e){Xr([Er,"unload",wr],n,e)},n.safeGetCookieMgr=sr,n.safeGetLogger=wt,n.sanitizeProperty=uo,n.setCookie=so,n.setEnableEnvMocks=function(n){Je=n},n.setProcessTelemetryTimings=xo,n.setValue=D,n.strContains=i,n.strEndsWith=zn,n.strFunction=w,n.strObject=a,n.strPrototype=f,n.strStartsWith=function(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(Nn)return n[hn](e);var r=n,i=e,n=!1,o=i?i.length:0;if(r&&o&&r.length>=o&&!(n=r===i)){for(var a=0;a<o;a++)if(r[a]!==i[a])return!1;n=!0}return n}return t},n.strTrim=C,n.strUndefined=e,n.throwError=U,n.toISOString=Gn,n.useXDomainRequest=vt;No=n,Fo="__esModule",r={value:!0},To=Object.defineProperty;if(To)try{return To(No,Fo,r)}catch(Xo){}typeof r.value!==undefined&&(No[Fo]=r.value)}(this.oneDS=this.oneDS||{});
!function(n){"use strict";var w="function",u="object",e="undefined",s="prototype",P="hasOwnProperty",t=Object,E=t[s],_=t.assign,A=t.create,N=t.defineProperty,H=E[P],B=null;function q(n){return void 0===n&&(n=!0),B&&n||(typeof globalThis!==e&&globalThis&&(B=globalThis),typeof self!==e&&self&&(B=self),typeof window!==e&&window&&(B=window),typeof global!==e&&global&&(B=global)),B}function K(n){throw new TypeError(n)}function W(n){if(A)return A(n);if(null==n)return{};var e=typeof n;function t(){}return e!==u&&e!==w&&K("Object prototype may only be an Object:"+n),t[s]=n,new t}(q()||{}).Symbol,(q()||{}).Reflect;var G=_||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])E[P].call(e,i)&&(n[i]=e[i]);return n},J=function(n,e){return(J=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e[P](t)&&(n[t]=e[t])})(n,e)};function X(n,e){function t(){this.constructor=n}typeof e!==w&&null!==e&&K("Class extends value "+e+" is not a constructor or null"),J(n,e),n[s]=null===e?W(e):(t[s]=e[s],new t)}function Q(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n}var $="initialize",k="name",Z="getNotifyMgr",Y="identifier",O="push",nn="isInitialized",en="config",tn="instrumentationKey",D="logger",M="length",rn="time",F="processNext",on="getProcessTelContext",un="addNotificationListener",an="removeNotificationListener",cn="stopPollingInternalLogs",ln="onComplete",fn="getPlugin",sn="flush",dn="_extensions",vn="splice",gn="teardown",pn="messageId",mn="message",hn="isAsync",yn="_doTeardown",Cn="update",v="getNext",Sn="diagLog",bn="setNextPlugin",In="createNew",xn="cookieCfg",Tn="indexOf",wn="substring",Pn="userAgent",En="split",_n="setEnabled",An="replace",Nn="substr",kn="nodeType",On="apply",Dn="enableDebugExceptions",Mn="logInternalMessage",Fn="toLowerCase",d="call",p="type",Ln="handler",Un="listeners",Rn="isChildEvt",jn="getCtx",l="setCtx",Vn="complete",zn="traceId",Hn="spanId",Bn="traceFlags",qn="version",g="",Kn="channels",L="core",Wn="createPerfMgr",Gn="disabled",Jn="extensionConfig",m="processTelemetry",Xn="priority",Qn="eventsSent",$n="eventsDiscarded",Zn="eventsSendRequest",Yn="perfEvent",ne="errorToConsole",ee="warnToConsole",te="getPerfMgr",re="toISOString",ie="endsWith",oe="startsWith",ue="indexOf",ae="trim",ce="toString",le="constructor",fe=N,se=t.freeze,de=t.seal,ve=t.keys,ge=String[s],pe=ge[ae],me=ge[ie],he=ge[oe],ye=Date[s][re],ge=Array.isArray,Ce=E[ce],Se=H[ce],be=Se[d](t),Ie=/-([a-z])/g,xe=/([^\w\d_$])/g,Te=/^(\d+[\w\d_$])/,we=Object.getPrototypeOf;function Pe(n,e){return typeof n===e}function h(n){return n===undefined||typeof n===e}function U(n){return null===n||h(n)}function Ee(n){return!U(n)}function _e(n,e){return!(!n||!H[d](n,e))}function y(n){return!(!n||typeof n!==u)}function R(n){return!(!n||typeof n!==w)}function Ae(n){var e=n;return n&&b(n)?(e=(e=n[An](Ie,function(n,e){return e.toUpperCase()}))[An](xe,"_"))[An](Te,function(n,e){return"_"+e}):e}function C(n,e){if(n)for(var t in n)H[d](n,t)&&e[d](n,t,n[t])}function Ne(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(me)return n[ie](e);var r=n,i=e,n=!1,e=i?i[M]:0,o=r?r[M]:0;if(e&&o&&e<=o&&!(n=r===i)){for(var u=o-1,a=e-1;0<=a;a--){if(r[u]!=i[a])return!1;u--}n=!0}return n}return t}function r(n,e){return!(!n||!e)&&-1!==n[Tn](e)}function ke(n){return!(!n||"[object Date]"!==Ce[d](n))}var S=ge||function(n){return!(!n||"[object Array]"!==Ce[d](n))};function Oe(n){return!(!n||"[object Error]"!==Ce[d](n))}function b(n){return"string"==typeof n}function De(n){return"number"==typeof n}function Me(n){return"boolean"==typeof n}function Fe(n){return n&&"object"==typeof n&&(!(n=(we||function(n){if(n){if(we)return we(n);n=n.__proto__||n[s]||n[le];if(n)return n}return null})(n))||typeof(n=n[le]&&H[d](n,le)?n[le]:n)===w&&Se[d](n)===be)}function Le(n){if(n){if(ye)return n[re]();var e;return n&&n.getUTCFullYear?(e=function(n){n=""+n;return 1===n[M]?"0"+n:n},n.getUTCFullYear()+"-"+e(1+n.getUTCMonth())+"-"+e(n.getUTCDate())+"T"+e(n.getUTCHours())+":"+e(n.getUTCMinutes())+":"+e(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}function j(n,e,t){var r=n[M];try{for(var i=0;i<r&&!(i in n&&-1===e[d](t||n,n[i],i,n));i++);}catch(o){}}function Ue(n,e,t){if(n){if(n[ue])return n[ue](e,t);var r=n[M],t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in n&&n[i]===e)return i}catch(o){}}return-1}function Re(n,e,t){if(n){if(n.map)return n.map(e,t);var r=n[M],i=t||n,o=Array(r);try{for(var u=0;u<r;u++)u in n&&(o[u]=e[d](i,n[u],n))}catch(a){}}return o}function je(n,e,t){var r;if(n){if(n.reduce)return n.reduce(e,t);var i=n[M],o=0;if(3<=arguments[M])r=t;else{for(;o<i&&!(o in n);)o++;r=n[o++]}for(;o<i;)o in n&&(r=e(r,n[o],o,n)),o++}return r}function I(n){return n&&(pe&&n[ae]?n[ae]():n[An]?n[An](/^\s+|\s+$/g,g):n)}var Ve=!{toString:null}.propertyIsEnumerable("toString"),ze=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function He(n){var e=typeof n;if(e===w||e===u&&null!==n||K("objKeys called on non-object"),!Ve&&ve)return ve(n);var t,r=[];for(t in n)n&&H[d](n,t)&&r[O](t);if(Ve)for(var i=ze[M],o=0;o<i;o++)n&&H[d](n,ze[o])&&r[O](ze[o]);return r}function Be(n,e,t,r){if(fe)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),fe(n,e,i),!0}catch(o){}return!1}function qe(n){return n}var Ke=se||qe,ce=de||qe;function We(){var n=Date;return n.now?n.now():(new n).getTime()}function Ge(n){return Oe(n)?n[k]:g}function Je(n,e,t,r,i){var o=t;return!n||(o=n[e])===t||i&&!i(o)||r&&!r(t)||(n[e]=o=t),o}function Xe(n,e,t){var r;return n?!(r=n[e])&&U(r)&&(r=h(t)?{}:t,n[e]=r):r=h(t)?{}:t,r}function Qe(n,e){return U(n)?e:n}function $e(n){return!!n}function V(n){throw Error(n)}function Ze(n,e){var t=null,r=null;return R(n)?t=n:r=n,function(){var n=arguments;if(r=t?t():r)return r[e][On](r,n)}}function Ye(n,e,t,r,i){n&&e&&t&&(!1===i&&!h(n[e])||(n[e]=Ze(t,r)))}function nt(e,t,n,r){return e&&t&&y(e)&&S(n)&&j(n,function(n){b(n)&&Ye(e,n,t,n,r)}),e}function et(){var n=arguments,e=n[0]||{},t=n[M],r=!1,i=1;for(0<t&&Me(e)&&(r=e,e=n[i]||{},i++),y(e)||(e={});i<t;i++){var o,u,a,c,l=n[i],f=S(l),s=y(l);for(o in l)(f&&o in l||s&&H[d](l,o))&&(u=l[o],a=void 0,r&&u&&((a=S(u))||Fe(u))&&(c=e[o],a?S(c)||(c=[]):Fe(c)||(c={}),u=et(r,c,u)),u!==undefined&&(e[o]=u))}return e}function tt(n){var t={};return C(n,function(n,e){t[n]=e,t[e]=n}),n=t,se&&C(n,function(n,e){(S(e)||y(e))&&se(e)}),Ke(n)}var ge=tt({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),rt="constructor",it="prototype",ot="function",ut="_dynInstFuncs",at="_isDynProxy",ct="_dynClass",lt="_dynInstChk",ft=lt,st="_dfOpts",dt="_unknown_",vt="__proto__",gt="_dyn"+vt,pt="_dynInstProto",mt="useBaseInst",ht="setInstFuncs",yt=Object,Ct=yt.getPrototypeOf,St=yt.getOwnPropertyNames,bt=0;function It(n,e){return n&&yt[it].hasOwnProperty.call(n,e)}function xt(n){return n&&(n===yt[it]||n===Array[it])}function Tt(n){return xt(n)||n===Function[it]}function wt(n){if(n){if(Ct)return Ct(n);var e=n[vt]||n[it]||(n[rt]?n[rt][it]:null),t=n[gt]||e;It(n,gt)||(delete n[pt],t=n[gt]=n[pt]||n[gt],n[pt]=e)}return t}function Pt(n,e){var t=[];if(St)t=St(n);else for(var r in n)"string"==typeof r&&It(n,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)e(t[i])}function Et(n,e,t){return e!==rt&&typeof n[e]===ot&&(t||It(n,e))}function _t(n){throw new TypeError("DynamicProto: "+n)}function At(n,e){for(var t=n.length-1;0<=t;t--)if(n[t]===e)return 1}function Nt(n,e){return It(n,it)?n.name||e||dt:((n||{})[rt]||{}).name||e||dt}function z(n,r,e,t){It(n,it)||_t("theClass is an invalid class definition.");var i,o,u,a,c,l,f=n[it],s=(function(n){if(!Ct)return 1;for(var e=[],t=wt(r);t&&!Tt(t)&&!At(e,t);){if(t===n)return 1;e.push(t),t=wt(t)}}(f)||_t("["+Nt(n)+"] is not in class hierarchy of ["+Nt(r)+"]"),null),n=(It(f,ct)?s=f[ct]:(s="_dynCls$"+Nt(n,"_")+"$"+bt,bt++,f[ct]=s),z[st]),d=!!n[mt],v=(d&&t&&t[mt]!==undefined&&(d=!!t[mt]),o={},Pt(i=r,function(n){!o[n]&&Et(i,n,!1)&&(o[n]=i[n])}),o),d=(e(r,function(n,e,t,o){function r(n,e,t){var r,i=e[t];return i[at]&&o&&!1!==(r=n[ut]||{})[ft]&&(i=(r[e[ct]]||{})[t]||i),function(){return i.apply(n,arguments)}}for(var i={},u=(Pt(t,function(n){i[n]=r(e,t,n)}),wt(n)),a=[];u&&!Tt(u)&&!At(a,u);)Pt(u,function(n){!i[n]&&Et(u,n,!Ct)&&(i[n]=r(e,u,n))}),a.push(u),u=wt(u);return i}(f,r,v,d)),!!Ct&&!!n[ht]);u=f,e=s,a=r,c=v,n=!1!==(d=d&&t?!!t[ht]:d),xt(u)||(f=a[ut]=a[ut]||{},l=f[e]=f[e]||{},!1!==f[ft]&&(f[ft]=!!n),Pt(a,function(n){var t,r,i;Et(a,n,!1)&&a[n]!==c[n]&&(l[n]=a[n],delete a[n],It(u,n)&&(!u[n]||u[n][at])||(u[n]=(t=u,r=n,(i=function(){var n,e;return(function(n,e,t,r){var i=null;if(n&&It(t,ct)){var o=n[ut]||{};if((i=(o[t[ct]]||{})[e])||_t("Missing ["+e+"] "+ot),!i[lt]&&!1!==o[ft]){for(var u=!It(n,e),a=wt(n),c=[];u&&a&&!Tt(a)&&!At(c,a);){var l=a[e];if(l){u=l===r;break}c.push(a),a=wt(a)}try{u&&(n[e]=i),i[lt]=1}catch(f){o[ft]=!1}}}return i}(this,r,t,i)||(typeof(e=(e=t[n=r])===i?wt(t)[n]:e)!==ot&&_t("["+n+"] is not a "+ot),e)).apply(this,arguments)})[at]=1,i)))}))}var kt="window",Ot="navigator",Dt="location",Mt="console",Ft="performance",Lt="JSON",Ut="crypto",Rt="msCrypto",jt="msie",Vt="trident/",zt="XMLHttpRequest",Ht=null,Bt=null,qt=!(z[st]={setInstFuncs:!0,useBaseInst:!0}),Kt=null,Wt=null;function Gt(n,e){var t,r=!1;if(n){try{(r=e in n)||(t=n[s])&&(r=e in t)}catch(i){}if(!r)try{r=!h((new n)[e])}catch(i){}}return r}function i(n){var e=q();return e&&e[n]?e[n]:n===kt&&Jt()?window:null}function Jt(){return!(typeof window!==u||!window)}function Xt(){return Jt()?window:i(kt)}function Qt(){return!(typeof document!==u||!document)}function $t(){return Qt()?document:i("document")}function Zt(){return!(typeof navigator!==u||!navigator)}function Yt(){return Zt()?navigator:i(Ot)}function nr(){return!(typeof history!==u||!history)}function er(n){if(n&&qt){n=i("__mockLocation");if(n)return n}return typeof location===u&&location?location:i(Dt)}function tr(){return typeof console!==e?console:i(Mt)}function rr(){return i(Ft)}function ir(){return!!(typeof JSON===u&&JSON||null!==i(Lt))}function or(){return ir()?JSON||i(Lt):null}function ur(){return i(Ut)}function ar(){return i(Rt)}function cr(){var n=Yt();return!(!n||!n.product)&&"ReactNative"===n.product}function lr(){var n=Yt();return!n||n[Pn]===Bt&&null!==Ht||(n=((Bt=n[Pn])||g)[Fn](),Ht=r(n,jt)||r(n,Vt)),Ht}function fr(n){var e=Object[s].toString[d](n),t=g;return"[object Error]"===e?t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n[k]+"'":ir()&&(t=or().stringify(n)),e+t}function sr(){return Wt=null===Wt?Zt()&&!!Yt().sendBeacon:Wt}function dr(){return Kt=null===Kt&&(Kt=typeof XDomainRequest!==e)&&vr()?Kt&&!Gt(i(zt),"withCredentials"):Kt}function vr(){var n=!1;try{n=!!i(zt)}catch(e){}return n}function gr(n,e){if(n)for(var t=0;t<n[M];t++){var r=n[t];if(r[k]&&r[k]===e)return r}return{}}var pr,mr=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],hr=null;function yr(n){var e=hr;return(e=e||!0===n.disableDbgExt?e:hr||(n=i("Microsoft"),hr=n?n.ApplicationInsights:hr))?e.ChromeDbgExt:null}function Cr(n){return n?'"'+n[An](/\"/g,g)+'"':g}function Sr(n,e){var t,r=tr();r&&(t="log",R(r[t=r[n]?n:t])&&r[t](e))}Ir.dataType="MessageData";var br=Ir;function Ir(n,e,t,r){void 0===t&&(t=!1),this[pn]=n,this[mn]=(t?"AI: ":"AI (Internal): ")+n;t=g,ir()&&(t=or().stringify(r)),n=(e?" message:"+Cr(e):g)+(r?" props:"+Cr(t):g);this[mn]+=n}function xr(n,e){return(n||{})[D]||new Tr(e)}wr.__ieDyn=1;var Tr=wr;function wr(r){this.identifier="DiagnosticLogger",this.queue=[];var c,i,l,f,s=0,d={};z(wr,this,function(o){var n;function u(n,e){var t,r;l<=s||(r=!0,t="AITR_"+e[pn],d[t]?r=!1:d[t]=!0,r&&(n<=i&&(o.queue[O](e),s++,a(1===n?"error":"warn",e)),s===l&&(r=new br(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue[O](r),1===n?o[ne](t):o[ee](t))))}function a(n,e){var t=yr(r||{});t&&t[Sn]&&t[Sn](n,e)}c=Qe((n=r||{}).loggingLevelConsole,0),i=Qe(n.loggingLevelTelemetry,1),l=Qe(n.maxMessageLimit,25),f=Qe(n[Dn],!1),o.consoleLoggingLevel=function(){return c},o.telemetryLoggingLevel=function(){return i},o.maxInternalMessageLimit=function(){return l},o[Dn]=function(){return f},o.throwInternal=function(n,e,t,r,i){e=new br(e,t,i=void 0!==i&&i,r);if(f)throw fr(e);t=1===n?ne:ee;h(e[mn])?a("throw"+(1===n?"Critical":"Warning"),e):(i?(r=+e[pn],!d[r]&&n<=c&&(o[t](e[mn]),d[r]=!0)):n<=c&&o[t](e[mn]),u(n,e))},o[ee]=function(n){Sr("warn",n),a("warning",n)},o[ne]=function(n){Sr("error",n),a("error",n)},o.resetInternalMessageCount=function(){s=0,d={}},o[Mn]=u})}function Pr(n){return n||new Tr}function Er(n,e,t,r,i,o){void 0===o&&(o=!1),Pr(n).throwInternal(e,t,r,i,o)}function _r(n,e){Pr(n)[ee](e)}var Ar="ParentContextKey",Nr="ChildrenContextKey",kr=(Or.ParentContextKey="parent",Or.ChildrenContextKey="childEvts",Or);function Or(n,i,e){var t,o=this,u=!1;o.start=We(),o[k]=n,o[hn]=e,o[Rn]=function(){return!1},R(i)&&(u=Be(o,"payload",function(){return!t&&R(i)&&(t=i(),i=null),t})),o[jn]=function(n){return n?(n===Or[Ar]||n===Or[Nr]?o:o.ctx||{})[n]:null},o[l]=function(n,e){n&&(n===Or[Ar]?(o[n]||(o[Rn]=function(){return!0}),o[n]=e):n===Or[Nr]?o[n]=e:(o.ctx=o.ctx||{})[n]=e)},o[Vn]=function(){var n=0,e=o[jn](Or[Nr]);if(S(e))for(var t=0;t<e[M];t++){var r=e[t];r&&(n+=r[rn])}o[rn]=We()-o.start,o.exTime=o[rn]-n,o[Vn]=function(){},!u&&R(i)&&(o.payload=i())}}Mr.__ieDyn=1;var Dr=Mr;function Mr(e){this.ctx={},z(Mr,this,function(t){t.create=function(n,e,t){return new kr(n,e,t)},t.fire=function(n){n&&(n[Vn](),e&&R(e[Yn])&&e[Yn](n))},t[l]=function(n,e){n&&((t.ctx=t.ctx||{})[n]=e)},t[jn]=function(n){return(t.ctx||{})[n]}})}var Fr="CoreUtils.doPerf";function Lr(n,e,t,r,i){if(n)if(n=n[te]?n[te]():n){var o,u=void 0,a=n[jn](Fr);try{if(u=n.create(e(),r,i))return a&&u[l]&&(u[l](kr[Ar],a),a[jn]&&a[l]&&((o=a[jn](kr[Nr]))||(o=[],a[l](kr[Nr],o)),o[O](u))),n[l](Fr,u),t(u)}catch(c){u&&u[l]&&u[l]("exception",c)}finally{u&&n.fire(u),n[l](Fr,a)}}return t()}var Ur=4294967296,Rr=4294967295,jr=!1,Vr=123456789,zr=987654321;function Hr(n){n<0&&(n>>>=0),Vr=123456789+n&Rr,zr=987654321-n&Rr,jr=!0}function Br(){try{var n=2147483647&We();Hr((Math.random()*Ur^n)+n)}catch(e){}}function qr(n){return 0<n?Math.floor(Kr()/Rr*(n+1))>>>0:0}function Kr(n){var e=0,t=ur()||ar();return 0===(e=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Rr:e)&&lr()&&(jr||Br(),e=Wr()&Rr),0===e&&(e=Math.floor(Ur*Math.random()|0)),n||(e>>>=0),e}function Wr(n){var e=((zr=36969*(65535&zr)+(zr>>16)&Rr)<<16)+(65535&(Vr=18e3*(65535&Vr)+(Vr>>16)&Rr))>>>0&Rr|0;return n||(e>>>=0),e}function Gr(n){void 0===n&&(n=22);for(var e=Kr()>>>0,t=0,r=g;r[M]<n;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&e]||"",e>>>=6,5==++t&&(e=(Kr()<<2&4294967295|3&e)>>>0,t=0);return r}var Jr=N,Xr="."+Gr(6),Qr=0;function $r(n){return 1===n[kn]||9===n[kn]||!+n[kn]}function Zr(n,e){return Ae(n+Qr+++((e=void 0!==e&&e)?".2.8.5":g)+Xr)}function Yr(n){var o={id:Zr("_aiData-"+(n||g)+".2.8.5"),accept:$r,get:function(n,e,t,r){var i=n[o.id];return i?i[Ae(e)]:(r&&((i=function(n,e){var t=e[n.id];if(!t){t={};try{$r(e)&&!function(n,e,t){if(Jr)try{return Jr(n,e,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(e,n.id,t)&&(e[n.id]=t)}catch(r){}}return t}(o,n))[Ae(e)]=t),t)},kill:function(n,e){if(n&&n[e])try{delete n[e]}catch(t){}}};return o}var ni="toGMTString",ei="toUTCString",ti="cookie",ri="expires",ii="enabled",oi="isCookieUseDisabled",ui="disableCookiesUsage",ai="_ckMgr",ci=null,li=null,fi=null,si=$t(),di={},vi={};function gi(n){return!n||n.isEnabled()}function pi(n,e){var t,r;return n?t=n.getCookieMgr():e&&(t=e[xn][ai]||mi(e)),t||(n=(n||{})[D],(r=mi[ai]||vi[ai])||(r=mi[ai]=mi(e,n),vi[ai]=r),t=r),t}function mi(n,i){Je(t=(n=n||vi)[xn]=n[xn]||{},"domain",n.cookieDomain,Ee,U),Je(t,"path",n.cookiePath||"/",null,U),U(t[ii])&&(e=void 0,h(n[oi])||(e=!n[oi]),h(n[ui])||(e=!n[ui]),t[ii]=e);var e,t,l=t,f=l.path||"/",s=l.domain,r=!1!==l[ii],d=((n={isEnabled:function(){var n=r&&hi(i),e=vi[ai];return n&&e&&d!==e?gi(e):n}})[_n]=function(n){r=!1!==n},n.set=function(n,e,t,r,i){var o,u,a,c=!1;return gi(d)&&(o={},-1!==(a=(u=I(e||g))[Tn](";"))&&(u=I(e[wn](0,a)),o=yi(e[wn](a+1))),Je(o,"domain",r||s,$e,h),U(t)||(a=lr(),h(o[ri])&&0<(e=We()+1e3*t)&&((r=new Date).setTime(e),Je(o,ri,Ci(r,a?ni:ei)||Ci(r,a?ni:ei)||g,$e)),a||Je(o,"max-age",g+t,null,h)),(e=er())&&"https:"===e.protocol&&(Je(o,"secure",null,null,h),(li=null===li?!Ii((Yt()||{})[Pn]):li)&&Je(o,"SameSite","None",null,h)),Je(o,"path",i||f,null,h),(l.setCookie||bi)(n,Si(u,o)),c=!0),c},n.get=function(n){var e=g;return gi(d)?(l.getCookie||function(n){var e,t=g;return si&&(e=si[ti]||g,fi!==e&&(di=yi(e),fi=e),t=I(di[n]||g)),t})(n):e},n.del=function(n,e){return!!gi(d)&&d.purge(n,e)},n.purge=function(n,e){var t,r=!1;return hi(i)&&((t={}).path=e||"/",t[ri]="Thu, 01 Jan 1970 00:00:01 GMT",e=t,lr()||(e["max-age"]="0"),(l.delCookie||bi)(n,Si(g,e)),r=!0),r},n);return d[ai]=d}function hi(n){if(null===ci){ci=!1;try{ci=(si||{})[ti]!==undefined}catch(e){Er(n,2,68,"Cannot access document.cookie - "+Ge(e),{exception:fr(e)})}}return ci}function yi(n){var t={};return n&&n[M]&&j(I(n)[En](";"),function(n){var e;(n=I(n||g))&&(-1===(e=n[Tn]("="))?t[n]=null:t[I(n[wn](0,e))]=I(n[wn](e+1)))}),t}function Ci(n,e){return R(n[e])?n[e]():null}function Si(n,e){var t=n||g;return C(e,function(n,e){t+="; "+n+(U(e)?g:"="+e)}),t}function bi(n,e){si&&(si[ti]=n+"="+e)}function Ii(n){return!(!b(n)||!r(n,"CPU iPhone OS 12")&&!r(n,"iPad; CPU OS 12")&&!(r(n,"Macintosh; Intel Mac OS X 10_14")&&r(n,"Version/")&&r(n,"Safari"))&&(!r(n,"Macintosh; Intel Mac OS X 10_14")||!Ne(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!r(n,"Chrome/5")&&!r(n,"Chrome/6")&&(!r(n,"UnrealEngine")||r(n,"Chrome"))&&!r(n,"UCBrowser/12")&&!r(n,"UCBrowser/11"))}var xi="on",Ti="attachEvent",wi="addEventListener",Pi="detachEvent",Ei="removeEventListener",_i="events",Ai="visibilitychange",Ni="pagehide",ki="pageshow",Oi="beforeunload",Di=Zr("aiEvtPageHide"),Mi=Zr("aiEvtPageShow"),Fi=/\.[\.]+/g,Li=/[\.]+$/,Ui=1,Ri=Yr("events"),ji=/^([^.]*)(?:\.(.+)|)/;function Vi(n){return n&&n[An]?n.replace(/^\s*\.*|\.*\s*$/g,g):n}function zi(n,e){e&&(t=g,S(e)?(t=g,j(e,function(n){(n=Vi(n))&&("."!==n[0]&&(n="."+n),t+=n)})):t=Vi(e),t&&("."!==t[0]&&(t="."+t),n=(n||g)+t));var t,e=ji.exec(n||g)||[],n={};return n[p]=e[1],n.ns=(e[2]||g).replace(Fi,".").replace(Li,g)[En](".").sort().join("."),n}function Hi(n,e,t){n=Ri.get(n,_i,{},t=void 0===t||t);return n[e]||(n[e]=[])}function Bi(n,e,t,r){n&&e&&e[p]&&(n[Ei]?n[Ei](e[p],t,r):n[Pi]&&n[Pi](xi+e[p],t))}function qi(n,e,t,r){for(var i=e[M];i--;){var o=e[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(Bi(n,o.evtName,o[Ln],o.capture),e[vn](i,1))}}function Ki(n,e){return e?zi("xx",S(e)?[n].concat(e):[n,e]).ns[En]("."):n}function Wi(n,e,t,r,i){void 0===i&&(i=!1);var o,u,a=!1;if(n)try{var c,l=zi(e,r),f=l,s=t,d=i,v=!1;(u=n)&&f&&f[p]&&s&&(u[wi]?(u[wi](f[p],s,d),v=!0):u[Ti]&&(u[Ti](xi+f[p],s),v=!0)),(a=v)&&Ri.accept(n)&&((o={guid:Ui++,evtName:l})[Ln]=t,o.capture=i,c=o,Hi(n,l.type)[O](c))}catch(g){}return a}function Gi(n,e,t,r,i){if(void 0===i&&(i=!1),n)try{var o=zi(e,r),u=!1,a=n,c=function(n){return!((!o.ns||t)&&n[Ln]!==t)&&(u=!0)};(l=o)[p]?qi(a,Hi(a,l[p]),l,c):(C(f=Ri.get(a,_i,{}),function(n,e){qi(a,e,l,c)}),0===He(f)[M]&&Ri.kill(a,_i)),u||Bi(n,o,t,i)}catch(s){}var l,f}function Ji(n,e,t,r){return Wi(n,e,t,null,r=void 0!==r&&r)}function Xi(n,e,t,r){Gi(n,e,t,null,r=void 0!==r&&r)}function Qi(n,e,t){var r=!1,i=Xt(),i=(i&&(r=Wi(i,n,e,t),r=Wi(i.body,n,e,t)||r),$t());return i&&Wi(i,n,e,t)||r}function $i(n,e,t){var r=Xt(),r=(r&&(Gi(r,n,e,t),Gi(r.body,n,e,t)),$t());r&&Gi(r,n,e,t)}function Zi(n,e,t,r){var i=!1;return e&&n&&0<n[M]&&j(n,function(n){!n||t&&-1!==Ue(t,n)||(i=Qi(n,e,r)||i)}),i}function Yi(n,e,t,r){var i=!1;return e&&n&&S(n)&&!(i=Zi(n,e,t,r))&&t&&0<t[M]?Zi(n,e,null,r):i}function no(n,e,t){n&&S(n)&&j(n,function(n){n&&$i(n,e,t)})}function eo(n,e,t){return Yi([Oi,"unload",Ni],n,e,t)}function to(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[An](oo,function(n){var e=0|qr(15);return("x"===n?e:3&e|8).toString(16)})}function ro(){var n=rr();return n&&n.now?n.now():We()}function io(){for(var n,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=g,r=0;r<4;r++)t+=e[15&(n=Kr())]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(3&Kr())|0];return t[Nn](0,8)+t[Nn](9,4)+"4"+t[Nn](13,3)+i+t[Nn](16,3)+t[Nn](19,12)}var oo=/[xy]/g,de={Attach:Ji,AttachEvent:Ji,Detach:Xi,DetachEvent:Xi},uo=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,ao="00000000000000000000000000000000",co="0000000000000000";function lo(n,e,t){return!(!n||n[M]!==e||n===t||!n.match(/^[\da-f]*$/))}function fo(n,e,t){return lo(n,e)?n:t}function so(n){for(var e=(n=isNaN(n)||n<0||255<n?1:n).toString(16);e[M]<2;)e="0"+e;return e}function vo(n){var e;if(!n)return null;if(!(n=S(n)?n[0]||"":n)||!b(n)||8192<n[M])return null;n=uo.exec(I(n));return n&&"ff"!==n[1]&&n[2]!==ao&&n[3]!==co?((e={})[qn]=n[1],e[zn]=n[2],e[Hn]=n[3],e[Bn]=parseInt(n[4],16),e):null}function go(n){return lo(n,32,ao)}function po(n){return lo(n,16,co)}function mo(n){return!!(n&&lo(n[qn],2,"ff")&&lo(n[zn],32,ao)&&lo(n[Hn],16,co)&&lo(so(n[Bn]),2))}var ho=Yr("plugin");function yo(n){return ho.get(n,"state",{},!0)}function Co(t,r){for(var i,n=[],e=null,o=t[v]();o;){var u=o[fn]();u&&(e&&R(e[bn])&&R(u[m])&&e[bn](u),(R(u[nn])?u[nn]():(i=yo(u))[nn])||n[O](u),e=u,o=o[v]())}j(n,function(n){var e=t[L]();n[$](t.getCfg(),e,r,t[v]()),i=yo(n),n[L]||i[L]||(i[L]=e),i[nn]=!0,delete i[gn]})}function So(n){return n.sort(function(n,e){var t,r=0;return e?(t=R(e[m]),R(n[m])?r=t?n[Xn]-e[Xn]:1:t&&(r=-1)):r=n?1:-1,r})}var bo="TelemetryPluginChain",Io="_hasRun",xo="_getTelCtx",To=0;function wo(n,u,t,e){var r=null,i=[],o=(null!==e&&(r=e?function(n,e,t){for(;n;){if(n[fn]()===t)return n;n=n[v]()}return Ao([t],e[en]||{},e)}(n,t,e):n),{_next:function(){var n,e=r;return r=e?e[v]():null,e||(n=i)&&0<n[M]&&(j(n,function(n){try{n.func[d](n.self,n.args)}catch(e){Er(t[D],2,73,"Unexpected Exception during onComplete - "+fr(e))}}),i=[]),e},ctx:{core:function(){return t},diagLog:function(){return xr(t,u)},getCfg:function(){return u},getExtCfg:a,getConfig:function(n,e,t){void 0===t&&(t=!1);var r,n=a(n,null);return n&&!U(n[e])?r=n[e]:u&&!U(u[e])&&(r=u[e]),U(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(n){r=n},iterate:function(n){for(;e=o._next();){var e=e[fn]();e&&n(e)}},onComplete:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&i[O]({func:n,self:h(e)?o.ctx:e,args:t})}}});function a(n,e,t){var r,i,o;return void 0===e&&(e={}),void 0===t&&(t=0),(r=u&&(i=u[Jn])&&n?i[n]:r)?y(e)&&0!==t&&(o=et(!0,e,r),u&&2===t&&C(e,function(n){var e;U(o[n])&&!U(e=u[n])&&(o[n]=e)}),r=o):r=e,r}return o}function Po(n,t,r,e){var i=wo(n,t,r,e),o=i.ctx;return o[F]=function(n){var e=i._next();return e&&e[m](n,o),!e},o[In]=function(n,e){return Po((n=S(n=void 0===n?null:n)?Ao(n,t,r,e):n)||o[v](),t,r,e)},o}function Eo(n,t,e){var r=t[en]||{},i=wo(n,r,t,e),o=i.ctx;return o[F]=function(n){var e=i._next();return e&&e.unload(o,n),!e},o[In]=function(n,e){return Eo((n=S(n=void 0===n?null:n)?Ao(n,r,t,e):n)||o[v](),t,e)},o}function _o(n,t,e){var r=t[en]||{},i=wo(n,r,t,e).ctx;return i[F]=function(e){return i.iterate(function(n){R(n[Cn])&&n[Cn](i,e)})},i[In]=function(n,e){return _o((n=S(n=void 0===n?null:n)?Ao(n,r,t,e):n)||i[v](),t,e)},i}function Ao(n,e,t,r){var i,o=null,u=!r;return S(n)&&0<n[M]&&(i=null,j(n,function(n){(u=!u&&r===n||u)&&n&&R(n[m])&&(n=No(n,e,t),o=o||n,i&&i._setNext(n),i=n)})),r&&!o?Ao([r],e,t):o}function No(c,r,i){var l=null,o=R(c[m]),u=R(c[bn]),f=c?c[Y]+"-"+c[Xn]+"-"+To++:"Unknown-0-"+To++,a={getPlugin:function(){return c},getNext:function(){return l},processTelemetry:function(t,n){var e;s(n=n||(e=(e=c&&R(c[xo])?c[xo]():e)||Po(a,r,i)),function(n){if(!c||!o)return!1;var e=yo(c);return!e[gn]&&!e[Gn]&&(u&&c[bn](l),c[m](t,n),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||n[F](t)},unload:function(r,i){s(r,function(){var n,e,t=!1;return c&&(n=yo(c),e=c[L]||n[L],!c||e&&e!==r.core()||n[gn]||(n[L]=null,n[gn]=!0,n[nn]=!1,c[gn]&&!0===c[gn](r,i)&&(t=!0))),t},"unload",function(){},i[hn])||r[F](i)},update:function(r,i){s(r,function(){var n,e,t=!1;return c&&(n=yo(c),e=c[L]||n[L],!c||e&&e!==r.core()||n[gn]||c[Cn]&&!0===c[Cn](r,i)&&(t=!0)),t},"update",function(){},!1)||r[F](i)},_id:f,_setNext:function(n){l=n}};function s(t,r,i,n,e){var o=!1,u=c?c[Y]:bo,a=(a=t[Io])||(t[Io]={});return t.setNext(l),c&&Lr(t[L](),function(){return u+":"+i},function(){a[f]=!0;try{var n=l?l._id:g;n&&(a[n]=!1),o=r(t)}catch(e){n=!l||a[l._id];n&&(o=!0),l&&n||Er(t[Sn](),1,73,"Plugin ["+u+"] failed during "+i+" - "+fr(e)+", run flags: "+fr(a))}},n,e),o}return Ke(a)}var ko=500,Oo="Channel has invalid priority - ";function Do(n,e,t){e&&S(e)&&0<e[M]&&(j(e=e.sort(function(n,e){return n[Xn]-e[Xn]}),function(n){n[Xn]<ko&&V(Oo+n[Y])}),n[O]({queue:Ke(e),chain:Ao(e,t[en],t)}))}function Mo(){var e=[];return{add:function(n){n&&e[O](n)},run:function(t,r){j(e,function(n){try{n(t,r)}catch(e){Er(t[Sn](),2,73,"Unexpected error calling unload handler - "+fr(e))}}),e=[]}}}var Fo="getPlugin",N=(Lo.__ieDyn=1,Lo);function Lo(){var i,o,l,f,s,u=this;function e(n){var e,n=n=void 0===n?null:n;return n||(e=o||Po(null,{},u[L]),n=l&&l[Fo]?e[In](null,l[Fo]):e[In](null,l)),n}function a(n,e,t){n&&Je(n,Jn,[],null,U),!t&&e&&(t=e[on]()[v]());var r=l;l&&l[Fo]&&(r=l[Fo]()),u[L]=e,o=Po(t,n,e,r)}function d(){i=!1,u[L]=null,l=o=null,s=[],f=Mo()}d(),z(Lo,u,function(c){c[$]=function(n,e,t,r){a(n,e,r),i=!0},c[gn]=function(n,e){var t,r,i,o,u=c[L];if(u&&(!n||u===n[L]()))return r=!1,i=n||Eo(null,u,l&&l[Fo]?l[Fo]():l),o=e||((n={reason:0})[hn]=!1,n),c[yn]&&!0===c[yn](i,o,a)?t=!0:a(),t;function a(){var n;r||(r=!0,f.run(i,e),n=s,s=[],j(n,function(n){n.rm()}),!0===t&&i[F](o),d())}},c[Cn]=function(n,e){var t,r,i,o=c[L];if(o&&(!n||o===n[L]()))return r=!1,i=n||_o(null,o,l&&l[Fo]?l[Fo]():l),c._doUpdate&&!0===c._doUpdate(i,e||{reason:0},u)?t=!0:u(),t;function u(){r||(r=!0,a(i.getCfg(),i.core(),i[v]()))}},c._addHook=function(n){n&&(S(n)?s=s.concat(n):s[O](n))},Ye(c,"_addUnloadCb",function(){return f},"add")}),u[Sn]=function(n){return e(n)[Sn]()},u[nn]=function(){return i},u.setInitialized=function(n){i=n},u[bn]=function(n){l=n},u[F]=function(n,e){e?e[F](n):l&&R(l[m])&&l[m](n,null)},u._getTelCtx=e}X(jo,Uo=N),jo.__ieDyn=1;var Uo,Ro=jo;function jo(){var e,c,n=Uo.call(this)||this;function t(){e=0,c=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,t(),z(jo,n,function(a,n){a.addTelemetryInitializer=function(n){var t={id:e++,fn:n};return c[O](t),{remove:function(){j(c,function(n,e){if(n.id===t.id)return c[vn](e,1),-1})}}},a[m]=function(n,e){for(var t=!1,r=c[M],i=0;i<r;++i){var o=c[i];if(o)try{if(!1===o.fn[On](null,[n])){t=!0;break}}catch(u){Er(e[Sn](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ge(u),{exception:fr(u)},!0)}}t||a[F](n,e)},a[yn]=function(){t()}}),n}var Vo="Plugins must provide initialize method",zo="_notificationManager",Ho="SDK is still unloading...",Bo={loggingLevelConsole:1};function qo(n,e){return new Dr(e)}function Ko(e,n){var t=!1;return j(n,function(n){if(n===e)return t=!0,-1}),t}Go.__ieDyn=1;var Wo=Go;function Go(){var y,v,t,i,r,o,u,C,S,b,I,x,T,g,w,P,n,E,_,A,N=0;z(Go,this,function(p){function a(){y=et(!(v=!1),{},Bo),p[en]=y,p[D]=new Tr(y),p[dn]=[],w=new Ro,t=[],g=!(S=[]),n=Zr("AIBaseCore",!(P=T=x=I=b=C=u=o=r=i=null)),E=Mo(),A=null}function m(){return Po(h(),y,p)}function c(n){r=p[D],i=ko,o=[],u={},j(d=S,function(n){(U(n)||U(n[$]))&&V(Vo);var e=n[Xn],t=n[Y];n&&e&&(U(u[e])?u[e]=t:_r(r,"Two extensions have same priority #"+e+" - "+u[e]+", "+t)),(!e||e<i)&&o[O](n)}),(d={all:d})[L]=o;b=d[L],C=null;var r,i,o,u,e,t,a,c,l,f,s,d=d.all;function v(){return Po(null,f[en],f,null)}function g(n,e,t,r){var i=n?n[M]+1:1;function o(){0==--i&&(r&&r(),r=null)}0<i&&j(n,function(n){n&&0<n.queue[M]?(n=n.chain,(n=e[In](n))[ln](o),t(n)):i--}),o()}T=Ke((c=d,e=p,a=[],x&&j(x,function(n){return Do(a,n,e)}),c&&(t=[],j(c,function(n){n[Xn]>ko&&t[O](n)}),Do(a,t,e)),a)),I?(-1!==(c=Ue(d,I))&&d[vn](c,1),-1!==(c=Ue(b,I))&&b[vn](c,1),I._setQueue(T)):(l=T,f=p,s=!1,I={identifier:"ChannelControllerPlugin",priority:ko,initialize:function(e,t,r,n){s=!0,j(l,function(n){n&&0<n.queue[M]&&Co(Po(n.chain,e,t),r)})},isInitialized:function(){return s},processTelemetry:function(e,n){g(l,n||v(),function(n){n[F](e)},function(){n[F](e)})},update:function(n,e){var t=e||{reason:0};return g(l,n,function(n){n[F](t)},function(){n[F](t)}),!0},pause:function(){g(l,v(),function(n){n.iterate(function(n){n.pause&&n.pause()})},null)},resume:function(){g(l,v(),function(n){n.iterate(function(n){n.resume&&n.resume()})},null)},teardown:function(n,e){var t=e||{reason:0,isAsync:!1};return g(l,n,function(n){n[F](t)},function(){n[F](t),s=!1}),!0},getChannel:function(e){var t=null;return l&&0<l[M]&&j(l,function(n){if(n&&0<n.queue[M]&&(j(n.queue,function(n){if(n[Y]===e)return t=n,-1}),t))return-1}),t},flush:function(t,n,r,i){var o=1,e=!1,u=null;function a(){o--,e&&0===o&&(u&&(clearTimeout(u),u=null),n&&n(e),n=null)}return i=i||5e3,g(l,v(),function(n){n.iterate(function(n){var e;n[sn]&&(o++,e=!1,n[sn](t,function(){e=!0,a()},r)||e||(t&&null==u?u=setTimeout(function(){u=null,a()},i):a()))})},function(){e=!0,a()}),!0},_setQueue:function(n){l=n}}),d[O](I),b[O](I),p[dn]=So(d),I[$](y,p,d),Co(m(),d),p[dn]=Ke(So(b||[])).slice(),n&&(c=n,d=_o(h(),p),p._updateHook&&!0===p._updateHook(d,c)||d[F](c))}function l(e){var n,t=null,i=null;return j(p[dn],function(n){if(n[Y]===e&&n!==I&&n!==w)return i=n,-1}),(i=!i&&I?I.getChannel(e):i)&&((n={plugin:i})[_n]=function(n){yo(i)[Gn]=!n},n.isEnabled=function(){var n=yo(i);return!n[gn]&&!n[Gn]},n.remove=function(n,e){var t,r=[i];(t={reason:1})[hn]=n=void 0===n||n,f(r,t,function(n){n&&c({reason:32,removed:r}),e&&e(n)})},t=n),t}function h(){var n;return C||(-1===Ue(n=(b||[]).slice(),w)&&n[O](w),C=Ao(So(n),y,p)),C}function f(o,n,e){var t;o&&0<o[M]?((t=Eo(Ao(o,y,p),p))[ln](function(){var r=!1,t=[],i=(j(S,function(n,e){Ko(n,o)?r=!0:t[O](n)}),S=t,[]);x&&(j(x,function(n,e){var t=[];j(n,function(n){Ko(n,o)?r=!0:t[O](n)}),i[O](t)}),x=i),e&&e(r)}),t[F](n)):e(!1)}function e(){var n=p[D]?p[D].queue:[];n&&(j(n,function(n){(e={})[k]=P||"InternalMessageId: "+n[pn],e.iKey=Qe(y[tn]),e.time=Le(new Date),e.baseType=br.dataType,e.baseData={message:n[mn]};var e,n=e;p.track(n)}),n[M]=0)}function s(n,e,t,r){return I?I[sn](n,e,t||6,r):(e&&e(!1),!0)}function d(n){var e=p[D];e?Er(e,2,73,n):V(n)}a(),p[nn]=function(){return v},p[$]=function(n,e,t,r){g&&V(Ho),p[nn]()&&V("Core should not be initialized more than once"),y=n||{},p[en]=y,U(n[tn])&&V("Please provide instrumentation key"),i=r,p[zo]=r;n=Qe(y.disableDbgExt),!0===n&&_&&(i[an](_),_=null),i&&!_&&!0!==n&&(_=function(n){if(!pr){pr={};for(var e=0;e<mr[M];e++)pr[mr[e]]=function(e,t){return function(){var n=yr(t);n&&(n=n.listener)&&n[e]&&n[e][On](n,arguments)}}(mr[e],n)}return pr}(y),i[un](_)),r=Qe(y.enablePerfMgr),!r&&o&&(o=null),r&&Xe(y,Wn,qo),Xe(y,Jn,{}).NotificationManager=i,t&&(p[D]=t),n=Xe(y,"extensions",[]);(S=[])[O].apply(S,Q(Q([],e),n)),x=Xe(y,Kn,[]),c(null),T&&0!==T[M]||V("No "+Kn+" available"),v=!0,p.releaseQueue()},p.getTransmissionControls=function(){var e=[];return T&&j(T,function(n){e[O](n.queue)}),Ke(e)},p.track=function(n){n.iKey=n.iKey||y[tn],n[rn]=n[rn]||Le(new Date),n.ver=n.ver||"4.0",!g&&p[nn]()?m()[F](n):t[O](n)},p[on]=m,p[Z]=function(){var n;return i||(i=W(((n={})[un]=function(n){},n[an]=function(n){},n[Qn]=function(n){},n[$n]=function(n,e){},n[Zn]=function(n,e){},n)),p[zo]=i),i},p[un]=function(n){i&&i[un](n)},p[an]=function(n){i&&i[an](n)},p.getCookieMgr=function(){return u=u||mi(y,p[D])},p.setCookieMgr=function(n){u=n},p[te]=function(){var n;return r||o||!Qe(y.enablePerfMgr)||R(n=Qe(y[Wn]))&&(o=n(p,p[Z]())),r||o||null},p.setPerfMgr=function(n){r=n},p.eventCnt=function(){return t[M]},p.releaseQueue=function(){var n;v&&0<t[M]&&(n=t,t=[],j(n,function(n){m()[F](n)}))},p.pollInternalLogs=function(n){P=n||null;n=Qe(y.diagnosticLogInterval);return n&&0<n||(n=1e4),N&&clearInterval(N),N=setInterval(function(){e()},n)},p[cn]=function(){N&&(clearInterval(N),N=0,e())},nt(p,function(){return w},["addTelemetryInitializer"]),p.unload=function(n,e,t){v||V("SDK is not initialized"),g&&V(Ho),(r={reason:50})[hn]=n=void 0===n||n,r.flushComplete=!1;var r,i=r,o=Eo(h(),p);function u(n){i.flushComplete=n,g=!0,E.run(o,i),p[cn](),o[F](i)}o[ln](function(){a(),e&&e(i)},p),s(n,u,6,t)||u(!1)},p[fn]=l,p.addPlugin=function(n,e,t,r){if(!n)return r&&r(!1),void d(Vo);var i=l(n[Y]);if(i&&!e)return r&&r(!1),void d("Plugin ["+n[Y]+"] is already loaded!");var o,u={reason:16};function a(){S[O](n),u.added=[n],c(u),r&&r(!0)}i?f(o=[i.plugin],{reason:2,isAsync:!!t},function(n){n?(u.removed=o,u.reason|=32,a()):r&&r(!1)}):a()},p.evtNamespace=function(){return n},p[sn]=s,p.getTraceCtx=function(n){var e;return A||(e={},A={getName:function(){return e[k]},setName:function(n){e[k]=n},getTraceId:function(){return e[zn]},setTraceId:function(n){go(n)&&(e[zn]=n)},getSpanId:function(){return e[Hn]},setSpanId:function(n){po(n)&&(e[Hn]=n)},getTraceFlags:function(){return e[Bn]},setTraceFlags:function(n){e[Bn]=n}}),A},p.setTraceCtx=function(n){A=n||null},Ye(p,"addUnloadCb",function(){return E},"add")})}function Jo(n,t,r,i){j(n,function(n){if(n&&n[t])if(r)setTimeout(function(){return i(n)},0);else try{i(n)}catch(e){}})}Qo.__ieDyn=1;var Xo=Qo;function Qo(n){this.listeners=[];var t=!!(n||{}).perfEvtsSendAll;z(Qo,this,function(r){r[un]=function(n){r.listeners[O](n)},r[an]=function(n){for(var e=Ue(r[Un],n);-1<e;)r.listeners[vn](e,1),e=Ue(r[Un],n)},r[Qn]=function(e){Jo(r[Un],Qn,!0,function(n){n[Qn](e)})},r[$n]=function(e,t){Jo(r[Un],$n,!0,function(n){n[$n](e,t)})},r[Zn]=function(e,t){Jo(r[Un],Zn,t,function(n){n[Zn](e,t)})},r[Yn]=function(e){!e||!t&&e[Rn]()||Jo(r[Un],Yn,!1,function(n){e[hn]?setTimeout(function(){return n[Yn](e)},0):n[Yn](e)})}})}X(Yo,$o=Wo),Yo.__ieDyn=1;var $o,Zo=Yo;function Yo(){var n=$o.call(this)||this;return z(Yo,n,function(t,i){function r(n){var e=t[Z]();e&&e[$n]([n],2)}t[$]=function(n,e,t,r){i[$](n,e,t||new Tr(n),r||new Xo(n))},t.track=function(e){Lr(t[te](),function(){return"AppInsightsCore:track"},function(){var n;null===e&&(r(e),V("Invalid telemetry item")),U((n=e)[k])&&(r(n),V("telemetry name required")),i.track(e)},function(){return{item:e}},!e.sync)}}),n}var o="Failed",nu=o+"MonitorAjax",a="Track",c="Event",eu="AuthContext",tu="Exception",ru="Local",iu="Session",f="Storage",ou="Browser",uu="Cannot",au="Buffer",cu="InstrumentationKey",lu=tt({CRITICAL:1,WARNING:2}),uu=tt(((x={})[ou+"DoesNotSupport"+ru+f]=0,x[ou+uu+"Read"+ru+f]=1,x[ou+uu+"Read"+iu+f]=2,x[ou+uu+"Write"+ru+f]=3,x[ou+uu+"Write"+iu+f]=4,x[ou+o+"RemovalFrom"+ru+f]=5,x[ou+o+"RemovalFrom"+iu+f]=6,x.CannotSendEmptyTelemetry=7,x.ClientPerformanceMathError=8,x.ErrorParsingAISessionCookie=9,x.ErrorPVCalc=10,x[tu+"WhileLoggingError"]=11,x[o+"AddingTelemetryTo"+au]=12,x[nu+"Abort"]=13,x[nu+"Dur"]=14,x[nu+"Open"]=15,x[nu+"RSC"]=16,x[nu+"Send"]=17,x[nu+"GetCorrelationHeader"]=18,x.FailedToAddHandlerForOnBeforeUnload=19,x.FailedToSendQueuedTelemetry=20,x.FailedToReportDataLoss=21,x.FlushFailed=22,x.MessageLimitPerPVExceeded=23,x.MissingRequiredFieldSpecification=24,x.NavigationTimingNotSupported=25,x.OnError=26,x[iu+"RenewalDateIsZero"]=27,x.SenderNotInitialized=28,x["Start"+a+c+o]=29,x["Stop"+a+c+o]=30,x["Start"+a+o]=31,x["Stop"+a+o]=32,x.TelemetrySampledAndNotSent=33,x[a+c+o]=34,x[a+tu+o]=35,x[a+"Metric"+o]=36,x[a+"PV"+o]=37,x.TrackPVFailedCalc=38,x[a+"Trace"+o]=39,x.TransmissionFailed=40,x[o+"ToSet"+f+au]=41,x[o+"ToRestore"+f+au]=42,x.InvalidBackendResponse=43,x.FailedToFixDepricatedValues=44,x.InvalidDurationValue=45,x.TelemetryEnvelopeInvalid=46,x.CreateEnvelopeError=47,x.CannotSerializeObject=48,x.CannotSerializeObjectNonSerializable=49,x.CircularReferenceDetected=50,x["Clear"+eu+o]=51,x[tu+"Truncated"]=52,x.IllegalCharsInName=53,x.ItemNotInArray=54,x.MaxAjaxPerPVExceeded=55,x.MessageTruncated=56,x.NameTooLong=57,x.SampleRateOutOfRange=58,x["Set"+eu+o]=59,x["Set"+eu+o+"AccountName"]=60,x.StringValueTooLong=61,x.StartCalledMoreThanOnce=62,x.StopCalledWithoutStart=63,x.TelemetryInitializerFailed=64,x.TrackArgumentsNotSpecified=65,x.UrlTooLong=66,x[iu+f+au+"Full"]=67,x.CannotAccessCookie=68,x.IdTooLong=69,x.InvalidEvent=70,x[nu+"SetRequestHeader"]=71,x.SendBrowserInfoOnUserInit=72,x["Plugin"+tu]=73,x["Notification"+tu]=74,x.SnippetScriptLoadFailure=99,x["Invalid"+cu]=100,x.CannotParseAiBlobValue=101,x.InvalidContentBlob=102,x[a+"PageAction"+c+o]=103,x.FailedAddingCustomDefinedRequestContext=104,x["InMemory"+f+au+"Full"]=105,x[cu+"Deprecation"]=106,x)),ru=tt({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}),ou=tt({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),eu=tt({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),iu=tt({Normal:1,Critical:2}),nu=tt({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),tu=Ke(G(G({},uu),tt({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}))),fu="",su="https://browser.events.data.microsoft.com/OneCollector/1.0/",du="version",vu="properties",a="3.2.4",gu="1DS-Web-JS-"+a,pu="withCredentials",mu=((c={})[0]=0,c[2]=6,c[1]=1,c[3]=7,c[4098]=6,c[4097]=1,c[4099]=7,c),hu=null,yu=!!$t(),o=!!Xt();function Cu(n){return!(n===fu||U(n))}function Su(n){if(n){var e=n.indexOf("-");if(-1<e)return n.substring(0,e)}return fu}function bu(){return hu=null===hu?!h(Uint8Array)&&!function(){var n=Yt();if(!h(n)&&n.userAgent)return!~(n=n.userAgent.toLowerCase()).indexOf("safari")&&!~n.indexOf("firefox")||~n.indexOf("chrome")?void 0:1}()&&!cr():hu}function Iu(n){return!!(n&&De(n)&&1<=n&&n<=4)}function xu(n,e,t){if(!e&&!Cu(e)||"string"!=typeof n)return null;n=typeof e;if("string"==n||"number"==n||"boolean"==n||S(e))e={value:e};else if("object"!=n||H.call(e,"value")){if(U(e.value)||e.value===fu||!b(e.value)&&!De(e.value)&&!Me(e.value)&&!S(e.value))return null}else e={value:t?JSON.stringify(e):e};if(S(e.value)&&!Mu(e.value))return null;if(!U(e.kind)){if(S(e.value)||!Du(e.kind))return null;e.value=e.value.toString()}return e}function Tu(n,e,t){var r=-1;return h(n)||(0<e&&(32===e?r=8192:e<=13&&(r=e<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=mu[Lu(n)]||-1,-1!==r&&-1!==e?r|=e:6===e&&(r=e))),r}function wu(){pi(null).setEnabled(!1)}function Pu(n,e,t){hi(null)&&pi(null).set(n,e,86400*t,null,"/")}function Eu(n){hi(null)&&pi(null).del(n)}function _u(n){return hi(null)?Au(pi(null),n):fu}function Au(n,e,t){var r;return void 0===t&&(t=!0),n&&(r=n.get(e),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||fu}function Nu(n){void 0===n&&(n="D");var e=to();return"B"===n?e="{"+e+"}":"P"===n?e="("+e+")":"N"===n&&(e=e.replace(/-/g,fu)),e}function ku(n,e,t,r,i){var o={},u=!1,a=0,c=arguments.length,l=Object[s],f=arguments;for("[object Boolean]"===l.toString.call(f[0])&&(u=f[0],a++);a<c;a++)C(f[a],function(t,n){u&&n&&y(n)?S(n)?(o[t]=o[t]||[],j(n,function(n,e){n&&y(n)?o[t][e]=ku(!0,o[t][e],n):o[t][e]=n})):o[t]=ku(!0,o[t],n):o[t]=n});return o}var Ou=ro;function Du(n){return 0===n||0<n&&n<=13||32===n}function Mu(n){return 0<n.length}function Fu(n,e){n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[e]=Ou()}function Lu(n){var e,t=0;return null!==n&&n!==undefined&&("string"==(e=typeof n)?t=1:"number"==e?t=2:"boolean"==e?t=3:e===u&&(t=4,S(n)?(t=4096,0<n.length&&(t|=Lu(n[0]))):H.call(n,"value")&&(t=8192|Lu(n.value)))),t}var Uu,f={Version:a,FullVersionString:gu,strUndefined:e,strObject:u,Undefined:e,arrForEach:j,arrIndexOf:Ue,arrMap:Re,arrReduce:je,objKeys:He,toISOString:Le,isReactNative:cr,isString:b,isNumber:De,isBoolean:Me,isFunction:R,isArray:S,isObject:y,strTrim:I,isDocumentObjectAvailable:yu,isWindowObjectAvailable:o,isValueAssigned:Cu,getTenantId:Su,isBeaconsSupported:sr,isUint8ArrayAvailable:bu,isLatency:Iu,sanitizeProperty:xu,getISOString:Le,useXDomainRequest:dr,getCommonSchemaMetaData:Tu,cookieAvailable:hi,disallowsSameSiteNone:Ii,setCookie:Pu,deleteCookie:Eu,getCookie:_u,createGuid:Nu,extend:ku,getTime:Ou,isValueKind:Du,isArrayValid:Mu,objDefineAccessors:Be,addPageUnloadEventListener:eo,setProcessTelemetryTimings:Fu,addEventHandler:Qi,getFieldValueType:Lu,strEndsWith:Ne,objForEachKey:C},au={_canUseCookies:undefined,isTypeof:Pe,isUndefined:h,isNullOrUndefined:U,hasOwnProperty:_e,isFunction:R,isObject:y,isDate:ke,isArray:S,isError:Oe,isString:b,isNumber:De,isBoolean:Me,toISOString:Le,arrForEach:j,arrIndexOf:Ue,arrMap:Re,arrReduce:je,strTrim:I,objCreate:W,objKeys:He,objDefineAccessors:Be,addEventHandler:Qi,dateNow:We,isIE:lr,disableCookies:wu,newGuid:to,perfNow:ro,newId:Gr,randomValue:qr,random32:Kr,mwcRandomSeed:function(n){n?Hr(n):Br()},mwcRandom32:Wr,generateW3CId:io};function Ru(){var n=Uu.call(this)||this;return n.pluginVersionStringArr=[],z(Ru,n,function(c,l){c.logger&&c.logger.queue||(c.logger=new Tr({loggingLevelConsole:1})),c.initialize=function(i,o,u,a){Lr(c,function(){return"AppInsightsCore.initialize"},function(){var e=c.pluginVersionStringArr;i&&(i.endpointUrl||(i.endpointUrl=su),!(n=i.propertyStorageOverride)||n.getProperty&&n.setProperty||V("Invalid property storage override passed."),i.channels&&j(i.channels,function(n){n&&j(n,function(n){n.identifier&&n.version&&(n=n.identifier+"="+n.version,e.push(n))})})),c.getWParam=function(){return"undefined"!=typeof document?0:-1},o&&j(o,function(n){n&&n.identifier&&n.version&&(n=n.identifier+"="+n.version,e.push(n))}),c.pluginVersionString=e.join(";"),c.pluginVersionStringArr=e;try{l.initialize(i,o,u,a),c.pollInternalLogs("InternalLog")}catch(r){var n=c.logger,t=fr(r);~t.indexOf("channels")&&(t+="\n - Channels must be provided through config.channels only!"),Er(n,1,514,"SDK Initialization Failed - no telemetry will be sent: "+t)}},function(){return{config:i,extensions:o,logger:u,notificationManager:a}})},c.track=function(t){Lr(c,function(){return"AppInsightsCore.track"},function(){var n,e=t;e&&(e.timings=e.timings||{},e.timings.trackStart=Ou(),Iu(e.latency)||(e.latency=1),(n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=gu,(n=e.baseData=e.baseData||{})[vu]=n[vu]||{},(n=n[vu])[du]=c.pluginVersionString||n[du]||fu),l.track(e)},function(){return{item:t}},!t.sync)}}),n}X(Ru,Uu=Zo),Ru.__ieDyn=1;var ju,cu=Ru;function Vu(){var n=ju.call(this)||this;return z(Vu,n,function(o,u){o.initialize=function(n,e,t,r){n&&!n.endpointUrl&&(n.endpointUrl=su),o.getWParam=function(){return yu?0:-1};try{u.initialize(n,e,t,r)}catch(i){Er(o.logger,1,514,"Initialization Failed: "+fr(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(n){var e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=gu),u.track(n)}}),n}X(Vu,ju=Wo),Vu.__ieDyn=1;var x=Vu,zu=R;function T(n){var u=0,a=null,e=[];function i(t,r,i,o){e.push(function(){var n;try{(n=1===u?zu(t)?t(a):a:zu(r)?r(a):a)instanceof T?n.then(i,o):(2!==u||zu(r)?i:o)(n)}catch(e){return void o(e)}}),0!==u&&c()}function c(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var n=0,e=r.length;n<e;++n)try{r[n]()}catch(t){}},0))}function t(n){0===u&&(a=n,u=2,c())}if(z(T,this,function(e){e.then=function(t,r){return new T(function(n,e){i(t,r,n,e)})},e["catch"]=function(n){return e.then(null,n)}}),!zu(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(function(n){0===u&&(a=n,u=1,c())},t)}catch(r){t(r)}}T.resolve=function(r){return r instanceof T?r:r&&zu(r.then)?new T(function(n,e){try{r.then(n,e)}catch(t){e(t)}}):new T(function(n){n(r)})},T.reject=function(t){return new T(function(n,e){e(t)})},T.all=function(a){if(a&&a.length)return new T(function(r,n){try{for(var i=[],o=0,e=0;e<a.length;e++){var t=a[e];t&&zu(t.then)?(o++,t.then(function(e,t){return function(n){e[t]=n,0==--o&&r(i)}}(i,e),n)):i[e]=t}0===o&&setTimeout(function(){r(i)},0)}catch(u){n(u)}})},T.race=function(i){return new T(function(e,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var n=i[r];n&&zu(n.then)?n.then(e,t):setTimeout(function(){e(n)},0)}()}catch(n){t(n)}})};var Hu=T,Bu=0,qu=[],Ku=[],Wu=[];function Gu(){return(new Date).getTime()}function Ju(n,e){var m=0,h=(n||"<unnamed>")+"."+Bu;function y(n){var e=q();e&&e.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+n)}function C(n){_r(e,"ESPromiseScheduler["+h+"] "+n)}Bu++,z(Ju,this,function(n){var v=null,g=0;function p(n,e){for(var t=0;t<n.length;t++)if(n[t].id===e)return n.splice(t,1)[0];return null}n.scheduleEvent=function(t,n,a){var i,o,e,u=h+"."+g,n=(g++,n&&(u+="-("+n+")"),u+"{"+m+"}"),r=(m++,{evt:null,tm:Gu(),id:n,isRunning:!1,isAborted:!1});return r.evt=v?(i=r,o=v,e=new Hu(function(e,t){var n=Gu()-o.tm,r=o.id;y("["+u+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+Ku.length+"] waiting and ["+qu.length+"] running"),i.abort=function(n){i.abort=null,p(Ku,u),i.isAborted=!0,t(Error(n))},o.evt.then(function(n){p(Ku,u),d(i).then(e,t)},function(n){p(Ku,u),d(i).then(e,t)})}),Ku.push(i),e):d(r),(v=r).evt._schId=n,r.evt;function c(n){for(var e=Gu(),t=e-6e5,r=n.length,i=0;i<r;){var o,u=n[i];u&&u.tm<t?(o=null,u.abort?(o="Aborting ["+u.id+"] due to Excessive runtime ("+(e-u.tm)+" ms)",u.abort(o)):o="Removing ["+u.id+"] due to Excessive runtime ("+(e-u.tm)+" ms)",C(o),n.splice(i,1),r--):i++}}function l(n,e){var t,r=!1,i=p(qu,n);i||(i=p(Wu,n),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Gu()-i.tm,e?r?C("Timed out event ["+n+"] finally complete -- "+t+" ms"):y("Promise ["+n+"] Complete -- "+t+" ms"):(Wu.push(i),C("Event ["+n+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+n+"] from running queue"),v&&v.id===n&&(v=null),c(qu),c(Ku),c(Wu)}function f(e,t){return function(n){return l(e,!0),t&&t(n),n}}function s(r,o){var u=r.id;return new Hu(function(e,t){y("Event ["+u+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(n){r.abort=null,r.isAborted=!0,l(u,!1),t(Error(n))};var n=o(u);n instanceof Hu?(a&&(r.to=setTimeout(function(){l(u,!1),t(Error("Timed out after ["+a+"] ms"))},a)),function i(e,n,t,r){n.then(function(n){return n instanceof Hu?(y("Event ["+e+"] returned a promise -- waiting"),i(e,n,t,r),n):f(e,t)(n)},f(e,r))}(u,n,function(n){y("Event ["+u+"] Resolving after "+(Gu()-r.tm)+" ms"),e(n)},t)):(y("Promise ["+u+"] Auto completed as the start action did not return a promise"),e())})}function d(n){var e=Gu();return n.wTm=e-n.tm,n.tm=e,n.isAborted?Hu.reject(Error("["+u+"] was aborted")):(qu.push(n),s(n,t))}}})}Ju.incomplete=function(){return qu},Ju.waitingToStart=function(){return Ku};G=Ju,Xu.getFieldType=Lu,c=Xu;function Xu(n){var c=this,o={},u=[],a=[];function l(n,e){var t=o[n];if(!(i=t?t[e]:i)&&null!==i){if(b(n)&&b(e))if(0<a.length){for(var r=0;r<a.length;r++)if(a[r].handleField(n,e)){i={canHandle:!0,fieldHandler:a[r]};break}}else 0===u.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<u.length;r++)if(u[r].handleField(n,e)){i={canHandle:!0,handler:u[r],fieldHandler:null};break}(t=t||(o[n]={}))[e]=i}return i}function f(n,e,t,r,i,o){if(n.handler)return n.handler.property(e,t,i,o);if(!U(i.kind)){if(4096==(4096&r)||!Du(i.kind))return null;i.value=i.value.toString()}return function a(r,i,o,n,e){var t,u;return e&&r&&(t=r.getSanitizer(i,o,n,e.kind,e.propertyType))&&(4===n?(u={},C(e.value,function(n,e){var t;Cu(e)&&(t=s(0,0,e),(t=a(r,i+"."+o,n,Lu(e),t))&&(u[n]=t.value))}),e.value=u):e=t.call(c,{path:i,name:o,type:n,prop:e,sanitizer:c})),e}(n.fieldHandler,e,t,r,i)}function s(n,e,t){return Cu(t)?{value:t}:null}n&&a.push(n),c.addSanitizer=function(n){n&&(u.push(n),o={})},c.addFieldSanitizer=function(n){n&&(a.push(n),o={})},c.handleField=function(n,e){n=l(n,e);return!!n&&n.canHandle},c.value=function(n,e,t,r){var i=l(n,e);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(n,e,t,r);if(!b(e)||U(t)||t===fu)return null;var o=null,u=Lu(t);if(8192==(8192&u)){var a=-8193&u;if(!Cu((o=t).value)||1!=a&&2!=a&&3!=a&&4096!=(4096&a))return null}else 1===u||2===u||3===u||4096==(4096&u)?o=s(0,0,t):4===u&&(o=s(0,0,r?JSON.stringify(t):t));if(o)return f(i,n,e,u,o,r)}return null},c.property=function(n,e,t,r){var i=l(n,e);if(!i||!i.canHandle)return null;if(!b(e)||U(t)||!Cu(t.value))return null;var o=Lu(t.value);return 0===o?null:f(i,n,e,o,t,r)}}n.AppInsightsCore=cu,n.BaseCore=x,n.BaseTelemetryPlugin=N,n.CoreUtils=au,n.DiagnosticLogger=Tr,n.ESPromise=Hu,n.ESPromiseScheduler=G,n.EventHelper=de,n.EventLatency=ou,n.EventPersistence=iu,n.EventPropertyType=eu,n.EventsDiscardedReason=ge,n.FullVersionString=gu,n.InternalAppInsightsCore=Zo,n.InternalBaseCore=Wo,n.LoggingSeverity=lu,n.MinChannelPriorty=100,n.NotificationManager=Xo,n.PerfEvent=kr,n.PerfManager=Dr,n.ProcessTelemetryContext=function(n,e,t,r){n=Po(n,e,t,r);nt(this,n,He(n))},n.TraceLevel=nu,n.Undefined=e,n.Utils=f,n.ValueKind=ru,n.ValueSanitizer=c,n.Version=a,n._ExtendedInternalMessageId=tu,n._InternalLogMessage=br,n._InternalMessageId=uu,n.__getRegisteredEvents=function(n,e,t){var r=[],n=Ri.get(n,_i,{},!1),i=zi(e,t);return C(n,function(n,e){j(e,function(n){var e;i[p]&&i[p]!==n.evtName[p]||i.ns&&i.ns!=i.ns||r[O](((e={})[k]=n.evtName[p]+(n.evtName.ns?"."+n.evtName.ns:g),e.handler=n[Ln],e))})}),r},n._logInternalMessage=function(n,e,t){Pr(n)[Mn](e,t)},n._throwInternal=Er,n._warnToConsole=_r,n.addEventHandler=Qi,n.addEventListeners=Yi,n.addPageHideEventListener=function Qu(t,n,e){var r=Ki(Di,e),i=Zi([Ni],t,n,r);return!(i=(!n||-1===Ue(n,Ai))&&Zi([Ai],function(n){var e=$t();t&&e&&"hidden"===e.visibilityState&&t(n)},n,r)||i)&&n?Qu(t,null,e):i},n.addPageShowEventListener=function $u(t,n,e){var r=Ki(Mi,e),i=Zi([ki],t,n,r);return!(i=Zi([Ai],function(n){var e=$t();t&&e&&"visible"===e.visibilityState&&t(n)},n,r)||i)&&n?$u(t,null,e):i},n.addPageUnloadEventListener=eo,n.areCookiesSupported=hi,n.arrForEach=j,n.arrIndexOf=Ue,n.arrMap=Re,n.arrReduce=je,n.attachEvent=Ji,n.cookieAvailable=hi,n.createCookieMgr=mi,n.createEnumStyle=tt,n.createGuid=Nu,n.createProcessTelemetryContext=Po,n.createTraceParent=function(n,e,t,r){var i={};return i[qn]=lo(r,2,"ff")?r:"00",i[zn]=go(n)?n:io(),i.spanId=po(e)?e:io()[Nn](0,16),i.traceFlags=0<=t&&t<=255?t:1,i},n.createUniqueNamespace=Zr,n.createUnloadHandlerContainer=Mo,n.dateNow=We,n.deleteCookie=Eu,n.detachEvent=Xi,n.disableCookies=wu,n.disallowsSameSiteNone=Ii,n.doPerf=Lr,n.dumpObj=fr,n.eventOff=Gi,n.eventOn=Wi,n.extend=ku,n.findW3cTraceParent=function(){var n,e;return vo((e=$t())?gr(e.querySelectorAll("meta"),"traceparent").content:null)||vo(n=(e=rr())?gr((0<(e=e.getEntriesByType("navigation")||[])[M]?e[0]:{}).serverTiming,"traceparent").description:n)},n.formatTraceParent=function(n){var e,t;return n?(lo(e=so(n[Bn]),2)||(e="01"),t=n[qn]||"00","".concat(t="00"!==t&&"ff"!==t?"00":t,"-").concat(fo(n.traceId,32,ao),"-").concat(fo(n.spanId,16,co),"-").concat(e)):""},n.generateW3CId=io,n.getCommonSchemaMetaData=Tu,n.getConsole=tr,n.getCookie=_u,n.getCookieValue=Au,n.getCrypto=ur,n.getDocument=$t,n.getExceptionName=Ge,n.getFieldValueType=Lu,n.getGlobal=q,n.getGlobalInst=i,n.getHistory=function(){return nr()?history:i("history")},n.getIEVersion=function(n){var e=((n=(n=void 0===n?null:n)?n:(e=Yt()||{})?(e[Pn]||g)[Fn]():g)||g)[Fn]();if(r(e,jt))return n=$t()||{},Math.max(parseInt(e[En](jt)[1]),n.documentMode||0);if(r(e,Vt)){n=parseInt(e[En](Vt)[1]);if(n)return n+4}return null},n.getISOString=Le,n.getJSON=or,n.getLocation=er,n.getMsCrypto=ar,n.getNavigator=Yt,n.getPerformance=rr,n.getSetValue=Xe,n.getTenantId=Su,n.getTime=Ou,n.getWindow=Xt,n.hasDocument=Qt,n.hasHistory=nr,n.hasJSON=ir,n.hasNavigator=Zt,n.hasOwnProperty=_e,n.hasWindow=Jt,n.isArray=S,n.isArrayValid=Mu,n.isBeaconsSupported=sr,n.isBoolean=Me,n.isChromium=function(){return!!i("chrome")},n.isDate=ke,n.isDocumentObjectAvailable=yu,n.isError=Oe,n.isFetchSupported=function(n){var e=!1;try{var e=!!i("fetch"),t=i("Request");e&&n&&t&&(e=Gt(t,"keepalive"))}catch(r){}return e},n.isFunction=R,n.isIE=lr,n.isLatency=Iu,n.isNotTruthy=function(n){return!n},n.isNullOrUndefined=U,n.isNumber=De,n.isObject=y,n.isReactNative=cr,n.isSampledFlag=function(n){return!!mo(n)&&1==(1&n[Bn])},n.isString=b,n.isTruthy=$e,n.isTypeof=Pe,n.isUint8ArrayAvailable=bu,n.isUndefined=h,n.isValidSpanId=po,n.isValidTraceId=go,n.isValidTraceParent=mo,n.isValueAssigned=Cu,n.isValueKind=Du,n.isWindowObjectAvailable=o,n.isXhrSupported=vr,n.mergeEvtNamespace=Ki,n.newGuid=to,n.newId=Gr,n.normalizeJsName=Ae,n.objCreate=W,n.objDefineAccessors=Be,n.objForEachKey=C,n.objFreeze=Ke,n.objKeys=He,n.objSeal=ce,n.openXhr=function(n,e,t,r,i,o){function u(n,e,t){try{n[e]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&u(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&u(a,pu,t),a.open(n,e,!i),t&&u(a,pu,t),!i&&o&&u(a,"timeout",o),a},n.optimizeObject=function(n){return n&&_?t(_({},n)):n},n.parseTraceParent=vo,n.perfNow=ro,n.proxyAssign=function(t,r,i){if(t&&r&&y(t)&&y(r))for(var n in r)!function(e){var n;b(e)&&(R(n=r[e])?i&&!i(e,!0,r,t)||(t[e]=Ze(r,e)):i&&!i(e,!1,r,t)||(_e(t,e)&&delete t[e],Be(t,e,function(){return r[e]},function(n){r[e]=n})||(t[e]=n)))}(n);return t},n.proxyFunctionAs=Ye,n.proxyFunctions=nt,n.random32=Kr,n.randomValue=qr,n.removeEventHandler=$i,n.removeEventListeners=no,n.removePageHideEventListener=function(n,e){e=Ki(Di,e);no([Ni],n,e),no([Ai],null,e)},n.removePageShowEventListener=function(n,e){e=Ki(Mi,e);no([ki],n,e),no([Ai],null,e)},n.removePageUnloadEventListener=function(n,e){no([Oi,"unload",Ni],n,e)},n.safeGetCookieMgr=pi,n.safeGetLogger=xr,n.sanitizeProperty=xu,n.setCookie=Pu,n.setEnableEnvMocks=function(n){qt=n},n.setProcessTelemetryTimings=Fu,n.setValue=Je,n.strContains=r,n.strEndsWith=Ne,n.strFunction=w,n.strObject=u,n.strPrototype=s,n.strStartsWith=function(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(he)return n[oe](e);var r=n,i=e,n=!1,o=i?i[M]:0;if(r&&o&&r[M]>=o&&!(n=r===i)){for(var u=0;u<o;u++)if(r[u]!==i[u])return!1;n=!0}return n}return t},n.strTrim=I,n.strUndefined=e,n.throwError=V,n.toISOString=Le,n.useXDomainRequest=dr;cu=n,x="__esModule",N={value:!0},au=Object.defineProperty;if(au)try{return au(cu,x,N)}catch(Zu){}typeof N.value!==undefined&&(cu[x]=N.value)}(this.oneDS=this.oneDS||{});
//# sourceMappingURL=ms.core.gbl.min.js.map
{
"name": "ms.core",
"version": "3.2.3",
"version": "3.2.4",
"ext": {

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

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-M3QBrweXu9QofN9eGUY3Q8T/2LsJcObn5u70jHUof2Y= sha384-g69CtugT3GeOJehEe9PBarbjFstX5QVGNK0MXOyjKiVyalDrtbVtnmm8MACiEw9y sha512-6prMUp/IlEdQXIRBK0mDu7xZrfAHH8UIdZpXwc9u1ktdvp5QmKdtSO83vAXQm/3CkKv+TW4jmNgYobF+D+IDxQ==",
"integrity": "sha256-suh/X/esssHPgLIpJYKtBxcC92UOTEHV9cD96rRBkRg= sha384-3yWmIxK9JK2SsM01c9R9uVK3MhdewvzX4cKxFWfoHDvJhmUV/gy5sMo9IOXq6qZ9 sha512-4LaxEVJqH8VqO7jFplUL7ZA7lfXPTwMnGwsOi1SbbESndtv7EOPWZWUlDuk2r7khOrbvcxBJZNq9MUI1lIY5Jg==",
"hashes": {
"sha256": "M3QBrweXu9QofN9eGUY3Q8T/2LsJcObn5u70jHUof2Y=",
"sha384": "g69CtugT3GeOJehEe9PBarbjFstX5QVGNK0MXOyjKiVyalDrtbVtnmm8MACiEw9y",
"sha512": "6prMUp/IlEdQXIRBK0mDu7xZrfAHH8UIdZpXwc9u1ktdvp5QmKdtSO83vAXQm/3CkKv+TW4jmNgYobF+D+IDxQ=="
"sha256": "suh/X/esssHPgLIpJYKtBxcC92UOTEHV9cD96rRBkRg=",
"sha384": "3yWmIxK9JK2SsM01c9R9uVK3MhdewvzX4cKxFWfoHDvJhmUV/gy5sMo9IOXq6qZ9",
"sha512": "4LaxEVJqH8VqO7jFplUL7ZA7lfXPTwMnGwsOi1SbbESndtv7EOPWZWUlDuk2r7khOrbvcxBJZNq9MUI1lIY5Jg=="
}

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

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-9Isfk62kgFUyARIDOwHHrQwdw+5sjbgyZ+ytOoOv79c= sha384-E1RnoR3fO3q0O/zaNRHtpQSF07yno05kjfwjoqjuUdNyKb8Mml9LJSmV6XINX2Lr sha512-79vMRM6lEW/S8857BFdNwV6Kl1ecIWSYPK4D/oT4F070UdhyVVKVVYwmcKrUdCpf58OoY6njMGI4ezpTavanPw==",
"integrity": "sha256-7Cp69B2uqeeB5/xOmJvDG5jhLn35Wyu+CnkRGY47OaE= sha384-Oc5fgZXdJBQ8EC8npl3eLNMCFbZWXmy87dr3ytOf1aPSoRmqll/tSNaATpPFDtMf sha512-bzt33uEnWk84CQ388rhA0FnJ1sQNmheNBjJOTi4x3yXAXXvKt1UcTkLbrJiyqERusQK8po9TtuEZEA8ZTo8gAA==",
"hashes": {
"sha256": "9Isfk62kgFUyARIDOwHHrQwdw+5sjbgyZ+ytOoOv79c=",
"sha384": "E1RnoR3fO3q0O/zaNRHtpQSF07yno05kjfwjoqjuUdNyKb8Mml9LJSmV6XINX2Lr",
"sha512": "79vMRM6lEW/S8857BFdNwV6Kl1ecIWSYPK4D/oT4F070UdhyVVKVVYwmcKrUdCpf58OoY6njMGI4ezpTavanPw=="
"sha256": "7Cp69B2uqeeB5/xOmJvDG5jhLn35Wyu+CnkRGY47OaE=",
"sha384": "Oc5fgZXdJBQ8EC8npl3eLNMCFbZWXmy87dr3ytOf1aPSoRmqll/tSNaATpPFDtMf",
"sha512": "bzt33uEnWk84CQ388rhA0FnJ1sQNmheNBjJOTi4x3yXAXXvKt1UcTkLbrJiyqERusQK8po9TtuEZEA8ZTo8gAA=="
}

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

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-Lp+r72wgcpBFeuuH15lsRnLRvsoqNRZJWwQf1DlChjU= sha384-FnrOFAHB1IeFhRV1d9bnZo/GVyz56qmXD9oXUbPkp9bqEP3wML/t3h9P+dSZHHzM sha512-Aq8tYBMQ3qRBrc7Cbpzo6rpPYhglT2g69zju5geM8ZlvpWyT3B6QLBVCpLUiwIqgZ4Iohd0wb/3gVnCH+RuwlA==",
"integrity": "sha256-XXOvTFyCpSVDRei2LQcLPmRlYCF+wF25I2ZH4HAZhqM= sha384-7pflQHK5mNwf2cQ7WZHpt6N4cEiMATKFKjrnzc8/7Lxf9IgWpKbyK773k5+ogtyk sha512-invtl9w/ko5fc6m+pM9ePjwCm4QfWLPZxt2cGYpOrNqXt7PdfMSb8JdhZc8aBMiBu3NP2dFbi+z1FlTKmZSHsQ==",
"hashes": {
"sha256": "Lp+r72wgcpBFeuuH15lsRnLRvsoqNRZJWwQf1DlChjU=",
"sha384": "FnrOFAHB1IeFhRV1d9bnZo/GVyz56qmXD9oXUbPkp9bqEP3wML/t3h9P+dSZHHzM",
"sha512": "Aq8tYBMQ3qRBrc7Cbpzo6rpPYhglT2g69zju5geM8ZlvpWyT3B6QLBVCpLUiwIqgZ4Iohd0wb/3gVnCH+RuwlA=="
"sha256": "XXOvTFyCpSVDRei2LQcLPmRlYCF+wF25I2ZH4HAZhqM=",
"sha384": "7pflQHK5mNwf2cQ7WZHpt6N4cEiMATKFKjrnzc8/7Lxf9IgWpKbyK773k5+ogtyk",
"sha512": "invtl9w/ko5fc6m+pM9ePjwCm4QfWLPZxt2cGYpOrNqXt7PdfMSb8JdhZc8aBMiBu3NP2dFbi+z1FlTKmZSHsQ=="
}

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

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-YrWc96ISM+TpPeIPPQPjZihsfrjOzE2g6fBV3EE3H20= sha384-gRfX0vtUG8BKOokNJW9xswPLSE79XGXtkKltSsXLxpHudh5yGZY8QfOXZG1Npem7 sha512-lMX0mo8XAeVmoQhw5z/s1Guyh/atTTJR4mock5m7qbez/zvH/B5uk5RHy799hsTilUbx3Lc1fVpsWR9d2RGIAw==",
"integrity": "sha256-ExGv/XS+BmfAXVFogTIFEUAyVapTAmPX7a0EmRHV9IM= sha384-sGYXYAq3wpGHko8CMp92oCY1QD+0GsXoBOZvbbUb06KHo8MuF7fJIXcjFX9pO1dP sha512-0ekeidB2CEB8M2dEs4ZvME464VpK7edPj0Q5mgShB2Y9Qq6xQl+vCSMf13Ue1r6pX4QB39XH3WpnUDH3f5zk5A==",
"hashes": {
"sha256": "YrWc96ISM+TpPeIPPQPjZihsfrjOzE2g6fBV3EE3H20=",
"sha384": "gRfX0vtUG8BKOokNJW9xswPLSE79XGXtkKltSsXLxpHudh5yGZY8QfOXZG1Npem7",
"sha512": "lMX0mo8XAeVmoQhw5z/s1Guyh/atTTJR4mock5m7qbez/zvH/B5uk5RHy799hsTilUbx3Lc1fVpsWR9d2RGIAw=="
"sha256": "ExGv/XS+BmfAXVFogTIFEUAyVapTAmPX7a0EmRHV9IM=",
"sha384": "sGYXYAq3wpGHko8CMp92oCY1QD+0GsXoBOZvbbUb06KHo8MuF7fJIXcjFX9pO1dP",
"sha512": "0ekeidB2CEB8M2dEs4ZvME464VpK7edPj0Q5mgShB2Y9Qq6xQl+vCSMf13Ue1r6pX4QB39XH3WpnUDH3f5zk5A=="
}

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

/*!
* 1DS JS SDK Core, 3.2.3
* 1DS JS SDK Core, 3.2.4
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
var n=this,e=function(n){"use strict";var w="function",a="object",e="undefined",f="prototype",P="hasOwnProperty",t=Object,E=t[f],N=t.assign,A=t.create,r=t.defineProperty,z=E[P],B=null;function K(n){return void 0===n&&(n=!0),B&&n||(typeof globalThis!==e&&globalThis&&(B=globalThis),typeof self!==e&&self&&(B=self),typeof window!==e&&window&&(B=window),typeof global!==e&&global&&(B=global)),B}function H(n){throw new TypeError(n)}function q(n){if(A)return A(n);if(null==n)return{};var e=typeof n;function t(){}return e!==a&&e!==w&&H("Object prototype may only be an Object:"+n),t[f]=n,new t}(K()||{}).Symbol,(K()||{}).Reflect;var W=N||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])E[P].call(e,i)&&(n[i]=e[i]);return n},G=function(n,e){return(G=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e[P](t)&&(n[t]=e[t])})(n,e)};function J(n,e){function t(){this.constructor=n}typeof e!==w&&null!==e&&H("Class extends value "+e+" is not a constructor or null"),G(n,e),n[f]=null===e?q(e):(t[f]=e[f],new t)}function X(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n}var g="",Q="processTelemetry",$="priority",Z="setNextPlugin",Y="isInitialized",F="teardown",d="core",nn="update",en="disabled",tn="_doTeardown",rn="processNext",on="resume",an="pause",un="NotificationListener",cn="add"+un,ln="remove"+un,sn="eventsSent",fn="eventsDiscarded",dn="eventsSendRequest",gn="perfEvent",vn="toISOString",pn="endsWith",hn="startsWith",mn="indexOf",yn="reduce",xn="trim",un="toString",Cn="constructor",Sn=r,bn=t.freeze,Tn=t.seal,In=t.keys,wn=String[f],Pn=wn[xn],En=wn[pn],Nn=wn[hn],An=Date[f][vn],wn=Array.isArray,Fn=E[un],kn=z[un],_n=kn.call(t),Mn=/-([a-z])/g,On=/([^\w\d_$])/g,Ln=/^(\d+[\w\d_$])/,Dn=Object.getPrototypeOf;function Un(n,e){return typeof n===e}function v(n){return n===undefined||typeof n===e}function k(n){return null===n||v(n)}function jn(n){return!k(n)}function Rn(n,e){return!(!n||!z.call(n,e))}function p(n){return!(!n||typeof n!==a)}function _(n){return!(!n||typeof n!==w)}function Vn(n){var e=n;return n&&y(n)?(e=(e=n.replace(Mn,function(n,e){return e.toUpperCase()})).replace(On,"_")).replace(Ln,function(n,e){return"_"+e}):e}function h(n,e){if(n)for(var t in n)z.call(n,t)&&e.call(n,t,n[t])}function zn(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(En)return n[pn](e);var r=n,i=e,n=!1,e=i?i.length:0,o=r?r.length:0;if(e&&o&&e<=o&&!(n=r===i)){for(var a=o-1,u=e-1;0<=u;u--){if(r[a]!=i[u])return!1;a--}n=!0}return n}return t}function i(n,e){return!(!n||!e||!~n.indexOf(e))}function Bn(n){return!(!n||"[object Date]"!==Fn.call(n))}var m=wn||function(n){return!(!n||"[object Array]"!==Fn.call(n))};function Kn(n){return!(!n||"[object Error]"!==Fn.call(n))}function y(n){return"string"==typeof n}function Hn(n){return"number"==typeof n}function qn(n){return"boolean"==typeof n}function Wn(n){return n&&"object"==typeof n&&(!(n=(Dn||function(n){if(n){if(Dn)return Dn(n);n=n.__proto__||n[f]||n[Cn];if(n)return n}return null})(n))||typeof(n=n[Cn]&&z.call(n,Cn)?n[Cn]:n)===w&&kn.call(n)===_n)}function Gn(n){if(n){if(An)return n[vn]();var e;return n&&n.getUTCFullYear?(e=function(n){n=""+n;return 1===n.length?"0"+n:n},n.getUTCFullYear()+"-"+e(1+n.getUTCMonth())+"-"+e(n.getUTCDate())+"T"+e(n.getUTCHours())+":"+e(n.getUTCMinutes())+":"+e(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}function M(n,e,t){var r=n.length;try{for(var i=0;i<r&&!(i in n&&-1===e.call(t||n,n[i],i,n));i++);}catch(o){}}function O(n,e,t){if(n){if(n[mn])return n[mn](e,t);var r=n.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in n&&n[i]===e)return i}catch(o){}}return-1}function Jn(n,e,t){if(n){if(n.map)return n.map(e,t);var r=n.length,i=t||n,o=Array(r);try{for(var a=0;a<r;a++)a in n&&(o[a]=e.call(i,n[a],n))}catch(u){}}return o}function Xn(n,e,t){var r;if(n){if(n[yn])return n[yn](e,t);var i=n.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in n);)o++;r=n[o++]}for(;o<i;)o in n&&(r=e(r,n[o],o,n)),o++}return r}function x(n){return n&&(Pn&&n[xn]?n[xn]():n.replace?n.replace(/^\s+|\s+$/g,""):n)}var Qn=!{toString:null}.propertyIsEnumerable("toString"),$n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Zn(n){var e=typeof n;if(e===w||e===a&&null!==n||H("objKeys called on non-object"),!Qn&&In)return In(n);var t,r=[];for(t in n)n&&z.call(n,t)&&r.push(t);if(Qn)for(var i=$n.length,o=0;o<i;o++)n&&z.call(n,$n[o])&&r.push($n[o]);return r}function Yn(n,e,t,r){if(Sn)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Sn(n,e,i),!0}catch(o){}return!1}function ne(n){return n}var L=bn||ne,un=Tn||ne;function ee(){var n=Date;return n.now?n.now():(new n).getTime()}function te(n){return Kn(n)?n.name:g}function D(n,e,t,r,i){var o=t;return!n||(o=n[e])===t||i&&!i(o)||r&&!r(t)||(n[e]=o=t),o}function re(n,e,t){var r;return n?!(r=n[e])&&k(r)&&(r=v(t)?{}:t,n[e]=r):r=v(t)?{}:t,r}function ie(n){return!n}function oe(n){return!!n}function U(n){throw Error(n)}function ae(n,e){var t=null,r=null;return _(n)?t=n:r=n,function(){var n=arguments;if(r=t?t():r)return r[e].apply(r,n)}}function ue(n,e,t,r,i){n&&e&&t&&(!1===i&&!v(n[e])||(n[e]=ae(t,r)))}function ce(e,t,n,r){return e&&t&&p(e)&&m(n)&&M(n,function(n){y(n)&&ue(e,n,t,n,r)}),e}function le(){var n=arguments,e=n[0]||{},t=n.length,r=!1,i=1;for(0<t&&qn(e)&&(r=e,e=n[i]||{},i++),p(e)||(e={});i<t;i++){var o,a,u,c,l=n[i],s=m(l),f=p(l);for(o in l)(s&&o in l||f&&z.call(l,o))&&(a=l[o],u=void 0,r&&a&&((u=m(a))||Wn(a))&&(c=e[o],u?m(c)||(c=[]):Wn(c)||(c={}),a=le(r,c,a)),a!==undefined&&(e[o]=a))}return e}function o(n){var t={};return h(n,function(n,e){t[n]=e,t[e]=n}),n=t,bn&&h(n,function(n,e){(m(e)||p(e))&&bn(e)}),L(n)}var wn=o({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),se="constructor",C="prototype",fe="function",de="_dynInstFuncs",ge="_isDynProxy",ve="_dynClass",pe="_dynInstChk",he=pe,me="_dfOpts",ye="_unknown_",xe="__proto__",Ce="_dyn"+xe,Se="_dynInstProto",be="useBaseInst",Te="setInstFuncs",Ie=Object,we=Ie.getPrototypeOf,Pe=Ie.getOwnPropertyNames,Ee=0;function S(n,e){return n&&Ie[C].hasOwnProperty.call(n,e)}function Ne(n){return n&&(n===Ie[C]||n===Array[C])}function Ae(n){return Ne(n)||n===Function[C]}function Fe(n){if(n){if(we)return we(n);var e=n[xe]||n[C]||(n[se]?n[se][C]:null),t=n[Ce]||e;S(n,Ce)||(delete n[Se],t=n[Ce]=n[Se]||n[Ce],n[Se]=e)}return t}function ke(n,e){var t=[];if(Pe)t=Pe(n);else for(var r in n)"string"==typeof r&&S(n,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)e(t[i])}function _e(n,e,t){return e!==se&&typeof n[e]===fe&&(t||S(n,e))}function Me(n){throw new TypeError("DynamicProto: "+n)}function Oe(n,e){for(var t=n.length-1;0<=t;t--)if(n[t]===e)return 1}function Le(n,e){return S(n,C)?n.name||e||ye:((n||{})[se]||{}).name||e||ye}function j(n,r,e,t){S(n,C)||Me("theClass is an invalid class definition.");var i,o,a,u,c,l,s=n[C],f=(function(n){if(!we)return 1;for(var e=[],t=Fe(r);t&&!Ae(t)&&!Oe(e,t);){if(t===n)return 1;e.push(t),t=Fe(t)}}(s)||Me("["+Le(n)+"] is not in class hierarchy of ["+Le(r)+"]"),null),n=(S(s,ve)?f=s[ve]:(f="_dynCls$"+Le(n,"_")+"$"+Ee,Ee++,s[ve]=f),j[me]),d=!!n[be],g=(d&&t&&t[be]!==undefined&&(d=!!t[be]),o={},ke(i=r,function(n){!o[n]&&_e(i,n,!1)&&(o[n]=i[n])}),o),d=(e(r,function(n,e,t,o){function r(n,e,t){var r,i=e[t];return i[ge]&&o&&!1!==(r=n[de]||{})[he]&&(i=(r[e[ve]]||{})[t]||i),function(){return i.apply(n,arguments)}}for(var i={},a=(ke(t,function(n){i[n]=r(e,t,n)}),Fe(n)),u=[];a&&!Ae(a)&&!Oe(u,a);)ke(a,function(n){!i[n]&&_e(a,n,!we)&&(i[n]=r(e,a,n))}),u.push(a),a=Fe(a);return i}(s,r,g,d)),!!we&&!!n[Te]);a=s,e=f,u=r,c=g,n=!1!==(d=d&&t?!!t[Te]:d),Ne(a)||(s=u[de]=u[de]||{},l=s[e]=s[e]||{},!1!==s[he]&&(s[he]=!!n),ke(u,function(n){var t,r,i;_e(u,n,!1)&&u[n]!==c[n]&&(l[n]=u[n],delete u[n],S(a,n)&&(!a[n]||a[n][ge])||(a[n]=(t=a,r=n,(i=function(){var n,e;return(function(n,e,t,r){var i=null;if(n&&S(t,ve)){var o=n[de]||{};if((i=(o[t[ve]]||{})[e])||Me("Missing ["+e+"] "+fe),!i[pe]&&!1!==o[he]){for(var a=!S(n,e),u=Fe(n),c=[];a&&u&&!Ae(u)&&!Oe(c,u);){var l=u[e];if(l){a=l===r;break}c.push(u),u=Fe(u)}try{a&&(n[e]=i),i[pe]=1}catch(s){o[he]=!1}}}return i}(this,r,t,i)||(typeof(e=(e=t[n=r])===i?Fe(t)[n]:e)!==fe&&Me("["+n+"] is not a "+fe),e)).apply(this,arguments)})[ge]=1,i)))}))}var De="window",Ue="navigator",je="location",Re="performance",Ve="JSON",ze="crypto",Be="msCrypto",Ke="msie",He="trident/",qe="XMLHttpRequest",We=null,Ge=null,Je=!(j[me]={setInstFuncs:!0,useBaseInst:!0}),Xe=null,Qe=null;function $e(n,e){var t,r=!1;if(n){try{(r=e in n)||(t=n[f])&&(r=e in t)}catch(i){}if(!r)try{r=!v((new n)[e])}catch(i){}}return r}function u(n){var e=K();return e&&e[n]?e[n]:n===De&&Ze()?window:null}function Ze(){return!(typeof window!==a||!window)}function Ye(){return Ze()?window:u(De)}function nt(){return!(typeof document!==a||!document)}function c(){return nt()?document:u("document")}function et(){return!(typeof navigator!==a||!navigator)}function tt(){return et()?navigator:u(Ue)}function rt(){return!(typeof history!==a||!history)}function it(n){if(n&&Je){n=u("__mockLocation");if(n)return n}return typeof location===a&&location?location:u(je)}function ot(){return typeof console!==e?console:u("console")}function at(){return u(Re)}function ut(){return!!(typeof JSON===a&&JSON||null!==u(Ve))}function ct(){return ut()?JSON||u(Ve):null}function lt(){return u(ze)}function st(){return u(Be)}function ft(){var n=tt();return!(!n||!n.product)&&"ReactNative"===n.product}function dt(){var n=tt();return!n||n.userAgent===Ge&&null!==We||(n=((Ge=n.userAgent)||g).toLowerCase(),We=i(n,Ke)||i(n,He)),We}function b(n){var e=Object[f].toString.call(n),t=g;return"[object Error]"===e?t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'":ut()&&(t=ct().stringify(n)),e+t}function gt(){return Qe=null===Qe?et()&&!!tt().sendBeacon:Qe}function vt(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==e)&&pt()?Xe&&!$e(u(qe),"withCredentials"):Xe}function pt(){var n=!1;try{n=!!u(qe)}catch(e){}return n}function ht(n,e){if(n)for(var t=0;t<n.length;t++){var r=n[t];if(r.name&&r.name===e)return r}return{}}var mt,yt=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],xt=null;function Ct(n){var e=xt;return(e=e||!0===n.disableDbgExt?e:xt||(n=u("Microsoft"),xt=n?n.ApplicationInsights:xt))?e.ChromeDbgExt:null}function St(n){return n?'"'+n.replace(/\"/g,g)+'"':g}function bt(n,e){var t,r=ot();r&&(t="log",_(r[t=r[n]?n:t])&&r[t](e))}It.dataType="MessageData";var Tt=It;function It(n,e,t,r){void 0===t&&(t=!1),this.messageId=n,this.message=(t?"AI: ":"AI (Internal): ")+n;t=g,ut()&&(t=ct().stringify(r)),n=(e?" message:"+St(e):g)+(r?" props:"+St(t):g);this.message+=n}function wt(n,e){return(n||{}).logger||new Pt(e)}var Pt=function Bo(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};j(Bo,this,function(o){function n(n,e){n=r[n];return k(n)?e:n}function a(n,e){var t=Ct(r);t&&t.diagLog&&t.diagLog(n,e)}k(r)&&(r={}),o.consoleLoggingLevel=function(){return n("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return n("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return n("maxMessageLimit",25)},o.enableDebugExceptions=function(){return n("enableDebugExceptions",!1)},o.throwInternal=function(n,e,t,r,i){e=new Tt(e,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw b(e);t=1===n?"errorToConsole":"warnToConsole";v(e.message)?a("throw"+(1===n?"Critical":"Warning"),e):(r=o.consoleLoggingLevel(),i?(i=+e.messageId,!u[i]&&n<=r&&(o[t](e.message),u[i]=!0)):n<=r&&o[t](e.message),o.logInternalMessage(n,e))},o.warnToConsole=function(n){bt("warn",n),a("warning",n)},o.errorToConsole=function(n){bt("error",n),a("error",n)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(n,e){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+e.messageId,u[t]?r=!1:u[t]=!0,r&&(n<=o.telemetryLoggingLevel()&&(o.queue.push(e),i++,a(1===n?"error":"warn",e)),i===o.maxInternalMessageLimit()&&(r=new Tt(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),1===n?o.errorToConsole(t):o.warnToConsole(t))))}})};function R(n,e,t,r,i,o){void 0===o&&(o=!1),(n||new Pt).throwInternal(e,t,r,i,o)}Nt.ParentContextKey="parent",Nt.ChildrenContextKey="childEvts";var Et=Nt;function Nt(n,i,e){var t,o=this,a=!1;o.start=ee(),o.name=n,o.isAsync=e,o.isChildEvt=function(){return!1},_(i)&&(a=Yn(o,"payload",function(){return!t&&_(i)&&(t=i(),i=null),t})),o.getCtx=function(n){return n?(n===Nt.ParentContextKey||n===Nt.ChildrenContextKey?o:o.ctx||{})[n]:null},o.setCtx=function(n,e){n&&(n===Nt.ParentContextKey?(o[n]||(o.isChildEvt=function(){return!0}),o[n]=e):n===Nt.ChildrenContextKey?o[n]=e:(o.ctx=o.ctx||{})[n]=e)},o.complete=function(){var n=0,e=o.getCtx(Nt.ChildrenContextKey);if(m(e))for(var t=0;t<e.length;t++){var r=e[t];r&&(n+=r.time)}o.time=ee()-o.start,o.exTime=o.time-n,o.complete=function(){},!a&&_(i)&&(o.payload=i())}}var At=function Ko(e){this.ctx={},j(Ko,this,function(t){t.create=function(n,e,t){return new Et(n,e,t)},t.fire=function(n){n&&(n.complete(),e&&_(e.perfEvent)&&e.perfEvent(n))},t.setCtx=function(n,e){n&&((t.ctx=t.ctx||{})[n]=e)},t.getCtx=function(n){return(t.ctx||{})[n]}})},Ft="CoreUtils.doPerf";function kt(n,e,t,r,i){if(n)if(n=_(n.getPerfMgr)?n.getPerfMgr():n){var o,a=void 0,u=n.getCtx(Ft);try{if(a=n.create(e(),r,i))return u&&a.setCtx&&(a.setCtx(Et.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(Et.ChildrenContextKey))||(o=[],u.setCtx(Et.ChildrenContextKey,o)),o.push(a))),n.setCtx(Ft,a),t(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&n.fire(a),n.setCtx(Ft,u)}}return t()}var _t=4294967296,Mt=4294967295,Ot=!1,Lt=123456789,Dt=987654321;function Ut(n){n<0&&(n>>>=0),Lt=123456789+n&Mt,Dt=987654321-n&Mt,Ot=!0}function jt(){try{var n=2147483647&ee();Ut((Math.random()*_t^n)+n)}catch(e){}}function Rt(n){return 0<n?Math.floor(Vt()/Mt*(n+1))>>>0:0}function Vt(n){var e=0,t=lt()||st();return 0===(e=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Mt:e)&&dt()&&(Ot||jt(),e=zt()&Mt),0===e&&(e=Math.floor(_t*Math.random()|0)),n||(e>>>=0),e}function zt(n){var e=((Dt=36969*(65535&Dt)+(Dt>>16)&Mt)<<16)+(65535&(Lt=18e3*(65535&Lt)+(Lt>>16)&Mt))>>>0&Mt|0;return n||(e>>>=0),e}function Bt(n){void 0===n&&(n=22);for(var e=Vt()>>>0,t=0,r=g;r.length<n;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&e]||"",e>>>=6,5==++t&&(e=(Vt()<<2&4294967295|3&e)>>>0,t=0);return r}var Kt=r,Ht="."+Bt(6),qt=0;function Wt(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType}function Gt(n,e){return Vn(n+qt+++((e=void 0!==e&&e)?".2.8.4":"")+Ht)}function Jt(n){var o={id:Gt("_aiData-"+(n||"")+".2.8.4"),accept:Wt,get:function(n,e,t,r){var i=n[o.id];return i?i[Vn(e)]:(r&&((i=function(n,e){var t=e[n.id];if(!t){t={};try{Wt(e)&&!function(n,e,t){if(Kt)try{return Kt(n,e,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(e,n.id,t)&&(e[n.id]=t)}catch(r){}}return t}(o,n))[Vn(e)]=t),t)},kill:function(n,e){if(n&&n[e])try{delete n[e]}catch(t){}}};return o}var Xt="toGMTString",Qt="toUTCString",$t="cookie",Zt="expires",Yt="enabled",nr="isCookieUseDisabled",er="disableCookiesUsage",tr="_ckMgr",rr=null,ir=null,or=null,ar=c(),ur={},cr={};function lr(n){return!n||n.isEnabled()}function sr(n,e){var t,r;return n?t=n.getCookieMgr():e&&(t=e.cookieCfg[tr]||fr(e)),t||(n=(n||{}).logger,(r=fr[tr]||cr[tr])||(r=fr[tr]=fr(e,n),cr[tr]=r),t=r),t}function fr(n,i){D(t=(n=n||cr).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,jn,k),D(t,"path",n.cookiePath||"/",null,k),k(t[Yt])&&(e=void 0,v(n[nr])||(e=!n[nr]),v(n[er])||(e=!n[er]),t[Yt]=e);var e,t,l=t,s=l.path||"/",f=l.domain,r=!1!==l[Yt],d={isEnabled:function(){var n=r&&dr(i),e=cr[tr];return n&&e&&d!==e?lr(e):n},setEnabled:function(n){r=!1!==n},set:function(n,e,t,r,i){var o,a,u,c=!1;return lr(d)&&(o={},-1!=(u=(a=x(e||g)).indexOf(";"))&&(a=x(e.substring(0,u)),o=gr(e.substring(1+u))),D(o,"domain",r||f,oe,v),k(t)||(u=dt(),v(o[Zt])&&0<(e=ee()+1e3*t)&&((r=new Date).setTime(e),D(o,Zt,vr(r,u?Xt:Qt)||vr(r,u?Xt:Qt)||g,oe)),u||D(o,"max-age",g+t,null,v)),(e=it())&&"https:"===e.protocol&&(D(o,"secure",null,null,v),(ir=null===ir?!mr((tt()||{}).userAgent):ir)&&D(o,"SameSite","None",null,v)),D(o,"path",i||s,null,v),(l.setCookie||hr)(n,pr(a,o)),c=!0),c},get:function(n){var e=g;return lr(d)?(l.getCookie||function(n){var e,t=g;return ar&&(e=ar[$t]||g,or!==e&&(ur=gr(e),or=e),t=x(ur[n]||g)),t})(n):e},del:function(n,e){return!!lr(d)&&d.purge(n,e)},purge:function(n,e){var t,r=!1;return dr(i)&&((t={}).path=e||"/",t[Zt]="Thu, 01 Jan 1970 00:00:01 GMT",e=t,dt()||(e["max-age"]="0"),(l.delCookie||hr)(n,pr(g,e)),r=!0),r}};return d[tr]=d}function dr(n){if(null===rr){rr=!1;try{rr=(ar||{})[$t]!==undefined}catch(e){R(n,2,68,"Cannot access document.cookie - "+te(e),{exception:b(e)})}}return rr}function gr(n){var t={};return n&&n.length&&M(x(n).split(";"),function(n){var e;(n=x(n||g))&&(-1==(e=n.indexOf("="))?t[n]=null:t[x(n.substring(0,e))]=x(n.substring(1+e)))}),t}function vr(n,e){return _(n[e])?n[e]():null}function pr(n,e){var t=n||g;return h(e,function(n,e){t+="; "+n+(k(e)?g:"="+e)}),t}function hr(n,e){ar&&(ar[$t]=n+"="+e)}function mr(n){return!(!y(n)||!i(n,"CPU iPhone OS 12")&&!i(n,"iPad; CPU OS 12")&&!(i(n,"Macintosh; Intel Mac OS X 10_14")&&i(n,"Version/")&&i(n,"Safari"))&&(!i(n,"Macintosh; Intel Mac OS X 10_14")||!zn(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!i(n,"Chrome/5")&&!i(n,"Chrome/6")&&(!i(n,"UnrealEngine")||i(n,"Chrome"))&&!i(n,"UCBrowser/12")&&!i(n,"UCBrowser/11"))}var yr="on",xr="attachEvent",Cr="addEventListener",Sr="detachEvent",br="removeEventListener",Tr="events",Ir="visibilitychange",wr="pagehide",Pr="pageshow",Er="beforeunload",Nr=Gt("aiEvtPageHide"),Ar=Gt("aiEvtPageShow"),Fr=/\.[\.]+/g,kr=/[\.]+$/,_r=1,Mr=Jt("events"),Or=/^([^.]*)(?:\.(.+)|)/;function Lr(n){return n&&n.replace?n.replace(/^\s*\.*|\.*\s*$/g,""):n}function Dr(n,e){e&&(t="",m(e)?(t="",M(e,function(n){(n=Lr(n))&&("."!==n[0]&&(n="."+n),t+=n)})):t=Lr(e),t&&(n=(n||"")+(t="."!==t[0]?"."+t:t)));var t,e=Or.exec(n||"")||[];return{type:e[1],ns:(e[2]||"").replace(Fr,".").replace(kr,"").split(".").sort().join(".")}}function Ur(n,e,t){n=Mr.get(n,Tr,{},t=void 0===t||t);return n[e]||(n[e]=[])}function jr(n,e,t,r){n&&e&&e.type&&(n[br]?n[br](e.type,t,r):n[Sr]&&n[Sr](yr+e.type,t))}function Rr(n,e,t,r){for(var i=e.length;i--;){var o=e[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(jr(n,o.evtName,o.handler,o.capture),e.splice(i,1))}}function Vr(n,e){return e?Dr("xx",m(e)?[n].concat(e):[n,e]).ns.split("."):n}function zr(n,e,t,r,i){void 0===i&&(i=!1);var o,a=!1;if(n)try{var u,c=Dr(e,r),l=c,s=t,f=i,d=!1;(o=n)&&l&&l.type&&s&&(o[Cr]?(o[Cr](l.type,s,f),d=!0):o[xr]&&(o[xr](yr+l.type,s),d=!0)),(a=d)&&Mr.accept(n)&&(u={guid:_r++,evtName:c,handler:t,capture:i},Ur(n,c.type).push(u))}catch(g){}return a}function Br(n,e,t,r,i){if(void 0===i&&(i=!1),n)try{var o=Dr(e,r),a=!1,u=n,c=function(n){return!((!o.ns||t)&&n.handler!==t)&&(a=!0)};(l=o).type?Rr(u,Ur(u,l.type),l,c):(h(s=Mr.get(u,Tr,{}),function(n,e){Rr(u,e,l,c)}),0===Zn(s).length&&Mr.kill(u,Tr)),a||jr(n,o,t,i)}catch(f){}var l,s}function Kr(n,e,t,r){return zr(n,e,t,null,r=void 0!==r&&r)}function Hr(n,e,t,r){Br(n,e,t,null,r=void 0!==r&&r)}function qr(n,e,t){var r=!1,i=Ye(),i=(i&&(r=zr(i,n,e,t),r=zr(i.body,n,e,t)||r),c());return i&&zr(i,n,e,t)||r}function Wr(n,e,t){var r=Ye(),r=(r&&(Br(r,n,e,t),Br(r.body,n,e,t)),c());r&&Br(r,n,e,t)}function Gr(n,e,t,r){var i=!1;return e&&n&&0<n.length&&M(n,function(n){!n||t&&-1!==O(t,n)||(i=qr(n,e,r)||i)}),i}function Jr(n,e,t,r){var i=!1;return e&&n&&m(n)&&!(i=Gr(n,e,t,r))&&t&&0<t.length?Gr(n,e,null,r):i}function Xr(n,e,t){n&&m(n)&&M(n,function(n){n&&Wr(n,e,t)})}function Qr(n,e,t){return Jr([Er,"unload",wr],n,e,t)}function $r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ni,function(n){var e=0|Rt(15);return("x"===n?e:3&e|8).toString(16)})}function Zr(){var n=at();return n&&n.now?n.now():ee()}function Yr(){for(var n,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=g,r=0;r<4;r++)t+=e[15&(n=Vt())]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(3&Vt())|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 ni=/[xy]/g,Tn={Attach:Kr,AttachEvent:Kr,Detach:Hr,DetachEvent:Hr},ei=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,ti="00000000000000000000000000000000",ri="0000000000000000";function l(n,e,t){return!(!n||n.length!==e||n===t||!n.match(/^[\da-f]*$/))}function ii(n,e,t){return l(n,e)?n:t}function oi(n){for(var e=(n=isNaN(n)||n<0||255<n?1:n).toString(16);e.length<2;)e="0"+e;return e}function ai(n){if(!n)return null;if(!(n=m(n)?n[0]||"":n)||!y(n)||8192<n.length)return null;n=ei.exec(x(n));return n&&"ff"!==n[1]&&n[2]!==ti&&n[3]!==ri?{version:n[1],traceId:n[2],spanId:n[3],traceFlags:parseInt(n[4],16)}:null}function ui(n){return l(n,32,ti)}function ci(n){return l(n,16,ri)}function li(n){return!!(n&&l(n.version,2,"ff")&&l(n.traceId,32,ti)&&l(n.spanId,16,ri)&&l(oi(n.traceFlags),2))}var si=Jt("plugin");function fi(n){return si.get(n,"state",{},!0)}function di(t,r){for(var i,n=[],e=null,o=t.getNext();o;){var a=o.getPlugin();a&&(e&&_(e[Z])&&_(a[Q])&&e[Z](a),(_(a[Y])?a[Y]():(i=fi(a))[Y])||n.push(a),e=a,o=o.getNext())}M(n,function(n){var e=t.core();n.initialize(t.getCfg(),e,r,t.getNext()),i=fi(n),n[d]||i[d]||(i[d]=e),i[Y]=!0,delete i[F]})}function gi(n){return n.sort(function(n,e){var t,r=0;return e?(t=_(e[Q]),_(n[Q])?r=t?n[$]-e[$]:1:t&&(r=-1)):r=n?1:-1,r})}var vi="TelemetryPluginChain",pi="_hasRun",hi="_getTelCtx",mi=0;function yi(n,a,t,e){var r=null,i=[],o=(null!==e&&(r=e?function(n,e,t){for(;n;){if(n.getPlugin()===t)return n;n=n.getNext()}return Si([t],e.config||{},e)}(n,t,e):n),{_next:function(){var n,e=r;return r=e?e.getNext():null,e||(n=i)&&0<n.length&&(M(n,function(n){try{n.func.call(n.self,n.args)}catch(e){R(t.logger,2,73,"Unexpected Exception during onComplete - "+b(e))}}),i=[]),e},ctx:{core:function(){return t},diagLog:function(){return wt(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(n,e,t){void 0===t&&(t=!1);var r,n=u(n,null);return n&&!k(n[e])?r=n[e]:a&&!k(a[e])&&(r=a[e]),k(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(n){r=n},iterate:function(n){for(;e=o._next();){var e=e.getPlugin();e&&n(e)}},onComplete:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&i.push({func:n,self:v(e)?o.ctx:e,args:t})}}});function u(n,e,t){var r,i,o;return void 0===e&&(e={}),void 0===t&&(t=0),(r=a&&(i=a.extensionConfig)&&n?i[n]:r)?p(e)&&0!==t&&(o=le(!0,e,r),a&&2===t&&h(e,function(n){var e;k(o[n])&&!k(e=a[n])&&(o[n]=e)}),r=o):r=e,r}return o}function V(n,t,r,e){var i=yi(n,t,r,e),o=i.ctx;return o.processNext=function(n){var e=i._next();return e&&e.processTelemetry(n,o),!e},o.createNew=function(n,e){return V((n=m(n=void 0===n?null:n)?Si(n,t,r,e):n)||o.getNext(),t,r,e)},o}function xi(n,t,e){var r=t.config||{},i=yi(n,r,t,e),o=i.ctx;return o.processNext=function(n){var e=i._next();return e&&e.unload(o,n),!e},o.createNew=function(n,e){return xi((n=m(n=void 0===n?null:n)?Si(n,r,t,e):n)||o.getNext(),t,e)},o}function Ci(n,t,e){var r=t.config||{},i=yi(n,r,t,e).ctx;return i.processNext=function(e){return i.iterate(function(n){_(n.update)&&n.update(i,e)})},i.createNew=function(n,e){return Ci((n=m(n=void 0===n?null:n)?Si(n,r,t,e):n)||i.getNext(),t,e)},i}function Si(n,e,t,r){var i,o=null,a=!r;return m(n)&&0<n.length&&(i=null,M(n,function(n){(a=!a&&r===n||a)&&n&&_(n.processTelemetry)&&(n=bi(n,e,t),o=o||n,i&&i._setNext(n),i=n)})),r&&!o?Si([r],e,t):o}function bi(c,r,i){var l=null,o=_(c.processTelemetry),a=_(c.setNextPlugin),s=c?c.identifier+"-"+c.priority+"-"+mi++:"Unknown-0-"+mi++,u={getPlugin:function(){return c},getNext:function(){return l},processTelemetry:function(t,n){var e;f(n=n||(e=(e=c&&_(c[hi])?c[hi]():e)||V(u,r,i)),function(n){if(!c||!o)return!1;var e=fi(c);return!e.teardown&&!e[en]&&(a&&c.setNextPlugin(l),c.processTelemetry(t,n),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||n.processNext(t)},unload:function(r,i){f(r,function(){var n,e,t=!1;return c&&(n=fi(c),e=c[d]||n.core,!c||e&&e!==r[d]()||n[F]||(n[d]=null,n[F]=!0,n[Y]=!1,c[F]&&!0===c[F](r,i)&&(t=!0))),t},"unload",function(){},i.isAsync)||r.processNext(i)},update:function(r,i){f(r,function(){var n,e,t=!1;return c&&(n=fi(c),e=c[d]||n.core,!c||e&&e!==r[d]()||n[F]||c[nn]&&!0===c[nn](r,i)&&(t=!0)),t},"update",function(){},!1)||r.processNext(i)},_id:s,_setNext:function(n){l=n}};function f(t,r,i,n,e){var o=!1,a=c?c.identifier:vi,u=(u=t[pi])||(t[pi]={});return t.setNext(l),c&&kt(t[d](),function(){return a+":"+i},function(){u[s]=!0;try{var n=l?l._id:g;n&&(u[n]=!1),o=r(t)}catch(e){n=!l||u[l._id];n&&(o=!0),l&&n||R(t.diagLog(),1,73,"Plugin ["+a+"] failed during "+i+" - "+b(e)+", run flags: "+b(u))}},n,e),o}return L(u)}var Ti="extensionConfig",Ii=500,wi="Channel has invalid priority - ";function Pi(n,e,t,r){e&&m(e)&&0<e.length&&(M(e=e.sort(function(n,e){return n.priority-e.priority}),function(n){n.priority<Ii&&U(wi+n.identifier)}),n.push({queue:L(e),chain:Si(e,t,r)}))}function Ei(){var e=[];return{add:function(n){n&&e.push(n)},run:function(t,r){M(e,function(n){try{n(t,r)}catch(e){R(t.diagLog(),2,73,"Unexpected error calling unload handler - "+b(e))}}),e=[]}}}var Ni,Ai="getPlugin",r=function Ho(){var i,o,l,s,f,a=this;function e(n){var e,n=n=void 0===n?null:n;return n||(e=o||V(null,{},a.core),n=l&&l[Ai]?e.createNew(null,l[Ai]):e.createNew(null,l)),n}function u(n,e,t){n&&D(n,Ti,[],null,k),!t&&e&&(t=e.getProcessTelContext().getNext());var r=l;l&&l[Ai]&&(r=l[Ai]()),a.core=e,o=V(t,n,e,r)}function d(){i=!1,a.core=null,l=o=null,f=[],s=Ei()}d(),j(Ho,a,function(c){c.initialize=function(n,e,t,r){u(n,e,r),i=!0},c.teardown=function(n,e){var t,r,i,o,a=c.core;if(a&&(!n||a===n.core()))return r=!1,i=n||xi(null,a,l&&l[Ai]?l[Ai]():l),o=e||{reason:0,isAsync:!1},c[tn]&&!0===c[tn](i,o,u)?t=!0:u(),t;function u(){r||(r=!0,s.run(i,e),M(f,function(n){n.rm()}),f=[],!0===t&&i.processNext(o),d())}},c.update=function(n,e){var t,r,i,o=c.core;if(o&&(!n||o===n.core()))return r=!1,i=n||Ci(null,o,l&&l[Ai]?l[Ai]():l),c._doUpdate&&!0===c._doUpdate(i,e||{reason:0},a)?t=!0:a(),t;function a(){r||(r=!0,u(i.getCfg(),i.core(),i.getNext()))}},c._addHook=function(n){n&&(m(n)?f=f.concat(n):f.push(n))},ue(c,"_addUnloadCb",function(){return s},"add")}),a.diagLog=function(n){return e(n).diagLog()},a[Y]=function(){return i},a.setInitialized=function(n){i=n},a[Z]=function(n){l=n},a.processNext=function(n,e){e?e.processNext(n):l&&_(l.processTelemetry)&&l.processTelemetry(n,null)},a._getTelCtx=e},Fi=(J(ki,Ni=r),ki);function ki(){var e,c,n=Ni.call(this)||this;function t(){e=0,c=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,t(),j(ki,n,function(u,n){u.addTelemetryInitializer=function(n){var t={id:e++,fn:n};return c.push(t),{remove:function(){M(c,function(n,e){if(n.id===t.id)return c.splice(e,1),-1})}}},u.processTelemetry=function(n,e){for(var t=!1,r=c.length,i=0;i<r;++i){var o=c[i];if(o)try{if(!1===o.fn.call(null,n)){t=!0;break}}catch(a){R(e.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+te(a),{exception:b(a)},!0)}}t||u.processNext(n,e)},u[tn]=function(){t()}}),n}var _i="Plugins must provide initialize method",Mi="_notificationManager",Oi="SDK is still unloading...",Li={loggingLevelConsole:1};function Di(n,e){return new At(e)}function Ui(e,n){var t=!1;return M(n,function(n){if(n===e)return t=!0,-1}),t}var ji=function qo(){var d,t,i,r,o,g,C,S,b,T,I,w,v,p,h,n,P,E,N,A=0;j(qo,this,function(m){function a(){d=!1,m.config=le(!0,{},Li),m.logger=new Pt(m.config),m._extensions=[],p=new Fi,t=[],v=!(S=[]),n=Gt("AIBaseCore",!(h=w=I=T=b=C=g=o=r=i=null)),P=Ei(),N=null}function y(){return V(x(),m.config,m)}function c(n,e){r=m.logger,i=Ii,o=[],a={},M(v=S,function(n){(k(n)||k(n.initialize))&&U(_i);var e=n.priority,t=n.identifier;n&&e&&(k(a[e])?a[e]=t:(t="Two extensions have same priority #"+e+" - "+a[e]+", "+t,(r||new Pt).warnToConsole(t))),(!e||e<i)&&o.push(n)});var r,i,o,a,t,u,c,l,s,f,d,g,v={all:v,core:o},v=(b=v.core,C=null,v.all);function p(){return V(null,f.config,f,null)}function h(n,e,t,r){var i=n?n.length+1:1;function o(){0==--i&&(r&&r(),r=null)}0<i&&M(n,function(n){n&&0<n.queue.length?(n=n.chain,(n=e.createNew(n)).onComplete(o),t(n)):i--}),o()}w=L((d=v,t=n,u=m,l=[],I&&M(I,function(n){return Pi(l,n,t,u)}),d&&(c=[],M(d,function(n){n.priority>Ii&&c.push(n)}),Pi(l,c,t,u)),l)),T?(-1!==(d=O(v,T))&&v.splice(d,1),-1!==(d=O(b,T))&&b.splice(d,1),T._setQueue(w)):(s=w,f=m,g=!1,(d={identifier:"ChannelControllerPlugin",priority:Ii,initialize:function(e,t,r,n){g=!0,M(s,function(n){n&&0<n.queue.length&&di(V(n.chain,e,t),r)})},isInitialized:function(){return g},processTelemetry:function(e,n){h(s,n||p(),function(n){n[rn](e)},function(){n[rn](e)})},update:function(n,e){var t=e||{reason:0};return h(s,n,function(n){n[rn](t)},function(){n[rn](t)}),!0}})[an]=function(){h(s,p(),function(n){n.iterate(function(n){n[an]&&n[an]()})},null)},d[on]=function(){h(s,p(),function(n){n.iterate(function(n){n[on]&&n[on]()})},null)},d[F]=function(n,e){var t=e||{reason:0,isAsync:!1};return h(s,n,function(n){n[rn](t)},function(){n[rn](t),g=!1}),!0},d.getChannel=function(e){var t=null;return s&&0<s.length&&M(s,function(n){if(n&&0<n.queue.length&&(M(n.queue,function(n){if(n.identifier===e)return t=n,-1}),t))return-1}),t},d.flush=function(t,n,r,i){var o=1,e=!1,a=null;function u(){o--,e&&0===o&&(a&&(clearTimeout(a),a=null),n&&n(e),n=null)}return i=i||5e3,h(s,p(),function(n){n.iterate(function(n){var e;n.flush&&(o++,e=!1,n.flush(t,function(){e=!0,u()},r)||e||(t&&null==a?a=setTimeout(function(){a=null,u()},i):u()))})},function(){e=!0,u()}),!0},d._setQueue=function(n){s=n},T=d),v.push(T),b.push(T),m._extensions=gi(v),T.initialize(n,m,v),di(y(),v),m._extensions=L(gi(b||[])).slice(),e&&(d=e,n=Ci(x(),m),m._updateHook&&!0===m._updateHook(n,d)||n.processNext(d))}function l(e){var r=null;return M(m._extensions,function(n){if(n.identifier===e&&n!==T&&n!==p)return r=n,-1}),(r=!r&&T?T.getChannel(e):r)?{plugin:r,setEnabled:function(n){fi(r)[en]=!n},isEnabled:function(){var n=fi(r);return!n[F]&&!n[en]},remove:function(n,e){var t=[r];s(t,{reason:1,isAsync:n=void 0===n||n},function(n){n&&c(m.config,{reason:32,removed:t}),e&&e(n)})}}:null}function x(){var n;return C||(-1===O(n=(b||[]).slice(),p)&&n.push(p),C=Si(gi(n),m.config,m)),C}function s(o,n,e){var t;o&&0<o.length?((t=xi(Si(o,m.config,m),m)).onComplete(function(){var r=!1,t=[],i=(M(S,function(n,e){Ui(n,o)?r=!0:t.push(n)}),S=t,[]);I&&(M(I,function(n,e){var t=[];M(n,function(n){Ui(n,o)?r=!0:t.push(n)}),i.push(t)}),I=i),e&&e(r)}),t.processNext(n)):e(!1)}function e(){var n=m.logger?m.logger.queue:[];n&&(M(n,function(n){n={name:h||"InternalMessageId: "+n.messageId,iKey:m.config.instrumentationKey,time:Gn(new Date),baseType:Tt.dataType,baseData:{message:n.message}};m.track(n)}),n.length=0)}function u(n,e,t,r){return T?T.flush(n,e,t||6,r):(e&&e(!1),!0)}function f(n){var e=m.logger;e?R(e,2,73,n):U(n)}a(),m.isInitialized=function(){return d},m.initialize=function(n,e,t,r){v&&U(Oi),m.isInitialized()&&U("Core should not be initialized more than once"),n&&!k(n.instrumentationKey)||U("Please provide instrumentation key"),i=r,m[Mi]=r,m.config=n||{};r=n,!0===r.disableDbgExt&&E&&(i[ln](E),E=null),i&&!E&&!0!==r.disableDbgExt&&(E=function(n){if(!mt){mt={};for(var e=0;e<yt.length;e++)mt[yt[e]]=function(e,t){return function(){var n=Ct(t);n&&(n=n.listener)&&n[e]&&n[e].apply(n,arguments)}}(yt[e],n)}return mt}(r),i[cn](E)),r=n;!r.enablePerfMgr&&o&&(o=null),r.enablePerfMgr&&D(m.config,"createPerfMgr",Di),n.extensions=k(n.extensions)?[]:n.extensions,re(n,Ti).NotificationManager=i,t&&(m.logger=t),(S=[]).push.apply(S,X(X([],e),n.extensions)),I=(n||{}).channels,c(n,null),w&&0!==w.length||U("No channels available"),d=!0,m.releaseQueue()},m.getTransmissionControls=function(){var e=[];return w&&M(w,function(n){e.push(n.queue)}),L(e)},m.track=function(n){D(n,"iKey",m.config.instrumentationKey,null,ie),D(n,"time",Gn(new Date),null,ie),D(n,"ver","4.0",null,k),!v&&m.isInitialized()?y().processNext(n):t.push(n)},m.getProcessTelContext=y,m.getNotifyMgr=function(){var n;return i||(i=q(((n={})[cn]=function(n){},n[ln]=function(n){},n[sn]=function(n){},n[fn]=function(n,e){},n[dn]=function(n,e){},n)),m[Mi]=i),i},m[cn]=function(n){i&&i[cn](n)},m[ln]=function(n){i&&i[ln](n)},m.getCookieMgr=function(){return g=g||fr(m.config,m.logger)},m.setCookieMgr=function(n){g=n},m.getPerfMgr=function(){return r||o||m.config&&m.config.enablePerfMgr&&_(m.config.createPerfMgr)&&(o=m.config.createPerfMgr(m,m.getNotifyMgr())),r||o||null},m.setPerfMgr=function(n){r=n},m.eventCnt=function(){return t.length},m.releaseQueue=function(){var n;d&&0<t.length&&(n=t,t=[],M(n,function(n){y().processNext(n)}))},m.pollInternalLogs=function(n){h=n||null;n=m.config.diagnosticLogInterval;return n&&0<n||(n=1e4),A&&clearInterval(A),A=setInterval(function(){e()},n)},m.stopPollingInternalLogs=function(){A&&(clearInterval(A),A=0,e())},ce(m,function(){return p},["addTelemetryInitializer"]),m.unload=function(n,e,t){d||U("SDK is not initialized"),v&&U(Oi);var r={reason:50,isAsync:n=void 0===n||n,flushComplete:!1},i=xi(x(),m);function o(n){r.flushComplete=n,v=!0,P.run(i,r),m.stopPollingInternalLogs(),i.processNext(r)}i.onComplete(function(){a(),e&&e(r)},m),u(n,o,6,t)||o(!1)},m.getPlugin=l,m.addPlugin=function(n,e,t,r){if(!n)return r&&r(!1),void f(_i);var i=l(n.identifier);if(i&&!e)return r&&r(!1),void f("Plugin ["+n.identifier+"] is already loaded!");var o,a={reason:16};function u(){S.push(n),a.added=[n],c(m.config,a),r&&r(!0)}i?s(o=[i.plugin],{reason:2,isAsync:!!t},function(n){n?(a.removed=o,a.reason|=32,u()):r&&r(!1)}):u()},m.evtNamespace=function(){return n},m.flush=u,m.getTraceCtx=function(n){var e;return N||(e={},N={getName:function(){return e.name},setName:function(n){e.name=n},getTraceId:function(){return e.traceId},setTraceId:function(n){ui(n)&&(e.traceId=n)},getSpanId:function(){return e.spanId},setSpanId:function(n){ci(n)&&(e.spanId=n)},getTraceFlags:function(){return e.traceFlags},setTraceFlags:function(n){e.traceFlags=n}}),N},m.setTraceCtx=function(n){N=n||null},ue(m,"addUnloadCb",function(){return P},"add")})};function Ri(n,t,r,i){M(n,function(n){if(n&&n[t])if(r)setTimeout(function(){return i(n)},0);else try{i(n)}catch(e){}})}var Vi,zi=function Wo(n){this.listeners=[];var t=!!(n||{}).perfEvtsSendAll;j(Wo,this,function(r){r[cn]=function(n){r.listeners.push(n)},r[ln]=function(n){for(var e=O(r.listeners,n);-1<e;)r.listeners.splice(e,1),e=O(r.listeners,n)},r[sn]=function(e){Ri(r.listeners,sn,!0,function(n){n[sn](e)})},r[fn]=function(e,t){Ri(r.listeners,fn,!0,function(n){n[fn](e,t)})},r[dn]=function(e,t){Ri(r.listeners,dn,t,function(n){n[dn](e,t)})},r[gn]=function(e){!e||!t&&e.isChildEvt()||Ri(r.listeners,gn,!1,function(n){e.isAsync?setTimeout(function(){return n[gn](e)},0):n[gn](e)})}})},Bi=(J(Ki,Vi=ji),Ki);function Ki(){var n=Vi.call(this)||this;return j(Ki,n,function(t,i){function r(n){var e=t.getNotifyMgr();e&&e.eventsDiscarded([n],2)}t.initialize=function(n,e,t,r){i.initialize(n,e,t||new Pt(n),r||new zi(n))},t.track=function(e){kt(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){var n;null===e&&(r(e),U("Invalid telemetry item")),k((n=e).name)&&(r(n),U("telemetry name required")),i.track(e)},function(){return{item:e}},!e.sync)}}),n}var Hi=o({CRITICAL:1,WARNING:2}),qi=o({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,InstrumentationKeyDeprecation:106}),Wi=o({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}),Gi=o({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),Ji=o({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),Xi=o({Normal:1,Critical:2}),Qi=o({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),W=L(W(W({},qi),o({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}))),$i="3.2.3",Zi="1DS-Web-JS-"+$i,Yi="withCredentials",no=((s={})[0]=0,s[2]=6,s[1]=1,s[3]=7,s[4098]=6,s[4097]=1,s[4099]=7,s),eo=null,to=!!c(),s=!!Ye();function ro(n){return!(""===n||k(n))}function io(n){if(n){var e=n.indexOf("-");if(-1<e)return n.substring(0,e)}return""}function oo(){return eo=null===eo?!v(Uint8Array)&&!function(){var n=tt();if(!v(n)&&n.userAgent)return!~(n=n.userAgent.toLowerCase()).indexOf("safari")&&!~n.indexOf("firefox")||~n.indexOf("chrome")?void 0:1}()&&!ft():eo}function ao(n){return!!(n&&Hn(n)&&1<=n&&n<=4)}function uo(n,e,t){if(!e&&!ro(e)||"string"!=typeof n)return null;n=typeof e;if("string"==n||"number"==n||"boolean"==n||m(e))e={value:e};else if("object"!=n||e.hasOwnProperty("value")){if(k(e.value)||""===e.value||!y(e.value)&&!Hn(e.value)&&!qn(e.value)&&!m(e.value))return null}else e={value:t?JSON.stringify(e):e};if(m(e.value)&&!xo(e.value))return null;if(!k(e.kind)){if(m(e.value)||!yo(e.kind))return null;e.value=e.value.toString()}return e}function co(n,e,t){var r=-1;return v(n)||(0<e&&(32===e?r=8192:e<=13&&(r=e<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=no[T(n)]||-1,-1!==r&&-1!==e?r|=e:6===e&&(r=e))),r}function lo(){sr(null).setEnabled(!1)}function so(n,e,t){dr(null)&&sr(null).set(n,e,86400*t,null,"/")}function fo(n){dr(null)&&sr(null).del(n)}function go(n){return dr(null)?vo(sr(null),n):""}function vo(n,e,t){var r;return void 0===t&&(t=!0),n&&(r=n.get(e),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function po(n){void 0===n&&(n="D");var e=$r();return"B"===n?e="{"+e+"}":"P"===n?e="("+e+")":"N"===n&&(e=e.replace(/-/g,"")),e}function ho(n,e,t,r,i){var o={},a=!1,u=0,c=arguments.length,l=Object[f],s=arguments;for("[object Boolean]"===l.toString.call(s[0])&&(a=s[0],u++);u<c;u++)h(s[u],function(t,n){a&&n&&p(n)?m(n)?(o[t]=o[t]||[],M(n,function(n,e){n&&p(n)?o[t][e]=ho(!0,o[t][e],n):o[t][e]=n})):o[t]=ho(!0,o[t],n):o[t]=n});return o}var mo=Zr;function yo(n){return 0===n||0<n&&n<=13||32===n}function xo(n){return 0<n.length}function Co(n,e){n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[e]=mo()}function T(n){var e,t=0;return null!==n&&n!==undefined&&("string"==(e=typeof n)?t=1:"number"==e?t=2:"boolean"==e?t=3:e===a&&(t=4,m(n)?(t=4096,0<n.length&&(t|=T(n[0]))):Rn(n,"value")&&(t=8192|T(n.value)))),t}var So,bo={Version:$i,FullVersionString:Zi,strUndefined:e,strObject:a,Undefined:e,arrForEach:M,arrIndexOf:O,arrMap:Jn,arrReduce:Xn,objKeys:Zn,toISOString:Gn,isReactNative:ft,isString:y,isNumber:Hn,isBoolean:qn,isFunction:_,isArray:m,isObject:p,strTrim:x,isDocumentObjectAvailable:to,isWindowObjectAvailable:s,isValueAssigned:ro,getTenantId:io,isBeaconsSupported:gt,isUint8ArrayAvailable:oo,isLatency:ao,sanitizeProperty:uo,getISOString:Gn,useXDomainRequest:vt,getCommonSchemaMetaData:co,cookieAvailable:dr,disallowsSameSiteNone:mr,setCookie:so,deleteCookie:fo,getCookie:go,createGuid:po,extend:ho,getTime:mo,isValueKind:yo,isArrayValid:xo,objDefineAccessors:Yn,addPageUnloadEventListener:Qr,setProcessTelemetryTimings:Co,addEventHandler:qr,getFieldValueType:T,strEndsWith:zn,objForEachKey:h},To={_canUseCookies:undefined,isTypeof:Un,isUndefined:v,isNullOrUndefined:k,hasOwnProperty:Rn,isFunction:_,isObject:p,isDate:Bn,isArray:m,isError:Kn,isString:y,isNumber:Hn,isBoolean:qn,toISOString:Gn,arrForEach:M,arrIndexOf:O,arrMap:Jn,arrReduce:Xn,strTrim:x,objCreate:q,objKeys:Zn,objDefineAccessors:Yn,addEventHandler:qr,dateNow:ee,isIE:dt,disableCookies:lo,newGuid:$r,perfNow:Zr,newId:Bt,randomValue:Rt,random32:Vt,mwcRandomSeed:function(n){n?Ut(n):jt()},mwcRandom32:zt,generateW3CId:Yr},Io="version",wo="properties";function Po(){var n=So.call(this)||this;return n.pluginVersionStringArr=[],n.pluginVersionString="",j(Po,n,function(u,c){u.logger&&u.logger.queue||(u.logger=new Pt({loggingLevelConsole:1})),u.initialize=function(r,i,o,a){kt(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var n=r.propertyStorageOverride;if(n&&(!n.getProperty||!n.setProperty))throw Error("Invalid property storage override passed.");r.channels&&M(r.channels,function(n){n&&M(n,function(n){n.identifier&&n.version&&(n=n.identifier+"="+n.version,u.pluginVersionStringArr.push(n))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&M(i,function(n){n&&n.identifier&&n.version&&(n=n.identifier+"="+n.version,u.pluginVersionStringArr.push(n))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{c.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var n=u.logger,e=b(t);~e.indexOf("channels")&&(e+="\n - Channels must be provided through config.channels only!"),n.throwInternal(1,514,"SDK Initialization Failed - no telemetry will be sent: "+e)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){kt(u,function(){return"AppInsightsCore.track"},function(){var n,e=t;e&&(e.timings=e.timings||{},e.timings.trackStart=mo(),ao(e.latency)||(e.latency=1),(n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=Zi,(n=e.baseData=e.baseData||{})[wo]||(n[wo]={}),(n=n[wo])[Io]||(n[Io]=""),""!==u.pluginVersionString&&(n[Io]=u.pluginVersionString)),c.track(e)},function(){return{item:t}},!t.sync)}}),n}J(Po,So=Bi);var Eo,No=Po;function Ao(){var n=Eo.call(this)||this;return j(Ao,n,function(o,a){o.initialize=function(n,e,t,r){n&&!n.endpointUrl&&(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return to?0:-1};try{a.initialize(n,e,t,r)}catch(i){R(o.logger,1,514,"Initialization Failed: "+b(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(n){var e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Zi),a.track(n)}}),n}J(Ao,Eo=ji);var Fo=Ao,ko=_;function I(n){var a=0,u=null,e=[];function i(t,r,i,o){e.push(function(){var n;try{(n=1===a?ko(t)?t(u):u:ko(r)?r(u):u)instanceof I?n.then(i,o):(2!==a||ko(r)?i:o)(n)}catch(e){return void o(e)}}),0!==a&&c()}function c(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var n=0,e=r.length;n<e;++n)try{r[n]()}catch(t){}},0))}function t(n){0===a&&(u=n,a=2,c())}if(j(I,this,function(e){e.then=function(t,r){return new I(function(n,e){i(t,r,n,e)})},e["catch"]=function(n){return e.then(null,n)}}),!ko(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(function(n){0===a&&(u=n,a=1,c())},t)}catch(r){t(r)}}I.resolve=function(r){return r instanceof I?r:r&&ko(r.then)?new I(function(n,e){try{r.then(n,e)}catch(t){e(t)}}):new I(function(n){n(r)})},I.reject=function(t){return new I(function(n,e){e(t)})},I.all=function(u){if(u&&u.length)return new I(function(r,n){try{for(var i=[],o=0,e=0;e<u.length;e++){var t=u[e];t&&ko(t.then)?(o++,t.then(function(e,t){return function(n){e[t]=n,0==--o&&r(i)}}(i,e),n)):i[e]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){n(a)}})},I.race=function(i){return new I(function(e,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var n=i[r];n&&ko(n.then)?n.then(e,t):setTimeout(function(){e(n)},0)}()}catch(n){t(n)}})};var _o=I,Mo=0,Oo=[],Lo=[],Do=[];function Uo(){return(new Date).getTime()}function jo(n,e){var h=0,m=(n||"<unnamed>")+"."+Mo;function y(n){var e=K();e&&e.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+n)}function x(n){e&&e.warnToConsole("ESPromiseScheduler["+m+"] "+n)}Mo++,j(jo,this,function(n){var g=null,v=0;function p(n,e){for(var t=0;t<n.length;t++)if(n[t].id===e)return n.splice(t,1)[0];return null}n.scheduleEvent=function(t,n,u){var i,o,e,a=m+"."+v,n=(v++,n&&(a+="-("+n+")"),a+"{"+h+"}"),r=(h++,{evt:null,tm:Uo(),id:n,isRunning:!1,isAborted:!1});return r.evt=g?(i=r,o=g,e=new _o(function(e,t){var n=Uo()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+Lo.length+"] waiting and ["+Oo.length+"] running"),i.abort=function(n){i.abort=null,p(Lo,a),i.isAborted=!0,t(Error(n))},o.evt.then(function(n){p(Lo,a),d(i).then(e,t)},function(n){p(Lo,a),d(i).then(e,t)})}),Lo.push(i),e):d(r),(g=r).evt._schId=n,r.evt;function c(n){for(var e=Uo(),t=e-6e5,r=n.length,i=0;i<r;){var o,a=n[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(e-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(e-a.tm)+" ms)",x(o),n.splice(i,1),r--):i++}}function l(n,e){var t,r=!1,i=p(Oo,n);i||(i=p(Do,n),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Uo()-i.tm,e?r?x("Timed out event ["+n+"] finally complete -- "+t+" ms"):y("Promise ["+n+"] Complete -- "+t+" ms"):(Do.push(i),x("Event ["+n+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+n+"] from running queue"),g&&g.id===n&&(g=null),c(Oo),c(Lo),c(Do)}function s(e,t){return function(n){return l(e,!0),t&&t(n),n}}function f(r,o){var a=r.id;return new _o(function(e,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(n){r.abort=null,r.isAborted=!0,l(a,!1),t(Error(n))};var n=o(a);n instanceof _o?(u&&(r.to=setTimeout(function(){l(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(e,n,t,r){n.then(function(n){return n instanceof _o?(y("Event ["+e+"] returned a promise -- waiting"),i(e,n,t,r),n):s(e,t)(n)},s(e,r))}(a,n,function(n){y("Event ["+a+"] Resolving after "+(Uo()-r.tm)+" ms"),e(n)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),e())})}function d(n){var e=Uo();return n.wTm=e-n.tm,n.tm=e,n.isAborted?_o.reject(Error("["+a+"] was aborted")):(Oo.push(n),f(n,t))}}})}jo.incomplete=function(){return Oo},jo.waitingToStart=function(){return Lo};var Ro=jo,Vo=(zo.getFieldType=T,zo);function zo(n){var c=this,o={},a=[],u=[];function l(n,e){var t=o[n];if(!(i=t?t[e]:i)&&null!==i){if(y(n)&&y(e))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(n,e)){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(n,e)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[n]={}))[e]=i}return i}function s(n,e,t,r,i,o){if(n.handler)return n.handler.property(e,t,i,o);if(!k(i.kind)){if(4096==(4096&r)||!yo(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,n,e){var t,a;return e&&r&&(t=r.getSanitizer(i,o,n,e.kind,e.propertyType))&&(4===n?(a={},h(e.value,function(n,e){var t;ro(e)&&(t=f(0,0,e),(t=u(r,i+"."+o,n,T(e),t))&&(a[n]=t.value))}),e.value=a):e=t.call(c,{path:i,name:o,type:n,prop:e,sanitizer:c})),e}(n.fieldHandler,e,t,r,i)}function f(n,e,t){return ro(t)?{value:t}:null}n&&u.push(n),c.addSanitizer=function(n){n&&(a.push(n),o={})},c.addFieldSanitizer=function(n){n&&(u.push(n),o={})},c.handleField=function(n,e){n=l(n,e);return!!n&&n.canHandle},c.value=function(n,e,t,r){var i=l(n,e);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(n,e,t,r);if(!y(e)||k(t)||""===t)return null;var o=null,a=T(t);if(8192==(8192&a)){var u=-8193&a;if(!ro((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 s(i,n,e,a,o,r)}return null},c.property=function(n,e,t,r){var i=l(n,e);if(!i||!i.canHandle)return null;if(!y(e)||k(t)||!ro(t.value))return null;var o=T(t.value);return 0===o?null:s(i,n,e,o,t,r)}}n.AppInsightsCore=No,n.BaseCore=Fo,n.BaseTelemetryPlugin=r,n.CoreUtils=To,n.DiagnosticLogger=Pt,n.ESPromise=_o,n.ESPromiseScheduler=Ro,n.EventHelper=Tn,n.EventLatency=Gi,n.EventPersistence=Xi,n.EventPropertyType=Ji,n.EventsDiscardedReason=wn,n.FullVersionString=Zi,n.InternalAppInsightsCore=Bi,n.InternalBaseCore=ji,n.LoggingSeverity=Hi,n.MinChannelPriorty=100,n.NotificationManager=zi,n.PerfEvent=Et,n.PerfManager=At,n.ProcessTelemetryContext=function(n,e,t,r){n=V(n,e,t,r);ce(this,n,Zn(n))},n.TraceLevel=Qi,n.Undefined=e,n.Utils=bo,n.ValueKind=Wi,n.ValueSanitizer=Vo,n.Version=$i,n._ExtendedInternalMessageId=W,n._InternalLogMessage=Tt,n._InternalMessageId=qi,n.__getRegisteredEvents=function(n,e,t){var r=[],n=Mr.get(n,Tr,{},!1),i=Dr(e,t);return h(n,function(n,e){M(e,function(n){i.type&&i.type!==n.evtName.type||i.ns&&i.ns!=i.ns||r.push({name:n.evtName.type+(n.evtName.ns?"."+n.evtName.ns:""),handler:n.handler})})}),r},n._throwInternal=R,n.addEventHandler=qr,n.addEventListeners=Jr,n.addPageHideEventListener=function Go(t,n,e){var r=Vr(Nr,e),i=Gr([wr],t,n,r);return!(i=(!n||-1===O(n,Ir))&&Gr([Ir],function(n){var e=c();t&&e&&"hidden"===e.visibilityState&&t(n)},n,r)||i)&&n?Go(t,null,e):i},n.addPageShowEventListener=function Jo(t,n,e){var r=Vr(Ar,e),i=Gr([Pr],t,n,r);return!(i=Gr([Ir],function(n){var e=c();t&&e&&"visible"===e.visibilityState&&t(n)},n,r)||i)&&n?Jo(t,null,e):i},n.addPageUnloadEventListener=Qr,n.areCookiesSupported=dr,n.arrForEach=M,n.arrIndexOf=O,n.arrMap=Jn,n.arrReduce=Xn,n.attachEvent=Kr,n.cookieAvailable=dr,n.createCookieMgr=fr,n.createEnumStyle=o,n.createGuid=po,n.createProcessTelemetryContext=V,n.createTraceParent=function(n,e,t,r){return{version:l(r,2,"ff")?r:"00",traceId:ui(n)?n:Yr(),spanId:ci(e)?e:Yr().substr(0,16),traceFlags:0<=t&&t<=255?t:1}},n.createUniqueNamespace=Gt,n.createUnloadHandlerContainer=Ei,n.dateNow=ee,n.deleteCookie=fo,n.detachEvent=Hr,n.disableCookies=lo,n.disallowsSameSiteNone=mr,n.doPerf=kt,n.dumpObj=b,n.eventOff=Br,n.eventOn=zr,n.extend=ho,n.findW3cTraceParent=function(){var n,e;return ai((e=c())?ht(e.querySelectorAll("meta"),"traceparent").content:null)||ai(n=(e=at())?ht((0<(e=e.getEntriesByType("navigation")||[]).length?e[0]:{}).serverTiming,"traceparent").description:n)},n.formatTraceParent=function(n){var e,t;return n?(l(e=oi(n.traceFlags),2)||(e="01"),t=n.version||"00","".concat(t="00"!==t&&"ff"!==t?"00":t,"-").concat(ii(n.traceId,32,ti),"-").concat(ii(n.spanId,16,ri),"-").concat(e)):""},n.generateW3CId=Yr,n.getCommonSchemaMetaData=co,n.getConsole=ot,n.getCookie=go,n.getCookieValue=vo,n.getCrypto=lt,n.getDocument=c,n.getExceptionName=te,n.getFieldValueType=T,n.getGlobal=K,n.getGlobalInst=u,n.getHistory=function(){return rt()?history:u("history")},n.getIEVersion=function(n){var e=((n=(n=void 0===n?null:n)?n:(e=tt()||{})?(e.userAgent||g).toLowerCase():g)||g).toLowerCase();if(i(e,Ke))return n=c()||{},Math.max(parseInt(e.split(Ke)[1]),n.documentMode||0);if(i(e,He)){n=parseInt(e.split(He)[1]);if(n)return n+4}return null},n.getISOString=Gn,n.getJSON=ct,n.getLocation=it,n.getMsCrypto=st,n.getNavigator=tt,n.getPerformance=at,n.getSetValue=re,n.getTenantId=io,n.getTime=mo,n.getWindow=Ye,n.hasDocument=nt,n.hasHistory=rt,n.hasJSON=ut,n.hasNavigator=et,n.hasOwnProperty=Rn,n.hasWindow=Ze,n.isArray=m,n.isArrayValid=xo,n.isBeaconsSupported=gt,n.isBoolean=qn,n.isChromium=function(){return!!u("chrome")},n.isDate=Bn,n.isDocumentObjectAvailable=to,n.isError=Kn,n.isFetchSupported=function(n){var e=!1;try{var e=!!u("fetch"),t=u("Request");e&&n&&t&&(e=$e(t,"keepalive"))}catch(r){}return e},n.isFunction=_,n.isIE=dt,n.isLatency=ao,n.isNotTruthy=ie,n.isNullOrUndefined=k,n.isNumber=Hn,n.isObject=p,n.isReactNative=ft,n.isSampledFlag=function(n){return!!li(n)&&1==(1&n.traceFlags)},n.isString=y,n.isTruthy=oe,n.isTypeof=Un,n.isUint8ArrayAvailable=oo,n.isUndefined=v,n.isValidSpanId=ci,n.isValidTraceId=ui,n.isValidTraceParent=li,n.isValueAssigned=ro,n.isValueKind=yo,n.isWindowObjectAvailable=s,n.isXhrSupported=pt,n.mergeEvtNamespace=Vr,n.newGuid=$r,n.newId=Bt,n.normalizeJsName=Vn,n.objCreate=q,n.objDefineAccessors=Yn,n.objForEachKey=h,n.objFreeze=L,n.objKeys=Zn,n.objSeal=un,n.openXhr=function(n,e,t,r,i,o){function a(n,e,t){try{n[e]=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,Yi,t),u.open(n,e,!i),t&&a(u,Yi,t),!i&&o&&a(u,"timeout",o),u},n.optimizeObject=function(n){return n&&N?t(N({},n)):n},n.parseTraceParent=ai,n.perfNow=Zr,n.proxyAssign=function(t,r,i){if(t&&r&&p(t)&&p(r))for(var n in r)!function(e){var n;y(e)&&(_(n=r[e])?i&&!i(e,!0,r,t)||(t[e]=ae(r,e)):i&&!i(e,!1,r,t)||(Rn(t,e)&&delete t[e],Yn(t,e,function(){return r[e]},function(n){r[e]=n})||(t[e]=n)))}(n);return t},n.proxyFunctionAs=ue,n.proxyFunctions=ce,n.random32=Vt,n.randomValue=Rt,n.removeEventHandler=Wr,n.removeEventListeners=Xr,n.removePageHideEventListener=function(n,e){e=Vr(Nr,e);Xr([wr],n,e),Xr([Ir],null,e)},n.removePageShowEventListener=function(n,e){e=Vr(Ar,e);Xr([Pr],n,e),Xr([Ir],null,e)},n.removePageUnloadEventListener=function(n,e){Xr([Er,"unload",wr],n,e)},n.safeGetCookieMgr=sr,n.safeGetLogger=wt,n.sanitizeProperty=uo,n.setCookie=so,n.setEnableEnvMocks=function(n){Je=n},n.setProcessTelemetryTimings=Co,n.setValue=D,n.strContains=i,n.strEndsWith=zn,n.strFunction=w,n.strObject=a,n.strPrototype=f,n.strStartsWith=function(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(Nn)return n[hn](e);var r=n,i=e,n=!1,o=i?i.length:0;if(r&&o&&r.length>=o&&!(n=r===i)){for(var a=0;a<o;a++)if(r[a]!==i[a])return!1;n=!0}return n}return t},n.strTrim=x,n.strUndefined=e,n.throwError=U,n.toISOString=Gn,n.useXDomainRequest=vt;No=n,Fo="__esModule",r={value:!0},To=Object.defineProperty;if(To)try{return void To(No,Fo,r)}catch(Xo){}typeof r.value!==undefined&&(No[Fo]=r.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).oneDS=n.oneDS||{});
var n=this,e=function(n){"use strict";var w="function",u="object",e="undefined",s="prototype",P="hasOwnProperty",t=Object,E=t[s],_=t.assign,A=t.create,N=t.defineProperty,H=E[P],B=null;function q(n){return void 0===n&&(n=!0),B&&n||(typeof globalThis!==e&&globalThis&&(B=globalThis),typeof self!==e&&self&&(B=self),typeof window!==e&&window&&(B=window),typeof global!==e&&global&&(B=global)),B}function K(n){throw new TypeError(n)}function W(n){if(A)return A(n);if(null==n)return{};var e=typeof n;function t(){}return e!==u&&e!==w&&K("Object prototype may only be an Object:"+n),t[s]=n,new t}(q()||{}).Symbol,(q()||{}).Reflect;var G=_||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])E[P].call(e,i)&&(n[i]=e[i]);return n},J=function(n,e){return(J=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e[P](t)&&(n[t]=e[t])})(n,e)};function X(n,e){function t(){this.constructor=n}typeof e!==w&&null!==e&&K("Class extends value "+e+" is not a constructor or null"),J(n,e),n[s]=null===e?W(e):(t[s]=e[s],new t)}function Q(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n}var $="initialize",k="name",Z="getNotifyMgr",Y="identifier",O="push",nn="isInitialized",en="config",tn="instrumentationKey",D="logger",M="length",rn="time",F="processNext",on="getProcessTelContext",un="addNotificationListener",an="removeNotificationListener",cn="stopPollingInternalLogs",ln="onComplete",fn="getPlugin",sn="flush",dn="_extensions",vn="splice",gn="teardown",pn="messageId",mn="message",hn="isAsync",yn="_doTeardown",Cn="update",v="getNext",Sn="diagLog",bn="setNextPlugin",xn="createNew",In="cookieCfg",Tn="indexOf",wn="substring",Pn="userAgent",En="split",_n="setEnabled",An="replace",Nn="substr",kn="nodeType",On="apply",Dn="enableDebugExceptions",Mn="logInternalMessage",Fn="toLowerCase",d="call",p="type",Ln="handler",Un="listeners",Rn="isChildEvt",jn="getCtx",l="setCtx",Vn="complete",zn="traceId",Hn="spanId",Bn="traceFlags",qn="version",g="",Kn="channels",L="core",Wn="createPerfMgr",Gn="disabled",Jn="extensionConfig",m="processTelemetry",Xn="priority",Qn="eventsSent",$n="eventsDiscarded",Zn="eventsSendRequest",Yn="perfEvent",ne="errorToConsole",ee="warnToConsole",te="getPerfMgr",re="toISOString",ie="endsWith",oe="startsWith",ue="indexOf",ae="trim",ce="toString",le="constructor",fe=N,se=t.freeze,de=t.seal,ve=t.keys,ge=String[s],pe=ge[ae],me=ge[ie],he=ge[oe],ye=Date[s][re],ge=Array.isArray,Ce=E[ce],Se=H[ce],be=Se[d](t),xe=/-([a-z])/g,Ie=/([^\w\d_$])/g,Te=/^(\d+[\w\d_$])/,we=Object.getPrototypeOf;function Pe(n,e){return typeof n===e}function h(n){return n===undefined||typeof n===e}function U(n){return null===n||h(n)}function Ee(n){return!U(n)}function _e(n,e){return!(!n||!H[d](n,e))}function y(n){return!(!n||typeof n!==u)}function R(n){return!(!n||typeof n!==w)}function Ae(n){var e=n;return n&&b(n)?(e=(e=n[An](xe,function(n,e){return e.toUpperCase()}))[An](Ie,"_"))[An](Te,function(n,e){return"_"+e}):e}function C(n,e){if(n)for(var t in n)H[d](n,t)&&e[d](n,t,n[t])}function Ne(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(me)return n[ie](e);var r=n,i=e,n=!1,e=i?i[M]:0,o=r?r[M]:0;if(e&&o&&e<=o&&!(n=r===i)){for(var u=o-1,a=e-1;0<=a;a--){if(r[u]!=i[a])return!1;u--}n=!0}return n}return t}function r(n,e){return!(!n||!e)&&-1!==n[Tn](e)}function ke(n){return!(!n||"[object Date]"!==Ce[d](n))}var S=ge||function(n){return!(!n||"[object Array]"!==Ce[d](n))};function Oe(n){return!(!n||"[object Error]"!==Ce[d](n))}function b(n){return"string"==typeof n}function De(n){return"number"==typeof n}function Me(n){return"boolean"==typeof n}function Fe(n){return n&&"object"==typeof n&&(!(n=(we||function(n){if(n){if(we)return we(n);n=n.__proto__||n[s]||n[le];if(n)return n}return null})(n))||typeof(n=n[le]&&H[d](n,le)?n[le]:n)===w&&Se[d](n)===be)}function Le(n){if(n){if(ye)return n[re]();var e;return n&&n.getUTCFullYear?(e=function(n){n=""+n;return 1===n[M]?"0"+n:n},n.getUTCFullYear()+"-"+e(1+n.getUTCMonth())+"-"+e(n.getUTCDate())+"T"+e(n.getUTCHours())+":"+e(n.getUTCMinutes())+":"+e(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}function j(n,e,t){var r=n[M];try{for(var i=0;i<r&&!(i in n&&-1===e[d](t||n,n[i],i,n));i++);}catch(o){}}function Ue(n,e,t){if(n){if(n[ue])return n[ue](e,t);var r=n[M],t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in n&&n[i]===e)return i}catch(o){}}return-1}function Re(n,e,t){if(n){if(n.map)return n.map(e,t);var r=n[M],i=t||n,o=Array(r);try{for(var u=0;u<r;u++)u in n&&(o[u]=e[d](i,n[u],n))}catch(a){}}return o}function je(n,e,t){var r;if(n){if(n.reduce)return n.reduce(e,t);var i=n[M],o=0;if(3<=arguments[M])r=t;else{for(;o<i&&!(o in n);)o++;r=n[o++]}for(;o<i;)o in n&&(r=e(r,n[o],o,n)),o++}return r}function x(n){return n&&(pe&&n[ae]?n[ae]():n[An]?n[An](/^\s+|\s+$/g,g):n)}var Ve=!{toString:null}.propertyIsEnumerable("toString"),ze=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function He(n){var e=typeof n;if(e===w||e===u&&null!==n||K("objKeys called on non-object"),!Ve&&ve)return ve(n);var t,r=[];for(t in n)n&&H[d](n,t)&&r[O](t);if(Ve)for(var i=ze[M],o=0;o<i;o++)n&&H[d](n,ze[o])&&r[O](ze[o]);return r}function Be(n,e,t,r){if(fe)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),fe(n,e,i),!0}catch(o){}return!1}function qe(n){return n}var Ke=se||qe,ce=de||qe;function We(){var n=Date;return n.now?n.now():(new n).getTime()}function Ge(n){return Oe(n)?n[k]:g}function Je(n,e,t,r,i){var o=t;return!n||(o=n[e])===t||i&&!i(o)||r&&!r(t)||(n[e]=o=t),o}function Xe(n,e,t){var r;return n?!(r=n[e])&&U(r)&&(r=h(t)?{}:t,n[e]=r):r=h(t)?{}:t,r}function Qe(n,e){return U(n)?e:n}function $e(n){return!!n}function V(n){throw Error(n)}function Ze(n,e){var t=null,r=null;return R(n)?t=n:r=n,function(){var n=arguments;if(r=t?t():r)return r[e][On](r,n)}}function Ye(n,e,t,r,i){n&&e&&t&&(!1===i&&!h(n[e])||(n[e]=Ze(t,r)))}function nt(e,t,n,r){return e&&t&&y(e)&&S(n)&&j(n,function(n){b(n)&&Ye(e,n,t,n,r)}),e}function et(){var n=arguments,e=n[0]||{},t=n[M],r=!1,i=1;for(0<t&&Me(e)&&(r=e,e=n[i]||{},i++),y(e)||(e={});i<t;i++){var o,u,a,c,l=n[i],f=S(l),s=y(l);for(o in l)(f&&o in l||s&&H[d](l,o))&&(u=l[o],a=void 0,r&&u&&((a=S(u))||Fe(u))&&(c=e[o],a?S(c)||(c=[]):Fe(c)||(c={}),u=et(r,c,u)),u!==undefined&&(e[o]=u))}return e}function tt(n){var t={};return C(n,function(n,e){t[n]=e,t[e]=n}),n=t,se&&C(n,function(n,e){(S(e)||y(e))&&se(e)}),Ke(n)}var ge=tt({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),rt="constructor",it="prototype",ot="function",ut="_dynInstFuncs",at="_isDynProxy",ct="_dynClass",lt="_dynInstChk",ft=lt,st="_dfOpts",dt="_unknown_",vt="__proto__",gt="_dyn"+vt,pt="_dynInstProto",mt="useBaseInst",ht="setInstFuncs",yt=Object,Ct=yt.getPrototypeOf,St=yt.getOwnPropertyNames,bt=0;function xt(n,e){return n&&yt[it].hasOwnProperty.call(n,e)}function It(n){return n&&(n===yt[it]||n===Array[it])}function Tt(n){return It(n)||n===Function[it]}function wt(n){if(n){if(Ct)return Ct(n);var e=n[vt]||n[it]||(n[rt]?n[rt][it]:null),t=n[gt]||e;xt(n,gt)||(delete n[pt],t=n[gt]=n[pt]||n[gt],n[pt]=e)}return t}function Pt(n,e){var t=[];if(St)t=St(n);else for(var r in n)"string"==typeof r&&xt(n,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)e(t[i])}function Et(n,e,t){return e!==rt&&typeof n[e]===ot&&(t||xt(n,e))}function _t(n){throw new TypeError("DynamicProto: "+n)}function At(n,e){for(var t=n.length-1;0<=t;t--)if(n[t]===e)return 1}function Nt(n,e){return xt(n,it)?n.name||e||dt:((n||{})[rt]||{}).name||e||dt}function z(n,r,e,t){xt(n,it)||_t("theClass is an invalid class definition.");var i,o,u,a,c,l,f=n[it],s=(function(n){if(!Ct)return 1;for(var e=[],t=wt(r);t&&!Tt(t)&&!At(e,t);){if(t===n)return 1;e.push(t),t=wt(t)}}(f)||_t("["+Nt(n)+"] is not in class hierarchy of ["+Nt(r)+"]"),null),n=(xt(f,ct)?s=f[ct]:(s="_dynCls$"+Nt(n,"_")+"$"+bt,bt++,f[ct]=s),z[st]),d=!!n[mt],v=(d&&t&&t[mt]!==undefined&&(d=!!t[mt]),o={},Pt(i=r,function(n){!o[n]&&Et(i,n,!1)&&(o[n]=i[n])}),o),d=(e(r,function(n,e,t,o){function r(n,e,t){var r,i=e[t];return i[at]&&o&&!1!==(r=n[ut]||{})[ft]&&(i=(r[e[ct]]||{})[t]||i),function(){return i.apply(n,arguments)}}for(var i={},u=(Pt(t,function(n){i[n]=r(e,t,n)}),wt(n)),a=[];u&&!Tt(u)&&!At(a,u);)Pt(u,function(n){!i[n]&&Et(u,n,!Ct)&&(i[n]=r(e,u,n))}),a.push(u),u=wt(u);return i}(f,r,v,d)),!!Ct&&!!n[ht]);u=f,e=s,a=r,c=v,n=!1!==(d=d&&t?!!t[ht]:d),It(u)||(f=a[ut]=a[ut]||{},l=f[e]=f[e]||{},!1!==f[ft]&&(f[ft]=!!n),Pt(a,function(n){var t,r,i;Et(a,n,!1)&&a[n]!==c[n]&&(l[n]=a[n],delete a[n],xt(u,n)&&(!u[n]||u[n][at])||(u[n]=(t=u,r=n,(i=function(){var n,e;return(function(n,e,t,r){var i=null;if(n&&xt(t,ct)){var o=n[ut]||{};if((i=(o[t[ct]]||{})[e])||_t("Missing ["+e+"] "+ot),!i[lt]&&!1!==o[ft]){for(var u=!xt(n,e),a=wt(n),c=[];u&&a&&!Tt(a)&&!At(c,a);){var l=a[e];if(l){u=l===r;break}c.push(a),a=wt(a)}try{u&&(n[e]=i),i[lt]=1}catch(f){o[ft]=!1}}}return i}(this,r,t,i)||(typeof(e=(e=t[n=r])===i?wt(t)[n]:e)!==ot&&_t("["+n+"] is not a "+ot),e)).apply(this,arguments)})[at]=1,i)))}))}var kt="window",Ot="navigator",Dt="location",Mt="console",Ft="performance",Lt="JSON",Ut="crypto",Rt="msCrypto",jt="msie",Vt="trident/",zt="XMLHttpRequest",Ht=null,Bt=null,qt=!(z[st]={setInstFuncs:!0,useBaseInst:!0}),Kt=null,Wt=null;function Gt(n,e){var t,r=!1;if(n){try{(r=e in n)||(t=n[s])&&(r=e in t)}catch(i){}if(!r)try{r=!h((new n)[e])}catch(i){}}return r}function i(n){var e=q();return e&&e[n]?e[n]:n===kt&&Jt()?window:null}function Jt(){return!(typeof window!==u||!window)}function Xt(){return Jt()?window:i(kt)}function Qt(){return!(typeof document!==u||!document)}function $t(){return Qt()?document:i("document")}function Zt(){return!(typeof navigator!==u||!navigator)}function Yt(){return Zt()?navigator:i(Ot)}function nr(){return!(typeof history!==u||!history)}function er(n){if(n&&qt){n=i("__mockLocation");if(n)return n}return typeof location===u&&location?location:i(Dt)}function tr(){return typeof console!==e?console:i(Mt)}function rr(){return i(Ft)}function ir(){return!!(typeof JSON===u&&JSON||null!==i(Lt))}function or(){return ir()?JSON||i(Lt):null}function ur(){return i(Ut)}function ar(){return i(Rt)}function cr(){var n=Yt();return!(!n||!n.product)&&"ReactNative"===n.product}function lr(){var n=Yt();return!n||n[Pn]===Bt&&null!==Ht||(n=((Bt=n[Pn])||g)[Fn](),Ht=r(n,jt)||r(n,Vt)),Ht}function fr(n){var e=Object[s].toString[d](n),t=g;return"[object Error]"===e?t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n[k]+"'":ir()&&(t=or().stringify(n)),e+t}function sr(){return Wt=null===Wt?Zt()&&!!Yt().sendBeacon:Wt}function dr(){return Kt=null===Kt&&(Kt=typeof XDomainRequest!==e)&&vr()?Kt&&!Gt(i(zt),"withCredentials"):Kt}function vr(){var n=!1;try{n=!!i(zt)}catch(e){}return n}function gr(n,e){if(n)for(var t=0;t<n[M];t++){var r=n[t];if(r[k]&&r[k]===e)return r}return{}}var pr,mr=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],hr=null;function yr(n){var e=hr;return(e=e||!0===n.disableDbgExt?e:hr||(n=i("Microsoft"),hr=n?n.ApplicationInsights:hr))?e.ChromeDbgExt:null}function Cr(n){return n?'"'+n[An](/\"/g,g)+'"':g}function Sr(n,e){var t,r=tr();r&&(t="log",R(r[t=r[n]?n:t])&&r[t](e))}xr.dataType="MessageData";var br=xr;function xr(n,e,t,r){void 0===t&&(t=!1),this[pn]=n,this[mn]=(t?"AI: ":"AI (Internal): ")+n;t=g,ir()&&(t=or().stringify(r)),n=(e?" message:"+Cr(e):g)+(r?" props:"+Cr(t):g);this[mn]+=n}function Ir(n,e){return(n||{})[D]||new Tr(e)}wr.__ieDyn=1;var Tr=wr;function wr(r){this.identifier="DiagnosticLogger",this.queue=[];var c,i,l,f,s=0,d={};z(wr,this,function(o){var n;function u(n,e){var t,r;l<=s||(r=!0,t="AITR_"+e[pn],d[t]?r=!1:d[t]=!0,r&&(n<=i&&(o.queue[O](e),s++,a(1===n?"error":"warn",e)),s===l&&(r=new br(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue[O](r),1===n?o[ne](t):o[ee](t))))}function a(n,e){var t=yr(r||{});t&&t[Sn]&&t[Sn](n,e)}c=Qe((n=r||{}).loggingLevelConsole,0),i=Qe(n.loggingLevelTelemetry,1),l=Qe(n.maxMessageLimit,25),f=Qe(n[Dn],!1),o.consoleLoggingLevel=function(){return c},o.telemetryLoggingLevel=function(){return i},o.maxInternalMessageLimit=function(){return l},o[Dn]=function(){return f},o.throwInternal=function(n,e,t,r,i){e=new br(e,t,i=void 0!==i&&i,r);if(f)throw fr(e);t=1===n?ne:ee;h(e[mn])?a("throw"+(1===n?"Critical":"Warning"),e):(i?(r=+e[pn],!d[r]&&n<=c&&(o[t](e[mn]),d[r]=!0)):n<=c&&o[t](e[mn]),u(n,e))},o[ee]=function(n){Sr("warn",n),a("warning",n)},o[ne]=function(n){Sr("error",n),a("error",n)},o.resetInternalMessageCount=function(){s=0,d={}},o[Mn]=u})}function Pr(n){return n||new Tr}function Er(n,e,t,r,i,o){void 0===o&&(o=!1),Pr(n).throwInternal(e,t,r,i,o)}function _r(n,e){Pr(n)[ee](e)}var Ar="ParentContextKey",Nr="ChildrenContextKey",kr=(Or.ParentContextKey="parent",Or.ChildrenContextKey="childEvts",Or);function Or(n,i,e){var t,o=this,u=!1;o.start=We(),o[k]=n,o[hn]=e,o[Rn]=function(){return!1},R(i)&&(u=Be(o,"payload",function(){return!t&&R(i)&&(t=i(),i=null),t})),o[jn]=function(n){return n?(n===Or[Ar]||n===Or[Nr]?o:o.ctx||{})[n]:null},o[l]=function(n,e){n&&(n===Or[Ar]?(o[n]||(o[Rn]=function(){return!0}),o[n]=e):n===Or[Nr]?o[n]=e:(o.ctx=o.ctx||{})[n]=e)},o[Vn]=function(){var n=0,e=o[jn](Or[Nr]);if(S(e))for(var t=0;t<e[M];t++){var r=e[t];r&&(n+=r[rn])}o[rn]=We()-o.start,o.exTime=o[rn]-n,o[Vn]=function(){},!u&&R(i)&&(o.payload=i())}}Mr.__ieDyn=1;var Dr=Mr;function Mr(e){this.ctx={},z(Mr,this,function(t){t.create=function(n,e,t){return new kr(n,e,t)},t.fire=function(n){n&&(n[Vn](),e&&R(e[Yn])&&e[Yn](n))},t[l]=function(n,e){n&&((t.ctx=t.ctx||{})[n]=e)},t[jn]=function(n){return(t.ctx||{})[n]}})}var Fr="CoreUtils.doPerf";function Lr(n,e,t,r,i){if(n)if(n=n[te]?n[te]():n){var o,u=void 0,a=n[jn](Fr);try{if(u=n.create(e(),r,i))return a&&u[l]&&(u[l](kr[Ar],a),a[jn]&&a[l]&&((o=a[jn](kr[Nr]))||(o=[],a[l](kr[Nr],o)),o[O](u))),n[l](Fr,u),t(u)}catch(c){u&&u[l]&&u[l]("exception",c)}finally{u&&n.fire(u),n[l](Fr,a)}}return t()}var Ur=4294967296,Rr=4294967295,jr=!1,Vr=123456789,zr=987654321;function Hr(n){n<0&&(n>>>=0),Vr=123456789+n&Rr,zr=987654321-n&Rr,jr=!0}function Br(){try{var n=2147483647&We();Hr((Math.random()*Ur^n)+n)}catch(e){}}function qr(n){return 0<n?Math.floor(Kr()/Rr*(n+1))>>>0:0}function Kr(n){var e=0,t=ur()||ar();return 0===(e=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Rr:e)&&lr()&&(jr||Br(),e=Wr()&Rr),0===e&&(e=Math.floor(Ur*Math.random()|0)),n||(e>>>=0),e}function Wr(n){var e=((zr=36969*(65535&zr)+(zr>>16)&Rr)<<16)+(65535&(Vr=18e3*(65535&Vr)+(Vr>>16)&Rr))>>>0&Rr|0;return n||(e>>>=0),e}function Gr(n){void 0===n&&(n=22);for(var e=Kr()>>>0,t=0,r=g;r[M]<n;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&e]||"",e>>>=6,5==++t&&(e=(Kr()<<2&4294967295|3&e)>>>0,t=0);return r}var Jr=N,Xr="."+Gr(6),Qr=0;function $r(n){return 1===n[kn]||9===n[kn]||!+n[kn]}function Zr(n,e){return Ae(n+Qr+++((e=void 0!==e&&e)?".2.8.5":g)+Xr)}function Yr(n){var o={id:Zr("_aiData-"+(n||g)+".2.8.5"),accept:$r,get:function(n,e,t,r){var i=n[o.id];return i?i[Ae(e)]:(r&&((i=function(n,e){var t=e[n.id];if(!t){t={};try{$r(e)&&!function(n,e,t){if(Jr)try{return Jr(n,e,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(e,n.id,t)&&(e[n.id]=t)}catch(r){}}return t}(o,n))[Ae(e)]=t),t)},kill:function(n,e){if(n&&n[e])try{delete n[e]}catch(t){}}};return o}var ni="toGMTString",ei="toUTCString",ti="cookie",ri="expires",ii="enabled",oi="isCookieUseDisabled",ui="disableCookiesUsage",ai="_ckMgr",ci=null,li=null,fi=null,si=$t(),di={},vi={};function gi(n){return!n||n.isEnabled()}function pi(n,e){var t,r;return n?t=n.getCookieMgr():e&&(t=e[In][ai]||mi(e)),t||(n=(n||{})[D],(r=mi[ai]||vi[ai])||(r=mi[ai]=mi(e,n),vi[ai]=r),t=r),t}function mi(n,i){Je(t=(n=n||vi)[In]=n[In]||{},"domain",n.cookieDomain,Ee,U),Je(t,"path",n.cookiePath||"/",null,U),U(t[ii])&&(e=void 0,h(n[oi])||(e=!n[oi]),h(n[ui])||(e=!n[ui]),t[ii]=e);var e,t,l=t,f=l.path||"/",s=l.domain,r=!1!==l[ii],d=((n={isEnabled:function(){var n=r&&hi(i),e=vi[ai];return n&&e&&d!==e?gi(e):n}})[_n]=function(n){r=!1!==n},n.set=function(n,e,t,r,i){var o,u,a,c=!1;return gi(d)&&(o={},-1!==(a=(u=x(e||g))[Tn](";"))&&(u=x(e[wn](0,a)),o=yi(e[wn](a+1))),Je(o,"domain",r||s,$e,h),U(t)||(a=lr(),h(o[ri])&&0<(e=We()+1e3*t)&&((r=new Date).setTime(e),Je(o,ri,Ci(r,a?ni:ei)||Ci(r,a?ni:ei)||g,$e)),a||Je(o,"max-age",g+t,null,h)),(e=er())&&"https:"===e.protocol&&(Je(o,"secure",null,null,h),(li=null===li?!xi((Yt()||{})[Pn]):li)&&Je(o,"SameSite","None",null,h)),Je(o,"path",i||f,null,h),(l.setCookie||bi)(n,Si(u,o)),c=!0),c},n.get=function(n){var e=g;return gi(d)?(l.getCookie||function(n){var e,t=g;return si&&(e=si[ti]||g,fi!==e&&(di=yi(e),fi=e),t=x(di[n]||g)),t})(n):e},n.del=function(n,e){return!!gi(d)&&d.purge(n,e)},n.purge=function(n,e){var t,r=!1;return hi(i)&&((t={}).path=e||"/",t[ri]="Thu, 01 Jan 1970 00:00:01 GMT",e=t,lr()||(e["max-age"]="0"),(l.delCookie||bi)(n,Si(g,e)),r=!0),r},n);return d[ai]=d}function hi(n){if(null===ci){ci=!1;try{ci=(si||{})[ti]!==undefined}catch(e){Er(n,2,68,"Cannot access document.cookie - "+Ge(e),{exception:fr(e)})}}return ci}function yi(n){var t={};return n&&n[M]&&j(x(n)[En](";"),function(n){var e;(n=x(n||g))&&(-1===(e=n[Tn]("="))?t[n]=null:t[x(n[wn](0,e))]=x(n[wn](e+1)))}),t}function Ci(n,e){return R(n[e])?n[e]():null}function Si(n,e){var t=n||g;return C(e,function(n,e){t+="; "+n+(U(e)?g:"="+e)}),t}function bi(n,e){si&&(si[ti]=n+"="+e)}function xi(n){return!(!b(n)||!r(n,"CPU iPhone OS 12")&&!r(n,"iPad; CPU OS 12")&&!(r(n,"Macintosh; Intel Mac OS X 10_14")&&r(n,"Version/")&&r(n,"Safari"))&&(!r(n,"Macintosh; Intel Mac OS X 10_14")||!Ne(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!r(n,"Chrome/5")&&!r(n,"Chrome/6")&&(!r(n,"UnrealEngine")||r(n,"Chrome"))&&!r(n,"UCBrowser/12")&&!r(n,"UCBrowser/11"))}var Ii="on",Ti="attachEvent",wi="addEventListener",Pi="detachEvent",Ei="removeEventListener",_i="events",Ai="visibilitychange",Ni="pagehide",ki="pageshow",Oi="beforeunload",Di=Zr("aiEvtPageHide"),Mi=Zr("aiEvtPageShow"),Fi=/\.[\.]+/g,Li=/[\.]+$/,Ui=1,Ri=Yr("events"),ji=/^([^.]*)(?:\.(.+)|)/;function Vi(n){return n&&n[An]?n.replace(/^\s*\.*|\.*\s*$/g,g):n}function zi(n,e){e&&(t=g,S(e)?(t=g,j(e,function(n){(n=Vi(n))&&("."!==n[0]&&(n="."+n),t+=n)})):t=Vi(e),t&&("."!==t[0]&&(t="."+t),n=(n||g)+t));var t,e=ji.exec(n||g)||[],n={};return n[p]=e[1],n.ns=(e[2]||g).replace(Fi,".").replace(Li,g)[En](".").sort().join("."),n}function Hi(n,e,t){n=Ri.get(n,_i,{},t=void 0===t||t);return n[e]||(n[e]=[])}function Bi(n,e,t,r){n&&e&&e[p]&&(n[Ei]?n[Ei](e[p],t,r):n[Pi]&&n[Pi](Ii+e[p],t))}function qi(n,e,t,r){for(var i=e[M];i--;){var o=e[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(Bi(n,o.evtName,o[Ln],o.capture),e[vn](i,1))}}function Ki(n,e){return e?zi("xx",S(e)?[n].concat(e):[n,e]).ns[En]("."):n}function Wi(n,e,t,r,i){void 0===i&&(i=!1);var o,u,a=!1;if(n)try{var c,l=zi(e,r),f=l,s=t,d=i,v=!1;(u=n)&&f&&f[p]&&s&&(u[wi]?(u[wi](f[p],s,d),v=!0):u[Ti]&&(u[Ti](Ii+f[p],s),v=!0)),(a=v)&&Ri.accept(n)&&((o={guid:Ui++,evtName:l})[Ln]=t,o.capture=i,c=o,Hi(n,l.type)[O](c))}catch(g){}return a}function Gi(n,e,t,r,i){if(void 0===i&&(i=!1),n)try{var o=zi(e,r),u=!1,a=n,c=function(n){return!((!o.ns||t)&&n[Ln]!==t)&&(u=!0)};(l=o)[p]?qi(a,Hi(a,l[p]),l,c):(C(f=Ri.get(a,_i,{}),function(n,e){qi(a,e,l,c)}),0===He(f)[M]&&Ri.kill(a,_i)),u||Bi(n,o,t,i)}catch(s){}var l,f}function Ji(n,e,t,r){return Wi(n,e,t,null,r=void 0!==r&&r)}function Xi(n,e,t,r){Gi(n,e,t,null,r=void 0!==r&&r)}function Qi(n,e,t){var r=!1,i=Xt(),i=(i&&(r=Wi(i,n,e,t),r=Wi(i.body,n,e,t)||r),$t());return i&&Wi(i,n,e,t)||r}function $i(n,e,t){var r=Xt(),r=(r&&(Gi(r,n,e,t),Gi(r.body,n,e,t)),$t());r&&Gi(r,n,e,t)}function Zi(n,e,t,r){var i=!1;return e&&n&&0<n[M]&&j(n,function(n){!n||t&&-1!==Ue(t,n)||(i=Qi(n,e,r)||i)}),i}function Yi(n,e,t,r){var i=!1;return e&&n&&S(n)&&!(i=Zi(n,e,t,r))&&t&&0<t[M]?Zi(n,e,null,r):i}function no(n,e,t){n&&S(n)&&j(n,function(n){n&&$i(n,e,t)})}function eo(n,e,t){return Yi([Oi,"unload",Ni],n,e,t)}function to(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[An](oo,function(n){var e=0|qr(15);return("x"===n?e:3&e|8).toString(16)})}function ro(){var n=rr();return n&&n.now?n.now():We()}function io(){for(var n,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=g,r=0;r<4;r++)t+=e[15&(n=Kr())]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(3&Kr())|0];return t[Nn](0,8)+t[Nn](9,4)+"4"+t[Nn](13,3)+i+t[Nn](16,3)+t[Nn](19,12)}var oo=/[xy]/g,de={Attach:Ji,AttachEvent:Ji,Detach:Xi,DetachEvent:Xi},uo=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,ao="00000000000000000000000000000000",co="0000000000000000";function lo(n,e,t){return!(!n||n[M]!==e||n===t||!n.match(/^[\da-f]*$/))}function fo(n,e,t){return lo(n,e)?n:t}function so(n){for(var e=(n=isNaN(n)||n<0||255<n?1:n).toString(16);e[M]<2;)e="0"+e;return e}function vo(n){var e;if(!n)return null;if(!(n=S(n)?n[0]||"":n)||!b(n)||8192<n[M])return null;n=uo.exec(x(n));return n&&"ff"!==n[1]&&n[2]!==ao&&n[3]!==co?((e={})[qn]=n[1],e[zn]=n[2],e[Hn]=n[3],e[Bn]=parseInt(n[4],16),e):null}function go(n){return lo(n,32,ao)}function po(n){return lo(n,16,co)}function mo(n){return!!(n&&lo(n[qn],2,"ff")&&lo(n[zn],32,ao)&&lo(n[Hn],16,co)&&lo(so(n[Bn]),2))}var ho=Yr("plugin");function yo(n){return ho.get(n,"state",{},!0)}function Co(t,r){for(var i,n=[],e=null,o=t[v]();o;){var u=o[fn]();u&&(e&&R(e[bn])&&R(u[m])&&e[bn](u),(R(u[nn])?u[nn]():(i=yo(u))[nn])||n[O](u),e=u,o=o[v]())}j(n,function(n){var e=t[L]();n[$](t.getCfg(),e,r,t[v]()),i=yo(n),n[L]||i[L]||(i[L]=e),i[nn]=!0,delete i[gn]})}function So(n){return n.sort(function(n,e){var t,r=0;return e?(t=R(e[m]),R(n[m])?r=t?n[Xn]-e[Xn]:1:t&&(r=-1)):r=n?1:-1,r})}var bo="TelemetryPluginChain",xo="_hasRun",Io="_getTelCtx",To=0;function wo(n,u,t,e){var r=null,i=[],o=(null!==e&&(r=e?function(n,e,t){for(;n;){if(n[fn]()===t)return n;n=n[v]()}return Ao([t],e[en]||{},e)}(n,t,e):n),{_next:function(){var n,e=r;return r=e?e[v]():null,e||(n=i)&&0<n[M]&&(j(n,function(n){try{n.func[d](n.self,n.args)}catch(e){Er(t[D],2,73,"Unexpected Exception during onComplete - "+fr(e))}}),i=[]),e},ctx:{core:function(){return t},diagLog:function(){return Ir(t,u)},getCfg:function(){return u},getExtCfg:a,getConfig:function(n,e,t){void 0===t&&(t=!1);var r,n=a(n,null);return n&&!U(n[e])?r=n[e]:u&&!U(u[e])&&(r=u[e]),U(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(n){r=n},iterate:function(n){for(;e=o._next();){var e=e[fn]();e&&n(e)}},onComplete:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&i[O]({func:n,self:h(e)?o.ctx:e,args:t})}}});function a(n,e,t){var r,i,o;return void 0===e&&(e={}),void 0===t&&(t=0),(r=u&&(i=u[Jn])&&n?i[n]:r)?y(e)&&0!==t&&(o=et(!0,e,r),u&&2===t&&C(e,function(n){var e;U(o[n])&&!U(e=u[n])&&(o[n]=e)}),r=o):r=e,r}return o}function Po(n,t,r,e){var i=wo(n,t,r,e),o=i.ctx;return o[F]=function(n){var e=i._next();return e&&e[m](n,o),!e},o[xn]=function(n,e){return Po((n=S(n=void 0===n?null:n)?Ao(n,t,r,e):n)||o[v](),t,r,e)},o}function Eo(n,t,e){var r=t[en]||{},i=wo(n,r,t,e),o=i.ctx;return o[F]=function(n){var e=i._next();return e&&e.unload(o,n),!e},o[xn]=function(n,e){return Eo((n=S(n=void 0===n?null:n)?Ao(n,r,t,e):n)||o[v](),t,e)},o}function _o(n,t,e){var r=t[en]||{},i=wo(n,r,t,e).ctx;return i[F]=function(e){return i.iterate(function(n){R(n[Cn])&&n[Cn](i,e)})},i[xn]=function(n,e){return _o((n=S(n=void 0===n?null:n)?Ao(n,r,t,e):n)||i[v](),t,e)},i}function Ao(n,e,t,r){var i,o=null,u=!r;return S(n)&&0<n[M]&&(i=null,j(n,function(n){(u=!u&&r===n||u)&&n&&R(n[m])&&(n=No(n,e,t),o=o||n,i&&i._setNext(n),i=n)})),r&&!o?Ao([r],e,t):o}function No(c,r,i){var l=null,o=R(c[m]),u=R(c[bn]),f=c?c[Y]+"-"+c[Xn]+"-"+To++:"Unknown-0-"+To++,a={getPlugin:function(){return c},getNext:function(){return l},processTelemetry:function(t,n){var e;s(n=n||(e=(e=c&&R(c[Io])?c[Io]():e)||Po(a,r,i)),function(n){if(!c||!o)return!1;var e=yo(c);return!e[gn]&&!e[Gn]&&(u&&c[bn](l),c[m](t,n),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||n[F](t)},unload:function(r,i){s(r,function(){var n,e,t=!1;return c&&(n=yo(c),e=c[L]||n[L],!c||e&&e!==r.core()||n[gn]||(n[L]=null,n[gn]=!0,n[nn]=!1,c[gn]&&!0===c[gn](r,i)&&(t=!0))),t},"unload",function(){},i[hn])||r[F](i)},update:function(r,i){s(r,function(){var n,e,t=!1;return c&&(n=yo(c),e=c[L]||n[L],!c||e&&e!==r.core()||n[gn]||c[Cn]&&!0===c[Cn](r,i)&&(t=!0)),t},"update",function(){},!1)||r[F](i)},_id:f,_setNext:function(n){l=n}};function s(t,r,i,n,e){var o=!1,u=c?c[Y]:bo,a=(a=t[xo])||(t[xo]={});return t.setNext(l),c&&Lr(t[L](),function(){return u+":"+i},function(){a[f]=!0;try{var n=l?l._id:g;n&&(a[n]=!1),o=r(t)}catch(e){n=!l||a[l._id];n&&(o=!0),l&&n||Er(t[Sn](),1,73,"Plugin ["+u+"] failed during "+i+" - "+fr(e)+", run flags: "+fr(a))}},n,e),o}return Ke(a)}var ko=500,Oo="Channel has invalid priority - ";function Do(n,e,t){e&&S(e)&&0<e[M]&&(j(e=e.sort(function(n,e){return n[Xn]-e[Xn]}),function(n){n[Xn]<ko&&V(Oo+n[Y])}),n[O]({queue:Ke(e),chain:Ao(e,t[en],t)}))}function Mo(){var e=[];return{add:function(n){n&&e[O](n)},run:function(t,r){j(e,function(n){try{n(t,r)}catch(e){Er(t[Sn](),2,73,"Unexpected error calling unload handler - "+fr(e))}}),e=[]}}}var Fo="getPlugin",N=(Lo.__ieDyn=1,Lo);function Lo(){var i,o,l,f,s,u=this;function e(n){var e,n=n=void 0===n?null:n;return n||(e=o||Po(null,{},u[L]),n=l&&l[Fo]?e[xn](null,l[Fo]):e[xn](null,l)),n}function a(n,e,t){n&&Je(n,Jn,[],null,U),!t&&e&&(t=e[on]()[v]());var r=l;l&&l[Fo]&&(r=l[Fo]()),u[L]=e,o=Po(t,n,e,r)}function d(){i=!1,u[L]=null,l=o=null,s=[],f=Mo()}d(),z(Lo,u,function(c){c[$]=function(n,e,t,r){a(n,e,r),i=!0},c[gn]=function(n,e){var t,r,i,o,u=c[L];if(u&&(!n||u===n[L]()))return r=!1,i=n||Eo(null,u,l&&l[Fo]?l[Fo]():l),o=e||((n={reason:0})[hn]=!1,n),c[yn]&&!0===c[yn](i,o,a)?t=!0:a(),t;function a(){var n;r||(r=!0,f.run(i,e),n=s,s=[],j(n,function(n){n.rm()}),!0===t&&i[F](o),d())}},c[Cn]=function(n,e){var t,r,i,o=c[L];if(o&&(!n||o===n[L]()))return r=!1,i=n||_o(null,o,l&&l[Fo]?l[Fo]():l),c._doUpdate&&!0===c._doUpdate(i,e||{reason:0},u)?t=!0:u(),t;function u(){r||(r=!0,a(i.getCfg(),i.core(),i[v]()))}},c._addHook=function(n){n&&(S(n)?s=s.concat(n):s[O](n))},Ye(c,"_addUnloadCb",function(){return f},"add")}),u[Sn]=function(n){return e(n)[Sn]()},u[nn]=function(){return i},u.setInitialized=function(n){i=n},u[bn]=function(n){l=n},u[F]=function(n,e){e?e[F](n):l&&R(l[m])&&l[m](n,null)},u._getTelCtx=e}X(jo,Uo=N),jo.__ieDyn=1;var Uo,Ro=jo;function jo(){var e,c,n=Uo.call(this)||this;function t(){e=0,c=[]}return n.identifier="TelemetryInitializerPlugin",n.priority=199,t(),z(jo,n,function(a,n){a.addTelemetryInitializer=function(n){var t={id:e++,fn:n};return c[O](t),{remove:function(){j(c,function(n,e){if(n.id===t.id)return c[vn](e,1),-1})}}},a[m]=function(n,e){for(var t=!1,r=c[M],i=0;i<r;++i){var o=c[i];if(o)try{if(!1===o.fn[On](null,[n])){t=!0;break}}catch(u){Er(e[Sn](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ge(u),{exception:fr(u)},!0)}}t||a[F](n,e)},a[yn]=function(){t()}}),n}var Vo="Plugins must provide initialize method",zo="_notificationManager",Ho="SDK is still unloading...",Bo={loggingLevelConsole:1};function qo(n,e){return new Dr(e)}function Ko(e,n){var t=!1;return j(n,function(n){if(n===e)return t=!0,-1}),t}Go.__ieDyn=1;var Wo=Go;function Go(){var y,v,t,i,r,o,u,C,S,b,x,I,T,g,w,P,n,E,_,A,N=0;z(Go,this,function(p){function a(){y=et(!(v=!1),{},Bo),p[en]=y,p[D]=new Tr(y),p[dn]=[],w=new Ro,t=[],g=!(S=[]),n=Zr("AIBaseCore",!(P=T=I=x=b=C=u=o=r=i=null)),E=Mo(),A=null}function m(){return Po(h(),y,p)}function c(n){r=p[D],i=ko,o=[],u={},j(d=S,function(n){(U(n)||U(n[$]))&&V(Vo);var e=n[Xn],t=n[Y];n&&e&&(U(u[e])?u[e]=t:_r(r,"Two extensions have same priority #"+e+" - "+u[e]+", "+t)),(!e||e<i)&&o[O](n)}),(d={all:d})[L]=o;b=d[L],C=null;var r,i,o,u,e,t,a,c,l,f,s,d=d.all;function v(){return Po(null,f[en],f,null)}function g(n,e,t,r){var i=n?n[M]+1:1;function o(){0==--i&&(r&&r(),r=null)}0<i&&j(n,function(n){n&&0<n.queue[M]?(n=n.chain,(n=e[xn](n))[ln](o),t(n)):i--}),o()}T=Ke((c=d,e=p,a=[],I&&j(I,function(n){return Do(a,n,e)}),c&&(t=[],j(c,function(n){n[Xn]>ko&&t[O](n)}),Do(a,t,e)),a)),x?(-1!==(c=Ue(d,x))&&d[vn](c,1),-1!==(c=Ue(b,x))&&b[vn](c,1),x._setQueue(T)):(l=T,f=p,s=!1,x={identifier:"ChannelControllerPlugin",priority:ko,initialize:function(e,t,r,n){s=!0,j(l,function(n){n&&0<n.queue[M]&&Co(Po(n.chain,e,t),r)})},isInitialized:function(){return s},processTelemetry:function(e,n){g(l,n||v(),function(n){n[F](e)},function(){n[F](e)})},update:function(n,e){var t=e||{reason:0};return g(l,n,function(n){n[F](t)},function(){n[F](t)}),!0},pause:function(){g(l,v(),function(n){n.iterate(function(n){n.pause&&n.pause()})},null)},resume:function(){g(l,v(),function(n){n.iterate(function(n){n.resume&&n.resume()})},null)},teardown:function(n,e){var t=e||{reason:0,isAsync:!1};return g(l,n,function(n){n[F](t)},function(){n[F](t),s=!1}),!0},getChannel:function(e){var t=null;return l&&0<l[M]&&j(l,function(n){if(n&&0<n.queue[M]&&(j(n.queue,function(n){if(n[Y]===e)return t=n,-1}),t))return-1}),t},flush:function(t,n,r,i){var o=1,e=!1,u=null;function a(){o--,e&&0===o&&(u&&(clearTimeout(u),u=null),n&&n(e),n=null)}return i=i||5e3,g(l,v(),function(n){n.iterate(function(n){var e;n[sn]&&(o++,e=!1,n[sn](t,function(){e=!0,a()},r)||e||(t&&null==u?u=setTimeout(function(){u=null,a()},i):a()))})},function(){e=!0,a()}),!0},_setQueue:function(n){l=n}}),d[O](x),b[O](x),p[dn]=So(d),x[$](y,p,d),Co(m(),d),p[dn]=Ke(So(b||[])).slice(),n&&(c=n,d=_o(h(),p),p._updateHook&&!0===p._updateHook(d,c)||d[F](c))}function l(e){var n,t=null,i=null;return j(p[dn],function(n){if(n[Y]===e&&n!==x&&n!==w)return i=n,-1}),(i=!i&&x?x.getChannel(e):i)&&((n={plugin:i})[_n]=function(n){yo(i)[Gn]=!n},n.isEnabled=function(){var n=yo(i);return!n[gn]&&!n[Gn]},n.remove=function(n,e){var t,r=[i];(t={reason:1})[hn]=n=void 0===n||n,f(r,t,function(n){n&&c({reason:32,removed:r}),e&&e(n)})},t=n),t}function h(){var n;return C||(-1===Ue(n=(b||[]).slice(),w)&&n[O](w),C=Ao(So(n),y,p)),C}function f(o,n,e){var t;o&&0<o[M]?((t=Eo(Ao(o,y,p),p))[ln](function(){var r=!1,t=[],i=(j(S,function(n,e){Ko(n,o)?r=!0:t[O](n)}),S=t,[]);I&&(j(I,function(n,e){var t=[];j(n,function(n){Ko(n,o)?r=!0:t[O](n)}),i[O](t)}),I=i),e&&e(r)}),t[F](n)):e(!1)}function e(){var n=p[D]?p[D].queue:[];n&&(j(n,function(n){(e={})[k]=P||"InternalMessageId: "+n[pn],e.iKey=Qe(y[tn]),e.time=Le(new Date),e.baseType=br.dataType,e.baseData={message:n[mn]};var e,n=e;p.track(n)}),n[M]=0)}function s(n,e,t,r){return x?x[sn](n,e,t||6,r):(e&&e(!1),!0)}function d(n){var e=p[D];e?Er(e,2,73,n):V(n)}a(),p[nn]=function(){return v},p[$]=function(n,e,t,r){g&&V(Ho),p[nn]()&&V("Core should not be initialized more than once"),y=n||{},p[en]=y,U(n[tn])&&V("Please provide instrumentation key"),i=r,p[zo]=r;n=Qe(y.disableDbgExt),!0===n&&_&&(i[an](_),_=null),i&&!_&&!0!==n&&(_=function(n){if(!pr){pr={};for(var e=0;e<mr[M];e++)pr[mr[e]]=function(e,t){return function(){var n=yr(t);n&&(n=n.listener)&&n[e]&&n[e][On](n,arguments)}}(mr[e],n)}return pr}(y),i[un](_)),r=Qe(y.enablePerfMgr),!r&&o&&(o=null),r&&Xe(y,Wn,qo),Xe(y,Jn,{}).NotificationManager=i,t&&(p[D]=t),n=Xe(y,"extensions",[]);(S=[])[O].apply(S,Q(Q([],e),n)),I=Xe(y,Kn,[]),c(null),T&&0!==T[M]||V("No "+Kn+" available"),v=!0,p.releaseQueue()},p.getTransmissionControls=function(){var e=[];return T&&j(T,function(n){e[O](n.queue)}),Ke(e)},p.track=function(n){n.iKey=n.iKey||y[tn],n[rn]=n[rn]||Le(new Date),n.ver=n.ver||"4.0",!g&&p[nn]()?m()[F](n):t[O](n)},p[on]=m,p[Z]=function(){var n;return i||(i=W(((n={})[un]=function(n){},n[an]=function(n){},n[Qn]=function(n){},n[$n]=function(n,e){},n[Zn]=function(n,e){},n)),p[zo]=i),i},p[un]=function(n){i&&i[un](n)},p[an]=function(n){i&&i[an](n)},p.getCookieMgr=function(){return u=u||mi(y,p[D])},p.setCookieMgr=function(n){u=n},p[te]=function(){var n;return r||o||!Qe(y.enablePerfMgr)||R(n=Qe(y[Wn]))&&(o=n(p,p[Z]())),r||o||null},p.setPerfMgr=function(n){r=n},p.eventCnt=function(){return t[M]},p.releaseQueue=function(){var n;v&&0<t[M]&&(n=t,t=[],j(n,function(n){m()[F](n)}))},p.pollInternalLogs=function(n){P=n||null;n=Qe(y.diagnosticLogInterval);return n&&0<n||(n=1e4),N&&clearInterval(N),N=setInterval(function(){e()},n)},p[cn]=function(){N&&(clearInterval(N),N=0,e())},nt(p,function(){return w},["addTelemetryInitializer"]),p.unload=function(n,e,t){v||V("SDK is not initialized"),g&&V(Ho),(r={reason:50})[hn]=n=void 0===n||n,r.flushComplete=!1;var r,i=r,o=Eo(h(),p);function u(n){i.flushComplete=n,g=!0,E.run(o,i),p[cn](),o[F](i)}o[ln](function(){a(),e&&e(i)},p),s(n,u,6,t)||u(!1)},p[fn]=l,p.addPlugin=function(n,e,t,r){if(!n)return r&&r(!1),void d(Vo);var i=l(n[Y]);if(i&&!e)return r&&r(!1),void d("Plugin ["+n[Y]+"] is already loaded!");var o,u={reason:16};function a(){S[O](n),u.added=[n],c(u),r&&r(!0)}i?f(o=[i.plugin],{reason:2,isAsync:!!t},function(n){n?(u.removed=o,u.reason|=32,a()):r&&r(!1)}):a()},p.evtNamespace=function(){return n},p[sn]=s,p.getTraceCtx=function(n){var e;return A||(e={},A={getName:function(){return e[k]},setName:function(n){e[k]=n},getTraceId:function(){return e[zn]},setTraceId:function(n){go(n)&&(e[zn]=n)},getSpanId:function(){return e[Hn]},setSpanId:function(n){po(n)&&(e[Hn]=n)},getTraceFlags:function(){return e[Bn]},setTraceFlags:function(n){e[Bn]=n}}),A},p.setTraceCtx=function(n){A=n||null},Ye(p,"addUnloadCb",function(){return E},"add")})}function Jo(n,t,r,i){j(n,function(n){if(n&&n[t])if(r)setTimeout(function(){return i(n)},0);else try{i(n)}catch(e){}})}Qo.__ieDyn=1;var Xo=Qo;function Qo(n){this.listeners=[];var t=!!(n||{}).perfEvtsSendAll;z(Qo,this,function(r){r[un]=function(n){r.listeners[O](n)},r[an]=function(n){for(var e=Ue(r[Un],n);-1<e;)r.listeners[vn](e,1),e=Ue(r[Un],n)},r[Qn]=function(e){Jo(r[Un],Qn,!0,function(n){n[Qn](e)})},r[$n]=function(e,t){Jo(r[Un],$n,!0,function(n){n[$n](e,t)})},r[Zn]=function(e,t){Jo(r[Un],Zn,t,function(n){n[Zn](e,t)})},r[Yn]=function(e){!e||!t&&e[Rn]()||Jo(r[Un],Yn,!1,function(n){e[hn]?setTimeout(function(){return n[Yn](e)},0):n[Yn](e)})}})}X(Yo,$o=Wo),Yo.__ieDyn=1;var $o,Zo=Yo;function Yo(){var n=$o.call(this)||this;return z(Yo,n,function(t,i){function r(n){var e=t[Z]();e&&e[$n]([n],2)}t[$]=function(n,e,t,r){i[$](n,e,t||new Tr(n),r||new Xo(n))},t.track=function(e){Lr(t[te](),function(){return"AppInsightsCore:track"},function(){var n;null===e&&(r(e),V("Invalid telemetry item")),U((n=e)[k])&&(r(n),V("telemetry name required")),i.track(e)},function(){return{item:e}},!e.sync)}}),n}var o="Failed",nu=o+"MonitorAjax",a="Track",c="Event",eu="AuthContext",tu="Exception",ru="Local",iu="Session",f="Storage",ou="Browser",uu="Cannot",au="Buffer",cu="InstrumentationKey",lu=tt({CRITICAL:1,WARNING:2}),uu=tt(((I={})[ou+"DoesNotSupport"+ru+f]=0,I[ou+uu+"Read"+ru+f]=1,I[ou+uu+"Read"+iu+f]=2,I[ou+uu+"Write"+ru+f]=3,I[ou+uu+"Write"+iu+f]=4,I[ou+o+"RemovalFrom"+ru+f]=5,I[ou+o+"RemovalFrom"+iu+f]=6,I.CannotSendEmptyTelemetry=7,I.ClientPerformanceMathError=8,I.ErrorParsingAISessionCookie=9,I.ErrorPVCalc=10,I[tu+"WhileLoggingError"]=11,I[o+"AddingTelemetryTo"+au]=12,I[nu+"Abort"]=13,I[nu+"Dur"]=14,I[nu+"Open"]=15,I[nu+"RSC"]=16,I[nu+"Send"]=17,I[nu+"GetCorrelationHeader"]=18,I.FailedToAddHandlerForOnBeforeUnload=19,I.FailedToSendQueuedTelemetry=20,I.FailedToReportDataLoss=21,I.FlushFailed=22,I.MessageLimitPerPVExceeded=23,I.MissingRequiredFieldSpecification=24,I.NavigationTimingNotSupported=25,I.OnError=26,I[iu+"RenewalDateIsZero"]=27,I.SenderNotInitialized=28,I["Start"+a+c+o]=29,I["Stop"+a+c+o]=30,I["Start"+a+o]=31,I["Stop"+a+o]=32,I.TelemetrySampledAndNotSent=33,I[a+c+o]=34,I[a+tu+o]=35,I[a+"Metric"+o]=36,I[a+"PV"+o]=37,I.TrackPVFailedCalc=38,I[a+"Trace"+o]=39,I.TransmissionFailed=40,I[o+"ToSet"+f+au]=41,I[o+"ToRestore"+f+au]=42,I.InvalidBackendResponse=43,I.FailedToFixDepricatedValues=44,I.InvalidDurationValue=45,I.TelemetryEnvelopeInvalid=46,I.CreateEnvelopeError=47,I.CannotSerializeObject=48,I.CannotSerializeObjectNonSerializable=49,I.CircularReferenceDetected=50,I["Clear"+eu+o]=51,I[tu+"Truncated"]=52,I.IllegalCharsInName=53,I.ItemNotInArray=54,I.MaxAjaxPerPVExceeded=55,I.MessageTruncated=56,I.NameTooLong=57,I.SampleRateOutOfRange=58,I["Set"+eu+o]=59,I["Set"+eu+o+"AccountName"]=60,I.StringValueTooLong=61,I.StartCalledMoreThanOnce=62,I.StopCalledWithoutStart=63,I.TelemetryInitializerFailed=64,I.TrackArgumentsNotSpecified=65,I.UrlTooLong=66,I[iu+f+au+"Full"]=67,I.CannotAccessCookie=68,I.IdTooLong=69,I.InvalidEvent=70,I[nu+"SetRequestHeader"]=71,I.SendBrowserInfoOnUserInit=72,I["Plugin"+tu]=73,I["Notification"+tu]=74,I.SnippetScriptLoadFailure=99,I["Invalid"+cu]=100,I.CannotParseAiBlobValue=101,I.InvalidContentBlob=102,I[a+"PageAction"+c+o]=103,I.FailedAddingCustomDefinedRequestContext=104,I["InMemory"+f+au+"Full"]=105,I[cu+"Deprecation"]=106,I)),ru=tt({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}),ou=tt({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),eu=tt({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),iu=tt({Normal:1,Critical:2}),nu=tt({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),tu=Ke(G(G({},uu),tt({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}))),fu="",su="https://browser.events.data.microsoft.com/OneCollector/1.0/",du="version",vu="properties",a="3.2.4",gu="1DS-Web-JS-"+a,pu="withCredentials",mu=((c={})[0]=0,c[2]=6,c[1]=1,c[3]=7,c[4098]=6,c[4097]=1,c[4099]=7,c),hu=null,yu=!!$t(),o=!!Xt();function Cu(n){return!(n===fu||U(n))}function Su(n){if(n){var e=n.indexOf("-");if(-1<e)return n.substring(0,e)}return fu}function bu(){return hu=null===hu?!h(Uint8Array)&&!function(){var n=Yt();if(!h(n)&&n.userAgent)return!~(n=n.userAgent.toLowerCase()).indexOf("safari")&&!~n.indexOf("firefox")||~n.indexOf("chrome")?void 0:1}()&&!cr():hu}function xu(n){return!!(n&&De(n)&&1<=n&&n<=4)}function Iu(n,e,t){if(!e&&!Cu(e)||"string"!=typeof n)return null;n=typeof e;if("string"==n||"number"==n||"boolean"==n||S(e))e={value:e};else if("object"!=n||H.call(e,"value")){if(U(e.value)||e.value===fu||!b(e.value)&&!De(e.value)&&!Me(e.value)&&!S(e.value))return null}else e={value:t?JSON.stringify(e):e};if(S(e.value)&&!Mu(e.value))return null;if(!U(e.kind)){if(S(e.value)||!Du(e.kind))return null;e.value=e.value.toString()}return e}function Tu(n,e,t){var r=-1;return h(n)||(0<e&&(32===e?r=8192:e<=13&&(r=e<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=mu[Lu(n)]||-1,-1!==r&&-1!==e?r|=e:6===e&&(r=e))),r}function wu(){pi(null).setEnabled(!1)}function Pu(n,e,t){hi(null)&&pi(null).set(n,e,86400*t,null,"/")}function Eu(n){hi(null)&&pi(null).del(n)}function _u(n){return hi(null)?Au(pi(null),n):fu}function Au(n,e,t){var r;return void 0===t&&(t=!0),n&&(r=n.get(e),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||fu}function Nu(n){void 0===n&&(n="D");var e=to();return"B"===n?e="{"+e+"}":"P"===n?e="("+e+")":"N"===n&&(e=e.replace(/-/g,fu)),e}function ku(n,e,t,r,i){var o={},u=!1,a=0,c=arguments.length,l=Object[s],f=arguments;for("[object Boolean]"===l.toString.call(f[0])&&(u=f[0],a++);a<c;a++)C(f[a],function(t,n){u&&n&&y(n)?S(n)?(o[t]=o[t]||[],j(n,function(n,e){n&&y(n)?o[t][e]=ku(!0,o[t][e],n):o[t][e]=n})):o[t]=ku(!0,o[t],n):o[t]=n});return o}var Ou=ro;function Du(n){return 0===n||0<n&&n<=13||32===n}function Mu(n){return 0<n.length}function Fu(n,e){n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[e]=Ou()}function Lu(n){var e,t=0;return null!==n&&n!==undefined&&("string"==(e=typeof n)?t=1:"number"==e?t=2:"boolean"==e?t=3:e===u&&(t=4,S(n)?(t=4096,0<n.length&&(t|=Lu(n[0]))):H.call(n,"value")&&(t=8192|Lu(n.value)))),t}var Uu,f={Version:a,FullVersionString:gu,strUndefined:e,strObject:u,Undefined:e,arrForEach:j,arrIndexOf:Ue,arrMap:Re,arrReduce:je,objKeys:He,toISOString:Le,isReactNative:cr,isString:b,isNumber:De,isBoolean:Me,isFunction:R,isArray:S,isObject:y,strTrim:x,isDocumentObjectAvailable:yu,isWindowObjectAvailable:o,isValueAssigned:Cu,getTenantId:Su,isBeaconsSupported:sr,isUint8ArrayAvailable:bu,isLatency:xu,sanitizeProperty:Iu,getISOString:Le,useXDomainRequest:dr,getCommonSchemaMetaData:Tu,cookieAvailable:hi,disallowsSameSiteNone:xi,setCookie:Pu,deleteCookie:Eu,getCookie:_u,createGuid:Nu,extend:ku,getTime:Ou,isValueKind:Du,isArrayValid:Mu,objDefineAccessors:Be,addPageUnloadEventListener:eo,setProcessTelemetryTimings:Fu,addEventHandler:Qi,getFieldValueType:Lu,strEndsWith:Ne,objForEachKey:C},au={_canUseCookies:undefined,isTypeof:Pe,isUndefined:h,isNullOrUndefined:U,hasOwnProperty:_e,isFunction:R,isObject:y,isDate:ke,isArray:S,isError:Oe,isString:b,isNumber:De,isBoolean:Me,toISOString:Le,arrForEach:j,arrIndexOf:Ue,arrMap:Re,arrReduce:je,strTrim:x,objCreate:W,objKeys:He,objDefineAccessors:Be,addEventHandler:Qi,dateNow:We,isIE:lr,disableCookies:wu,newGuid:to,perfNow:ro,newId:Gr,randomValue:qr,random32:Kr,mwcRandomSeed:function(n){n?Hr(n):Br()},mwcRandom32:Wr,generateW3CId:io};function Ru(){var n=Uu.call(this)||this;return n.pluginVersionStringArr=[],z(Ru,n,function(c,l){c.logger&&c.logger.queue||(c.logger=new Tr({loggingLevelConsole:1})),c.initialize=function(i,o,u,a){Lr(c,function(){return"AppInsightsCore.initialize"},function(){var e=c.pluginVersionStringArr;i&&(i.endpointUrl||(i.endpointUrl=su),!(n=i.propertyStorageOverride)||n.getProperty&&n.setProperty||V("Invalid property storage override passed."),i.channels&&j(i.channels,function(n){n&&j(n,function(n){n.identifier&&n.version&&(n=n.identifier+"="+n.version,e.push(n))})})),c.getWParam=function(){return"undefined"!=typeof document?0:-1},o&&j(o,function(n){n&&n.identifier&&n.version&&(n=n.identifier+"="+n.version,e.push(n))}),c.pluginVersionString=e.join(";"),c.pluginVersionStringArr=e;try{l.initialize(i,o,u,a),c.pollInternalLogs("InternalLog")}catch(r){var n=c.logger,t=fr(r);~t.indexOf("channels")&&(t+="\n - Channels must be provided through config.channels only!"),Er(n,1,514,"SDK Initialization Failed - no telemetry will be sent: "+t)}},function(){return{config:i,extensions:o,logger:u,notificationManager:a}})},c.track=function(t){Lr(c,function(){return"AppInsightsCore.track"},function(){var n,e=t;e&&(e.timings=e.timings||{},e.timings.trackStart=Ou(),xu(e.latency)||(e.latency=1),(n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=gu,(n=e.baseData=e.baseData||{})[vu]=n[vu]||{},(n=n[vu])[du]=c.pluginVersionString||n[du]||fu),l.track(e)},function(){return{item:t}},!t.sync)}}),n}X(Ru,Uu=Zo),Ru.__ieDyn=1;var ju,cu=Ru;function Vu(){var n=ju.call(this)||this;return z(Vu,n,function(o,u){o.initialize=function(n,e,t,r){n&&!n.endpointUrl&&(n.endpointUrl=su),o.getWParam=function(){return yu?0:-1};try{u.initialize(n,e,t,r)}catch(i){Er(o.logger,1,514,"Initialization Failed: "+fr(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(n){var e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=gu),u.track(n)}}),n}X(Vu,ju=Wo),Vu.__ieDyn=1;var I=Vu,zu=R;function T(n){var u=0,a=null,e=[];function i(t,r,i,o){e.push(function(){var n;try{(n=1===u?zu(t)?t(a):a:zu(r)?r(a):a)instanceof T?n.then(i,o):(2!==u||zu(r)?i:o)(n)}catch(e){return void o(e)}}),0!==u&&c()}function c(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var n=0,e=r.length;n<e;++n)try{r[n]()}catch(t){}},0))}function t(n){0===u&&(a=n,u=2,c())}if(z(T,this,function(e){e.then=function(t,r){return new T(function(n,e){i(t,r,n,e)})},e["catch"]=function(n){return e.then(null,n)}}),!zu(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(function(n){0===u&&(a=n,u=1,c())},t)}catch(r){t(r)}}T.resolve=function(r){return r instanceof T?r:r&&zu(r.then)?new T(function(n,e){try{r.then(n,e)}catch(t){e(t)}}):new T(function(n){n(r)})},T.reject=function(t){return new T(function(n,e){e(t)})},T.all=function(a){if(a&&a.length)return new T(function(r,n){try{for(var i=[],o=0,e=0;e<a.length;e++){var t=a[e];t&&zu(t.then)?(o++,t.then(function(e,t){return function(n){e[t]=n,0==--o&&r(i)}}(i,e),n)):i[e]=t}0===o&&setTimeout(function(){r(i)},0)}catch(u){n(u)}})},T.race=function(i){return new T(function(e,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var n=i[r];n&&zu(n.then)?n.then(e,t):setTimeout(function(){e(n)},0)}()}catch(n){t(n)}})};var Hu=T,Bu=0,qu=[],Ku=[],Wu=[];function Gu(){return(new Date).getTime()}function Ju(n,e){var m=0,h=(n||"<unnamed>")+"."+Bu;function y(n){var e=q();e&&e.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+n)}function C(n){_r(e,"ESPromiseScheduler["+h+"] "+n)}Bu++,z(Ju,this,function(n){var v=null,g=0;function p(n,e){for(var t=0;t<n.length;t++)if(n[t].id===e)return n.splice(t,1)[0];return null}n.scheduleEvent=function(t,n,a){var i,o,e,u=h+"."+g,n=(g++,n&&(u+="-("+n+")"),u+"{"+m+"}"),r=(m++,{evt:null,tm:Gu(),id:n,isRunning:!1,isAborted:!1});return r.evt=v?(i=r,o=v,e=new Hu(function(e,t){var n=Gu()-o.tm,r=o.id;y("["+u+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+Ku.length+"] waiting and ["+qu.length+"] running"),i.abort=function(n){i.abort=null,p(Ku,u),i.isAborted=!0,t(Error(n))},o.evt.then(function(n){p(Ku,u),d(i).then(e,t)},function(n){p(Ku,u),d(i).then(e,t)})}),Ku.push(i),e):d(r),(v=r).evt._schId=n,r.evt;function c(n){for(var e=Gu(),t=e-6e5,r=n.length,i=0;i<r;){var o,u=n[i];u&&u.tm<t?(o=null,u.abort?(o="Aborting ["+u.id+"] due to Excessive runtime ("+(e-u.tm)+" ms)",u.abort(o)):o="Removing ["+u.id+"] due to Excessive runtime ("+(e-u.tm)+" ms)",C(o),n.splice(i,1),r--):i++}}function l(n,e){var t,r=!1,i=p(qu,n);i||(i=p(Wu,n),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Gu()-i.tm,e?r?C("Timed out event ["+n+"] finally complete -- "+t+" ms"):y("Promise ["+n+"] Complete -- "+t+" ms"):(Wu.push(i),C("Event ["+n+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+n+"] from running queue"),v&&v.id===n&&(v=null),c(qu),c(Ku),c(Wu)}function f(e,t){return function(n){return l(e,!0),t&&t(n),n}}function s(r,o){var u=r.id;return new Hu(function(e,t){y("Event ["+u+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(n){r.abort=null,r.isAborted=!0,l(u,!1),t(Error(n))};var n=o(u);n instanceof Hu?(a&&(r.to=setTimeout(function(){l(u,!1),t(Error("Timed out after ["+a+"] ms"))},a)),function i(e,n,t,r){n.then(function(n){return n instanceof Hu?(y("Event ["+e+"] returned a promise -- waiting"),i(e,n,t,r),n):f(e,t)(n)},f(e,r))}(u,n,function(n){y("Event ["+u+"] Resolving after "+(Gu()-r.tm)+" ms"),e(n)},t)):(y("Promise ["+u+"] Auto completed as the start action did not return a promise"),e())})}function d(n){var e=Gu();return n.wTm=e-n.tm,n.tm=e,n.isAborted?Hu.reject(Error("["+u+"] was aborted")):(qu.push(n),s(n,t))}}})}Ju.incomplete=function(){return qu},Ju.waitingToStart=function(){return Ku};G=Ju,Xu.getFieldType=Lu,c=Xu;function Xu(n){var c=this,o={},u=[],a=[];function l(n,e){var t=o[n];if(!(i=t?t[e]:i)&&null!==i){if(b(n)&&b(e))if(0<a.length){for(var r=0;r<a.length;r++)if(a[r].handleField(n,e)){i={canHandle:!0,fieldHandler:a[r]};break}}else 0===u.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<u.length;r++)if(u[r].handleField(n,e)){i={canHandle:!0,handler:u[r],fieldHandler:null};break}(t=t||(o[n]={}))[e]=i}return i}function f(n,e,t,r,i,o){if(n.handler)return n.handler.property(e,t,i,o);if(!U(i.kind)){if(4096==(4096&r)||!Du(i.kind))return null;i.value=i.value.toString()}return function a(r,i,o,n,e){var t,u;return e&&r&&(t=r.getSanitizer(i,o,n,e.kind,e.propertyType))&&(4===n?(u={},C(e.value,function(n,e){var t;Cu(e)&&(t=s(0,0,e),(t=a(r,i+"."+o,n,Lu(e),t))&&(u[n]=t.value))}),e.value=u):e=t.call(c,{path:i,name:o,type:n,prop:e,sanitizer:c})),e}(n.fieldHandler,e,t,r,i)}function s(n,e,t){return Cu(t)?{value:t}:null}n&&a.push(n),c.addSanitizer=function(n){n&&(u.push(n),o={})},c.addFieldSanitizer=function(n){n&&(a.push(n),o={})},c.handleField=function(n,e){n=l(n,e);return!!n&&n.canHandle},c.value=function(n,e,t,r){var i=l(n,e);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(n,e,t,r);if(!b(e)||U(t)||t===fu)return null;var o=null,u=Lu(t);if(8192==(8192&u)){var a=-8193&u;if(!Cu((o=t).value)||1!=a&&2!=a&&3!=a&&4096!=(4096&a))return null}else 1===u||2===u||3===u||4096==(4096&u)?o=s(0,0,t):4===u&&(o=s(0,0,r?JSON.stringify(t):t));if(o)return f(i,n,e,u,o,r)}return null},c.property=function(n,e,t,r){var i=l(n,e);if(!i||!i.canHandle)return null;if(!b(e)||U(t)||!Cu(t.value))return null;var o=Lu(t.value);return 0===o?null:f(i,n,e,o,t,r)}}n.AppInsightsCore=cu,n.BaseCore=I,n.BaseTelemetryPlugin=N,n.CoreUtils=au,n.DiagnosticLogger=Tr,n.ESPromise=Hu,n.ESPromiseScheduler=G,n.EventHelper=de,n.EventLatency=ou,n.EventPersistence=iu,n.EventPropertyType=eu,n.EventsDiscardedReason=ge,n.FullVersionString=gu,n.InternalAppInsightsCore=Zo,n.InternalBaseCore=Wo,n.LoggingSeverity=lu,n.MinChannelPriorty=100,n.NotificationManager=Xo,n.PerfEvent=kr,n.PerfManager=Dr,n.ProcessTelemetryContext=function(n,e,t,r){n=Po(n,e,t,r);nt(this,n,He(n))},n.TraceLevel=nu,n.Undefined=e,n.Utils=f,n.ValueKind=ru,n.ValueSanitizer=c,n.Version=a,n._ExtendedInternalMessageId=tu,n._InternalLogMessage=br,n._InternalMessageId=uu,n.__getRegisteredEvents=function(n,e,t){var r=[],n=Ri.get(n,_i,{},!1),i=zi(e,t);return C(n,function(n,e){j(e,function(n){var e;i[p]&&i[p]!==n.evtName[p]||i.ns&&i.ns!=i.ns||r[O](((e={})[k]=n.evtName[p]+(n.evtName.ns?"."+n.evtName.ns:g),e.handler=n[Ln],e))})}),r},n._logInternalMessage=function(n,e,t){Pr(n)[Mn](e,t)},n._throwInternal=Er,n._warnToConsole=_r,n.addEventHandler=Qi,n.addEventListeners=Yi,n.addPageHideEventListener=function Qu(t,n,e){var r=Ki(Di,e),i=Zi([Ni],t,n,r);return!(i=(!n||-1===Ue(n,Ai))&&Zi([Ai],function(n){var e=$t();t&&e&&"hidden"===e.visibilityState&&t(n)},n,r)||i)&&n?Qu(t,null,e):i},n.addPageShowEventListener=function $u(t,n,e){var r=Ki(Mi,e),i=Zi([ki],t,n,r);return!(i=Zi([Ai],function(n){var e=$t();t&&e&&"visible"===e.visibilityState&&t(n)},n,r)||i)&&n?$u(t,null,e):i},n.addPageUnloadEventListener=eo,n.areCookiesSupported=hi,n.arrForEach=j,n.arrIndexOf=Ue,n.arrMap=Re,n.arrReduce=je,n.attachEvent=Ji,n.cookieAvailable=hi,n.createCookieMgr=mi,n.createEnumStyle=tt,n.createGuid=Nu,n.createProcessTelemetryContext=Po,n.createTraceParent=function(n,e,t,r){var i={};return i[qn]=lo(r,2,"ff")?r:"00",i[zn]=go(n)?n:io(),i.spanId=po(e)?e:io()[Nn](0,16),i.traceFlags=0<=t&&t<=255?t:1,i},n.createUniqueNamespace=Zr,n.createUnloadHandlerContainer=Mo,n.dateNow=We,n.deleteCookie=Eu,n.detachEvent=Xi,n.disableCookies=wu,n.disallowsSameSiteNone=xi,n.doPerf=Lr,n.dumpObj=fr,n.eventOff=Gi,n.eventOn=Wi,n.extend=ku,n.findW3cTraceParent=function(){var n,e;return vo((e=$t())?gr(e.querySelectorAll("meta"),"traceparent").content:null)||vo(n=(e=rr())?gr((0<(e=e.getEntriesByType("navigation")||[])[M]?e[0]:{}).serverTiming,"traceparent").description:n)},n.formatTraceParent=function(n){var e,t;return n?(lo(e=so(n[Bn]),2)||(e="01"),t=n[qn]||"00","".concat(t="00"!==t&&"ff"!==t?"00":t,"-").concat(fo(n.traceId,32,ao),"-").concat(fo(n.spanId,16,co),"-").concat(e)):""},n.generateW3CId=io,n.getCommonSchemaMetaData=Tu,n.getConsole=tr,n.getCookie=_u,n.getCookieValue=Au,n.getCrypto=ur,n.getDocument=$t,n.getExceptionName=Ge,n.getFieldValueType=Lu,n.getGlobal=q,n.getGlobalInst=i,n.getHistory=function(){return nr()?history:i("history")},n.getIEVersion=function(n){var e=((n=(n=void 0===n?null:n)?n:(e=Yt()||{})?(e[Pn]||g)[Fn]():g)||g)[Fn]();if(r(e,jt))return n=$t()||{},Math.max(parseInt(e[En](jt)[1]),n.documentMode||0);if(r(e,Vt)){n=parseInt(e[En](Vt)[1]);if(n)return n+4}return null},n.getISOString=Le,n.getJSON=or,n.getLocation=er,n.getMsCrypto=ar,n.getNavigator=Yt,n.getPerformance=rr,n.getSetValue=Xe,n.getTenantId=Su,n.getTime=Ou,n.getWindow=Xt,n.hasDocument=Qt,n.hasHistory=nr,n.hasJSON=ir,n.hasNavigator=Zt,n.hasOwnProperty=_e,n.hasWindow=Jt,n.isArray=S,n.isArrayValid=Mu,n.isBeaconsSupported=sr,n.isBoolean=Me,n.isChromium=function(){return!!i("chrome")},n.isDate=ke,n.isDocumentObjectAvailable=yu,n.isError=Oe,n.isFetchSupported=function(n){var e=!1;try{var e=!!i("fetch"),t=i("Request");e&&n&&t&&(e=Gt(t,"keepalive"))}catch(r){}return e},n.isFunction=R,n.isIE=lr,n.isLatency=xu,n.isNotTruthy=function(n){return!n},n.isNullOrUndefined=U,n.isNumber=De,n.isObject=y,n.isReactNative=cr,n.isSampledFlag=function(n){return!!mo(n)&&1==(1&n[Bn])},n.isString=b,n.isTruthy=$e,n.isTypeof=Pe,n.isUint8ArrayAvailable=bu,n.isUndefined=h,n.isValidSpanId=po,n.isValidTraceId=go,n.isValidTraceParent=mo,n.isValueAssigned=Cu,n.isValueKind=Du,n.isWindowObjectAvailable=o,n.isXhrSupported=vr,n.mergeEvtNamespace=Ki,n.newGuid=to,n.newId=Gr,n.normalizeJsName=Ae,n.objCreate=W,n.objDefineAccessors=Be,n.objForEachKey=C,n.objFreeze=Ke,n.objKeys=He,n.objSeal=ce,n.openXhr=function(n,e,t,r,i,o){function u(n,e,t){try{n[e]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&u(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&u(a,pu,t),a.open(n,e,!i),t&&u(a,pu,t),!i&&o&&u(a,"timeout",o),a},n.optimizeObject=function(n){return n&&_?t(_({},n)):n},n.parseTraceParent=vo,n.perfNow=ro,n.proxyAssign=function(t,r,i){if(t&&r&&y(t)&&y(r))for(var n in r)!function(e){var n;b(e)&&(R(n=r[e])?i&&!i(e,!0,r,t)||(t[e]=Ze(r,e)):i&&!i(e,!1,r,t)||(_e(t,e)&&delete t[e],Be(t,e,function(){return r[e]},function(n){r[e]=n})||(t[e]=n)))}(n);return t},n.proxyFunctionAs=Ye,n.proxyFunctions=nt,n.random32=Kr,n.randomValue=qr,n.removeEventHandler=$i,n.removeEventListeners=no,n.removePageHideEventListener=function(n,e){e=Ki(Di,e);no([Ni],n,e),no([Ai],null,e)},n.removePageShowEventListener=function(n,e){e=Ki(Mi,e);no([ki],n,e),no([Ai],null,e)},n.removePageUnloadEventListener=function(n,e){no([Oi,"unload",Ni],n,e)},n.safeGetCookieMgr=pi,n.safeGetLogger=Ir,n.sanitizeProperty=Iu,n.setCookie=Pu,n.setEnableEnvMocks=function(n){qt=n},n.setProcessTelemetryTimings=Fu,n.setValue=Je,n.strContains=r,n.strEndsWith=Ne,n.strFunction=w,n.strObject=u,n.strPrototype=s,n.strStartsWith=function(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(he)return n[oe](e);var r=n,i=e,n=!1,o=i?i[M]:0;if(r&&o&&r[M]>=o&&!(n=r===i)){for(var u=0;u<o;u++)if(r[u]!==i[u])return!1;n=!0}return n}return t},n.strTrim=x,n.strUndefined=e,n.throwError=V,n.toISOString=Le,n.useXDomainRequest=dr;cu=n,I="__esModule",N={value:!0},au=Object.defineProperty;if(au)try{return void au(cu,I,N)}catch(Zu){}typeof N.value!==undefined&&(cu[I]=N.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).oneDS=n.oneDS||{});
//# sourceMappingURL=ms.core.min.js.map

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

/**
* AppInsightsCore.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
*/
import { AppInsightsCore as InternalCore, IPlugin, ITelemetryItem, IDiagnosticLogger, INotificationManager } from "@microsoft/applicationinsights-core-js";
import { IExtendedConfiguration, IExtendedTelemetryItem, IExtendedAppInsightsCore } from "./DataModels";
import { AppInsightsCore as InternalCore, IDiagnosticLogger, INotificationManager, IPlugin, ITelemetryItem } from "@microsoft/applicationinsights-core-js";
import { IExtendedAppInsightsCore, IExtendedConfiguration, IExtendedTelemetryItem } from "./DataModels";
export default class AppInsightsCore extends InternalCore implements IExtendedAppInsightsCore {

@@ -9,0 +4,0 @@ getWParam: () => number;

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

@@ -8,11 +8,10 @@ * (Microsoft Internal Only)

/**
* AppInsightsCore.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
*/
import { AppInsightsCore as InternalCore, doPerf, arrForEach, dumpObj, DiagnosticLogger } from "@microsoft/applicationinsights-core-js";
import { isLatency, FullVersionString, getTime } from "./Utils";
* AppInsightsCore.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
*/
import dynamicProto from "@microsoft/dynamicproto-js";
var PropVersion = "version";
var properties = "properties";
import { AppInsightsCore as InternalCore, DiagnosticLogger, _throwInternal, arrForEach, doPerf, dumpObj, throwError } from "@microsoft/applicationinsights-core-js";
import { STR_DEFAULT_ENDPOINT_URL, STR_EMPTY, STR_PROPERTIES, STR_VERSION } from "./InternalConstants";
import { FullVersionString, getTime, isLatency } from "./Utils";
var AppInsightsCore = /** @class */ (function (_super) {

@@ -23,3 +22,2 @@ __extends(AppInsightsCore, _super);

_this.pluginVersionStringArr = [];
_this.pluginVersionString = "";
dynamicProto(AppInsightsCore, _this, function (_self, _base) {

@@ -33,6 +31,7 @@ if (!_self.logger || !_self.logger.queue) {

doPerf(_self, function () { return "AppInsightsCore.initialize"; }, function () {
var _pluginVersionStringArr = _self.pluginVersionStringArr;
// Add default collector url
if (config) {
if (!config.endpointUrl) {
config.endpointUrl = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
config.endpointUrl = STR_DEFAULT_ENDPOINT_URL;
}

@@ -42,3 +41,3 @@ var propertyStorageOverride = config.propertyStorageOverride;

if (propertyStorageOverride && (!propertyStorageOverride.getProperty || !propertyStorageOverride.setProperty)) {
throw new Error("Invalid property storage override passed.");
throwError("Invalid property storage override passed.");
}

@@ -51,3 +50,3 @@ if (config.channels) {

var ver = channel.identifier + "=" + channel.version;
_self.pluginVersionStringArr.push(ver);
_pluginVersionStringArr.push(ver);
}

@@ -66,7 +65,8 @@ });

var ver = ext.identifier + "=" + ext.version;
_self.pluginVersionStringArr.push(ver);
_pluginVersionStringArr.push(ver);
}
});
}
_self.pluginVersionString = _self.pluginVersionStringArr.join(";");
_self.pluginVersionString = _pluginVersionStringArr.join(";");
_self.pluginVersionStringArr = _pluginVersionStringArr;
try {

@@ -83,3 +83,3 @@ _base.initialize(config, extensions, logger, notificationManager);

}
logger_1.throwInternal(1 /* eLoggingSeverity.CRITICAL */, 514 /* _eExtendedInternalMessageId.FailedToInitializeSDK */, "SDK Initialization Failed - no telemetry will be sent: " + message);
_throwInternal(logger_1, 1 /* eLoggingSeverity.CRITICAL */, 514 /* _eExtendedInternalMessageId.FailedToInitializeSDK */, "SDK Initialization Failed - no telemetry will be sent: " + message);
}

@@ -101,12 +101,5 @@ }, function () { return ({ config: config, extensions: extensions, logger: logger, notificationManager: notificationManager }); });

var baseData = telemetryItem.baseData = telemetryItem.baseData || {};
if (!baseData[properties]) {
baseData[properties] = {};
}
var itemProperties = baseData[properties];
if (!itemProperties[PropVersion]) {
itemProperties[PropVersion] = "";
}
if (_self.pluginVersionString !== "") {
itemProperties[PropVersion] = _self.pluginVersionString;
}
baseData[STR_PROPERTIES] = baseData[STR_PROPERTIES] || {};
var itemProperties = baseData[STR_PROPERTIES];
itemProperties[STR_VERSION] = _self.pluginVersionString || itemProperties[STR_VERSION] || STR_EMPTY;
}

@@ -121,2 +114,7 @@ _base.track(telemetryItem);

// Removed Stub for AppInsightsCore.prototype.track.
// This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any
// non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.
// this will be removed when ES3 support is dropped.
AppInsightsCore.__ieDyn=1;
return AppInsightsCore;

@@ -123,0 +121,0 @@ }(InternalCore));

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

import { BaseCore as InternalCore, IPlugin, ITelemetryItem, IDiagnosticLogger, INotificationManager } from "@microsoft/applicationinsights-core-js";
import { IExtendedConfiguration, IExtendedTelemetryItem, IExtendedAppInsightsCore } from "./DataModels";
import { BaseCore as InternalCore, IDiagnosticLogger, INotificationManager, IPlugin, ITelemetryItem } from "@microsoft/applicationinsights-core-js";
import { IExtendedAppInsightsCore, IExtendedConfiguration, IExtendedTelemetryItem } from "./DataModels";
export default class BaseCore extends InternalCore implements IExtendedAppInsightsCore {

@@ -4,0 +4,0 @@ getWParam: () => number;

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

@@ -8,11 +8,12 @@ * (Microsoft Internal Only)

/**
* 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
*/
* 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 dynamicProto from "@microsoft/dynamicproto-js";
import { BaseCore as InternalCore, dumpObj, _throwInternal } from "@microsoft/applicationinsights-core-js";
import { BaseCore as InternalCore, _throwInternal, dumpObj } from "@microsoft/applicationinsights-core-js";
import { STR_DEFAULT_ENDPOINT_URL } from "./InternalConstants";
import { FullVersionString, isDocumentObjectAvailable } from "./Utils";

@@ -26,3 +27,3 @@ var BaseCore = /** @class */ (function (_super) {

if (config && !config.endpointUrl) {
config.endpointUrl = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
config.endpointUrl = STR_DEFAULT_ENDPOINT_URL;
}

@@ -53,2 +54,7 @@ _self.getWParam = function () {

// Removed Stub for BaseCore.prototype.track.
// This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any
// non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.
// this will be removed when ES3 support is dropped.
BaseCore.__ieDyn=1;
return BaseCore;

@@ -55,0 +61,0 @@ }(InternalCore));

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

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

/**
* Enums.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
* File containing the enums as constants.
*/
* Enums.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
* File containing the enums as constants.
*/
import { _eInternalMessageId } from "@microsoft/applicationinsights-core-js";

@@ -8,0 +8,0 @@ /**

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

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

/**
* Enums.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
* File containing the enums as constants.
*/
* Enums.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
* File containing the enums as constants.
*/
import { __assignFn as __assign } from "@microsoft/applicationinsights-shims";

@@ -14,0 +14,0 @@ import { _InternalMessageId, createEnumStyle, objFreeze } from "@microsoft/applicationinsights-core-js";

/**
* ESPromise.ts
* @author Nev Wylie (newylie))
* @copyright Microsoft 2019
* Simplified wrapper to provide ES6 style Promise callback handling for older browsers
*/
* ESPromise.ts
* @author Nev Wylie (newylie))
* @copyright Microsoft 2019
* Simplified wrapper to provide ES6 style Promise callback handling for older browsers
*/
/**

@@ -8,0 +8,0 @@ * This defines the handler function for when a promise is resolved.

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

@@ -7,9 +7,9 @@ * (Microsoft Internal Only)

/**
* ESPromise.ts
* @author Nev Wylie (newylie))
* @copyright Microsoft 2019
* Simplified wrapper to provide ES6 style Promise callback handling for older browsers
*/
* ESPromise.ts
* @author Nev Wylie (newylie))
* @copyright Microsoft 2019
* Simplified wrapper to provide ES6 style Promise callback handling for older browsers
*/
import dynamicProto from "@microsoft/dynamicproto-js";
import { isFunction } from "@microsoft/applicationinsights-core-js";
import dynamicProto from "@microsoft/dynamicproto-js";
/**

@@ -16,0 +16,0 @@ * @ignore -- Don't include in the generated documentation

/**
* ESPromiseScheduler.ts
* @author Nev Wylie (newylie)
* @copyright Microsoft 2019
*/
* ESPromiseScheduler.ts
* @author Nev Wylie (newylie)
* @copyright Microsoft 2019
*/
import ESPromise from "./ESPromise";

@@ -7,0 +7,0 @@ import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";

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

@@ -7,9 +7,9 @@ * (Microsoft Internal Only)

/**
* ESPromiseScheduler.ts
* @author Nev Wylie (newylie)
* @copyright Microsoft 2019
*/
* ESPromiseScheduler.ts
* @author Nev Wylie (newylie)
* @copyright Microsoft 2019
*/
import dynamicProto from "@microsoft/dynamicproto-js";
import ESPromise from "./ESPromise";
import { getGlobal } from "@microsoft/applicationinsights-core-js";
import dynamicProto from "@microsoft/dynamicproto-js";
import { _warnToConsole, getGlobal } from "@microsoft/applicationinsights-core-js";
/** This is a default timeout that will cause outstanding running promises to be removed/rejected to avoid filling up memory with blocked events */

@@ -262,3 +262,3 @@ var LazyRejectPeriod = 600000; // 10 Minutes

function _warnLog(message) {
diagLog && diagLog.warnToConsole("ESPromiseScheduler[" + _scheduledName + "] " + message);
_warnToConsole(diagLog, "ESPromiseScheduler[" + _scheduledName + "] " + message);
}

@@ -265,0 +265,0 @@ }

@@ -15,4 +15,3 @@ /**

export { ValueKind, IExtendedConfiguration, IPropertyStorageOverride, EventLatency, EventPersistence, TraceLevel, IEventProperty, IExtendedTelemetryItem, TransportType, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, _eExtendedInternalMessageId, IExtendedAppInsightsCore, EventPropertyType, IEventTiming, ESPromise, ESPromiseOnResolvedFunc, ESPromiseOnRejectedFunc, ResolverResolveFunc, ResolverRejectFunc, ESPromiseScheduler, ESPromiseSchedulerEvent, GuidStyle, FieldValueSanitizerFunc, FieldValueSanitizerType, FieldValueSanitizerTypes, IFieldSanitizerDetails, IFieldValueSanitizerProvider, IValueSanitizer, ValueSanitizer, EventLatencyValue, EventPersistenceValue, EventSendType };
export { IAppInsightsCore, IChannelControls, IPlugin, INotificationManager, NotificationManager, INotificationListener, IConfiguration, ITelemetryItem, ITelemetryPlugin, BaseTelemetryPlugin, IProcessTelemetryContext, ProcessTelemetryContext, ITelemetryPluginChain, MinChannelPriorty, EventsDiscardedReason, ICoreUtils, IDiagnosticLogger, DiagnosticLogger, LoggingSeverity, SendRequestReason, IPerfEvent, IPerfManager, IPerfManagerProvider, PerfEvent, PerfManager, doPerf, ICustomProperties, Tags, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, eLoggingSeverity, _eInternalMessageId, _throwInternal, // _warnToConsole, _logInternalMessage
isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, randomValue, random32, ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, _IRegisteredEvents, __getRegisteredEvents, TelemetryInitializerFunction, ITelemetryInitializerHandler, ITelemetryInitializerContainer, createProcessTelemetryContext, IProcessTelemetryUnloadContext, UnloadHandler, IUnloadHandlerContainer, ITelemetryUnloadState, createUnloadHandlerContainer, TelemetryUnloadReason, ITelemetryUpdateState, IUnloadableComponent, IDistributedTraceContext, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "@microsoft/applicationinsights-core-js";
export { IAppInsightsCore, IChannelControls, IPlugin, INotificationManager, NotificationManager, INotificationListener, IConfiguration, ITelemetryItem, ITelemetryPlugin, BaseTelemetryPlugin, IProcessTelemetryContext, ProcessTelemetryContext, ITelemetryPluginChain, MinChannelPriorty, EventsDiscardedReason, ICoreUtils, IDiagnosticLogger, DiagnosticLogger, LoggingSeverity, SendRequestReason, IPerfEvent, IPerfManager, IPerfManagerProvider, PerfEvent, PerfManager, doPerf, ICustomProperties, Tags, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, eLoggingSeverity, _eInternalMessageId, _throwInternal, _warnToConsole, _logInternalMessage, isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, randomValue, random32, ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, _IRegisteredEvents, __getRegisteredEvents, TelemetryInitializerFunction, ITelemetryInitializerHandler, ITelemetryInitializerContainer, createProcessTelemetryContext, IProcessTelemetryUnloadContext, UnloadHandler, IUnloadHandlerContainer, ITelemetryUnloadState, createUnloadHandlerContainer, TelemetryUnloadReason, ITelemetryUpdateState, IUnloadableComponent, IDistributedTraceContext, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "@microsoft/applicationinsights-core-js";
export { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking

@@ -19,0 +18,0 @@ Utils, // Replacement for import * as Utils from "./Utils";

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

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

export { ValueKind, EventLatency, EventPersistence, TraceLevel, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, EventPropertyType, ESPromise, ESPromiseScheduler, ValueSanitizer };
export { NotificationManager, BaseTelemetryPlugin, ProcessTelemetryContext, MinChannelPriorty, EventsDiscardedReason, DiagnosticLogger, LoggingSeverity, PerfEvent, PerfManager, doPerf, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, _throwInternal, // _warnToConsole, _logInternalMessage
export { NotificationManager, BaseTelemetryPlugin, ProcessTelemetryContext, MinChannelPriorty, EventsDiscardedReason, DiagnosticLogger, LoggingSeverity, PerfEvent, PerfManager, doPerf, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, _throwInternal, _warnToConsole, _logInternalMessage,
// The HelperFuncs functions

@@ -22,0 +22,0 @@ isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal,

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

/**
* Utils.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
* File containing utility functions.
*/
import { ICookieMgr, ICoreUtils, ITelemetryItem, addEventHandler, addPageUnloadEventListener, areCookiesSupported, arrForEach, arrIndexOf, arrMap, arrReduce, isBeaconsSupported, isBoolean, isFunction, isNumber, isObject, isReactNative, isString, objDefineAccessors, objForEachKey, objKeys, perfNow, strEndsWith, strTrim, toISOString, uaDisallowsSameSiteNone, useXDomainRequest } from "@microsoft/applicationinsights-core-js";
import { IEventProperty } from "./DataModels";
import { GuidStyle, FieldValueSanitizerType, EventLatency } from "./Enums";
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.2.3";
import { EventLatency, FieldValueSanitizerType, GuidStyle } from "./Enums";
export declare const Version = "3.2.4";
export declare const FullVersionString: string;

@@ -6,0 +12,0 @@ /**

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

@@ -8,10 +8,11 @@ * (Microsoft Internal Only)

/**
* Utils.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
* File containing utility functions.
*/
import { objCreateFn, strShimObject } from "@microsoft/applicationinsights-shims";
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.2.3';
* Utils.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
* File containing utility functions.
*/
import { addEventHandler, addPageUnloadEventListener, areCookiesSupported, arrForEach, arrIndexOf, arrMap, arrReduce, dateNow, generateW3CId, getDocument, getGlobalInst, getNavigator, getWindow, hasOwnProperty, isArray, isBeaconsSupported, isBoolean, isDate, isError, isFunction, isIE, isNullOrUndefined, isNumber, isObject, isReactNative, isString, isTypeof, isUndefined, mwcRandom32, mwcRandomSeed, newGuid, newId, objDefineAccessors, objForEachKey, objKeys, perfNow, random32, randomValue, safeGetCookieMgr, strEndsWith, strObject, strTrim, strUndefined, toISOString, uaDisallowsSameSiteNone, useXDomainRequest } from "@microsoft/applicationinsights-core-js";
import { ObjHasOwnProperty, objCreateFn, strShimObject, strShimPrototype } from "@microsoft/applicationinsights-shims";
import { STR_EMPTY } from "./InternalConstants";
export var Version = '3.2.4';
export var FullVersionString = "1DS-Web-JS-" + Version;

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

/// <returns> true if value is null undefined or emptyString </returns>
return !(value === "" || isNullOrUndefined(value));
return !(value === STR_EMPTY || isNullOrUndefined(value));
}

@@ -70,3 +71,3 @@ /**

}
return "";
return STR_EMPTY;
}

@@ -114,7 +115,7 @@ /**

}
else if (propType === "object" && !property.hasOwnProperty("value")) {
else if (propType === "object" && !ObjHasOwnProperty.call(property, "value")) {
property = { value: stringifyObjects ? JSON.stringify(property) : property };
}
else if (isNullOrUndefined(property.value)
|| property.value === "" || (!isString(property.value)
|| property.value === STR_EMPTY || (!isString(property.value)
&& !isNumber(property.value) && !isBoolean(property.value)

@@ -216,3 +217,3 @@ && !isArray(property.value))) {

}
return "";
return STR_EMPTY;
}

@@ -236,3 +237,3 @@ /**

}
return cookieValue || "";
return cookieValue || STR_EMPTY;
}

@@ -258,3 +259,3 @@ /**

else if (style === "N" /* GuidStyle.Numeric */) {
theGuid = theGuid.replace(/-/g, "");
theGuid = theGuid.replace(/-/g, STR_EMPTY);
}

@@ -278,3 +279,3 @@ return theGuid;

var length = arguments.length;
var objProto = Object[strPrototype];
var objProto = Object[strShimPrototype];
var theArgs = arguments;

@@ -376,3 +377,3 @@ // Check if a deep merge

}
else if (hasOwnProperty(value, "value")) {
else if (ObjHasOwnProperty.call(value, "value")) {
// Looks like an IEventProperty

@@ -379,0 +380,0 @@ theType = 8192 /* FieldValueSanitizerType.EventProperty */ | getFieldValueType(value.value);

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

import { FieldValueSanitizerTypes, IEventProperty, IFieldValueSanitizerProvider, IValueSanitizer } from "./DataModels";
import { getFieldValueType } from "./Utils";
import { IEventProperty, IValueSanitizer, FieldValueSanitizerTypes, IFieldValueSanitizerProvider } from "./DataModels";
export declare class ValueSanitizer implements IValueSanitizer {

@@ -4,0 +4,0 @@ static getFieldType: typeof getFieldValueType;

/*
* 1DS JS SDK Core, 3.2.3
* 1DS JS SDK Core, 3.2.4
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
import { isNullOrUndefined, objForEachKey, isString } from "@microsoft/applicationinsights-core-js";
import { isValueKind, isValueAssigned, getFieldValueType } from "./Utils";
import { isNullOrUndefined, isString, objForEachKey } from "@microsoft/applicationinsights-core-js";
import { STR_EMPTY } from "./InternalConstants";
import { getFieldValueType, isValueAssigned, isValueKind } from "./Utils";
var ValueSanitizer = /** @class */ (function () {

@@ -97,3 +98,3 @@ function ValueSanitizer(fieldSanitizerProvider) {

// Check that property is valid
if (!isString(name) || isNullOrUndefined(value) || value === "") {
if (!isString(name) || isNullOrUndefined(value) || value === STR_EMPTY) {
return null;

@@ -100,0 +101,0 @@ }

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

@@ -84,4 +84,9 @@ * (Microsoft Internal Only)

var STR_EMPTY = "";
var STR_DEFAULT_ENDPOINT_URL = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
var STR_VERSION = "version";
var STR_PROPERTIES = "properties";
var _a;
var Version = '3.2.3';
var Version = '3.2.4';
var FullVersionString = "1DS-Web-JS-" + Version;

@@ -104,3 +109,3 @@ var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";

function isValueAssigned(value) {
return !(value === "" || applicationinsightsCoreJs.isNullOrUndefined(value));
return !(value === STR_EMPTY || applicationinsightsCoreJs.isNullOrUndefined(value));
}

@@ -114,3 +119,3 @@ function getTenantId(apiKey) {

}
return "";
return STR_EMPTY;
}

@@ -137,7 +142,7 @@ function isUint8ArrayAvailable() {

}
else if (propType === "object" && !property.hasOwnProperty("value")) {
else if (propType === "object" && !applicationinsightsShims.ObjHasOwnProperty.call(property, "value")) {
property = { value: stringifyObjects ? JSON.stringify(property) : property };
}
else if (applicationinsightsCoreJs.isNullOrUndefined(property.value)
|| property.value === "" || (!applicationinsightsCoreJs.isString(property.value)
|| property.value === STR_EMPTY || (!applicationinsightsCoreJs.isString(property.value)
&& !applicationinsightsCoreJs.isNumber(property.value) && !applicationinsightsCoreJs.isBoolean(property.value)

@@ -205,3 +210,3 @@ && !applicationinsightsCoreJs.isArray(property.value))) {

}
return "";
return STR_EMPTY;
}

@@ -217,3 +222,3 @@ function getCookieValue(cookieMgr, name, decode) {

}
return cookieValue || "";
return cookieValue || STR_EMPTY;
}

@@ -230,3 +235,3 @@ function createGuid(style) {

else if (style === "N" ) {
theGuid = theGuid.replace(/-/g, "");
theGuid = theGuid.replace(/-/g, STR_EMPTY);
}

@@ -240,3 +245,3 @@ return theGuid;

var length = arguments.length;
var objProto = Object[applicationinsightsCoreJs.strPrototype];
var objProto = Object[applicationinsightsShims.strShimPrototype];
var theArgs = arguments;

@@ -326,3 +331,3 @@ if (objProto.toString.call(theArgs[0]) === "[object Boolean]") {

}
else if (applicationinsightsCoreJs.hasOwnProperty(value, "value")) {
else if (applicationinsightsShims.ObjHasOwnProperty.call(value, "value")) {
theType = 8192 | getFieldValueType(value.value);

@@ -449,4 +454,2 @@ }

var PropVersion = "version";
var properties = "properties";
var AppInsightsCore = /** @class */ (function (_super) {

@@ -457,3 +460,2 @@ applicationinsightsShims.__extendsFn(AppInsightsCore, _super);

_this.pluginVersionStringArr = [];
_this.pluginVersionString = "";
dynamicProto__default(AppInsightsCore, _this, function (_self, _base) {

@@ -465,9 +467,10 @@ if (!_self.logger || !_self.logger.queue) {

applicationinsightsCoreJs.doPerf(_self, function () { return "AppInsightsCore.initialize"; }, function () {
var _pluginVersionStringArr = _self.pluginVersionStringArr;
if (config) {
if (!config.endpointUrl) {
config.endpointUrl = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
config.endpointUrl = STR_DEFAULT_ENDPOINT_URL;
}
var propertyStorageOverride = config.propertyStorageOverride;
if (propertyStorageOverride && (!propertyStorageOverride.getProperty || !propertyStorageOverride.setProperty)) {
throw new Error("Invalid property storage override passed.");
applicationinsightsCoreJs.throwError("Invalid property storage override passed.");
}

@@ -480,3 +483,3 @@ if (config.channels) {

var ver = channel.identifier + "=" + channel.version;
_self.pluginVersionStringArr.push(ver);
_pluginVersionStringArr.push(ver);
}

@@ -495,7 +498,8 @@ });

var ver = ext.identifier + "=" + ext.version;
_self.pluginVersionStringArr.push(ver);
_pluginVersionStringArr.push(ver);
}
});
}
_self.pluginVersionString = _self.pluginVersionStringArr.join(";");
_self.pluginVersionString = _pluginVersionStringArr.join(";");
_self.pluginVersionStringArr = _pluginVersionStringArr;
try {

@@ -511,3 +515,3 @@ _base.initialize(config, extensions, logger, notificationManager);

}
logger_1.throwInternal(1 , 514 , "SDK Initialization Failed - no telemetry will be sent: " + message);
applicationinsightsCoreJs._throwInternal(logger_1, 1 , 514 , "SDK Initialization Failed - no telemetry will be sent: " + message);
}

@@ -529,12 +533,5 @@ }, function () { return ({ config: config, extensions: extensions, logger: logger, notificationManager: notificationManager }); });

var baseData = telemetryItem.baseData = telemetryItem.baseData || {};
if (!baseData[properties]) {
baseData[properties] = {};
}
var itemProperties = baseData[properties];
if (!itemProperties[PropVersion]) {
itemProperties[PropVersion] = "";
}
if (_self.pluginVersionString !== "") {
itemProperties[PropVersion] = _self.pluginVersionString;
}
baseData[STR_PROPERTIES] = baseData[STR_PROPERTIES] || {};
var itemProperties = baseData[STR_PROPERTIES];
itemProperties[STR_VERSION] = _self.pluginVersionString || itemProperties[STR_VERSION] || STR_EMPTY;
}

@@ -547,2 +544,3 @@ _base.track(telemetryItem);

}
AppInsightsCore.__ieDyn=1;
return AppInsightsCore;

@@ -558,3 +556,3 @@ }(applicationinsightsCoreJs.AppInsightsCore));

if (config && !config.endpointUrl) {
config.endpointUrl = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
config.endpointUrl = STR_DEFAULT_ENDPOINT_URL;
}

@@ -583,2 +581,3 @@ _self.getWParam = function () {

}
BaseCore.__ieDyn=1;
return BaseCore;

@@ -963,3 +962,3 @@ }(applicationinsightsCoreJs.BaseCore));

function _warnLog(message) {
diagLog && diagLog.warnToConsole("ESPromiseScheduler[" + _scheduledName + "] " + message);
applicationinsightsCoreJs._warnToConsole(diagLog, "ESPromiseScheduler[" + _scheduledName + "] " + message);
}

@@ -1055,3 +1054,3 @@ }

}
if (!applicationinsightsCoreJs.isString(name) || applicationinsightsCoreJs.isNullOrUndefined(value) || value === "") {
if (!applicationinsightsCoreJs.isString(name) || applicationinsightsCoreJs.isNullOrUndefined(value) || value === STR_EMPTY) {
return null;

@@ -1173,3 +1172,5 @@ }

exports.__getRegisteredEvents = applicationinsightsCoreJs.__getRegisteredEvents;
exports._logInternalMessage = applicationinsightsCoreJs._logInternalMessage;
exports._throwInternal = applicationinsightsCoreJs._throwInternal;
exports._warnToConsole = applicationinsightsCoreJs._warnToConsole;
exports.addEventHandler = applicationinsightsCoreJs.addEventHandler;

@@ -1176,0 +1177,0 @@ exports.addEventListeners = applicationinsightsCoreJs.addEventListeners;

/*!
* 1DS JS SDK Core, 3.2.3
* 1DS JS SDK Core, 3.2.4
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
var e=this,n=function(e,r,f,n){"use strict";function L(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=L(n),n=f.createEnumStyle({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}),_=f.createEnumStyle({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),x=f.createEnumStyle({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),R=f.createEnumStyle({Normal:1,Critical:2}),M=f.createEnumStyle({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),H=f.objFreeze(r.__assignFn(r.__assignFn({},f._InternalMessageId),f.createEnumStyle({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.2.3",i="1DS-Web-JS-"+t,l="withCredentials",B=((u={})[0]=0,u[2]=6,u[1]=1,u[3]=7,u[4098]=6,u[4097]=1,u[4099]=7,u),a=null,s=!!f.getDocument(),u=!!f.getWindow();function g(e){return!(""===e||f.isNullOrUndefined(e))}function G(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function z(){return a=null===a?!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():a}function d(e){return!!(e&&f.isNumber(e)&&1<=e&&e<=4)}function W(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)&&!p(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!v(n.kind))return null;n.value=n.value.toString()}return n}function K(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=B[h(e)]||-1,-1!==r&&-1!==n?r|=n:6===n&&(r=n))),r}function q(){f.safeGetCookieMgr(null).setEnabled(!1)}function J(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function X(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function Q(e){return f.areCookiesSupported(null)?Z(f.safeGetCookieMgr(null),e):""}function Z(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function Y(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 c(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]=c(!0,o[t][n],e):o[t][n]=e})):o[t]=c(!0,o[t],e):o[t]=e});return o}var m=f.perfNow;function v(e){return 0===e||0<e&&e<=13||32===e}function p(e){return 0<e.length}function $(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=m()}function h(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|=h(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|h(e.value)))),t}var S,ee={Version:t,FullVersionString:i,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:s,isWindowObjectAvailable:u,isValueAssigned:g,getTenantId:G,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:z,isLatency:d,sanitizeProperty:W,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:K,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:J,deleteCookie:X,getCookie:Q,createGuid:Y,extend:c,getTime:m,isValueKind:v,isArrayValid:p,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:$,addEventHandler:f.addEventHandler,getFieldValueType:h,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},y={_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:q,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},b="version",E="properties",P=(S=f.AppInsightsCore,r.__extendsFn(C,S),C);function C(){var e=S.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",o(C,e,function(s,l){s.logger&&s.logger.queue||(s.logger=new f.DiagnosticLogger({loggingLevelConsole:1})),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(1,514,"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=m(),d(n.latency)||(n.latency=1),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=i,(e=n.baseData=n.baseData||{})[E]||(e[E]={}),(e=e[E])[b]||(e[b]=""),""!==s.pluginVersionString&&(e[b]=s.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}I=f.BaseCore,r.__extendsFn(O,I);var I,w=O;function O(){var e=I.call(this)||this;return o(O,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 s?0:-1};try{a.initialize(e,n,t,r)}catch(i){f._throwInternal(o.logger,1,514,"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=i),a.track(e)}}),e}var N=f.isFunction,T=(A.resolve=function(r){return r instanceof A?r:r&&N(r.then)?new A(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new A(function(e){e(r)})},A.reject=function(t){return new A(function(e,n){n(t)})},A.all=function(s){if(s&&s.length)return new A(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&N(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)}})},A.race=function(i){return new A(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&N(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},A);function A(e){var a=0,s=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?N(t)?t(s):s:N(r)?r(s):s)instanceof A?e.then(i,o):(2!==a||N(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(A,this,function(n){n.then=function(t,r){return new A(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!N(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 ne=0,j=[],F=[],U=[];function k(){return(new Date).getTime()}V.incomplete=function(){return j},V.waitingToStart=function(){return F};var D=V;function V(e,n){var p=0,h=(e||"<unnamed>")+"."+ne;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)}ne++,o(V,this,function(e){var g=null,m=0;function v(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+"."+m,e=(m++,e&&(a+="-("+e+")"),a+"{"+p+"}"),r=(p++,{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 -- ["+F.length+"] waiting and ["+j.length+"] running"),i.abort=function(e){i.abort=null,v(F,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){v(F,a),f(i).then(n,t)},function(e){v(F,a),f(i).then(n,t)})}),F.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=v(j,e);i||(i=v(U,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"):(U.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(j),l(F),l(U)}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")):(j.push(e),c(e,t))}}})}re.getFieldType=h;var te=re;function re(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)||!v(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,h(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=h(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=h(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.__getRegisteredEvents=f.__getRegisteredEvents,e._throwInternal=f._throwInternal,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.createEnumStyle=f.createEnumStyle,e.createProcessTelemetryContext=f.createProcessTelemetryContext,e.createTraceParent=f.createTraceParent,e.createUniqueNamespace=f.createUniqueNamespace,e.createUnloadHandlerContainer=f.createUnloadHandlerContainer,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.eventOff=f.eventOff,e.eventOn=f.eventOn,e.findW3cTraceParent=f.findW3cTraceParent,e.formatTraceParent=f.formatTraceParent,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.isSampledFlag=f.isSampledFlag,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isValidSpanId=f.isValidSpanId,e.isValidTraceId=f.isValidTraceId,e.isValidTraceParent=f.isValidTraceParent,e.isXhrSupported=f.isXhrSupported,e.mergeEvtNamespace=f.mergeEvtNamespace,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.objFreeze=f.objFreeze,e.objKeys=f.objKeys,e.objSeal=f.objSeal,e.optimizeObject=f.optimizeObject,e.parseTraceParent=f.parseTraceParent,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.proxyFunctionAs=f.proxyFunctionAs,e.proxyFunctions=f.proxyFunctions,e.random32=f.random32,e.randomValue=f.randomValue,e.removeEventHandler=f.removeEventHandler,e.removeEventListeners=f.removeEventListeners,e.removePageHideEventListener=f.removePageHideEventListener,e.removePageShowEventListener=f.removePageShowEventListener,e.removePageUnloadEventListener=f.removePageUnloadEventListener,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.strFunction=f.strFunction,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=w,e.CoreUtils=y,e.ESPromise=T,e.ESPromiseScheduler=D,e.EventLatency=_,e.EventPersistence=R,e.EventPropertyType=x,e.FullVersionString=i,e.TraceLevel=M,e.Utils=ee,e.ValueKind=n,e.ValueSanitizer=te,e.Version=t,e._ExtendedInternalMessageId=H,e.createGuid=Y,e.deleteCookie=X,e.disableCookies=q,e.extend=c,e.getCommonSchemaMetaData=K,e.getCookie=Q,e.getCookieValue=Z,e.getFieldValueType=h,e.getTenantId=G,e.getTime=m,e.isArrayValid=p,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=s,e.isLatency=d,e.isUint8ArrayAvailable=z,e.isValueAssigned=g,e.isValueKind=v,e.isWindowObjectAvailable=u,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,l,t),s.open(e,n,!i),t&&a(s,l,t),!i&&o&&a(s,"timeout",o),s},e.sanitizeProperty=W,e.setCookie=J,e.setProcessTelemetryTimings=$;P=e,w="__esModule",y={value:!0},D=Object.defineProperty;if(D)try{return void D(P,w,y)}catch(ie){}typeof y.value!==undefined&&(P[w]=y.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,c,f,n){"use strict";function L(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=L(n),n=f.createEnumStyle({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}),V=f.createEnumStyle({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),x=f.createEnumStyle({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),M=f.createEnumStyle({Normal:1,Critical:2}),R=f.createEnumStyle({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),H=f.objFreeze(c.__assignFn(c.__assignFn({},f._InternalMessageId),f.createEnumStyle({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}))),g="",d="https://browser.events.data.microsoft.com/OneCollector/1.0/",r="version",i="properties",t="3.2.4",s="1DS-Web-JS-"+t,B="withCredentials",G=((u={})[0]=0,u[2]=6,u[1]=1,u[3]=7,u[4098]=6,u[4097]=1,u[4099]=7,u),a=null,l=!!f.getDocument(),u=!!f.getWindow();function m(e){return!(e===g||f.isNullOrUndefined(e))}function z(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return g}function W(){return a=null===a?!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():a}function v(e){return!!(e&&f.isNumber(e)&&1<=e&&e<=4)}function K(e,n,t){if(!n&&!m(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||c.ObjHasOwnProperty.call(n,"value")){if(f.isNullOrUndefined(n.value)||n.value===g||!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)||!y(n.kind))return null;n.value=n.value.toString()}return n}function q(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=G[b(e)]||-1,-1!==r&&-1!==n?r|=n:6===n&&(r=n))),r}function J(){f.safeGetCookieMgr(null).setEnabled(!1)}function X(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function Q(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function Z(e){return f.areCookiesSupported(null)?Y(f.safeGetCookieMgr(null),e):g}function Y(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||g}function $(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,g)),n}function p(e,n,t,r,i){var o={},a=!1,s=0,l=arguments.length,u=Object[c.strShimPrototype],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]=p(!0,o[t][n],e):o[t][n]=e})):o[t]=p(!0,o[t],e):o[t]=e});return o}var h=f.perfNow;function y(e){return 0===e||0<e&&e<=13||32===e}function S(e){return 0<e.length}function ee(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=h()}function b(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===c.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=b(e[0]))):c.ObjHasOwnProperty.call(e,"value")&&(t=8192|b(e.value)))),t}var ne={Version:t,FullVersionString:s,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:u,isValueAssigned:m,getTenantId:z,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:W,isLatency:v,sanitizeProperty:K,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:q,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:X,deleteCookie:Q,getCookie:Z,createGuid:$,extend:p,getTime:h,isValueKind:y,isArrayValid:S,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:ee,addEventHandler:f.addEventHandler,getFieldValueType:b,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},E={_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:c.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:J,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},te=f.AppInsightsCore;c.__extendsFn(C,te),C.__ieDyn=1;var P=C;function C(){var e=te.call(this)||this;return e.pluginVersionStringArr=[],o(C,e,function(l,u){l.logger&&l.logger.queue||(l.logger=new f.DiagnosticLogger({loggingLevelConsole:1})),l.initialize=function(i,o,a,s){f.doPerf(l,function(){return"AppInsightsCore.initialize"},function(){var n=l.pluginVersionStringArr;i&&(i.endpointUrl||(i.endpointUrl=d),!(e=i.propertyStorageOverride)||e.getProperty&&e.setProperty||f.throwError("Invalid property storage override passed."),i.channels&&f.arrForEach(i.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,n.push(e))})})),l.getWParam=function(){return"undefined"!=typeof document?0:-1},o&&f.arrForEach(o,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,n.push(e))}),l.pluginVersionString=n.join(";"),l.pluginVersionStringArr=n;try{u.initialize(i,o,a,s),l.pollInternalLogs("InternalLog")}catch(r){var e=l.logger,t=f.dumpObj(r);~t.indexOf("channels")&&(t+="\n - Channels must be provided through config.channels only!"),f._throwInternal(e,1,514,"SDK Initialization Failed - no telemetry will be sent: "+t)}},function(){return{config:i,extensions:o,logger:a,notificationManager:s}})},l.track=function(t){f.doPerf(l,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=h(),v(n.latency)||(n.latency=1),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=s,(e=n.baseData=n.baseData||{})[i]=e[i]||{},(e=e[i])[r]=l.pluginVersionString||e[r]||g),u.track(n)},function(){return{item:t}},!t.sync)}}),e}I=f.BaseCore,c.__extendsFn(O,I),O.__ieDyn=1;var I,w=O;function O(){var e=I.call(this)||this;return o(O,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl=d),o.getWParam=function(){return l?0:-1};try{a.initialize(e,n,t,r)}catch(i){f._throwInternal(o.logger,1,514,"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=s),a.track(e)}}),e}var N=f.isFunction,T=(A.resolve=function(r){return r instanceof A?r:r&&N(r.then)?new A(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new A(function(e){e(r)})},A.reject=function(t){return new A(function(e,n){n(t)})},A.all=function(s){if(s&&s.length)return new A(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&N(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)}})},A.race=function(i){return new A(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&N(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},A);function A(e){var a=0,s=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?N(t)?t(s):s:N(r)?r(s):s)instanceof A?e.then(i,o):(2!==a||N(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(A,this,function(n){n.then=function(t,r){return new A(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!N(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 re=0,j=[],F=[],U=[];function k(){return(new Date).getTime()}_.incomplete=function(){return j},_.waitingToStart=function(){return F};var D=_;function _(e,n){var p=0,h=(e||"<unnamed>")+"."+re;function y(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function S(e){f._warnToConsole(n,"ESPromiseScheduler["+h+"] "+e)}re++,o(_,this,function(e){var g=null,m=0;function v(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+"."+m,e=(m++,e&&(a+="-("+e+")"),a+"{"+p+"}"),r=(p++,{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;y("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+F.length+"] waiting and ["+j.length+"] running"),i.abort=function(e){i.abort=null,v(F,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){v(F,a),f(i).then(n,t)},function(e){v(F,a),f(i).then(n,t)})}),F.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)",S(o),e.splice(i,1),r--):i++}}function u(e,n){var t,r=!1,i=v(j,e);i||(i=v(U,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=k()-i.tm,n?r?S("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(U.push(i),S("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(j),l(F),l(U)}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){y("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?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):d(n,t)(e)},d(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(k()-r.tm)+" ms"),n(e)},t)):(y("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")):(j.push(e),c(e,t))}}})}oe.getFieldType=b;var ie=oe;function oe(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)||!y(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;m(n)&&(t=c(0,0,n),(t=l(i,r,e,b(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 m(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===g)return null;var o=null,a=b(t);if(8192==(8192&a)){var s=-8193&a;if(!m((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)||!m(t.value))return null;var o=b(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.__getRegisteredEvents=f.__getRegisteredEvents,e._logInternalMessage=f._logInternalMessage,e._throwInternal=f._throwInternal,e._warnToConsole=f._warnToConsole,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.createEnumStyle=f.createEnumStyle,e.createProcessTelemetryContext=f.createProcessTelemetryContext,e.createTraceParent=f.createTraceParent,e.createUniqueNamespace=f.createUniqueNamespace,e.createUnloadHandlerContainer=f.createUnloadHandlerContainer,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.eventOff=f.eventOff,e.eventOn=f.eventOn,e.findW3cTraceParent=f.findW3cTraceParent,e.formatTraceParent=f.formatTraceParent,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.isSampledFlag=f.isSampledFlag,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isValidSpanId=f.isValidSpanId,e.isValidTraceId=f.isValidTraceId,e.isValidTraceParent=f.isValidTraceParent,e.isXhrSupported=f.isXhrSupported,e.mergeEvtNamespace=f.mergeEvtNamespace,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.objFreeze=f.objFreeze,e.objKeys=f.objKeys,e.objSeal=f.objSeal,e.optimizeObject=f.optimizeObject,e.parseTraceParent=f.parseTraceParent,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.proxyFunctionAs=f.proxyFunctionAs,e.proxyFunctions=f.proxyFunctions,e.random32=f.random32,e.randomValue=f.randomValue,e.removeEventHandler=f.removeEventHandler,e.removeEventListeners=f.removeEventListeners,e.removePageHideEventListener=f.removePageHideEventListener,e.removePageShowEventListener=f.removePageShowEventListener,e.removePageUnloadEventListener=f.removePageUnloadEventListener,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.strFunction=f.strFunction,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=w,e.CoreUtils=E,e.ESPromise=T,e.ESPromiseScheduler=D,e.EventLatency=V,e.EventPersistence=M,e.EventPropertyType=x,e.FullVersionString=s,e.TraceLevel=R,e.Utils=ne,e.ValueKind=n,e.ValueSanitizer=ie,e.Version=t,e._ExtendedInternalMessageId=H,e.createGuid=$,e.deleteCookie=Q,e.disableCookies=J,e.extend=p,e.getCommonSchemaMetaData=q,e.getCookie=Z,e.getCookieValue=Y,e.getFieldValueType=b,e.getTenantId=z,e.getTime=h,e.isArrayValid=S,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=l,e.isLatency=v,e.isUint8ArrayAvailable=W,e.isValueAssigned=m,e.isValueKind=y,e.isWindowObjectAvailable=u,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,B,t),s.open(e,n,!i),t&&a(s,B,t),!i&&o&&a(s,"timeout",o),s},e.sanitizeProperty=K,e.setCookie=X,e.setProcessTelemetryTimings=ee;P=e,w="__esModule",E={value:!0},D=Object.defineProperty;if(D)try{return void D(P,w,E)}catch(ae){}typeof E.value!==undefined&&(P[w]=E.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.2.3",
"version": "3.2.4",
"description": "Microsoft Application Insights JavaScript SDK - 1ds-core-js extensions",

@@ -10,2 +10,4 @@ "author": "Microsoft Application Insights Team",

"scripts": {
"ai-min": "grunt core-min",
"ai-restore": "grunt core-restore",
"publishPackage": "npm publish",

@@ -37,3 +39,3 @@ "docs": "typedoc --out docs docs --excludePrivate --excludeProtected --tsconfig lib/tsconfig.json --theme minimal",

"@microsoft/applicationinsights-shims": "^2.0.1",
"@microsoft/applicationinsights-core-js": "2.8.4",
"@microsoft/applicationinsights-core-js": "2.8.5",
"@microsoft/dynamicproto-js": "^1.1.6"

@@ -40,0 +42,0 @@ },

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

Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-core-js/3.2.3/versions).
Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-core-js/3.2.4/versions).

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

/**
* AppInsightsCore.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
*/
import { AppInsightsCore as InternalCore, IPlugin, eLoggingSeverity, ITelemetryItem, IDiagnosticLogger, INotificationManager, doPerf, arrForEach, dumpObj, DiagnosticLogger } from "@microsoft/applicationinsights-core-js";
import { IExtendedConfiguration, IExtendedTelemetryItem, IExtendedAppInsightsCore } from "./DataModels";
* AppInsightsCore.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
*/
import dynamicProto from "@microsoft/dynamicproto-js";
import {
AppInsightsCore as InternalCore, DiagnosticLogger, IDiagnosticLogger, INotificationManager, IPlugin, ITelemetryItem, _throwInternal,
arrForEach, doPerf, dumpObj, eLoggingSeverity, throwError
} from "@microsoft/applicationinsights-core-js";
import { IExtendedAppInsightsCore, IExtendedConfiguration, IExtendedTelemetryItem } from "./DataModels";
import { EventLatencyValue, _eExtendedInternalMessageId } from "./Enums";
import { isLatency, FullVersionString, getTime } from "./Utils";
import dynamicProto from "@microsoft/dynamicproto-js";
import { STR_DEFAULT_ENDPOINT_URL, STR_EMPTY, STR_PROPERTIES, STR_VERSION } from "./InternalConstants";
import { FullVersionString, getTime, isLatency } from "./Utils";
const PropVersion = "version";
const properties = "properties";
export default class AppInsightsCore extends InternalCore implements IExtendedAppInsightsCore {

@@ -20,3 +21,3 @@

public pluginVersionStringArr: string[] = [];
public pluginVersionString: string = "";
public pluginVersionString: string;

@@ -35,6 +36,9 @@ constructor() {

doPerf(_self, () => "AppInsightsCore.initialize", () => {
let _pluginVersionStringArr = _self.pluginVersionStringArr;
// Add default collector url
if (config) {
if (!config.endpointUrl) {
config.endpointUrl = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
config.endpointUrl = STR_DEFAULT_ENDPOINT_URL;
}

@@ -44,3 +48,3 @@ let propertyStorageOverride = config.propertyStorageOverride;

if (propertyStorageOverride && (!propertyStorageOverride.getProperty || !propertyStorageOverride.setProperty)) {
throw new Error("Invalid property storage override passed.");
throwError("Invalid property storage override passed.");
}

@@ -53,3 +57,3 @@ if (config.channels) {

let ver = channel.identifier + "=" + channel.version;
_self.pluginVersionStringArr.push(ver);
_pluginVersionStringArr.push(ver);
}

@@ -70,3 +74,3 @@ });

let ver = ext.identifier + "=" + ext.version;
_self.pluginVersionStringArr.push(ver);
_pluginVersionStringArr.push(ver);
}

@@ -76,3 +80,5 @@ });

_self.pluginVersionString = _self.pluginVersionStringArr.join(";");
_self.pluginVersionString = _pluginVersionStringArr.join(";");
_self.pluginVersionStringArr = _pluginVersionStringArr;
try {

@@ -89,3 +95,3 @@ _base.initialize(config, extensions, logger, notificationManager);

}
logger.throwInternal(
_throwInternal(logger,
eLoggingSeverity.CRITICAL,

@@ -112,14 +118,6 @@ _eExtendedInternalMessageId.FailedToInitializeSDK, "SDK Initialization Failed - no telemetry will be sent: " + message

let baseData = telemetryItem.baseData = telemetryItem.baseData || {};
if (!baseData[properties]) {
baseData[properties] = {};
}
let itemProperties = baseData[properties];
if (!itemProperties[PropVersion]) {
itemProperties[PropVersion] = "";
}
if (_self.pluginVersionString !== "") {
itemProperties[PropVersion] = _self.pluginVersionString;
}
baseData[STR_PROPERTIES] = baseData[STR_PROPERTIES] || {};
let itemProperties = baseData[STR_PROPERTIES];
itemProperties[STR_VERSION] = _self.pluginVersionString || itemProperties[STR_VERSION] || STR_EMPTY;
}

@@ -126,0 +124,0 @@

/**
* 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
*/
* 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 dynamicProto from "@microsoft/dynamicproto-js";
import { BaseCore as InternalCore, IPlugin, eLoggingSeverity, ITelemetryItem, IDiagnosticLogger, INotificationManager, dumpObj, _throwInternal } from "@microsoft/applicationinsights-core-js";
import { IExtendedConfiguration, IExtendedTelemetryItem, IExtendedAppInsightsCore } from "./DataModels";
import {
BaseCore as InternalCore, IDiagnosticLogger, INotificationManager, IPlugin, ITelemetryItem, _throwInternal, dumpObj, eLoggingSeverity
} from "@microsoft/applicationinsights-core-js";
import { IExtendedAppInsightsCore, IExtendedConfiguration, IExtendedTelemetryItem } from "./DataModels";
import { _eExtendedInternalMessageId } from "./Enums";
import { STR_DEFAULT_ENDPOINT_URL } from "./InternalConstants";
import { FullVersionString, isDocumentObjectAvailable } from "./Utils";

@@ -27,3 +30,3 @@

if (config && !config.endpointUrl) {
config.endpointUrl = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
config.endpointUrl = STR_DEFAULT_ENDPOINT_URL;
}

@@ -30,0 +33,0 @@

/**
* Enums.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
* File containing the enums as constants.
*/
* Enums.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2018
* File containing the enums as constants.
*/

@@ -8,0 +8,0 @@ import { _InternalMessageId, _eInternalMessageId, createEnumStyle, objFreeze } from "@microsoft/applicationinsights-core-js";

/**
* ESPromise.ts
* @author Nev Wylie (newylie))
* @copyright Microsoft 2019
* Simplified wrapper to provide ES6 style Promise callback handling for older browsers
*/
* ESPromise.ts
* @author Nev Wylie (newylie))
* @copyright Microsoft 2019
* Simplified wrapper to provide ES6 style Promise callback handling for older browsers
*/
import dynamicProto from "@microsoft/dynamicproto-js";
import { isFunction } from "@microsoft/applicationinsights-core-js";
import dynamicProto from "@microsoft/dynamicproto-js";

@@ -11,0 +11,0 @@ /**

/**
* ESPromiseScheduler.ts
* @author Nev Wylie (newylie)
* @copyright Microsoft 2019
*/
* ESPromiseScheduler.ts
* @author Nev Wylie (newylie)
* @copyright Microsoft 2019
*/
import dynamicProto from "@microsoft/dynamicproto-js";
import ESPromise from "./ESPromise";
import { ResolverResolveFunc, ResolverRejectFunc } from "./ESPromise";
import { IDiagnosticLogger, getGlobal } from "@microsoft/applicationinsights-core-js";
import dynamicProto from "@microsoft/dynamicproto-js";
import { IDiagnosticLogger, _warnToConsole, getGlobal } from "@microsoft/applicationinsights-core-js";
import { ResolverRejectFunc, ResolverResolveFunc } from "./ESPromise";

@@ -312,3 +312,3 @@ /** This is a default timeout that will cause outstanding running promises to be removed/rejected to avoid filling up memory with blocked events */

function _warnLog(message: string) {
diagLog && diagLog.warnToConsole("ESPromiseScheduler[" + _scheduledName + "] " + message);
_warnToConsole(diagLog, "ESPromiseScheduler[" + _scheduledName + "] " + message);
}

@@ -315,0 +315,0 @@ }

@@ -40,3 +40,3 @@ /**

EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId,
createEnumStyle, eLoggingSeverity, _eInternalMessageId, _throwInternal,// _warnToConsole, _logInternalMessage
createEnumStyle, eLoggingSeverity, _eInternalMessageId, _throwInternal, _warnToConsole, _logInternalMessage,
// The HelperFuncs functions

@@ -43,0 +43,0 @@ isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName,

/**
* Utils.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
* File containing utility functions.
*/
import { objCreateFn, strShimObject } from "@microsoft/applicationinsights-shims";
import { IEventProperty, IExtendedTelemetryItem } from "./DataModels";
import { eEventPropertyType, _ExtendedInternalMessageId, GuidStyle, eValueKind, FieldValueSanitizerType, EventLatency, EventLatencyValue } from "./Enums";
* Utils.ts
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
* @copyright Microsoft 2018
* File containing utility functions.
*/
import {
ITelemetryItem, 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, ICookieMgr, safeGetCookieMgr, generateW3CId,
mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, ICoreUtils, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener,
ICookieMgr, ICoreUtils, ITelemetryItem, addEventHandler, addPageUnloadEventListener, areCookiesSupported, arrForEach, arrIndexOf, arrMap,
arrReduce, dateNow, generateW3CId, getDocument, getGlobalInst, getNavigator, getWindow, hasOwnProperty, isArray, isBeaconsSupported,
isBoolean, isDate, isError, isFunction, isIE, isNullOrUndefined, isNumber, isObject, isReactNative, isString, isTypeof, isUndefined,
mwcRandom32, mwcRandomSeed, newGuid, newId, objDefineAccessors, objForEachKey, objKeys, perfNow, random32, randomValue, safeGetCookieMgr,
strEndsWith, strObject, strTrim, strUndefined, toISOString, uaDisallowsSameSiteNone, useXDomainRequest
} from "@microsoft/applicationinsights-core-js";
import { ObjHasOwnProperty, objCreateFn, strShimObject, strShimPrototype } from "@microsoft/applicationinsights-shims";
import { IEventProperty, IExtendedTelemetryItem } from "./DataModels";
import { EventLatency, EventLatencyValue, FieldValueSanitizerType, GuidStyle, eEventPropertyType, eValueKind } from "./Enums";
import { STR_EMPTY } from "./InternalConstants";

@@ -65,3 +65,3 @@ export const Version = "#version#";

/// <returns> true if value is null undefined or emptyString </returns>
return !(value === "" || isNullOrUndefined(value));
return !(value === STR_EMPTY || isNullOrUndefined(value));
}

@@ -81,3 +81,3 @@

}
return "";
return STR_EMPTY;
}

@@ -131,6 +131,6 @@

property = ({ value: property } as IEventProperty);
} else if (propType === "object" && !property.hasOwnProperty("value")) {
} else if (propType === "object" && !ObjHasOwnProperty.call(property, "value")) {
property = ({ value: stringifyObjects ? JSON.stringify(property) : property } as IEventProperty);
} else if (isNullOrUndefined((property as IEventProperty).value)
|| (property as IEventProperty).value === "" || (!isString((property as IEventProperty).value)
|| (property as IEventProperty).value === STR_EMPTY || (!isString((property as IEventProperty).value)
&& !isNumber((property as IEventProperty).value) && !isBoolean((property as IEventProperty).value)

@@ -244,3 +244,3 @@ && !isArray((property as IEventProperty).value))) {

return "";
return STR_EMPTY;
}

@@ -265,3 +265,3 @@

return cookieValue || "";
return cookieValue || STR_EMPTY;
}

@@ -285,3 +285,3 @@

} else if (style === GuidStyle.Numeric) {
theGuid = theGuid.replace(/-/g, "");
theGuid = theGuid.replace(/-/g, STR_EMPTY);
}

@@ -307,3 +307,3 @@

var length = arguments.length;
var objProto = Object[strPrototype];
var objProto = Object[strShimPrototype];
var theArgs = arguments;

@@ -410,3 +410,3 @@

}
} else if (hasOwnProperty(value, "value")) {
} else if (ObjHasOwnProperty.call(value, "value")) {
// Looks like an IEventProperty

@@ -573,2 +573,2 @@ theType = FieldValueSanitizerType.EventProperty | getFieldValueType(value.value);

return xhr;
}
}

@@ -1,7 +0,8 @@

import { isNullOrUndefined, objForEachKey, isString } from "@microsoft/applicationinsights-core-js";
import { isValueKind, isValueAssigned, getFieldValueType } from "./Utils";
import { isNullOrUndefined, isString, objForEachKey } from "@microsoft/applicationinsights-core-js";
import {
IEventProperty, IValueSanitizer, FieldValueSanitizerFunc, FieldValueSanitizerTypes, IFieldSanitizerDetails, IFieldValueSanitizerProvider,
FieldValueSanitizerFunc, FieldValueSanitizerTypes, IEventProperty, IFieldSanitizerDetails, IFieldValueSanitizerProvider, IValueSanitizer
} from "./DataModels";
import { FieldValueSanitizerType } from "./Enums";
import { STR_EMPTY } from "./InternalConstants";
import { getFieldValueType, isValueAssigned, isValueKind } from "./Utils";

@@ -157,3 +158,3 @@ interface ISanitizerMapValue {

// Check that property is valid
if (!isString(name) || isNullOrUndefined(value) || (value as any) === "") {
if (!isString(name) || isNullOrUndefined(value) || (value as any) === STR_EMPTY) {
return null;

@@ -160,0 +161,0 @@ }

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is 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