(()=>{var e={3330:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>m,BaseTelemetryPlugin:()=>M.s,DiagnosticLogger:()=>u.wq,EventLatency:()=>C,EventPersistence:()=>b,EventPropertyType:()=>S,EventsDiscardedReason:()=>L.x,FullVersionString:()=>h.xE,InternalAppInsightsCore:()=>l._,LoggingSeverity:()=>F,MinChannelPriorty:()=>O,NotificationManager:()=>N.h,PerfEvent:()=>s.Q6,PerfManager:()=>s.NS,ProcessTelemetryContext:()=>q.W0,TraceLevel:()=>w,Undefined:()=>Y.bA,ValueKind:()=>y,ValueSanitizer:()=>I,Version:()=>h.Rx,_InternalLogMessage:()=>u.WD,__getRegisteredEvents:()=>j.El,_logInternalMessage:()=>u.Oc,_throwInternal:()=>u.ZP,_warnToConsole:()=>u.OG,addEventHandler:()=>j.So,addEventListeners:()=>j.lQ,addPageHideEventListener:()=>j.Fc,addPageShowEventListener:()=>j.oS,addPageUnloadEventListener:()=>j.ee,areCookiesSupported:()=>ee.gi,arrForEach:()=>x.I,arrIndexOf:()=>P.r,arrMap:()=>z.W,arrReduce:()=>W.K,attachEvent:()=>j.Q3,blockDynamicConversion:()=>re.V9,cookieAvailable:()=>ee.gi,createCookieMgr:()=>ee.xN,createDynamicConfig:()=>a.e,createEnumStyle:()=>v.H,createGuid:()=>h.gj,createProcessTelemetryContext:()=>q.i8,createTraceParent:()=>ie.wk,createUniqueNamespace:()=>te.Z,createUnloadHandlerContainer:()=>ne.P,dateNow:()=>B.f,detachEvent:()=>j.Ym,disallowsSameSiteNone:()=>ee.It,doPerf:()=>s.r2,dumpObj:()=>c.m,eventOff:()=>j.ML,eventOn:()=>j.mB,extend:()=>h.X$,findW3cTraceParent:()=>ie.ef,forceDynamicConversion:()=>re.Hf,formatTraceParent:()=>ie.L0,generateW3CId:()=>X.cL,getCommonSchemaMetaData:()=>h.Go,getConsole:()=>Q.U5,getCookieValue:()=>h.UM,getCrypto:()=>Q.MY,getDocument:()=>Z.YE,getDynamicConfigHandler:()=>re.QA,getExceptionName:()=>H.lL,getFieldValueType:()=>h.cq,getGlobal:()=>Z.mS,getGlobalInst:()=>Z.zS,getHistory:()=>Z.JK,getIEVersion:()=>Q.L0,getISOString:()=>H._u,getJSON:()=>Q.hm,getLocation:()=>Q.g$,getMsCrypto:()=>Q.iN,getNavigator:()=>Z.w3,getPerformance:()=>G.FJ,getSetValue:()=>H.c2,getTenantId:()=>h.EO,getTime:()=>h.WB,getWindow:()=>Z.zk,hasDocument:()=>Z.Wt,hasHistory:()=>Z.tw,hasJSON:()=>Q.Z,hasNavigator:()=>Z.w9,hasOwnProperty:()=>A.v,hasWindow:()=>Z.Vd,isArray:()=>R.cy,isArrayValid:()=>h.wJ,isBeaconsSupported:()=>Q.Uf,isBoolean:()=>R.Lm,isChromium:()=>h.F2,isDate:()=>R.$P,isDocumentObjectAvailable:()=>h.g8,isError:()=>R.bJ,isFetchSupported:()=>Q.R7,isFunction:()=>R.Tn,isGreaterThanZero:()=>h.ei,isIE:()=>Q.lT,isLatency:()=>h.Hh,isNotTruthy:()=>R.wo,isNullOrUndefined:()=>R.hX,isNumber:()=>R.Et,isObject:()=>R.Gv,isReactNative:()=>Q.lV,isSampledFlag:()=>ie.N7,isString:()=>R.Kg,isTruthy:()=>R.zz,isTypeof:()=>R.Ed,isUint8ArrayAvailable:()=>h.h3,isUndefined:()=>R.b0,isValidSpanId:()=>ie.wN,isValidTraceId:()=>ie.hX,isValidTraceParent:()=>ie.mJ,isValueAssigned:()=>h.yD,isValueKind:()=>h.m0,isWindowObjectAvailable:()=>h.P$,isXhrSupported:()=>Q.xk,mergeEvtNamespace:()=>j.Hm,newGuid:()=>X.aq,newId:()=>J.Si,normalizeJsName:()=>H.cH,objDefineAccessors:()=>V.r,objForEachKey:()=>D.z,objFreeze:()=>d.N6,objKeys:()=>d.cG,objSeal:()=>d.js,onConfigChange:()=>a.a,openXhr:()=>h.H$,optimizeObject:()=>H.hW,parseTraceParent:()=>ie.ZI,perfNow:()=>G.UU,proxyAssign:()=>H.qz,proxyFunctionAs:()=>H.RF,proxyFunctions:()=>H.o$,random32:()=>J.VN,randomValue:()=>J.Z1,removeEventHandler:()=>j.zh,removeEventListeners:()=>j.Wg,removePageHideEventListener:()=>j.sq,removePageShowEventListener:()=>j.vF,removePageUnloadEventListener:()=>j.Ds,safeGetCookieMgr:()=>ee.um,safeGetLogger:()=>u.y0,sanitizeProperty:()=>h.TC,setEnableEnvMocks:()=>Q.cU,setProcessTelemetryTimings:()=>h.u9,setValue:()=>H.KY,strContains:()=>H.Ju,strEndsWith:()=>U.C,strFunction:()=>Y.hW,strObject:()=>Y._1,strPrototype:()=>Y.vR,strStartsWith:()=>$.t,strTrim:()=>K.EH,strUndefined:()=>Y.bA,throwError:()=>o.$8,toISOString:()=>H._u,useXDomainRequest:()=>Q.PV});var i=n(4468),r=n(7859),o=n(4433),s=n(8672),a=n(2842),c=n(5081),u=n(6347),l=n(4127),d=n(7688),f=n(3341),h=n(5634),p=n(471),g=(0,d.ZH)({endpointUrl:f.S,propertyStorageOverride:{isVal:function(e){return!e||e.getProperty&&e.setProperty||(0,o.$8)("Invalid property storage override passed."),!0}}}),m=function(e){function t(){var n=e.call(this)||this;return(0,r.A)(t,n,(function(e,t){e[p.mE]=function(n,i,r,o){(0,s.r2)(e,(function(){return"AppInsightsCore.initialize"}),(function(){try{t[p.mE]((0,a.e)(n,g,r||e[p.Uw],!1).cfg,i,r,o)}catch(t){var s=e[p.Uw],l=(0,c.m)(t);-1!==l[p.Sj]("channels")&&(l+="\n - Channels must be provided through config.channels only!"),(0,u.ZP)(s,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:i,logger:r,notificationManager:o}}))},e.track=function(n){(0,s.r2)(e,(function(){return"AppInsightsCore.track"}),(function(){var i=n;if(i){i[p.dg]=i[p.dg]||{},i[p.dg].trackStart=(0,h.WB)(),(0,h.Hh)(i.latency)||(i.latency=1);var r=i.ext=i.ext||{};r.sdk=r.sdk||{},r.sdk.ver=h.xE;var o=i.baseData=i.baseData||{};o[f._0]=o[f._0]||{};var s=o[f._0];s[f.hj]=s[f.hj]||e.pluginVersionString||f.m5}t.track(i)}),(function(){return{item:n}}),!n.sync)},e[p.h4]=function(e){return t[p.h4](e||"InternalLog")}})),n}return(0,i.qU)(t,e),t.__ieDyn=1,t}(l._),v=n(1590),y=(0,v.H)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),C=(0,v.H)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),S=(0,v.H)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),b=(0,v.H)({Normal:1,Critical:2}),w=(0,v.H)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),R=n(8456),D=n(6758),T=n(5452),_=n(1778),P=n(7868),k=(0,_.b2)("includes",T.wM,(function(e,t,n){return-1!==(0,P.r)(e,t,n)})),x=n(4715),E=n(7325),I=function(){function e(e){var t=this,n={},i=[],r=[];function o(e,t){var o,s=n[e];if(s&&(o=s[t]),!o&&null!==o){if((0,R.Kg)(e)&&(0,R.Kg)(t))if(r[p.oI]>0){for(var a=0;a{"use strict";n.d(t,{S:()=>r,_0:()=>s,hj:()=>o,m5:()=>i});var i="",r="https://browser.events.data.microsoft.com/OneCollector/1.0/",o="version",s="properties"},5634:(e,t,n)=>{"use strict";n.d(t,{EO:()=>P,F2:()=>H,Go:()=>I,H$:()=>$,Hh:()=>x,P$:()=>T,Rx:()=>m,TC:()=>E,UM:()=>O,WB:()=>M,X$:()=>N,cq:()=>j,ei:()=>U,g8:()=>D,gj:()=>F,h3:()=>k,m0:()=>q,u9:()=>A,wJ:()=>L,xE:()=>v,yD:()=>_});var i,r=n(7192),o=n(8456),s=n(4184),a=n(3318),c=n(6758),u=n(4715),l=n(7074),d=n(6204),f=n(9445),h=n(1518),p=n(3341),g=n(471),m="4.0.3",v="1DS-Web-JS-"+m,y=d.Wy.hasOwnProperty,C="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",S="withCredentials",b="timeout",w=((i={})[0]=0,i[2]=6,i[1]=1,i[3]=7,i[4098]=6,i[4097]=1,i[4099]=7,i),R=null,D=(0,r.Wt)(),T=(0,r.Vd)();function _(e){return!(e===p.m5||(0,o.hX)(e))}function P(e){if(e){var t=(0,f.H)(e,"-");if(t>-1)return(0,h.ZW)(e,t)}return p.m5}function k(){return null===R&&(R=!(0,o.b0)(Uint8Array)&&!function(){var e=(0,r.w3)();if(!(0,o.b0)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t[g.Sj]("safari")>=0||t[g.Sj]("firefox")>=0)&&t[g.Sj]("chrome")<0)return!0}return!1}()&&!(0,s.lV)()),R}function x(e){return!!(e&&(0,o.Et)(e)&&e>=1&&e<=4)}function E(e,t,n){if(!t&&!_(t)||"string"!=typeof e)return null;var i=typeof t;if("string"===i||"number"===i||"boolean"===i||(0,o.cy)(t))t={value:t};else if("object"!==i||y.call(t,"value")){if((0,o.hX)(t[g.pF])||t[g.pF]===p.m5||!(0,o.Kg)(t[g.pF])&&!(0,o.Et)(t[g.pF])&&!(0,o.Lm)(t[g.pF])&&!(0,o.cy)(t[g.pF]))return null}else t={value:n?JSON.stringify(t):t};if((0,o.cy)(t[g.pF])&&!L(t[g.pF]))return null;if(!(0,o.hX)(t[g.QV])){if((0,o.cy)(t[g.pF])||!q(t[g.QV]))return null;t[g.pF]=t[g.pF].toString()}return t}function I(e,t,n){var i=-1;if(!(0,o.b0)(e))if(t>0&&(32===t?i=8192:t<=13&&(i=t<<5)),function(e){return e>=0&&e<=9}(n))-1===i&&(i=0),i|=n;else{var r=w[j(e)]||-1;-1!==i&&-1!==r?i|=r:6===r&&(i=r)}return i}function O(e,t,n){var i;return void 0===n&&(n=!0),e&&(i=e.get(t),n&&i&&decodeURIComponent&&(i=decodeURIComponent(i))),i||p.m5}function F(e){void 0===e&&(e="D");var t=(0,a.aq)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,p.m5)),t}function N(e,t,n,i,r){var s={},a=!1,l=0,d=arguments[g.oI],f=arguments;for((0,o.Lm)(f[0])&&(a=f[0],l++);l0&&e<=13||32===e}function L(e){return e[g.oI]>0}function A(e,t){var n=e;n[g.dg]=n[g.dg]||{},n[g.dg][g.Jg]=n[g.dg][g.Jg]||{},n[g.dg][g.Jg][t]=M()}function j(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===d._1&&(t=4,(0,o.cy)(e)?(t=4096,e[g.oI]>0&&(t|=j(e[0]))):y.call(e,"value")&&(t=8192|j(e[g.pF])))}return t}function H(){return!!(0,r.zS)("chrome")}function $(e,t,n,i,r,o){function s(e,t,n){try{e[t]=n}catch(e){}}void 0===i&&(i=!1),void 0===r&&(r=!1);var a=new XMLHttpRequest;return i&&s(a,C,i),n&&s(a,S,n),a.open(e,t,!r),n&&s(a,S,n),!r&&o&&s(a,b,o),a}function U(e){return e>0}},471:(e,t,n)=>{"use strict";n.d(t,{Jg:()=>d,Mr:()=>p,QV:()=>u,Rl:()=>h,Sj:()=>o,Uw:()=>r,dg:()=>s,h4:()=>a,hF:()=>f,mE:()=>i,nw:()=>g,oI:()=>l,pF:()=>c});var i="initialize",r="logger",o="indexOf",s="timings",a="pollInternalLogs",c="value",u="kind",l="length",d="processTelemetryStart",f="handleField",h="rmSanitizer",p="rmFieldSanitizer",g="canHandle"},8224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BE_PROFILE:()=>o,NRT_PROFILE:()=>r,PostChannel:()=>Mt,RT_PROFILE:()=>i});var i="REAL_TIME",r="NEAR_REAL_TIME",o="BEST_EFFORT",s=n(4468),a=n(7859),c=n(5634),u=n(8456),l=n(8672),d=n(7153),f=n(4424),h=n(2842),p=n(3057),g=n(7192),m=n(8093),v=n(4234),y=n(4715),C=n(6758),S=n(6347),b=n(9221),w=n(2488),R=n(7688),D="",T="POST",_="drop",P="requeue",k="application/x-json-stream",x="cache-control",E="content-type",I="kill-duration",O="time-delta-millis",F="client-version",N="client-id",M="time-delta-to-apply-millis",q="upload-time",L="apikey",A="AuthMsaDeviceTicket",j="AuthXToken",H="msfpc",$="trace",U="user",K="allowRequestSending",z="firstRequestSent",W="shouldAddClockSkewHeaders",V="getClockSkewHeaderValue",B="setClockSkew",X="length",G="concat",J="iKey",Z="count",Q="events",Y="push",ee="split",te="splice",ne="toLowerCase",ie="hdrs",re="useHdrs",oe="initialize",se="setTimeoutOverride",ae="clearTimeoutOverride",ce="overrideEndpointUrl",ue="avoidOptions",le="enableCompoundKey",de="disableXhrSync",fe="disableFetchKeepAlive",he="useSendBeacon",pe="alwaysUseXhrOverride",ge="urlString",me="timeout",ve="ontimeout",ye="data",Ce="_sendReason",Se="headers",be="getResponseHeader",we="getAllResponseHeaders",Re="_thePayload",De="batches",Te="sendType",_e="canSendRequest",Pe="sendQueuedRequests",ke="isCompletelyIdle",xe="setUnloading",Ee="sendSynchronousBatch",Ie="_transport",Oe="getWParam",Fe="isBeacon",Ne="timings",Me="isTeardown",qe="isSync",Le="sendPOST",Ae="setKillSwitchTenants",je="_backOffTransmission",He="identifier",$e="eventsLimitInMem",Ue="autoFlushEventsLimit",Ke="sendAttempt",ze="latency",We="baseData",Ve="sync";function Be(e){var t=(e.ext||{}).intweb;return t&&(0,c.yD)(t[H])?t[H]:null}function Xe(e){for(var t=null,n=0;null===t&&n(0,et.f)()||(delete n[i],!1)}}))}return e.__ieDyn=1,e}();function ot(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var st=n(7868),at=n(9543),ct=n(1518),ut=2e6,lt=Math.min(ut,65e3),dt="metadata",ft="f",ht=/\./,pt=function(){function e(t,n,i,r){var o="data",s="baseData",d=!!r,f=!0,h=n,p={};(0,a.A)(e,this,(function(e){function n(e,t,r,o,s,a,l){(0,C.z)(e,(function(e,f){var g=null;if(f||(0,c.yD)(f)){var m=r,v=e,y=s,C=t;if(d&&!o&&ht.test(e)){var S=e.split("."),b=S.length;if(b>1){y&&(y=y.slice());for(var w=0;w=7&&(n=(0,at.t)(e,"ext.metadata")||(0,at.t)(e,"ext.web")),p[e]=n),n}(m);if(g=!D&&h&&h.handleField(m,v)?h.value(m,v,f,i):(0,c.TC)(v,f,i)){var T=g.value;if(C[v]=T,a&&a(y,v,g),l&&"object"==typeof T&&!(0,u.cy)(T)){var _=y;_&&(_=_.slice()).push(v),n(f,T,m+"."+v,o,_,a,l)}}}}))}e.createPayload=function(e,t,n,i,r,o){return{apiKeys:[],payloadBlob:D,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:i,sendType:o,sendReason:r}},e.appendPayload=function(n,i,r){var o=n&&i&&!n.overflow;return o&&(0,l.r2)(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=i.events(),o=n.payloadBlob,s=n.numEvents,a=!1,c=[],u=[],l=n.isBeacon,d=l?65e3:3984588,f=l?lt:ut,h=0,p=0;h=r){n.overflow=i.split(h);break}var m=e.getEventBlob(g);if(m&&m.length<=f){var v=m.length;if(o.length+v>d){n.overflow=i.split(h);break}o&&(o+="\n"),o+=m,++p>20&&((0,ct.hK)(o,0,1),p=0),a=!0,s++}else m?c.push(g):u.push(g),t.splice(h,1),h--}h++}if(c.length>0&&n.sizeExceed.push(Ge.create(i.iKey(),c)),u.length>0&&n.failedEvts.push(Ge.create(i.iKey(),u)),a){n.batches.push(i),n.payloadBlob=o,n.numEvents=s;var y=i.iKey();-1===(0,st.r)(n.apiKeys,y)&&n.apiKeys.push(y)}}),(function(){return{payload:n,theBatch:{iKey:i.iKey(),evts:i.events()},max:r}})),o},e.getEventBlob=function(e){try{return(0,l.r2)(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,c.EO)(e.iKey);var i={},r=e.ext;r&&(t.ext=i,(0,C.z)(r,(function(e,t){n(t,i[e]={},"ext."+e,!0,null,null,!0)})));var a=t[o]={};a.baseType=e.baseType;var u=a[s]={};return n(e.baseData,u,s,!1,[s],(function(e,t,n){gt(i,e,t,n)}),f),n(e.data,a,o,!1,[],(function(e,t,n){gt(i,e,t,n)}),f),JSON.stringify(t)}),(function(){return{item:e}}))}catch(e){return null}}}))}return e.__ieDyn=1,e}();function gt(e,t,n,i){if(i&&e){var r=(0,c.Go)(i.value,i.kind,i.propertyType);if(r>-1){var o=e[dt];o||(o=e[dt]={f:{}});var s=o[ft];if(s||(s=o[ft]={}),t)for(var a=0;a0)for(var r=t[ne](),o=0;o0&&(i&&Rt[t]?(e[ie][Rt[t]]=n,e[re]=!0):e.url+="&"+t+"="+n)}function xt(e,t){return t&&((0,u.Et)(t)?e=[t][G](e):(0,u.cy)(t)&&(e=t[G](e))),e}Tt(A,A,!1),Tt(F,F),Tt(N,"Client-Id"),Tt(L,L),Tt(M,M),Tt(q,q),Tt(j,j);var Et=function(){function e(t,n,i,r){var o,s,d,f,p,m,v,b,w,P,A,j,$,U,He,$e=new rt,Ue=!1,Ke=new it,ze=!1,We=0,Ve=!0,Be=[],Xe={},Ge=[],Je=null,st=!1,at=!1,ct=!1,ut=[],lt=[];(0,a.A)(e,this,(function(e){!function(){var e;o=null,$e=new rt,Ue=!1,Ke=new it,ze=!1,We=0,s=null,d=null,f=null,p=null,Ve=!0,Be=[],Xe={},Ge=[],Je=null,st=!1,m=null,at=!1,ct=!1,v=e,b=e,w=e,P=e,A=e,ut=[],j=e,$=e,lt=[],U=!1,He=yt()}();var a=!0;function dt(e,t){for(var n=0,i=null,r=0;null==i&&r0&&(c[Se]=e[Se]),fetch(r,c).then((function(e){var n={},i=D,r=e[Se];r&&r.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){i=e})),s||(s=!0,mt(t,e.status,n,i),At(i))})).catch((function(e){s||(s=!0,mt(t,0,{}))})),o&&!s&&(s=!0,mt(t,200,{})),!s&&e[me]>0&&He.set((function(){s||(s=!0,mt(t,500,{}))}),e[me])}function gt(e,t,n){var i=e[ge];function r(e,t,n){if(!e[n]&&t&&t[be]){var i=t[be](n);i&&(e[n]=(0,Qe.EH)(i))}return e}function o(e,n){mt(t,e.status,function(e){var t={};return e[we]?t=function(e){var t={};if((0,u.Kg)(e)){var n=(0,Qe.EH)(e)[ee](/[\r\n]+/);(0,y.I)(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var i=(0,Qe.EH)(e.substring(0,n))[ne](),r=(0,Qe.EH)(e.substring(n+1));t[i]=r}else t[(0,Qe.EH)(e)]=1}}))}return t}(e[we]()):(t=r(t,e,O),t=r(t,e,I),t=r(t,e,"kill-duration-seconds")),t}(e),n)}n&&e[de]&&(n=!1);var s=(0,c.H$)(T,i,a,!0,n,e[me]);(0,C.z)(e[Se],(function(e,t){s.setRequestHeader(e,t)})),s.onload=function(){var e=_t(s);o(s,e),At(e)},s.onerror=function(){o(s)},s[ve]=function(){o(s)},s.send(e[ye])}function mt(e,t,n,i){try{e(t,n,i)}catch(e){(0,S.ZP)(d,2,518,(0,Ye.m)(e))}}function vt(e,t,n){var i=200,r=e[Re],o=e[ge]+(A?St:D);try{var s=(0,g.w3)();if(!s.sendBeacon(o,e[ye]))if(r){var a=[];(0,y.I)(r[De],(function(e){if(a&&e&&e[Z]()>0){for(var t=e[Q](),n=0;n0&&!Ue&&f[t]&&Je&&(i=0!==t||Et()&&(n>0||Ke[K]())),i}function Ft(e){var t={};return e&&(0,y.I)(e,(function(e,n){t[n]={iKey:e[J](),evts:e[Q]()}})),t}function Nt(e,n,i,r,o){if(e&&0!==e[X])if(Ue)jt(e,1,r);else{r=Tt(r);try{var s=e,a=0!==r;(0,l.r2)(p,(function(){return"HttpManager:_sendBatches"}),(function(s){s&&(e=e.slice(0));for(var u=[],l=null,d=(0,c.WB)(),h=f[r]||(a?f[1]:f[0]),p=h&&h[Ie],g=P&&(at||Rt(r)||3===p||h._isSync&&2===p);Ot(e,r,n);){var m=e.shift();m&&m[Z]()>0&&($e.isTenantKilled(m[J]())?u[Y](m):(l=l||Je.createPayload(n,i,a,g,o,r),Je.appendPayload(l,m,t)?null!==l.overflow&&(e=[l.overflow][G](e),l.overflow=null,qt(l,d,(0,c.WB)(),o),d=(0,c.WB)(),l=null):(qt(l,d,(0,c.WB)(),o),d=(0,c.WB)(),e=[m][G](e),l=null)))}l&&qt(l,d,(0,c.WB)(),o),e[X]>0&&(Ge=e[G](Ge)),jt(u,8004,r)}),(function(){return{batches:Ft(s),retryCount:n,isTeardown:i,isSynchronous:a,sendReason:o,useSendBeacon:Rt(r),sendType:r}}),!a)}catch(e){(0,S.ZP)(d,2,48,"Unexpected Exception sending batch: "+(0,Ye.m)(e))}}}function Mt(e,t,n){e[t]=e[t]||{},e[t][s.identifier]=n}function qt(t,n,r,a){if(t&&t.payloadBlob&&t.payloadBlob[X]>0){var u=!!j,h=f[t.sendType];!Rt(t[Te])&&t[Fe]&&2===t.sendReason&&(h=f[2]||f[3]||h);var g=ct;(t.isBeacon||3===h[Ie])&&(g=!1);var m=function(e,t){var n={url:o,hdrs:{},useHdrs:!1};t?(n[ie]=(0,c.X$)(n[ie],Xe),n.useHdrs=(0,R.cG)(n.hdrs)[X]>0):(0,C.z)(Xe,(function(e,t){Dt[e]?kt(n,Dt[e],t,!1):(n[ie][e]=t,n[re]=!0)})),kt(n,N,"NO_AUTH",t),kt(n,F,c.xE,t);var i=D;(0,y.I)(e.apiKeys,(function(e){i[X]>0&&(i+=","),i+=e})),kt(n,L,i,t),kt(n,q,(0,et.f)().toString(),t);var r=function(e){for(var t=0;t=0&&(n.url+="&w="+s)}for(var a=0;a0?R[Ct]++:R[Ct]=1}jt(t[De],1e3+(a||0),t[Te],!0);var _={data:t.payloadBlob,urlString:m.url,headers:m[ie],_thePayload:t,_sendReason:a,timeout:v,disableXhrSync:b,disableFetchKeepAlive:w};g&&(Pt(_[Se],x)||(_[Se][x]="no-cache, no-store"),Pt(_[Se],E)||(_[Se][E]=k));var P=null;h&&(P=function(n){Ke[z]();var r=function(n,r){!function(t,n,r,o){var a,u=9e3,l=null,d=!1,f=!1;try{var h=!0;if(typeof t!==tt.bA){if(n){Ke[B](n[O]);var p=n[I]||n["kill-duration-seconds"];(0,y.I)($e[Ae](n["kill-tokens"],p),(function(e){(0,y.I)(r[De],(function(t){if(t[J]()===e){l=l||[];var n=t[ee](0);r.numEvents-=n[Z](),l[Y](n)}}))}))}if(200==t||204==t)return void(u=200);((a=t)>=300&&a<500&&408!=a&&429!=a||501==a||505==a||r.numEvents<=0)&&(h=!1),u=9e3+t%1e3}if(h){u=100;var g=r.retryCnt;0===r[Te]&&(g0&&function(e,t){st&&(0,y.I)(e,(function(e){Mt(e[Ne]=e[Ne]||{},"sendEventCompleted",t)}))}(e[Q](),t)}))}}(t[De])),jt(t[De],n,t[Te],!0)}finally{0===t[Te]&&(We--,5!==i&&e.sendQueuedRequests(t[Te],i))}}(r,u,o,f)),jt(l,8004,r[Te])}}(n,r,t,a)},o=t[Me]||t[qe];try{h[Le](n,r,o),$&&$(_,n,o,t[Fe])}catch(e){(0,S.OG)(d,"Unexpected exception sending payload. Ex:"+(0,Ye.m)(e)),mt(r,0,{})}}),(0,l.r2)(p,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(P)if(0===t[Te]&&We++,u&&!t.isBeacon&&3!==h[Ie]){var e={data:_[ye],urlString:_[ge],headers:(0,c.X$)({},_[Se]),timeout:_[me],disableXhrSync:_[de],disableFetchKeepAlive:_[fe]},n=!1;(0,l.r2)(p,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{j(e,(function(e){n=!0,Ve||e[Re]||(e[Re]=e[Re]||_[Re],e[Ce]=e[Ce]||_[Ce]),P(e)}),t.isSync||t[Me])}catch(e){n||P(_)}}))}else P(_)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:r,sendReason:a}}),t[qe])}t.sizeExceed&&t.sizeExceed[X]>0&&jt(t.sizeExceed,8003,t[Te]),t.failedEvts&&t.failedEvts[X]>0&&jt(t.failedEvts,8002,t[Te])}function Lt(e,t,n){t?e():He.set(e,n)}function At(e){var t=lt;try{for(var n=0;n0&&r){var o=r[(a=t,u=wt[a],(0,c.yD)(u)||(u="oth",a>=9e3&&a<=9999?u="rspFail":a>=8e3&&a<=8999?u=_:a>=1e3&&a<=1999&&(u="send")),u)];if(o){var s=0!==n;(0,l.r2)(p,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){Lt((function(){try{o.call(r,e,t,s,n)}catch(e){(0,S.ZP)(d,1,74,"send request notification failed: "+e)}}),i||s,0)}),(function(){return{batches:Ft(e),reason:t,isSync:s,sendSync:i,sendType:n}}),!s)}}var a,u}e[oe]=function(e,t,n){U||(p=t,m=t.getCookieMgr(),d=(s=n).diagLog(),(0,nt.Y)(ut,(0,h.a)(e,(function(e){var t,i=e.cfg,r=e.cfg.extensionConfig[n.identifier];He=yt(r[se],r[ae]),(0,c.yD)(i.anonCookieName)?function(e,t,n){for(var i=0;i=0&<[te](t,1)}}},e._getDbgPlgTargets=function(){return[f[0],$e,Je,f]},e.addHeader=function(e,t){Xe[e]=t},e[_e]=function(){return Et()&&Ke[K]()},e[Pe]=function(e,t){(0,u.b0)(e)&&(e=0),at&&(e=Tt(e),t=2),Ot(Ge,e,0)&&Nt(It(),0,!1,e,t||0)},e[ke]=function(){return!Ue&&0===We&&0===Ge[X]},e[xe]=function(e){at=e},e.addBatch=function(e){if(e&&e[Z]()>0){if($e.isTenantKilled(e[J]()))return!1;Ge[Y](e)}return!0},e.teardown=function(){Ge[X]>0&&Nt(It(),0,!0,2,2),(0,y.I)(ut,(function(e){e&&e.rm&&e.rm()})),ut=[]},e.pause=function(){Ue=!0},e.resume=function(){Ue=!1,e[Pe](0,4)},e[Ee]=function(e,t,n){e&&e[Z]()>0&&((0,u.hX)(t)&&(t=1),at&&(t=Tt(t),n=2),Nt([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}(),It=1e4,Ot="eventsDiscarded",Ft=void 0,Nt=(0,R.ZH)({eventsLimitInMem:{isVal:c.ei,v:It},immediateEventLimit:{isVal:c.ei,v:500},autoFlushEventsLimit:{isVal:c.ei,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:function(e){return e&&e[Le]},v:Ft},overrideInstrumentationKey:Ft,overrideEndpointUrl:Ft,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Ft,clearTimeoutOverride:Ft,payloadPreprocessor:Ft,payloadListener:Ft,disableEventTimings:Ft,valueSanitizer:Ft,stringifyObjects:Ft,enableCompoundKey:Ft,disableOptimizeObj:!1,transports:Ft,unloadTransports:Ft,useSendBeacon:Ft,disableFetchKeepAlive:Ft,avoidOptions:!1,xhrTimeout:Ft,disableXhrSync:Ft,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:u.Et,v:6},maxUnloadEventRetryAttempts:{isVal:u.Et,v:2},addNoResponse:Ft}),Mt=function(e){function t(){var n,s=e.call(this)||this;s.identifier="PostChannel",s.priority=1011,s.version="4.0.3";var u,b,R,D,T,_,P,k,x,E,I,O,F,N,M,q,L,j,H,K,z,W,V,B,ne,ie=!1,re=[],ce=!1,ue=0,le=0,de={},fe=i;return(0,a.A)(t,s,(function(e,t){function s(){(0,d.Ds)(null,j),(0,d.sq)(null,j),(0,d.vF)(null,j)}function a(e){"beforeunload"!==(e||(0,g.zk)().event).type&&(M=!0,k[xe](M)),we(2,2)}function he(e){M=!1,k[xe](M)}function pe(e,t){if(e[Ke]||(e[Ke]=0),e[ze]||(e[ze]=1),e.ext&&e.ext[$]&&delete e.ext[$],e.ext&&e.ext[U]&&e.ext[U].id&&delete e.ext[U].id,N&&(e.ext=(0,m.hW)(e.ext),e[We]&&(e[We]=(0,m.hW)(e[We])),e[ye]&&(e[ye]=(0,m.hW)(e[ye]))),e[Ve])if(_||ce)e[ze]=3,e[Ve]=!1;else if(k)return N&&(e=(0,m.hW)(e)),void k[Ee](Ge.create(e[J],[e]),!0===e[Ve]?1:e[Ve],3);var n=e[ze],i=le,r=R;4===n&&(i=ue,r=b);var o=!1;if(i0){var o=r[ee](0,i),s=o[Z]();if(s>0)return 4===n?ue-=s:le-=s,Je(Ot,[o],v.x.QueueFull),!0}n++}return Fe(),!1}(e[J],e[ze],s,a)&&(o=!Ie(e,t))}o&&Xe(Ot,[e],v.x.QueueFull)}function ge(e,t,n){var i=Ne(e,t,n);return k[Pe](t,n),i}function me(){return le>0}function ve(){if(O>=0&&Ne(O,0,F)&&k[Pe](0,F),ue>0&&!T&&!ce){var e=de[fe][2];e>=0&&(T=Se((function(){T=null,ge(4,0,1),ve()}),e))}var t=de[fe][1];!D&&!u&&t>=0&&!ce&&(me()?D=Se((function(){D=null,ge(0===P?3:1,0,1),P++,P%=2,ve()}),t):P=0)}function Ce(){n=null,ie=!1,re=[],u=null,ce=!1,ue=0,b=500,le=0,R=It,de={},fe=i,D=null,T=null,_=0,P=0,x={},E=0,V=!1,I=0,O=-1,F=null,N=!0,M=!1,q=6,L=2,j=null,B=null,ne=!1,H=yt(),k=new Et(500,2,1,{requeue:Ae,send:Ze,sent:Qe,drop:Ye,rspFail:et,oth:tt}),Le(),x[4]={batches:[],iKeyMap:{}},x[3]={batches:[],iKeyMap:{}},x[2]={batches:[],iKeyMap:{}},x[1]={batches:[],iKeyMap:{}},nt()}function Se(e,t){0===t&&_&&(t=1);var n=1e3;return _&&(n=ot(_-1)),H.set(e,t*n)}function be(){return null!==D&&(D.cancel(),D=null,P=0,!0)}function we(e,t){be(),u&&(u.cancel(),u=null),ce||ge(1,e,t)}function Re(e,t,n){var i=x[t];i||(i=x[t=1]);var r=i.iKeyMap[e];return!r&&n&&(r=Ge.create(e),i.batches[Y](r),i.iKeyMap[e]=r),r}function Te(t,n){k[_e]()&&!_&&(E>0&&le>E&&(n=!0),n&&null==u&&e.flush(t,(function(){}),20))}function Ie(e,t){N&&(e=(0,m.hW)(e));var n=e[ze],i=Re(e[J],n,!0);return!!i.addEvent(e)&&(4!==n?(le++,t&&0===e[Ke]&&Te(!e.sync,I>0&&i[Z]()>=I)):ue++,!0)}function Fe(){for(var e=0,t=0,n=function(n){var i=x[n];i&&i[De]&&(0,y.I)(i[De],(function(i){4===n?e+=i[Z]():t+=i[Z]()}))},i=1;i<=4;i++)n(i);le=t,ue=e}function Ne(t,n,i){var r=!1,o=0===n;return!o||k[_e]()?(0,l.r2)(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var i=x[n];i&&i.batches&&i.batches[X]>0&&((0,y.I)(i[De],(function(t){k.addBatch(t)?r=r||t&&t[Z]()>0:e=e[G](t[Q]()),4===n?ue-=t[Z]():le-=t[Z]()})),i[De]=[],i.iKeyMap={}),n--}e[X]>0&&Xe(Ot,e,v.x.KillSwitch),r&&O>=t&&(O=-1,F=0)}),(function(){return{latency:t,sendType:n,sendReason:i}}),!o):(O=O>=0?Math.min(O,t):t,F=Math.max(F,i)),r}function Me(e,t){ge(1,0,t),Fe(),qe((function(){e&&e(),re[X]>0?u=Se((function(){u=null,Me(re.shift(),t)}),0):(u=null,ve())}))}function qe(e){k[ke]()?e():u=Se((function(){u=null,qe(e)}),.25)}function Le(){(de={})[i]=[2,1,0],de[r]=[6,3,0],de[o]=[18,9,0]}function Ae(t,n){var i=[],r=q;M&&(r=L),(0,y.I)(t,(function(t){t&&t[Z]()>0&&(0,y.I)(t[Q](),(function(t){t&&(t[Ve]&&(t[ze]=4,t[Ve]=!1),t[Ke]0&&Xe(Ot,i,v.x.NonRetryableStatus),M&&we(2,2)}function Be(t,n){var i=W||{},r=i[t];if(r)try{r.apply(i,n)}catch(n){(0,S.ZP)(e.diagLog(),1,74,t+" notification failed: "+n)}}function Xe(e,t){for(var n=[],i=2;i0&&Be(e,[t][G](n))}function Je(e,t){for(var n=[],i=2;i0&&(0,y.I)(t,(function(t){t&&t[Z]()>0&&Be(e,[t.events()][G](n))}))}function Ze(e,t,n){e&&e[X]>0&&Be("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function Qe(e,t){Je("eventsSent",e,t),ve()}function Ye(e,t){Je(Ot,e,t>=8e3&&t<=8999?t-8e3:v.x.Unknown)}function et(e){Je(Ot,e,v.x.NonRetryableStatus),ve()}function tt(e,t){Je(Ot,e,v.x.Unknown),ve()}function nt(){I=z?0:Math.max(1500,R/6)}Ce(),e._getDbgPlgTargets=function(){return[k,n]},e[oe]=function(i,r,o){(0,l.r2)(r,(function(){return"PostChannel:initialize"}),(function(){t[oe](i,r,o),W=r.getNotifyMgr();try{j=(0,d.Hm)((0,f.Z)(e[He]),r.evtNamespace&&r.evtNamespace()),e._addHook((0,h.a)(i,(function(t){var i=t.cfg,o=(0,p.i8)(null,i,r);n=o.getExtCfg(e[He],Nt),H=yt(n[se],n[ae]),N=!n.disableOptimizeObj&&(0,c.F2)(),K=n.ignoreMc1Ms0CookieProcessing,function(e){var t=e[Oe];e[Oe]=function(){var n=0;return K&&(n|=2),n|t.call(e)}}(r),R=n[$e],b=n.immediateEventLimit,E=n[Ue],q=n.maxEventRetryAttempts,L=n.maxUnloadEventRetryAttempts,z=n.disableAutoBatchFlushLimit,nt(),B=n.overrideInstrumentationKey,ne=!!n.disableTelemetry,V&&s();var u=i.disablePageUnloadEvents||[];V=(0,d.ee)(a,u,j),V=(0,d.Fc)(a,u,j)||V,V=(0,d.oS)(he,i.disablePageShowEvents,j)||V}))),k[oe](i,e.core,e)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{theConfig:i,core:r,extensions:o}}))},e.processTelemetry=function(t,n){(0,c.u9)(t,e[He]),n=n||e._getTelCtx(n);var i=t;ne||ie||(B&&(i[J]=B),pe(i,!0),M?we(2,2):ve()),e.processNext(i,n)},e._doTeardown=function(e,t){we(2,2),ie=!0,k.teardown(),s(),Ce()},e.setEventQueueLimits=function(e,t){n[$e]=R=(0,c.ei)(e)?e:It,n[Ue]=E=(0,c.ei)(t)?t:0,nt();var i=le>e;if(!i&&I>0)for(var r=1;!i&&r<=3;r++){var o=x[r];o&&o[De]&&(0,y.I)(o[De],(function(e){e&&e[Z]()>=I&&(i=!0)}))}Te(!0,i)},e.pause=function(){be(),ce=!0,k.pause()},e.resume=function(){ce=!1,k.resume(),ve()},e._loadTransmitProfiles=function(e){be(),Le(),fe=i,ve(),(0,C.z)(e,(function(e,t){var n=t[X];if(n>=2){var i=n>2?t[2]:0;if(t[te](0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var r=t[0]/t[1];t[0]=Math.ceil(r)*t[1]}i>=0&&t[1]>=0&&i>t[1]&&(i=t[1]),t[Y](i),de[e]=t}}))},e.flush=function(e,t,n){var i;if(void 0===e&&(e=!0),!ce)if(n=n||1,e)t||(i=(0,w.Qo)((function(e){t=e}))),null==u?(be(),Ne(1,0,n),u=Se((function(){u=null,Me(t,n)}),0)):re[Y](t);else{var r=be();ge(1,1,n),t&&t(),r&&ve()}return i},e.setMsaAuthTicket=function(e){k.addHeader(A,e)},e.hasEvents=me,e._setTransmitProfile=function(e){fe!==e&&void 0!==de[e]&&(be(),fe=e,ve())},(0,m.o$)(e,(function(){return k}),["addResponseHandler"]),e[je]=function(){_<4&&(_++,be(),ve())},e._clearBackOff=function(){_&&(_=0,be(),ve())}})),s}return(0,s.qU)(t,e),t.__ieDyn=1,t}(b.s)},8096:(e,t,n)=>{"use strict";n.d(t,{F:()=>d,H:()=>l});var i=n(2815),r=n(7688),o=n(5922),s=n(6533),a=n(2894),c=";",u="=";function l(e){if(!e)return{};var t=e[a.sY](c),n=(0,i.K)(t,(function(e,t){var n=t[a.sY](u);if(2===n[a.oI]){var i=n[0][a.OL](),r=n[1];e[i]=r}return e}),{});if((0,r.cG)(n)[a.oI]>0){if(n.endpointsuffix){var l=n.location?n.location+".":"";n[a.zV]=n[a.zV]||"https://"+l+"dc."+n.endpointsuffix}n[a.zV]=n[a.zV]||s._G,(0,o.C)(n[a.zV],"/")&&(n[a.zV]=n[a.zV].slice(0,-1))}return n}var d={parse:l}},6533:(e,t,n)=>{"use strict";n.d(t,{R2:()=>u,_G:()=>a,jp:()=>o,ks:()=>l,tU:()=>r,wc:()=>c,xF:()=>i,ym:()=>s});var i="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r="sampleRate",o="ProcessLegacy",s="http.method",a="https://dc.services.visualstudio.com",c="/v2/track",u="not_specified",l="iKey"},7082:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,u:()=>o});var i=n(1590),r=(0,i.H)({LocalStorage:0,SessionStorage:1}),o=(0,i.H)({AI:0,AI_AND_W3C:1,W3C:2})},8819:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>a,Y8:()=>u,bb:()=>c,vv:()=>l});var i=n(4715),r=n(8456),o=n(2894),s="";function a(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString()[o.OL]()}function c(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=s+e%1e3,n=s+Math.floor(e/1e3)%60,i=s+Math.floor(e/6e4)%60,r=s+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[o.oI]?"00"+t:2===t[o.oI]?"0"+t:t,n=n[o.oI]<2?"0"+n:n,i=i[o.oI]<2?"0"+i:i,r=r[o.oI]<2?"0"+r:r,(a>0?a+".":s)+r+":"+i+":"+n+"."+t}function u(e,t){var n=null;return(0,i.I)(e,(function(e){if(e.identifier===t)return n=e,-1})),n}function l(e,t,n,i,o){return!o&&(0,r.Kg)(e)&&("Script error."===e||"Script error"===e)}},5528:(e,t,n)=>{"use strict";n.d(t,{o:()=>p});var i=n(4468),r=n(8093);function o(e){var t="ai."+e+".";return function(e){return t+e}}var s=o("application"),a=o("device"),c=o("location"),u=o("operation"),l=o("session"),d=o("user"),f=o("cloud"),h=o("internal"),p=function(e){function t(){return e.call(this)||this}return(0,i.qU)(t,e),t}((0,r.SZ)({applicationVersion:s("ver"),applicationBuild:s("build"),applicationTypeId:s("typeId"),applicationId:s("applicationId"),applicationLayer:s("layer"),deviceId:a("id"),deviceIp:a("ip"),deviceLanguage:a("language"),deviceLocale:a("locale"),deviceModel:a("model"),deviceFriendlyName:a("friendlyName"),deviceNetwork:a("network"),deviceNetworkName:a("networkName"),deviceOEMName:a("oemName"),deviceOS:a("os"),deviceOSVersion:a("osVersion"),deviceRoleInstance:a("roleInstance"),deviceRoleName:a("roleName"),deviceScreenResolution:a("screenResolution"),deviceType:a("type"),deviceMachineName:a("machineName"),deviceVMName:a("vmName"),deviceBrowser:a("browser"),deviceBrowserVersion:a("browserVersion"),locationIp:c("ip"),locationCountry:c("country"),locationProvince:c("province"),locationCity:c("city"),operationId:u("id"),operationName:u("name"),operationParentId:u("parentId"),operationRootId:u("rootId"),operationSyntheticSource:u("syntheticSource"),operationCorrelationVector:u("correlationVector"),sessionId:l("id"),sessionIsFirst:l("isFirst"),sessionIsNew:l("isNew"),userAccountAcquisitionDate:d("accountAcquisitionDate"),userAccountId:d("accountId"),userAgent:d("userAgent"),userId:d("id"),userStoreRegion:d("storeRegion"),userAuthUserId:d("authUserId"),userAnonymousUserAcquisitionDate:d("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:d("authUserAcquisitionDate"),cloudName:f("name"),cloudRole:f("role"),cloudRoleVer:f("roleVer"),cloudRoleInstance:f("roleInstance"),cloudEnvironment:f("environment"),cloudLocation:f("location"),cloudDeploymentUnit:f("deploymentUnit"),internalNodeName:h("nodeName"),internalSdkVersion:h("sdkVersion"),internalAgentVersion:h("agentVersion"),internalSnippet:h("snippet"),internalSdkSrc:h("sdkSrc")}))},3222:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var i=(0,n(1590).H)({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})},5875:(e,t,n)=>{"use strict";n.d(t,{F:()=>r,O:()=>o});var i=n(5528),r={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},o=new i.o},1181:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var i=(0,n(1590).o)({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]})},7990:(e,t,n)=>{"use strict";n.d(t,{AN:()=>D,BW:()=>S,Dt:()=>P,Nu:()=>v,Se:()=>b,T9:()=>T,_M:()=>w,iw:()=>C,tm:()=>R,v7:()=>k,vH:()=>_,vh:()=>y});var i=n(8456),r=n(7192),o=n(6347),s=n(8093),a=n(5081),c=n(6758),u=n(7082),l=n(2894),d=void 0,f=void 0,h="";function p(){return S()?g(u.e.LocalStorage):null}function g(e){try{if((0,i.hX)((0,r.mS)()))return null;var t=(new Date)[l.xE](),n=(0,r.zS)(e===u.e.LocalStorage?"localStorage":"sessionStorage"),o=h+t;n.setItem(o,t);var s=n.getItem(o)!==t;if(n[l.AZ](o),!s)return n}catch(e){}return null}function m(){return D()?g(u.e.SessionStorage):null}function v(){d=!1,f=!1}function y(e){h=e||""}function C(){d=S(!0),f=D(!0)}function S(e){return(e||void 0===d)&&(d=!!g(u.e.LocalStorage)),d}function b(e,t){var n=p();if(null!==n)try{return n.getItem(t)}catch(t){d=!1,(0,o.ZP)(e,2,1,"Browser failed read of local storage. "+(0,s.lL)(t),{exception:(0,a.m)(t)})}return null}function w(e,t,n){var i=p();if(null!==i)try{return i.setItem(t,n),!0}catch(t){d=!1,(0,o.ZP)(e,2,3,"Browser failed write to local storage. "+(0,s.lL)(t),{exception:(0,a.m)(t)})}return!1}function R(e,t){var n=p();if(null!==n)try{return n[l.AZ](t),!0}catch(t){d=!1,(0,o.ZP)(e,2,5,"Browser failed removal of local storage item. "+(0,s.lL)(t),{exception:(0,a.m)(t)})}return!1}function D(e){return(e||void 0===f)&&(f=!!g(u.e.SessionStorage)),f}function T(){var e=[];return D()&&(0,c.z)((0,r.zS)("sessionStorage"),(function(t){e.push(t)})),e}function _(e,t){var n=m();if(null!==n)try{return n.getItem(t)}catch(t){f=!1,(0,o.ZP)(e,2,2,"Browser failed read of session storage. "+(0,s.lL)(t),{exception:(0,a.m)(t)})}return null}function P(e,t,n){var i=m();if(null!==i)try{return i.setItem(t,n),!0}catch(t){f=!1,(0,o.ZP)(e,2,4,"Browser failed write to session storage. "+(0,s.lL)(t),{exception:(0,a.m)(t)})}return!1}function k(e,t){var n=m();if(null!==n)try{return n[l.AZ](t),!0}catch(t){f=!1,(0,o.ZP)(e,2,6,"Browser failed removal of session storage item. "+(0,s.lL)(t),{exception:(0,a.m)(t)})}return!1}},3146:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var i=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}},35:(e,t,n)=>{"use strict";n.d(t,{HQ:()=>C,Rr:()=>h,Vj:()=>y,Vk:()=>g,Vt:()=>m,_T:()=>S,lq:()=>f,pJ:()=>p,qW:()=>b,xP:()=>v,zx:()=>d});var i=n(3389),r=n(6347),o=n(6758),s=n(8456),a=n(4184),c=n(1518),u=n(3933),l=n(2894);function d(e,t,n){var i=t[l.oI],r=f(e,t);if(r[l.oI]!==i){for(var o=0,s=r;void 0!==n[s];)o++,s=(0,c.P0)(r,0,147)+b(o);r=s}return r}function f(e,t){var n;return t&&(t=(0,i.EH)((0,u.o)(t)))[l.oI]>150&&(n=(0,c.P0)(t,0,150),(0,r.ZP)(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function h(e,t,n){var o;return void 0===n&&(n=1024),t&&(n=n||1024,(t=(0,i.EH)((0,u.o)(t)))[l.oI]>n&&(o=(0,c.P0)(t,0,n),(0,r.ZP)(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),o||t}function p(e,t){return S(e,t,2048,66)}function g(e,t){var n;return t&&t[l.oI]>32768&&(n=(0,c.P0)(t,0,32768),(0,r.ZP)(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function m(e,t){var n;if(t){var i=""+t;i[l.oI]>32768&&(n=(0,c.P0)(i,0,32768),(0,r.ZP)(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function v(e,t){if(t){var n={};(0,o.z)(t,(function(t,i){if((0,s.Gv)(i)&&(0,a.Z)())try{i=(0,a.hm)()[l.Jj](i)}catch(t){(0,r.ZP)(e,2,49,"custom property is not valid",{exception:t},!0)}i=h(e,i,8192),t=d(e,t,n),n[t]=i})),t=n}return t}function y(e,t){if(t){var n={};(0,o.z)(t,(function(t,i){t=d(e,t,n),n[t]=i})),t=n}return t}function C(e,t){return t?S(e,t,128,69)[l.xE]():t}function S(e,t,n,o){var s;return t&&(t=(0,i.EH)((0,u.o)(t)))[l.oI]>n&&(s=(0,c.P0)(t,0,n),(0,r.ZP)(e,2,o,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),s||t}function b(e){var t="00"+e;return(0,c.hK)(t,t[l.oI]-3)}},2042:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var i=n(8093),r=n(6533),o=n(2894),s=n(35),a=function(e,t,n){var a=this,c=this;c.ver=1,c.sampleRate=100,c.tags={},c[o.RS]=(0,s.Rr)(e,n)||r.R2,c.data=t,c.time=(0,i._u)(new Date),c.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===a.sampleRate?4:1},tags:1,data:1}}},9636:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var i=n(6533),r=n(2894),o=n(35),s=function(){function e(e,t,n,s){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var a=this;a.ver=2,a[r.RS]=(0,o.Rr)(e,t)||i.R2,a[r.$y]=(0,o.xP)(e,n),a[r.XA]=(0,o.Vj)(e,s)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}()},409:(e,t,n)=>{"use strict";n.d(t,{WJ:()=>_});var i=n(4468),r=n(8456),o=n(4715),s=n(2747),a=n(3389),c=n(9445),u=n(7192),l=n(6533),d=n(2894),f=n(35),h="error",p="stack",g="stackDetails",m="errorSrc",v="message",y="description";function C(e,t){var n=e;return n&&!(0,r.Kg)(n)&&(JSON&&JSON[d.Jj]?(n=JSON[d.Jj](e),!t||n&&"{}"!==n||(n=(0,r.Tn)(e[d.xE])?e[d.xE]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function S(e,t){var n=e;return e&&(n&&!(0,r.Kg)(n)&&(n=e[v]||e[y]||n),n&&!(0,r.Kg)(n)&&(n=C(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(0,c.H)(n||"",t)&&(n=t+": "+n),n||""}function b(e){return e&&e.src&&(0,r.Kg)(e.src)&&e.obj&&(0,r.cy)(e.obj)}function w(e){var t=e||"";(0,r.Kg)(t)||(t=(0,r.Kg)(t[p])?t[p]:""+t);var n=t[d.sY]("\n");return{src:t,obj:n}}function R(e){var t=null;if(e)try{if(e[p])t=w(e[p]);else if(e[h]&&e[h][p])t=w(e[h][p]);else if(e.exception&&e.exception[p])t=w(e.exception[p]);else if(b(e))t=e;else if(b(e[g]))t=e[g];else if((0,u.zk)()&&(0,u.zk)().opera&&e[v])t=function(e){for(var t=[],n=e[d.sY]("\n"),i=0;i1?n[1]:""}catch(e){}return t}function T(e){if(e)try{if(!(0,r.Kg)(e)){var t=D(e),n=C(e,!1);return n&&"{}"!==n||(e[h]&&(t=D(e=e[h])),n=C(e,!0)),0!==(0,c.H)(n,t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var _=function(){function e(e,t,n,i,o,s){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,function(e){try{if((0,r.Gv)(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(a[d.OK]=t[d.OK]||[],a[d.$y]=t[d.$y],a[d.XA]=t[d.XA],t[d.Ur]&&(a[d.Ur]=t[d.Ur]),t.id&&(a.id=t.id),t[d.Fq]&&(a[d.Fq]=t[d.Fq]),(0,r.hX)(t[d.r1])||(a[d.r1]=t[d.r1])):(n||(n={}),a[d.OK]=[new P(e,t,n)],a[d.$y]=(0,f.xP)(e,n),a[d.XA]=(0,f.Vj)(e,i),o&&(a[d.Ur]=o),s&&(a.id=s))}return e.CreateAutoException=function(e,t,n,i,r,o,s,a){var c,u=D(r||o||e);return(c={})[d.pM]=S(e,u),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=T(r||o||e),c.evt=T(o||e),c[d.qg]=u,c.stackDetails=R(s||r||o),c.errorSrc=a,c},e.CreateFromInterface=function(t,n,r,o){var a=n[d.OK]&&(0,s.W)(n[d.OK],(function(e){return P[d.vu](t,e)}));return new e(t,(0,i.Im)((0,i.Im)({},n),{exceptions:a}),r,o)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,i=t.properties,r=t.measurements,o=t.severityLevel,a=t.problemGroup,c=t.id,u=t.isManual,l=n instanceof Array&&(0,s.W)(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[d.OK]=l,e.severityLevel=o,e.properties=i,e.measurements=r,e.problemGroup=a,e.id=c,e.isManual=u,e},e.CreateSimpleException=function(e,t,n,i,r,o){var s;return{exceptions:[(s={},s[d.lW]=!0,s.message=e,s.stack=r,s.typeName=t,s)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=T,e}(),P=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i=this;if(function(e){try{if((0,r.Gv)(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))i[d.qg]=t[d.qg],i[d.pM]=t[d.pM],i[p]=t[p],i[d.on]=t[d.on]||[],i[d.lW]=t[d.lW];else{var a=t,c=a&&a.evt;(0,r.bJ)(a)||(a=a[h]||c||a),i[d.qg]=(0,f.Rr)(e,D(a))||l.R2,i[d.pM]=(0,f.Vk)(e,S(t||a,i[d.qg]))||l.R2;var u=t[g]||R(t);i[d.on]=function(e){var t,n=e.obj;if(n&&n[d.oI]>0){t=[];var i=0,r=0;if((0,o.I)(n,(function(e){var n=e[d.xE]();if(k.regex.test(n)){var o=new k(n,i++);r+=o[d.J$],t.push(o)}})),r>32768)for(var s=0,a=t[d.oI]-1,c=0,u=s,l=a;s32768){var f=l-u+1;t.splice(u,f);break}u=s,l=a,s++,a--}}return t}(u),(0,r.cy)(i[d.on])&&(0,s.W)(i[d.on],(function(t){t[d.QE]=(0,f.Rr)(e,t[d.QE]),t[d.IE]=(0,f.Rr)(e,t[d.IE])})),i[p]=(0,f.Vt)(e,function(e){var t="";return e&&(e.obj?(0,o.I)(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(u)),i.hasFullStack=(0,r.cy)(i.parsedStack)&&i.parsedStack[d.oI]>0,n&&(n[d.qg]=n[d.qg]||i[d.qg])}}return e.prototype.toInterface=function(){var e,t=this,n=t[d.on]instanceof Array&&(0,s.W)(t[d.on],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[d.qg],message:t[d.pM],hasFullStack:t[d.lW],stack:t[p]})[d.on]=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n[d.on]instanceof Array&&(0,s.W)(n[d.on],(function(e){return k[d.vu](e)}))||n[d.on];return new e(t,(0,i.Im)((0,i.Im)({},n),{parsedStack:r}))},e}(),k=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var i=this;if(i[d.J$]=0,"string"==typeof t){var r=t;i[d.Av]=n,i[d.lx]="",i[d.QE]=(0,a.EH)(r),i[d.IE]="",i[d.h_]=0;var o=r.match(e.regex);o&&o[d.oI]>=5&&(i[d.lx]=(0,a.EH)(o[2])||i[d.lx],i[d.IE]=(0,a.EH)(o[4]),i[d.h_]=parseInt(o[5])||0)}else i[d.Av]=t[d.Av],i[d.lx]=t[d.lx],i[d.QE]=t[d.QE],i[d.IE]=t[d.IE],i[d.h_]=t[d.h_],i[d.J$]=0;i.sizeInBytes+=i.method[d.oI],i.sizeInBytes+=i.fileName[d.oI],i.sizeInBytes+=i.assembly[d.oI],i[d.J$]+=e.baseSize,i.sizeInBytes+=i.level.toString()[d.oI],i.sizeInBytes+=i.line.toString()[d.oI]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[d.Av],method:e[d.lx],assembly:e[d.QE],fileName:e[d.IE],line:e[d.h_]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}()},578:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var i=n(6533),r=n(2894),o=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},s=n(35),a=function(){function e(e,t,n,a,c,u,l,d,f){this.aiDataContract={ver:1,metrics:1,properties:0};var h=this;h.ver=2;var p=new o;p[r.F2]=a>0?a:void 0,p.max=isNaN(u)||null===u?void 0:u,p.min=isNaN(c)||null===c?void 0:c,p[r.RS]=(0,s.Rr)(e,t)||i.R2,p.value=n,p.stdDev=isNaN(l)||null===l?void 0:l,h.metrics=[p],h[r.$y]=(0,s.xP)(e,d),h[r.XA]=(0,s.Vj)(e,f)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}()},8900:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var i=n(6533),r=n(8819),o=n(2894),s=n(35),a=function(){function e(e,t,n,a,c,u,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var d=this;d.ver=2,d.id=(0,s.HQ)(e,l),d.url=(0,s.pJ)(e,n),d[o.RS]=(0,s.Rr)(e,t)||i.R2,isNaN(a)||(d[o.qd]=(0,r.bb)(a)),d[o.$y]=(0,s.xP)(e,c),d[o.XA]=(0,s.Vj)(e,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}()},2072:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var i=n(6533),r=n(2894),o=n(35),s=function(){function e(e,t,n,s,a,c,u){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var l=this;l.ver=2,l.url=(0,o.pJ)(e,n),l[r.RS]=(0,o.Rr)(e,t)||i.R2,l[r.$y]=(0,o.xP)(e,a),l[r.XA]=(0,o.Vj)(e,c),u&&(l.domProcessing=u.domProcessing,l[r.qd]=u[r.qd],l.networkConnect=u.networkConnect,l.perfTotal=u.perfTotal,l[r.fd]=u[r.fd],l.sentRequest=u.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}()},9017:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(8819),r=n(3482),o=n(2894),s=n(35),a=function(){function e(e,t,n,a,c,u,l,d,f,h,p,g){void 0===f&&(f="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var m=this;m.ver=2,m.id=t,m[o.qd]=(0,i.bb)(c),m.success=u,m.resultCode=l+"",m.type=(0,s.Rr)(e,f);var v=(0,r._U)(e,n,d,a);m.data=(0,s.pJ)(e,a)||v.data,m.target=(0,s.Rr)(e,v.target),h&&(m.target="".concat(m.target," | ").concat(h)),m[o.RS]=(0,s.Rr)(e,v[o.RS]),m[o.$y]=(0,s.xP)(e,p),m[o.XA]=(0,s.Vj)(e,g)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}()},2297:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var i=n(6533),r=n(2894),o=n(35),s=function(){function e(e,t,n,s,a){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var c=this;c.ver=2,t=t||i.R2,c[r.pM]=(0,o.Vk)(e,t),c[r.$y]=(0,o.xP)(e,s),c[r.XA]=(0,o.Vj)(e,a),n&&(c[r.Ur]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}()},8686:(e,t,n)=>{"use strict";n.d(t,{Gz:()=>d,M0:()=>p,PS:()=>h,cM:()=>u,k6:()=>f,wX:()=>l});var i=n(7192),r=n(8456),o=n(2894),s=(0,i.YE)()||{},a=0,c=[null,null,null,null,null];function u(e){var t=a,n=c,i=n[t];return s.createElement?n[t]||(i=n[t]=s.createElement("a")):i={host:h(e,!0)},i.href=e,++t>=n[o.oI]&&(t=0),a=t,i}function l(e){var t,n=u(e);return n&&(t=n.href),t}function d(e){var t,n=u(e);return n&&(t=n[o.Ue]),t}function f(e,t){return e?e.toUpperCase()+" "+t:t}function h(e,t){var n=p(e,t)||"";if(n){var i=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=i&&i[o.oI]>3&&(0,r.Kg)(i[2])&&i[2][o.oI]>0)return i[2]+(i[3]||"")}return n}function p(e,t){var n=null;if(e){var i=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=i&&i[o.oI]>2&&(0,r.Kg)(i[2])&&i[2][o.oI]>0&&(n=i[2]||"",t&&i[o.oI]>2)){var s=(i[1]||"")[o.OL](),a=i[3]||"";("http"===s&&":80"===a||"https"===s&&":443"===a)&&(a=""),n+=a}}return n}},3482:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>_,Qu:()=>v,Rs:()=>S,Wt:()=>y,_U:()=>R,jj:()=>T,lt:()=>D,mD:()=>w,mp:()=>C,pg:()=>b});var i=n(7868),r=n(4715),o=n(7074),s=n(2253),a=n(8456),c=n(8468),u=n(9445),l=n(6533),d=n(1181),f=n(35),h=n(8686),p=n(2894),g=[l._G+l.wc,"https://breeze.aimon.applicationinsights.io"+l.wc,"https://dc-int.services.visualstudio.com"+l.wc],m="cid-v1:";function v(e){return-1!==(0,i.r)(g,e[p.OL]())}function y(e){m=e}function C(){return m}function S(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[p.Ol])for(var i=0;i0}function b(e){if(e){var t=w(e,d.a[1]);if(t&&t!==m)return t}}function w(e,t){if(e)for(var n=e[p.sY](","),i=0;i0){var a=(0,h.cM)(t);if(r=a.host,!o)if(null!=a[p.Ue]){var c=0===a.pathname[p.oI]?"/":a[p.Ue];"/"!==c.charAt(0)&&(c="/"+c),s=a[p.Ue],o=(0,f.Rr)(e,n?n+" "+c:c)}else o=(0,f.Rr)(e,t)}else r=i,o=i;return{target:r,name:o,data:s}}function D(){var e=(0,o.FJ)();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return(0,s.f)()}function T(e,t){var n=null;return 0===e||0===t||(0,a.hX)(e)||(0,a.hX)(t)||(n=t-e),n}function _(e,t){var n=e||{};return{getName:function(){return n[p.RS]},setName:function(e){t&&t.setName(e),n[p.RS]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),(0,c.hX)(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),(0,c.wN)(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}},2894:(e,t,n)=>{"use strict";n.d(t,{$e:()=>v,$y:()=>D,AZ:()=>c,Av:()=>M,C9:()=>m,Cx:()=>h,F2:()=>d,Fq:()=>x,IE:()=>F,J$:()=>_,Jj:()=>y,Jm:()=>f,OK:()=>w,OL:()=>o,Ol:()=>S,QE:()=>O,RS:()=>u,Ue:()=>C,Ur:()=>k,XA:()=>T,fd:()=>j,h_:()=>L,i9:()=>g,lW:()=>N,lx:()=>q,oI:()=>r,on:()=>R,pM:()=>l,qd:()=>A,qg:()=>P,r1:()=>E,sY:()=>i,up:()=>b,vu:()=>I,xE:()=>a,zV:()=>s,zw:()=>p});var i="split",r="length",o="toLowerCase",s="ingestionendpoint",a="toString",c="removeItem",u="name",l="message",d="count",f="preTriggerDate",h="disabled",p="interval",g="daysOfMonth",m="date",v="getUTCDate",y="stringify",C="pathname",S="correlationHeaderExcludePatterns",b="extensionConfig",w="exceptions",R="parsedStack",D="properties",T="measurements",_="sizeInBytes",P="typeName",k="severityLevel",x="problemGroup",E="isManual",I="CreateFromInterface",O="assembly",F="fileName",N="hasFullStack",M="level",q="method",L="line",A="duration",j="receivedResponse"},6120:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnalyticsPluginIdentifier:()=>W,BreezeChannelIdentifier:()=>z,ConfigurationManager:()=>x,ConnectionStringParser:()=>m.F,ContextTagKeys:()=>E.o,CtxTagKeys:()=>M.O,DEFAULT_BREEZE_ENDPOINT:()=>y._G,DEFAULT_BREEZE_PATH:()=>y.wc,Data:()=>P.B,DisabledPropertyName:()=>y.xF,DistributedTracingModes:()=>q.u,Envelope:()=>C.L,Event:()=>S.J,Exception:()=>b.WJ,Extensions:()=>M.F,HttpMethod:()=>y.ym,Metric:()=>w.J,PageView:()=>R.h,PageViewPerformance:()=>_.H,ProcessLegacy:()=>y.jp,PropertiesPluginIdentifier:()=>K,RemoteDependencyData:()=>D.A,RequestHeaders:()=>v.a,SampleRate:()=>y.tU,SeverityLevel:()=>k.O,TelemetryItemCreator:()=>N,ThrottleMgr:()=>g,Trace:()=>T.C,correlationIdCanIncludeCorrelationHeader:()=>i.Rs,correlationIdGetCorrelationContext:()=>i.pg,correlationIdGetCorrelationContextValue:()=>i.mD,correlationIdGetPrefix:()=>i.mp,correlationIdSetPrefix:()=>i.Wt,createDistributedTraceContextFromTrace:()=>i.Ft,createDomEvent:()=>$,createTelemetryItem:()=>F,createTraceParent:()=>j.wk,dataSanitizeException:()=>I.Vt,dataSanitizeId:()=>I.HQ,dataSanitizeInput:()=>I._T,dataSanitizeKey:()=>I.lq,dataSanitizeKeyAndAddUniqueness:()=>I.zx,dataSanitizeMeasurements:()=>I.Vj,dataSanitizeMessage:()=>I.Vk,dataSanitizeProperties:()=>I.xP,dataSanitizeString:()=>I.Rr,dataSanitizeUrl:()=>I.pJ,dateTimeUtilsDuration:()=>i.jj,dateTimeUtilsNow:()=>i.lt,dsPadNumber:()=>I.qW,findW3cTraceParent:()=>j.ef,formatTraceParent:()=>j.L0,getExtensionByName:()=>L.Y8,isBeaconApiSupported:()=>A.Uf,isCrossOriginError:()=>L.vv,isInternalApplicationInsightsEndpoint:()=>i.Qu,isSampledFlag:()=>j.N7,isValidSpanId:()=>j.wN,isValidTraceId:()=>j.hX,isValidTraceParent:()=>j.mJ,msToTimeSpan:()=>L.bb,parseConnectionString:()=>m.H,parseTraceParent:()=>j.ZI,strNotSpecified:()=>y.R2,stringToBoolOrDefault:()=>L.Dt,urlGetAbsoluteUrl:()=>U.wX,urlGetCompleteUrl:()=>U.k6,urlGetPathName:()=>U.Gz,urlParseFullHost:()=>U.M0,urlParseHost:()=>U.PS,urlParseUrl:()=>U.cM,utlCanUseLocalStorage:()=>h.BW,utlCanUseSessionStorage:()=>h.AN,utlDisableStorage:()=>h.Nu,utlEnableStorage:()=>h.iw,utlGetLocalStorage:()=>h.Se,utlGetSessionStorage:()=>h.vH,utlGetSessionStorageKeys:()=>h.T9,utlRemoveSessionStorage:()=>h.v7,utlRemoveStorage:()=>h.tm,utlSetLocalStorage:()=>h._M,utlSetSessionStorage:()=>h.Dt,utlSetStoragePrefix:()=>h.vh});var i=n(3482),r=n(8456),o=n(6347),s=n(8093),a=n(2842),c=n(7868),u=n(3389),l=n(8667),d=n(4715),f=n(6758),h=n(7990),p=n(2894),g=function(e,t){var n,i,g,m,v,y,C,S=this,b=!1,w=!1;function R(e,t,r,o){if(b){var s=function(e){try{var t=D(e);return(0,l.Z1)(1e6)<=t.limit.samplingRate}catch(e){}return!1}(e);if(!s)return;var a=D(e),c=O(e),u=_(a,n,c),d=!1,f=0,h=F(e);try{u&&!h?(f=Math.min(a.limit.maxSendNumber,c[p.F2]+1),c[p.F2]=0,d=!0,v[e]=!0,c[p.Jm]=new Date):(v[e]=u,c[p.F2]+=1);var g=P(e);x(i,g,c);for(var m=0;m0,u[p.zw]=(s=null===(o=(o=l)||{})||void 0===o?void 0:o.monthInterval,a=null==o?void 0:o.dayInterval,(0,r.hX)(s)&&(0,r.hX)(a)&&(o.monthInterval=3,w||(o[p.i9]=[28],w=!0)),o={monthInterval:null==o?void 0:o.monthInterval,dayInterval:null==o?void 0:o.dayInterval,daysOfMonth:null==o?void 0:o.daysOfMonth});var d={samplingRate:(null===(n=c.limit)||void 0===n?void 0:n.samplingRate)||100,maxSendNumber:(null===(i=c.limit)||void 0===i?void 0:i.maxSendNumber)||1};u.limit=d,g[e]=u}catch(e){}}function _(e,t,n){if(e&&!e[p.Cx]&&t&&(0,s.Gh)(n)){var i=k(),r=n[p.C9],o=e[p.zw],a=1;if(null==o?void 0:o.monthInterval){var u=12*(i.getUTCFullYear()-r.getUTCFullYear())+i.getUTCMonth()-r.getUTCMonth();a=E(o.monthInterval,0,u)}var l=1;if(w)l=(0,c.r)(o[p.i9],i[p.$e]());else if(null==o?void 0:o.dayInterval){var d=Math.floor((i.getTime()-r.getTime())/864e5);l=E(o.dayInterval,0,d)}return a>=0&&l>=0}return!1}function P(e,t){var n=(0,s.Gh)(t)?t:"";return e?"appInsightsThrottle"+n+"-"+e:null}function k(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(e){}return null}function x(e,t,n){try{return(0,h._M)(e,t,(0,u.EH)(JSON[p.Jj](n)))}catch(e){}return!1}function E(e,t,n){return e<=0?1:n>=t&&(n-t)%e==0?Math.floor((n-t)/e)+1:-1}function I(e,t,n,i){(0,o.ZP)(t,i||1,e,n)}function O(e){try{var t=m[e];if(!t){var n=P(e,y);t=function(e,t,n){try{var i={date:k(),count:0};if(e){var r=JSON.parse(e);return{date:k(r[p.C9])||i[p.C9],count:r[p.F2]||i[p.F2],preTriggerDate:r.preTriggerDate?k(r[p.Jm]):void 0}}return x(t,n,i),i}catch(e){}return null}((0,h.Se)(i,n),i,n),m[e]=t}return m[e]}catch(e){}return null}function F(e){var t=v[e];if((0,r.hX)(t)){t=!1;var n=O(e);n&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[p.$e]()===t[p.$e]()}}catch(e){}return!1}(n[p.Jm])),v[e]=t}return v[e]}function N(e){return C=C||{},(0,r.hX)(C[e])&&(C[e]=[]),C[e]}i=(0,o.y0)(e),v={},m={},C={},g={},T(109),y=(0,s.Gh)(t)?t:"",e.addUnloadHook((0,a.a)(e.config,(function(e){var t=e.cfg;n=(0,h.BW)();var i=t.throttleMgrCfg||{};(0,f.z)(i,(function(e,t){T(parseInt(e),t)}))}))),S._getDbgPlgTargets=function(){return[C]},S.getConfig=function(){return g},S.canThrottle=function(e){var t=O(e);return _(D(e),n,t)},S.isTriggered=function(e){return F(e)},S.isReady=function(){return b},S.flush=function(e){try{var t=N(e);if(t&&t[p.oI]>0){var n=t.slice(0);return C[e]=[],(0,d.I)(n,(function(e){R(e.msgID,e[p.pM],e.severity,!1)})),!0}}catch(e){}return!1},S.flushAll=function(){try{if(C){var e=!0;return(0,f.z)(C,(function(t){var n=S.flush(parseInt(t));e=e&&n})),e}}catch(e){}return!1},S.onReadyState=function(e,t){return void 0===t&&(t=!0),(b=!!(0,r.hX)(e)||e)&&t?S.flushAll():null},S.sendMessage=function(e,t,n){return R(e,t,n,!0)}},m=n(8096),v=n(1181),y=n(6533),C=n(2042),S=n(9636),b=n(409),w=n(578),R=n(8900),D=n(9017),T=n(2297),_=n(2072),P=n(3146),k=n(3222),x=function(){function e(){}return e.getConfig=function(e,t,n,i){var o;return void 0===i&&(i=!1),o=n&&e[p.up]&&e[p.up][n]&&!(0,r.hX)(e[p.up][n][t])?e[p.up][n][t]:e[t],(0,r.hX)(o)?i:o},e}(),E=n(5528),I=n(35),O=n(4433);function F(e,t,n,i,o,a){var c;n=(0,I.Rr)(i,n)||y.R2,((0,r.hX)(e)||(0,r.hX)(t)||(0,r.hX)(n))&&(0,O.$8)("Input doesn't contain all required fields");var u="";e[y.ks]&&(u=e[y.ks],delete e[y.ks]);var l=((c={})[p.RS]=n,c.time=(0,s._u)(new Date),c.iKey=u,c.ext=a||{},c.tags=[],c.data={},c.baseType=t,c.baseData=e,c);return(0,r.hX)(o)||(0,f.z)(o,(function(e,t){l.data[e]=t})),l}var N=function(){function e(){}return e.create=F,e}(),M=n(5875),q=n(7082),L=n(8819),A=n(4184),j=n(8468),H=n(7192);function $(e){var t=null;if((0,r.Tn)(Event))t=new Event(e);else{var n=(0,H.YE)();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var U=n(8686),K="AppInsightsPropertiesPlugin",z="AppInsightsChannelPlugin",W="ApplicationInsightsAnalytics"},2239:(e,t,n)=>{"use strict";n.d(t,{DD:()=>u,Lx:()=>c,NU:()=>a});var i=n(8456),r=n(3933),o=n(5106);function s(e,t,n){return!e&&(0,i.hX)(e)?t:(0,i.Lm)(e)?e:"true"===(0,r.o)(e)[o.OL]()}function a(e){return{mrg:!0,v:e}}function c(e,t,n){return{fb:n,isVal:e,v:t}}function u(e,t){return{fb:t,set:s,v:!!e}}},7771:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var i=n(8456),r=n(7440),o=n(3933),s=n(4976),a=n(6758),c=n(5106);function u(e){return e&&(0,i.Gv)(e)&&(e.isVal||e.fb||(0,r.K)(e,"v")||(0,r.K)(e,"mrg")||(0,r.K)(e,"ref")||e.set)}function l(e,t,n){var r,s=n.dfVal||i.O9;if(t&&n.fb){var a=n.fb;(0,i.cy)(a)||(a=[a]);for(var u=0;u{"use strict";n.d(t,{e:()=>A,a:()=>j});var i=n(8456),r=n(6758),o=n(68),s=n(5081),a=n(4424),c=n(2704),u=n(5106),l=n(7771),d=n(4715),f=n(1528),h=n(7868),p=n(5191),g=["push","pop","shift","unshift","splice"],m=function(e,t,n,i){e&&e[u.ih](3,108,"".concat(n," [").concat(t,"] failed - ")+(0,s.m)(i))};function v(e,t){var n=(0,f.k)(e,t);return n&&n.get}function y(e,t,n,i){if(t){var a=v(t,n);a&&a[e.prop]?t[n]=i:function(e,t,n,i){var a={n,h:[],trk:function(t){t&&t.fn&&(-1===(0,h.r)(a.h,t)&&a.h[u.y5](t),e.trk(t,a))},clr:function(e){var t=(0,h.r)(a.h,e);-1!==t&&a.h[u.Ic](t,1)}},l=!0,d=!1;function f(){l&&(d=d||(0,p.hF)(f,e,i),i&&!i[p.nM]&&d&&(i=S(e,i,n,"Converting")),l=!1);var t=e.act;return t&&a.trk(t),i}f[e.prop]={chng:function(){e.add(a)}},(0,o.vF)(t,a.n,{g:f,s:function(o){if(i!==o){f[e.ro]&&!e.upd&&(0,p.If)("["+n+"] is read-only:"+(0,s.m)(t)),l&&(d=d||(0,p.hF)(f,e,i),l=!1);var h=d&&f[e.rf];if(d)if(h){(0,r.z)(i,(function(e){i[e]=o?o[e]:c.HP}));try{(0,r.z)(o,(function(t,n){y(e,i,t,n)})),o=i}catch(t){m((e.hdlr||{})[u.Uw],n,"Assigning",t),d=!1}}else i&&i[p.nM]&&(0,r.z)(i,(function(t){var n=v(i,t);if(n){var r=n[e.prop];r&&r.chng()}}));if(o!==i){var g=o&&(0,p.hF)(f,e,o);!h&&g&&(o=S(e,o,n,"Converting")),i=o,d=g}e.add(a)}}})}(e,t,n,i)}return t}function C(e,t,n,i){if(t){var r=v(t,n),o=r&&!!r[e.prop],s=i&&i[0],a=i&&i[1],c=i&&i[2];if(!o){if(c)try{(0,p.V9)(t)}catch(t){m((e.hdlr||{})[u.Uw],n,"Blocking",t)}try{y(e,t,n,t[n]),r=v(t,n)}catch(t){m((e.hdlr||{})[u.Uw],n,"State",t)}}s&&(r[e.rf]=s),a&&(r[e.ro]=a),c&&(r[e.blkVal]=!0)}return t}function S(e,t,n,s){try{(0,r.z)(t,(function(n,i){y(e,t,n,i)})),t[p.nM]||((0,o.Ux)(t,p.nM,{get:function(){return e[u.K0]}}),function(e,t,n){(0,i.cy)(t)&&(0,d.I)(g,(function(i){var r=t[i];t[i]=function(){for(var i=[],o=0;o0&&function(e,t){var n,i,r,o,a,c;I||(n="AggregationError",i=function(e,t){t[u.oI]>1&&(e.errors=t[1])},o=r||Error,a=o[_.Fs][_.o_],c=Error.captureStackTrace,I=O(n,(function(){var e=this;try{F(o,n);var t=(0,T.p)(o,e,(0,D.K)(arguments))||e;if(t!==e){var r=(0,k.rL)(e);r!==(0,k.rL)(t)&&E(t,r)}return c&&c(t,e[_.BB]),i&&i(t,arguments),t}finally{F(o,a)}}),o));var l="Watcher error(s): ";throw(0,d.I)(t,(function(e,t){l+="\n".concat(t," > ").concat((0,s.m)(e))})),new I(l,t||[])}(0,t)}}return(t={prop:i,ro:r,rf:o})[u.JQ]=a,t[u.K0]=e,t.add=function(e){if(e&&e.h[u.oI]>0){l||(l=[]),f||(f=(0,R.dR)((function(){f=null,g()}),0));for(var t=0;t{"use strict";n.d(t,{Dy:()=>f,Hf:()=>g,If:()=>v,QA:()=>h,V9:()=>p,hF:()=>m,nM:()=>u});var i=n(4063),r=n(8456),o=n(4976),s=n(6758),a=n(4433),c=n(5106),u=(0,i.eC)("[[ai_dynCfg_1]]"),l=(0,i.eC)("[[ai_blkDynCfg_1]]"),d=(0,i.eC)("[[ai_frcDynCfg_1]]");function f(e){var t;return e&&((0,r.cy)(e)?(t=[])[c.oI]=e[c.oI]:(0,o.Q)(e)&&(t={}),t)?((0,s.z)(e,(function(e,n){t[e]=f(n)})),t):e}function h(e){if(e){var t=e[u]||e;if(t.cfg&&(t.cfg===e||t.cfg[u]===t))return t}return null}function p(e){if(e&&((0,o.Q)(e)||(0,r.cy)(e)))try{e[l]=!0}catch(e){}return e}function g(e){if(e)try{e[d]=!0}catch(e){}return e}function m(e,t,n){var i=!1;return n&&!e[t.blkVal]&&((i=n[d])||n[l]||(i=(0,o.Q)(n)||(0,r.cy)(n))),i}function v(e){(0,a.zk)("InvalidAccess:"+e)}},1590:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,o:()=>o});var i=n(3015),r=i.WS,o=i.fn},4234:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var i=(0,n(1590).H)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},4127:(e,t,n)=>{"use strict";n.d(t,{_:()=>Q});var i=n(4468),r=n(7859),o=n(2488),s=n(7688),a=n(4715),c=n(8456),u=n(4433),l=n(6758),d=n(4976),f=n(4110),h=n(5223),p=n(8052),g=n(5452),m=n(68),v=function(e){return e.value&&b(e),!0},y=[function(e){var t=e.value;if((0,c.cy)(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1},b,function(e){return e.type===g.H3},function(e){var t=e.value;return!!(0,c.$P)(t)&&(e.result=new Date(t.getTime()),!0)}];function C(e,t,n,i){var r=n.handler,o=n.path?i?n.path.concat(i):n.path:[],s={handler:n.handler,src:n.src,path:o},u=typeof t,l=!1,f=!1;t&&u===g.qv?l=(0,d.Q)(t):f=t===g.M_||(0,c.Cb)(u);var h={type:u,isPrim:f,isPlain:l,value:t,result:t,path:o,origin:n.src,copy:function(t,i){return C(e,t,i?s:n,i)},copyTo:function(t,n){return S(e,t,n,s)}};return h.isPrim?r&&(0,p.n)(r,n,h)?h.result:t:function(e,t,i,o){var s;return(0,a.I)(e,(function(e){if(e.k===t)return s=e,-1})),s||(s={k:t,v:t},e.push(s),function(e){(0,m.vF)(h,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,i=r;!(0,p.n)(i||(t0)&&(de||(de=!0,Te(t[x.x6]((function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var n=!1;le&&(n=le[x.XM],le[x._w]()),(le=(0,f.AH)(Se,t)).unref(),le[x.XM]=n})))),le[x.XM]=!0),le}function he(){var e={};ce=[];var t=function(t){t&&(0,a.I)(t,(function(t){if(t[x.Ju]&&t[x.s]&&!e[t.identifier]){var n=t[x.Ju]+"="+t[x.s];ce[x.y5](n),e[t.identifier]=t}}))};t(R),b&&(0,a.I)(b,(function(e){t(e)})),t(S)}function pe(){n=!1,(t=(0,k.e)({},B,e[x.Uw])).cfg[x.Bl]=1,(0,m.vF)(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),(0,m.vF)(e,"pluginVersionStringArr",{g:function(){return ce||he(),ce}}),(0,m.vF)(e,"pluginVersionString",{g:function(){return ue||(ce||he(),ue=ce.join(";")),ue||q.m5}}),(0,m.vF)(e,"logger",{g:function(){return d||(d=new N.wq(t.cfg),t[x.Uw]=d),d},s:function(e){t[x.Uw]=e,d!==e&&((0,E.K)(d,!1),d=e)}}),e[x.Uw]=new N.wq(t.cfg),ae=[];var i=e.config[q.jy]||[];i.splice(0,i[x.oI]),(0,_.Y)(i,ae),Q=new U,h=[],(0,E.K)(p,!1),p=null,g=null,v=null,(0,E.K)(y,!1),y=null,C=null,S=[],b=null,R=null,$=!1,Y=null,ee=(0,O.Z)("AIBaseCore",!0),te=(0,K.P)(),re=null,oe=null,ne=(0,z.w)(),se=[],ue=null,ce=null,fe=!1}function ge(){var n=(0,j.i8)(ye(),t.cfg,e);return n[x.by](r),n}function me(t){var n=function(e,t,n){var i,r=[],o=[],s={};return(0,a.I)(n,(function(t){((0,c.hX)(t)||(0,c.hX)(t[x.mE]))&&(0,u.$8)(W);var n=t[q.Vo],i=t[x.Ju];t&&n&&((0,c.hX)(s[n])?s[n]=i:(0,N.OG)(e,"Two extensions have same priority #"+n+" - "+s[n]+", "+i)),!n||n<500?r[x.y5](t):o[x.y5](t)})),(i={})[q.eT]=r,i[q.LZ]=o,i}(e[x.Uw],0,S);C=null,ue=null,ce=null,R=(b||[])[0]||[],R=(0,H.Xc)((0,_.Y)(R,n[q.LZ]));var i=(0,_.Y)((0,H.Xc)(n[q.eT]),R);ae=(0,s.N6)(i);var r=e.config[q.jy]||[];r.splice(0,r[x.oI]),(0,_.Y)(r,ae);var o=ge();R&&R[x.oI]>0&&(0,H.pI)(o[x.$o](R),i),(0,H.pI)(o,i),t&&we(t)}function ve(e){var t=null,n=null,i=[];return(0,a.I)(ae,(function(t){if(t[x.Ju]===e&&t!==Q)return n=t,-1;t.getChannel&&i[x.y5](t)})),!n&&i[x.oI]>0&&(0,a.I)(i,(function(t){if(!(n=t.getChannel(e)))return-1})),n&&(t={plugin:n,setEnabled:function(e){(0,H.Cr)(n)[q.Hr]=!e},isEnabled:function(){var e=(0,H.Cr)(n);return!e[x.Ik]&&!e[q.Hr]},remove:function(e,t){var i;void 0===e&&(e=!0);var r=[n],o=((i={reason:1})[x.tI]=e,i);Ce(r,o,(function(e){e&&me({reason:32,removed:r}),t&&t(e)}))}}),t}function ye(){if(!C){var n=(ae||[]).slice();-1===(0,P.r)(n,Q)&&n[x.y5](Q),C=(0,j.PV)((0,H.Xc)(n),t.cfg,e)}return C}function Ce(n,i,o){if(n&&n[x.oI]>0){var s=(0,j.PV)(n,t.cfg,e),c=(0,j.tS)(s,e);c[x.by]((function(){var e=!1,t=[];(0,a.I)(S,(function(i,r){G(i,n)?e=!0:t[x.y5](i)})),S=t,ue=null,ce=null;var i=[];b&&((0,a.I)(b,(function(t,r){var o=[];(0,a.I)(t,(function(t){G(t,n)?e=!0:o[x.y5](t)})),i[x.y5](o)})),b=i),o&&o(e),r()})),c[x.$5](i)}else o(!1)}function Se(){if(d&&d.queue){var t=d.queue.slice(0);d.queue[x.oI]=0,(0,a.I)(t,(function(t){var n,i=((n={})[x.RS]=Y||"InternalMessageId: "+t[x.JR],n.iKey=oe,n[x.fA]=(0,M._u)(new Date),n.baseType=N.WD.dataType,n.baseData={message:t[x.pM]},n);e.track(i)}))}}function be(e,t,n,i){var r=1,o=!1,s=null;function a(){r--,o&&0===r&&(s&&s[x._w](),s=null,t&&t(o),t=null)}return i=i||5e3,R&&R[x.oI]>0&&ge()[x.$o](R).iterate((function(t){if(t.flush){r++;var o=!1;t.flush(e,(function(){o=!0,a()}),n)||o||(e&&null==s?s=(0,f.dR)((function(){s=null,a()}),i):a())}})),o=!0,a(),!0}function we(t){var n=(0,j.nU)(ye(),e);n[x.by](r),e._updateHook&&!0===e._updateHook(n,t)||n[x.$5](t)}function Re(t){var n=e[x.Uw];n?((0,N.ZP)(n,2,73,t),r()):(0,u.$8)(t)}function De(t){var n=e[x.RF]();n&&n[q.Yp]([t],2)}function Te(e){ne.add(e)}pe(),e._getDbgPlgTargets=function(){return[ae]},e[x.tZ]=function(){return n},e[x.mE]=function(r,o,s,f){$&&(0,u.$8)(V),e[x.tZ]()&&(0,u.$8)("Core cannot be initialized more than once"),r=(t=(0,k.e)(r,B,s||e[x.Uw],!1)).cfg,Te(t[x.x6]((function(e){oe=e.cfg.instrumentationKey;var t=e.ref(e.cfg,q.Bw);(0,l.z)(t,(function(n){e.ref(t,n)})),(0,c.hX)(oe)&&(0,u.$8)("Please provide instrumentation key")}))),!(p=f)&&e[x.RF](),Te(t[x.x6]((function(e){var t=e.cfg.disableDbgExt;!0===t&&ie&&(p[x.TP](ie),ie=null),p&&!ie&&!0!==t&&(ie=(0,F.M)(e.cfg),p[x.vR](ie))}))),Te(t[x.x6]((function(e){var t=e.cfg.enablePerfMgr;!t&&v&&(v=null),t&&(0,M.c2)(e.cfg,q.Yd,X)}))),e[x.Uw]=s;var h=r[q.jy];if((S=[])[x.y5].apply(S,(0,i.vz)((0,i.vz)([],o,!1),h,!1)),b=r[q.LZ],me(null),R&&0!==R[x.oI]||(0,u.$8)("No "+q.LZ+" available"),b&&b[x.oI]>1){var g=e[x.AP]("TeeChannelController");g&&g.plugin||(0,N.ZP)(d,1,28,"TeeChannel required")}!function(e,t,n){(0,a.I)(t,(function(t){var i=(0,k.a)(e,t.w,n);delete t.w,t.rm=function(){i.rm()}}))}(r,se,d),se=null,n=!0,e.releaseQueue(),e[x.h4]()},e.getChannels=function(){var e=[];return R&&(0,a.I)(R,(function(t){e[x.y5](t)})),(0,s.N6)(e)},e.track=function(t){(0,A.r2)(e[q.kI](),(function(){return"AppInsightsCore:track"}),(function(){null===t&&(De(t),(0,u.$8)("Invalid telemetry item")),!t[x.RS]&&(0,c.hX)(t[x.RS])&&(De(t),(0,u.$8)("telemetry name required")),t.iKey=t.iKey||oe,t[x.fA]=t[x.fA]||(0,M._u)(new Date),t.ver=t.ver||"4.0",!$&&e[x.tZ]()?ge()[x.$5](t):h[x.y5](t)}),(function(){return{item:t}}),!t.sync)},e[x.ps]=ge,e[x.RF]=function(){return p||(p=new L.h(t.cfg),e._notificationManager=p),p},e[x.vR]=function(t){e[x.RF]()[x.vR](t)},e[x.TP]=function(e){p&&p[x.TP](e)},e.getCookieMgr=function(){return y||(y=(0,I.xN)(t.cfg,e[x.Uw])),y},e.setCookieMgr=function(e){y!==e&&((0,E.K)(y,!1),y=e)},e[q.kI]=function(){return g||v||Te(t[x.x6]((function(t){if(t.cfg.enablePerfMgr){var n=t.cfg[q.Yd];(0,c.Tn)(n)&&(v=n(e,e[x.RF]()))}}))),g||v||(0,A.Z4)()},e.setPerfMgr=function(e){g=e},e.eventCnt=function(){return h[x.oI]},e.releaseQueue=function(){if(n&&h[x.oI]>0){var e=h;h=[],(0,a.I)(e,(function(e){ge()[x.$5](e)}))}},e[x.h4]=function(e){return Y=e||null,fe=!1,le&&le[x._w](),r(!0)},e[x.Di]=function(){fe=!0,le&&le[x._w](),Se()},(0,M.o$)(e,(function(){return Q}),["addTelemetryInitializer"]),e[x.M5]=function(t,i,r){var s;void 0===t&&(t=!0),n||(0,u.$8)("SDK is not initialized"),$&&(0,u.$8)(V);var a,c=((s={reason:50})[x.tI]=t,s.flushComplete=!1,s);t&&!i&&(a=(0,o.Qo)((function(e){i=e})));var l=(0,j.tS)(ye(),e);function f(t){c.flushComplete=t,$=!0,te.run(l,c),e[x.Di](),l[x.$5](c)}return l[x.by]((function(){ne.run(e[x.Uw]),(0,E.k)([y,p,d],t,(function(){pe(),i&&i(c)}))}),e),Se(),be(t,f,6,r)||f(!1),a},e[x.AP]=ve,e.addPlugin=function(e,t,n,i){if(!e)return i&&i(!1),void Re(W);var r=ve(e[x.Ju]);if(r&&!t)return i&&i(!1),void Re("Plugin ["+e[x.Ju]+"] is already loaded!");var o={reason:16};function s(t){S[x.y5](e),o.added=[e],me(o),i&&i(!0)}if(r){var a=[r.plugin];Ce(a,{reason:2,isAsync:!!n},(function(e){e?(o.removed=a,o.reason|=32,s()):i&&i(!1)}))}else s()},e.updateCfg=function(n,i){var r;if(void 0===i&&(i=!0),e[x.tZ]()){r={reason:1,cfg:t.cfg,oldCfg:w({},t.cfg),newConfig:w({},n),merge:i},n=r.newConfig;var o=t.cfg;n[q.jy]=o[q.jy],n[q.LZ]=o[q.LZ]}t._block((function(e){var t=e.cfg;J(e,t,n,i),i||(0,l.z)(t,(function(i){(0,D.K)(n,i)||e.set(t,i,q.HP)})),e[x.h0](t,B)}),!0),t[x.zs](),r&&we(r)},e.evtNamespace=function(){return ee},e.flush=be,e.getTraceCtx=function(e){return re||(re=(0,H.u7)()),re},e.setTraceCtx=function(e){re=e||null},e.addUnloadHook=Te,(0,M.RF)(e,"addUnloadCb",(function(){return te}),"add"),e.onCfgChange=function(i){var r,o,s,a;return n?r=(0,k.a)(t.cfg,i,e[x.Uw]):((a=Z(o=se,s=i).l)||(a={w:s,rm:function(){var e=Z(o,s);-1!==e.i&&o[x.Ic](e.i,1)}},o[x.y5](a)),r=a),{rm:function(){r.rm()}}},e.getWParam=function(){return(0,T.Wt)()||t.cfg.enableWParam?0:-1}}))}return e.__ieDyn=1,e}()},3289:(e,t,n)=>{"use strict";n.d(t,{K:()=>c,k:()=>u});var i=n(2488),r=n(8064),o=n(7325),s=n(5223),a=n(5106);function c(e,t){if(e&&e[a.M5])return e[a.M5](t)}function u(e,t,n){var a;return n||(a=(0,i.Qo)((function(e){n=e}))),e&&(0,o.R)(e)>0?(0,r.Dv)(c(e[0],t),(function(){u((0,s.K)(e,1),t,n)})):n(),a}},9221:(e,t,n)=>{"use strict";n.d(t,{s:()=>v});var i,r=n(7859),o=n(68),s=n(8456),a=n(2842),c=n(5106),u=n(6347),l=n(8093),d=n(2704),f=n(3057),h=n(7872),p=n(4458),g="getPlugin",m=((i={})[d.Bw]={isVal:l.Gh,v:{}},i),v=function(){function e(){var t,n,i,v,y,C=this;function S(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,f.i8)(null,{},C[d.eT]);t=i&&i[g]?r[c.$o](null,i[g]):r[c.$o](null,i)}return t}function b(e,t,r){(0,a.e)(e,m,(0,u.y0)(t)),!r&&t&&(r=t[c.ps]()[c.uR]());var o=i;i&&i[g]&&(o=i[g]()),C[d.eT]=t,n=(0,f.i8)(r,e,t,o)}function w(){t=!1,C[d.eT]=null,n=null,i=null,y=(0,p.w)(),v=(0,h.P)()}w(),(0,r.A)(e,C,(function(e){e[c.mE]=function(e,n,i,r){b(e,n,r),t=!0},e[c.Ik]=function(t,n){var r,o=e[d.eT];if(o&&(!t||o===t[d.eT]())){var s,a=!1,u=t||(0,f.tS)(null,o,i&&i[g]?i[g]():i),l=n||((r={reason:0})[c.tI]=!1,r);return e[c.tn]&&!0===e[c.tn](u,l,h)?s=!0:h(),s}function h(){a||(a=!0,v.run(u,n),y.run(u[c.e4]()),!0===s&&u[c.$5](l),w())}},e[c.HC]=function(t,n){var r=e[d.eT];if(r&&(!t||r===t[d.eT]())){var o,s=!1,a=t||(0,f.nU)(null,r,i&&i[g]?i[g]():i),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(a,u,l)?o=!0:l(),o}function l(){s||(s=!0,b(a.getCfg(),a.core(),a[c.uR]()))}},(0,l.RF)(e,"_addUnloadCb",(function(){return v}),"add"),(0,l.RF)(e,"_addHook",(function(){return y}),"add"),(0,o.vF)(e,"_unloadHooks",{g:function(){return y}})})),C[c.e4]=function(e){return S(e)[c.e4]()},C[c.tZ]=function(){return t},C.setInitialized=function(e){t=e},C[c.YH]=function(e){i=e},C[c.$5]=function(e,t){t?t[c.$5](e):i&&(0,s.Tn)(i[d.qT])&&i[d.qT](e,null)},C._getTelCtx=S}return e.__ieDyn=1,e}()},2470:(e,t,n)=>{"use strict";n.d(t,{It:()=>J,gi:()=>z,um:()=>U,xN:()=>K});var i,r,o,s=n(1427),a=n(7192),c=n(8456),u=n(7868),l=n(3389),d=n(9445),f=n(1518),h=n(2253),p=n(5081),g=n(4715),m=n(6758),v=n(5922),y=n(2239),C=n(2842),S=n(5106),b=n(6347),w=n(4184),R=n(8093),D=n(2704),T="toGMTString",_="toUTCString",P="cookie",k="expires",x="isCookieUseDisabled",E="disableCookiesUsage",I="_ckMgr",O=null,F=null,N=null,M={},q={},L=((i={cookieCfg:(0,y.NU)((r={},r[D.Fk]={fb:"cookieDomain",dfVal:R.Gh},r.path={fb:"cookiePath",dfVal:R.Gh},r.enabled=D.HP,r.ignoreCookies=D.HP,r.blockedCookies=D.HP,r)),cookieDomain:D.HP,cookiePath:D.HP})[E]=D.HP,i);function A(){!o&&(o=(0,s.nR)((function(){return(0,a.YE)()})))}function j(e){return!e||e.isEnabled()}function H(e,t){return!!(t&&e&&(0,c.cy)(e.ignoreCookies))&&-1!==(0,u.r)(e.ignoreCookies,t)}function $(e,t){var n=t[S.XM];if((0,c.hX)(n)){var i=void 0;(0,c.b0)(e[x])||(i=!e[x]),(0,c.b0)(e[E])||(i=!e[E]),n=i}return n}function U(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t.cookieCfg;n=i&&i[I]?i[I]:K(t)}return n||(n=function(e,t){var n=K[I]||q[I];return n||(n=K[I]=K(e,t),q[I]=n),n}(t,(e||{})[S.Uw])),n}function K(e,t){var n,i,r,o,s,p,g,m,v;e=(0,C.e)(e||q,null,t).cfg,s=(0,C.a)(e,(function(t){t[S.h0](t.cfg,L),i=t.ref(t.cfg,"cookieCfg"),r=i[D.QW]||"/",o=i[D.Fk],p=!1!==$(e,i),g=i.getCookie||X,m=i.setCookie||G,v=i.delCookie||G}),t);var y=((n={isEnabled:function(){var n=!1!==$(e,i)&&p&&z(t),r=q[I];return n&&r&&y!==r&&(n=j(r)),n},setEnabled:function(e){p=!1!==e,i[S.XM]=e},set:function(e,t,n,s,p){var g=!1;if(j(y)&&!function(e,t){return!!(t&&e&&(0,c.cy)(e.blockedCookies)&&-1!==(0,u.r)(e.blockedCookies,t))||H(e,t)}(i,e)){var v={},C=(0,l.EH)(t||D.m5),b=(0,d.H)(C,";");if(-1!==b&&(C=(0,l.EH)((0,f.ZW)(t,b)),v=W((0,f.P0)(t,b+1))),(0,R.KY)(v,D.Fk,s||o,c.zz,c.b0),!(0,c.hX)(n)){var P=(0,w.lT)();if((0,c.b0)(v[k])){var x=(0,h.f)()+1e3*n;if(x>0){var E=new Date;E.setTime(x),(0,R.KY)(v,k,V(E,P?T:_)||V(E,P?T:_)||D.m5,c.zz)}}P||(0,R.KY)(v,"max-age",D.m5+n,null,c.b0)}var I=(0,w.g$)();I&&"https:"===I.protocol&&((0,R.KY)(v,"secure",null,null,c.b0),null===F&&(F=!J(((0,a.w3)()||{})[S.tX])),F&&(0,R.KY)(v,"SameSite","None",null,c.b0)),(0,R.KY)(v,D.QW,p||r,null,c.b0),m(e,B(C,v)),g=!0}return g},get:function(e){var t=D.m5;return j(y)&&!H(i,e)&&(t=g(e)),t},del:function(e,t){var n=!1;return j(y)&&(n=y.purge(e,t)),n},purge:function(e,n){var i,r=!1;if(z(t)){var o=((i={})[D.QW]=n||"/",i[k]="Thu, 01 Jan 1970 00:00:01 GMT",i);(0,w.lT)()||(o["max-age"]="0"),v(e,B(D.m5,o)),r=!0}return r}})[S.M5]=function(e){s&&s.rm(),s=null},n);return y[I]=y,y}function z(e){if(null===O){O=!1,!o&&A();try{var t=o.v||{};O=void 0!==t[P]}catch(t){(0,b.ZP)(e,2,68,"Cannot access document.cookie - "+(0,R.lL)(t),{exception:(0,p.m)(t)})}}return O}function W(e){var t={};if(e&&e[S.oI]){var n=(0,l.EH)(e)[S.sY](";");(0,g.I)(n,(function(e){if(e=(0,l.EH)(e||D.m5)){var n=(0,d.H)(e,"=");-1===n?t[e]=null:t[(0,l.EH)((0,f.ZW)(e,n))]=(0,l.EH)((0,f.P0)(e,n+1))}}))}return t}function V(e,t){return(0,c.Tn)(e[t])?e[t]():null}function B(e,t){var n=e||D.m5;return(0,m.z)(t,(function(e,t){n+="; "+e+((0,c.hX)(t)?D.m5:"="+t)})),n}function X(e){var t=D.m5;if(!o&&A(),o.v){var n=o.v[P]||D.m5;N!==n&&(M=W(n),N=n),t=(0,l.EH)(M[e]||D.m5)}return t}function G(e,t){!o&&A(),o.v&&(o.v[P]=e+"="+t)}function J(e){return!(!(0,c.Kg)(e)||!(0,R.Ju)(e,"CPU iPhone OS 12")&&!(0,R.Ju)(e,"iPad; CPU OS 12")&&!((0,R.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,R.Ju)(e,"Version/")&&(0,R.Ju)(e,"Safari"))&&(!(0,R.Ju)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,v.C)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,R.Ju)(e,"Chrome/5")&&!(0,R.Ju)(e,"Chrome/6")&&(!(0,R.Ju)(e,"UnrealEngine")||(0,R.Ju)(e,"Chrome"))&&!(0,R.Ju)(e,"UCBrowser/12")&&!(0,R.Ju)(e,"UCBrowser/11"))}},3318:(e,t,n)=>{"use strict";n.d(t,{aq:()=>s,cL:()=>a});var i=n(1518),r=n(2704),o=n(8667);function s(){var e=a();return(0,i.P0)(e,0,8)+"-"+(0,i.P0)(e,8,12)+"-"+(0,i.P0)(e,12,16)+"-"+(0,i.P0)(e,16,20)+"-"+(0,i.P0)(e,20)}function a(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=r.m5,s=0;s<4;s++)n+=t[15&(e=(0,o.VN)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&(0,o.VN)())|0];return(0,i.hK)(n,0,8)+(0,i.hK)(n,9,4)+"4"+(0,i.hK)(n,13,3)+a+(0,i.hK)(n,16,3)+(0,i.hK)(n,19,12)}},4424:(e,t,n)=>{"use strict";n.d(t,{T:()=>h,Z:()=>f});var i=n(68),r=n(5106),o=n(8093),s=n(2704),a=n(8667),c="3.0.4",u="."+(0,a.Si)(6),l=0;function d(e){return 1===e[r.re]||9===e[r.re]||!+e[r.re]}function f(e,t){return void 0===t&&(t=!1),(0,o.cH)(e+l+++(t?"."+c:s.m5)+u)}function h(e){var t={id:f("_aiData-"+(e||s.m5)+"."+c),accept:function(e){return d(e)},get:function(e,n,r,s){var a=e[t.id];return a?a[(0,o.cH)(n)]:(s&&(a=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(0,i.vF)(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),a[(0,o.cH)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},9463:(e,t,n)=>{"use strict";n.d(t,{$:()=>l,M:()=>d});var i,r=n(7192),o=n(5106),s=n(2704),a=[s.fc,s.Yp,s.dI,s.l0],c=null;function u(e,t){return function(){var n=arguments,i=l(t);if(i){var r=i.listener;r&&r[e]&&r[e][o.y9](r,n)}}}function l(e){var t,n=c;return n||!0===e.disableDbgExt||(n=c||((t=(0,r.zS)("Microsoft"))&&(c=t.ApplicationInsights),c)),n?n.ChromeDbgExt:null}function d(e){if(!i){i={};for(var t=0;t{"use strict";n.d(t,{OG:()=>w,Oc:()=>R,WD:()=>v,ZP:()=>b,wq:()=>C,y0:()=>y});var i,r=n(7859),o=n(8456),s=n(5081),a=n(2842),c=n(5106),u=n(9463),l=n(4184),d=n(2704),f="warnToConsole",h={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},p=((i={})[0]=null,i[1]="errorToConsole",i[2]=f,i[3]="debugToConsole",i);function g(e){return e?'"'+e[c.W7](/\"/g,d.m5)+'"':d.m5}function m(e,t){var n=(0,l.U5)();if(n){var i="log";n[e]&&(i=e),(0,o.Tn)(n[i])&&n[i](t)}}var v=function(){function e(e,t,n,i){void 0===n&&(n=!1);var r=this;r[c.JR]=e,r[c.pM]=(n?"AI: ":"AI (Internal): ")+e;var o=d.m5;(0,l.Z)()&&(o=(0,l.hm)().stringify(i));var s=(t?" message:"+g(t):d.m5)+(i?" props:"+g(o):d.m5);r[c.pM]+=s}return e.dataType="MessageData",e}();function y(e,t){return(e||{})[c.Uw]||new C(t)}var C=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,i,l,d,g,y=0,C={};(0,r.A)(e,this,(function(e){function r(t,n){if(!(y>=l)){var r=!0,o="AITR_"+n[c.JR];if(C[o]?r=!1:C[o]=!0,r&&(t<=i&&(e.queue[c.y5](n),y++,S(1===t?"error":"warn",n)),y===l)){var s="Internal events throttle limit per PageView reached for this app.",a=new v(23,s,!1);e.queue[c.y5](a),1===t?e.errorToConsole(s):e[c.on](s)}}}function S(e,n){var i=(0,u.$)(t||{});i&&i[c.e4]&&i[c.e4](e,n)}g=function(t){return(0,a.a)((0,a.e)(t,h,e).cfg,(function(e){var t=e.cfg;n=t[c.Bl],i=t.loggingLevelTelemetry,l=t.maxMessageLimit,d=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[c.ih]=function(t,i,a,u,l){void 0===l&&(l=!1);var h=new v(i,a,l,u);if(d)throw(0,s.m)(h);var g=p[t]||f;if((0,o.b0)(h[c.pM]))S("throw"+(1===t?"Critical":"Warning"),h);else{if(l){var m=+h[c.JR];!C[m]&&n>=t&&(e[g](h[c.pM]),C[m]=!0)}else n>=t&&e[g](h[c.pM]);r(t,h)}},e.debugToConsole=function(e){m("debug",e),S("warning",e)},e[c.on]=function(e){m("warn",e),S("warning",e)},e.errorToConsole=function(e){m("error",e),S("error",e)},e.resetInternalMessageCount=function(){y=0,C={}},e[c.sx]=r,e[c.M5]=function(e){g&&g.rm(),g=null}}))}return e.__ieDyn=1,e}();function S(e){return e||new C}function b(e,t,n,i,r,o){void 0===o&&(o=!1),S(e)[c.ih](t,n,i,r,o)}function w(e,t){S(e)[c.on](t)}function R(e,t,n){S(e)[c.sx](t,n)}},4184:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>$,Iu:()=>U,L0:()=>M,MY:()=>I,PV:()=>A,R7:()=>L,U5:()=>k,Uf:()=>q,Z:()=>x,cU:()=>_,g$:()=>P,hm:()=>E,iN:()=>O,lT:()=>N,lV:()=>F,xk:()=>j});var i=n(6204),r=n(8456),o=n(7192),s=n(7074),a=n(5106),c=n(8093),u=n(2704),l="documentMode",d="location",f="console",h="JSON",p="crypto",g="msCrypto",m="ReactNative",v="msie",y="trident/",C="XMLHttpRequest",S=null,b=null,w=!1,R=null,D=null;function T(e,t){var n=!1;if(e){try{if(!(n=t in e)){var o=e[i.vR];o&&(n=t in o)}}catch(e){}if(!n)try{var s=new e;n=!(0,r.b0)(s[t])}catch(e){}}return n}function _(e){w=e}function P(e){if(e&&w){var t=(0,o.zS)("__mockLocation");if(t)return t}return typeof location===i._1&&location?location:(0,o.zS)(d)}function k(){return typeof console!==i.bA?console:(0,o.zS)(f)}function x(){return Boolean(typeof JSON===i._1&&JSON||null!==(0,o.zS)(h))}function E(){return x()?JSON||(0,o.zS)(h):null}function I(){return(0,o.zS)(p)}function O(){return(0,o.zS)(g)}function F(){var e=(0,o.w3)();return!(!e||!e.product)&&e.product===m}function N(){var e=(0,o.w3)();if(e&&(e[a.tX]!==b||null===S)){var t=((b=e[a.tX])||u.m5)[a.OL]();S=(0,c.Ju)(t,v)||(0,c.Ju)(t,y)}return S}function M(e){if(void 0===e&&(e=null),!e){var t=(0,o.w3)()||{};e=t?(t.userAgent||u.m5)[a.OL]():u.m5}var n=(e||u.m5)[a.OL]();if((0,c.Ju)(n,v)){var i=(0,o.YE)()||{};return Math.max(parseInt(n[a.sY](v)[1]),i[l]||0)}if((0,c.Ju)(n,y)){var r=parseInt(n[a.sY](y)[1]);if(r)return r+4}return null}function q(e){return null!==D&&!1!==e||(D=(0,o.w9)()&&Boolean((0,o.w3)().sendBeacon)),D}function L(e){var t=!1;try{t=!!(0,o.zS)("fetch");var n=(0,o.zS)("Request");t&&e&&n&&(t=T(n,"keepalive"))}catch(e){}return t}function A(){return null===R&&(R=typeof XDomainRequest!==i.bA)&&j()&&(R=R&&!T((0,o.zS)(C),"withCredentials")),R}function j(){var e=!1;try{e=!!(0,o.zS)(C)}catch(e){}return e}function H(e,t){if(e)for(var n=0;n0?i[0]:{}).serverTiming,e).description}return t}},7153:(e,t,n)=>{"use strict";n.d(t,{Ds:()=>B,El:()=>O,Fc:()=>X,Hm:()=>q,ML:()=>A,Q3:()=>j,So:()=>$,Wg:()=>W,Ym:()=>H,ee:()=>V,lQ:()=>z,mB:()=>L,oS:()=>J,sq:()=>G,vF:()=>Z,zh:()=>U});var i=n(8456),r=n(4715),o=n(6758),s=n(7688),a=n(7192),c=n(7868),u=n(5106),l=n(4424),d=n(2704),f="on",h="attachEvent",p="addEventListener",g="detachEvent",m="removeEventListener",v="events",y="visibilitychange",C="pagehide",S="pageshow",b="unload",w="beforeunload",R=(0,l.Z)("aiEvtPageHide"),D=(0,l.Z)("aiEvtPageShow"),T=/\.[\.]+/g,_=/[\.]+$/,P=1,k=(0,l.T)("events"),x=/^([^.]*)(?:\.(.+)|)/;function E(e){return e&&e[u.W7]?e[u.W7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,d.m5):e}function I(e,t){var n;if(t){var o=d.m5;(0,i.cy)(t)?(o=d.m5,(0,r.I)(t,(function(e){(e=E(e))&&("."!==e[0]&&(e="."+e),o+=e)}))):o=E(t),o&&("."!==o[0]&&(o="."+o),e=(e||d.m5)+o)}var s=x.exec(e||d.m5)||[];return(n={})[u.QM]=s[1],n.ns=(s[2]||d.m5).replace(T,".").replace(_,d.m5)[u.sY](".").sort().join("."),n}function O(e,t,n){var i=[],s=k.get(e,v,{},!1),a=I(t,n);return(0,o.z)(s,(function(e,t){(0,r.I)(t,(function(e){var t;a[u.QM]&&a[u.QM]!==e.evtName[u.QM]||a.ns&&a.ns!=a.ns||i[u.y5](((t={})[u.RS]=e.evtName[u.QM]+(e.evtName.ns?"."+e.evtName.ns:d.m5),t.handler=e[u.Yo],t))}))})),i}function F(e,t,n){void 0===n&&(n=!0);var i=k.get(e,v,{},n),r=i[t];return r||(r=i[t]=[]),r}function N(e,t,n,i){e&&t&&t[u.QM]&&(e[m]?e[m](t[u.QM],n,i):e[g]&&e[g](f+t[u.QM],n))}function M(e,t,n,i){for(var r=t[u.oI];r--;){var o=t[r];o&&(n.ns&&n.ns!==o.evtName.ns||i&&!i(o)||(N(e,o.evtName,o[u.Yo],o.capture),t[u.Ic](r,1)))}}function q(e,t){return t?I("xx",(0,i.cy)(t)?[e].concat(t):[e,t]).ns[u.sY]("."):e}function L(e,t,n,i,r){var o;void 0===r&&(r=!1);var s=!1;if(e)try{var a=I(t,i);if(s=function(e,t,n,i){var r=!1;return e&&t&&t[u.QM]&&n&&(e[p]?(e[p](t[u.QM],n,i),r=!0):e[h]&&(e[h](f+t[u.QM],n),r=!0)),r}(e,a,n,r),s&&k.accept(e)){var c=((o={guid:P++,evtName:a})[u.Yo]=n,o.capture=r,o);F(e,a.type)[u.y5](c)}}catch(e){}return s}function A(e,t,n,i,r){if(void 0===r&&(r=!1),e)try{var a=I(t,i),c=!1;!function(e,t,n){if(t[u.QM])M(e,F(e,t[u.QM]),t,n);else{var i=k.get(e,v,{});(0,o.z)(i,(function(i,r){M(e,r,t,n)})),0===(0,s.cG)(i)[u.oI]&&k.kill(e,v)}}(e,a,(function(e){return!((!a.ns||n)&&e[u.Yo]!==n||(c=!0,0))})),c||N(e,a,n,r)}catch(e){}}function j(e,t,n,i){return void 0===i&&(i=!1),L(e,t,n,null,i)}function H(e,t,n,i){void 0===i&&(i=!1),A(e,t,n,null,i)}function $(e,t,n){var i=!1,r=(0,a.zk)();r&&(i=L(r,e,t,n),i=L(r.body,e,t,n)||i);var o=(0,a.YE)();return o&&(i=L(o,e,t,n)||i),i}function U(e,t,n){var i=(0,a.zk)();i&&(A(i,e,t,n),A(i.body,e,t,n));var r=(0,a.YE)();r&&A(r,e,t,n)}function K(e,t,n,i){var o=!1;return t&&e&&e[u.oI]>0&&(0,r.I)(e,(function(e){e&&(n&&-1!==(0,c.r)(n,e)||(o=$(e,t,i)||o))})),o}function z(e,t,n,r){var o=!1;return t&&e&&(0,i.cy)(e)&&!(o=K(e,t,n,r))&&n&&n[u.oI]>0&&(o=K(e,t,null,r)),o}function W(e,t,n){e&&(0,i.cy)(e)&&(0,r.I)(e,(function(e){e&&U(e,t,n)}))}function V(e,t,n){return z([w,b,C],e,t,n)}function B(e,t){W([w,b,C],e,t)}function X(e,t,n){var i=q(R,n),r=K([C],e,t,i);return t&&-1!==(0,c.r)(t,y)||(r=K([y],(function(t){var n=(0,a.YE)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,i)||r),!r&&t&&(r=X(e,null,n)),r}function G(e,t){var n=q(R,t);W([C],e,n),W([y],null,n)}function J(e,t,n){var i=q(D,n),r=K([S],e,t,i);return!(r=K([y],(function(t){var n=(0,a.YE)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,i)||r)&&t&&(r=J(e,null,n)),r}function Z(e,t){var n=q(D,t);W([S],e,n),W([y],null,n)}},8093:(e,t,n)=>{"use strict";n.d(t,{CP:()=>E,Gh:()=>v,Ju:()=>C,KY:()=>w,RF:()=>_,SZ:()=>k,_u:()=>S,c2:()=>R,cH:()=>y,hW:()=>x,lL:()=>b,o$:()=>P,qz:()=>T});var i=n(7688),r=n(6204),o=n(8456),s=n(9445),a=n(7440),c=n(68),u=n(4715),l=n(6758),d=n(4976),f=n(5106),h=n(2704),p=/-([a-z])/g,g=/([^\w\d_$])/g,m=/^(\d+[\w\d_$])/;function v(e){return!(0,o.hX)(e)}function y(e){var t=e;return t&&(0,o.Kg)(t)&&(t=(t=(t=t[f.W7](p,(function(e,t){return t.toUpperCase()})))[f.W7](g,"_"))[f.W7](m,(function(e,t){return"_"+t}))),t}function C(e,t){return!(!e||!t)&&-1!==(0,s.H)(e,t)}function S(e){return e&&e.toISOString()||""}function b(e){return(0,o.bJ)(e)?e[f.RS]:h.m5}function w(e,t,n,i,r){var o=n;return e&&((o=e[t])===n||r&&!r(o)||i&&!i(n)||(o=n,e[t]=o)),o}function R(e,t,n){var i;return e?!(i=e[t])&&(0,o.hX)(i)&&(i=(0,o.b0)(n)?{}:n,e[t]=i):i=(0,o.b0)(n)?{}:n,i}function D(e,t){var n=null,i=null;return(0,o.Tn)(e)?n=e:i=e,function(){var e=arguments;if(n&&(i=n()),i)return i[t][f.y9](i,e)}}function T(e,t,n){if(e&&t&&(0,o.Gv)(e)&&(0,o.Gv)(t)){var i=function(i){if((0,o.Kg)(i)){var r=t[i];(0,o.Tn)(r)?n&&!n(i,!0,t,e)||(e[i]=D(t,i)):n&&!n(i,!1,t,e)||((0,a.K)(e,i)&&delete e[i],(0,c.vF)(e,i,{g:function(){return t[i]},s:function(e){t[i]=e}}))}};for(var r in t)i(r)}return e}function _(e,t,n,i,r){e&&t&&n&&(!1!==r||(0,o.b0)(e[t]))&&(e[t]=D(n,i))}function P(e,t,n,i){return e&&t&&(0,o.Gv)(e)&&(0,o.cy)(n)&&(0,u.I)(n,(function(n){(0,o.Kg)(n)&&_(e,n,t,n,i)})),e}function k(e){return function(){var t=this;e&&(0,l.z)(e,(function(e,n){t[e]=n}))}}function x(e){return e&&i.vE&&(e=(0,r.s6)((0,i.vE)({},e))),e}function E(e,t,n,i,r,s){var c=arguments,u=c[0]||{},l=c[f.oI],h=!1,p=1;for(l>0&&(0,o.Lm)(u)&&(h=u,u=c[p]||{},p++),(0,o.Gv)(u)||(u={});p{"use strict";n.d(t,{Bw:()=>u,Fk:()=>y,HP:()=>i,Hr:()=>c,LZ:()=>o,QW:()=>C,Vo:()=>f,Yd:()=>a,Yp:()=>p,dI:()=>g,eT:()=>s,fc:()=>h,jy:()=>l,kI:()=>v,l0:()=>m,m5:()=>r,qT:()=>d,xW:()=>S});var i=void 0,r="",o="channels",s="core",a="createPerfMgr",c="disabled",u="extensionConfig",l="extensions",d="processTelemetry",f="priority",h="eventsSent",p="eventsDiscarded",g="eventsSendRequest",m="perfEvent",v="getPerfMgr",y="domain",C="path",S="Not dynamic - "},632:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var i=n(7859),r=n(2488),o=n(8064),s=n(4715),a=n(4110),c=n(68),u=n(7868),l=n(2842),d=n(5106),f=n(2704),h={perfEvtsSendAll:!1};function p(e,t,n,i){(0,s.I)(e,(function(e){if(e&&e[t])if(n)(0,a.dR)((function(){return i(e)}),0);else try{i(e)}catch(e){}}))}var g=function(){function e(t){var n,s;this.listeners=[];var g=[],m=(0,l.e)(t,h);s=m[d.x6]((function(e){n=!!e.cfg.perfEvtsSendAll})),(0,i.A)(e,this,(function(e){(0,c.vF)(e,"listeners",{g:function(){return g}}),e[d.vR]=function(e){g[d.y5](e)},e[d.TP]=function(e){for(var t=(0,u.r)(g,e);t>-1;)g[d.Ic](t,1),t=(0,u.r)(g,e)},e[f.fc]=function(e){p(g,f.fc,!0,(function(t){t[f.fc](e)}))},e[f.Yp]=function(e,t){p(g,f.Yp,!0,(function(n){n[f.Yp](e,t)}))},e[f.dI]=function(e,t){p(g,f.dI,t,(function(n){n[f.dI](e,t)}))},e[f.l0]=function(e){e&&(!n&&e[d.Zu]()||p(g,f.l0,!1,(function(t){e[d.tI]?(0,a.dR)((function(){return t[f.l0](e)}),0):t[f.l0](e)})))},e[d.M5]=function(e){var t,n=function(){s&&s.rm(),s=null,g=[]};if(p(g,"unload",!1,(function(n){var i=n[d.M5](e);i&&(t||(t=[]),t[d.y5](i))})),t)return(0,r.Qo)((function(e){return(0,o.Dv)((0,r.Xf)(t),(function(){n(),e()}))}));n()}}))}return e.__ieDyn=1,e}()},8672:(e,t,n)=>{"use strict";n.d(t,{NS:()=>p,Q6:()=>h,Z4:()=>v,r2:()=>m});var i=n(7859),r=n(2253),o=n(8456),s=n(68),a=n(5106),c=n(2704),u="ctx",l="ParentContextKey",d="ChildrenContextKey",f=null,h=function(){function e(t,n,i){var c,f=this;f.start=(0,r.f)(),f[a.RS]=t,f[a.tI]=i,f[a.Zu]=function(){return!1},(0,o.Tn)(n)&&(0,s.vF)(f,"payload",{g:function(){return!c&&(0,o.Tn)(n)&&(c=n(),n=null),c}}),f[a.O_]=function(t){return t?t===e[l]||t===e[d]?f[t]:(f[u]||{})[t]:null},f[a.e_]=function(t,n){t&&(t===e[l]?(f[t]||(f[a.Zu]=function(){return!0}),f[t]=n):t===e[d]?f[t]=n:(f[u]=f[u]||{})[t]=n)},f[a.Ru]=function(){var t=0,n=f[a.O_](e[d]);if((0,o.cy)(n))for(var i=0;i{"use strict";n.d(t,{PV:()=>D,W0:()=>T,i8:()=>b,nU:()=>R,tS:()=>w});var i=n(8456),r=n(4715),o=n(5081),s=n(6758),a=n(7688),c=n(7771),u=n(2842),l=n(5106),d=n(6347),f=n(8093),h=n(2704),p=n(8672),g=n(1448),m="TelemetryPluginChain",v="_hasRun",y="_getTelCtx",C=0;function S(e,t,n,a){var f=null,p=[];t||(t=(0,u.e)({},null,n[l.Uw])),null!==a&&(f=a?function(e,t,n){for(;e;){if(e[l.AP]()===n)return e;e=e[l.uR]()}return D([n],t.config||{},t)}(e,n,a):e);var g={_next:function(){var e=f;if(f=e?e[l.uR]():null,!e){var t=p;t&&t[l.oI]>0&&((0,r.I)(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){(0,d.ZP)(n[l.Uw],2,73,"Unexpected Exception during onComplete - "+(0,o.m)(e))}})),p=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,d.y0)(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var r=m(e,!0);return n&&(0,s.z)(n,(function(e,n){if((0,i.hX)(r[e])){var o=t.cfg[e];!o&&(0,i.hX)(o)||(r[e]=o)}(0,c.q)(t,r,e,n)})),t[l.h0](r,n)},getConfig:function(e,n,r){void 0===r&&(r=!1);var o,s=m(e,!1),a=t.cfg;return!s||!s[n]&&(0,i.hX)(s[n])?!a[n]&&(0,i.hX)(a[n])||(o=a[n]):o=s[n],o||!(0,i.hX)(o)?o:r},hasNext:function(){return!!f},getNext:function(){return f},setNext:function(e){f=e},iterate:function(e){for(var t;t=g._next();){var n=t[l.AP]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r0){var f=null;(0,r.I)(e,(function(e){if(u||s!==e||(u=!0),u&&e&&(0,i.Tn)(e[h.qT])){var r=function(e,t,n){var r,s=null,c=(0,i.Tn)(e[h.qT]),u=(0,i.Tn)(e[l.YH]),f={getPlugin:function(){return e},getNext:function(){return s},processTelemetry:function(r,o){S(o=o||function(){var r;return e&&(0,i.Tn)(e[y])&&(r=e[y]()),r||(r=b(f,t,n)),r}(),(function(t){if(!e||!c)return!1;var n=(0,g.Cr)(e);return!n[l.Ik]&&!n[h.Hr]&&(u&&e[l.YH](s),e[h.qT](r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||o[l.$5](r)},unload:function(t,n){S(t,(function(){var i=!1;if(e){var r=(0,g.Cr)(e),o=e[h.eT]||r[h.eT];!e||o&&o!==t.core()||r[l.Ik]||(r[h.eT]=null,r[l.Ik]=!0,r[l.tZ]=!1,e[l.Ik]&&!0===e[l.Ik](t,n)&&(i=!0))}return i}),"unload",(function(){}),n[l.tI])||t[l.$5](n)},update:function(t,n){S(t,(function(){var i=!1;if(e){var r=(0,g.Cr)(e),o=e[h.eT]||r[h.eT];!e||o&&o!==t.core()||r[l.Ik]||e[l.HC]&&!0===e[l.HC](t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t[l.$5](n)},_id:r=e?e[l.Ju]+"-"+e[h.Vo]+"-"+C++:"Unknown-0-"+C++,_setNext:function(e){s=e}};function S(t,n,i,a,c){var u=!1,f=e?e[l.Ju]:m,g=t[v];return g||(g=t[v]={}),t.setNext(s),e&&(0,p.r2)(t[h.eT](),(function(){return f+":"+i}),(function(){g[r]=!0;try{var e=s?s._id:h.m5;e&&(g[e]=!1),u=n(t)}catch(e){var a=!s||g[s._id];a&&(u=!0),s&&a||(0,d.ZP)(t[l.e4](),1,73,"Plugin ["+f+"] failed during "+i+" - "+(0,o.m)(e)+", run flags: "+(0,o.m)(g))}}),a,c),u}return(0,a.N6)(f)}(e,t,n);c||(c=r),f&&f._setNext(r),f=r}}))}return s&&!c?D([s],t,n):c}var T=function(e,t,n,i){var r=b(e,t,n,i);(0,f.o$)(this,r,(0,a.cG)(r))}},8667:(e,t,n)=>{"use strict";n.d(t,{Si:()=>v,VN:()=>m,Z1:()=>g});var i=n(2253),r=n(5106),o=n(4184),s=n(2704),a=4294967296,c=4294967295,u=123456789,l=987654321,d=!1,f=u,h=l;function p(){try{var e=2147483647&(0,i.f)();(t=(Math.random()*a^e)+e)<0&&(t>>>=0),f=u+t&c,h=l-t&c,d=!0}catch(e){}var t}function g(e){return e>0?Math.floor(m()/c*(e+1))>>>0:0}function m(e){var t=0,n=(0,o.MY)()||(0,o.iN)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,o.lT)()&&(d||p(),t=function(e){var t=((h=36969*(65535&h)+(h>>16)&c)<<16)+(65535&(f=18e3*(65535&f)+(f>>16)&c))>>>0&c;return t>>>=0}()&c),0===t&&(t=Math.floor(a*Math.random()|0)),e||(t>>>=0),t}function v(e){void 0===e&&(e=22);for(var t=m()>>>0,n=0,i=s.m5;i[r.oI]>>=6,5===n&&(t=(m()<<2&4294967295|3&t)>>>0,n=0);return i}},1448:(e,t,n)=>{"use strict";n.d(t,{Cr:()=>u,Xc:()=>d,pI:()=>l,u7:()=>f});var i=n(4715),r=n(5106),o=n(4424),s=n(2704),a=n(8468),c=(0,o.T)("plugin");function u(e){return c.get(e,"state",{},!0)}function l(e,t){for(var n,o=[],a=null,c=e[r.uR]();c;){var l=c[r.AP]();if(l){a&&a[r.YH]&&l[s.qT]&&a[r.YH](l);var d=!!(n=u(l))[r.tZ];l[r.tZ]&&(d=l[r.tZ]()),d||o[r.y5](l),a=l,c=c[r.uR]()}}(0,i.I)(o,(function(i){var o=e[s.eT]();i[r.mE](e.getCfg(),o,t,e[r.uR]()),n=u(i),i[s.eT]||n[s.eT]||(n[s.eT]=o),n[r.tZ]=!0,delete n[r.Ik]}))}function d(e){return e.sort((function(e,t){var n=0;if(t){var i=t[s.qT];e[s.qT]?n=i?e[s.Vo]-t[s.Vo]:1:i&&(n=-1)}else n=e?1:-1;return n}))}function f(e){var t={};return{getName:function(){return t[r.RS]},setName:function(n){e&&e.setName(n),t[r.RS]=n},getTraceId:function(){return t[r.P5]},setTraceId:function(n){e&&e.setTraceId(n),(0,a.hX)(n)&&(t[r.P5]=n)},getSpanId:function(){return t[r.wi]},setSpanId:function(n){e&&e.setSpanId(n),(0,a.wN)(n)&&(t[r.wi]=n)},getTraceFlags:function(){return t[r.Rr]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.Rr]=n}}}},7872:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var i=n(4715),r=n(5081),o=n(5106),s=n(6347);function a(){var e=[];return{add:function(t){t&&e[o.y5](t)},run:function(t,n){(0,i.I)(e,(function(e){try{e(t,n)}catch(e){(0,s.ZP)(t[o.e4](),2,73,"Unexpected error calling unload handler - "+(0,r.m)(e))}})),e=[]}}}},4458:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var i=n(4715),r=n(5081),o=n(9255),s=n(6347);function a(){var e=[];return{run:function(t){var n=e;e=[],(0,i.I)(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){(0,s.ZP)(t,2,73,"Unloading:"+(0,r.m)(e))}}))},add:function(t){t&&(0,o.Y)(e,t)}}}},8468:(e,t,n)=>{"use strict";n.d(t,{L0:()=>T,N7:()=>D,ZI:()=>S,ef:()=>_,hX:()=>b,mJ:()=>R,wN:()=>w,wk:()=>C});var i=n(1518),r=n(8456),o=n(3389),s=n(5106),a=n(3318),c=n(4184),u=n(2704),l=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,d="00",f="ff",h="00000000000000000000000000000000",p="0000000000000000",g=1;function m(e,t,n){return!(!e||e[s.oI]!==t||e===n||!e.match(/^[\da-f]*$/i))}function v(e,t,n){return m(e,t)?e:n}function y(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[s.oI]<2;)t="0"+t;return t}function C(e,t,n,r){var o;return(o={})[s.s]=m(r,2,f)?r:d,o[s.P5]=b(e)?e:(0,a.cL)(),o[s.wi]=w(t)?t:(0,i.ZW)((0,a.cL)(),16),o.traceFlags=n>=0&&n<=255?n:1,o}function S(e,t){var n;if(!e)return null;if((0,r.cy)(e)&&(e=e[0]||""),!e||!(0,r.Kg)(e)||e[s.oI]>8192)return null;if(-1!==e.indexOf(",")){var i=e[s.sY](",");e=i[t>0&&i[s.oI]>t?t:0]}var a=l.exec((0,o.EH)(e));return a&&a[1]!==f&&a[2]!==h&&a[3]!==p?((n={version:(a[1]||u.m5)[s.OL](),traceId:(a[2]||u.m5)[s.OL](),spanId:(a[3]||u.m5)[s.OL]()})[s.Rr]=parseInt(a[4],16),n):null}function b(e){return m(e,32,h)}function w(e){return m(e,16,p)}function R(e){return!!(e&&m(e[s.s],2,f)&&m(e[s.P5],32,h)&&m(e[s.wi],16,p)&&m(y(e[s.Rr]),2))}function D(e){return!!R(e)&&(e[s.Rr]&g)===g}function T(e){if(e){var t=y(e[s.Rr]);m(t,2)||(t="01");var n=e[s.s]||d;return"00"!==n&&"ff"!==n&&(n=d),"".concat(n.toLowerCase(),"-").concat(v(e.traceId,32,h).toLowerCase(),"-").concat(v(e.spanId,16,p).toLowerCase(),"-").concat(t.toLowerCase())}return""}function _(e){var t="traceparent",n=S((0,c.$Z)(t),e);return n||(n=S((0,c.Iu)(t),e)),n}},5106:(e,t,n)=>{"use strict";n.d(t,{$5:()=>T,$o:()=>q,AP:()=>b,Bl:()=>M,Di:()=>I,HC:()=>K,Ic:()=>g,Ik:()=>L,JQ:()=>r,JR:()=>A,Ju:()=>C,K0:()=>m,M5:()=>O,OL:()=>i,O_:()=>ee,P5:()=>ie,QM:()=>Z,RF:()=>P,RS:()=>R,Rr:()=>oe,Ru:()=>ne,TP:()=>x,Uw:()=>f,W7:()=>G,XM:()=>E,XW:()=>s,YH:()=>W,Yo:()=>Q,Zu:()=>Y,_w:()=>v,by:()=>F,e4:()=>$,e_:()=>te,fA:()=>D,h0:()=>l,h4:()=>w,ih:()=>u,mE:()=>y,oI:()=>o,on:()=>c,pM:()=>j,ps:()=>_,re:()=>X,s:()=>N,sY:()=>B,sx:()=>J,tI:()=>H,tX:()=>V,tZ:()=>S,tn:()=>U,uR:()=>z,vR:()=>k,wi:()=>re,x6:()=>d,y5:()=>p,y9:()=>h,zs:()=>a});var i="toLowerCase",r="blkVal",o="length",s="rdOnly",a="notify",c="warnToConsole",u="throwInternal",l="setDf",d="watch",f="logger",h="apply",p="push",g="splice",m="hdlr",v="cancel",y="initialize",C="identifier",S="isInitialized",b="getPlugin",w="pollInternalLogs",R="name",D="time",T="processNext",_="getProcessTelContext",P="getNotifyMgr",k="addNotificationListener",x="removeNotificationListener",E="enabled",I="stopPollingInternalLogs",O="unload",F="onComplete",N="version",M="loggingLevelConsole",q="createNew",L="teardown",A="messageId",j="message",H="isAsync",$="diagLog",U="_doTeardown",K="update",z="getNext",W="setNextPlugin",V="userAgent",B="split",X="nodeType",G="replace",J="logInternalMessage",Z="type",Q="handler",Y="isChildEvt",ee="getCtx",te="setCtx",ne="complete",ie="traceId",re="spanId",oe="traceFlags"},6204:(e,t,n)=>{"use strict";n.d(t,{Wy:()=>c,_1:()=>r,bA:()=>o,hW:()=>i,s6:()=>a,vR:()=>s});var i="function",r="object",o="undefined",s="prototype",a=Object,c=a[s]},4468:(e,t,n)=>{"use strict";n.d(t,{Im:()=>u,qU:()=>d,vz:()=>f});var i=n(7192),r=n(7688),o=n(4433),s=n(2415),a=n(6204),c=(((0,i.mS)()||{}).Symbol,((0,i.mS)()||{}).Reflect,"hasOwnProperty"),u=r.vE||function(e){for(var t,n=1,i=arguments.length;n{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>vt._,ApplicationInsights:()=>Rt,Sender:()=>gt,SeverityLevel:()=>bt.O,arrForEach:()=>T.I,isNullOrUndefined:()=>k.hX,proxyFunctions:()=>C.o$,throwError:()=>yt.$8});var i=n(7859),r=n(4468),o=n(6533),s=n(9636),a=n(2297),c=n(8900),u=n(2072),l=n(409),d=n(578),f=n(9017),h=n(6120),p=n(7990),g=n(3482),m=n(1181),v=n(2239),y=n(6347),C=n(8093),S=n(5081),b=n(7153),w=n(4424),R=n(2842),D=n(3057),T=n(4715),_=n(4184),P=n(3289),k=n(8456),x=n(7192),E=n(7688),I=n(2253),O=n(9221),F=n(2488),N=n(8064),M=n(68),q=n(4110),L=n(5875),A=n(35),j=n(2042),H=n(3146),$=n(6758),U="duration",K="tags",z="deviceType",W="data",V="name",B="traceID",X="length",G="stringify",J="measurements",Z="dataType",Q="envelopeType",Y="toString",ee="onLine",te="isOnline",ne="_get",ie="enqueue",re="count",oe="eventsLimitInMem",se="push",ae="emitLineDelimitedJson",ce="clear",ue="batchPayloads",le="createNew",de="markAsSent",fe="clearSent",he="bufferOverride",pe="BUFFER_KEY",ge="SENT_BUFFER_KEY",me="MAX_BUFFER_SIZE",ve="sendPOST",ye="triggerSend",Ce="diagLog",Se="_sender",be="customHeaders",we="maxBatchSizeInBytes",Re="onunloadDisableBeacon",De="isBeaconApiDisabled",Te="alwaysUseXhrOverride",_e="enableSessionStorageBuffer",Pe="_buffer",ke="onunloadDisableFetch",xe="instrumentationKey",Ee="convertUndefined",Ie="maxBatchInterval",Oe="baseType",Fe="sampleRate",Ne="_onError",Me="_onPartialSuccess",qe="_onSuccess",Le="itemsAccepted",Ae="oriPayload",je="setRequestHeader",He="eventsSendRequest",$e="getSamplingScore",Ue="baseType",Ke="baseData",ze="properties",We="true";function Ve(e,t,n){return(0,C.KY)(e,t,n,k.zz)}function Be(e,t,n){(0,k.hX)(e)||(0,$.z)(e,(function(e,i){(0,k.Et)(i)?n[e]=i:(0,k.Kg)(i)?t[e]=i:(0,_.Z)()&&(t[e]=(0,_.hm)()[G](i))}))}function Xe(e,t){(0,k.hX)(e)||(0,$.z)(e,(function(n,i){e[n]=i||t}))}function Ge(e,t,n,i){var s=new j.L(e,i,t);Ve(s,"sampleRate",n[o.tU]),(n[Ke]||{}).startTime&&(s.time=(0,C._u)(n[Ke].startTime)),s.iKey=n.iKey;var a=n.iKey.replace(/-/g,"");return s[V]=s[V].replace("{0}",a),function(e,t,n){var i=n[K]=n[K]||{},o=t.ext=t.ext||{},s=t[K]=t[K]||[],a=o.user;a&&(Ve(i,L.O.userAuthUserId,a.authId),Ve(i,L.O.userId,a.id||a.localId));var c=o.app;c&&Ve(i,L.O.sessionId,c.sesId);var u=o.device;u&&(Ve(i,L.O.deviceId,u.id||u.localId),Ve(i,L.O[z],u.deviceClass),Ve(i,L.O.deviceIp,u.ip),Ve(i,L.O.deviceModel,u.model),Ve(i,L.O[z],u[z]));var l=t.ext.web;if(l){Ve(i,L.O.deviceLanguage,l.browserLang),Ve(i,L.O.deviceBrowserVersion,l.browserVer),Ve(i,L.O.deviceBrowser,l.browser);var d=n[W]=n[W]||{},f=d[Ke]=d[Ke]||{},h=f[ze]=f[ze]||{};Ve(h,"domain",l.domain),Ve(h,"isManual",l.isManual?We:null),Ve(h,"screenRes",l.screenRes),Ve(h,"userConsent",l.userConsent?We:null)}var p=o.os;p&&Ve(i,L.O.deviceOS,p[V]);var g=o.trace;g&&(Ve(i,L.O.operationParentId,g.parentID),Ve(i,L.O.operationName,(0,A.Rr)(e,g[V])),Ve(i,L.O.operationId,g[B]));for(var m={},v=s[X]-1;v>=0;v--){var y=s[v];(0,$.z)(y,(function(e,t){m[e]=t})),s.splice(v,1)}(0,$.z)(s,(function(e,t){m[e]=t}));var S=(0,r.Im)((0,r.Im)({},i),m);S[L.O.internalSdkVersion]||(S[L.O.internalSdkVersion]=(0,A.Rr)(e,"javascript:".concat(Ze.Version),64)),n[K]=(0,C.hW)(S)}(e,n,s),n[K]=n[K]||[],(0,C.hW)(s)}function Je(e,t){(0,k.hX)(t[Ke])&&(0,y.ZP)(e,1,46,"telemetryItem.baseData cannot be null.")}var Ze={Version:"3.0.4"};function Qe(e,t,n){Je(e,t);var i={},r={};t[Ue]!==s.J[Z]&&(i.baseTypeSource=t[Ue]),t[Ue]===s.J[Z]?(i=t[Ke][ze]||{},r=t[Ke][J]||{}):t[Ke]&&Be(t[Ke],i,r),Be(t[W],i,r),(0,k.hX)(n)||Xe(i,n);var o=t[Ke][V],a=new s.J(e,o,i,r),c=new H.B(s.J[Z],a);return Ge(e,s.J[Q],t,c)}function Ye(e,t){(0,b.ML)(e,null,null,t)}var et,tt,nt=n(7868),it=function(){function e(t,n){var r=[],o=!1;this[ne]=function(){return r},this._set=function(e){return r=e},(0,i.A)(e,this,(function(e){e[ie]=function(i){e[re]()>=n[oe]?o||((0,y.ZP)(t,2,105,"Maximum in-memory buffer size reached: "+e[re](),!0),o=!0):r[se](i)},e[re]=function(){return r[X]},e.size=function(){for(var e=r[X],t=0;t0?n[ae]?e.join("\n"):"["+e.join(",")+"]":null},e[le]=function(e,n,i){var o=r.slice(0);e=e||t,n=n||{};var s=i?new ot(e,n):new rt(e,n);return(0,T.I)(o,(function(e){s[ie](e)})),s}}))}return e.__ieDyn=1,e}(),rt=function(e){function t(n,r){var o=e.call(this,n,r)||this;return(0,i.A)(t,o,(function(e,t){e[de]=function(e){t[ce]()},e[fe]=function(e){}})),o}return(0,r.qU)(t,e),t.__ieDyn=1,t}(it),ot=function(e){function t(n,r){var o=e.call(this,n,r)||this,s=!1,a=null==r?void 0:r.namePrefix,c=r[he]||{getItem:p.vH,setItem:p.Dt},u=c.getItem,l=c.setItem;return(0,i.A)(t,o,(function(e,i){var r=f(t[pe]),o=f(t[ge]),c=e._set(r.concat(o));function d(e,t){var n=[];return(0,T.I)(t,(function(t){(0,k.Tn)(t)||-1!==(0,nt.r)(e,t)||n[se](t)})),n}function f(e){var t=e;try{var i=u(n,t=a?a+"_"+t:t);if(i){var r=(0,_.hm)().parse(i);if((0,k.Kg)(r)&&(r=(0,_.hm)().parse(r)),r&&(0,k.cy)(r))return r}}catch(e){(0,y.ZP)(n,1,42," storage key: "+t+", "+(0,C.lL)(e),{exception:(0,S.m)(e)})}return[]}function h(e,t){var i=e;try{i=a?a+"_"+i:i;var r=JSON[G](t);l(n,i,r)}catch(e){l(n,i,JSON[G]([])),(0,y.ZP)(n,2,41," storage key: "+i+", "+(0,C.lL)(e)+". Buffer cleared",{exception:(0,S.m)(e)})}}c[X]>t[me]&&(c[X]=t[me]),h(t[ge],[]),h(t[pe],c),e[ie]=function(r){e[re]()>=t[me]?s||((0,y.ZP)(n,2,67,"Maximum buffer size reached: "+e[re](),!0),s=!0):(i[ie](r),h(t.BUFFER_KEY,e[ne]()))},e[ce]=function(){i[ce](),h(t.BUFFER_KEY,e[ne]()),h(t[ge],[]),s=!1},e[de]=function(i){h(t[pe],e._set(d(i,e[ne]())));var r=f(t[ge]);r instanceof Array&&i instanceof Array&&((r=r.concat(i))[X]>t[me]&&((0,y.ZP)(n,1,67,"Sent buffer reached its maximum size: "+r[X],!0),r[X]=t[me]),h(t[ge],r))},e[fe]=function(e){var n=f(t[ge]);n=d(e,n),h(t[ge],n)},e[le]=function(i,r,o){o=!!o;var s=e[ne]().slice(0),a=f(t[ge]).slice(0);i=i||n,r=r||{},e[ce]();var c=o?new t(i,r):new rt(i,r);return(0,T.I)(s,(function(e){c[ie](e)})),o&&c[de](a),c}})),o}return(0,r.qU)(t,e),t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(it),st=function(){function e(t){(0,i.A)(e,this,(function(e){function n(e,o){var s="__aiCircularRefCheck",a={};if(!e)return(0,y.ZP)(t,1,48,"cannot serialize object because it is null or undefined",{name:o},!0),a;if(e[s])return(0,y.ZP)(t,2,50,"Circular reference detected while serializing object",{name:o},!0),a;if(!e.aiDataContract){if("measurements"===o)a=r(e,"number",o);else if("properties"===o)a=r(e,"string",o);else if("tags"===o)a=r(e,"string",o);else if((0,k.cy)(e))a=i(e,o);else{(0,y.ZP)(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:o},!0);try{(0,_.hm)()[G](e),a=e}catch(e){(0,y.ZP)(t,1,48,e&&(0,k.Tn)(e[Y])?e[Y]():"Error serializing object",null,!0)}}return a}return e[s]=!0,(0,$.z)(e.aiDataContract,(function(r,s){var c=(0,k.Tn)(s)?1&s():1&s,u=(0,k.Tn)(s)?4&s():4&s,l=2&s,d=void 0!==e[r],f=(0,k.Gv)(e[r])&&null!==e[r];if(!c||d||l){if(!u){var h;void 0!==(h=f?l?i(e[r],r):n(e[r],r):e[r])&&(a[r]=h)}}else(0,y.ZP)(t,1,24,"Missing required field specification. The field is required but not present on source",{field:r,name:o})})),delete e[s],a}function i(e,i){var r;if(e)if((0,k.cy)(e)){r=[];for(var o=0;o100||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[Fe]=e,this.samplingScoreGenerator=new ut}return e.prototype.isSampledIn=function(e){var t=this[Fe];return null==t||t>=100||e.baseType===d.J[Z]||this.samplingScoreGenerator[$e](e)0&&e<=100}),100),et[be]=dt,et[Ee]=dt,et[oe]=1e4,et[he]=!1,et.httpXHROverride={isVal:function(e){return e&&e[ve]},v:dt},et[Te]=(0,v.DD)(),et)),pt=((tt={})[s.J.dataType]=Qe,tt[a.C.dataType]=function(e,t,n){Je(e,t);var i=t[Ke].message,r=t[Ke].severityLevel,o=t[Ke][ze]||{},s=t[Ke][J]||{};Be(t[W],o,s),(0,k.hX)(n)||Xe(o,n);var c=new a.C(e,i,r,o,s),u=new H.B(a.C[Z],c);return Ge(e,a.C[Q],t,u)},tt[c.h.dataType]=function(e,t,n){var i;Je(e,t);var r=t[Ke];(0,k.hX)(r)||(0,k.hX)(r[ze])||(0,k.hX)(r[ze][U])?(0,k.hX)(t[W])||(0,k.hX)(t[W][U])||(i=t[W][U],delete t[W][U]):(i=r[ze][U],delete r[ze][U]);var o,s=t[Ke];((t.ext||{}).trace||{})[B]&&(o=t.ext.trace[B]);var a=s.id||o,u=s[V],l=s.uri,d=s[ze]||{},f=s[J]||{};if((0,k.hX)(s.refUri)||(d.refUri=s.refUri),(0,k.hX)(s.pageType)||(d.pageType=s.pageType),(0,k.hX)(s.isLoggedIn)||(d.isLoggedIn=s.isLoggedIn[Y]()),!(0,k.hX)(s[ze])){var h=s[ze];(0,$.z)(h,(function(e,t){d[e]=t}))}Be(t[W],d,f),(0,k.hX)(n)||Xe(d,n);var p=new c.h(e,u,l,i,d,f,a),g=new H.B(c.h[Z],p);return Ge(e,c.h[Q],t,g)},tt[u.H.dataType]=function(e,t,n){Je(e,t);var i=t[Ke],r=i[V],o=i.uri||i.url,s=i[ze]||{},a=i[J]||{};Be(t[W],s,a),(0,k.hX)(n)||Xe(s,n);var c=new u.H(e,r,o,void 0,s,a,i),l=new H.B(u.H[Z],c);return Ge(e,u.H[Q],t,l)},tt[l.WJ.dataType]=function(e,t,n){Je(e,t);var i=t[Ke][J]||{},r=t[Ke][ze]||{};Be(t[W],r,i),(0,k.hX)(n)||Xe(r,n);var o=t[Ke],s=l.WJ.CreateFromInterface(e,o,r,i),a=new H.B(l.WJ[Z],s);return Ge(e,l.WJ[Q],t,a)},tt[d.J.dataType]=function(e,t,n){Je(e,t);var i=t[Ke],r=i[ze]||{},o=i[J]||{};Be(t[W],r,o),(0,k.hX)(n)||Xe(r,n);var s=new d.J(e,i[V],i.average,i.sampleCount,i.min,i.max,i.stdDev,r,o),a=new H.B(d.J[Z],s);return Ge(e,d.J[Q],t,a)},tt[f.A.dataType]=function(e,t,n){Je(e,t);var i=t[Ke][J]||{},r=t[Ke][ze]||{};Be(t[W],r,i),(0,k.hX)(n)||Xe(r,n);var s=t[Ke];if((0,k.hX)(s))return(0,y.OG)(e,"Invalid input for dependency data"),null;var a=s[ze]&&s[ze][o.ym]?s[ze][o.ym]:"GET",c=new f.A(e,s.id,s.target,s[V],s[U],s.success,s.responseCode,a,s.type,s.correlationContext,r,i),u=new H.B(f.A[Z],c);return Ge(e,f.A[Q],t,u)},tt),gt=function(e){function t(){var n,r,s,a,c,u,l,d=e.call(this)||this;d.priority=1001,d.identifier=h.BreezeChannelIdentifier;var f,v,O,L,A,j,H,$,U,z,V,B,G,J,Z,Q,Y,ne,oe,ae,pe,ge=0;return(0,i.A)(t,d,(function(e,i){function h(e,t){for(var n,i=null,r=null,o=0;null==r&&o0){var i=e._buffer[ue](t);return(n={})[W]=i,n.urlString=L,n.headers=l,n.disableXhrSync=oe,n.disableFetchKeepAlive=!ae,n[Ae]=t,n}return null}function Ke(e,t,n){return et(e,t,!1)}function ze(t){var n=t?t[X]:0;return e[Pe].size()+n>j&&(v&&!v[te]()||e[ye](!0,null,10),!0)}function We(t,i,r,o,s,a){var c=null;if(e._appId||(c=tt(a))&&c.appId&&(e._appId=c.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!Ve(r))return void e[Ne](i,s);!B&&ct(t)?(nt(i),(0,y.ZP)(e[Ce](),2,40,". Response code "+t+". Will retry to send "+i[X]+" items.")):e[Ne](i,s)}else v&&!v[te]()?B||(nt(i,10),(0,y.ZP)(e[Ce](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!v.isOnline(),". Will retry to send ").concat(i.length," items."))):(Ve(r),206===t?(c||(c=tt(a)),c&&!B?e[Me](i,c):e[Ne](i,s)):(n=0,e[qe](i,o)))}function Ve(e){return!(u>=10||(0,k.hX)(e)||""===e||e===L||(L=e,++u,0))}function Be(e,t,n,i){try{e(t,n,i)}catch(e){}}function Xe(e,t){f?f(e,!1):Je(Ue(e),(function(t,n,i){return me(e,t,0,i)}))}function Ge(e,t){var n=(0,x.w3)(),i=L,r=new Blob([e],{type:"text/plain;charset=UTF-8"}),o=n.sendBeacon(i,r);return o&&t(200,{},e),o}function Je(t,n,i){var r=t,o=r&&r[W];if((0,k.Kg)(o)&&o[X]>0&&!Ge(o,n)){var s=[];if(r[Ae][X]>0)for(var a=0;a0&&(pe&&pe(s,!0),(0,y.ZP)(e[Ce](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function Ze(t,n,i){var r,s,a,c=t,u=new XMLHttpRequest,d=L;try{u[o.xF]=!0}catch(e){}return u.open("POST",d,!i),u[je]("Content-type","application/json"),(0,g.Qu)(d)&&u[je](m.a[6],m.a[7]),(0,T.I)((0,E.cG)(l),(function(e){u[je](e,l[e])})),u.onreadystatechange=function(){var t=c[Ae];e._xhrReadyStateChange(u,t,t[X]),4===u.readyState&&s&&s(!0)},u.onerror=function(e){Be(n,400,{},ut(u)),a&&a(e)},!i&&Y&&(r=(0,F.Qo)((function(e,t){s=e,a=t}))),u.send(t[W]),r}function Qe(t,n){var i=function(e,n,i){return me(t,e,0,i)};if((0,k.cy)(t)){for(var r=t[X],o=0;o=n[Le]&&n.itemsReceived-n.itemsAccepted===n.errors[X])return n}}catch(n){(0,y.ZP)(e[Ce](),1,43,"Cannot parse the response. "+(0,C.lL)(n),{response:t})}return null}function nt(t,i){if(void 0===i&&(i=1),t&&0!==t[X]){var o=e[Pe];o[fe](t),n++;for(var s=0,a=t;s0?(0,T.I)($,(function(e){d.addHeader(e.header,e.value)})):$=null,Y=i.enableSendPromise;var u,v=i.httpXHROverride,b=null;b=h([1,2],!1);var w={sendPOST:Ze};pe=function(e,t){return $e(w,e,t)},!i[De]&&(0,_.Uf)()&&(b=h([3],!1)),b=ne?v:b||v||w,e[Se]=function(e,t){return $e(b,e,t)},ae&&(f=Qe),u=ne?v:h([3,1],!0)||v,!ne&&f||!u||(f=function(e,t){return $e(u,e,t)}),f||(f=pe),U=i.disableTelemetry,V=i[Ee]||dt,B=i.isRetryDisabled,G=i[Ie]})))},e.processTelemetry=function(n,i){var r,s=(i=e._getTelCtx(i))[Ce]();try{if(U)return;if(!n)return void(0,y.ZP)(s,1,7,"Cannot send empty telemetry");if(n.baseData&&!n[Oe])return void(0,y.ZP)(s,1,70,"Cannot send telemetry without baseData and baseType");if(n[Oe]||(n[Oe]="EventData"),!e[Se])return void(0,y.ZP)(s,1,28,"Sender was not initialized");if(r=n,!e._sample.isSampledIn(r))return void(0,y.ZP)(s,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[Fe]});n[o.tU]=e._sample[Fe];var a=n.iKey||z,u=t.constructEnvelope(n,a,s,V);if(!u)return void(0,y.ZP)(s,1,47,"Unable to create an AppInsights envelope");var l=!1;if(n[K]&&n[K][o.jp]&&((0,T.I)(n[K][o.jp],(function(e){try{e&&!1===e(u)&&(l=!0,(0,y.OG)(s,"Telemetry processor check returns false"))}catch(e){(0,y.ZP)(s,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,C.lL)(e),{exception:(0,S.m)(e)},!0)}})),delete n[K][o.jp]),l)return;var d=c.serialize(u),f=e[Pe];ze(d),f[ie](d),it()}catch(e){(0,y.ZP)(s,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+(0,C.lL)(e),{exception:(0,S.m)(e)})}e.processNext(n,i)},e._xhrReadyStateChange=function(e,t,n){4===e.readyState&&We(e.status,t,e.responseURL,n,ut(e),ft(e)||e.response)},e[ye]=function(t,n,i){var r;if(void 0===t&&(t=!0),!s)try{var o=e[Pe];if(U)o[ce]();else{if(o[re]()>0){var a=o.getItems();!function(t,n){var i,r=(i="getNotifyMgr",e.core[i]?e.core[i]():e.core._notificationManager);if(r&&r[He])try{r[He](t,n)}catch(t){(0,y.ZP)(e[Ce](),1,74,"send request notification failed: "+(0,C.lL)(t),{exception:(0,S.m)(t)})}}(i||0,t),r=n?n.call(e,a,t):e[Se](a,t)}new Date}at()}catch(t){var c=(0,_.L0)();(!c||c>9)&&(0,y.ZP)(e[Ce](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+(0,C.lL)(t),{exception:(0,S.m)(t)})}return r},e._doTeardown=function(t,n){e.onunloadFlush(),(0,P.K)(v,!1),mt()},e[Ne]=function(t,n,i){(0,y.ZP)(e[Ce](),2,26,"Failed to send telemetry.",{message:n}),e._buffer&&e._buffer[fe](t)},e[Me]=function(t,n){for(var i=[],r=[],o=0,s=n.errors.reverse();o0&&e[qe](t,n[Le]),i[X]>0&&e[Ne](i,ut(null,["partial success",n[Le],"of",n.itemsReceived].join(" "))),r[X]>0&&(nt(r),(0,y.ZP)(e[Ce](),2,40,"Partial success. Delivered: "+t[X]+", Failed: "+i[X]+". Will retry to send "+r[X]+" our of "+n.itemsReceived+" items"))},e[qe]=function(t,n){e._buffer&&e._buffer[fe](t)},e._xdrOnLoad=function(t,i){var r=ft(t);if(!t||r+""!="200"&&""!==r){var o=tt(r);o&&o.itemsReceived&&o.itemsReceived>o[Le]&&!B?e[Me](i,o):e[Ne](i,gt(t))}else n=0,e[qe](i,0)}})),d}return(0,r.qU)(t,e),t.constructEnvelope=function(e,t,n,i){var o;return o=t===e.iKey||(0,k.hX)(t)?e:(0,r.Im)((0,r.Im)({},e),{iKey:t}),(pt[o.baseType]||Qe)(n,o,i)},t}(O.s),mt=n(8096),vt=n(4127),yt=n(4433),Ct="instrumentationKey",St="connectionString",bt=n(3222),wt={diagnosticLogInterval:(0,v.Lx)((function(e){return e&&e>0}),1e4)},Rt=function(){function e(t){var n,r=new vt._;((0,k.hX)(t)||(0,k.hX)(t[Ct])&&(0,k.hX)(t[St]))&&(0,yt.$8)("Invalid input configuration"),(0,i.A)(e,this,(function(e){function i(){var e=(0,R.e)(t||{},wt);n=e.cfg,r.addUnloadHook((0,R.a)(e,(function(){if(n[St]){var e=(0,mt.H)(n[St]),t=e.ingestionendpoint;n.endpointUrl=t?t+o.wc:n.endpointUrl,n[Ct]=e.instrumentationkey||n[Ct]}}))),r.initialize(n,[new gt])}(0,M.vF)(e,"config",{g:function(){return n}}),i(),e.initialize=i,(0,C.o$)(e,r,["track","flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange"])}))}return e.__ieDyn=1,e}()},7859:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var i,r=n(7192),o=n(4222),s=n(4433),a="constructor",c="prototype",u="function",l="_dynInstFuncs",d="_isDynProxy",f="_dynClass",h="_dynCls$",p="_dynInstChk",g=p,m="_dfOpts",v="_unknown_",y="__proto__",C="_dyn"+y,S="__dynProto$Gbl",b="_dynInstProto",w="useBaseInst",R="setInstFuncs",D=Object,T=D.getPrototypeOf,_=D.getOwnPropertyNames,P=(0,r.mS)(),k=P[S]||(P[S]={o:(i={},i[R]=!0,i[w]=!0,i),n:1e3});function x(e){return e&&(e===D[c]||e===Array[c])}function E(e){return x(e)||e===Function[c]}function I(e){var t;if(e){if(T)return T(e);var n=e[y]||e[c]||(e[a]?e[a][c]:null);t=e[C]||n,(0,o.v)(e,C)||(delete e[b],t=e[C]=e[b]||e[C],e[b]=n)}return t}function O(e,t){var n=[];if(_)n=_(e);else for(var i in e)"string"==typeof i&&(0,o.v)(e,i)&&n.push(i);if(n&&n.length>0)for(var r=0;r=0;n--)if(e[n]===t)return!0;return!1}function q(e,t,n,i,r){if(!x(e)){var s=n[l]=n[l]||{},a=s[t]=s[t]||{};!1!==s[g]&&(s[g]=!!r),O(n,(function(t){F(n,t,!1)&&n[t]!==i[t]&&(a[t]=n[t],delete n[t],(!(0,o.v)(e,t)||e[t]&&!e[t][d])&&(e[t]=function(e,t){var n=function(){var i=function(e,t,n,i){var r=null;if(e&&(0,o.v)(n,f)){var s=e[l]||{};if((r=(s[n[f]]||{})[t])||N("Missing ["+t+"] "+u),!r[p]&&!1!==s[g]){for(var a=!(0,o.v)(e,t),c=I(e),d=[];a&&c&&!E(c)&&!M(d,c);){var h=c[t];if(h){a=h===i;break}d.push(c),c=I(c)}try{a&&(e[t]=r),r[p]=1}catch(e){s[g]=!1}}}return r}(this,t,e,n)||function(e,t,n){var i=t[e];return i===n&&(i=I(t)[e]),typeof i!==u&&N("["+e+"] is not a "+u),i}(t,e,n);return i.apply(this,arguments)};return n[d]=1,n}(e,t)))}))}}function L(e,t){return(0,o.v)(e,c)?e.name||t||v:((e||{})[a]||{}).name||t||v}function A(e,t,n,i){(0,o.v)(e,c)||N("theClass is an invalid class definition.");var r=e[c];(function(e,t){if(T){for(var n=[],i=I(t);i&&!E(i)&&!M(n,i);){if(i===e)return!0;n.push(i),i=I(i)}return!1}return!0})(r,t)||N("["+L(e)+"] not in hierarchy of ["+L(t)+"]");var s=null;(0,o.v)(r,f)?s=r[f]:(s=h+L(e,"_")+"$"+k.n,k.n++,r[f]=s);var a=A[m],u=!!a[w];u&&i&&void 0!==i[w]&&(u=!!i[w]);var p=function(e){var t={};return O(e,(function(n){!t[n]&&F(e,n,!1)&&(t[n]=e[n])})),t}(t),v=function(e,t,n,i){function r(e,t,n){var r=t[n];if(r[d]&&i){var o=e[l]||{};!1!==o[g]&&(r=(o[t[f]]||{})[n]||r)}return function(){return r.apply(e,arguments)}}var o={};O(n,(function(e){o[e]=r(t,n,e)}));for(var s=I(e),a=[];s&&!E(s)&&!M(a,s);)O(s,(function(e){!o[e]&&F(s,e,!T)&&(o[e]=r(t,s,e))})),a.push(s),s=I(s);return o}(r,t,p,u);n(t,v);var y=!!T&&!!a[R];y&&i&&(y=!!i[R]),q(r,s,t,p,!1!==y)}A[m]=k.o},8064:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>r,yN:()=>o});var i=n(8456);function r(e,t){return o(e,(function(e){t&&t({value:e,rejected:!1})}),(function(e){t&&t({rejected:!0,reason:e})}))}function o(e,t,n,r){var o=e;return(0,i.$X)(e)?(t||n)&&(o=e.then(t,n)):t&&t(e),r&&(o=function(e,t){var n=e;return t&&((0,i.$X)(e)?n=e.finally?e.finally(t):e.then((function(e){return t(),e}),(function(e){throw t(),e})):t()),n}(o,r)),o}},2488:(e,t,n)=>{"use strict";n.d(t,{Xf:()=>j,Qo:()=>A});var i,r,o,s,a,c=n(1427),u=n(8456),l=n(5081),d=n(5223),f=n(7192),h=n(4110),p=n(68),g=n(4063),m=n(4433),v=n(4715),y=n(8064),C=!1,S=["pending","resolving","resolved","rejected"],b=n(8353),w="dispatchEvent",R="Promise",D="unhandledRejection",T=D.toLowerCase(),_=[],P=0,k=10;function x(e){return(0,u.Tn)(e)?e.toString():(0,l.m)(e)}function E(e){return function(t){var n=(0,d.K)(arguments,1);return e((function(e,n){try{var i=[],r=1;(0,v.I)(t,(function(t,o){t&&(r++,(0,y.yN)(t,(function(t){i[o]=t,0==--r&&e(i)}),n))})),0==--r&&e(i)}catch(e){n(e)}}),n)}}function I(e){return function(t){var n=(0,d.K)(arguments,1);return(0,u.$X)(t)?t:e((function(e){e(t)}),n)}}function O(e){return function(t){var n=(0,d.K)(arguments,1);return e((function(e,n){n(t)}),n)}}var F,N,M=function(e){(0,v.I)(e,(function(e){try{e()}catch(e){}}))};function q(e,t){return function(e,t,n){var c,v,y=(0,d.K)(arguments,3),E=0,I=!1,O=[],F=P++,N=_.length>0?_[_.length-1]:void 0,M=!1,q=null;!a&&(a=(0,f.O7)(R+"RejectionEvent"));var L,A,j,H,$=function(t,n){try{return _.push(F),M=!0,q&&q.cancel(),q=null,e((function(e,i){O.push((function(){try{var r=2===E?t:n,o=(0,u.b0)(r)?c:(0,u.Tn)(r)?r(c):r;(0,u.$X)(o)?o.then(e,i):r?e(o):3===E?i(o):e(o)}catch(e){i(e)}})),I&&K()}),y)}finally{_.pop()}},U=function(){return S[E]},K=function(){if(O.length>0){var e=O.slice();O=[],M=!0,t(e),q&&q.cancel(),q=null}},z=function(e,t){return function(n){if(E===t){if(2===e&&(0,u.$X)(n))return E=1,void n.then(z(2,1),z(3,1));E=e,I=!0,c=n,K(),M||3!==e||q||(q=(0,h.dR)(W,k))}}},W=function(){M||((0,f.Ll)()?process.emit(D,c,v):function(e,t,n,i){var r=(0,f.YE)();!s&&(s=(0,b.I)((function(){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}),null));var o=s.v?r.createEvent("Event"):i?new Event(t):{};if(n&&n(o),s.v&&o.initEvent(t,!1,!0),o&&e[w])e[w](o);else{var a=e["on"+t];if(a)a(o);else{var c=(0,f.zS)("console");c&&(c.error||c.log)(t,(0,l.m)(o))}}}((0,f.zk)()||(0,f.mS)(),T,(function(e){return(0,p.vF)(e,"promise",{g:function(){return v}}),e.reason=c,e}),!!a.v))};return v={then:$,catch:function(e){return $(void 0,e)},finally:function(e){var t=e,n=e;return(0,u.Tn)(e)&&(t=function(t){return e&&e(),t},n=function(t){throw e&&e(),t}),$(t,n)}},(0,p.Ux)(v,"state",{get:U}),C&&(L=v,A=U,j=function(){return(0,u.SZ)(c)},H=function(){return M},i=i||{toString:function(){return"[[PromiseState]]"}},r=r||{toString:function(){return"[[PromiseResult]]"}},o=o||{toString:function(){return"[[PromiseIsHandled]]"}},(0,p.Ux)(L,i,{get:A}),(0,p.Ux)(L,r,{get:j}),(0,p.Ux)(L,o,{get:H})),(0,g.Lo)()&&(v[(0,g.Y0)(11)]="IPromise"),v.toString=function(){return"IPromise"+(C?"["+F+((0,u.b0)(N)?"":":"+N)+"]":"")+" "+U()+(I?" - "+x(c):"")},function(){(0,u.Tn)(n)||(0,m.zk)(R+": executor is not a function - "+x(n));var e=z(3,0);try{n.call(v,z(2,0),e)}catch(t){e(t)}}(),v}(q,function(e){var t=(0,u.Et)(e)?e:0;return function(e){(0,h.dR)((function(){M(e)}),t)}}(t),e,t)}function L(e,t){!F&&(F=(0,f.O7)(R));var n=F.v;if(!n)return q(e);(0,u.Tn)(e)||(0,m.zk)(R+": executor is not a function - "+(0,l.m)(e));var i=0,r=new n((function(t,n){e((function(e){i=2,t(e)}),(function(e){i=3,n(e)}))}));return(0,p.Ux)(r,"state",{get:function(){return S[i]}}),r}function A(e,t){return!N&&(N=(0,c.nR)((function(){return L}))),N.v.call(this,e,t)}E(q),I(q),O(q),E(L),I(L),O(L);var j=E(A);I(A),O(A)},9255:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var i=n(8456),r=n(4063);function o(e){return!!e&&(0,i.Tn)(e.next)}var s,a=n(1427),c=n(5452),u=n(2275);function l(e,t){var n;return!(0,i.b0)(t)&&e&&((0,i.cy)(t)?(0,u.p)(e.push,e,t):o(t)||(n=t,!(0,i.kF)(n)&&(0,i.Tn)(n[(0,r.Y0)(3)]))?function(e,t,n){if(e&&(o(e)||(!s&&(s=(0,a.nR)((function(){return(0,r.Y0)(3)}))),e=e[s.v]?e[s.v]():null),o(e))){var i=void 0,u=void 0;try{for(var l=0;!(u=e.next())[c.DH]&&-1!==t.call(e,u[c.Qg],l,e);)l++}catch(t){i={e:t},e.throw&&(u=null,e.throw(i))}finally{try{u&&!u[c.DH]&&e.return&&e.return(u)}finally{if(i)throw i.e}}}}(t,(function(t){e.push(t)})):e.push(t)),e}},4715:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var i=n(5452);function r(e,t,n){if(e)for(var r=e[i.pi]>>>0,o=0;o{"use strict";n.d(t,{r:()=>o});var i=n(5452),r=n(1778),o=(0,r.lK)(i.BA,i.wM);(0,r.lK)(i.uP,i.wM)},2747:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var i=n(5452),r=(0,n(1778).lK)("map",i.wM)},2815:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(5452),r=(0,n(1778).lK)("reduce",i.wM)},5223:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(5452),r=(0,n(1778).lK)(i.$9,i.wM)},2275:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var i=(0,n(1778).xC)("apply")},8052:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var i=(0,n(1778).xC)("call")},8456:(e,t,n)=>{"use strict";n.d(t,{$P:()=>C,$X:()=>R,Cb:()=>p,Ed:()=>u,Et:()=>S,Gv:()=>v,Kg:()=>g,Lm:()=>b,O9:()=>h,SZ:()=>c,Tn:()=>m,b0:()=>l,bJ:()=>w,cy:()=>y,ez:()=>s,hX:()=>d,kF:()=>f,wo:()=>D,zz:()=>T});var i=n(5452),r=n(4975),o=[i.An,i.uk,i.Jx,i.ZH,"symbol","bigint"];function s(e){return function(t){return typeof t===e}}function a(e){var t="[object "+e+"]";return function(e){return!(!e||c(e)!==t)}}function c(e){return i.Wy.toString.call(e)}function u(e,t){return typeof e===t}function l(e){return typeof e===i.ZH||e===i.ZH}function d(e){return e===i.M_||l(e)}function f(e){return e===i.M_||!h(e)}function h(e){return!!e||e!==i.DQ}var p=function(e){return e!==i.qv&&-1!==o.indexOf(e)},g=s(i.An),m=s(i.H3);function v(e){return!(!e&&d(e)||!e||typeof e!==i.qv)}var y=i.kV.isArray,C=a("Date"),S=s(i.uk),b=s(i.Jx),w=(a("RegExp"),a("File"),a("FormData"),a("Blob"),a("ArrayBuffer"),a("Error"));function R(e){return!!e&&m(e.then)}function D(e){return!e||!(0,r.y)((function(){return e&&0+e}),e)}function T(e){return!(!e||(0,r.y)((function(){return!(e&&0+e)}),!e))}},2253:(e,t,n)=>{"use strict";function i(){return(Date.now||r)()}function r(){return(new Date).getTime()}n.d(t,{f:()=>i})},5081:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var i=n(5452),r=n(8456);function o(e,t){var n=i.wg;if((0,r.bJ)(e))n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'";else try{n=JSON.stringify(e,i.M_,t?(0,r.Et)(t)?t:4:i.DQ)}catch(e){n=" - "+o(e,t)}return(0,r.SZ)(e)+": "+n}},3015:(e,t,n)=>{"use strict";n.d(t,{WS:()=>s,Tm:()=>a,fn:()=>c});var i=n(6758);function r(e,t,n,r){var o={};return(0,i.z)(e,(function(e,i){o[e]=t?i:e,o[i]=n?i:e})),r(o)}var o=n(7688);function s(e){return r(e,1,0,o.ZH)}function a(e){return r(e,0,0,o.ZH)}function c(e){return function(e){var t={};return(0,i.z)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,o.ZH)(t)}(e)}},7192:(e,t,n)=>{"use strict";n.d(t,{JK:()=>D,Ll:()=>T,O7:()=>p,Vd:()=>C,Wt:()=>v,YE:()=>y,mS:()=>g,tw:()=>R,w3:()=>w,w9:()=>b,zS:()=>m,zk:()=>S});var i,r,o,s,a,c,u=n(5452),l=n(5362),d=n(8353),f=n(1427),h="window",p=function(e){return(0,d.I)((function(){return m(e)||u.DQ}),u.DQ)},g=function(e){return(!i||!1===e||f.nr&&f.nr.lzy&&!i.b)&&(i=(0,d.I)(l.u,u.M_)),i.v},m=function(e,t){var n=i&&!1!==t?i.v:g(t);return n&&n[e]?n[e]:e===h&&r?r.v:u.M_},v=function(){return!!y()},y=function(){return(!o||f.nr&&f.nr.lzy&&!o.b)&&(o=p("document")),o.v},C=function(){return!!S()},S=function(){return(!r||f.nr&&f.nr.lzy&&!r.b)&&(r=p(h)),r.v},b=function(){return!!w()},w=function(){return(!s||f.nr&&f.nr.lzy&&!s.b)&&(s=p("navigator")),s.v},R=function(){return!!D()},D=function(){return(!a||f.nr&&f.nr.lzy&&!a.b)&&(a=p("history")),a.v},T=function(){return!c&&(c=(0,d.I)((function(){return!(!process||!(process.versions||{}).node)}),!1)),c.v}},1427:(e,t,n)=>{"use strict";n.d(t,{nR:()=>c,nr:()=>i});var i,r=n(5452),o=n(5362),s=n(68),a=function(){i=(0,o.Z)(),a=r.M_};function c(e){var t={};return a&&a(),t.b=i.lzy,(0,s.Ux)(t,"v",{configurable:!0,get:function(){var n=e();return i.lzy||((0,s.Ux)(t,"v",{value:n}),t.b&&delete t.b),i.lzy&&t.b!==i.lzy&&(t.b=i.lzy),n}}),t}},7325:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var i=n(5452),r=(0,n(1778).k5)(i.pi)},7074:(e,t,n)=>{"use strict";n.d(t,{FJ:()=>a,UU:()=>c});var i,r=n(2253),o=n(7192),s=n(1427);function a(){return(!i||!i.b&&s.nr&&s.nr.lzy)&&(i=(0,o.O7)("performance")),i.v}function c(){var e=a();return e&&e.now?e.now():(0,r.f)()}},4975:(e,t,n)=>{"use strict";function i(e,t){var n=t;try{n=e()}catch(e){}return n}n.d(t,{y:()=>i})},8353:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var i=n(1427),r=n(4975);function o(e,t){return(0,i.nR)((function(){return(0,r.y)(e,t)}))}},4433:(e,t,n)=>{"use strict";function i(e){throw new Error(e)}function r(e){throw new TypeError(e)}n.d(t,{$8:()=>i,zk:()=>r})},5452:(e,t,n)=>{"use strict";n.d(t,{$9:()=>R,An:()=>f,BA:()=>v,BB:()=>p,DH:()=>S,DQ:()=>i,Fs:()=>l,H3:()=>a,I3:()=>_,Jx:()=>s,M_:()=>r,PF:()=>g,Qg:()=>b,Wy:()=>T,ZH:()=>h,fL:()=>m,kV:()=>x,o_:()=>w,pi:()=>C,qv:()=>u,r5:()=>d,s6:()=>D,sW:()=>P,tq:()=>k,uP:()=>y,uk:()=>c,wM:()=>E,wg:()=>o});var i=void 0,r=null,o="",s="boolean",a="function",c="number",u="object",l="prototype",d="__proto__",f="string",h="undefined",p="constructor",g="Symbol",m="_polyfill",v="indexOf",y="lastIndexOf",C="length",S="done",b="value",w="name",R="slice",D=Object,T=D[l],_=String,P=_[l],k=Math,x=Array,E=x[l]},5362:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,u:()=>s});var i,r=n(5452),o="__tsUtils$gblCfg";function s(){var e;return typeof globalThis!==r.ZH&&(e=globalThis),e||typeof self===r.ZH||(e=self),e||typeof window===r.ZH||(e=window),e||typeof global===r.ZH||(e=global),e}function a(){if(!i){var e=s()||{};i=e[o]=e[o]||{}}return i}},1778:(e,t,n)=>{"use strict";n.d(t,{b2:()=>d,k5:()=>f,lK:()=>l,xC:()=>u});var i=n(5081),r=n(4433),o=n(3933),s=n(5452),a=s.wM[s.$9],c=function(e,t){(0,r.zk)("'"+(0,o.o)(e)+"' not defined for "+(0,i.m)(t))},u=function(e){return function(t){return t[e].apply(t,a.call(arguments,1))}},l=function(e,t){var n=t&&t[e];return function(t){var i=t&&t[e]||n;if(i)return i.apply(t,a.call(arguments,1));c(e,t)}},d=function(e,t,n){var i=t&&t[e];return function(t){var r=t&&t[e]||i;if(r||n){var o=arguments;return(r||n).apply(t,r?a.call(o,1):o)}c(e,t)}};function f(e){return function(t){return t[e]}}},2415:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var i=n(5452),r=n(5081),o=i.s6.create||function(e){if(!e)return{};var t=typeof e;if(t!==i.qv&&t!==i.H3)throw new TypeError("Prototype must be an Object or function: "+(0,r.m)(e));function n(){}return n[i.Fs]=e,new n}},68:(e,t,n)=>{"use strict";n.d(t,{Ux:()=>u,r:()=>l,vF:()=>d});var i=n(5452),r=n(8456),o=n(6758),s=n(1528),a={e:"enumerable",c:"configurable",v:i.Qg,w:"writable",g:"get",s:"set"};function c(e){var t={};if(t[a.c]=!0,t[a.e]=!0,e.l){t.get=function(){return e.l.v};var n=(0,s.k)(e.l,"v");n&&n.set&&(t.set=function(t){e.l.v=t})}return(0,o.z)(e,(function(e,n){t[a[e]]=(0,r.b0)(n)?t[a[e]]:n})),t}var u=i.s6.defineProperty;function l(e,t,n,i,r,o){var s={e:o,c:r};return n&&(s.g=n),i&&(s.s=i),u(e,t,c(s))}function d(e,t,n){return u(e,t,c(n))}i.s6.defineProperties},6758:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var i=n(8456),r=n(7440);function o(e,t,n){if(e&&(0,i.Gv)(e))for(var o in e)if((0,r.K)(e,o)&&-1===t.call(n||e,o,e[o]))break}},1528:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var i=n(5452).s6.getOwnPropertyDescriptor},7440:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var i=n(5452),r=n(1528),o=n(4222),s=i.s6.hasOwn||function(e,t){return(0,o.v)(e,t)||!!(0,r.k)(e,t)}},4222:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(5452);function r(e,t){return e&&i.Wy.hasOwnProperty.call(e,t)}},4976:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d});var i,r,o,s=n(8052),a=n(7192),c=n(5452),u=n(4222),l=n(7688);function d(e){if(!e||typeof e!==c.qv)return!1;o||(o=!(0,a.Vd)()||(0,a.zk)());var t=!1;if(e!==o){r||(i=Function[c.Fs].toString,r=(0,s.n)(i,c.s6));try{var n=(0,l.rL)(e);(t=!n)||((0,u.v)(n,c.BB)&&(n=n[c.BB]),t=n&&typeof n===c.H3&&i.call(n)===r)}catch(e){}}return t}},7688:(e,t,n)=>{"use strict";n.d(t,{vE:()=>u,ZH:()=>d,N6:()=>f,rL:()=>p,cG:()=>l,js:()=>h});var i=n(5452),r=n(8456),o=n(4433),s=n(6758),a=i.s6.freeze,c=function(e){return e},u=i.s6.assign;function l(e){return(0,r.Gv)(e)&&e!==i.M_||(0,o.zk)("objKeys called on non-object"),i.s6.keys(e)}function d(e){return a&&(0,s.z)(e,(function(e,t){((0,r.cy)(t)||(0,r.Gv)(t))&&a(t)})),f(e)}var f=a||c,h=i.s6.seal||c,p=i.s6.getPrototypeOf||function(e){return e[i.r5]||i.M_};i.s6.entries,i.s6.values},3933:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var i=n(5452).I3},5922:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var i=n(8456),r=n(5081),o=n(4433),s=n(5452),a=n(1778),c=n(3933),u=n(1518),l=(0,a.b2)("endsWith",s.sW,(function(e,t,n){(0,i.Kg)(e)||(0,o.zk)("'"+(0,r.m)(e)+"' is not a string");var a=(0,i.Kg)(t)?t:(0,c.o)(t),l=a[s.pi],d=e[s.pi],f=!(0,i.b0)(n)&&n{"use strict";n.d(t,{H:()=>o});var i=n(5452),r=n(1778),o=(0,r.lK)(i.BA,i.sW);(0,r.lK)(i.uP,i.sW)},9543:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var i=n(8456),r=n(5081),o=n(4433),s=n(5452),a=n(1778),c=n(3933),u=n(1518),l=(0,a.b2)("startsWith",s.sW,(function(e,t,n){(0,i.Kg)(e)||(0,o.zk)("'"+(0,r.m)(e)+"' is not a string");var a=(0,i.Kg)(t)?t:(0,c.o)(t),l=a[s.pi],d=n>0?n:0;return(0,u.P0)(e,d,d+l)===a}))},1518:(e,t,n)=>{"use strict";n.d(t,{ZW:()=>f,hK:()=>d,P0:()=>l});var i=n(8456),r=n(5081),o=n(4433),s=n(5452),a=n(1778),c=(s.tq.min,s.tq.max),u=(0,a.lK)(s.$9,s.sW),l=(0,a.lK)("substring",s.sW),d=(0,a.b2)("substr",s.sW,(function(e,t,n){return(0,i.hX)(e)&&(0,o.zk)("'polyStrSubstr called with invalid "+(0,r.m)(e)),n<0?s.wg:((t=t||0)<0&&(t=c(t+e[s.pi],0)),(0,i.b0)(n)?u(e,t):u(e,t,t+n))}));function f(e,t){return l(e,0,t)}},3389:(e,t,n)=>{"use strict";n.d(t,{EH:()=>f});var i=n(5452),r=n(1778),o=n(8456),s=n(5081),a=n(4433);function c(e){return function(t){return(0,o.hX)(t)&&(0,a.zk)("strTrim called ["+(0,s.m)(t)+"]"),t&&t.replace&&(t=t.replace(e,i.wg)),t}}var u=c(/^\s+|(?=\s)\s+$/g),l=c(/^\s+/g),d=c(/(?=\s)\s+$/g),f=(0,r.b2)("trim",i.sW,u);(0,r.b2)("trimStart",i.sW,l),(0,r.b2)("trimEnd",i.sW,d)},4063:(e,t,n)=>{"use strict";n.d(t,{Y0:()=>D,Lo:()=>w,jj:()=>T,eC:()=>_});var i,r=n(5452),o=(0,n(3015).Tm)({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}),s=n(7440),a=n(3933),c=n(5362),u=n(7688),l="_urid";var d={};function f(e){var t={description:(0,a.o)(e),toString:function(){return r.PF+"("+e+")"}};return t[r.fL]=!0,t}function h(e){var t=function(){if(!i){var e=(0,c.Z)();i=e.gblSym=e.gblSym||{k:{},s:{}}}return i}();if(!(0,s.K)(t.k,e)){var n=f(e),r=(0,u.cG)(t.s).length;n[l]=function(){return r+"_"+n.toString()},t.k[e]=n,t.s[n[l]()]=(0,a.o)(e)}return t.k[e]}var p,g,m,v=n(8456),y=n(1427),C=n(8353),S=n(7192);function b(e){return(0,C.I)((function(){return p.v?p.v[e]:r.DQ}),r.DQ)}function w(){return!!R()}function R(){var e=!p||y.nr&&y.nr.lzy&&!p.b;return e&&(p=(0,S.O7)(r.PF)),(!g||e)&&(g=b("for")),(!m||e)&&(m=b("keyFor")),p.v}function D(e,t){var n=o[e];return(!p||y.nr.lzy&&!p.b)&&R(),p.v?p.v[n||e]:t?r.DQ:function(e){var t,n=o[e];return n&&(t=d[n]=d[n]||f(r.PF+"."+n)),t}(e)}function T(e,t){return(!p||y.nr.lzy&&!p.b)&&R(),p.v?p.v(e):t?r.M_:f(e)}function _(e){return(!g||y.nr.lzy&&!p.b)&&R(),(g.v||h)(e)}(0,v.ez)("symbol")},4110:(e,t,n)=>{"use strict";n.d(t,{AH:()=>g,dR:()=>h,vK:()=>p});var i=n(5223),r=n(2275),o=n(8456),s=n(5452),a=n(68),c="ref",u="un"+c,l="hasRef",d="enabled";function f(e,t,n,f){var h=(0,o.cy)(n),p=h?n.length:0,g=(p>0?n[0]:h?s.DQ:n)||setTimeout,m=(p>1?n[1]:s.DQ)||clearTimeout,v=f[0];f[0]=function(){y.dn(),(0,r.p)(v,e,(0,i.K)(arguments))};var y=function(t,n,i){var o,f,h=!0,p=t?n(s.M_):s.M_,g=function(){return h=!1,p&&p[u]&&p[u](),f},v=function(){return p=n(p),h||g(),f},y=function(){p&&function(t){(0,r.p)(m,e,[t])}(p),p=s.M_};return(o={cancel:y,refresh:v})[l]=function(){return p&&p[l]?p[l]():h},o[c]=function(){return h=!0,p&&p[c]&&p[c](),f},o[u]=g,o[d]=!1,f=o,(0,a.Ux)(f,d,{get:function(){return!!p},set:function(e){!e&&p&&y(),e&&!p&&v()}}),{h:f,dn:function(){p=s.M_}}}(t,(function(t){if(t){if(t.refresh)return t.refresh(),t;(0,r.p)(m,e,[t])}return(0,r.p)(g,e,f)}));return y.h}function h(e,t){return f(this,!0,s.DQ,(0,i.K)(arguments))}function p(e,t,n){return f(this,!0,e,(0,i.K)(arguments,1))}function g(e,t){return f(this,!1,s.DQ,(0,i.K)(arguments))}},5736:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.oneDataSystemClientFactory=void 0,t.oneDataSystemClientFactory=async(e,t,i)=>{let r=await(async(e,t,i)=>{const r=await Promise.resolve().then((()=>o(n(3330)))),s=await Promise.resolve().then((()=>o(n(8224)))),a=new r.AppInsightsCore,c=new s.PostChannel,u={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[c]]};if(i){u.extensionConfig={};const e={alwaysUseXhrOverride:!0,httpXHROverride:i};u.extensionConfig[c.identifier]=e}const l=t.workspace.getConfiguration("telemetry").get("internalTesting");return a.initialize(u,[]),a.addTelemetryInitializer((e=>{l&&(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),a})(e,t,i);return{logEvent:(e,t)=>{try{r?.track({name:e,baseData:{name:e,properties:t?.properties,measurements:t?.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},flush:async()=>{try{return new Promise(((e,t)=>{r?r.flush(!0,(e=>{e||t("Failed to flush app 1DS!")})):e()}))}catch(e){throw new Error("Failed to flush 1DS!\n"+e.message)}},dispose:async()=>new Promise((e=>{r?r.unload(!1,(()=>{e(),r=void 0}),1e3):e()}))}}},3112:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.appInsightsClientFactory=void 0;const s=n(6120),a=n(6901);t.appInsightsClientFactory=async(e,t,i)=>{let r;try{const i=await Promise.resolve().then((()=>o(n(6944))));if(r=new i.ApplicationInsights({instrumentationKey:e,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0}),t){r.config.extensionConfig={};const e={alwaysUseXhrOverride:!0,httpXHROverride:t};r.config.extensionConfig[s.BreezeChannelIdentifier]=e}}catch(e){return Promise.reject(e)}return{logEvent:(e,t)=>{const n={...t?.properties,...t?.measurements};i?.length&&a.TelemetryUtil.applyReplacements(n,i),r?.track({name:e,data:n,baseType:"EventData",baseData:{name:e,properties:t?.properties,measurements:t?.measurements}})},flush:async()=>{r?.flush(!1)},dispose:async()=>new Promise((e=>{r?.unload(!0,(()=>{e(),r=void 0}),1e3)}))}}},9280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTelemetryReporter=void 0,t.BaseTelemetryReporter=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){const i={...t};for(const e of Object.keys(i??{})){const t=i[e];"string"==typeof e&&void 0!==t&&(i[e]=new this.vscodeAPI.TelemetryTrustedValue("string"==typeof t?t:t.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())))}}},2040:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTelemetrySender=void 0,function(e){e[e.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",e[e.INSTANTIATING=1]="INSTANTIATING",e[e.INSTANTIATED=2]="INSTANTIATED"}(n||(n={})),t.BaseTelemetrySender=class{constructor(e,t){this._instantiationStatus=n.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):this._instantiationStatus!==n.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t})}sendErrorData(e,t){if(!this._telemetryClient)return void(this._instantiationStatus!==n.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t}));const i={stack:e.stack,message:e.message,name:e.name};t?t.properties={...t.properties,...i}:t={properties:i},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===n.NOT_INSTANTIATED&&(this._instantiationStatus=n.INSTANTIATING,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=n.INSTANTIATED,this._flushQueues()})).catch((e=>{console.error(e),this._instantiationStatus=n.INSTANTIATED})))}}},6901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryUtil=void 0;class n{static applyReplacements(e,t){for(const n of Object.keys(e))for(const i of t)i.lookup.test(n)&&(void 0!==i.replacementString?e[n]=i.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===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.0"}}static getInstance(){return n._instance||(n._instance=new n),n._instance}}t.TelemetryUtil=n},9838:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(857)),a=o(n(1398)),c=o(n(5692)),u=n(9280),l=n(2040),d=n(6901),f=n(5736),h=n(3112);function p(){return{sendPOST:(e,t)=>{const n={method:"POST",headers:{...e.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)}};try{const i=c.request(e.urlString,n,(e=>{e.on("data",(function(n){t(e.statusCode??200,e.headers,n.toString())})),e.on("error",(function(){t(0,{})}))}));i.write(e.data,(e=>{e&&t(0,{})})),i.end()}catch{t(0,{})}}}}class g extends u.BaseTelemetryReporter{constructor(e,t){let n=e=>(0,h.appInsightsClientFactory)(e,p(),t);d.TelemetryUtil.shouldUseOneDataSystemSDK(e)&&(n=e=>(0,f.oneDataSystemClientFactory)(e,a,p()));const i={release:s.release(),platform:s.platform(),architecture:s.arch()},r=new l.BaseTelemetrySender(e,n);if(e&&0===e.indexOf("AIF-"))throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(r,a,{additionalCommonProperties:d.TelemetryUtil.getAdditionalCommonProperties(i)})}}t.default=g},8509:e=>{"use strict";function t(e,t,r){e instanceof RegExp&&(e=n(e,r)),t instanceof RegExp&&(t=n(t,r));var o=i(e,t,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+e.length,o[1]),post:r.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var i,r,o,s,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(i=[],o=n.length;l>=0&&!a;)l==c?(i.push(l),c=n.indexOf(e,l+1)):1==i.length?a=[i.pop(),u]:((r=i.pop())=0?c:u;i.length&&(a=[o,s])}return a}e.exports=t,t.range=i},2164:(e,t,n)=>{var i=n(8509);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),m(function(e){return e.split("\\\\").join(r).split("\\{").join(o).split("\\}").join(s).split("\\,").join(a).split("\\.").join(c)}(e),!0).map(l)):[]};var r="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function l(e){return e.split(r).join("\\").split(o).join("{").split(s).join("}").split(a).join(",").split(c).join(".")}function d(e){if(!e)return[""];var t=[],n=i("{","}",e);if(!n)return e.split(",");var r=n.pre,o=n.body,s=n.post,a=r.split(",");a[a.length-1]+="{"+o+"}";var c=d(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function f(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function p(e,t){return e<=t}function g(e,t){return e>=t}function m(e,t){var n=[],r=i("{","}",e);if(!r)return[e];var o=r.pre,a=r.post.length?m(r.post,!1):[""];if(/\$$/.test(r.pre))for(var c=0;c=0;if(!b&&!w)return r.post.match(/,.*\}/)?m(e=r.pre+"{"+r.body+s+r.post):[e];if(b)v=r.body.split(/\.\./);else if(1===(v=d(r.body)).length&&1===(v=m(v[0],!1).map(f)).length)return a.map((function(e){return r.pre+v[0]+e}));if(b){var R=u(v[0]),D=u(v[1]),T=Math.max(v[0].length,v[1].length),_=3==v.length?Math.abs(u(v[2])):1,P=p;D0){var O=new Array(I+1).join("0");E=x<0?"-"+O+E.slice(1):O+E}}y.push(E)}}else{y=[];for(var F=0;F{"use strict";const i=n(9691),r=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),h=Symbol("updateAgeOnGet"),p=()=>1,g=(e,t,n)=>{const i=e[f].get(t);if(i){const t=i.value;if(m(e,t)){if(y(e,i),!e[a])return}else n&&(e[h]&&(i.value.now=Date.now()),e[d].unshiftNode(i));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},v=e=>{if(e[o]>e[r])for(let t=e[d].tail;e[o]>e[r]&&null!==t;){const n=t.prev;y(e,t),t=n}},y=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[o]-=n.length,e[f].delete(n.key),e[d].removeNode(t)}};class C{constructor(e,t,n,i,r){this.key=e,this.value=t,this.length=n,this.now=i,this.maxAge=r||0}}const S=(e,t,n,i)=>{let r=n.value;m(e,r)&&(y(e,n),e[a]||(r=void 0)),r&&t.call(i,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||p;if(this[s]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,v(this)}get max(){return this[r]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,v(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[s]&&(this[s]=e,this[o]=0,this[d].forEach((e=>{e.length=this[s](e.value,e.key),this[o]+=e.length}))),v(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const i=n.prev;S(this,e,n,t),n=i}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const i=n.next;S(this,e,n,t),n=i}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach((e=>this[u](e.key,e.value))),this[f]=new Map,this[d]=new i,this[o]=0}dump(){return this[d].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const i=n?Date.now():0,a=this[s](t,e);if(this[f].has(e)){if(a>this[r])return y(this,this[f].get(e)),!1;const s=this[f].get(e).value;return this[u]&&(this[l]||this[u](e,s.value)),s.now=i,s.maxAge=n,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),v(this),!0}const h=new C(e,t,a,i,n);return h.length>this[r]?(this[u]&&this[u](e,t),!1):(this[o]+=h.length,this[d].unshift(h),this[f].set(e,this[d].head),v(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!m(this,t)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){const e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const i=e[n],r=i.e||0;if(0===r)this.set(i.k,i.v);else{const e=r-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[f].forEach(((e,t)=>g(this,t,!1)))}}},3823:(e,t,n)=>{(()=>{var e={46:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,{signal:n}={}){return new Promise(((i,r)=>{function o(){null==n||n.removeEventListener("abort",o),e.removeListener(t,s),e.removeListener("error",a)}function s(...e){o(),i(e)}function a(e){o(),r(e)}null==n||n.addEventListener("abort",o),e.on(t,s),e.on("error",a)}))}},54:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=n(361),o=i(n(374)),s=i(n(304)),a=o.default("agent-base");function c(){const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some((e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:")))}function u(e,t){return new u.Agent(e,t)}!function(e){class t extends r.EventEmitter{constructor(e,t){super();let n=t;"function"==typeof e?this.callback=e:e&&(n=e),this.timeout=null,n&&"number"==typeof n.timeout&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:c()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:c()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);"boolean"!=typeof n.secureEndpoint&&(n.secureEndpoint=c()),null==n.host&&(n.host="localhost"),null==n.port&&(n.port=n.secureEndpoint?443:80),null==n.protocol&&(n.protocol=n.secureEndpoint?"https:":"http:"),n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let i=!1,r=null;const o=n.timeout||this.timeout,u=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},l=()=>{r=null,i=!0;const e=new Error(`A "socket" was not created for HTTP request before ${o}ms`);e.code="ETIMEOUT",u(e)},d=e=>{i||(null!==r&&(clearTimeout(r),r=null),u(e))},f=t=>{if(i)return;if(null!=r&&(clearTimeout(r),r=null),o=t,Boolean(o)&&"function"==typeof o.addRequest)return a("Callback returned another Agent instance %o",t.constructor.name),void t.addRequest(e,n);var o;if(t)return t.once("free",(()=>{this.freeSocket(t,n)})),void e.onSocket(t);const s=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);u(s)};if("function"==typeof this.callback){this.promisifiedCallback||(this.callback.length>=3?(a("Converting legacy callback function to promise"),this.promisifiedCallback=s.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof o&&o>0&&(r=setTimeout(l,o)),"port"in n&&"number"!=typeof n.port&&(n.port=Number(n.port));try{a("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(f,d)}catch(e){Promise.reject(e).catch(d)}}else u(new Error("`callback` is not defined"))}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype}(u||(u={})),e.exports=u},304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){return new Promise(((i,r)=>{e.call(this,t,n,((e,t)=>{e?r(e):i(t)}))}))}}},370:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(808)),s=r(n(404)),a=r(n(310)),c=r(n(374)),u=r(n(46)),l=n(54),d=(0,c.default)("http-proxy-agent");class f extends l.Agent{constructor(e){let t;if(t="string"==typeof e?a.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");d("Creating new HttpProxyAgent instance: %o",t),super(t);const n=Object.assign({},t);var i;this.secureProxy=t.secureProxy||"string"==typeof(i=n.protocol)&&/^https:?$/i.test(i),n.host=n.hostname||n.host,"string"==typeof n.port&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,t){return i(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:i}=this,r=a.default.parse(e.path);let c;if(r.protocol||(r.protocol="http:"),r.hostname||(r.hostname=t.hostname||t.host||null),null==r.port&&(t.port,1)&&(r.port=String(t.port)),"80"===r.port&&(r.port=""),e.path=a.default.format(r),n.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(n.auth).toString("base64")}`),i?(d("Creating `tls.Socket`: %o",n),c=s.default.connect(n)):(d("Creating `net.Socket`: %o",n),c=o.default.connect(n)),e._header){let t,n;d("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(d("Patching connection write() output buffer with updated header"),t=e.output[0],n=t.indexOf("\r\n\r\n")+4,e.output[0]=e._header+t.substring(n),d("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(d("Patching connection write() output buffer with updated header"),t=e.outputData[0].data,n=t.indexOf("\r\n\r\n")+4,e.outputData[0].data=e._header+t.substring(n),d("Output buffer: %o",e.outputData[0].data))}return yield(0,u.default)(c,"connect"),c}))}}t.default=f},201:function(e,t,n){"use strict";const i=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(370));function r(e){return new i.default(e)}!function(e){e.HttpProxyAgent=i.default,e.prototype=i.default.prototype}(r||(r={})),e.exports=r},146:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(808)),s=r(n(404)),a=r(n(310)),c=r(n(491)),u=r(n(374)),l=n(54),d=r(n(829)),f=u.default("https-proxy-agent:agent");class h extends l.Agent{constructor(e){let t;if(t="string"==typeof e?a.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");f("creating new HttpsProxyAgent instance: %o",t),super(t);const n=Object.assign({},t);var i;this.secureProxy=t.secureProxy||"string"==typeof(i=n.protocol)&&/^https:?$/i.test(i),n.host=n.hostname||n.host,"string"==typeof n.port&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,t){return i(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:i}=this;let r;i?(f("Creating `tls.Socket`: %o",n),r=s.default.connect(n)):(f("Creating `net.Socket`: %o",n),r=o.default.connect(n));const a=Object.assign({},n.headers);let u=`CONNECT ${t.host}:${t.port} HTTP/1.1\r\n`;n.auth&&(a["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:l,port:h,secureEndpoint:g}=t;(function(e,t){return Boolean(!t&&80===e||t&&443===e)})(h,g)||(l+=`:${h}`),a.Host=l,a.Connection="close";for(const e of Object.keys(a))u+=`${e}: ${a[e]}\r\n`;const m=d.default(r);r.write(`${u}\r\n`);const{statusCode:v,buffered:y}=yield m;if(200===v){if(e.once("socket",p),t.secureEndpoint){f("Upgrading socket connection to TLS");const e=t.servername||t.host;return s.default.connect(Object.assign(Object.assign({},function(e,...t){const n={};let i;for(i in e)t.includes(i)||(n[i]=e[i]);return n}(t,"host","hostname","path","port")),{socket:r,servername:e}))}return r}r.destroy();const C=new o.default.Socket({writable:!1});return C.readable=!0,e.once("socket",(e=>{f("replaying proxy buffer for failed request"),c.default(e.listenerCount("data")>0),e.push(y),e.push(null)})),C}))}}function p(e){e.resume()}t.default=h},18:function(e,t,n){"use strict";const i=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(146));function r(e){return new i.default(e)}!function(e){e.HttpsProxyAgent=i.default,e.prototype=i.default.prototype}(r||(r={})),e.exports=r},829:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(374)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise(((t,n)=>{let i=0;const o=[];function s(){const n=e.read();n?function(e){o.push(e),i+=e.length;const n=Buffer.concat(o,i);if(-1===n.indexOf("\r\n\r\n"))return r("have not received end of HTTP headers yet..."),void s();const a=n.toString("ascii",0,n.indexOf("\r\n")),c=+a.split(" ")[1];r("got proxy server response: %o",a),t({statusCode:c,buffered:n})}(n):e.once("readable",s)}function a(e){r("onclose had error %o",e)}function c(){r("onend")}e.on("error",(function t(i){e.removeListener("end",c),e.removeListener("error",t),e.removeListener("close",a),e.removeListener("readable",s),r("onerror %o",i),n(i)})),e.on("close",a),e.on("end",c),s()}))}},539:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=300&&i.statusCode<400&&e.followRedirects&&e.followRedirects>0&&i.headers.location){var o=i.headers.location;o.startsWith("/")&&(o=(0,c.format)({protocol:r.protocol,hostname:r.hostname,port:r.port,pathname:o})),n(v(function(e){for(var t=[],n=1;n=100&&s<200||204===s||304===s))){var h={flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH};if("gzip"===f){var g=l.createGunzip(h);a.pipe(g),u=g}else if("deflate"===f){var m=l.createInflate(h);a.pipe(m),u=m}}var v=[];u.on("data",(function(e){return v.push(e)})),u.on("end",(function(){if(!d){if(d=!0,e.followRedirects>0&&(a.statusCode>=300&&a.statusCode<=303||307===a.statusCode)){var n=a.headers.location;if(n.startsWith("/")){var o=(0,c.parse)(e.url);n=(0,c.format)({protocol:o.protocol,hostname:o.hostname,port:o.port,pathname:n})}if(n){var s={type:e.type,url:n,user:e.user,password:e.password,headers:e.headers,timeout:e.timeout,followRedirects:e.followRedirects-1,data:e.data,token:e.token};return void(0,t.xhr)(s).then(i,r)}}var u=Buffer.concat(v),l={responseText:u.toString(),body:u,status:a.statusCode,headers:a.headers||{}};a.statusCode>=200&&a.statusCode<300||1223===a.statusCode?i(l):r(l)}})),u.on("error",(function(t){var n;n=y.is(t)?t:{responseText:p("error","Unable to access {0}. Error: {1}",e.url,t.message),body:Buffer.concat(v),status:500,headers:{}},d=!0,r(n)})),e.token&&(e.token.isCancellationRequested&&u.destroy(new y),e.token.onCancellationRequested((function(){u.destroy(new y)})))}))}),(function(t){var n;return n=y.is(t)?t:{responseText:e.agent?p("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",e.url,t.message):p("error.cannot.connect","Unable to connect to {0}. Error: {1}",e.url,t.message),body:Buffer.concat([]),status:404,headers:{}},Promise.reject(n)}))},t.getErrorStatusDescription=function(e){if(!(e<400))switch(e){case 400:return p("status.400","Bad request. The request cannot be fulfilled due to bad syntax.");case 401:return p("status.401","Unauthorized. The server is refusing to respond.");case 403:return p("status.403","Forbidden. The server is refusing to respond.");case 404:return p("status.404","Not Found. The requested location could not be found.");case 405:return p("status.405","Method not allowed. A request was made using a request method not supported by that location.");case 406:return p("status.406","Not Acceptable. The server can only generate a response that is not accepted by the client.");case 407:return p("status.407","Proxy Authentication Required. The client must first authenticate itself with the proxy.");case 408:return p("status.408","Request Timeout. The server timed out waiting for the request.");case 409:return p("status.409","Conflict. The request could not be completed because of a conflict in the request.");case 410:return p("status.410","Gone. The requested page is no longer available.");case 411:return p("status.411",'Length Required. The "Content-Length" is not defined.');case 412:return p("status.412","Precondition Failed. The precondition given in the request evaluated to false by the server.");case 413:return p("status.413","Request Entity Too Large. The server will not accept the request, because the request entity is too large.");case 414:return p("status.414","Request-URI Too Long. The server will not accept the request, because the URL is too long.");case 415:return p("status.415","Unsupported Media Type. The server will not accept the request, because the media type is not supported.");case 500:return p("status.500","Internal Server Error.");case 501:return p("status.501","Not Implemented. The server either does not recognize the request method, or it lacks the ability to fulfill the request.");case 502:return p("status.502","Bad Gateway. The upstream server did not respond.");case 503:return p("status.503","Service Unavailable. The server is currently unavailable (overloaded or down).");default:return p("status.416","HTTP status code {0}",e)}};var y=function(e){function t(){var n=e.call(this,"The user aborted a request")||this;return n.name="AbortError",Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t.is=function(e){return e instanceof t},t}(Error)},800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var i,r,o,s=n(926);function a(e){return void 0!==e}function c(e,n){return t.isPseudo&&(e="ï¼»"+e.replace(/[aouei]/g,"$&$&")+"ï¼½"),0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var i=t[0],r=n[i],o=e;return"string"==typeof r?o=r:"number"!=typeof r&&"boolean"!=typeof r&&null!=r||(o=String(r)),o}))}(o=t.MessageFormat||(t.MessageFormat={})).file="file",o.bundle="bundle",o.both="both",(r=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",r.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&a(t.key)&&a(t.comment)}}(i||(i={})),t.isDefined=a,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var n=[],i=2;i{"use strict";var n;function i(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(i||(i={})),t.default=i},472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.BundleFormat=t.MessageFormat=void 0;var i=n(17),r=n(147),o=n(926),s=n(800),a=n(800);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}});var c,u,l=Object.prototype.toString;function d(e){return"[object String]"===l.call(e)}function f(e){return JSON.parse(r.readFileSync(e,"utf8"))}function h(e){return function(t,n){for(var i=[],r=2;r=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: ".concat(new Error("").stack)):(0,s.format)(e[t],i):d(n)?(console.warn("Message ".concat(n," didn't get externalized correctly.")),(0,s.format)(n,i)):void console.error("Broken localize call found. Stacktrace is\n: ".concat(new Error("").stack))}}function p(e,t){return c[e]=t,t}function g(e){try{return function(e){var t=f(i.join(e,"nls.metadata.json")),n=Object.create(null);for(var r in t){var o=t[r];n[r]=o.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function m(e,t){var n;if(!0===u.languagePackSupport&&void 0!==u.cacheRoot&&void 0!==u.languagePackId&&void 0!==u.translationsConfigFile&&void 0!==u.translationsConfig)try{n=function(e,t){var n,o,s,a=i.join(u.cacheRoot,"".concat(e.id,"-").concat(e.hash,".json")),c=!1,l=!1;try{return n=JSON.parse(r.readFileSync(a,{encoding:"utf8",flag:"r"})),o=a,s=new Date,r.utimes(o,s,s,(function(){})),n}catch(e){if("ENOENT"===e.code)l=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: ".concat(e.message,".")),r.unlink(a,(function(e){e&&console.error("Deleting corrupted bundle ".concat(a," failed."))})),c=!0}}if(n=function(e,t){var n=u.translationsConfig[e.id];if(n){var r=f(n).contents,o=f(i.join(t,"nls.metadata.json")),s=Object.create(null);for(var a in o){var c=o[a],l=r["".concat(e.outDir,"/").concat(a)];if(l){for(var h=[],p=0;p0?t.substring(0,o):void 0}if(void 0===t&&(n=i.join(e,"nls.bundle.json"),r.existsSync(n)))return n}(t);if(o)try{return f(o)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=g(t)}return n}function v(e){if(!e)return s.localize;var t=i.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),u.messageFormat===s.MessageFormat.both||u.messageFormat===s.MessageFormat.bundle){var n=function(e){for(var t,n=i.dirname(e);t=i.join(n,"nls.metadata.header.json"),!r.existsSync(t);){var o=i.dirname(n);if(o===n){t=void 0;break}n=o}return t}(e);if(n){var o=i.dirname(n),a=c[o];if(void 0===a)try{var l=JSON.parse(r.readFileSync(n,"utf8"));try{var d=m(l,o);a=p(o,d?{header:l,nlsBundle:d}:null)}catch(e){console.error("Failed to load nls bundle",e),a=p(o,null)}}catch(e){console.error("Failed to read header file",e),a=p(o,null)}if(a){var g=e.substr(o.length+1).replace(/\\/g,"/"),v=a.nlsBundle[g];return void 0===v?(console.error("Messages for file ".concat(e," not found. See console for details.")),function(){return"Messages not found."}):h(v)}}}if(u.messageFormat===s.MessageFormat.both||u.messageFormat===s.MessageFormat.file)try{var y=f(function(e){var t;if(u.cacheLanguageResolution&&t);else{if(s.isPseudo||!u.language)t=".nls.json";else for(var n=u.language;n;){var i=".nls."+n+".json";if(r.existsSync(e+i)){t=i;break}var o=n.lastIndexOf("-");o>0?n=n.substring(0,o):(t=".nls.json",n=null)}u.cacheLanguageResolution}return e+t}(e));return Array.isArray(y)?h(y):(0,s.isDefined)(y.messages)&&(0,s.isDefined)(y.keys)?h(y.messages):(console.error("String bundle '".concat(e,"' uses an unsupported format.")),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file ".concat(e)),function(){return"Failed to load message bundle. See console for details."}}function y(e){return e&&(d(e.locale)&&(u.locale=e.locale.toLowerCase(),u.language=u.locale,c=Object.create(null)),void 0!==e.messageFormat&&(u.messageFormat=e.messageFormat),e.bundleFormat===s.BundleFormat.standalone&&!0===u.languagePackSupport&&(u.languagePackSupport=!1)),(0,s.setPseudo)("pseudo"===u.locale),v}!function(){if(u={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:s.MessageFormat.bundle},d(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];d(n)&&(t=n)}if(d(e.locale)&&(u.locale=e.locale.toLowerCase()),void 0===t?u.language=u.locale:"en"!==t&&(u.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(u.languagePackSupport=e._languagePackSupport),d(e._cacheRoot)&&(u.cacheRoot=e._cacheRoot),d(e._languagePackId)&&(u.languagePackId=e._languagePackId),d(e._translationsConfigFile)){u.translationsConfigFile=e._translationsConfigFile;try{u.translationsConfig=f(u.translationsConfigFile)}catch(t){if(e._corruptedFile){var o=i.dirname(e._corruptedFile);r.exists(o,(function(t){t&&r.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}(0,s.setPseudo)("pseudo"===u.locale),c=Object.create(null)}(),t.loadMessageBundle=v,t.config=y,o.default.install(Object.freeze({loadMessageBundle:v,config:y}))},374:(e,t)=>{function n(){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n}},491:e=>{"use strict";e.exports=n(2613)},361:e=>{"use strict";e.exports=n(4434)},147:e=>{"use strict";e.exports=n(9896)},685:e=>{"use strict";e.exports=n(8611)},687:e=>{"use strict";e.exports=n(5692)},808:e=>{"use strict";e.exports=n(9278)},17:e=>{"use strict";e.exports=n(6928)},404:e=>{"use strict";e.exports=n(4756)},310:e=>{"use strict";e.exports=n(7016)},796:e=>{"use strict";e.exports=n(3106)}},i={},r=function t(n){var r=i[n];if(void 0!==r)return r.exports;var o=i[n]={exports:{}};return e[n].call(o.exports,o,o.exports,t),o.exports}(539),o=t;for(var s in r)o[s]=r[s];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})()},9524:(e,t,n)=>{const i=Symbol("SemVer ANY");class r{static get ANY(){return i}constructor(e,t){if(t=o(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=r;const o=n(7095),{safeRe:s,t:a}=n(6850),c=n(3811),u=n(9796),l=n(7944),d=n(8395)},8395:(e,t,n)=>{class i{constructor(e,t){if(t=o(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!m(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&g))+":"+e,n=r.get(t);if(n)return n;const i=this.options.loose,o=i?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(o,x(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],d),a("comparator trim",e),e=e.replace(u[l.TILDETRIM],f),a("tilde trim",e),e=e.replace(u[l.CARETTRIM],h),a("caret trim",e);let c=e.split(" ").map((e=>C(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));i&&(c=c.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(u[l.COMPARATORLOOSE]))))),a("range list",c);const v=new Map,y=c.map((e=>new s(e,this.options)));for(const e of y){if(m(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const S=[...v.values()];return r.set(t,S),S}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some((n=>y(n,t)&&e.set.some((e=>y(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,v=e=>""===e.value,y=(e,t)=>{let n=!0;const i=e.slice();let r=i.pop();for(;n&&i.length;)n=i.every((e=>r.intersects(e,t))),r=i.pop();return n},C=(e,t)=>(a("comp",e,t),e=R(e,t),a("caret",e),e=b(e,t),a("tildes",e),e=T(e,t),a("xrange",e),e=P(e,t),a("stars",e),e),S=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const n=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(n,((t,n,i,r,o)=>{let s;return a("tilde",e,t,n,i,r,o),S(n)?s="":S(i)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:S(r)?s=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${i}.${r}-${o} <${n}.${+i+1}.0-0`):s=`>=${n}.${i}.${r} <${n}.${+i+1}.0-0`,a("tilde return",s),s}))},R=(e,t)=>e.trim().split(/\s+/).map((e=>D(e,t))).join(" "),D=(e,t)=>{a("caret",e,t);const n=t.loose?u[l.CARETLOOSE]:u[l.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,r,o,s)=>{let c;return a("caret",e,t,n,r,o,s),S(n)?c="":S(r)?c=`>=${n}.0.0${i} <${+n+1}.0.0-0`:S(o)?c="0"===n?`>=${n}.${r}.0${i} <${n}.${+r+1}.0-0`:`>=${n}.${r}.0${i} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),c="0"===n?"0"===r?`>=${n}.${r}.${o}-${s} <${n}.${r}.${+o+1}-0`:`>=${n}.${r}.${o}-${s} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),c="0"===n?"0"===r?`>=${n}.${r}.${o}${i} <${n}.${r}.${+o+1}-0`:`>=${n}.${r}.${o}${i} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${o} <${+n+1}.0.0-0`),a("caret return",c),c}))},T=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>_(e,t))).join(" ")),_=(e,t)=>{e=e.trim();const n=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(n,((n,i,r,o,s,c)=>{a("xRange",e,n,i,r,o,s,c);const u=S(r),l=u||S(o),d=l||S(s),f=d;return"="===i&&f&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&f?(l&&(o=0),s=0,">"===i?(i=">=",l?(r=+r+1,o=0,s=0):(o=+o+1,s=0)):"<="===i&&(i="<",l?r=+r+1:o=+o+1),"<"===i&&(c="-0"),n=`${i+r}.${o}.${s}${c}`):l?n=`>=${r}.0.0${c} <${+r+1}.0.0-0`:d&&(n=`>=${r}.${o}.0${c} <${r}.${+o+1}.0-0`),a("xRange return",n),n}))},P=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),k=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),x=e=>(t,n,i,r,o,s,a,c,u,l,d,f,h)=>`${n=S(i)?"":S(r)?`>=${i}.0.0${e?"-0":""}`:S(o)?`>=${i}.${r}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=S(u)?"":S(l)?`<${+u+1}.0.0-0`:S(d)?`<${u}.${+l+1}.0-0`:f?`<=${u}.${l}.${d}-${f}`:e?`<${u}.${l}.${+d+1}-0`:`<=${c}`}`.trim(),E=(e,t,n)=>{for(let n=0;n0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},7944:(e,t,n)=>{const i=n(9796),{MAX_LENGTH:r,MAX_SAFE_INTEGER:o}=n(9630),{safeRe:s,t:a}=n(6850),c=n(7095),{compareIdentifiers:u}=n(4031);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===n&&(i=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},3811:(e,t,n)=>{const i=n(6909),r=n(7659),o=n(144),s=n(2077),a=n(599),c=n(7092);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return i(e,n,u);case"!=":return r(e,n,u);case">":return o(e,n,u);case">=":return s(e,n,u);case"<":return a(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},5380:(e,t,n)=>{const i=n(7944);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},6909:(e,t,n)=>{const i=n(5380);e.exports=(e,t,n)=>0===i(e,t,n)},144:(e,t,n)=>{const i=n(5380);e.exports=(e,t,n)=>i(e,t,n)>0},2077:(e,t,n)=>{const i=n(5380);e.exports=(e,t,n)=>i(e,t,n)>=0},599:(e,t,n)=>{const i=n(5380);e.exports=(e,t,n)=>i(e,t,n)<0},7092:(e,t,n)=>{const i=n(5380);e.exports=(e,t,n)=>i(e,t,n)<=0},7659:(e,t,n)=>{const i=n(5380);e.exports=(e,t,n)=>0!==i(e,t,n)},5860:(e,t,n)=>{const i=n(7944);e.exports=(e,t,n=!1)=>{if(e instanceof i)return e;try{return new i(e,t)}catch(e){if(!n)return null;throw e}}},1722:(e,t,n)=>{const i=n(8395);e.exports=(e,t,n)=>{try{t=new i(t,n)}catch(e){return!1}return t.test(e)}},9630:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},9796:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},4031:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const i=t.test(e),r=t.test(n);return i&&r&&(e=+e,n=+n),e===n?0:i&&!r?-1:r&&!i?1:en(t,e)}},7095:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},6850:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=n(9630),s=n(9796),a=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.t={};let d=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,r]],p=(e,t,n)=>{const i=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),r=d++;s(e,r,t),l[e]=r,u[r]=t,a[r]=new RegExp(t,n?"g":void 0),c[r]=new RegExp(i,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),p("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${f}+`),p("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),p("FULL",`^${u[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),p("LOOSE",`^${u[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),p("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),p("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",u[l.COERCE],!0),p("COERCERTLFULL",u[l.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=void 0;const i=n(8045);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return i.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return i.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return i.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return i.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return i.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return i.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return i.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return i.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return i.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return i.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return i.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return i.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return i.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return i.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return i.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return i.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return i.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return i.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return i.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return i.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return i.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return i.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return i.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return i.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return i.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return i.ParameterStructures}});const r=n(5140);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return r.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return r.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return r.Touch}});const o=n(3167);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return o.Disposable}});const s=n(6712);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return s.Emitter}});const a=n(4782);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return a.CancellationToken}});const c=n(5584);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return c.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return c.SharedArrayReceiverStrategy}});const u=n(1977);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return u.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return u.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return u.ReadableStreamMessageReader}});const l=n(2549);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return l.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return l.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return l.WriteableStreamMessageWriter}});const d=n(7408);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return d.AbstractMessageBuffer}});const f=n(7365);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValue",{enumerable:!0,get:function(){return f.TraceValue}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}});const h=n(9042);t.RAL=h.default},4782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const i=n(9042),r=n(6357),o=n(6712);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||r.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(s||(t.CancellationToken=s={}));const a=Object.freeze((function(e,t){const n=(0,i.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None}}},7365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const i=n(9042),r=n(6357),o=n(8045),s=n(5140),a=n(6712),c=n(4782);var u,l,d,f,h,p,g,m,v,y,C,S,b,w,R,D,T,_,P;!function(e){e.type=new o.NotificationType("$/cancelRequest")}(u||(u={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(l||(t.ProgressToken=l={})),function(e){e.type=new o.NotificationType("$/progress")}(d||(d={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return r.func(e)}}(f||(f={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(h||(t.Trace=h={})),function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"}(p||(t.TraceValue=p={})),t.TraceValues=p,function(e){e.fromString=function(t){if(!r.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(h||(t.Trace=h={})),function(e){e.Text="text",e.JSON="json"}(g||(t.TraceFormat=g={})),function(e){e.fromString=function(t){return r.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(g||(t.TraceFormat=g={})),function(e){e.type=new o.NotificationType("$/setTrace")}(m||(t.SetTraceNotification=m={})),function(e){e.type=new o.NotificationType("$/logTrace")}(v||(t.LogTraceNotification=v={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(y||(t.ConnectionErrors=y={}));class k extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,k.prototype)}}t.ConnectionError=k,function(e){e.is=function(e){const t=e;return t&&r.func(t.cancelUndispatched)}}(C||(t.ConnectionStrategy=C={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&r.func(t.createCancellationTokenSource)&&(void 0===t.dispose||r.func(t.dispose))}}(S||(t.IdCancellationReceiverStrategy=S={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&r.func(t.createCancellationTokenSource)&&(void 0===t.dispose||r.func(t.dispose))}}(b||(t.RequestCancellationReceiverStrategy=b={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){return S.is(e)||b.is(e)}}(w||(t.CancellationReceiverStrategy=w={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(u.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&r.func(t.sendCancellation)&&r.func(t.cleanup)}}(R||(t.CancellationSenderStrategy=R={})),function(e){e.Message=Object.freeze({receiver:w.Message,sender:R.Message}),e.is=function(e){const t=e;return t&&w.is(t.receiver)&&R.is(t.sender)}}(D||(t.CancellationStrategy=D={})),function(e){e.is=function(e){const t=e;return t&&r.func(t.handleMessage)}}(T||(t.MessageStrategy=T={})),function(e){e.is=function(e){const t=e;return t&&(D.is(t.cancellationStrategy)||C.is(t.connectionStrategy)||T.is(t.messageStrategy)||r.number(t.maxParallelism))}}(_||(t.ConnectionOptions=_={})),function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(P||(P={})),t.createMessageConnection=function(e,n,p,C){const b=void 0!==p?p:t.NullLogger;let w=0,R=0,_=0;const x="2.0",E=C?.maxParallelism??-1;let I,O=0;const F=new Map;let N;const M=new Map,q=new Map;let L,A,j=new s.LinkedMap,H=new Map,$=new Set,U=new Map,K=h.Off,z=g.Text,W=P.New;const V=new a.Emitter,B=new a.Emitter,X=new a.Emitter,G=new a.Emitter,J=new a.Emitter,Z=C&&C.cancellationStrategy?C.cancellationStrategy:D.Message;function Q(e){}function Y(){return W===P.Listening}function ee(){return W===P.Closed}function te(){return W===P.Disposed}function ne(){W!==P.New&&W!==P.Listening||(W=P.Closed,B.fire(void 0))}function ie(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function re(){L||0===j.size||-1!==E&&O>=E||(L=(0,i.default)().timer.setImmediate((async()=>{if(L=void 0,0===j.size)return;if(-1!==E&&O>=E)return;const e=j.shift();let t;try{O++;const n=C?.messageStrategy;t=T.is(n)?n.handleMessage(e,oe):oe(e)}catch(e){b.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then((()=>{O--,re()})).catch((e=>{b.error(`Processing message queue failed: ${e.toString()}`)})):O--,re()}})))}async function oe(e){return o.Message.isRequest(e)?async function(e){if(te())return Promise.resolve();function t(t,i,r){const s={jsonrpc:x,id:e.id};return t instanceof o.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,ue(s,i,r),n.write(s)}function i(t,i,r){const o={jsonrpc:x,id:e.id,error:t.toJson()};return ue(o,i,r),n.write(o)}!function(e){if(K!==h.Off&&A)if(z===g.Text){let t;K!==h.Verbose&&K!==h.Compact||!e.params||(t=`Params: ${ce(e.params)}\n\n`),A.log(`Received request '${e.method} - (${e.id})'.`,t)}else de("receive-request",e)}(e);const s=F.get(e.method);let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||I){const n=e.id??String(Date.now()),s=S.is(Z.receiver)?Z.receiver.createCancellationTokenSource(n):Z.receiver.createCancellationTokenSource(e);null!==e.id&&$.has(e.id)&&s.cancel(),null!==e.id&&U.set(n,s);try{let n;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);n=c(s.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byName)return i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);n=c(...e.params,s.token)}else{if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byPosition)return i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);n=c(e.params,s.token)}else I&&(n=I(e.method,e.params,s.token));const r=await n;await t(r,e.method,u)}catch(n){n instanceof o.ResponseError?await t(n,e.method,u):n&&r.string(n.message)?await i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):await i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}finally{U.delete(n)}}else await i(new o.ResponseError(o.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}(e):o.Message.isNotification(e)?async function(e){if(te())return;let t,n;if(e.method===u.type.method){const t=e.params.id;return $.delete(t),void le(e)}{const i=M.get(e.method);i&&(n=i.handler,t=i.type)}if(n||N)try{if(le(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==o.ParameterStructures.byName&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),await n();else if(Array.isArray(e.params)){const i=e.params;e.method===d.type.method&&2===i.length&&l.is(i[0])?await n({token:i[0],value:i[1]}):(void 0!==t&&(t.parameterStructures===o.ParameterStructures.byName&&b.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),await n(...i))}else void 0!==t&&t.parameterStructures===o.ParameterStructures.byPosition&&b.error(`Notification ${e.method} defines parameters by position but received parameters by name`),await n(e.params);else N&&await N(e.method,e.params)}catch(t){t.message?b.error(`Notification handler '${e.method}' failed with message: ${t.message}`):b.error(`Notification handler '${e.method}' failed unexpectedly.`)}else X.fire(e)}(e):o.Message.isResponse(e)?ae(e):function(e){if(!e)return void b.error("Received empty message.");b.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(r.string(t.id)||r.number(t.id)){const e=t.id,n=H.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(ne),e.onError((function(e){V.fire([e,void 0,void 0])})),n.onClose(ne),n.onError((function(e){V.fire(e)}));const se=e=>{try{if(o.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id,i=ie(t),r=j.get(i);if(o.Message.isRequest(r)){const o=C?.connectionStrategy,s=o&&o.cancelUndispatched?o.cancelUndispatched(r,Q):void 0;if(s&&(void 0!==s.error||void 0!==s.result))return j.delete(i),U.delete(t),s.id=r.id,ue(s,e.method,Date.now()),void n.write(s).catch((()=>b.error("Sending response for canceled message failed.")))}const s=U.get(t);if(void 0!==s)return s.cancel(),void le(e);$.add(t)}!function(e,t){var n;o.Message.isRequest(t)?e.set(ie(t.id),t):o.Message.isResponse(t)?-1===E?e.set(null===(n=t.id)?"res-unknown-"+(++_).toString():"res-"+n.toString(),t):ae(t):e.set("not-"+(++R).toString(),t)}(j,e)}finally{re()}};function ae(e){if(!te())if(null===e.id)e.error?b.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):b.error("Received response message without id. No further error information provided.");else{const t=e.id,n=H.get(t);if(function(e,t){if(K!==h.Off&&A)if(z===g.Text){let n;if(K!==h.Verbose&&K!==h.Compact||(e.error&&e.error.data?n=`Error data: ${ce(e.error.data)}\n\n`:e.result?n=`Result: ${ce(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const i=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";A.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${i}`,n)}else A.log(`Received response ${e.id} without active response promise.`,n)}else de("receive-response",e)}(e,n),void 0!==n){H.delete(t);try{if(e.error){const t=e.error;n.reject(new o.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?b.error(`Response handler '${n.method}' failed with message: ${e.message}`):b.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function ce(e){if(null!=e)switch(K){case h.Verbose:return JSON.stringify(e,null,4);case h.Compact:return JSON.stringify(e);default:return}}function ue(e,t,n){if(K!==h.Off&&A)if(z===g.Text){let i;K!==h.Verbose&&K!==h.Compact||(e.error&&e.error.data?i=`Error data: ${ce(e.error.data)}\n\n`:e.result?i=`Result: ${ce(e.result)}\n\n`:void 0===e.error&&(i="No result returned.\n\n")),A.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,i)}else de("send-response",e)}function le(e){if(K!==h.Off&&A&&e.method!==v.type.method)if(z===g.Text){let t;K!==h.Verbose&&K!==h.Compact||(t=e.params?`Params: ${ce(e.params)}\n\n`:"No parameters provided.\n\n"),A.log(`Received notification '${e.method}'.`,t)}else de("receive-notification",e)}function de(e,t){if(!A||K===h.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};A.log(n)}function fe(){if(ee())throw new k(y.Closed,"Connection is closed.");if(te())throw new k(y.Disposed,"Connection is disposed.")}function he(e){return void 0===e?null:e}function pe(e){return null===e?void 0:e}function ge(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function me(e,t){switch(e){case o.ParameterStructures.auto:return ge(t)?pe(t):[he(t)];case o.ParameterStructures.byName:if(!ge(t))throw new Error("Received parameters by name but param is not an object literal.");return pe(t);case o.ParameterStructures.byPosition:return[he(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ve(e,t){let n;const i=e.numberOfParams;switch(i){case 0:n=void 0;break;case 1:n=me(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{let i,s;if(fe(),r.string(e)){i=e;const n=t[0];let r=0,a=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(r=1,a=n);const c=t.length,u=c-r;switch(u){case 0:s=void 0;break;case 1:s=me(a,t[r]);break;default:if(a===o.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);s=t.slice(r,c).map((e=>he(e)))}}else{const n=t;i=e.method,s=ve(e,n)}const a={jsonrpc:x,method:i,params:s};return function(e){if(K!==h.Off&&A)if(z===g.Text){let t;K!==h.Verbose&&K!==h.Compact||(t=e.params?`Params: ${ce(e.params)}\n\n`:"No parameters provided.\n\n"),A.log(`Sending notification '${e.method}'.`,t)}else de("send-notification",e)}(a),n.write(a).catch((e=>{throw b.error("Sending notification failed."),e}))},onNotification:(e,t)=>{let n;return fe(),r.func(e)?N=e:t&&(r.string(e)?(n=e,M.set(e,{type:void 0,handler:t})):(n=e.method,M.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?M.delete(n):N=void 0}}},onProgress:(e,t,n)=>{if(q.has(t))throw new Error(`Progress handler for token ${t} already registered`);return q.set(t,n),{dispose:()=>{q.delete(t)}}},sendProgress:(e,t,n)=>ye.sendNotification(d.type,{token:t,value:n}),onUnhandledProgress:G.event,sendRequest:(e,...t)=>{function i(e,t){const n=Z.sender.sendCancellation(e,t);void 0===n?b.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch((()=>{b.log(`Sending cancellation messages for id ${t} failed.`)}))}let s,a,u;if(fe(),function(){if(!Y())throw new Error("Call listen() first.")}(),r.string(e)){s=e;const n=t[0],i=t[t.length-1];let r=0,l=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(r=1,l=n);let d=t.length;c.CancellationToken.is(i)&&(d-=1,u=i);const f=d-r;switch(f){case 0:a=void 0;break;case 1:a=me(l,t[r]);break;default:if(l===o.ParameterStructures.byName)throw new Error(`Received ${f} parameters for 'by Name' request parameter structure.`);a=t.slice(r,d).map((e=>he(e)))}}else{const n=t;s=e.method,a=ve(e,n);const i=e.numberOfParams;u=c.CancellationToken.is(n[i])?n[i]:void 0}const l=w++;let d,f=!1;void 0!==u&&(u.isCancellationRequested?f=!0:d=u.onCancellationRequested((()=>{i(ye,l)})));const p={jsonrpc:x,id:l,method:s,params:a};return function(e){if(K!==h.Off&&A)if(z===g.Text){let t;K!==h.Verbose&&K!==h.Compact||!e.params||(t=`Params: ${ce(e.params)}\n\n`),A.log(`Sending request '${e.method} - (${e.id})'.`,t)}else de("send-request",e)}(p),"function"==typeof Z.sender.enableCancellation&&Z.sender.enableCancellation(p),new Promise((async(e,t)=>{const r={method:s,timerStart:Date.now(),resolve:t=>{e(t),Z.sender.cleanup(l),d?.dispose()},reject:e=>{t(e),Z.sender.cleanup(l),d?.dispose()}};try{H.set(l,r),await n.write(p),f&&i(ye,l)}catch(e){throw H.delete(l),r.reject(new o.ResponseError(o.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),b.error("Sending request failed."),e}}))},onRequest:(e,t)=>{fe();let n=null;return f.is(e)?(n=void 0,I=e):r.string(e)?(n=null,void 0!==t&&(n=e,F.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,F.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?F.delete(n):I=void 0)}}},hasPendingResponse:()=>H.size>0,trace:async(e,t,n)=>{let i=!1,o=g.Text;void 0!==n&&(r.boolean(n)?i=n:(i=n.sendNotification||!1,o=n.traceFormat||g.Text)),K=e,z=o,A=K===h.Off?void 0:t,!i||ee()||te()||await ye.sendNotification(m.type,{value:h.toString(e)})},onError:V.event,onClose:B.event,onUnhandledNotification:X.event,onDispose:J.event,end:()=>{n.end()},dispose:()=>{if(te())return;W=P.Disposed,J.fire(void 0);const t=new o.ResponseError(o.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of H.values())e.reject(t);H=new Map,U=new Map,$=new Set,j=new s.LinkedMap,r.func(n.dispose)&&n.dispose(),r.func(e.dispose)&&e.dispose()},listen:()=>{fe(),function(){if(Y())throw new k(y.AlreadyListening,"Connection is already listening")}(),W=P.Listening,e.listen(se)},inspect:()=>{(0,i.default)().console.log("inspect")}};return ye.onNotification(v.type,(e=>{if(K===h.Off||!A)return;const t=K===h.Verbose||K===h.Compact;A.log(e.message,t?e.verbose:void 0)})),ye.onNotification(d.type,(async e=>{const t=q.get(e.token);t?await t(e.value):G.fire(e)})),ye}},3167:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,function(e){e.create=function(e){return{dispose:e}}}(n||(t.Disposable=n={}))},6712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const i=n(9042);var r;!function(e){const t={dispose(){}};e.None=function(){return t}}(r||(t.Event=r={}));class o{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let i=0,r=this._callbacks.length;i{this._callbacks||(this._callbacks=new o),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=s._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=s,s._noop=function(){}},6357:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))}},5140:(e,t)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(i||(t.Touch=i={}));class r{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(e){const t=this._map.get(e);return t?t.previous?.value:void 0}after(e){const t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=i.None){const n=this._map.get(e);if(n)return t!==i.None&&this.touch(n,t),n.value}set(e,t,n=i.None){let r=this._map.get(e);if(r)r.value=t,n!==i.None&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case i.None:this.addItemLast(r);break;case i.First:this.addItemFirst(r);break;case i.Last:default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===i.First||t===i.Last)if(t===i.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===i.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=r,t.LRUCache=class extends r{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=i.AsNew){return super.get(e,t)}peek(e){return super.get(e,i.None)}set(e,t){return super.set(e,t,i.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},7408:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,i=0,r=0;e:for(;nthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const i=this._chunks[0];if(i.byteLength>e){const r=i.slice(0,e);t.set(r,n),n+=e,this._chunks[0]=i.slice(e),this._totalLength-=e,e-=e}else t.set(i,n),n+=i.byteLength,this._chunks.shift(),this._totalLength-=i.byteLength,e-=i.byteLength}return t}}},1977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const i=n(9042),r=n(6357),o=n(6712),s=n(7975);var a,c;!function(e){e.is=function(e){const t=e;return t&&r.func(t.listen)&&r.func(t.dispose)&&r.func(t.onError)&&r.func(t.onClose)&&r.func(t.onPartialMessage)}}(a||(t.MessageReader=a={}));class u{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${r.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=u,function(e){e.fromOptions=function(e){let t,n;const r=new Map;let o;const s=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,r.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)r.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(o=e.contentTypeDecoder,s.set(o.name,o)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===o&&(o=(0,i.default)().applicationJson.decoder,s.set(o.name,o)),{charset:t,contentDecoder:n,contentDecoders:r,contentTypeDecoder:o,contentTypeDecoders:s}}}(c||(c={})),t.ReadableStreamMessageReader=class extends u{constructor(e,t){super(),this.readable=e,this.options=c.fromOptions(t),this.buffer=(0,i.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock((async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)})).catch((e=>{this.fireError(e)}))}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,i.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},2549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const i=n(9042),r=n(6357),o=n(7975),s=n(6712);var a,c;!function(e){e.is=function(e){const t=e;return t&&r.func(t.dispose)&&r.func(t.onClose)&&r.func(t.onError)&&r.func(t.write)}}(a||(t.MessageWriter=a={}));class u{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${r.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=u,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,i.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,i.default)().applicationJson.encoder}}}(c||(c={})),t.WriteableStreamMessageWriter=class extends u{constructor(e,t){super(),this.writable=e,this.options=c.fromOptions(t),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},8045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const i=n(6357);var r,o;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(r||(t.ErrorCodes=r={}));class s extends Error{constructor(e,t,n){super(t),this.code=i.number(e)?e:r.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,s.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=s;class a{constructor(e){this.kind=e}static is(e){return e===a.auto||e===a.byName||e===a.byPosition}toString(){return this.kind}}t.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");class c{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return a.auto}}t.AbstractMessageSignature=c,t.RequestType0=class extends c{constructor(e){super(e,0)}},t.RequestType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends c{constructor(e){super(e,2)}},t.RequestType3=class extends c{constructor(e){super(e,3)}},t.RequestType4=class extends c{constructor(e){super(e,4)}},t.RequestType5=class extends c{constructor(e){super(e,5)}},t.RequestType6=class extends c{constructor(e){super(e,6)}},t.RequestType7=class extends c{constructor(e){super(e,7)}},t.RequestType8=class extends c{constructor(e){super(e,8)}},t.RequestType9=class extends c{constructor(e){super(e,9)}},t.NotificationType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends c{constructor(e){super(e,0)}},t.NotificationType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends c{constructor(e){super(e,2)}},t.NotificationType3=class extends c{constructor(e){super(e,3)}},t.NotificationType4=class extends c{constructor(e){super(e,4)}},t.NotificationType5=class extends c{constructor(e){super(e,5)}},t.NotificationType6=class extends c{constructor(e){super(e,6)}},t.NotificationType7=class extends c{constructor(e){super(e,7)}},t.NotificationType8=class extends c{constructor(e){super(e,8)}},t.NotificationType9=class extends c{constructor(e){super(e,9)}},function(e){e.isRequest=function(e){const t=e;return t&&i.string(t.method)&&(i.string(t.id)||i.number(t.id))},e.isNotification=function(e){const t=e;return t&&i.string(t.method)&&void 0===e.id},e.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(i.string(t.id)||i.number(t.id)||null===t.id)}}(o||(t.Message=o={}))},9042:(e,t)=>{"use strict";let n;function i(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(i||(i={})),t.default=i},7975:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const i=n(9042);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,i.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},5584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const i=n(4782);var r;!function(e){e.Continue=0,e.Cancelled=1}(r||(r={})),t.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=r.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const i=new Int32Array(n,0,1);Atomics.store(i,0,r.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class o{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class s{constructor(e){this.token=new o(e)}cancel(){}dispose(){}}t.SharedArrayReceiverStrategy=class{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new i.CancellationTokenSource:new s(t)}}},2087:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.PortMessageWriter=t.PortMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const o=n(3527);o.default.install();const s=n(6928),a=n(857),c=n(9896),u=n(6982),l=n(9278),d=n(9765);r(n(9765),t);class f extends d.AbstractMessageReader{constructor(e){super(),this.process=e;const t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),d.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=f;class h extends d.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;const t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=h;class p extends d.AbstractMessageReader{constructor(e){super(),this.onData=new d.Emitter,e.on("close",(()=>this.fireClose)),e.on("error",(e=>this.fireError(e))),e.on("message",(e=>{this.onData.fire(e)}))}listen(e){return this.onData.event(e)}}t.PortMessageReader=p;class g extends d.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",(()=>this.fireClose())),e.on("error",(e=>this.fireError(e)))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.PortMessageWriter=g;class m extends d.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,o.default)().stream.asReadableStream(e),t)}}t.SocketMessageReader=m;class v extends d.WriteableStreamMessageWriter{constructor(e,t){super((0,o.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=v;class y extends d.ReadableStreamMessageReader{constructor(e,t){super((0,o.default)().stream.asReadableStream(e),t)}}t.StreamMessageReader=y;class C extends d.WriteableStreamMessageWriter{constructor(e,t){super((0,o.default)().stream.asWritableStream(e),t)}}t.StreamMessageWriter=C;const S=process.env.XDG_RUNTIME_DIR,b=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){if("win32"===process.platform)return`\\\\.\\pipe\\lsp-${(0,u.randomBytes)(16).toString("hex")}-sock`;let e=32;const t=c.realpathSync(S??a.tmpdir()),n=b.get(process.platform);if(void 0!==n&&(e=Math.min(n-t.length-9,e)),e<16)throw new Error(`Unable to generate a random pipe name with ${e} characters.`);const i=(0,u.randomBytes)(Math.floor(e/2)).toString("hex");return s.join(t,`lsp-${i}.sock`)},t.createClientPipeTransport=function(e,t="utf-8"){let n;const i=new Promise(((e,t)=>{n=e}));return new Promise(((r,o)=>{const s=(0,l.createServer)((e=>{s.close(),n([new m(e,t),new v(e,t)])}));s.on("error",o),s.listen(e,(()=>{s.removeListener("error",o),r({onConnected:()=>i})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=(0,l.createConnection)(e);return[new m(n,t),new v(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const i=new Promise(((e,t)=>{n=e}));return new Promise(((r,o)=>{const s=(0,l.createServer)((e=>{s.close(),n([new m(e,t),new v(e,t)])}));s.on("error",o),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",o),r({onConnected:()=>i})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=(0,l.createConnection)(e,"127.0.0.1");return[new m(n,t),new v(n,t)]},t.createMessageConnection=function(e,t,n,i){n||(n=d.NullLogger);const r=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new y(e):e,o=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new C(t):t;return d.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,d.createMessageConnection)(r,o,n,i)}},3527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9023),r=n(9765);class o extends r.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return o.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new i.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}o.emptyBuffer=Buffer.allocUnsafe(0);class s{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),r.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),r.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),r.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),r.Disposable.create((()=>this.stream.off("data",e)))}}class a{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),r.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),r.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),r.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,i)=>{const r=e=>{null==e?n():i(e)};"string"==typeof e?this.stream.write(e,t,r):this.stream.write(e,r)}))}end(){this.stream.end()}}const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new o(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new i.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new s(e),asWritableStream:e=>new a(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){const i=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(e,...t){const n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){const i=setInterval(e,t,...n);return{dispose:()=>clearInterval(i)}}})});function u(){return c}!function(e){e.install=function(){r.RAL.install(c)}}(u||(u={})),t.default=u},1991:(e,t,n)=>{"use strict";e.exports=n(2087)},2685:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,r(n(3286),t),r(n(9810),t);var o=n(7034);Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return o.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return o.DiagnosticPullMode}}),r(n(710),t)},8382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,t,n){const i=this.client,o=this.middleware,s=(e,t,n)=>{const o=i.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return i.sendRequest(r.CallHierarchyPrepareRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyItems(e,n)),(e=>i.handleFailedRequest(r.CallHierarchyPrepareRequest.type,n,e,null)))};return o.prepareCallHierarchy?o.prepareCallHierarchy(e,t,n,s):s(e,t,n)}provideCallHierarchyIncomingCalls(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(r.CallHierarchyIncomingCallsRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyIncomingCalls(e,t)),(e=>n.handleFailedRequest(r.CallHierarchyIncomingCallsRequest.type,t,e,null)))};return i.provideCallHierarchyIncomingCalls?i.provideCallHierarchyIncomingCalls(e,t,o):o(e,t)}provideCallHierarchyOutgoingCalls(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(r.CallHierarchyOutgoingCallsRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyOutgoingCalls(e,t)),(e=>n.handleFailedRequest(r.CallHierarchyOutgoingCallsRequest.type,t,e,null)))};return i.provideCallHierarchyOutgoingCalls?i.provideCallHierarchyOutgoingCalls(e,t,o):o(e,t)}}class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const t=e;(0,o.ensure)((0,o.ensure)(t,"textDocument"),"callHierarchy").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.callHierarchyProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=this._client,n=new s(t);return[i.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.CallHierarchyFeature=a},710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProposedFeatures=t.LanguageClient=t.BaseLanguageClient=t.ShutdownMode=t.MessageTransports=t.SuspendMode=t.State=t.CloseAction=t.ErrorAction=t.RevealOutputChannelOn=void 0;const i=n(1398),r=n(3286),o=n(4346),s=n(3881),a=n(1027),c=n(5671),u=n(8820),l=n(5679),d=n(9810),f=n(7034),h=n(4292),p=n(4267),g=n(9504),m=n(3507),v=n(4231),y=n(3876),C=n(4092),S=n(986),b=n(7984),w=n(3652),R=n(4384),D=n(276),T=n(7523),_=n(7327),P=n(2114),k=n(3760),x=n(190),E=n(623),I=n(708),O=n(2837),F=n(2855),N=n(7921),M=n(7086),q=n(8382),L=n(1423),A=n(2661),j=n(514),H=n(7511),$=n(6811),U=n(6272),K=n(4201),z=n(2758),W=n(6576),V=n(378);var B,X,G,J,Z,Q,Y,ee,te,ne;!function(e){e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Never=4]="Never"}(B||(t.RevealOutputChannelOn=B={})),function(e){e[e.Continue=1]="Continue",e[e.Shutdown=2]="Shutdown"}(X||(t.ErrorAction=X={})),function(e){e[e.DoNotRestart=1]="DoNotRestart",e[e.Restart=2]="Restart"}(G||(t.CloseAction=G={})),function(e){e[e.Stopped=1]="Stopped",e[e.Starting=3]="Starting",e[e.StartFailed=4]="StartFailed",e[e.Running=2]="Running"}(J||(t.State=J={})),function(e){e.off="off",e.on="on"}(Z||(t.SuspendMode=Z={})),function(e){e.sanitizeIsTrusted=function(e){return null!=e&&!!("boolean"==typeof e||"object"==typeof e&&null!==e&&a.stringArray(e.enabledCommands))&&e}}(Q||(Q={}));class ie{constructor(e,t){this.client=e,this.maxRestartCount=t,this.restarts=[]}error(e,t,n){return n&&n<=3?{action:X.Continue}:{action:X.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:G.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=18e4?{action:G.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:G.Restart})}}!function(e){e.Initial="initial",e.Starting="starting",e.StartFailed="startFailed",e.Running="running",e.Stopping="stopping",e.Stopped="stopped"}(Y||(Y={})),function(e){e.is=function(e){return e&&r.MessageReader.is(e.reader)&&r.MessageWriter.is(e.writer)}}(ee||(t.MessageTransports=ee={})),function(e){e.Restart="restart",e.Stop="stop"}(te||(t.ShutdownMode=te={}));class re{constructor(e,t,n){this._traceFormat=r.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new c.Semaphore(1),this._id=e,this._name=t;const i={isTrusted:!1,supportHtml:!1};void 0!==(n=n||{}).markdown&&(i.isTrusted=Q.sanitizeIsTrusted(n.markdown.isTrusted),i.supportHtml=!0===n.markdown.supportHtml),this._clientOptions={documentSelector:n.documentSelector??[],synchronize:n.synchronize??{},diagnosticCollectionName:n.diagnosticCollectionName,outputChannelName:n.outputChannelName??this._name,revealOutputChannelOn:n.revealOutputChannelOn??B.Error,stdioEncoding:n.stdioEncoding??"utf8",initializationOptions:n.initializationOptions,initializationFailedHandler:n.initializationFailedHandler,progressOnInitialization:!!n.progressOnInitialization,errorHandler:n.errorHandler??this.createDefaultErrorHandler(n.connectionOptions?.maxRestartCount),middleware:n.middleware??{},uriConverters:n.uriConverters,workspaceFolder:n.workspaceFolder,connectionOptions:n.connectionOptions,markdown:i,diagnosticPullOptions:n.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:n.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Y.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,n.outputChannel?(this._outputChannel=n.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=n.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new c.Semaphore(1),this._pendingChangeDelayer=new c.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new c.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new r.Emitter,this._stateChangeEmitter=new r.Emitter,this._trace=r.Trace.Off,this._tracer={log:(e,t)=>{a.string(e)?this.logTrace(e,t):this.logObjectTrace(e)}},this._c2p=o.createConverter(n.uriConverters?n.uriConverters.code2Protocol:void 0),this._p2c=s.createConverter(n.uriConverters?n.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=i.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){const t=this.getPublicState();this._state=e;const n=this.getPublicState();n!==t&&this._stateChangeEmitter.fire({oldState:t,newState:n})}getPublicState(){switch(this.$state){case Y.Starting:return J.Starting;case Y.Running:return J.Running;case Y.StartFailed:return J.StartFailed;default:return J.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...t){if(this.$state===Y.StartFailed||this.$state===Y.Stopping||this.$state===Y.Stopped)return Promise.reject(new r.ResponseError(r.ErrorCodes.ConnectionInactive,"Client is not running"));const n=await this.$start();let i,o;if(this._didChangeTextDocumentFeature.syncKind===r.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(n),1===t.length?r.CancellationToken.is(t[0])?o=t[0]:i=t[0]:2===t.length&&(i=t[0],o=t[1]),void 0!==o&&o.isCancellationRequested)return Promise.reject(new r.ResponseError(r.LSPErrorCodes.RequestCancelled,"Request got cancelled"));const s=this._clientOptions.middleware?.sendRequest;return void 0!==s?s(e,i,o,((e,t,i)=>{const r=[];return void 0!==t&&r.push(t),void 0!==i&&r.push(i),n.sendRequest(e,...r)})):n.sendRequest(e,...t)}onRequest(e,t){const n="string"==typeof e?e:e.method;this._requestHandlers.set(n,t);const i=this.activeConnection();let r;return void 0!==i?(this._requestDisposables.set(n,i.onRequest(e,t)),r={dispose:()=>{const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n))}}):(this._pendingRequestHandlers.set(n,t),r={dispose:()=>{this._pendingRequestHandlers.delete(n);const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n))}}),{dispose:()=>{this._requestHandlers.delete(n),r.dispose()}}}async sendNotification(e,t){if(this.$state===Y.StartFailed||this.$state===Y.Stopping||this.$state===Y.Stopped)return Promise.reject(new r.ResponseError(r.ErrorCodes.ConnectionInactive,"Client is not running"));const n=this._didChangeTextDocumentFeature.syncKind===r.TextDocumentSyncKind.Full;let i;n&&"string"!=typeof e&&e.method===r.DidOpenTextDocumentNotification.method&&(i=t?.textDocument.uri,this._pendingOpenNotifications.add(i));const o=await this.$start();n&&await this.sendPendingFullTextDocumentChanges(o),void 0!==i&&this._pendingOpenNotifications.delete(i);const s=this._clientOptions.middleware?.sendNotification;return s?s(e,o.sendNotification.bind(o),t):o.sendNotification(e,t)}onNotification(e,t){const n="string"==typeof e?e:e.method;this._notificationHandlers.set(n,t);const i=this.activeConnection();let r;return void 0!==i?(this._notificationDisposables.set(n,i.onNotification(e,t)),r={dispose:()=>{const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n))}}):(this._pendingNotificationHandlers.set(n,t),r={dispose:()=>{this._pendingNotificationHandlers.delete(n);const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n))}}),{dispose:()=>{this._notificationHandlers.delete(n),r.dispose()}}}async sendProgress(e,t,n){if(this.$state===Y.StartFailed||this.$state===Y.Stopping||this.$state===Y.Stopped)return Promise.reject(new r.ResponseError(r.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,t,n)}catch(e){throw this.error(`Sending progress for token ${t} failed.`,e),e}}onProgress(e,t,n){this._progressHandlers.set(t,{type:e,handler:n});const i=this.activeConnection();let o;const s=this._clientOptions.middleware?.handleWorkDoneProgress,a=r.WorkDoneProgress.is(e)&&void 0!==s?e=>{s(t,e,(()=>n(e)))}:n;return void 0!==i?(this._progressDisposables.set(t,i.onProgress(e,t,a)),o={dispose:()=>{const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t))}}):(this._pendingProgressHandlers.set(t,{type:e,handler:n}),o={dispose:()=>{this._pendingProgressHandlers.delete(t);const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t))}}),{dispose:()=>{this._progressHandlers.delete(t),o.dispose()}}}createDefaultErrorHandler(e){if(void 0!==e&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new ie(this,e??4)}async setTrace(e){this._trace=e;const t=this.activeConnection();void 0!==t&&await t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof r.ResponseError){const t=e;return` Message: ${t.message}\n Code: ${t.code} ${t.data?"\n"+t.data.toString():""}`}return e instanceof Error?a.string(e.stack)?e.stack:e.message:a.string(e)?e:e.toString()}debug(e,t,n=!0){this.logOutputMessage(r.MessageType.Debug,B.Debug,"Debug",e,t,n)}info(e,t,n=!0){this.logOutputMessage(r.MessageType.Info,B.Info,"Info",e,t,n)}warn(e,t,n=!0){this.logOutputMessage(r.MessageType.Warning,B.Warn,"Warn",e,t,n)}error(e,t,n=!0){this.logOutputMessage(r.MessageType.Error,B.Error,"Error",e,t,n)}logOutputMessage(e,t,n,i,r,o){this.outputChannel.appendLine(`[${n.padEnd(5)} - ${(new Date).toLocaleTimeString()}] ${i}`),null!=r&&this.outputChannel.appendLine(this.data2String(r)),("force"===o||o&&this._clientOptions.revealOutputChannelOn<=t)&&this.showNotificationMessage(e,i)}showNotificationMessage(e,t){t=t??"A request has failed. See the output for more information.",(e===r.MessageType.Error?i.window.showErrorMessage:e===r.MessageType.Warning?i.window.showWarningMessage:i.window.showInformationMessage)(t,"Go to output").then((e=>{void 0!==e&&this.outputChannel.show(!0)}))}logTrace(e,t){this.traceOutputChannel.appendLine(`[Trace - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.traceOutputChannel.appendLine(this.data2String(t))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${(new Date).toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${(new Date).toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===Y.Initial||this.$state===Y.Stopping||this.$state===Y.Stopped}needsStop(){return this.$state===Y.Starting||this.$state===Y.Running}activeConnection(){return this.$state===Y.Running&&void 0!==this._connection?this._connection:void 0}isRunning(){return this.$state===Y.Running}async start(){if("disposing"===this._disposed||"disposed"===this._disposed)throw new Error("Client got disposed and can't be restarted.");if(this.$state===Y.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(void 0!==this._onStart)return this._onStart;const[e,t,n]=this.createOnStartPromise();this._onStart=e,void 0===this._diagnostics&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?i.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):i.languages.createDiagnosticCollection());for(const[e,t]of this._notificationHandlers)this._pendingNotificationHandlers.has(e)||this._pendingNotificationHandlers.set(e,t);for(const[e,t]of this._requestHandlers)this._pendingRequestHandlers.has(e)||this._pendingRequestHandlers.set(e,t);for(const[e,t]of this._progressHandlers)this._pendingProgressHandlers.has(e)||this._pendingProgressHandlers.set(e,t);this.$state=Y.Starting;try{const e=await this.createConnection();e.onNotification(r.LogMessageNotification.type,(e=>{switch(e.type){case r.MessageType.Error:this.error(e.message,void 0,!1);break;case r.MessageType.Warning:this.warn(e.message,void 0,!1);break;case r.MessageType.Info:this.info(e.message,void 0,!1);break;case r.MessageType.Debug:this.debug(e.message,void 0,!1);break;default:this.outputChannel.appendLine(e.message)}})),e.onNotification(r.ShowMessageNotification.type,(e=>{switch(e.type){case r.MessageType.Error:i.window.showErrorMessage(e.message);break;case r.MessageType.Warning:i.window.showWarningMessage(e.message);break;case r.MessageType.Info:default:i.window.showInformationMessage(e.message)}})),e.onRequest(r.ShowMessageRequest.type,(e=>{let t;switch(e.type){case r.MessageType.Error:t=i.window.showErrorMessage;break;case r.MessageType.Warning:t=i.window.showWarningMessage;break;case r.MessageType.Info:default:t=i.window.showInformationMessage}const n=e.actions||[];return t(e.message,...n)})),e.onNotification(r.TelemetryEventNotification.type,(e=>{this._telemetryEmitter.fire(e)})),e.onRequest(r.ShowDocumentRequest.type,(async(e,t)=>{const n=async e=>{const t=this.protocol2CodeConverter.asUri(e.uri);try{if(!0===e.external)return{success:await i.env.openExternal(t)};{const n={};return void 0!==e.selection&&(n.selection=this.protocol2CodeConverter.asRange(e.selection)),void 0===e.takeFocus||!1===e.takeFocus?n.preserveFocus=!0:!0===e.takeFocus&&(n.preserveFocus=!1),await i.window.showTextDocument(t,n),{success:!0}}}catch(e){return{success:!1}}},r=this._clientOptions.middleware.window?.showDocument;return void 0!==r?r(e,t,n):n(e)})),e.listen(),await this.initialize(e),t()}catch(e){this.$state=Y.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,e,"force"),n(e)}return this._onStart}createOnStartPromise(){let e,t;return[new Promise(((n,i)=>{e=n,t=i})),e,t]}async initialize(e){this.refreshTrace(e,!1);const t=this._clientOptions.initializationOptions,[n,o]=void 0!==this._clientOptions.workspaceFolder?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:i.env.appName,version:i.version},locale:this.getLocale(),rootPath:n||null,rootUri:n?this._c2p.asUri(i.Uri.file(n)):null,capabilities:this.computeClientCapabilities(),initializationOptions:a.func(t)?t():t,trace:r.Trace.toString(this._trace),workspaceFolders:o};if(this.fillInitializeParams(s),!this._clientOptions.progressOnInitialization)return this.doInitialize(e,s);{const t=u.generateUuid(),n=new l.ProgressPart(e,t);s.workDoneToken=t;try{const t=await this.doInitialize(e,s);return n.done(),t}catch(e){throw n.cancel(),e}}}async doInitialize(e,t){try{const n=await e.initialize(t);if(void 0!==n.capabilities.positionEncoding&&n.capabilities.positionEncoding!==r.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${n.capabilities.positionEncoding}) received from server ${this.name}`);let i;this._initializeResult=n,this.$state=Y.Running,a.number(n.capabilities.textDocumentSync)?i=n.capabilities.textDocumentSync===r.TextDocumentSyncKind.None?{openClose:!1,change:r.TextDocumentSyncKind.None,save:void 0}:{openClose:!0,change:n.capabilities.textDocumentSync,save:{includeText:!1}}:void 0!==n.capabilities.textDocumentSync&&null!==n.capabilities.textDocumentSync&&(i=n.capabilities.textDocumentSync),this._capabilities=Object.assign({},n.capabilities,{resolvedTextDocumentSync:i}),e.onNotification(r.PublishDiagnosticsNotification.type,(e=>this.handleDiagnostics(e))),e.onRequest(r.RegistrationRequest.type,(e=>this.handleRegistrationRequest(e))),e.onRequest("client/registerFeature",(e=>this.handleRegistrationRequest(e))),e.onRequest(r.UnregistrationRequest.type,(e=>this.handleUnregistrationRequest(e))),e.onRequest("client/unregisterFeature",(e=>this.handleUnregistrationRequest(e))),e.onRequest(r.ApplyWorkspaceEditRequest.type,(e=>this.handleApplyWorkspaceEdit(e)));for(const[t,n]of this._pendingNotificationHandlers)this._notificationDisposables.set(t,e.onNotification(t,n));this._pendingNotificationHandlers.clear();for(const[t,n]of this._pendingRequestHandlers)this._requestDisposables.set(t,e.onRequest(t,n));this._pendingRequestHandlers.clear();for(const[t,n]of this._pendingProgressHandlers)this._progressDisposables.set(t,e.onProgress(n.type,t,n.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(r.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),n}catch(t){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(t)?this.initialize(e):this.stop():t instanceof r.ResponseError&&t.data&&t.data.retry?i.window.showErrorMessage(t.message,{title:"Retry",id:"retry"}).then((t=>{t&&"retry"===t.id?this.initialize(e):this.stop()})):(t&&t.message&&i.window.showErrorMessage(t.message),this.error("Server initialization failed.",t),this.stop()),t}}_clientGetRootPath(){const e=i.workspace.workspaceFolders;if(!e||0===e.length)return;const t=e[0];return"file"===t.uri.scheme?t.uri.fsPath:void 0}stop(e=2e3){return this.shutdown(te.Stop,e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,t=2e3){if(this.$state===Y.Stopped||this.$state===Y.Initial)return;if(this.$state===Y.Stopping){if(void 0!==this._onStop)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const n=this.activeConnection();if(void 0===n||this.$state!==Y.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=Y.Stopping,this.cleanUp(e);const i=new Promise((e=>{(0,r.RAL)().timer.setTimeout(e,t)})),o=(async e=>(await e.shutdown(),await e.exit(),e))(n);return this._onStop=Promise.race([i,o]).then((e=>{if(void 0===e)throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out");e.end(),e.dispose()}),(e=>{throw this.error("Stopping server failed",e,!1),e})).finally((()=>{this.$state=Y.Stopped,e===te.Stop&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()}))}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();const t=this._listeners.splice(0,this._listeners.length);for(const e of t)e.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const e of Array.from(this._features.entries()).map((e=>e[1])).reverse())e.clear();e!==te.Stop&&e!==te.Restart||void 0===this._diagnostics||(this._diagnostics.dispose(),this._diagnostics=void 0),void 0!==this._idleInterval&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){void 0!==this._outputChannel&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){const t=this;async function n(e){return t._fileEvents.push(e),t._fileEventDelayer.trigger((async()=>{await t.sendNotification(r.DidChangeWatchedFilesNotification.type,{changes:t._fileEvents}),t._fileEvents=[]}))}const i=this.clientOptions.middleware?.workspace;(i?.didChangeWatchedFile?i.didChangeWatchedFile(e,n):n(e)).catch((e=>{t.error("Notify file events failed.",e)}))}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock((async()=>{try{const t=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(0===t.length)return;for(const n of t){const t=this.code2ProtocolConverter.asChangeTextDocumentParams(n);await e.sendNotification(r.DidChangeTextDocumentNotification.type,t),this._didChangeTextDocumentFeature.notificationSent(n,r.DidChangeTextDocumentNotification.type,t)}}catch(e){throw this.error("Sending pending changes failed",e,!1),e}}))}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger((async()=>{const e=this.activeConnection();void 0!==e?await this.sendPendingFullTextDocumentChanges(e):this.triggerPendingChangeDelivery()})).catch((e=>this.error("Delivering pending changes failed",e,!1)))}handleDiagnostics(e){if(!this._diagnostics)return;const t=e.uri;"busy"===this._diagnosticQueueState.state&&this._diagnosticQueueState.document===t&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,r.RAL)().timer.setImmediate((()=>{this.workDiagnosticQueue()}))}workDiagnosticQueue(){if("busy"===this._diagnosticQueueState.state)return;const e=this._diagnosticQueue.entries().next();if(!0===e.done)return;const[t,n]=e.value;this._diagnosticQueue.delete(t);const r=new i.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:t,tokenSource:r},this._p2c.asDiagnostics(n,r.token).then((e=>{if(!r.token.isCancellationRequested){const n=this._p2c.asUri(t),i=this.clientOptions.middleware;i.handleDiagnostics?i.handleDiagnostics(n,e,((e,t)=>this.setDiagnostics(e,t))):this.setDiagnostics(n,e)}})).catch((e=>{this.error("Processing diagnostic queue failed.",e)})).finally((()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()}))}setDiagnostics(e,t){this._diagnostics&&this._diagnostics.set(e,t)}getLocale(){return i.env.language}async $start(){if(this.$state===Y.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(void 0===e)throw new Error("Starting server failed");return e}async createConnection(){const e=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=function(e,t,n,i,o){const s=new oe,c=(0,r.createProtocolConnection)(e,t,s,o);return c.onError((e=>{n(e[0],e[1],e[2])})),c.onClose(i),{listen:()=>c.listen(),sendRequest:c.sendRequest,onRequest:c.onRequest,hasPendingResponse:c.hasPendingResponse,sendNotification:c.sendNotification,onNotification:c.onNotification,onProgress:c.onProgress,sendProgress:c.sendProgress,trace:(e,t,n)=>{const i={sendNotification:!1,traceFormat:r.TraceFormat.Text};return void 0===n?c.trace(e,t,i):(a.boolean(n),c.trace(e,t,n))},initialize:e=>c.sendRequest(r.InitializeRequest.type,e),shutdown:()=>c.sendRequest(r.ShutdownRequest.type,void 0),exit:()=>c.sendNotification(r.ExitNotification.type),end:()=>c.end(),dispose:()=>c.dispose()}}(e.reader,e.writer,((e,t,n)=>{this.handleConnectionError(e,t,n).catch((e=>this.error("Handling connection error failed",e)))}),(()=>{this.handleConnectionClosed().catch((e=>this.error("Handling connection close failed",e)))}),this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Y.Stopped)return;try{void 0!==this._connection&&this._connection.dispose()}catch(e){}let e={action:G.DoNotRestart};if(this.$state!==Y.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch(e){}this._connection=void 0,e.action===G.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,!0!==e.handled&&"force"),this.cleanUp(te.Stop),this.$state===Y.Starting?this.$state=Y.StartFailed:this.$state=Y.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===G.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp(te.Restart),this.$state=Y.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch((e=>this.error("Restarting server failed",e,"force"))))}async handleConnectionError(e,t,n){const i=await this._clientOptions.errorHandler.error(e,t,n);i.action===X.Shutdown?(this.error(i.message??`Client ${this._name}: connection to server is erroring.\n${e.message}\nShutting down server.`,void 0,!0!==i.handled&&"force"),this.stop().catch((e=>{this.error("Stopping server failed",e,!1)}))):this.error(i.message??`Client ${this._name}: connection to server is erroring.\n${e.message}`,void 0,!0!==i.handled&&"force")}hookConfigurationChanged(e){this._listeners.push(i.workspace.onDidChangeConfiguration((()=>{this.refreshTrace(e,!0)})))}refreshTrace(e,t=!1){const n=i.workspace.getConfiguration(this._id);let o=r.Trace.Off,s=r.TraceFormat.Text;if(n){const e=n.get("trace.server","off");"string"==typeof e?o=r.Trace.fromString(e):(o=r.Trace.fromString(n.get("trace.server.verbosity","off")),s=r.TraceFormat.fromString(n.get("trace.server.format","text")))}this._trace=o,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch((e=>{this.error("Updating trace failed with error",e,!1)}))}hookFileEvents(e){const t=this._clientOptions.synchronize.fileEvents;if(!t)return;let n;n=a.array(t)?t:[t],n&&this._dynamicFeatures.get(r.DidChangeWatchedFilesNotification.type.method).registerRaw(u.generateUuid(),n)}registerFeatures(e){for(const t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),d.DynamicFeature.is(e)){const t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const t=this.getFeature(r.NotebookDocumentSyncRegistrationType.method);return void 0!==t&&t instanceof h.NotebookDocumentSyncFeature&&t.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new p.ConfigurationFeature(this)),this.registerFeature(new g.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new g.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded((()=>{this.triggerPendingChangeDelivery()})),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new g.WillSaveFeature(this)),this.registerFeature(new g.WillSaveWaitUntilFeature(this)),this.registerFeature(new g.DidSaveTextDocumentFeature(this)),this.registerFeature(new g.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new W.FileSystemWatcherFeature(this,(e=>this.notifyFileEvent(e)))),this.registerFeature(new m.CompletionItemFeature(this)),this.registerFeature(new v.HoverFeature(this)),this.registerFeature(new C.SignatureHelpFeature(this)),this.registerFeature(new y.DefinitionFeature(this)),this.registerFeature(new R.ReferencesFeature(this)),this.registerFeature(new S.DocumentHighlightFeature(this)),this.registerFeature(new b.DocumentSymbolFeature(this)),this.registerFeature(new w.WorkspaceSymbolFeature(this)),this.registerFeature(new P.CodeActionFeature(this)),this.registerFeature(new k.CodeLensFeature(this)),this.registerFeature(new x.DocumentFormattingFeature(this)),this.registerFeature(new x.DocumentRangeFormattingFeature(this)),this.registerFeature(new x.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new E.RenameFeature(this)),this.registerFeature(new I.DocumentLinkFeature(this)),this.registerFeature(new O.ExecuteCommandFeature(this)),this.registerFeature(new p.SyncConfigurationFeature(this)),this.registerFeature(new D.TypeDefinitionFeature(this)),this.registerFeature(new T.ImplementationFeature(this)),this.registerFeature(new _.ColorProviderFeature(this)),void 0===this.clientOptions.workspaceFolder&&this.registerFeature(new U.WorkspaceFoldersFeature(this)),this.registerFeature(new F.FoldingRangeFeature(this)),this.registerFeature(new N.DeclarationFeature(this)),this.registerFeature(new M.SelectionRangeFeature(this)),this.registerFeature(new V.ProgressFeature(this)),this.registerFeature(new q.CallHierarchyFeature(this)),this.registerFeature(new L.SemanticTokensFeature(this)),this.registerFeature(new A.LinkedEditingFeature(this)),this.registerFeature(new K.DidCreateFilesFeature(this)),this.registerFeature(new K.DidRenameFilesFeature(this)),this.registerFeature(new K.DidDeleteFilesFeature(this)),this.registerFeature(new K.WillCreateFilesFeature(this)),this.registerFeature(new K.WillRenameFilesFeature(this)),this.registerFeature(new K.WillDeleteFilesFeature(this)),this.registerFeature(new j.TypeHierarchyFeature(this)),this.registerFeature(new H.InlineValueFeature(this)),this.registerFeature(new $.InlayHintsFeature(this)),this.registerFeature(new f.DiagnosticFeature(this)),this.registerFeature(new h.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(ne.createAll(this))}fillInitializeParams(e){for(const t of this._features)a.func(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,d.ensure)(e,"workspace").applyEdit=!0;const t=(0,d.ensure)((0,d.ensure)(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[r.ResourceOperationKind.Create,r.ResourceOperationKind.Rename,r.ResourceOperationKind.Delete],t.failureHandling=r.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0},t.metadataSupport=!0,t.snippetEditSupport=!0;const n=(0,d.ensure)((0,d.ensure)(e,"textDocument"),"publishDiagnostics");n.relatedInformation=!0,n.versionSupport=!1,n.tagSupport={valueSet:[r.DiagnosticTag.Unnecessary,r.DiagnosticTag.Deprecated]},n.codeDescriptionSupport=!0,n.dataSupport=!0;const i=(0,d.ensure)(e,"window");(0,d.ensure)(i,"showMessage").messageActionItem={additionalPropertiesSupport:!0},(0,d.ensure)(i,"showDocument").support=!0;const o=(0,d.ensure)(e,"general");o.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(re.RequestsToCancelOnContentModified)},o.regularExpressions={engine:"ECMAScript",version:"ES2020"},o.markdown={parser:"marked",version:"1.1.0"},o.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(o.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(const t of this._features)t.fillClientCapabilities(e);return e}initializeFeatures(e){const t=this._clientOptions.documentSelector;for(const e of this._features)a.func(e.preInitialize)&&e.preInitialize(this._capabilities,t);for(const e of this._features)e.initialize(this._capabilities,t)}async handleRegistrationRequest(e){const t=this.clientOptions.middleware?.handleRegisterCapability;return t?t(e,(e=>this.doRegisterCapability(e))):this.doRegisterCapability(e)}async doRegisterCapability(e){if(this.isRunning())for(const t of e.registrations){const e=this._dynamicFeatures.get(t.method);if(void 0===e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Registration failed.`));const n=t.registerOptions??{};n.documentSelector=n.documentSelector??this._clientOptions.documentSelector;const i={id:t.id,registerOptions:n};try{e.register(i)}catch(e){return Promise.reject(e)}}else for(const t of e.registrations)this._ignoredRegistrations.add(t.id)}async handleUnregistrationRequest(e){const t=this.clientOptions.middleware?.handleUnregisterCapability;return t?t(e,(e=>this.doUnregisterCapability(e))):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(const t of e.unregisterations){if(this._ignoredRegistrations.has(t.id))continue;const e=this._dynamicFeatures.get(t.method);if(!e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));e.unregister(t.id)}}async handleApplyWorkspaceEdit(e){const t=this.clientOptions.middleware?.workspace?.handleApplyEdit;if(t){const n=await t(e,(e=>this.doHandleApplyWorkspaceEdit(e)));return n instanceof r.ResponseError?Promise.reject(n):n}return this.doHandleApplyWorkspaceEdit(e)}async doHandleApplyWorkspaceEdit(e){const t=e.edit,n=await this.workspaceEditLock.lock((()=>this._p2c.asWorkspaceEdit(t))),o=new Map;i.workspace.textDocuments.forEach((e=>o.set(e.uri.toString(),e)));let s=!1;if(t.documentChanges)for(const e of t.documentChanges)if(r.TextDocumentEdit.is(e)&&e.textDocument.version&&e.textDocument.version>=0){const t=this._p2c.asUri(e.textDocument.uri).toString(),n=o.get(t);if(n&&n.version!==e.textDocument.version){s=!0;break}}return s?Promise.resolve({applied:!1}):a.asPromise(i.workspace.applyEdit(n,{isRefactoring:e.metadata?.isRefactoring}).then((e=>({applied:e}))))}handleFailedRequest(e,t,n,o,s=!0,a=!1){if(n instanceof r.ResponseError){if(n.code===r.ErrorCodes.PendingResponseRejected||n.code===r.ErrorCodes.ConnectionInactive)return o;if(n.code===r.LSPErrorCodes.RequestCancelled||n.code===r.LSPErrorCodes.ServerCancelled){if(void 0!==t&&t.isCancellationRequested&&!a)return o;throw void 0!==n.data?new d.LSPCancellationError(n.data):new i.CancellationError}if(n.code===r.LSPErrorCodes.ContentModified){if(re.RequestsToCancelOnContentModified.has(e.method)||re.CancellableResolveCalls.has(e.method))throw new i.CancellationError;return o}}throw this.error(`Request ${e.method} failed.`,n,s),n}}t.BaseLanguageClient=re,re.RequestsToCancelOnContentModified=new Set([r.SemanticTokensRequest.method,r.SemanticTokensRangeRequest.method,r.SemanticTokensDeltaRequest.method]),re.CancellableResolveCalls=new Set([r.CompletionResolveRequest.method,r.CodeLensResolveRequest.method,r.CodeActionResolveRequest.method,r.InlayHintResolveRequest.method,r.DocumentLinkResolveRequest.method,r.WorkspaceSymbolResolveRequest.method]),t.LanguageClient=class extends re{constructor(e,t,n,i){super(e,t,i),this.serverOptions=n}async createMessageTransports(e){return this.serverOptions()}};class oe{error(e){(0,r.RAL)().console.error(e)}warn(e){(0,r.RAL)().console.warn(e)}info(e){(0,r.RAL)().console.info(e)}log(e){(0,r.RAL)().console.log(e)}}!function(e){e.createAll=function(e){return[new z.InlineCompletionItemFeature(e)]}}(ne||(t.ProposedFeatures=ne={}))},2114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionFeature=void 0;const i=n(1398),r=n(3286),o=n(8820),s=n(9810);class a extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.CodeActionRequest.type)}fillClientCapabilities(e){const t=(0,s.ensure)((0,s.ensure)(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.resolveSupport={properties:["edit","command"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[r.CodeActionKind.Empty,r.CodeActionKind.QuickFix,r.CodeActionKind.Refactor,r.CodeActionKind.RefactorExtract,r.CodeActionKind.RefactorInline,r.CodeActionKind.RefactorMove,r.CodeActionKind.RefactorRewrite,r.CodeActionKind.Source,r.CodeActionKind.SourceOrganizeImports,r.CodeActionKind.Notebook]}},t.honorsChangeAnnotations=!0,t.documentationSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.codeActionProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideCodeActions:(e,t,n,i)=>{const o=this._client,s=async(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),context:o.code2ProtocolConverter.asCodeActionContextSync(n)};return o.sendRequest(r.CodeActionRequest.type,s,i).then((e=>i.isCancellationRequested||null==e?null:o.protocol2CodeConverter.asCodeActionResult(e,i)),(e=>o.handleFailedRequest(r.CodeActionRequest.type,i,e,null)))},a=o.middleware;return a.provideCodeActions?a.provideCodeActions(e,t,n,i,s):s(e,t,n,i)},resolveCodeAction:e.resolveProvider?(e,t)=>{const n=this._client,i=this._client.middleware,o=async(e,t)=>n.sendRequest(r.CodeActionResolveRequest.type,n.code2ProtocolConverter.asCodeActionSync(e),t).then((i=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeAction(i,t)),(i=>n.handleFailedRequest(r.CodeActionResolveRequest.type,t,i,e)));return i.resolveCodeAction?i.resolveCodeAction(e,t,o):o(e,t)}:void 0};return[i.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,this.getMetadata(e)),n]}getMetadata(e){if(void 0!==e.codeActionKinds||void 0!==e.documentation)return{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds),documentation:this._client.protocol2CodeConverter.asCodeActionDocumentations(e.documentation)}}}t.CodeActionFeature=a},4346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const i=n(1398),r=n(3286),o=n(1027),s=n(5671),a=n(4752),c=n(1936),u=n(7252),l=n(2946),d=n(5146),f=n(2049),h=n(5965),p=n(1332),g=n(107);var m;!function(e){e.is=function(e){const t=e;return t&&!!t.inserting&&!!t.replacing}}(m||(m={})),t.createConverter=function(e){const t=e||(e=>e.toString());function n(e){return t(e)}function v(e){return{uri:t(e.uri)}}function y(e){return{uri:t(e.uri),languageId:e.languageId,version:e.version,text:e.getText()}}function C(e){switch(e){case i.TextDocumentSaveReason.Manual:return r.TextDocumentSaveReason.Manual;case i.TextDocumentSaveReason.AfterDelay:return r.TextDocumentSaveReason.AfterDelay;case i.TextDocumentSaveReason.FocusOut:return r.TextDocumentSaveReason.FocusOut}return r.TextDocumentSaveReason.Manual}function S(e){switch(e){case i.CompletionTriggerKind.TriggerCharacter:return r.CompletionTriggerKind.TriggerCharacter;case i.CompletionTriggerKind.TriggerForIncompleteCompletions:return r.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return r.CompletionTriggerKind.Invoked}}function b(e){switch(e){case i.SignatureHelpTriggerKind.Invoke:return r.SignatureHelpTriggerKind.Invoked;case i.SignatureHelpTriggerKind.TriggerCharacter:return r.SignatureHelpTriggerKind.TriggerCharacter;case i.SignatureHelpTriggerKind.ContentChange:return r.SignatureHelpTriggerKind.ContentChange}}function w(e){return{label:e.label}}function R(e){return{label:e.label,parameters:(t=e.parameters,t.map(w))};var t}function D(e){return{line:e.line,character:e.character}}function T(e){return null==e?e:{line:e.line>r.uinteger.MAX_VALUE?r.uinteger.MAX_VALUE:e.line,character:e.character>r.uinteger.MAX_VALUE?r.uinteger.MAX_VALUE:e.character}}function _(e){return null==e?e:{start:T(e.start),end:T(e.end)}}function P(e){return null==e?e:r.Location.create(n(e.uri),_(e.range))}function k(e){switch(e){case i.DiagnosticSeverity.Error:return r.DiagnosticSeverity.Error;case i.DiagnosticSeverity.Warning:return r.DiagnosticSeverity.Warning;case i.DiagnosticSeverity.Information:return r.DiagnosticSeverity.Information;case i.DiagnosticSeverity.Hint:return r.DiagnosticSeverity.Hint}}function x(e){switch(e){case i.DiagnosticTag.Unnecessary:return r.DiagnosticTag.Unnecessary;case i.DiagnosticTag.Deprecated:return r.DiagnosticTag.Deprecated;default:return}}function E(e){return{message:e.message,location:P(e.location)}}function I(e){const t=r.Diagnostic.create(_(e.range),e.message),i=e instanceof d.ProtocolDiagnostic?e:void 0;void 0!==i&&void 0!==i.data&&(t.data=i.data);const s=function(e){if(null!=e)return o.number(e)||o.string(e)?e:{value:e.value,target:n(e.target)}}(e.code);return d.DiagnosticCode.is(s)?void 0!==i&&i.hasDiagnosticCode?t.code=s:(t.code=s.value,t.codeDescription={href:s.target}):t.code=s,o.number(e.severity)&&(t.severity=k(e.severity)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;const t=[];for(const n of e){const e=x(n);void 0!==e&&t.push(e)}return t.length>0?t:void 0}(e.tags)),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(E)),e.source&&(t.source=e.source),t}function O(e,t){return null==e?e:s.map(e,I,t)}function F(e){return null==e?e:e.map(I)}function N(e){if(e===i.CompletionItemTag.Deprecated)return r.CompletionItemTag.Deprecated}function M(e){return{range:_(e.range),newText:e.newText}}function q(e){return null==e?e:e.map(M)}function L(e){return e<=i.SymbolKind.TypeParameter?e+1:r.SymbolKind.Property}function A(e){return e}function j(e){return e.map(A)}function H(e){switch(e){case i.CodeActionTriggerKind.Invoke:return r.CodeActionTriggerKind.Invoked;case i.CodeActionTriggerKind.Automatic:return r.CodeActionTriggerKind.Automatic;default:return}}function $(e){if(null!=e)return e.value}function U(e){return{triggerKind:K(e.triggerKind),selectedCompletionInfo:z(e.selectedCompletionInfo)}}function K(e){switch(e){case i.InlineCompletionTriggerKind.Invoke:return r.InlineCompletionTriggerKind.Invoked;case i.InlineCompletionTriggerKind.Automatic:return r.InlineCompletionTriggerKind.Automatic}}function z(e){if(null!=e)return{range:_(e.range),text:e.text}}function W(e){const t=r.Command.create(e.title,e.command);return e.tooltip&&(t.tooltip=e.tooltip),e.arguments&&(t.arguments=e.arguments),t}function V(e){const t=r.InlayHintLabelPart.create(e.value);return void 0!==e.location&&(t.location=P(e.location)),void 0!==e.command&&(t.command=W(e.command)),void 0!==e.tooltip&&(t.tooltip=B(e.tooltip)),t}function B(e){return"string"==typeof e?e:{kind:r.MarkupKind.Markdown,value:e.value}}return{asUri:n,asTextDocumentIdentifier:v,asTextDocumentItem:y,asVersionedTextDocumentIdentifier:function(e){return{uri:t(e.uri),version:e.version}},asOpenTextDocumentParams:function(e){return{textDocument:y(e)}},asChangeTextDocumentParams:function(e,n,i){if(function(e){const t=e;return!!t.uri&&!!t.version}(e))return{textDocument:{uri:t(e.uri),version:e.version},contentChanges:[{text:e.getText()}]};if(function(e){const t=e;return!!t.document&&!!t.contentChanges}(e)){const r=i;return{textDocument:{uri:t(n),version:r},contentChanges:e.contentChanges.map((e=>{const t=e.range;return{range:{start:{line:t.start.line,character:t.start.character},end:{line:t.end.line,character:t.end.character}},rangeLength:e.rangeLength,text:e.text}}))}}throw Error("Unsupported text document change parameter")},asCloseTextDocumentParams:function(e){return{textDocument:v(e)}},asSaveTextDocumentParams:function(e,t=!1){const n={textDocument:v(e)};return t&&(n.text=e.getText()),n},asWillSaveTextDocumentParams:function(e){return{textDocument:v(e.document),reason:C(e.reason)}},asDidCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asDidRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asDidDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asWillDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asTextDocumentPositionParams:function(e,t){return{textDocument:v(e),position:D(t)}},asCompletionParams:function(e,t,n){return{textDocument:v(e),position:D(t),context:{triggerKind:S(n.triggerKind),triggerCharacter:n.triggerCharacter}}},asSignatureHelpParams:function(e,t,n){return{textDocument:v(e),position:D(t),context:{isRetrigger:n.isRetrigger,triggerCharacter:n.triggerCharacter,triggerKind:b(n.triggerKind),activeSignatureHelp:(i=n.activeSignatureHelp,void 0===i?i:{signatures:(r=i.signatures,r.map(R)),activeSignature:i.activeSignature,activeParameter:i.activeParameter})}};var i,r},asWorkerPosition:D,asRange:_,asRanges:function(e){return e.map(_)},asPosition:T,asPositions:function(e,t){return s.map(e,T,t)},asPositionsSync:function(e){return e.map(T)},asLocation:P,asDiagnosticSeverity:k,asDiagnosticTag:x,asDiagnostic:I,asDiagnostics:O,asDiagnosticsSync:F,asCompletionItem:function(e,t=!1){let n,s;o.string(e.label)?n=e.label:(n=e.label.label,!t||void 0===e.label.detail&&void 0===e.label.description||(s={detail:e.label.detail,description:e.label.description}));const c={label:n};void 0!==s&&(c.labelDetails=s);const u=e instanceof a.default?e:void 0;var l,d;e.detail&&(c.detail=e.detail),e.documentation&&(u&&"$string"!==u.documentationFormat?c.documentation=function(e,t){switch(e){case"$string":return t;case r.MarkupKind.PlainText:return{kind:e,value:t};case r.MarkupKind.Markdown:return{kind:e,value:t.value};default:return`Unsupported Markup content received. Kind is: ${e}`}}(u.documentationFormat,e.documentation):c.documentation=e.documentation),e.filterText&&(c.filterText=e.filterText),function(e,t){let n,o,s=r.InsertTextFormat.PlainText;t.textEdit?(n=t.textEdit.newText,o=t.textEdit.range):t.insertText instanceof i.SnippetString?(s=r.InsertTextFormat.Snippet,n=t.insertText.value):n=t.insertText,t.range&&(o=t.range),e.insertTextFormat=s,t.fromEdit&&void 0!==n&&void 0!==o?e.textEdit=function(e,t){return m.is(t)?r.InsertReplaceEdit.create(e,_(t.inserting),_(t.replacing)):{newText:e,range:_(t)}}(n,o):e.insertText=n}(c,e),o.number(e.kind)&&(c.kind=(l=e.kind,void 0!==(d=u&&u.originalItemKind)?d:l+1)),e.sortText&&(c.sortText=e.sortText),e.additionalTextEdits&&(c.additionalTextEdits=q(e.additionalTextEdits)),e.commitCharacters&&(c.commitCharacters=e.commitCharacters.slice()),e.command&&(c.command=W(e.command)),!0!==e.preselect&&!1!==e.preselect||(c.preselect=e.preselect);const f=function(e){if(void 0===e)return e;const t=[];for(const n of e){const e=N(n);void 0!==e&&t.push(e)}return t}(e.tags);if(u){if(void 0!==u.data&&(c.data=u.data),!0===u.deprecated||!1===u.deprecated){if(!0===u.deprecated&&void 0!==f&&f.length>0){const e=f.indexOf(i.CompletionItemTag.Deprecated);-1!==e&&f.splice(e,1)}c.deprecated=u.deprecated}void 0!==u.insertTextMode&&(c.insertTextMode=u.insertTextMode)}return void 0!==f&&f.length>0&&(c.tags=f),void 0===c.insertTextMode&&!0===e.keepWhitespace&&(c.insertTextMode=r.InsertTextMode.adjustIndentation),c},asTextEdit:M,asSymbolKind:L,asSymbolTag:A,asSymbolTags:j,asReferenceParams:function(e,t,n){return{textDocument:v(e),position:D(t),context:{includeDeclaration:n.includeDeclaration}}},asCodeAction:async function(e,t){const n=r.CodeAction.create(e.title);if(e instanceof l.default&&void 0!==e.data&&(n.data=e.data),void 0!==e.kind&&(n.kind=$(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=await O(e.diagnostics,t)),void 0!==e.edit)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return void 0!==e.command&&(n.command=W(e.command)),void 0!==e.isPreferred&&(n.isPreferred=e.isPreferred),void 0!==e.disabled&&(n.disabled={reason:e.disabled.reason}),n},asCodeActionSync:function(e){const t=r.CodeAction.create(e.title);if(e instanceof l.default&&void 0!==e.data&&(t.data=e.data),void 0!==e.kind&&(t.kind=$(e.kind)),void 0!==e.diagnostics&&(t.diagnostics=F(e.diagnostics)),void 0!==e.edit)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return void 0!==e.command&&(t.command=W(e.command)),void 0!==e.isPreferred&&(t.isPreferred=e.isPreferred),void 0!==e.disabled&&(t.disabled={reason:e.disabled.reason}),t},asCodeActionContext:async function(e,t){if(null==e)return e;let n;return e.only&&o.string(e.only.value)&&(n=[e.only.value]),r.CodeActionContext.create(await O(e.diagnostics,t),n,H(e.triggerKind))},asCodeActionContextSync:function(e){if(null==e)return e;let t;return e.only&&o.string(e.only.value)&&(t=[e.only.value]),r.CodeActionContext.create(F(e.diagnostics),t,H(e.triggerKind))},asInlineValueContext:function(e){return r.InlineValueContext.create(e.frameId,_(e.stoppedLocation))},asCommand:W,asCodeLens:function(e){const t=r.CodeLens.create(_(e.range));return e.command&&(t.command=W(e.command)),e instanceof c.default&&e.data&&(t.data=e.data),t},asFormattingOptions:function(e,t){const n={tabSize:e.tabSize,insertSpaces:e.insertSpaces};return t.trimTrailingWhitespace&&(n.trimTrailingWhitespace=!0),t.trimFinalNewlines&&(n.trimFinalNewlines=!0),t.insertFinalNewline&&(n.insertFinalNewline=!0),n},asDocumentSymbolParams:function(e){return{textDocument:v(e)}},asCodeLensParams:function(e){return{textDocument:v(e)}},asDocumentLink:function(e){const t=r.DocumentLink.create(_(e.range));e.target&&(t.target=n(e.target)),void 0!==e.tooltip&&(t.tooltip=e.tooltip);const i=e instanceof u.default?e:void 0;return i&&i.data&&(t.data=i.data),t},asDocumentLinkParams:function(e){return{textDocument:v(e)}},asCallHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:_(e.range),selectionRange:_(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=j(e.tags)),e instanceof f.default&&void 0!==e.data&&(t.data=e.data),t},asTypeHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:_(e.range),selectionRange:_(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=j(e.tags)),e instanceof h.default&&void 0!==e.data&&(t.data=e.data),t},asInlayHint:function(e){const t="string"==typeof e.label?e.label:e.label.map(V),n=r.InlayHint.create(T(e.position),t);return void 0!==e.kind&&(n.kind=e.kind),void 0!==e.textEdits&&(n.textEdits=q(e.textEdits)),void 0!==e.tooltip&&(n.tooltip=B(e.tooltip)),void 0!==e.paddingLeft&&(n.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(n.paddingRight=e.paddingRight),e instanceof g.default&&void 0!==e.data&&(n.data=e.data),n},asWorkspaceSymbol:function(e){const n=e instanceof p.default?{name:e.name,kind:L(e.kind),location:e.hasRange?P(e.location):{uri:t(e.location.uri)},data:e.data}:{name:e.name,kind:L(e.kind),location:P(e.location)};return void 0!==e.tags&&(n.tags=j(e.tags)),""!==e.containerName&&(n.containerName=e.containerName),n},asInlineCompletionParams:function(e,t,n){return{textDocument:v(e),position:T(t),context:U(n)}},asInlineCompletionContext:U}}},3760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeLensFeature=void 0;const i=n(1398),r=n(3286),o=n(8820),s=n(9810);class a extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.CodeLensRequest.type)}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,s.ensure)((0,s.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.CodeLensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeCodeLensEmitter.fire()}));const n=this.getRegistrationOptions(t,e.codeLensProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeCodeLenses:n.event,provideCodeLenses:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.CodeLensRequest.type,n.code2ProtocolConverter.asCodeLensParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCodeLenses(e,t)),(e=>n.handleFailedRequest(r.CodeLensRequest.type,t,e,null))),o=n.middleware;return o.provideCodeLenses?o.provideCodeLenses(e,t,i):i(e,t)},resolveCodeLens:e.resolveProvider?(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.CodeLensResolveRequest.type,n.code2ProtocolConverter.asCodeLens(e),t).then((i=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeLens(i)),(i=>n.handleFailedRequest(r.CodeLensResolveRequest.type,t,i,e))),o=n.middleware;return o.resolveCodeLens?o.resolveCodeLens(e,t,i):i(e,t)}:void 0};return[i.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),o),{provider:o,onDidChangeCodeLensEmitter:n}]}}t.CodeLensFeature=a},7327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorProviderFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentColorRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.colorProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideColorPresentations:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={color:e,textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(t.document),range:i.code2ProtocolConverter.asRange(t.range)};return i.sendRequest(r.ColorPresentationRequest.type,o,n).then((e=>n.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(e,n)),(e=>i.handleFailedRequest(r.ColorPresentationRequest.type,n,e,null)))},s=i.middleware;return s.provideColorPresentations?s.provideColorPresentations(e,t,n,o):o(e,t,n)},provideDocumentColors:(e,t)=>{const n=this._client,i=(e,t)=>{const i={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(r.DocumentColorRequest.type,i,t).then((e=>t.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(e,t)),(e=>n.handleFailedRequest(r.DocumentColorRequest.type,t,e,null)))},o=n.middleware;return o.provideDocumentColors?o.provideDocumentColors(e,t,i):i(e,t)}};return[i.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.ColorProviderFeature=s},3507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompletionItemFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820),a=[r.CompletionItemKind.Text,r.CompletionItemKind.Method,r.CompletionItemKind.Function,r.CompletionItemKind.Constructor,r.CompletionItemKind.Field,r.CompletionItemKind.Variable,r.CompletionItemKind.Class,r.CompletionItemKind.Interface,r.CompletionItemKind.Module,r.CompletionItemKind.Property,r.CompletionItemKind.Unit,r.CompletionItemKind.Value,r.CompletionItemKind.Enum,r.CompletionItemKind.Keyword,r.CompletionItemKind.Snippet,r.CompletionItemKind.Color,r.CompletionItemKind.File,r.CompletionItemKind.Reference,r.CompletionItemKind.Folder,r.CompletionItemKind.EnumMember,r.CompletionItemKind.Constant,r.CompletionItemKind.Struct,r.CompletionItemKind.Event,r.CompletionItemKind.Operator,r.CompletionItemKind.TypeParameter];class c extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"completion");t.dynamicRegistration=!0,t.contextSupport=!0,t.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[r.MarkupKind.Markdown,r.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[r.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[r.InsertTextMode.asIs,r.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},t.insertTextMode=r.InsertTextMode.adjustIndentation,t.completionItemKind={valueSet:a},t.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,t){const n=this.getRegistrationOptions(t,e.completionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e,t){this.labelDetailsSupport.set(t,!!e.completionItem?.labelDetailsSupport);const n=e.triggerCharacters??[],o=e.allCommitCharacters,s=e.documentSelector,a={provideCompletionItems:(e,t,n,i)=>{const s=this._client,a=this._client.middleware,c=(e,t,n,i)=>s.sendRequest(r.CompletionRequest.type,s.code2ProtocolConverter.asCompletionParams(e,t,n),i).then((e=>i.isCancellationRequested?null:s.protocol2CodeConverter.asCompletionResult(e,o,i)),(e=>s.handleFailedRequest(r.CompletionRequest.type,i,e,null)));return a.provideCompletionItem?a.provideCompletionItem(e,t,i,n,c):c(e,t,i,n)},resolveCompletionItem:e.resolveProvider?(e,n)=>{const i=this._client,o=this._client.middleware,s=(e,n)=>i.sendRequest(r.CompletionResolveRequest.type,i.code2ProtocolConverter.asCompletionItem(e,!!this.labelDetailsSupport.get(t)),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asCompletionItem(e)),(t=>i.handleFailedRequest(r.CompletionResolveRequest.type,n,t,e)));return o.resolveCompletionItem?o.resolveCompletionItem(e,n,s):s(e,n)}:void 0};return[i.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),a,...n),a]}}t.CompletionItemFeature=c},4267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyncConfigurationFeature=t.toJSONObject=t.ConfigurationFeature=void 0;const i=n(1398),r=n(3286),o=n(1027),s=n(8820),a=n(9810);function c(e){if(e){if(Array.isArray(e))return e.map(c);if("object"==typeof e){const t=Object.create(null);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=c(e[n]));return t}}return e}t.ConfigurationFeature=class{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){const e=this._client;e.onRequest(r.ConfigurationRequest.type,((t,n)=>{const i=e=>{const t=[];for(const n of e.items){const e=void 0!==n.scopeUri&&null!==n.scopeUri?this._client.protocol2CodeConverter.asUri(n.scopeUri):void 0;t.push(this.getConfiguration(e,null!==n.section?n.section:void 0))}return t},r=e.middleware.workspace;return r&&r.configuration?r.configuration(t,n,i):i(t)}))}getConfiguration(e,t){let n=null;if(t){const r=t.lastIndexOf(".");if(-1===r)n=c(i.workspace.getConfiguration(void 0,e).get(t));else{const o=i.workspace.getConfiguration(t.substr(0,r),e);o&&(n=c(o.get(t.substr(r+1))))}}else{const t=i.workspace.getConfiguration(void 0,e);n={};for(const e of Object.keys(t))t.has(e)&&(n[e]=c(t.get(e)))}return void 0===n&&(n=null),n}clear(){}},t.toJSONObject=c,t.SyncConfigurationFeature=class{constructor(e){this._client=e,this.isCleared=!1,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return r.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){this.isCleared=!1;const e=this._client.clientOptions.synchronize?.configurationSection;void 0!==e&&this.register({id:s.generateUuid(),registerOptions:{section:e}})}register(e){const t=i.workspace.onDidChangeConfiguration((t=>{this.onDidChangeConfiguration(e.registerOptions.section,t)}));this._listeners.set(e.id,t),void 0!==e.registerOptions.section&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){const t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,t){if(this.isCleared)return;let n;if(n=o.string(e)?[e]:e,void 0!==n&&void 0!==t&&!n.some((e=>t.affectsConfiguration(e))))return;const i=async e=>void 0===e?this._client.sendNotification(r.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(r.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(e)}),s=this._client.middleware.workspace?.didChangeConfiguration;(s?s(n,i):i(n)).catch((e=>{this._client.error(`Sending notification ${r.DidChangeConfigurationNotification.type.method} failed`,e)}))}extractSettingsInformation(e){function t(e,t){let n=e;for(let e=0;e=0?i.workspace.getConfiguration(s.substr(0,a),n).get(s.substr(a+1)):i.workspace.getConfiguration(void 0,n).get(s),u){const n=e[o].split(".");t(r,n)[n[n.length-1]]=c(u)}}return r}}},7921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DeclarationRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"declaration");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.declarationProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDeclaration:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DeclarationRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDeclarationResult(e,n)),(e=>i.handleFailedRequest(r.DeclarationRequest.type,n,e,null))),s=i.middleware;return s.provideDeclaration?s.provideDeclaration(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DeclarationFeature=s},3876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DefinitionRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"definition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.definitionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDefinition:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DefinitionRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>i.handleFailedRequest(r.DefinitionRequest.type,n,e,null))),s=i.middleware;return s.provideDefinition?s.provideDefinition(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DefinitionFeature=a},7034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=t.DiagnosticPullMode=t.vsdiag=void 0;const i=n(9624),r=n(1398),o=n(3286),s=n(8820),a=n(9810),c=n(4292);function u(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var l,d,f,h,p;!function(e){let t;!function(e){e.full="full",e.unChanged="unChanged"}(t=e.DocumentDiagnosticReportKind||(e.DocumentDiagnosticReportKind={}))}(l||(t.vsdiag=l={})),function(e){e.onType="onType",e.onSave="onSave",e.onFocus="onFocus"}(d||(t.DiagnosticPullMode=d={})),function(e){e.active="open",e.reschedule="reschedule",e.outDated="drop"}(f||(f={}));class g{constructor(){this.open=new Set,this._onOpen=new r.EventEmitter,this._onClose=new r.EventEmitter,g.fillTabResources(this.open);void 0!==r.window.tabGroups.onDidChangeTabs?this.disposable=r.window.tabGroups.onDidChangeTabs((e=>{if(0===e.closed.length&&0===e.opened.length)return;const t=this.open,n=new Set;g.fillTabResources(n);const i=new Set,o=new Set(n);for(const e of t.values())n.has(e)?o.delete(e):i.add(e);if(this.open=n,i.size>0){const e=new Set;for(const t of i)e.add(r.Uri.parse(t));this._onClose.fire(e)}if(o.size>0){const e=new Set;for(const t of o)e.add(r.Uri.parse(t));this._onOpen.fire(e)}})):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){return e instanceof r.Uri?r.window.activeTextEditor?.document.uri===e:r.window.activeTextEditor?.document===e}isVisible(e){const t=e instanceof r.Uri?e:e.uri;return t.scheme===c.NotebookDocumentSyncFeature.CellScheme?r.workspace.notebookDocuments.some((e=>!!this.open.has(e.uri.toString())&&void 0!==e.getCells().find((e=>e.document.uri.toString()===t.toString())))):this.open.has(t.toString())}getTabResources(){const e=new Set;return g.fillTabResources(new Set,e),e}static fillTabResources(e,t){const n=e??new Set;for(const e of r.window.tabGroups.all)for(const i of e.tabs){const e=i.input;let o;e instanceof r.TabInputText?o=e.uri:e instanceof r.TabInputTextDiff?o=e.modified:(e instanceof r.TabInputCustom||e instanceof r.TabInputNotebook)&&(o=e.uri),void 0===o||n.has(o.toString())||(n.add(o.toString()),void 0!==t&&t.add(o))}}}!function(e){e[e.document=1]="document",e[e.workspace=2]="workspace"}(h||(h={})),function(e){e.asKey=function(e){return e instanceof r.Uri?e.toString():e.uri.toString()}}(p||(p={}));class m{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,t,n){const i=e===h.document?this.documentPullStates:this.workspacePullStates,[o,s,a]=t instanceof r.Uri?[t.toString(),t,n]:[t.uri.toString(),t.uri,t.version];let c=i.get(o);return void 0===c&&(c={document:s,pulledVersion:a,resultId:void 0},i.set(o,c)),c}update(e,t,n,i){const o=e===h.document?this.documentPullStates:this.workspacePullStates,[s,a,c,u]=t instanceof r.Uri?[t.toString(),t,n,i]:[t.uri.toString(),t.uri,t.version,n];let l=o.get(s);void 0===l?(l={document:a,pulledVersion:c,resultId:u},o.set(s,l)):(l.pulledVersion=c,l.resultId=u)}unTrack(e,t){const n=p.asKey(t);(e===h.document?this.documentPullStates:this.workspacePullStates).delete(n)}tracks(e,t){const n=p.asKey(t);return(e===h.document?this.documentPullStates:this.workspacePullStates).has(n)}getResultId(e,t){const n=p.asKey(t),i=e===h.document?this.documentPullStates:this.workspacePullStates;return i.get(n)?.resultId}getAllResultIds(){const e=[];for(let[t,n]of this.workspacePullStates)this.documentPullStates.has(t)&&(n=this.documentPullStates.get(t)),void 0!==n.resultId&&e.push({uri:t,value:n.resultId});return e}}class v{constructor(e,t,n){this.client=e,this.tabs=t,this.options=n,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new r.EventEmitter,this.provider=this.createProvider(),this.diagnostics=r.languages.createDiagnosticCollection(n.identifier),this.openRequests=new Map,this.documentStates=new m,this.workspaceErrorCounter=0}knows(e,t){const n=t instanceof r.Uri?t:t.uri;return this.documentStates.tracks(e,t)||this.openRequests.has(n.toString())}forget(e,t){this.documentStates.unTrack(e,t)}pull(e,t){if(this.isDisposed)return;const n=e instanceof r.Uri?e:e.uri;this.pullAsync(e).then((()=>{t&&t()}),(e=>{this.client.error(`Document pull failed for text document ${n.toString()}`,e,!1)}))}async pullAsync(e,t){if(this.isDisposed)return;const n=e instanceof r.Uri,i=n?e:e.uri,s=i.toString();t=n?t:e.version;const c=this.openRequests.get(s),u=n?this.documentStates.track(h.document,e,t):this.documentStates.track(h.document,e);if(void 0===c){const n=new r.CancellationTokenSource;let c,d;this.openRequests.set(s,{state:f.active,document:e,version:t,tokenSource:n});try{c=await this.provider.provideDiagnostics(e,u.resultId,n.token)??{kind:l.DocumentDiagnosticReportKind.full,items:[]}}catch(t){if(t instanceof a.LSPCancellationError&&o.DiagnosticServerCancellationData.is(t.data)&&!1===t.data.retriggerRequest&&(d={state:f.outDated,document:e}),!(void 0===d&&t instanceof r.CancellationError))throw t;d={state:f.reschedule,document:e}}if(d=d??this.openRequests.get(s),void 0===d)return this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),void this.diagnostics.delete(i);if(this.openRequests.delete(s),!this.tabs.isVisible(e))return void this.documentStates.unTrack(h.document,e);if(d.state===f.outDated)return;void 0!==c&&(c.kind===l.DocumentDiagnosticReportKind.full&&this.diagnostics.set(i,c.items),u.pulledVersion=t,u.resultId=c.resultId),d.state===f.reschedule&&this.pull(e)}else c.state===f.active?(c.tokenSource.cancel(),this.openRequests.set(s,{state:f.reschedule,document:c.document})):c.state===f.outDated&&this.openRequests.set(s,{state:f.reschedule,document:c.document})}forgetDocument(e){const t=e instanceof r.Uri?e:e.uri,n=t.toString(),i=this.openRequests.get(n);this.options.workspaceDiagnostics?void 0!==i?this.openRequests.set(n,{state:f.reschedule,document:e}):this.pull(e,(()=>{this.forget(h.document,e)})):(void 0!==i&&(i.state===f.active&&i.tokenSource.cancel(),this.openRequests.set(n,{state:f.outDated,document:e})),this.diagnostics.delete(t),this.forget(h.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then((()=>{this.workspaceTimeout=(0,o.RAL)().timer.setTimeout((()=>{this.pullWorkspace()}),2e3)}),(e=>{e instanceof a.LSPCancellationError||o.DiagnosticServerCancellationData.is(e.data)||(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,o.RAL)().timer.setTimeout((()=>{this.pullWorkspace()}),2e3))}))}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;void 0!==this.workspaceCancellation&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new r.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map((e=>({uri:this.client.protocol2CodeConverter.asUri(e.uri),value:e.value})));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,(e=>{if(e&&!this.isDisposed)for(const t of e.items)t.kind===l.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(h.document,t.uri)||this.diagnostics.set(t.uri,t.items)),this.documentStates.update(h.workspace,t.uri,t.version??void 0,t.resultId)}))}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(e,t,n)=>{const i=(e,t,n)=>{const i={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(e instanceof r.Uri?e:e.uri)},previousResultId:t};return!0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(o.DocumentDiagnosticRequest.type,i,n).then((async e=>null==e||this.isDisposed||n.isCancellationRequested?{kind:l.DocumentDiagnosticReportKind.full,items:[]}:e.kind===o.DocumentDiagnosticReportKind.Full?{kind:l.DocumentDiagnosticReportKind.full,resultId:e.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,n)}:{kind:l.DocumentDiagnosticReportKind.unChanged,resultId:e.resultId}),(e=>this.client.handleFailedRequest(o.DocumentDiagnosticRequest.type,n,e,{kind:l.DocumentDiagnosticReportKind.full,items:[]},!0,!0))):{kind:l.DocumentDiagnosticReportKind.full,items:[]}},s=this.client.middleware;return s.provideDiagnostics?s.provideDiagnostics(e,t,n,i):i(e,t,n)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(e,t,n)=>{const i=async e=>e.kind===o.DocumentDiagnosticReportKind.Full?{kind:l.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,t)}:{kind:l.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version},r=e=>{const t=[];for(const n of e)t.push({uri:this.client.code2ProtocolConverter.asUri(n.uri),value:n.value});return t},a=(e,t)=>{const a=(0,s.generateUuid)(),c=this.client.onProgress(o.WorkspaceDiagnosticRequest.partialResult,a,(async e=>{if(null==e)return void n(null);const t={items:[]};for(const n of e.items)try{t.items.push(await i(n))}catch(e){this.client.error("Converting workspace diagnostics failed.",e)}n(t)})),u={identifier:this.options.identifier,previousResultIds:r(e),partialResultToken:a};return!0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(o.WorkspaceDiagnosticRequest.type,u,t).then((async e=>{if(t.isCancellationRequested)return{items:[]};const r={items:[]};for(const t of e.items)r.items.push(await i(t));return c.dispose(),n(r),{items:[]}}),(e=>(c.dispose(),this.client.handleFailedRequest(o.DocumentDiagnosticRequest.type,t,e,{items:[]})))):{items:[]}},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(e,t,n,a):a(e,t)}),e}dispose(){this.isDisposed=!0,this.workspaceCancellation?.cancel(),this.workspaceTimeout?.dispose();for(const[e,t]of this.openRequests)t.state===f.active&&t.tokenSource.cancel(),this.openRequests.set(e,{state:f.outDated,document:t.document});this.diagnostics.dispose()}}class y{constructor(e,t){this.client=e,this.diagnosticRequestor=t,this.documents=new o.LinkedMap,this.isDisposed=!1}add(e){if(!0===this.isDisposed)return;const t=p.asKey(e);this.documents.has(t)||(this.documents.set(t,e,o.Touch.Last),this.lastDocumentToPull=e)}remove(e){const t=p.asKey(e);if(this.documents.delete(t),0!==this.documents.size){if(t===this.lastDocumentToPullKey()){const e=this.documents.before(t);void 0===e?this.stop():this.lastDocumentToPull=e}}else this.stop()}trigger(){this.lastDocumentToPull=this.documents.last,this.runLoop()}runLoop(){!0!==this.isDisposed&&(0!==this.documents.size?void 0!==this.lastDocumentToPull&&void 0===this.timeoutHandle&&(this.timeoutHandle=(0,o.RAL)().timer.setTimeout((()=>{const e=this.documents.first;if(void 0===e)return;const t=p.asKey(e);this.diagnosticRequestor.pullAsync(e).catch((e=>{this.client.error(`Document pull failed for text document ${t}`,e,!1)})).finally((()=>{this.timeoutHandle=void 0,this.documents.set(t,e,o.Touch.Last),t!==this.lastDocumentToPullKey()&&this.runLoop()}))}),500)):this.stop())}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear(),this.lastDocumentToPull=void 0}stop(){this.timeoutHandle?.dispose(),this.timeoutHandle=void 0,this.lastDocumentToPull=void 0}lastDocumentToPullKey(){return void 0!==this.lastDocumentToPull?p.asKey(this.lastDocumentToPull):void 0}}class C{constructor(e,t,n){const s=Object.assign({onChange:!1,onSave:!1,onFocus:!1},e.clientOptions.diagnosticPullOptions),a=e.protocol2CodeConverter.asDocumentSelector(n.documentSelector),c=[],u=e=>e instanceof r.Uri?(e=>{const t=n.documentSelector;if(void 0!==s.match)return s.match(t,e);for(const n of t)if(o.TextDocumentFilter.is(n)){if("string"==typeof n)return!1;if(void 0!==n.language&&"*"!==n.language)return!1;if(void 0!==n.scheme&&"*"!==n.scheme&&n.scheme!==e.scheme)return!1;if(void 0!==n.pattern){const t=new i.Minimatch(n.pattern,{noext:!0});if(!t.makeRe())return!1;if(!t.match(e.fsPath))return!1}}return!0})(e):r.languages.match(a,e)>0&&t.isVisible(e),l=e=>r.languages.match(a,e.document)>0&&t.isVisible(e.notebook.uri),f=e=>e instanceof r.Uri?this.activeTextDocument?.uri.toString()===e.toString():this.activeTextDocument===e;this.diagnosticRequestor=new v(e,t,n),this.backgroundScheduler=new y(e,this.diagnosticRequestor);const p=e=>{u(e)&&n.interFileDependencies&&!f(e)&&!1!==s.onChange&&this.backgroundScheduler.add(e)},g=(e,t)=>(void 0===s.filter||!s.filter(e,t))&&this.diagnosticRequestor.knows(h.document,e);this.activeTextDocument=r.window.activeTextEditor?.document,c.push(r.window.onDidChangeActiveTextEditor((e=>{const t=this.activeTextDocument;this.activeTextDocument=e?.document,void 0!==t&&p(t),void 0!==this.activeTextDocument&&(this.backgroundScheduler.remove(this.activeTextDocument),!0===s.onFocus&&u(this.activeTextDocument)&&g(this.activeTextDocument,d.onFocus)&&this.diagnosticRequestor.pull(this.activeTextDocument))})));const m=e.getFeature(o.DidOpenTextDocumentNotification.method);c.push(m.onNotificationSent((e=>{const t=e.textDocument;this.diagnosticRequestor.knows(h.document,t)||u(t)&&this.diagnosticRequestor.pull(t,(()=>{p(t)}))})));const C=e.getFeature(o.NotebookDocumentSyncRegistrationType.method);c.push(C.onOpenNotificationSent((e=>{for(const t of e.getCells())l(t)&&this.diagnosticRequestor.pull(t.document,(()=>{p(t.document)}))}))),c.push(t.onOpen((e=>{for(const t of e){if(this.diagnosticRequestor.knows(h.document,t))continue;const e=t.toString();let n;for(const t of r.workspace.textDocuments)if(e===t.uri.toString()){n=t;break}void 0!==n&&u(n)&&this.diagnosticRequestor.pull(n,(()=>{p(n)}))}})));const S=new Set;for(const e of r.workspace.textDocuments)u(e)&&(this.diagnosticRequestor.pull(e,(()=>{p(e)})),S.add(e.uri.toString()));for(const e of r.workspace.notebookDocuments)for(const t of e.getCells())l(t)&&(this.diagnosticRequestor.pull(t.document,(()=>{p(t.document)})),S.add(t.document.uri.toString()));if(!0===s.onTabs)for(const e of t.getTabResources())!S.has(e.toString())&&u(e)&&this.diagnosticRequestor.pull(e,(()=>{p(e)}));if(!0===s.onChange){const t=e.getFeature(o.DidChangeTextDocumentNotification.method);c.push(t.onNotificationSent((async e=>{const t=e.textDocument;g(t,d.onType)&&this.diagnosticRequestor.pull(t,(()=>{this.backgroundScheduler.trigger()}))}))),c.push(C.onChangeNotificationSent((async e=>{const t=(e.cells?.textContent||[]).map((t=>e.notebook.getCells().find((e=>e.document.uri.toString()===t.document.uri.toString()))));for(const e of t)e&&l(e)&&this.diagnosticRequestor.pull(e.document,(()=>{this.backgroundScheduler.trigger()}));const n=e.cells?.structure?.didClose||[];for(const e of n)this.diagnosticRequestor.forgetDocument(e.document);const i=e.cells?.structure?.didOpen||[];for(const e of i)l(e)&&this.diagnosticRequestor.pull(e.document,(()=>{this.backgroundScheduler.trigger()}))})))}if(!0===s.onSave){const t=e.getFeature(o.DidSaveTextDocumentNotification.method);c.push(t.onNotificationSent((e=>{const t=e.textDocument;g(t,d.onSave)&&this.diagnosticRequestor.pull(e.textDocument)}))),c.push(C.onSaveNotificationSent((e=>{for(const t of e.getCells())l(t)&&this.diagnosticRequestor.pull(t.document)})))}const b=e.getFeature(o.DidCloseTextDocumentNotification.method);c.push(b.onNotificationSent((e=>{this.cleanUpDocument(e.textDocument)}))),c.push(C.onCloseNotificationSent((e=>{for(const t of e.getCells())this.cleanUpDocument(t.document)}))),t.onClose((e=>{for(const t of e)this.cleanUpDocument(t)})),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event((()=>{for(const e of r.workspace.textDocuments)u(e)&&this.diagnosticRequestor.pull(e)})),!0===n.workspaceDiagnostics&&"da348dc5-c30a-4515-9d98-31ff3be38d14"!==n.identifier&&this.diagnosticRequestor.pullWorkspace(),this.disposable=r.Disposable.from(...c,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}forget(e){this.cleanUpDocument(e)}cleanUpDocument(e){this.backgroundScheduler.remove(e),this.diagnosticRequestor.knows(h.document,e)&&this.diagnosticRequestor.forgetDocument(e)}}class S extends a.TextDocumentLanguageFeature{constructor(e){super(e,o.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){const t=u(u(e,"textDocument"),"diagnostic");t.relatedInformation=!0,t.tagSupport={valueSet:[o.DiagnosticTag.Unnecessary,o.DiagnosticTag.Deprecated]},t.codeDescriptionSupport=!0,t.dataSupport=!0,t.dynamicRegistration=!0,t.relatedDocumentSupport=!1,u(u(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,t){this._client.onRequest(o.DiagnosticRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeDiagnosticsEmitter.fire()}));const[n,i]=this.getRegistration(t,e.diagnosticProvider);n&&i&&this.register({id:n,registerOptions:i})}clear(){void 0!==this.tabs&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}refresh(){for(const e of this.getAllProviders())e.onDidChangeDiagnosticsEmitter.fire()}registerLanguageProvider(e){void 0===this.tabs&&(this.tabs=new g);const t=new C(this._client,this.tabs,e);return[t.disposable,t]}}t.DiagnosticFeature=S},986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentHighlightFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentHighlightProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentHighlights:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DocumentHighlightRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDocumentHighlights(e,n)),(e=>i.handleFailedRequest(r.DocumentHighlightRequest.type,n,e,null))),s=i.middleware;return s.provideDocumentHighlights?s.provideDocumentHighlights(e,t,n,o):o(e,t,n)}};return[i.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentHighlightFeature=a},708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentLinkRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentLinkProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentLinks:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.DocumentLinkRequest.type,n.code2ProtocolConverter.asDocumentLinkParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asDocumentLinks(e,t)),(e=>n.handleFailedRequest(r.DocumentLinkRequest.type,t,e,null))),o=n.middleware;return o.provideDocumentLinks?o.provideDocumentLinks(e,t,i):i(e,t)},resolveDocumentLink:e.resolveProvider?(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.DocumentLinkResolveRequest.type,n.code2ProtocolConverter.asDocumentLink(e),t).then((i=>t.isCancellationRequested?e:n.protocol2CodeConverter.asDocumentLink(i)),(i=>n.handleFailedRequest(r.DocumentLinkResolveRequest.type,t,i,e))),o=n.middleware;return o.resolveDocumentLink?o.resolveDocumentLink(e,t,i):i(e,t)}:void 0};return[i.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentLinkFeature=a},7984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);t.SupportedSymbolKinds=[r.SymbolKind.File,r.SymbolKind.Module,r.SymbolKind.Namespace,r.SymbolKind.Package,r.SymbolKind.Class,r.SymbolKind.Method,r.SymbolKind.Property,r.SymbolKind.Field,r.SymbolKind.Constructor,r.SymbolKind.Enum,r.SymbolKind.Interface,r.SymbolKind.Function,r.SymbolKind.Variable,r.SymbolKind.Constant,r.SymbolKind.String,r.SymbolKind.Number,r.SymbolKind.Boolean,r.SymbolKind.Array,r.SymbolKind.Object,r.SymbolKind.Key,r.SymbolKind.Null,r.SymbolKind.EnumMember,r.SymbolKind.Struct,r.SymbolKind.Event,r.SymbolKind.Operator,r.SymbolKind.TypeParameter],t.SupportedSymbolTags=[r.SymbolTag.Deprecated];class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentSymbolRequest.type)}fillClientCapabilities(e){const n=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"documentSymbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:t.SupportedSymbolKinds},n.hierarchicalDocumentSymbolSupport=!0,n.tagSupport={valueSet:t.SupportedSymbolTags},n.labelSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentSymbolProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentSymbols:(e,t)=>{const n=this._client,i=async(e,t)=>{try{const i=await n.sendRequest(r.DocumentSymbolRequest.type,n.code2ProtocolConverter.asDocumentSymbolParams(e),t);if(t.isCancellationRequested||null==i)return null;if(0===i.length)return[];{const e=i[0];return r.DocumentSymbol.is(e)?await n.protocol2CodeConverter.asDocumentSymbols(i,t):await n.protocol2CodeConverter.asSymbolInformations(i,t)}}catch(e){return n.handleFailedRequest(r.DocumentSymbolRequest.type,t,e,null)}},o=n.middleware;return o.provideDocumentSymbols?o.provideDocumentSymbols(e,t,i):i(e,t)}},o=void 0!==e.label?{label:e.label}:void 0;return[i.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,o),n]}}t.DocumentSymbolFeature=a},2837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteCommandFeature=void 0;const i=n(1398),r=n(3286),o=n(8820),s=n(9810);t.ExecuteCommandFeature=class{constructor(e){this._client=e,this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return r.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:o.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const t=this._client,n=t.middleware,o=(e,n)=>{const i={command:e,arguments:n};return t.sendRequest(r.ExecuteCommandRequest.type,i).then(void 0,(e=>t.handleFailedRequest(r.ExecuteCommandRequest.type,void 0,e,void 0)))};if(e.registerOptions.commands){const t=[];for(const r of e.registerOptions.commands)t.push(i.commands.registerCommand(r,((...e)=>n.executeCommand?n.executeCommand(r,e,o):o(r,e))));this._commands.set(e.id,t)}}unregister(e){const t=this._commands.get(e);t&&(this._commands.delete(e),t.forEach((e=>e.dispose())))}clear(){this._commands.forEach((e=>{e.forEach((e=>e.dispose()))})),this._commands.clear()}}},9810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFeature=t.TextDocumentLanguageFeature=t.TextDocumentEventFeature=t.DynamicDocumentFeature=t.DynamicFeature=t.StaticFeature=t.ensure=t.LSPCancellationError=void 0;const i=n(1398),r=n(3286),o=n(1027),s=n(8820);class a extends i.CancellationError{constructor(e){super(),this.data=e}}var c,u;t.LSPCancellationError=a,t.ensure=function(e,t){return void 0===e[t]&&(e[t]={}),e[t]},function(e){e.is=function(e){const t=e;return null!=t&&o.func(t.fillClientCapabilities)&&o.func(t.initialize)&&o.func(t.getState)&&o.func(t.clear)&&(void 0===t.fillInitializeParams||o.func(t.fillInitializeParams))}}(c||(t.StaticFeature=c={})),function(e){e.is=function(e){const t=e;return null!=t&&o.func(t.fillClientCapabilities)&&o.func(t.initialize)&&o.func(t.getState)&&o.func(t.clear)&&(void 0===t.fillInitializeParams||o.func(t.fillInitializeParams))&&o.func(t.register)&&o.func(t.unregister)&&void 0!==t.registrationType}}(u||(t.DynamicFeature=u={}));class l{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let t=0;for(const n of e){t++;for(const e of i.workspace.textDocuments)if(i.languages.match(n,e)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const n=t>0;return{kind:"document",id:this.registrationType.method,registrations:n,matches:!1}}}t.DynamicDocumentFeature=l,t.TextDocumentEventFeature=class extends l{static textDocumentFilter(e,t){for(const n of e)if(i.languages.match(n,t)>0)return!0;return!1}constructor(e,t,n,r,o,s,a){super(e),this._event=t,this._type=n,this._middleware=r,this._createParams=o,this._textDocument=s,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new i.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event((e=>{this.callback(e).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed.`,e)}))}))),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const t=async e=>{const t=this._createParams(e);await this._client.sendNotification(this._type,t),this.notificationSent(this.getTextDocument(e),this._type,t)};if(this.matches(e)){const n=this._middleware();return n?n(e,(e=>t(e))):t(e)}}matches(e){return!this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))&&(!this._selectorFilter||this._selectorFilter(this._selectors.values(),e))}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,t,n){this._onNotificationSent.fire({textDocument:e,type:t,params:n})}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._onNotificationSent=new i.EventEmitter,this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const t of this._selectors.values())if(i.languages.match(t,e)>0)return{send:e=>this.callback(e)}}},t.TextDocumentLanguageFeature=class extends l{constructor(e,t){super(e),this._registrationType=t,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const t=e.data.registerOptions.documentSelector;null!==t&&(yield this._client.protocol2CodeConverter.asDocumentSelector(t))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;const t=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){const t=this._registrations.get(e);void 0!==t&&(this._registrations.delete(e),t.disposable.dispose())}clear(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getRegistration(e,t){if(!t)return[void 0,void 0];if(r.TextDocumentRegistrationOptions.is(t)){const n=r.StaticRegistrationOptions.hasId(t)?t.id:s.generateUuid(),i=t.documentSelector??e;if(i)return[n,Object.assign({},t,{documentSelector:i})]}else if(o.boolean(t)&&!0===t||r.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];const n=o.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[s.generateUuid(),n]}return[void 0,void 0]}getRegistrationOptions(e,t){if(e&&t)return o.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(const t of this._registrations.values()){const n=t.data.registerOptions.documentSelector;if(null!==n&&i.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(n),e)>0)return t.provider}}getAllProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}},t.WorkspaceFeature=class{constructor(e,t){this._client=e,this._registrationType=t,this._registrations=new Map}getState(){const e=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){const t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){const t=this._registrations.get(e);void 0!==t&&(this._registrations.delete(e),t.disposable.dispose())}clear(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}}},4201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesFeature=t.WillRenameFilesFeature=t.WillCreateFilesFeature=t.DidDeleteFilesFeature=t.DidRenameFilesFeature=t.DidCreateFilesFeature=void 0;const i=n(1398),r=n(9624),o=n(3286),s=n(8820);function a(e,t){return void 0===e[t]&&(e[t]={}),e[t]}function c(e,t,n){e[t]=n}class u{constructor(e,t,n,i,r){this._client=e,this._event=t,this._registrationType=n,this._clientCapability=i,this._serverCapability=r,this._filters=new Map}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){const t=a(a(e,"workspace"),"fileOperations");c(t,"dynamicRegistration",!0),c(t,this._clientCapability,!0)}initialize(e){const t=e.workspace?.fileOperations,n=void 0!==t?t[this._serverCapability]:void 0;if(void 0!==n?.filters)try{this.register({id:s.generateUuid(),registerOptions:{filters:n.filters}})}catch(e){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${e}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const t=e.registerOptions.filters.map((e=>{const t=new r.Minimatch(e.pattern.glob,u.asMinimatchOptions(e.pattern.options));if(!t.makeRe())throw new Error(`Invalid pattern ${e.pattern.glob}!`);return{scheme:e.scheme,matcher:t,kind:e.pattern.matches}}));this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),0===this._filters.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getFileType(e){return u.getFileType(e)}async filter(e,t){const n=await Promise.all(e.files.map((async e=>{const n=t(e),r=n.fsPath.replace(/\\/g,"/");for(const e of this._filters.values())for(const t of e)if(void 0===t.scheme||t.scheme===n.scheme)if(t.matcher.match(r)){if(void 0===t.kind)return!0;const e=await this.getFileType(n);if(void 0===e)return this._client.error(`Failed to determine file type for ${n.toString()}.`),!0;if(e===i.FileType.File&&t.kind===o.FileOperationPatternKind.file||e===i.FileType.Directory&&t.kind===o.FileOperationPatternKind.folder)return!0}else if(t.kind===o.FileOperationPatternKind.folder&&await u.getFileType(n)===i.FileType.Directory&&t.matcher.match(`${r}/`))return!0;return!1}))),r=e.files.filter(((e,t)=>n[t]));return{...e,files:r}}static async getFileType(e){try{return(await i.workspace.fs.stat(e)).type}catch(e){return}}static asMinimatchOptions(e){const t={dot:!0};return!0===e?.ignoreCase&&(t.nocase=!0),t}}class l extends u{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r),this._notificationType=n,this._accessUri=o,this._createParams=s}async send(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=async e=>this._client.sendNotification(this._notificationType,this._createParams(e));return this.doSend(t,e)}}}class d extends l{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const t=e.fsPath;if(this._fsPathFileTypes.has(t))return this._fsPathFileTypes.get(t);const n=await u.getFileType(e);return n&&this._fsPathFileTypes.set(t,n),n}async cacheFileTypes(e,t){await this.filter(e,t)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),0===this.filterSize()&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}t.DidCreateFilesFeature=class extends l{constructor(e){super(e,i.workspace.onDidCreateFiles,o.DidCreateFilesNotification.type,"didCreate","didCreate",(e=>e),e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.didCreateFiles?n.didCreateFiles(e,t):t(e)}},t.DidRenameFilesFeature=class extends d{constructor(e){super(e,i.workspace.onDidRenameFiles,o.DidRenameFilesNotification.type,"didRename","didRename",(e=>e.oldUri),e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=i.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,(e=>e.oldUri)))}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didRenameFiles?n.didRenameFiles(e,t):t(e)}},t.DidDeleteFilesFeature=class extends d{constructor(e){super(e,i.workspace.onDidDeleteFiles,o.DidDeleteFilesNotification.type,"didDelete","didDelete",(e=>e),e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=i.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,(e=>e)))}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didDeleteFiles?n.didDeleteFiles(e,t):t(e)}};class f extends u{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r),this._requestType=n,this._accessUri=o,this._createParams=s}async send(e){const t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=e=>this._client.sendRequest(this._requestType,this._createParams(e),e.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(t,e)}}}t.WillCreateFilesFeature=class extends f{constructor(e){super(e,i.workspace.onWillCreateFiles,o.WillCreateFilesRequest.type,"willCreate","willCreate",(e=>e),e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willCreateFiles?n.willCreateFiles(e,t):t(e)}},t.WillRenameFilesFeature=class extends f{constructor(e){super(e,i.workspace.onWillRenameFiles,o.WillRenameFilesRequest.type,"willRename","willRename",(e=>e.oldUri),e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willRenameFiles?n.willRenameFiles(e,t):t(e)}},t.WillDeleteFilesFeature=class extends f{constructor(e){super(e,i.workspace.onWillDeleteFiles,o.WillDeleteFilesRequest.type,"willDelete","willDelete",(e=>e),e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willDeleteFiles?n.willDeleteFiles(e,t):t(e)}}},6576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystemWatcherFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);t.FileSystemWatcherFeature=class{constructor(e,t){this._client=e,this._notifyFileEvent=t,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return r.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,o.ensure)((0,o.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const t=[];for(const n of e.registerOptions.watchers){const e=this._client.protocol2CodeConverter.asGlobPattern(n.globPattern);if(void 0===e)continue;let o=!0,s=!0,a=!0;void 0!==n.kind&&null!==n.kind&&(o=!!(n.kind&r.WatchKind.Create),s=!!(n.kind&r.WatchKind.Change),a=!!(n.kind&r.WatchKind.Delete));const c=i.workspace.createFileSystemWatcher(e,!o,!s,!a);this.hookListeners(c,o,s,a,t),t.push(c)}this._watchers.set(e.id,t)}registerRaw(e,t){const n=[];for(const e of t)this.hookListeners(e,!0,!0,!0,n);this._watchers.set(e,n)}hookListeners(e,t,n,i,o){t&&e.onDidCreate((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Created})),null,o),n&&e.onDidChange((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Changed})),null,o),i&&e.onDidDelete((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Deleted})),null,o)}unregister(e){const t=this._watchers.get(e);if(t){this._watchers.delete(e);for(const e of t)e.dispose()}}clear(){this._watchers.forEach((e=>{for(const t of e)t.dispose()})),this._watchers.clear()}}},2855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.FoldingRangeRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0,t.foldingRangeKind={valueSet:[r.FoldingRangeKind.Comment,r.FoldingRangeKind.Imports,r.FoldingRangeKind.Region]},t.foldingRange={collapsedText:!1},(0,o.ensure)((0,o.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.FoldingRangeRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeFoldingRange.fire()}));const[n,i]=this.getRegistration(t,e.foldingRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeFoldingRanges:n.event,provideFoldingRanges:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e)};return i.sendRequest(r.FoldingRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asFoldingRanges(e,n)),(e=>i.handleFailedRequest(r.FoldingRangeRequest.type,n,e,null)))},s=i.middleware;return s.provideFoldingRanges?s.provideFoldingRanges(e,t,n,o):o(e,0,n)}};return[i.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),o),{provider:o,onDidChangeFoldingRange:n}]}}t.FoldingRangeFeature=s},190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentOnTypeFormattingFeature=t.DocumentRangeFormattingFeature=t.DocumentFormattingFeature=void 0;const i=n(1398),r=n(3286),o=n(8820),s=n(9810);var a;!function(e){e.fromConfiguration=function(e){const t=i.workspace.getConfiguration("files",e);return{trimTrailingWhitespace:t.get("trimTrailingWhitespace"),trimFinalNewlines:t.get("trimFinalNewlines"),insertFinalNewline:t.get("insertFinalNewline")}}}(a||(a={}));class c extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentFormattingEdits:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),options:i.code2ProtocolConverter.asFormattingOptions(t,a.fromConfiguration(e))};return i.sendRequest(r.DocumentFormattingRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asTextEdits(e,n)),(e=>i.handleFailedRequest(r.DocumentFormattingRequest.type,n,e,null)))},s=i.middleware;return s.provideDocumentFormattingEdits?s.provideDocumentFormattingEdits(e,t,n,o):o(e,t,n)}};return[i.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentFormattingFeature=c;class u extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const t=(0,s.ensure)((0,s.ensure)(e,"textDocument"),"rangeFormatting");t.dynamicRegistration=!0,t.rangesSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentRangeFormattingEdits:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),options:o.code2ProtocolConverter.asFormattingOptions(n,a.fromConfiguration(e))};return o.sendRequest(r.DocumentRangeFormattingRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asTextEdits(e,i)),(e=>o.handleFailedRequest(r.DocumentRangeFormattingRequest.type,i,e,null)))},c=o.middleware;return c.provideDocumentRangeFormattingEdits?c.provideDocumentRangeFormattingEdits(e,t,n,i,s):s(e,t,n,i)}};return e.rangesSupport&&(n.provideDocumentRangesFormattingEdits=(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),ranges:o.code2ProtocolConverter.asRanges(t),options:o.code2ProtocolConverter.asFormattingOptions(n,a.fromConfiguration(e))};return o.sendRequest(r.DocumentRangesFormattingRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asTextEdits(e,i)),(e=>o.handleFailedRequest(r.DocumentRangesFormattingRequest.type,i,e,null)))},c=o.middleware;return c.provideDocumentRangesFormattingEdits?c.provideDocumentRangesFormattingEdits(e,t,n,i,s):s(e,t,n,i)}),[i.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentRangeFormattingFeature=u;class l extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideOnTypeFormattingEdits:(e,t,n,i,o)=>{const s=this._client,c=(e,t,n,i,o)=>{const c={textDocument:s.code2ProtocolConverter.asTextDocumentIdentifier(e),position:s.code2ProtocolConverter.asPosition(t),ch:n,options:s.code2ProtocolConverter.asFormattingOptions(i,a.fromConfiguration(e))};return s.sendRequest(r.DocumentOnTypeFormattingRequest.type,c,o).then((e=>o.isCancellationRequested?null:s.protocol2CodeConverter.asTextEdits(e,o)),(e=>s.handleFailedRequest(r.DocumentOnTypeFormattingRequest.type,o,e,null)))},u=s.middleware;return u.provideOnTypeFormattingEdits?u.provideOnTypeFormattingEdits(e,t,n,i,o,c):c(e,t,n,i,o)}},o=e.moreTriggerCharacter||[];return[i.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,e.firstTriggerCharacter,...o),n]}}t.DocumentOnTypeFormattingFeature=l},4231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HoverFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.HoverRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=[r.MarkupKind.Markdown,r.MarkupKind.PlainText]}initialize(e,t){const n=this.getRegistrationOptions(t,e.hoverProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideHover:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.HoverRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asHover(e)),(e=>i.handleFailedRequest(r.HoverRequest.type,n,e,null))),s=i.middleware;return s.provideHover?s.provideHover(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.HoverFeature=a},7523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.ImplementationRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"implementation");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.implementationProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideImplementation:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.ImplementationRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>i.handleFailedRequest(r.ImplementationRequest.type,n,e,null))),s=i.middleware;return s.provideImplementation?s.provideImplementation(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ImplementationFeature=s},6811:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintsFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.InlayHintRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"inlayHint");t.dynamicRegistration=!0,t.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,o.ensure)((0,o.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.InlayHintRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlayHints.fire()}));const[n,i]=this.getRegistration(t,e.inlayHintProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeInlayHints:n.event,provideInlayHints:(e,t,n)=>{const i=this._client,o=async(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),range:i.code2ProtocolConverter.asRange(t)};try{const e=await i.sendRequest(r.InlayHintRequest.type,o,n);return n.isCancellationRequested?null:i.protocol2CodeConverter.asInlayHints(e,n)}catch(e){return i.handleFailedRequest(r.InlayHintRequest.type,n,e,null)}},s=i.middleware;return s.provideInlayHints?s.provideInlayHints(e,t,n,o):o(e,t,n)}};return o.resolveInlayHint=!0===e.resolveProvider?(e,t)=>{const n=this._client,i=async(e,t)=>{try{const i=await n.sendRequest(r.InlayHintResolveRequest.type,n.code2ProtocolConverter.asInlayHint(e),t);if(t.isCancellationRequested)return null;const o=n.protocol2CodeConverter.asInlayHint(i,t);return t.isCancellationRequested?null:o}catch(e){return n.handleFailedRequest(r.InlayHintResolveRequest.type,t,e,null)}},o=n.middleware;return o.resolveInlayHint?o.resolveInlayHint(e,t,i):i(e,t)}:void 0,[this.registerProvider(t,o),{provider:o,onDidChangeInlayHints:n}]}registerProvider(e,t){return i.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlayHintsFeature=s},2758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionItemFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.InlineCompletionRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"inlineCompletion").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.inlineCompletionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideInlineCompletionItems:(e,t,n,i)=>{const o=this._client,s=this._client.middleware,a=(e,t,n,i)=>o.sendRequest(r.InlineCompletionRequest.type,o.code2ProtocolConverter.asInlineCompletionParams(e,t,n),i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asInlineCompletionResult(e,i)),(e=>o.handleFailedRequest(r.InlineCompletionRequest.type,i,e,null)));return s.provideInlineCompletionItems?s.provideInlineCompletionItems(e,t,n,i,a):a(e,t,n,i)}};return[i.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.InlineCompletionItemFeature=a},7511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.InlineValueRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,o.ensure)((0,o.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.InlineValueRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlineValues.fire()}));const[n,i]=this.getRegistration(t,e.inlineValueProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeInlineValues:n.event,provideInlineValues:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),context:o.code2ProtocolConverter.asInlineValueContext(n)};return o.sendRequest(r.InlineValueRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asInlineValues(e,i)),(e=>o.handleFailedRequest(r.InlineValueRequest.type,i,e,null)))},a=o.middleware;return a.provideInlineValues?a.provideInlineValues(e,t,n,i,s):s(e,t,n,i)}};return[this.registerProvider(t,o),{provider:o,onDidChangeInlineValues:n}]}registerProvider(e,t){return i.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlineValueFeature=s},2661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"linkedEditingRange").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.linkedEditingRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideLinkedEditingRanges:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.LinkedEditingRangeRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asLinkedEditingRanges(e,n)),(e=>i.handleFailedRequest(r.LinkedEditingRangeRequest.type,n,e,null))),s=i.middleware;return s.provideLinkedEditingRange?s.provideLinkedEditingRange(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.LinkedEditingFeature=s},4292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocumentSyncFeature=void 0;const i=n(1398),r=n(9624),o=n(3286),s=n(8820),a=n(1027);function c(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var u,l,d,f,h;!function(e){let t;!function(t){function n(e,t){return e.map((e=>s(e,t)))}function r(e){return c(new Set,e)}function s(e,t){const n=o.NotebookCell.create(function(e){switch(e){case i.NotebookCellKind.Markup:return o.NotebookCellKind.Markup;case i.NotebookCellKind.Code:return o.NotebookCellKind.Code}}(e.kind),t.asUri(e.document.uri));return Object.keys(e.metadata).length>0&&(n.metadata=r(e.metadata)),void 0!==e.executionSummary&&a.number(e.executionSummary.executionOrder)&&a.boolean(e.executionSummary.success)&&(n.executionSummary={executionOrder:e.executionSummary.executionOrder,success:e.executionSummary.success}),n}function c(e,t){if(e.has(t))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(t)){const n=[];for(const i of t)if(null!==i&&"object"==typeof i||Array.isArray(i))n.push(c(e,i));else{if(i instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");n.push(i)}return n}{const n=Object.keys(t),i=Object.create(null);for(const r of n){const n=t[r];if(null!==n&&"object"==typeof n||Array.isArray(n))i[r]=c(e,n);else{if(n instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");i[r]=n}}return i}}t.asVersionedNotebookDocumentIdentifier=function(e,t){return{version:e.version,uri:t.asUri(e.uri)}},t.asNotebookDocument=function(e,t,i){const s=o.NotebookDocument.create(i.asUri(e.uri),e.notebookType,e.version,n(t,i));return Object.keys(e.metadata).length>0&&(s.metadata=r(e.metadata)),s},t.asNotebookCells=n,t.asMetadata=r,t.asNotebookCell=s,t.asTextContentChange=function(e,t){const n=t.asChangeTextDocumentParams(e,e.document.uri,e.document.version);return{document:n.textDocument,changes:n.contentChanges}},t.asNotebookDocumentChangeEvent=function(t,n){const i=Object.create(null);if(t.metadata&&(i.metadata=e.c2p.asMetadata(t.metadata)),void 0!==t.cells){const r=Object.create(null),o=t.cells;o.structure&&(r.structure={array:{start:o.structure.array.start,deleteCount:o.structure.array.deleteCount,cells:void 0!==o.structure.array.cells?o.structure.array.cells.map((t=>e.c2p.asNotebookCell(t,n))):void 0},didOpen:void 0!==o.structure.didOpen?o.structure.didOpen.map((e=>n.asOpenTextDocumentParams(e.document).textDocument)):void 0,didClose:void 0!==o.structure.didClose?o.structure.didClose.map((e=>n.asCloseTextDocumentParams(e.document).textDocument)):void 0}),void 0!==o.data&&(r.data=o.data.map((t=>e.c2p.asNotebookCell(t,n)))),void 0!==o.textContent&&(r.textContent=o.textContent.map((t=>e.c2p.asTextContentChange(t,n)))),Object.keys(r).length>0&&(i.cells=r)}return i}}(t=e.c2p||(e.c2p={}))}(u||(u={})),function(e){function t(e,t,i=!0){return!(e.kind!==t.kind||e.document.uri.toString()!==t.document.uri.toString()||e.document.languageId!==t.document.languageId||!function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.executionOrder===t.executionOrder&&e.success===t.success&&function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.startTime===t.startTime&&e.endTime===t.endTime)}(e.timing,t.timing))}(e.executionSummary,t.executionSummary))&&(!i||i&&n(e.metadata,t.metadata))}function n(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;const r=Array.isArray(e),o=Array.isArray(t);if(r!==o)return!1;if(r&&o){if(e.length!==t.length)return!1;for(let i=0;i=0&&c>=0&&t(e[a],n[c],i);)a--,c--;const u=a+1-s,l=s===c+1?void 0:n.slice(s,c+1);return void 0!==l?{start:s,deleteCount:u,cells:l}:{start:s,deleteCount:u}}return se.document.uri.toString())))}}}(h||(h={}));class p{constructor(e,t,n,r,o,s){this.client=e,this.options=t,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(f.asDocumentSelector(t)),this.onChangeNotificationSent=n,this.onOpenNotificationSent=r,this.onCloseNotificationSent=o,this.onSaveNotificationSent=s,i.workspace.onDidOpenNotebookDocument((e=>{this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e)}),void 0,this.disposables);for(const e of i.workspace.notebookDocuments)this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e);i.workspace.onDidChangeNotebookDocument((e=>this.didChangeNotebookDocument(e)),void 0,this.disposables),!0===this.options.save&&i.workspace.onDidSaveNotebookDocument((e=>this.didSave(e)),void 0,this.disposables),i.workspace.onDidCloseNotebookDocument((e=>{this.didClose(e),this.notebookDidOpen.delete(e.uri.toString())}),void 0,this.disposables)}getState(){for(const e of i.workspace.notebookDocuments)if(void 0!==this.getMatchingCellsConsideringSyncInfo(e))return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){if(i.languages.match(this.selector,e)>0)return!0;const t=e.uri.toString();for(const e of this.notebookSyncInfo.values())if(e.uris.has(t))return!0;return!1}didOpenNotebookCellTextDocument(e,t){if(0===i.languages.match(this.selector,t.document))return;if(!this.notebookDidOpen.has(e.uri.toString()))return;const n=this.getSyncInfo(e),r=this.cellMatches(e,t);if(void 0!==n){const i=n.uris.has(t.document.uri.toString());if(r&&i||!r&&!i)return;if(r){const i=this.mergeCells(n,[t]);if(void 0!==i){const t=this.asNotebookDocumentChangeEvent(e,void 0,n,i);void 0!==t&&this.doSendChange(t,i).catch((()=>{}))}}}else r&&this.doSendOpen(e,[t]).catch((()=>{}))}didChangeNotebookCellTextDocument(e,t,n){if(0===i.languages.match(this.selector,n.document))return;const r=this.getSyncInfo(e);void 0!==r&&r.uris.has(t.document.uri.toString())&&this.doSendChange({notebook:e,cells:{textContent:[n]}},r.cells).catch((()=>{}))}didCloseNotebookCellTextDocument(e,t){const n=this.getSyncInfo(e);if(void 0===n)return;const i=t.document.uri,r=n.cells.findIndex((e=>e.document.uri.toString()===i.toString()));if(-1!==r)if(0===r&&1===n.cells.length)this.doSendClose(e,n.cells).catch((()=>{}));else{const t=n.cells.slice(),i=t.splice(r,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:r,deleteCount:1},didClose:i}}},t).catch((()=>{}))}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,t,n=this.getSyncInfo(e)){if(void 0!==n)if(void 0===t&&(t=n.cells.slice()),void 0!==t){const i=this.asNotebookDocumentChangeEvent(e,void 0,n,t);void 0!==i&&this.doSendChange(i,t).catch((()=>{}))}else this.doSendClose(e,[]).catch((()=>{}));else{if(void 0===(t=this.getMatchingCells(e)))return;this.doSendOpen(e,t).catch((()=>{}))}}didChangeNotebookDocument(e){const t=e.notebook,n=this.getSyncInfo(t);if(void 0===n){if(0===e.contentChanges.length)return;const i=this.getMatchingCells(t);if(void 0===i)return;this.didOpen(t,i,n)}else{const i=this.getMatchingCellsFromEvent(t,n,e);if(void 0===i)return void this.didClose(t,n);const r=this.asNotebookDocumentChangeEvent(e.notebook,e,n,i);void 0!==r&&this.doSendChange(r,i).catch((()=>{}))}}didSave(e){void 0!==this.getSyncInfo(e)&&this.doSendSave(e).catch((()=>{}))}didClose(e,t=this.getSyncInfo(e)){if(void 0===t)return;const n=e.getCells().filter((e=>t.uris.has(e.document.uri.toString())));this.doSendClose(e,n).catch((()=>{}))}async sendDidOpenNotebookDocument(e){if(void 0!==this.getSyncInfo(e))throw new Error(`Notebook document ${e.uri.toString()} is already open`);const t=this.getMatchingCells(e);if(void 0!==t)return this.doSendOpen(e,t)}async doSendOpen(e,t){const n=async(e,t)=>{const n=t.map((e=>this.client.code2ProtocolConverter.asTextDocumentItem(e.document)));try{await this.client.sendNotification(o.DidOpenNotebookDocumentNotification.type,{notebookDocument:u.c2p.asNotebookDocument(e,t,this.client.code2ProtocolConverter),cellTextDocuments:n}),this.onOpenNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",e),e}},i=this.client.middleware?.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),h.create(t)),void 0!==i?.didOpen?i.didOpen(e,t,n):n(e,t)}async sendDidChangeNotebookDocument(e){const t=this.getMatchingCellsFromSyncInfo(e.notebook);if(void 0===t)throw new Error(`Received changed event for un-synced notebook ${e.notebook.uri.toString()}`);return this.doSendChange(e,t)}async doSendChange(e,t){const n=async e=>{try{await this.client.sendNotification(o.DidChangeNotebookDocumentNotification.type,{notebookDocument:u.c2p.asVersionedNotebookDocumentIdentifier(e.notebook,this.client.code2ProtocolConverter),change:u.c2p.asNotebookDocumentChangeEvent(e,this.client.code2ProtocolConverter)}),this.onChangeNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",e),e}},i=this.client.middleware?.notebooks;return void 0!==e.cells?.structure&&this.notebookSyncInfo.set(e.notebook.uri.toString(),h.create(t)),void 0!==i?.didChange?i?.didChange(e,n):n(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){const t=async e=>{try{await this.client.sendNotification(o.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)}}),this.onSaveNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",e),e}},n=this.client.middleware?.notebooks;return void 0!==n?.didSave?n.didSave(e,t):t(e)}async sendDidCloseNotebookDocument(e){const t=this.getMatchingCellsFromSyncInfo(e);if(void 0===t)throw new Error(`Received close event for un-synced notebook ${e.uri.toString()}`);return this.doSendClose(e,t)}async doSendClose(e,t){const n=async(e,t)=>{try{await this.client.sendNotification(o.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)},cellTextDocuments:t.map((e=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(e.document)))}),this.onCloseNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",e),e}},i=this.client.middleware?.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),void 0!==i?.didClose?i.didClose(e,t,n):n(e,t)}getSynchronizedCells(e){const t=this.getSyncInfo(e);return t?.cells}asNotebookDocumentChangeEvent(e,t,n,i){if(void 0!==t&&t.notebook!==e)throw new Error("Notebook must be identical");const r={notebook:e};let o;if(void 0!==t?.metadata&&(r.metadata=u.c2p.asMetadata(t.metadata)),void 0!==t?.cellChanges&&t.cellChanges.length>0){const e=[];o=new Set(i.map((e=>e.document.uri.toString())));for(const n of t.cellChanges)!o.has(n.cell.document.uri.toString())||void 0===n.executionSummary&&void 0===n.metadata||e.push(n.cell);e.length>0&&(r.cells=r.cells??{},r.cells.data=e)}if((void 0!==t?.contentChanges&&t.contentChanges.length>0||void 0===t)&&void 0!==n&&void 0!==i){const e=n.cells,t=i,o=l.computeDiff(e,t,!1);let s,a;if(void 0!==o){s=void 0===o.cells?new Map:new Map(o.cells.map((e=>[e.document.uri.toString(),e]))),a=0===o.deleteCount?new Map:new Map(e.slice(o.start,o.start+o.deleteCount).map((e=>[e.document.uri.toString(),e])));for(const e of Array.from(a.keys()))s.has(e)&&(a.delete(e),s.delete(e));r.cells=r.cells??{};const t=[],n=[];if(s.size>0||a.size>0){for(const e of s.values())t.push(e);for(const e of a.values())n.push(e)}r.cells.structure={array:o,didOpen:t,didClose:n}}}return Object.keys(r).length>1?r:void 0}getMatchingCells(e,t=e.getCells()){if(void 0!==this.options.notebookSelector)for(const n of this.options.notebookSelector)if(void 0===n.notebook||d.matchNotebook(n.notebook,e)){const i=this.filterCells(e,t,n.cells);return 0===i.length?void 0:i}}getMatchingCellsFromEvent(e,t,n){if(void 0===this.options.notebookSelector)return;let i,r;for(const t of this.options.notebookSelector)if(void 0===t.notebook||d.matchNotebook(t.notebook,e)){i=t;break}if(void 0===i)return;if(!(void 0!==n.cellChanges&&0!==n.cellChanges.length||void 0!==n.contentChanges&&0!==n.contentChanges.length))return t.cells;if(void 0!==n.cellChanges&&n.cellChanges.length>0){const o=n.cellChanges.map((e=>e.cell)),s=this.filterCells(e,o,i.cells);if(s.length!==o.length){r=new Set(t.uris);for(const e of o)r.delete(e.document.uri.toString());for(const e of s)r.add(e.document.uri.toString())}}const o=[];if(void 0!==n.contentChanges&&n.contentChanges.length>0){void 0===r&&(r=new Set(t.uris));for(const t of n.contentChanges){for(const e of t.removedCells)r.delete(e.document.uri.toString());const n=this.filterCells(e,new Array(...t.addedCells),i.cells);for(const e of n)r.has(e.document.uri.toString())||o.push(e)}}if(void 0===r&&0===o.length)return t.cells;const s=[];if(void 0!==r)for(const e of t.cells)r.has(e.document.uri.toString())&&s.push(e);return o.length>0&&s.push(...o),s}getMatchingCellsFromSyncInfo(e){const t=this.getSyncInfo(e);return void 0!==t?t.cells:void 0}getMatchingCellsConsideringSyncInfo(e){const t=this.getSyncInfo(e);return void 0!==t?t.cells:this.getMatchingCells(e)}mergeCells(e,t){const n=e.cells.slice();for(const i of t)e.uris.has(i.document.uri.toString())||n.push(i);return n}cellMatches(e,t){const n=this.getMatchingCells(e,[t]);return void 0!==n&&n[0]===t}filterCells(e,t,n){const i=void 0!==n?t.filter((e=>{const t=e.document.languageId;return n.some((e=>"*"===e.language||t===e.language))})):t;return"function"==typeof this.client.clientOptions.notebookDocumentOptions?.filterCells?this.client.clientOptions.notebookDocumentOptions.filterCells(e,i):i}getSyncInfo(e){return this.notebookSyncInfo.get(e.uri.toString())}}class g{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=o.NotebookDocumentSyncRegistrationType.type,this._onChangeNotificationSent=new i.EventEmitter,this._onOpenNotificationSent=new i.EventEmitter,this._onCloseNotificationSent=new i.EventEmitter,this._onSaveNotificationSent=new i.EventEmitter,i.workspace.onDidOpenTextDocument((e=>{if(e.uri.scheme!==g.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof p&&e.didOpenNotebookCellTextDocument(t,n)})),i.workspace.onDidChangeTextDocument((e=>{if(0===e.contentChanges.length)return;const t=e.document;if(t.uri.scheme!==g.CellScheme)return;const[n,i]=this.findNotebookDocumentAndCell(t);if(void 0!==n&&void 0!==i)for(const t of this.registrations.values())t instanceof p&&t.didChangeNotebookCellTextDocument(n,i,e)})),i.workspace.onDidCloseTextDocument((e=>{if(e.uri.scheme!==g.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof p&&e.didCloseNotebookCellTextDocument(t,n)}))}getState(){if(0===this.registrations.size)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const t=e.getState();if("document"===t.kind&&!0===t.registrations&&!0===t.matches)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}get onOpenNotificationSent(){return this._onOpenNotificationSent.event}get onChangeNotificationSent(){return this._onChangeNotificationSent.event}get onCloseNotificationSent(){return this._onCloseNotificationSent.event}get onSaveNotificationSent(){return this._onSaveNotificationSent.event}fillClientCapabilities(e){const t=c(c(e,"notebookDocument"),"synchronization");t.dynamicRegistration=!0,t.executionSummarySupport=!0}preInitialize(e){const t=e.notebookDocumentSync;void 0!==t&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(f.asDocumentSelector(t)))}initialize(e){const t=e.notebookDocumentSync;if(void 0===t)return;const n=t.id??s.generateUuid();this.register({id:n,registerOptions:t})}register(e){const t=new p(this.client,e.registerOptions,this._onChangeNotificationSent,this._onOpenNotificationSent,this._onCloseNotificationSent,this._onSaveNotificationSent);this.registrations.set(e.id,t)}unregister(e){const t=this.registrations.get(e);void 0!==t&&(this.registrations.delete(e),t.dispose())}clear(){for(const e of this.registrations.values())e.dispose();this.registrations.clear(),this._onChangeNotificationSent.dispose(),this._onChangeNotificationSent=new i.EventEmitter,this._onOpenNotificationSent.dispose(),this._onOpenNotificationSent=new i.EventEmitter,this._onCloseNotificationSent.dispose(),this._onCloseNotificationSent=new i.EventEmitter,this._onSaveNotificationSent.dispose(),this._onSaveNotificationSent=new i.EventEmitter}handles(e){if(e.uri.scheme!==g.CellScheme)return!1;if(void 0!==this.dedicatedChannel&&i.languages.match(this.dedicatedChannel,e)>0)return!0;for(const t of this.registrations.values())if(t.handles(e))return!0;return!1}getProvider(e){for(const t of this.registrations.values())if(t.handles(e.document))return t}findNotebookDocumentAndCell(e){const t=e.uri.toString();for(const e of i.workspace.notebookDocuments)for(const n of e.getCells())if(n.document.uri.toString()===t)return[e,n];return[void 0,void 0]}}t.NotebookDocumentSyncFeature=g,g.CellScheme="vscode-notebook-cell"},378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressFeature=void 0;const i=n(3286),r=n(5679);t.ProgressFeature=class{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:i.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){var t,n;(t=e,n="window",void 0===t[n]&&(t[n]=Object.create(null)),t[n]).workDoneProgress=!0}initialize(){const e=this._client,t=e=>{this.activeParts.delete(e)};e.onRequest(i.WorkDoneProgressCreateRequest.type,(e=>{this.activeParts.add(new r.ProgressPart(this._client,e.token,t))}))}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}},5679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressPart=void 0;const i=n(1398),r=n(3286),o=n(1027);t.ProgressPart=class{constructor(e,t,n){this._client=e,this._token=t,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(r.WorkDoneProgress.type,this._token,(e=>{switch(e.kind){case"begin":this.begin(e);break;case"report":this.report(e);break;case"end":this.done(),n&&n(this)}}))}begin(e){this._infinite=void 0===e.percentage,void 0!==this._lspProgressDisposable&&i.window.withProgress({location:i.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},(async(t,n)=>{if(void 0!==this._lspProgressDisposable)return this._progress=t,this._cancellationToken=n,this._tokenDisposable=this._cancellationToken.onCancellationRequested((()=>{this._client.sendNotification(r.WorkDoneProgressCancelNotification.type,{token:this._token})})),this.report(e),new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}))}report(e){if(this._infinite&&o.string(e.message))void 0!==this._progress&&this._progress.report({message:e.message});else if(o.number(e.percentage)){const t=Math.max(0,Math.min(e.percentage,100)),n=Math.max(0,t-this._reported);this._reported+=n,void 0!==this._progress&&this._progress.report({message:e.message,increment:n})}}cancel(){this.cleanup(),void 0!==this._reject&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),void 0!==this._resolve&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){void 0!==this._lspProgressDisposable&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),void 0!==this._tokenDisposable&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}},2049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.CallHierarchyItem{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o),void 0!==s&&(this.data=s)}}t.default=r},2946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.CodeAction{constructor(e,t){super(e),this.data=t}}t.default=r},1936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.CodeLens{constructor(e){super(e)}}t.default=r},4752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.CompletionItem{constructor(e){super(e)}}t.default=r},3881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const i=n(1398),r=n(3286),o=n(1027),s=n(5671),a=n(4752),c=n(1936),u=n(7252),l=n(2946),d=n(5146),f=n(2049),h=n(5965),p=n(1332),g=n(107),m=n(3286);var v;!function(e){e.is=function(e){const t=e;return t&&o.string(t.language)&&o.string(t.value)}}(v||(v={})),t.createConverter=function(e,t,n){const y=e||(e=>i.Uri.parse(e));function C(e){return y(e)}function S(e){const t=new d.ProtocolDiagnostic(R(e.range),e.message,T(e.severity),e.data);if(void 0!==e.code)if("string"==typeof e.code||"number"==typeof e.code)r.CodeDescription.is(e.codeDescription)?t.code={value:e.code,target:C(e.codeDescription.href)}:t.code=e.code;else if(d.DiagnosticCode.is(e.code)){t.hasDiagnosticCode=!0;const n=e.code;t.code={value:n.value,target:C(n.target)}}return e.source&&(t.source=e.source),e.relatedInformation&&(t.relatedInformation=function(e){const t=new Array(e.length);for(let n=0;n0?t:void 0}(e.tags)),t}function b(e){switch(e){case r.DiagnosticTag.Unnecessary:return i.DiagnosticTag.Unnecessary;case r.DiagnosticTag.Deprecated:return i.DiagnosticTag.Deprecated;default:return}}function w(e){return e?new i.Position(e.line,e.character):void 0}function R(e){return e?new i.Range(e.start.line,e.start.character,e.end.line,e.end.character):void 0}async function D(e,t){return s.map(e,(e=>new i.Range(e.start.line,e.start.character,e.end.line,e.end.character)),t)}function T(e){if(null==e)return i.DiagnosticSeverity.Error;switch(e){case r.DiagnosticSeverity.Error:return i.DiagnosticSeverity.Error;case r.DiagnosticSeverity.Warning:return i.DiagnosticSeverity.Warning;case r.DiagnosticSeverity.Information:return i.DiagnosticSeverity.Information;case r.DiagnosticSeverity.Hint:return i.DiagnosticSeverity.Hint}return i.DiagnosticSeverity.Error}function _(e){if(o.string(e))return e;switch(e.kind){case r.MarkupKind.Markdown:return P(e.value);case r.MarkupKind.PlainText:return e.value;default:return`Unsupported Markup content received. Kind is: ${e.kind}`}}function P(e){let o;if(void 0===e||"string"==typeof e)o=new i.MarkdownString(e);else switch(e.kind){case r.MarkupKind.Markdown:o=new i.MarkdownString(e.value);break;case r.MarkupKind.PlainText:o=new i.MarkdownString,o.appendText(e.value);break;default:o=new i.MarkdownString,o.appendText(`Unsupported Markup content received. Kind is: ${e.kind}`)}return o.isTrusted=t,o.supportHtml=n,o}function k(e){if(e===r.CompletionItemTag.Deprecated)return i.CompletionItemTag.Deprecated}function x(e,t,n,s,c,u){const l=function(e){if(null==e)return[];const t=[];for(const n of e){const e=k(n);void 0!==e&&t.push(e)}return t}(e.tags),d=function(e){return r.CompletionItemLabelDetails.is(e.labelDetails)?{label:e.label,detail:e.labelDetails.detail,description:e.labelDetails.description}:e.label}(e),f=new a.default(d);e.detail&&(f.detail=e.detail),e.documentation&&(f.documentation=_(e.documentation),f.documentationFormat=o.string(e.documentation)?"$string":e.documentation.kind),e.filterText&&(f.filterText=e.filterText);const h=function(e,t,n){const o=e.insertTextFormat??n;if(void 0!==e.textEdit||void 0!==t){const[n,a]=void 0!==e.textEdit?(s=e.textEdit,r.InsertReplaceEdit.is(s)?[{inserting:R(s.insert),replacing:R(s.replace)},s.newText]:[R(s.range),s.newText]):[t,e.textEditText??e.label];return o===r.InsertTextFormat.Snippet?{text:new i.SnippetString(a),range:n,fromEdit:!0}:{text:a,range:n,fromEdit:!0}}return e.insertText?o===r.InsertTextFormat.Snippet?{text:new i.SnippetString(e.insertText),fromEdit:!1}:{text:e.insertText,fromEdit:!1}:void 0;var s}(e,n,c);if(h&&(f.insertText=h.text,f.range=h.range,f.fromEdit=h.fromEdit),o.number(e.kind)){const[t,n]=(p=e.kind,r.CompletionItemKind.Text<=p&&p<=r.CompletionItemKind.TypeParameter?[p-1,void 0]:[i.CompletionItemKind.Text,p]);f.kind=t,n&&(f.originalItemKind=n)}var p;e.sortText&&(f.sortText=e.sortText),e.additionalTextEdits&&(f.additionalTextEdits=O(e.additionalTextEdits));const g=void 0!==e.commitCharacters?o.stringArray(e.commitCharacters)?e.commitCharacters:void 0:t;g&&(f.commitCharacters=g.slice()),e.command&&(f.command=X(e.command)),!0!==e.deprecated&&!1!==e.deprecated||(f.deprecated=e.deprecated,!0===e.deprecated&&l.push(i.CompletionItemTag.Deprecated)),!0!==e.preselect&&!1!==e.preselect||(f.preselect=e.preselect);const m=e.data??u;void 0!==m&&(f.data=m),l.length>0&&(f.tags=l);const v=e.insertTextMode??s;return void 0!==v&&(f.insertTextMode=v,v===r.InsertTextMode.asIs&&(f.keepWhitespace=!0)),f}function E(e){if(e)return new i.TextEdit(R(e.range),e.newText)}async function I(e,t){if(e)return s.map(e,E,t)}function O(e){if(!e)return;const t=new Array(e.length);for(let n=0;n0){const n=[];for(const t of e.children)n.push(V(t));t.children=n}return t}function B(e,t){e.tags=z(t.tags),t.deprecated&&(e.tags?e.tags.includes(i.SymbolTag.Deprecated)||(e.tags=e.tags.concat(i.SymbolTag.Deprecated)):e.tags=[i.SymbolTag.Deprecated])}function X(e){const t={title:e.title,command:e.command};return e.tooltip&&(t.tooltip=e.tooltip),e.arguments&&(t.arguments=e.arguments),t}const G=new Map;function J(e){if(null==e)return;let t=G.get(e);if(t)return t;const n=e.split(".");t=i.CodeActionKind.Empty;for(const e of n)t=t.append(e);return t}async function Z(e,t){if(null==e)return;const n=new l.default(e.title,e.data);return void 0!==e.kind&&(n.kind=J(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=function(e){const t=new Array(e.length);for(let n=0;n{const t=function(e){if(void 0!==e)return{label:e.label,needsConfirmation:!!e.needsConfirmation,description:e.description}}(i[e]);n.set(e,t)}),t)}const o=e=>void 0===e?void 0:n.get(e),a=new i.WorkspaceEdit;if(e.documentChanges){const n=e.documentChanges;await s.forEach(n,(e=>{if(r.CreateFile.is(e))a.createFile(y(e.uri),e.options,o(e.annotationId));else if(r.RenameFile.is(e))a.renameFile(y(e.oldUri),y(e.newUri),e.options,o(e.annotationId));else if(r.DeleteFile.is(e))a.deleteFile(y(e.uri),e.options,o(e.annotationId));else{if(!r.TextDocumentEdit.is(e))throw new Error(`Unknown workspace edit change received:\n${JSON.stringify(e,void 0,4)}`);{const t=y(e.textDocument.uri),n=[];for(const t of e.edits)r.AnnotatedTextEdit.is(t)?n.push([new i.TextEdit(R(t.range),t.newText),o(t.annotationId)]):r.SnippetTextEdit.is(t)?n.push([new i.SnippetTextEdit(R(t.range),new i.SnippetString(t.snippet.value)),o(t.annotationId)]):n.push([new i.TextEdit(R(t.range),t.newText),void 0]);a.set(t,n)}}}),t)}else if(e.changes){const n=e.changes;await s.forEach(Object.keys(n),(e=>{a.set(y(e),O(n[e]))}),t)}return a}function ee(e){const t=R(e.range),n=e.target?C(e.target):void 0,i=new u.default(t,n);return void 0!==e.tooltip&&(i.tooltip=e.tooltip),void 0!==e.data&&null!==e.data&&(i.data=e.data),i}function te(e){return new i.Color(e.red,e.green,e.blue,e.alpha)}function ne(e){return new i.ColorInformation(R(e.range),te(e.color))}function ie(e){const t=new i.ColorPresentation(e.label);return t.additionalTextEdits=O(e.additionalTextEdits),e.textEdit&&(t.textEdit=E(e.textEdit)),t}function re(e){if(e)switch(e){case r.FoldingRangeKind.Comment:return i.FoldingRangeKind.Comment;case r.FoldingRangeKind.Imports:return i.FoldingRangeKind.Imports;case r.FoldingRangeKind.Region:return i.FoldingRangeKind.Region}}function oe(e){return new i.FoldingRange(e.startLine,e.endLine,re(e.kind))}function se(e){return new i.SelectionRange(R(e.range),e.parent?se(e.parent):void 0)}function ae(e){return r.InlineValueText.is(e)?new i.InlineValueText(R(e.range),e.text):r.InlineValueVariableLookup.is(e)?new i.InlineValueVariableLookup(R(e.range),e.variableName,e.caseSensitiveLookup):new i.InlineValueEvaluatableExpression(R(e.range),e.expression)}async function ce(e,t){const n="string"==typeof e.label?e.label:await s.map(e.label,ue,t),i=new g.default(w(e.position),n);return void 0!==e.kind&&(i.kind=e.kind),void 0!==e.textEdits&&(i.textEdits=await I(e.textEdits,t)),void 0!==e.tooltip&&(i.tooltip=le(e.tooltip)),void 0!==e.paddingLeft&&(i.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(i.paddingRight=e.paddingRight),void 0!==e.data&&(i.data=e.data),i}function ue(e){const t=new i.InlayHintLabelPart(e.value);return void 0!==e.location&&(t.location=L(e.location)),void 0!==e.tooltip&&(t.tooltip=le(e.tooltip)),void 0!==e.command&&(t.command=X(e.command)),t}function le(e){return"string"==typeof e?e:P(e)}function de(e){if(null===e)return;const t=new f.default(U(e.kind),e.name,e.detail||"",C(e.uri),R(e.range),R(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=z(e.tags)),t}async function fe(e,t){return new i.CallHierarchyIncomingCall(de(e.from),await D(e.fromRanges,t))}async function he(e,t){return new i.CallHierarchyOutgoingCall(de(e.to),await D(e.fromRanges,t))}function pe(e){return new i.SemanticTokensEdit(e.start,e.deleteCount,void 0!==e.data?new Uint32Array(e.data):void 0)}function ge(e){if(null===e)return;const t=new h.default(U(e.kind),e.name,e.detail||"",C(e.uri),R(e.range),R(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=z(e.tags)),t}function me(e){let t,n;t="string"==typeof e.insertText?e.insertText:new i.SnippetString(e.insertText.value),e.command&&(n=X(e.command));const r=new i.InlineCompletionItem(t,R(e.range),n);return e.filterText&&(r.filterText=e.filterText),r}return G.set(r.CodeActionKind.Empty,i.CodeActionKind.Empty),G.set(r.CodeActionKind.QuickFix,i.CodeActionKind.QuickFix),G.set(r.CodeActionKind.Refactor,i.CodeActionKind.Refactor),G.set(r.CodeActionKind.RefactorExtract,i.CodeActionKind.RefactorExtract),G.set(r.CodeActionKind.RefactorInline,i.CodeActionKind.RefactorInline),G.set(r.CodeActionKind.RefactorRewrite,i.CodeActionKind.RefactorRewrite),G.set(r.CodeActionKind.Source,i.CodeActionKind.Source),G.set(r.CodeActionKind.SourceOrganizeImports,i.CodeActionKind.SourceOrganizeImports),{asUri:C,asDocumentSelector:function(e){const t=[];for(const n of e)if("string"==typeof n)t.push(n);else if(m.NotebookCellTextDocumentFilter.is(n))if("string"==typeof n.notebook)t.push({notebookType:n.notebook,language:n.language});else{const e=n.notebook.notebookType??"*";t.push({notebookType:e,scheme:n.notebook.scheme,pattern:n.notebook.pattern,language:n.language})}else m.TextDocumentFilter.is(n)&&t.push({language:n.language,scheme:n.scheme,pattern:n.pattern});return t},asDiagnostics:async function(e,t){return s.map(e,S,t)},asDiagnostic:S,asRange:R,asRanges:D,asPosition:w,asDiagnosticSeverity:T,asDiagnosticTag:b,asHover:function(e){if(e)return new i.Hover(function(e){if(o.string(e))return P(e);if(v.is(e))return P().appendCodeblock(e.value,e.language);if(Array.isArray(e)){const t=[];for(const n of e){const e=P();v.is(n)?e.appendCodeblock(n.value,n.language):e.appendMarkdown(n),t.push(e)}return t}return P(e)}(e.contents),R(e.range))},asCompletionResult:async function(e,t,n){if(!e)return;if(Array.isArray(e))return s.map(e,(e=>x(e,t)),n);const o=e,{defaultRange:a,commitCharacters:c}=function(e,t){const n=e.itemDefaults?.editRange,i=e.itemDefaults?.commitCharacters??t;return r.Range.is(n)?{defaultRange:R(n),commitCharacters:i}:void 0!==n?{defaultRange:{inserting:R(n.insert),replacing:R(n.replace)},commitCharacters:i}:{defaultRange:void 0,commitCharacters:i}}(o,t),u=await s.map(o.items,(e=>x(e,c,a,o.itemDefaults?.insertTextMode,o.itemDefaults?.insertTextFormat,o.itemDefaults?.data)),n);return new i.CompletionList(u,o.isIncomplete)},asCompletionItem:x,asTextEdit:E,asTextEdits:I,asSignatureHelp:async function(e,t){if(!e)return;const n=new i.SignatureHelp;return o.number(e.activeSignature)?n.activeSignature=e.activeSignature:n.activeSignature=0,o.number(e.activeParameter)?n.activeParameter=e.activeParameter:null===e.activeParameter?n.activeParameter=-1:n.activeParameter=0,e.signatures&&(n.signatures=await F(e.signatures,t)),n},asSignatureInformations:F,asSignatureInformation:N,asParameterInformations:M,asParameterInformation:q,asDeclarationResult:async function(e,t){if(e)return j(e,t)},asDefinitionResult:async function(e,t){if(e)return j(e,t)},asLocation:L,asReferences:async function(e,t){if(e)return s.map(e,L,t)},asDocumentHighlights:async function(e,t){if(e)return s.map(e,H,t)},asDocumentHighlight:H,asDocumentHighlightKind:$,asSymbolKind:U,asSymbolTag:K,asSymbolTags:z,asSymbolInformations:async function(e,t){if(e)return s.map(e,W,t)},asSymbolInformation:W,asDocumentSymbols:async function(e,t){if(null!=e)return s.map(e,V,t)},asDocumentSymbol:V,asCommand:X,asCommands:async function(e,t){if(e)return s.map(e,X,t)},asCodeAction:Z,asCodeActionKind:J,asCodeActionKinds:function(e){if(null!=e)return e.map((e=>J(e)))},asCodeActionDocumentations:function(e){if(null!=e)return e.map((e=>({kind:J(e.kind),command:X(e.command)})))},asCodeActionResult:function(e,t){return s.mapAsync(e,(async e=>r.Command.is(e)?X(e):Z(e,t)),t)},asCodeLens:Q,asCodeLenses:async function(e,t){if(e)return s.map(e,Q,t)},asWorkspaceEdit:Y,asDocumentLink:ee,asDocumentLinks:async function(e,t){if(e)return s.map(e,ee,t)},asFoldingRangeKind:re,asFoldingRange:oe,asFoldingRanges:async function(e,t){if(e)return s.map(e,oe,t)},asColor:te,asColorInformation:ne,asColorInformations:async function(e,t){if(e)return s.map(e,ne,t)},asColorPresentation:ie,asColorPresentations:async function(e,t){if(e)return s.map(e,ie,t)},asSelectionRange:se,asSelectionRanges:async function(e,t){return Array.isArray(e)?s.map(e,se,t):[]},asInlineValue:ae,asInlineValues:async function(e,t){return Array.isArray(e)?s.map(e,ae,t):[]},asInlayHint:ce,asInlayHints:async function(e,t){if(Array.isArray(e))return s.mapAsync(e,ce,t)},asSemanticTokensLegend:function(e){return e},asSemanticTokens:async function(e,t){if(null!=e)return new i.SemanticTokens(new Uint32Array(e.data),e.resultId)},asSemanticTokensEdit:pe,asSemanticTokensEdits:async function(e,t){if(null!=e)return new i.SemanticTokensEdits(e.edits.map(pe),e.resultId)},asCallHierarchyItem:de,asCallHierarchyItems:async function(e,t){if(null!==e)return s.map(e,de,t)},asCallHierarchyIncomingCall:fe,asCallHierarchyIncomingCalls:async function(e,t){if(null!==e)return s.mapAsync(e,fe,t)},asCallHierarchyOutgoingCall:he,asCallHierarchyOutgoingCalls:async function(e,t){if(null!==e)return s.mapAsync(e,he,t)},asLinkedEditingRanges:async function(e,t){if(null!=e)return new i.LinkedEditingRanges(await D(e.ranges,t),function(e){if(null!=e)return new RegExp(e)}(e.wordPattern))},asTypeHierarchyItem:ge,asTypeHierarchyItems:async function(e,t){if(null!==e)return s.map(e,ge,t)},asGlobPattern:function(e){if(o.string(e))return e;if(r.RelativePattern.is(e)){if(r.URI.is(e.baseUri))return new i.RelativePattern(C(e.baseUri),e.pattern);if(r.WorkspaceFolder.is(e.baseUri)){const t=i.workspace.getWorkspaceFolder(C(e.baseUri.uri));return void 0!==t?new i.RelativePattern(t,e.pattern):void 0}}},asInlineCompletionResult:async function(e,t){if(!e)return;if(Array.isArray(e))return s.map(e,(e=>me(e)),t);const n=e,r=await s.map(n.items,(e=>me(e)),t);return new i.InlineCompletionList(r)},asInlineCompletionItem:me}}},5146:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolDiagnostic=t.DiagnosticCode=void 0;const i=n(1398),r=n(1027);var o;!function(e){e.is=function(e){const t=e;return null!=t&&(r.number(t.value)||r.string(t.value))&&r.string(t.target)}}(o||(t.DiagnosticCode=o={}));class s extends i.Diagnostic{constructor(e,t,n,i){super(e,t,n),this.data=i,this.hasDiagnosticCode=!1}}t.ProtocolDiagnostic=s},7252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.DocumentLink{constructor(e,t){super(e,t)}}t.default=r},107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.InlayHint{constructor(e,t,n){super(e,t,n)}}t.default=r},5965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.TypeHierarchyItem{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o),void 0!==s&&(this.data=s)}}t.default=r},1332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(1398);class r extends i.SymbolInformation{constructor(e,t,n,r,o){const s=!(r instanceof i.Uri);super(e,t,n,s?r:new i.Location(r,new i.Range(0,0,0,0))),this.hasRange=s,void 0!==o&&(this.data=o)}}t.default=r},4384:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReferencesFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.ReferencesRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.referencesProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideReferences:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>o.sendRequest(r.ReferencesRequest.type,o.code2ProtocolConverter.asReferenceParams(e,t,n),i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asReferences(e,i)),(e=>o.handleFailedRequest(r.ReferencesRequest.type,i,e,null))),a=o.middleware;return a.provideReferences?a.provideReferences(e,t,n,i,s):s(e,t,n,i)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ReferencesFeature=a},623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameFeature=void 0;const i=n(1398),r=n(3286),o=n(8820),s=n(1027),a=n(9810);class c extends a.TextDocumentLanguageFeature{constructor(e){super(e,r.RenameRequest.type)}fillClientCapabilities(e){const t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0,t.prepareSupportDefaultBehavior=r.PrepareSupportDefaultBehavior.Identifier,t.honorsChangeAnnotations=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.renameProvider);n&&(s.boolean(e.renameProvider)&&(n.prepareProvider=!1),this.register({id:o.generateUuid(),registerOptions:n}))}registerLanguageProvider(e){const t=e.documentSelector,n={provideRenameEdits:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),position:o.code2ProtocolConverter.asPosition(t),newName:n};return o.sendRequest(r.RenameRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asWorkspaceEdit(e,i)),(e=>o.handleFailedRequest(r.RenameRequest.type,i,e,null,!1)))},a=o.middleware;return a.provideRenameEdits?a.provideRenameEdits(e,t,n,i,s):s(e,t,n,i)},prepareRename:e.prepareProvider?(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),position:i.code2ProtocolConverter.asPosition(t)};return i.sendRequest(r.PrepareRenameRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.Range.is(e)?i.protocol2CodeConverter.asRange(e):this.isDefaultBehavior(e)?!0===e.defaultBehavior?null:Promise.reject(new Error("The element can't be renamed.")):e&&r.Range.is(e.range)?{range:i.protocol2CodeConverter.asRange(e.range),placeholder:e.placeholder}:Promise.reject(new Error("The element can't be renamed."))),(e=>{throw"string"==typeof e.message?new Error(e.message):new Error("The element can't be renamed.")}))},s=i.middleware;return s.prepareRename?s.prepareRename(e,t,n,o):o(e,t,n)}:void 0};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}isDefaultBehavior(e){const t=e;return t&&s.boolean(t.defaultBehavior)}}t.RenameFeature=c},7086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.SelectionRangeRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"selectionRange").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.selectionRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideSelectionRanges:(e,t,n)=>{const i=this._client,o=async(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),positions:i.code2ProtocolConverter.asPositionsSync(t,n)};return i.sendRequest(r.SelectionRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asSelectionRanges(e,n)),(e=>i.handleFailedRequest(r.SelectionRangeRequest.type,n,e,null)))},s=i.middleware;return s.provideSelectionRanges?s.provideSelectionRanges(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.SelectionRangeFeature=s},1423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(1027);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[r.SemanticTokenTypes.namespace,r.SemanticTokenTypes.type,r.SemanticTokenTypes.class,r.SemanticTokenTypes.enum,r.SemanticTokenTypes.interface,r.SemanticTokenTypes.struct,r.SemanticTokenTypes.typeParameter,r.SemanticTokenTypes.parameter,r.SemanticTokenTypes.variable,r.SemanticTokenTypes.property,r.SemanticTokenTypes.enumMember,r.SemanticTokenTypes.event,r.SemanticTokenTypes.function,r.SemanticTokenTypes.method,r.SemanticTokenTypes.macro,r.SemanticTokenTypes.keyword,r.SemanticTokenTypes.modifier,r.SemanticTokenTypes.comment,r.SemanticTokenTypes.string,r.SemanticTokenTypes.number,r.SemanticTokenTypes.regexp,r.SemanticTokenTypes.operator,r.SemanticTokenTypes.decorator,r.SemanticTokenTypes.label],t.tokenModifiers=[r.SemanticTokenModifiers.declaration,r.SemanticTokenModifiers.definition,r.SemanticTokenModifiers.readonly,r.SemanticTokenModifiers.static,r.SemanticTokenModifiers.deprecated,r.SemanticTokenModifiers.abstract,r.SemanticTokenModifiers.async,r.SemanticTokenModifiers.modification,r.SemanticTokenModifiers.documentation,r.SemanticTokenModifiers.defaultLibrary],t.formats=[r.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,t.serverCancelSupport=!0,t.augmentsSyntaxTokens=!0,(0,o.ensure)((0,o.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.SemanticTokensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeSemanticTokensEmitter.fire()}));const[n,i]=this.getRegistration(t,e.semanticTokensProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=s.boolean(e.full)?e.full:void 0!==e.full,o=void 0!==e.full&&"boolean"!=typeof e.full&&!0===e.full.delta,a=new i.EventEmitter,c=n?{onDidChangeSemanticTokens:a.event,provideDocumentSemanticTokens:(e,t)=>{const n=this._client,i=n.middleware,o=(e,t)=>{const i={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(r.SemanticTokensRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSemanticTokens(e,t)),(e=>n.handleFailedRequest(r.SemanticTokensRequest.type,t,e,null)))};return i.provideDocumentSemanticTokens?i.provideDocumentSemanticTokens(e,t,o):o(e,t)},provideDocumentSemanticTokensEdits:o?(e,t,n)=>{const i=this._client,o=i.middleware,s=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),previousResultId:t};return i.sendRequest(r.SemanticTokensDeltaRequest.type,o,n).then((async e=>n.isCancellationRequested?null:r.SemanticTokens.is(e)?await i.protocol2CodeConverter.asSemanticTokens(e,n):await i.protocol2CodeConverter.asSemanticTokensEdits(e,n)),(e=>i.handleFailedRequest(r.SemanticTokensDeltaRequest.type,n,e,null)))};return o.provideDocumentSemanticTokensEdits?o.provideDocumentSemanticTokensEdits(e,t,n,s):s(e,t,n)}:void 0}:void 0,u=!0===e.range?{provideDocumentRangeSemanticTokens:(e,t,n)=>{const i=this._client,o=i.middleware,s=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),range:i.code2ProtocolConverter.asRange(t)};return i.sendRequest(r.SemanticTokensRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asSemanticTokens(e,n)),(e=>i.handleFailedRequest(r.SemanticTokensRangeRequest.type,n,e,null)))};return o.provideDocumentRangeSemanticTokens?o.provideDocumentRangeSemanticTokens(e,t,n,s):s(e,t,n)}}:void 0,l=[],d=this._client,f=d.protocol2CodeConverter.asSemanticTokensLegend(e.legend),h=d.protocol2CodeConverter.asDocumentSelector(t);return void 0!==c&&l.push(i.languages.registerDocumentSemanticTokensProvider(h,c,f)),void 0!==u&&l.push(i.languages.registerDocumentRangeSemanticTokensProvider(h,u,f)),[new i.Disposable((()=>l.forEach((e=>e.dispose())))),{range:u,full:c,onDidChangeSemanticTokensEmitter:a}]}}t.SemanticTokensFeature=a},4092:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureHelpFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.SignatureHelpRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.signatureInformation={documentationFormat:[r.MarkupKind.Markdown,r.MarkupKind.PlainText]},t.signatureInformation.parameterInformation={labelOffsetSupport:!0},t.signatureInformation.activeParameterSupport=!0,t.signatureInformation.noActiveParameterSupport=!0,t.contextSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.signatureHelpProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideSignatureHelp:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>o.sendRequest(r.SignatureHelpRequest.type,o.code2ProtocolConverter.asSignatureHelpParams(e,t,n),i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asSignatureHelp(e,i)),(e=>o.handleFailedRequest(r.SignatureHelpRequest.type,i,e,null))),a=o.middleware;return a.provideSignatureHelp?a.provideSignatureHelp(e,t,i,n,s):s(e,t,i,n)}};return[this.registerProvider(e,t),t]}registerProvider(e,t){const n=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(void 0===e.retriggerCharacters){const r=e.triggerCharacters||[];return i.languages.registerSignatureHelpProvider(n,t,...r)}{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return i.languages.registerSignatureHelpProvider(n,t,r)}}}t.SignatureHelpFeature=a},9504:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidSaveTextDocumentFeature=t.WillSaveWaitUntilFeature=t.WillSaveFeature=t.DidChangeTextDocumentFeature=t.DidCloseTextDocumentFeature=t.DidOpenTextDocumentFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(8820);class a extends o.TextDocumentEventFeature{constructor(e,t){super(e,i.workspace.onDidOpenTextDocument,r.DidOpenTextDocumentNotification.type,(()=>e.middleware.didOpen),(t=>e.code2ProtocolConverter.asOpenTextDocumentParams(t)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}get registrationType(){return r.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const t=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);i.workspace.textDocuments.forEach((e=>{const n=e.uri.toString();if(!this._syncedDocuments.has(n)&&i.languages.match(t,e)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e)){const t=this._client.middleware,i=e=>this._client.sendNotification(this._type,this._createParams(e));(t.didOpen?t.didOpen(e,i):i(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e)})),this._syncedDocuments.set(n,e)}}))}getTextDocument(e){return e}notificationSent(e,t,n){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,t,n)}}t.DidOpenTextDocumentFeature=a;class c extends o.TextDocumentEventFeature{constructor(e,t,n){super(e,i.workspace.onDidCloseTextDocument,r.DidCloseTextDocumentNotification.type,(()=>e.middleware.didClose),(t=>e.code2ProtocolConverter.asCloseTextDocumentParams(t)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t,this._pendingTextDocumentChanges=n}get registrationType(){return r.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,t,n){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,t,n)}unregister(e){const t=this._selectors.get(e);if(void 0===t)return;super.unregister(e);const n=this._selectors.values();this._syncedDocuments.forEach((e=>{if(i.languages.match(t,e)>0&&!this._selectorFilter(n,e)&&!this._client.hasDedicatedTextSynchronizationFeature(e)){const t=this._client.middleware,n=e=>this._client.sendNotification(this._type,this._createParams(e));this._syncedDocuments.delete(e.uri.toString()),(t.didClose?t.didClose(e,n):n(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e)}))}}))}}t.DidCloseTextDocumentFeature=c;class u extends o.DynamicDocumentFeature{constructor(e,t){super(e),this._changeData=new Map,this._onNotificationSent=new i.EventEmitter,this._onPendingChangeAdded=new i.EventEmitter,this._pendingTextDocumentChanges=t,this._syncKind=r.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return r.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&void 0!==n.change&&n.change!==r.TextDocumentSyncKind.None&&this.register({id:s.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:n.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=i.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}),this.updateSyncKind(e.registerOptions.syncKind))}*getDocumentSelectors(){for(const e of this._changeData.values())yield e.documentSelector}async callback(e){if(0===e.contentChanges.length)return;const t=e.document.uri,n=e.document.version,o=[];for(const s of this._changeData.values())if(i.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const i=this._client.middleware;if(s.syncKind===r.TextDocumentSyncKind.Incremental){const s=async e=>{const i=this._client.code2ProtocolConverter.asChangeTextDocumentParams(e,t,n);await this._client.sendNotification(r.DidChangeTextDocumentNotification.type,i),this.notificationSent(e.document,r.DidChangeTextDocumentNotification.type,i)};o.push(i.didChange?i.didChange(e,(e=>s(e))):s(e))}else if(s.syncKind===r.TextDocumentSyncKind.Full){const t=async e=>{const t=e.document.uri.toString();this._pendingTextDocumentChanges.set(t,e.document),this._onPendingChangeAdded.fire()};o.push(i.didChange?i.didChange(e,(e=>t(e))):t(e))}}return Promise.all(o).then(void 0,(e=>{throw this._client.error(`Sending document notification ${r.DidChangeTextDocumentNotification.type.method} failed`,e),e}))}notificationSent(e,t,n){this._onNotificationSent.fire({textDocument:e,type:t,params:n})}unregister(e){if(this._changeData.delete(e),0===this._changeData.size)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=r.TextDocumentSyncKind.None;else{this._syncKind=r.TextDocumentSyncKind.None;for(const e of this._changeData.values())if(this.updateSyncKind(e.syncKind),this._syncKind===r.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=r.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(0===this._pendingTextDocumentChanges.size)return[];let t;if(0===e.size)t=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{t=[];for(const n of this._pendingTextDocumentChanges)e.has(n[0])||(t.push(n[1]),this._pendingTextDocumentChanges.delete(n[0]))}return t}getProvider(e){for(const t of this._changeData.values())if(i.languages.match(t.documentSelector,e)>0)return{send:e=>this.callback(e)}}updateSyncKind(e){if(this._syncKind!==r.TextDocumentSyncKind.Full)switch(e){case r.TextDocumentSyncKind.Full:this._syncKind=e;break;case r.TextDocumentSyncKind.Incremental:this._syncKind===r.TextDocumentSyncKind.None&&(this._syncKind=r.TextDocumentSyncKind.Incremental)}}}t.DidChangeTextDocumentFeature=u;class l extends o.TextDocumentEventFeature{constructor(e){super(e,i.workspace.onWillSaveTextDocument,r.WillSaveTextDocumentNotification.type,(()=>e.middleware.willSave),(t=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(t)),(e=>e.document),((e,t)=>o.TextDocumentEventFeature.textDocumentFilter(e,t.document)))}get registrationType(){return r.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").willSave=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.willSave&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}getTextDocument(e){return e.document}}t.WillSaveFeature=l;class d extends o.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return r.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").willSaveWaitUntil=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.willSaveWaitUntil&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=i.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(o.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const t=this._client.middleware,n=e=>this._client.sendRequest(r.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(e)).then((async e=>{const t=await this._client.protocol2CodeConverter.asTextEdits(e);return void 0===t?[]:t}));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,n):n(e))}}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}t.WillSaveWaitUntilFeature=d;class f extends o.TextDocumentEventFeature{constructor(e){super(e,i.workspace.onDidSaveTextDocument,r.DidSaveTextDocumentNotification.type,(()=>e.middleware.didSave),(t=>e.code2ProtocolConverter.asSaveTextDocumentParams(t,this._includeText)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return r.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;if(t&&n&&n.save){const e="boolean"==typeof n.save?{includeText:!1}:{includeText:!!n.save.includeText};this.register({id:s.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},e)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}t.DidSaveTextDocumentFeature=f},276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.typeDefinitionProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideTypeDefinition:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.TypeDefinitionRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>i.handleFailedRequest(r.TypeDefinitionRequest.type,n,e,null))),s=i.middleware;return s.provideTypeDefinition?s.provideTypeDefinition(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.TypeDefinitionFeature=s},514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const i=n(1398),r=n(3286),o=n(9810);class s{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,t,n){const i=this.client,o=this.middleware,s=(e,t,n)=>{const o=i.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return i.sendRequest(r.TypeHierarchyPrepareRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(e,n)),(e=>i.handleFailedRequest(r.TypeHierarchyPrepareRequest.type,n,e,null)))};return o.prepareTypeHierarchy?o.prepareTypeHierarchy(e,t,n,s):s(e,t,n)}provideTypeHierarchySupertypes(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(r.TypeHierarchySupertypesRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(r.TypeHierarchySupertypesRequest.type,t,e,null)))};return i.provideTypeHierarchySupertypes?i.provideTypeHierarchySupertypes(e,t,o):o(e,t)}provideTypeHierarchySubtypes(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(r.TypeHierarchySubtypesRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(r.TypeHierarchySubtypesRequest.type,t,e,null)))};return i.provideTypeHierarchySubtypes?i.provideTypeHierarchySubtypes(e,t,o):o(e,t)}}class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"typeHierarchy").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.typeHierarchyProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=this._client,n=new s(t);return[i.languages.registerTypeHierarchyProvider(t.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.TypeHierarchyFeature=a},5671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=t.mapAsync=t.map=t.clearTestMode=t.setTestMode=t.Semaphore=t.Delayer=void 0;const i=n(3286);t.Delayer=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e=>{this.onSuccess=e})).then((()=>{this.completionPromise=void 0,this.onSuccess=void 0;const e=this.task();return this.task=void 0,e}))),(t>=0||void 0===this.timeout)&&(this.timeout=(0,i.RAL)().timer.setTimeout((()=>{this.timeout=void 0,this.onSuccess(void 0)}),t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();const e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return void 0!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){void 0!==this.timeout&&(this.timeout.dispose(),this.timeout=void 0)}},t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,i.RAL)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};let r=!1;t.setTestMode=function(){r=!0},t.clearTestMode=function(){r=!1};class o{constructor(e=15){this.yieldAfter=!0===r?Math.max(e,2):Math.max(e,15),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.counter=0,this.total=0,this.counterInterval=1,this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){const e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=2*this.total}}return!1}}t.map=async function(e,t,n,r){if(0===e.length)return[];const s=new Array(e.length),a=new o(r?.yieldAfter);function c(n){a.start();for(let i=n;i{(0,i.RAL)().timer.setImmediate((()=>{e(c(u))}))}));return s},t.mapAsync=async function(e,t,n,r){if(0===e.length)return[];const s=new Array(e.length),a=new o(r?.yieldAfter);async function c(i){a.start();for(let o=i;o{(0,i.RAL)().timer.setImmediate((()=>{e(c(u))}))}));return s},t.forEach=async function(e,t,n,r){if(0===e.length)return;const s=new o(r?.yieldAfter);function a(n){s.start();for(let i=n;i{(0,i.RAL)().timer.setImmediate((()=>{e(a(c))}))}))}},1027:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return"function"==typeof e}function r(e){return Array.isArray(e)}function o(e){return e&&i(e.then)}Object.defineProperty(t,"__esModule",{value:!0}),t.asPromise=t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=i,t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=o,t.asPromise=function(e){return e instanceof Promise?e:o(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)))})):Promise.resolve(e)}},8820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class i extends n{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return i._oneOf(i._chars)}constructor(){super([i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-","4",i._randomHex(),i._randomHex(),i._randomHex(),"-",i._oneOf(i._timeHighBits),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex()].join(""))}}function r(){return new i}i._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],i._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=r;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return o.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return r().asHex()}},6272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=t.arrayDiff=void 0;const i=n(8820),r=n(1398),o=n(3286);function s(e,t){if(null!=e)return e[t]}function a(e,t){return e.filter((e=>t.indexOf(e)<0))}t.arrayDiff=a,t.WorkspaceFoldersFeature=class{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return o.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const t=r.workspace.workspaceFolders;this.initializeWithFolders(t),e.workspaceFolders=void 0===t?null:t.map((e=>this.asProtocol(e)))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const t=this._client;t.onRequest(o.WorkspaceFoldersRequest.type,(e=>{const n=()=>{const e=r.workspace.workspaceFolders;return void 0===e?null:e.map((e=>this.asProtocol(e)))},i=t.middleware.workspace;return i&&i.workspaceFolders?i.workspaceFolders(e,n):n()}));const n=s(s(s(e,"workspace"),"workspaceFolders"),"changeNotifications");let a;"string"==typeof n?a=n:!0===n&&(a=i.generateUuid()),a&&this.register({id:a,registerOptions:void 0})}sendInitialEvent(e){let t;if(this._initialFolders&&e){const n=a(this._initialFolders,e),i=a(e,this._initialFolders);(i.length>0||n.length>0)&&(t=this.doSendEvent(i,n))}else this._initialFolders?t=this.doSendEvent([],this._initialFolders):e&&(t=this.doSendEvent(e,[]));void 0!==t&&t.catch((e=>{this._client.error(`Sending notification ${o.DidChangeWorkspaceFoldersNotification.type.method} failed`,e)}))}doSendEvent(e,t){const n={event:{added:e.map((e=>this.asProtocol(e))),removed:t.map((e=>this.asProtocol(e)))}};return this._client.sendNotification(o.DidChangeWorkspaceFoldersNotification.type,n)}register(e){const t=e.id,n=this._client,i=r.workspace.onDidChangeWorkspaceFolders((e=>{const t=e=>this.doSendEvent(e.added,e.removed),i=n.middleware.workspace;(i&&i.didChangeWorkspaceFolders?i.didChangeWorkspaceFolders(e,t):t(e)).catch((e=>{this._client.error(`Sending notification ${o.DidChangeWorkspaceFoldersNotification.type.method} failed`,e)}))}));this._listeners.set(t,i),this.sendInitialEvent(r.workspace.workspaceFolders)}unregister(e){const t=this._listeners.get(e);void 0!==t&&(this._listeners.delete(e),t.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return void 0===e?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}},3652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolFeature=void 0;const i=n(1398),r=n(3286),o=n(9810),s=n(7984),a=n(8820);class c extends o.WorkspaceFeature{constructor(e){super(e,r.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:s.SupportedSymbolKinds},t.tagSupport={valueSet:s.SupportedSymbolTags},t.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:a.generateUuid(),registerOptions:!0===e.workspaceSymbolProvider?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const t={provideWorkspaceSymbols:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.WorkspaceSymbolRequest.type,{query:e},t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformations(e,t)),(e=>n.handleFailedRequest(r.WorkspaceSymbolRequest.type,t,e,null))),o=n.middleware;return o.provideWorkspaceSymbols?o.provideWorkspaceSymbols(e,t,i):i(e,t)},resolveWorkspaceSymbol:!0===e.resolveProvider?(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.WorkspaceSymbolResolveRequest.type,n.code2ProtocolConverter.asWorkspaceSymbol(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformation(e)),(e=>n.handleFailedRequest(r.WorkspaceSymbolResolveRequest.type,t,e,null))),o=n.middleware;return o.resolveWorkspaceSymbol?o.resolveWorkspaceSymbol(e,t,i):i(e,t)}:void 0};return[i.languages.registerWorkspaceSymbolProvider(t),t]}}t.WorkspaceSymbolFeature=c},9439:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingMonitor=t.LanguageClient=t.TransportKind=void 0;const o=n(5317),s=n(9896),a=n(6928),c=n(1398),u=n(1027),l=n(710),d=n(1141),f=n(1776),h=n(5860),p=n(1722);r(n(1776),t),r(n(2685),t);const g="^1.89.0";var m,v,y,C,S,b;!function(e){e[e.stdio=0]="stdio",e[e.ipc=1]="ipc",e[e.pipe=2]="pipe",e[e.socket=3]="socket"}(m||(t.TransportKind=m={})),function(e){e.isSocket=function(e){const t=e;return t&&t.kind===m.socket&&u.number(t.port)}}(v||(v={})),function(e){e.is=function(e){return u.string(e.command)}}(y||(y={})),function(e){e.is=function(e){return u.string(e.module)}}(C||(C={})),function(e){e.is=function(e){const t=e;return t&&void 0!==t.writer&&void 0!==t.reader}}(S||(S={})),function(e){e.is=function(e){const t=e;return t&&void 0!==t.process&&"boolean"==typeof t.detached}}(b||(b={}));class w extends l.BaseLanguageClient{constructor(e,t,n,i,r){let o,s,a,c,l;u.string(t)?(o=e,s=t,a=n,c=i,l=!!r):(o=e.toLowerCase(),s=e,a=t,c=n,l=i),void 0===l&&(l=!1),super(o,s,c),this._serverOptions=a,this._forceDebug=l,this._isInDebugMode=l;try{this.checkVersion()}catch(e){throw u.string(e.message)&&this.outputChannel.appendLine(e.message),e}}checkVersion(){const e=h(c.version);if(!e)throw new Error(`No valid VS Code version detected. Version string is: ${c.version}`);if(e.prerelease&&e.prerelease.length>0&&(e.prerelease=[]),!p(e,g))throw new Error(`The language client requires VS Code version ${g} but received version ${c.version}`)}get isInDebugMode(){return this._isInDebugMode}async restart(){await this.stop(),this.isInDebugMode?(await new Promise((e=>setTimeout(e,1e3))),await this.start()):await this.start()}shutdown(e,t=2e3){return super.shutdown(e,t).finally((()=>{if(this._serverProcess){const e=this._serverProcess;this._serverProcess=void 0,void 0!==this._isDetached&&this._isDetached||this.checkProcessDied(e),this._isDetached=void 0}}))}checkProcessDied(e){e&&void 0!==e.pid&&setTimeout((()=>{try{void 0!==e.pid&&(process.kill(e.pid,0),(0,d.terminate)(e))}catch(e){}}),2e3)}handleConnectionClosed(){return this._serverProcess=void 0,super.handleConnectionClosed()}fillInitializeParams(e){super.fillInitializeParams(e),null===e.processId&&(e.processId=process.pid)}createMessageTransports(e){function t(e,t){if(!e&&!t)return;const n=Object.create(null);return Object.keys(process.env).forEach((e=>n[e]=process.env[e])),t&&(n.ELECTRON_RUN_AS_NODE="1",n.ELECTRON_NO_ASAR="1"),e&&Object.keys(e).forEach((t=>n[t]=e[t])),n}const n=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],i=["--debug","--debug-brk","--inspect","--inspect-brk"];function r(e){if(null===e.stdin||null===e.stdout||null===e.stderr)throw new Error("Process created without stdio streams")}const s=this._serverOptions;if(u.func(s))return s().then((t=>{if(l.MessageTransports.is(t))return this._isDetached=!!t.detached,t;if(S.is(t))return this._isDetached=!!t.detached,{reader:new f.StreamMessageReader(t.reader),writer:new f.StreamMessageWriter(t.writer)};{let n;return b.is(t)?(n=t.process,this._isDetached=t.detached):(n=t,this._isDetached=!1),n.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),{reader:new f.StreamMessageReader(n.stdout),writer:new f.StreamMessageWriter(n.stdin)}}}));let a;const c=s;return c.run||c.debug?this._forceDebug||function(){const e=process.execArgv;return!!e&&e.some((e=>n.some((t=>e.startsWith(t)))||i.some((t=>e===t))))}()?(a=c.debug,this._isInDebugMode=!0):(a=c.run,this._isInDebugMode=!1):a=s,this._getServerWorkingDir(a.options).then((n=>{if(C.is(a)&&a.module){const i=a,s=i.transport||m.stdio;if(!i.runtime){let a;return new Promise(((c,l)=>{const d=(i.args&&i.args.slice())??[];s===m.ipc?d.push("--node-ipc"):s===m.stdio?d.push("--stdio"):s===m.pipe?(a=(0,f.generateRandomPipeName)(),d.push(`--pipe=${a}`)):v.isSocket(s)&&d.push(`--socket=${s.port}`),d.push(`--clientProcessId=${process.pid.toString()}`);const h=i.options??Object.create(null);if(h.env=t(h.env,!0),h.execArgv=h.execArgv||[],h.cwd=n,h.silent=!0,s===m.ipc||s===m.stdio){const t=o.fork(i.module,d||[],h);r(t),this._serverProcess=t,t.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),s===m.ipc?(t.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),c({reader:new f.IPCMessageReader(this._serverProcess),writer:new f.IPCMessageWriter(this._serverProcess)})):c({reader:new f.StreamMessageReader(t.stdout),writer:new f.StreamMessageWriter(t.stdin)})}else s===m.pipe?(0,f.createClientPipeTransport)(a).then((t=>{const n=o.fork(i.module,d||[],h);r(n),this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),t.onConnected().then((e=>{c({reader:e[0],writer:e[1]})}),l)}),l):v.isSocket(s)&&(0,f.createClientSocketTransport)(s.port).then((t=>{const n=o.fork(i.module,d||[],h);r(n),this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),t.onConnected().then((e=>{c({reader:e[0],writer:e[1]})}),l)}),l)}))}{const r=[],a=i.options??Object.create(null);a.execArgv&&a.execArgv.forEach((e=>r.push(e))),r.push(i.module),i.args&&i.args.forEach((e=>r.push(e)));const c=Object.create(null);c.cwd=n,c.env=t(a.env,!1);const l=this._getRuntimePath(i.runtime,n);let d;if(s===m.ipc?(c.stdio=[null,null,null,"ipc"],r.push("--node-ipc")):s===m.stdio?r.push("--stdio"):s===m.pipe?(d=(0,f.generateRandomPipeName)(),r.push(`--pipe=${d}`)):v.isSocket(s)&&r.push(`--socket=${s.port}`),r.push(`--clientProcessId=${process.pid.toString()}`),s===m.ipc||s===m.stdio){const t=o.spawn(l,r,c);return t&&t.pid?(this._serverProcess=t,t.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),s===m.ipc?(t.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),Promise.resolve({reader:new f.IPCMessageReader(t),writer:new f.IPCMessageWriter(t)})):Promise.resolve({reader:new f.StreamMessageReader(t.stdout),writer:new f.StreamMessageWriter(t.stdin)})):R(t,`Launching server using runtime ${l} failed.`)}if(s===m.pipe)return(0,f.createClientPipeTransport)(d).then((t=>{const n=o.spawn(l,r,c);return n&&n.pid?(this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),t.onConnected().then((e=>({reader:e[0],writer:e[1]})))):R(n,`Launching server using runtime ${l} failed.`)}));if(v.isSocket(s))return(0,f.createClientSocketTransport)(s.port).then((t=>{const n=o.spawn(l,r,c);return n&&n.pid?(this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),t.onConnected().then((e=>({reader:e[0],writer:e[1]})))):R(n,`Launching server using runtime ${l} failed.`)}))}}else if(y.is(a)&&a.command){const t=a,i=void 0!==a.args?a.args.slice(0):[];let r;const s=a.transport;if(s===m.stdio)i.push("--stdio");else if(s===m.pipe)r=(0,f.generateRandomPipeName)(),i.push(`--pipe=${r}`);else if(v.isSocket(s))i.push(`--socket=${s.port}`);else if(s===m.ipc)throw new Error("Transport kind ipc is not support for command executable");const c=Object.assign({},t.options);if(c.cwd=c.cwd||n,void 0===s||s===m.stdio){const n=o.spawn(t.command,i,c);return n&&n.pid?(n.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),this._serverProcess=n,this._isDetached=!!c.detached,Promise.resolve({reader:new f.StreamMessageReader(n.stdout),writer:new f.StreamMessageWriter(n.stdin)})):R(n,`Launching server using command ${t.command} failed.`)}if(s===m.pipe)return(0,f.createClientPipeTransport)(r).then((n=>{const r=o.spawn(t.command,i,c);return r&&r.pid?(this._serverProcess=r,this._isDetached=!!c.detached,r.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),r.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),n.onConnected().then((e=>({reader:e[0],writer:e[1]})))):R(r,`Launching server using command ${t.command} failed.`)}));if(v.isSocket(s))return(0,f.createClientSocketTransport)(s.port).then((n=>{const r=o.spawn(t.command,i,c);return r&&r.pid?(this._serverProcess=r,this._isDetached=!!c.detached,r.stderr.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),r.stdout.on("data",(t=>this.outputChannel.append(u.string(t)?t:t.toString(e)))),n.onConnected().then((e=>({reader:e[0],writer:e[1]})))):R(r,`Launching server using command ${t.command} failed.`)}))}return Promise.reject(new Error("Unsupported server configuration "+JSON.stringify(s,null,4)))})).finally((()=>{void 0!==this._serverProcess&&this._serverProcess.on("exit",((e,t)=>{0===e?this.info("Server process exited successfully",void 0,!1):null!==e&&this.error(`Server process exited with code ${e}.`,void 0,!1),null!==t&&this.error(`Server process exited with signal ${t}.`,void 0,!1)}))}))}_getRuntimePath(e,t){if(a.isAbsolute(e))return e;const n=this._mainGetRootPath();if(void 0!==n){const t=a.join(n,e);if(s.existsSync(t))return t}if(void 0!==t){const n=a.join(t,e);if(s.existsSync(n))return n}return e}_mainGetRootPath(){const e=c.workspace.workspaceFolders;if(!e||0===e.length)return;const t=e[0];return"file"===t.uri.scheme?t.uri.fsPath:void 0}_getServerWorkingDir(e){let t=e&&e.cwd;return t||(t=this.clientOptions.workspaceFolder?this.clientOptions.workspaceFolder.uri.fsPath:this._mainGetRootPath()),t?new Promise((e=>{s.lstat(t,((n,i)=>{e(!n&&i.isDirectory()?t:void 0)}))})):Promise.resolve(void 0)}}function R(e,t){return null===e?Promise.reject(t):new Promise(((n,i)=>{e.on("error",(e=>{i(`${t} ${e}`)})),setImmediate((()=>i(t)))}))}t.LanguageClient=w,t.SettingMonitor=class{constructor(e,t){this._client=e,this._setting=t,this._listeners=[]}start(){return c.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration,this,this._listeners),this.onDidChangeConfiguration(),new c.Disposable((()=>{this._client.needsStop()&&this._client.stop()}))}onDidChangeConfiguration(){const e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,n=e>=0?this._setting.substr(e+1):void 0,i=n?c.workspace.getConfiguration(t).get(n,!1):c.workspace.getConfiguration(t);i&&this._client.needsStart()?this._client.start().catch((e=>this._client.error("Start failed after configuration change",e,"force"))):!i&&this._client.needsStop()&&this._client.stop().catch((e=>this._client.error("Stop failed after configuration change",e,"force")))}}},1141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.terminate=void 0;const i=n(5317),r=n(6928),o="win32"===process.platform,s="darwin"===process.platform,a="linux"===process.platform;t.terminate=function(e,t){if(o)try{const n={stdio:["pipe","pipe","ignore"]};return t&&(n.cwd=t),i.execFileSync("taskkill",["/T","/F","/PID",e.pid.toString()],n),!0}catch(e){return!1}else{if(!a&&!s)return e.kill("SIGKILL"),!0;try{const t=(0,r.join)(__dirname,"terminateProcess.sh");return!i.spawnSync(t,[e.pid.toString()]).error}catch(e){return!1}}}},7935:(e,t,n)=>{"use strict";e.exports=n(9439)},3434:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(n(2087),t),r(n(4437),t),r(n(7096),t),r(n(6948),t);var o,s=n(7784);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800}(o||(t.LSPErrorCodes=o={}))},7784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const i=n(2087);t.createProtocolConnection=function(e,t,n,r){return i.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,i.createMessageConnection)(e,t,n,r)}},7096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;const i=n(2087);var r;!function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"}(r||(t.MessageDirection=r={})),t.RegistrationType=class{constructor(e){this.method=e}};class o extends i.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=o;class s extends i.RequestType{constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolRequestType=s;class a extends i.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=a;class c extends i.NotificationType{constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolNotificationType=c},6297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const i=n(7096);var r,o,s;!function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.CallHierarchyPrepareRequest=r={})),function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.CallHierarchyIncomingCallsRequest=o={})),function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.CallHierarchyOutgoingCallsRequest=s={}))},5908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const i=n(7096);var r,o;!function(e){e.method="textDocument/documentColor",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.DocumentColorRequest=r={})),function(e){e.method="textDocument/colorPresentation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.ColorPresentationRequest=o={}))},9488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const i=n(7096);var r;!function(e){e.method="workspace/configuration",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(r||(t.ConfigurationRequest=r={}))},4486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const i=n(7096);var r;!function(e){e.method="textDocument/declaration",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.DeclarationRequest=r={}))},4735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const i=n(2087),r=n(7786),o=n(7096);var s,a,c,u,l;!function(e){e.is=function(e){const t=e;return t&&r.boolean(t.retriggerRequest)}}(s||(t.DiagnosticServerCancellationData=s={})),function(e){e.Full="full",e.Unchanged="unchanged"}(a||(t.DocumentDiagnosticReportKind=a={})),function(e){e.method="textDocument/diagnostic",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolRequestType(e.method),e.partialResult=new i.ProgressType}(c||(t.DocumentDiagnosticRequest=c={})),function(e){e.method="workspace/diagnostic",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolRequestType(e.method),e.partialResult=new i.ProgressType}(u||(t.WorkspaceDiagnosticRequest=u={})),function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=o.MessageDirection.serverToClient,e.type=new o.ProtocolRequestType0(e.method)}(l||(t.DiagnosticRefreshRequest=l={}))},6284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const i=n(7096);var r,o,s,a,c,u,l;!function(e){e.file="file",e.folder="folder"}(r||(t.FileOperationPatternKind=r={})),function(e){e.method="workspace/willCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.WillCreateFilesRequest=o={})),function(e){e.method="workspace/didCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(s||(t.DidCreateFilesNotification=s={})),function(e){e.method="workspace/willRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(a||(t.WillRenameFilesRequest=a={})),function(e){e.method="workspace/didRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(c||(t.DidRenameFilesNotification=c={})),function(e){e.method="workspace/didDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(u||(t.DidDeleteFilesNotification=u={})),function(e){e.method="workspace/willDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(l||(t.WillDeleteFilesRequest=l={}))},8958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;const i=n(7096);var r,o;!function(e){e.method="textDocument/foldingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.FoldingRangeRequest=r={})),function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(o||(t.FoldingRangeRefreshRequest=o={}))},2434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const i=n(7096);var r;!function(e){e.method="textDocument/implementation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.ImplementationRequest=r={}))},4940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const i=n(7096);var r,o,s;!function(e){e.method="textDocument/inlayHint",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.InlayHintRequest=r={})),function(e){e.method="inlayHint/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.InlayHintResolveRequest=o={})),function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(s||(t.InlayHintRefreshRequest=s={}))},8575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequest=void 0;const i=n(7096);var r;!function(e){e.method="textDocument/inlineCompletion",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.InlineCompletionRequest=r={}))},744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const i=n(7096);var r,o;!function(e){e.method="textDocument/inlineValue",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.InlineValueRequest=r={})),function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(o||(t.InlineValueRefreshRequest=o={}))},6948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.RegularExpressionEngineKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=t.WorkspaceSymbolRequest=void 0,t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=void 0;const i=n(7096),r=n(4437),o=n(7786),s=n(2434);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return s.ImplementationRequest}});const a=n(1121);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return a.TypeDefinitionRequest}});const c=n(3219);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return c.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return c.DidChangeWorkspaceFoldersNotification}});const u=n(9488);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return u.ConfigurationRequest}});const l=n(5908);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return l.ColorPresentationRequest}});const d=n(8958);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return d.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return d.FoldingRangeRefreshRequest}});const f=n(4486);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const h=n(7267);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return h.SelectionRangeRequest}});const p=n(5923);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return p.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return p.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return p.WorkDoneProgressCancelNotification}});const g=n(6297);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return g.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return g.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return g.CallHierarchyPrepareRequest}});const m=n(3562);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return m.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return m.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return m.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return m.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return m.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return m.SemanticTokensRegistrationType}});const v=n(9248);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return v.ShowDocumentRequest}});const y=n(9744);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return y.LinkedEditingRangeRequest}});const C=n(6284);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return C.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return C.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return C.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return C.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return C.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return C.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return C.WillDeleteFilesRequest}});const S=n(2795);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return S.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return S.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return S.MonikerRequest}});const b=n(7553);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return b.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return b.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return b.TypeHierarchySupertypesRequest}});const w=n(744);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return w.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return w.InlineValueRefreshRequest}});const R=n(4940);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return R.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return R.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return R.InlayHintRefreshRequest}});const D=n(4735);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return D.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return D.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return D.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return D.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return D.DiagnosticRefreshRequest}});const T=n(3633);Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return T.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return T.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return T.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return T.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return T.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return T.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return T.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return T.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return T.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return T.DidCloseNotebookDocumentNotification}});const _=n(8575);var P,k,x,E,I,O,F,N,M,q,L,A,j,H,$,U,K,z,W,V,B,X,G,J,Z,Q,Y,ee,te,ne,ie,re,oe,se,ae,ce,ue,le,de,fe,he,pe,ge,me,ve,ye,Ce,Se,be,we,Re,De,Te,_e,Pe,ke,xe,Ee,Ie,Oe,Fe,Ne,Me,qe,Le,Ae;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return _.InlineCompletionRequest}}),function(e){e.is=function(e){const t=e;return o.string(t)||o.string(t.language)||o.string(t.scheme)||o.string(t.pattern)}}(P||(t.TextDocumentFilter=P={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebookType)||o.string(t.scheme)||o.string(t.pattern))}}(k||(t.NotebookDocumentFilter=k={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebook)||k.is(t.notebook))&&(void 0===t.language||o.string(t.language))}}(x||(t.NotebookCellTextDocumentFilter=x={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(const t of e)if(!o.string(t)&&!P.is(t)&&!x.is(t))return!1;return!0}}(E||(t.DocumentSelector=E={})),function(e){e.method="client/registerCapability",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(I||(t.RegistrationRequest=I={})),function(e){e.method="client/unregisterCapability",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(O||(t.UnregistrationRequest=O={})),function(e){e.Create="create",e.Rename="rename",e.Delete="delete"}(F||(t.ResourceOperationKind=F={})),function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"}(N||(t.FailureHandlingKind=N={})),function(e){e.ES2020="ES2020"}(M||(t.RegularExpressionEngineKind=M={})),function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"}(q||(t.PositionEncodingKind=q={})),function(e){e.hasId=function(e){const t=e;return t&&o.string(t.id)&&t.id.length>0}}(L||(t.StaticRegistrationOptions=L={})),function(e){e.is=function(e){const t=e;return t&&(null===t.documentSelector||E.is(t.documentSelector))}}(A||(t.TextDocumentRegistrationOptions=A={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(void 0===t.workDoneProgress||o.boolean(t.workDoneProgress))},e.hasWorkDoneProgress=function(e){const t=e;return t&&o.boolean(t.workDoneProgress)}}(j||(t.WorkDoneProgressOptions=j={})),function(e){e.method="initialize",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(H||(t.InitializeRequest=H={})),function(e){e.unknownProtocolVersion=1}($||(t.InitializeErrorCodes=$={})),function(e){e.method="initialized",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(U||(t.InitializedNotification=U={})),function(e){e.method="shutdown",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType0(e.method)}(K||(t.ShutdownRequest=K={})),function(e){e.method="exit",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType0(e.method)}(z||(t.ExitNotification=z={})),function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(W||(t.DidChangeConfigurationNotification=W={})),function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5}(V||(t.MessageType=V={})),function(e){e.method="window/showMessage",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}(B||(t.ShowMessageNotification=B={})),function(e){e.method="window/showMessageRequest",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(X||(t.ShowMessageRequest=X={})),function(e){e.method="window/logMessage",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}(G||(t.LogMessageNotification=G={})),function(e){e.method="telemetry/event",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}(J||(t.TelemetryEventNotification=J={})),function(e){e.None=0,e.Full=1,e.Incremental=2}(Z||(t.TextDocumentSyncKind=Z={})),function(e){e.method="textDocument/didOpen",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(Q||(t.DidOpenTextDocumentNotification=Q={})),function(e){e.isIncremental=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}(Y||(t.TextDocumentContentChangeEvent=Y={})),function(e){e.method="textDocument/didChange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(ee||(t.DidChangeTextDocumentNotification=ee={})),function(e){e.method="textDocument/didClose",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(te||(t.DidCloseTextDocumentNotification=te={})),function(e){e.method="textDocument/didSave",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(ne||(t.DidSaveTextDocumentNotification=ne={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(ie||(t.TextDocumentSaveReason=ie={})),function(e){e.method="textDocument/willSave",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(re||(t.WillSaveTextDocumentNotification=re={})),function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(oe||(t.WillSaveTextDocumentWaitUntilRequest=oe={})),function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(se||(t.DidChangeWatchedFilesNotification=se={})),function(e){e.Created=1,e.Changed=2,e.Deleted=3}(ae||(t.FileChangeType=ae={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(r.URI.is(t.baseUri)||r.WorkspaceFolder.is(t.baseUri))&&o.string(t.pattern)}}(ce||(t.RelativePattern=ce={})),function(e){e.Create=1,e.Change=2,e.Delete=4}(ue||(t.WatchKind=ue={})),function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}(le||(t.PublishDiagnosticsNotification=le={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3}(de||(t.CompletionTriggerKind=de={})),function(e){e.method="textDocument/completion",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(fe||(t.CompletionRequest=fe={})),function(e){e.method="completionItem/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(he||(t.CompletionResolveRequest=he={})),function(e){e.method="textDocument/hover",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(pe||(t.HoverRequest=pe={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3}(ge||(t.SignatureHelpTriggerKind=ge={})),function(e){e.method="textDocument/signatureHelp",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(me||(t.SignatureHelpRequest=me={})),function(e){e.method="textDocument/definition",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(ve||(t.DefinitionRequest=ve={})),function(e){e.method="textDocument/references",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(ye||(t.ReferencesRequest=ye={})),function(e){e.method="textDocument/documentHighlight",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Ce||(t.DocumentHighlightRequest=Ce={})),function(e){e.method="textDocument/documentSymbol",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Se||(t.DocumentSymbolRequest=Se={})),function(e){e.method="textDocument/codeAction",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(be||(t.CodeActionRequest=be={})),function(e){e.method="codeAction/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(we||(t.CodeActionResolveRequest=we={})),function(e){e.method="workspace/symbol",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Re||(t.WorkspaceSymbolRequest=Re={})),function(e){e.method="workspaceSymbol/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(De||(t.WorkspaceSymbolResolveRequest=De={})),function(e){e.method="textDocument/codeLens",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Te||(t.CodeLensRequest=Te={})),function(e){e.method="codeLens/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(_e||(t.CodeLensResolveRequest=_e={})),function(e){e.method="workspace/codeLens/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(Pe||(t.CodeLensRefreshRequest=Pe={})),function(e){e.method="textDocument/documentLink",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(ke||(t.DocumentLinkRequest=ke={})),function(e){e.method="documentLink/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(xe||(t.DocumentLinkResolveRequest=xe={})),function(e){e.method="textDocument/formatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Ee||(t.DocumentFormattingRequest=Ee={})),function(e){e.method="textDocument/rangeFormatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Ie||(t.DocumentRangeFormattingRequest=Ie={})),function(e){e.method="textDocument/rangesFormatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Oe||(t.DocumentRangesFormattingRequest=Oe={})),function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Fe||(t.DocumentOnTypeFormattingRequest=Fe={})),function(e){e.Identifier=1}(Ne||(t.PrepareSupportDefaultBehavior=Ne={})),function(e){e.method="textDocument/rename",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Me||(t.RenameRequest=Me={})),function(e){e.method="textDocument/prepareRename",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(qe||(t.PrepareRenameRequest=qe={})),function(e){e.method="workspace/executeCommand",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Le||(t.ExecuteCommandRequest=Le={})),function(e){e.method="workspace/applyEdit",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType("workspace/applyEdit")}(Ae||(t.ApplyWorkspaceEditRequest=Ae={}))},9744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const i=n(7096);var r;!function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.LinkedEditingRangeRequest=r={}))},2795:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const i=n(7096);var r,o,s;!function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"}(r||(t.UniquenessLevel=r={})),function(e){e.$import="import",e.$export="export",e.local="local"}(o||(t.MonikerKind=o={})),function(e){e.method="textDocument/moniker",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.MonikerRequest=s={}))},3633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const i=n(4437),r=n(7786),o=n(7096);var s,a,c,u,l,d,f,h,p,g;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(s||(t.NotebookCellKind=s={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return r.objectLiteral(t)&&i.uinteger.is(t.executionOrder)&&(void 0===t.success||r.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(a||(t.ExecutionSummary=a={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const i=Array.isArray(e),o=Array.isArray(n);if(i!==o)return!1;if(i&&o){if(e.length!==n.length)return!1;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const i=n(2087),r=n(7096);var o,s,a;!function(e){e.type=new i.ProgressType,e.is=function(t){return t===e.type}}(o||(t.WorkDoneProgress=o={})),function(e){e.method="window/workDoneProgress/create",e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType(e.method)}(s||(t.WorkDoneProgressCreateRequest=s={})),function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method)}(a||(t.WorkDoneProgressCancelNotification=a={}))},7267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const i=n(7096);var r;!function(e){e.method="textDocument/selectionRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.SelectionRangeRequest=r={}))},3562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const i=n(7096);var r,o,s,a,c,u;!function(e){e.Relative="relative"}(r||(t.TokenFormat=r={})),function(e){e.method="textDocument/semanticTokens",e.type=new i.RegistrationType(e.method)}(o||(t.SemanticTokensRegistrationType=o={})),function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=o.method}(s||(t.SemanticTokensRequest=s={})),function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=o.method}(a||(t.SemanticTokensDeltaRequest=a={})),function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=o.method}(c||(t.SemanticTokensRangeRequest=c={})),function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(u||(t.SemanticTokensRefreshRequest=u={}))},9248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const i=n(7096);var r;!function(e){e.method="window/showDocument",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(r||(t.ShowDocumentRequest=r={}))},1121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const i=n(7096);var r;!function(e){e.method="textDocument/typeDefinition",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TypeDefinitionRequest=r={}))},7553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const i=n(7096);var r,o,s;!function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TypeHierarchyPrepareRequest=r={})),function(e){e.method="typeHierarchy/supertypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.TypeHierarchySupertypesRequest=o={})),function(e){e.method="typeHierarchy/subtypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.TypeHierarchySubtypesRequest=s={}))},3219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const i=n(7096);var r,o;!function(e){e.method="workspace/workspaceFolders",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(r||(t.WorkspaceFoldersRequest=r={})),function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(o||(t.DidChangeWorkspaceFoldersNotification=o={}))},7786:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},3286:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const o=n(1991);r(n(1991),t),r(n(3434),t),t.createProtocolConnection=function(e,t,n,i){return(0,o.createMessageConnection)(e,t,n,i)}},1776:(e,t,n)=>{"use strict";e.exports=n(3286)},7103:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},9691:(e,t,n)=>{"use strict";function i(e){var t=this;if(t instanceof i||(t=new i),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,n=this.head.value}for(var r=0;null!==i;r++)n=e(n,i.value,r),i=i.next;return n},i.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==i;r--)n=e(n,i.value,r),i=i.prev;return n},i.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},i.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},i.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new i;if(tthis.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&rthis.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},i.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languageServerDescription=t.SettingIds=void 0,t.startClient=async function(e,t,n){const i=(0,a.getLanguageParticipants)();e.subscriptions.push(i);let r,o=await S(e,i,t,n);return i.onDidChange((()=>{r&&r.dispose(),r=n.timer.setTimeout((async()=>{if(o){n.logOutputChannel.info("Extensions have changed, restarting JSON server..."),n.logOutputChannel.info("");const r=o;o=void 0,await r.dispose(),o=await S(e,i,t,n)}}),2e3)})),{dispose:async()=>{r?.dispose(),await(o?.dispose())}}};const i=n(1398),r=n(9439),o=n(9168),s=n(3826),a=n(4522);var c,u,l,d,f,h,p;!function(e){e.type=new r.RequestType("vscode/content")}(c||(c={})),function(e){e.type=new r.NotificationType("json/schemaContent")}(u||(u={})),function(e){e.type=new r.RequestType("json/validate")}(l||(l={})),function(e){e.type=new r.RequestType("json/languageStatus")}(d||(d={})),function(e){e.type=new r.RequestType("json/sort")}(f||(f={})),function(e){e.type=new r.NotificationType("json/schemaAssociations")}(h||(h={})),function(e){e.enableFormatter="json.format.enable",e.enableKeepLines="json.format.keepLines",e.enableValidation="json.validate.enable",e.enableSchemaDownload="json.schemaDownload.enable",e.maxItemsComputed="json.maxItemsComputed",e.editorFoldingMaximumRegions="editor.foldingMaximumRegions",e.editorColorDecoratorsLimit="editor.colorDecoratorsLimit",e.editorSection="editor",e.foldingMaximumRegions="foldingMaximumRegions",e.colorDecoratorsLimit="colorDecoratorsLimit"}(p||(t.SettingIds=p={})),t.languageServerDescription=i.l10n.t("JSON Language Server");let g=5e3,m=5e3,v=5e3,y=5e3,C=5e3;async function S(e,n,o,a){const m=[];let v;const y=n.documentSelector,C=i.window.createStatusBarItem("status.json.resolveError",i.StatusBarAlignment.Right,0);C.name=i.l10n.t("JSON: Schema Resolution Error"),C.text="$(alert)",m.push(C);const S=new Map;let R=!0,P=!1;const k=(0,s.createLimitStatusItem)((e=>(0,s.createDocumentSymbolsLimitItem)(y,p.maxItemsComputed,e)));function x(e,t){const n=t.findIndex(_);if(-1!==n){const r=t[n];S.set(e.toString(),r.message),R||(t=t.filter((e=>!_(e)))),i.window.activeTextEditor&&i.window.activeTextEditor.document.uri.toString()===e.toString()&&C.show()}return t}m.push(k),m.push(i.commands.registerCommand("json.clearCache",(async()=>{if(P&&a.schemaRequests.clearCache){const e=await a.schemaRequests.clearCache();await I.sendNotification(u.type,e)}i.window.showInformationMessage(i.l10n.t("JSON schema cache cleared."))}))),m.push(i.commands.registerCommand("json.sort",(async()=>{if(P){const e=i.window.activeTextEditor;if(e){const t=e.options,n=await async function(e,t=4,n=!0){const r=i.workspace.getConfiguration("files",e),o={tabSize:Number(t),insertSpaces:Boolean(n),trimTrailingWhitespace:r.get("trimTrailingWhitespace"),trimFinalNewlines:r.get("trimFinalNewlines"),insertFinalNewline:r.get("insertFinalNewline")},s={uri:e.uri.toString(),options:o};return(await I.sendRequest(f.type,s)).map((e=>new i.TextEdit(new i.Range(e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character),e.newText)))}(e.document,t.tabSize,t.insertSpaces);await e.edit((e=>{for(const t of n)e.replace(I.protocol2CodeConverter.asRange(t.range),t.newText)}))||i.window.showErrorMessage(i.l10n.t("Failed to sort the JSONC document, please consider opening an issue."))}}})));const E={documentSelector:y,initializationOptions:{handledSchemaProtocols:["file"],provideFormatter:!1,customCapabilities:{rangeFormatting:{editLimit:1e4}}},synchronize:{configurationSection:["json","http"],fileEvents:i.workspace.createFileSystemWatcher("**/*.json")},middleware:{workspace:{didChangeConfiguration:()=>I.sendNotification(r.DidChangeConfigurationNotification.type,{settings:w()})},provideDiagnostics:async(e,t,n,o)=>{const s=await o(e,t,n);if(s&&s.kind===r.DocumentDiagnosticReportKind.Full){const t=e instanceof i.Uri?e:e.uri;s.items=x(t,s.items)}return s},handleDiagnostics:(e,t,n)=>{n(e,t=x(e,t))},provideCompletionItem(e,t,n,r,o){function s(e){const n=e.range;n instanceof i.Range&&n.end.isAfter(t)&&n.start.isBeforeOrEqual(t)&&(e.range={inserting:new i.Range(n.start,t),replacing:n}),e.documentation instanceof i.MarkdownString&&(e.documentation=T(e.documentation))}function a(e){return e&&(Array.isArray(e)?e:e.items).forEach(s),e}const c=o(e,t,n,r);return D(c)?c.then(a):a(c)},provideHover(e,t,n,r){function o(e){return e&&Array.isArray(e.contents)&&(e.contents=e.contents.map((e=>e instanceof i.MarkdownString?T(e):e))),e}const s=r(e,t,n);return D(s)?s.then(o):o(s)},provideFoldingRanges(e,t,n,i){const r=i(e,t,n);return D(r),r},provideDocumentColors(e,t,n){const i=n(e,t);return D(i),i},provideDocumentSymbols(e,t,n){function r(e){return e.reduce(((e,t)=>e+1+r(t.children)),0)}function o(t){return Array.isArray(t)&&(function(e){return e[0]instanceof i.DocumentSymbol}(t)?r(t):t.length)>g?k.update(e,g):k.update(e,!1),t}const s=n(e,t);return D(s)?s.then(o):o(s)}}};E.outputChannel=a.logOutputChannel;const I=o("json",t.languageServerDescription,E);I.registerProposedFeatures();const O={};I.onRequest(c.type,(e=>{const t=i.Uri.parse(e);return"untitled"===t.scheme?Promise.reject(new r.ResponseError(3,i.l10n.t("Unable to load {0}",t.toString()))):"http"!==t.scheme&&"https"!==t.scheme?i.workspace.openTextDocument(t).then((e=>(O[t.toString()]=!0,e.getText())),(e=>Promise.reject(new r.ResponseError(2,e.toString())))):R?(a.telemetry&&"schema.management.azure.com"===t.authority&&a.telemetry.sendTelemetryEvent("json.schema",{schemaURL:e}),a.schemaRequests.getContent(e).catch((e=>Promise.reject(new r.ResponseError(4,e.toString()))))):Promise.reject(new r.ResponseError(1,i.l10n.t("Downloading schemas is disabled through setting '{0}'",p.enableSchemaDownload)))})),await I.start(),P=!0;const F=e=>!!O[e]&&(I.sendNotification(u.type,e),!0);m.push(i.workspace.onDidChangeTextDocument((e=>F(e.document.uri.toString())))),m.push(i.workspace.onDidCloseTextDocument((e=>{const t=e.uri.toString();F(t)&&delete O[t],S.delete(t)}))),m.push(i.window.onDidChangeActiveTextEditor((e=>{if(!e)return;const t=e.document.uri.toString();t&&S.has(t)?C.show():C.hide()})));const N=()=>{if(i.window.activeTextEditor){C.text="$(watch)";const e=i.window.activeTextEditor.document.uri.toString();I.sendRequest(l.type,e).then((t=>{const n=t.findIndex(_);if(-1!==n){const i=t[n];S.set(e,i.message)}else C.hide();C.text="$(alert)"}))}};function M(){const e=i.workspace.getConfiguration().get(p.enableFormatter);!e&&v?(v.dispose(),v=void 0):e&&!v&&(v=i.languages.registerDocumentRangeFormattingEditProvider(y,{provideDocumentRangeFormattingEdits(e,t,n,o){const s=i.workspace.getConfiguration("files",e),a={trimTrailingWhitespace:s.get("trimTrailingWhitespace"),trimFinalNewlines:s.get("trimFinalNewlines"),insertFinalNewline:s.get("insertFinalNewline")},c={textDocument:I.code2ProtocolConverter.asTextDocumentIdentifier(e),range:I.code2ProtocolConverter.asRange(t),options:I.code2ProtocolConverter.asFormattingOptions(n,a)};return I.sendRequest(r.DocumentRangeFormattingRequest.type,c,o).then(I.protocol2CodeConverter.asTextEdits,(e=>(I.handleFailedRequest(r.DocumentRangeFormattingRequest.type,void 0,e,[]),Promise.resolve([]))))}}))}function q(){R=!1!==i.workspace.getConfiguration().get(p.enableSchemaDownload),R?(C.tooltip=i.l10n.t("Unable to resolve schema. Click to retry."),C.command="_json.retryResolveSchema",N()):(C.tooltip=i.l10n.t("Downloading schemas is disabled. Click to configure."),C.command={command:"workbench.action.openSettings",arguments:[p.enableSchemaDownload],title:""})}return m.push(i.commands.registerCommand("_json.retryResolveSchema",N)),I.sendNotification(h.type,b()),m.push(i.extensions.onDidChange((e=>{I.sendNotification(h.type,b())}))),M(),m.push({dispose:()=>v&&v.dispose()}),q(),m.push(i.workspace.onDidChangeConfiguration((e=>{e.affectsConfiguration(p.enableFormatter)?M():e.affectsConfiguration(p.enableSchemaDownload)?q():(e.affectsConfiguration(p.editorFoldingMaximumRegions)||e.affectsConfiguration(p.editorColorDecoratorsLimit))&&I.sendNotification(r.DidChangeConfigurationNotification.type,{settings:w()})}))),m.push((0,s.createLanguageStatusItem)(y,(e=>I.sendRequest(d.type,e)))),{dispose:async()=>{await I.stop(),m.forEach((e=>e.dispose())),v?.dispose()}}}function b(e){const t=[];return i.extensions.all.forEach((e=>{const n=e.packageJSON;if(n&&n.contributes&&n.contributes.jsonValidation){const r=n.contributes.jsonValidation;Array.isArray(r)&&r.forEach((n=>{let{fileMatch:r,url:o}=n;if("string"==typeof r&&(r=[r]),Array.isArray(r)&&"string"==typeof o){let n=o;"."===n[0]&&"/"===n[1]&&(n=i.Uri.joinPath(e.extensionUri,n).toString()),r=r.map((e=>("%"===e[0]?e=(e=(e=e.replace(/%APP_SETTINGS_HOME%/,"/User")).replace(/%MACHINE_SETTINGS_HOME%/,"/Machine")).replace(/%APP_WORKSPACES_HOME%/,"/Workspaces"):e.match(/^(\w+:\/\/|\/|!)/)||(e="/"+e),e))),t.push({fileMatch:r,uri:n})}}))}})),t}function w(){const e=i.workspace.getConfiguration(),t=i.workspace.getConfiguration("http"),n=e=>Math.trunc(Math.max(0,Number(e)))||5e3;g=n(i.workspace.getConfiguration().get(p.maxItemsComputed));const r=i.workspace.getConfiguration(p.editorSection,{languageId:"json"}),o=i.workspace.getConfiguration(p.editorSection,{languageId:"jsonc"});m=n(r.get(p.foldingMaximumRegions)),v=n(o.get(p.foldingMaximumRegions)),y=n(r.get(p.colorDecoratorsLimit)),C=n(o.get(p.colorDecoratorsLimit));const s=[],a={http:{proxy:t.get("proxy"),proxyStrictSSL:t.get("proxyStrictSSL")},json:{validate:{enable:e.get(p.enableValidation)},format:{enable:e.get(p.enableFormatter)},keepLines:{enable:e.get(p.enableKeepLines)},schemas:s,resultLimit:g+1,jsonFoldingLimit:m+1,jsoncFoldingLimit:v+1,jsonColorDecoratorLimit:y+1,jsoncColorDecoratorLimit:C+1}},c=(e,t,n)=>{if(e)for(const i of e){const e=R(i,n);if(e){const n={url:e,fileMatch:i.fileMatch,folderUri:t,schema:i.schema};s.push(n)}}},u=i.workspace.workspaceFolders??[],l=i.workspace.getConfiguration("json",null).inspect("schemas");if(l)if(c(l.globalValue,void 0,void 0),i.workspace.workspaceFile){if(l.workspaceValue){const e=i.Uri.joinPath(i.workspace.workspaceFile,"..");c(l.workspaceValue,void 0,e)}for(const e of u){const t=e.uri,n=i.workspace.getConfiguration("json",t).inspect("schemas");c(n?.workspaceFolderValue,t.toString(!1),t)}}else l.workspaceValue&&1===u.length&&c(l.workspaceValue,void 0,u[0].uri);return a}function R(e,t){let n=e.url;return n?!t||"."!==n[0]&&"/"!==n[0]||(n=i.Uri.joinPath(t,n).toString(!1)):e.schema&&(n=e.schema.id||`vscode://schemas/custom/${encodeURIComponent((0,o.hash)(e.schema).toString(16))}`),n}function D(e){return e&&e.then}function T(e){const t=new i.MarkdownString(e.value,!0);return t.isTrusted=e.isTrusted,t}function _(e){return 768===e.code}},4522:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguageParticipants=function(){const e=new i.EventEmitter;let t=new Set,n=new Set;function o(){const e=t,o=n;t=new Set,t.add("json"),t.add("jsonc"),t.add("snippets"),n=new Set,n.add("jsonc"),n.add("snippets");for(const e of i.extensions.allAcrossExtensionHosts){const i=e.packageJSON?.contributes?.jsonLanguageParticipants;if(Array.isArray(i))for(const e of i){const i=e.languageId;"string"==typeof i&&(t.add(i),!0===e.comments&&n.add(i))}}return!r(t,e)||!r(n,o)}o();const s=i.extensions.onDidChange((t=>{o()&&e.fire()}));return{onDidChange:e.event,get documentSelector(){return Array.from(t)},hasLanguage:e=>t.has(e),useComments:e=>n.has(e),dispose:()=>s.dispose()}};const i=n(1398);function r(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}},3826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLanguageStatusItem=function(e,t){const n=i.languages.createLanguageStatusItem("json.projectStatus",e);n.name=i.l10n.t("JSON Validation Status"),n.severity=i.LanguageStatusSeverity.Information;const o=i.commands.registerCommand("_json.showAssociatedSchemaList",r),s=i.window.onDidChangeActiveTextEditor((()=>{a()}));async function a(){const e=i.window.activeTextEditor?.document;if(e)try{n.text="$(loading~spin)",n.detail=i.l10n.t("Loading JSON info"),n.command=void 0;const r=(await t(e.uri.toString())).schemas;n.detail=void 0,0===r.length?(n.text=i.l10n.t("No Schema Validation"),n.detail=i.l10n.t("no JSON schema configured")):1===r.length?(n.text=i.l10n.t("Schema Validated"),n.detail=i.l10n.t("JSON schema configured")):(n.text=i.l10n.t("Schema Validated"),n.detail=i.l10n.t("multiple JSON schemas configured")),n.command={command:"_json.showAssociatedSchemaList",title:i.l10n.t("Show Schemas"),arguments:[{schemas:r,uri:e.uri.toString()}]}}catch(e){n.text=i.l10n.t("Unable to compute used schemas: {0}",e.message),n.detail=void 0,n.command=void 0}else n.text=i.l10n.t("Unable to compute used schemas: No document"),n.detail=void 0,n.command=void 0}return a(),i.Disposable.from(n,s,o)},t.createLimitStatusItem=function(e){let t;const n=new Map,r=[];return r.push(i.window.onDidChangeActiveTextEditor((i=>{t?.dispose(),t=void 0;const r=i?.document;if(r){const i=n.get(r);void 0!==i&&(t=e(i))}}))),r.push(i.workspace.onDidCloseTextDocument((e=>{n.delete(e)}))),{update:function(r,o){!1===o?(n.delete(r),t&&r===i.window.activeTextEditor?.document&&(t.dispose(),t=void 0)):(n.set(r,o),r===i.window.activeTextEditor?.document&&(t&&o===n.get(r)||(t?.dispose(),t=e(o))))},dispose(){t?.dispose(),r.forEach((e=>e.dispose())),r.length=0,t=void 0,n.clear()}}},t.createDocumentSymbolsLimitItem=function(e,t,n){const r=i.languages.createLanguageStatusItem("json.documentSymbolsStatus",e);return r.name=i.l10n.t("JSON Outline Status"),r.severity=i.LanguageStatusSeverity.Warning,r.text=i.l10n.t("Outline"),r.detail=i.l10n.t("only {0} document symbols shown for performance reasons",n),r.command={command:o,arguments:[t],title:s},i.Disposable.from(r)};const i=n(1398);function r(e){const t=function(){const e=[];for(const t of i.extensions.all){const n=t.packageJSON?.contributes?.jsonValidation;if(Array.isArray(n))for(const r of n){let n=r.url;"string"==typeof n&&("."===n[0]&&"/"===n[1]&&(n=i.Uri.joinPath(t.extensionUri,n).toString(!1)),e.push({fullUri:n,extension:t,label:r.url}))}}return{findExtension(t){for(const n of e)if(n.fullUri===t)return{label:n.label,detail:i.l10n.t("Configured by extension: {0}",n.extension.id),uri:i.Uri.parse(n.fullUri),buttons:[{iconPath:new i.ThemeIcon("extensions"),tooltip:i.l10n.t("Open Extension")}],buttonCommands:[()=>i.commands.executeCommand("workbench.extensions.action.showExtensionsWithIds",[[n.extension.id]])]}}}}(),n=function(e){const t=i.Uri.parse(e),n=i.workspace.getWorkspaceFolder(t),r=i.workspace.getConfiguration("json",t).inspect("schemas"),o=[],s=r?.workspaceFolderValue;if(n&&Array.isArray(s))for(const e of s){const t=e.url;if("string"==typeof t){let e=t;"."===t[0]&&"/"===t[1]&&(e=i.Uri.joinPath(n.uri,t).toString(!1)),o.push({fullUri:e,workspaceFolder:n,label:t})}}const a=r?.globalValue;if(Array.isArray(a))for(const e of a){const t=e.url;if("string"==typeof t){let e=t;n&&"."===t[0]&&"/"===t[1]&&(e=i.Uri.joinPath(n.uri,t).toString(!1)),o.push({fullUri:e,workspaceFolder:void 0,label:t})}}return{findSetting(e){for(const t of o)if(t.fullUri===e)return{label:t.label,detail:t.workspaceFolder?i.l10n.t("Configured in workspace settings"):i.l10n.t("Configured in user settings"),uri:i.Uri.parse(t.fullUri),buttons:[{iconPath:new i.ThemeIcon("gear"),tooltip:i.l10n.t("Open Settings")}],buttonCommands:[()=>i.commands.executeCommand(t.workspaceFolder?"workbench.action.openWorkspaceSettingsFile":"workbench.action.openSettingsJson",["json.schemas"])]}}}}(e.uri),r=[],o=[],s=[];for(const a of e.schemas){const e=t.findExtension(a);if(e){r.push(e);continue}const c=n.findSetting(a);c?o.push(c):s.push({label:a,uri:i.Uri.parse(a)})}const a=[...r,...o,...s];0===a.length&&a.push({label:i.l10n.t("No schema configured for this file"),buttons:[{iconPath:new i.ThemeIcon("gear"),tooltip:i.l10n.t("Open Settings")}],buttonCommands:[()=>i.commands.executeCommand("workbench.action.openSettingsJson",["json.schemas"])]}),a.push({label:"",kind:i.QuickPickItemKind.Separator}),a.push({label:i.l10n.t("Learn more about JSON schema configuration..."),uri:i.Uri.parse("https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings")});const c=i.window.createQuickPick();c.placeholder=a.length?i.l10n.t("Select the schema to use for {0}",e.uri):void 0,c.items=a,c.show(),c.onDidAccept((()=>{const e=c.selectedItems[0].uri;e&&(i.commands.executeCommand("vscode.open",e),c.dispose())})),c.onDidTriggerItemButton((e=>{const t=e.item.buttons?.indexOf(e.button);void 0!==t&&t>=0&&e.item.buttonCommands&&e.item.buttonCommands[t]&&e.item.buttonCommands[t]()}))}const o="workbench.action.openSettings",s=i.l10n.t("Configure")},5198:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONSchemaCache=void 0;const i=n(9896),r=n(6928),o=n(6982),s="json-schema-cache";t.JSONSchemaCache=class{constructor(e,t){this.schemaCacheLocation=e,this.globalState=t;const n=t.get(s,{}),i={};for(const e in n){const{etag:t,fileName:r,updateTime:o}=n[e];"string"==typeof t&&"string"==typeof r&&"number"==typeof o&&(i[e]={etag:t,fileName:r,updateTime:o})}this.cacheInfo=i}getETag(e){return this.cacheInfo[e]?.etag}getLastUpdatedInHours(e){const t=this.cacheInfo[e]?.updateTime;if(void 0!==t)return((new Date).getTime()-t)/1e3/60/60}async putSchema(e,t,n){try{const a=(s=e,`${(0,o.createHash)("sha256").update(s).digest("hex")}.schema.json`);await i.promises.writeFile(r.join(this.schemaCacheLocation,a),n);const c={etag:t,fileName:a,updateTime:(new Date).getTime()};this.cacheInfo[e]=c}catch(t){delete this.cacheInfo[e]}finally{await this.updateMemento()}var s}async getSchemaIfUpdatedSince(e,t){const n=this.getLastUpdatedInHours(e);if(void 0!==n&&n{"use strict";function n(e,t){return(t<<5)-t+e|0}function i(e,t){t=n(149417,t);for(let i=0,r=e.length;ie(n,t)),s)):function(t,r){return r=n(181387,r),Object.keys(t).sort().reduce(((n,r)=>(n=i(r,n),e(t[r],n))),r)}(t,r);case"string":return i(t,r);case"boolean":return function(e,t){return n(e?433:863,t)}(t,r);case"number":return n(t,r);case"undefined":return 29047;default:return n(t,617)}var o,s}},1398:e=>{"use strict";e.exports=require("vscode")},2613:e=>{"use strict";e.exports=require("assert")},5317:e=>{"use strict";e.exports=require("child_process")},6982:e=>{"use strict";e.exports=require("crypto")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},9278:e=>{"use strict";e.exports=require("net")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},4756:e=>{"use strict";e.exports=require("tls")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},9624:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AST:()=>C,GLOBSTAR:()=>z,Minimatch:()=>Q,braceExpand:()=>X,defaults:()=>B,escape:()=>S,filter:()=>W,makeRe:()=>G,match:()=>J,minimatch:()=>b,sep:()=>K,unescape:()=>u});var i=n(2164);const r=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},o={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},s=e=>e.replace(/[[\]\\-]/g,"\\$&"),a=e=>e.join(""),c=(e,t)=>{const n=t;if("["!==e.charAt(n))throw new Error("not in a brace expression");const i=[],r=[];let c=n+1,u=!1,l=!1,d=!1,f=!1,h=n,p="";e:for(;cp?i.push(s(p)+"-"+s(t)):t===p&&i.push(s(t)),p="",c++):e.startsWith("-]",c+1)?(i.push(s(t+"-")),c+=2):e.startsWith("-",c+1)?(p=t,c+=2):(i.push(s(t)),c++)}else d=!0,c++}else f=!0,c++}if(ht?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),l=new Set(["!","?","+","*","@"]),d=e=>l.has(e),f="(?!\\.)",h=new Set(["[","."]),p=new Set(["..","."]),g=new Set("().*{}+?[]^$\\!"),m="[^/]",v=m+"*?",y=m+"+?";class C{type;#e;#t;#n=!1;#i=[];#r;#o;#s;#a=!1;#c;#u;#l=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#r=t,this.#e=this.#r?this.#r.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#s=this.#e===this?[]:this.#e.#s,"!"!==e||this.#e.#a||this.#s.push(this),this.#o=this.#r?this.#r.#i.length:0}get hasMagic(){if(void 0!==this.#t)return this.#t;for(const e of this.#i)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return void 0!==this.#u?this.#u:this.type?this.#u=this.type+"("+this.#i.map((e=>String(e))).join("|")+")":this.#u=this.#i.map((e=>String(e))).join("")}#d(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;let e;for(this.toString(),this.#a=!0;e=this.#s.pop();){if("!"!==e.type)continue;let t=e,n=t.#r;for(;n;){for(let i=t.#o+1;!n.type&&i"string"==typeof e?e:e.toJSON())):[this.type,...this.#i.map((e=>e.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&"!"===this.#r?.type)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#r?.isStart())return!1;if(0===this.#o)return!0;const e=this.#r;for(let t=0;t{const[i,r,o,s]="string"==typeof t?C.#h(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||o,this.#n=this.#n||s,i})).join("");let r="";if(this.isStart()&&"string"==typeof this.#i[0]&&(1!==this.#i.length||!p.has(this.#i[0]))){const n=h,o=t&&n.has(i.charAt(0))||i.startsWith("\\.")&&n.has(i.charAt(2))||i.startsWith("\\.\\.")&&n.has(i.charAt(4)),s=!t&&!e&&n.has(i.charAt(0));r=o?"(?!(?:^|/)\\.\\.?(?:$|/))":s?f:""}let o="";return this.isEnd()&&this.#e.#a&&"!"===this.#r?.type&&(o="(?:$|\\/)"),[r+i+o,u(i),this.#t=!!this.#t,this.#n]}const n="*"===this.type||"+"===this.type,i="!"===this.type?"(?:(?!(?:":"(?:";let r=this.#p(t);if(this.isStart()&&this.isEnd()&&!r&&"!"!==this.type){const e=this.toString();return this.#i=[e],this.type=null,this.#t=void 0,[e,u(this.toString()),!1,!1]}let o=!n||e||t?"":this.#p(!0);o===r&&(o=""),o&&(r=`(?:${r})(?:${o})*?`);let s="";return s="!"===this.type&&this.#l?(this.isStart()&&!t?f:"")+y:i+r+("!"===this.type?"))"+(!this.isStart()||t||e?"":f)+v+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`),[s,u(r),this.#t=!!this.#t,this.#n]}#p(e){return this.#i.map((t=>{if("string"==typeof t)throw new Error("string type in extglob ast??");const[n,i,r,o]=t.toRegExpSource(e);return this.#n=this.#n||o,n})).filter((e=>!(this.isStart()&&this.isEnd()&&!e))).join("|")}static#h(e,t,n=!1){let i=!1,r="",o=!1;for(let s=0;st?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),b=(e,t,n={})=>(r(t),!(!n.nocomment&&"#"===t.charAt(0))&&new Q(t,n).match(e)),w=/^\*+([^+@!?\*\[\(]*)$/,R=e=>t=>!t.startsWith(".")&&t.endsWith(e),D=e=>t=>t.endsWith(e),T=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),_=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),P=/^\*+\.\*+$/,k=e=>!e.startsWith(".")&&e.includes("."),x=e=>"."!==e&&".."!==e&&e.includes("."),E=/^\.\*+$/,I=e=>"."!==e&&".."!==e&&e.startsWith("."),O=/^\*+$/,F=e=>0!==e.length&&!e.startsWith("."),N=e=>0!==e.length&&"."!==e&&".."!==e,M=/^\?+([^+@!?\*\[\(]*)?$/,q=([e,t=""])=>{const n=H([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},L=([e,t=""])=>{const n=$([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},A=([e,t=""])=>{const n=$([e]);return t?e=>n(e)&&e.endsWith(t):n},j=([e,t=""])=>{const n=H([e]);return t?e=>n(e)&&e.endsWith(t):n},H=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},$=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},U="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",K="win32"===U?"\\":"/";b.sep=K;const z=Symbol("globstar **");b.GLOBSTAR=z;const W=(e,t={})=>n=>b(n,e,t);b.filter=W;const V=(e,t={})=>Object.assign({},e,t),B=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return b;const t=b;return Object.assign(((n,i,r={})=>t(n,i,V(e,r))),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,V(e,n))}static defaults(n){return t.defaults(V(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,i={}){super(t,n,V(e,i))}static fromGlob(n,i={}){return t.AST.fromGlob(n,V(e,i))}},unescape:(n,i={})=>t.unescape(n,V(e,i)),escape:(n,i={})=>t.escape(n,V(e,i)),filter:(n,i={})=>t.filter(n,V(e,i)),defaults:n=>t.defaults(V(e,n)),makeRe:(n,i={})=>t.makeRe(n,V(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,V(e,i)),match:(n,i,r={})=>t.match(n,i,V(e,r)),sep:t.sep,GLOBSTAR:z})};b.defaults=B;const X=(e,t={})=>(r(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:i(e));b.braceExpand=X;const G=(e,t={})=>new Q(e,t).makeRe();b.makeRe=G;const J=(e,t,n={})=>{const i=new Q(t,n);return e=e.filter((e=>i.match(e))),i.options.nonull&&!e.length&&e.push(t),e};b.match=J;const Z=/[?*]|[+@!]\(.*?\)|\[|\]/;class Q{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){r(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||U,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map(((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&Z.test(e[2])||Z.test(e[3])),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))];if(n)return[e[0],...e.slice(1).map((e=>this.parse(e)))]}return e.map((e=>this.parse(e)))}));if(this.debug(this.pattern,i),this.set=i.filter((e=>-1===e.indexOf(!1))),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e}))}levelOneOptimize(e){return e.map((e=>0===(e=e.reduce(((e,t)=>{const n=e[e.length-1];return"**"===t&&"**"===n?e:".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?(e.pop(),e):(e.push(t),e)}),[])).length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;ni&&n.splice(i+1,r-i);let o=n[i+1];const s=n[i+2],a=n[i+3];if(".."!==o)continue;if(!s||"."===s||".."===s||!a||"."===a||".."===a)continue;t=!0,n.splice(i,1);const c=n.slice(0);c[i]="**",e.push(c),i--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length))}partsMatch(e,t,n=!1){let i=0,r=0,o=[],s="";for(;io?t=t.slice(s):o>s&&(e=e.slice(o)))}}const{optimizationLevel:r=1}=this.options;r>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,a=e.length,c=t.length;o>> no match, partial?",e,d,t,f),d!==a))}let r;if("string"==typeof u?(r=l===u,this.debug("string match",u,l,r)):(r=u.test(l),this.debug("pattern match",u,l,r)),!r)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}braceExpand(){return X(this.pattern,this.options)}parse(e){r(e);const t=this.options;if("**"===e)return z;if(""===e)return"";let n,i=null;(n=e.match(O))?i=t.dot?N:F:(n=e.match(w))?i=(t.nocase?t.dot?_:T:t.dot?D:R)(n[1]):(n=e.match(M))?i=(t.nocase?t.dot?L:q:t.dot?A:j)(n):(n=e.match(P))?i=t.dot?x:k:(n=e.match(E))&&(i=I);const o=C.fromGlob(e,this.options).toMMPattern();return i?Object.assign(o,{test:i}):o}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(t.nocase?["i"]:[]);let r=e.map((e=>{const t=e.map((e=>{if(e instanceof RegExp)for(const t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===z?z:e._src}));return t.forEach(((e,i)=>{const r=t[i+1],o=t[i-1];e===z&&o!==z&&(void 0===o?void 0!==r&&r!==z?t[i+1]="(?:\\/|"+n+"\\/)?"+r:t[i]=n:void 0===r?t[i-1]=o+"(?:\\/|"+n+")?":r!==z&&(t[i-1]=o+"(?:\\/|\\/"+n+"\\/)"+r,t[i+1]=z))})),t.filter((e=>e!==z)).join("/")})).join("|");const[o,s]=e.length>1?["(?:",")"]:["",""];r="^"+o+r+s+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...i].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const n=this.options;this.isWindows&&(e=e.split("\\").join("/"));const i=this.slashSplit(e);this.debug(this.pattern,"split",i);const r=this.set;this.debug(this.pattern,"set",r);let o=i[i.length-1];if(!o)for(let e=i.length-2;!o&&e>=0;e--)o=i[e];for(let e=0;e{"use strict";var i,r,o,s,a,c,u,l,d,f,h,p,g,m,v,y,C,S,b,w,R,D,T,_,P,k,x,E,I,O,F,N,M,q,L,A,j,H,$,U,K,z,W,V,B,X,G,J,Z,Q,Y,ee,te,ne,ie,re,oe,se,ae,ce,ue,le,de,fe,he,pe,ge,me,ve,ye,Ce,Se,be,we,Re,De,Te,_e,Pe,ke;n.r(t),n.d(t,{AnnotatedTextEdit:()=>T,ChangeAnnotation:()=>R,ChangeAnnotationIdentifier:()=>D,CodeAction:()=>ae,CodeActionContext:()=>se,CodeActionKind:()=>re,CodeActionTriggerKind:()=>oe,CodeDescription:()=>C,CodeLens:()=>ce,Color:()=>d,ColorInformation:()=>f,ColorPresentation:()=>h,Command:()=>b,CompletionItem:()=>W,CompletionItemKind:()=>j,CompletionItemLabelDetails:()=>z,CompletionItemTag:()=>$,CompletionList:()=>V,CreateFile:()=>P,DeleteFile:()=>x,Diagnostic:()=>S,DiagnosticRelatedInformation:()=>m,DiagnosticSeverity:()=>v,DiagnosticTag:()=>y,DocumentHighlight:()=>Q,DocumentHighlightKind:()=>Z,DocumentLink:()=>le,DocumentSymbol:()=>ie,DocumentUri:()=>i,EOL:()=>Oe,FoldingRange:()=>g,FoldingRangeKind:()=>p,FormattingOptions:()=>ue,Hover:()=>X,InlayHint:()=>be,InlayHintKind:()=>Ce,InlayHintLabelPart:()=>Se,InlineCompletionContext:()=>Pe,InlineCompletionItem:()=>Re,InlineCompletionList:()=>De,InlineCompletionTriggerKind:()=>Te,InlineValueContext:()=>ye,InlineValueEvaluatableExpression:()=>ve,InlineValueText:()=>ge,InlineValueVariableLookup:()=>me,InsertReplaceEdit:()=>U,InsertTextFormat:()=>H,InsertTextMode:()=>K,LanguageKind:()=>M,Location:()=>u,LocationLink:()=>l,MarkedString:()=>B,MarkupContent:()=>A,MarkupKind:()=>L,OptionalVersionedTextDocumentIdentifier:()=>N,ParameterInformation:()=>G,Position:()=>a,Range:()=>c,RenameFile:()=>k,SelectedCompletionInfo:()=>_e,SelectionRange:()=>de,SemanticTokenModifiers:()=>he,SemanticTokenTypes:()=>fe,SemanticTokens:()=>pe,SignatureInformation:()=>J,SnippetTextEdit:()=>I,StringValue:()=>we,SymbolInformation:()=>te,SymbolKind:()=>Y,SymbolTag:()=>ee,TextDocument:()=>Fe,TextDocumentEdit:()=>_,TextDocumentIdentifier:()=>O,TextDocumentItem:()=>q,TextEdit:()=>w,URI:()=>r,VersionedTextDocumentIdentifier:()=>F,WorkspaceChange:()=>Ie,WorkspaceEdit:()=>E,WorkspaceFolder:()=>ke,WorkspaceSymbol:()=>ne,integer:()=>o,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&Ne.uinteger(t.line)&&Ne.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,i){if(Ne.uinteger(e)&&Ne.uinteger(t)&&Ne.uinteger(n)&&Ne.uinteger(i))return{start:a.create(e,t),end:a.create(n,i)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&c.is(t.range)&&(Ne.string(t.uri)||Ne.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&c.is(t.targetRange)&&Ne.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Ne.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&Ne.numberRange(t.red,0,1)&&Ne.numberRange(t.green,0,1)&&Ne.numberRange(t.blue,0,1)&&Ne.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)}}(f||(f={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&Ne.string(t.label)&&(Ne.undefined(t.textEdit)||w.is(t))&&(Ne.undefined(t.additionalTextEdits)||Ne.typedArray(t.additionalTextEdits,w.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(p||(p={})),function(e){e.create=function(e,t,n,i,r,o){const s={startLine:e,endLine:t};return Ne.defined(n)&&(s.startCharacter=n),Ne.defined(i)&&(s.endCharacter=i),Ne.defined(r)&&(s.kind=r),Ne.defined(o)&&(s.collapsedText=o),s},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&Ne.uinteger(t.startLine)&&Ne.uinteger(t.startLine)&&(Ne.undefined(t.startCharacter)||Ne.uinteger(t.startCharacter))&&(Ne.undefined(t.endCharacter)||Ne.uinteger(t.endCharacter))&&(Ne.undefined(t.kind)||Ne.string(t.kind))}}(g||(g={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){const t=e;return Ne.defined(t)&&u.is(t.location)&&Ne.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(v||(v={})),function(e){e.Unnecessary=1,e.Deprecated=2}(y||(y={})),function(e){e.is=function(e){const t=e;return Ne.objectLiteral(t)&&Ne.string(t.href)}}(C||(C={})),function(e){e.create=function(e,t,n,i,r,o){const s={range:e,message:t};return Ne.defined(n)&&(s.severity=n),Ne.defined(i)&&(s.code=i),Ne.defined(r)&&(s.source=r),Ne.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t;const n=e;return Ne.defined(n)&&c.is(n.range)&&Ne.string(n.message)&&(Ne.number(n.severity)||Ne.undefined(n.severity))&&(Ne.integer(n.code)||Ne.string(n.code)||Ne.undefined(n.code))&&(Ne.undefined(n.codeDescription)||Ne.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ne.string(n.source)||Ne.undefined(n.source))&&(Ne.undefined(n.relatedInformation)||Ne.typedArray(n.relatedInformation,m.is))}}(S||(S={})),function(e){e.create=function(e,t,...n){const i={title:e,command:t};return Ne.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){const t=e;return Ne.defined(t)&&Ne.string(t.title)&&(void 0===t.tooltip||Ne.string(t.tooltip))&&Ne.string(t.command)}}(b||(b={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&Ne.string(t.newText)&&c.is(t.range)}}(w||(w={})),function(e){e.create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&Ne.string(t.label)&&(Ne.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ne.string(t.description)||void 0===t.description)}}(R||(R={})),function(e){e.is=function(e){const t=e;return Ne.string(t)}}(D||(D={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return w.is(t)&&(R.is(t.annotationId)||D.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){const t=e;return Ne.defined(t)&&N.is(t.textDocument)&&Array.isArray(t.edits)}}(_||(_={})),function(e){e.create=function(e,t,n){const i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"create"===t.kind&&Ne.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ne.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ne.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(e,t,n,i){const r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},e.is=function(e){const t=e;return t&&"rename"===t.kind&&Ne.string(t.oldUri)&&Ne.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ne.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ne.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(k||(k={})),function(e){e.create=function(e,t,n){const i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"delete"===t.kind&&Ne.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ne.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ne.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(x||(x={})),function(e){e.is=function(e){const t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ne.string(e.kind)?P.is(e)||k.is(e)||x.is(e):_.is(e))))}}(E||(E={}));class xe{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let i,r;if(void 0===n?i=w.insert(e,t):D.is(n)?(r=n,i=T.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=T.insert(e,t,r)),this.edits.push(i),void 0!==r)return r}replace(e,t,n){let i,r;if(void 0===n?i=w.replace(e,t):D.is(n)?(r=n,i=T.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=T.replace(e,t,r)),this.edits.push(i),void 0!==r)return r}delete(e,t){let n,i;if(void 0===t?n=w.del(e):D.is(t)?(i=t,n=T.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),n=T.del(e,i)),this.edits.push(n),void 0!==i)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")}}!function(e){e.is=function(e){const t=e;return Ne.objectLiteral(t)&&c.is(t.range)&&we.isSnippet(t.snippet)&&(void 0===t.annotationId||R.is(t.annotationId)||D.is(t.annotationId))}}(I||(I={}));class Ee{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(D.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(`Id ${n} is already in use.`);if(void 0===t)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}}class Ie{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ee(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((e=>{if(_.is(e)){const t=new xe(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((t=>{const n=new xe(e.changes[t]);this._textEditChanges[t]=n}))):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(N.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let n=this._textEditChanges[t.uri];if(!n){const e=[],i={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(i),n=new xe(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){const n=[];this._workspaceEdit.changes[e]=n,t=new xe(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Ee,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,r,o;if(R.is(t)||D.is(t)?i=t:n=t,void 0===i?r=P.create(e,n):(o=D.is(i)?i:this._changeAnnotations.manage(i),r=P.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}renameFile(e,t,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let r,o,s;if(R.is(n)||D.is(n)?r=n:i=n,void 0===r?o=k.create(e,t,i):(s=D.is(r)?r:this._changeAnnotations.manage(r),o=k.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}deleteFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,r,o;if(R.is(t)||D.is(t)?i=t:n=t,void 0===i?r=x.create(e,n):(o=D.is(i)?i:this._changeAnnotations.manage(i),r=x.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}!function(e){e.create=function(e){return{uri:e}},e.is=function(e){const t=e;return Ne.defined(t)&&Ne.string(t.uri)}}(O||(O={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ne.defined(t)&&Ne.string(t.uri)&&Ne.integer(t.version)}}(F||(F={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ne.defined(t)&&Ne.string(t.uri)&&(null===t.version||Ne.integer(t.version))}}(N||(N={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(M||(M={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){const t=e;return Ne.defined(t)&&Ne.string(t.uri)&&Ne.string(t.languageId)&&Ne.integer(t.version)&&Ne.string(t.text)}}(q||(q={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(L||(L={})),function(e){e.is=function(e){const t=e;return Ne.objectLiteral(e)&&L.is(t.kind)&&Ne.string(t.value)}}(A||(A={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(j||(j={})),function(e){e.PlainText=1,e.Snippet=2}(H||(H={})),function(e){e.Deprecated=1}($||($={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Ne.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(U||(U={})),function(e){e.asIs=1,e.adjustIndentation=2}(K||(K={})),function(e){e.is=function(e){const t=e;return t&&(Ne.string(t.detail)||void 0===t.detail)&&(Ne.string(t.description)||void 0===t.description)}}(z||(z={})),function(e){e.create=function(e){return{label:e}}}(W||(W={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(V||(V={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Ne.string(t)||Ne.objectLiteral(t)&&Ne.string(t.language)&&Ne.string(t.value)}}(B||(B={})),function(e){e.is=function(e){const t=e;return!!t&&Ne.objectLiteral(t)&&(A.is(t.contents)||B.is(t.contents)||Ne.typedArray(t.contents,B.is))&&(void 0===e.range||c.is(e.range))}}(X||(X={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(G||(G={})),function(e){e.create=function(e,t,...n){const i={label:e};return Ne.defined(t)&&(i.documentation=t),Ne.defined(n)?i.parameters=n:i.parameters=[],i}}(J||(J={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Z||(Z={})),function(e){e.create=function(e,t){const n={range:e};return Ne.number(t)&&(n.kind=t),n}}(Q||(Q={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Y||(Y={})),function(e){e.Deprecated=1}(ee||(ee={})),function(e){e.create=function(e,t,n,i,r){const o={name:e,kind:t,location:{uri:i,range:n}};return r&&(o.containerName=r),o}}(te||(te={})),function(e){e.create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}}}(ne||(ne={})),function(e){e.create=function(e,t,n,i,r,o){const s={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==o&&(s.children=o),s},e.is=function(e){const t=e;return t&&Ne.string(t.name)&&Ne.number(t.kind)&&c.is(t.range)&&c.is(t.selectionRange)&&(void 0===t.detail||Ne.string(t.detail))&&(void 0===t.deprecated||Ne.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(ie||(ie={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(re||(re={})),function(e){e.Invoked=1,e.Automatic=2}(oe||(oe={})),function(e){e.create=function(e,t,n){const i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},e.is=function(e){const t=e;return Ne.defined(t)&&Ne.typedArray(t.diagnostics,S.is)&&(void 0===t.only||Ne.typedArray(t.only,Ne.string))&&(void 0===t.triggerKind||t.triggerKind===oe.Invoked||t.triggerKind===oe.Automatic)}}(se||(se={})),function(e){e.create=function(e,t,n){const i={title:e};let r=!0;return"string"==typeof t?(r=!1,i.kind=t):b.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return t&&Ne.string(t.title)&&(void 0===t.diagnostics||Ne.typedArray(t.diagnostics,S.is))&&(void 0===t.kind||Ne.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||b.is(t.command))&&(void 0===t.isPreferred||Ne.boolean(t.isPreferred))&&(void 0===t.edit||E.is(t.edit))}}(ae||(ae={})),function(e){e.create=function(e,t){const n={range:e};return Ne.defined(t)&&(n.data=t),n},e.is=function(e){const t=e;return Ne.defined(t)&&c.is(t.range)&&(Ne.undefined(t.command)||b.is(t.command))}}(ce||(ce={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){const t=e;return Ne.defined(t)&&Ne.uinteger(t.tabSize)&&Ne.boolean(t.insertSpaces)}}(ue||(ue={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){const t=e;return Ne.defined(t)&&c.is(t.range)&&(Ne.undefined(t.target)||Ne.string(t.target))}}(le||(le={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){const n=t;return Ne.objectLiteral(n)&&c.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(de||(de={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(fe||(fe={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(he||(he={})),function(e){e.is=function(e){const t=e;return Ne.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(pe||(pe={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ne.string(t.text)}}(ge||(ge={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ne.boolean(t.caseSensitiveLookup)&&(Ne.string(t.variableName)||void 0===t.variableName)}}(me||(me={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&(Ne.string(t.expression)||void 0===t.expression)}}(ve||(ve={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Ne.defined(t)&&c.is(e.stoppedLocation)}}(ye||(ye={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Ce||(Ce={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&(void 0===t.tooltip||Ne.string(t.tooltip)||A.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||b.is(t.command))}}(Se||(Se={})),function(e){e.create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return Ne.objectLiteral(t)&&a.is(t.position)&&(Ne.string(t.label)||Ne.typedArray(t.label,Se.is))&&(void 0===t.kind||Ce.is(t.kind))&&void 0===t.textEdits||Ne.typedArray(t.textEdits,w.is)&&(void 0===t.tooltip||Ne.string(t.tooltip)||A.is(t.tooltip))&&(void 0===t.paddingLeft||Ne.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ne.boolean(t.paddingRight))}}(be||(be={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}},e.isSnippet=function(e){const t=e;return Ne.objectLiteral(t)&&"snippet"===t.kind&&Ne.string(t.value)}}(we||(we={})),function(e){e.create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}}}(Re||(Re={})),function(e){e.create=function(e){return{items:e}}}(De||(De={})),function(e){e.Invoked=1,e.Automatic=2}(Te||(Te={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(_e||(_e={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Pe||(Pe={})),function(e){e.is=function(e){const t=e;return Ne.objectLiteral(t)&&r.is(t.uri)&&Ne.string(t.name)}}(ke||(ke={}));const Oe=["\n","\r\n","\r"];var Fe,Ne;!function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),o=e.slice(i);t(r,n),t(o,n);let s=0,a=0,c=0;for(;s{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));let o=i.length;for(let t=r.length-1;t>=0;t--){const n=r[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=o))throw new Error("Overlapping edit");i=i.substring(0,s)+n.newText+i.substring(a,i.length),o=s}return i}}(Fe||(Fe={}));class Me{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){const e=[],t=this._content;let n=!0;for(let i=0;i0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,i=t.length;if(0===i)return a.create(0,e);for(;ne?i=r:n=r+1}const r=n-1;return a.create(r,e-t[r])}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line],i=e.line+1{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.activate=async function(e){const n=await async function(e){const t=e.asAbsolutePath("./package.json");try{return JSON.parse((await s.promises.readFile(t)).toString())}catch(e){return console.log(`Problems reading ${t}: ${e}`),{name:"",version:"",aiKey:"",main:""}}}(e),i=new u.default(n.aiKey);e.subscriptions.push(i);const h=t.window.createOutputChannel(r.languageServerDescription,{log:!0});e.subscriptions.push(h);const p=`./server/${-1!==n.main.indexOf("/dist/")?"dist":"out"}/node/jsonServerMain`,g=e.asAbsolutePath(p),m={execArgv:["--nolazy","--inspect="+(6e3+Math.round(999*Math.random()))]},v={run:{module:g,transport:o.TransportKind.ipc},debug:{module:g,transport:o.TransportKind.ipc,options:m}},y={setTimeout(e,t,...n){const i=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(i)}}};process.env.VSCODE_L10N_BUNDLE_LOCATION=t.l10n.uri?.toString()??"";const C=await async function(e,n){let i;const r=e.globalStorageUri;let o;if("file"===r.scheme){const t=a.join(r.fsPath,"json-schema-cache");await s.promises.mkdir(t,{recursive:!0});const c=new l.JSONSchemaCache(t,e.globalState);n.trace(`[json schema cache] initial state: ${JSON.stringify(c.getCacheInfo(),null," ")}`),i=c,o=async()=>{const e=await c.clearCache();return n.trace(`[json schema cache] cache cleared. Previously cached schemas: ${e.join(", ")}`),e}}const u=async(e,r)=>{const o={"Accept-Encoding":"gzip, deflate","User-Agent":`${t.env.appName} (${t.env.appHost})`};r&&(o["If-None-Match"]=r);try{n.trace(`[json schema cache] Requesting schema ${e} etag ${r}...`);const t=await(0,c.xhr)({url:e,followRedirects:5,headers:o});if(i){const r=t.headers.etag;"string"==typeof r?(n.trace(`[json schema cache] Storing schema ${e} etag ${r} in cache`),await i.putSchema(e,r,t.responseText)):n.trace(`[json schema cache] Response: schema ${e} no etag`)}return t.responseText}catch(t){if((e=>"number"==typeof e?.status)(t)){if(304===t.status&&r&&i){n.trace(`[json schema cache] Response: schema ${e} unchanged etag ${r}`);const t=await i.getSchema(e,r,!0);return t?(n.trace(`[json schema cache] Get schema ${e} etag ${r} from cache`),t):u(e)}let o=(0,c.getErrorStatusDescription)(t.status);throw o&&t.responseText&&(o=`${o}\n${t.responseText.substring(0,200)}`),o||(o=t.toString()),n.trace(`[json schema cache] Respond schema ${e} error ${o}`),o}throw t}};return{getContent:async e=>{if(i&&/^https?:\/\/json\.schemastore\.org\//.test(e)){const r=await i.getSchemaIfUpdatedSince(e,f);if(r)return n.logLevel===t.LogLevel.Trace&&n.trace(`[json schema cache] Schema ${e} from cache without request (last accessed ${i.getLastUpdatedInHours(e)} hours ago)`),r}return u(e,i?.getETag(e))},clearCache:o}}(e,h);d=await(0,r.startClient)(e,((e,t,n)=>new o.LanguageClient(e,t,v,n)),{schemaRequests:C,telemetry:i,timer:y,logOutputChannel:h})},e.deactivate=async function(){d&&(await d.dispose(),d=void 0)};const t=n(1398),r=n(2231),o=n(7935),s=n(9896),a=n(6928),c=n(3823),u=n(9838),l=n(5198);let d;const f=48})();var r=exports;for(var o in i)r[o]=i[o];i.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})(); //# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/ea1445cc7016315d0f5728f8e8b12a45dc0a7286/extensions/json-language-features/client/dist/node/jsonClientMain.js.map