-
Notifications
You must be signed in to change notification settings - Fork 1
/
ai.2.min.js
5 lines (5 loc) · 120 KB
/
ai.2.min.js
1
2
3
4
5
/*!
* Application Insights JavaScript SDK - Web, 2.8.15
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
"use strict";var e=function(e){!function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(e){}void 0!==typeof t.value&&(e[n]=t.value)}(e,"__esModule",{value:!0});var n="function",t="object",r="undefined",i="prototype",o="hasOwnProperty",a=Object,u=a[i],c=a.assign,s=a.create,l=a.defineProperty,f=u[o],d=null;function p(e){return(e=!1===(e=void 0===e||e)?null:d)||((e=(e=(e=typeof globalThis!==r?globalThis:e)||typeof self===r?e:self)||typeof window===r?e:window)||typeof global===r||(e=global),d=e),e}function v(e){throw new TypeError(e)}function g(e){if(s)return s(e);if(null==e)return{};var r=typeof e;function o(){}return r!==t&&r!==n&&v("Object prototype may only be an Object:"+e),o[i]=e,new o}(p()||{}).Symbol,(p()||{}).Reflect;var m=c||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])u[o].call(n,i)&&(e[i]=n[i]);return e},h=function(e,n){return(h=a.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function y(e,t){function r(){this.constructor=e}typeof t!==n&&null!==t&&v("Class extends value "+t+" is not a constructor or null"),h(e,t),e[i]=null===t?g(t):(r[i]=t[i],new r)}function x(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var b="initialize",I="name",w="getNotifyMgr",T="identifier",C="push",S="isInitialized",k="config",_="instrumentationKey",E="logger",D="length",P="time",N="processNext",M="getProcessTelContext",A="addNotificationListener",R="removeNotificationListener",L="stopPollingInternalLogs",U="onComplete",q="getPlugin",F="flush",H="_extensions",O="splice",z="teardown",V="messageId",j="message",B="isAsync",K="_doTeardown",X="update",W="getNext",G="diagLog",J="setNextPlugin",$="createNew",Q="cookieCfg",Y="indexOf",Z="substring",ee="userAgent",ne="split",te="setEnabled",re="substr",ie="nodeType",oe="apply",ae="replace",ue="enableDebugExceptions",ce="logInternalMessage",se="toLowerCase",le="call",fe="type",de="handler",pe="listeners",ve="isChildEvt",ge="getCtx",me="setCtx",he="complete",ye="traceId",xe="spanId",be="traceFlags",Ie="version",we="",Te="channels",Ce="core",Se="createPerfMgr",ke="disabled",_e="extensionConfig",Ee="processTelemetry",De="priority",Pe="eventsSent",Ne="eventsDiscarded",Me="eventsSendRequest",Ae="perfEvent",Re="errorToConsole",Le="warnToConsole",Ue="getPerfMgr",qe="toISOString",Fe="endsWith",He="indexOf",Oe="trim",ze="toString",Ve="constructor",je=l,Be=a.freeze,Ke=a.keys,Xe=(Je=String[i])[Oe],We=Je[Fe],Ge=Date[i][qe],Je=Array.isArray,$e=u[ze],Qe=f[ze],Ye=Qe[le](a),Ze=/-([a-z])/g,en=/([^\w\d_$])/g,nn=/^(\d+[\w\d_$])/,tn=Object.getPrototypeOf;function rn(e){if(e){if(tn)return tn(e);if(e=e.__proto__||e[i]||e[Ve])return e}return null}function on(e){return void 0===e||typeof e===r}function an(e){return null===e||on(e)}function un(e){return!an(e)}function cn(e,n){return!(!e||!f[le](e,n))}function sn(e){return!(!e||typeof e!==t)}function ln(e){return!(!e||typeof e!==n)}function fn(e){var n=e;return e&&hn(e)?(n=(n=e[ae](Ze,(function(e,n){return n.toUpperCase()})))[ae](en,"_"))[ae](nn,(function(e,n){return"_"+n})):n}function dn(e,n){if(e)for(var t in e)f[le](e,t)&&n[le](e,t,e[t])}function pn(e,n){return!(!e||!n)&&-1!==e[Y](n)}function vn(e){return!(!e||"[object Date]"!==$e[le](e))}var gn=Je||function(e){return!(!e||"[object Array]"!==$e[le](e))};function mn(e){return!(!e||"[object Error]"!==$e[le](e))}function hn(e){return"string"==typeof e}function yn(e){return"number"==typeof e}function xn(e){return"boolean"==typeof e}function bn(e){return e&&"object"==typeof e&&(!(e=(tn||rn)(e))||typeof(e=e[Ve]&&f[le](e,Ve)?e[Ve]:e)===n&&Qe[le](e)===Ye)}function In(e){var n;if(e)return Ge?e[qe]():e&&e.getUTCFullYear?(n=function(e){return 1===(e=""+e)[D]?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}function wn(e,n,t){var r=e[D];try{for(var i=0;i<r&&(!(i in e)||-1!==n[le](t||e,e[i],i,e));i++);}catch(e){}}function Tn(e,n,t){if(e){if(e[He])return e[He](n,t);var r=e[D];t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(e){}}return-1}function Cn(e,n,t){if(e){if(e.map)return e.map(n,t);var r=e[D],i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n[le](i,e[a],e))}catch(e){}}return o}function Sn(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e[D],o=0;if(3<=arguments[D])r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++}return r}function kn(e){return e&&(Xe&&e[Oe]?e[Oe]():e[ae]?e[ae](/^\s+|(?=\s)\s+$/g,we):e)}var _n=!{toString:null}.propertyIsEnumerable("toString"),En=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Dn(e){var r=typeof e;if(r===n||r===t&&null!==e||v("objKeys called on non-object"),!_n&&Ke)return Ke(e);var i,o=[];for(i in e)e&&f[le](e,i)&&o[C](i);if(_n)for(var a=En[D],u=0;u<a;u++)e&&f[le](e,En[u])&&o[C](En[u]);return o}function Pn(e,n,t,r){if(je)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),je(e,n,i),!0}catch(e){}return!1}function Nn(e){return Be&&dn(e,(function(e,n){(gn(n)||sn(n))&&Be(n)})),Mn(e)}var Mn=Be||function(e){return e};function An(){var e=Date;return e.now?e.now():(new e).getTime()}function Rn(e){return mn(e)?e[I]:we}function Ln(e,n,t,r,i){var o=t;!e||(o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)}function Un(e,n,t){var r;return e?!(r=e[n])&&an(r)&&(r=on(t)?{}:t,e[n]=r):r=on(t)?{}:t,r}function qn(e,n){return an(e)?n:e}function Fn(e){return!!e}function Hn(e){throw Error(e)}function On(e,n){var t=null,r=null;return ln(e)?t=e:r=e,function(){var e=arguments;if(r=t?t():r)return r[n][oe](r,e)}}function zn(e,n,t){if(e&&n&&sn(e)&&sn(n))for(var r in n)!function(r){var i;hn(r)&&(ln(i=n[r])?t&&!t(r,!0,n,e)||(e[r]=On(n,r)):t&&!t(r,!1,n,e)||(cn(e,r)&&delete e[r],Pn(e,r,(function(){return n[r]}),(function(e){n[r]=e}))||(e[r]=i)))}(r)}function Vn(e,n,t,r,i){e&&n&&t&&(!1===i&&!on(e[n])||(e[n]=On(t,r)))}function jn(e,n,t,r){e&&n&&sn(e)&&gn(t)&&wn(t,(function(t){hn(t)&&Vn(e,t,n,t,r)}))}function Bn(e){return e&&c?a(c({},e)):e}function Kn(){var e=arguments,n=e[0]||{},t=e[D],r=!1,i=1;for(0<t&&xn(n)&&(r=n,n=e[i]||{},i++),sn(n)||(n={});i<t;i++){var o,a,u,c,s=e[i],l=gn(s),d=sn(s);for(o in s)(l&&o in s||d&&f[le](s,o))&&(a=s[o],u=void 0,r&&a&&((u=gn(a))||bn(a))&&(c=n[o],u?gn(c)||(c=[]):bn(c)||(c={}),a=Kn(r,c,a)),void 0!==a&&(n[o]=a))}return n}function Xn(e){var n={};return dn(e,(function(e,t){n[e]=t,n[t]=e})),Nn(n)}ze="undefined";var Wn="constructor",Gn="prototype",Jn="function",$n="_dynInstFuncs",Qn="_isDynProxy",Yn="_dynClass",Zn="_dynInstChk",et=Zn,nt="_dfOpts",tt="_unknown_",rt="__proto__",it="_dyn"+rt,ot=(Je="__dynProto$Gbl","_dynInstProto"),at="useBaseInst",ut="setInstFuncs",ct=Object,st=ct.getPrototypeOf,lt=ct.getOwnPropertyNames,ft=(ze=(xc=(xc=(xc=(xc=typeof globalThis!=ze?globalThis:xc)||typeof self==ze?xc:self)||typeof window==ze?xc:window)||typeof global==ze?xc:global)||{})[Je]||(ze[Je]={o:((xc={})[ut]=!0,xc[at]=!0,xc),n:1e3});function dt(e,n){return e&&ct[Gn].hasOwnProperty.call(e,n)}function pt(e){return e&&(e===ct[Gn]||e===Array[Gn])}function vt(e){return pt(e)||e===Function[Gn]}function gt(e){if(e){if(st)return st(e);var n=e[rt]||e[Gn]||(e[Wn]?e[Wn][Gn]:null),t=e[it]||n;dt(e,it)||(delete e[ot],t=e[it]=e[ot]||e[it],e[ot]=n)}return t}function mt(e,n){var t=[];if(lt)t=lt(e);else for(var r in e)"string"==typeof r&&dt(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function ht(e,n,t){return n!==Wn&&typeof e[n]===Jn&&(t||dt(e,n))}function yt(e){throw new TypeError("DynamicProto: "+e)}function xt(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function bt(e,n){return dt(e,Gn)?e.name||n||tt:((e||{})[Wn]||{}).name||n||tt}function It(e,n,t,r){dt(e,Gn)||yt("theClass is an invalid class definition.");var i,o,a,u,c,s,l=e[Gn],f=(function(e){if(!st)return 1;for(var t=[],r=gt(n);r&&!vt(r)&&!xt(t,r);){if(r===e)return 1;t.push(r),r=gt(r)}}(l)||yt("["+bt(e)+"] not in hierarchy of ["+bt(n)+"]"),null),d=((p=!!(e=(dt(l,Yn)?f=l[Yn]:(f="_dynCls$"+bt(e,"_")+"$"+ft.n,ft.n++,l[Yn]=f),It[nt]))[at])&&r&&void 0!==r[at]&&(p=!!r[at]),o={},mt(i=n,(function(e){!o[e]&&ht(i,e,!1)&&(o[e]=i[e])})),o),p=(t(n,function(e,n,t,r){function i(e,n,t){var i,o=n[t];return o[Qn]&&r&&!1!==(i=e[$n]||{})[et]&&(o=(i[n[Yn]]||{})[t]||o),function(){return o.apply(e,arguments)}}for(var o={},a=(mt(t,(function(e){o[e]=i(n,t,e)})),gt(e)),u=[];a&&!vt(a)&&!xt(u,a);)mt(a,(function(e){!o[e]&&ht(a,e,!st)&&(o[e]=i(n,a,e))})),u.push(a),a=gt(a);return o}(l,n,d,p)),!!st&&!!e[ut]);a=l,t=f,u=n,c=d,e=!1!==(p=p&&r?!!r[ut]:p),pt(a)||(l=u[$n]=u[$n]||{},s=l[t]=l[t]||{},!1!==l[et]&&(l[et]=!!e),mt(u,(function(e){var n,t,r;ht(u,e,!1)&&u[e]!==c[e]&&(s[e]=u[e],delete u[e],dt(a,e)&&(!a[e]||a[e][Qn])||(a[e]=(n=a,t=e,(r=function(){var e,i;return(function(e,n,t,r){var i=null;if(e&&dt(t,Yn)){var o=e[$n]||{};if((i=(o[t[Yn]]||{})[n])||yt("Missing ["+n+"] "+Jn),!i[Zn]&&!1!==o[et]){for(var a=!dt(e,n),u=gt(e),c=[];a&&u&&!vt(u)&&!xt(c,u);){var s=u[n];if(s){a=s===r;break}c.push(u),u=gt(u)}try{a&&(e[n]=i),i[Zn]=1}catch(e){o[et]=!1}}}return i}(this,t,n,r)||(typeof(i=(i=n[e=t])===r?gt(n)[e]:i)!==Jn&&yt("["+e+"] is not a "+Jn),i)).apply(this,arguments)})[Qn]=1,r)))})))}It[nt]=ft.o;var wt="window",Tt="JSON",Ct="msie",St="trident/",kt="XMLHttpRequest",_t=null,Et=null,Dt=null,Pt=null;function Nt(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[i])&&(r=n in t)}catch(e){}if(!r)try{r=!on((new e)[n])}catch(e){}}return r}function Mt(e){var n=p();return n&&n[e]?n[e]:e===wt&&At()?window:null}function At(){return typeof window===t&&window}function Rt(){return At()?window:Mt(wt)}function Lt(){return typeof document===t&&document}function Ut(){return Lt()?document:Mt("document")}function qt(){return!(typeof navigator!==t||!navigator)}function Ft(){return qt()?navigator:Mt("navigator")}function Ht(){return typeof history===t&&history}function Ot(e){return typeof location===t&&location?location:Mt("location")}function zt(){return Mt("performance")}function Vt(){return typeof JSON===t&&JSON||null!==Mt(Tt)}function jt(){return Vt()?JSON||Mt(Tt):null}function Bt(){var e=Ft();return!e||e[ee]===Et&&null!==_t||(e=((Et=e[ee])||we)[se](),_t=pn(e,Ct)||pn(e,St)),_t}function Kt(e){var n=((e=(e=void 0===e?null:e)?e:(n=Ft()||{})?(n[ee]||we)[se]():we)||we)[se]();return pn(n,Ct)?(e=Ut()||{},Math.max(parseInt(n[ne](Ct)[1]),e.documentMode||0)):pn(n,St)&&(e=parseInt(n[ne](St)[1]))?e+4:null}function Xt(e){var n=Object[i].toString[le](e),t=we;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[I]+"'":Vt()&&(t=jt().stringify(e)),n+t}function Wt(){return Pt=null===Pt?qt()&&!!Ft().sendBeacon:Pt}function Gt(e){var n=!1;try{n=!!Mt("fetch");var t=Mt("Request");n&&e&&t&&(n=Nt(t,"keepalive"))}catch(e){}return n}function Jt(){return Dt=null===Dt&&(Dt=typeof XDomainRequest!==r)&&$t()?Dt&&!Nt(Mt(kt),"withCredentials"):Dt}function $t(){var e=!1;try{e=!!Mt(kt)}catch(e){}return e}function Qt(e,n){if(e)for(var t=0;t<e[D];t++){var r=e[t];if(r[I]&&r[I]===n)return r}return{}}function Yt(e){var n=Ut();return n&&e?Qt(n.querySelectorAll("meta"),e).content:null}var Zt,er=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],nr=null;function tr(e){var n=nr;return(n=n||!0===e.disableDbgExt?n:nr||(e=Mt("Microsoft"),nr=e?e.ApplicationInsights:nr))?n.ChromeDbgExt:null}function rr(e){return e?'"'+e[ae](/\"/g,we)+'"':we}function ir(e,n){var t,i=typeof console!==r?console:Mt("console");i&&(t="log",ln(i[t=i[e]?e:t])&&i[t](n))}ar.dataType="MessageData";var or=ar;function ar(e,n,t,r){void 0===t&&(t=!1),this[V]=e,this[j]=(t?"AI: ":"AI (Internal): ")+e,t=we,Vt()&&(t=jt().stringify(r)),e=(n?" message:"+rr(n):we)+(r?" props:"+rr(t):we),this[j]+=e}function ur(e,n){return(e||{})[E]||new cr(n)}sr.__ieDyn=1;var cr=sr;function sr(e){this.identifier="DiagnosticLogger",this.queue=[];var n,t,r,i,o=0,a={};It(sr,this,(function(u){var c;function s(e,n){var i,c;r<=o||(c=!0,i="AITR_"+n[V],a[i]?c=!1:a[i]=!0,c&&(e<=t&&(u.queue[C](n),o++,l(1===e?"error":"warn",n)),o===r&&(c=new or(23,i="Internal events throttle limit per PageView reached for this app.",!1),u.queue[C](c),1===e?u[Re](i):u[Le](i))))}function l(n,t){var r=tr(e||{});r&&r[G]&&r[G](n,t)}n=qn((c=e||{}).loggingLevelConsole,0),t=qn(c.loggingLevelTelemetry,1),r=qn(c.maxMessageLimit,25),i=qn(c.enableDebug,qn(c[ue],!1)),u.consoleLoggingLevel=function(){return n},u.telemetryLoggingLevel=function(){return t},u.maxInternalMessageLimit=function(){return r},u[ue]=function(){return i},u.throwInternal=function(e,t,r,o,c){if(t=new or(t,r,c=void 0!==c&&c,o),i)throw Xt(t);r=1===e?Re:Le,on(t[j])?l("throw"+(1===e?"Critical":"Warning"),t):(c?(o=+t[V],!a[o]&&e<=n&&(u[r](t[j]),a[o]=!0)):e<=n&&u[r](t[j]),s(e,t))},u[Le]=function(e){ir("warn",e),l("warning",e)},u[Re]=function(e){ir("error",e),l("error",e)},u.resetInternalMessageCount=function(){o=0,a={}},u[ce]=s}))}function lr(e){return e||new cr}function fr(e,n,t,r,i,o){void 0===o&&(o=!1),lr(e).throwInternal(n,t,r,i,o)}function dr(e,n){lr(e)[Le](n)}var pr="ParentContextKey",vr="ChildrenContextKey",gr=(mr.ParentContextKey="parent",mr.ChildrenContextKey="childEvts",mr);function mr(e,n,t){var r,i=this,o=!1;i.start=An(),i[I]=e,i[B]=t,i[ve]=function(){return!1},ln(n)&&(o=Pn(i,"payload",(function(){return!r&&ln(n)&&(r=n(),n=null),r}))),i[ge]=function(e){return e?(e===mr[pr]||e===mr[vr]?i:i.ctx||{})[e]:null},i[me]=function(e,n){e&&(e===mr[pr]?(i[e]||(i[ve]=function(){return!0}),i[e]=n):e===mr[vr]?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i[he]=function(){var e=0,t=i[ge](mr[vr]);if(gn(t))for(var r=0;r<t[D];r++){var a=t[r];a&&(e+=a[P])}i[P]=An()-i.start,i.exTime=i[P]-e,i[he]=function(){},!o&&ln(n)&&(i.payload=n())}}yr.__ieDyn=1;var hr=yr;function yr(e){this.ctx={},It(yr,this,(function(n){n.create=function(e,n,t){return new gr(e,n,t)},n.fire=function(n){n&&(n[he](),e&&ln(e[Ae])&&e[Ae](n))},n[me]=function(e,t){e&&((n.ctx=n.ctx||{})[e]=t)},n[ge]=function(e){return(n.ctx||{})[e]}}))}var xr="CoreUtils.doPerf";function br(e,n,t,r,i){if(e&&(e=e[Ue]?e[Ue]():e)){var o,a=void 0,u=e[ge](xr);try{if(a=e.create(n(),r,i))return u&&a[me]&&(a[me](gr[pr],u),u[ge]&&u[me]&&((o=u[ge](gr[vr]))||(o=[],u[me](gr[vr],o)),o[C](a))),e[me](xr,a),t(a)}catch(e){a&&a[me]&&a[me]("exception",e)}finally{a&&e.fire(a),e[me](xr,u)}}return t()}var Ir=4294967296,wr=4294967295,Tr=!1,Cr=123456789,Sr=987654321;function kr(e){e<0&&(e>>>=0),Cr=123456789+e&wr,Sr=987654321-e&wr,Tr=!0}function _r(){try{var e=2147483647&An();kr((Math.random()*Ir^e)+e)}catch(e){}}function Er(e){return 0<e?Math.floor(Dr()/wr*(e+1))>>>0:0}function Dr(e){var n=0,t=Mt("crypto")||Mt("msCrypto");return 0===(n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&wr:n)&&Bt()&&(Tr||_r(),n=Pr()&wr),0===n&&(n=Math.floor(Ir*Math.random()|0)),e||(n>>>=0),n}function Pr(e){var n=((Sr=36969*(65535&Sr)+(Sr>>16)&wr)<<16)+(65535&(Cr=18e3*(65535&Cr)+(Cr>>16)&wr))>>>0&wr|0;return e||(n>>>=0),n}function Nr(e){void 0===e&&(e=22);for(var n=Dr()>>>0,t=0,r=we;r[D]<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Dr()<<2&4294967295|3&n)>>>0,t=0);return r}var Mr=l,Ar="."+Nr(6),Rr=0;function Lr(e){return 1===e[ie]||9===e[ie]||!+e[ie]}function Ur(e,n){return fn(e+Rr+++((n=void 0!==n&&n)?".2.8.15":we)+Ar)}function qr(e){var n={id:Ur("_aiData-"+(e||we)+".2.8.15"),accept:Lr,get:function(e,t,r,i){var o=e[n.id];return o?o[fn(t)]:(i&&((o=function(e,n){var t=n[e.id];if(!t){t={};try{Lr(n)&&!function(e,n,t){if(Mr)try{return Mr(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(e){}}(n,e.id,t)&&(n[e.id]=t)}catch(e){}}return t}(n,e))[fn(t)]=r),r)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(e){}}};return n}var Fr="toGMTString",Hr="toUTCString",Or="cookie",zr="expires",Vr="enabled",jr="isCookieUseDisabled",Br="disableCookiesUsage",Kr="_ckMgr",Xr=null,Wr=null,Gr=null,Jr=Ut(),$r={},Qr={};function Yr(e,n){var t=ti[Kr]||Qr[Kr];return t||(t=ti[Kr]=ti(e,n),Qr[Kr]=t),t}function Zr(e){return!e||e.isEnabled()}function ei(e,n){return n&&e&&gn(e.ignoreCookies)&&-1!==e.ignoreCookies[Y](n)}function ni(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n[Q][Kr]||ti(n)),t||Yr(n,(e||{})[E])}function ti(e,n){Ln(r=(e=e||Qr)[Q]=e[Q]||{},"domain",e.cookieDomain,un,an),Ln(r,"path",e.cookiePath||"/",null,an),an(r[Vr])&&(t=void 0,on(e[jr])||(t=!e[jr]),on(e[Br])||(t=!e[Br]),r[Vr]=t);var t,r,i=r,o=i.path||"/",a=i.domain,u=!1!==i[Vr],c=((e={isEnabled:function(){var e=u&&ri(n),t=Qr[Kr];return e&&t&&c!==t?Zr(t):e}})[te]=function(e){u=!1!==e},e.set=function(e,n,t,r,u){var s,l,f,d=!1;return!Zr(c)||(l=i,(f=e)&&l&&gn(l.blockedCookies)&&-1!==l.blockedCookies[Y](f)||ei(l,f))||(l={},-1!==(s=(f=kn(n||we))[Y](";"))&&(f=kn(n[Z](0,s)),l=ii(n[Z](s+1))),Ln(l,"domain",r||a,Fn,on),an(t)||(s=Bt(),on(l[zr])&&0<(n=An()+1e3*t)&&((r=new Date).setTime(n),Ln(l,zr,oi(r,s?Fr:Hr)||oi(r,s?Fr:Hr)||we,Fn)),s||Ln(l,"max-age",we+t,null,on)),(n=Ot())&&"https:"===n.protocol&&(Ln(l,"secure",null,null,on),(Wr=null===Wr?!ci((Ft()||{})[ee]):Wr)&&Ln(l,"SameSite","None",null,on)),Ln(l,"path",u||o,null,on),(i.setCookie||ui)(e,ai(f,l)),d=!0),d},e.get=function(e){return Zr(c)&&!ei(i,e)?(i.getCookie||function(e){var n,t=we;return Jr&&(n=Jr[Or]||we,Gr!==n&&($r=ii(n),Gr=n),t=kn($r[e]||we)),t})(e):""},e.del=function(e,n){return!!Zr(c)&&c.purge(e,n)},e.purge=function(e,t){var r,o=!1;return ri(n)&&((r={}).path=t||"/",r[zr]="Thu, 01 Jan 1970 00:00:01 GMT",t=r,Bt()||(t["max-age"]="0"),(i.delCookie||ui)(e,ai(we,t)),o=!0),o},e);return c[Kr]=c}function ri(e){if(null===Xr){Xr=!1;try{Xr=void 0!==(Jr||{})[Or]}catch(n){fr(e,2,68,"Cannot access document.cookie - "+Rn(n),{exception:Xt(n)})}}return Xr}function ii(e){var n={};return e&&e[D]&&wn(kn(e)[ne](";"),(function(e){var t;(e=kn(e||we))&&(-1===(t=e[Y]("="))?n[e]=null:n[kn(e[Z](0,t))]=kn(e[Z](t+1)))})),n}function oi(e,n){return ln(e[n])?e[n]():null}function ai(e,n){var t=e||we;return dn(n,(function(e,n){t+="; "+e+(an(n)?we:"="+n)})),t}function ui(e,n){Jr&&(Jr[Or]=e+"="+n)}function ci(e){return!(!hn(e)||!pn(e,"CPU iPhone OS 12")&&!pn(e,"iPad; CPU OS 12")&&!(pn(e,"Macintosh; Intel Mac OS X 10_14")&&pn(e,"Version/")&&pn(e,"Safari"))&&(!pn(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,n){var t=!1;if(!e||(t=e===n))return t;if(We)return e[Fe](n);var r=e,i=n;t=!1,e=i[D],n=r?r[D]:0;if(e&&n&&e<=n&&!(t=r===i)){for(var o=n-1,a=e-1;0<=a;a--){if(r[o]!=i[a])return;o--}t=!0}return t}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!pn(e,"Chrome/5")&&!pn(e,"Chrome/6")&&(!pn(e,"UnrealEngine")||pn(e,"Chrome"))&&!pn(e,"UCBrowser/12")&&!pn(e,"UCBrowser/11"))}var si="attachEvent",li="addEventListener",fi="detachEvent",di="removeEventListener",pi="events",vi="visibilitychange",gi="pagehide",mi="beforeunload",hi=Ur("aiEvtPageHide"),yi=(Ur("aiEvtPageShow"),/\.[\.]+/g),xi=/[\.]+$/,bi=1,Ii=qr("events"),wi=/^([^.]*)(?:\.(.+)|)/;function Ti(e){return e&&e[ae]?e[ae](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,we):e}function Ci(e,n){n&&(t=we,gn(n)?(t=we,wn(n,(function(e){(e=Ti(e))&&("."!==e[0]&&(e="."+e),t+=e)}))):t=Ti(n),t&&("."!==t[0]&&(t="."+t),e=(e||we)+t));var t;n=wi.exec(e||we)||[];return(e={})[fe]=n[1],e.ns=(n[2]||we).replace(yi,".").replace(xi,we)[ne](".").sort().join("."),e}function Si(e,n,t){return(e=Ii.get(e,pi,{},t=void 0===t||t))[n]||(e[n]=[])}function ki(e,n,t,r){e&&n&&n[fe]&&(e[di]?e[di](n[fe],t,r):e[fi]&&e[fi]("on"+n[fe],t))}function _i(e,n,t,r){for(var i=n[D];i--;){var o=n[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(ki(e,o.evtName,o[de],o.capture),n[O](i,1))}}function Ei(e,n){return n?Ci("xx",gn(n)?[e].concat(n):[e,n]).ns[ne]("."):e}function Di(e,n,t,r,i){void 0===i&&(i=!1);var o,a,u=!1;if(e)try{var c,s=Ci(n,r),l=s,f=t,d=i,p=!1;(a=e)&&l&&l[fe]&&f&&(a[li]?(a[li](l[fe],f,d),p=!0):a[si]&&(a[si]("on"+l[fe],f),p=!0)),(u=p)&&Ii.accept(e)&&((o={guid:bi++,evtName:s})[de]=t,o.capture=i,c=o,Si(e,s.type)[C](c))}catch(e){}return u}function Pi(e,n,t,r,i){if(void 0===i&&(i=!1),e)try{var o=Ci(n,r),a=!1,u=e,c=function(e){return!((!o.ns||t)&&e[de]!==t)&&(a=!0)};(s=o)[fe]?_i(u,Si(u,s[fe]),s,c):(dn(l=Ii.get(u,pi,{}),(function(e,n){_i(u,n,s,c)})),0===Dn(l)[D]&&Ii.kill(u,pi)),a||ki(e,o,t,i)}catch(e){}var s,l}function Ni(e,n,t){var r,i=!1;return(r=((r=Rt())&&(i=Di(r,e,n,t),i=Di(r.body,e,n,t)||i),Ut()))&&Di(r,e,n,t)||i}function Mi(e,n,t){var r;(r=((r=Rt())&&(Pi(r,e,n,t),Pi(r.body,e,n,t)),Ut()))&&Pi(r,e,n,t)}function Ai(e,n,t,r){var i=!1;return n&&e&&0<e[D]&&wn(e,(function(e){!e||t&&-1!==Tn(t,e)||(i=Ni(e,n,r)||i)})),i}function Ri(e,n,t){e&&gn(e)&&wn(e,(function(e){e&&Mi(e,n,t)}))}function Li(e,n,t){var r=Ei(hi,t),i=Ai([gi],e,n,r);return!(i=(!n||-1===Tn(n,vi))&&Ai([vi],(function(n){var t=Ut();e&&t&&"hidden"===t.visibilityState&&e(n)}),n,r)||i)&&n?Li(e,null,t):i}var Ui,qi=null;function Fi(){var e=Hi();return e[Z](0,8)+"-"+e[Z](8,12)+"-"+e[Z](12,16)+"-"+e[Z](16,20)+"-"+e[Z](20)}function Hi(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=we,r=0;r<4;r++)t+=n[15&(e=Dr())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Dr())|0];return t[re](0,8)+t[re](9,4)+"4"+t[re](13,3)+i+t[re](16,3)+t[re](19,12)}var Oi={_canUseCookies:void 0,isTypeof:function(e,n){return typeof e===n},isUndefined:on,isNullOrUndefined:an,hasOwnProperty:cn,isFunction:ln,isObject:sn,isDate:vn,isArray:gn,isError:mn,isString:hn,isNumber:yn,isBoolean:xn,toISOString:In,arrForEach:wn,arrIndexOf:Tn,arrMap:Cn,arrReduce:Sn,strTrim:kn,objCreate:g,objKeys:Dn,objDefineAccessors:Pn,addEventHandler:Ni,dateNow:An,isIE:Bt,disableCookies:Vi,newGuid:Fi,perfNow:function(){var e=zt();return e&&e.now?e.now():An()},newId:Nr,randomValue:Er,random32:Dr,mwcRandomSeed:function(e){e?kr(e):_r()},mwcRandom32:Pr,generateW3CId:Hi};function zi(e,n){return e=Yr(e,n),n=Oi._canUseCookies,null===qi&&(qi=[],Ui=n,Pn(Oi,"_canUseCookies",(function(){return Ui}),(function(e){Ui=e,wn(qi,(function(n){n[te](e)}))}))),-1===Tn(qi,e)&&qi[C](e),xn(n)&&e[te](n),xn(Ui)&&e[te](Ui),e}function Vi(){zi()[te](!1)}var ji=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,Bi="00",Ki="00000000000000000000000000000000",Xi="0000000000000000";function Wi(e,n,t){return e&&e[D]===n&&e!==t&&e.match(/^[\da-f]*$/)}function Gi(e,n,t){return Wi(e,n)?e:t}function Ji(e,n,t,r){var i={};return i[Ie]=Wi(r,2,"ff")?r:Bi,i[ye]=Qi(e)?e:Hi(),i.spanId=Yi(n)?n:Hi()[re](0,16),i.traceFlags=0<=t&&t<=255?t:1,i}function $i(e){var n;return e?!(e=gn(e)?e[0]||"":e)||!hn(e)||8192<e[D]?null:(e=ji.exec(kn(e)))&&"ff"!==e[1]&&e[2]!==Ki&&e[3]!==Xi?((n={})[Ie]=e[1],n[ye]=e[2],n[xe]=e[3],n[be]=parseInt(e[4],16),n):null:null}function Qi(e){return Wi(e,32,Ki)}function Yi(e){return Wi(e,16,Xi)}function Zi(e){var n,t;return e?(Wi(n=function(e){for(var n=(e=isNaN(e)||e<0||255<e?1:e).toString(16);n[D]<2;)n="0"+n;return n}(e[be]),2)||(n="01"),t=e[Ie]||Bi,"".concat(t="00"!==t&&"ff"!==t?Bi:t,"-").concat(Gi(e.traceId,32,Ki),"-").concat(Gi(e.spanId,16,Xi),"-").concat(n)):""}var eo=qr("plugin");function no(e){return eo.get(e,"state",{},!0)}function to(e,n){for(var t,r=[],i=null,o=e[W]();o;){var a=o[q]();a&&(i&&ln(i[J])&&ln(a[Ee])&&i[J](a),(ln(a[S])?a[S]():(t=no(a))[S])||r[C](a),i=a,o=o[W]())}wn(r,(function(r){var i=e[Ce]();r[b](e.getCfg(),i,n,e[W]()),t=no(r),r[Ce]||t[Ce]||(t[Ce]=i),t[S]=!0,delete t[z]}))}function ro(e){return e.sort((function(e,n){var t,r=0;return n?(t=ln(n[Ee]),ln(e[Ee])?r=t?e[De]-n[De]:1:t&&(r=-1)):r=e?1:-1,r}))}var io="TelemetryPluginChain",oo="_hasRun",ao="_getTelCtx",uo=0;function co(e,n,t,r){var i=null,o=[],a=(null!==r&&(i=r?function(e,n,t){for(;e;){if(e[q]()===t)return e;e=e[W]()}return po([t],n[k]||{},n)}(e,t,r):e),{_next:function(){var e,n=i;return i=n?n[W]():null,n||(e=o)&&0<e[D]&&(wn(e,(function(e){try{e.func[le](e.self,e.args)}catch(e){fr(t[E],2,73,"Unexpected Exception during onComplete - "+Xt(e))}})),o=[]),n},ctx:{core:function(){return t},diagLog:function(){return ur(t,n)},getCfg:function(){return n},getExtCfg:u,getConfig:function(e,t,r){var i;return void 0===r&&(r=!1),(e=u(e,null))&&!an(e[t])?i=e[t]:n&&!an(n[t])&&(i=n[t]),an(i)?r:i},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(;n=a._next();){var n=n[q]();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&o[C]({func:e,self:on(n)?a.ctx:n,args:t})}}});function u(e,t,r){var i,o,a;return void 0===t&&(t={}),void 0===r&&(r=0),(i=n&&(o=n[_e])&&e?o[e]:i)?sn(t)&&0!==r&&(a=Kn(!0,t,i),n&&2===r&&dn(t,(function(e){var t;an(a[e])&&!an(t=n[e])&&(a[e]=t)})),i=a):i=t,i}return a}function so(e,n,t,r){var i=co(e,n,t,r),o=i.ctx;return o[N]=function(e){var n=i._next();return n&&n[Ee](e,o),!n},o[$]=function(e,r){return so((e=gn(e=void 0===e?null:e)?po(e,n,t,r):e)||o[W](),n,t,r)},o}function lo(e,n,t){var r=n[k]||{},i=co(e,r,n,t),o=i.ctx;return o[N]=function(e){var n=i._next();return n&&n.unload(o,e),!n},o[$]=function(e,t){return lo((e=gn(e=void 0===e?null:e)?po(e,r,n,t):e)||o[W](),n,t)},o}function fo(e,n,t){var r=n[k]||{},i=co(e,r,n,t).ctx;return i[N]=function(e){return i.iterate((function(n){ln(n[X])&&n[X](i,e)}))},i[$]=function(e,t){return fo((e=gn(e=void 0===e?null:e)?po(e,r,n,t):e)||i[W](),n,t)},i}function po(e,n,t,r){var i,o=null,a=!r;return gn(e)&&0<e[D]&&(i=null,wn(e,(function(e){(a=!a&&r===e||a)&&e&&ln(e[Ee])&&(e=function(e,n,t){var r=null,i=ln(e[Ee]),o=ln(e[J]),a=e?e[T]+"-"+e[De]+"-"+uo++:"Unknown-0-"+uo++,u={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:function(a,s){var l;c(s=s||(l=(l=e&&ln(e[ao])?e[ao]():l)||so(u,n,t)),(function(n){if(!e||!i)return!1;var t=no(e);return!t[z]&&!t[ke]&&(o&&e[J](r),e[Ee](a,n),!0)}),"processTelemetry",(function(){return{item:a}}),!a.sync)||s[N](a)},unload:function(n,t){c(n,(function(){var r,i,o=!1;return e&&(r=no(e),i=e[Ce]||r[Ce],!e||i&&i!==n.core()||r[z]||(r[Ce]=null,r[z]=!0,r[S]=!1,e[z]&&!0===e[z](n,t)&&(o=!0))),o}),"unload",(function(){}),t[B])||n[N](t)},update:function(n,t){c(n,(function(){var r,i,o=!1;return e&&(r=no(e),i=e[Ce]||r[Ce],!e||i&&i!==n.core()||r[z]||e[X]&&!0===e[X](n,t)&&(o=!0)),o}),"update",(function(){}),!1)||n[N](t)},_id:a,_setNext:function(e){r=e}};function c(n,t,i,o,u){var c=!1,s=e?e[T]:io,l=(l=n[oo])||(n[oo]={});return n.setNext(r),e&&br(n[Ce](),(function(){return s+":"+i}),(function(){l[a]=!0;try{var e=r?r._id:we;e&&(l[e]=!1),c=t(n)}catch(t){(e=!r||l[r._id])&&(c=!0),r&&e||fr(n[G](),1,73,"Plugin ["+s+"] failed during "+i+" - "+Xt(t)+", run flags: "+Xt(l))}}),o,u),c}return Mn(u)}(e,n,t),o=o||e,i&&i._setNext(e),i=e)}))),r&&!o?po([r],n,t):o}var vo=500;function go(e,n,t){n&&gn(n)&&0<n[D]&&(wn(n=n.sort((function(e,n){return e[De]-n[De]})),(function(e){e[De]<vo&&Hn("Channel has invalid priority - "+e[T])})),e[C]({queue:Mn(n),chain:po(n,t[k],t)}))}function mo(){var e=[];return{add:function(n){n&&e[C](n)},run:function(n,t){wn(e,(function(e){try{e(n,t)}catch(e){fr(n[G](),2,73,"Unexpected error calling unload handler - "+Xt(e))}})),e=[]}}}var ho="getPlugin";yo.__ieDyn=1,Je=yo;function yo(){var e,n,t,r,i,o=this;function a(e){var r;return(e=e=void 0===e?null:e)||(r=n||so(null,{},o[Ce]),e=t&&t[ho]?r[$](null,t[ho]):r[$](null,t)),e}function u(e,r,i){e&&Ln(e,_e,[],null,an),!i&&r&&(i=r[M]()[W]());var a=t;t&&t[ho]&&(a=t[ho]()),o[Ce]=r,n=so(i,e,r,a)}function c(){e=!1,o[Ce]=null,t=n=null,i=[],r=mo()}c(),It(yo,o,(function(n){n[b]=function(n,t,r,i){u(n,t,i),e=!0},n[z]=function(e,o){var a,u,s,l,f=n[Ce];if(f&&(!e||f===e[Ce]()))return u=!1,s=e||lo(null,f,t&&t[ho]?t[ho]():t),l=o||((e={reason:0})[B]=!1,e),n[K]&&!0===n[K](s,l,d)?a=!0:d(),a;function d(){var e;u||(u=!0,r.run(s,o),e=i,i=[],wn(e,(function(e){e.rm()})),!0===a&&s[N](l),c())}},n[X]=function(e,r){var i,o,a,c=n[Ce];if(c&&(!e||c===e[Ce]()))return o=!1,a=e||fo(null,c,t&&t[ho]?t[ho]():t),n._doUpdate&&!0===n._doUpdate(a,r||{reason:0},s)?i=!0:s(),i;function s(){o||(o=!0,u(a.getCfg(),a.core(),a[W]()))}},n._addHook=function(e){e&&(gn(e)?i=i.concat(e):i[C](e))},Vn(n,"_addUnloadCb",(function(){return r}),"add")})),o[G]=function(e){return a(e)[G]()},o[S]=function(){return e},o.setInitialized=function(n){e=n},o[J]=function(e){t=e},o[N]=function(e,n){n?n[N](e):t&&ln(t[Ee])&&t[Ee](e,null)},o._getTelCtx=a}y(Io,xo=Je),Io.__ieDyn=1;var xo,bo=Io;function Io(){var e,n,t=xo.call(this)||this;function r(){e=0,n=[]}return t.identifier="TelemetryInitializerPlugin",t.priority=199,r(),It(Io,t,(function(t,i){t.addTelemetryInitializer=function(t){var r={id:e++,fn:t};return n[C](r),{remove:function(){wn(n,(function(e,t){if(e.id===r.id)return n[O](t,1),-1}))}}},t[Ee]=function(e,r){for(var i=!1,o=n[D],a=0;a<o;++a){var u=n[a];if(u)try{if(!1===u.fn[oe](null,[e])){i=!0;break}}catch(e){fr(r[G](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Rn(e),{exception:Xt(e)},!0)}}i||t[N](e,r)},t[K]=function(){r()}})),t}var wo="Plugins must provide initialize method",To="_notificationManager",Co="SDK is still unloading...",So={loggingLevelConsole:1};function ko(e,n){return new hr(n)}function _o(e,n){var t=!1;return wn(n,(function(n){if(n===e)return t=!0,-1})),t}function Eo(){var e,n,t,r,i,o,a,u,c,s,l,f,d,p,v,m,h,y,K,X,W=0,G=!1;It(Eo,this,(function(J){function Q(n){return W||G||(n||J[E]&&0<J[E].queue[D])&&(n=qn(e.diagnosticLogInterval),W=setInterval((function(){clearInterval(W),W=0,ae()}),n=n&&0<n?n:1e4)),W}function Y(){e=Kn(!(n=!1),{},So),J[k]=e,J[E]=new cr(e),J[H]=[],v=new bo,t=[],p=!(c=[]),h=Ur("AIBaseCore",!(m=d=f=l=s=u=a=o=i=r=null)),y=mo(),X=null}function Z(){var n=so(re(),e,J);return n[U](Q),n}function ee(n){t=J[E],r=[],i={},wn(y=c,(function(e){(an(e)||an(e[b]))&&Hn(wo);var n=e[De],o=e[T];e&&n&&(an(i[n])?i[n]=o:dr(t,"Two extensions have same priority #"+n+" - "+i[n]+", "+o)),(!n||n<500)&&r[C](e)})),(y={all:y})[Ce]=r,s=y[Ce],u=null;var t,r,i,o,a,p,v,g,m,h,y=y.all;function x(){return so(null,m[k],m,null)}function I(e,n,t,r){var i=e?e[D]+1:1;function o(){0==--i&&(r&&r(),r=null)}0<i&&wn(e,(function(e){e&&0<e.queue[D]?(e=e.chain,(e=n[$](e))[U](o),t(e)):i--})),o()}d=Mn((v=y,o=J,p=[],f&&wn(f,(function(e){return go(p,e,o)})),v&&(a=[],wn(v,(function(e){e[De]>vo&&a[C](e)})),go(p,a,o)),p)),l?(-1!==(v=Tn(y,l))&&y[O](v,1),-1!==(v=Tn(s,l))&&s[O](v,1),l._setQueue(d)):(g=d,m=J,h=!1,l={identifier:"ChannelControllerPlugin",priority:vo,initialize:function(e,n,t,r){h=!0,wn(g,(function(r){r&&0<r.queue[D]&&to(so(r.chain,e,n),t)}))},isInitialized:function(){return h},processTelemetry:function(e,n){I(g,n||x(),(function(n){n[N](e)}),(function(){n[N](e)}))},update:function(e,n){var t=n||{reason:0};return I(g,e,(function(e){e[N](t)}),(function(){e[N](t)})),!0},pause:function(){I(g,x(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){I(g,x(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(e,n){var t=n||{reason:0,isAsync:!1};return I(g,e,(function(e){e[N](t)}),(function(){e[N](t),h=!1})),!0},getChannel:function(e){var n=null;return g&&0<g[D]&&wn(g,(function(t){if(t&&0<t.queue[D]&&(wn(t.queue,(function(t){if(t[T]===e)return n=t,-1})),n))return-1})),n},flush:function(e,n,t,r){var i=1,o=!1,a=null;function u(){i--,o&&0===i&&(a&&(clearTimeout(a),a=null),n&&n(o),n=null)}return r=r||5e3,I(g,x(),(function(n){n.iterate((function(n){var o;n[F]&&(i++,o=!1,n[F](e,(function(){o=!0,u()}),t)||o||(e&&null==a?a=setTimeout((function(){a=null,u()}),r):u()))}))}),(function(){o=!0,u()})),!0},_setQueue:function(e){g=e}}),y[C](l),s[C](l),J[H]=ro(y),l[b](e,J,y),to(Z(),y),J[H]=Mn(ro(s||[])).slice(),n&&(v=n,(y=fo(re(),J))[U](Q),J._updateHook&&!0===J._updateHook(y,v)||y[N](v))}function ne(e){var n,t=null,r=null;return wn(J[H],(function(n){if(n[T]===e&&n!==l&&n!==v)return r=n,-1})),(r=!r&&l?l.getChannel(e):r)&&((n={plugin:r})[te]=function(e){no(r)[ke]=!e},n.isEnabled=function(){var e=no(r);return!e[z]&&!e[ke]},n.remove=function(e,n){var t,i=[r];(t={reason:1})[B]=e=void 0===e||e,ie(i,t,(function(e){e&&ee({reason:32,removed:i}),n&&n(e)}))},t=n),t}function re(){var n;return u||(-1===Tn(n=(s||[]).slice(),v)&&n[C](v),u=po(ro(n),e,J)),u}function ie(n,t,r){var i;n&&0<n[D]?((i=lo(po(n,e,J),J))[U]((function(){var e=!1,t=[],i=(wn(c,(function(r,i){_o(r,n)?e=!0:t[C](r)})),c=t,[]);f&&(wn(f,(function(t,r){var o=[];wn(t,(function(t){_o(t,n)?e=!0:o[C](t)})),i[C](o)})),f=i),r&&r(e),Q()})),i[N](t)):r(!1)}function ae(){var n;J[E]&&J[E].queue&&(n=J[E].queue.slice(0),J[E].queue[D]=0,wn(n,(function(n){(t={})[I]=m||"InternalMessageId: "+n[V],t.iKey=qn(e[_]),t.time=In(new Date),t.baseType=or.dataType,t.baseData={message:n[j]};var t;n=t;J.track(n)})))}function ue(e,n,t,r){return l?l[F](e,n,t||6,r):(n&&n(!1),!0)}function ce(e){var n=J[E];n?(fr(n,2,73,e),Q()):Hn(e)}Y(),J[S]=function(){return n},J[b]=function(t,i,a,u){p&&Hn(Co),J[S]()&&Hn("Core should not be initialized more than once"),e=t||{},J[k]=e,an(t[_])&&Hn("Please provide instrumentation key"),r=u,J[To]=u,!0===(t=qn(e.disableDbgExt))&&K&&(r[R](K),K=null),r&&!K&&!0!==t&&(K=function(e){if(!Zt){Zt={};for(var n=0;n<er[D];n++)Zt[er[n]]=function(e,n){return function(){var t=tr(n);t&&(t=t.listener)&&t[e]&&t[e][oe](t,arguments)}}(er[n],e)}return Zt}(e),r[A](K)),!(u=qn(e.enablePerfMgr))&&o&&(o=null),u&&Un(e,Se,ko),Un(e,_e,{}).NotificationManager=r,a&&(J[E]=a),t=Un(e,"extensions",[]),(c=[])[C].apply(c,x(x([],i),t)),f=Un(e,Te,[]),ee(null),d&&0!==d[D]||Hn("No "+Te+" available"),n=!0,J.releaseQueue()},J.getTransmissionControls=function(){var e=[];return d&&wn(d,(function(n){e[C](n.queue)})),Mn(e)},J.track=function(n){n.iKey=n.iKey||e[_],n[P]=n[P]||In(new Date),n.ver=n.ver||"4.0",!p&&J[S]()?Z()[N](n):t[C](n)},J[M]=Z,J[w]=function(){var e;return r||(r=g(((e={})[A]=function(e){},e[R]=function(e){},e[Pe]=function(e){},e[Ne]=function(e,n){},e[Me]=function(e,n){},e)),J[To]=r),r},J[A]=function(e){r&&r[A](e)},J[R]=function(e){r&&r[R](e)},J.getCookieMgr=function(){return a=a||ti(e,J[E])},J.setCookieMgr=function(e){a=e},J[Ue]=function(){var n;return i||o||!qn(e.enablePerfMgr)||ln(n=qn(e[Se]))&&(o=n(J,J[w]())),i||o||null},J.setPerfMgr=function(e){i=e},J.eventCnt=function(){return t[D]},J.releaseQueue=function(){var e;n&&0<t[D]&&(e=t,t=[],wn(e,(function(e){Z()[N](e)})))},J.pollInternalLogs=function(e){return m=e||null,G=!1,W&&(clearInterval(W),W=null),Q(!0)},J[L]=function(){G=!0,W&&(clearInterval(W),W=0,ae())},jn(J,(function(){return v}),["addTelemetryInitializer"]),J.unload=function(e,t,r){n||Hn("SDK is not initialized"),p&&Hn(Co),(i={reason:50})[B]=e=void 0===e||e,i.flushComplete=!1;var i,o=i,a=lo(re(),J);function u(e){o.flushComplete=e,p=!0,y.run(a,o),J[L](),a[N](o)}a[U]((function(){Y(),t&&t(o)}),J),ae(),ue(e,u,6,r)||u(!1)},J[q]=ne,J.addPlugin=function(e,n,t,r){if(!e)return r&&r(!1),void ce(wo);var i=ne(e[T]);if(i&&!n)return r&&r(!1),void ce("Plugin ["+e[T]+"] is already loaded!");var o,a={reason:16};function u(){c[C](e),a.added=[e],ee(a),r&&r(!0)}i?ie(o=[i.plugin],{reason:2,isAsync:!!t},(function(e){e?(a.removed=o,a.reason|=32,u()):r&&r(!1)})):u()},J.evtNamespace=function(){return h},J[F]=ue,J.getTraceCtx=function(e){var n;return X||(n={},X={getName:function(){return n[I]},setName:function(e){n[I]=e},getTraceId:function(){return n[ye]},setTraceId:function(e){Qi(e)&&(n[ye]=e)},getSpanId:function(){return n[xe]},setSpanId:function(e){Yi(e)&&(n[xe]=e)},getTraceFlags:function(){return n[be]},setTraceFlags:function(e){n[be]=e}}),X},J.setTraceCtx=function(e){X=e||null},Vn(J,"addUnloadCb",(function(){return y}),"add")}))}function Do(e,n,t,r){wn(e,(function(e){if(e&&e[n])if(t)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}Eo.__ieDyn=1,ze=Eo,No.__ieDyn=1;var Po=No;function No(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;It(No,this,(function(e){e[A]=function(n){e.listeners[C](n)},e[R]=function(n){for(var t=Tn(e[pe],n);-1<t;)e.listeners[O](t,1),t=Tn(e[pe],n)},e[Pe]=function(n){Do(e[pe],Pe,!0,(function(e){e[Pe](n)}))},e[Ne]=function(n,t){Do(e[pe],Ne,!0,(function(e){e[Ne](n,t)}))},e[Me]=function(n,t){Do(e[pe],Me,t,(function(e){e[Me](n,t)}))},e[Ae]=function(t){!t||!n&&t[ve]()||Do(e[pe],Ae,!1,(function(e){t[B]?setTimeout((function(){return e[Ae](t)}),0):e[Ae](t)}))}}))}y(Ro,Mo=ze),Ro.__ieDyn=1;var Mo,Ao=Ro;function Ro(){var e=Mo.call(this)||this;return It(Ro,e,(function(e,n){function t(n){var t=e[w]();t&&t[Ne]([n],2)}e[b]=function(e,t,r,i){n[b](e,t,r||new cr(e),i||new Po(e))},e.track=function(r){br(e[Ue](),(function(){return"AppInsightsCore:track"}),(function(){var e;null===r&&(t(r),Hn("Invalid telemetry item")),an((e=r)[I])&&(t(e),Hn("telemetry name required")),n.track(r)}),(function(){return{item:r}}),!r.sync)}})),e}l=(xc="Failed")+"MonitorAjax",ze="Track";var Lo="Event",Uo="AuthContext",qo="Exception",Fo="Local",Ho="Session",Oo="Storage",zo="Browser",Vo="Cannot",jo="Buffer",Bo="InstrumentationKey",Ko=Xn({CRITICAL:1,WARNING:2}),Xo=(Xn(((bc={})[zo+"DoesNotSupport"+Fo+Oo]=0,bc[zo+Vo+"Read"+Fo+Oo]=1,bc[zo+Vo+"Read"+Ho+Oo]=2,bc[zo+Vo+"Write"+Fo+Oo]=3,bc[zo+Vo+"Write"+Ho+Oo]=4,bc[zo+xc+"RemovalFrom"+Fo+Oo]=5,bc[zo+xc+"RemovalFrom"+Ho+Oo]=6,bc.CannotSendEmptyTelemetry=7,bc.ClientPerformanceMathError=8,bc.ErrorParsingAISessionCookie=9,bc.ErrorPVCalc=10,bc[qo+"WhileLoggingError"]=11,bc[xc+"AddingTelemetryTo"+jo]=12,bc[l+"Abort"]=13,bc[l+"Dur"]=14,bc[l+"Open"]=15,bc[l+"RSC"]=16,bc[l+"Send"]=17,bc[l+"GetCorrelationHeader"]=18,bc.FailedToAddHandlerForOnBeforeUnload=19,bc.FailedToSendQueuedTelemetry=20,bc.FailedToReportDataLoss=21,bc.FlushFailed=22,bc.MessageLimitPerPVExceeded=23,bc.MissingRequiredFieldSpecification=24,bc.NavigationTimingNotSupported=25,bc.OnError=26,bc[Ho+"RenewalDateIsZero"]=27,bc.SenderNotInitialized=28,bc["Start"+ze+Lo+xc]=29,bc["Stop"+ze+Lo+xc]=30,bc["Start"+ze+xc]=31,bc["Stop"+ze+xc]=32,bc.TelemetrySampledAndNotSent=33,bc[ze+Lo+xc]=34,bc[ze+qo+xc]=35,bc[ze+"Metric"+xc]=36,bc[ze+"PV"+xc]=37,bc.TrackPVFailedCalc=38,bc[ze+"Trace"+xc]=39,bc.TransmissionFailed=40,bc[xc+"ToSet"+Oo+jo]=41,bc[xc+"ToRestore"+Oo+jo]=42,bc.InvalidBackendResponse=43,bc.FailedToFixDepricatedValues=44,bc.InvalidDurationValue=45,bc.TelemetryEnvelopeInvalid=46,bc.CreateEnvelopeError=47,bc.CannotSerializeObject=48,bc.CannotSerializeObjectNonSerializable=49,bc.CircularReferenceDetected=50,bc["Clear"+Uo+xc]=51,bc[qo+"Truncated"]=52,bc.IllegalCharsInName=53,bc.ItemNotInArray=54,bc.MaxAjaxPerPVExceeded=55,bc.MessageTruncated=56,bc.NameTooLong=57,bc.SampleRateOutOfRange=58,bc["Set"+Uo+xc]=59,bc["Set"+Uo+xc+"AccountName"]=60,bc.StringValueTooLong=61,bc.StartCalledMoreThanOnce=62,bc.StopCalledWithoutStart=63,bc.TelemetryInitializerFailed=64,bc.TrackArgumentsNotSpecified=65,bc.UrlTooLong=66,bc[Ho+Oo+jo+"Full"]=67,bc.CannotAccessCookie=68,bc.IdTooLong=69,bc.InvalidEvent=70,bc[l+"SetRequestHeader"]=71,bc.SendBrowserInfoOnUserInit=72,bc["Plugin"+qo]=73,bc["Notification"+qo]=74,bc.SnippetScriptLoadFailure=99,bc["Invalid"+Bo]=100,bc.CannotParseAiBlobValue=101,bc.InvalidContentBlob=102,bc[ze+"PageAction"+Lo+xc]=103,bc.FailedAddingCustomDefinedRequestContext=104,bc["InMemory"+Oo+jo+"Full"]=105,bc[Bo+"Deprecation"]=106,bc)),"_aiHooks"),Wo=["req","rsp","hkErr","fnErr"];function Go(e,n){if(e)for(var t=0;t<e[D]&&!n(e[t],t);t++);}function Jo(e,n,t,r,i){0<=i&&i<=2&&Go(e,(function(e,o){var a=(e=e.cbks)[Wo[i]];if(a){n.ctx=function(){return r[o]=r[o]||{}};try{a[oe](n.inst,t)}catch(r){a=n.err;try{var u=e.hkErr;u&&(n.err=r,u[oe](n.inst,t))}catch(e){}finally{n.err=a}}}}))}function $o(e,n,t,r){var i=null;return e&&(cn(e,n)?i=e:t&&(i=$o(rn(e),n,r,!1))),i}function Qo(e,n,t,r){var i=t&&t[Xo];i||((t=function(e){return function(){var n=arguments,t=e.h,r=((i={})[I]=e.n,i.inst=this,i.ctx=null,i.set=function(e,t){(n=a([],n))[e]=t,o=a([r],n)},i),i=[],o=a([r],n);function a(e,n){return Go(n,(function(n){e[C](n)})),e}r.evt=Mt("event"),Jo(t,r,o,i,0);var u=e.f;if(u)try{r.rslt=u[oe](this,n)}catch(e){throw r.err=e,Jo(t,r,o,i,3),e}return Jo(t,r,o,i,1),r.rslt}}(i={i:0,n:n,f:t,h:[]}))[Xo]=i,e[n]=t),n={id:i.i,cbks:r,rm:function(){var e=this.id;Go(i.h,(function(n,t){return n.id===e&&(i.h[O](t,1),1)}))}};return i.i++,i.h[C](n),n}function Yo(e,t,r,i,o){return void 0===i&&(i=!0),e&&t&&r&&(e=$o(e,t,i,o))&&typeof(i=e[t])===n?Qo(e,t,i,r):null}function Zo(e,n,t,r,i){return e&&n&&t&&(r=$o(e,n,r,i)||e)?Qo(r,n,r[n],t):null}var ea="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",na="sampleRate",ta="ProcessLegacy",ra="http.method",ia="https://dc.services.visualstudio.com",oa="/v2/track",aa="not_specified",ua="iKey";function ca(e){var n,t=null;return ln(Event)?t=new Event(e):(n=Ut())&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0),t}var sa="split",la="length",fa="toLowerCase",da="ingestionendpoint",pa="toString",va="removeItem",ga="name",ma="message",ha="stringify",ya="pathname",xa="correlationHeaderExcludePatterns",ba="indexOf",Ia="extensionConfig",wa="exceptions",Ta="parsedStack",Ca="properties",Sa="measurements",ka="sizeInBytes",_a="typeName",Ea="severityLevel",Da="problemGroup",Pa="isManual",Na="CreateFromInterface",Ma="assembly",Aa="fileName",Ra="hasFullStack",La="level",Ua="method",qa="line",Fa="duration",Ha="receivedResponse",Oa="substring";function za(e,n){return void 0===n&&(n=!1),null==e?n:"true"===e.toString()[fa]()}function Va(e){var n=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);e=1===(e=""+e%1e3)[la]?"00"+e:2===e[la]?"0"+e:e,n=n[la]<2?"0"+n:n,t=t[la]<2?"0"+t:t;return(0<i?i+".":"")+(r=r[la]<2?"0"+r:r)+":"+t+":"+n+"."+e}function ja(e,n,t,r,i){return!i&&hn(e)&&("Script error."===e||"Script error"===e)}Ba={},dn({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]},(function(e,n){Ba[e]=n[1],Ba[n[0]]=n[1]}));var Ba,Ka=Nn(Ba),Xa=Xn({LocalStorage:0,SessionStorage:1}),Wa=(Vo=Xn({AI:0,AI_AND_W3C:1,W3C:2}),void 0),Ga=void 0,Ja="";function $a(){return nu()?Qa(Xa.LocalStorage):null}function Qa(e){try{if(an(p()))return null;var n=(new Date)[pa](),t=Mt(e===Xa.LocalStorage?"localStorage":"sessionStorage"),r=Ja+n,i=(t.setItem(r,n),t.getItem(r)!==n);if(t[va](r),!i)return t}catch(e){}return null}function Ya(){return ou()?Qa(Xa.SessionStorage):null}function Za(){Ga=Wa=!1}function eu(e){Ja=e||""}function nu(e){return Wa=e||void 0===Wa?!!Qa(Xa.LocalStorage):Wa}function tu(e,n){var t=$a();if(null!==t)try{return t.getItem(n)}catch(n){Wa=!1,fr(e,2,1,"Browser failed read of local storage. "+Rn(n),{exception:Xt(n)})}return null}function ru(e,n,t){var r=$a();if(null!==r)try{return r.setItem(n,t),!0}catch(n){Wa=!1,fr(e,2,3,"Browser failed write to local storage. "+Rn(n),{exception:Xt(n)})}return!1}function iu(e,n){var t=$a();if(null!==t)try{return t[va](n),!0}catch(n){Wa=!1,fr(e,2,5,"Browser failed removal of local storage item. "+Rn(n),{exception:Xt(n)})}return!1}function ou(e){return Ga=e||void 0===Ga?!!Qa(Xa.SessionStorage):Ga}function au(e,n){var t=Ya();if(null!==t)try{return t.getItem(n)}catch(n){Ga=!1,fr(e,2,2,"Browser failed read of session storage. "+Rn(n),{exception:Xt(n)})}return null}function uu(e,n,t){var r=Ya();if(null!==r)try{return r.setItem(n,t),!0}catch(n){Ga=!1,fr(e,2,4,"Browser failed write to session storage. "+Rn(n),{exception:Xt(n)})}return!1}function cu(e,n){var t=Ya();if(null!==t)try{return t[va](n),!0}catch(n){Ga=!1,fr(e,2,6,"Browser failed removal of session storage item. "+Rn(n),{exception:Xt(n)})}return!1}function su(e,n,t){var r=n[la],i=lu(e,n);if(i[la]!==r){for(var o=0,a=i;void 0!==t[a];)o++,a=i[Oa](0,147)+xu(o);i=a}return i}function lu(e,n){var t;return n&&150<(n=kn(n[pa]()))[la]&&(t=n[Oa](0,150),fr(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),t||n}function fu(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=kn(n)).toString()[la]>t&&(r=n[pa]()[Oa](0,t),fr(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function du(e,n){return yu(e,n,2048,66)}function pu(e,n){var t;return n&&32768<n[la]&&(t=n[Oa](0,32768),fr(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function vu(e,n){var t,r;return n&&32768<(r=""+n)[la]&&(t=r[Oa](0,32768),fr(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:n},!0)),t||n}function gu(e,n){var t;return n&&(t={},dn(n,(function(n,r){if(sn(r)&&Vt())try{r=jt()[ha](r)}catch(n){fr(e,2,49,"custom property is not valid",{exception:n},!0)}r=fu(e,r,8192),n=su(e,n,t),t[n]=r})),n=t),n}function mu(e,n){var t;return n&&(t={},dn(n,(function(n,r){n=su(e,n,t),t[n]=r})),n=t),n}function hu(e,n){return n&&yu(e,n,128,69)[pa]()}function yu(e,n,t,r){var i;return n&&(n=kn(n))[la]>t&&(i=n[Oa](0,t),fr(e,2,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}function xu(e){return(e="00"+e).substr(e[la]-3)}(Fo={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768}).sanitizeKeyAndAddUniqueness=su,Fo.sanitizeKey=lu,Fo.sanitizeString=fu,Fo.sanitizeUrl=du,Fo.sanitizeMessage=pu,Fo.sanitizeException=vu,Fo.sanitizeProperties=gu,Fo.sanitizeMeasurements=mu,Fo.sanitizeId=hu,Fo.sanitizeInput=yu,Fo.padNumber=xu,Fo.trim=kn;zo=Fo;var bu=Ut()||{},Iu=0,wu=[null,null,null,null,null];function Tu(e){var n=Iu,t=wu,r=t[n];return bu.createElement?t[n]||(r=t[n]=bu.createElement("a")):r={host:ku(e,!0)},r.href=e,++n>=t[la]&&(n=0),Iu=n,r}function Cu(e){return(e=Tu(e))?e.href:void 0}function Su(e,n){return e?e.toUpperCase()+" "+n:n}function ku(e,n){return(e=_u(e,n)||"")&&null!=(n=e.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i))&&3<n[la]&&hn(n[2])&&0<n[2][la]?n[2]+(n[3]||""):e}function _u(e,n){var t=null;return e&&null!=(e=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i))&&2<e[la]&&hn(e[2])&&0<e[2][la]&&(t=e[2]||"",n&&2<e[la]&&(n=(e[1]||"")[fa](),e=e[3]||"",t+=e="http"===n&&":80"===e||"https"===n&&":443"===e?"":e)),t}var Eu=[ia+oa,"https://breeze.aimon.applicationinsights.io"+oa,"https://dc-int.services.visualstudio.com"+oa];function Du(e){return-1!==Tn(Eu,e[fa]())}Uo={NotSpecified:aa,createDomEvent:ca,disableStorage:Za,isInternalApplicationInsightsEndpoint:Du,canUseLocalStorage:nu,getStorage:tu,setStorage:ru,removeStorage:iu,canUseSessionStorage:ou,getSessionStorageKeys:function(){var e=[];return ou()&&dn(Mt("sessionStorage"),(function(n){e.push(n)})),e},getSessionStorage:au,setSessionStorage:uu,removeSessionStorage:cu,disableCookies:Vi,canUseCookies:function(e){return zi(null,e).isEnabled()},disallowsSameSiteNone:ci,setCookie:function(e,n,t,r){zi(null,e).set(n,t,null,r)},stringToBoolOrDefault:za,getCookie:function(e,n){return zi(null,e).get(n)},deleteCookie:function(e,n){return zi(null,e).del(n)},trim:kn,newId:Nr,random32:function(){return Dr(!0)},generateW3CId:Hi,isArray:gn,isError:mn,isDate:vn,toISOStringForIE8:In,getIEVersion:Kt,msToTimeSpan:Va,isCrossOriginError:ja,dump:Xt,getExceptionName:Rn,addEventHandler:function(e,n,t,r){return Di(e,n,t,null,r=void 0!==r&&r)},IsBeaconApiSupported:Wt,getExtension:function(e,n){var t=null;return wn(e,(function(e){if(e.identifier===n)return t=e,-1})),t}},Ho={parseUrl:Tu,getAbsoluteUrl:Cu,getPathName:function(e){return(e=Tu(e))?e[ya]:void 0},getCompleteUrl:Su,parseHost:ku,parseFullHost:_u};var Pu={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,n,t){if(!n||e&&e.disableCorrelationHeaders)return!1;if(e&&e[xa])for(var r=0;r<e.correlationHeaderExcludePatterns[la];r++)if(e[xa][r].test(n))return!1;var i,o=Tu(n).host[fa]();if(!o||-1===o[ba](":443")&&-1===o[ba](":80")||(o=(_u(n,!0)||"")[fa]()),(!e||!e.enableCorsCorrelation)&&o&&o!==t)return!1;if((t=e&&e.correlationHeaderDomains)&&(wn(t,(function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),i=i||e.test(o)})),!i))return!1;var a=e&&e.correlationHeaderExcludedDomains;if(!a||0===a[la])return!0;for(r=0;r<a[la];r++)if(RegExp(a[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return!1;return o&&0<o[la]},getCorrelationContext:function(e){if(e&&(e=Pu.getCorrelationContextValue(e,Ka[1]))&&e!==Pu.correlationIdPrefix)return e},getCorrelationContextValue:function(e,n){if(e)for(var t=e[sa](","),r=0;r<t[la];++r){var i=t[r][sa]("=");if(2===i[la]&&i[0]===n)return i[1]}}};function Nu(){var e=zt();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:An()}function Mu(e,n){return 0===e||0===n||an(e)||an(n)?null:n-e}function Au(e,n){var t=e||{};return{getName:function(){return t[ga]},setName:function(e){n&&n.setName(e),t[ga]=e},getTraceId:function(){return t.traceID},setTraceId:function(e){n&&n.setTraceId(e),Qi(e)&&(t.traceID=e)},getSpanId:function(){return t.parentID},setSpanId:function(e){n&&n.setSpanId(e),Yi(e)&&(t.parentID=e)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(e){n&&n.setTraceFlags(e),t.traceFlags=e}}}function Ru(e){return e?(0<Dn(e=Sn(e[sa](";"),(function(e,n){var t;return 2===(n=n[sa]("="))[la]&&(t=n[0][fa](),n=n[1],e[t]=n),e}),{}))[la]&&(e.endpointsuffix&&(n=e.location?e.location+".":"",e[da]=e[da]||"https://"+n+"dc."+e.endpointsuffix),e[da]=e[da]||ia),e):{};var n}l={Now:Nu,GetDuration:Mu};qo={parse:Ru};var Lu=function(e,n,t){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[ga]=fu(e,t)||aa,i.data=n,i.time=In(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},Uu=(qu.envelopeType="Microsoft.ApplicationInsights.{0}.Event",qu.dataType="EventData",qu);function qu(e,n,t,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this[ga]=fu(e,n)||aa,this[Ca]=gu(e,t),this[Sa]=mu(e,r)}var Fu="error",Hu="stack",Ou="stackDetails",zu="errorSrc",Vu="message",ju="description";function Bu(e,n){var t=e;return t&&!hn(t)&&(JSON&&JSON[ha]?(t=JSON[ha](e),!n||t&&"{}"!==t||(t=ln(e[pa])?e[pa]():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function Ku(e,n){var t=e;return e&&((t=t&&!hn(t)&&(e[Vu]||e[ju])||t)&&!hn(t)&&(t=Bu(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&-1===(t||"")[ba](n)?n+": "+t:t)||""}function Xu(e){return e&&e.src&&hn(e.src)&&e.obj&&gn(e.obj)}function Wu(e){var n=(e=hn(e=e||"")?e:hn(e[Hu])?e[Hu]:""+e)[sa]("\n");return{src:e,obj:n}}function Gu(e){var n,t=null;if(e)try{e[Hu]?t=Wu(e[Hu]):e[Fu]&&e[Fu][Hu]?t=Wu(e[Fu][Hu]):e.exception&&e.exception[Hu]?t=Wu(e.exception[Hu]):Xu(e)?t=e:Xu(e[Ou])?t=e[Ou]:window&&window.opera&&e[Vu]?t=function(e){for(var n=[],t=e[sa]("\n"),r=0;r<t[la];r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e[ma]):e.reason&&e.reason[Hu]?t=Wu(e.reason[Hu]):hn(e)?t=Wu(e):(n=e[Vu]||e[ju]||"",hn(e[zu])&&(n&&(n+="\n"),n+=" from "+e[zu]),n&&(t=Wu(n)))}catch(e){t=Wu(e)}return t||{src:"",obj:null}}function Ju(e){var n="";if(e&&!(n=e.typeName||e[ga]||""))try{var t=/function (.{1,200})\(/.exec(e.constructor[pa]());n=t&&1<t[la]?t[1]:""}catch(e){}return n}function $u(e){if(e)try{var n,t;if(!hn(e))return n=Ju(e),(t=Bu(e,!1))&&"{}"!==t||(e[Fu]&&(n=Ju(e=e[Fu])),t=Bu(e,!0)),0!==t[ba](n)&&"String"!==n?n+":"+t:t}catch(e){}return""+(e||"")}Yu.CreateAutoException=function(e,n,t,r,i,o,a,u){var c=Ju(i||o||e),s={};return s[ma]=Ku(e,c),s.url=n,s.lineNumber=t,s.columnNumber=r,s.error=$u(i||o||e),s.evt=$u(o||e),s[_a]=c,s.stackDetails=Gu(a||i||o),s.errorSrc=u,s},Yu.CreateFromInterface=function(e,n,t,r){var i=n[wa]&&Cn(n[wa],(function(n){return Zu[Na](e,n)}));return new Yu(e,m(m({},n),{exceptions:i}),t,r)},Yu.prototype.toInterface=function(){var e=(a=this).exceptions,n=a.properties,t=a.measurements,r=a.severityLevel,i=a.problemGroup,o=a.id,a=a.isManual,u=(e=e instanceof Array&&Cn(e,(function(e){return e.toInterface()}))||void 0,{ver:"4.0"});return u[wa]=e,u.severityLevel=r,u.properties=n,u.measurements=t,u.problemGroup=i,u.id=o,u.isManual=a,u},Yu.CreateSimpleException=function(e,n,t,r,i,o){var a;return{exceptions:[((a={})[Ra]=!0,a.message=e,a.stack=i,a.typeName=n,a)]}},Yu.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Yu.dataType="ExceptionData",Yu.formatError=$u;var Qu=Yu;function Yu(e,n,t,r,i,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,function(e){try{if(sn(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}}(n)?(a[wa]=n[wa]||[],a[Ca]=n[Ca],a[Sa]=n[Sa],n[Ea]&&(a[Ea]=n[Ea]),n.id&&(a.id=n.id),n[Da]&&(a[Da]=n[Da]),an(n[Pa])||(a[Pa]=n[Pa])):(a[wa]=[new Zu(e,n,t=t||{})],a[Ca]=gu(e,t),a[Sa]=mu(e,r),i&&(a[Ea]=i),o&&(a.id=o))}ec.prototype.toInterface=function(){var e=this,n=e[Ta]instanceof Array&&Cn(e[Ta],(function(e){return e.toInterface()}));return(e={id:e.id,outerId:e.outerId,typeName:e[_a],message:e[ma],hasFullStack:e[Ra],stack:e[Hu]})[Ta]=n||void 0,e},ec.CreateFromInterface=function(e,n){var t=n[Ta]instanceof Array&&Cn(n[Ta],(function(e){return nc[Na](e)}))||n[Ta];return new ec(e,m(m({},n),{parsedStack:t}))};var Zu=ec;function ec(e,n,t){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r,i,o,a,u=this;!function(e){try{if(sn(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}}(n)?(o=(r=n)&&r.evt,mn(r)||(r=r[Fu]||o||r),u[_a]=fu(e,Ju(r))||aa,u[ma]=pu(e,Ku(n||r,u[_a]))||aa,i=n[Ou]||Gu(n),u[Ta]=function(){var e=i.obj;if(e&&0<e[la]){var n=[],t=0,r=0;if(wn(e,(function(e){e=e[pa]();nc.regex.test(e)&&(e=new nc(e,t++),r+=e[ka],n.push(e))})),32768<r)for(var o=0,a=n[la]-1,u=0,c=o,s=a;o<a;){if(32768<(u+=n[o][ka]+n[a][ka])){n.splice(c,s-c+1);break}c=o,s=a,o++,a--}}return n}(),gn(u[Ta])&&Cn(u[Ta],(function(n){n[Ma]=fu(e,n[Ma]),n[Aa]=fu(e,n[Aa])})),u[Hu]=vu(e,(a="",(o=i)&&(o.obj?wn(o.obj,(function(e){a+=e+"\n"})):a=o.src||""),a)),u.hasFullStack=gn(u.parsedStack)&&0<u.parsedStack[la],t&&(t[_a]=t[_a]||u[_a])):(u[_a]=n[_a],u[ma]=n[ma],u[Hu]=n[Hu],u[Ta]=n[Ta]||[],u[Ra]=n[Ra])}tc.CreateFromInterface=function(e){return new tc(e,null)},tc.prototype.toInterface=function(){var e=this;return{level:e[La],method:e[Ua],assembly:e[Ma],fileName:e[Aa],line:e[qa]}},tc.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,tc.baseSize=58;var nc=tc;function tc(e,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var t,r=this;r[ka]=0,"string"==typeof e?(t=e,r[La]=n,r[Ua]="<no_method>",r[Ma]=kn(t),r[Aa]="",r[qa]=0,(n=t.match(tc.regex))&&5<=n[la]&&(r[Ua]=kn(n[2])||r[Ua],r[Aa]=kn(n[4]),r[qa]=parseInt(n[5])||0)):(r[La]=e[La],r[Ua]=e[Ua],r[Ma]=e[Ma],r[Aa]=e[Aa],r[qa]=e[qa],r[ka]=0),r.sizeInBytes+=r.method[la],r.sizeInBytes+=r.fileName[la],r.sizeInBytes+=r.assembly[la],r[ka]+=tc.baseSize,r.sizeInBytes+=r.level.toString()[la],r.sizeInBytes+=r.line.toString()[la]}var rc=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},ic=(oc.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",oc.dataType="MetricData",oc);function oc(e,n,t,r,i,o,a,u,c){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var s=new rc;s.count=0<r?r:void 0,s.max=isNaN(o)||null===o?void 0:o,s.min=isNaN(i)||null===i?void 0:i,s[ga]=fu(e,n)||aa,s.value=t,s.stdDev=isNaN(a)||null===a?void 0:a,this.metrics=[s],this[Ca]=gu(e,u),this[Sa]=mu(e,c)}uc.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",uc.dataType="PageviewData";var ac=uc;function uc(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=hu(e,a),u.url=du(e,t),u[ga]=fu(e,n)||aa,isNaN(r)||(u[Fa]=Va(r)),u[Ca]=gu(e,i),u[Sa]=mu(e,o)}sc.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",sc.dataType="RemoteDependencyData";var cc=sc;function sc(e,n,t,r,i,o,a,u,c,s,l,f){void 0===c&&(c="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var d,p,v=this;v.ver=2,v.id=n,v[Fa]=Va(i),v.success=o,v.resultCode=a+"",v.type=fu(e,c),n=e,i=u,c=a=o=r,a=(u=t)&&0<u[la]?(p=(t=Tu(u)).host,a||(null!=t[ya]?("/"!=((d=0===t.pathname[la]?"/":t[ya])[0]||"")&&(d="/"+d),c=t[ya],fu(n,i?i+" "+d:d)):fu(n,u))):p=o,t={target:p,name:a,data:c};v.data=du(e,r)||t.data,v.target=fu(e,t.target),s&&(v.target="".concat(v.target," | ").concat(s)),v[ga]=fu(e,t[ga]),v[Ca]=gu(e,l),v[Sa]=mu(e,f)}fc.envelopeType="Microsoft.ApplicationInsights.{0}.Message",fc.dataType="MessageData";var lc=fc;function fc(e,n,t,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,o[ma]=pu(e,n=n||aa),o[Ca]=gu(e,r),o[Sa]=mu(e,i),t&&(o[Ea]=t)}pc.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",pc.dataType="PageviewPerformanceData";var dc=pc;function pc(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=du(e,t),u[ga]=fu(e,n)||aa,u[Ca]=gu(e,i),u[Sa]=mu(e,o),a&&(u.domProcessing=a.domProcessing,u[Fa]=a[Fa],u.networkConnect=a.networkConnect,u.perfTotal=a.perfTotal,u[Ha]=a[Ha],u.sentRequest=a.sentRequest)}var vc=function(e,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=n};ze=Xn({Verbose:0,Information:1,Warning:2,Error:3,Critical:4}),gc.getConfig=function(e,n,t,r){return void 0===r&&(r=!1),t=(t&&e[Ia]&&e[Ia][t]&&!an(e[Ia][t][n])?e[Ia][t]:e)[n],an(t)?r:t},Lo=gc;function gc(){}function mc(e){var n="ai."+e+".";return function(e){return n+e}}var hc,yc,xc=mc("application"),bc=(Oo=mc("device"),jo=mc("location"),Bo=mc("operation"),mc("session")),Ic=(Fo=mc("user"),mc("cloud")),wc=mc("internal"),Tc=(yc={applicationVersion:xc("ver"),applicationBuild:xc("build"),applicationTypeId:xc("typeId"),applicationId:xc("applicationId"),applicationLayer:xc("layer"),deviceId:Oo("id"),deviceIp:Oo("ip"),deviceLanguage:Oo("language"),deviceLocale:Oo("locale"),deviceModel:Oo("model"),deviceFriendlyName:Oo("friendlyName"),deviceNetwork:Oo("network"),deviceNetworkName:Oo("networkName"),deviceOEMName:Oo("oemName"),deviceOS:Oo("os"),deviceOSVersion:Oo("osVersion"),deviceRoleInstance:Oo("roleInstance"),deviceRoleName:Oo("roleName"),deviceScreenResolution:Oo("screenResolution"),deviceType:Oo("type"),deviceMachineName:Oo("machineName"),deviceVMName:Oo("vmName"),deviceBrowser:Oo("browser"),deviceBrowserVersion:Oo("browserVersion"),locationIp:jo("ip"),locationCountry:jo("country"),locationProvince:jo("province"),locationCity:jo("city"),operationId:Bo("id"),operationName:Bo("name"),operationParentId:Bo("parentId"),operationRootId:Bo("rootId"),operationSyntheticSource:Bo("syntheticSource"),operationCorrelationVector:Bo("correlationVector"),sessionId:bc("id"),sessionIsFirst:bc("isFirst"),sessionIsNew:bc("isNew"),userAccountAcquisitionDate:Fo("accountAcquisitionDate"),userAccountId:Fo("accountId"),userAgent:Fo("userAgent"),userId:Fo("id"),userStoreRegion:Fo("storeRegion"),userAuthUserId:Fo("authUserId"),userAnonymousUserAcquisitionDate:Fo("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Fo("authUserAcquisitionDate"),cloudName:Ic("name"),cloudRole:Ic("role"),cloudRoleVer:Ic("roleVer"),cloudRoleInstance:Ic("roleInstance"),cloudEnvironment:Ic("environment"),cloudLocation:Ic("location"),cloudDeploymentUnit:Ic("deploymentUnit"),internalNodeName:wc("nodeName"),internalSdkVersion:wc("sdkVersion"),internalAgentVersion:wc("agentVersion"),internalSnippet:wc("snippet"),internalSdkSrc:wc("sdkSrc")},y(Cc,hc=function(){var e=this;dn(yc,(function(n,t){e[n]=t}))}),Cc);function Cc(){return hc.call(this)||this}function Sc(e,n,t,r,i,o){t=fu(r,t)||aa,(an(e)||an(n)||an(t))&&Hn("Input doesn't contain all required fields");r="";var a,u=(e[ua]&&(r=e[ua],delete e[ua]),(a={})[ga]=t,a.time=In(new Date),a.iKey=r,a.ext=o||{},a.tags=[],a.data={},a.baseType=n,a.baseData=e,a);return an(i)||dn(i,(function(e,n){u.data[e]=n})),u}function kc(){}kc.create=Sc,xc=kc;var _c={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},Ec=new Tc,Dc="AppInsightsPropertiesPlugin",Pc="AppInsightsChannelPlugin",Nc="ApplicationInsightsAnalytics",Mc="duration",Ac="properties",Rc="requestUrl",Lc="inst",Uc="length",qc="traceID",Fc="spanID",Hc="traceFlags",Oc="context",zc="aborted",Vc="traceId",jc="spanId",Bc="core",Kc="includeCorrelationHeaders",Xc="canIncludeCorrelationHeader",Wc="getAbsoluteUrl",Gc="headers",Jc="requestHeaders",$c="appId",Qc="setRequestHeader",Yc="trackDependencyDataInternal",Zc="distributedTracingMode",es="startTime",ns="toLowerCase",ts="status",rs="statusText",is="headerMap",os="openDone",as="sendDone",us="requestSentTime",cs="abortDone",ss="getTraceId",ls="getTraceFlags",fs="method",ds="errorStatusText",ps="stateChangeAttached",vs="responseFinishedTime",gs="CreateTrackItem",ms="response",hs="getAllResponseHeaders",ys="getPartAProps",xs="getCorrelationContext",bs="perfMark",Is="name",ws="perfTiming",Ts="ajaxTotalDuration",Cs="eventTraceCtx";function Ss(e,n,t){return n=e[n],t=e[t],n&&t?Mu(n,t):0}function ks(e,n,t,r,i){return(t=Ss(t,r,i))?_s(e,n,Va(t)):0}function _s(e,n,t){var r="ajaxPerf",i=0;return e&&n&&t&&((e[r]=e[r]||{})[n]=t,i=1),i}var Es=function(){var e=this;e[os]=!1,e.setRequestHeaderDone=!1,e[as]=!1,e[cs]=!1,e[ps]=!1},Ds=(Ps.__ieDyn=1,Ps);function Ps(e,n,t,r){var i=this,o=t;i[bs]=null,i.completed=!1,i.requestHeadersSize=null,i[Jc]=null,i.responseReceivingDuration=null,i.callbackDuration=null,i[Ts]=null,i[zc]=0,i.pageUrl=null,i[Rc]=null,i.requestSize=0,i[fs]=null,i[ts]=null,i[us]=null,i.responseStartedTime=null,i[vs]=null,i.callbackFinishedTime=null,i.endTime=null,i.xhrMonitoringState=new Es,i.clientFailure=0,i[qc]=e,i[Fc]=n,i[Hc]=null==r?void 0:r.getTraceFlags(),i[Cs]=r?((t={})[Vc]=r[ss](),t[jc]=r.getSpanId(),t[Hc]=r[ls](),t):null,It(Ps,i,(function(e){e.getAbsoluteUrl=function(){return e[Rc]?Cu(e[Rc]):null},e.getPathName=function(){return e[Rc]?du(o,Su(e[fs],e[Rc])):null},e[gs]=function(n,t,r){if(e.ajaxTotalDuration=Math.round(1e3*Mu(e.requestSentTime,e.responseFinishedTime))/1e3,e[Ts]<0)return null;(y={id:"|"+e[qc]+"."+e[Fc],target:e[Wc]()})[Is]=e.getPathName(),y.type=n,y[es]=null,y.duration=e[Ts],y.success=200<=+e[ts]&&+e[ts]<400,y.responseCode=+e[ts],y[Ac]={HttpMethod:e[fs]};var i,o,a,u,c,s,l,f,d,p,v,g,m,h,y=(n=y)[Ac];return e[zc]&&(y[zc]=!0),e[us]&&(n[es]=new Date,n[es].setTime(e[us])),u=(i=e)[ws],c=(o=n)[Ac]||{},s=0,g="startTime",h="connectEnd",l="requestStart",m="responseEnd",f="transferSize",d="encodedBodySize",p="decodedBodySize",v="serverTiming",u?(s=(s=(s=(s=(s=(s=(s|=ks(c,"End",u,"redirectStart","End"))|ks(c,"domainLookup",u,"domainLookupStart","domainLookupEnd"))|ks(c,"connect",u,"connectStart",h))|ks(c,"request",u,l,"requestEnd"))|ks(c,"response",u,"responseStart",m))|ks(c,"networkConnect",u,g,h))|ks(c,"sentRequest",u,l,m),h=u[Mc]||Ss(u,g,m)||0,s=(s|=_s(c,Mc,h))|_s(c,"perfTotal",h),(l=u[v])&&(a={},wn(l,(function(e,n){n=fn(e.name||""+n);var t=a[n]||{};dn(e,(function(e,n){!("name"!==e&&hn(n)||yn(n))||!(n=t[e]?t[e]+";"+n:n)&&hn(n)||(t[e]=n)})),a[n]=t})),s|=_s(c,v,a)),s=(s=(s|=_s(c,f,u[f]))|_s(c,d,u[d]))|_s(c,p,u[p])):i[bs]&&(s|=_s(c,"missing",i.perfAttempts)),s&&(o[Ac]=c),t&&0<Dn(e.requestHeaders)[Uc]&&(y[Jc]=e[Jc]),r&&(g=r())&&((m=g.correlationContext)&&(n.correlationContext=m),g[is]&&0<Dn(g.headerMap)[Uc]&&(y.responseHeaders=g[is]),e[ds]&&(400<=e[ts]?(""!==(h=g.type)&&"text"!==h||(y.responseText=g.responseText?g[rs]+" - "+g.responseText:g[rs]),"json"===h&&(y.responseText=g.response?g[rs]+" - "+JSON.stringify(g[ms]):g[rs])):0===e[ts]&&(y.responseText=g[rs]||""))),n},e[ys]=function(){var n,t=null,r=e[Cs];return r&&(r[Vc]||r[jc])&&(n=(t={})[_c.TraceExt]=((n={})[qc]=r[Vc],n.parentID=r[jc],n),an(r[Hc])||(n[Hc]=r[Hc])),t}}))}var Ns="ai.ajxmn.",Ms="diagLog",As="ajaxData",Rs="fetch",Ls="Failed to monitor XMLHttpRequest",Us=(Oo=", monitoring data for this ajax call ")+"may be incorrect.",qs=Oo+"won't be sent.",Fs="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Hs="Failed to add custom defined request context as configured call back may missing a null check.",Os="Failed to calculate the duration of the ",zs=0,Vs=null;function js(e){var n="";try{e&&e[As]&&e[As][Rc]&&(n+="(url: '"+e[As][Rc]+"')")}catch(e){}return n}function Bs(e,n,t,r,i){fr(e[Ms](),1,n,t,r,i)}function Ks(e,n,t,r,i){fr(e[Ms](),2,n,t,r,i)}function Xs(e,n,t){return function(r){Bs(e,n,t,{ajaxDiagnosticsMessage:js(r[Lc]),exception:Xt(r.err)})}}function Ws(e,n){return e&&n?e.indexOf(n):-1}function Gs(e,n,t){var r={id:n,fn:t};return e.push(r),{remove:function(){wn(e,(function(n,t){if(n.id===r.id)return e.splice(t,1),-1}))}}}function Js(e,n,t,r){var i=!0;return wn(n,(function(n,o){try{!1===n.fn.call(null,t)&&(i=!1)}catch(n){fr(e&&e.logger,1,64,"Dependency "+r+" [#"+o+"] failed: "+Rn(n),{exception:Xt(n)},!0)}})),i}var $s=Nn([(jo="*.blob.core.")+"windows.net",jo+"chinacloudapi.cn",jo+"cloudapi.de",jo+"usgovcloudapi.net"]),Qs=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function Ys(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:$s,correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,addIntEndpoints:!0}}function Zs(){var e=Ys();return dn(e,(function(n){e[n]=void 0})),e}y(tl,el=Je),tl.prototype.processTelemetry=function(e,n){this.processNext(e,n)},tl.prototype.addDependencyInitializer=function(e){return null},tl.identifier="AjaxDependencyPlugin",tl.getDefaultConfig=Ys,tl.getEmptyConfig=Zs;var el,nl=tl;function tl(){var e,n,t,r,o,a,u,c,s,l,f,d,v,g,h,y,x,b,I,w,T,C,S,k=el.call(this)||this;return k.identifier=tl.identifier,k.priority=120,It(tl,k,(function(k,_){var E=_._addHook;function D(){var i=Ot();n=e=!1,t=i&&i.host&&i.host[ns](),r=tl.getEmptyConfig(),g=d=l=s=a=o=!1,x=y=!(h={}),w=I=b=f=c=null,T=v=u=0,C=[],S=[]}function P(e){var n=!0;return(e||r.ignoreHeaders)&&wn(r.ignoreHeaders,(function(t){if(t[ns]()===e[ns]())return n=!1,-1})),n}function N(e,n,t){E(e?Yo(e[i],n,t,!1):null)}function M(e,n,t){var r=!1,i=((hn(n)?n:(n||{}).url||"")||"")[ns]();if(wn(b,(function(e){var n=e;hn(e)&&(n=RegExp(e)),r=r||n.test(i)})),r)return r;var o=Ws(i,"?"),a=Ws(i,"#");return-1!==(o=-1===o||-1!==a&&a<o?a:o)&&(i=i.substring(0,o)),an(e)?an(n)||(r="object"==typeof n&&!0===n[ea]||!!t&&!0===t[ea]):r=!0===e[ea]||!0===i[ea],(r=!(r||!i||!Du(i))||r)?h[i]||(h[i]=1):h[i]&&(r=!0),r}function A(e,t){var r=!0,i=n;return an(e)||(r=!0===t||!an(e[As])),i&&r}function R(){var e=null;return!(e=k[Bc]&&k[Bc].getTraceCtx?k[Bc].getTraceCtx(!1):e)&&c&&c.telemetryTrace?Au(c.telemetryTrace):e}function L(e){e[As].xhrMonitoringState[ps]=Di(e,"readystatechange",(function(){try{e&&4===e.readyState&&A(e)&&((i=(r=e)[As])[vs]=Nu(),i[ts]=r[ts],F("xmlhttprequest",i,(function(){try{var e,n=i[gs]("Ajax",o,(function(){var e,n,t={statusText:r[rs],headerMap:null,correlationContext:U(r),type:r.responseType,responseText:function(e){try{var n=e.responseType;if(""===n||"text"===n)return e.responseText}catch(e){}return null}(r),response:r[ms]};return g&&(e=r[hs]())&&(e=kn(e).split(/[\r\n]+/),n={},wn(e,(function(e){var t=(e=e.split(": ")).shift();e=e.join(": ");P(t)&&(n[t]=e)})),t[is]=n),t})),a=void 0;try{I&&(a=I({status:r[ts],xhr:r}))}catch(e){Ks(k,104,Hs)}n?(void 0!==a&&(n[Ac]=m(m({},n.properties),a)),e=i[ys](),V(S,k[Bc],i,n,null,e)):t(null,{requestSentTime:i[us],responseFinishedTime:i[vs]})}finally{try{r[As]=null}catch(e){}}}),(function(e){t(e,null)})))}catch(t){var n=Xt(t);n&&-1!==Ws(n[ns](),"c00c023f")||Bs(k,16,Ls+" 'readystatechange' event handler"+Us,{ajaxDiagnosticsMessage:js(e),exception:n})}function t(e,n){(n=n||{}).ajaxDiagnosticsMessage=js(r),e&&(n.exception=Xt(e)),Ks(k,14,Os+"ajax call"+qs,n)}var r,i}),w)}function U(e){try{var n,t=e[hs]();if(null!==t&&-1!==Ws(t[ns](),Ka[8]))return n=e.getResponseHeader(Ka[0]),Pu[xs](n)}catch(n){Ks(k,18,Fs,{ajaxDiagnosticsMessage:js(e),exception:Xt(n)})}}function q(e,n){var t;n[Rc]&&f&&d&&(t=zt())&&ln(t.mark)&&(e=f+e+"#"+ ++zs,t.mark(e),(e=t.getEntriesByName(e))&&1===e[Uc]&&(n[bs]=e[0]))}function F(e,n,t,i){var o=n[bs],a=zt(),u=r.maxAjaxPerfLookupAttempts,c=r.ajaxPerfLookupDelay,s=n[Rc],l=0;!function r(){try{if(a&&o){l++;for(var f=null,d=a.getEntries(),p=d[Uc]-1;0<=p;p--){var v=d[p];if(v){if("resource"===v.entryType)v.initiatorType!==e||-1===Ws(v[Is],s)&&-1===Ws(s,v[Is])||(f=v);else if("mark"===v.entryType&&v[Is]===o[Is]){n[ws]=f;break}if(v[es]<o[es]-1e3)break}}}!o||n[ws]||u<=l||!1===n.async?(o&&ln(a.clearMarks)&&a.clearMarks(o[Is]),n.perfAttempts=l,t()):setTimeout(r,c)}catch(e){i(e)}}()}function H(e){var n="";try{an(e)||(n+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(e){Bs(k,15,"Failed to grab failed fetch diagnostics message",{exception:Xt(e)})}return n}function O(e,n,t,r,i,a){function u(e,n,r){(r=r||{}).fetchDiagnosticsMessage=H(t),n&&(r.exception=Xt(n)),Ks(k,e,Os+"fetch call"+qs,r)}i&&(i[vs]=Nu(),i[ts]=n,F(Rs,i,(function(){var e,c=i[gs]("Fetch",o,a);try{I&&(e=I({status:n,request:t,response:r}))}catch(e){Ks(k,104,Hs)}c?(void 0!==e&&(c[Ac]=m(m({},c.properties),e)),e=i[ys](),V(S,k[Bc],i,c,null,e)):u(14,null,{requestSentTime:i[us],responseFinishedTime:i[vs]})}),(function(e){u(18,e,null)})))}function z(e){if(e&&e[Gc])try{var n=e[Gc].get(Ka[0]);return Pu[xs](n)}catch(n){Ks(k,18,Fs,{fetchDiagnosticsMessage:H(e),exception:Xt(n)})}}function V(e,n,t,r,i,o){var a=!0;(a=0<e[Uc]?Js(n,e,{item:r,properties:i,sysProperties:o,context:t?t[Oc]:null,aborted:!!t&&!!t[zc]},"initializer"):a)&&k[Yc](r,i,o)}D(),k.initialize=function(t,u,m,h){var T,C;k.isInitialized()||(_.initialize(t,u,m,h),w=Ei(Ur("ajax"),u&&u.evtNamespace&&u.evtNamespace()),T=so(null,m=t,k[Bc]),r=Zs(),dn(Ys(),(function(e,n){r[e]=T.getConfig(tl.identifier,e,n)})),h=r[Zc],o=r.enableRequestHeaderTracking,a=r.enableAjaxErrorStatusText,d=r.enableAjaxPerfTracking,v=r.maxAjaxCallsPerView,g=r.enableResponseHeaderTracking,b=[].concat(r.excludeRequestFromAutoTrackingPatterns||[],!1!==r.addIntEndpoints?Qs:[]),I=r.addRequestContext,l=0===h||1===h,s=1===h||2===h,d&&(u=m.instrumentationKey||"unkwn",f=5<u[Uc]?Ns+u.substring(u[Uc]-5)+".":Ns+u+"."),y=!!r.disableAjaxTracking,x=!!r.disableFetchTracking,!function(e){var n=!1,t=($t()&&(n=!(an(t=XMLHttpRequest[i])||an(t.open)||an(t.send)||an(t.abort))),Kt());if(n=!(t&&t<9)&&n)try{(new XMLHttpRequest)[As]={};var r=XMLHttpRequest[i].open;XMLHttpRequest[i].open=r}catch(t){n=!1,Bs(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Xt(t)})}return n}(k)||y||n||(N(XMLHttpRequest,"open",{ns:w,req:function(e,n,t,r){var i,o,u,c;y||(i=(e=e[Lc])[As],!M(e,t)&&A(e,!0)&&(i&&i.xhrMonitoringState[os]||(i=e,n=n,t=t,r=r,u=(o=R())&&o[ss]()||Hi(),c=Hi().substr(0,16),(c=new Ds(u,c,k[Ms](),null==(u=k.core)?void 0:u.getTraceCtx()))[Hc]=o&&o[ls](),c[fs]=n,c[Rc]=t,c.xhrMonitoringState[os]=!0,c[Jc]={},c.async=r,c[ds]=a,i[As]=c),L(e)))},hkErr:Xs(k,15,Ls+".open"+Us)}),N(XMLHttpRequest,"send",{ns:w,req:function(e,n){var t;y||(t=(e=e[Lc])[As],A(e)&&!t.xhrMonitoringState[as]&&(q("xhr",t),t[us]=Nu(),k[Kc](t,void 0,void 0,e),t.xhrMonitoringState[as]=!0))},hkErr:Xs(k,17,Ls+Us)}),N(XMLHttpRequest,"abort",{ns:w,req:function(e){var n;y||(n=(e=e[Lc])[As],A(e)&&!n.xhrMonitoringState[cs]&&(n[zc]=1,n.xhrMonitoringState[cs]=!0))},hkErr:Xs(k,13,Ls+".abort"+Us)}),N(XMLHttpRequest,"setRequestHeader",{ns:w,req:function(e,n,t){!y&&o&&A(e=e[Lc])&&P(n)&&(e[As][Jc][n]=t)},hkErr:Xs(k,71,Ls+".setRequestHeader"+Us)}),n=!0),(h=!(t=p())||an(t.Request)||an(t.Request[i])||an(t[Rs])?null:t[Rs])&&(m=p(),C=h.polyfill,x||e?C&&E(Yo(m,Rs,{ns:w,req:function(e,n,t){M(null,n,t)}})):(E(Yo(m,Rs,{ns:w,req:function(t,r,i){var u,c,s,l,f,d,p;x||!e||M(null,r,i)||C&&n||(u=t.ctx(),c=r,s=i,d=(l=R())&&l[ss]()||Hi(),f=Hi().substr(0,16),(f=new Ds(d,f,k[Ms](),null==(d=k.core)?void 0:d.getTraceCtx()))[Hc]=l&&l[ls](),f[us]=Nu(),f[ds]=a,c instanceof Request?f[Rc]=c?c.url:"":f[Rc]=c,d="GET",s&&s[fs]?d=s[fs]:c&&c instanceof Request&&(d=c[fs]),f[fs]=d,p={},o&&new Headers((s?s[Gc]:0)||c instanceof Request&&c[Gc]||{}).forEach((function(e,n){P(n)&&(p[n]=e)})),f[Jc]=p,q(Rs,f),l=f,(d=k[Kc](l,r,i))!==i&&t.set(1,d),u.data=l)},rsp:function(e,n){var t;x||(t=e.ctx().data)&&(e.rslt=e.rslt.then((function(e){return O(0,(e||{})[ts],n,e,t,(function(){var n,t={statusText:(e||{})[rs],headerMap:null,correlationContext:z(e)};return g&&e&&(n={},e.headers.forEach((function(e,t){P(t)&&(n[t]=e)})),t[is]=n),t})),e})).catch((function(e){throw O(0,0,n,null,t,null,e.message||Xt(e)),e})))},hkErr:Xs(k,15,"Failed to monitor Window.fetch"+Us)},!0,function(){if(null==Vs)try{Vs=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Vs=!1}return Vs}())),e=!0),C&&(m[Rs].polyfill=C)),(u=k[Bc].getPlugin(Dc))&&(c=u.plugin[Oc]))},k._doTeardown=function(){D()},k.trackDependencyData=function(e,n){V(S,k[Bc],null,e,n)},k[Kc]=function(e,n,i,a){var u,f,d,p,v=k._currentWindowHost||t,g=C,m=k[Bc],h=e,y=i;return 0<g[Uc]&&(Js(m,g,g={core:m,xhr:a,input:n,init:y,traceId:h[qc],spanId:h[Fc],traceFlags:h[Hc],context:h[Oc]||{},aborted:!!h[zc]},"listener"),h[qc]=g[Vc],h[Fc]=g[jc],h[Hc]=g[Hc],h[Oc]=g[Oc]),n?(Pu[Xc](r,e[Wc](),v)&&(i=i||{},m=new Headers(i[Gc]||n instanceof Request&&n[Gc]||{}),l&&(u="|"+e[qc]+"."+e[Fc],m.set(Ka[3],u),o&&(e[Jc][Ka[3]]=u)),(f=r[$c]||c&&c[$c]())&&(m.set(Ka[0],Ka[2]+f),o&&(e[Jc][Ka[0]]=Ka[2]+f)),s&&(an(d=e[Hc])&&(d=1),p=Zi(Ji(e[qc],e[Fc],d)),m.set(Ka[4],p),o&&(e[Jc][Ka[4]]=p)),i[Gc]=m),i):a?(Pu[Xc](r,e[Wc](),v)&&(l&&(u="|"+e[qc]+"."+e[Fc],a[Qc](Ka[3],u),o&&(e[Jc][Ka[3]]=u)),(f=r[$c]||c&&c[$c]())&&(a[Qc](Ka[0],Ka[2]+f),o&&(e[Jc][Ka[0]]=Ka[2]+f)),s&&(an(d=e[Hc])&&(d=1),p=Zi(Ji(e[qc],e[Fc],d)),a[Qc](Ka[4],p),o&&(e[Jc][Ka[4]]=p))),a):void 0},k[Yc]=function(e,n,t){-1===v||u<v?(2!==r[Zc]&&1!==r[Zc]||"string"!=typeof e.id||"."===e.id[e.id[Uc]-1]||(e.id+="."),an(e[es])&&(e[es]=new Date),e=Sc(e,cc.dataType,cc.envelopeType,k[Ms](),n,t),k[Bc].track(e)):u===v&&Bs(k,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++u},k.addDependencyListener=function(e){return Gs(C,T++,e)},k.addDependencyInitializer=function(e){return Gs(S,T++,e)}})),k}var rl="snippet",il="getCookieMgr",ol="startTrackPage",al="stopTrackPage",ul="flush",cl="startTrackEvent",sl="stopTrackEvent",ll="addTelemetryInitializer",fl="pollInternalLogs",dl="getPlugin",pl="evtNamespace",vl=(bc="track")+"Event",gl=bc+"Trace",ml=bc+"Metric",hl=bc+"PageView",yl=bc+"Exception",xl=bc+"DependencyData",bl="set"+(Bo="AuthenticatedUserContext"),Il="clear"+Bo,wl="updateSnippetDefinitions",Tl="loadAppInsights",Cl="endpointUrl",Sl="maxBatchSizeInBytes",kl="maxBatchInterval",_l="disableExceptionTracking",El="disableTelemetry",Dl="emitLineDelimitedJson",Pl="diagnosticLogInterval",Nl="autoTrackPageVisitTime",Ml="samplingPercentage",Al="disableAjaxTracking",Rl="maxAjaxCallsPerView",Ll="isBeaconApiDisabled",Ul="disableCorrelationHeaders",ql="correlationHeaderExcludedDomains",Fl="disableFlushOnBeforeUnload",Hl="enableSessionStorageBuffer",Ol="isCookieUseDisabled",zl="isStorageUseDisabled",Vl="isBrowserLinkTrackingEnabled",jl="enableCorsCorrelation",Bl="config",Kl="context",Xl="push",Wl="version",Gl="queue",Jl="connectionString",$l="instrumentationKey",Ql="appInsights",Yl="disableIkeyDeprecationMessage",Zl="getTransmissionControls",ef="onunloadFlush",nf="addHousekeepingBeforeUnload",tf="indexOf",rf=[rl,"getDefaultConfig","_hasLegacyInitializers","_queue","_processLegacyInitializers"],of=(af.__ieDyn=1,af);function af(e,n){var t,r=this,i=!1,o=[];It(af,this,(function(a){var u;function c(e){i||(n[ll]((function(e){e.tags[ta]=o})),i=!0),o[Xl](e)}(u=e[Bl]||{})[Cl]=u[Cl]||ia+oa,u.sessionRenewalMs=18e5,u.sessionExpirationMs=864e5,u[Sl]=0<u[Sl]?u[Sl]:102400,u[kl]=isNaN(u[kl])?15e3:u[kl],u.enableDebug=za(u.enableDebug),u[_l]=za(u[_l]),u[El]=za(u[El]),u.verboseLogging=za(u.verboseLogging),u[Dl]=za(u[Dl]),u[Pl]=u[Pl]||1e4,u[Nl]=za(u[Nl]),(isNaN(u[Ml])||u[Ml]<=0||100<=u[Ml])&&(u[Ml]=100),u[Al]=za(u[Al]),u[Rl]=isNaN(u[Rl])?500:u[Rl],u[Ll]=za(u[Ll],!0),u[Ul]=za(u[Ul]),u[ql]=u[ql]||$s,u[Fl]=za(u[Fl]),u.disableFlushOnUnload=za(u.disableFlushOnUnload,u[Fl]),u[Hl]=za(u[Hl],!0),u.isRetryDisabled=za(u.isRetryDisabled),u[Ol]=za(u[Ol]),u[zl]=za(u[zl]),u[Vl]=za(u[Vl]),u[jl]=za(u[jl]),t=u,a[Bl]=t,a[rl]=e,a.appInsightsNew=n,a[Kl]={addTelemetryInitializer:c.bind(a)},a.addTelemetryInitializers=c,jn(a,n,[il,ol,al,ul,cl,sl]),a[hl]=function(e,t,r,i,o){n[hl]({name:e,uri:t,properties:r,measurements:i})},a[vl]=function(e,t,r){n[vl]({name:e})},a.trackDependency=function(e,t,r,i,o,a,u){n[xl]({id:e,target:r,type:i,duration:o,properties:{HttpMethod:t},success:a,responseCode:u})},a[yl]=function(e,t,r,i,o){n[yl]({exception:e})},a[ml]=function(e,t,r,i,o,a){n[ml]({name:e,average:t,sampleCount:r,min:i,max:o})},a[gl]=function(e,t,r){n[gl]({message:e,severityLevel:r})},a[bl]=function(e,t,r){n[Kl].user[bl](e,t,r)},a[Il]=function(){n[Kl].user[Il]()},a._onerror=function(e,t,r,i,o){n._onerror({message:e,url:t,lineNumber:r,columnNumber:i,error:o})},a.downloadAndSetup=function(e){Hn("downloadAndSetup not implemented in web SKU")},a[wl]=function(e){zn(e,r,(function(e){return e&&-1===Tn(rf,e)}))},a[Tl]=function(){a[Bl].iKey&&(e=a[hl],a[hl]=function(n,t,r){e.call(a,null,n,t,r)});var e,n="logPageView";ln(a[rl][n])&&(r[n]=function(e,n,t){a[hl](null,e,n,t)}),n="logEvent";return ln(a[rl][n])&&(r[n]=function(e,n,t){a[vl](e,n,t)}),r}}))}var uf="toString",cf="disableExceptionTracking",sf="autoTrackPageVisitTime",lf="overridePageViewDuration",ff="enableUnhandledPromiseRejectionTracking",df="samplingPercentage",pf="isStorageUseDisabled",vf="isBrowserLinkTrackingEnabled",gf="enableAutoRouteTracking",mf="namePrefix",hf="disableFlushOnBeforeUnload",yf="core",xf="dataType",bf="envelopeType",If="diagLog",wf="track",Tf="trackPageView",Cf="trackPreviousPageVisit",Sf="sendPageViewInternal",kf="sendPageViewPerformanceInternal",_f="populatePageViewPerformanceEvent",Ef="href",Df="sendExceptionInternal",Pf="exception",Nf="error",Mf="_onerror",Af="errorSrc",Rf="lineNumber",Lf="columnNumber",Uf="message",qf="CreateAutoException",Ff="addTelemetryInitializer",Hf="duration",Of="length",zf="isPerformanceTimingSupported",Vf="getPerformanceTiming",jf="navigationStart",Bf="shouldCollectDuration",Kf="isPerformanceTimingDataReady",Xf="responseStart",Wf="loadEventEnd",Gf="responseEnd",Jf="connectEnd",$f="pageVisitStartTime",Qf=null,Yf=(Zf.__ieDyn=1,Zf);function Zf(e,n,t,r){It(Zf,this,(function(i){var o,a=null,u=[],c=!1;function s(e){t&&t.flush(e)}function l(e){u.push(e),function e(){a=a||setTimeout((function(){a=null;var n=u.slice(0),t=!1;u=[],wn(n,(function(e){e()?t=!0:u.push(e)})),0<u[Of]&&e(),t&&s(!0)}),100)}()}t&&(o=t.logger),i[Tf]=function(t,i){var a,u=t.name,f=(!an(u)&&"string"==typeof u||(a=Ut(),u=t.name=a&&a.title||""),t.uri);if(!an(f)&&"string"==typeof f||(a=Ot(),f=t.uri=a&&a[Ef]||""),!r[zf]())return e[Sf](t,i),s(!0),void(function(){if(null==Qf)try{Qf=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Qf=!1}return Qf}()||fr(o,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var d,p,v=!1,g=r[Vf]()[jf];0<g&&(d=Mu(g,+new Date),r[Bf](d)||(d=void 0)),an(i)||an(i[Hf])||(p=i[Hf]),!n&&isNaN(p)||(isNaN(p)&&((i=i||{})[Hf]=d),e[Sf](t,i),s(!0),v=!0),i=i||{},l((function(){var n,a=!1;try{r[Kf]()?(a=!0,n={name:u,uri:f},r[_f](n),n.isValid||v?(v||(i[Hf]=n.durationMs,e[Sf](t,i)),c||(e[kf](n,i),c=!0)):(i[Hf]=d,e[Sf](t,i))):0<g&&6e4<Mu(g,+new Date)&&(a=!0,v||(i[Hf]=6e4,e[Sf](t,i)))}catch(e){fr(o,1,38,"trackPageView failed on page load calculation: "+Rn(e),{exception:Xt(e)})}return a}))},i.teardown=function(e,n){var t;a&&(clearTimeout(a),a=null,t=u.slice(0),u=[],wn(t,(function(e){e()})))}}))}var ed=36e5,nd=["googlebot","adsbot-google","apis-google","mediapartners-google"];function td(){var e=zt();return e&&!!e.timing}function rd(){var e;return(e=(e=zt())?e.timing:0)&&0<e.domainLookupStart&&0<e[jf]&&0<e[Xf]&&0<e.requestStart&&0<e[Wf]&&0<e[Gf]&&0<e[Jf]&&0<e.domLoading}function id(){return td()?zt().timing:null}function od(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=(Ft()||{}).userAgent,r=!1;if(t)for(var i=0;i<nd[Of];i++)r=r||!!~t.toLowerCase().indexOf(nd[i]);if(r)return!1;for(i=0;i<e[Of];i++)if(e[i]<0||e[i]>=ed)return!1;return!0}ud.__ieDyn=1;var ad=ud;function ud(e){var n=ur(e);It(ud,this,(function(e){e[_f]=function(t){t.isValid=!1;var r=(r=zt())&&r.getEntriesByType&&0<r.getEntriesByType("navigation")[Of]?zt().getEntriesByType("navigation")[0]:null,i=id(),o=0,a=0,u=0,c=0;(r||i)&&(r=r?(o=r[Hf],a=0===r.startTime?r[Jf]:Mu(r.startTime,r[Jf]),u=Mu(r.requestStart,r[Xf]),c=Mu(r[Xf],r[Gf]),Mu(r.responseEnd,r[Wf])):(o=Mu(i[jf],i[Wf]),a=Mu(i[jf],i[Jf]),u=Mu(i.requestStart,i[Xf]),c=Mu(i[Xf],i[Gf]),Mu(i.responseEnd,i[Wf])),0===o?fr(n,2,10,"error calculating page view performance.",{total:o,network:a,request:u,response:c,dom:r}):e[Bf](o,a,u,c,r)?o<Math.floor(a)+Math.floor(u)+Math.floor(c)+Math.floor(r)?fr(n,2,8,"client performance math error.",{total:o,network:a,request:u,response:c,dom:r}):(t.durationMs=o,t.perfTotal=t[Hf]=Va(o),t.networkConnect=Va(a),t.sentRequest=Va(u),t.receivedResponse=Va(c),t.domProcessing=Va(r),t.isValid=!0):fr(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:o,network:a,request:u,response:c,dom:r}))},e[Vf]=id,e[zf]=td,e[Kf]=rd,e[Bf]=od}))}sd.__ieDyn=1;var cd=sd;function sd(e,n){var t="prevPageVisitData";It(sd,this,(function(r){function i(n,r){var i=null;try{i=function(){var n,r,i=null;try{ou()&&(n=An(),(r=au(e,t))&&Vt()&&((i=jt().parse(r)).pageVisitTime=n-i[$f],cu(e,t)))}catch(n){dr(e,"Stop page visit timer failed: "+Xt(n)),i=null}return i}(),function(n,r){try{var i,o;ou()&&(null!=au(e,t)&&Hn("Cannot call startPageVisit consecutively without first calling stopPageVisit"),i=new ld(n,r),o=jt().stringify(i),uu(e,t,o))}catch(n){dr(e,"Call to start failed: "+Xt(n))}}(n,r)}catch(n){dr(e,"Call to restart failed: "+Xt(n)),i=null}return i}r[Cf]=function(t,r){try{var o=i(t,r);o&&n(o.pageName,o.pageUrl,o.pageVisitTime)}catch(n){dr(e,"Auto track page visit time failed, metric will not be collected: "+Xt(n))}},Pn(r,"_logger",(function(){return e})),Pn(r,"pageVisitTimeTrackingHandler",(function(){return n}))}))}var ld=function(e,n){this[$f]=An(),this.pageName=e,this.pageUrl=n},fd=function(e,n){var t=this,r={};t.start=function(n){void 0!==r[n]&&fr(e,2,62,"start was called more than once for this event without calling stop.",{name:n,key:n},!0),r[n]=+new Date},t.stop=function(n,i,o,a){var u=r[n];isNaN(u)?fr(e,2,63,"stop was called without a corresponding start.",{name:n,key:n},!0):(u=Mu(u,+new Date),t.action(n,i,u,o,a)),delete r[n],r[n]=void 0}};function dd(e,n){e&&e.dispatchEvent&&n&&e.dispatchEvent(n)}function pd(e,n){return(e=e||n)<6e4?6e4:e}function vd(e){return(e=e||{}).sessionRenewalMs=pd(e.sessionRenewalMs,18e5),e.sessionExpirationMs=pd(e.sessionExpirationMs,864e5),e[cf]=za(e[cf]),e[sf]=za(e[sf]),e[lf]=za(e[lf]),e[ff]=za(e[ff]),(isNaN(e[df])||e[df]<=0||100<=e[df])&&(e[df]=100),e[pf]=za(e[pf]),e[vf]=za(e[vf]),e[gf]=za(e[gf]),e[mf]=e[mf]||"",e.enableDebug=za(e.enableDebug),e[hf]=za(e[hf]),e.disableFlushOnUnload=za(e.disableFlushOnUnload,e[hf]),e}y(hd,gd=Je),hd.Version="2.8.15",hd.getDefaultConfig=vd;var gd,md=hd;function hd(){var e,n,t,i,o,a,u,c,s,l,f,d,p,v,g,h,y,x=gd.call(this)||this;return x.identifier=Nc,x.priority=180,x.autoRoutePVDelay=500,It(hd,x,(function(x,b){var I=b._addHook;function w(e,n,t,r,i){x[If]().throwInternal(e,n,t,r,i)}function T(){a=o=i=t=n=e=null;var r=Ot(v=p=d=f=l=s=c=u=!1);g=r&&r[Ef]||"",y=h=null}T(),x.getCookieMgr=function(){return ni(x[yf])},x.processTelemetry=function(e,n){x.processNext(e,n)},x.trackEvent=function(e,n){try{var t=Sc(e,Uu[xf],Uu[bf],x[If](),n);x[yf][wf](t)}catch(e){w(2,39,"trackTrace failed, trace will not be collected: "+Rn(e),{exception:Xt(e)})}},x.startTrackEvent=function(n){try{e.start(n)}catch(e){w(1,29,"startTrackEvent failed, event will not be collected: "+Rn(e),{exception:Xt(e)})}},x.stopTrackEvent=function(n,t,r){try{e.stop(n,void 0,t,r)}catch(e){w(1,30,"stopTrackEvent failed, event will not be collected: "+Rn(e),{exception:Xt(e)})}},x.trackTrace=function(e,n){try{var t=Sc(e,lc[xf],lc[bf],x[If](),n);x[yf][wf](t)}catch(e){w(2,39,"trackTrace failed, trace will not be collected: "+Rn(e),{exception:Xt(e)})}},x.trackMetric=function(e,n){try{var t=Sc(e,ic[xf],ic[bf],x[If](),n);x[yf][wf](t)}catch(e){w(1,36,"trackMetric failed, metric will not be collected: "+Rn(e),{exception:Xt(e)})}},x[Tf]=function(e,n){try{var r=e||{};t[Tf](r,m(m(m({},r.properties),r.measurements),n)),x.config[sf]&&o[Cf](r.name,r.uri)}catch(e){w(1,37,"trackPageView failed, page view will not be collected: "+Rn(e),{exception:Xt(e)})}},x[Sf]=function(e,n,t){var r=((r=Ut())&&(e.refUri=void 0===e.refUri?r.referrer:e.refUri),Sc(e,ac[xf],ac[bf],x[If](),n,t));x[yf][wf](r)},x[kf]=function(e,n,t){e=Sc(e,dc[xf],dc[bf],x[If](),n,t),x[yf][wf](e)},x.trackPageViewPerformance=function(e,n){e=e||{};try{i[_f](e),x[kf](e,n)}catch(e){w(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Rn(e),{exception:Xt(e)})}},x.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=Ut())&&t.title||""),n.start(e)}catch(e){w(1,31,"startTrackPage failed, page view may not be collected: "+Rn(e),{exception:Xt(e)})}},x.stopTrackPage=function(e,t,r,i){try{var a,u;"string"!=typeof e&&(e=(a=Ut())&&a.title||""),"string"!=typeof t&&(t=(u=Ot())&&u[Ef]||""),n.stop(e,t,r,i),x.config[sf]&&o[Cf](e,t)}catch(e){w(1,32,"stopTrackPage failed, page view will not be collected: "+Rn(e),{exception:Xt(e)})}},x[Df]=function(e,n,t){var r=e&&(e[Pf]||e[Nf])||mn(e)&&e||{name:e&&typeof e,message:e||aa};e=e||{},r=Sc(new Qu(x[If](),r,e.properties||n,e.measurements,e.severityLevel,e.id).toInterface(),Qu[xf],Qu[bf],x[If](),n,t);x[yf][wf](r)},x.trackException=function(e,n){e&&!e[Pf]&&e[Nf]&&(e[Pf]=e[Nf]);try{x[Df](e,n)}catch(e){w(1,35,"trackException failed, exception will not be collected: "+Rn(e),{exception:Xt(e)})}},x[Mf]=function(e){var n,t,r,i=e&&e[Nf],o=e&&e.evt;try{o||(s=Rt())&&(o=s.event);var a=e&&e.url||(Ut()||{}).URL,u=e[Af]||"window.onerror@"+a+":"+(e[Rf]||0)+":"+(e[Lf]||0),c={errorSrc:u,url:a,lineNumber:e[Rf]||0,columnNumber:e[Lf]||0,message:e[Uf]};ja(e.message,e.url,e.lineNumber,e.columnNumber,e[Nf])?(n=Qu[qf]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",a,e[Rf]||0,e[Lf]||0,i,o,null,u),t=c,r=Sc(n,Qu[xf],Qu[bf],x[If](),t),x[yf][wf](r)):(e[Af]||(e[Af]=u),x.trackException({exception:e,severityLevel:3},c))}catch(e){var s=i?i.name+", "+i[Uf]:"null";w(1,11,"_onError threw exception while logging error, error will not be collected: "+Rn(e),{exception:Xt(e),errorString:s})}},x[Ff]=function(e){if(x[yf])return x[yf][Ff](e);(a=a||[]).push(e)},x.initialize=function(m,w,T,C){if(!x.isInitialized()){an(w)&&Hn("Error initializing"),b.initialize(m,w,T,C),m.storagePrefix&&eu(m.storagePrefix);try{y=Ei(Ur(x.identifier),w.evtNamespace&&w.evtNamespace()),a&&(wn(a,(function(e){w[Ff](e)})),a=null),z=so(null,O=m,x[yf]),V=x.identifier,j=vd(O),B=x.config=z.getExtCfg(V),void 0!==j&&dn(j,(function(e,n){B[e]=z.getConfig(V,e,n),void 0===B[e]&&(B=n)}));var S,k,_,E,D,P,N,M,A,R,L,U,q,F=B;on((H=F)[pf])||(H[pf]?Za():(Wa=nu(!0),Ga=ou(!0))),i=new ad(x[yf]),t=new Yf(x,F[lf],x[yf],i),o=new cd(x[If](),(function(e,n,t){x.trackMetric({name:"PageVisitTime",average:t,max:t,min:t,sampleCount:1},{PageName:e,PageUrl:n})})),u=F[vf]||m[vf],!c&&u&&(S=["/browserLinkSignalR/","/__browserLink/"],x[Ff]((function(e){if(u&&e.baseType===cc[xf]){var n=e.baseData;if(n)for(var t=0;t<S[Of];t++)if(n.target&&~n.target.indexOf(S[t]))return!1}return!0})),c=!0),(e=new fd(x[If]())).action=function(e,n,t,r,i){i=i||{},(r=r||{}).duration=t[uf](),x.trackEvent({name:e,properties:r,measurements:i})},(n=new fd(x[If]())).action=function(e,n,t,r,i){(r=an(r)?{}:r).duration=t[uf](),x[Sf]({name:e,uri:n,properties:r,measurements:i},r)},At()&&(_=F,E=Rt(),D=Ot(),(f=_[cf])||d||_.autoExceptionInstrumented||(I(Zo(E,"onerror",{ns:y,rsp:function(e,n,t,r,i,o){f||!0===e.rslt||x[Mf](Qu[qf](n,t,r,i,o,e.evt))}},!1)),d=!0),N=D,(p=!0===(P=_)[ff])&&!v&&(I(Zo(E,"onunhandledrejection",{ns:y,rsp:function(e,n){var t,r;p&&!0!==e.rslt&&x[Mf](Qu[qf]((t=n)&&t.reason?!hn(r=t.reason)&&ln(r[uf])?r[uf]():Xt(r):t||"",N?N[Ef]:"",0,0,n,e.evt))}},!1)),v=!0,P.autoUnhandledPromiseInstrumented=v),M=Rt(),A=Ot(),s=!0===F[gf],M&&s&&Ht()&&ln((k=Ht()?history:Mt("history")).pushState)&&ln(k.replaceState)&&typeof Event!==r&&(R=M,L=k,U=A,q=F[mf]||"",l||(I(Zo(L,"pushState",{ns:y,rsp:function(){s&&(dd(R,ca(q+"pushState")),dd(R,ca(q+"locationchange")))}},!0)),I(Zo(L,"replaceState",{ns:y,rsp:function(){s&&(dd(R,ca(q+"replaceState")),dd(R,ca(q+"locationchange")))}},!0)),Di(R,q+"popstate",(function(){s&&dd(R,ca(q+"locationchange"))}),y),Di(R,q+"locationchange",(function(){var e,n;h&&(g=h),h=U&&U[Ef]||"",s&&(n=null,(n=x[yf]&&x[yf].getTraceCtx?x[yf].getTraceCtx(!1):n)||(e=x[yf].getPlugin(Dc))&&(e=e.plugin.context)&&(n=Au(e.telemetryTrace)),(e=n)&&(e.setTraceId(Hi()),n="_unknown_",U&&U.pathname&&(n=U.pathname+(U.hash||"")),e.setName(fu(x[If](),n))),setTimeout(function(e){x[Tf]({refUri:e,properties:{duration:0}})}.bind(x,g),x.autoRoutePVDelay))}),y),l=!0)))}catch(e){throw x.setInitialized(!1),e}}var H,O,z,V,j,B},x._doTeardown=function(e,n){t&&t.teardown(e,n),Pi(window,null,null,y),T()},Pn(x,"_pageViewManager",(function(){return t})),Pn(x,"_pageViewPerformanceManager",(function(){return i})),Pn(x,"_pageVisitTimeManager",(function(){return o})),Pn(x,"_evtNamespace",(function(){return"."+y}))})),x}var yd="duration",xd="tags",bd="deviceType",Id="data",wd="name",Td="traceID",Cd="length",Sd="stringify",kd="measurements",_d="dataType",Ed="envelopeType",Dd="toString",Pd="onLine",Nd="isOnline",Md="enqueue",Ad="count",Rd="push",Ld="emitLineDelimitedJson",Ud="clear",qd="batchPayloads",Fd="markAsSent",Hd="clearSent",Od="bufferOverride",zd="BUFFER_KEY",Vd="SENT_BUFFER_KEY",jd="MAX_BUFFER_SIZE",Bd="namePrefix",Kd="maxBatchSizeInBytes",Xd="triggerSend",Wd="diagLog",Gd="onunloadDisableBeacon",Jd="isBeaconApiDisabled",$d="_sender",Qd="_senderConfig",Yd="enableSessionStorageBuffer",Zd="_buffer",ep="samplingPercentage",np="instrumentationKey",tp="endpointUrl",rp="customHeaders",ip="disableXhr",op="onunloadDisableFetch",ap="disableTelemetry",up="baseType",cp="sampleRate",sp="convertUndefined",lp="_onError",fp="_onPartialSuccess",dp="_onSuccess",pp="itemsAccepted",vp="isRetryDisabled",gp="setRequestHeader",mp="maxBatchInterval",hp="eventsSendRequest",yp="disableInstrumentationKeyValidation",xp="getSamplingScore",bp="baseType",Ip="baseData",wp="properties",Tp="true";function Cp(e,n,t){Ln(e,n,t,Fn)}function Sp(e,n,t){an(e)||dn(e,(function(e,r){yn(r)?t[e]=r:hn(r)?n[e]=r:Vt()&&(n[e]=jt()[Sd](r))}))}function kp(e,n){an(e)||dn(e,(function(t,r){e[t]=r||n}))}function _p(e,n,t,r){Cp(r=new Lu(e,r,n),"sampleRate",t[na]),(t[Ip]||{}).startTime&&(r.time=In(t[Ip].startTime)),r.iKey=t.iKey,n=t.iKey.replace(/-/g,""),r[wd]=r[wd].replace("{0}",n),n=e,e=t;for(var i,o=r,a=o[xd]=o[xd]||{},u=e.ext=e.ext||{},c=e[xd]=e[xd]||[],s=((i=((e=((i=((i=((i=((i=u.user)&&(Cp(a,Ec.userAuthUserId,i.authId),Cp(a,Ec.userId,i.id||i.localId)),u.app))&&Cp(a,Ec.sessionId,i.sesId),u.device))&&(Cp(a,Ec.deviceId,i.id||i.localId),Cp(a,Ec[bd],i.deviceClass),Cp(a,Ec.deviceIp,i.ip),Cp(a,Ec.deviceModel,i.model),Cp(a,Ec[bd],i[bd])),e.ext.web))&&(Cp(a,Ec.deviceLanguage,i.browserLang),Cp(a,Ec.deviceBrowserVersion,i.browserVer),Cp(a,Ec.deviceBrowser,i.browser),Cp(e=(e=(e=o[Id]=o[Id]||{})[Ip]=e[Ip]||{})[wp]=e[wp]||{},"domain",i.domain),Cp(e,"isManual",i.isManual?Tp:null),Cp(e,"screenRes",i.screenRes),Cp(e,"userConsent",i.userConsent?Tp:null)),u.os))&&Cp(a,Ec.deviceOS,e[wd]),u.trace))&&(Cp(a,Ec.operationParentId,i.parentID),Cp(a,Ec.operationName,fu(n,i[wd])),Cp(a,Ec.operationId,i[Td])),{}),l=c[Cd]-1;0<=l;l--)dn(c[l],(function(e,n){s[e]=n})),c.splice(l,1);return dn(c,(function(e,n){s[e]=n})),(e=m(m({},a),s))[Ec.internalSdkVersion]||(e[Ec.internalSdkVersion]=fu(n,"javascript:".concat(Dp.Version),64)),o[xd]=Bn(e),t[xd]=t[xd]||[],Bn(r)}function Ep(e,n){an(n[Ip])&&fr(e,1,46,"telemetryItem.baseData cannot be null.")}var Dp={Version:"2.8.15"};function Pp(e,n,t){Ep(e,n);var r={},i={};n[bp]!==Uu[_d]&&(r.baseTypeSource=n[bp]),n[bp]===Uu[_d]?(r=n[Ip][wp]||{},i=n[Ip][kd]||{}):n[Ip]&&Sp(n[Ip],r,i),Sp(n[Id],r,i),an(t)||kp(r,t),t=n[Ip][wd],t=new Uu(e,t,r,i),r=new vc(Uu[_d],t);return _p(e,Uu[Ed],n,r)}function Np(e,n){Pi(e,null,null,n)}function Mp(e,n){var t=[],r=!1;this._get=function(){return t},this._set=function(e){return t=e},It(Mp,this,(function(i){i[Md]=function(o){i[Ad]()>=n.eventsLimitInMem()?r||(fr(e,2,105,"Maximum in-memory buffer size reached: "+i[Ad](),!0),r=!0):t[Rd](o)},i[Ad]=function(){return t[Cd]},i.size=function(){for(var e=t[Cd],r=0;r<t[Cd];r++)e+=t[r][Cd];return n[Ld]()||(e+=2),e},i[Ud]=function(){r=!(t=[])},i.getItems=function(){return t.slice(0)},i[qd]=function(e){return e&&0<e[Cd]?n[Ld]()?e.join("\n"):"["+e.join(",")+"]":null}}))}Mp.__ieDyn=1,y(Lp,Ap=Fo=Mp),Lp.__ieDyn=1;var Ap,Rp=Lp;function Lp(e,n){return It(Lp,e=Ap.call(this,e,n)||this,(function(e,n){e[Fd]=function(e){n[Ud]()},e[Hd]=function(e){}})),e}y(Fp,Up=Fo),Fp.BUFFER_KEY="AI_buffer",Fp.SENT_BUFFER_KEY="AI_sentBuffer",Fp.MAX_BUFFER_SIZE=2e3;var Up,qp=Fp;function Fp(e,n){var t=Up.call(this,e,n)||this,r=!1,i=n[Od]()||{getItem:au,setItem:uu},o=i.getItem,a=i.setItem;return It(Fp,t,(function(t,i){var u=l(Fp[zd]),c=l(Fp[Vd]);function s(e,n){var t=[];return wn(n,(function(n){ln(n)||-1!==Tn(e,n)||t[Rd](n)})),t}function l(t){try{t=n[Bd]&&n[Bd]()?n[Bd]()+"_"+t:t;var r=o(e,t);if(r){var i=jt().parse(r);if((i=hn(i)?jt().parse(i):i)&&gn(i))return i}}catch(n){fr(e,1,42," storage key: "+t+", "+Rn(n),{exception:Xt(n)})}return[]}function f(t,r){try{t=n[Bd]&&n[Bd]()?n[Bd]()+"_"+t:t;var i=JSON[Sd](r);a(e,t,i)}catch(n){a(e,t,JSON[Sd]([])),fr(e,2,41," storage key: "+t+", "+Rn(n)+". Buffer cleared",{exception:Xt(n)})}}(c=t._set(u.concat(c)))[Cd]>Fp[jd]&&(c[Cd]=Fp[jd]),f(Fp[Vd],[]),f(Fp[zd],c),t[Md]=function(n){t[Ad]()>=Fp[jd]?r||(fr(e,2,67,"Maximum buffer size reached: "+t[Ad](),!0),r=!0):(i[Md](n),f(Fp[zd],t._get()))},t[Ud]=function(){i[Ud](),f(Fp[zd],t._get()),f(Fp[Vd],[]),r=!1},t[Fd]=function(n){f(Fp[zd],t._set(s(n,t._get())));var r=l(Fp[Vd]);r instanceof Array&&n instanceof Array&&((r=r.concat(n))[Cd]>Fp[jd]&&(fr(e,1,67,"Sent buffer reached its maximum size: "+r[Cd],!0),r[Cd]=Fp[jd]),f(Fp[Vd],r))},t[Hd]=function(e){e=s(e,l(Fp[Vd])),f(Fp[Vd],e)}})),t}Op.__ieDyn=1;var Hp=Op;function Op(e){It(Op,this,(function(n){function t(n,o){var a="__aiCircularRefCheck",u={};if(!n)return fr(e,1,48,"cannot serialize object because it is null or undefined",{name:o},!0),u;if(n[a])return fr(e,2,50,"Circular reference detected while serializing object",{name:o},!0),u;if(n.aiDataContract)return n[a]=!0,dn(n.aiDataContract,(function(i,a){var c=ln(a)?1&a():1&a,s=ln(a)?4&a():4&a,l=(a=2&a,void 0!==n[i]),f=sn(n[i])&&null!==n[i];!c||l||a?s||void 0!==(c=f?(a?r:t)(n[i],i):n[i])&&(u[i]=c):fr(e,1,24,"Missing required field specification. The field is required but not present on source",{field:i,name:o})})),delete n[a],u;if("measurements"===o)u=i(n,"number",o);else if("properties"===o)u=i(n,"string",o);else if("tags"===o)u=i(n,"string",o);else if(gn(n))u=r(n,o);else{fr(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:o},!0);try{jt()[Sd](n),u=n}catch(n){fr(e,1,48,n&&ln(n[Dd])?n[Dd]():"Error serializing object",null,!0)}}return u}function r(n,r){if(n)if(gn(n))for(var i=[],o=0;o<n[Cd];o++){var a=t(n[o],r+"["+o+"]");i[Rd](a)}else fr(e,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:r},!0);return i}function i(n,t,r){var i;return n&&(i={},dn(n,(function(n,o){"string"===t?void 0===o?i[n]="undefined":null===o?i[n]="null":o[Dd]?i[n]=o[Dd]():i[n]="invalid field: toString() is not defined.":"number"===t?i[n]=void 0===o?"undefined":null===o?"null":isNaN(o=parseFloat(o))?"NaN":o:(i[n]="invalid field: "+r+" is of unknown type.",fr(e,1,i[n],null,!0))}))),i}n.serialize=function(n){n=t(n,"root");try{return jt()[Sd](n)}catch(n){fr(e,1,48,n&&ln(n[Dd])?n[Dd]():"Error serializing object",null,!0)}}}))}Vp.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Vp.INT_MAX_VALUE*100},Vp.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[Cd]<8;)e=e.concat(e);for(var n=5381,t=0;t<e[Cd];++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Vp.INT_MAX_VALUE=2147483647;var zp=Vp;function Vp(){}var jp=function(){var e=new zp,n=new Tc;this[xp]=function(t){return t[xd]&&t[xd][n.userId]?e.getHashCodeScore(t[xd][n.userId]):t.ext&&t.ext.user&&t.ext.user.id?e.getHashCodeScore(t.ext.user.id):t[xd]&&t[xd][n.operationId]?e.getHashCodeScore(t[xd][n.operationId]):t.ext&&t.ext.telemetryTrace&&t.ext.telemetryTrace[Td]?e.getHashCodeScore(t.ext.telemetryTrace[Td]):100*Math.random()}},Bp=(Kp.prototype.isSampledIn=function(e){var n=this[cp];return null==n||100<=n||e.baseType===ic[_d]||this.samplingScoreGenerator[xp](e)<n},Kp);function Kp(e,n){this.INT_MAX_VALUE=2147483647,n=n||ur(null),(100<e||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[cp]=e,this.samplingScoreGenerator=new jp}function Xp(e){try{return e.responseText}catch(e){}return null}function Wp(){var e={endpointUrl:function(){return ia+oa},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},bufferOverride:function(){return!1},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){},namePrefix:function(){},samplingPercentage:function(){return 100},customHeaders:function(){},convertUndefined:function(){},eventsLimitInMem:function(){return 1e4}};return e}(Ic={})[Uu.dataType]=Pp,Ic[lc.dataType]=function(e,n,t){Ep(e,n);var r=n[Ip].message,i=n[Ip].severityLevel,o=n[Ip][wp]||{},a=n[Ip][kd]||{};Sp(n[Id],o,a),an(t)||kp(o,t),t=new lc(e,r,i,o,a),r=new vc(lc[_d],t);return _p(e,lc[Ed],n,r)},Ic[ac.dataType]=function(e,n,t){Ep(e,n);var r,i=(an(i=n[Ip])||an(i[wp])||an(i[wp][yd])?an(n[Id])||an(n[Id][yd])||(r=n[Id][yd],delete n[Id][yd]):(r=i[wp][yd],delete i[wp][yd]),n[Ip]),o=(((n.ext||{}).trace||{})[Td]&&(o=n.ext.trace[Td]),i.id||o),a=i[wd],u=i.uri,c=i[wp]||{},s=i[kd]||{};an(i.refUri)||(c.refUri=i.refUri),an(i.pageType)||(c.pageType=i.pageType),an(i.isLoggedIn)||(c.isLoggedIn=i.isLoggedIn[Dd]()),an(i[wp])||dn(i[wp],(function(e,n){c[e]=n})),Sp(n[Id],c,s),an(t)||kp(c,t),i=new ac(e,a,u,r,c,s,o),t=new vc(ac[_d],i);return _p(e,ac[Ed],n,t)},Ic[dc.dataType]=function(e,n,t){Ep(e,n);var r=n[Ip],i=r[wd],o=r.uri||r.url,a=r[wp]||{},u=r[kd]||{};Sp(n[Id],a,u),an(t)||kp(a,t),t=new dc(e,i,o,void 0,a,u,r),i=new vc(dc[_d],t);return _p(e,dc[Ed],n,i)},Ic[Qu.dataType]=function(e,n,t){Ep(e,n);var r=n[Ip][kd]||{},i=n[Ip][wp]||{};Sp(n[Id],i,r),an(t)||kp(i,t),t=n[Ip],t=Qu.CreateFromInterface(e,t,i,r),i=new vc(Qu[_d],t);return _p(e,Qu[Ed],n,i)},Ic[ic.dataType]=function(e,n,t){Ep(e,n);var r=(o=n[Ip])[wp]||{},i=o[kd]||{},o=(t=(Sp(n[Id],r,i),an(t)||kp(r,t),new ic(e,o[wd],o.average,o.sampleCount,o.min,o.max,o.stdDev,r,i)),new vc(ic[_d],t));return _p(e,ic[Ed],n,o)},Ic[cc.dataType]=function(e,n,t){Ep(e,n);var r=n[Ip][kd]||{},i=n[Ip][wp]||{};Sp(n[Id],i,r),an(t)||kp(i,t),t=n[Ip];if(an(t))return dr(e,"Invalid input for dependency data"),null;var o=t[wp]&&t[wp][ra]?t[wp][ra]:"GET";o=new cc(e,t.id,t.target,t[wd],t[yd],t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new vc(cc[_d],o);return _p(e,cc[Ed],n,t)};var Gp,Jp=Ic,$p=(y(Qp,Gp=Je),Qp.constructEnvelope=function(e,n,t,r){return e=n===e.iKey||an(n)?e:m(m({},e),{iKey:n}),(Jp[e.baseType]||Pp)(t,e,r)},Qp);function Qp(){var e,n,t,r,i,o,a,u,c,s,l,f=Gp.call(this)||this,d=(f.priority=1001,f.identifier=Pc,f._senderConfig=Wp(),0);return It(Qp,f,(function(p,v){function g(n,t,r,i,o,a){var u=null;p._appId||(u=C(a))&&u.appId&&(p._appId=u.appId),(n<200||300<=n)&&0!==n?(301!==n&&307!==n&&308!==n||m(r))&&!p[Qd][vp]()&&E(n)?(S(t),fr(p[Wd](),2,40,". Response code "+n+". Will retry to send "+t[Cd]+" items.")):p[lp](t,o):s&&!s[Nd]()?p[Qd][vp]()||(S(t,10),fr(p[Wd](),2,40,". Offline - Response Code: ".concat(n,". Offline status: ").concat(!s.isOnline(),". Will retry to send ").concat(t.length," items."))):(m(r),206===n?(u=u||C(a))&&!p[Qd][vp]()?p[fp](t,u):p[lp](t,o):(e=0,p[dp](t,i)))}function m(e){return!(10<=o)&&!an(e)&&""!==e&&e!==p[Qd][tp]()&&(p[Qd][tp]=function(){return e},++o,1)}function h(e,n){c?c(e,!1):x(e)}function y(e){var n=Ft(),t=p[Zd],r=p[Qd][tp](),i=p._buffer[qd](e);i=new Blob([i],{type:"text/plain;charset=UTF-8"});return(r=n.sendBeacon(r,i))&&(t[Fd](e),p._onSuccess(e,e[Cd])),r}function x(e,n){if(gn(e)&&0<e[Cd]&&!y(e)){for(var t=[],r=0;r<e[Cd];r++){var i=e[r];y([i])||t[Rd](i)}0<t[Cd]&&(u&&u(t,!0),fr(p[Wd](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function b(e,n){var t=new XMLHttpRequest,r=p[Qd][tp]();try{t[ea]=!0}catch(e){}t.open("POST",r,n),t[gp]("Content-type","application/json"),Du(r)&&t[gp](Ka[6],Ka[7]),wn(Dn(a),(function(e){t[gp](e,a[e])})),t.onreadystatechange=function(){return p._xhrReadyStateChange(t,e,e[Cd])},t.onerror=function(n){return p[lp](e,D(t),n)},n=p._buffer[qd](e),t.send(n),p._buffer[Fd](e)}function I(e,n){if(gn(e)){for(var t=e[Cd],r=0;r<e[Cd];r++)t+=e[r][Cd];d+t<=65e3?T(e,!1):Wt()?x(e):(u&&u(e,!0),fr(p[Wd](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function w(e,n){T(e,!0)}function T(e,n){var t=p[Qd][tp](),r=p._buffer[qd](e),i=new Blob([r],{type:"application/json"}),o=new Headers,u=r[Cd],c=(r=!1,!1);Du(t)&&o.append(Ka[6],Ka[7]),wn(Dn(a),(function(e){o.append(e,a[e])})),(i={method:"POST",headers:o,body:i})[ea]=!0,n||(r=i.keepalive=!0,d+=u),t=new Request(t,i);try{t[ea]=!0}catch(e){}p._buffer[Fd](e);try{fetch(t).then((function(t){n||(d-=u,u=0),c||(c=!0,t.ok?t.text().then((function(n){g(t.status,e,t.url,e[Cd],t.statusText,n)})):p[lp](e,t.statusText))})).catch((function(t){n||(d-=u,u=0),c||(c=!0,p[lp](e,t.message))}))}catch(n){c||p[lp](e,Xt(n))}r&&!c&&(c=!0,p._onSuccess(e,e[Cd]))}function C(e){try{if(e&&""!==e){var n=jt().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n[pp]&&n.itemsReceived-n.itemsAccepted===n.errors[Cd])return n}}catch(n){fr(p[Wd](),1,43,"Cannot parse the response. "+Rn(n),{response:e})}return null}function S(t,r){if(void 0===r&&(r=1),t&&0!==t[Cd]){var i=p[Zd];i[Hd](t),e++;for(var o=0,a=t;o<a.length;o++){var u=a[o];i[Md](u)}r=e<=1?10:(t=1+Math.floor((Math.pow(2,e)-1)/2*Math.random()*10),Math.max(Math.min(t*=r,3600),10)),t=An()+1e3*r,n=t,k()}}function k(){var e;r||t||(e=n?Math.max(0,n-An()):0,e=Math.max(p[Qd][mp](),e),r=setTimeout((function(){r=null,p[Xd](!0,null,1)}),e))}function _(){clearTimeout(r),n=r=null}function E(e){return 401===e||403===e||408===e||429===e||500===e||502===e||503===e||504===e}function D(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Xp(e)||e.response||"":n}function P(e,n){var t=p[Zd],r=Rt(),i=new XDomainRequest;i.onload=function(){return p._xdrOnLoad(i,e)},i.onerror=function(n){return p[lp](e,N(i),n)},r=r&&r.location&&r.location.protocol||"";if(p[Qd][tp]().lastIndexOf(r,0))return fr(p[Wd](),2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t[Ud]();r=p[Qd][tp]().replace(/^(https?:)/,""),i.open("POST",r),r=t[qd](e),i.send(r),t[Fd](e)}function N(e,n){return e?"XDomainRequest,Response:"+Xp(e)||"":n}function M(){p[$d]=null,p[Zd]=null,p._appId=null,p._sample=null,t=!(a={}),d=o=e=0,l=c=u=i=r=n=s=null}M(),p.pause=function(){_(),t=!0},p.resume=function(){t&&(t=!1,n=null,p._buffer.size()>p._senderConfig[Kd]()&&p[Xd](!0,null,10),k())},p.flush=function(e,n,r){if(void 0===e&&(e=!0),!t){_();try{p[Xd](e,null,r||1)}catch(e){fr(p[Wd](),1,22,"flush failed, telemetry will not be collected: "+Rn(e),{exception:Xt(e)})}}},p.onunloadFlush=function(){if(!t)if(!1!==p._senderConfig[Gd]()&&!1!==p[Qd][Jd]()||!Wt())p.flush();else try{p[Xd](!0,h,2)}catch(e){fr(p[Wd](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Rn(e),{exception:Xt(e)})}},p.addHeader=function(e,n){a[e]=n},p.initialize=function(t,r,a,d){p.isInitialized()&&fr(p[Wd](),1,28,"Sender is already initialized"),v.initialize(t,r,a,d);var g=p._getTelCtx(),m=p.identifier;i=new Hp(r.logger),e=0,n=null,p[$d]=null,o=0,a=p[Wd](),l=Ei(Ur("Sender"),r.evtNamespace&&r.evtNamespace()),s=function(e){var n,t=Ut(),r=Ft(),i=!1,o=!0,a=Ei(Ur("OfflineListener"),e);try{u(Rt())&&(i=!0),(i=!!(t&&(n=t.body||t).ononline&&u(n))||i)&&r&&!an(r[Pd])&&(o=r[Pd])}catch(e){i=!1}function u(e){var n=!1;return e&&(n=Di(e,"online",c,a))&&Di(e,"offline",s,a),n}function c(){o=!0}function s(){o=!1}return{isOnline:function(){var e=!0;return i?e=o:r&&!an(r[Pd])&&(e=r[Pd]),e},isListening:function(){return i},unload:function(){var e=Rt();e&&i&&(Np(e,a),t&&!on((e=t.body||t).ononline)&&Np(e,a),i=!1)}}}(l),dn(Wp(),(function(e,n){p[Qd][e]=function(){var t=g.getConfig(m,e,n());return t||"endpointUrl"!==e?t:n()}})),t.storagePrefix&&eu(t.storagePrefix),d=p[Qd][Yd]()&&!(!p._senderConfig[Od]()&&!ou()),p[Zd]=new(d?qp:Rp)(a,p[Qd]),p._sample=new Bp(p[Qd][ep](),a),!an(t[yp])&&t[yp]||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t[np])||fr(a,1,100,"Invalid Instrumentation key "+t[np]),!Du(p._senderConfig.endpointUrl())&&p._senderConfig.customHeaders()&&0<p._senderConfig.customHeaders()[Cd]&&wn(p[Qd][rp](),(function(e){f.addHeader(e.header,e.value)})),r=p[Qd],d=null;!r[ip]()&&Jt()?d=P:!r[ip]()&&$t()&&(d=b),!d&&Gt()&&(d=w),u=d||b,!r[Jd]()&&Wt()&&(d=x),p[$d]=d||b,c=!r[op]()&&Gt(!0)?I:Wt()?x:!r[ip]()&&Jt()?P:!r[ip]()&&$t()?b:u},p.processTelemetry=function(e,n){var t=(n=p._getTelCtx(n))[Wd]();try{if(p[Qd][ap]())return;if(!e)return void fr(t,1,7,"Cannot send empty telemetry");if(e.baseData&&!e[up])return void fr(t,1,70,"Cannot send telemetry without baseData and baseType");if(e[up]||(e[up]="EventData"),!p[$d])return void fr(t,1,28,"Sender was not initialized");if(!p._sample.isSampledIn(e))return void fr(t,2,33,"Telemetry item was sampled out and not sent",{SampleRate:p._sample[cp]});e[na]=p._sample[cp];var r=p[Qd][sp]()||void 0,o=e.iKey||p[Qd][np](),a=Qp.constructEnvelope(e,o,t,r);if(!a)return void fr(t,1,47,"Unable to create an AppInsights envelope");var u=!1;if(e[xd]&&e[xd][ta]&&(wn(e[xd][ta],(function(e){try{e&&!1===e(a)&&(u=!0,dr(t,"Telemetry processor check returns false"))}catch(e){fr(t,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Rn(e),{exception:Xt(e)},!0)}})),delete e[xd][ta]),u)return;var c=i.serialize(a),l=p[Zd];l.size()+c[Cd]>p[Qd][Kd]()&&(s&&!s[Nd]()||p[Xd](!0,null,10)),l[Md](c),k()}catch(e){fr(t,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Rn(e),{exception:Xt(e)})}p.processNext(e,n)},p._xhrReadyStateChange=function(e,n,t){4===e.readyState&&g(e.status,n,e.responseURL,t,D(e),Xp(e)||e.response)},p[Xd]=function(e,n,r){if(void 0===e&&(e=!0),!t)try{var i,o=p[Zd];p[Qd][ap]()?o[Ud]():0<o[Ad]()&&(i=o.getItems(),function(e,n){var t="getNotifyMgr";if((t=p.core[t]?p.core[t]():p.core._notificationManager)&&t[hp])try{t[hp](e,n)}catch(e){fr(p[Wd](),1,74,"send request notification failed: "+Rn(e),{exception:Xt(e)})}}(r||0,e),n?n.call(p,i,e):p[$d](i,e)),_()}catch(e){(!(o=Kt())||9<o)&&fr(p[Wd](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Rn(e),{exception:Xt(e)})}},p._doTeardown=function(e,n){p.onunloadFlush(),s.unload(),M()},p[lp]=function(e,n,t){fr(p[Wd](),2,26,"Failed to send telemetry.",{message:n}),p._buffer&&p._buffer[Hd](e)},p[fp]=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],u=e.splice(a.index,1)[0];(E(a.statusCode)?r:t)[Rd](u)}0<e[Cd]&&p[dp](e,n[pp]),0<t[Cd]&&p[lp](t,D(null,["partial success",n[pp],"of",n.itemsReceived].join(" "))),0<r[Cd]&&(S(r),fr(p[Wd](),2,40,"Partial success. Delivered: "+e[Cd]+", Failed: "+t[Cd]+". Will retry to send "+r[Cd]+" our of "+n.itemsReceived+" items"))},p[dp]=function(e,n){p._buffer&&p._buffer[Hd](e)},p._xdrOnLoad=function(n,t){var r=Xp(n);!n||r+""!="200"&&""!==r?(r=C(r))&&r.itemsReceived&&r.itemsReceived>r[pp]&&!p[Qd][vp]()?p[fp](t,r):p[lp](t,N(n)):(e=0,p[dp](t,0))}})),f}var Yp=function(){},Zp=function(){this.id="browser",this.deviceClass="Browser"},ev="sessionManager",nv="update",tv="isUserCookieSet",rv="isNewUser",iv="getTraceCtx",ov="telemetryTrace",av="applySessionContext",uv="applyApplicationContext",cv="applyDeviceContext",sv="applyOperationContext",lv="applyUserContext",fv="applyOperatingSystemContxt",dv="applyLocationContext",pv="applyInternalContext",vv="accountId",gv="sdkExtension",mv="getSessionId",hv="namePrefix",yv="sessionCookiePostfix",xv="userCookiePostfix",bv="idLength",Iv="getNewId",wv="length",Tv="automaticSession",Cv="authenticatedId",Sv="sessionExpirationMs",kv="sessionRenewalMs",_v="config",Ev="acquisitionDate",Dv="renewalDate",Pv="cookieDomain",Nv="join",Mv="cookieSeparator",Av="authUserCookieName",Rv=function(e){this.sdkVersion=(e[gv]&&e[gv]()?e[gv]()+"_":"")+"javascript:2.8.15"},Lv=function(){},Uv=function(){},qv=(Fv.acquisitionSpan=864e5,Fv.renewalSpan=18e5,Fv.cookieUpdateInterval=6e4,Fv);function Fv(e,n){var t,r,i=ur(n),o=ni(n);It(Fv,this,(function(n){ln((e=e||{})[Sv])||(e[Sv]=function(){return Fv.acquisitionSpan}),ln(e[kv])||(e[kv]=function(){return Fv.renewalSpan}),n[_v]=e;var a=n.config[yv]&&n[_v][yv]()?n.config[yv]():n.config[hv]&&n[_v][hv]()?n[_v][hv]():"";function u(e,n){var t=!1,r=", session will be reset",o=n.split("|");if(2<=o[wv])try{var a=+o[1]||0,u=+o[2]||0;isNaN(a)||a<=0?fr(i,2,27,"AI session acquisition date is 0"+r):isNaN(u)||u<=0?fr(i,2,27,"AI session renewal date is 0"+r):o[0]&&(e.id=o[0],e[Ev]=a,e[Dv]=u,t=!0)}catch(e){fr(i,1,9,"Error parsing ai_session value ["+(n||"")+"]"+r+" - "+Rn(e),{exception:Xt(e)})}return t}function c(e,i){var a=e[Ev],u=(e[Dv]=i,n[_v]),c=u[kv](),s=a+u[Sv]()-i;e=[e.id,a,i],a=s<c?s/1e3:c/1e3,s=u[Pv]?u[Pv]():null;o.set(t(),e.join("|"),0<u[Sv]()?a:null,s),r=i}t=function(){return"ai_session"+a},n[Tv]=new Uv,n[nv]=function(){var e,a,s,l=An(),f=!1,d=n[Tv],p=(d.id||(a=d,s=!1,((p=o.get(t()))&&ln(p.split)||(p=tu(i,t())))&&(s=u(a,p)),f=!(s||a.id)),n.config[Sv]());!f&&0<p&&(s=n.config[kv](),a=l-d[Ev],e=l-d[Dv],f=(f=(f=a<0||e<0)||p<a)||s<e),f?(p=l,s=((a=n[_v]||{})[Iv]?a[Iv]():null)||Nr,n.automaticSession.id=s(a[bv]?a[bv]():22),n[Tv][Ev]=p,c(n[Tv],p),nu()||fr(i,2,0,"Browser does not support local storage. Session durations will be inaccurate.")):(!r||Fv.cookieUpdateInterval<l-r)&&c(d,l)},n.backup=function(){var e=(o=n[Tv]).id,r=o[Ev],o=o[Dv];ru(i,t(),[e,r,o][Nv]("|"))}}))}var Hv=function(e,n,t,r){this.traceID=e||Hi(),this.parentID=n,e=Ot(),!t&&e&&e.pathname&&(t=e.pathname),this.name=fu(r,t)};function Ov(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}Vv.cookieSeparator="|",Vv.userCookieName="ai_user",Vv.authUserCookieName="ai_authUser";var zv=Vv;function Vv(e,n){this.isNewUser=!1,this.isUserCookieSet=!1;var t,r=ur(n),i=ni(n);It(Vv,this,(function(n){n[_v]=e;var o,a=n.config[xv]&&n[_v][xv]()?n[_v][xv]():"";function u(){var n=e||{};return((n[Iv]?n[Iv]():null)||Nr)(n[bv]?e[bv]():22)}function c(e){var t=In(new Date);return n.accountAcquisitionDate=t,n[rv]=!0,[e,t]}function s(e){n[tv]=i.set(t(),e,31536e3)}(o=(t=function(){return Vv.userCookieName+a},i.get(t())))&&(n[rv]=!1,0<(o=o.split(Vv[Mv]))[wv]&&(n.id=o[0],n[tv]=!!n.id)),n.id||(n.id=u(),s(c(n.id)[Nv](Vv[Mv])),o=e[hv]&&e[hv]()?e[hv]()+"ai_session":"ai_session",iu(r,o)),n[vv]=e[vv]?e[vv]():void 0,(o=i.get(Vv[Av]))&&((o=(o=decodeURI(o)).split(Vv[Mv]))[0]&&(n[Cv]=o[0]),1<o[wv]&&o[1]&&(n[vv]=o[1])),n.setAuthenticatedUserContext=function(e,t,o){void 0===o&&(o=!1),!Ov(e)||t&&!Ov(t)?fr(r,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(n[Cv]=e,e=n[Cv],t&&(n[vv]=t,e=[n[Cv],n.accountId][Nv](Vv[Mv])),o&&i.set(Vv[Av],encodeURI(e)))},n.clearAuthenticatedUserContext=function(){n[Cv]=null,n[vv]=null,i.del(Vv[Av])},n[nv]=function(e){n.id===e&&n[tv]||s(c(e||u())[Nv](Vv[Mv]))}}))}var jv="ext",Bv="tags";function Kv(e,n){e&&e[n]&&0===Dn(e[n])[wv]&&delete e[n]}Gv.__ieDyn=1;var Xv,Wv=Gv;function Gv(e,n,t){var r=this,i=e.logger;this.appId=function(){return null},this[mv]=function(){return null},It(Gv,this,(function(o){var a,u,c;o.application=new Yp,o.internal=new Rv(n),At()&&(o[ev]=new qv(n,e),o.device=new Zp,o.location=new Lv,o.user=new zv(n,e),u=a=void 0,t&&(a=t.getTraceId(),u=t.getSpanId(),c=t.getName()),o[ov]=new Hv(a,u,c,i),o.session=new Uv),o[mv]=function(){var e=o.session;return e&&hn(e.id)||(e=(o[ev]||{})[Tv])&&hn(e.id)?e.id:null},o[av]=function(e,n){Ln(Un(e.ext,_c.AppExt),"sesId",o[mv](),hn)},o[fv]=function(e,n){Ln(e.ext,_c.OSExt,o.os)},o[uv]=function(e,n){var t=o.application;t&&(Ln(e=Un(e,Bv),Ec.applicationVersion,t.ver,hn),Ln(e,Ec.applicationBuild,t.build,hn))},o[cv]=function(e,n){var t=o.device;t&&(Ln(e=Un(Un(e,jv),_c.DeviceExt),"localId",t.id,hn),Ln(e,"ip",t.ip,hn),Ln(e,"model",t.model,hn),Ln(e,"deviceClass",t.deviceClass,hn))},o[pv]=function(e,n){var t,r=o.internal;r&&(Ln(t=Un(e,Bv),Ec.internalAgentVersion,r.agentVersion,hn),Ln(t,Ec.internalSdkVersion,fu(i,r.sdkVersion,64),hn),e.baseType!==or.dataType&&e.baseType!==ac.dataType||(Ln(t,Ec.internalSnippet,r.snippetVer,hn),Ln(t,Ec.internalSdkSrc,r.sdkSrc,hn)))},o[dv]=function(e,n){var t=r.location;t&&Ln(Un(e,Bv,[]),Ec.locationIp,t.ip,hn)},o[sv]=function(e,n){var t=o[ov];t&&(Ln(e=Un(Un(e,jv),_c.TraceExt,{traceID:void 0,parentID:void 0}),"traceID",t.traceID,hn,an),Ln(e,"name",t.name,hn,an),Ln(e,"parentID",t.parentID,hn,an))},o.applyWebContext=function(e,n){var t=r.web;t&&Ln(Un(e,jv),_c.WebExt,t)},o[lv]=function(e,n){var t=o.user;t&&(Ln(Un(e,Bv,[]),Ec.userAccountId,t[vv],hn),Ln(e=Un(Un(e,jv),_c.UserExt),"id",t.id,hn),Ln(e,"authId",t[Cv],hn))},o.cleanUp=function(e,n){(e=e.ext)&&(Kv(e,_c.DeviceExt),Kv(e,_c.UserExt),Kv(e,_c.WebExt),Kv(e,_c.OSExt),Kv(e,_c.AppExt),Kv(e,_c.TraceExt))}}))}function Jv(){var e,n,t,r=Xv.call(this)||this;return r.priority=110,r.identifier=Dc,It(Jv,r,(function(r,i){function o(){t=n=e=null}o(),r.initialize=function(o,a,u,c){i.initialize(o,a,u,c);a=o;var s=r.identifier,l=r.core,f=so(null,a,l);u=Jv.getDefaultConfig();e=e||{},dn(u,(function(n,t){e[n]=function(){return f.getConfig(s,n,t())}})),a.storagePrefix&&eu(a.storagePrefix),t=l[iv](!1),r.context=new Wv(l,e,t),n=Au(r.context[ov],t),l.setTraceCtx(n),r.context.appId=function(){var e=l.getPlugin(Pc);return e?e.plugin._appId:null},r._extConfig=e},r.processTelemetry=function(e,n){var t,i,o,a;an(e)||(n=r._getTelCtx(n),e.name===ac.envelopeType&&n.diagLog().resetInternalMessageCount(),(o=r.context||{}).session&&"string"!=typeof r.context.session.id&&o[ev]&&o[ev][nv](),(t=o.user)&&!t[tv]&&t[nv](o.user.id),o=n,Un(i=e,"tags",[]),Un(i,"ext",{}),(a=r.context)[av](i,o),a[uv](i,o),a[cv](i,o),a[sv](i,o),a[lv](i,o),a[fv](i,o),a.applyWebContext(i,o),a[dv](i,o),a[pv](i,o),a.cleanUp(i,o),t&&t[rv]&&(t[rv]=!1,i=new or(72,(Ft()||{}).userAgent||""),lr(n.diagLog())[ce](1,i)),r.processNext(e,n))},r._doTeardown=function(e,r){(e=(e||{}).core())&&e[iv]&&e[iv](!1)===n&&e.setTraceCtx(t),o()}})),r}y(Jv,Xv=Je),Jv.getDefaultConfig=function(){var e;return{instrumentationKey:function(){return e},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return e},sessionCookiePostfix:function(){return e},userCookiePostfix:function(){return e},idLength:function(){return 22},getNewId:function(){return null}}};var $v,Qv=Jv,Yv=[rl,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],Zv=(wc={__proto__:null,PropertiesPluginIdentifier:Dc,BreezeChannelIdentifier:Pc,AnalyticsPluginIdentifier:Nc,Util:Uo,CorrelationIdHelper:Pu,UrlHelper:Ho,DateTimeUtils:l,ConnectionStringParser:qo,FieldType:{Default:0,Required:1,Array:2,Hidden:4},RequestHeaders:Ka,DisabledPropertyName:ea,ProcessLegacy:ta,SampleRate:na,HttpMethod:ra,DEFAULT_BREEZE_ENDPOINT:ia,Envelope:Lu,Event:Uu,Exception:Qu,Metric:ic,PageView:ac,RemoteDependencyData:cc,Trace:lc,PageViewPerformance:dc,Data:vc,SeverityLevel:ze,ConfigurationManager:Lo,ContextTagKeys:Tc,DataSanitizer:zo,TelemetryItemCreator:xc,CtxTagKeys:Ec,Extensions:_c,DistributedTracingModes:Vo},eg.prototype.addDependencyInitializer=function(e){return null},eg);function eg(e){var n,t,r,i,o,a,u,c=this;It(eg,this,(function(s){o=Ur("AISKU"),a=null,i=""+(e.sv||e[Wl]||""),e[Gl]=e[Gl]||[],e[Wl]=e[Wl]||2;var l,f=e[Bl]||{},d=(f[Jl]&&(d=(l=Ru(f[Jl])).ingestionendpoint,f[Cl]=d?d+oa:f[Cl],f[$l]=l.instrumentationkey||f[$l]),s[Ql]=new md,t=new Qv,n=new nl,r=new $p,u=new Ao,s.core=u,!!an(f[Yl])||f[Yl]);f[Jl]||d||fr(u.logger,1,106,"Instrumentation key support will end soon, see aka.ms/IkeyMigrate"),s[rl]=e,s[Bl]=f,s.config[Pl]=s.config[Pl]&&0<s[Bl][Pl]?s[Bl][Pl]:1e4,s[ul]=function(e){br(u,(function(){return"AISKU.flush"}),(function(){wn(u[Zl](),(function(n){wn(n,(function(n){n[ul](e)}))}))}),null,e=void 0===e||e)},s[ef]=function(e){void 0===e&&(e=!0),wn(u[Zl](),(function(n){wn(n,(function(n){n[ef]?n[ef]():n[ul](e)}))}))},s[Tl]=function(e,o,a){return(e=void 0!==e&&e)&&s[Bl].extensions&&0<s[Bl].extensions.length&&Hn("Extensions not allowed in legacy mode"),br(s.core,(function(){return"AISKU.loadAppInsights"}),(function(){var c,l=[];l[Xl](r),l[Xl](t),l[Xl](n),l[Xl](s[Ql]),u.initialize(s[Bl],l,o,a),s[Kl]=t[Kl],$v&&s[Kl]&&(s[Kl].internal.sdkSrc=$v),(c=s[rl])&&(l="",an(i)||(l+=i),e&&(l+=".lg"),s[Kl]&&s[Kl].internal&&(s[Kl].internal.snippetVer=l||"-"),dn(s,(function(e,n){hn(e)&&!ln(n)&&e&&"_"!==e[0]&&-1===Tn(Yv,e)&&(c[e]=n)}))),s.emptyQueue(),s[fl](),s[nf](s)})),s},s[wl]=function(e){zn(e,s,(function(e){return e&&-1===Tn(Yv,e)}))},s.emptyQueue=function(){try{if(gn(s.snippet[Gl])){for(var e=s.snippet[Gl].length,n=0;n<e;n++)(0,s.snippet[Gl][n])();s.snippet[Gl]=void 0,delete s.snippet[Gl]}}catch(e){e&&ln(e.toString)&&e.toString()}},s[nf]=function(e){var n,t,r,i,s,l,f,d;(At()||Lt())&&(t=!(n=function(){var n;e[ef](!1),ln(c.core[dl])&&(n=c.core[dl](Dc))&&(n=n.plugin)&&n[Kl]&&n[Kl]._sessionManager&&n[Kl]._sessionManager.backup()}),r=e.appInsights[Bl].disablePageUnloadEvents,a=a||Ei(o,u[pl]&&u[pl]()),e.appInsights.config[Fl]||(l=r,f=a,d=!(i=[mi,"unload",gi]),s=n,(gn(i)&&!(d=Ai(i,s,l,f))&&l&&0<l[D]?Ai(i,s,null,f):d)&&(t=!0),(t=!!Li(n,r,a)||t)||(l=Ft())&&l.product&&"ReactNative"===l.product||fr(e[Ql].core.logger,1,19,"Could not add handler for beforeunload and pagehide")),t||e.appInsights.config.disableFlushOnUnload||Li(n,r,a))},s.getSender=function(){return r},s.unload=function(e,n,t){var r;s[ef](e),a&&(Ri([mi,"unload",gi],null,a),r=Ei(hi,a),Ri([gi],null,r),Ri([vi],null,r)),u.unload&&u.unload(e,n,t)},jn(s,s[Ql],[il,vl,hl,"trackPageViewPerformance",yl,"_onerror",gl,ml,ol,al,cl,sl]),jn(s,(function(){return n}),[xl,"addDependencyListener","addDependencyInitializer"]),jn(s,u,[ll,fl,"stopPollingInternalLogs",dl,"addPlugin",pl,"addUnloadCb","getTraceCtx"]),jn(s,(function(){var e=t[Kl];return e?e.user:null}),[bl,Il])}))}Oo=null;var ng=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var tg=(document||{}).currentScript;tg&&(Oo=tg.src)}catch(e){}if(Oo)try{var rg=Oo.toLowerCase();if(rg)for(var ig="",og=0;og<ng.length;og++)if(-1!==rg[tf](ng[og])){ig="cdn"+(og+1),-1===rg[tf]("/scripts/")&&(-1!==rg[tf]("/next/")?ig+="-next":-1!==rg[tf]("/beta/")&&(ig+="-beta")),$v=ig+"";break}}catch(e){}sg.getAppInsights=function(e,n){var t,r=new Zv(e);n=!(2<=n);return zi(),n?((t=new of(e,r))[wl](e),r[Tl](n),t):(r[wl](e),r[Tl](n),r)};var ag,ug,cg;jo=sg;function sg(){}function lg(e,n){var t=typeof console!==r?console:null;t&&t.warn&&t.warn("Failed to initialize AppInsights JS SDK for instance "+(e||"<unknown>")+" - "+n)}try{typeof window!==r?(cg=(ag=window).appInsightsSDK||"appInsights",typeof JSON!==r?void 0!==ag[cg]&&(2<=(ug=ag[cg]||{version:2})[Wl]&&ag[cg].initialize||void 0===ug[Wl])&&jo.getAppInsights(ug,ug[Wl]):lg(cg,"Missing JSON - you must supply a JSON polyfill!")):lg(cg,"Missing window")}catch(e){lg(cg,e.message)}e.AnalyticsPluginIdentifier=Nc,e.ApplicationInsights=Zv,e.BreezeChannelIdentifier=Pc,e.CoreUtils=Oi,e.DEFAULT_BREEZE_ENDPOINT=ia,e.DisabledPropertyName=ea,e.DistributedTracingModes=Vo,e.LoggingSeverity=Ko,e.PerfEvent=gr,e.PerfManager=hr,e.PropertiesPluginIdentifier=Dc,e.RequestHeaders=Ka,e.SeverityLevel=ze,e.Telemetry=wc,e.Util=Uo,e.addEventHandler=Ni,e.doPerf=br,e.eventOff=Pi,e.eventOn=Di,e.findMetaTag=Yt,e.findW3cTraceParent=function(){var e,n;return $i(Yt("traceparent"))||$i(e=(n=zt())?Qt((0<(n=n.getEntriesByType("navigation")||[])[D]?n[0]:{}).serverTiming,"traceparent").description:e)},e.generateW3CId=Hi,e.isBeaconsSupported=Wt,e.mergeEvtNamespace=Ei,e.newGuid=Fi,e.newId=Nr,e.random32=Dr,e.randomValue=Er,e.removeEventHandler=Mi},n="undefined";if("object"==typeof exports&&typeof module!=n)e(exports);else if("function"==typeof define&&define.amd)define(["exports"],e);else{n=typeof globalThis!=n?globalThis:this||self;var t,c,r={},i="__ms$mod__",o={},a=o.esm_ai_2_8_15={},u="2.8.15",s=(s=n=n[c="Microsoft"]=n[c]||{})[c="ApplicationInsights2"]=s[c]||{},l=(l=n)[c="ApplicationInsights"]=l[c]||{},f=(n=s[i]=s[i]||{}).v=n.v||[],d=(c=l[i]=l[i]||{}).v=c.v||[];for(t in(c.o=c.o||[]).push(o),e(r),r)s[t]=r[t],f[t]=u,l[t]=r[t],d[t]=u,(a.n=a.n||[]).push(t)}