@codingame/monaco-vscode-github-authentication-default-extension 34.1.3 → 35.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +2 -2
- package/resources/extension.js +2 -2
- package/resources/extension.js.map +1 -1
package/resources/extension.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var bT=Object.create;var ec=Object.defineProperty;var OT=Object.getOwnPropertyDescriptor;var YT=Object.getOwnPropertyNames;var wT=Object.getPrototypeOf,LT=Object.prototype.hasOwnProperty;var w=(r,e)=>()=>(r&&(e=r(r=0)),e);var Zr=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),rc=(r,e)=>{for(var t in e)ec(r,t,{get:e[t],enumerable:!0})},vE=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of YT(e))!LT.call(r,i)&&i!==t&&ec(r,i,{get:()=>e[i],enumerable:!(n=OT(e,i))||n.enumerable});return r};var Fi=(r,e,t)=>(t=r!=null?bT(wT(r)):{},vE(e||!r||!r.__esModule?ec(t,"default",{value:r,enumerable:!0}):t,r)),FT=r=>vE(ec({},"__esModule",{value:!0}),r);var _=w(()=>{});var Ka,Zn,hn,en,Wa,fu,uv=w(()=>{"use strict";_();Ka="function",Zn="object",hn="undefined",en="prototype",Wa=Object,fu=Wa[en]});function sr(r,e){return r||e}function Be(r,e){return r?.[e]}function Ee(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function XT(r,e,t){var n=Ee(r,t);return n.e?e:n.v}function fc(r){return function(e){return typeof e===r}}function IE(r){var e="[object "+r+"]";return function(t){return!!(t&&cc(t)===e)}}function cc(r){return pu[du].call(r)}function yv(r,e){return typeof r===e}function Te(r){return typeof r===Ro||r===Ro}function JT(r){return r===kr}function B(r){return r===rr||Te(r)}function rn(r){return r===rr||r===kr}function xE(r){return!!r||r!==kr}function QT(r){return!fv&&(fv=["string","number","boolean",Ro,"symbol","bigint"]),r!==vu&&fv.indexOf(r)!==-1}function tr(r){return!r&&B(r)?!1:!!r&&typeof r===vu}function ft(r){return!!(r&&r.then&&se(r.then))}function Pv(r){return!r||!tn(r)}function tn(r){return!(!r||XT(function(){return!(r&&0+r)},!r))}function Cv(){}function ZT(){return[]}function eD(){return!1}function te(r,e){var t=Dv,n=pu[du][dr](r);n===rD&&(r={stack:vr(r.stack),message:vr(r.message),name:vr(r.name)});try{t=JSON.stringify(r,rr,e?typeof e=="number"?e:4:kr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):rr)||vr(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function Sr(r){throw new Error(r)}function et(r){throw new TypeError(r)}function _c(r){rn(r)&&et("Cannot convert undefined or null to object")}function yE(r){he(r)||et("'"+te(r)+"' is not a string")}function yr(r,e){return!!r&&pu.hasOwnProperty[dr](r,e)}function nD(r,e){return _c(r),yr(r,e)||!!tD(r,e)}function iD(r){return r===lu||r===_u||r===Br}function ae(r,e,t){if(r&&(tr(r)||se(r))){for(var n in r)if(Vt(r,n)&&e[dr](rn(t)?r:t,n,r[n])===-1)break}}function b(r,e,t){if(r)for(var n=r[Oo]>>>0,i=0;i<n&&!(i in r&&e[dr](rn(t)?r:t,r[i],i,r)===-1);i++);}function Xa(r,e,t){var n=e?e[r]:rr;return function(i){var o=(i?i[r]:rr)||n;if(o||t){var a=arguments;return(o||t).apply(i,o?Tn[dr](a,1):a)}et('"'+vr(r)+'" not defined for '+te(i))}}function oD(r,e,t){var n=e?e[r]:rr;return function(i){var o=n;if(o||t){var a=arguments;return(o||t).apply(i,o?Tn[dr](a,1):a)}et('"'+vr(r)+'" not defined for '+te(i))}}function aD(r){return function(e){return e[r]}}function sD(r,e){var t,n=Yr.getOwnPropertyDescriptor;return!rn(r)&&n&&(t=Ee(n,[r,e]).v||rr),!t&&!rn(r)&&(t=Ee(function(){for(var i in r)if(i==e)return{enumerable:yr(r,i)}}).v),t&&t.enumerable||!1}function PE(r){var e={};if(e[tc.c]=!0,e[tc.e]=!0,r.l){e.get=function(){return r.l.v};var t=fD(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return ae(r,function(n,i){e[tc[n]]=JT(i)?e[tc[n]]:i}),e}function Rv(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),Et(r,e,PE(a))}function we(r,e,t){return Et(r,e,PE(t))}function CE(r,e,t,n,i){var o={};return ae(r,function(a,s){ac(o,a,e?s:a),ac(o,s,t?s:a)}),n?n(o):o}function ac(r,e,t,n){Et(r,e,{value:t,enumerable:!0,writable:!1})}function RE(r){return r}function lD(r){return _c(r),r[lu]||rr}function bE(r,e){if((Q(r)||tr(r)||se(r))&&!cD(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),ae(r,function(n,i){bE(i,e)}),jt(r)}return r}function In(r){return AE?bE(r,[]):r}function OE(r){return CE(r,1,0,jt)}function _D(r){return CE(r,0,0,jt)}function vD(r){var e={};return ae(r,function(t,n){ac(e,t,n[1]),ac(e,n[0],n[1])}),jt(e)}function YE(r){return vD(r)}function LE(){var r;return typeof globalThis!==Ro&&(r=globalThis),!r&&typeof self!==Ro&&(r=self),!r&&typeof window!==Ro&&(r=window),!r&&typeof global!==Ro&&(r=global),r}function vc(){if(!cv){var r=Ee(LE).v||{};cv=r[mE]=r[mE]||{}}return cv}function pD(r,e,t){return _c(r),t<0?Dv:(e=e||0,e<0&&(e=dD(e+r[Oo],0)),Te(t)?EE(r,e):EE(r,e,e+t))}function Lo(r,e){return Pr(r,0,e)}function mD(r,e){return r&&(Ee(function(){r[dE]=!0,r[pE]=e}),Ee(we,[r,dE,{v:!0,w:!1,e:!1}]),Ee(we,[r,pE,{v:e,w:!1,e:!1}])),r}function ED(r,e){var t=null;function n(){}if(rn(r))t={};else{var i=typeof r;i!==vu&&i!==uc&&et("Prototype must be an Object or function: "+te(r)),n[Br]=r,Ee(function(){n[lu]=r}),t=new n}return e&&Ee(Av,[t,e]),t}function ur(){return(Date.now||SD)()}function SD(){return new Date().getTime()}function bo(r,e,t){return r.apply(e,t)}function Ui(){Er=vc()}function Ov(r,e){var t={};return!Er&&Ui(),t.b=Er.lzy,Et(t,"v",{configurable:!0,get:function(){var n=bo(r,null,e);return Er.lzy||Et(t,"v",{value:n}),t.b=Er.lzy,n}}),t}function DD(){if(!lv){var r=vc();lv=r.gblSym=r.gblSym||{k:{},s:{}}}return lv}function Yv(r){var e="_"+TD+++"_"+ND.v,t=Iv+"("+r+")";function n(o,a){we(i,o,{v:a,e:!1,w:!1})}var i=nn(null);return n("description",vr(r)),n(du,function(){return t+hD+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),mD(i,"symbol")}function ID(r){var e=DD();if(!Vt(e.k,r)){var t=Yv(r),n=jr(e.s).length;t[SE]=function(){return n+"_"+t[du]()},e.k[r]=t,e.s[t[SE]()]=vr(r)}return e.k[r]}function xD(r){!nc&&(nc={});var e,t=wE[r];return t&&(e=nc[t]=nc[t]||Yv(Iv+"."+t)),e}function St(r){return Et({toJSON:function(){return r}},"v",{value:r})}function mu(r,e){var t;return function(){return!Er&&Ui(),(!t||Er.lzy)&&(t=St(Ee(r,e).v)),t.v}}function ct(r){return!Er&&Ui(),(!cu||r===!1||Er.lzy)&&(cu=St(Ee(LE).v||rr)),cu.v}function le(r,e){var t;if(!cu||e===!1?t=ct(e):t=cu.v,t&&t[r])return t[r];if(r===FE)try{return window}catch{}return rr}function Fo(){return!!gr()}function Qa(){return!!Nr()}function Eu(){return!!Cr()}function wv(){return!!dc()}function pc(){return qa=St(Ee(le,[Iv]).v),qa}function yD(r){var e=(Er.lzy?0:qa)||pc();return e.v?e.v[r]:kr}function ME(){return!!PD()}function PD(){return!Er&&Ui(),((Er.lzy?0:qa)||pc()).v}function Su(r,e){var t=wE[r];!Er&&Ui();var n=(Er.lzy?0:qa)||pc();return n.v?n.v[t||r]:e?kr:xD(r)}function Za(r,e){!Er&&Ui();var t=(Er.lzy?0:qa)||pc();return t.v?t.v(r):e?rr:Yv(r)}function mc(r){return!Er&&Ui(),_v=(Er.lzy?0:_v)||St(Ee(yD,["for"]).v),(_v.v||ID)(r)}function sc(r){return!!r&&se(r.next)}function Lv(r){return!rn(r)&&se(r[Su(3)])}function Ec(r,e,t){if(r&&(sc(r)||(!ic&&(ic=St(Su(3))),r=r[ic.v]?r[ic.v]():rr),sc(r))){var n=kr,i=kr;try{for(var o=0;!(i=r.next()).done&&e[dr](rn(t)?r:t,i.value,o,r)!==-1;)o++}catch(a){n={e:a},r.throw&&(i=rr,r.throw(n))}finally{try{i&&!i.done&&r.return&&r.return(i)}finally{if(n)throw n.e}}}}function on(r,e){return!Te(e)&&r&&(Q(e)?bo(r.push,r,e):sc(e)||Lv(e)?Ec(e,function(t){r.push(t)}):r.push(e)),r}function es(r,e,t){return((r?r.slice:rr)||Tn).apply(r,Tn[dr](arguments,1))}function CD(r,e,t){return Fe(r,e,t)!==-1}function AD(r,e){var t;return!vv&&(vv=St((t={},t[lu]=[],t instanceof Array))),vv.v?r[lu]=e:ae(e,function(n,i){return r[n]=i}),r}function RD(r,e,t){Ee(we,[e,oc,{v:r,c:!0,e:!1}]),e=HE(e,t);function n(){this[_u]=e,Ee(we,[this,oc,{v:r,c:!0,e:!1}])}return e[Br]=t===rr?nn(t):(n[Br]=t[Br],new n),e}function gE(r,e){e&&(r[oc]=e)}function Uv(r,e,t,n){var i=t||Error,o=i[Br][oc],a=Error.captureStackTrace;return RD(r,function(){var s=this,u=arguments;try{Ee(gE,[i,r]);var f=bo(i,s,n?n(u):Tn[dr](u))||s;if(f!==s){var l=Tv(s);l!==Tv(f)&&HE(f,l)}return a&&a(f,s[_u]),e&&e(f,u),f}finally{Ee(gE,[i,o])}},i)}function OD(r){return function(t){return _c(t),t=vr(t),t&&(t=bD(t,r,Dv)),t}}function LD(r,e,t){if(r!==rr&&r!==kr){for(var n in r)if(Vt(r,n)&&e[dr](rn(t)?r:t,n,r[n])===-1)return;b(wD(r),function(i){if(uD(r,i)&&e[dr](rn(t)?r:t,i,r[i])===-1)return-1})}}function FD(r,e,t){LD(r,function(n,i){if(!iD(n))return e[dr](rn(t)?r:t,n,i)},t)}function zr(r){if(!r||typeof r!==vu)return!1;mv||(mv=Qa()?Nr():!0);var e=!1;if(r!==mv){pv||(dv=Function[Br][du],pv=dv[dr](Yr));try{var t=Tv(r);e=!t,e||(yr(t,_u)&&(t=t[_u]),e=!!(t&&typeof t===uc&&dv[dr](t)===pv))}catch{}}return e}function UD(r,e){e&&r.push(e)}function ar(r,e){e&&e[Br]}function MD(){var r=[pu,ei,$a,HT,kT,VT,zT,WT,$T];return Ee(le,["Map"]).v,Ee(le,["Set"]).v,Ee(le,["WeakMap"]).v,Ee(le,["WeakSet"]).v,Ee(le,["Promise"]).v,Ee(le,["Symbol"]).v,Ee(le,["ArrayBuffer"]).v,Ee(le,["SharedArrayBuffer"]).v,Ee(le,["DataView"]).v,Ee(le,["Int8Array"]).v,Ee(le,["Uint8Array"]).v,Ee(le,["Uint8ClampedArray"]).v,Ee(le,["Int16Array"]).v,Ee(le,["Uint16Array"]).v,Ee(le,["Int32Array"]).v,Ee(le,["Uint32Array"]).v,Ee(le,["Float32Array"]).v,Ee(le,["Float64Array"]).v,Ee(le,["BigInt64Array"]).v,Ee(le,["BigUint64Array"]).v,Ee(le,["WeakRef"]).v,Ee(le,["FinalizationRegistry"]).v,r}function HD(r){return Ev||(Ev=St(MD())),Fe(Ev.v,r)>=0}function GD(r){return r.value&&BE(r),!0}function kD(r,e,t,n){var i;return b(r,function(o){if(o.k===e)return i=o,-1}),i||(i={k:e,v:e},r.push(i),n(i)),i.v}function Mv(r,e,t,n){var i=t.handler,o=t.path?n?t.path.concat(n):t.path:[],a={handler:t.handler,src:t.src,path:o},s=typeof e,u=!1,f=e===rr;f||(e&&s===vu?u=zr(e):f=QT(s));var l={type:s,isPrim:f,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(v,d){return Mv(r,v,d?a:t,d)},copyTo:function(v,d){return kE(r,v,d,a)}};return l.isPrim?i&&i[dr](t,l)?l.result:e:kD(r,e,o,function(v){we(l,"result",{g:function(){return v.v},s:function(m){v.v=m}});for(var d=0,E=i;!(E||(d<NE.length?NE[d++]:GD))[dr](t,l);)E=rr})}function kE(r,e,t,n){return HD(t)||FD(t,function(i,o){e[i]=Mv(r,o,n,i)}),e}function BD(r,e,t){var n={handler:t,src:e,path:[]};return kE([],r,e,n)}function VD(r,e){var t={handler:e,src:r};return Mv([],r,t)}function jD(r){var e=r.value;if(Q(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function zD(r){var e=r.value;return lc(e)?(r.result=new Date(e.getTime()),!0):!1}function KD(r){return r.type===uc}function BE(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function WD(r,e){return b(e,function(t){BD(r,t)}),r}function Hv(r,e,t,n,i,o,a){return WD(VD(r)||{},Tn[dr](arguments))}function Uo(){return!Er&&Ui(),(!Sv||Er.lzy)&&(Sv=St(Ee(le,["performance"]).v)),Sv.v}function Nu(){var r=Uo();return r&&r.now?r.now():ur()}function qD(r,e,t){yE(r);var n=he(e)?e:vr(e),i=!Te(t)&&t<r[Oo]?t:r[Oo];return Pr(r,i-n[Oo],i)===n}function $D(r,e,t){yE(r);var n=he(e)?e:vr(e),i=t>0?t:0;return Pr(r,i,i+n[Oo])===n}function JD(r,e,t){var n=!0,i=r?e(rr):rr,o;function a(){return n=!1,i&&i[Nv]&&i[Nv](),o}function s(){i&&t(i),i=rr}function u(){return i=e(i),n||a(),o}function f(l){!l&&i&&s(),l&&!i&&u()}return o={cancel:s,refresh:u},o[hv]=function(){return i&&i[hv]?i[hv]():n},o[gv]=function(){return n=!0,i&&i[gv]&&i[gv](),o},o[Nv]=a,o=Et(o,XD,{get:function(){return!!i},set:f}),{h:o,dn:function(){i=rr}}}function eI(r){var e=se(r)?r:QD;if(!e){var t=vc().tmOut||[];Q(t)&&t.length>0&&se(t[0])&&(e=t[0])}return e||setTimeout}function rI(r){var e=se(r)?r:ZD;if(!e){var t=vc().tmOut||[];Q(t)&&t.length>1&&se(t[1])&&(e=t[1])}return e||clearTimeout}function Gv(r,e,t){var n=Q(e),i=n?e.length:0,o=eI(i>0?e[0]:n?kr:e),a=rI(i>1?e[1]:kr),s=t[0];t[0]=function(){u.dn(),bo(s,kr,Tn[dr](arguments))};var u=JD(r,function(f){if(f){if(f.refresh)return f.refresh(),f;bo(a,kr,[f])}return bo(o,kr,t)},function(f){bo(a,kr,[f])});return u.h}function bt(r,e){return Gv(!0,kr,Tn[dr](arguments))}function VE(r,e,t){return Gv(!0,r,Tn[dr](arguments,1))}function jE(r,e){return Gv(!1,kr,Tn[dr](arguments))}var kr,rr,Dv,uc,vu,Br,lu,Ro,_u,Iv,Oo,oc,dr,du,xv,UT,Yr,pu,hE,ei,TE,DE,$a,Tn,MT,HT,GT,kT,BT,VT,jT,zT,KT,WT,qT,$T,dE,pE,fv,he,se,Q,lc,Vr,Dn,Yo,vr,rD,tD,Vt,wo,uD,fD,tc,Et,Av,cD,AE,Ja,jr,jt,bv,Tv,wE,mE,cv,dD,EE,Pr,xn,nn,Er,gD,ND,SE,hD,lv,TD,nc,FE,cu,gr,Nr,Cr,dc,UE,qa,_v,ic,Fe,ri,Fv,rs,gu,vv,HE,bD,YD,He,GE,wD,dv,pv,mv,Ev,NE,Sv,an,Mo,ts,gv,Nv,hv,XD,QD,ZD,ge=w(()=>{"use strict";_();kr=void 0,rr=null,Dv="",uc="function",vu="object",Br="prototype",lu="__proto__",Ro="undefined",_u="constructor",Iv="Symbol",Oo="length",oc="name",dr="call",du="toString",xv="getOwnPropertyDescriptor",UT="getOwnPropertySymbols",Yr=sr(Object),pu=Be(Yr,Br),hE=sr(String),ei=Be(hE,Br),TE=sr(Math),DE=sr(Array),$a=Be(DE,Br),Tn=Be($a,"slice"),MT=sr(Number),HT=Be(MT,Br),GT=sr(Function),kT=Be(GT,Br),BT=sr(Date),VT=Be(BT,Br),jT=sr(RegExp),zT=Be(jT,Br),KT=sr(Boolean),WT=Be(KT,Br),qT=sr(Error),$T=Be(qT,Br),dE="_polyfill",pE="__nw21$polytype__";he=fc("string"),se=fc(uc);Q=Be(DE,"isArray"),lc=IE("Date"),Vr=fc("number"),Dn=fc("boolean"),Yo=IE("Error");vr=sr(hE),rD="[object Error]";tD=sr(Be(Yr,xv),Cv),Vt=sr(Be(Yr,"hasOwn"),nD);wo=Xa;uD=oD("propertyIsEnumerable",pu,sD),fD=sr(Be(Yr,xv),Cv),tc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};Et=Be(Yr,"defineProperty"),Av=Be(Yr,"defineProperties");cD=sr(Be(Yr,"isFrozen"),eD),AE=Be(Yr,"freeze");Ja=Be(Yr,"assign"),jr=Be(Yr,"keys");jt=sr(AE,RE),bv=sr(Be(Yr,"seal"),RE),Tv=sr(Be(Yr,"getPrototypeOf"),lD);wE=_D({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),mE="__tsUtils$gblCfg";dD=Be(TE,"max"),EE=wo("slice",ei),Pr=wo("substring",ei),xn=Xa("substr",ei,pD);nn=sr(Be(Yr,"create"),ED);gD=Be(TE,"random"),ND=Ov(function(){for(var r=ur().toString(36).slice(2);r.length<16;)r+=gD().toString(36).slice(2);return r=r.substring(0,16),r}),SE="_urid",hD="$nw21sym",TD=0;FE="window";gr=mu(le,["document"]);Nr=mu(le,[FE]);Cr=mu(le,["navigator"]);dc=mu(le,["history"]),UE=mu(function(){return!!Ee(function(){return process&&(process.versions||{}).node}).v});Fe=wo("indexOf",$a),ri=wo("map",$a);Fv=Xa("includes",$a,CD),rs=aD(Oo),gu=wo("reduce",$a),HE=sr(Be(Yr,"setPrototypeOf"),AD);bD=wo("replace",ei);YD=OD(/^\s+|(?=\s)\s+$/g),He=Xa("trim",ei,YD),GE=sr(Be(Yr,xv),Cv),wD=sr(Be(Yr,UT),ZT);NE=[jD,BE,KD,zD];an=wo("indexOf",ei),Mo=Xa("endsWith",ei,qD);ts=Xa("startsWith",ei,$D);gv="ref",Nv="unref",hv="hasRef",XD="enabled"});function gt(r,e){typeof e!==Ka&&e!==null&&et("Class extends value "+String(e)+" is not a constructor or null"),kv(r,e);function t(){this.constructor=r}r[en]=e===null?nn(e):(t[en]=e[en],new t)}function Sc(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var S0,g0,zE,nI,zt,kv,KE=w(()=>{"use strict";_();ge();uv();S0=(ct()||{}).Symbol,g0=(ct()||{}).Reflect,zE="hasOwnProperty",nI=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)fu[zE].call(e,i)&&(r[i]=e[i])}return r},zt=Ja||nI,kv=function(r,e){return kv=Wa.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[zE](i)&&(t[i]=n[i])},kv(r,e)}});var WE=w(()=>{"use strict";_()});var Nt=w(()=>{"use strict";_();uv();KE();WE();ge()});function Tc(r){return r&&(r===$v[ti]||r===Array[ti])}function Xv(r){return Tc(r)||r===Function[ti]}function Ho(r){var e;if(r){if(Tu)return Tu(r);var t=r[qv]||r[ti]||(r[Dc]?r[Dc][ti]:null);e=r[Nc]||t,yr(r,Nc)||(delete r[Bv],e=r[Nc]=r[Bv]||r[Nc],r[Bv]=t)}return e}function yc(r,e){var t=[];if(XE)t=XE(r);else for(var n in r)typeof n=="string"&&yr(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function Jv(r,e,t){return e!==Dc&&typeof r[e]===Ic&&(t||yr(r,e))&&e!==qv&&e!==ti}function Pc(r){et("DynamicProto: "+r)}function oI(r){var e=nn(null);return yc(r,function(t){!e[t]&&Jv(r,t,!1)&&(e[t]=r[t])}),e}function Qv(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function aI(r,e,t,n){function i(u,f,l){var v=f[l];if(v[jv]&&n){var d=u[xc]||{};d[hu]!==!1&&(v=(d[f[ns]]||{})[l]||v)}return function(){return v.apply(u,arguments)}}var o=nn(null);yc(t,function(u){o[u]=i(e,t,u)});for(var a=Ho(r),s=[];a&&!Xv(a)&&!Qv(s,a);)yc(a,function(u){!o[u]&&Jv(a,u,!Tu)&&(o[u]=i(e,a,u))}),s.push(a),a=Ho(a);return o}function sI(r,e,t,n){var i=null;if(r&&yr(t,ns)){var o=r[xc]||nn(null);if(i=(o[t[ns]]||nn(null))[e],i||Pc("Missing ["+e+"] "+Ic),!i[zv]&&o[hu]!==!1){for(var a=!yr(r,e),s=Ho(r),u=[];a&&s&&!Xv(s)&&!Qv(u,s);){var f=s[e];if(f){a=f===n;break}u.push(s),s=Ho(s)}try{a&&(r[e]=i),i[zv]=1}catch{o[hu]=!1}}}return i}function uI(r,e,t){var n=e[r];return n===t&&(n=Ho(e)[r]),typeof n!==Ic&&Pc("["+r+"] is not a "+Ic),n}function fI(r,e,t,n,i){function o(u,f){var l=function(){var v=sI(this,f,u,l)||uI(f,u,l);return v.apply(this,arguments)};return l[jv]=1,l}if(!Tc(r)){var a=t[xc]=t[xc]||nn(null);if(!Tc(a)){var s=a[e]=a[e]||nn(null);a[hu]!==!1&&(a[hu]=!!i),Tc(s)||yc(t,function(u){Jv(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!yr(r,u)||r[u]&&!r[u][jv])&&(r[u]=o(r,u)))})}}}function cI(r,e){if(Tu){for(var t=[],n=Ho(e);n&&!Xv(n)&&!Qv(t,n);){if(n===r)return!0;t.push(n),n=Ho(n)}return!1}return!0}function Vv(r,e){return yr(r,ti)?r.name||e||qE:((r||{})[Dc]||{}).name||e||qE}function Ae(r,e,t,n){yr(r,ti)||Pc("theClass is an invalid class definition.");var i=r[ti];cI(i,e)||Pc("["+Vv(r)+"] not in hierarchy of ["+Vv(e)+"]");var o=null;yr(i,ns)?o=i[ns]:(o=iI+Vv(r,"_")+"$"+Wv.n,Wv.n++,i[ns]=o);var a=Ae[QE],s=!!a[hc];s&&n&&n[hc]!==void 0&&(s=!!n[hc]);var u=oI(e),f=aI(i,e,u,s);t(e,f);var l=!!Tu&&!!a[Kv];l&&n&&(l=!!n[Kv]),fI(i,o,e,u,l!==!1)}var gc,Dc,ti,Ic,xc,jv,ns,iI,zv,hu,QE,qE,qv,Nc,$E,Bv,hc,Kv,$v,Tu,XE,JE,Wv,wr=w(()=>{"use strict";_();ge();Dc="constructor",ti="prototype",Ic="function",xc="_dynInstFuncs",jv="_isDynProxy",ns="_dynClass",iI="_dynCls$",zv="_dynInstChk",hu=zv,QE="_dfOpts",qE="_unknown_",qv="__proto__",Nc="_dyn"+qv,$E="__dynProto$Gbl",Bv="_dynInstProto",hc="useBaseInst",Kv="setInstFuncs",$v=Object,Tu=$v.getPrototypeOf,XE=$v.getOwnPropertyNames,JE=ct(),Wv=JE[$E]||(JE[$E]={o:(gc={},gc[Kv]=!0,gc[hc]=!0,gc),n:1e3});Ae[QE]=Wv.o});var Zv,ZE=w(()=>{"use strict";_();Zv=100});var fr,ed,Du=w(()=>{"use strict";_();ge();fr=OE,ed=YE});var sn,lI,eS=w(()=>{"use strict";_();Du();sn=fr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),lI=fr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Ot,rd=w(()=>{"use strict";_();Du();Ot=fr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var ht,Mi,$,Go,ko,is,ni,un,fn,Ve,Hi,ye,yn,Cc,ii,oi,Pn,os,as,Tt,td,Ac,Bo,Iu,Gi,Lr,ss,ki,Ar,Rc,nd,Bi,id,Dt,xu,Vo,bc,Cn,Yt,us,An,cn,It,Vi,jo,wt,ji,Oc,yu,Kt,Yc,ln,od,xt,Pu,zo,ad,sd,Cu,zi,Ko,_n,wc,ud,fs,fd,Lc,Wo,cd,cs,ls,Ki,Ge=w(()=>{"use strict";_();ht="toLowerCase",Mi="blkVal",$="length",Go="rdOnly",ko="notify",is="warnToConsole",ni="throwInternal",un="setDf",fn="watch",Ve="logger",Hi="apply",ye="push",yn="splice",Cc="hdlr",ii="cancel",oi="initialize",Pn="identifier",os="removeNotificationListener",as="addNotificationListener",Tt="isInitialized",td="instrumentationKey",Ac="INACTIVE",Bo="value",Iu="getNotifyMgr",Gi="getPlugin",Lr="name",ss="iKey",ki="time",Ar="processNext",Rc="getProcessTelContext",nd="pollInternalLogs",Bi="enabled",id="stopPollingInternalLogs",Dt="unload",xu="onComplete",Vo="version",bc="loggingLevelConsole",Cn="createNew",Yt="teardown",us="messageId",An="message",cn="isAsync",It="diagLog",Vi="_doTeardown",jo="update",wt="getNext",ji="setNextPlugin",Oc="protocol",yu="userAgent",Kt="split",Yc="nodeType",ln="replace",od="logInternalMessage",xt="type",Pu="handler",zo="status",ad="getResponseHeader",sd="getAllResponseHeaders",Cu="isChildEvt",zi="data",Ko="getCtx",_n="setCtx",wc="complete",ud="itemsReceived",fs="urlString",fd="sendPOST",Lc="headers",Wo="timeout",cd="setRequestHeader",cs="traceId",ls="spanId",Ki="traceFlags"});function rS(r,e){ld||(ld=Uv("AggregationError",function(n,i){i[$]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw b(e,function(n,i){t+=`
|
|
1
|
+
"use strict";var bT=Object.create;var ec=Object.defineProperty;var OT=Object.getOwnPropertyDescriptor;var YT=Object.getOwnPropertyNames;var wT=Object.getPrototypeOf,LT=Object.prototype.hasOwnProperty;var w=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var Zr=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},rc=(r,e)=>{for(var t in e)ec(r,t,{get:e[t],enumerable:!0})},vE=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of YT(e))!LT.call(r,i)&&i!==t&&ec(r,i,{get:()=>e[i],enumerable:!(n=OT(e,i))||n.enumerable});return r};var Fi=(r,e,t)=>(t=r!=null?bT(wT(r)):{},vE(e||!r||!r.__esModule?ec(t,"default",{value:r,enumerable:!0}):t,r)),FT=r=>vE(ec({},"__esModule",{value:!0}),r);var _=w(()=>{});var Ka,Zn,hn,en,Wa,fu,uv=w(()=>{"use strict";_();Ka="function",Zn="object",hn="undefined",en="prototype",Wa=Object,fu=Wa[en]});function sr(r,e){return r||e}function Be(r,e){return r?.[e]}function Ee(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function XT(r,e,t){var n=Ee(r,t);return n.e?e:n.v}function fc(r){return function(e){return typeof e===r}}function IE(r){var e="[object "+r+"]";return function(t){return!!(t&&cc(t)===e)}}function cc(r){return pu[du].call(r)}function yv(r,e){return typeof r===e}function Te(r){return typeof r===Ro||r===Ro}function JT(r){return r===kr}function B(r){return r===rr||Te(r)}function rn(r){return r===rr||r===kr}function xE(r){return!!r||r!==kr}function QT(r){return!fv&&(fv=["string","number","boolean",Ro,"symbol","bigint"]),r!==vu&&fv.indexOf(r)!==-1}function tr(r){return!r&&B(r)?!1:!!r&&typeof r===vu}function ft(r){return!!(r&&r.then&&se(r.then))}function Pv(r){return!r||!tn(r)}function tn(r){return!(!r||XT(function(){return!(r&&0+r)},!r))}function Cv(){}function ZT(){return[]}function eD(){return!1}function te(r,e){var t=Dv,n=pu[du][dr](r);n===rD&&(r={stack:vr(r.stack),message:vr(r.message),name:vr(r.name)});try{t=JSON.stringify(r,rr,e?typeof e=="number"?e:4:kr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):rr)||vr(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function Sr(r){throw new Error(r)}function et(r){throw new TypeError(r)}function _c(r){rn(r)&&et("Cannot convert undefined or null to object")}function yE(r){he(r)||et("'"+te(r)+"' is not a string")}function yr(r,e){return!!r&&pu.hasOwnProperty[dr](r,e)}function nD(r,e){return _c(r),yr(r,e)||!!tD(r,e)}function iD(r){return r===lu||r===_u||r===Br}function ae(r,e,t){if(r&&(tr(r)||se(r))){for(var n in r)if(Vt(r,n)&&e[dr](rn(t)?r:t,n,r[n])===-1)break}}function b(r,e,t){if(r)for(var n=r[Oo]>>>0,i=0;i<n&&!(i in r&&e[dr](rn(t)?r:t,r[i],i,r)===-1);i++);}function Xa(r,e,t){var n=e?e[r]:rr;return function(i){var o=(i?i[r]:rr)||n;if(o||t){var a=arguments;return(o||t).apply(i,o?Tn[dr](a,1):a)}et('"'+vr(r)+'" not defined for '+te(i))}}function oD(r,e,t){var n=e?e[r]:rr;return function(i){var o=n;if(o||t){var a=arguments;return(o||t).apply(i,o?Tn[dr](a,1):a)}et('"'+vr(r)+'" not defined for '+te(i))}}function aD(r){return function(e){return e[r]}}function sD(r,e){var t,n=Yr.getOwnPropertyDescriptor;return!rn(r)&&n&&(t=Ee(n,[r,e]).v||rr),!t&&!rn(r)&&(t=Ee(function(){for(var i in r)if(i==e)return{enumerable:yr(r,i)}}).v),t&&t.enumerable||!1}function PE(r){var e={};if(e[tc.c]=!0,e[tc.e]=!0,r.l){e.get=function(){return r.l.v};var t=fD(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return ae(r,function(n,i){e[tc[n]]=JT(i)?e[tc[n]]:i}),e}function Rv(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),Et(r,e,PE(a))}function we(r,e,t){return Et(r,e,PE(t))}function CE(r,e,t,n,i){var o={};return ae(r,function(a,s){ac(o,a,e?s:a),ac(o,s,t?s:a)}),n?n(o):o}function ac(r,e,t,n){Et(r,e,{value:t,enumerable:!0,writable:!1})}function RE(r){return r}function lD(r){return _c(r),r[lu]||rr}function bE(r,e){if((Q(r)||tr(r)||se(r))&&!cD(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),ae(r,function(n,i){bE(i,e)}),jt(r)}return r}function In(r){return AE?bE(r,[]):r}function OE(r){return CE(r,1,0,jt)}function _D(r){return CE(r,0,0,jt)}function vD(r){var e={};return ae(r,function(t,n){ac(e,t,n[1]),ac(e,n[0],n[1])}),jt(e)}function YE(r){return vD(r)}function LE(){var r;return typeof globalThis!==Ro&&(r=globalThis),!r&&typeof self!==Ro&&(r=self),!r&&typeof window!==Ro&&(r=window),!r&&typeof global!==Ro&&(r=global),r}function vc(){if(!cv){var r=Ee(LE).v||{};cv=r[mE]=r[mE]||{}}return cv}function pD(r,e,t){return _c(r),t<0?Dv:(e=e||0,e<0&&(e=dD(e+r[Oo],0)),Te(t)?EE(r,e):EE(r,e,e+t))}function Lo(r,e){return Pr(r,0,e)}function mD(r,e){return r&&(Ee(function(){r[dE]=!0,r[pE]=e}),Ee(we,[r,dE,{v:!0,w:!1,e:!1}]),Ee(we,[r,pE,{v:e,w:!1,e:!1}])),r}function ED(r,e){var t=null;function n(){}if(rn(r))t={};else{var i=typeof r;i!==vu&&i!==uc&&et("Prototype must be an Object or function: "+te(r)),n[Br]=r,Ee(function(){n[lu]=r}),t=new n}return e&&Ee(Av,[t,e]),t}function ur(){return(Date.now||SD)()}function SD(){return new Date().getTime()}function bo(r,e,t){return r.apply(e,t)}function Ui(){Er=vc()}function Ov(r,e){var t={};return!Er&&Ui(),t.b=Er.lzy,Et(t,"v",{configurable:!0,get:function(){var n=bo(r,null,e);return Er.lzy||Et(t,"v",{value:n}),t.b=Er.lzy,n}}),t}function DD(){if(!lv){var r=vc();lv=r.gblSym=r.gblSym||{k:{},s:{}}}return lv}function Yv(r){var e="_"+TD+++"_"+ND.v,t=Iv+"("+r+")";function n(o,a){we(i,o,{v:a,e:!1,w:!1})}var i=nn(null);return n("description",vr(r)),n(du,function(){return t+hD+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),mD(i,"symbol")}function ID(r){var e=DD();if(!Vt(e.k,r)){var t=Yv(r),n=jr(e.s).length;t[SE]=function(){return n+"_"+t[du]()},e.k[r]=t,e.s[t[SE]()]=vr(r)}return e.k[r]}function xD(r){!nc&&(nc={});var e,t=wE[r];return t&&(e=nc[t]=nc[t]||Yv(Iv+"."+t)),e}function St(r){return Et({toJSON:function(){return r}},"v",{value:r})}function mu(r,e){var t;return function(){return!Er&&Ui(),(!t||Er.lzy)&&(t=St(Ee(r,e).v)),t.v}}function ct(r){return!Er&&Ui(),(!cu||r===!1||Er.lzy)&&(cu=St(Ee(LE).v||rr)),cu.v}function le(r,e){var t;if(!cu||e===!1?t=ct(e):t=cu.v,t&&t[r])return t[r];if(r===FE)try{return window}catch{}return rr}function Fo(){return!!gr()}function Qa(){return!!Nr()}function Eu(){return!!Cr()}function wv(){return!!dc()}function pc(){return qa=St(Ee(le,[Iv]).v),qa}function yD(r){var e=(Er.lzy?0:qa)||pc();return e.v?e.v[r]:kr}function ME(){return!!PD()}function PD(){return!Er&&Ui(),((Er.lzy?0:qa)||pc()).v}function Su(r,e){var t=wE[r];!Er&&Ui();var n=(Er.lzy?0:qa)||pc();return n.v?n.v[t||r]:e?kr:xD(r)}function Za(r,e){!Er&&Ui();var t=(Er.lzy?0:qa)||pc();return t.v?t.v(r):e?rr:Yv(r)}function mc(r){return!Er&&Ui(),_v=(Er.lzy?0:_v)||St(Ee(yD,["for"]).v),(_v.v||ID)(r)}function sc(r){return!!r&&se(r.next)}function Lv(r){return!rn(r)&&se(r[Su(3)])}function Ec(r,e,t){if(r&&(sc(r)||(!ic&&(ic=St(Su(3))),r=r[ic.v]?r[ic.v]():rr),sc(r))){var n=kr,i=kr;try{for(var o=0;!(i=r.next()).done&&e[dr](rn(t)?r:t,i.value,o,r)!==-1;)o++}catch(a){n={e:a},r.throw&&(i=rr,r.throw(n))}finally{try{i&&!i.done&&r.return&&r.return(i)}finally{if(n)throw n.e}}}}function on(r,e){return!Te(e)&&r&&(Q(e)?bo(r.push,r,e):sc(e)||Lv(e)?Ec(e,function(t){r.push(t)}):r.push(e)),r}function es(r,e,t){return((r?r.slice:rr)||Tn).apply(r,Tn[dr](arguments,1))}function CD(r,e,t){return Fe(r,e,t)!==-1}function AD(r,e){var t;return!vv&&(vv=St((t={},t[lu]=[],t instanceof Array))),vv.v?r[lu]=e:ae(e,function(n,i){return r[n]=i}),r}function RD(r,e,t){Ee(we,[e,oc,{v:r,c:!0,e:!1}]),e=HE(e,t);function n(){this[_u]=e,Ee(we,[this,oc,{v:r,c:!0,e:!1}])}return e[Br]=t===rr?nn(t):(n[Br]=t[Br],new n),e}function gE(r,e){e&&(r[oc]=e)}function Uv(r,e,t,n){var i=t||Error,o=i[Br][oc],a=Error.captureStackTrace;return RD(r,function(){var s=this,u=arguments;try{Ee(gE,[i,r]);var f=bo(i,s,n?n(u):Tn[dr](u))||s;if(f!==s){var l=Tv(s);l!==Tv(f)&&HE(f,l)}return a&&a(f,s[_u]),e&&e(f,u),f}finally{Ee(gE,[i,o])}},i)}function OD(r){return function(t){return _c(t),t=vr(t),t&&(t=bD(t,r,Dv)),t}}function LD(r,e,t){if(r!==rr&&r!==kr){for(var n in r)if(Vt(r,n)&&e[dr](rn(t)?r:t,n,r[n])===-1)return;b(wD(r),function(i){if(uD(r,i)&&e[dr](rn(t)?r:t,i,r[i])===-1)return-1})}}function FD(r,e,t){LD(r,function(n,i){if(!iD(n))return e[dr](rn(t)?r:t,n,i)},t)}function zr(r){if(!r||typeof r!==vu)return!1;mv||(mv=Qa()?Nr():!0);var e=!1;if(r!==mv){pv||(dv=Function[Br][du],pv=dv[dr](Yr));try{var t=Tv(r);e=!t,e||(yr(t,_u)&&(t=t[_u]),e=!!(t&&typeof t===uc&&dv[dr](t)===pv))}catch{}}return e}function UD(r,e){e&&r.push(e)}function ar(r,e){e&&e[Br]}function MD(){var r=[pu,ei,$a,HT,kT,VT,zT,WT,$T];return Ee(le,["Map"]).v,Ee(le,["Set"]).v,Ee(le,["WeakMap"]).v,Ee(le,["WeakSet"]).v,Ee(le,["Promise"]).v,Ee(le,["Symbol"]).v,Ee(le,["ArrayBuffer"]).v,Ee(le,["SharedArrayBuffer"]).v,Ee(le,["DataView"]).v,Ee(le,["Int8Array"]).v,Ee(le,["Uint8Array"]).v,Ee(le,["Uint8ClampedArray"]).v,Ee(le,["Int16Array"]).v,Ee(le,["Uint16Array"]).v,Ee(le,["Int32Array"]).v,Ee(le,["Uint32Array"]).v,Ee(le,["Float32Array"]).v,Ee(le,["Float64Array"]).v,Ee(le,["BigInt64Array"]).v,Ee(le,["BigUint64Array"]).v,Ee(le,["WeakRef"]).v,Ee(le,["FinalizationRegistry"]).v,r}function HD(r){return Ev||(Ev=St(MD())),Fe(Ev.v,r)>=0}function GD(r){return r.value&&BE(r),!0}function kD(r,e,t,n){var i;return b(r,function(o){if(o.k===e)return i=o,-1}),i||(i={k:e,v:e},r.push(i),n(i)),i.v}function Mv(r,e,t,n){var i=t.handler,o=t.path?n?t.path.concat(n):t.path:[],a={handler:t.handler,src:t.src,path:o},s=typeof e,u=!1,f=e===rr;f||(e&&s===vu?u=zr(e):f=QT(s));var l={type:s,isPrim:f,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(v,d){return Mv(r,v,d?a:t,d)},copyTo:function(v,d){return kE(r,v,d,a)}};return l.isPrim?i&&i[dr](t,l)?l.result:e:kD(r,e,o,function(v){we(l,"result",{g:function(){return v.v},s:function(m){v.v=m}});for(var d=0,E=i;!(E||(d<NE.length?NE[d++]:GD))[dr](t,l);)E=rr})}function kE(r,e,t,n){return HD(t)||FD(t,function(i,o){e[i]=Mv(r,o,n,i)}),e}function BD(r,e,t){var n={handler:t,src:e,path:[]};return kE([],r,e,n)}function VD(r,e){var t={handler:e,src:r};return Mv([],r,t)}function jD(r){var e=r.value;if(Q(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function zD(r){var e=r.value;return lc(e)?(r.result=new Date(e.getTime()),!0):!1}function KD(r){return r.type===uc}function BE(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function WD(r,e){return b(e,function(t){BD(r,t)}),r}function Hv(r,e,t,n,i,o,a){return WD(VD(r)||{},Tn[dr](arguments))}function Uo(){return!Er&&Ui(),(!Sv||Er.lzy)&&(Sv=St(Ee(le,["performance"]).v)),Sv.v}function Nu(){var r=Uo();return r&&r.now?r.now():ur()}function qD(r,e,t){yE(r);var n=he(e)?e:vr(e),i=!Te(t)&&t<r[Oo]?t:r[Oo];return Pr(r,i-n[Oo],i)===n}function $D(r,e,t){yE(r);var n=he(e)?e:vr(e),i=t>0?t:0;return Pr(r,i,i+n[Oo])===n}function JD(r,e,t){var n=!0,i=r?e(rr):rr,o;function a(){return n=!1,i&&i[Nv]&&i[Nv](),o}function s(){i&&t(i),i=rr}function u(){return i=e(i),n||a(),o}function f(l){!l&&i&&s(),l&&!i&&u()}return o={cancel:s,refresh:u},o[hv]=function(){return i&&i[hv]?i[hv]():n},o[gv]=function(){return n=!0,i&&i[gv]&&i[gv](),o},o[Nv]=a,o=Et(o,XD,{get:function(){return!!i},set:f}),{h:o,dn:function(){i=rr}}}function eI(r){var e=se(r)?r:QD;if(!e){var t=vc().tmOut||[];Q(t)&&t.length>0&&se(t[0])&&(e=t[0])}return e||setTimeout}function rI(r){var e=se(r)?r:ZD;if(!e){var t=vc().tmOut||[];Q(t)&&t.length>1&&se(t[1])&&(e=t[1])}return e||clearTimeout}function Gv(r,e,t){var n=Q(e),i=n?e.length:0,o=eI(i>0?e[0]:n?kr:e),a=rI(i>1?e[1]:kr),s=t[0];t[0]=function(){u.dn(),bo(s,kr,Tn[dr](arguments))};var u=JD(r,function(f){if(f){if(f.refresh)return f.refresh(),f;bo(a,kr,[f])}return bo(o,kr,t)},function(f){bo(a,kr,[f])});return u.h}function bt(r,e){return Gv(!0,kr,Tn[dr](arguments))}function VE(r,e,t){return Gv(!0,r,Tn[dr](arguments,1))}function jE(r,e){return Gv(!1,kr,Tn[dr](arguments))}var kr,rr,Dv,uc,vu,Br,lu,Ro,_u,Iv,Oo,oc,dr,du,xv,UT,Yr,pu,hE,ei,TE,DE,$a,Tn,MT,HT,GT,kT,BT,VT,jT,zT,KT,WT,qT,$T,dE,pE,fv,he,se,Q,lc,Vr,Dn,Yo,vr,rD,tD,Vt,wo,uD,fD,tc,Et,Av,cD,AE,Ja,jr,jt,bv,Tv,wE,mE,cv,dD,EE,Pr,xn,nn,Er,gD,ND,SE,hD,lv,TD,nc,FE,cu,gr,Nr,Cr,dc,UE,qa,_v,ic,Fe,ri,Fv,rs,gu,vv,HE,bD,YD,He,GE,wD,dv,pv,mv,Ev,NE,Sv,an,Mo,ts,gv,Nv,hv,XD,QD,ZD,ge=w(()=>{"use strict";_();kr=void 0,rr=null,Dv="",uc="function",vu="object",Br="prototype",lu="__proto__",Ro="undefined",_u="constructor",Iv="Symbol",Oo="length",oc="name",dr="call",du="toString",xv="getOwnPropertyDescriptor",UT="getOwnPropertySymbols",Yr=sr(Object),pu=Be(Yr,Br),hE=sr(String),ei=Be(hE,Br),TE=sr(Math),DE=sr(Array),$a=Be(DE,Br),Tn=Be($a,"slice"),MT=sr(Number),HT=Be(MT,Br),GT=sr(Function),kT=Be(GT,Br),BT=sr(Date),VT=Be(BT,Br),jT=sr(RegExp),zT=Be(jT,Br),KT=sr(Boolean),WT=Be(KT,Br),qT=sr(Error),$T=Be(qT,Br),dE="_polyfill",pE="__nw21$polytype__";he=fc("string"),se=fc(uc);Q=Be(DE,"isArray"),lc=IE("Date"),Vr=fc("number"),Dn=fc("boolean"),Yo=IE("Error");vr=sr(hE),rD="[object Error]";tD=sr(Be(Yr,xv),Cv),Vt=sr(Be(Yr,"hasOwn"),nD);wo=Xa;uD=oD("propertyIsEnumerable",pu,sD),fD=sr(Be(Yr,xv),Cv),tc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};Et=Be(Yr,"defineProperty"),Av=Be(Yr,"defineProperties");cD=sr(Be(Yr,"isFrozen"),eD),AE=Be(Yr,"freeze");Ja=Be(Yr,"assign"),jr=Be(Yr,"keys");jt=sr(AE,RE),bv=sr(Be(Yr,"seal"),RE),Tv=sr(Be(Yr,"getPrototypeOf"),lD);wE=_D({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),mE="__tsUtils$gblCfg";dD=Be(TE,"max"),EE=wo("slice",ei),Pr=wo("substring",ei),xn=Xa("substr",ei,pD);nn=sr(Be(Yr,"create"),ED);gD=Be(TE,"random"),ND=Ov(function(){for(var r=ur().toString(36).slice(2);r.length<16;)r+=gD().toString(36).slice(2);return r=r.substring(0,16),r}),SE="_urid",hD="$nw21sym",TD=0;FE="window";gr=mu(le,["document"]);Nr=mu(le,[FE]);Cr=mu(le,["navigator"]);dc=mu(le,["history"]),UE=mu(function(){return!!Ee(function(){return process&&(process.versions||{}).node}).v});Fe=wo("indexOf",$a),ri=wo("map",$a);Fv=Xa("includes",$a,CD),rs=aD(Oo),gu=wo("reduce",$a),HE=sr(Be(Yr,"setPrototypeOf"),AD);bD=wo("replace",ei);YD=OD(/^\s+|(?=\s)\s+$/g),He=Xa("trim",ei,YD),GE=sr(Be(Yr,xv),Cv),wD=sr(Be(Yr,UT),ZT);NE=[jD,BE,KD,zD];an=wo("indexOf",ei),Mo=Xa("endsWith",ei,qD);ts=Xa("startsWith",ei,$D);gv="ref",Nv="unref",hv="hasRef",XD="enabled"});function gt(r,e){typeof e!==Ka&&e!==null&&et("Class extends value "+String(e)+" is not a constructor or null"),kv(r,e);function t(){this.constructor=r}r[en]=e===null?nn(e):(t[en]=e[en],new t)}function Sc(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var S0,g0,zE,nI,zt,kv,KE=w(()=>{"use strict";_();ge();uv();S0=(ct()||{}).Symbol,g0=(ct()||{}).Reflect,zE="hasOwnProperty",nI=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)fu[zE].call(e,i)&&(r[i]=e[i])}return r},zt=Ja||nI,kv=function(r,e){return kv=Wa.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[zE](i)&&(t[i]=n[i])},kv(r,e)}});var WE=w(()=>{"use strict";_()});var Nt=w(()=>{"use strict";_();uv();KE();WE();ge()});function Tc(r){return r&&(r===$v[ti]||r===Array[ti])}function Xv(r){return Tc(r)||r===Function[ti]}function Ho(r){var e;if(r){if(Tu)return Tu(r);var t=r[qv]||r[ti]||(r[Dc]?r[Dc][ti]:null);e=r[Nc]||t,yr(r,Nc)||(delete r[Bv],e=r[Nc]=r[Bv]||r[Nc],r[Bv]=t)}return e}function yc(r,e){var t=[];if(XE)t=XE(r);else for(var n in r)typeof n=="string"&&yr(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function Jv(r,e,t){return e!==Dc&&typeof r[e]===Ic&&(t||yr(r,e))&&e!==qv&&e!==ti}function Pc(r){et("DynamicProto: "+r)}function oI(r){var e=nn(null);return yc(r,function(t){!e[t]&&Jv(r,t,!1)&&(e[t]=r[t])}),e}function Qv(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function aI(r,e,t,n){function i(u,f,l){var v=f[l];if(v[jv]&&n){var d=u[xc]||{};d[hu]!==!1&&(v=(d[f[ns]]||{})[l]||v)}return function(){return v.apply(u,arguments)}}var o=nn(null);yc(t,function(u){o[u]=i(e,t,u)});for(var a=Ho(r),s=[];a&&!Xv(a)&&!Qv(s,a);)yc(a,function(u){!o[u]&&Jv(a,u,!Tu)&&(o[u]=i(e,a,u))}),s.push(a),a=Ho(a);return o}function sI(r,e,t,n){var i=null;if(r&&yr(t,ns)){var o=r[xc]||nn(null);if(i=(o[t[ns]]||nn(null))[e],i||Pc("Missing ["+e+"] "+Ic),!i[zv]&&o[hu]!==!1){for(var a=!yr(r,e),s=Ho(r),u=[];a&&s&&!Xv(s)&&!Qv(u,s);){var f=s[e];if(f){a=f===n;break}u.push(s),s=Ho(s)}try{a&&(r[e]=i),i[zv]=1}catch{o[hu]=!1}}}return i}function uI(r,e,t){var n=e[r];return n===t&&(n=Ho(e)[r]),typeof n!==Ic&&Pc("["+r+"] is not a "+Ic),n}function fI(r,e,t,n,i){function o(u,f){var l=function(){var v=sI(this,f,u,l)||uI(f,u,l);return v.apply(this,arguments)};return l[jv]=1,l}if(!Tc(r)){var a=t[xc]=t[xc]||nn(null);if(!Tc(a)){var s=a[e]=a[e]||nn(null);a[hu]!==!1&&(a[hu]=!!i),Tc(s)||yc(t,function(u){Jv(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!yr(r,u)||r[u]&&!r[u][jv])&&(r[u]=o(r,u)))})}}}function cI(r,e){if(Tu){for(var t=[],n=Ho(e);n&&!Xv(n)&&!Qv(t,n);){if(n===r)return!0;t.push(n),n=Ho(n)}return!1}return!0}function Vv(r,e){return yr(r,ti)?r.name||e||qE:((r||{})[Dc]||{}).name||e||qE}function Ae(r,e,t,n){yr(r,ti)||Pc("theClass is an invalid class definition.");var i=r[ti];cI(i,e)||Pc("["+Vv(r)+"] not in hierarchy of ["+Vv(e)+"]");var o=null;yr(i,ns)?o=i[ns]:(o=iI+Vv(r,"_")+"$"+Wv.n,Wv.n++,i[ns]=o);var a=Ae[QE],s=!!a[hc];s&&n&&n[hc]!==void 0&&(s=!!n[hc]);var u=oI(e),f=aI(i,e,u,s);t(e,f);var l=!!Tu&&!!a[Kv];l&&n&&(l=!!n[Kv]),fI(i,o,e,u,l!==!1)}var gc,Dc,ti,Ic,xc,jv,ns,iI,zv,hu,QE,qE,qv,Nc,$E,Bv,hc,Kv,$v,Tu,XE,JE,Wv,wr=w(()=>{"use strict";_();ge();Dc="constructor",ti="prototype",Ic="function",xc="_dynInstFuncs",jv="_isDynProxy",ns="_dynClass",iI="_dynCls$",zv="_dynInstChk",hu=zv,QE="_dfOpts",qE="_unknown_",qv="__proto__",Nc="_dyn"+qv,$E="__dynProto$Gbl",Bv="_dynInstProto",hc="useBaseInst",Kv="setInstFuncs",$v=Object,Tu=$v.getPrototypeOf,XE=$v.getOwnPropertyNames,JE=ct(),Wv=JE[$E]||(JE[$E]={o:(gc={},gc[Kv]=!0,gc[hc]=!0,gc),n:1e3});Ae[QE]=Wv.o});var Zv,ZE=w(()=>{"use strict";_();Zv=100});var fr,ed,Du=w(()=>{"use strict";_();ge();fr=OE,ed=YE});var sn,lI,eS=w(()=>{"use strict";_();Du();sn=fr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),lI=fr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Ot,rd=w(()=>{"use strict";_();Du();Ot=fr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var ht,Mi,$,Go,ko,is,ni,un,fn,Ve,Hi,ye,yn,Cc,ii,oi,Pn,os,as,Tt,td,Ac,Bo,Iu,Gi,Lr,ss,ki,Ar,Rc,nd,Bi,id,Dt,xu,Vo,bc,Cn,Yt,us,An,cn,It,Vi,jo,wt,ji,Oc,yu,Kt,Yc,ln,od,xt,Pu,zo,ad,sd,Cu,zi,Ko,_n,wc,ud,fs,fd,Lc,Wo,cd,cs,ls,Ki,Ge=w(()=>{"use strict";_();ht="toLowerCase",Mi="blkVal",$="length",Go="rdOnly",ko="notify",is="warnToConsole",ni="throwInternal",un="setDf",fn="watch",Ve="logger",Hi="apply",ye="push",yn="splice",Cc="hdlr",ii="cancel",oi="initialize",Pn="identifier",os="removeNotificationListener",as="addNotificationListener",Tt="isInitialized",td="instrumentationKey",Ac="INACTIVE",Bo="value",Iu="getNotifyMgr",Gi="getPlugin",Lr="name",ss="iKey",ki="time",Ar="processNext",Rc="getProcessTelContext",nd="pollInternalLogs",Bi="enabled",id="stopPollingInternalLogs",Dt="unload",xu="onComplete",Vo="version",bc="loggingLevelConsole",Cn="createNew",Yt="teardown",us="messageId",An="message",cn="isAsync",It="diagLog",Vi="_doTeardown",jo="update",wt="getNext",ji="setNextPlugin",Oc="protocol",yu="userAgent",Kt="split",Yc="nodeType",ln="replace",od="logInternalMessage",xt="type",Pu="handler",zo="status",ad="getResponseHeader",sd="getAllResponseHeaders",Cu="isChildEvt",zi="data",Ko="getCtx",_n="setCtx",wc="complete",ud="itemsReceived",fs="urlString",fd="sendPOST",Lc="headers",Wo="timeout",cd="setRequestHeader",cs="traceId",ls="spanId",Ki="traceFlags"});function rS(r,e){ld||(ld=Uv("AggregationError",function(n,i){i[$]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw b(e,function(n,i){t+=`
|
|
2
2
|
`.concat(i," > ").concat(te(n))}),new ld(t,e||[])}var ld,tS=w(()=>{"use strict";_();ge();Ge()});function Lt(r,e){return aS(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:gd,rejected:!0,reason:t}):t})}function aS(r,e,t,n){var i=r;try{if(ft(r))(e||t)&&(i=r.then(e,t));else try{e&&(i=e(r))}catch(o){if(t)i=t(o);else throw o}}finally{n&&_I(i,n)}return i}function _I(r,e){var t=r;return e&&(ft(r)?r.finally?t=r.finally(e):t=r.then(function(n){return e(),n},function(n){throw e(),n}):e()),t}function vI(r,e,t,n){_d=_d||{toString:function(){return"[[PromiseState]]"}},vd=vd||{toString:function(){return"[[PromiseResult]]"}},dd=dd||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[_d]={get:e},i[vd]={get:t},i[dd]={get:n},Av(r,i)}function dI(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function pI(r,e,t,n){var i=gr();!Fc&&(Fc=St(!!Ee(dI,[i]).v));var o=Fc.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),Fc.v&&o.initEvent(e,!1,!0),o&&r[iS])r[iS](o);else{var a=r["on"+e];if(a)a(o);else{var s=le("console");s&&(s.error||s.log)(e,te(o))}}}function oS(r){return se(r)?r.toString():te(r)}function fS(r,e,t){var n=es(arguments,3),i=0,o=!1,a,s=[],u=EI++,f=Au.length>0?Au[Au.length-1]:void 0,l=!1,v=null,d;function E(F,V){try{Au.push(u),l=!0,v&&v.cancel(),v=null;var W=r(function(ne,z){s.push(function(){try{var k=i===2?F:V,Z=Te(k)?a:se(k)?k(a):k;ft(Z)?Z.then(ne,z):k?ne(Z):i===3?z(Z):ne(Z)}catch(ce){z(ce)}}),o&&P()},n);return W}finally{Au.pop()}}function m(F){return E(void 0,F)}function h(F){var V=F,W=F;return se(F)&&(V=function(ne){return F&&F(),ne},W=function(ne){throw F&&F(),ne}),E(V,W)}function g(){return sS[i]}function P(){if(s.length>0){var F=s.slice();s=[],l=!0,v&&v.cancel(),v=null,e(F)}}function T(F,V){return function(W){if(i===V){if(F===2&&ft(W)){i=1,W.then(T(2,1),T(3,1));return}i=F,o=!0,a=W,P(),!l&&F===3&&!v&&(v=bt(I,SI))}}}function I(){if(!l)if(l=!0,UE())process.emit(uS,a,d);else{var F=Nr()||ct();!pd&&(pd=St(Ee(le,[Uc+"RejectionEvent"]).v)),pI(F,mI,function(V){return we(V,"promise",{g:function(){return d}}),V.reason=a,V},!!pd.v)}}d={then:E,catch:m,finally:h},Et(d,"state",{get:g}),nS&&vI(d,g,function(){return cc(a)},function(){return l}),ME()&&(d[Su(11)]="IPromise");function O(){return"IPromise"+(nS?"["+u+(Te(f)?"":":"+f)+"]":"")+" "+g()+(o?" - "+oS(a):"")}return d.toString=O,(function(){se(t)||et(Uc+": executor is not a function - "+oS(t));var V=T(3,0);try{t.call(d,T(2,0),V)}catch(W){V(W)}})(),d}function gI(r){return function(e){var t=es(arguments,1);return r(function(n,i){try{var o=[],a=1;Ec(e,function(s,u){s&&(a++,aS(s,function(f){o[u]=f,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(s){i(s)}},t)}}function NI(r){return St(function(e){var t=es(arguments,1);return r(function(n,i){var o=[],a=1;function s(u,f){a++,Lt(u,function(l){l.rejected?o[f]={status:gd,reason:l.reason}:o[f]={status:"fulfilled",value:l.value},--a===0&&n(o)})}try{Q(e)?b(e,s):Lv(e)?Ec(e,s):et("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function cS(r){b(r,function(e){try{e()}catch{}})}function hI(r){var e=Vr(r)?r:0;return function(t){bt(function(){cS(t)},e)}}function lS(r,e){return fS(lS,hI(e),r,e)}function TI(r,e){!md&&(md=St(Ee(le,[Uc]).v||null));var t=md.v;if(!t)return lS(r);se(r)||et(Uc+": executor is not a function - "+te(r));var n=0;function i(){return sS[n]}var o=new t(function(a,s){function u(l){n=2,a(l)}function f(l){n=3,s(l)}r(u,f)});return Et(o,"state",{get:i}),o}function Ru(r){return fS(Ru,cS,r)}function _S(r,e){return!Ed&&(Ed=NI(Ru)),Ed.v(r,e)}function Wt(r,e){return!Sd&&(Sd=St(TI)),Sd.v.call(this,r,e)}var Uc,gd,_d,vd,dd,nS,sS,iS,Fc,uS,mI,Au,EI,SI,pd,md,Ed,Sd,vS,_P,qo=w(()=>{"use strict";_();ge();Uc="Promise",gd="rejected";nS=!1;sS=["pending","resolving","resolved",gd],iS="dispatchEvent";uS="unhandledRejection",mI=uS.toLowerCase(),Au=[],EI=0,SI=10;vS=gI(Wt),_P=Su(11)});var Ft,me,Wi,nr,Mc,bu,ai,$o,yt,Xo,_s,qi,vs,Rn,Hc,Gc,kc,ds,Bc,Vc,dS,hr=w(()=>{"use strict";_();Ft=void 0,me="",Wi="channels",nr="core",Mc="createPerfMgr",bu="disabled",ai="extensionConfig",$o="extensions",yt="processTelemetry",Xo="priority",_s="eventsSent",qi="eventsDiscarded",vs="eventsSendRequest",Rn="perfEvent",Hc="offlineEventsStored",Gc="offlineBatchSent",kc="offlineBatchDrop",ds="getPerfMgr",Bc="domain",Vc="path",dS="Not dynamic - "});function $i(r){return!B(r)}function Jo(r){var e=r;return e&&he(e)&&(e=e[ln](II,function(t,n){return n.toUpperCase()}),e=e[ln](xI,"_"),e=e[ln](yI,function(t,n){return"_"+n})),e}function pr(r,e){return r&&e?an(r,e)!==-1:!1}function vn(r){return r&&r.toISOString()||""}function ir(r){return Yo(r)?r[Lr]:me}function qt(r,e,t,n,i){var o=t;return r&&(o=r[e],o!==t&&(!i||i(o))&&(!n||n(t))&&(o=t,r[e]=o)),o}function Ou(r,e,t){var n;return r?(n=r[e],!n&&B(n)&&(n=Te(t)?{}:t,r[e]=n)):n=Te(t)?{}:t,n}function mS(r,e){var t=null,n=null;return se(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][Hi](n,i)}}function Nd(r,e,t){if(r&&e&&tr(r)&&tr(e)){var n=function(o){if(he(o)){var a=e[o];se(a)?(!t||t(o,!0,e,r))&&(r[o]=mS(e,o)):(!t||t(o,!1,e,r))&&(Vt(r,o)&&delete r[o],we(r,o,{g:function(){return e[o]},s:function(s){e[o]=s}}))}};for(var i in e)n(i)}return r}function si(r,e,t,n,i){r&&e&&t&&(i!==!1||Te(r[e]))&&(r[e]=mS(t,n))}function Ut(r,e,t,n){return r&&e&&tr(r)&&Q(t)&&b(t,function(i){he(i)&&si(r,i,e,i,n)}),r}function hd(r){return(function(){function e(){var t=this;r&&ae(r,function(n,i){t[n]=i})}return e})()}function Pt(r){return r&&Ja&&(r=Wa(Ja({},r))),r}function jc(r,e,t,n,i,o){var a=arguments,s=a[0]||{},u=a[$],f=!1,l=1;for(u>0&&Dn(s)&&(f=s,s=a[l]||{},l++),tr(s)||(s={});l<u;l++){var v=a[l],d=Q(v),E=tr(v);for(var m in v){var h=d&&m in v||E&&Vt(v,m);if(h){var g=v[m],P=void 0;if(f&&g&&((P=Q(g))||zr(g))){var T=s[m];P?Q(T)||(T=[]):zr(T)||(T={}),g=jc(f,T,g)}g!==void 0&&(s[m]=g)}}}return s}function dn(r){try{return r.responseText}catch{}return null}function Qo(r,e){return r?"XDomainRequest,Response:"+dn(r)||"":e}function ui(r,e){return r?"XMLHttpRequest,Status:"+r[zo]+",Response:"+dn(r)||r.response||"":e}function fi(r,e){return e&&(Vr(e)?r=[e].concat(r):Q(e)&&(r=e.concat(r))),r}function Td(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,f,l){try{u[f]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,PI,n),t&&a(s,pS,t),s.open(r,e,!i),t&&a(s,pS,t),!i&&o&&a(s,CI,o),s}function zc(r){var e={};if(he(r)){var t=He(r)[Kt](/[\r\n]+/);b(t,function(n){if(n){var i=n.indexOf(": ");if(i!==-1){var o=He(n.substring(0,i))[ht](),a=He(n.substring(i+1));e[o]=a}else e[He(n)]=1}})}return e}function ps(r,e,t){if(!r[t]&&e&&e[ad]){var n=e[ad](t);n&&(r[t]=He(n))}return r}function ci(r,e){var t={};return r[sd]?t=zc(r[sd]()):e&&(t=ps(t,r,bI),t=ps(t,r,AI),t=ps(t,r,RI)),t}var DI,II,xI,yI,hP,PI,pS,CI,AI,RI,bI,bn=w(()=>{"use strict";_();Nt();ge();Ge();hr();DI="getPrototypeOf",II=/-([a-z])/g,xI=/([^\w\d_$])/g,yI=/^(\d+[\w\d_$])/,hP=Object[DI];PI="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",pS="withCredentials",CI="timeout";AI="kill-duration",RI="kill-duration-seconds",bI="time-delta-millis"});function NS(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[en];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!Te(i[e])}catch{}}return t}function Cd(r){gS=r}function Zo(r){if(r&&gS){var e=le("__mockLocation");if(e)return e}return typeof location===Zn&&location?location:le(YI)}function Yu(){return typeof console!==hn?console:le(wI)}function On(){return!!(typeof JSON===Zn&&JSON||le(ES)!==null)}function Kr(){return On()?JSON||le(ES):null}function wu(){return le(LI)}function Lu(){return le(FI)}function Xi(){var r=Cr();return r&&r.product?r.product===UI:!1}function Ji(){var r=Cr();if(r&&(r[yu]!==Id||Dd===null)){Id=r[yu];var e=(Id||me)[ht]();Dd=pr(e,yd)||pr(e,Pd)}return Dd}function Fu(r){if(r===void 0&&(r=null),!r){var e=Cr()||{};r=e?(e.userAgent||me)[ht]():me}var t=(r||me)[ht]();if(pr(t,yd)){var n=gr()||{};return Math.max(parseInt(t[Kt](yd)[1]),n[OI]||0)}else if(pr(t,Pd)){var i=parseInt(t[Kt](Pd)[1]);if(i)return i+4}return null}function $t(r){return(xd===null||r===!1)&&(xd=Eu()&&!!Cr().sendBeacon),xd}function li(r){var e=!1;try{e=!!le("fetch");var t=le("Request");e&&r&&t&&(e=NS(t,"keepalive"))}catch{}return e}function Uu(){return ms===null&&(ms=typeof XDomainRequest!==hn,ms&&Es()&&(ms=ms&&!NS(le(SS),"withCredentials"))),ms}function Es(){var r=!1;try{var e=le(SS);r=!!e}catch{}return r}function hS(r,e){if(r)for(var t=0;t<r[$];t++){var n=r[t];if(n[Lr]&&n[Lr]===e)return n}return{}}function Ad(r){var e=gr();return e&&r?hS(e.querySelectorAll("meta"),r).content:null}function Rd(r){var e,t=Uo();if(t){var n=t.getEntriesByType("navigation")||[];e=hS((n[$]>0?n[0]:{}).serverTiming,r).description}return e}var OI,YI,wI,ES,LI,FI,UI,yd,Pd,SS,Dd,Id,gS,ms,xd,Qi=w(()=>{"use strict";_();Nt();ge();Ge();bn();hr();OI="documentMode",YI="location",wI="console",ES="JSON",LI="crypto",FI="msCrypto",UI="ReactNative",yd="msie",Pd="trident/",SS="XMLHttpRequest",Dd=null,Id=null,gS=!1,ms=null,xd=null});function MI(r){r<0&&(r>>>=0),Mu=DS+r&Zi,Hu=IS-r&Zi,xS=!0}function HI(){try{var r=ur()&2147483647;MI((Math.random()*TS^r)+r)}catch{}}function bd(r){return r>0?Math.floor(_i()/Zi*(r+1))>>>0:0}function _i(r){var e=0,t=wu()||Lu();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&Zi),e===0&&Ji()&&(xS||HI(),e=yS()&Zi),e===0&&(e=Math.floor(TS*Math.random()|0)),r||(e>>>=0),e}function yS(r){Hu=36969*(Hu&65535)+(Hu>>16)&Zi,Mu=18e3*(Mu&65535)+(Mu>>16)&Zi;var e=(Hu<<16)+(Mu&65535)>>>0&Zi|0;return r||(e>>>=0),e}function Gu(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=_i()>>>0,n=0,i=me;i[$]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(_i()<<2&4294967295|t&3)>>>0,n=0);return i}var TS,Zi,DS,IS,xS,Mu,Hu,Kc=w(()=>{"use strict";_();ge();Ge();Qi();hr();TS=4294967296,Zi=4294967295,DS=123456789,IS=987654321,xS=!1,Mu=DS,Hu=IS});function CS(r){return r[Yc]===1||r[Yc]===9||!+r[Yc]}function BI(r,e){var t=e[r.id];if(!t){t={};try{CS(e)&&we(e,r.id,{e:!1,v:t})}catch{}}return t}function Wr(r,e){return e===void 0&&(e=!1),Jo(r+kI+++(e?"."+PS:me)+GI)}function Wc(r){var e={id:Wr("_aiData-"+(r||me)+"."+PS),accept:function(t){return CS(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[Jo(n)]:(o&&(a=BI(e,t),a[Jo(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}var PS,GI,kI,Ss=w(()=>{"use strict";_();ge();Ge();bn();hr();Kc();PS="3.3.4",GI="."+Gu(6),kI=0});function qc(r){return r&&tr(r)&&(r.isVal||r.fb||Vt(r,"v")||Vt(r,"mrg")||Vt(r,"ref")||r.set)}function AS(r,e,t){var n,i=t.dfVal||xE;if(e&&t.fb){var o=t.fb;Q(o)||(o=[o]);for(var a=0;a<o[$];a++){var s=o[a],u=e[s];if(i(u)?n=u:r&&(u=r.cfg[s],i(u)&&(n=u),r.set(r.cfg,vr(s),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function Od(r,e,t){var n=t;if(t&&qc(t)&&(n=AS(r,e,t)),n){qc(n)&&(n=Od(r,e,n));var i;Q(n)?(i=[],i[$]=n[$]):zr(n)&&(i={}),i&&(ae(n,function(o,a){a&&qc(a)&&(a=Od(r,e,a)),i[o]=a}),n=i)}return n}function ku(r,e,t,n){var i,o,a,s=n,u,f,l,v;qc(s)?(i=s.isVal,o=s.set,l=s[Go],v=s[Mi],u=s.mrg,f=s.ref,!f&&Te(f)&&(f=!!u),a=AS(r,e,s)):a=n,v&&r[Mi](e,t);var d,E=!0,m=e[t];(m||!B(m))&&(d=m,E=!1,i&&d!==a&&!i(d)&&(d=a,E=!0),o&&(d=o(d,a,e),E=d===a)),E?a?d=Od(r,e,a):d=a:(zr(d)||Q(a))&&u&&a&&(zr(a)||Q(a))&&ae(a,function(h,g){ku(r,d,h,g)}),r.set(e,t,d),f&&r.ref(e,t),l&&r[Go](e,t)}var Yd=w(()=>{"use strict";_();ge();Ge()});function wd(r){if(r){var e;if(Q(r)?(e=[],e[$]=r[$]):zr(r)&&(e={}),e)return ae(r,function(t,n){e[t]=wd(n)}),e}return r}function Bu(r){if(r){var e=r[Yn]||r;if(e.cfg&&(e.cfg===r||e.cfg[Yn]===e))return e}return null}function Vu(r){if(r&&(zr(r)||Q(r)))try{r[RS]=!0}catch{}return r}function Ld(r){if(r)try{r[bS]=!0}catch{}return r}function $c(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[bS],!n&&!t[RS]&&(n=zr(t)||Q(t))),n}function Xc(r){et("InvalidAccess:"+r)}var Yn,RS,bS,Jc=w(()=>{"use strict";_();ge();Ge();Yn=mc("[[ai_dynCfg_1]]"),RS=mc("[[ai_blkDynCfg_1]]"),bS=mc("[[ai_frcDynCfg_1]]")});function jI(r,e,t){Q(e)&&b(VI,function(n){var i=e[n];e[n]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=i[Hi](this,o);return ju(r,e,t,"Patching"),s}})}function Qc(r,e){var t=GE(r,e);return t&&t.get}function zI(r,e,t,n){var i={n:t,h:[],trk:function(f){f&&f.fn&&(Fe(i.h,f)===-1&&i.h[ye](f),r.trk(f,i))},clr:function(f){var l=Fe(i.h,f);l!==-1&&i.h[yn](l,1)}},o=!0,a=!1;function s(){o&&(a=a||$c(s,r,n),n&&!n[Yn]&&a&&(n=ju(r,n,t,"Converting")),o=!1);var f=r.act;return f&&i.trk(f),n}s[r.prop]={chng:function(){r.add(i)}};function u(f){if(n!==f){s[r.ro]&&!r.upd&&Xc("["+t+"] is read-only:"+te(e)),o&&(a=a||$c(s,r,n),o=!1);var l=a&&s[r.rf];if(a)if(l){ae(n,function(d){n[d]=f?f[d]:Ft});try{ae(f,function(d,E){zu(r,n,d,E)}),f=n}catch(d){gs((r.hdlr||{})[Ve],t,"Assigning",d),a=!1}}else n&&n[Yn]&&ae(n,function(d){var E=Qc(n,d);if(E){var m=E[r.prop];m&&m.chng()}});if(f!==n){var v=f&&$c(s,r,f);!l&&v&&(f=ju(r,f,t,"Converting")),n=f,a=v}r.add(i)}}we(e,i.n,{g:s,s:u})}function zu(r,e,t,n){if(e){var i=Qc(e,t),o=i&&!!i[r.prop];o?e[t]=n:zI(r,e,t,n)}return e}function Zc(r,e,t,n){if(e){var i=Qc(e,t),o=i&&!!i[r.prop],a=n&&n[0],s=n&&n[1],u=n&&n[2];if(!o){if(u)try{Vu(e)}catch(f){gs((r.hdlr||{})[Ve],t,"Blocking",f)}try{zu(r,e,t,e[t]),i=Qc(e,t)}catch(f){gs((r.hdlr||{})[Ve],t,"State",f)}}a&&(i[r.rf]=a),s&&(i[r.ro]=s),u&&(i[r.blkVal]=!0)}return e}function ju(r,e,t,n){try{ae(e,function(i,o){zu(r,e,i,o)}),e[Yn]||(Et(e,Yn,{get:function(){return r[Cc]}}),jI(r,e,t))}catch(i){gs((r.hdlr||{})[Ve],t,n,i)}return e}var VI,gs,OS=w(()=>{"use strict";_();ge();hr();Ge();Jc();VI=["push","pop","shift","unshift","splice"],gs=function(r,e,t,n){r&&r[ni](3,108,"".concat(t," [").concat(e,"] failed - ")+te(n))}});function YS(r){var e,t=Za(Ku+"get"+r.uid+Wu),n=Za(Ku+"ro"+r.uid+Wu),i=Za(Ku+"rf"+r.uid+Wu),o=Za(Ku+"blkVal"+r.uid+Wu),a=Za(Ku+"dtl"+r.uid+Wu),s=null,u=null,f;function l(m,h){var g=f.act;try{f.act=m,m&&m[a]&&(b(m[a],function(T){T.clr(m)}),m[a]=[]),h({cfg:r.cfg,set:r.set.bind(r),setDf:r[un].bind(r),ref:r.ref.bind(r),rdOnly:r[Go].bind(r)})}catch(T){var P=r[Ve];throw P&&P[ni](1,107,te(T)),T}finally{f.act=g||null}}function v(){if(s){var m=s;s=null,u&&u[ii](),u=null;var h=[];if(b(m,function(g){if(g&&(g[a]&&(b(g[a],function(P){P.clr(g)}),g[a]=null),g.fn))try{l(g,g.fn)}catch(P){h[ye](P)}}),s)try{v()}catch(g){h[ye](g)}h[$]>0&&rS("Watcher error(s): ",h)}}function d(m){if(m&&m.h[$]>0){s||(s=[]),u||(u=bt(function(){u=null,v()},0));for(var h=0;h<m.h[$];h++){var g=m.h[h];g&&Fe(s,g)===-1&&s[ye](g)}}}function E(m,h){if(m){var g=m[a]=m[a]||[];Fe(g,h)===-1&&g[ye](h)}}return f=(e={prop:t,ro:n,rf:i},e[Mi]=o,e[Cc]=r,e.add=d,e[ko]=v,e.use=l,e.trk=E,e),f}var Ku,Wu,wS=w(()=>{"use strict";_();ge();tS();Ge();Ku="[[ai_",Wu="]]"});function KI(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return we(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function WI(r,e,t){var n,i=Bu(e);if(i)return i;var o=Wr("dyncfg",!0),a=e&&t!==!1?e:wd(e),s;function u(){s[ko]()}function f(P,T,I){try{P=zu(s,P,T,I)}catch(O){gs(r,T,"Setting value",O)}return P[T]}function l(P){return KI(s,P)}function v(P,T){s.use(null,function(I){var O=s.upd;try{Te(T)||(s.upd=T),P(I)}finally{s.upd=O}})}function d(P,T){var I;return Zc(s,P,T,(I={},I[0]=!0,I))[T]}function E(P,T){var I;return Zc(s,P,T,(I={},I[1]=!0,I))[T]}function m(P,T){var I;return Zc(s,P,T,(I={},I[2]=!0,I))[T]}function h(P,T){return T&&ae(T,function(I,O){ku(g,P,I,O)}),P}var g=(n={uid:null,cfg:a},n[Ve]=r,n[ko]=u,n.set=f,n[un]=h,n[fn]=l,n.ref=d,n[Go]=E,n[Mi]=m,n._block=v,n);return we(g,"uid",{c:!1,e:!1,w:!1,v:o}),s=YS(g),ju(s,a,"config","Creating"),g}function qI(r,e){r?(r[is](e),r[ni](2,108,e)):Xc(e)}function Qe(r,e,t,n){var i=WI(t,r||{},n);return e&&i[un](i.cfg,e),i}function Fr(r,e,t){var n=r[Yn]||r;return n.cfg&&(n.cfg===r||n.cfg[Yn]===n)?n[fn](e):(qI(t,dS+te(r)),Qe(r,null,t)[fn](e))}var eo=w(()=>{"use strict";_();ge();Ss();hr();Ge();Yd();OS();wS();Jc()});function vi(r,e){if(r&&r[Dt])return r[Dt](e)}function el(r,e,t){var n;return t||(n=Wt(function(i){t=i})),r&&rs(r)>0?Lt(vi(r[0],e),function(){el(es(r,1),e,t)}):t(),n}var Fd=w(()=>{"use strict";_();qo();ge();Ge()});var LS,Ud,Md=w(()=>{"use strict";_();LS=500,Ud="Microsoft_ApplicationInsights_BypassAjaxInstrumentation"});function $I(r,e,t){return!r&&B(r)?e:Dn(r)?r:vr(r)[ht]()==="true"}function Hd(r){return{mrg:!0,v:r}}function Ns(r,e,t){return{fb:t,isVal:r,v:e}}function Xt(r,e){return{fb:e,set:$I,v:!!r}}var Gd=w(()=>{"use strict";_();ge();Ge()});function XI(r,e){return function(){var t=arguments,n=Bd(e);if(n){var i=n.listener;i&&i[r]&&i[r][Hi](i,t)}}}function JI(){var r=le("Microsoft");return r&&(tl=r.ApplicationInsights),tl}function Bd(r){var e=tl;return!e&&r.disableDbgExt!==!0&&(e=tl||JI()),e?e.ChromeDbgExt:null}function FS(r){if(!rl){rl={};for(var e=0;e<kd[$];e++)rl[kd[e]]=XI(kd[e],r)}return rl}var kd,tl,rl,Vd=w(()=>{"use strict";_();ge();Ge();hr();kd=[_s,qi,vs,Rn],tl=null});function US(r){return r?'"'+r[ln](/\"/g,me)+'"':me}function jd(r,e){var t=Yu();if(t){var n="log";t[r]&&(n=r),se(t[n])&&t[n](e)}}function di(r,e){return(r||{})[Ve]||new ro(e)}function zd(r){return r||new ro}function G(r,e,t,n,i,o){o===void 0&&(o=!1),zd(r)[ni](e,t,n,i,o)}function lt(r,e){zd(r)[is](e)}function Kd(r,e,t){zd(r)[od](e,t)}var hs,MS,QI,ZI,ex,rx,tx,ea,ro,pn=w(()=>{"use strict";_();wr();ge();eo();Ge();Vd();Qi();hr();MS="warnToConsole",QI="AI (Internal): ",ZI="AI: ",ex="AITR_",rx={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},tx=(hs={},hs[0]=null,hs[1]="errorToConsole",hs[2]=MS,hs[3]="debugToConsole",hs);ea=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[us]=e,o[An]=(n?ZI:QI)+e;var a=me;On()&&(a=Kr().stringify(i));var s=(t?" message:"+US(t):me)+(i?" props:"+US(a):me);o[An]+=s}return r.dataType="MessageData",r})();ro=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,s,u;Ae(r,this,function(f){u=v(e||{}),f.consoleLoggingLevel=function(){return i},f[ni]=function(m,h,g,P,T){T===void 0&&(T=!1);var I=new ea(h,g,T,P);if(s)throw te(I);var O=tx[m]||MS;if(Te(I[An]))E("throw"+(m===1?"Critical":"Warning"),I);else{if(T){var F=+I[us];!n[F]&&i>=m&&(f[O](I[An]),n[F]=!0)}else i>=m&&f[O](I[An]);l(m,I)}},f.debugToConsole=function(m){jd("debug",m),E("warning",m)},f[is]=function(m){jd("warn",m),E("warning",m)},f.errorToConsole=function(m){jd("error",m),E("error",m)},f.resetInternalMessageCount=function(){t=0,n={}},f[od]=l,f[Dt]=function(m){u&&u.rm(),u=null};function l(m,h){if(!d()){var g=!0,P=ex+h[us];if(n[P]?g=!1:n[P]=!0,g&&(m<=o&&(f.queue[ye](h),t++,E(m===1?"error":"warn",h)),t===a)){var T="Internal events throttle limit per PageView reached for this app.",I=new ea(23,T,!1);f.queue[ye](I),m===1?f.errorToConsole(T):f[is](T)}}}function v(m){return Fr(Qe(m,rx,f).cfg,function(h){var g=h.cfg;i=g[bc],o=g.loggingLevelTelemetry,a=g.maxMessageLimit,s=g.enableDebug})}function d(){return t>=a}function E(m,h){var g=Bd(e||{});g&&g[It]&&g[It](m,h)}})}return r.__ieDyn=1,r})()});function Qd(){!wn&&(wn=Ov(function(){return gr()}))}function ix(r,e){var t=pi[to]||ol[to];return t||(t=pi[to]=pi(r,e),ol[to]=t),t}function il(r){return r?r.isEnabled():!0}function qS(r,e){return e&&r&&Q(r.ignoreCookies)?Fe(r.ignoreCookies,e)!==-1:!1}function ox(r,e){return e&&r&&Q(r.blockedCookies)&&Fe(r.blockedCookies,e)!==-1?!0:qS(r,e)}function jS(r,e){var t=e[Bi];if(B(t)){var n=void 0;Te(r[kS])||(n=!r[kS]),Te(r[Xd])||(n=!r[Xd]),t=n}return t}function Zd(r,e){var t;if(r)t=r.getCookieMgr();else if(e){var n=e.cookieCfg;n&&n[to]?t=n[to]:t=pi(e)}return t||(t=ix(e,(r||{})[Ve])),t}function pi(r,e){var t,n,i,o,a,s,u,f,l;r=Qe(r||ol,null,e).cfg,a=Fr(r,function(d){d[un](d.cfg,nx),n=d.ref(d.cfg,"cookieCfg"),i=n[Vc]||"/",o=n[Bc],s=jS(r,n)!==!1,u=n.getCookie||ax,f=n.setCookie||WS,l=n.delCookie||WS},e);var v=(t={isEnabled:function(){var d=jS(r,n)!==!1&&s&&Ts(e),E=ol[to];return d&&E&&v!==E&&(d=il(E)),d},setEnabled:function(d){s=d!==!1,n[Bi]=d},set:function(d,E,m,h,g){var P=!1;if(il(v)&&!ox(n,d)){var T={},I=He(E||me),O=an(I,";");if(O!==-1&&(I=He(Lo(E,O)),T=$S(Pr(E,O+1))),qt(T,Bc,h||o,tn,Te),!B(m)){var F=Ji();if(Te(T[qd])){var V=ur(),W=V+m*1e3;if(W>0){var ne=new Date;ne.setTime(W),qt(T,qd,zS(ne,F?HS:GS)||zS(ne,F?HS:GS)||me,tn)}}F||qt(T,"max-age",me+m,null,Te)}var z=Zo();z&&z[Oc]==="https:"&&(qt(T,"secure",null,null,Te),$d===null&&($d=!al((Cr()||{})[yu])),$d&&qt(T,"SameSite","None",null,Te)),qt(T,Vc,g||i,null,Te),f(d,KS(I,T)),P=!0}return P},get:function(d){var E=me;return il(v)&&!qS(n,d)&&(E=u(d)),E},del:function(d,E){var m=!1;return il(v)&&(m=v.purge(d,E)),m},purge:function(d,E){var m,h=!1;if(Ts(e)){var g=(m={},m[Vc]=E||"/",m[qd]="Thu, 01 Jan 1970 00:00:01 GMT",m);Ji()||(g["max-age"]="0"),l(d,KS(me,g)),h=!0}return h}},t[Dt]=function(d){a&&a.rm(),a=null},t);return v[to]=v,v}function Ts(r){if(nl===null){nl=!1,!wn&&Qd();try{var e=wn.v||{};nl=e[Jd]!==void 0}catch(t){G(r,2,68,"Cannot access document.cookie - "+ir(t),{exception:te(t)})}}return nl}function $S(r){var e={};if(r&&r[$]){var t=He(r)[Kt](";");b(t,function(n){if(n=He(n||me),n){var i=an(n,"=");i===-1?e[n]=null:e[He(Lo(n,i))]=He(Pr(n,i+1))}})}return e}function zS(r,e){return se(r[e])?r[e]():null}function KS(r,e){var t=r||me;return ae(e,function(n,i){t+="; "+n+(B(i)?me:"="+i)}),t}function ax(r){var e=me;if(!wn&&Qd(),wn.v){var t=wn.v[Jd]||me;BS!==t&&(VS=$S(t),BS=t),e=He(VS[r]||me)}return e}function WS(r,e){!wn&&Qd(),wn.v&&(wn.v[Jd]=r+"="+e)}function al(r){return he(r)?!!(pr(r,"CPU iPhone OS 12")||pr(r,"iPad; CPU OS 12")||pr(r,"Macintosh; Intel Mac OS X 10_14")&&pr(r,"Version/")&&pr(r,"Safari")||pr(r,"Macintosh; Intel Mac OS X 10_14")&&Mo(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||pr(r,"Chrome/5")||pr(r,"Chrome/6")||pr(r,"UnrealEngine")&&!pr(r,"Chrome")||pr(r,"UCBrowser/12")||pr(r,"UCBrowser/11")):!1}var Wd,ra,HS,GS,Jd,qd,kS,Xd,to,nl,$d,BS,wn,VS,ol,nx,ep=w(()=>{"use strict";_();ge();Gd();eo();Ge();pn();Qi();bn();hr();HS="toGMTString",GS="toUTCString",Jd="cookie",qd="expires",kS="isCookieUseDisabled",Xd="disableCookiesUsage",to="_ckMgr",nl=null,$d=null,BS=null,VS={},ol={},nx=(Wd={cookieCfg:Hd((ra={},ra[Bc]={fb:"cookieDomain",dfVal:$i},ra.path={fb:"cookiePath",dfVal:$i},ra.enabled=Ft,ra.ignoreCookies=Ft,ra.blockedCookies=Ft,ra)),cookieDomain:Ft,cookiePath:Ft},Wd[Xd]=Ft,Wd)});function ux(r){r.h=null;var e=r.cb;r.cb=[],b(e,function(t){Ee(t.fn,[t.arg])})}function no(r,e,t,n){b(r,function(i){i&&i[e]&&(t?(t.cb[ye]({fn:n,arg:i}),t.h=t.h||bt(ux,0,t)):Ee(n,[i]))})}var sx,qu,rp=w(()=>{"use strict";_();wr();qo();ge();eo();Ge();hr();sx={perfEvtsSendAll:!1};qu=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=Qe(e,sx);n=a[fn](function(s){t=!!s.cfg.perfEvtsSendAll}),Ae(r,this,function(s){we(s,"listeners",{g:function(){return i}}),s[as]=function(u){i[ye](u)},s[os]=function(u){for(var f=Fe(i,u);f>-1;)i[yn](f,1),f=Fe(i,u)},s[_s]=function(u){no(i,_s,o,function(f){f[_s](u)})},s[qi]=function(u,f){no(i,qi,o,function(l){l[qi](u,f)})},s[vs]=function(u,f){no(i,vs,f?o:null,function(l){l[vs](u,f)})},s[Rn]=function(u){u&&(t||!u[Cu]())&&no(i,Rn,null,function(f){u[cn]?bt(function(){return f[Rn](u)},0):f[Rn](u)})},s[Hc]=function(u){u&&u[$]&&no(i,Hc,o,function(f){f[Hc](u)})},s[Gc]=function(u){u&&u[zi]&&no(i,Gc,o,function(f){f[Gc](u)})},s[kc]=function(u,f){if(u>0){var l=f||0;no(i,kc,o,function(v){v[kc](u,l)})}},s[Dt]=function(u){var f=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[ii](),o.h=null,o.cb=[]},l;if(no(i,"unload",null,function(v){var d=v[Dt](u);d&&(l||(l=[]),l[ye](d))}),l)return Wt(function(v){return Lt(vS(l),function(){f(),v()})});f()}})}return r.__ieDyn=1,r})()});function cr(r,e,t,n,i){if(r){var o=r;if(o[ds]&&(o=o[ds]()),o){var a=void 0,s=o[Ko](tp);try{if(a=o.create(e(),n,i),a){if(s&&a[_n]&&(a[_n](ta[np],s),s[Ko]&&s[_n])){var u=s[Ko](ta[$u]);u||(u=[],s[_n](ta[$u],u)),u[ye](a)}return o[_n](tp,a),t(a)}}catch(f){a&&a[_n]&&a[_n]("exception",f)}finally{a&&o.fire(a),o[_n](tp,s)}}}return t()}function ip(){return fx}var Ds,np,$u,fx,ta,Xu,tp,sl=w(()=>{"use strict";_();wr();ge();Ge();hr();Ds="ctx",np="ParentContextKey",$u="ChildrenContextKey",fx=null,ta=(function(){function r(e,t,n){var i=this;if(i.start=ur(),i[Lr]=e,i[cn]=n,i[Cu]=function(){return!1},se(t)){var o;we(i,"payload",{g:function(){return!o&&se(t)&&(o=t(),t=null),o}})}i[Ko]=function(a){return a?a===r[np]||a===r[$u]?i[a]:(i[Ds]||{})[a]:null},i[_n]=function(a,s){if(a)if(a===r[np])i[a]||(i[Cu]=function(){return!0}),i[a]=s;else if(a===r[$u])i[a]=s;else{var u=i[Ds]=i[Ds]||{};u[a]=s}},i[wc]=function(){var a=0,s=i[Ko](r[$u]);if(Q(s))for(var u=0;u<s[$];u++){var f=s[u];f&&(a+=f[ki])}i[ki]=ur()-i.start,i.exTime=i[ki]-a,i[wc]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),Xu=(function(){function r(e){this.ctx={},Ae(r,this,function(t){t.create=function(n,i,o){return new ta(n,i,o)},t.fire=function(n){n&&(n[wc](),e&&se(e[Rn])&&e[Rn](n))},t[_n]=function(n,i){if(n){var o=t[Ds]=t[Ds]||{};o[n]=i}},t[Ko]=function(n){return(t[Ds]||{})[n]}})}return r.__ieDyn=1,r})(),tp="CoreUtils.doPerf"});function Ju(){var r=na();return Pr(r,0,8)+"-"+Pr(r,8,12)+"-"+Pr(r,12,16)+"-"+Pr(r,16,20)+"-"+Pr(r,20)}function na(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=me,t,n=0;n<4;n++)t=_i(),e+=r[t&15]+r[t>>4&15]+r[t>>8&15]+r[t>>12&15]+r[t>>16&15]+r[t>>20&15]+r[t>>24&15]+r[t>>28&15];var i=r[8+(_i()&3)|0];return xn(e,0,8)+xn(e,9,4)+"4"+xn(e,13,3)+i+xn(e,16,3)+xn(e,19,12)}var op=w(()=>{"use strict";_();ge();hr();Kc()});function mi(r,e,t){return r&&r[$]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function JS(r,e,t){return mi(r,e)?r:t}function QS(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r.toString(16);e[$]<2;)e="0"+e;return e}function up(r,e,t,n){var i;return i={},i[Vo]=mi(n,2,sp)?n:ap,i[cs]=ia(r)?r:na(),i[ls]=oa(e)?e:Lo(na(),16),i.traceFlags=t>=0&&t<=255?t:1,i}function Qu(r,e){var t;if(!r||(Q(r)&&(r=r[0]||""),!r||!he(r)||r[$]>8192))return null;if(r.indexOf(",")!==-1){var n=r[Kt](",");r=n[e>0&&n[$]>e?e:0]}var i=cx.exec(He(r));return!i||i[1]===sp||i[2]===ul||i[3]===fl?null:(t={version:(i[1]||me)[ht](),traceId:(i[2]||me)[ht](),spanId:(i[3]||me)[ht]()},t[Ki]=parseInt(i[4],16),t)}function ia(r){return mi(r,32,ul)}function oa(r){return mi(r,16,fl)}function cl(r){return!(!r||!mi(r[Vo],2,sp)||!mi(r[cs],32,ul)||!mi(r[ls],16,fl)||!mi(QS(r[Ki]),2))}function fp(r){return cl(r)?(r[Ki]&XS)===XS:!1}function cp(r){if(r){var e=QS(r[Ki]);mi(e,2)||(e="01");var t=r[Vo]||ap;return t!=="00"&&t!=="ff"&&(t=ap),"".concat(t.toLowerCase(),"-").concat(JS(r.traceId,32,ul).toLowerCase(),"-").concat(JS(r.spanId,16,fl).toLowerCase(),"-").concat(e.toLowerCase())}return""}function lp(r){var e="traceparent",t=Qu(Ad(e),r);return t||(t=Qu(Rd(e),r)),t}var cx,ap,sp,ul,fl,XS,_p=w(()=>{"use strict";_();ge();Ge();op();Qi();hr();cx=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,ap="00",sp="ff",ul="00000000000000000000000000000000",fl="0000000000000000",XS=1});function Ei(r){return lx.get(r,"state",{},!0)}function vp(r,e){for(var t=[],n=null,i=r[wt](),o;i;){var a=i[Gi]();if(a){n&&n[ji]&&a[yt]&&n[ji](a),o=Ei(a);var s=!!o[Tt];a[Tt]&&(s=a[Tt]()),s||t[ye](a),n=a,i=i[wt]()}}b(t,function(u){var f=r[nr]();u[oi](r.getCfg(),f,e,r[wt]()),o=Ei(u),!u[nr]&&!o[nr]&&(o[nr]=f),o[Tt]=!0,delete o[Yt]})}function ll(r){return r.sort(function(e,t){var n=0;if(t){var i=t[yt];e[yt]?n=i?e[Xo]-t[Xo]:1:i&&(n=-1)}else n=e?1:-1;return n})}function ZS(r){var e={};return{getName:function(){return e[Lr]},setName:function(t){r&&r.setName(t),e[Lr]=t},getTraceId:function(){return e[cs]},setTraceId:function(t){r&&r.setTraceId(t),ia(t)&&(e[cs]=t)},getSpanId:function(){return e[ls]},setSpanId:function(t){r&&r.setSpanId(t),oa(t)&&(e[ls]=t)},getTraceFlags:function(){return e[Ki]},setTraceFlags:function(t){r&&r.setTraceFlags(t),e[Ki]=t}}}var lx,dp=w(()=>{"use strict";_();ge();Ge();Ss();hr();_p();lx=Wc("plugin")});function vx(r,e,t){for(;r;){if(r[Gi]()===t)return r;r=r[wt]()}return io([t],e.config||{},e)}function pp(r,e,t,n){var i=null,o=[];e||(e=Qe({},null,t[Ve])),n!==null&&(i=n?vx(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return di(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:l,getConfig:v,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(E){i=E},iterate:d,onComplete:s}};function s(E,m){for(var h=[],g=2;g<arguments.length;g++)h[g-2]=arguments[g];E&&o[ye]({func:E,self:Te(m)?a.ctx:m,args:h})}function u(){var E=i;if(i=E?E[wt]():null,!E){var m=o;m&&m[$]>0&&(b(m,function(h){try{h.func.call(h.self,h.args)}catch(g){G(t[Ve],2,73,"Unexpected Exception during onComplete - "+te(g))}}),o=[])}return E}function f(E,m){var h=null,g=e.cfg;if(g&&E){var P=g[ai];!P&&m&&(P={}),g[ai]=P,P=e.ref(g,ai),P&&(h=P[E],!h&&m&&(h={}),P[E]=h,h=e.ref(P,E))}return h}function l(E,m){var h=f(E,!0);return m&&ae(m,function(g,P){if(B(h[g])){var T=e.cfg[g];(T||!B(T))&&(h[g]=T)}ku(e,h,g,P)}),e[un](h,m)}function v(E,m,h){h===void 0&&(h=!1);var g,P=f(E,!1),T=e.cfg;return P&&(P[m]||!B(P[m]))?g=P[m]:(T[m]||!B(T[m]))&&(g=T[m]),g||!B(g)?g:h}function d(E){for(var m;m=a._next();){var h=m[Gi]();h&&E(h)}}return a}function _t(r,e,t,n){var i=Qe(e),o=pp(r,i,t,n),a=o.ctx;function s(f){var l=o._next();return l&&l[yt](f,a),!l}function u(f,l){return f===void 0&&(f=null),Q(f)&&(f=io(f,i.cfg,t,l)),_t(f||a[wt](),i.cfg,t,l)}return a[Ar]=s,a[Cn]=u,a}function Is(r,e,t){var n=Qe(e.config),i=pp(r,n,e,t),o=i.ctx;function a(u){var f=i._next();return f&&f[Dt](o,u),!f}function s(u,f){return u===void 0&&(u=null),Q(u)&&(u=io(u,n.cfg,e,f)),Is(u||o[wt](),e,f)}return o[Ar]=a,o[Cn]=s,o}function Zu(r,e,t){var n=Qe(e.config),i=pp(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(f){se(f[jo])&&f[jo](o,u)})}function s(u,f){return u===void 0&&(u=null),Q(u)&&(u=io(u,n.cfg,e,f)),Zu(u||o[wt](),e,f)}return o[Ar]=a,o[Cn]=s,o}function io(r,e,t,n){var i=null,o=!n;if(Q(r)&&r[$]>0){var a=null;b(r,function(s){if(!o&&n===s&&(o=!0),o&&s&&se(s[yt])){var u=dx(s,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?io([n],e,t):i}function dx(r,e,t){var n=null,i=se(r[yt]),o=se(r[ji]),a;r?a=r[Pn]+"-"+r[Xo]+"-"+tg++:a="Unknown-0-"+tg++;var s={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:l,unload:v,update:d,_id:a,_setNext:function(E){n=E}};function u(){var E;return r&&se(r[rg])&&(E=r[rg]()),E||(E=_t(s,e,t)),E}function f(E,m,h,g,P){var T=!1,I=r?r[Pn]:_x,O=E[eg];return O||(O=E[eg]={}),E.setNext(n),r&&cr(E[nr](),function(){return I+":"+h},function(){O[a]=!0;try{var F=n?n._id:me;F&&(O[F]=!1),T=m(E)}catch(W){var V=n?O[n._id]:!0;V&&(T=!0),(!n||!V)&&G(E[It](),1,73,"Plugin ["+I+"] failed during "+h+" - "+te(W)+", run flags: "+te(O))}},g,P),T}function l(E,m){m=m||u();function h(g){if(!r||!i)return!1;var P=Ei(r);return P[Yt]||P[bu]?!1:(o&&r[ji](n),r[yt](E,g),!0)}f(m,h,"processTelemetry",function(){return{item:E}},!E.sync)||m[Ar](E)}function v(E,m){function h(){var g=!1;if(r){var P=Ei(r),T=r[nr]||P[nr];r&&(!T||T===E.core())&&!P[Yt]&&(P[nr]=null,P[Yt]=!0,P[Tt]=!1,r[Yt]&&r[Yt](E,m)===!0&&(g=!0))}return g}f(E,h,"unload",function(){},m[cn])||E[Ar](m)}function d(E,m){function h(){var g=!1;if(r){var P=Ei(r),T=r[nr]||P[nr];r&&(!T||T===E.core())&&!P[Yt]&&r[jo]&&r[jo](E,m)===!0&&(g=!0)}return g}f(E,h,"update",function(){},!1)||E[Ar](m)}return jt(s)}var _x,eg,rg,tg,mp,_l=w(()=>{"use strict";_();ge();Yd();eo();Ge();pn();bn();hr();sl();dp();_x="TelemetryPluginChain",eg="_hasRun",rg="_getTelCtx",tg=0;mp=(function(){function r(e,t,n,i){var o=this,a=_t(e,t,n,i);Ut(o,a,jr(a))}return r})()});function aa(){var r=[];function e(n){n&&r[ye](n)}function t(n,i){b(r,function(o){try{o(n,i)}catch(a){G(n[It](),2,73,"Unexpected error calling unload handler - "+te(a))}}),r=[]}return{add:e,run:t}}var vl=w(()=>{"use strict";_();ge();Ge();pn()});function Ep(r,e){ef=r,rf=e}function tf(){var r=[];function e(n){var i=r;r=[],b(i,function(o){try{(o.rm||o.remove).call(o)}catch(a){G(n,2,73,"Unloading:"+te(a))}}),ef&&i[$]>ef&&(rf?rf("doUnload",i):G(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(n){n&&(on(r,n),ef&&r[$]>ef&&(rf?rf("Add",r):G(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:e,add:t}}var ef,rf,dl=w(()=>{"use strict";_();ge();Ge();pn()});var Sp,oo,px,Si,gp=w(()=>{"use strict";_();wr();ge();eo();Ge();pn();bn();hr();_l();vl();dl();oo="getPlugin",px=(Sp={},Sp[ai]={isVal:$i,v:{}},Sp),Si=(function(){function r(){var e=this,t,n,i,o,a;f(),Ae(r,e,function(l){l[oi]=function(v,d,E,m){u(v,d,m),t=!0},l[Yt]=function(v,d){var E,m=l[nr];if(!m||v&&m!==v[nr]())return;var h,g=!1,P=v||Is(null,m,i&&i[oo]?i[oo]():i),T=d||(E={reason:0},E[cn]=!1,E);function I(){g||(g=!0,o.run(P,d),a.run(P[It]()),h===!0&&P[Ar](T),f())}return!l[Vi]||l[Vi](P,T,I)!==!0?I():h=!0,h},l[jo]=function(v,d){var E=l[nr];if(!E||v&&E!==v[nr]())return;var m,h=!1,g=v||Zu(null,E,i&&i[oo]?i[oo]():i),P=d||{reason:0};function T(){h||(h=!0,u(g.getCfg(),g.core(),g[wt]()))}return!l._doUpdate||l._doUpdate(g,P,T)!==!0?T():m=!0,m},si(l,"_addUnloadCb",function(){return o},"add"),si(l,"_addHook",function(){return a},"add"),we(l,"_unloadHooks",{g:function(){return a}})}),e[It]=function(l){return s(l)[It]()},e[Tt]=function(){return t},e.setInitialized=function(l){t=l},e[ji]=function(l){i=l},e[Ar]=function(l,v){v?v[Ar](l):i&&se(i[yt])&&i[yt](l,null)},e._getTelCtx=s;function s(l){l===void 0&&(l=null);var v=l;if(!v){var d=n||_t(null,{},e[nr]);i&&i[oo]?v=d[Cn](null,i[oo]):v=d[Cn](null,i)}return v}function u(l,v,d){Qe(l,px,di(v)),!d&&v&&(d=v[Rc]()[wt]());var E=i;i&&i[oo]&&(E=i[oo]()),e[nr]=v,n=_t(d,l,v,E)}function f(){t=!1,e[nr]=null,n=null,i=null,a=tf(),o=aa()}}return r.__ieDyn=1,r})()});function mx(r,e,t){var n={id:e,fn:t};on(r,n);var i={remove:function(){b(r,function(o,a){if(o.id===n.id)return r[yn](a,1),-1})}};return i}function Ex(r,e,t){for(var n=!1,i=r[$],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[Hi](null,[e])===!1){n=!0;break}}catch(s){G(t,2,64,"Telemetry initializer failed: "+ir(s),{exception:te(s)},!0)}}return!n}var ng,ig=w(()=>{"use strict";_();Nt();wr();ge();Ge();gp();pn();bn();hr();ng=(function(r){gt(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),Ae(e,t,function(a,s){a.addTelemetryInitializer=function(u){return mx(i,n++,u)},a[yt]=function(u,f){Ex(i,u,f?f[It]():a[It]())&&a[Ar](u,f)},a[Vi]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(Si)});function Tx(r,e){return new Xu(e)}function Dx(r,e,t){var n,i=[],o=[],a={};return b(t,function(s){(B(s)||B(s[oi]))&&Sr(ug);var u=s[Xo],f=s[Pn];s&&u&&(B(a[u])?a[u]=f:lt(r,"Two extensions have same priority #"+u+" - "+a[u]+", "+f)),!u||u<e?i[ye](s):o[ye](s)}),n={},n[nr]=i,n[Wi]=o,n}function ag(r,e){var t=!1;return b(e,function(n){if(n===r)return t=!0,-1}),t}function hp(r,e,t,n){t&&ae(t,function(i,o){n&&zr(o)&&zr(e[i])&&hp(r,e[i],o,n),n&&zr(o)&&zr(e[i])?hp(r,e[i],o,n):r.set(e,i,o)})}function sg(r,e){var t=null,n=-1;return b(r,function(i,o){if(i.w===e)return t=i,n=o,-1}),{i:n,l:t}}function Ix(r,e){var t=sg(r,e).l;return t||(t={w:e,rm:function(){var n=sg(r,e);n.i!==-1&&r[yn](n.i,1)}},r[ye](t)),t}function xx(r,e,t){b(e,function(n){var i=Fr(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function yx(r,e,t,n){return e.add(r[fn](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[os](n),n=null),t&&!n&&o!==!0&&(n=FS(i.cfg),t[as](n))})),n}function Px(r){return we({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var ao,ug,Sx,og,gx,Nx,hx,Np,gi,fg=w(()=>{"use strict";_();Nt();wr();qo();ge();eo();rd();Ge();Fd();Md();ep();Ss();Vd();pn();bn();hr();rp();sl();_l();dp();ig();vl();dl();ug="Plugins must provide initialize method",Sx="_notificationManager",og="SDK is still unloading...",gx="SDK is not initialized",Nx=100,hx=5e4,Np=In((ao={cookieCfg:{}},ao[$o]={rdOnly:!0,ref:!0,v:[]},ao[Wi]={rdOnly:!0,ref:!0,v:[]},ao[ai]={ref:!0,v:{}},ao[Mc]=Ft,ao.loggingLevelConsole=0,ao.diagnosticLogInterval=Ft,ao));gi=(function(){function r(){var e,t,n,i,o,a,s,u,f,l,v,d,E,m,h,g,P,T,I,O,F,V,W,ne,z,k,Z,ce,Ne,M,H,ve,ue;Ae(r,this,function(x){A(),x._getDbgPlgTargets=function(){return[W,i]},x[Tt]=function(){return t},x.activeStatus=function(){return k},x._setPendingStatus=function(){k=3},x[oi]=function(C,K,ie,X){E&&Sr(og),x[Tt]()&&Sr("Core cannot be initialized more than once"),e=Qe(C,Np,ie||x[Ve],!1),C=e.cfg,je(e[fn](function(Re){var Me=Re.cfg,Je=k===3;if(!Je){ce=Me.initInMemoMaxSize||Nx;var or=Me[td],Jr=Me.endpointUrl;if(B(or)){F=null,k=Ot[Ac];var Qr="Please provide instrumentation key";t?(G(n,1,100,Qr),re()):Sr(Qr);return}var Bt=[];if(ft(or)?(Bt[ye](or),F=null):F=or,ft(Jr)?(Bt[ye](Jr),Z=null):Z=Jr,Bt[$]){Ne=!1,k=3;var Or=$i(Me.initTimeOut)?Me.initTimeOut:hx,Jn=_S(Bt);M=bt(function(){M=null,Ne||de()},Or),Lt(Jn,function(Y){try{if(Ne)return;if(!Y.rejected){var U=Y[Bo];if(U&&U[$]){var J=U[0];if(F=J&&J[Bo],U[$]>1){var _e=U[1];Z=_e&&_e[Bo]}}F&&(C[td]=F,C.endpointUrl=Z)}de()}catch{Ne||de()}})}else de();var S=Re.ref(Re.cfg,ai);ae(S,function(Y){Re.ref(S,Y)})}})),o=X,I=yx(e,T,o&&x[Iu](),I),ut(),x[Ve]=ie;var oe=C[$o];if(l=[],l[ye].apply(l,Sc(Sc([],K,!1),oe,!1)),v=C[Wi],Ke(null),(!d||d[$]===0)&&Sr("No "+Wi+" available"),v&&v[$]>1){var Oe=x[Gi]("TeeChannelController");(!Oe||!Oe.plugin)&&G(n,1,28,"TeeChannel required")}xx(C,V,n),V=null,t=!0,k===Ot.ACTIVE&&re()},x.getChannels=function(){var C=[];return d&&b(d,function(K){C[ye](K)}),jt(C)},x.track=function(C){cr(x[ds](),function(){return"AppInsightsCore:track"},function(){C===null&&(Xe(C),Sr("Invalid telemetry item")),!C[Lr]&&B(C[Lr])&&(Xe(C),Sr("telemetry name required")),C[ss]=C[ss]||F,C[ki]=C[ki]||vn(new Date),C.ver=C.ver||"4.0",!E&&x[Tt]()&&k===Ot.ACTIVE?Ye()[Ar](C):k!==Ot[Ac]&&i[$]<=ce&&i[ye](C)},function(){return{item:C}},!C.sync)},x[Rc]=Ye,x[Iu]=function(){return o||(o=new qu(e.cfg),x[Sx]=o),o},x[as]=function(C){x.getNotifyMgr()[as](C)},x[os]=function(C){o&&o[os](C)},x.getCookieMgr=function(){return u||(u=pi(e.cfg,x[Ve])),u},x.setCookieMgr=function(C){u!==C&&(vi(u,!1),u=C)},x[ds]=function(){return a||s||ip()},x.setPerfMgr=function(C){a=C},x.eventCnt=function(){return i[$]},x.releaseQueue=function(){if(t&&i[$]>0){var C=i;i=[],k===2?b(C,function(K){K[ss]=K[ss]||F,Ye()[Ar](K)}):G(n,2,20,"core init status is not active")}},x[nd]=function(C){return h=C||null,ue=!1,H&&H[ii](),Ie(!0)};function de(){Ne=!0,B(F)?(k=Ot[Ac],G(n,1,112,"ikey can't be resolved from promises")):k=Ot.ACTIVE,re()}function re(){t&&(x.releaseQueue(),x[nd]())}function Ie(C){if((!H||!H[Bi])&&!ue){var K=C||n&&n.queue[$]>0;K&&(ve||(ve=!0,je(e[fn](function(ie){var X=ie.cfg.diagnosticLogInterval;(!X||!(X>0))&&(X=1e4);var oe=!1;H&&(oe=H[Bi],H[ii]()),H=jE(Hr,X),H.unref(),H[Bi]=oe}))),H[Bi]=!0)}return H}x[id]=function(){ue=!0,H&&H[ii](),Hr()},Ut(x,function(){return m},["addTelemetryInitializer"]),x[Dt]=function(C,K,ie){var X;C===void 0&&(C=!0),t||Sr(gx),E&&Sr(og);var oe=(X={reason:50},X[cn]=C,X.flushComplete=!1,X),Oe;C&&!K&&(Oe=Wt(function(Je){K=Je}));var Re=Is(_r(),x);Re[xu](function(){T.run(x[Ve]),el([u,o,n],C,function(){A(),K&&K(oe)})},x);function Me(Je){oe.flushComplete=Je,E=!0,P.run(Re,oe),x[id](),Re[Ar](oe)}return Hr(),xr(C,Me,6,ie)||Me(!1),Oe},x[Gi]=st,x.addPlugin=function(C,K,ie,X){if(!C){X&&X(!1),Le(ug);return}var oe=st(C[Pn]);if(oe&&!K){X&&X(!1),Le("Plugin ["+C[Pn]+"] is already loaded!");return}var Oe={reason:16};function Re(or){l[ye](C),Oe.added=[C],Ke(Oe),X&&X(!0)}if(oe){var Me=[oe.plugin],Je={reason:2,isAsync:!!ie};kt(Me,Je,function(or){or?(Oe.removed=Me,Oe.reason|=32,Re(!0)):X&&X(!1)})}else Re(!1)},x.updateCfg=function(C,K){K===void 0&&(K=!0);var ie;if(x[Tt]()){ie={reason:1,cfg:e.cfg,oldCfg:Hv({},e.cfg),newConfig:Hv({},C),merge:K},C=ie.newConfig;var X=e.cfg;C[$o]=X[$o],C[Wi]=X[Wi]}e._block(function(oe){var Oe=oe.cfg;hp(oe,Oe,C,K),K||ae(Oe,function(Re){Vt(C,Re)||oe.set(Oe,Re,Ft)}),oe[un](Oe,Np)},!0),e[ko](),ie&&ke(ie)},x.evtNamespace=function(){return g},x.flush=xr,x.getTraceCtx=function(C){return O||(O=ZS()),O},x.setTraceCtx=function(C){O=C||null},x.addUnloadHook=je,si(x,"addUnloadCb",function(){return P},"add"),x.onCfgChange=function(C){var K;return t?K=Fr(e.cfg,C,x[Ve]):K=Ix(V,C),Px(K)},x.getWParam=function(){return Fo()||e.cfg.enableWParam?0:-1};function q(){var C={};ne=[];var K=function(ie){ie&&b(ie,function(X){if(X[Pn]&&X[Vo]&&!C[X.identifier]){var oe=X[Pn]+"="+X[Vo];ne[ye](oe),C[X.identifier]=X}})};K(d),v&&b(v,function(ie){K(ie)}),K(l)}function A(){t=!1,e=Qe({},Np,x[Ve]),e.cfg[bc]=1,we(x,"config",{g:function(){return e.cfg},s:function(K){x.updateCfg(K,!1)}}),we(x,"pluginVersionStringArr",{g:function(){return ne||q(),ne}}),we(x,"pluginVersionString",{g:function(){return z||(ne||q(),z=ne.join(";")),z||me}}),we(x,"logger",{g:function(){return n||(n=new ro(e.cfg),e[Ve]=n),n},s:function(K){e[Ve]=K,n!==K&&(vi(n,!1),n=K)}}),x[Ve]=new ro(e.cfg),W=[];var C=x.config[$o]||[];C.splice(0,C[$]),on(C,W),m=new ng,i=[],vi(o,!1),o=null,a=null,s=null,vi(u,!1),u=null,f=null,l=[],v=null,d=null,E=!1,h=null,g=Wr("AIBaseCore",!0),P=aa(),O=null,F=null,T=tf(),V=[],z=null,ne=null,ue=!1,H=null,ve=!1,k=0,Z=null,ce=null,Ne=!1,M=null}function Ye(){var C=_t(_r(),e.cfg,x);return C[xu](Ie),C}function Ke(C){var K=Dx(x[Ve],LS,l);f=null,z=null,ne=null,d=(v||[])[0]||[],d=ll(on(d,K[Wi]));var ie=on(ll(K[nr]),d);W=jt(ie);var X=x.config[$o]||[];X.splice(0,X[$]),on(X,W);var oe=Ye();d&&d[$]>0&&vp(oe[Cn](d),ie),vp(oe,ie),C&&ke(C)}function st(C){var K=null,ie=null,X=[];return b(W,function(oe){if(oe[Pn]===C&&oe!==m)return ie=oe,-1;oe.getChannel&&X[ye](oe)}),!ie&&X[$]>0&&b(X,function(oe){if(ie=oe.getChannel(C),!ie)return-1}),ie&&(K={plugin:ie,setEnabled:function(oe){Ei(ie)[bu]=!oe},isEnabled:function(){var oe=Ei(ie);return!oe[Yt]&&!oe[bu]},remove:function(oe,Oe){var Re;oe===void 0&&(oe=!0);var Me=[ie],Je=(Re={reason:1},Re[cn]=oe,Re);kt(Me,Je,function(or){or&&Ke({reason:32,removed:Me}),Oe&&Oe(or)})}}),K}function _r(){if(!f){var C=(W||[]).slice();Fe(C,m)===-1&&C[ye](m),f=io(ll(C),e.cfg,x)}return f}function kt(C,K,ie){if(C&&C[$]>0){var X=io(C,e.cfg,x),oe=Is(X,x);oe[xu](function(){var Oe=!1,Re=[];b(l,function(Je,or){ag(Je,C)?Oe=!0:Re[ye](Je)}),l=Re,z=null,ne=null;var Me=[];v&&(b(v,function(Je,or){var Jr=[];b(Je,function(Qr){ag(Qr,C)?Oe=!0:Jr[ye](Qr)}),Me[ye](Jr)}),v=Me),ie&&ie(Oe),Ie()}),oe[Ar](K)}else ie(!1)}function Hr(){if(n&&n.queue){var C=n.queue.slice(0);n.queue[$]=0,b(C,function(K){var ie,X=(ie={},ie[Lr]=h||"InternalMessageId: "+K[us],ie[ss]=F,ie[ki]=vn(new Date),ie.baseType=ea.dataType,ie.baseData={message:K[An]},ie);x.track(X)})}}function xr(C,K,ie,X){var oe=1,Oe=!1,Re=null;X=X||5e3;function Me(){oe--,Oe&&oe===0&&(Re&&Re[ii](),Re=null,K&&K(Oe),K=null)}if(d&&d[$]>0){var Je=Ye()[Cn](d);Je.iterate(function(or){if(or.flush){oe++;var Jr=!1;or.flush(C,function(){Jr=!0,Me()},ie)||Jr||(C&&Re==null?Re=bt(function(){Re=null,Me()},X):Me())}})}return Oe=!0,Me(),!0}function ut(){var C;je(e[fn](function(K){var ie=K.cfg.enablePerfMgr;if(ie){var X=K.cfg[Mc];(C!==X||!C)&&(X||(X=Tx),Ou(K.cfg,Mc,X),C=X,s=null),!a&&!s&&se(X)&&(s=X(x,x[Iu]()))}else s=null,C=null}))}function ke(C){var K=Zu(_r(),x);K[xu](Ie),(!x._updateHook||x._updateHook(K,C)!==!0)&&K[Ar](C)}function Le(C){var K=x[Ve];K?(G(K,2,73,C),Ie()):Sr(C)}function Xe(C){var K=x[Iu]();K&&K[qi]([C],2)}function je(C){T.add(C)}})}return r.__ieDyn=1,r})()});function sa(r,e){try{if(r&&r!==""){var t=Kr().parse(r);if(t&&t[ud]&&t[ud]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[$])return t}}catch(n){G(e,1,43,"Cannot parse the response. "+(n[Lr]||te(n)),{response:r})}return null}var cg=w(()=>{"use strict";_();ge();Ge();pn();Qi()});var Ln,Cx,lg,Tp,ua,_g=w(()=>{"use strict";_();wr();qo();ge();Ge();Md();pn();Qi();bn();Ln="",Cx="NoResponseBody",lg="&"+Cx+"=true",Tp="POST",ua=(function(){function r(){var e=0,t,n,i,o,a,s,u,f,l,v,d,E,m,h;Ae(r,this,function(g,P){var T=!0;Ne(),g[oi]=function(M,H){i=H,n&&G(i,1,28,"Sender is already initialized"),g.SetConfig(M),n=!0},g._getDbgPlgTargets=function(){return[n,o,s,t]},g.SetConfig=function(M){try{if(a=M.senderOnCompleteCallBack||{},s=!!M.disableCredentials,u=M.fetchCredentials,o=!!M.isOneDs,t=!!M.enableSendPromise,l=!!M.disableXhr,v=!!M.disableBeacon,d=!!M.disableBeaconSync,h=M.timeWrapper,m=!!M.addNoResponse,E=!!M.disableFetchKeepAlive,f={sendPOST:k},o||(T=!1),s){var H=Zo();H&&H.protocol&&H.protocol[ht]()==="file:"&&(T=!1)}return!0}catch{}return!1},g.getSyncFetchPayload=function(){return e},g.getSenderInst=function(M,H){return M&&M[$]?V(M,H):null},g.getFallbackInst=function(){return f},g[Vi]=function(M,H){Ne()};function I(M,H){W(H,200,{},M)}function O(M,H){G(i,2,26,"Failed to send telemetry.",{message:M}),W(H,400,{})}function F(M){O("No endpoint url is provided for the batch",M)}function V(M,H){for(var ve,ue=0,x=null,de=0;x==null&&de<M[$];)ue=M[de],!l&&ue===1?Uu()?x=ce:Es()&&(x=k):ue===2&&li(H)&&(!H||!E)?x=Z:ue===3&&$t()&&(H?!d:!v)&&(x=z),de++;return x?(ve={_transport:ue,_isSync:H},ve[fd]=x,ve):null}function W(M,H,ve,ue){try{M&&M(H,ve,ue)}catch{}}function ne(M,H){var ve=Cr(),ue=M[fs];if(!ue)return F(H),!0;ue=M[fs]+(m?lg:Ln);var x=M[zi],de=o?x:new Blob([x],{type:"text/plain;charset=UTF-8"}),re=ve.sendBeacon(ue,de);return re}function z(M,H,ve){var ue=M[zi];try{if(ue)if(ne(M,H))I(Ln,H);else{var x=a&&a.beaconOnRetry;x&&se(x)?x(M,H,ne):(f&&f[fd](M,H,!0),G(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(de){o&<(i,"Failed to send telemetry using sendBeacon API. Ex:"+te(de)),W(H,o?0:400,{},Ln)}}function k(M,H,ve){var ue,x,de,re=M[Lc]||{};!ve&&t&&(ue=Wt(function(Ye,Ke){x=Ye,de=Ke})),o&&ve&&M.disableXhrSync&&(ve=!1);var Ie=M[fs];if(!Ie){F(H),x&&x(!1);return}var q=Td(Tp,Ie,T,!0,ve,M[Wo]);o||q[cd]("Content-type","application/json"),b(jr(re),function(Ye){q[cd](Ye,re[Ye])}),q.onreadystatechange=function(){o||(A(q),q.readyState===4&&x&&x(!0))},q.onload=function(){o&&A(q)};function A(Ye){var Ke=a&&a.xhrOnComplete,st=Ke&&se(Ke);if(st)Ke(Ye,H,M);else{var _r=dn(Ye);W(H,Ye[zo],ci(Ye,o),_r)}}return q.onerror=function(Ye){W(H,o?q[zo]:400,ci(q,o),o?Ln:ui(q)),de&&de(Ye)},q.ontimeout=function(){W(H,o?q[zo]:500,ci(q,o),o?Ln:ui(q)),x&&x(!1)},q.send(M[zi]),ue}function Z(M,H,ve){var ue,x=M[fs],de=M[zi],re=o?de:new Blob([de],{type:"application/json"}),Ie,q,A,Ye=new Headers,Ke=de[$],st=!1,_r=!1,kt=M[Lc]||{},Hr=(ue={method:Tp,body:re},ue[Ud]=!0,ue);M.headers&&jr(M.headers)[$]>0&&(b(jr(kt),function(Le){Ye.append(Le,kt[Le])}),Hr[Lc]=Ye),u?Hr.credentials=u:T&&o&&(Hr.credentials="include"),ve&&(Hr.keepalive=!0,e+=Ke,o?M._sendReason===2&&(st=!0,m&&(x+=lg)):st=!0);var xr=new Request(x,Hr);try{xr[Ud]=!0}catch{}if(!ve&&t&&(Ie=Wt(function(Le,Xe){q=Le,A=Xe})),!x){F(H),q&&q(!1);return}function ut(Le){W(H,o?0:400,{},o?Ln:Le)}function ke(Le,Xe,je){var C=Le[zo],K=a.fetchOnComplete;K&&se(K)?K(Le,H,je||Ln,Xe):W(H,C,{},je||Ln)}try{Lt(fetch(o?x:xr,o?Hr:null),function(Le){if(ve&&(e-=Ke,Ke=0),!_r)if(_r=!0,Le.rejected)ut(Le.reason&&Le.reason[An]),A&&A(Le.reason);else{var Xe=Le[Bo];try{!o&&!Xe.ok?(ut(Xe.statusText),q&&q(!1)):o&&!Xe.body?(ke(Xe,null,Ln),q&&q(!0)):Lt(Xe.text(),function(je){ke(Xe,M,je[Bo]),q&&q(!0)})}catch(je){ut(te(je)),A&&A(je)}}})}catch(Le){_r||(ut(te(Le)),A&&A(Le))}return st&&!_r&&(_r=!0,W(H,200,{}),q&&q(!0)),o&&!_r&&M[Wo]>0&&h&&h.set(function(){_r||(_r=!0,W(H,500,{}),q&&q(!0))},M[Wo]),Ie}function ce(M,H,ve){var ue=Nr(),x=new XDomainRequest,de=M[zi];x.onload=function(){var Ye=dn(x),Ke=a&&a.xdrOnComplete;Ke&&se(Ke)?Ke(x,H,M):W(H,200,{},Ye)},x.onerror=function(){W(H,400,{},o?Ln:Qo(x))},x.ontimeout=function(){W(H,500,{})},x.onprogress=function(){};var re=ue&&ue.location&&ue.location[Oc]||"",Ie=M[fs];if(!Ie){F(H);return}if(!o&&Ie.lastIndexOf(re,0)!==0){var q="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";G(i,2,40,". "+q),O(q,H);return}var A=o?Ie:Ie[ln](/^(https?:)/,"");x.open(Tp,A),M[Wo]&&(x[Wo]=M[Wo]),x.send(de),o&&ve?h&&h.set(function(){x.send(de)},0):x.send(de)}function Ne(){e=0,n=!1,t=!1,i=null,o=null,a=null,s=null,u=null,f=null,l=!1,v=!1,d=!1,E=!1,m=!1,h=null}})}return r.__ieDyn=1,r})()});function Eg(r){return r&&r[ln]?r[ln](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,me):r}function El(r,e){var t;if(e){var n=me;Q(e)?(n=me,b(e,function(o){o=Eg(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=Eg(e),n&&(n[0]!=="."&&(n="."+n),r=(r||me)+n)}var i=Ox.exec(r||me)||[];return t={},t[xt]=i[1],t.ns=(i[2]||me).replace(Ax,".").replace(Rx,me)[Kt](".").sort().join("."),t}function Dp(r,e,t){var n=[],i=of.get(r,pl,{},!1),o=El(e,t);return ae(i,function(a,s){b(s,function(u){var f;(!o[xt]||o[xt]===u.evtName[xt])&&(!o.ns||o.ns===o.ns)&&n[ye]((f={},f[Lr]=u.evtName[xt]+(u.evtName.ns?"."+u.evtName.ns:me),f.handler=u[Pu],f))})}),n}function xg(r,e,t){t===void 0&&(t=!0);var n=of.get(r,pl,{},t),i=n[e];return i||(i=n[e]=[]),i}function yg(r,e,t,n){r&&e&&e[xt]&&(r[mg]?r[mg](e[xt],t,n):r[pg]&&r[pg](gg+e[xt],t))}function Yx(r,e,t,n){var i=!1;return r&&e&&e[xt]&&t&&(r[dg]?(r[dg](e[xt],t,n),i=!0):r[vg]&&(r[vg](gg+e[xt],t),i=!0)),i}function Sg(r,e,t,n){for(var i=e[$];i--;){var o=e[i];o&&(!t.ns||t.ns===o.evtName.ns)&&(!n||n(o))&&(yg(r,o.evtName,o[Pu],o.capture),e[yn](i,1))}}function wx(r,e,t){if(e[xt])Sg(r,xg(r,e[xt]),e,t);else{var n=of.get(r,pl,{});ae(n,function(i,o){Sg(r,o,e,t)}),jr(n)[$]===0&&of.kill(r,pl)}}function Mt(r,e){var t;return e?(Q(e)?t=[r].concat(e):t=[r,e],t=El("xx",t).ns[Kt](".")):t=r,t}function Fn(r,e,t,n,i){var o;i===void 0&&(i=!1);var a=!1;if(r)try{var s=El(e,n);if(a=Yx(r,s,t,i),a&&of.accept(r)){var u=(o={guid:bx++,evtName:s},o[Pu]=t,o.capture=i,o);xg(r,s.type)[ye](u)}}catch{}return a}function Ni(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=El(e,n),a=!1;wx(r,o,function(s){return o.ns&&!t||s[Pu]===t?(a=!0,!0):!1}),a||yg(r,o,t,i)}catch{}}function Ip(r,e,t,n){return n===void 0&&(n=!1),Fn(r,e,t,null,n)}function xp(r,e,t,n){n===void 0&&(n=!1),Ni(r,e,t,null,n)}function Sl(r,e,t){var n=!1,i=Nr();i&&(n=Fn(i,r,e,t),n=Fn(i.body,r,e,t)||n);var o=gr();return o&&(n=Fn(o,r,e,t)||n),n}function gl(r,e,t){var n=Nr();n&&(Ni(n,r,e,t),Ni(n.body,r,e,t));var i=gr();i&&Ni(i,r,e,t)}function xs(r,e,t,n){var i=!1;return e&&r&&r[$]>0&&b(r,function(o){o&&(!t||Fe(t,o)===-1)&&(i=Sl(o,e,n)||i)}),i}function Nl(r,e,t,n){var i=!1;return e&&r&&Q(r)&&(i=xs(r,e,t,n),!i&&t&&t[$]>0&&(i=xs(r,e,null,n))),i}function so(r,e,t){r&&Q(r)&&b(r,function(n){n&&gl(n,e,t)})}function af(r,e,t){return Nl([Tg,hg,ml],r,e,t)}function sf(r,e){so([Tg,hg,ml],r,e)}function ys(r,e,t){function n(a){var s=gr();r&&s&&s.visibilityState==="hidden"&&r(a)}var i=Mt(Dg,t),o=xs([ml],r,e,i);return(!e||Fe(e,nf)===-1)&&(o=xs([nf],n,e,i)||o),!o&&e&&(o=ys(r,null,t)),o}function uf(r,e){var t=Mt(Dg,e);so([ml],r,t),so([nf],null,t)}function Ps(r,e,t){function n(a){var s=gr();r&&s&&s.visibilityState==="visible"&&r(a)}var i=Mt(Ig,t),o=xs([Ng],r,e,i);return o=xs([nf],n,e,i)||o,!o&&e&&(o=Ps(r,null,t)),o}function ff(r,e){var t=Mt(Ig,e);so([Ng],r,t),so([nf],null,t)}var gg,vg,dg,pg,mg,pl,nf,ml,Ng,hg,Tg,Dg,Ig,Ax,Rx,bx,of,Ox,Pg=w(()=>{"use strict";_();ge();Ge();Ss();hr();gg="on",vg="attachEvent",dg="addEventListener",pg="detachEvent",mg="removeEventListener",pl="events",nf="visibilitychange",ml="pagehide",Ng="pageshow",hg="unload",Tg="beforeunload",Dg=Wr("aiEvtPageHide"),Ig=Wr("aiEvtPageShow"),Ax=/\.[\.]+/g,Rx=/[\.]+$/,bx=1,of=Wc("events"),Ox=/^([^.]*)(?:\.(.+)|)/});var yp,Cg=w(()=>{"use strict";_();Du();yp=fr({DISABLED:0,CRITICAL:1,WARNING:2,DEBUG:3})});var We=w(()=>{"use strict";_();ZE();eS();rd();fg();gp();Kc();op();Fd();bn();cg();_g();ge();Du();Pg();Qi();Nt();rp();sl();pn();_l();Cg();ep();Ss();vl();dl();_p();eo();Jc();Gd()});var Un,Ag,Pp,hl,Tl=w(()=>{"use strict";_();Un="",Ag="https://browser.events.data.microsoft.com/OneCollector/1.0/",Pp="version",hl="properties"});var Cp,Ap,Cs,Mn,Rp,Ze,fa,hi,Dl,Il,xl,yl,cf,Pl=w(()=>{"use strict";_();Cp="initialize",Ap="logger",Cs="indexOf",Mn="timings",Rp="pollInternalLogs",Ze="value",fa="kind",hi="length",Dl="processTelemetryStart",Il="handleField",xl="rmSanitizer",yl="rmFieldSanitizer",cf="canHandle"});function Ur(r){return!(r===Un||B(r))}function Cl(r){if(r){var e=an(r,"-");if(e>-1)return Lo(r,e)}return Un}function wg(){return bp===null&&(bp=!Te(Uint8Array)&&!Hx()&&!Xi()),bp}function Al(r){return!!(r&&Vr(r)&&r>=1&&r<=4)}function Rl(r,e,t){if(!e&&!Ur(e)||typeof r!="string")return null;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||Q(e))e={value:e};else if(n==="object"&&!bg.call(e,"value"))e={value:t?JSON.stringify(e):e};else if(B(e[Ze])||e[Ze]===Un||!he(e[Ze])&&!Vr(e[Ze])&&!Dn(e[Ze])&&!Q(e[Ze]))return null;if(Q(e[Ze])&&!Yp(e[Ze]))return null;if(!B(e[fa])){if(Q(e[Ze])||!lf(e[fa]))return null;e[Ze]=e[Ze].toString()}return e}function Rs(r,e,t){var n=-1;if(!Te(r))if(e>0&&(e===32?n=8192:e<=13&&(n=e<<5)),Mx(t))n===-1&&(n=0),n|=t;else{var i=Ux[Hn(r)]||-1;n!==-1&&i!==-1?n|=i:i===6&&(n=i)}return n}function Lg(r,e,t){t===void 0&&(t=!0);var n;return r&&(n=r.get(e),t&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||Un}function Fg(r){r===void 0&&(r="D");var e=Ju();return r==="B"?e="{"+e+"}":r==="P"?e="("+e+")":r==="N"&&(e=e.replace(/-/g,Un)),e}function ca(r,e,t,n,i){var o={},a=!1,s=0,u=arguments[hi],f=arguments;for(Dn(f[0])&&(a=f[0],s++);s<u;s++){var r=f[s];ae(r,function(v,d){a&&d&&tr(d)?Q(d)?(o[v]=o[v]||[],b(d,function(E,m){E&&tr(E)?o[v][m]=ca(!0,o[v][m],E):o[v][m]=E})):o[v]=ca(!0,o[v],d):o[v]=d})}return o}function lf(r){return r===0||r>0&&r<=13||r===32}function Mx(r){return r>=0&&r<=9}function Hx(){var r=Cr();if(!Te(r)&&r.userAgent){var e=r.userAgent.toLowerCase();if((e[Cs]("safari")>=0||e[Cs]("firefox")>=0)&&e[Cs]("chrome")<0)return!0}return!1}function Yp(r){return r[hi]>0}function _f(r,e){var t=r;t[Mn]=t[Mn]||{},t[Mn][Dl]=t[Mn][Dl]||{},t[Mn][Dl][e]=Ct()}function Hn(r){var e=0;if(r!=null){var t=typeof r;t==="string"?e=1:t==="number"?e=2:t==="boolean"?e=3:t===Zn&&(e=4,Q(r)?(e=4096,r[hi]>0&&(e|=Hn(r[0]))):bg.call(r,"value")&&(e=8192|Hn(r[Ze])))}return e}function bl(){return!!le("chrome")}function Ug(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,f,l){try{u[f]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,Lx,n),t&&a(s,Rg,t),s.open(r,e,!i),t&&a(s,Rg,t),!i&&o&&a(s,Fx,o),s}function uo(r){return r>0}var Ti,Op,As,bg,Lx,Rg,Fx,Ux,bp,Og,Yg,Ct,Ol=w(()=>{"use strict";_();We();Nt();ge();Tl();Pl();Op="4.3.4",As="1DS-Web-JS-"+Op,bg=fu.hasOwnProperty,Lx="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Rg="withCredentials",Fx="timeout",Ux=(Ti={},Ti[0]=0,Ti[2]=6,Ti[1]=1,Ti[3]=7,Ti[4098]=6,Ti[4097]=1,Ti[4099]=7,Ti),bp=null,Og=Fo(),Yg=Qa();Ct=Nu});function kx(r){return r&&(!r.getProperty||!r.setProperty)&&Sr("Invalid property storage override passed."),!0}var Gx,Mg,Hg=w(()=>{"use strict";_();Nt();wr();We();ge();Tl();Ol();Pl();Gx=In({endpointUrl:Ag,propertyStorageOverride:{isVal:kx}});Mg=(function(r){gt(e,r);function e(){var t=r.call(this)||this;return Ae(e,t,function(n,i){n[Cp]=function(o,a,s,u){cr(n,function(){return"AppInsightsCore.initialize"},function(){try{i[Cp](Qe(o,Gx,s||n[Ap],!1).cfg,a,s,u)}catch(v){var f=n[Ap],l=te(v);l[Cs]("channels")!==-1&&(l+=`
|
|
3
3
|
- Channels must be provided through config.channels only!`),G(f,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}},function(){return{config:o,extensions:a,logger:s,notificationManager:u}})},n.track=function(o){cr(n,function(){return"AppInsightsCore.track"},function(){var a=o;if(a){a[Mn]=a[Mn]||{},a[Mn].trackStart=Ct(),Al(a.latency)||(a.latency=1);var s=a.ext=a.ext||{};s.sdk=s.sdk||{},s.sdk.ver=As;var u=a.baseData=a.baseData||{};u[hl]=u[hl]||{};var f=u[hl];f[Pp]=f[Pp]||n.pluginVersionString||Un}i.track(a)},function(){return{item:o}},!o.sync)},n[Rp]=function(o){return i[Rp](o||"InternalLog")}}),t}return e.__ieDyn=1,e})(gi)});var Gg,kg,Bg,Vg,jg,zg=w(()=>{"use strict";_();We();Gg=fr({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,Pii_IPv6ScrubLastHextets:14,Pii_DropValue:15,CustomerContent_GenericContent:32}),kg=fr({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),Bg=fr({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),Vg=fr({Normal:1,Critical:2}),jg=fr({NONE:0,ERROR:1,WARNING:2,INFORMATION:3})});var Kg,Wg=w(()=>{"use strict";_();We();ge();Tl();Ol();Pl();Kg=(function(){function r(e){var t=this,n={},i=[],o=[];e&&o.push(e);function a(l,v){var d,E=n[l];if(E&&(d=E[v]),!d&&d!==null){if(he(l)&&he(v))if(o[hi]>0){for(var m=0;m<o[hi];m++)if(o[m][Il](l,v)){d={canHandle:!0,fieldHandler:o[m]};break}}else i[hi]===0&&(d={canHandle:!0});if(!d&&d!==null){d=null;for(var m=0;m<i[hi];m++)if(i[m][Il](l,v)){d={canHandle:!0,handler:i[m],fieldHandler:null};break}}E||(E=n[l]={}),E[v]=d}return d}t.clearCache=function(){n={}},t.addSanitizer=function(l){l&&(Fv(i,l)||i.push(l),n={})},t.addFieldSanitizer=function(l){l&&(Fv(o,l)||o.push(l),n={})},t[xl]=function(l){if(l){var v=Fe(i,l);v!==-1&&(i.splice(v,1),n={}),b(i,function(d){d&&d[xl]&&d[xl](l)})}},t[yl]=function(l){if(l){var v=Fe(o,l);v!==-1&&(o.splice(v,1),n={}),b(i,function(d){d&&d[yl]&&d[yl](l)})}},t.isEmpty=function(){return rs(i)+rs(o)===0},t[Il]=function(l,v){var d=a(l,v);return d?d[cf]:!1},t[Ze]=function(l,v,d,E){var m=a(l,v);if(m&&m[cf]){if(!m||!m[cf])return null;if(m.handler)return m.handler[Ze](l,v,d,E);if(!he(v)||B(d)||d===Un)return null;var h=null,g=Hn(d);if((g&8192)===8192){var P=g&-8193;if(h=d,!Ur(h[Ze])||P!==1&&P!==2&&P!==3&&(P&4096)!==4096)return null}else g===1||g===2||g===3||(g&4096)===4096?h=u(l,v,d):g===4&&(h=u(l,v,E?JSON.stringify(d):d));if(h)return s(m,l,v,g,h,E)}return null},t.property=function(l,v,d,E){var m=a(l,v);if(!m||!m[cf]||!he(v)||B(d)||!Ur(d[Ze]))return null;var h=Hn(d[Ze]);return h===0?null:s(m,l,v,h,d,E)};function s(l,v,d,E,m,h){if(l.handler)return l.handler.property(v,d,m,h);if(!B(m[fa])){if((E&4096)===4096||!lf(m[fa]))return null;m[Ze]=m[Ze].toString()}return f(l.fieldHandler,v,d,E,m)}function u(l,v,d){return Ur(d)?{value:d}:null}function f(l,v,d,E,m){if(m&&l){var h=l.getSanitizer(v,d,E,m[fa],m.propertyType);if(h)if(E===4){var g={},P=m[Ze];ae(P,function(I,O){var F=v+"."+d;if(Ur(O)){var V=u(F,I,O);V=f(l,F,I,Hn(O),V),V&&(g[I]=V[Ze])}}),m[Ze]=g}else{var T={path:v,name:d,type:E,prop:m,sanitizer:t};m=h.call(t,T)}}return m}}return r.getFieldType=Hn,r})()});var qg={};rc(qg,{ActiveStatus:()=>Ot,AppInsightsCore:()=>Mg,BaseTelemetryPlugin:()=>Si,DiagnosticLogger:()=>ro,EventLatency:()=>kg,EventPersistence:()=>Vg,EventPropertyType:()=>Bg,EventsDiscardedReason:()=>sn,FullVersionString:()=>As,InternalAppInsightsCore:()=>gi,LoggingSeverity:()=>yp,MinChannelPriorty:()=>Zv,NotificationManager:()=>qu,PerfEvent:()=>ta,PerfManager:()=>Xu,ProcessTelemetryContext:()=>mp,SenderPostManager:()=>ua,TraceLevel:()=>jg,Undefined:()=>hn,ValueKind:()=>Gg,ValueSanitizer:()=>Kg,Version:()=>Op,_InternalLogMessage:()=>ea,__getRegisteredEvents:()=>Dp,_appendHeader:()=>ps,_getAllResponseHeaders:()=>ci,_logInternalMessage:()=>Kd,_testHookMaxUnloadHooksCb:()=>Ep,_throwInternal:()=>G,_warnToConsole:()=>lt,addEventHandler:()=>Sl,addEventListeners:()=>Nl,addPageHideEventListener:()=>ys,addPageShowEventListener:()=>Ps,addPageUnloadEventListener:()=>af,areCookiesSupported:()=>Ts,arrForEach:()=>b,arrIndexOf:()=>Fe,arrMap:()=>ri,arrReduce:()=>gu,attachEvent:()=>Ip,blockDynamicConversion:()=>Vu,convertAllHeadersToMap:()=>zc,cookieAvailable:()=>Ts,createCookieMgr:()=>pi,createDynamicConfig:()=>Qe,createEnumStyle:()=>fr,createGuid:()=>Fg,createProcessTelemetryContext:()=>_t,createTraceParent:()=>up,createUniqueNamespace:()=>Wr,createUnloadHandlerContainer:()=>aa,dateNow:()=>ur,detachEvent:()=>xp,disallowsSameSiteNone:()=>al,doPerf:()=>cr,dumpObj:()=>te,eventOff:()=>Ni,eventOn:()=>Fn,extend:()=>ca,findW3cTraceParent:()=>lp,forceDynamicConversion:()=>Ld,formatErrorMessageXdr:()=>Qo,formatErrorMessageXhr:()=>ui,formatTraceParent:()=>cp,generateW3CId:()=>na,getCommonSchemaMetaData:()=>Rs,getConsole:()=>Yu,getCookieValue:()=>Lg,getCrypto:()=>wu,getDocument:()=>gr,getDynamicConfigHandler:()=>Bu,getExceptionName:()=>ir,getFieldValueType:()=>Hn,getGlobal:()=>ct,getGlobalInst:()=>le,getHistory:()=>dc,getIEVersion:()=>Fu,getISOString:()=>vn,getJSON:()=>Kr,getLocation:()=>Zo,getMsCrypto:()=>Lu,getNavigator:()=>Cr,getPerformance:()=>Uo,getResponseText:()=>dn,getSetValue:()=>Ou,getTenantId:()=>Cl,getTime:()=>Ct,getWindow:()=>Nr,hasDocument:()=>Fo,hasHistory:()=>wv,hasJSON:()=>On,hasNavigator:()=>Eu,hasOwnProperty:()=>yr,hasWindow:()=>Qa,isArray:()=>Q,isArrayValid:()=>Yp,isBeaconsSupported:()=>$t,isBoolean:()=>Dn,isChromium:()=>bl,isDate:()=>lc,isDocumentObjectAvailable:()=>Og,isError:()=>Yo,isFetchSupported:()=>li,isFunction:()=>se,isGreaterThanZero:()=>uo,isIE:()=>Ji,isLatency:()=>Al,isNotTruthy:()=>Pv,isNullOrUndefined:()=>B,isNumber:()=>Vr,isObject:()=>tr,isReactNative:()=>Xi,isSampledFlag:()=>fp,isString:()=>he,isTruthy:()=>tn,isTypeof:()=>yv,isUint8ArrayAvailable:()=>wg,isUndefined:()=>Te,isValidSpanId:()=>oa,isValidTraceId:()=>ia,isValidTraceParent:()=>cl,isValueAssigned:()=>Ur,isValueKind:()=>lf,isWindowObjectAvailable:()=>Yg,isXhrSupported:()=>Es,mergeEvtNamespace:()=>Mt,newGuid:()=>Ju,newId:()=>Gu,normalizeJsName:()=>Jo,objDefineAccessors:()=>Rv,objForEachKey:()=>ae,objFreeze:()=>jt,objKeys:()=>jr,objSeal:()=>bv,onConfigChange:()=>Fr,openXhr:()=>Ug,optimizeObject:()=>Pt,parseResponse:()=>sa,parseTraceParent:()=>Qu,perfNow:()=>Nu,prependTransports:()=>fi,proxyAssign:()=>Nd,proxyFunctionAs:()=>si,proxyFunctions:()=>Ut,random32:()=>_i,randomValue:()=>bd,removeEventHandler:()=>gl,removeEventListeners:()=>so,removePageHideEventListener:()=>uf,removePageShowEventListener:()=>ff,removePageUnloadEventListener:()=>sf,safeGetCookieMgr:()=>Zd,safeGetLogger:()=>di,sanitizeProperty:()=>Rl,setEnableEnvMocks:()=>Cd,setProcessTelemetryTimings:()=>_f,setValue:()=>qt,strContains:()=>pr,strEndsWith:()=>Mo,strFunction:()=>Ka,strObject:()=>Zn,strPrototype:()=>en,strStartsWith:()=>ts,strTrim:()=>He,strUndefined:()=>hn,throwError:()=>Sr,toISOString:()=>vn,useXDomainRequest:()=>Uu});var la=w(()=>{"use strict";_();Hg();zg();Wg();We();Ol()});var _a,Yl,wl,wp=w(()=>{"use strict";_();_a="REAL_TIME",Yl="NEAR_REAL_TIME",wl="BEST_EFFORT"});var mn,Ll,$g,Lp,Xg,Jg,Fp,Fl,vf,bs,Qg,Zg,eN,Ul,Up,Ml,Hl,Gl,df,Mp,Hp,rN,Os,Gp,kl,pf=w(()=>{"use strict";_();mn="",Ll="drop",$g="send",Lp="requeue",Xg="rspFail",Jg="oth",Fp="no-cache, no-store",Fl="application/x-json-stream",vf="cache-control",bs="content-type",Qg="kill-tokens",Zg="kill-duration",eN="time-delta-millis",Ul="client-version",Up="client-id",Ml="time-delta-to-apply-millis",Hl="upload-time",Gl="apikey",df="AuthMsaDeviceTicket",Mp="WebAuthToken",Hp="AuthXToken",rN="NoResponseBody",Os="msfpc",Gp="trace",kl="user"});var mf,Bl,Vl,jl,Ef,Pe,Gn,Ht,lr,kn,Rr,Bn,va,zl,da,Kl,pa,Wl,ql,tN,kp,Bp,nN,iN,$l,Vp,jp,oN,aN,zp,Kp,Wp,sN,Xl,Jl,Ql,Sf,qp,En,Ys,$p,rt,At,gf,Nf,ws,Zl,hf,uN,Ls,e_,r_,Fs,Xp,Tf,t_,n_,Us,fN,i_,o_,a_,Df,cN,lN,Jp,Qp,_N,vN,dN,s_,If,fo,ma,Ms=w(()=>{"use strict";_();mf="allowRequestSending",Bl="firstRequestSent",Vl="shouldAddClockSkewHeaders",jl="getClockSkewHeaderValue",Ef="setClockSkew",Pe="length",Gn="concat",Ht="iKey",lr="count",kn="events",Rr="push",Bn="split",va="splice",zl="toLowerCase",da="hdrs",Kl="useHdrs",pa="initialize",Wl="setTimeoutOverride",ql="clearTimeoutOverride",tN="payloadPreprocessor",kp="overrideEndpointUrl",Bp="avoidOptions",nN="disableEventTimings",iN="stringifyObjects",$l="enableCompoundKey",Vp="disableXhrSync",jp="disableFetchKeepAlive",oN="addNoResponse",aN="excludeCsMetaData",zp="useSendBeacon",Kp="fetchCredentials",Wp="alwaysUseXhrOverride",sN="unloadTransports",Xl="serializeOfflineEvt",Jl="getOfflineRequestDetails",Ql="createPayload",Sf="createOneDSPayload",qp="payloadBlob",En="headers",Ys="_thePayload",$p="urlString",rt="batches",At="sendType",gf="addHeader",Nf="canSendRequest",ws="sendQueuedRequests",Zl="isCompletelyIdle",hf="setUnloading",uN="isTenantKilled",Ls="resume",e_="sendSynchronousBatch",r_="_transport",Fs="getWParam",Xp="isBeacon",Tf="timings",t_="isTeardown",n_="isSync",Us="data",fN="timeout",i_="_sendReason",o_="setKillSwitchTenants",a_="_backOffTransmission",Df="identifier",cN="disableOptimizeObj",lN="ignoreMc1Ms0CookieProcessing",Jp="eventsLimitInMem",Qp="autoFlushEventsLimit",_N="disableAutoBatchFlushLimit",vN="overrideInstrumentationKey",dN="disableTelemetry",s_="baseData",If="sendAttempt",fo="latency",ma="sync"});function mN(r){var e=(r.ext||{}).intweb;return e&&Ur(e[Os])?e[Os]:null}function pN(r){for(var e=null,t=0;e===null&&t<r[Pe];t++)e=mN(r[t]);return e}var co,u_=w(()=>{"use strict";_();la();pf();Ms();co=(function(){function r(e,t){var n=t?[][Gn](t):[],i=this,o=pN(n);i[Ht]=function(){return e},i.Msfpc=function(){return o||mn},i[lr]=function(){return n[Pe]},i[kn]=function(){return n},i.addEvent=function(a){return a?(n[Rr](a),o||(o=mN(a)),!0):!1},i[Bn]=function(a,s){var u;if(a<n[Pe]){var f=n[Pe]-a;B(s)||(f=s<f?s:f),u=n[va](a,f),o=pN(n)}return new r(e,u)}}return r.create=function(e,t){return new r(e,t)},r})()});var EN,SN=w(()=>{"use strict";_();wr();Ms();EN=(function(){function r(){var e=!0,t=!0,n=!0,i="use-collector-delta",o=!1;Ae(r,this,function(a){a[mf]=function(){return e},a[Bl]=function(){n&&(n=!1,o||(e=!1))},a[Vl]=function(){return t},a[jl]=function(){return i},a[Ef]=function(s){o||(s?(i=s,t=!0,o=!0):t=!1,e=!0)}})}return r.__ieDyn=1,r})()});var Bx,gN,NN=w(()=>{"use strict";_();wr();la();Ms();Bx=1e3,gN=(function(){function r(){var e={};function t(n){var i=[];return n&&b(n,function(o){i[Rr](He(o))}),i}Ae(r,this,function(n){n[o_]=function(i,o){if(i&&o)try{var a=t(i[Bn](","));if(o==="this-request-only")return a;for(var s=parseInt(o,10)*Bx,u=0;u<a[Pe];++u)e[a[u]]=ur()+s}catch{return[]}return[]},n[uN]=function(i){var o=e,a=He(i);return o[a]!==void 0&&o[a]>ur()?!0:(delete o[a],!1)}})}return r.__ieDyn=1,r})()});function TN(r){return!(r>=300&&r<500&&r!=429||r==501||r==505)}function f_(r){var e=0,t=hN*Vx,n=hN*jx,i=Math.floor(Math.random()*(n-t))+t;return e=Math.pow(2,r)*i,Math.min(e,zx)}var Vx,jx,hN,zx,Zp=w(()=>{"use strict";_();Vx=.8,jx=1.2,hN=3e3,zx=6e5});function Xx(r,e,t,n,i){if(i&&e){var o=r(i.value,i.kind,i.propertyType);if(o>-1){var a=e[DN];a||(a=e[DN]={f:{}});var s=a[c_];if(s||(s=a[c_]={}),t)for(var u=0;u<t.length;u++){var f=t[u];s[f]||(s[f]={f:{}});var l=s[f][c_];l||(l=s[f][c_]={}),s=l}s=s[n]={},Q(i.value)?s.a={t:o}:s.t=o}}}var Kx,Wx,IN,xN,qx,DN,c_,$x,yN,PN=w(()=>{"use strict";_();wr();la();u_();pf();ge();Kx=20,Wx=3984588,IN=65e3,xN=2e6,qx=Math.min(xN,IN),DN="metadata",c_="f",$x=/\./,yN=(function(){function r(e,t,n,i,o,a){var s="data",u="baseData",f="ext",l=!!i,v=!0,d=t,E={},m=!!a,h=o||Rs;Ae(r,this,function(g){g.createPayload=function(I,O,F,V,W,ne){return{apiKeys:[],payloadBlob:mn,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:I,isTeardown:O,isSync:F,isBeacon:V,sendType:ne,sendReason:W}},g.appendPayload=function(I,O,F){var V=I&&O&&!I.overflow;return V&&cr(e,function(){return"Serializer:appendPayload"},function(){for(var W=O.events(),ne=I.payloadBlob,z=I.numEvents,k=!1,Z=[],ce=[],Ne=I.isBeacon,M=Ne?IN:Wx,H=Ne?qx:xN,ve=0,ue=0;ve<W.length;){var x=W[ve];if(x){if(z>=F){I.overflow=O.split(ve);break}var de=g.getEventBlob(x);if(de&&de.length<=H){var re=de.length,Ie=ne.length;if(Ie+re>M){I.overflow=O.split(ve);break}ne&&(ne+=`
|
|
4
4
|
`),ne+=de,ue++,ue>Kx&&(xn(ne,0,1),ue=0),k=!0,z++}else de?Z.push(x):ce.push(x),W.splice(ve,1),ve--}ve++}if(Z.length>0&&I.sizeExceed.push(co.create(O.iKey(),Z)),ce.length>0&&I.failedEvts.push(co.create(O.iKey(),ce)),k){I.batches.push(O),I.payloadBlob=ne,I.numEvents=z;var q=O.iKey();Fe(I.apiKeys,q)===-1&&I.apiKeys.push(q)}},function(){return{payload:I,theBatch:{iKey:O.iKey(),evts:O.events()},max:F}}),V},g.getEventBlob=function(I){try{return cr(e,function(){return"Serializer.getEventBlob"},function(){var O={};O.name=I.name,O.time=I.time,O.ver=I.ver,O.iKey="o:"+Cl(I.iKey);var F={},V;m||(V=function(k,Z,ce){Xx(h,F,k,Z,ce)});var W=I[f];W&&(O[f]=F,ae(W,function(k,Z){var ce=F[k]={};T(Z,ce,"ext."+k,!0,null,null,!0)}));var ne=O[s]={};ne.baseType=I.baseType;var z=ne[u]={};return T(I.baseData,z,u,!1,[u],V,v),T(I.data,ne,s,!1,[],V,v),JSON.stringify(O)},function(){return{item:I}})}catch{return null}};function P(I,O){var F=E[I];return F===void 0&&(I.length>=7&&(F=ts(I,"ext.metadata")||ts(I,"ext.web")),E[I]=F),F}function T(I,O,F,V,W,ne,z){ae(I,function(k,Z){var ce=null;if(Z||Ur(Z)){var Ne=F,M=k,H=W,ve=O;if(l&&!V&&$x.test(k)){var ue=k.split("."),x=ue.length;if(x>1){H&&(H=H.slice());for(var de=0;de<x-1;de++){var re=ue[de];ve=ve[re]=ve[re]||{},Ne+="."+re,H&&H.push(re)}M=ue[x-1]}}var Ie=V&&P(Ne,M);if(!Ie&&d&&d.handleField(Ne,M)?ce=d.value(Ne,M,Z,n):ce=Rl(M,Z,n),ce){var q=ce.value;if(ve[M]=q,ne&&ne(H,M,ce),z&&typeof q=="object"&&!Q(q)){var A=H;A&&(A=A.slice(),A.push(M)),T(Z,q,Ne+"."+M,V,A,ne,z)}}}})}})}return r.__ieDyn=1,r})()});function Hs(r,e){return{set:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return VE([r,e],t,n,i)}}}var em=w(()=>{"use strict";_();ge()});function Sa(r,e,t){tm[r]=e,t!==!1&&(nm[e]=r)}function l_(r,e){var t=!1;if(r&&e){var n=jr(r);if(n&&n[Pe]>0)for(var i=e[zl](),o=0;o<n[Pe];o++){var a=n[o];if(a&&yr(e,a)&&a[zl]()===i){t=!0;break}}}return t}function Gs(r,e,t,n){e&&t&&t[Pe]>0&&(n&&tm[e]?(r[da][tm[e]]=t,r[Kl]=!0):r.url+="&"+e+"="+t)}function ey(r,e,t){for(var n=0;n<r[Pe];n++)if(r[n].name===e){r[n].value=t;return}r[Rr]({name:e,value:t})}function ry(r,e){for(var t=0;t<r[Pe];t++)if(r[t].name===e){r[va](t,1);return}}var Ea,rm,Jx,Qx,Zx,tm,nm,CN,AN=w(()=>{"use strict";_();wr();la();ge();SN();u_();pf();NN();Zp();PN();em();Ms();rm="sendAttempt",Jx="&"+rN+"=true",Qx="?cors=true&"+bs[zl]()+"="+Fl,Zx=(Ea={},Ea[1]=Lp,Ea[100]=Lp,Ea[200]="sent",Ea[8004]=Ll,Ea[8003]=Ll,Ea),tm={},nm={};Sa(df,df,!1);Sa(Ul,Ul);Sa(Up,"Client-Id");Sa(Gl,Gl);Sa(Ml,Ml);Sa(Hl,Hl);Sa(Hp,Hp);CN=(function(){function r(e,t,n,i){var o,a,s,u,f=!1,l,v,d,E,m,h,g,P,T,I,O,F,V,W,ne,z,k,Z,ce,Ne,M,H,ve,ue,x,de,re,Ie;Ae(r,this,function(q){_r();var A=!0;q[pa]=function(S,Y,U){ue||(m=Y,F=Y.getCookieMgr(),v=U,d=v.diagLog(),on(Ne,Fr(S,function(J){var _e,xe=J.cfg,ee=J.cfg.extensionConfig[U.identifier];x=Hs(ee[Wl],ee[ql]),Ur(xe.anonCookieName)?ey(g,"anoncknm",xe.anonCookieName):ry(g,"anoncknm"),M=ee[tN],H=ee.payloadListener;var c=ee.httpXHROverride,p=ee[kp]?ee[kp]:xe.endpointUrl;o=p+Qx,W=Te(ee[Bp])?!0:!ee[Bp],O=!ee[nN];var N=ee.valueSanitizer,D=ee[iN],R=!!xe[$l];Te(ee[$l])||(R=!!ee[$l]),ne=ee.xhrTimeout,z=!!ee[Vp],k=!!ee[jp],ce=ee[oN]!==!1,de=!!ee[aN],Y.getPlugin("LocalStorage")&&(k=!0),f=!Xi(),I=new yN(m,N,D,R,Rs,de),B(ee[zp])||(f=!!ee[zp]),ee[Kp]&&(Ie=ee[Kp]);var L=Ke();re?re.SetConfig(L):(re=new ua,re[pa](L,d));var j=c,pe=ee[Wp]?c:null,be=ee[Wp]?c:null,fe=[3,2];if(!c){h=!1;var pt=[];Xi()?(pt=[2,1],fe=[2,1,3]):pt=[1,2,3],pt=fi(pt,ee.transports),c=Ye(pt,!1),c||lt(d,"No available transport to send events"),j=Ye(pt,!0)}pe||(fe=fi(fe,ee[sN]),pe=Ye(fe,!0)),Z=!h&&(f&&$t()||!k&&li(!0)),E=(_e={},_e[0]=c,_e[1]=j||Ye([1,2,3],!0),_e[2]=pe||j||Ye([1],!0),_e[3]=be||Ye([2,3],!0)||j||Ye([1],!0),_e)})),ue=!0)},q.addResponseHandler=function(S){return ve[Rr](S),{rm:function(){var Y=ve.indexOf(S);Y>=0&&ve[va](Y,1)}}},q[Xl]=function(S){try{if(I)return I.getEventBlob(S)}catch{}return mn},q[Jl]=function(){try{var S=I&&I[Ql](0,!1,!1,!1,1,0);return X(S,W)}catch{}return null},q[Sf]=function(S,Y){try{var U=[];b(S,function(c){Y&&(c=Pt(c));var p=co.create(c[Ht],[c]);U[Rr](p)});for(var J=null;U[Pe]>0&&I;){var _e=U.shift();_e&&_e[lr]()>0&&(J=J||I[Ql](0,!1,!1,!1,1,0),I.appendPayload(J,_e,e))}var xe=X(J,W),ee={data:J[qp],urlString:xe.url,headers:xe[da],timeout:ne,disableXhrSync:z,disableFetchKeepAlive:k};return W&&(l_(ee[En],vf)||(ee[En][vf]=Fp),l_(ee[En],bs)||(ee[En][bs]=Fl)),ee}catch{}return null};function Ye(S,Y){try{return re&&re.getSenderInst(S,Y)}catch{}return null}q._getDbgPlgTargets=function(){return[E[0],a,I,E,Ke(),o]};function Ke(){try{var S={xdrOnComplete:st,fetchOnComplete:kt,xhrOnComplete:Hr,beaconOnRetry:ut},Y={enableSendPromise:!1,isOneDs:!0,disableCredentials:!A,fetchCredentials:Ie,disableXhr:!1,disableBeacon:!f,disableBeaconSync:!f,disableFetchKeepAlive:k,timeWrapper:x,addNoResponse:ce,senderOnCompleteCallBack:S};return Y}catch{}return null}function st(S,Y,U){var J=dn(S);xr(Y,200,{},J),Bt(J)}function _r(){var S;o=null,a=new gN,s=!1,u=new EN,f=!1,l=0,v=null,d=null,E=null,m=null,h=!0,g=[],P={},T=[],I=null,O=!1,F=null,V=!1,W=!1,ne=S,z=S,k=S,Z=S,ce=S,Ne=[],M=S,H=S,ve=[],ue=!1,x=Hs(),de=!1,re=null}function kt(S,Y,U,J){var _e=function(c,p,N){xr(Y,c,p,N),Bt(N)},xe={},ee=S[En];ee&&ee.forEach(function(c,p){xe[p]=c}),_e(S.status,xe,U||mn)}function Hr(S,Y,U){var J=dn(S);xr(Y,S.status,ci(S,!0),J),Bt(J)}function xr(S,Y,U,J){try{S(Y,U,J)}catch(_e){G(d,2,518,te(_e))}}function ut(S,Y,U){var J=S,_e=200,xe=J[Ys],ee=S[$p]+(ce?Jx:mn);try{var c=Cr();if(xe){var p=!!m.getPlugin("LocalStorage"),N=[],D=[];b(xe[rt],function(R){if(N&&R&&R[lr]()>0)for(var L=R[kn](),j=0;j<L[Pe];j++)if(c.sendBeacon(ee,I.getEventBlob(L[j])))D[Rr](R[j]);else{N[Rr](R[Bn](j));break}else N[Rr](R[Bn](0))}),D[Pe]>0&&(xe.sentEvts=D),p||Or(N,8003,xe[At],!0)}else _e=0}catch(R){lt(d,"Failed to send telemetry using sendBeacon API. Ex:"+te(R)),_e=0}finally{xr(Y,_e,{},mn)}}function ke(S){return S===2||S===3}function Le(S){return V&&ke(S)&&(S=2),S}q[gf]=function(S,Y){P[S]=Y},q.removeHeader=function(S){delete P[S]},q[Nf]=function(){return Xe()&&u[mf]()},q[ws]=function(S,Y){Te(S)&&(S=0),V&&(S=Le(S),Y=2),C(T,S,0)&&ie(je(),0,!1,S,Y||0)},q[Zl]=function(){return!s&&l===0&&T[Pe]===0},q[hf]=function(S){V=S},q.addBatch=function(S){if(S&&S[lr]()>0){if(a.isTenantKilled(S[Ht]()))return!1;T[Rr](S)}return!0},q.teardown=function(){T[Pe]>0&&ie(je(),0,!0,2,2),b(Ne,function(S){S&&S.rm&&S.rm()}),Ne=[]},q.pause=function(){s=!0},q[Ls]=function(){s=!1,q[ws](0,4)},q[e_]=function(S,Y,U){S&&S[lr]()>0&&(B(Y)&&(Y=1),V&&(Y=Le(Y),U=2),ie([S],0,!1,Y,U||0))};function Xe(){return!s&&l<t}function je(){var S=T;return T=[],S}function C(S,Y,U){var J=!1;return S&&S[Pe]>0&&!s&&E[Y]&&I&&(J=Y!==0||Xe()&&(U>0||u[mf]())),J}function K(S){var Y={};return S&&b(S,function(U,J){Y[J]={iKey:U[Ht](),evts:U[kn]()}}),Y}function ie(S,Y,U,J,_e){if(!(!S||S[Pe]===0)){if(s){Or(S,1,J);return}J=Le(J);try{var xe=S,ee=J!==0;cr(m,function(){return"HttpManager:_sendBatches"},function(c){c&&(S=S.slice(0));for(var p=[],N=null,D=Ct(),R=E[J]||(ee?E[1]:E[0]),L=R&&R[r_],j=Z&&(V||ke(J)||L===3||R._isSync&&L===2);C(S,J,Y);){var pe=S.shift();pe&&pe[lr]()>0&&(a.isTenantKilled(pe[Ht]())?p[Rr](pe):(N=N||I[Ql](Y,U,ee,j,_e,J),I.appendPayload(N,pe,e)?N.overflow!==null&&(S=[N.overflow][Gn](S),N.overflow=null,Oe(N,D,Ct(),_e),D=Ct(),N=null):(Oe(N,D,Ct(),_e),D=Ct(),S=[pe][Gn](S),N=null)))}N&&Oe(N,D,Ct(),_e),S[Pe]>0&&(T=S[Gn](T)),Or(p,8004,J)},function(){return{batches:K(xe),retryCount:Y,isTeardown:U,isSynchronous:ee,sendReason:_e,useSendBeacon:ke(J),sendType:J}},!ee)}catch(c){G(d,2,48,"Unexpected Exception sending batch: "+te(c))}}}function X(S,Y){var U={url:o,hdrs:{},useHdrs:!1};Y?(U[da]=ca(U[da],P),U.useHdrs=jr(U.hdrs)[Pe]>0):ae(P,function(c,p){nm[c]?Gs(U,nm[c],p,!1):(U[da][c]=p,U[Kl]=!0)}),Gs(U,Up,"NO_AUTH",Y),Gs(U,Ul,As,Y);var J=mn;b(S.apiKeys,function(c){J[Pe]>0&&(J+=","),J+=c}),Gs(U,Gl,J,Y),Gs(U,Hl,ur().toString(),Y);var _e=Qr(S);if(Ur(_e)&&(U.url+="&ext.intweb.msfpc="+_e),u[Vl]()&&Gs(U,Ml,u[jl](),Y),m[Fs]){var xe=m[Fs]();xe>=0&&(U.url+="&w="+xe)}for(var ee=0;ee<g[Pe];ee++)U.url+="&"+g[ee].name+"="+g[ee].value;return U}function oe(S,Y,U){S[Y]=S[Y]||{},S[Y][v.identifier]=U}function Oe(S,Y,U,J){if(S&&S.payloadBlob&&S.payloadBlob[Pe]>0){var _e=!!M,xe=E[S.sendType];!ke(S[At])&&S[Xp]&&S.sendReason===2&&(xe=E[2]||E[3]||xe);var ee=W;(S.isBeacon||xe[r_]===3)&&(ee=!1);var c=X(S,ee);ee=ee||c[Kl];var p=Ct();cr(m,function(){return"HttpManager:_doPayloadSend"},function(){for(var N=0;N<S.batches[Pe];N++)for(var D=S[rt][N],R=D[kn](),L=0;L<R[Pe];L++){var j=R[L];if(O){var pe=j[Tf]=j[Tf]||{};oe(pe,"sendEventStart",p),oe(pe,"serializationStart",Y),oe(pe,"serializationCompleted",U)}j[rm]>0?j[rm]++:j[rm]=1}Or(S[rt],1e3+(J||0),S[At],!0);var be={data:S[qp],urlString:c.url,headers:c[da],_thePayload:S,_sendReason:J,timeout:ne,disableXhrSync:z,disableFetchKeepAlive:k};ee&&(l_(be[En],vf)||(be[En][vf]=Fp),l_(be[En],bs)||(be[En][bs]=Fl));var fe=null;xe&&(fe=function(pt){u[Bl]();var Qn=function(Nn,Jf){Me(Nn,Jf,S,J)},mt=S[t_]||S[n_];try{xe.sendPOST(pt,Qn,mt),H&&H(be,pt,mt,S[Xp])}catch(Nn){lt(d,"Unexpected exception sending payload. Ex:"+te(Nn)),xr(Qn,0,{})}}),cr(m,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(fe)if(S[At]===0&&l++,_e&&!S.isBeacon&&xe[r_]!==3){var pt={data:be[Us],urlString:be[$p],headers:ca({},be[En]),timeout:be[fN],disableXhrSync:be[Vp],disableFetchKeepAlive:be[jp]},Qn=!1;cr(m,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{M(pt,function(mt){Qn=!0,!h&&!mt[Ys]&&(mt[Ys]=mt[Ys]||be[Ys],mt[i_]=mt[i_]||be[i_]),fe(mt)},S.isSync||S[t_])}catch{Qn||fe(be)}})}else fe(be)})},function(){return{thePayload:S,serializationStart:Y,serializationCompleted:U,sendReason:J}},S[n_])}S.sizeExceed&&S.sizeExceed[Pe]>0&&Or(S.sizeExceed,8003,S[At]),S.failedEvts&&S.failedEvts[Pe]>0&&Or(S.failedEvts,8002,S[At])}function Re(S,Y){O&&b(S,function(U){var J=U[Tf]=U[Tf]||{};oe(J,"sendEventCompleted",Y)})}function Me(S,Y,U,J){var _e=9e3,xe=null,ee=!1,c=!1;try{var p=!0;if(typeof S!==hn){if(Y){u[Ef](Y[eN]);var N=Y[Zg]||Y["kill-duration-seconds"];b(a[o_](Y[Qg],N),function(R){b(U[rt],function(L){if(L[Ht]()===R){xe=xe||[];var j=L[Bn](0);U.numEvents-=j[lr](),xe[Rr](j)}})})}if(S==200||S==204){_e=200;return}(!TN(S)||U.numEvents<=0)&&(p=!1),_e=9e3+S%1e3}if(p){_e=100;var D=U.retryCnt;U[At]===0&&(D<n?(ee=!0,Jr(function(){U[At]===0&&l--,ie(U[rt],D+1,U[t_],V?2:U[At],5)},V,f_(D))):(c=!0,V&&(_e=8001)))}}finally{ee||(u[Ef](),Je(U,_e,J,c)),Or(xe,8004,U[At])}}function Je(S,Y,U,J){try{J&&v[a_]();var _e=S[rt];Y===200&&(_e=S.sentEvts||S[rt],!J&&!S[n_]&&v._clearBackOff(),or(_e)),Or(_e,Y,S[At],!0)}finally{S[At]===0&&(l--,U!==5&&q.sendQueuedRequests(S[At],U))}}function or(S){if(O){var Y=Ct();b(S,function(U){U&&U[lr]()>0&&Re(U[kn](),Y)})}}function Jr(S,Y,U){Y?S():x.set(S,U)}function Qr(S){for(var Y=0;Y<S.batches[Pe];Y++){var U=S[rt][Y].Msfpc();if(U)return encodeURIComponent(U)}return mn}function Bt(S){var Y=ve;try{for(var U=0;U<Y[Pe];U++)try{Y[U](S)}catch(_e){G(d,1,519,"Response handler failed: "+_e)}if(S){var J=JSON.parse(S);Ur(J.webResult)&&Ur(J.webResult[Os])&&F.set("MSFPC",J.webResult[Os],365*86400)}}catch{}}function Or(S,Y,U,J){if(S&&S[Pe]>0&&i){var _e=i[Jn(Y)];if(_e){var xe=U!==0;cr(m,function(){return"HttpManager:_sendBatchesNotification"},function(){Jr(function(){try{_e.call(i,S,Y,xe,U)}catch(ee){G(d,1,74,"send request notification failed: "+ee)}},J||xe,0)},function(){return{batches:K(S),reason:Y,isSync:xe,sendSync:J,sendType:U}},!xe)}}}function Jn(S){var Y=Zx[S];return Ur(Y)||(Y=Jg,S>=9e3&&S<=9999?Y=Xg:S>=8e3&&S<=8999?Y=Ll:S>=1e3&&S<=1999&&(Y=$g)),Y}})}return r.__ieDyn=1,r})()});function sy(r){return r&&r.sendPOST}var ty,RN,ny,YN,wN,iy,bN,oy,im,ga,ON,Tr,ay,LN,FN=w(()=>{"use strict";_();Nt();wr();la();qo();ge();wp();u_();AN();pf();Zp();em();Ms();ty=.25,RN=500,ny=20,YN=6,wN=2,iy=4,bN=2,oy=1,im=1e4,ga="eventsDiscarded",ON="",Tr=void 0,ay=In({eventsLimitInMem:{isVal:uo,v:im},immediateEventLimit:{isVal:uo,v:500},autoFlushEventsLimit:{isVal:uo,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:sy,v:Tr},overrideInstrumentationKey:Tr,overrideEndpointUrl:Tr,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Tr,clearTimeoutOverride:Tr,payloadPreprocessor:Tr,payloadListener:Tr,disableEventTimings:Tr,valueSanitizer:Tr,stringifyObjects:Tr,enableCompoundKey:Tr,disableOptimizeObj:!1,fetchCredentials:Tr,transports:Tr,unloadTransports:Tr,useSendBeacon:Tr,disableFetchKeepAlive:Tr,avoidOptions:!1,xhrTimeout:Tr,disableXhrSync:Tr,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:Vr,v:YN},maxUnloadEventRetryAttempts:{isVal:Vr,v:wN},addNoResponse:Tr,excludeCsMetaData:Tr});LN=(function(r){gt(e,r);function e(){var t=r.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="4.3.4";var n,i=!1,o=[],a,s=!1,u=0,f,l=0,v,d={},E=_a,m,h,g,P,T,I,O,F,V,W,ne,z,k,Z,ce,Ne,M,H,ve,ue,x,de;return Ae(e,t,function(re,Ie){Le(),re._getDbgPlgTargets=function(){return[T,n]},re[pa]=function(c,p,N){cr(p,function(){return"PostChannel:initialize"},function(){Ie[pa](c,p,N),ve=p.getNotifyMgr();try{ce=Mt(Wr(re[Df]),p.evtNamespace&&p.evtNamespace()),re._addHook(Fr(c,function(D){var R=D.cfg,L=_t(null,R,p);n=L.getExtCfg(re[Df],ay),Ne=Hs(n[Wl],n[ql]),ne=!n[cN]&&bl(),M=n[lN],A(p),v=n[Jp],f=n.immediateEventLimit,O=n[Qp],k=n.maxEventRetryAttempts,Z=n.maxUnloadEventRetryAttempts,H=n[_N],ft(R.endpointUrl)?re.pause():s&&re[Ls](),ee(),x=n[vN],de=!!n[dN],ue&&q();var j=R.disablePageUnloadEvents||[];ue=af(st,j,ce),ue=ys(st,j,ce)||ue,ue=Ps(_r,R.disablePageShowEvents,ce)||ue})),T[pa](c,re.core,re)}catch(D){throw re.setInitialized(!1),D}},function(){return{theConfig:c,core:p,extensions:N}})},re.processTelemetry=function(c,p){_f(c,re[Df]),p=p||re._getTelCtx(p);var N=c;!de&&!i&&(x&&(N[Ht]=x),Hr(N,!0),z?C(2,2):ke()),re.processNext(N,p)},re.getOfflineSupport=function(){try{var c=T&&T[Jl]();if(T)return{getUrl:function(){return c?c.url:null},serialize:Ke,batch:Ye,shouldProcess:function(p){return!de},createPayload:function(p){return null},createOneDSPayload:function(p){if(T[Sf])return T[Sf](p,ne)}}}catch{}return null},re._doTeardown=function(c,p){C(2,2),i=!0,T.teardown(),q(),Le()};function q(){sf(null,ce),uf(null,ce),ff(null,ce)}function A(c){var p=c[Fs];c[Fs]=function(){var N=0;return M&&(N=N|2),N|p.call(c)}}function Ye(c){var p=ON;return c&&c[Pe]&&b(c,function(N){p&&(p+=`
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
`):"["+u.join(",")+"]";return f}return null},a[Mf]=function(s,u,f){var l=n.slice(0);s=s||e,u=u||{};var v=f?new km(s,u):new U_(s,u);return b(l,function(d){v[Ri](d)}),v}})}return r.__ieDyn=1,r})(),U_=(function(r){gt(e,r);function e(t,n){var i=r.call(this,t,n)||this;return Ae(e,i,function(o,a){o[qs]=function(s){a[No]()},o[Ha]=function(s){}}),i}return e.__ieDyn=1,e})(Oh),Ty=["AI_buffer","AI_sentBuffer"],km=(function(r){gt(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,s=i?.namePrefix,u=i[Hf]||{getItem:pm,setItem:mm},f=u.getItem,l=u.setItem,v=i.maxRetryCnt;return Ae(e,o,function(d,E){var m=O(e[x_]),h=O(e[Oi]),g=W(),P=h[ho](g),T=d._set(m[ho](P));T[De]>e[$s]&&(T[De]=e[$s]),V(e[Oi],[]),V(e[x_],T),d[Ri]=function(z){if(d[bi]()>=e[$s]){a||(G(n,2,67,"Maximum buffer size reached: "+d[bi](),!0),a=!0);return}z.cnt=z.cnt||0,!(!B(v)&&z.cnt>v)&&(E[Ri](z),V(e.BUFFER_KEY,d[Ks]()))},d[No]=function(){E[No](),V(e.BUFFER_KEY,d[Ks]()),V(e[Oi],[]),a=!1},d[qs]=function(z){V(e[x_],d._set(I(z,d[Ks]())));var k=O(e[Oi]);k instanceof Array&&z instanceof Array&&(k=k[ho](z),k[De]>e[$s]&&(G(n,1,67,"Sent buffer reached its maximum size: "+k[De],!0),k[De]=e[$s]),V(e[Oi],k))},d[Ha]=function(z){var k=O(e[Oi]);k=I(z,k),V(e[Oi],k)},d[Mf]=function(z,k,Z){Z=!!Z;var ce=d[Ks]().slice(0),Ne=O(e[Oi]).slice(0);z=z||n,k=k||{},d[No]();var M=Z?new e(z,k):new U_(z,k);return b(ce,function(H){M[Ri](H)}),Z&&M[qs](Ne),M};function I(z,k){var Z=[],ce=[];return b(z,function(Ne){ce[Zt](Ne[Ws])}),b(k,function(Ne){!se(Ne)&&Fe(ce,Ne[Ws])===-1&&Z[Zt](Ne)}),Z}function O(z){var k=z;return k=s?s+"_"+k:k,F(k)}function F(z){try{var k=f(n,z);if(k){var Z=Kr().parse(k);if(he(Z)&&(Z=Kr().parse(Z)),Z&&Q(Z))return Z}}catch(ce){G(n,1,42," storage key: "+z+", "+ir(ce),{exception:te(ce)})}return[]}function V(z,k){var Z=z;try{Z=s?s+"_"+Z:Z;var ce=JSON[Eo](k);l(n,Z,ce)}catch(Ne){l(n,Z,JSON[Eo]([])),G(n,2,41," storage key: "+Z+", "+ir(Ne)+". Buffer cleared",{exception:te(Ne)})}}function W(){var z=[];try{return b(Ty,function(k){var Z=ne(k);if(z=z[ho](Z),s){var ce=s+"_"+k,Ne=ne(ce);z=z[ho](Ne)}}),z}catch(k){G(n,2,41,"Transfer events from previous buffers: "+ir(k)+". previous Buffer items can not be removed",{exception:te(k)})}return[]}function ne(z){try{var k=F(z),Z=[];return b(k,function(ce){var Ne={item:ce,cnt:0};Z[Zt](Ne)}),Em(n,z),Z}catch{}return[]}}),o}var t;return t=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+t.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,e.MAX_BUFFER_SIZE=2e3,e})(Oh)});var wh,Lh=w(()=>{"use strict";_();wr();We();Do();wh=(function(){function r(e){Ae(r,this,function(t){t[eu]=function(a){var s=n(a,"root");try{return Kr()[Eo](s)}catch(u){G(e,1,48,u&&se(u[Ai])?u[Ai]():"Error serializing object",null,!0)}};function n(a,s){var u="__aiCircularRefCheck",f={};if(!a)return G(e,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),f;if(a[u])return G(e,2,50,"Circular reference detected while serializing object",{name:s},!0),f;if(!a.aiDataContract){if(s==="measurements")f=o(a,"number",s);else if(s==="properties")f=o(a,"string",s);else if(s==="tags")f=o(a,"string",s);else if(Q(a))f=i(a,s);else{G(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Kr()[Eo](a),f=a}catch(l){G(e,1,48,l&&se(l[Ai])?l[Ai]():"Error serializing object",null,!0)}}return f}return a[u]=!0,ae(a.aiDataContract,function(l,v){var d=se(v)?v()&1:v&1,E=se(v)?v()&4:v&4,m=v&2,h=a[l]!==void 0,g=tr(a[l])&&a[l]!==null;if(d&&!h&&!m)G(e,1,24,"Missing required field specification. The field is required but not present on source",{field:l,name:s});else if(!E){var P=void 0;g?m?P=i(a[l],l):P=n(a[l],l):P=a[l],P!==void 0&&(f[l]=P)}}),delete a[u],f}function i(a,s){var u;if(a)if(!Q(a))G(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
|
|
11
11
|
`,{name:s},!0);else{u=[];for(var f=0;f<a[De];f++){var l=a[f],v=n(l,s+"["+f+"]");u[Zt](v)}}return u}function o(a,s,u){var f;return a&&(f={},ae(a,function(l,v){if(s==="string")v===void 0?f[l]="undefined":v===null?f[l]="null":v[Ai]?f[l]=v[Ai]():f[l]="invalid field: toString() is not defined.";else if(s==="number")if(v===void 0)f[l]="undefined";else if(v===null)f[l]="null";else{var d=parseFloat(v);f[l]=d}else f[l]="invalid field: "+u+" is of unknown type.",G(e,1,f[l],null,!0)})),f}})}return r.__ieDyn=1,r})()});var Dy,Fh,Uh=w(()=>{"use strict";_();Do();Dy=8,Fh=(function(){function r(){}return r.prototype.getHashCodeScore=function(e){var t=this.getHashCode(e)/r.INT_MAX_VALUE;return t*100},r.prototype.getHashCode=function(e){if(e==="")return 0;for(;e[De]<Dy;)e=e[ho](e);for(var t=5381,n=0;n<e[De];++n)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})()});var Mh,Hh=w(()=>{"use strict";_();Ci();Do();Uh();Mh=(function(){function r(){var e=this,t=new Fh,n=new Ff;e[F_]=function(i){var o=0;return i[Ir]&&i[Ir][n.userId]?o=t.getHashCodeScore(i[Ir][n.userId]):i.ext&&i.ext.user&&i.ext.user.id?o=t[Dh](i.ext.user.id):i[Ir]&&i[Ir][n.operationId]?o=t.getHashCodeScore(i[Ir][n.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[Ma]?o=t.getHashCodeScore(i.ext.telemetryTrace[Ma]):o=Math.random()*100,o}}return r})()});var Gh,kh=w(()=>{"use strict";_();Ci();We();Do();Hh();Gh=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647;var n=t||di(null);(e>100||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[ru]=e,this.samplingScoreGenerator=new Mh}return r.prototype.isSampledIn=function(e){var t=this[ru],n=!1;return t==null||t>=100||e.baseType===yi[Qt]?!0:(n=this.samplingScoreGenerator[F_](e)<t,n)},r})()});function Vh(r){try{return r.responseText}catch{}return null}function xy(r){return r&&r.sendPOST}function yy(r){return!isNaN(r)&&r>0&&r<=100}var qe,wi,Kn,Bh,Iy,jh,Py,Bf,zh=w(()=>{"use strict";_();Nt();wr();Ci();We();ge();bh();Yh();Lh();kh();Do();Kn=void 0,Bh="",Iy=65e3;jh=In((qe={endpointUrl:Ns(tn,Na+Vn)},qe[Uf]=Xt(),qe[Um]=15e3,qe[Am]=102400,qe.disableTelemetry=Xt(),qe[bm]=Xt(!0),qe.isRetryDisabled=Xt(),qe[A_]=Xt(!0),qe[Ym]=Xt(!0),qe[R_]=Xt(),qe[Om]=Xt(),qe[C_]=Xt(),qe[Zs]=Kn,qe.namePrefix=Kn,qe.samplingPercentage=Ns(yy,100),qe[P_]=Kn,qe[Fm]=Kn,qe[I_]=1e4,qe[Hf]=!1,qe.httpXHROverride={isVal:xy,v:Kn},qe[Rm]=Xt(),qe.transports=Kn,qe.retryCodes=Kn,qe.maxRetryCnt={isVal:Vr,v:10},qe));Py=(wi={},wi[xi.dataType]=Gm,wi[wa.dataType]=Rh,wi[Oa.dataType]=Ch,wi[La.dataType]=Ah,wi[ba.dataType]=yh,wi[yi.dataType]=Ph,wi[Ya.dataType]=xh,wi),Bf=(function(r){gt(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=T_;var n,i,o,a,s,u,f,l,v=0,d,E,m,h,g,P,T,I,O,F,V,W,ne,z,k,Z,ce,Ne,M,H,ve,ue,x,de,re,Ie,q;return Ae(e,t,function(A,Ye){ee(),A.pause=function(){Y(),a=!0},A.resume=function(){a&&(a=!1,i=null,Re(),S())},A.flush=function(c,p,N){if(c===void 0&&(c=!0),!a){Y();try{return A[Xs](c,null,N||1)}catch(D){G(A[Xr](),1,22,"flush failed, telemetry will not be collected: "+ir(D),{exception:te(D)})}}},A.onunloadFlush=function(){if(!a)if(T||H)try{return A[Xs](!0,or,2)}catch(c){G(A[Xr](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ir(c),{exception:te(c)})}else A.flush(!1)},A.addHeader=function(c,p){l[c]=p},A[y_]=function(c,p,N,D){A.isInitialized()&&G(A[Xr](),1,28,"Sender is already initialized"),Ye[y_](c,p,N,D);var R=A.identifier;u=new wh(p.logger),n=0,i=null,o=0,A[Js]=null,f=0;var L=A[Xr]();m=Mt(Wr("Sender"),p.evtNamespace&&p.evtNamespace()),E=Cm(m),A._addHook(Fr(c,function(j){var pe=j.cfg;pe.storagePrefix&&dm(pe.storagePrefix);var be=_t(null,pe,p),fe=be.getExtCfg(R,jh),pt=fe[Qs];if(h&&pt===h){var Qn=pe[Qs];Qn&&Qn!==pt&&(fe[Qs]=Qn)}ft(fe[Zs])&&(fe[Zs]=pe[Zs]),we(A,"_senderConfig",{g:function(){return fe}}),g!==fe[Qs]&&(h=g=fe[Qs]),p.activeStatus()===Ot.PENDING?A.pause():p.activeStatus()===Ot.ACTIVE&&A.resume(),F&&F!==fe[P_]&&b(F,function(Gr){delete l[Gr.header]}),P=fe[Am],T=(fe[C_]===!1||fe[A_]===!1)&&$t(),I=fe[C_]===!1&&$t(),O=fe[A_]===!1&&$t(),H=fe[Rm],ve=!!fe[R_],q=fe.retryCodes;var mt=fe[Hf],Nn=!!fe[bm]&&(!!mt||S_()),Jf=fe.namePrefix,AT=Nn!==Z||Nn&&Ne!==Jf||Nn&&ce!==mt;if(A[Yi]){if(AT)try{A._buffer=A._buffer[Mf](L,fe,Nn)}catch(Gr){G(A[Xr](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+ir(Gr),{exception:te(Gr)})}Re()}else A[Yi]=Nn?new km(L,fe):new U_(L,fe);Ne=Jf,Z=Nn,ce=mt,ue=!fe[Om]&&li(!0),re=!!fe[Ym],A._sample=new Gh(fe.samplingPercentage,L),W=fe[Zs],!ft(W)&&!xe(W,pe)&&G(L,1,100,"Invalid Instrumentation key "+W),F=fe[P_],he(h)&&!m_(h)&&F&&F[De]>0?b(F,function(Gr){t.addHeader(Gr.header,Gr.value)}):F=null,M=fe[wm];var _E=st();Ie?Ie.SetConfig(_E):(Ie=new ua,Ie[y_](_E,L));var Qf=fe.httpXHROverride,Zf=null,uu=null,RT=fi([3,1,2],fe.transports);Zf=Ie&&Ie[Gf](RT,!1);var av=Ie&&Ie.getFallbackInst();x=function(Gr,Ao){return X(av,Gr,Ao)},de=function(Gr,Ao){return X(av,Gr,Ao,!1)},Zf=H?Qf:Zf||Qf||av,A[Js]=function(Gr,Ao){return X(Zf,Gr,Ao)},ue&&(d=Bt);var sv=fi([3,1],fe[Lm]);ue||(sv=sv.filter(function(Gr){return Gr!==2})),uu=Ie&&Ie[Gf](sv,!0),uu=H?Qf:uu||Qf,(H||fe[Lm]||!d)&&uu&&(d=function(Gr,Ao){return X(uu,Gr,Ao)}),d||(d=x),V=fe.disableTelemetry,ne=fe[Fm]||Kn,z=fe.isRetryDisabled,k=fe[Um]}))},A.processTelemetry=function(c,p){var N;p=A._getTelCtx(p);var D=p[Xr]();try{var R=ke(c,D);if(!R)return;var L=Le(c,D);if(!L)return;var j=u[eu](L),pe=A[Yi];Re(j);var be=(N={},N[Ws]=j,N.cnt=0,N);pe[Ri](be),S()}catch(fe){G(D,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ir(fe),{exception:te(fe)})}A.processNext(c,p)},A.isCompletelyIdle=function(){return!a&&v===0&&A._buffer[bi]()===0},A.getOfflineListener=function(){return E},A._xhrReadyStateChange=function(c,p,N){if(!Qr(p))return _r(c,p,N)},A[Xs]=function(c,p,N){c===void 0&&(c=!0);var D;if(!a)try{var R=A[Yi];if(V)R[No]();else{if(R[bi]()>0){var L=R.getItems();_e(N||0,c),p?D=p.call(A,L,c):D=A[Js](L,c)}o=+new Date}Y()}catch(pe){var j=Fu();(!j||j>9)&&G(A[Xr](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+ir(pe),{exception:te(pe)})}return D},A.getOfflineSupport=function(){var c;return c={getUrl:function(){return h},createPayload:C},c[eu]=Xe,c.batch=je,c.shouldProcess=function(p){return!!ke(p)},c},A._doTeardown=function(c,p){A.onunloadFlush(),vi(E,!1),ee()},A[To]=function(c,p,N){if(!Qr(c))return kt(c,p,N)},A[b_]=function(c,p){if(!Qr(c))return Hr(c,p)},A[kf]=function(c,p){if(!Qr(c))return xr(c,p)},A._xdrOnLoad=function(c,p){if(!Qr(p))return Ke(c,p)};function Ke(c,p){var N=Vh(c);if(c&&(N+""=="200"||N===""))n=0,A[kf](p,0);else{var D=sa(N);D&&D[O_]&&D[O_]>D[Y_]&&!z?A[b_](p,D):A[To](p,Qo(c))}}function st(){var c;try{var p={xdrOnComplete:function(D,R,L){var j=ut(L);if(j)return Ke(D,j)},fetchOnComplete:function(D,R,L,j){var pe=ut(j);if(pe)return Me(D.status,pe,D.url,pe[De],D.statusText,L||"")},xhrOnComplete:function(D,R,L){var j=ut(L);if(j)return _r(D,j,j[De])},beaconOnRetry:function(D,R,L){return Jr(D,R,L)}},N=(c={},c[wm]=M,c.isOneDs=!1,c.disableCredentials=!1,c[R_]=ve,c.disableBeacon=!O,c.disableBeaconSync=!I,c.senderOnCompleteCallBack=p,c);return N}catch{}return null}function _r(c,p,N){c.readyState===4&&Me(c.status,p,c.responseURL,N,ui(c),Vh(c)||c.response)}function kt(c,p,N){G(A[Xr](),2,26,"Failed to send telemetry.",{message:p}),A._buffer&&A._buffer[Ha](c)}function Hr(c,p){for(var N=[],D=[],R=p.errors.reverse(),L=0,j=R;L<j.length;L++){var pe=j[L],be=c.splice(pe.index,1)[0];U(pe.statusCode)?D[Zt](be):N[Zt](be)}c[De]>0&&A[kf](c,p[Y_]),N[De]>0&&A[To](N,ui(null,["partial success",p[Y_],"of",p.itemsReceived].join(" "))),D[De]>0&&(Or(D),G(A[Xr](),2,40,"Partial success. Delivered: "+c[De]+", Failed: "+N[De]+". Will retry to send "+D[De]+" our of "+p[O_]+" items"))}function xr(c,p){A._buffer&&A._buffer[Ha](c)}function ut(c){try{if(c){var p=c,N=p[w_];return N&&N[De]?N:null}}catch{}return null}function ke(c,p){if(V)return!1;if(!c)return p&&G(p,1,7,"Cannot send empty telemetry"),!1;if(c.baseData&&!c[L_])return p&&G(p,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(c[L_]||(c[L_]="EventData"),!A[Js])return p&&G(p,1,28,"Sender was not initialized"),!1;if(K(c))c[xf]=A._sample[ru];else return p&&G(p,2,33,"Telemetry item was sampled out and not sent",{SampleRate:A._sample[ru]}),!1;return!0}function Le(c,p){var N=c.iKey||W,D=e.constructEnvelope(c,N,p,ne);if(!D){G(p,1,47,"Unable to create an AppInsights envelope");return}var R=!1;if(c[Ir]&&c[Ir][yf]&&(b(c[Ir][yf],function(L){try{L&&L(D)===!1&&(R=!0,lt(p,"Telemetry processor check returns false"))}catch(j){G(p,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ir(j),{exception:te(j)},!0)}}),delete c[Ir][yf]),!R)return D}function Xe(c){var p=Bh,N=A[Xr]();try{var D=ke(c,N),R=null;D&&(R=Le(c,N)),R&&(p=u[eu](R))}catch{}return p}function je(c){var p=Bh;return c&&c[De]&&(p="["+c.join(",")+"]"),p}function C(c){var p,N=Oe();return p={urlString:h},p[$r]=c,p.headers=N,p}function K(c){return A._sample.isSampledIn(c)}function ie(c,p,N,D){p===200&&c?A._onSuccess(c,c[De]):D&&A[To](c,D)}function X(c,p,N,D){D===void 0&&(D=!0);var R=function(pe,be,fe){return ie(p,pe,be,fe)},L=oe(p),j=c&&c.sendPOST;return j&&L?(D&&A._buffer[qs](p),j(L,R,!N)):null}function oe(c){var p;if(Q(c)&&c[De]>0){var N=A[Yi].batchPayloads(c),D=Oe(),R=(p={},p[$r]=N,p.urlString=h,p.headers=D,p.disableXhrSync=ve,p.disableFetchKeepAlive=!ue,p[w_]=c,p);return R}return null}function Oe(){try{var c=l||{};return m_(h)&&(c[v_[6]]=v_[7]),c}catch{}return null}function Re(c){var p=c?c[De]:0;return A[Yi].size()+p>P?((!E||E.isOnline())&&A[Xs](!0,null,10),!0):!1}function Me(c,p,N,D,R,L){var j=null;if(A._appId||(j=sa(L),j&&j.appId&&(A._appId=j.appId)),(c<200||c>=300)&&c!==0){if((c===301||c===307||c===308)&&!Je(N)){A[To](p,R);return}if(E&&!E.isOnline()){if(!z){var pe=10;Or(p,pe),G(A[Xr](),2,40,". Offline - Response Code: ".concat(c,". Offline status: ").concat(!E.isOnline(),". Will retry to send ").concat(p.length," items."))}return}!z&&U(c)?(Or(p),G(A[Xr](),2,40,". Response code "+c+". Will retry to send "+p[De]+" items.")):A[To](p,R)}else Je(N),c===206?(j||(j=sa(L)),j&&!z?A[b_](p,j):A[To](p,R)):(n=0,A[kf](p,D))}function Je(c){return f>=10?!1:!B(c)&&c!==""&&c!==h?(h=c,++f,!0):!1}function or(c,p){if(d)d(c,!1);else{var N=Ie&&Ie[Gf]([3],!0);return X(N,c,p)}}function Jr(c,p,N){var D=c,R=D&&D[w_];if(re)de&&de(R,!0),G(A[Xr](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var L=[],j=0;j<R[De];j++){var pe=R[j],be=[pe],fe=oe(be);N(fe,p)?A._onSuccess(be,be[De]):L[Zt](pe)}L[De]>0&&(de&&de(L,!0),G(A[Xr](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function Qr(c){try{if(c&&c[De])return he(c[0])}catch{}return null}function Bt(c,p){var N=null;if(Q(c)){for(var D=c[De],R=0;R<c[De];R++)D+=c[R].item[De];var L=Ie.getSyncFetchPayload();L+D<=Iy?N=2:$t()?N=3:(N=1,G(A[Xr](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var j=Ie&&Ie[Gf]([N],!0);return X(j,c,p)}return null}function Or(c,p){if(p===void 0&&(p=1),!(!c||c[De]===0)){var N=A[Yi];N[Ha](c),n++;for(var D=0,R=c;D<R.length;D++){var L=R[D];L.cnt=L.cnt||0,L.cnt++,N[Ri](L)}Jn(p),S()}}function Jn(c){var p=10,N;if(n<=1)N=p;else{var D=(Math.pow(2,n)-1)/2,R=Math.floor(Math.random()*D*p)+1;R=c*R,N=Math.max(Math.min(R,3600),p)}var L=ur()+N*1e3;i=L}function S(){if(!s&&!a){var c=i?Math.max(0,i-ur()):0,p=Math.max(k,c);s=bt(function(){s=null,A[Xs](!0,null,1)},p)}}function Y(){s&&s.cancel(),s=null,i=null}function U(c){return B(q)?c===401||c===408||c===429||c===500||c===502||c===503||c===504:q[De]&&q.indexOf(c)>-1}function J(){var c="getNotifyMgr";return A.core[c]?A.core[c]():A.core._notificationManager}function _e(c,p){var N=J();if(N&&N[Mm])try{N[Mm](c,p)}catch(D){G(A[Xr](),1,74,"send request notification failed: "+ir(D),{exception:te(D)})}}function xe(c,p){var N=p.disableInstrumentationKeyValidation,D=B(N)?!1:N;if(D)return!0;var R="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",L=new RegExp(R);return L.test(c)}function ee(){A[Js]=null,A[Yi]=null,A._appId=null,A._sample=null,l={},E=null,n=0,i=null,o=null,a=!1,s=null,u=null,f=0,v=0,d=null,m=null,h=null,g=null,P=0,T=!1,F=null,V=!1,W=null,ne=Kn,z=!1,Z=null,Ne=Kn,ve=!1,ue=!1,re=!1,x=null,de=null,Ie=null,we(A,"_senderConfig",{g:function(){return jc({},jh)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!B(n)?a=zt(zt({},t),{iKey:n}):a=t;var s=Py[a.baseType]||Gm;return s(i,a,o)},e})(Si)});var Bm=w(()=>{"use strict";_();zh()});var Va,Vf,Vm,ja,jm,tu,Kh=w(()=>{"use strict";_();Va="instrumentationKey",Vf="connectionString",Vm="instrumentationkey",ja="endpointUrl",jm="ingestionendpoint",tu="userOverrideEndpointUrl"});var Wh={};rc(Wh,{AppInsightsCore:()=>gi,ApplicationInsights:()=>Ry,Sender:()=>Bf,SeverityLevel:()=>xm,arrForEach:()=>b,isNullOrUndefined:()=>B,proxyFunctions:()=>Ut,throwError:()=>Sr});function Ay(r){return r&&r>0}var nu,zm,Cy,Ry,qh=w(()=>{"use strict";_();wr();Bm();Ci();We();qo();ge();Kh();We();Ci();Bm();zm=void 0,Cy=(nu={diagnosticLogInterval:Ns(Ay,1e4)},nu[Vf]=zm,nu[ja]=zm,nu[Va]=zm,nu.extensionConfig={},nu);Ry=(function(){function r(e){var t=new gi,n;(B(e)||B(e[Va])&&B(e[Vf]))&&Sr("Invalid input configuration"),Ae(r,this,function(o){we(o,"config",{g:function(){return n}}),a(),o.initialize=a,o.track=i,Ut(o,t,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function a(){var s=Qe(e||{},Cy);n=s.cfg,t.addUnloadHook(Fr(s,function(){var u=n[Vf];if(ft(u)){var f=Ru(function(E,m){Lt(u,function(h){var g=h.value,P=n[Va];if(!h.rejected&&g){n[Vf]=g;var T=Of(g);P=T[Vm]||P}E(P)})}),l=Ru(function(E,m){Lt(u,function(h){var g=h.value,P=n[ja];if(!h.rejected&&g){var T=Of(g),I=T[jm];P=I?I+Vn:P}E(P)})});n[Va]=f,n[ja]=n[tu]||l}if(he(u)){var v=Of(u),d=v[jm];n[ja]=n[tu]?n[tu]:d+Vn,n[Va]=v[Vm]||n[Va]}n[ja]=n[tu]?n[tu]:n[ja]})),t.initialize(n,[new Bf])}});function i(o){o&&(o.baseData=o.baseData||{},o.baseType=o.baseType||"EventData"),t.track(o)}}return r.__ieDyn=1,r})()});var eT=Zr((DM,Zh)=>{"use strict";_();function qn(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function Qh(r,e){for(var t="",n=0,i=-1,o=0,a,s=0;s<=r.length;++s){if(s<r.length)a=r.charCodeAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var u=t.lastIndexOf("/");if(u!==t.length-1){u===-1?(t="",n=0):(t=t.slice(0,u),n=t.length-1-t.lastIndexOf("/")),i=s,o=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=s,o=0;continue}}e&&(t.length>0?t+="/..":t="..",n=2)}else t.length>0?t+="/"+r.slice(i+1,s):t=r.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o!==-1?++o:o=-1}return t}function Yy(r,e){var t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+n:t+r+n:n}var iu={resolve:function(){for(var e="",t=!1,n,i=arguments.length-1;i>=-1&&!t;i--){var o;i>=0?o=arguments[i]:(n===void 0&&(n=process.cwd()),o=n),qn(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Qh(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(qn(e),e.length===0)return".";var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=Qh(e,!t),e.length===0&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return qn(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];qn(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":iu.normalize(e)},relative:function(e,t){if(qn(e),qn(t),e===t||(e=iu.resolve(e),t=iu.resolve(t),e===t))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,o=i-n,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var s=t.length,u=s-a,f=o<u?o:u,l=-1,v=0;v<=f;++v){if(v===f){if(u>f){if(t.charCodeAt(a+v)===47)return t.slice(a+v+1);if(v===0)return t.slice(a+v)}else o>f&&(e.charCodeAt(n+v)===47?l=v:v===0&&(l=0));break}var d=e.charCodeAt(n+v),E=t.charCodeAt(a+v);if(d!==E)break;d===47&&(l=v)}var m="";for(v=n+l+1;v<=i;++v)(v===i||e.charCodeAt(v)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+t.slice(a+l):(a+=l,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(qn(e),e.length===0)return".";for(var t=e.charCodeAt(0),n=t===47,i=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!o){i=a;break}}else o=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');qn(e);var n=0,i=-1,o=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(a=e.length-1;a>=0;--a){var f=e.charCodeAt(a);if(f===47){if(!o){n=a+1;break}}else u===-1&&(o=!1,u=a+1),s>=0&&(f===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=u))}return n===i?i=u:i===-1&&(i=e.length),e.slice(n,i)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!o){n=a+1;break}}else i===-1&&(o=!1,i=a+1);return i===-1?"":e.slice(n,i)}},extname:function(e){qn(e);for(var t=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(u===47){if(!o){n=s+1;break}continue}i===-1&&(o=!1,i=s+1),u===46?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return Yy("/",e)},parse:function(e){qn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var n=e.charCodeAt(0),i=n===47,o;i?(t.root="/",o=1):o=0;for(var a=-1,s=0,u=-1,f=!0,l=e.length-1,v=0;l>=o;--l){if(n=e.charCodeAt(l),n===47){if(!f){s=l+1;break}continue}u===-1&&(f=!1,u=l+1),n===46?a===-1?a=l:v!==1&&(v=1):a!==-1&&(v=-1)}return a===-1||u===-1||v===0||v===1&&a===u-1&&a===s+1?u!==-1&&(s===0&&i?t.base=t.name=e.slice(1,u):t.base=t.name=e.slice(s,u)):(s===0&&i?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};iu.posix=iu;Zh.exports=iu});var Qm=Zr(xo=>{"use strict";_();Object.defineProperty(xo,"__esModule",{value:!0});xo.TargetPopulation=xo.Filters=xo.VSCodeFilterProvider=void 0;var z_=require("vscode"),Jm=class r{constructor(e,t,n){this.extensionName=e,this.extensionVersion=t,this.targetPopulation=n}static trimVersionSuffix(e){let t=/\-[a-zA-Z0-9]+$/;return e.split(t)[0]}getFilterValue(e){switch(e){case Xn.ApplicationVersion:return r.trimVersionSuffix(z_.version);case Xn.Build:return z_.env.appName;case Xn.ClientId:return z_.env.machineId;case Xn.ExtensionName:return this.extensionName;case Xn.ExtensionVersion:return r.trimVersionSuffix(this.extensionVersion);case Xn.Language:return z_.env.language;case Xn.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(Xn);for(let n of t)e.set(n,this.getFilterValue(n));return e}};xo.VSCodeFilterProvider=Jm;var Xn;(function(r){r.Market="X-MSEdge-Market",r.CorpNet="X-FD-Corpnet",r.ApplicationVersion="X-VSCode-AppVersion",r.Build="X-VSCode-Build",r.ClientId="X-MSEdge-ClientId",r.ExtensionName="X-VSCode-ExtensionName",r.ExtensionVersion="X-VSCode-ExtensionVersion",r.Language="X-VSCode-Language",r.TargetPopulation="X-VSCode-TargetPopulation"})(Xn||(xo.Filters=Xn={}));var fT;(function(r){r.Team="team",r.Internal="internal",r.Insiders="insider",r.Public="public"})(fT||(xo.TargetPopulation=fT={}))});var cT=Zr(K_=>{"use strict";_();Object.defineProperty(K_,"__esModule",{value:!0});K_.BaseFeatureProvider=void 0;var Zm=class{constructor(e){this.telemetry=e,this.isFetching=!1}async getFeatures(){if(this.isFetching&&this.fetchPromise)return this.fetchPromise;this.fetchPromise=this.fetch();let e=await this.fetchPromise;return this.isFetching=!1,this.fetchPromise=void 0,e}};K_.BaseFeatureProvider=Zm});var lT=Zr(W_=>{"use strict";_();Object.defineProperty(W_,"__esModule",{value:!0});W_.FilteredFeatureProvider=void 0;var My=cT(),eE=class extends My.BaseFeatureProvider{constructor(e,t){super(e),this.telemetry=e,this.filterProviders=t,this.cachedTelemetryEvents=[]}getFilters(){let e=new Map;for(let t of this.filterProviders){let n=t.getFilters();for(let i of n.keys()){let o=n.get(i);e.set(i,o)}}return e}PostEventToTelemetry(e){if(this.cachedTelemetryEvents.includes(e))return;let t=JSON.stringify(e);this.telemetry.postEvent("report-headers",new Map([["ABExp.headers",t]])),this.cachedTelemetryEvents.push(e)}};W_.FilteredFeatureProvider=eE});var _T=Zr(yo=>{"use strict";_();Object.defineProperty(yo,"__esModule",{value:!0});yo.TasApiFeatureProvider=yo.TASAPI_FETCHERROR_EVENTNAME=void 0;var Hy=lT();yo.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var rE="ErrorType",tE=class extends Hy.FilteredFeatureProvider{constructor(e,t,n){super(t,n),this.httpClient=e,this.telemetry=t,this.filterProviders=n}async fetch(){let e=this.getFilters(),t={};for(let s of e.keys()){let u=e.get(s);t[s]=u}let n;try{n=await this.httpClient.get({headers:t})}catch(s){let u=s,f=new Map;u.responseReceived&&!u.responseOk?f.set(rE,"ServerError"):u.responseReceived===!1?f.set(rE,"NoResponse"):f.set(rE,"GenericError"),this.telemetry.postEvent(yo.TASAPI_FETCHERROR_EVENTNAME,f)}if(!n)throw Error(yo.TASAPI_FETCHERROR_EVENTNAME);e.keys.length>0&&this.PostEventToTelemetry(t);let i=n.data,o=i.Configs,a=[];for(let s of o)if(s.Parameters)for(let u of Object.keys(s.Parameters)){let f=u+(s.Parameters[u]?"":"cf");a.includes(f)||a.push(f)}return{features:a,assignmentContext:i.AssignmentContext,configs:o}}};yo.TasApiFeatureProvider=tE});var vT=Zr(au=>{"use strict";_();Object.defineProperty(au,"__esModule",{value:!0});au.HttpClient=au.FetchError=void 0;var ou=class extends Error{constructor(e,t,n){super(e),this.responseReceived=t,this.responseOk=n}};au.FetchError=ou;var nE=class{constructor(e){this.endpoint=e}async get(e){let t=await fetch(this.endpoint,{method:"GET",headers:e?.headers});if(!t)throw new ou("No response received",!1);if(!t.ok)throw new ou("Response not ok",!0,!1);let n=await t.json();if(!n)throw new ou("No data received",!1);return{data:n}}};au.HttpClient=nE});var dT=Zr(q_=>{"use strict";_();Object.defineProperty(q_,"__esModule",{value:!0});q_.MemoryKeyValueStorage=void 0;var iE=class{constructor(){this.storage=new Map}async getValue(e,t){return this.storage.has(e)?await Promise.resolve(this.storage.get(e)):await Promise.resolve(t||void 0)}setValue(e,t){this.storage.set(e,t)}};q_.MemoryKeyValueStorage=iE});var pT=Zr($_=>{"use strict";_();Object.defineProperty($_,"__esModule",{value:!0});$_.ExperimentationServiceBase=void 0;var Gy=dT(),oE=class{get features(){return this._features}set features(e){this._features=e,this.telemetry&&this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName,this.features.assignmentContext)}constructor(e,t,n,i,o){this.telemetry=e,this.assignmentContextTelemetryPropertyName=t,this.telemetryEventName=n,this.storageKey=i,this.storage=o,this.featuresConsumed=!1,this.cachedTelemetryEvents=[],this._features={features:[],assignmentContext:"",configs:[]},this.storageKey||(this.storageKey="ABExp.Features"),this.storage||(o=new Gy.MemoryKeyValueStorage),this.loadCachePromise=this.loadCachedFeatureData(),this.initializePromise=this.loadCachePromise,this.initialFetch=new Promise((a,s)=>{this.resolveInitialFetchPromise=a})}async getFeaturesAsync(e=!1){if(this.fetchPromise!=null){try{await this.fetchPromise}catch{}return this.features}if(!this.featureProviders||this.featureProviders.length===0)return Promise.resolve({features:[],assignmentContext:"",configs:[]});try{this.fetchPromise=Promise.all(this.featureProviders.map(async n=>await n.getFeatures()));let t=await this.fetchPromise;this.updateFeatures(t,e)}catch{}return this.fetchPromise=void 0,this.resolveInitialFetchPromise&&(this.resolveInitialFetchPromise(),this.resolveInitialFetchPromise=void 0),this.features}updateFeatures(e,t=!1){let n={features:[],assignmentContext:"",configs:[]};for(let i of e){for(let o of i.features)n.features.includes(o)||n.features.push(o);for(let o of i.configs){let a=n.configs.find(s=>s.Id===o.Id);a?a.Parameters=Object.assign(Object.assign({},a.Parameters),o.Parameters):n.configs.push(o)}n.assignmentContext+=i.assignmentContext}(t||!this.featuresConsumed)&&(this.features=n),this.storage&&this.storage.setValue(this.storageKey,n)}async loadCachedFeatureData(){let e;this.storage&&(e=await this.storage.getValue(this.storageKey),e!==void 0&&e.configs===void 0&&(e.configs=[])),this.features.features.length===0&&(this.features=e||{features:[],assignmentContext:"",configs:[]})}isFlightEnabled(e){return this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isCachedFlightEnabled(e){return await this.loadCachePromise,this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isFlightEnabledAsync(e){let t=await this.getFeaturesAsync(!0);return this.featuresConsumed=!0,this.PostEventToTelemetry(e),t.features.includes(e)}getTreatmentVariable(e,t){this.featuresConsumed=!0,this.PostEventToTelemetry(`${e}.${t}`);let n=this.features.configs.find(i=>i.Id===e);return n?.Parameters[t]}async getTreatmentVariableAsync(e,t,n){if(n){let i=this.featuresConsumed,o=this.getTreatmentVariable(e,t);if(o===void 0)this.featuresConsumed=i;else return o}return await this.getFeaturesAsync(!0),this.getTreatmentVariable(e,t)}PostEventToTelemetry(e){this.cachedTelemetryEvents.includes(e)||(this.telemetry.postEvent(this.telemetryEventName,new Map([["ABExp.queriedFeature",e]])),this.cachedTelemetryEvents.push(e))}invokeInit(){this.init()}addFeatureProvider(...e){if(!(e==null||this.featureProviders==null))for(let t of e)this.featureProviders.push(t)}};$_.ExperimentationServiceBase=oE});var mT=Zr(X_=>{"use strict";_();Object.defineProperty(X_,"__esModule",{value:!0});X_.PollingService=void 0;var aE=class{constructor(e){this.fetchInterval=e}StopPolling(){clearInterval(this.intervalHandle),this.intervalHandle=void 0}OnPollTick(e){this.onTick=e}StartPolling(e=!1){this.intervalHandle&&this.StopPolling(),this.onTick!=null&&(e&&this.onTick().then(()=>{}).catch(()=>{}),this.intervalHandle=setInterval(async()=>{await this.onTick()},this.fetchInterval),this.intervalHandle.unref&&this.intervalHandle.unref())}};X_.PollingService=aE});var ET=Zr(J_=>{"use strict";_();Object.defineProperty(J_,"__esModule",{value:!0});J_.ExperimentationServiceAutoPolling=void 0;var ky=pT(),By=mT(),sE=class extends ky.ExperimentationServiceBase{constructor(e,t,n,i,o,a,s){if(super(e,i,o,a,s),this.telemetry=e,this.filterProviders=t,this.refreshRateMs=n,this.assignmentContextTelemetryPropertyName=i,this.telemetryEventName=o,this.storageKey=a,this.storage=s,n<1e3&&n!==0)throw new Error("The minimum refresh rate for polling is 1000 ms (1 second). If you wish to deactivate this auto-polling use value of 0.");n>0&&(this.pollingService=new By.PollingService(n),this.pollingService.OnPollTick(async()=>{await super.getFeaturesAsync()}))}init(){this.pollingService?this.pollingService.StartPolling(!0):super.getFeaturesAsync()}async getFeaturesAsync(e=!1){if(this.pollingService){this.pollingService.StopPolling();let t=await super.getFeaturesAsync(e);return this.pollingService.StartPolling(),t}else return await super.getFeaturesAsync(e)}};J_.ExperimentationServiceAutoPolling=sE});var ST=Zr(Z_=>{"use strict";_();Object.defineProperty(Z_,"__esModule",{value:!0});Z_.ExperimentationService=void 0;var Vy=_T(),jy=vT(),zy=ET(),Q_=class extends zy.ExperimentationServiceAutoPolling{constructor(e){super(e.telemetry,e.filterProviders||[],e.refetchInterval!=null?e.refetchInterval:0,e.assignmentContextTelemetryPropertyName,e.telemetryEventName,e.storageKey,e.keyValueStorage),this.options=e,this.invokeInit()}init(){this.featureProviders=[],this.addFeatureProvider(new Vy.TasApiFeatureProvider(new jy.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};Z_.ExperimentationService=Q_;Q_.REFRESH_RATE_IN_MINUTES=30});var gT=Zr(ev=>{"use strict";_();Object.defineProperty(ev,"__esModule",{value:!0});ev.ExperimentationService=void 0;var Ky=ST();Object.defineProperty(ev,"ExperimentationService",{enumerable:!0,get:function(){return Ky.ExperimentationService}})});var NT=Zr(rv=>{"use strict";_();Object.defineProperty(rv,"__esModule",{value:!0});rv.MementoKeyValueStorage=void 0;var uE=class{constructor(e){this.mementoGlobalStorage=e}async getValue(e,t){return await this.mementoGlobalStorage.get(e)||t}setValue(e,t){this.mementoGlobalStorage.update(e,t)}};rv.MementoKeyValueStorage=uE});var hT=Zr(cE=>{"use strict";_();Object.defineProperty(cE,"__esModule",{value:!0});var fE=class{constructor(){this.initializePromise=Promise.resolve(),this.initialFetch=Promise.resolve()}isFlightEnabled(e){return!1}isCachedFlightEnabled(e){return Promise.resolve(!1)}isFlightEnabledAsync(e){return Promise.resolve(!1)}getTreatmentVariable(e,t){}getTreatmentVariableAsync(e,t){return Promise.resolve(void 0)}};cE.default=fE});var DT=Zr(su=>{"use strict";_();Object.defineProperty(su,"__esModule",{value:!0});su.getExperimentationServiceAsync=su.getExperimentationService=void 0;var Wy=Qm(),qy=gT(),lE=require("vscode"),$y=NT(),Xy=hT(),Jy="https://default.exp-tas.com/vscode/ab",Qy="query-expfeature",Zy="abexp.assignmentcontext",e0="VSCode.ABExp.FeatureData",r0=1e3*60*30;function TT(r,e,t,n,i,...o){if(!i)throw new Error("Memento storage was not provided.");let a=lE.workspace.getConfiguration("telemetry");if(!(lE.env.isTelemetryEnabled===void 0?a.get("enableTelemetry",!0):lE.env.isTelemetryEnabled))return new Xy.default;let f=[new Wy.VSCodeFilterProvider(r,e,t),...o],l=new $y.MementoKeyValueStorage(i);return new qy.ExperimentationService({filterProviders:f,telemetry:n,storageKey:e0,keyValueStorage:l,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:Zy,telemetryEventName:Qy,endpoint:Jy,refetchInterval:r0})}su.getExperimentationService=TT;async function t0(r,e,t,n,i,...o){let a=TT(r,e,t,n,i,...o);return await a.initializePromise,a}su.getExperimentationServiceAsync=t0});var xT=Zr(Po=>{"use strict";_();Object.defineProperty(Po,"__esModule",{value:!0});Po.TargetPopulation=Po.getExperimentationServiceAsync=Po.getExperimentationService=void 0;var IT=DT();Object.defineProperty(Po,"getExperimentationService",{enumerable:!0,get:function(){return IT.getExperimentationService}});Object.defineProperty(Po,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return IT.getExperimentationServiceAsync}});var n0=Qm();Object.defineProperty(Po,"TargetPopulation",{enumerable:!0,get:function(){return n0.TargetPopulation}})});var u0={};rc(u0,{activate:()=>s0});module.exports=FT(u0);_();var $e=Fi(require("vscode"));_();var at=Fi(require("vscode"));_();var jf=Fi(require("vscode"));_();var uy=async(r,e,t)=>{let n=await Promise.resolve().then(()=>(la(),qg)),i=await Promise.resolve().then(()=>(MN(),UN)),o=new n.AppInsightsCore,a=new i.PostChannel,s={instrumentationKey:r,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(t){s.extensionConfig={};let l={alwaysUseXhrOverride:!0,httpXHROverride:t};s.extensionConfig[a.identifier]=l}let f=e.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer(l=>{l.ext=l.ext??{},l.ext.web=l.ext.web??{},l.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',f&&(l.ext.utc=l.ext.utc??{},l.ext.utc.flags=8462029)}),o},HN=async(r,e,t)=>{let n=await uy(r,e,t);return{logEvent:(a,s)=>{try{n?.track({name:a,baseData:{name:a,properties:s?.properties,measurements:s?.measurements}})}catch(u){throw new Error(`Failed to log event to app insights!
|
|
12
12
|
`+u.message)}},flush:async()=>{try{return new Promise((s,u)=>{if(!n){s();return}n.flush(!0,f=>{if(!f){u("Failed to flush app 1DS!");return}})})}catch(a){throw new Error(`Failed to flush 1DS!
|
|
13
|
-
`+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};_();Ci();_();var Ua=class r{static applyReplacements(e,t){for(let n of Object.keys(e))for(let i of t)i.lookup.test(n)&&(i.replacementString!==void 0?e[n]=i.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return e.length===74&&e[32]==="-"&&e[41]==="-"&&e[46]==="-"&&e[51]==="-"&&e[56]==="-"&&e[69]==="-"}static getAdditionalCommonProperties(e){return{"common.os":e.platform,"common.nodeArch":e.architecture,"common.platformversion":(e.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.9.8"}}static getInstance(){return r._instance||(r._instance=new r),r._instance}};var $h=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>(qh(),Wh)),u={};if(n){let v={alwaysUseXhrOverride:!0,httpXHROverride:n};u[T_]=v}let f;r.startsWith("InstrumentationKey=")||(f=r);let l=f?{instrumentationKey:f}:{connectionString:r};o=new s.ApplicationInsights({...l,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0,extensionConfig:u})}catch(s){return Promise.reject(s)}return{logEvent:(s,u)=>{let f={...u?.properties,...u?.measurements};i?.length&&Ua.applyReplacements(f,i),o?.track({name:s,data:f,baseType:"EventData",ext:{user:{id:e,authId:e},app:{sesId:t}},baseData:{name:s,properties:u?.properties,measurements:u?.measurements}})},flush:async()=>{o?.flush(!1)},dispose:async()=>new Promise(u=>{o?.unload(!0,()=>{u(),o=void 0},1e3)})}};_();var M_=class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates(()=>{this.updateUserOptIn()})}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n})}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1)}sendRawTelemetryEvent(e,t,n){let i={...t};for(let o of Object.keys(i??{})){let a=i[o];typeof o=="string"&&a!==void 0&&(i[o]=new this.vscodeAPI.TelemetryTrustedValue(typeof a=="string"?a:a.value))}this.sendTelemetryEvent(e,i,n)}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0)}internalSendTelemetryErrorEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n})}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1)}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0)}async dispose(){return await this.telemetrySender.dispose(),this.telemetryLogger.dispose(),Promise.all(this.disposables.map(e=>e.dispose()))}};_();var Li;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Li||(Li={}));var H_=class{constructor(e,t){this._instantiationStatus=Li.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Li.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Li.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t});return}let n={stack:e.stack,message:e.message,name:e.name};if(t){let i=t.properties||t;t.properties={...i,...n}}else t={properties:n};this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){this._telemetryClient&&(await this._telemetryClient.dispose(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach(({eventName:e,data:t})=>this.sendEventData(e,t)),this._eventQueue=[],this._exceptionQueue.forEach(({exception:e,data:t})=>this.sendErrorData(e,t)),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===Li.NOT_INSTANTIATED&&(this._instantiationStatus=Li.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Li.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Li.INSTANTIATED}))}};function by(r){if(r.userAgentData){let e=r.userAgentData.brands[r.userAgentData.brands.length-1];return`${r.userAgentData.platform} - ${e?.brand} v${e?.version}}`}else return r.userAgent.replace(/(\d+\.\d+)(\.\d+)+/g,"$1")}var zf=class extends M_{constructor(e,t){let n=a=>$h(a,jf.env.machineId,jf.env.sessionId,void 0,t);Ua.shouldUseOneDataSystemSDK(e)&&(n=a=>HN(a,jf));let i={release:by(navigator),platform:"web",architecture:"web"},o=new H_(e,n);if(e&&e.indexOf("AIF")===0)throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(o,jf,{additionalCommonProperties:Ua.getAdditionalCommonProperties(i)})}};_();var G_=class{constructor(e,t,n){this.context=e;this.serviceId=t;this.Logger=n}async setToken(e){try{return await this.context.secrets.store(this.serviceId,e)}catch(t){this.Logger.error(`Setting token failed: ${t}`)}}async getToken(){try{let e=await this.context.secrets.get(this.serviceId);return e&&e!=="[]"&&this.Logger.trace("Token acquired from secret storage."),e}catch(e){return this.Logger.error(`Getting token failed: ${e}`),Promise.resolve(void 0)}}async deleteToken(){try{return await this.context.secrets.delete(this.serviceId)}catch(e){return this.Logger.error(`Deleting token failed: ${e}`),Promise.resolve(void 0)}}};_();var Ue=Fi(require("vscode"));_();var Oy=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function Xh(r){return Oy.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function Kf(r,e){return r==="github"||Km(e)}function Km(r){return/\.ghe\.com$/.test(r.authority)}_();var za=globalThis.crypto;_();var Wn=fetch;_();var tT=Fi(eT()),Se=require("vscode");_();var Gt={gitHubClientId:"01ab8ac9400c4e429b23"};_();var k_=class{constructor(...e){throw new Error("Not implemented")}};_();var rT=require("vscode");var wy=(r,e)=>e(r);function Wf(r,e=wy){let t,n=new rT.EventEmitter;return{promise:new Promise((i,o)=>{n.event(a=>o("Cancelled")),t=r(a=>{try{Promise.resolve(e(a,i,o)).catch(o)}catch(s){o(s)}})}).then(i=>(t.dispose(),i),i=>{throw t.dispose(),i}),cancel:n}}function Wm(r,e,t=(n,i)=>n===i){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,i=r.length;n<i;n++)if(!t(r[n],e[n]))return!1;return!0}_();var qf="Timed out",$n="User Cancelled",B_="network error",V_="Cancelled";function nT(r){let e=new Uint8Array(r);return za.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function iT(r){let t=new TextEncoder().encode(r),n=await za.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function oT(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=Gt.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",Gt.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await Wn(e.toString(!0),{logger:r,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:s.toString()});if(u.ok){let f=await u.json();return r.info("Token exchange success!"),f.access_token}else{let f=await u.text(),l=new Error(f);throw l.name="GitHubTokenExchangeError",l}}var qm=class{label=Se.l10n.t("url handler");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!1};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,nonce:a,signInProvider:s,extraAuthorizeParameters:u,uriHandler:f,existingLogin:l,logger:v}){return v.info(`Trying without local server... (${e})`),await Se.window.withProgress({location:Se.ProgressLocation.Notification,title:Se.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(d,E)=>{let m=nT(64),h=await iT(m),g=f.waitForCode(v,e,a,E),P=new URLSearchParams([["client_id",Gt.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",h],["code_challenge_method","S256"]]);if(l?P.append("login",l):P.append("prompt","select_account"),s&&P.append("provider",s),u)for(let[W,ne]of Object.entries(u))P.append(W,ne);let T=Se.Uri.parse(t.with({path:"/login/oauth/authorize",query:P.toString()}).toString(!0));await Se.env.openExternal(T);let I=await g,O=await Se.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),F=O?.github?Se.Uri.parse(`${O.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await oT(v,F,n,I,m,o)})}},$m=class{label=Se.l10n.t("local server");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!1,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,signInProvider:a,extraAuthorizeParameters:s,existingLogin:u,logger:f}){return f.info(`Trying with local server... (${e})`),await Se.window.withProgress({location:Se.ProgressLocation.Notification,title:Se.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(l,v)=>{let d=nT(64),E=await iT(d),m=new URLSearchParams([["client_id",Gt.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",E],["code_challenge_method","S256"]]);if(u?m.append("login",u):m.append("prompt","select_account"),a&&m.append("provider",a),s)for(let[O,F]of Object.entries(s))m.append(O,F);let h=t.with({path:"/login/oauth/authorize",query:m.toString()}),g=new k_(tT.join(__dirname,"../media"),h.toString(!0),i.toString(!0),Se.env.isAppPortable),P=await g.start(),T;try{Se.env.openExternal(Se.Uri.parse(`http://127.0.0.1:${P}/signin?nonce=${encodeURIComponent(g.nonce)}`));let{code:O}=await Promise.race([g.waitForOAuthResponse(),new Promise((F,V)=>setTimeout(()=>V(qf),3e5)),Wf(v.onCancellationRequested,(F,V,W)=>{W($n)}).promise]);T=O}finally{setTimeout(()=>{g.stop()},5e3)}return await oT(f,t.with({path:"/login/oauth/access_token"}),n,T,d,o)})}},$f=class{label=Se.l10n.t("device code");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!0,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,signInProvider:n,extraAuthorizeParameters:i,logger:o}){o.info(`Trying device code flow... (${e})`);let a=t.with({path:"/login/device/code",query:`client_id=${Gt.gitHubClientId}&scope=${e}`}),s=await Wn(a.toString(!0),{logger:o,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}});if(!s.ok)throw new Error(`Failed to get one-time code: ${await s.text()}`);let u=await s.json(),f=Se.l10n.t("Copy & Continue to Browser");if(await Se.window.showInformationMessage(Se.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:Se.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},f)!==f)throw new Error($n);await Se.env.clipboard.writeText(u.user_code);let v=Se.Uri.parse(u.verification_uri),d=new URLSearchParams(v.query);if(n&&d.set("provider",n),i)for(let[m,h]of Object.entries(i))d.set(m,h);(n||i)&&(v=v.with({query:d.toString()}));let E=await Se.env.asExternalUri(v);return await Se.env.openExternal(E),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await Se.window.withProgress({location:Se.ProgressLocation.Notification,cancellable:!0,title:Se.l10n.t({message:"Open [{0}]({0}) in a new tab and paste your one-time code: {1}",args:[n.verification_uri,n.user_code],comment:["The [{0}]({0}) will be a url and the {1} will be a code, e.g. 123-456",'{Locked="[{0}]({0})"}']})},async(i,o)=>{let a=t.with({path:"/login/oauth/access_token",query:`client_id=${Gt.gitHubClientId}&device_code=${n.device_code}&grant_type=urn:ietf:params:oauth:grant-type:device_code`}),s=120/n.interval;for(let u=0;u<s;u++){if(await new Promise(v=>setTimeout(v,n.interval*1e3)),o.isCancellationRequested)throw new Error($n);let f;try{f=await Wn(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!f.ok)continue;let l=await f.json();if(l.error!=="authorization_pending"){if(l.error)throw new Error(l.error_description);return l.access_token}}throw new Error(qf)})}},Xm=class{label=Se.l10n.t("personal access token");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!0,supportsSupportedClients:!1,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,logger:n,enterpriseUri:i}){n.info(`Trying to retrieve PAT... (${e})`);let o=Se.l10n.t("Continue to GitHub");if(await Se.window.showInformationMessage(Se.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:Se.l10n.t("To finish authenticating, navigate to GitHub to create a PAT then paste the PAT into the input box.")},o)!==o)throw new Error($n);let s=`${Se.env.appName} (${e})`,u=await Se.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await Se.env.openExternal(u);let f=await Se.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!f)throw new Error($n);let l=!i||Km(i)?Se.Uri.parse(`${t.scheme}://api.${t.authority}`):Se.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),v=await this.getScopes(f,l,n);if(!e.split(" ").every(E=>{let m=v.includes(E);return m||!E.includes(":")?m:E.split(":").some(h=>v.includes(h))}))throw new Error(`The provided token does not match the requested scopes: ${e}`);return f}async getScopes(e,t,n){try{n.info("Getting token scopes...");let i=await Wn(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${Se.env.appName} (${Se.env.appHost})`}});if(i.ok){let o=i.headers.get("X-OAuth-Scopes");return o?o.split(",").map(a=>a.trim()):[]}else throw n.error(`Getting scopes failed: ${i.statusText}`),new Error(i.statusText)}catch(i){throw n.error(i.message),new Error(B_)}}},Ly=[new $m,new qm,new $f,new Xm];function aT(r){let e=Ly.filter(n=>{let i=!0;switch(r.target){case 0:i&&=n.options.supportsGitHubDotCom;break;case 1:i&&=n.options.supportsGitHubEnterpriseServer;break;case 2:i&&=n.options.supportsHostedGitHubEnterprise;break}switch(r.extensionHost){case 1:i&&=n.options.supportsRemoteExtensionHost;break;case 0:i&&=n.options.supportsWebWorkerExtensionHost;break}return Gt.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return Se.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof $f),...e.filter(n=>!(n instanceof $f))]:e}function sT(r){return r==="google"||r==="apple"}_();function uT(r){return btoa(r)}var Fy="https://vscode.dev/redirect",Uy="https://insiders.vscode.dev/redirect",j_=class{constructor(e,t,n,i,o){this._logger=e;this._telemetryReporter=t;this._uriHandler=n;this._extensionKind=i;this._ghesUri=o;this._type=o?"github-enterprise":"github",this.friendlyName=this._type==="github"?"GitHub":o?.authority}friendlyName;_type;_redirectEndpoint;get baseUri(){return this._type==="github"?Ue.Uri.parse("https://github.com/"):this._ghesUri}async getRedirectEndpoint(){if(this._redirectEndpoint)return this._redirectEndpoint;if(this._type==="github"){let e=await Ue.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints");this._redirectEndpoint=Fy,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=Uy)}else this._redirectEndpoint="https://vscode.dev/redirect";return this._redirectEndpoint}_isNoCorsEnvironment;async isNoCorsEnvironment(){if(this._isNoCorsEnvironment!==void 0)return this._isNoCorsEnvironment;let e=await Ue.env.asExternalUri(Ue.Uri.parse(`${Ue.env.uriScheme}://vscode.github-authentication/dummy`));return this._isNoCorsEnvironment=e.scheme==="https"&&/^((insiders\.)?vscode|github)\./.test(e.authority)||e.scheme==="http"&&/^localhost/.test(e.authority),this._isNoCorsEnvironment}async login(e,t,n,i){this._logger.info(`Logging in for the following scopes: ${e}`);let o,a=Ue.l10n.t("Yes"),s=Ue.l10n.t("No"),u=async h=>{if(o===void 0)return;let g=o?Ue.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",h):Ue.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",h);if(await Ue.window.showWarningMessage(g,a,s)!==a)throw new Error(V_)},f=za.getRandomValues(new Uint32Array(2)).reduce((h,g)=>h+=g.toString(16),""),l=await Ue.env.asExternalUri(Ue.Uri.parse(`${Ue.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(f)}`)),v=Xh(l),d=Kf(this._type,this._ghesUri),E=typeof process<"u"&&typeof process?.versions?.node=="string",m=aT({target:this._type==="github"?0:d?2:1,extensionHost:E?this._extensionKind===Ue.ExtensionKind.UI?2:1:0,isSupportedClient:v});for(let h of m)try{return h!==m[0]&&await u(h.label),await h.trigger({scopes:e,callbackUri:l,nonce:f,signInProvider:t,extraAuthorizeParameters:n,baseUri:this.baseUri,logger:this._logger,uriHandler:this._uriHandler,enterpriseUri:this._ghesUri,redirectUri:Ue.Uri.parse(await this.getRedirectEndpoint()),existingLogin:i})}catch(g){o=this.processLoginError(g)}throw new Error(o?V_:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!Gt.gitHubClientSecret){this._logger.warn("No client secret configured for GitHub authentication. The token has been deleted with best effort on this system, but we are unable to delete the token on server without the client secret.");return}if(!e.accessToken.startsWith("gho_")){this._logger.warn("The token being deleted is not an OAuth token. It has been deleted locally, but we cannot delete it on server.");return}if(!Kf(this._type,this._ghesUri)){this._logger.trace("GitHub.com and GitHub hosted GitHub Enterprise are the only options that support deleting tokens on the server. Skipping.");return}let t="Basic "+uT(`${Gt.gitHubClientId}:${Gt.gitHubClientSecret}`),n=this.getServerUri(`/applications/${Gt.gitHubClientId}/token`);try{let i=await Wn(n.toString(!0),{logger:this._logger,retryFallbacks:!0,expectJSON:!1,method:"DELETE",headers:{Accept:"application/vnd.github+json",Authorization:t,"X-GitHub-Api-Version":"2022-11-28","User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`},body:JSON.stringify({access_token:e.accessToken})});if(i.status===204){this._logger.trace(`Successfully deleted token from session (${e.id}) from server.`);return}try{let o=await i.text();throw new Error(o)}catch{throw new Error(`${i.status} ${i.statusText}`)}}catch(i){this._logger.warn("Failed to delete token from server."+(i.message??i))}}getServerUri(e=""){let t=this.baseUri;return Kf(this._type,this._ghesUri)?Ue.Uri.parse(`${t.scheme}://api.${t.authority}`).with({path:e}):Ue.Uri.parse(`${t.scheme}://${t.authority}/api/v3${e}`)}async getUserInfo(e){let t;try{this._logger.info("Getting user info..."),t=await Wn(this.getServerUri("/user").toString(),{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e}`,"User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`}})}catch(n){throw this._logger.error(n.message),new Error(B_)}if(t.ok)try{let n=await t.json();return this._logger.info("Got account info!"),{id:`${n.id}`,accountName:n.login}}catch(n){throw this._logger.error(`Unexpected error parsing response from GitHub: ${n.message??n}`),n}else{let n=t.statusText;try{let i=await t.json();i.message&&(n=i.message)}catch{}throw this._logger.error(`Getting account info failed: ${n}`),new Error(n)}}async sendAdditionalTelemetryInfo(e){if(!(!Ue.env.isTelemetryEnabled||await this.isNoCorsEnvironment())){if(this._type==="github")return await this.checkUserDetails(e);await this.checkEnterpriseVersion(e.accessToken)}}async checkUserDetails(e){let t;try{let n=await Wn("https://education.github.com/api/user",{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e.accessToken}`,"faculty-check-preview":"true","User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`}});if(n.ok){let i=await n.json();t=i.student?"student":i.faculty?"faculty":"none"}else this._logger.info(`Unable to resolve optional EDU details. Status: ${n.status} ${n.statusText}`),t="unknown"}catch(n){this._logger.info(`Unable to resolve optional EDU details. Error: ${n}`),t="unknown"}this._telemetryReporter.sendTelemetryEvent("session",{isEdu:t,isManaged:e.account.label.includes("_")?"true":"false"})}async checkEnterpriseVersion(e){try{let t;if(Kf(this._type,this._ghesUri))t="hosted";else{let n=await Wn(this.getServerUri("/meta").toString(),{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e}`,"User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`}});if(!n.ok)return;t=(await n.json()).installed_version}this._telemetryReporter.sendTelemetryEvent("ghe-session",{version:t})}catch{}}processLoginError(e){if(e.message===V_)throw e;return this._logger.error(e.message??e),e.message===$n}};_();var yT=Fi(require("vscode")),Co=Fi(xT()),tv=class{constructor(e,t){this.context=e;this.baseReporter=t}sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(yT.env.uriScheme){case"vscode":e=Co.TargetPopulation.Public;break;case"vscode-insiders":e=Co.TargetPopulation.Insiders;break;case"vscode-exploration":e=Co.TargetPopulation.Internal;break;case"code-oss":e=Co.TargetPopulation.Team;break;default:e=Co.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,Co.getExperimentationService)(t,n,e,this,this.context.globalState);return await i.initialFetch,i}async sendTelemetryEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryEvent(e,{...this.sharedProperties,...t},n)}async sendTelemetryErrorEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryErrorEvent(e,{...this.sharedProperties,...t})}setSharedProperty(e,t){this.sharedProperties[e]=t}postEvent(e,t){let n={};for(let[i,o]of t)n[i]=o;this.sendTelemetryEvent(e,n)}dispose(){return this.baseReporter.dispose()}};_();var PT=Fi(require("vscode"));var nv=class{constructor(e){this.type=e;let t=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=PT.window.createOutputChannel(`${t} Authentication`,{log:!0})}output;trace(e){this.output.trace(e)}debug(e){this.output.debug(e)}info(e){this.output.info(e)}error(e){this.output.error(e)}warn(e){this.output.warn(e)}};function i0(r){if(!r||typeof r!="object")throw new Error("Options are not an object");if(r.provider!==void 0&&!sT(r.provider))throw new Error(`Provider is invalid: ${r.provider}`);if(r.extraAuthorizeParameters!==void 0){if(!r.extraAuthorizeParameters||typeof r.extraAuthorizeParameters!="object")throw new Error("Extra parameters must be a record of string keys and string values.");for(let[e,t]of Object.entries(r.extraAuthorizeParameters))if(typeof e!="string"||typeof t!="string")throw new Error("Extra parameters must be a record of string keys and string values.")}return!0}var iv=class extends at.EventEmitter{_pendingNonces=new Map;_codeExchangePromises=new Map;handleUri(e){this.fire(e)}async waitForCode(e,t,n,i){let o=this._pendingNonces.get(t)||[];this._pendingNonces.set(t,[...o,n]);let a=this._codeExchangePromises.get(t);a||(a=Wf(this.event,this.handleEvent(e,t)),this._codeExchangePromises.set(t,a));try{return await Promise.race([a.promise,new Promise((s,u)=>setTimeout(()=>u(qf),3e5)),Wf(i.onCancellationRequested,(s,u,f)=>{f($n)}).promise])}finally{this._pendingNonces.delete(t),a?.cancel.fire(),this._codeExchangePromises.delete(t)}}handleEvent=(e,t)=>(n,i,o)=>{let a=new URLSearchParams(n.query),s=a.get("code"),u=a.get("nonce");if(!s){o(new Error("No code"));return}if(!u){o(new Error("No nonce"));return}if(!(this._pendingNonces.get(t)||[]).includes(u)){e.info("Nonce not found in accepted nonces. Skipping this execution...");return}i(s)}},Xf=class{constructor(e,t,n){this.context=e;let{aiKey:i}=e.extension.packageJSON;this._telemetryReporter=new tv(e,new zf(i));let o=n?"github-enterprise":"github";this._logger=new nv(o),this._keychain=new G_(this.context,o==="github"?`${o}.auth`:`${n?.authority}${n?.path}.ghes.auth`,this._logger),this._githubServer=new j_(this._logger,this._telemetryReporter,t,e.extension.extensionKind,n),this._sessionsPromise=this.readSessions().then(s=>(setTimeout(()=>s.forEach(u=>this.afterSessionLoad(u)),1e3),s));let a=n?[at.Uri.joinPath(n,"/login/oauth")]:[at.Uri.parse("https://github.com/login/oauth")];this._disposable=at.Disposable.from(this._telemetryReporter,at.authentication.registerAuthenticationProvider(o,this._githubServer.friendlyName,this,{supportsMultipleAccounts:!0,supportedAuthorizationServers:a}),this.context.secrets.onDidChange(()=>this.checkForUpdates()))}_sessionChangeEmitter=new at.EventEmitter;_logger;_githubServer;_telemetryReporter;_keychain;_accountsSeen=new Set;_disposable;_sessionsPromise;dispose(){this._disposable?.dispose()}get onDidChangeSessions(){return this._sessionChangeEmitter.event}async getSessions(e,t){let n=e?.sort()||[];this._logger.info(`Getting sessions for ${n.length?n.join(","):"all scopes"}...`);let i=await this._sessionsPromise,o=t?.account?i.filter(s=>s.account.label===t.account?.label):i,a=n.length?o.filter(s=>Wm([...s.scopes].sort(),n)):o;return this._logger.info(`Got ${a.length} sessions for ${n?.join(",")??"all scopes"}...`),a}async afterSessionLoad(e){this._accountsSeen.has(e.account.id)||(this._accountsSeen.add(e.account.id),this._githubServer.sendAdditionalTelemetryInfo(e))}async checkForUpdates(){let e=await this._sessionsPromise;this._sessionsPromise=this.readSessions();let t=await this._sessionsPromise,n=[],i=[];t.forEach(o=>{e.some(s=>s.id===o.id)||(this._logger.info("Adding session found in keychain"),n.push(o))}),e.forEach(o=>{t.some(s=>s.id===o.id)||(this._logger.info("Removing session no longer found in keychain"),i.push(o))}),(n.length||i.length)&&this._sessionChangeEmitter.fire({added:n,removed:i,changed:[]})}async readSessions(){let e;try{this._logger.info("Reading sessions from keychain...");let a=await this._keychain.getToken();if(!a)return[];this._logger.info("Got stored sessions!");try{e=JSON.parse(a)}catch(s){throw await this._keychain.deleteToken(),s}}catch(a){return this._logger.error(`Error reading token: ${a}`),[]}let t=!1,n=new Set,i=e.map(async a=>{let s=[...a.scopes].sort().join(" "),u;if(!a.account)try{u=await this._githubServer.getUserInfo(a.accessToken),this._logger.info(`Verified session with the following scopes: ${s}`)}catch(l){if(l.message==="Unauthorized")return}this._logger.trace(`Read the following session from the keychain with the following scopes: ${s}`),n.add(s);let f;return a.account?.id?(typeof a.account.id=="number"&&(t=!0),f=`${a.account.id}`):f=u?.id??"<unknown>",{id:a.id,account:{label:a.account?a.account.label??a.account.displayName??"<unknown>":u?.accountName??"<unknown>",id:f},scopes:a.scopes,accessToken:a.accessToken}}),o=(await Promise.allSettled(i)).filter(a=>a.status==="fulfilled").map(a=>a.value).filter(a=>!!a);return this._logger.info(`Got ${o.length} verified sessions.`),(t||o.length!==e.length)&&await this.storeSessions(o),o}async storeSessions(e){this._logger.info(`Storing ${e.length} sessions...`),this._sessionsPromise=Promise.resolve(e),await this._keychain.setToken(JSON.stringify(e)),this._logger.info(`Stored ${e.length} sessions!`)}async createSession(e,t){try{let n=[...e].sort();if(this._telemetryReporter?.sendTelemetryEvent("login",{scopes:JSON.stringify(e)}),t&&!i0(t))throw new Error("Invalid options");let i=await this._sessionsPromise,o=t?.account?.label,a=t?.provider;this._logger.info(`Logging in with${a?` ${a}, `:""} '${o||"any"}' account...`);let s=n.join(" "),u=await this._githubServer.login(s,a,t?.extraAuthorizeParameters,o),f=await this.tokenToSession(u,e);this.afterSessionLoad(f);let l=i.findIndex(d=>d.account.id===f.account.id&&Wm([...d.scopes].sort(),n)),v=new Array;return l>-1?v.push(...i.splice(l,1,f)):i.push(f),await this.storeSessions(i),this._sessionChangeEmitter.fire({added:[f],removed:v,changed:[]}),this._logger.info("Login success!"),f}catch(n){throw n==="Cancelled"||n.message==="Cancelled"?(this._telemetryReporter?.sendTelemetryEvent("loginCancelled"),n):(this._telemetryReporter?.sendTelemetryEvent("loginFailed"),at.window.showErrorMessage(at.l10n.t("Sign in failed: {0}",`${n}`)),this._logger.error(n),n)}}async tokenToSession(e,t){let n=await this._githubServer.getUserInfo(e);return{id:za.getRandomValues(new Uint32Array(2)).reduce((i,o)=>i+=o.toString(16),""),accessToken:e,account:{label:n.accountName,id:n.id},scopes:t}}async removeSession(e){try{this._telemetryReporter?.sendTelemetryEvent("logout"),this._logger.info(`Logging out of ${e}`);let t=await this._sessionsPromise,n=t.findIndex(i=>i.id===e);if(n>-1){let i=t[n];t.splice(n,1),await this.storeSessions(t),await this._githubServer.logout(i),this._sessionChangeEmitter.fire({added:[],removed:[i],changed:[]})}else this._logger.error("Session not found")}catch(t){throw this._telemetryReporter?.sendTelemetryEvent("logoutFailed"),at.window.showErrorMessage(at.l10n.t("Sign out failed: {0}",`${t}`)),this._logger.error(t),t}}};var o0='"github-enterprise.uri" not set',a0='"github-enterprise.uri" invalid',ov=class{constructor(e){this._errorMessage=e;this._disposable=$e.authentication.registerAuthenticationProvider("github-enterprise","GitHub Enterprise",this)}_onDidChangeSessions=new $e.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_disposable;createSession(){throw new Error(this._errorMessage)}getSessions(){return Promise.resolve([])}removeSession(){throw new Error(this._errorMessage)}dispose(){this._onDidChangeSessions.dispose(),this._disposable.dispose()}};function CT(r,e){let t=$e.workspace.getConfiguration().get("github-enterprise.uri");if(!t){let o=new ov(o0);return r.subscriptions.push(o),o}let n;try{n=$e.Uri.parse(t,!0)}catch(o){$e.window.showErrorMessage($e.l10n.t("GitHub Enterprise Server URI is not a valid URI: {0}",o.message??o));let a=new ov(a0);return r.subscriptions.push(a),a}let i=new Xf(r,e,n);return r.subscriptions.push(i),i}function s0(r){let e=new iv;r.subscriptions.push(e),r.subscriptions.push($e.window.registerUriHandler(e)),r.subscriptions.push(new Xf(r,e));let t=$e.workspace.getConfiguration().get("github-enterprise.uri"),n=CT(r,e);r.subscriptions.push($e.workspace.onDidChangeConfiguration(o=>{if(o.affectsConfiguration("github-enterprise.uri")){let a=$e.workspace.getConfiguration().get("github-enterprise.uri");t!==a&&(n?.dispose(),t=a,n=CT(r,e))}}));let i=$e.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);r.subscriptions.push($e.workspace.onDidChangeConfiguration(async o=>{if(o.affectsConfiguration("github-authentication.useElectronFetch")){let a=$e.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);i!==a&&await $e.window.showInformationMessage($e.l10n.t("GitHub Authentication - Reload required"),{modal:!0,detail:$e.l10n.t("A reload is required for the fetch setting change to take effect.")},$e.l10n.t("Reload Window"))&&await $e.commands.executeCommand("workbench.action.reloadWindow")}}))}
|
|
13
|
+
`+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};_();Ci();_();var Ua=class r{static applyReplacements(e,t){for(let n of Object.keys(e))for(let i of t)i.lookup.test(n)&&(i.replacementString!==void 0?e[n]=i.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return e.length===74&&e[32]==="-"&&e[41]==="-"&&e[46]==="-"&&e[51]==="-"&&e[56]==="-"&&e[69]==="-"}static getAdditionalCommonProperties(e){return{"common.os":e.platform,"common.nodeArch":e.architecture,"common.platformversion":(e.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.9.8"}}static getInstance(){return r._instance||(r._instance=new r),r._instance}};var $h=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>(qh(),Wh)),u={};if(n){let v={alwaysUseXhrOverride:!0,httpXHROverride:n};u[T_]=v}let f;r.startsWith("InstrumentationKey=")||(f=r);let l=f?{instrumentationKey:f}:{connectionString:r};o=new s.ApplicationInsights({...l,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0,extensionConfig:u})}catch(s){return Promise.reject(s)}return{logEvent:(s,u)=>{let f={...u?.properties,...u?.measurements};i?.length&&Ua.applyReplacements(f,i),o?.track({name:s,data:f,baseType:"EventData",ext:{user:{id:e,authId:e},app:{sesId:t}},baseData:{name:s,properties:u?.properties,measurements:u?.measurements}})},flush:async()=>{o?.flush(!1)},dispose:async()=>new Promise(u=>{o?.unload(!0,()=>{u(),o=void 0},1e3)})}};_();var M_=class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates(()=>{this.updateUserOptIn()})}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n})}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1)}sendRawTelemetryEvent(e,t,n){let i={...t};for(let o of Object.keys(i??{})){let a=i[o];typeof o=="string"&&a!==void 0&&(i[o]=new this.vscodeAPI.TelemetryTrustedValue(typeof a=="string"?a:a.value))}this.sendTelemetryEvent(e,i,n)}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0)}internalSendTelemetryErrorEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n})}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1)}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0)}async dispose(){return await this.telemetrySender.dispose(),this.telemetryLogger.dispose(),Promise.all(this.disposables.map(e=>e.dispose()))}};_();var Li;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Li||(Li={}));var H_=class{constructor(e,t){this._instantiationStatus=Li.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Li.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Li.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t});return}let n={stack:e.stack,message:e.message,name:e.name};if(t){let i=t.properties||t;t.properties={...i,...n}}else t={properties:n};this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){this._telemetryClient&&(await this._telemetryClient.dispose(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach(({eventName:e,data:t})=>this.sendEventData(e,t)),this._eventQueue=[],this._exceptionQueue.forEach(({exception:e,data:t})=>this.sendErrorData(e,t)),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===Li.NOT_INSTANTIATED&&(this._instantiationStatus=Li.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Li.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Li.INSTANTIATED}))}};function by(r){if(r.userAgentData){let e=r.userAgentData.brands[r.userAgentData.brands.length-1];return`${r.userAgentData.platform} - ${e?.brand} v${e?.version}}`}else return r.userAgent.replace(/(\d+\.\d+)(\.\d+)+/g,"$1")}var zf=class extends M_{constructor(e,t){let n=a=>$h(a,jf.env.machineId,jf.env.sessionId,void 0,t);Ua.shouldUseOneDataSystemSDK(e)&&(n=a=>HN(a,jf));let i={release:by(navigator),platform:"web",architecture:"web"},o=new H_(e,n);if(e&&e.indexOf("AIF")===0)throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(o,jf,{additionalCommonProperties:Ua.getAdditionalCommonProperties(i)})}};_();var G_=class{constructor(e,t,n){this.context=e;this.serviceId=t;this.Logger=n}context;serviceId;Logger;async setToken(e){try{return await this.context.secrets.store(this.serviceId,e)}catch(t){this.Logger.error(`Setting token failed: ${t}`)}}async getToken(){try{let e=await this.context.secrets.get(this.serviceId);return e&&e!=="[]"&&this.Logger.trace("Token acquired from secret storage."),e}catch(e){return this.Logger.error(`Getting token failed: ${e}`),Promise.resolve(void 0)}}async deleteToken(){try{return await this.context.secrets.delete(this.serviceId)}catch(e){return this.Logger.error(`Deleting token failed: ${e}`),Promise.resolve(void 0)}}};_();var Ue=Fi(require("vscode"));_();var Oy=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function Xh(r){return Oy.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function Kf(r,e){return r==="github"||Km(e)}function Km(r){return/\.ghe\.com$/.test(r.authority)}_();var za=globalThis.crypto;_();var Wn=fetch;_();var tT=Fi(eT()),Se=require("vscode");_();var Gt={gitHubClientId:"01ab8ac9400c4e429b23"};_();var k_=class{constructor(...e){throw new Error("Not implemented")}};_();var rT=require("vscode");var wy=(r,e)=>e(r);function Wf(r,e=wy){let t,n=new rT.EventEmitter;return{promise:new Promise((i,o)=>{n.event(a=>o("Cancelled")),t=r(a=>{try{Promise.resolve(e(a,i,o)).catch(o)}catch(s){o(s)}})}).then(i=>(t.dispose(),i),i=>{throw t.dispose(),i}),cancel:n}}function Wm(r,e,t=(n,i)=>n===i){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,i=r.length;n<i;n++)if(!t(r[n],e[n]))return!1;return!0}_();var qf="Timed out",$n="User Cancelled",B_="network error",V_="Cancelled";function nT(r){let e=new Uint8Array(r);return za.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function iT(r){let t=new TextEncoder().encode(r),n=await za.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function oT(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=Gt.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",Gt.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await Wn(e.toString(!0),{logger:r,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:s.toString()});if(u.ok){let f=await u.json();return r.info("Token exchange success!"),f.access_token}else{let f=await u.text(),l=new Error(f);throw l.name="GitHubTokenExchangeError",l}}var qm=class{label=Se.l10n.t("url handler");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!1};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,nonce:a,signInProvider:s,extraAuthorizeParameters:u,uriHandler:f,existingLogin:l,logger:v}){return v.info(`Trying without local server... (${e})`),await Se.window.withProgress({location:Se.ProgressLocation.Notification,title:Se.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(d,E)=>{let m=nT(64),h=await iT(m),g=f.waitForCode(v,e,a,E),P=new URLSearchParams([["client_id",Gt.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",h],["code_challenge_method","S256"]]);if(l?P.append("login",l):P.append("prompt","select_account"),s&&P.append("provider",s),u)for(let[W,ne]of Object.entries(u))P.append(W,ne);let T=Se.Uri.parse(t.with({path:"/login/oauth/authorize",query:P.toString()}).toString(!0));await Se.env.openExternal(T);let I=await g,O=await Se.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),F=O?.github?Se.Uri.parse(`${O.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await oT(v,F,n,I,m,o)})}},$m=class{label=Se.l10n.t("local server");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!1,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,signInProvider:a,extraAuthorizeParameters:s,existingLogin:u,logger:f}){return f.info(`Trying with local server... (${e})`),await Se.window.withProgress({location:Se.ProgressLocation.Notification,title:Se.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(l,v)=>{let d=nT(64),E=await iT(d),m=new URLSearchParams([["client_id",Gt.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",E],["code_challenge_method","S256"]]);if(u?m.append("login",u):m.append("prompt","select_account"),a&&m.append("provider",a),s)for(let[O,F]of Object.entries(s))m.append(O,F);let h=t.with({path:"/login/oauth/authorize",query:m.toString()}),g=new k_(tT.join(__dirname,"../media"),h.toString(!0),i.toString(!0),Se.env.isAppPortable),P=await g.start(),T;try{Se.env.openExternal(Se.Uri.parse(`http://127.0.0.1:${P}/signin?nonce=${encodeURIComponent(g.nonce)}`));let{code:O}=await Promise.race([g.waitForOAuthResponse(),new Promise((F,V)=>setTimeout(()=>V(qf),3e5)),Wf(v.onCancellationRequested,(F,V,W)=>{W($n)}).promise]);T=O}finally{setTimeout(()=>{g.stop()},5e3)}return await oT(f,t.with({path:"/login/oauth/access_token"}),n,T,d,o)})}},$f=class{label=Se.l10n.t("device code");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!0,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,signInProvider:n,extraAuthorizeParameters:i,logger:o}){o.info(`Trying device code flow... (${e})`);let a=t.with({path:"/login/device/code",query:`client_id=${Gt.gitHubClientId}&scope=${e}`}),s=await Wn(a.toString(!0),{logger:o,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}});if(!s.ok)throw new Error(`Failed to get one-time code: ${await s.text()}`);let u=await s.json(),f=Se.l10n.t("Copy & Continue to Browser");if(await Se.window.showInformationMessage(Se.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:Se.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},f)!==f)throw new Error($n);await Se.env.clipboard.writeText(u.user_code);let v=Se.Uri.parse(u.verification_uri),d=new URLSearchParams(v.query);if(n&&d.set("provider",n),i)for(let[m,h]of Object.entries(i))d.set(m,h);(n||i)&&(v=v.with({query:d.toString()}));let E=await Se.env.asExternalUri(v);return await Se.env.openExternal(E),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await Se.window.withProgress({location:Se.ProgressLocation.Notification,cancellable:!0,title:Se.l10n.t({message:"Open [{0}]({0}) in a new tab and paste your one-time code: {1}",args:[n.verification_uri,n.user_code],comment:["The [{0}]({0}) will be a url and the {1} will be a code, e.g. 123-456",'{Locked="[{0}]({0})"}']})},async(i,o)=>{let a=t.with({path:"/login/oauth/access_token",query:`client_id=${Gt.gitHubClientId}&device_code=${n.device_code}&grant_type=urn:ietf:params:oauth:grant-type:device_code`}),s=120/n.interval;for(let u=0;u<s;u++){if(await new Promise(v=>setTimeout(v,n.interval*1e3)),o.isCancellationRequested)throw new Error($n);let f;try{f=await Wn(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!f.ok)continue;let l=await f.json();if(l.error!=="authorization_pending"){if(l.error)throw new Error(l.error_description);return l.access_token}}throw new Error(qf)})}},Xm=class{label=Se.l10n.t("personal access token");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!0,supportsSupportedClients:!1,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,logger:n,enterpriseUri:i}){n.info(`Trying to retrieve PAT... (${e})`);let o=Se.l10n.t("Continue to GitHub");if(await Se.window.showInformationMessage(Se.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:Se.l10n.t("To finish authenticating, navigate to GitHub to create a PAT then paste the PAT into the input box.")},o)!==o)throw new Error($n);let s=`${Se.env.appName} (${e})`,u=await Se.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await Se.env.openExternal(u);let f=await Se.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!f)throw new Error($n);let l=!i||Km(i)?Se.Uri.parse(`${t.scheme}://api.${t.authority}`):Se.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),v=await this.getScopes(f,l,n);if(!e.split(" ").every(E=>{let m=v.includes(E);return m||!E.includes(":")?m:E.split(":").some(h=>v.includes(h))}))throw new Error(`The provided token does not match the requested scopes: ${e}`);return f}async getScopes(e,t,n){try{n.info("Getting token scopes...");let i=await Wn(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${Se.env.appName} (${Se.env.appHost})`}});if(i.ok){let o=i.headers.get("X-OAuth-Scopes");return o?o.split(",").map(a=>a.trim()):[]}else throw n.error(`Getting scopes failed: ${i.statusText}`),new Error(i.statusText)}catch(i){throw n.error(i.message),new Error(B_)}}},Ly=[new $m,new qm,new $f,new Xm];function aT(r){let e=Ly.filter(n=>{let i=!0;switch(r.target){case 0:i&&=n.options.supportsGitHubDotCom;break;case 1:i&&=n.options.supportsGitHubEnterpriseServer;break;case 2:i&&=n.options.supportsHostedGitHubEnterprise;break}switch(r.extensionHost){case 1:i&&=n.options.supportsRemoteExtensionHost;break;case 0:i&&=n.options.supportsWebWorkerExtensionHost;break}return Gt.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return Se.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof $f),...e.filter(n=>!(n instanceof $f))]:e}function sT(r){return r==="google"||r==="apple"}_();function uT(r){return btoa(r)}var Fy="https://vscode.dev/redirect",Uy="https://insiders.vscode.dev/redirect",j_=class{constructor(e,t,n,i,o){this._logger=e;this._telemetryReporter=t;this._uriHandler=n;this._extensionKind=i;this._ghesUri=o;this._type=o?"github-enterprise":"github",this.friendlyName=this._type==="github"?"GitHub":o?.authority}_logger;_telemetryReporter;_uriHandler;_extensionKind;_ghesUri;friendlyName;_type;_redirectEndpoint;get baseUri(){return this._type==="github"?Ue.Uri.parse("https://github.com/"):this._ghesUri}async getRedirectEndpoint(){if(this._redirectEndpoint)return this._redirectEndpoint;if(this._type==="github"){let e=await Ue.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints");this._redirectEndpoint=Fy,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=Uy)}else this._redirectEndpoint="https://vscode.dev/redirect";return this._redirectEndpoint}_isNoCorsEnvironment;async isNoCorsEnvironment(){if(this._isNoCorsEnvironment!==void 0)return this._isNoCorsEnvironment;let e=await Ue.env.asExternalUri(Ue.Uri.parse(`${Ue.env.uriScheme}://vscode.github-authentication/dummy`));return this._isNoCorsEnvironment=e.scheme==="https"&&/^((insiders\.)?vscode|github)\./.test(e.authority)||e.scheme==="http"&&/^localhost/.test(e.authority),this._isNoCorsEnvironment}async login(e,t,n,i){this._logger.info(`Logging in for the following scopes: ${e}`);let o,a=Ue.l10n.t("Yes"),s=Ue.l10n.t("No"),u=async h=>{if(o===void 0)return;let g=o?Ue.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",h):Ue.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",h);if(await Ue.window.showWarningMessage(g,a,s)!==a)throw new Error(V_)},f=za.getRandomValues(new Uint32Array(2)).reduce((h,g)=>h+=g.toString(16),""),l=await Ue.env.asExternalUri(Ue.Uri.parse(`${Ue.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(f)}`)),v=Xh(l),d=Kf(this._type,this._ghesUri),E=typeof process<"u"&&typeof process?.versions?.node=="string",m=aT({target:this._type==="github"?0:d?2:1,extensionHost:E?this._extensionKind===Ue.ExtensionKind.UI?2:1:0,isSupportedClient:v});for(let h of m)try{return h!==m[0]&&await u(h.label),await h.trigger({scopes:e,callbackUri:l,nonce:f,signInProvider:t,extraAuthorizeParameters:n,baseUri:this.baseUri,logger:this._logger,uriHandler:this._uriHandler,enterpriseUri:this._ghesUri,redirectUri:Ue.Uri.parse(await this.getRedirectEndpoint()),existingLogin:i})}catch(g){o=this.processLoginError(g)}throw new Error(o?V_:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!Gt.gitHubClientSecret){this._logger.warn("No client secret configured for GitHub authentication. The token has been deleted with best effort on this system, but we are unable to delete the token on server without the client secret.");return}if(!e.accessToken.startsWith("gho_")){this._logger.warn("The token being deleted is not an OAuth token. It has been deleted locally, but we cannot delete it on server.");return}if(!Kf(this._type,this._ghesUri)){this._logger.trace("GitHub.com and GitHub hosted GitHub Enterprise are the only options that support deleting tokens on the server. Skipping.");return}let t="Basic "+uT(`${Gt.gitHubClientId}:${Gt.gitHubClientSecret}`),n=this.getServerUri(`/applications/${Gt.gitHubClientId}/token`);try{let i=await Wn(n.toString(!0),{logger:this._logger,retryFallbacks:!0,expectJSON:!1,method:"DELETE",headers:{Accept:"application/vnd.github+json",Authorization:t,"X-GitHub-Api-Version":"2022-11-28","User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`},body:JSON.stringify({access_token:e.accessToken})});if(i.status===204){this._logger.trace(`Successfully deleted token from session (${e.id}) from server.`);return}try{let o=await i.text();throw new Error(o)}catch{throw new Error(`${i.status} ${i.statusText}`)}}catch(i){this._logger.warn("Failed to delete token from server."+(i.message??i))}}getServerUri(e=""){let t=this.baseUri;return Kf(this._type,this._ghesUri)?Ue.Uri.parse(`${t.scheme}://api.${t.authority}`).with({path:e}):Ue.Uri.parse(`${t.scheme}://${t.authority}/api/v3${e}`)}async getUserInfo(e){let t;try{this._logger.info("Getting user info..."),t=await Wn(this.getServerUri("/user").toString(),{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e}`,"User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`}})}catch(n){throw this._logger.error(n.message),new Error(B_)}if(t.ok)try{let n=await t.json();return this._logger.info("Got account info!"),{id:`${n.id}`,accountName:n.login}}catch(n){throw this._logger.error(`Unexpected error parsing response from GitHub: ${n.message??n}`),n}else{let n=t.statusText;try{let i=await t.json();i.message&&(n=i.message)}catch{}throw this._logger.error(`Getting account info failed: ${n}`),new Error(n)}}async sendAdditionalTelemetryInfo(e){if(!(!Ue.env.isTelemetryEnabled||await this.isNoCorsEnvironment())){if(this._type==="github")return await this.checkUserDetails(e);await this.checkEnterpriseVersion(e.accessToken)}}async checkUserDetails(e){let t;try{let n=await Wn("https://education.github.com/api/user",{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e.accessToken}`,"faculty-check-preview":"true","User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`}});if(n.ok){let i=await n.json();t=i.student?"student":i.faculty?"faculty":"none"}else this._logger.info(`Unable to resolve optional EDU details. Status: ${n.status} ${n.statusText}`),t="unknown"}catch(n){this._logger.info(`Unable to resolve optional EDU details. Error: ${n}`),t="unknown"}this._telemetryReporter.sendTelemetryEvent("session",{isEdu:t,isManaged:e.account.label.includes("_")?"true":"false"})}async checkEnterpriseVersion(e){try{let t;if(Kf(this._type,this._ghesUri))t="hosted";else{let n=await Wn(this.getServerUri("/meta").toString(),{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e}`,"User-Agent":`${Ue.env.appName} (${Ue.env.appHost})`}});if(!n.ok)return;t=(await n.json()).installed_version}this._telemetryReporter.sendTelemetryEvent("ghe-session",{version:t})}catch{}}processLoginError(e){if(e.message===V_)throw e;return this._logger.error(e.message??e),e.message===$n}};_();var yT=Fi(require("vscode")),Co=Fi(xT()),tv=class{constructor(e,t){this.context=e;this.baseReporter=t}context;baseReporter;sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(yT.env.uriScheme){case"vscode":e=Co.TargetPopulation.Public;break;case"vscode-insiders":e=Co.TargetPopulation.Insiders;break;case"vscode-exploration":e=Co.TargetPopulation.Internal;break;case"code-oss":e=Co.TargetPopulation.Team;break;default:e=Co.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,Co.getExperimentationService)(t,n,e,this,this.context.globalState);return await i.initialFetch,i}async sendTelemetryEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryEvent(e,{...this.sharedProperties,...t},n)}async sendTelemetryErrorEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryErrorEvent(e,{...this.sharedProperties,...t})}setSharedProperty(e,t){this.sharedProperties[e]=t}postEvent(e,t){let n={};for(let[i,o]of t)n[i]=o;this.sendTelemetryEvent(e,n)}dispose(){return this.baseReporter.dispose()}};_();var PT=Fi(require("vscode"));var nv=class{constructor(e){this.type=e;let t=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=PT.window.createOutputChannel(`${t} Authentication`,{log:!0})}type;output;trace(e){this.output.trace(e)}debug(e){this.output.debug(e)}info(e){this.output.info(e)}error(e){this.output.error(e)}warn(e){this.output.warn(e)}};function i0(r){if(!r||typeof r!="object")throw new Error("Options are not an object");if(r.provider!==void 0&&!sT(r.provider))throw new Error(`Provider is invalid: ${r.provider}`);if(r.extraAuthorizeParameters!==void 0){if(!r.extraAuthorizeParameters||typeof r.extraAuthorizeParameters!="object")throw new Error("Extra parameters must be a record of string keys and string values.");for(let[e,t]of Object.entries(r.extraAuthorizeParameters))if(typeof e!="string"||typeof t!="string")throw new Error("Extra parameters must be a record of string keys and string values.")}return!0}var iv=class extends at.EventEmitter{_pendingNonces=new Map;_codeExchangePromises=new Map;handleUri(e){this.fire(e)}async waitForCode(e,t,n,i){let o=this._pendingNonces.get(t)||[];this._pendingNonces.set(t,[...o,n]);let a=this._codeExchangePromises.get(t);a||(a=Wf(this.event,this.handleEvent(e,t)),this._codeExchangePromises.set(t,a));try{return await Promise.race([a.promise,new Promise((s,u)=>setTimeout(()=>u(qf),3e5)),Wf(i.onCancellationRequested,(s,u,f)=>{f($n)}).promise])}finally{this._pendingNonces.delete(t),a?.cancel.fire(),this._codeExchangePromises.delete(t)}}handleEvent=(e,t)=>(n,i,o)=>{let a=new URLSearchParams(n.query),s=a.get("code"),u=a.get("nonce");if(!s){o(new Error("No code"));return}if(!u){o(new Error("No nonce"));return}if(!(this._pendingNonces.get(t)||[]).includes(u)){e.info("Nonce not found in accepted nonces. Skipping this execution...");return}i(s)}},Xf=class{constructor(e,t,n){this.context=e;let{aiKey:i}=e.extension.packageJSON;this._telemetryReporter=new tv(e,new zf(i));let o=n?"github-enterprise":"github";this._logger=new nv(o),this._keychain=new G_(this.context,o==="github"?`${o}.auth`:`${n?.authority}${n?.path}.ghes.auth`,this._logger),this._githubServer=new j_(this._logger,this._telemetryReporter,t,e.extension.extensionKind,n),this._sessionsPromise=this.readSessions().then(s=>(setTimeout(()=>s.forEach(u=>this.afterSessionLoad(u)),1e3),s));let a=n?[at.Uri.joinPath(n,"/login/oauth")]:[at.Uri.parse("https://github.com/login/oauth")];this._disposable=at.Disposable.from(this._telemetryReporter,at.authentication.registerAuthenticationProvider(o,this._githubServer.friendlyName,this,{supportsMultipleAccounts:!0,supportedAuthorizationServers:a}),this.context.secrets.onDidChange(()=>this.checkForUpdates()))}context;_sessionChangeEmitter=new at.EventEmitter;_logger;_githubServer;_telemetryReporter;_keychain;_accountsSeen=new Set;_disposable;_sessionsPromise;dispose(){this._disposable?.dispose()}get onDidChangeSessions(){return this._sessionChangeEmitter.event}async getSessions(e,t){let n=e?.sort()||[];this._logger.info(`Getting sessions for ${n.length?n.join(","):"all scopes"}...`);let i=await this._sessionsPromise,o=t?.account?i.filter(s=>s.account.label===t.account?.label):i,a=n.length?o.filter(s=>Wm([...s.scopes].sort(),n)):o;return this._logger.info(`Got ${a.length} sessions for ${n?.join(",")??"all scopes"}...`),a}async afterSessionLoad(e){this._accountsSeen.has(e.account.id)||(this._accountsSeen.add(e.account.id),this._githubServer.sendAdditionalTelemetryInfo(e))}async checkForUpdates(){let e=await this._sessionsPromise;this._sessionsPromise=this.readSessions();let t=await this._sessionsPromise,n=[],i=[];t.forEach(o=>{e.some(s=>s.id===o.id)||(this._logger.info("Adding session found in keychain"),n.push(o))}),e.forEach(o=>{t.some(s=>s.id===o.id)||(this._logger.info("Removing session no longer found in keychain"),i.push(o))}),(n.length||i.length)&&this._sessionChangeEmitter.fire({added:n,removed:i,changed:[]})}async readSessions(){let e;try{this._logger.info("Reading sessions from keychain...");let a=await this._keychain.getToken();if(!a)return[];this._logger.info("Got stored sessions!");try{e=JSON.parse(a)}catch(s){throw await this._keychain.deleteToken(),s}}catch(a){return this._logger.error(`Error reading token: ${a}`),[]}let t=!1,n=new Set,i=e.map(async a=>{let s=[...a.scopes].sort().join(" "),u;if(!a.account)try{u=await this._githubServer.getUserInfo(a.accessToken),this._logger.info(`Verified session with the following scopes: ${s}`)}catch(l){if(l.message==="Unauthorized")return}this._logger.trace(`Read the following session from the keychain with the following scopes: ${s}`),n.add(s);let f;return a.account?.id?(typeof a.account.id=="number"&&(t=!0),f=`${a.account.id}`):f=u?.id??"<unknown>",{id:a.id,account:{label:a.account?a.account.label??a.account.displayName??"<unknown>":u?.accountName??"<unknown>",id:f},scopes:a.scopes,accessToken:a.accessToken}}),o=(await Promise.allSettled(i)).filter(a=>a.status==="fulfilled").map(a=>a.value).filter(a=>!!a);return this._logger.info(`Got ${o.length} verified sessions.`),(t||o.length!==e.length)&&await this.storeSessions(o),o}async storeSessions(e){this._logger.info(`Storing ${e.length} sessions...`),this._sessionsPromise=Promise.resolve(e),await this._keychain.setToken(JSON.stringify(e)),this._logger.info(`Stored ${e.length} sessions!`)}async createSession(e,t){try{let n=[...e].sort();if(this._telemetryReporter?.sendTelemetryEvent("login",{scopes:JSON.stringify(e)}),t&&!i0(t))throw new Error("Invalid options");let i=await this._sessionsPromise,o=t?.account?.label,a=t?.provider;this._logger.info(`Logging in with${a?` ${a}, `:""} '${o||"any"}' account...`);let s=n.join(" "),u=await this._githubServer.login(s,a,t?.extraAuthorizeParameters,o),f=await this.tokenToSession(u,e);this.afterSessionLoad(f);let l=i.findIndex(d=>d.account.id===f.account.id&&Wm([...d.scopes].sort(),n)),v=new Array;return l>-1?v.push(...i.splice(l,1,f)):i.push(f),await this.storeSessions(i),this._sessionChangeEmitter.fire({added:[f],removed:v,changed:[]}),this._logger.info("Login success!"),f}catch(n){throw n==="Cancelled"||n.message==="Cancelled"?(this._telemetryReporter?.sendTelemetryEvent("loginCancelled"),n):(this._telemetryReporter?.sendTelemetryEvent("loginFailed"),at.window.showErrorMessage(at.l10n.t("Sign in failed: {0}",`${n}`)),this._logger.error(n),n)}}async tokenToSession(e,t){let n=await this._githubServer.getUserInfo(e);return{id:za.getRandomValues(new Uint32Array(2)).reduce((i,o)=>i+=o.toString(16),""),accessToken:e,account:{label:n.accountName,id:n.id},scopes:t}}async removeSession(e){try{this._telemetryReporter?.sendTelemetryEvent("logout"),this._logger.info(`Logging out of ${e}`);let t=await this._sessionsPromise,n=t.findIndex(i=>i.id===e);if(n>-1){let i=t[n];t.splice(n,1),await this.storeSessions(t),await this._githubServer.logout(i),this._sessionChangeEmitter.fire({added:[],removed:[i],changed:[]})}else this._logger.error("Session not found")}catch(t){throw this._telemetryReporter?.sendTelemetryEvent("logoutFailed"),at.window.showErrorMessage(at.l10n.t("Sign out failed: {0}",`${t}`)),this._logger.error(t),t}}};var o0='"github-enterprise.uri" not set',a0='"github-enterprise.uri" invalid',ov=class{constructor(e){this._errorMessage=e;this._disposable=$e.authentication.registerAuthenticationProvider("github-enterprise","GitHub Enterprise",this)}_errorMessage;_onDidChangeSessions=new $e.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_disposable;createSession(){throw new Error(this._errorMessage)}getSessions(){return Promise.resolve([])}removeSession(){throw new Error(this._errorMessage)}dispose(){this._onDidChangeSessions.dispose(),this._disposable.dispose()}};function CT(r,e){let t=$e.workspace.getConfiguration().get("github-enterprise.uri");if(!t){let o=new ov(o0);return r.subscriptions.push(o),o}let n;try{n=$e.Uri.parse(t,!0)}catch(o){$e.window.showErrorMessage($e.l10n.t("GitHub Enterprise Server URI is not a valid URI: {0}",o.message??o));let a=new ov(a0);return r.subscriptions.push(a),a}let i=new Xf(r,e,n);return r.subscriptions.push(i),i}function s0(r){let e=new iv;r.subscriptions.push(e),r.subscriptions.push($e.window.registerUriHandler(e)),r.subscriptions.push(new Xf(r,e));let t=$e.workspace.getConfiguration().get("github-enterprise.uri"),n=CT(r,e);r.subscriptions.push($e.workspace.onDidChangeConfiguration(o=>{if(o.affectsConfiguration("github-enterprise.uri")){let a=$e.workspace.getConfiguration().get("github-enterprise.uri");t!==a&&(n?.dispose(),t=a,n=CT(r,e))}}));let i=$e.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);r.subscriptions.push($e.workspace.onDidChangeConfiguration(async o=>{if(o.affectsConfiguration("github-authentication.useElectronFetch")){let a=$e.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);i!==a&&await $e.window.showInformationMessage($e.l10n.t("GitHub Authentication - Reload required"),{modal:!0,detail:$e.l10n.t("A reload is required for the fetch setting change to take effect.")},$e.l10n.t("Reload Window"))&&await $e.commands.executeCommand("workbench.action.reloadWindow")}}))}
|
|
14
14
|
/*! Bundled license information:
|
|
15
15
|
|
|
16
16
|
@nevware21/ts-utils/dist/es5/mod/ts-utils.js:
|