@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2208-04 → 3.0.0-beta.2208-18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
  2. package/browser/applicationinsights-dependencies-js.js +826 -681
  3. package/browser/applicationinsights-dependencies-js.js.map +1 -1
  4. package/browser/applicationinsights-dependencies-js.min.js +2 -2
  5. package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
  6. package/dist/applicationinsights-dependencies-js.api.json +92 -19
  7. package/dist/applicationinsights-dependencies-js.api.md +10 -6
  8. package/dist/applicationinsights-dependencies-js.d.ts +27 -4
  9. package/dist/applicationinsights-dependencies-js.js +826 -681
  10. package/dist/applicationinsights-dependencies-js.js.map +1 -1
  11. package/dist/applicationinsights-dependencies-js.min.js +2 -2
  12. package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
  13. package/dist/applicationinsights-dependencies-js.rollup.d.ts +27 -4
  14. package/dist-esm/DependencyListener.js +1 -1
  15. package/dist-esm/InternalConstants.js +4 -4
  16. package/dist-esm/InternalConstants.js.map +1 -1
  17. package/dist-esm/__DynamicConstants.js +28 -23
  18. package/dist-esm/__DynamicConstants.js.map +1 -1
  19. package/dist-esm/ajax.js +56 -54
  20. package/dist-esm/ajax.js.map +1 -1
  21. package/dist-esm/ajaxRecord.js +38 -9
  22. package/dist-esm/ajaxRecord.js.map +1 -1
  23. package/dist-esm/ajaxUtils.js +1 -1
  24. package/dist-esm/applicationinsights-dependencies-js.js +1 -1
  25. package/package.json +5 -4
  26. package/src/InternalConstants.ts +3 -3
  27. package/src/__DynamicConstants.ts +27 -22
  28. package/src/ajax.ts +14 -14
  29. package/src/ajaxRecord.ts +62 -5
  30. package/tsconfig.json +1 -1
  31. package/types/__DynamicConstants.d.ts +22 -17
  32. package/types/ajax.d.ts +2 -2
  33. package/types/ajaxRecord.d.ts +24 -2
  34. package/types/tsdoc-metadata.json +1 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.0-beta.2208-04
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.0-beta.2208-18
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- var t=this,e=function(r){"use strict";var a="function",st="object",i="undefined",z="prototype",o="hasOwnProperty",n=Object,c=n[z],f=n.assign,t=(n.create,n.defineProperty),b=c[o],l=null;function ft(t){return void 0===t&&(t=!0),l&&t||(typeof globalThis!==i&&globalThis&&(l=globalThis),typeof self!==i&&self&&(l=self),typeof window!==i&&window&&(l=window),typeof global!==i&&global&&(l=global)),l}function C(t){throw new TypeError(t)}(ft()||{}).Symbol,(ft()||{}).Reflect;var lt=f||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])c[o].call(e,i)&&(t[i]=e[i]);return t},w=function(t,e){return(w=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e[o](n)&&(t[n]=e[n])})(t,e)},M="constructor",g="prototype",_="function",I="_dynInstFuncs",q="_isDynProxy",E="_dynClass",H="_dynInstChk",k=H,D="_dfOpts",A="_unknown_",S="__proto__",P="_dyn"+S,R="_dynInstProto",j="useBaseInst",L="setInstFuncs",N=Object,F=N.getPrototypeOf,O=N.getOwnPropertyNames,dt=0;function v(t,e){return t&&N[g].hasOwnProperty.call(t,e)}function pt(t){return t&&(t===N[g]||t===Array[g])}function gt(t){return pt(t)||t===Function[g]}function vt(t){if(t){if(F)return F(t);var e=t[S]||t[g]||(t[M]?t[M][g]:null),n=t[P]||e;v(t,P)||(delete t[R],n=t[P]=t[R]||t[P],t[R]=e)}return n}function ht(t,e){var n=[];if(O)n=O(t);else for(var r in t)"string"==typeof r&&v(t,r)&&n.push(r);if(n&&0<n.length)for(var i=0;i<n.length;i++)e(n[i])}function yt(t,e,n){return e!==M&&typeof t[e]===_&&(n||v(t,e))}function mt(t){throw new TypeError("DynamicProto: "+t)}function xt(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return 1}function Tt(t,e){return v(t,g)?t.name||e||A:((t||{})[M]||{}).name||e||A}function bt(t,r,e,n){v(t,g)||mt("theClass is an invalid class definition.");var i,o,a,u,c,s,f=t[g],l=(function(t){if(!F)return 1;for(var e=[],n=vt(r);n&&!gt(n)&&!xt(e,n);){if(n===t)return 1;e.push(n),n=vt(n)}}(f)||mt("["+Tt(t)+"] is not in class hierarchy of ["+Tt(r)+"]"),null),t=(v(f,E)?l=f[E]:(l="_dynCls$"+Tt(t,"_")+"$"+dt,dt++,f[E]=l),bt[D]),d=!!t[j],p=(d&&n&&n[j]!==undefined&&(d=!!n[j]),o={},ht(i=r,function(t){!o[t]&&yt(i,t,!1)&&(o[t]=i[t])}),o),d=(e(r,function(t,e,n,o){function r(t,e,n){var r,i=e[n];return i[q]&&o&&!1!==(r=t[I]||{})[k]&&(i=(r[e[E]]||{})[n]||i),function(){return i.apply(t,arguments)}}for(var i={},a=(ht(n,function(t){i[t]=r(e,n,t)}),vt(t)),u=[];a&&!gt(a)&&!xt(u,a);)ht(a,function(t){!i[t]&&yt(a,t,!F)&&(i[t]=r(e,a,t))}),u.push(a),a=vt(a);return i}(f,r,p,d)),!!F&&!!t[L]);a=f,e=l,u=r,c=p,t=!1!==(d=d&&n?!!n[L]:d),pt(a)||(f=u[I]=u[I]||{},s=f[e]=f[e]||{},!1!==f[k]&&(f[k]=!!t),ht(u,function(t){var n,r,i;yt(u,t,!1)&&u[t]!==c[t]&&(s[t]=u[t],delete u[t],v(a,t)&&(!a[t]||a[t][q])||(a[t]=(n=a,r=t,(i=function(){var t,e;return(function(t,e,n,r){var i=null;if(t&&v(n,E)){var o=t[I]||{};if((i=(o[n[E]]||{})[e])||mt("Missing ["+e+"] "+_),!i[H]&&!1!==o[k]){for(var a=!v(t,e),u=vt(t),c=[];a&&u&&!gt(u)&&!xt(c,u);){var s=u[e];if(s){a=s===r;break}c.push(u),u=vt(u)}try{a&&(t[e]=i),i[H]=1}catch(f){o[k]=!1}}}return i}(this,r,n,i)||(typeof(e=(e=n[t=r])===i?vt(n)[t]:e)!==_&&mt("["+t+"] is not a "+_),e)).apply(this,arguments)})[q]=1,i)))}))}bt[D]={setInstFuncs:!0,useBaseInst:!0};var Ct="name",wt="identifier",U="push",Mt="isInitialized",_t="config",It="logger",X="length",qt="time",h="processNext",Et="getPlugin",Ht="splice",kt="teardown",Dt="messageId",At="message",St="isAsync",Pt="_doTeardown",Rt="update",jt="getNext",Lt="diagLog",Nt="setNextPlugin",Ft="createNew",Ot="userAgent",zt="split",Ut="replace",Xt="substr",Kt="nodeType",Gt="apply",Vt="enableDebugExceptions",Wt="toLowerCase",p="call",$t="type",Bt="isChildEvt",Jt="getCtx",s="setCtx",Yt="complete",Zt="traceId",Qt="traceFlags",te="version",d="",y="core",ee="disabled",ne="extensionConfig",re="processTelemetry",ie="priority",oe="errorToConsole",ae="warnToConsole",ue="getPerfMgr",ce="toISOString",se="indexOf",fe="trim",f="toString",le="constructor",de=t,pe=n.freeze,ge=(n.seal,n.keys),e=String[z],ve=e[fe],he=(e.endsWith,e.startsWith,Date[z][ce]),e=Array.isArray,ye=c[f],me=b[f],xe=me[p](n),Te=/-([a-z])/g,be=/([^\w\d_$])/g,Ce=/^(\d+[\w\d_$])/,we=Object.getPrototypeOf;function Me(t){if(t){if(we)return we(t);t=t.__proto__||t[z]||t[le];if(t)return t}return null}function _e(t){return t===undefined||typeof t===i}function K(t){return null===t||_e(t)}function Ie(t){return!(!t||typeof t!==st)}function G(t){return!(!t||typeof t!==a)}function qe(t){var e=t;return t&&He(t)?(e=(e=t[Ut](Te,function(t,e){return e.toUpperCase()}))[Ut](be,"_"))[Ut](Ce,function(t,e){return"_"+e}):e}function V(t,e){if(t)for(var n in t)b[p](t,n)&&e[p](t,n,t[n])}function Ee(t,e){return!(!t||!e||!~t.indexOf(e))}var W=e||function(t){return!(!t||"[object Array]"!==ye[p](t))};function He(t){return"string"==typeof t}function ke(t){return t&&"object"==typeof t&&(!(t=(we||Me)(t))||typeof(t=t[le]&&b[p](t,le)?t[le]:t)===a&&me[p](t)===xe)}function $(t,e,n){var r=t[X];try{for(var i=0;i<r&&!(i in t&&-1===e[p](n||t,t[i],i,t));i++);}catch(o){}}function De(t){return t&&(ve&&t[fe]?t[fe]():t[Ut]?t[Ut](/^\s+|\s+$/g,d):t)}var Ae=!{toString:null}.propertyIsEnumerable("toString"),Se=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Pe(t){var e=typeof t;if(e===a||e===st&&null!==t||C("objKeys called on non-object"),!Ae&&ge)return ge(t);var n,r=[];for(n in t)t&&b[p](t,n)&&r[U](n);if(Ae)for(var i=Se[X],o=0;o<i;o++)t&&b[p](t,Se[o])&&r[U](Se[o]);return r}function Re(t){return pe&&V(t,function(t,e){(W(e)||Ie(e))&&pe(e)}),je(t)}var je=pe||function(t){return t};function Le(){var t=Date;return t.now?t.now():(new t).getTime()}function Ne(t,e){return K(t)?e:t}var Fe="window",Oe="documentMode",ze="console",Ue="performance",Xe="JSON",Ke="crypto",Ge="msCrypto",Ve="msie",We="trident/",$e="XMLHttpRequest",Be=null,Je=null;function B(t){var e=ft();return e&&e[t]?e[t]:t===Fe&&typeof window===st&&window?window:null}function Ye(){return typeof document===st&&document?document:B("document")}function Ze(){return typeof navigator===st&&navigator?navigator:B("navigator")}function Qe(){return B(Ue)}function tn(){return typeof JSON===st&&JSON||null!==B(Xe)}function en(){return tn()?JSON||B(Xe):null}function J(t){var e=Object[z].toString[p](t),n=d;return"[object Error]"===e?n="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t[Ct]+"'":tn()&&(n=en().stringify(t)),e+n}var nn=null;function rn(t){return t?'"'+t[Ut](/\"/g,d)+'"':d}function on(t,e){var n,r=typeof console!==i?console:B(ze);r&&(n="log",G(r[n=r[t]?t:n])&&r[n](e))}un.dataType="MessageData";var an=un;function un(t,e,n,r){void 0===n&&(n=!1),this[Dt]=t,this[At]=(n?"AI: ":"AI (Internal): ")+t;n=d,tn()&&(n=en().stringify(r)),t=(e?" message:"+rn(e):d)+(r?" props:"+rn(n):d);this[At]+=t}sn.__ieDyn=1;var cn=sn;function sn(i){this.identifier="DiagnosticLogger",this.queue=[];var c,s,f,l,d=0,p={};bt(sn,this,function(o){var t;function a(t,e){var n,r;f<=d||(r=!0,n="AITR_"+e[Dt],p[n]?r=!1:p[n]=!0,r&&(t<=s&&(o.queue[U](e),d++,u(1===t?"error":"warn",e)),d===f&&(r=new an(23,n="Internal events throttle limit per PageView reached for this app.",!1),o.queue[U](r),1===t?o[oe](n):o[ae](n))))}function u(t,e){var n,r=(n=(n=nn)||!0===(i||{}).disableDbgExt?n:nn||(r=B("Microsoft"),nn=r?r.ApplicationInsights:nn))?n.ChromeDbgExt:null;r&&r[Lt]&&r[Lt](t,e)}c=Ne((t=i||{}).loggingLevelConsole,0),s=Ne(t.loggingLevelTelemetry,1),f=Ne(t.maxMessageLimit,25),l=Ne(t[Vt],!1),o.consoleLoggingLevel=function(){return c},o.telemetryLoggingLevel=function(){return s},o.maxInternalMessageLimit=function(){return f},o[Vt]=function(){return l},o.throwInternal=function(t,e,n,r,i){e=new an(e,n,i=void 0!==i&&i,r);if(l)throw J(e);n=1===t?oe:ae;_e(e[At])?u("throw"+(1===t?"Critical":"Warning"),e):(i?(r=+e[Dt],!p[r]&&t<=c&&(o[n](e[At]),p[r]=!0)):t<=c&&o[n](e[At]),a(t,e))},o[ae]=function(t){on("warn",t),u("warning",t)},o[oe]=function(t){on("error",t),u("error",t)},o.resetInternalMessageCount=function(){d=0,p={}},o.logInternalMessage=a})}function m(t,e,n,r,i,o){void 0===o&&(o=!1),(t||new cn).throwInternal(e,n,r,i,o)}var fn="ParentContextKey",ln="ChildrenContextKey",dn=(u.ParentContextKey="parent",u.ChildrenContextKey="childEvts",u);function u(t,i,e){var r,o=this,a=!1;o.start=Le(),o[Ct]=t,o[St]=e,o[Bt]=function(){return!1},G(i)&&(a=function(t){if(de)try{var e={enumerable:!0,configurable:!0,get:function(){return!r&&G(i)&&(r=i(),i=null),r}};return de(t,"payload",e),!0}catch(n){}return!1}(o)),o[Jt]=function(t){return t?(t===u[fn]||t===u[ln]?o:o.ctx||{})[t]:null},o[s]=function(t,e){t&&(t===u[fn]?(o[t]||(o[Bt]=function(){return!0}),o[t]=e):t===u[ln]?o[t]=e:(o.ctx=o.ctx||{})[t]=e)},o[Yt]=function(){var t=0,e=o[Jt](u[ln]);if(W(e))for(var n=0;n<e[X];n++){var r=e[n];r&&(t+=r[qt])}o[qt]=Le()-o.start,o.exTime=o[qt]-t,o[Yt]=function(){},!a&&G(i)&&(o.payload=i())}}var pn="CoreUtils.doPerf";function gn(t,e,n,r,i){if(t)if(t=t[ue]?t[ue]():t){var o,a=void 0,u=t[Jt](pn);try{if(a=t.create(e(),r,i))return u&&a[s]&&(a[s](dn[fn],u),u[Jt]&&u[s]&&((o=u[Jt](dn[ln]))||(o=[],u[s](dn[ln],o)),o[U](a))),t[s](pn,a),n(a)}catch(c){a&&a[s]&&a[s]("exception",c)}finally{a&&t.fire(a),t[s](pn,u)}}n()}var vn=4294967296,hn=4294967295,yn=!1,mn=123456789,xn=987654321;function Tn(t){var e,n=0,r=B(Ke)||B(Ge);if(0===(n=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&hn:n)&&(!(r=Ze())||r[Ot]===Je&&null!==Be||(r=((Je=r[Ot])||d)[Wt](),Be=Ee(r,Ve)||Ee(r,We)),Be)){if(!yn)try{var i=2147483647&Le();(e=(Math.random()*vn^i)+i)<0&&(e>>>=0),mn=123456789+e&hn,xn=987654321-e&hn,yn=!0}catch(o){}r=((xn=36969*(65535&xn)+(xn>>16)&hn)<<16)+(65535&(mn=18e3*(65535&mn)+(mn>>16)&hn))>>>0&hn|0,n=(r>>>=0)&hn}return 0===n&&(n=Math.floor(vn*Math.random()|0)),t||(n>>>=0),n}var bn=t,Cn="3.0.0-beta.2208-04",wn="."+function(t){void 0===t&&(t=22);for(var e=Tn()>>>0,n=0,r=d;r[X]<t;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&e]||"",e>>>=6,5==++n&&(e=(Tn()<<2&4294967295|3&e)>>>0,n=0);return r}(6),Mn=0;function _n(t){return 1===t[Kt]||9===t[Kt]||!+t[Kt]}function In(t,e){return qe(t+Mn+++((e=void 0!==e&&e)?"."+Cn:d)+wn)}function qn(t){var o={id:In("_aiData-"+(t||d)+"."+Cn),accept:_n,get:function(t,e,n,r){var i=t[o.id];return i?i[qe(e)]:(r&&((i=function(t,e){var n=e[t.id];if(!n){n={};try{_n(e)&&!function(t,e,n){if(bn)try{return bn(t,e,{value:n,enumerable:!1,configurable:!0}),1}catch(r){}}(e,t.id,n)&&(e[t.id]=n)}catch(r){}}return n}(o,t))[qe(e)]=n),n)},kill:function(t,e){if(t&&t[e])try{delete t[e]}catch(n){}}};return o}var En="attachEvent",Hn="addEventListener",kn=(In("aiEvtPageHide"),In("aiEvtPageShow"),/\.[\.]+/g),Dn=/[\.]+$/,An=1,Sn=qn("events"),Pn=/^([^.]*)(?:\.(.+)|)/;function Rn(t){return t&&t[Ut]?t.replace(/^\s*\.*|\.*\s*$/g,d):t}function jn(t,e){e&&(n=d,W(e)?(n=d,$(e,function(t){(t=Rn(t))&&("."!==t[0]&&(t="."+t),n+=t)})):n=Rn(e),n&&("."!==n[0]&&(n="."+n),t=(t||d)+n));var n,e=Pn.exec(t||d)||[],t={};return t[$t]=e[1],t.ns=(e[2]||d).replace(kn,".").replace(Dn,d)[zt](".").sort().join("."),t}function Ln(){for(var t,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=d,r=0;r<4;r++)n+=e[15&(t=Tn())]+e[t>>4&15]+e[t>>8&15]+e[t>>12&15]+e[t>>16&15]+e[t>>20&15]+e[t>>24&15]+e[t>>28&15];var i=e[8+(3&Tn())|0];return n[Xt](0,8)+n[Xt](9,4)+"4"+n[Xt](13,3)+i+n[Xt](16,3)+n[Xt](19,12)}var Nn="00",Fn="ff",On="00000000000000000000000000000000",zn="0000000000000000";function Un(t,e,n){return t&&t[X]===e&&t!==n&&t.match(/^[\da-f]*$/)}function Xn(t,e,n){return Un(t,e)?t:n}function Kn(t,e,n,r){var i={};return i[te]=Un(r,2,Fn)?r:Nn,i[Zt]=Gn(t)?t:Ln(),i.spanId=Vn(e)?e:Ln()[Xt](0,16),i.traceFlags=0<=n&&n<=255?n:1,i}function Gn(t){return Un(t,32,On)}function Vn(t){return Un(t,16,zn)}function Wn(t){var e,n;return t?(Un(e=function(t){for(var e=(t=isNaN(t)||t<0||255<t?1:t).toString(16);e[X]<2;)e="0"+e;return e}(t[Qt]),2)||(e="01"),n=t[te]||Nn,"".concat(n="00"!==n&&"ff"!==n?Nn:n,"-").concat(Xn(t.traceId,32,On),"-").concat(Xn(t.spanId,16,zn),"-").concat(e)):""}var $n=qn("plugin");function Bn(t){return $n.get(t,"state",{},!0)}var Jn="TelemetryPluginChain",Yn="_hasRun",Zn="_getTelCtx",Qn=0;function tr(t,a,n,e){var r=null,i=[],o=(null!==e&&(r=e?function(t,e,n){for(;t;){if(t[Et]()===n)return t;t=t[jt]()}return nr([n],e[_t]||{},e)}(t,n,e):t),{_next:function(){var t,e=r;return r=e?e[jt]():null,e||(t=i)&&0<t[X]&&($(t,function(t){try{t.func[p](t.self,t.args)}catch(e){m(n[It],2,73,"Unexpected Exception during onComplete - "+J(e))}}),i=[]),e},ctx:{core:function(){return n},diagLog:function(){return(n||{})[It]||new cn(a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(t,e,n){void 0===n&&(n=!1);var r,t=u(t,null);return t&&!K(t[e])?r=t[e]:a&&!K(a[e])&&(r=a[e]),K(r)?n:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(t){r=t},iterate:function(t){for(;e=o._next();){var e=e[Et]();e&&t(e)}},onComplete:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&i[U]({func:t,self:_e(e)?o.ctx:e,args:n})}}});function u(t,e,n){var r,i,o;return void 0===e&&(e={}),void 0===n&&(n=0),(r=a&&(i=a[ne])&&t?i[t]:r)?Ie(e)&&0!==n&&(o=function d(){var t=arguments,e=t[0]||{},n=t[X],r=!1,i=1;for(0<n&&"boolean"==typeof e&&(r=e,e=t[i]||{},i++),Ie(e)||(e={});i<n;i++){var o,a,u,c,s=t[i],f=W(s),l=Ie(s);for(o in s)(f&&o in s||l&&b[p](s,o))&&(a=s[o],u=void 0,r&&a&&((u=W(a))||ke(a))&&(c=e[o],u?W(c)||(c=[]):ke(c)||(c={}),a=d(r,c,a)),a!==undefined&&(e[o]=a))}return e}(!0,e,r),a&&2===n&&V(e,function(t){var e;K(o[t])&&!K(e=a[t])&&(o[t]=e)}),r=o):r=e,r}return o}function er(t,n,r,e){var i=tr(t,n,r,e),o=i.ctx;return o[h]=function(t){var e=i._next();return e&&e[re](t,o),!e},o[Ft]=function(t,e){return er((t=W(t=void 0===t?null:t)?nr(t,n,r,e):t)||o[jt](),n,r,e)},o}function nr(t,e,n,r){var i,o=null,a=!r;return W(t)&&0<t[X]&&(i=null,$(t,function(t){(a=!a&&r===t||a)&&t&&G(t[re])&&(t=rr(t,e,n),o=o||t,i&&i._setNext(t),i=t)})),r&&!o?nr([r],e,n):o}function rr(c,r,i){var s=null,o=G(c[re]),a=G(c[Nt]),f=c?c[wt]+"-"+c[ie]+"-"+Qn++:"Unknown-0-"+Qn++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(n,t){var e;l(t=t||(e=(e=c&&G(c[Zn])?c[Zn]():e)||er(u,r,i)),function(t){if(!c||!o)return!1;var e=Bn(c);return!e[kt]&&!e[ee]&&(a&&c[Nt](s),c[re](n,t),!0)},"processTelemetry",function(){return{item:n}},!n.sync)||t[h](n)},unload:function(r,i){l(r,function(){var t,e,n=!1;return c&&(t=Bn(c),e=c[y]||t[y],!c||e&&e!==r.core()||t[kt]||(t[y]=null,t[kt]=!0,t[Mt]=!1,c[kt]&&!0===c[kt](r,i)&&(n=!0))),n},"unload",function(){},i[St])||r[h](i)},update:function(r,i){l(r,function(){var t,e,n=!1;return c&&(t=Bn(c),e=c[y]||t[y],!c||e&&e!==r.core()||t[kt]||c[Rt]&&!0===c[Rt](r,i)&&(n=!0)),n},"update",function(){},!1)||r[h](i)},_id:f,_setNext:function(t){s=t}};function l(n,r,i,t,e){var o=!1,a=c?c[wt]:Jn,u=(u=n[Yn])||(n[Yn]={});return n.setNext(s),c&&gn(n[y](),function(){return a+":"+i},function(){u[f]=!0;try{var t=s?s._id:d;t&&(u[t]=!1),o=r(n)}catch(e){t=!s||u[s._id];t&&(o=!0),s&&t||m(n[Lt](),1,73,"Plugin ["+a+"] failed during "+i+" - "+J(e)+", run flags: "+J(u))}},t,e),o}return je(u)}function ir(){var e=[];return{add:function(t){t&&e[U](t)},run:function(n,r){$(e,function(t){try{t(n,r)}catch(e){m(n[Lt](),2,73,"Unexpected error calling unload handler - "+J(e))}}),e=[]}}}var x="getPlugin",f=(or.__ieDyn=1,or);function or(){var o,a,f,l,d,u=this;function e(t){var e,t=t=void 0===t?null:t;return t||(e=a||er(null,{},u[y]),t=f&&f[x]?e[Ft](null,f[x]):e[Ft](null,f)),t}function c(t,e,n){t&&(r=i=[],t&&(r=t[ne])!==i&&K(r)&&(t[ne]=r=i)),!n&&e&&(n=e.getProcessTelContext()[jt]());var r,i=f;f&&f[x]&&(i=f[x]()),u[y]=e,a=er(n,t,e,i)}function p(){o=!1,u[y]=null,f=a=null,d=[],l=ir()}p(),bt(or,u,function(s){var t,e,n,r,i;s.initialize=function(t,e,n,r){c(t,e,r),o=!0},s[kt]=function(t,e){var n,r,i,o,a=s[y];if(a&&(!t||a===t[y]()))return r=!1,i=t||function c(t,n,e){var r=n[_t]||{},i=tr(t,r,n,e),o=i.ctx;return o[h]=function(t){var e=i._next();return e&&e.unload(o,t),!e},o[Ft]=function(t,e){return c((t=W(t=void 0===t?null:t)?nr(t,r,n,e):t)||o[jt](),n,e)},o}(null,a,f&&f[x]?f[x]():f),o=e||((t={reason:0})[St]=!1,t),s[Pt]&&!0===s[Pt](i,o,u)?n=!0:u(),n;function u(){var t;r||(r=!0,l.run(i,e),t=d,d=[],$(t,function(t){t.rm()}),!0===n&&i[h](o),p())}},s[Rt]=function(t,e){var n,r,i,o=s[y];if(o&&(!t||o===t[y]()))return r=!1,i=t||function u(t,n,e){var r=n[_t]||{},i=tr(t,r,n,e).ctx;return i[h]=function(e){return i.iterate(function(t){G(t[Rt])&&t[Rt](i,e)})},i[Ft]=function(t,e){return u((t=W(t=void 0===t?null:t)?nr(t,r,n,e):t)||i[jt](),n,e)},i}(null,o,f&&f[x]?f[x]():f),s._doUpdate&&!0===s._doUpdate(i,e||{reason:0},a)?n=!0:a(),n;function a(){r||(r=!0,c(i.getCfg(),i.core(),i[jt]()))}},s._addHook=function(t){t&&(W(t)?d=d.concat(t):d[U](t))},n="_addUnloadCb",e=function(){return l},(t=s)&&e&&(t[n]=(i=r=null,G(n=e)?r=n:i=n,function(){var t=arguments;if(i=r?r():i)return i.add[Gt](i,t)}))}),u[Lt]=function(t){return e(t)[Lt]()},u[Mt]=function(){return o},u.setInitialized=function(t){o=t},u[Nt]=function(t){f=t},u[h]=function(t,e){e?e[h](t):f&&G(f[re])&&f[re](t,null)},u._getTelCtx=e}var ar="_aiHooks",ur=["req","rsp","hkErr","fnErr"];function cr(t,e){if(t)for(var n=0;n<t[X]&&!e(t[n],n);n++);}function sr(t,a,u,c,s){0<=s&&s<=2&&cr(t,function(t,e){var t=t.cbks,n=t[ur[s]];if(n){a.ctx=function(){return c[e]=c[e]||{}};try{n[Gt](a.inst,u)}catch(i){n=a.err;try{var r=t.hkErr;r&&(a.err=i,r[Gt](a.inst,u))}catch(o){}finally{a.err=n}}}})}function fr(c){return function(){var n=arguments,t=c.h,r=((e={})[Ct]=c.n,e.inst=this,e.ctx=null,e.set=function(t,e){(n=o([],n))[t]=e,i=o([r],n)},e),e=[],i=o([r],n);function o(e,t){return cr(t,function(t){e[U](t)}),e}r.evt=B("event"),sr(t,r,i,e,0);var a=c.f;if(a)try{r.rslt=a[Gt](this,n)}catch(u){throw r.err=u,sr(t,r,i,e,3),u}return sr(t,r,i,e,1),r.rslt}}function lr(t,e,n,r){if(void 0===r&&(r=!0),t&&e&&n){t=function o(t,e,n){var r=null;return t&&(b[p](t,e)?r=t:n&&(r=o(Me(t),e,!1))),r}(t,e,r);if(t){r=t[e];if(typeof r===a)return t=t,e=e,n=n,(i=r&&r[ar])||((r=fr(i={i:0,n:e,f:r,h:[]}))[ar]=i,t[e]=r),e={id:i.i,cbks:n,rm:function(){var n=this.id;cr(i.h,function(t,e){return t.id===n&&(i.h[Ht](e,1),1)})}},i.i++,i.h[U](e),e}}var i;return null}var dr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e="/v2/track",pr="not_specified",gr="iKey",T="length",vr="toLowerCase",hr="toString",yr="name",mr="pathname",xr="correlationHeaderExcludePatterns",Tr="indexOf",br="substring",Cr="";function wr(t){var e=Cr+Math.floor((t=Math.round(t=isNaN(t)||t<0?0:t))/1e3)%60,n=Cr+Math.floor(t/6e4)%60,r=Cr+Math.floor(t/36e5)%24,i=Math.floor(t/864e5),t=1===(t=Cr+t%1e3)[T]?"00"+t:2===t[T]?"0"+t:t,e=e[T]<2?"0"+e:e,n=n[T]<2?"0"+n:n,r=r[T]<2?"0"+r:r;return(0<i?i+".":Cr)+r+":"+n+":"+e+"."+t}Mr={},V({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(t,e){Mr[t]=e[1],Mr[e[0]]=e[1]});var Mr,Y=Re(Mr);function _r(t,e,n){var r=e[T],i=Ir(t,e);if(i[T]!==r){for(var o=0,a=i;n[a]!==undefined;)o++,a=i[br](0,147)+Dr(o);i=a}return i}function Ir(t,e){var n;return e&&150<(e=De(e[hr]()))[T]&&(n=e[br](0,150),m(t,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0)),n||e}function Z(t,e,n){var r;return void 0===n&&(n=1024),e&&(n=n||1024,(e=De(e)).toString()[T]>n&&(r=e[hr]()[br](0,n),m(t,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:e},!0))),r||e}function qr(t,e){return kr(t,e,2048,66)}function Er(r,t){var i;return t&&(i={},V(t,function(t,e){if(Ie(e)&&tn())try{e=en().stringify(e)}catch(n){m(r,2,49,"custom property is not valid",{exception:n},!0)}e=Z(r,e,8192),t=_r(r,t,i),i[t]=e}),t=i),t}function Hr(n,t){var r;return t&&(r={},V(t,function(t,e){t=_r(n,t,r),r[t]=e}),t=r),t}function kr(t,e,n,r){var i;return e&&(e=De(e))[T]>n&&(i=e[br](0,n),m(t,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:e},!0)),i||e}function Dr(t){t="00"+t;return t.substr(t[T]-3)}(t={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=_r,t.sanitizeKey=Ir,t.sanitizeString=Z,t.sanitizeUrl=qr,t.sanitizeMessage=function(t,e){var n;return e&&32768<e[T]&&(n=e[br](0,32768),m(t,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),n||e},t.sanitizeException=function(t,e){var n,r;return e&&32768<(r=""+e)[T]&&(n=r[br](0,32768),m(t,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),n||e},t.sanitizeProperties=Er,t.sanitizeMeasurements=Hr,t.sanitizeId=function(t,e){return e&&kr(t,e,128,69)[hr]()},t.sanitizeInput=kr,t.padNumber=Dr,t.trim=De;var Ar=Ye()||{},Sr=0,Pr=[null,null,null,null,null];function Rr(n){var t=Sr,e=Pr,r=e[t];return Ar.createElement?e[t]||(r=e[t]=Ar.createElement("a")):r={host:function(){var t=jr(n,!0)||"";if(t){var e=t.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=e&&3<e[T]&&He(e[2])&&0<e[2][T])return e[2]+(e[3]||"")}return t}()},r.href=n,++t>=e[T]&&(t=0),Sr=t,r}function jr(t,e){var n=null;return t&&null!=(t=t.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t[T]&&He(t[2])&&0<t[2][T]&&(n=t[2]||"",e&&2<t[T]&&(e=(t[1]||"")[vr](),t=t[3]||"",n+=t="http"===e&&":80"===t||"https"===e&&":443"===t?"":t)),n}var Lr=["https://dc.services.visualstudio.com"+e,"https://breeze.aimon.applicationinsights.io"+e,"https://dc-int.services.visualstudio.com"+e],Nr={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(t,e,n){if(!e||t&&t.disableCorrelationHeaders)return!1;if(t&&t[xr])for(var r=0;r<t.correlationHeaderExcludePatterns[T];r++)if(t[xr][r].test(e))return!1;var i=Rr(e).host[vr]();if(!i||-1===i[Tr](":443")&&-1===i[Tr](":80")||(i=(jr(e,!0)||"")[vr]()),(!t||!t.enableCorsCorrelation)&&i&&i!==n)return!1;var o,n=t&&t.correlationHeaderDomains;if(n&&($(n,function(t){t=RegExp(t.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||t.test(i)}),!o))return!1;var a=t&&t.correlationHeaderExcludedDomains;if(!a||0===a[T])return!0;for(r=0;r<a[T];r++)if(RegExp(a[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1;return i&&0<i[T]},getCorrelationContext:function(t){if(t){t=Nr.getCorrelationContextValue(t,Y[1]);if(t&&t!==Nr.correlationIdPrefix)return t}},getCorrelationContextValue:function(t,e){if(t)for(var n=t.split(","),r=0;r<n[T];++r){var i=n[r].split("=");if(2===i[T]&&i[0]===e)return i[1]}}};function Fr(){var t=Qe();if(t&&t.now&&t.timing){t=t.now()+t.timing.navigationStart;if(0<t)return t}return Le()}function Or(t,e){return 0===t||0===e||K(t)||K(e)?null:e-t}Ur.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Ur.dataType="RemoteDependencyData";var zr=Ur;function Ur(t,e,n,r,i,o,a,u,c,s,f,l){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,g=this,n=(g.ver=2,g.id=e,g.duration=wr(i),g.success=o,g.resultCode=a+"",g.type=Z(t,c),e=t,i=u,c=a=o=r,a=(u=n)&&0<u[T]?(p=(n=Rr(u)).host,a||(null!=n[mr]?("/"!=((d=0===n.pathname[T]?"/":n[mr])[0]||"")&&(d="/"+d),c=n[mr],Z(e,i?i+" "+d:d)):Z(e,u))):p=o,{target:p,name:a,data:c});g.data=qr(t,r)||n.data,g.target=Z(t,n.target),s&&(g.target="".concat(g.target," | ").concat(s)),g[yr]=Z(t,n[yr]),g.properties=Er(t,f),g.measurements=Hr(t,l)}var Xr="duration",Q="properties",tt="requestUrl",Kr="inst",et="length",nt="traceID",Gr="spanID",Vr="traceFlags",rt="core",Wr="getDefaultConfig",$r="includeCorrelationHeaders",Br="canIncludeCorrelationHeader",Jr="getAbsoluteUrl",Yr="headers",it="requestHeaders",Zr="appId",Qr="setRequestHeader",ti="distributedTracingMode",ei="startTime",ni="toLowerCase",ri="enableRequestHeaderTracking",ii="enableAjaxErrorStatusText",oi="enableAjaxPerfTracking",ai="enableResponseHeaderTracking",ui="excludeRequestFromAutoTrackingPatterns",ci="addRequestContext",ot="status",si="statusText",fi="headerMap",li="openDone",di="sendDone",pi="requestSentTime",gi="abortDone",at="method",vi="errorStatusText",hi="stateChangeAttached",yi="responseText",mi="responseFinishedTime",xi="CreateTrackItem",Ti="response",bi="getAllResponseHeaders",Ci="getCorrelationContext",wi="perfMark",Mi="ajaxPerfLookupDelay",_i="name",Ii="perfTiming",qi="ajaxDiagnosticsMessage",Ei="correlationContext",Hi="ajaxTotalDuration";function ki(t,e,n){e=t[e],n=t[n];return e&&n?Or(e,n):0}function Di(t,e,n,r,i){n=ki(n,r,i);return n?Ai(t,e,wr(n)):0}function Ai(t,e,n){var r="ajaxPerf",i=0;return t&&e&&n&&((t[r]=t[r]||{})[e]=n,i=1),i}var Si=function(){var t=this;t[li]=!1,t.setRequestHeaderDone=!1,t[di]=!1,t[gi]=!1,t[hi]=!1},Pi=(Ri.__ieDyn=1,Ri);function Ri(t,e,n){var r=this,i=n;r[wi]=null,r.completed=!1,r.requestHeadersSize=null,r[it]=null,r.responseReceivingDuration=null,r.callbackDuration=null,r[Hi]=null,r.aborted=0,r.pageUrl=null,r[tt]=null,r.requestSize=0,r[at]=null,r[ot]=null,r[pi]=null,r.responseStartedTime=null,r[mi]=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new Si,r.clientFailure=0,r[nt]=t,r[Gr]=e,bt(Ri,r,function(m){m.getAbsoluteUrl=function(){return m[tt]?(t=Rr(m[tt]))?t.href:void 0:null;var t},m.getPathName=function(){return m[tt]?qr(i,(t=m[at],e=m[tt],t?t.toUpperCase()+" "+e:e)):null;var t,e},m[xi]=function(t,e,n){if(m.ajaxTotalDuration=Math.round(1e3*Or(m.requestSentTime,m.responseFinishedTime))/1e3,m[Hi]<0)return null;(r={id:"|"+m[nt]+"."+m[Gr],target:m[Jr]()})[_i]=m.getPathName(),r.type=t,r[ei]=null,r.duration=m[Hi],r.success=200<=+m[ot]&&+m[ot]<400,r.responseCode=+m[ot],r.method=m[at],r[Q]={HttpMethod:m[at]};var r,i,o,a,u,c,s,f,l,d,p,g,v,h,y,t=r;return m[pi]&&(t[ei]=new Date,t[ei].setTime(m[pi])),a=(r=m)[Ii],u=(i=t)[Q]||{},c=0,g="startTime",h="connectEnd",s="requestStart",v="responseEnd",f="transferSize",l="encodedBodySize",d="decodedBodySize",p="serverTiming",a?(c=(c=(c=(c=(c=(c=(c|=Di(u,"End",a,"redirectStart","End"))|Di(u,"domainLookup",a,"domainLookupStart","domainLookupEnd"))|Di(u,"connect",a,"connectStart",h))|Di(u,"request",a,s,"requestEnd"))|Di(u,"response",a,"responseStart",v))|Di(u,"networkConnect",a,g,h))|Di(u,"sentRequest",a,s,v),h=a[Xr]||ki(a,g,v)||0,c=(c|=Ai(u,Xr,h))|Ai(u,"perfTotal",h),(s=a[p])&&(o={},$(s,function(t,e){var e=qe(t.name||""+e),n=o[e]||{};V(t,function(t,e){!("name"!==t&&He(e)||"number"==typeof e)||!(e=n[t]?n[t]+";"+e:e)&&He(e)||(n[t]=e)}),o[e]=n}),c|=Ai(u,p,o)),c=(c=(c|=Ai(u,f,a[f]))|Ai(u,l,a[l]))|Ai(u,d,a[d])):r[wi]&&(c|=Ai(u,"missing",r.perfAttempts)),c&&(i[Q]=u),e&&0<Pe(m.requestHeaders)[et]&&((y=t[Q]=t[Q]||{})[it]=m[it]),n&&(g=n())&&((v=g[Ei])&&(t.correlationContext=v),g[fi]&&0<Pe(g.headerMap)[et]&&((y=t[Q]=t[Q]||{}).responseHeaders=g[fi]),m.errorStatusText&&400<=m[ot]&&(h=g.type,y=t[Q]=t[Q]||{},""!==h&&"text"!==h||(y.responseText=g.responseText?g[si]+" - "+g.responseText:g[si]),"json"===h&&(y.responseText=g.response?g[si]+" - "+JSON.stringify(g[Ti]):g[si]))),t}})}var ji="ai.ajxmn.",Li="diagLog",ut="ajaxData",Ni="fetch",Fi="trackDependencyDataInternal",Oi=0;function zi(t){var e=!1,n=(function(){var t=!1;try{t=!!B($e)}catch(e){}return t}()&&(e=!(K(n=XMLHttpRequest[z])||K(n.open)||K(n.send)||K(n.abort))),function(t){var e=((t=(t=void 0===t?null:t)?t:(e=Ze()||{})?(e[Ot]||d)[Wt]():d)||d)[Wt]();if(Ee(e,Ve))return t=Ye()||{},Math.max(parseInt(e[zt](Ve)[1]),t[Oe]||0);if(Ee(e,We)){t=parseInt(e[zt](We)[1]);if(t)return t+4}return null}());if(e=!(n&&n<9)&&e)try{(new XMLHttpRequest)[ut]={};var r=XMLHttpRequest[z].open;XMLHttpRequest[z].open=r}catch(i){e=!1,Xi(t,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:J(i)})}return e}function Ui(t){var e="";try{K(t)||K(t[ut])||K(t[ut][tt])||(e+="(url: '"+t[ut][tt]+"')")}catch(n){}return e}function Xi(t,e,n,r,i){m(t[Li](),1,e,n,r,i)}function Ki(t,e,n,r,i){m(t[Li](),2,e,n,r,i)}function Gi(e,n,r){return function(t){Xi(e,n,r,{ajaxDiagnosticsMessage:Ui(t[Kr]),exception:J(t.err)})}}function Vi(t,e){return t&&e?t.indexOf(e):-1}function Wi(t,e,n,r,i,o){var a,u=t[et];if(0<u){(a={})[rt]=e,a.xhr=r,a.input=i,a.init=o,a.traceId=n[nt],a.spanId=n[Gr],a.traceFlags=n[Vr];for(var c=a,s=0;s<u;++s){var f=t[s];if(f&&f.fn)try{f.fn.call(null,c)}catch(l){var f=c[rt];m(f&&f.logger,1,64,"Dependency listener [#"+s+"] failed: "+((f=l)&&"[object Error]"===ye[p](f)?f[Ct]:d),{exception:J(l)},!0)}}n[nt]=c.traceId,n[Gr]=c.spanId,n[Vr]=c[Vr]}}var $i,Bi,Ji=Re(["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"]),e=(Bi=ct,typeof(t=$i=f)!==a&&null!==t&&C("Class extends value "+t+" is not a constructor or null"),w(Bi,t),Bi[z]=(Yi[z]=t[z],new Yi),ct.getDefaultConfig=function(){var t={maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1};return t[ui]=undefined,t.disableCorrelationHeaders=!1,t.distributedTracingMode=1,t.correlationHeaderExcludedDomains=Ji,t.correlationHeaderDomains=undefined,t.correlationHeaderExcludePatterns=undefined,t[Zr]=undefined,t.enableCorsCorrelation=!1,t[ri]=!1,t[ai]=!1,t[ii]=!1,t[oi]=!1,t.maxAjaxPerfLookupAttempts=3,t[Mi]=25,t.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],t[ci]=undefined,t},ct.getEmptyConfig=function(){var e=this[Wr]();return V(e,function(t){e[t]=undefined}),e},ct.prototype.processTelemetry=function(t,e){this.processNext(t,e)},ct.identifier="AjaxDependencyPlugin",ct);function Yi(){this.constructor=Bi}function ct(){var b,C,w,M,_,I,r,q,E,H,k,D,A,S,P,R,j,L,N,F,e,O,t=$i.call(this)||this;return t.identifier=ct.identifier,t.priority=120,bt(ct,t,function(l,a){var u=a._addHook;function t(){var t=typeof location===st&&location?location:B("location");C=b=!1,w=t&&t.host&&t.host[ni](),M=ct.getEmptyConfig(),S=D=H=E=I=_=!1,j=R=!(P={}),F=N=L=k=q=null,e=A=r=0,O=[]}function d(e){var n=!0;return(e||M.ignoreHeaders)&&$(M.ignoreHeaders,function(t){if(t[ni]()===e[ni]())return n=!1,-1}),n}function c(t,e,n){u(t?lr(t[z],e,n,!1):null)}function p(t,e,n){var r=!1,i=((He(e)?e:(e||{}).url||"")||"")[ni]();if($(L,function(t){var e=t;He(t)&&(e=RegExp(t)),r=r||e.test(i)}),r)return r;var o=Vi(i,"?"),a=Vi(i,"#");return-1!==(o=-1===o||-1!==a&&a<o?a:o)&&(i=i.substring(0,o)),K(t)?K(e)||(r="object"==typeof e&&!0===e[dr]||!!n&&!0===n[dr]):r=!0===t[dr]||!0===i[dr],(r=!(r||!i||-1===function(t,e){if(t){if(t[se])return t[se](e,void 0);var n=t[X];try{for(var r=0;r<n;r++)if(r in t&&t[r]===e)return r}catch(i){}}return-1}(Lr,i[vr]()))||r)?P[i]||(P[i]=1):P[i]&&(r=!0),r}function s(t,e){var n=!0,r=C;return K(t)||(n=!0===e||!K(t[ut])),r&&n}function g(){var t,e,n=null;return!(n=l[rt]&&l[rt].getTraceCtx?l[rt].getTraceCtx(!1):n)&&q&&q.telemetryTrace&&(t=q.telemetryTrace,e=t||{},n={getName:function(){return e[yr]},setName:function(t){e[yr]=t},getTraceId:function(){return e.traceID},setTraceId:function(t){Gn(t)&&(e.traceID=t)},getSpanId:function(){return e.parentID},setSpanId:function(t){Vn(t)&&(e.parentID=t)},getTraceFlags:function(){return e.traceFlags},setTraceFlags:function(t){e.traceFlags=t}}),n}function v(a){a[ut].xhrMonitoringState[hi]=function(t,e,n,r){void 0===r&&(r=!1);var i,o,a,u,c,s=!1;if(t)try{var f,l=jn("readystatechange",n),d=l,p=e,g=r,v=!1;(c=t)&&d&&d[$t]&&p&&(c[Hn]?(c[Hn](d[$t],p,g),v=!0):c[En]&&(c[En]("on"+d[$t],p),v=!0)),(s=v)&&Sn.accept(t)&&((i={guid:An++,evtName:l}).handler=e,i.capture=r,f=i,o=l.type,((u=Sn.get(t,"events",{},a=void 0===a||a))[o]||(u[o]=[]))[U](f))}catch(h){}return s}(a,function(){var t,r,i;try{a&&4===a.readyState&&s(a)&&((i=(r=a)[ut])[mi]=Fr(),i[ot]=r[ot],y("xmlhttprequest",i,function(){try{var t=i[xi]("Ajax",_,function(){(e={statusText:r[si],headerMap:null})[Ei]=f(r),e.type=r.responseType,e[yi]=function(t){try{var e=t.responseType;if(""===e||"text"===e)return t[yi]}catch(n){}return null}(r),e.response=r[Ti];var t,n,e;return S&&(t=r[bi]())&&(t=De(t).split(/[\r\n]+/),n={},$(t,function(t){var t=t.split(": "),e=t.shift(),t=t.join(": ");d(e)&&(n[e]=t)}),e[fi]=n),e}),e=void 0;try{N&&(e=N({status:r[ot],xhr:r}))}catch(n){Ki(l,104,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t[Q]=lt(lt({},t.properties),e)),l[Fi](t)):o(null,{requestSentTime:i[pi],responseFinishedTime:i[mi]})}finally{try{r[ut]=null}catch(n){}}},function(t){o(t,null)}))}catch(n){var e=J(n);e&&-1!==Vi(e[ni](),"c00c023f")||Xi(l,16,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",((t={})[qi]=Ui(a),t.exception=e,t))}function o(t,e){e=e||{};e.ajaxDiagnosticsMessage=Ui(r),t&&(e.exception=J(t)),Ki(l,14,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",e)}},F)}function f(t){try{var e,n=t[bi]();if(null!==n&&-1!==Vi(n[ni](),Y[8]))return e=t.getResponseHeader(Y[0]),Nr[Ci](e)}catch(r){Ki(l,18,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",((n={})[qi]=Ui(t),n.exception=J(r),n))}}function h(t,e){var n;e[tt]&&k&&D&&(n=Qe())&&G(n.mark)&&(t=k+t+"#"+ ++Oi,n.mark(t),(t=n.getEntriesByName(t))&&1===t[et]&&(e[wi]=t[0]))}function y(o,a,u,c){var s=a[wi],f=Qe(),l=M.maxAjaxPerfLookupAttempts,d=M[Mi],p=a[tt],g=0;!function v(){try{if(f&&s){g++;for(var t=null,e=f.getEntries(),n=e[et]-1;0<=n;n--){var r=e[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===Vi(r[_i],p)&&-1===Vi(p,r[_i])||(t=r);else if("mark"===r.entryType&&r[_i]===s[_i]){a[Ii]=t;break}if(r[ei]<s[ei]-1e3)break}}}!s||a[Ii]||l<=g||!1===a["async"]?(s&&G(f.clearMarks)&&f.clearMarks(s[_i]),a.perfAttempts=g,u()):setTimeout(v,d)}catch(i){c(i)}}()}function m(t){var e="";try{K(t)||(e+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(n){Xi(l,15,"Failed to grab failed fetch diagnostics message",{exception:J(n)})}return e}function x(t,r,i,o,a,u){function c(t,e,n){n=n||{};n.fetchDiagnosticsMessage=m(i),e&&(n.exception=J(e)),Ki(l,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}a&&(a[mi]=Fr(),a[ot]=r,y("fetch",a,function(){var t,e=a[xi]("Fetch",_,u);try{N&&(t=N({status:r,request:i,response:o}))}catch(n){Ki(l,104,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e[Q]=lt(lt({},e.properties),t)),l[Fi](e)):c(14,null,{requestSentTime:a[pi],responseFinishedTime:a[mi]})},function(t){c(18,t,null)}))}function T(t){if(t&&t[Yr])try{var e=t[Yr].get(Y[0]);return Nr[Ci](e)}catch(n){Ki(l,18,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:m(t),exception:J(n)})}}t(),l.initialize=function(t,e,n,r){var i,f,o;l.isInitialized()||(a.initialize(t,e,n,r),n=In("ajax"),o=(r=e&&e.evtNamespace&&e.evtNamespace())?jn("xx",o=W(r)?[n].concat(r):[n,r]).ns[zt]("."):n,F=o,i=er(null,e=t,l[rt]),M=ct.getEmptyConfig(),V(ct[Wr](),function(t,e){M[t]=i.getConfig(ct.identifier,t,e)}),r=M[ti],_=M[ri],I=M[ii],D=M[oi],A=M.maxAjaxCallsPerView,S=M[ai],L=M[ui],N=M[ci],H=0===r||1===r,E=1===r||2===r,D&&(n=e.instrumentationKey||"unkwn",k=5<n[et]?ji+n.substring(n[et]-5)+".":ji+n+"."),R=!!M.disableAjaxTracking,j=!!M.disableFetchTracking,!zi(l)||R||C||(c(XMLHttpRequest,"open",{ns:F,req:function(t,e,n,r){var i,o,a,u;R||(i=(t=t[Kr])[ut],!p(t,n)&&s(t,!0)&&(i&&i.xhrMonitoringState[li]||(i=t,e=e,n=n,r=r,u=(o=g())&&o.getTraceId()||Ln(),a=Ln().substr(0,16),(u=new Pi(u,a,l[Li]()))[Vr]=o&&o.getTraceFlags(),u[at]=e,u[tt]=n,u.xhrMonitoringState[li]=!0,u[it]={},u["async"]=r,u[vi]=I,i[ut]=u),v(t)))},hkErr:Gi(l,15,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),c(XMLHttpRequest,"send",{ns:F,req:function(t,e){var n;R||(n=(t=t[Kr])[ut],s(t)&&!n.xhrMonitoringState[di]&&(h("xhr",n),n[pi]=Fr(),l[$r](n,undefined,undefined,t),n.xhrMonitoringState[di]=!0))},hkErr:Gi(l,17,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),c(XMLHttpRequest,"abort",{ns:F,req:function(t){var e;R||(e=(t=t[Kr])[ut],s(t)&&!e.xhrMonitoringState[gi]&&(e.aborted=1,e.xhrMonitoringState[gi]=!0))},hkErr:Gi(l,13,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),c(XMLHttpRequest,"setRequestHeader",{ns:F,req:function(t,e,n){!R&&_&&s(t=t[Kr])&&d(e)&&(t[ut][it][e]=n)},hkErr:Gi(l,71,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),C=!0),(t=!(o=ft())||K(o.Request)||K(o.Request[z])||K(o[Ni])?null:o[Ni])&&(r=ft(),f=t.polyfill,j||b?f&&u(lr(r,Ni,{ns:F,req:function(t,e,n){p(null,e,n)}})):(u(lr(r,Ni,{ns:F,req:function(t,e,n){var r,i,o,a,u,c,s;j||!b||p(null,e,n)||f&&C||(r=t.ctx(),i=e,o=n,u=(a=g())&&a.getTraceId()||Ln(),c=Ln().substr(0,16),(u=new Pi(u,c,l[Li]()))[Vr]=a&&a.getTraceFlags(),u[pi]=Fr(),u[vi]=I,i instanceof Request?u[tt]=i?i.url:"":u[tt]=i,c="GET",o&&o[at]?c=o[at]:i&&i instanceof Request&&(c=i[at]),u[at]=c,s={},_&&new Headers((o?o[Yr]:0)||i instanceof Request&&i[Yr]||{}).forEach(function(t,e){d(e)&&(s[e]=t)}),u[it]=s,h("fetch",u),a=u,(c=l[$r](a,e,n))!==n&&t.set(1,c),r.data=a)},rsp:function(t,n){var r;j||(r=t.ctx().data)&&(t.rslt=t.rslt.then(function(e){return x(0,(e||{})[ot],n,e,r,function(){(t={statusText:e[si],headerMap:null})[Ei]=T(e);var n,t;return S&&(n={},e.headers.forEach(function(t,e){d(e)&&(n[e]=t)}),t[fi]=n),t}),e})["catch"](function(t){throw x(0,0,n,null,r,null,t.message),t}))},hkErr:Gi(l,15,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),b=!0),f&&(r[Ni].polyfill=f)),(e=l[rt].getPlugin("AppInsightsPropertiesPlugin"))&&(q=e.plugin.context))},l._doTeardown=function(){t()},l.trackDependencyData=function(t,e){l[Fi](t,e)},l[$r]=function(t,e,n,r){var i,o,a,u,c=l._currentWindowHost||w;return Wi(O,l[rt],t,r,e,n),e?(Nr[Br](M,t[Jr](),c)&&(n=n||{},e=new Headers(n[Yr]||e instanceof Request&&e[Yr]||{}),H&&(i="|"+t[nt]+"."+t[Gr],e.set(Y[3],i),_&&(t[it][Y[3]]=i)),(o=M[Zr]||q&&q[Zr]())&&(e.set(Y[0],Y[2]+o),_&&(t[it][Y[0]]=Y[2]+o)),E&&(K(a=t[Vr])&&(a=1),u=Wn(Kn(t[nt],t[Gr],a)),e.set(Y[4],u),_&&(t[it][Y[4]]=u)),n[Yr]=e),n):r?(Nr[Br](M,t[Jr](),c)&&(H&&(i="|"+t[nt]+"."+t[Gr],r[Qr](Y[3],i),_&&(t[it][Y[3]]=i)),(o=M[Zr]||q&&q[Zr]())&&(r[Qr](Y[0],Y[2]+o),_&&(t[it][Y[0]]=Y[2]+o)),E&&(K(a=t[Vr])&&(a=1),u=Wn(Kn(t[nt],t[Gr],a)),r[Qr](Y[4],u),_&&(t[it][Y[4]]=u))),r):undefined},l[Fi]=function(t,e,n){-1===A||r<A?(2!==M[ti]&&1!==M[ti]||"string"!=typeof t.id||"."===t.id[t.id[et]-1]||(t.id+="."),K(t[ei])&&(t[ei]=new Date),t=function(t,e,n,r,i,o){var a;if(n=Z(r,n)||pr,K(t)||K(e)||K(n))throw Error("Input doesn't contain all required fields");var r="",u=(t[gr]&&(r=t[gr],delete t[gr]),(a={})[yr]=n,a.time=function(t){if(t){if(he)return t[ce]();var e;return t&&t.getUTCFullYear?(e=function(t){t=""+t;return 1===t[X]?"0"+t:t},t.getUTCFullYear()+"-"+e(1+t.getUTCMonth())+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}(new Date),a.iKey=r,a.ext=o||{},a.tags=[],a.data={},a.baseType=e,a.baseData=t,a);return K(i)||V(i,function(t,e){u.data[t]=e}),u}(t,zr.dataType,zr.envelopeType,l[Li](),e,n),l[rt].track(t)):r===A&&Xi(l,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),++r},l.addDependencyListener=function(t){var n={id:e++,fn:t};return O.push(n),{remove:function(){$(O,function(t,e){if(t.id===n.id)return O.splice(e,1),-1})}}}}),t}r.AjaxPlugin=e,r.DfltAjaxCorrelationHeaderExDomains=Ji,r.ajaxRecord=Pi;f=r,t="__esModule",e={value:!0},r=Object.defineProperty;if(r)try{return void r(f,t,e)}catch(Zi){}typeof e.value!==undefined&&(f[t]=e.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Microsoft=t.Microsoft||{},t.Microsoft.ApplicationInsights=t.Microsoft.ApplicationInsights||{}));
5
+ var e=this,n=function(i){"use strict";var a="function",ue="object",u="undefined",U="prototype",c="hasOwnProperty",s=Object,w=s[U],T=s.assign,I=s.create,e=s.defineProperty,C=w[c],q=null;function ce(e){return void 0===e&&(e=!0),q&&e||(typeof globalThis!==u&&globalThis&&(q=globalThis),typeof self!==u&&self&&(q=self),typeof window!==u&&window&&(q=window),typeof global!==u&&global&&(q=global)),q}function k(e){throw new TypeError(e)}(ce()||{}).Symbol,(ce()||{}).Reflect;var se=T||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])w[c].call(n,o)&&(e[o]=n[o]);return e},M=function(e,n){return(M=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[c](t)&&(e[t]=n[t])})(e,n)};function _(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&k("Class extends value "+n+" is not a constructor or null"),M(e,n),e[U]=null===n?function(e){if(I)return I(e);if(null==e)return{};var n=typeof e;function t(){}return n!==ue&&n!==a&&k("Object prototype may only be an Object:"+e),t[U]=e,new t}(n):(t[U]=n[U],new t)}var D="constructor",v="prototype",S="function",A="_dynInstFuncs",R="_isDynProxy",H="_dynClass",N="_dynInstChk",E=N,P="_dfOpts",j="_unknown_",L="__proto__",F="_dyn"+L,O="_dynInstProto",le="useBaseInst",fe="setInstFuncs",de=Object,pe=de.getPrototypeOf,ve=de.getOwnPropertyNames,ge=0;function g(e,n){return e&&de[v].hasOwnProperty.call(e,n)}function he(e){return e&&(e===de[v]||e===Array[v])}function ye(e){return he(e)||e===Function[v]}function me(e){if(e){if(pe)return pe(e);var n=e[L]||e[v]||(e[D]?e[D][v]:null),t=e[F]||n;g(e,F)||(delete e[O],t=e[F]=e[O]||e[F],e[O]=n)}return t}function xe(e,n){var t=[];if(ve)t=ve(e);else for(var r in e)"string"==typeof r&&g(e,r)&&t.push(r);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function be(e,n,t){return n!==D&&typeof e[n]===S&&(t||g(e,n))}function we(e){throw new TypeError("DynamicProto: "+e)}function Te(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Ie(e,n){return g(e,v)?e.name||n||j:((e||{})[D]||{}).name||n||j}function Ce(e,r,n,t){g(e,v)||we("theClass is an invalid class definition.");var o,i,a,u,c,s,l=e[v],f=(function(e){if(!pe)return 1;for(var n=[],t=me(r);t&&!ye(t)&&!Te(n,t);){if(t===e)return 1;n.push(t),t=me(t)}}(l)||we("["+Ie(e)+"] is not in class hierarchy of ["+Ie(r)+"]"),null),e=(g(l,H)?f=l[H]:(f="_dynCls$"+Ie(e,"_")+"$"+ge,ge++,l[H]=f),Ce[P]),d=!!e[le],p=(d&&t&&t[le]!==undefined&&(d=!!t[le]),i={},xe(o=r,function(e){!i[e]&&be(o,e,!1)&&(i[e]=o[e])}),i),d=(n(r,function(e,n,t,i){function r(e,n,t){var r,o=n[t];return o[R]&&i&&!1!==(r=e[A]||{})[E]&&(o=(r[n[H]]||{})[t]||o),function(){return o.apply(e,arguments)}}for(var o={},a=(xe(t,function(e){o[e]=r(n,t,e)}),me(e)),u=[];a&&!ye(a)&&!Te(u,a);)xe(a,function(e){!o[e]&&be(a,e,!pe)&&(o[e]=r(n,a,e))}),u.push(a),a=me(a);return o}(l,r,p,d)),!!pe&&!!e[fe]);a=l,n=f,u=r,c=p,e=!1!==(d=d&&t?!!t[fe]:d),he(a)||(l=u[A]=u[A]||{},s=l[n]=l[n]||{},!1!==l[E]&&(l[E]=!!e),xe(u,function(e){var t,r,o;be(u,e,!1)&&u[e]!==c[e]&&(s[e]=u[e],delete u[e],g(a,e)&&(!a[e]||a[e][R])||(a[e]=(t=a,r=e,(o=function(){var e,n;return(function(e,n,t,r){var o=null;if(e&&g(t,H)){var i=e[A]||{};if((o=(i[t[H]]||{})[n])||we("Missing ["+n+"] "+S),!o[N]&&!1!==i[E]){for(var a=!g(e,n),u=me(e),c=[];a&&u&&!ye(u)&&!Te(c,u);){var s=u[n];if(s){a=s===r;break}c.push(u),u=me(u)}try{a&&(e[n]=o),o[N]=1}catch(l){i[E]=!1}}}return o}(this,r,t,o)||(typeof(n=(n=t[e=r])===o?me(t)[e]:n)!==S&&we("["+e+"] is not a "+S),n)).apply(this,arguments)})[R]=1,o)))}))}Ce[P]={setInstFuncs:!0,useBaseInst:!0};var qe=undefined,ke="object",Me="prototype",_e="undefined",De="hasOwnProperty",T="indexOf",Se="length",Ae=Object,Re=Ae[Me],n=String[Me];function He(e,n){try{n=e()}catch(t){}return n}function Ne(n){return function(e){return typeof e===n}}function Ee(e){return Re.toString.call(e)}function Pe(e){return typeof e===_e||e===_e}function V(e){return null===e||Pe(e)}function je(e){return!!e||e!==qe}var Le=Ne("string"),X=Ne("function");function Fe(e){return!V(e)&&!!e&&typeof e===ke}var z=Array.isArray,Oe=Ne("number"),Ue=Ne("boolean"),Ve=function(e){return!(!e||"[object Error]"!==Ee(e))},Xe="window",ze=null,Ke=He(function(){return je(window)},!1),Be=He(function(){return je(document)},!1),Je=He(function(){return je(navigator)},!1);function K(e,n){(n=!1===n?null:ze)||((n=(n=(n=typeof globalThis!==_e?globalThis:n)||typeof self===_e?n:self)||typeof window===_e?n:window)||typeof global===_e||(n=global),ze=n);return n&&n[e]?n[e]:e===Xe&&Ke?window:null}function We(){return Be?document:K("document")}function $e(){return Je?navigator:K("navigator")}function Ge(e,n){return e&&Re[De].call(e,n)}function B(e,n,t){if(e&&Fe(e))for(var r in e)if(Ge(e,r)&&-1===n.call(t||e,r,e[r]))break}function J(e,n,t){if(e)for(var r=e[Se],o=0;o<r&&!(o in e&&-1===n.call(t||e,e[o],o,e));o++);}function Qe(e){throw new TypeError(e)}He(function(){return je(history)},!1),He(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1),He(function(){return!(!process||!(process.versions||{}).node)},!1),Ae.assign;var Ye=Ae.freeze;function Ze(e){return Fe(e)&&null!==e||Qe("objKeys called on non-object"),Ae.keys(e)}function en(e){return Ye&&B(e,function(e,n){(z(n)||Fe(n))&&Ye(n)}),nn(e)}var nn=Ye||function(e){return e};function W(e,n){var t=Ee(e);return t+": "+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":n?Oe(n)?JSON.stringify(e,null,n):JSON.stringify(e,null,n?4:0):JSON.stringify(e))}function tn(r){return function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if((e||""===e)&&e[r])return e[r].apply(e,n);Qe("'"+r+"' not defined for "+W(e))}}Ae.seal;var rn,on=tn(T);function an(e){var n,t,r;throw new(rn=rn||(t=function(){var e=this;return n.apply(e,arguments)||e},r=n=Error,(Ae.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(t,e){B(e,function(e,n){t[e]=n})})(t,r),(o[Me]=r[Me]).name="UnsupportedError",t[Me]=new o,t))(e);function o(){this.constructor=t}}var un=Ae.defineProperty,cn=tn(T),sn=/^\s+|(?=\s)\s+$/g,ln=n.trim?tn("trim"):function(e){return V(e)&&Qe("strTrim called ["+W(e)+"]"),e&&e.replace?e.replace(sn,""):e},fn="name",dn="identifier",$="push",pn="isInitialized",vn="config",gn="logger",p="length",hn="time",h="processNext",yn="getPlugin",mn="splice",xn="teardown",bn="messageId",wn="message",Tn="isAsync",In="_doTeardown",Cn="update",qn="getNext",kn="diagLog",Mn="setNextPlugin",_n="createNew",Dn="userAgent",Sn="split",An="substr",Rn="nodeType",Hn="apply",Nn="replace",En="enableDebugExceptions",Pn="toLowerCase",jn="type",Ln="call",Fn="isChildEvt",On="getCtx",l="setCtx",Un="complete",Vn="traceId",Xn="traceFlags",zn="version",d="",y="core",Kn="disabled",Bn="extensionConfig",Jn="processTelemetry",Wn="priority",$n="errorToConsole",Gn="warnToConsole",Qn="getPerfMgr",Yn=null,T="toISOString",n="toString",t="getPrototypeOf",Zn="constructor",et=Date[U][T]||at(0,T),nt=C[n]||at(0,n),tt=nt[Ln](s),rt=/-([a-z])/g,ot=/([^\w\d_$])/g,it=/^(\d+[\w\d_$])/;function at(e,n){return function(){an("Polyfill required for ["+n+"]")}}var ut=Object[t]||at(0,t);function ct(e){return e&&Le(e)?(e=(e=e[Nn](rt,function(e,n){return n.toUpperCase()}))[Nn](ot,"_"))[Nn](it,function(e,n){return"_"+n}):e}function st(e,n){return!(!e||!n)&&-1!==cn(e,n)}function lt(e){return e&&"object"==typeof e&&(!(e=ut(e))||typeof(e=e[Zn]&&C[Ln](e,Zn)?e[Zn]:e)===a&&nt[Ln](e)===tt)}function ft(){var e=Date;return e.now?e.now():(new e).getTime()}function dt(e,n){return V(e)?n:e}var pt="documentMode",vt="console",gt="performance",ht="JSON",yt="crypto",mt="msCrypto",xt="msie",bt="trident/",wt="XMLHttpRequest",Tt=null,It=null;function Ct(){return K(gt)}function qt(){return typeof JSON===ue&&JSON||null!==K(ht)}function kt(){return qt()?JSON||K(ht):null}function Mt(e){return e?'"'+e[Nn](/\"/g,d)+'"':d}function _t(e,n){var t,r=typeof console!==u?console:K(vt);r&&(t="log",r[e]&&(t=e),X(r[t])&&r[t](n))}St.dataType="MessageData";var Dt=St;function St(e,n,t,r){void 0===t&&(t=!1),this[bn]=e,this[wn]=(t?"AI: ":"AI (Internal): ")+e;t=d,qt()&&(t=kt().stringify(r)),e=(n?" message:"+Mt(n):d)+(r?" props:"+Mt(t):d);this[wn]+=e}Rt.__ieDyn=1;var At=Rt;function Rt(o){this.identifier="DiagnosticLogger",this.queue=[];var c,s,l,f,d=0,p={};Ce(Rt,this,function(i){var e;function a(e,n){var t,r;l<=d||(r=!0,t="AITR_"+n[bn],p[t]?r=!1:p[t]=!0,r&&(e<=s&&(i.queue[$](n),d++,u(1===e?"error":"warn",n)),d===l&&(r=new Dt(23,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue[$](r),1===e?i[$n](t):i[Gn](t))))}function u(e,n){var t,r=(t=(t=Yn)||!0===(o||{}).disableDbgExt?t:Yn||(r=K("Microsoft"),Yn=r?r.ApplicationInsights:Yn))?t.ChromeDbgExt:null;r&&r[kn]&&r[kn](e,n)}c=dt((e=o||{}).loggingLevelConsole,0),s=dt(e.loggingLevelTelemetry,1),l=dt(e.maxMessageLimit,25),f=dt(e[En],!1),i.consoleLoggingLevel=function(){return c},i.telemetryLoggingLevel=function(){return s},i.maxInternalMessageLimit=function(){return l},i[En]=function(){return f},i.throwInternal=function(e,n,t,r,o){n=new Dt(n,t,o=void 0!==o&&o,r);if(f)throw W(n);t=1===e?$n:Gn;Pe(n[wn])?u("throw"+(1===e?"Critical":"Warning"),n):(o?(r=+n[bn],!p[r]&&e<=c&&(i[t](n[wn]),p[r]=!0)):e<=c&&i[t](n[wn]),a(e,n))},i[Gn]=function(e){_t("warn",e),u("warning",e)},i[$n]=function(e){_t("error",e),u("error",e)},i.resetInternalMessageCount=function(){d=0,p={}},i.logInternalMessage=a})}function m(e,n,t,r,o,i){void 0===i&&(i=!1),(e||new At).throwInternal(n,t,r,o,i)}var Ht="ParentContextKey",Nt="ChildrenContextKey",Et=(f.ParentContextKey="parent",f.ChildrenContextKey="childEvts",f);function f(e,n,t){var r,o,i,a=this;if(a.start=ft(),a[fn]=e,a[Tn]=t,a[Fn]=function(){return!1},X(n)){var e=a,t="payload",u=function(){return!r&&X(n)&&(r=n(),n=null),r};if(un)try{var c={enumerable:!0,configurable:!!Pe(void 0)||void 0};c.get=u,o=e,i=t,un?un(o,i,c):an("Unable to define property ["+Ee(i)+"] on "+W(o))}catch(s){an("Unable to define accessors for ["+Ee(t)+"] on "+W(e))}}a[On]=function(e){return e?(e===f[Ht]||e===f[Nt]?a:a.ctx||{})[e]:null},a[l]=function(e,n){e&&(e===f[Ht]?(a[e]||(a[Fn]=function(){return!0}),a[e]=n):e===f[Nt]?a[e]=n:(a.ctx=a.ctx||{})[e]=n)},a[Un]=function(){var e=0,n=a[On](f[Nt]);if(z(n))for(var t=0;t<n[p];t++){var r=n[t];r&&(e+=r[hn])}a[hn]=ft()-a.start,a.exTime=a[hn]-e,a[Un]=function(){}}}var Pt="CoreUtils.doPerf";function jt(e,n,t,r,o){if(e)if(e=e[Qn]?e[Qn]():e){var i,a=void 0,u=e[On](Pt);try{if(a=e.create(n(),r,o))return u&&a[l]&&(a[l](Et[Ht],u),u[On]&&u[l]&&((i=u[On](Et[Nt]))||(i=[],u[l](Et[Nt],i)),i[$](a))),e[l](Pt,a),t(a)}catch(c){a&&a[l]&&a[l]("exception",c)}finally{a&&e.fire(a),e[l](Pt,u)}}t()}var Lt=4294967296,Ft=4294967295,Ot=!1,Ut=123456789,Vt=987654321;function Xt(e){var n,t=0,r=K(yt)||K(mt);if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&Ft:t)&&(!(r=$e())||r[Dn]===It&&null!==Tt||(r=((It=r[Dn])||d)[Pn](),Tt=st(r,xt)||st(r,bt)),Tt)){if(!Ot)try{var o=2147483647&ft();(n=(Math.random()*Lt^o)+o)<0&&(n>>>=0),Ut=123456789+n&Ft,Vt=987654321-n&Ft,Ot=!0}catch(i){}r=((Vt=36969*(65535&Vt)+(Vt>>16)&Ft)<<16)+(65535&(Ut=18e3*(65535&Ut)+(Ut>>16)&Ft))>>>0&Ft|0,t=(r>>>=0)&Ft}return 0===t&&(t=Math.floor(Lt*Math.random()|0)),e||(t>>>=0),t}var zt=e,Kt="3.0.0-beta.2208-18",Bt="."+function(e){void 0===e&&(e=22);for(var n=Xt()>>>0,t=0,r=d;r[p]<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Xt()<<2&4294967295|3&n)>>>0,t=0);return r}(6),Jt=0;function Wt(e){return 1===e[Rn]||9===e[Rn]||!+e[Rn]}function $t(e,n){return ct(e+Jt+++((n=void 0!==n&&n)?"."+Kt:d)+Bt)}function Gt(e){var i={id:$t("_aiData-"+(e||d)+"."+Kt),accept:Wt,get:function(e,n,t,r){var o=e[i.id];return o?o[ct(n)]:(r&&((o=function(e,n){var t=n[e.id];if(!t){t={};try{Wt(n)&&!function(e,n,t){if(zt)try{return zt(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(n,e.id,t)&&(n[e.id]=t)}catch(r){}}return t}(i,e))[ct(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};return i}function Qt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=d,r=0;r<4;r++)t+=n[15&(e=Xt())]+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 o=n[8+(3&Xt())|0];return t[An](0,8)+t[An](9,4)+"4"+t[An](13,3)+o+t[An](16,3)+t[An](19,12)}var Yt="00",Zt="ff",er="00000000000000000000000000000000",nr="0000000000000000";function tr(e,n,t){return e&&e[p]===n&&e!==t&&e.match(/^[\da-f]*$/)}function rr(e,n,t){return tr(e,n)?e:t}function or(e,n,t,r){var o={};return o[zn]=tr(r,2,Zt)?r:Yt,o[Vn]=ir(e)?e:Qt(),o.spanId=ar(n)?n:Qt()[An](0,16),o.traceFlags=0<=t&&t<=255?t:1,o}function ir(e){return tr(e,32,er)}function ar(e){return tr(e,16,nr)}function ur(e){var n,t;return e?(tr(n=function(e){for(var n=(e=isNaN(e)||e<0||255<e?1:e).toString(16);n[p]<2;)n="0"+n;return n}(e[Xn]),2)||(n="01"),t=e[zn]||Yt,"".concat(t="00"!==t&&"ff"!==t?Yt:t,"-").concat(rr(e.traceId,32,er),"-").concat(rr(e.spanId,16,nr),"-").concat(n)):""}var cr=Gt("plugin");function sr(e){return cr.get(e,"state",{},!0)}var lr="TelemetryPluginChain",fr="_hasRun",dr="_getTelCtx",pr=0;function vr(e,a,t,n){var r=null,o=[],i=(null!==n&&(r=n?function(e,n,t){for(;e;){if(e[yn]()===t)return e;e=e[qn]()}return hr([t],n[vn]||{},n)}(e,t,n):e),{_next:function(){var e,n=r;return r=n?n[qn]():null,n||(e=o)&&0<e[p]&&(J(e,function(e){try{e.func[Ln](e.self,e.args)}catch(n){m(t[gn],2,73,"Unexpected Exception during onComplete - "+W(n))}}),o=[]),n},ctx:{core:function(){return t},diagLog:function(){return(t||{})[gn]||new At(a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=u(e,null);return e&&!V(e[n])?r=e[n]:a&&!V(a[n])&&(r=a[n]),V(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;n=i._next();){var n=n[yn]();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&o[$]({func:e,self:Pe(n)?i.ctx:n,args:t})}}});function u(e,n,t){var r,o,i;return void 0===n&&(n={}),void 0===t&&(t=0),(r=a&&(o=a[Bn])&&e?o[e]:r)?Fe(n)&&0!==t&&(i=function d(){var e=arguments,n=e[0]||{},t=e[p],r=!1,o=1;for(0<t&&Ue(n)&&(r=n,n=e[o]||{},o++),Fe(n)||(n={});o<t;o++){var i,a,u,c,s=e[o],l=z(s),f=Fe(s);for(i in s)(l&&i in s||f&&C[Ln](s,i))&&(a=s[i],u=void 0,r&&a&&((u=z(a))||lt(a))&&(c=n[i],u?z(c)||(c=[]):lt(c)||(c={}),a=d(r,c,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,r),a&&2===t&&B(n,function(e){var n;V(i[e])&&!V(n=a[e])&&(i[e]=n)}),r=i):r=n,r}return i}function gr(e,t,r,n){var o=vr(e,t,r,n),i=o.ctx;return i[h]=function(e){var n=o._next();return n&&n[Jn](e,i),!n},i[_n]=function(e,n){return gr((e=z(e=void 0===e?null:e)?hr(e,t,r,n):e)||i[qn](),t,r,n)},i}function hr(e,n,t,r){var o,i=null,a=!r;return z(e)&&0<e[p]&&(o=null,J(e,function(e){(a=!a&&r===e||a)&&e&&X(e[Jn])&&(e=yr(e,n,t),i=i||e,o&&o._setNext(e),o=e)})),r&&!i?hr([r],n,t):i}function yr(c,r,o){var s=null,i=X(c[Jn]),a=X(c[Mn]),l=c?c[dn]+"-"+c[Wn]+"-"+pr++:"Unknown-0-"+pr++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&X(c[dr])?c[dr]():n)||gr(u,r,o)),function(e){if(!c||!i)return!1;var n=sr(c);return!n[xn]&&!n[Kn]&&(a&&c[Mn](s),c[Jn](t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e[h](t)},unload:function(r,o){f(r,function(){var e,n,t=!1;return c&&(e=sr(c),n=c[y]||e[y],!c||n&&n!==r.core()||e[xn]||(e[y]=null,e[xn]=!0,e[pn]=!1,c[xn]&&!0===c[xn](r,o)&&(t=!0))),t},"unload",function(){},o[Tn])||r[h](o)},update:function(r,o){f(r,function(){var e,n,t=!1;return c&&(e=sr(c),n=c[y]||e[y],!c||n&&n!==r.core()||e[xn]||c[Cn]&&!0===c[Cn](r,o)&&(t=!0)),t},"update",function(){},!1)||r[h](o)},_id:l,_setNext:function(e){s=e}};function f(t,r,o,e,n){var i=!1,a=c?c[dn]:lr,u=(u=t[fr])||(t[fr]={});return t.setNext(s),c&&jt(t[y](),function(){return a+":"+o},function(){u[l]=!0;try{var e=s?s._id:d;e&&(u[e]=!1),i=r(t)}catch(n){e=!s||u[s._id];e&&(i=!0),s&&e||m(t[kn](),1,73,"Plugin ["+a+"] failed during "+o+" - "+W(n)+", run flags: "+W(u))}},e,n),i}return nn(u)}function mr(){var n=[];return{add:function(e){e&&n[$](e)},run:function(t,r){J(n,function(e){try{e(t,r)}catch(n){m(t[kn](),2,73,"Unexpected error calling unload handler - "+W(n))}}),n=[]}}}var x="getPlugin",T=(xr.__ieDyn=1,xr);function xr(){var i,a,l,f,d,u=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=a||gr(null,{},u[y]),e=l&&l[x]?n[_n](null,l[x]):n[_n](null,l)),e}function c(e,n,t){e&&(r=o=[],e&&(r=e[Bn])!==o&&V(r)&&(e[Bn]=r=o)),!t&&n&&(t=n.getProcessTelContext()[qn]());var r,o=l;l&&l[x]&&(o=l[x]()),u[y]=n,a=gr(t,e,n,o)}function p(){i=!1,u[y]=null,l=a=null,d=[],f=mr()}p(),Ce(xr,u,function(s){var e,n,t,r,o;s.initialize=function(e,n,t,r){c(e,n,r),i=!0},s[xn]=function(e,n){var t,r,o,i,a=s[y];if(a&&(!e||a===e[y]()))return r=!1,o=e||function c(e,t,n){var r=t[vn]||{},o=vr(e,r,t,n),i=o.ctx;return i[h]=function(e){var n=o._next();return n&&n.unload(i,e),!n},i[_n]=function(e,n){return c((e=z(e=void 0===e?null:e)?hr(e,r,t,n):e)||i[qn](),t,n)},i}(null,a,l&&l[x]?l[x]():l),i=n||((e={reason:0})[Tn]=!1,e),s[In]&&!0===s[In](o,i,u)?t=!0:u(),t;function u(){var e;r||(r=!0,f.run(o,n),e=d,d=[],J(e,function(e){e.rm()}),!0===t&&o[h](i),p())}},s[Cn]=function(e,n){var t,r,o,i=s[y];if(i&&(!e||i===e[y]()))return r=!1,o=e||function u(e,t,n){var r=t[vn]||{},o=vr(e,r,t,n).ctx;return o[h]=function(n){return o.iterate(function(e){X(e[Cn])&&e[Cn](o,n)})},o[_n]=function(e,n){return u((e=z(e=void 0===e?null:e)?hr(e,r,t,n):e)||o[qn](),t,n)},o}(null,i,l&&l[x]?l[x]():l),s._doUpdate&&!0===s._doUpdate(o,n||{reason:0},a)?t=!0:a(),t;function a(){r||(r=!0,c(o.getCfg(),o.core(),o[qn]()))}},s._addHook=function(e){e&&(z(e)?d=d.concat(e):d[$](e))},t="_addUnloadCb",n=function(){return f},(e=s)&&n&&(e[t]=(o=r=null,X(t=n)?r=t:o=t,function(){var e=arguments;if(o=r?r():o)return o.add[Hn](o,e)}))}),u[kn]=function(e){return n(e)[kn]()},u[pn]=function(){return i},u.setInitialized=function(e){i=e},u[Mn]=function(e){l=e},u[h]=function(e,n){n?n[h](e):l&&X(l[Jn])&&l[Jn](e,null)},u._getTelCtx=n}var br="attachEvent",wr="addEventListener",Tr=($t("aiEvtPageHide"),$t("aiEvtPageShow"),/\.[\.]+/g),Ir=/[\.]+$/,Cr=1,qr=Gt("events"),kr=/^([^.]*)(?:\.(.+)|)/;function Mr(e){return e&&e[Nn]?e.replace(/^\s*\.*|\.*\s*$/g,d):e}function _r(e,n){n&&(t=d,z(n)?(t=d,J(n,function(e){(e=Mr(e))&&("."!==e[0]&&(e="."+e),t+=e)})):t=Mr(n),t&&("."!==t[0]&&(t="."+t),e=(e||d)+t));var t,n=kr.exec(e||d)||[],e={};return e[jn]=n[1],e.ns=(n[2]||d).replace(Tr,".").replace(Ir,d)[Sn](".").sort().join("."),e}var Dr="_aiHooks",Sr=["req","rsp","hkErr","fnErr"];function Ar(e,n){if(e)for(var t=0;t<e[p]&&!n(e[t],t);t++);}function Rr(e,a,u,c,s){0<=s&&s<=2&&Ar(e,function(e,n){var e=e.cbks,t=e[Sr[s]];if(t){a.ctx=function(){return c[n]=c[n]||{}};try{t[Hn](a.inst,u)}catch(o){t=a.err;try{var r=e.hkErr;r&&(a.err=o,r[Hn](a.inst,u))}catch(i){}finally{a.err=t}}}})}function Hr(c){return function(){var t=arguments,e=c.h,r=((n={})[fn]=c.n,n.inst=this,n.ctx=null,n.set=function(e,n){(t=i([],t))[e]=n,o=i([r],t)},n),n=[],o=i([r],t);function i(n,e){return Ar(e,function(e){n[$](e)}),n}r.evt=K("event"),Rr(e,r,o,n,0);var a=c.f;if(a)try{r.rslt=a[Hn](this,t)}catch(u){throw r.err=u,Rr(e,r,o,n,3),u}return Rr(e,r,o,n,1),r.rslt}}function Nr(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t){e=function i(e,n,t){var r=null;return e&&(Ge(e,n)?r=e:t&&(r=i(ut(e),n,!1))),r}(e,n,r);if(e){r=e[n];if(typeof r===a)return e=e,n=n,t=t,(o=r&&r[Dr])||((r=Hr(o={i:0,n:n,f:r,h:[]}))[Dr]=o,e[n]=r),n={id:o.i,cbks:t,rm:function(){var t=this.id;Ar(o.h,function(e,n){return e.id===t&&(o.h[mn](n,1),1)})}},o.i++,o.h[$](n),n}}var o;return null}var Er,Pr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",n="/v2/track",jr="iKey",G=(Er={},B({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){Er[e]=n[1],Er[n[0]]=n[1]}),en(Er)),Lr="split",b="length",Fr="toLowerCase",Or="toString",Ur="name",Vr="pathname",Xr="correlationHeaderExcludePatterns",zr="indexOf",Kr="stringify",Br="substring";function Jr(e,n,t){var r,o,i=n[b],a=(e=e,(n=n)&&150<(n=ln(n[Or]()))[b]&&(o=n[Br](0,150),m(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),o||n);if(a[b]!==i){for(var u=0,c=a;t[c]!==undefined;)u++,c=a[Br](0,147)+(r=void 0,(r="00"+u).substr(r[b]-3));a=c}return a}function Wr(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=ln(n[Or]()))[b]>t&&(r=n[Br](0,t),m(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function $r(e,n){var t;return n&&2048<(n=ln(n[Or]()))[b]&&(t=n[Br](0,2048),m(e,2,66,"input is too long, it has been truncated to 2048 characters.",{data:n},!0)),t||n}function Gr(r,e){var o;return e&&(o={},B(e,function(e,n){if(Fe(n)&&qt())try{n=kt()[Kr](n)}catch(t){m(r,2,49,"custom property is not valid",{exception:t},!0)}n=Wr(r,n,8192),e=Jr(r,e,o),o[e]=n}),e=o),e}var Qr=We()||{},Yr=0,Zr=[null,null,null,null,null];function eo(t){var e=Yr,n=Zr,r=n[e];return Qr.createElement?n[e]||(r=n[e]=Qr.createElement("a")):r={host:function(){var e=no(t,!0)||"";if(e){var n=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=n&&3<n[b]&&Le(n[2])&&0<n[2][b])return n[2]+(n[3]||"")}return e}()},r.href=t,++e>=n[b]&&(e=0),Yr=e,r}function no(e,n){var t=null;return e&&null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e[b]&&Le(e[2])&&0<e[2][b]&&(t=e[2]||"",n&&2<e[b]&&(n=(e[1]||"")[Fr](),e=e[3]||"",t+=e="http"===n&&":80"===e||"https"===n&&":443"===e?"":e)),t}var to=["https://dc.services.visualstudio.com"+n,"https://breeze.aimon.applicationinsights.io"+n,"https://dc-int.services.visualstudio.com"+n],ro="cid-v1:";function oo(e,n,t){if(!(!n||e&&e.disableCorrelationHeaders)){if(e&&e[Xr])for(var r=0;r<e.correlationHeaderExcludePatterns[b];r++)if(e[Xr][r].test(n))return;var o=eo(n).host[Fr]();if(!o||-1===o[zr](":443")&&-1===o[zr](":80")||(o=(no(n,!0)||"")[Fr]()),e&&e.enableCorsCorrelation||!o||o===t){var i,t=e&&e.correlationHeaderDomains;if(!t||(J(t,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||e.test(o)}),i)){var a=e&&e.correlationHeaderExcludedDomains;if(!a||0===a[b])return 1;for(r=0;r<a[b];r++)if(RegExp(a[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return;return o&&0<o[b]}}}}function io(e){if(e){e=function(e,n){if(e)for(var t=e[Lr](","),r=0;r<t[b];++r){var o=t[r][Lr]("=");if(2===o[b]&&o[0]===n)return o[1]}}(e,G[1]);if(e&&e!==ro)return e}}function ao(){var e=Ct();if(e&&e.now&&e.timing){e=e.now()+e.timing.navigationStart;if(0<e)return e}return ft()}function uo(e,n){return 0===e||0===n||V(e)||V(n)?null:n-e}var co="";function so(e){var n=co+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=co+Math.floor(e/6e4)%60,r=co+Math.floor(e/36e5)%24,o=Math.floor(e/864e5),e=1===(e=co+e%1e3)[b]?"00"+e:2===e[b]?"0"+e:e,n=n[b]<2?"0"+n:n,t=t[b]<2?"0"+t:t,r=r[b]<2?"0"+r:r;return(0<o?o+".":co)+r+":"+t+":"+n+"."+e}fo.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",fo.dataType="RemoteDependencyData";var lo=fo;function fo(e,n,t,r,o,i,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,g,h=this,t=(h.ver=2,h.id=n,h.duration=so(o),h.success=i,h.resultCode=a+"",h.type=Wr(e,c),n=e,o=u,c=a=i=r,a=(u=t)&&0<u[b]?(p=(t=eo(u)).host,a||(null!=t[Vr]?("/"!=((d=0===t.pathname[b]?"/":t[Vr])[0]||"")&&(d="/"+d),c=t[Vr],Wr(n,o?o+" "+d:d)):Wr(n,u))):p=i,{target:p,name:a,data:c});h.data=$r(e,r)||t.data,h.target=Wr(e,t.target),s&&(h.target="".concat(h.target," | ").concat(s)),h[Ur]=Wr(e,t[Ur]),h.properties=Gr(e,l),h.measurements=(v=e,(o=f)&&(g={},B(o,function(e,n){e=Jr(v,e,g),g[e]=n}),o=g),o)}function r(e){var n="ai."+e+".";return function(e){return n+e}}var po,vo,t=r("application"),e=r("device"),n=r("location"),go=r("operation"),ho=r("session"),o=r("user"),yo=r("cloud"),mo=r("internal");function xo(){return po.call(this)||this}vo={applicationVersion:t("ver"),applicationBuild:t("build"),applicationTypeId:t("typeId"),applicationId:t("applicationId"),applicationLayer:t("layer"),deviceId:e("id"),deviceIp:e("ip"),deviceLanguage:e("language"),deviceLocale:e("locale"),deviceModel:e("model"),deviceFriendlyName:e("friendlyName"),deviceNetwork:e("network"),deviceNetworkName:e("networkName"),deviceOEMName:e("oemName"),deviceOS:e("os"),deviceOSVersion:e("osVersion"),deviceRoleInstance:e("roleInstance"),deviceRoleName:e("roleName"),deviceScreenResolution:e("screenResolution"),deviceType:e("type"),deviceMachineName:e("machineName"),deviceVMName:e("vmName"),deviceBrowser:e("browser"),deviceBrowserVersion:e("browserVersion"),locationIp:n("ip"),locationCountry:n("country"),locationProvince:n("province"),locationCity:n("city"),operationId:go("id"),operationName:go("name"),operationParentId:go("parentId"),operationRootId:go("rootId"),operationSyntheticSource:go("syntheticSource"),operationCorrelationVector:go("correlationVector"),sessionId:ho("id"),sessionIsFirst:ho("isFirst"),sessionIsNew:ho("isNew"),userAccountAcquisitionDate:o("accountAcquisitionDate"),userAccountId:o("accountId"),userAgent:o("userAgent"),userId:o("id"),userStoreRegion:o("storeRegion"),userAuthUserId:o("authUserId"),userAnonymousUserAcquisitionDate:o("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:o("authUserAcquisitionDate"),cloudName:yo("name"),cloudRole:yo("role"),cloudRoleVer:yo("roleVer"),cloudRoleInstance:yo("roleInstance"),cloudEnvironment:yo("environment"),cloudLocation:yo("location"),cloudDeploymentUnit:yo("deploymentUnit"),internalNodeName:mo("nodeName"),internalSdkVersion:mo("sdkVersion"),internalAgentVersion:mo("agentVersion"),internalSnippet:mo("snippet"),internalSdkSrc:mo("sdkSrc")},_(xo,po=function(){var t=this;B(vo,function(e,n){t[e]=n})}),new xo;var bo="duration",Q="properties",Y="requestUrl",wo="inst",To="length",Z="traceID",Io="spanID",ee="traceFlags",ne="core",Co="traceId",qo="spanId",ko="getDefaultConfig",Mo="trackDependencyDataInternal",_o="includeCorrelationHeaders",Do="getAbsoluteUrl",So="headers",te="requestHeaders",Ao="appId",Ro="setRequestHeader",Ho="distributedTracingMode",No="startTime",Eo="toLowerCase",Po="enableRequestHeaderTracking",jo="enableAjaxErrorStatusText",Lo="enableAjaxPerfTracking",Fo="enableResponseHeaderTracking",Oo="excludeRequestFromAutoTrackingPatterns",Uo="addRequestContext",re="status",Vo="statusText",Xo="headerMap",zo="openDone",Ko="sendDone",Bo="requestSentTime",Jo="abortDone",Wo="getTraceId",$o="getTraceFlags",oe="method",Go="errorStatusText",Qo="stateChangeAttached",Yo="responseText",Zo="responseFinishedTime",ei="CreateTrackItem",ni="response",ti="getAllResponseHeaders",ri="getPartAProps",oi="perfMark",ii="ajaxPerfLookupDelay",ai="name",ui="perfTiming",ci="ajaxDiagnosticsMessage",si="correlationContext",li="ajaxTotalDuration",fi="eventTraceCtx";function di(e,n,t){n=e[n],t=e[t];return n&&t?uo(n,t):0}function pi(e,n,t,r,o){t=di(t,r,o);return t?vi(e,n,so(t)):0}function vi(e,n,t){var r="ajaxPerf",o=0;return e&&n&&t&&((e[r]=e[r]||{})[n]=t,o=1),o}var gi=function(){var e=this;e[zo]=!1,e.setRequestHeaderDone=!1,e[Ko]=!1,e[Jo]=!1,e[Qo]=!1},hi=(yi.__ieDyn=1,yi);function yi(e,n,t,r){var o=this,i=t;o[oi]=null,o.completed=!1,o.requestHeadersSize=null,o[te]=null,o.responseReceivingDuration=null,o.callbackDuration=null,o[li]=null,o.aborted=0,o.pageUrl=null,o[Y]=null,o.requestSize=0,o[oe]=null,o[re]=null,o[Bo]=null,o.responseStartedTime=null,o[Zo]=null,o.callbackFinishedTime=null,o.endTime=null,o.xhrMonitoringState=new gi,o.clientFailure=0,o[Z]=e,o[Io]=n,o[ee]=null==r?void 0:r.getTraceFlags(),o[fi]=r?((t={})[Co]=r[Wo](),t[qo]=r.getSpanId(),t[ee]=r[$o](),t):null,Ce(yi,o,function(m){m.getAbsoluteUrl=function(){return m[Y]?(e=eo(m[Y]))?e.href:void 0:null;var e},m.getPathName=function(){return m[Y]?$r(i,(e=m[oe],n=m[Y],e?e.toUpperCase()+" "+n:n)):null;var e,n},m[ei]=function(e,n,t){if(m.ajaxTotalDuration=Math.round(1e3*uo(m.requestSentTime,m.responseFinishedTime))/1e3,m[li]<0)return null;(r={id:"|"+m[Z]+"."+m[Io],target:m[Do]()})[ai]=m.getPathName(),r.type=e,r[No]=null,r.duration=m[li],r.success=200<=+m[re]&&+m[re]<400,r.responseCode=+m[re],r.method=m[oe],r[Q]={HttpMethod:m[oe]};var r,o,i,a,u,c,s,l,f,d,p,v,g,h,y,e=r;return m[Bo]&&(e[No]=new Date,e[No].setTime(m[Bo])),a=(r=m)[ui],u=(o=e)[Q]||{},c=0,v="startTime",h="connectEnd",s="requestStart",g="responseEnd",l="transferSize",f="encodedBodySize",d="decodedBodySize",p="serverTiming",a?(c=(c=(c=(c=(c=(c=(c|=pi(u,"End",a,"redirectStart","End"))|pi(u,"domainLookup",a,"domainLookupStart","domainLookupEnd"))|pi(u,"connect",a,"connectStart",h))|pi(u,"request",a,s,"requestEnd"))|pi(u,"response",a,"responseStart",g))|pi(u,"networkConnect",a,v,h))|pi(u,"sentRequest",a,s,g),h=a[bo]||di(a,v,g)||0,c=(c|=vi(u,bo,h))|vi(u,"perfTotal",h),(s=a[p])&&(i={},J(s,function(e,n){var n=ct(e.name||""+n),t=i[n]||{};B(e,function(e,n){!("name"!==e&&Le(n)||Oe(n))||!(n=t[e]?t[e]+";"+n:n)&&Le(n)||(t[e]=n)}),i[n]=t}),c|=vi(u,p,i)),c=(c=(c|=vi(u,l,a[l]))|vi(u,f,a[f]))|vi(u,d,a[d])):r[oi]&&(c|=vi(u,"missing",r.perfAttempts)),c&&(o[Q]=u),n&&0<Ze(m.requestHeaders)[To]&&((y=e[Q]=e[Q]||{})[te]=m[te]),t&&(v=t())&&((g=v[si])&&(e.correlationContext=g),v[Xo]&&0<Ze(v.headerMap)[To]&&((y=e[Q]=e[Q]||{}).responseHeaders=v[Xo]),m.errorStatusText&&400<=m[re]&&(h=v.type,y=e[Q]=e[Q]||{},""!==h&&"text"!==h||(y.responseText=v.responseText?v[Vo]+" - "+v.responseText:v[Vo]),"json"===h&&(y.responseText=v.response?v[Vo]+" - "+JSON.stringify(v[ni]):v[Vo]))),e},m[ri]=function(){var e,n=null,t=m[fi];return t&&(t[Co]||t[qo])&&(e=(n={}).trace=((e={})[Z]=t[Co],e.parentID=t[qo],e),V(t[ee])||(e[ee]=t[ee])),n}})}var mi="ai.ajxmn.",xi="diagLog",ie="ajaxData",bi="fetch",wi=0;function Ti(e){var n=!1,t=(function(){var e=!1;try{e=!!K(wt)}catch(n){}return e}()&&(n=!(V(t=XMLHttpRequest[U])||V(t.open)||V(t.send)||V(t.abort))),function(e){var n=((e=(e=void 0===e?null:e)?e:(n=$e()||{})?(n[Dn]||d)[Pn]():d)||d)[Pn]();if(st(n,xt))return e=We()||{},Math.max(parseInt(n[Sn](xt)[1]),e[pt]||0);if(st(n,bt)){e=parseInt(n[Sn](bt)[1]);if(e)return e+4}return null}());if(n=!(t&&t<9)&&n)try{(new XMLHttpRequest)[ie]={};var r=XMLHttpRequest[U].open;XMLHttpRequest[U].open=r}catch(o){n=!1,Ci(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:W(o)})}return n}function Ii(e){var n="";try{V(e)||V(e[ie])||V(e[ie][Y])||(n+="(url: '"+e[ie][Y]+"')")}catch(t){}return n}function Ci(e,n,t,r,o){m(e[xi](),1,n,t,r,o)}function qi(e,n,t,r,o){m(e[xi](),2,n,t,r,o)}function ki(n,t,r){return function(e){Ci(n,t,r,{ajaxDiagnosticsMessage:Ii(e[wo]),exception:W(e.err)})}}function Mi(e,n){return e&&n?e.indexOf(n):-1}function _i(e,n,t,r,o,i){var a,u=e[To];if(0<u){(a={})[ne]=n,a.xhr=r,a.input=o,a.init=i,a.traceId=t[Z],a.spanId=t[Io],a.traceFlags=t[ee];for(var c=a,s=0;s<u;++s){var l=e[s];if(l&&l.fn)try{l.fn.call(null,c)}catch(f){var l=c[ne];m(l&&l.logger,1,64,"Dependency listener [#"+s+"] failed: "+(Ve(l=f)?l[fn]:d),{exception:W(f)},!0)}}t[Z]=c[Co],t[Io]=c[qo],t[ee]=c[ee]}}var Di,Si=en(["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"]),t=(_(ae,Di=T),ae.getDefaultConfig=function(){var e={maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1};return e[Oo]=undefined,e.disableCorrelationHeaders=!1,e.distributedTracingMode=1,e.correlationHeaderExcludedDomains=Si,e.correlationHeaderDomains=undefined,e.correlationHeaderExcludePatterns=undefined,e[Ao]=undefined,e.enableCorsCorrelation=!1,e[Po]=!1,e[Fo]=!1,e[jo]=!1,e[Lo]=!1,e.maxAjaxPerfLookupAttempts=3,e[ii]=25,e.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],e[Uo]=undefined,e},ae.getEmptyConfig=function(){var n=this[ko]();return B(n,function(e){n[e]=undefined}),n},ae.prototype.processTelemetry=function(e,n){this.processNext(e,n)},ae.identifier="AjaxDependencyPlugin",ae);function ae(){var w,T,I,C,q,k,r,M,_,D,S,A,R,H,N,E,P,j,L,F,n,O,e=Di.call(this)||this;return e.identifier=ae.identifier,e.priority=120,Ce(ae,e,function(f,a){var u=a._addHook;function e(){var e=typeof location===ue&&location?location:K("location");T=w=!1,I=e&&e.host&&e.host[Eo](),C=ae.getEmptyConfig(),H=A=D=_=k=q=!1,P=E=!(N={}),F=L=j=S=M=null,n=R=r=0,O=[]}function d(n){var t=!0;return(n||C.ignoreHeaders)&&J(C.ignoreHeaders,function(e){if(e[Eo]()===n[Eo]())return t=!1,-1}),t}function c(e,n,t){u(e?Nr(e[U],n,t,!1):null)}function p(e,n,t){var r=!1,o=((Le(n)?n:(n||{}).url||"")||"")[Eo]();if(J(j,function(e){var n=e;Le(e)&&(n=RegExp(e)),r=r||n.test(o)}),r)return r;var i=Mi(o,"?"),a=Mi(o,"#");return-1!==(i=-1===i||-1!==a&&a<i?a:i)&&(o=o.substring(0,i)),V(e)?V(n)||(r="object"==typeof n&&!0===n[Pr]||!!t&&!0===t[Pr]):r=!0===e[Pr]||!0===o[Pr],(r=!(r||!o||-1===on(to,o[Fr]()))||r)?N[o]||(N[o]=1):N[o]&&(r=!0),r}function s(e,n){var t=!0,r=T;return V(e)||(t=!0===n||!V(e[ie])),r&&t}function v(){var e,n,t=null;return!(t=f[ne]&&f[ne].getTraceCtx?f[ne].getTraceCtx(!1):t)&&M&&M.telemetryTrace&&(e=M.telemetryTrace,n=e||{},t={getName:function(){return n[Ur]},setName:function(e){n[Ur]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){ir(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){ar(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){n.traceFlags=e}}),t}function g(a){a[ie].xhrMonitoringState[Qo]=function(e,n,t,r){void 0===r&&(r=!1);var o,i,a,u,c,s=!1;if(e)try{var l,f=_r("readystatechange",t),d=f,p=n,v=r,g=!1;(c=e)&&d&&d[jn]&&p&&(c[wr]?(c[wr](d[jn],p,v),g=!0):c[br]&&(c[br]("on"+d[jn],p),g=!0)),(s=g)&&qr.accept(e)&&((o={guid:Cr++,evtName:f}).handler=n,o.capture=r,l=o,i=f.type,((u=qr.get(e,"events",{},a=void 0===a||a))[i]||(u[i]=[]))[$](l))}catch(h){}return s}(a,function(){var e,r,o;try{a&&4===a.readyState&&s(a)&&((o=(r=a)[ie])[Zo]=ao(),o[re]=r[re],y("xmlhttprequest",o,function(){try{var e=o[ei]("Ajax",q,function(){(n={statusText:r[Vo],headerMap:null})[si]=l(r),n.type=r.responseType,n[Yo]=function(e){try{var n=e.responseType;if(""===n||"text"===n)return e[Yo]}catch(t){}return null}(r),n.response=r[ni];var e,t,n;return H&&(e=r[ti]())&&(e=ln(e).split(/[\r\n]+/),t={},J(e,function(e){var e=e.split(": "),n=e.shift(),e=e.join(": ");d(n)&&(t[n]=e)}),n[Xo]=t),n}),n=void 0;try{L&&(n=L({status:r[re],xhr:r}))}catch(t){qi(f,104,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(n!==undefined&&(e[Q]=se(se({},e.properties),n)),f[Mo](e,null,o[ri]())):i(null,{requestSentTime:o[Bo],responseFinishedTime:o[Zo]})}finally{try{r[ie]=null}catch(t){}}},function(e){i(e,null)}))}catch(t){var n=W(t);n&&-1!==Mi(n[Eo](),"c00c023f")||Ci(f,16,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",((e={})[ci]=Ii(a),e.exception=n,e))}function i(e,n){n=n||{};n.ajaxDiagnosticsMessage=Ii(r),e&&(n.exception=W(e)),qi(f,14,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",n)}},F)}function l(e){try{var n=e[ti]();if(null!==n&&-1!==Mi(n[Eo](),G[8]))return io(e.getResponseHeader(G[0]))}catch(t){qi(f,18,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",((n={})[ci]=Ii(e),n.exception=W(t),n))}}function h(e,n){var t;n[Y]&&S&&A&&(t=Ct())&&X(t.mark)&&(e=S+e+"#"+ ++wi,t.mark(e),(e=t.getEntriesByName(e))&&1===e[To]&&(n[oi]=e[0]))}function y(i,a,u,c){var s=a[oi],l=Ct(),f=C.maxAjaxPerfLookupAttempts,d=C[ii],p=a[Y],v=0;!function g(){try{if(l&&s){v++;for(var e=null,n=l.getEntries(),t=n[To]-1;0<=t;t--){var r=n[t];if(r){if("resource"===r.entryType)r.initiatorType!==i||-1===Mi(r[ai],p)&&-1===Mi(p,r[ai])||(e=r);else if("mark"===r.entryType&&r[ai]===s[ai]){a[ui]=e;break}if(r[No]<s[No]-1e3)break}}}!s||a[ui]||f<=v||!1===a["async"]?(s&&X(l.clearMarks)&&l.clearMarks(s[ai]),a.perfAttempts=v,u()):setTimeout(g,d)}catch(o){c(o)}}()}function m(e){var n="";try{V(e)||(n+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(t){Ci(f,15,"Failed to grab failed fetch diagnostics message",{exception:W(t)})}return n}function x(e,r,o,i,a,u){function c(e,n,t){t=t||{};t.fetchDiagnosticsMessage=m(o),n&&(t.exception=W(n)),qi(f,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",t)}a&&(a[Zo]=ao(),a[re]=r,y("fetch",a,function(){var e,n=a[ei]("Fetch",q,u);try{L&&(e=L({status:r,request:o,response:i}))}catch(t){qi(f,104,"Failed to add custom defined request context as configured call back may missing a null check.")}n?(e!==undefined&&(n[Q]=se(se({},n.properties),e)),f[Mo](n,null,a[ri]())):c(14,null,{requestSentTime:a[Bo],responseFinishedTime:a[Zo]})},function(e){c(18,e,null)}))}function b(e){if(e&&e[So])try{return io(e[So].get(G[0]))}catch(n){qi(f,18,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:m(e),exception:W(n)})}}e(),f.initialize=function(e,n,t,r){var o,l,i;f.isInitialized()||(a.initialize(e,n,t,r),t=$t("ajax"),i=(r=n&&n.evtNamespace&&n.evtNamespace())?_r("xx",i=z(r)?[t].concat(r):[t,r]).ns[Sn]("."):t,F=i,o=gr(null,n=e,f[ne]),C=ae.getEmptyConfig(),B(ae[ko](),function(e,n){C[e]=o.getConfig(ae.identifier,e,n)}),r=C[Ho],q=C[Po],k=C[jo],A=C[Lo],R=C.maxAjaxCallsPerView,H=C[Fo],j=C[Oo],L=C[Uo],D=0===r||1===r,_=1===r||2===r,A&&(t=n.instrumentationKey||"unkwn",S=5<t[To]?mi+t.substring(t[To]-5)+".":mi+t+"."),E=!!C.disableAjaxTracking,P=!!C.disableFetchTracking,!Ti(f)||E||T||(c(XMLHttpRequest,"open",{ns:F,req:function(e,n,t,r){var o,i,a,u;E||(o=(e=e[wo])[ie],!p(e,t)&&s(e,!0)&&(o&&o.xhrMonitoringState[zo]||(o=e,n=n,t=t,r=r,a=(i=v())&&i[Wo]()||Qt(),u=Qt().substr(0,16),(u=new hi(a,u,f[xi](),null==(a=f.core)?void 0:a.getTraceCtx()))[ee]=i&&i[$o](),u[oe]=n,u[Y]=t,u.xhrMonitoringState[zo]=!0,u[te]={},u["async"]=r,u[Go]=k,o[ie]=u),g(e)))},hkErr:ki(f,15,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),c(XMLHttpRequest,"send",{ns:F,req:function(e,n){var t;E||(t=(e=e[wo])[ie],s(e)&&!t.xhrMonitoringState[Ko]&&(h("xhr",t),t[Bo]=ao(),f[_o](t,undefined,undefined,e),t.xhrMonitoringState[Ko]=!0))},hkErr:ki(f,17,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),c(XMLHttpRequest,"abort",{ns:F,req:function(e){var n;E||(n=(e=e[wo])[ie],s(e)&&!n.xhrMonitoringState[Jo]&&(n.aborted=1,n.xhrMonitoringState[Jo]=!0))},hkErr:ki(f,13,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),c(XMLHttpRequest,"setRequestHeader",{ns:F,req:function(e,n,t){!E&&q&&s(e=e[wo])&&d(n)&&(e[ie][te][n]=t)},hkErr:ki(f,71,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),T=!0),(e=!(i=ce())||V(i.Request)||V(i.Request[U])||V(i[bi])?null:i[bi])&&(r=ce(),l=e.polyfill,P||w?l&&u(Nr(r,bi,{ns:F,req:function(e,n,t){p(null,n,t)}})):(u(Nr(r,bi,{ns:F,req:function(e,n,t){var r,o,i,a,u,c,s;P||!w||p(null,n,t)||l&&T||(r=e.ctx(),o=n,i=t,c=(a=v())&&a[Wo]()||Qt(),u=Qt().substr(0,16),(u=new hi(c,u,f[xi](),null==(c=f.core)?void 0:c.getTraceCtx()))[ee]=a&&a[$o](),u[Bo]=ao(),u[Go]=k,o instanceof Request?u[Y]=o?o.url:"":u[Y]=o,c="GET",i&&i[oe]?c=i[oe]:o&&o instanceof Request&&(c=o[oe]),u[oe]=c,s={},q&&new Headers((i?i[So]:0)||o instanceof Request&&o[So]||{}).forEach(function(e,n){d(n)&&(s[n]=e)}),u[te]=s,h("fetch",u),a=u,(c=f[_o](a,n,t))!==t&&e.set(1,c),r.data=a)},rsp:function(e,t){var r;P||(r=e.ctx().data)&&(e.rslt=e.rslt.then(function(n){return x(0,(n||{})[re],t,n,r,function(){(e={statusText:n[Vo],headerMap:null})[si]=b(n);var t,e;return H&&(t={},n.headers.forEach(function(e,n){d(n)&&(t[n]=e)}),e[Xo]=t),e}),n})["catch"](function(e){throw x(0,0,t,null,r,null,e.message),e}))},hkErr:ki(f,15,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),w=!0),l&&(r[bi].polyfill=l)),(n=f[ne].getPlugin("AppInsightsPropertiesPlugin"))&&(M=n.plugin.context))},f._doTeardown=function(){e()},f.trackDependencyData=function(e,n){f[Mo](e,n)},f[_o]=function(e,n,t,r){var o,i,a,u,c=f._currentWindowHost||I;return _i(O,f[ne],e,r,n,t),n?(oo(C,e[Do](),c)&&(t=t||{},n=new Headers(t[So]||n instanceof Request&&n[So]||{}),D&&(o="|"+e[Z]+"."+e[Io],n.set(G[3],o),q&&(e[te][G[3]]=o)),(i=C[Ao]||M&&M[Ao]())&&(n.set(G[0],G[2]+i),q&&(e[te][G[0]]=G[2]+i)),_&&(V(a=e[ee])&&(a=1),u=ur(or(e[Z],e[Io],a)),n.set(G[4],u),q&&(e[te][G[4]]=u)),t[So]=n),t):r?(oo(C,e[Do](),c)&&(D&&(o="|"+e[Z]+"."+e[Io],r[Ro](G[3],o),q&&(e[te][G[3]]=o)),(i=C[Ao]||M&&M[Ao]())&&(r[Ro](G[0],G[2]+i),q&&(e[te][G[0]]=G[2]+i)),_&&(V(a=e[ee])&&(a=1),u=ur(or(e[Z],e[Io],a)),r[Ro](G[4],u),q&&(e[te][G[4]]=u))),r):undefined},f[Mo]=function(e,n,t){-1===R||r<R?(2!==C[Ho]&&1!==C[Ho]||"string"!=typeof e.id||"."===e.id[e.id[To]-1]||(e.id+="."),V(e[No])&&(e[No]=new Date),e=function(e,n,t,r,o,i){var a;if(t=Wr(r,t)||"not_specified",V(e)||V(n)||V(t))throw Error("Input doesn't contain all required fields");var r="",u=(e[jr]&&(r=e[jr],delete e[jr]),(a={})[Ur]=t,a.time=et[Ln](new Date),a.iKey=r,a.ext=i||{},a.tags=[],a.data={},a.baseType=n,a.baseData=e,a);return V(o)||B(o,function(e,n){u.data[e]=n}),u}(e,lo.dataType,lo.envelopeType,f[xi](),n,t),f[ne].track(e)):r===R&&Ci(f,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),++r},f.addDependencyListener=function(e){var t={id:n++,fn:e};return O.push(t),{remove:function(){J(O,function(e,n){if(e.id===t.id)return O.splice(n,1),-1})}}}}),e}i.AjaxPlugin=t,i.DfltAjaxCorrelationHeaderExDomains=Si,i.ajaxRecord=hi,Object.defineProperty(i,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
6
6
  //# sourceMappingURL=applicationinsights-dependencies-js.min.js.map