@ws-ui/code-editor 0.1.30-rc.3 → 0.1.30-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,22 +1,22 @@
1
- "use strict";var G2=Object.defineProperty;var Q2=(t,e,n)=>e in t?G2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var pn=(t,e,n)=>(Q2(t,typeof e!="symbol"?e+"":e,n),n),_l=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var pt=(t,e,n)=>(_l(t,e,"read from private field"),n?n.call(t):e.get(t)),Br=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Jo=(t,e,n,i)=>(_l(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var Ns=(t,e,n)=>(_l(t,e,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const nt=require("react"),S1=require("@monaco-editor/react"),kn=require("@ws-ui/shared"),J2=require("vscode-languageclient/lib/common/client.js"),P0=require("monaco-languageclient/vscode/services"),Vt=require("monaco-editor"),Y2=require("monaco-languageclient/tools"),de=require("vscode-languageserver-protocol"),$o=require("vscode-jsonrpc"),D1=require("vscode-ws-jsonrpc"),X2=require("@codingame/monaco-vscode-model-service-override"),Z2=require("@codingame/monaco-vscode-editor-service-override");require("@codingame/monaco-vscode-standalone-languages");require("@codingame/monaco-vscode-standalone-html-language-features");require("@codingame/monaco-vscode-standalone-css-language-features");require("@codingame/monaco-vscode-standalone-json-language-features");require("@codingame/monaco-vscode-standalone-typescript-language-features");require("@codingame/monaco-vscode-monarch-service-override");var Y1=typeof document<"u"?document.currentScript:null;function e4(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ue=e4(Vt);var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I0(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var gu={exports:{}},Vr={};/*
1
+ "use strict";var Q2=Object.defineProperty;var J2=(t,e,n)=>e in t?Q2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var pn=(t,e,n)=>(J2(t,typeof e!="symbol"?e+"":e,n),n),_l=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var pt=(t,e,n)=>(_l(t,e,"read from private field"),n?n.call(t):e.get(t)),Br=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Jo=(t,e,n,i)=>(_l(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var Ns=(t,e,n)=>(_l(t,e,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const nt=require("react"),S1=require("@monaco-editor/react"),kn=require("@ws-ui/shared"),Y2=require("vscode-languageclient/lib/common/client.js"),I0=require("monaco-languageclient/vscode/services"),Vt=require("monaco-editor"),X2=require("monaco-languageclient/tools"),de=require("vscode-languageserver-protocol"),$o=require("vscode-jsonrpc"),D1=require("vscode-ws-jsonrpc"),Z2=require("@codingame/monaco-vscode-model-service-override"),e4=require("@codingame/monaco-vscode-editor-service-override"),Y1=require("vscode/services");require("@codingame/monaco-vscode-standalone-languages");require("@codingame/monaco-vscode-standalone-html-language-features");require("@codingame/monaco-vscode-standalone-css-language-features");require("@codingame/monaco-vscode-standalone-json-language-features");require("@codingame/monaco-vscode-standalone-typescript-language-features");require("@codingame/monaco-vscode-monarch-service-override");var X1=typeof document<"u"?document.currentScript:null;function t4(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ue=t4(Vt);var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function F0(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var gu={exports:{}},Vr={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var Sl,X1;function F0(){if(X1)return Sl;X1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sl=r()?Object.assign:function(s,o){for(var a,c=i(s),l,h=1;h<arguments.length;h++){a=Object(arguments[h]);for(var g in a)e.call(a,g)&&(c[g]=a[g]);if(t){l=t(a);for(var p=0;p<l.length;p++)n.call(a,l[p])&&(c[l[p]]=a[l[p]])}}return c},Sl}/** @license React v17.0.2
5
+ */var Sl,Z1;function M0(){if(Z1)return Sl;Z1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sl=r()?Object.assign:function(s,o){for(var a,c=i(s),l,h=1;h<arguments.length;h++){a=Object(arguments[h]);for(var g in a)e.call(a,g)&&(c[g]=a[g]);if(t){l=t(a);for(var p=0;p<l.length;p++)n.call(a,l[p])&&(c[l[p]]=a[l[p]])}}return c},Sl}/** @license React v17.0.2
6
6
  * react-jsx-runtime.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var Z1;function t4(){if(Z1)return Vr;Z1=1,F0();var t=nt,e=60103;if(Vr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;e=n("react.element"),Vr.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var h,g={},p=null,w=null;l!==void 0&&(p=""+l),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(w=c.ref);for(h in c)r.call(c,h)&&!s.hasOwnProperty(h)&&(g[h]=c[h]);if(a&&a.defaultProps)for(h in c=a.defaultProps,c)g[h]===void 0&&(g[h]=c[h]);return{$$typeof:e,type:a,key:p,ref:w,props:g,_owner:i.current}}return Vr.jsx=o,Vr.jsxs=o,Vr}var Dl={};/** @license React v17.0.2
12
+ */var eg;function n4(){if(eg)return Vr;eg=1,M0();var t=nt,e=60103;if(Vr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;e=n("react.element"),Vr.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var h,g={},p=null,w=null;l!==void 0&&(p=""+l),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(w=c.ref);for(h in c)r.call(c,h)&&!s.hasOwnProperty(h)&&(g[h]=c[h]);if(a&&a.defaultProps)for(h in c=a.defaultProps,c)g[h]===void 0&&(g[h]=c[h]);return{$$typeof:e,type:a,key:p,ref:w,props:g,_owner:i.current}}return Vr.jsx=o,Vr.jsxs=o,Vr}var Dl={};/** @license React v17.0.2
13
13
  * react-jsx-runtime.development.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var eg;function n4(){return eg||(eg=1,function(t){process.env.NODE_ENV!=="production"&&function(){var e=nt,n=F0(),i=60103,r=60106;t.Fragment=60107;var s=60108,o=60114,a=60109,c=60110,l=60112,h=60113,g=60120,p=60115,w=60116,v=60121,x=60122,T=60117,q=60129,z=60131;if(typeof Symbol=="function"&&Symbol.for){var A=Symbol.for;i=A("react.element"),r=A("react.portal"),t.Fragment=A("react.fragment"),s=A("react.strict_mode"),o=A("react.profiler"),a=A("react.provider"),c=A("react.context"),l=A("react.forward_ref"),h=A("react.suspense"),g=A("react.suspense_list"),p=A("react.memo"),w=A("react.lazy"),v=A("react.block"),x=A("react.server.block"),T=A("react.fundamental"),A("react.scope"),A("react.opaque.id"),q=A("react.debug_trace_mode"),A("react.offscreen"),z=A("react.legacy_hidden")}var W=typeof Symbol=="function"&&Symbol.iterator,j="@@iterator";function se(S){if(S===null||typeof S!="object")return null;var H=W&&S[W]||S[j];return typeof H=="function"?H:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(S){{for(var H=arguments.length,Y=new Array(H>1?H-1:0),b=1;b<H;b++)Y[b-1]=arguments[b];oe("error",S,Y)}}function oe(S,H,Y){{var b=B.ReactDebugCurrentFrame,le=b.getStackAddendum();le!==""&&(H+="%s",Y=Y.concat([le]));var fe=Y.map(function(G){return""+G});fe.unshift("Warning: "+H),Function.prototype.apply.call(console[S],console,fe)}}var qe=!1;function O(S){return!!(typeof S=="string"||typeof S=="function"||S===t.Fragment||S===o||S===q||S===s||S===h||S===g||S===z||qe||typeof S=="object"&&S!==null&&(S.$$typeof===w||S.$$typeof===p||S.$$typeof===a||S.$$typeof===c||S.$$typeof===l||S.$$typeof===T||S.$$typeof===v||S[0]===x))}function L(S,H,Y){var b=H.displayName||H.name||"";return S.displayName||(b!==""?Y+"("+b+")":Y)}function D(S){return S.displayName||"Context"}function P(S){if(S==null)return null;if(typeof S.tag=="number"&&Z("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case t.Fragment:return"Fragment";case r:return"Portal";case o:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case c:var H=S;return D(H)+".Consumer";case a:var Y=S;return D(Y._context)+".Provider";case l:return L(S,S.render,"ForwardRef");case p:return P(S.type);case v:return P(S._render);case w:{var b=S,le=b._payload,fe=b._init;try{return P(fe(le))}catch{return null}}}return null}var N=0,$,ee,ke,pe,ot,Ke,Pe;function ft(){}ft.__reactDisabledLog=!0;function He(){{if(N===0){$=console.log,ee=console.info,ke=console.warn,pe=console.error,ot=console.group,Ke=console.groupCollapsed,Pe=console.groupEnd;var S={configurable:!0,enumerable:!0,value:ft,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}N++}}function ht(){{if(N--,N===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},S,{value:$}),info:n({},S,{value:ee}),warn:n({},S,{value:ke}),error:n({},S,{value:pe}),group:n({},S,{value:ot}),groupCollapsed:n({},S,{value:Ke}),groupEnd:n({},S,{value:Pe})})}N<0&&Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var rt=B.ReactCurrentDispatcher,Ut;function gt(S,H,Y){{if(Ut===void 0)try{throw Error()}catch(le){var b=le.stack.trim().match(/\n( *(at )?)/);Ut=b&&b[1]||""}return`
19
+ */var tg;function i4(){return tg||(tg=1,function(t){process.env.NODE_ENV!=="production"&&function(){var e=nt,n=M0(),i=60103,r=60106;t.Fragment=60107;var s=60108,o=60114,a=60109,c=60110,l=60112,h=60113,g=60120,p=60115,w=60116,v=60121,x=60122,T=60117,q=60129,z=60131;if(typeof Symbol=="function"&&Symbol.for){var A=Symbol.for;i=A("react.element"),r=A("react.portal"),t.Fragment=A("react.fragment"),s=A("react.strict_mode"),o=A("react.profiler"),a=A("react.provider"),c=A("react.context"),l=A("react.forward_ref"),h=A("react.suspense"),g=A("react.suspense_list"),p=A("react.memo"),w=A("react.lazy"),v=A("react.block"),x=A("react.server.block"),T=A("react.fundamental"),A("react.scope"),A("react.opaque.id"),q=A("react.debug_trace_mode"),A("react.offscreen"),z=A("react.legacy_hidden")}var W=typeof Symbol=="function"&&Symbol.iterator,j="@@iterator";function se(S){if(S===null||typeof S!="object")return null;var H=W&&S[W]||S[j];return typeof H=="function"?H:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(S){{for(var H=arguments.length,Y=new Array(H>1?H-1:0),b=1;b<H;b++)Y[b-1]=arguments[b];oe("error",S,Y)}}function oe(S,H,Y){{var b=B.ReactDebugCurrentFrame,le=b.getStackAddendum();le!==""&&(H+="%s",Y=Y.concat([le]));var fe=Y.map(function(G){return""+G});fe.unshift("Warning: "+H),Function.prototype.apply.call(console[S],console,fe)}}var qe=!1;function O(S){return!!(typeof S=="string"||typeof S=="function"||S===t.Fragment||S===o||S===q||S===s||S===h||S===g||S===z||qe||typeof S=="object"&&S!==null&&(S.$$typeof===w||S.$$typeof===p||S.$$typeof===a||S.$$typeof===c||S.$$typeof===l||S.$$typeof===T||S.$$typeof===v||S[0]===x))}function L(S,H,Y){var b=H.displayName||H.name||"";return S.displayName||(b!==""?Y+"("+b+")":Y)}function D(S){return S.displayName||"Context"}function P(S){if(S==null)return null;if(typeof S.tag=="number"&&Z("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case t.Fragment:return"Fragment";case r:return"Portal";case o:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case c:var H=S;return D(H)+".Consumer";case a:var Y=S;return D(Y._context)+".Provider";case l:return L(S,S.render,"ForwardRef");case p:return P(S.type);case v:return P(S._render);case w:{var b=S,le=b._payload,fe=b._init;try{return P(fe(le))}catch{return null}}}return null}var N=0,$,ee,ke,pe,ot,Ke,Pe;function ft(){}ft.__reactDisabledLog=!0;function He(){{if(N===0){$=console.log,ee=console.info,ke=console.warn,pe=console.error,ot=console.group,Ke=console.groupCollapsed,Pe=console.groupEnd;var S={configurable:!0,enumerable:!0,value:ft,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}N++}}function ht(){{if(N--,N===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},S,{value:$}),info:n({},S,{value:ee}),warn:n({},S,{value:ke}),error:n({},S,{value:pe}),group:n({},S,{value:ot}),groupCollapsed:n({},S,{value:Ke}),groupEnd:n({},S,{value:Pe})})}N<0&&Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var rt=B.ReactCurrentDispatcher,Ut;function gt(S,H,Y){{if(Ut===void 0)try{throw Error()}catch(le){var b=le.stack.trim().match(/\n( *(at )?)/);Ut=b&&b[1]||""}return`
20
20
  `+Ut+S}}var Dt=!1,Pt;{var Lt=typeof WeakMap=="function"?WeakMap:Map;Pt=new Lt}function Se(S,H){if(!S||Dt)return"";{var Y=Pt.get(S);if(Y!==void 0)return Y}var b;Dt=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=rt.current,rt.current=null,He();try{if(H){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(d){b=d}Reflect.construct(S,[],G)}else{try{G.call()}catch(d){b=d}S.call(G.prototype)}}else{try{throw Error()}catch(d){b=d}S()}}catch(d){if(d&&b&&typeof d.stack=="string"){for(var C=d.stack.split(`
21
21
  `),M=b.stack.split(`
22
22
  `),U=C.length-1,Q=M.length-1;U>=1&&Q>=0&&C[U]!==M[Q];)Q--;for(;U>=1&&Q>=0;U--,Q--)if(C[U]!==M[Q]){if(U!==1||Q!==1)do if(U--,Q--,Q<0||C[U]!==M[Q]){var Ie=`
@@ -26,15 +26,15 @@ Check the render method of \``+S+"`."}return""}}function ci(S){{if(S!==void 0){v
26
26
 
27
27
  Check your code at `+H+":"+Y+"."}return""}}var Dn={};function zt(S){{var H=Ln();if(!H){var Y=typeof S=="string"?S:S.displayName||S.name;Y&&(H=`
28
28
 
29
- Check the top-level render call using <`+Y+">.")}return H}}function Nn(S,H){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var Y=zt(H);if(Dn[Y])return;Dn[Y]=!0;var b="";S&&S._owner&&S._owner!==gn.current&&(b=" It was passed a child from "+P(S._owner.type)+"."),en(S),Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,b),en(null)}}function Jn(S,H){{if(typeof S!="object")return;if(Array.isArray(S))for(var Y=0;Y<S.length;Y++){var b=S[Y];Sn(b)&&Nn(b,H)}else if(Sn(S))S._store&&(S._store.validated=!0);else if(S){var le=se(S);if(typeof le=="function"&&le!==S.entries)for(var fe=le.call(S),G;!(G=fe.next()).done;)Sn(G.value)&&Nn(G.value,H)}}}function cn(S){{var H=S.type;if(H==null||typeof H=="string")return;var Y;if(typeof H=="function")Y=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===p))Y=H.propTypes;else return;if(Y){var b=P(H);It(Y,S.props,"prop",b,S)}else if(H.PropTypes!==void 0&&!An){An=!0;var le=P(H);Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function m(S){{for(var H=Object.keys(S.props),Y=0;Y<H.length;Y++){var b=H[Y];if(b!=="children"&&b!=="key"){en(S),Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),en(null);break}}S.ref!==null&&(en(S),Z("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function E(S,H,Y,b,le,fe){{var G=O(S);if(!G){var C="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=ci(le);M?C+=M:C+=Ln();var U;S===null?U="null":Array.isArray(S)?U="array":S!==void 0&&S.$$typeof===i?(U="<"+(P(S.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):U=typeof S,Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,C)}var Q=Zt(S,H,Y,le,fe);if(Q==null)return Q;if(G){var Ie=H.children;if(Ie!==void 0)if(b)if(Array.isArray(Ie)){for(var Me=0;Me<Ie.length;Me++)Jn(Ie[Me],S);Object.freeze&&Object.freeze(Ie)}else Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Jn(Ie,S)}return S===t.Fragment?m(Q):cn(Q),Q}}function te(S,H,Y){return E(S,H,Y,!0)}function we(S,H,Y){return E(S,H,Y,!1)}var Te=we,at=te;t.jsx=Te,t.jsxs=at}()}(Dl)),Dl}process.env.NODE_ENV==="production"?gu.exports=t4():gu.exports=n4();var ut=gu.exports;class i4 extends J2.BaseLanguageClient{constructor({id:n,name:i,clientOptions:r,connectionProvider:s}){super(n??i.toLowerCase(),i,r);pn(this,"connectionProvider");this.connectionProvider=s}createMessageTransports(n){return this.connectionProvider.get(n)}}const r4=async t=>{var r;const e=t.serviceConfig??{};e.debugLogging=((r=t.logger)==null?void 0:r.isEnabled())===!0&&(e.debugLogging===!0||t.logger.isDebugEnabled()===!0),e.userServices=e.userServices??{};const n=e.userServices.configurationService??void 0,i=e.workspaceConfig??void 0;if(n===void 0){if(i)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const s={};P0.mergeServices(s,e.userServices)}return i||(e.workspaceConfig={workspaceProvider:{trusted:!0,workspace:{workspaceUri:ue.Uri.file("/workspace")},async open(){return!1}}}),e};var pu={},mu={},ge={};function ne(t,e,n,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function s4(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const o=Math.floor((r+s)/2);e(t[o])?r=o+1:s=o}return r-1}const cc=class cc{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(cc.assertInvariants){if(this._prevFindLastPredicate){for(const i of this._array)if(this._prevFindLastPredicate(i)&&!e(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=s4(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};cc.assertInvariants=!1;let tg=cc;function yu(t,e,n=(i,r)=>i===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!n(t[i],e[i]))return!1;return!0}function o4(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function ng(t,e){let n;if(typeof e=="number"){let i=e;n=()=>{const r=Math.sin(i++)*179426549;return r-Math.floor(r)}}else n=Math.random;for(let i=t.length-1;i>0;i-=1){const r=Math.floor(n()*(i+1)),s=t[i];t[i]=t[r],t[r]=s}}function a4(t){return Array.isArray(t)?t:[t]}var bu;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function i(s){return s>0}t.isGreaterThan=i;function r(s){return s===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(bu||(bu={}));function c4(t,e){return(n,i)=>e(t(n),t(i))}const l4=(t,e)=>t-e,ts=class ts{constructor(e){this.iterate=e}forEach(e){this.iterate(n=>(e(n),!0))}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new ts(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new ts(n=>this.iterate(i=>n(e(i))))}some(e){let n=!1;return this.iterate(i=>(n=e(i),!n)),n}findFirst(e){let n;return this.iterate(i=>e(i)?(n=i,!1):!0),n}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(r=>((i||bu.isGreaterThan(e(r,n)))&&(i=!1,n=r),!0)),n}};ts.empty=new ts(e=>{});let ig=ts;class u4{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?go.isErrorNoTelemetry(e)?new go(e.message+`
29
+ Check the top-level render call using <`+Y+">.")}return H}}function Nn(S,H){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var Y=zt(H);if(Dn[Y])return;Dn[Y]=!0;var b="";S&&S._owner&&S._owner!==gn.current&&(b=" It was passed a child from "+P(S._owner.type)+"."),en(S),Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,b),en(null)}}function Jn(S,H){{if(typeof S!="object")return;if(Array.isArray(S))for(var Y=0;Y<S.length;Y++){var b=S[Y];Sn(b)&&Nn(b,H)}else if(Sn(S))S._store&&(S._store.validated=!0);else if(S){var le=se(S);if(typeof le=="function"&&le!==S.entries)for(var fe=le.call(S),G;!(G=fe.next()).done;)Sn(G.value)&&Nn(G.value,H)}}}function cn(S){{var H=S.type;if(H==null||typeof H=="string")return;var Y;if(typeof H=="function")Y=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===p))Y=H.propTypes;else return;if(Y){var b=P(H);It(Y,S.props,"prop",b,S)}else if(H.PropTypes!==void 0&&!An){An=!0;var le=P(H);Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function m(S){{for(var H=Object.keys(S.props),Y=0;Y<H.length;Y++){var b=H[Y];if(b!=="children"&&b!=="key"){en(S),Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),en(null);break}}S.ref!==null&&(en(S),Z("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function E(S,H,Y,b,le,fe){{var G=O(S);if(!G){var C="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=ci(le);M?C+=M:C+=Ln();var U;S===null?U="null":Array.isArray(S)?U="array":S!==void 0&&S.$$typeof===i?(U="<"+(P(S.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):U=typeof S,Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,C)}var Q=Zt(S,H,Y,le,fe);if(Q==null)return Q;if(G){var Ie=H.children;if(Ie!==void 0)if(b)if(Array.isArray(Ie)){for(var Me=0;Me<Ie.length;Me++)Jn(Ie[Me],S);Object.freeze&&Object.freeze(Ie)}else Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Jn(Ie,S)}return S===t.Fragment?m(Q):cn(Q),Q}}function te(S,H,Y){return E(S,H,Y,!0)}function we(S,H,Y){return E(S,H,Y,!1)}var Te=we,at=te;t.jsx=Te,t.jsxs=at}()}(Dl)),Dl}process.env.NODE_ENV==="production"?gu.exports=n4():gu.exports=i4();var ut=gu.exports;class r4 extends Y2.BaseLanguageClient{constructor({id:n,name:i,clientOptions:r,connectionProvider:s}){super(n??i.toLowerCase(),i,r);pn(this,"connectionProvider");this.connectionProvider=s}createMessageTransports(n){return this.connectionProvider.get(n)}}const s4=async t=>{var r;const e=t.serviceConfig??{};e.debugLogging=((r=t.logger)==null?void 0:r.isEnabled())===!0&&(e.debugLogging===!0||t.logger.isDebugEnabled()===!0),e.userServices=e.userServices??{};const n=e.userServices.configurationService??void 0,i=e.workspaceConfig??void 0;if(n===void 0){if(i)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const s={};I0.mergeServices(s,e.userServices)}return i||(e.workspaceConfig={workspaceProvider:{trusted:!0,workspace:{workspaceUri:ue.Uri.file("/workspace")},async open(){return!1}}}),e};var pu={},mu={},ge={};function ne(t,e,n,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function o4(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const o=Math.floor((r+s)/2);e(t[o])?r=o+1:s=o}return r-1}const cc=class cc{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(cc.assertInvariants){if(this._prevFindLastPredicate){for(const i of this._array)if(this._prevFindLastPredicate(i)&&!e(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=o4(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};cc.assertInvariants=!1;let ng=cc;function yu(t,e,n=(i,r)=>i===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!n(t[i],e[i]))return!1;return!0}function a4(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function ig(t,e){let n;if(typeof e=="number"){let i=e;n=()=>{const r=Math.sin(i++)*179426549;return r-Math.floor(r)}}else n=Math.random;for(let i=t.length-1;i>0;i-=1){const r=Math.floor(n()*(i+1)),s=t[i];t[i]=t[r],t[r]=s}}function c4(t){return Array.isArray(t)?t:[t]}var bu;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function i(s){return s>0}t.isGreaterThan=i;function r(s){return s===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(bu||(bu={}));function l4(t,e){return(n,i)=>e(t(n),t(i))}const u4=(t,e)=>t-e,ts=class ts{constructor(e){this.iterate=e}forEach(e){this.iterate(n=>(e(n),!0))}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new ts(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new ts(n=>this.iterate(i=>n(e(i))))}some(e){let n=!1;return this.iterate(i=>(n=e(i),!n)),n}findFirst(e){let n;return this.iterate(i=>e(i)?(n=i,!1):!0),n}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(r=>((i||bu.isGreaterThan(e(r,n)))&&(i=!1,n=r),!0)),n}};ts.empty=new ts(e=>{});let rg=ts;class d4{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?go.isErrorNoTelemetry(e)?new go(e.message+`
30
30
 
31
31
  `+e.stack):new Error(e.message+`
32
32
 
33
- `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(n=>{n(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const d4=new u4;function M0(t){f4(t)||d4.onUnexpectedError(t)}const vu="Canceled";function f4(t){return t instanceof O0?!0:t instanceof Error&&t.name===vu&&t.message===vu}let O0=class extends Error{constructor(){super(vu),this.name=this.message}};function xe(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function h4(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class go extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof go)return e;const n=new go;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}var rg,sg;class g4{constructor(e,n){this.uri=e,this.value=n}}function p4(t){return Array.isArray(t)}const kr=class kr{constructor(e,n){if(this[rg]="ResourceMap",e instanceof kr)this.map=new Map(e.map),this.toKey=n??kr.defaultToKey;else if(p4(e)){this.map=new Map,this.toKey=n??kr.defaultToKey;for(const[i,r]of e)this.set(i,r)}else this.map=new Map,this.toKey=e??kr.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new g4(e,n)),this}get(e){var n;return(n=this.map.get(this.toKey(e)))==null?void 0:n.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,n){typeof n<"u"&&(e=e.bind(n));for(const[i,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(rg=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}};kr.defaultToKey=e=>e.toString();let va=kr,m4=class{constructor(){this[sg]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const i=this._map.get(e);if(i)return n!==0&&this.touch(i,n),i.value}set(e,n,i=0){let r=this._map.get(e);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(sg=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}};class y4 extends m4{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}let A0=class extends y4{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}};class b4{constructor(){this.map=new Map}add(e,n){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(n)}delete(e,n){const i=this.map.get(e);i&&(i.delete(n),i.size===0&&this.map.delete(e))}forEach(e,n){const i=this.map.get(e);i&&i.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}function v4(t,e){const n=this;let i=!1,r;return function(){if(i)return r;if(i=!0,e)try{r=t.apply(n,arguments)}finally{e()}else r=t.apply(n,arguments);return r}}function w4(t,e){const n=Object.create(null);for(const i of t){const r=e(i);let s=n[r];s||(s=n[r]=[]),s.push(i)}return n}var wu;(function(t){function e(A){return A&&typeof A=="object"&&typeof A[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(A){yield A}t.single=r;function s(A){return e(A)?A:r(A)}t.wrap=s;function o(A){return A||n}t.from=o;function*a(A){for(let W=A.length-1;W>=0;W--)yield A[W]}t.reverse=a;function c(A){return!A||A[Symbol.iterator]().next().done===!0}t.isEmpty=c;function l(A){return A[Symbol.iterator]().next().value}t.first=l;function h(A,W){for(const j of A)if(W(j))return!0;return!1}t.some=h;function g(A,W){for(const j of A)if(W(j))return j}t.find=g;function*p(A,W){for(const j of A)W(j)&&(yield j)}t.filter=p;function*w(A,W){let j=0;for(const se of A)yield W(se,j++)}t.map=w;function*v(...A){for(const W of A)yield*W}t.concat=v;function x(A,W,j){let se=j;for(const B of A)se=W(se,B);return se}t.reduce=x;function*T(A,W,j=A.length){for(W<0&&(W+=A.length),j<0?j+=A.length:j>A.length&&(j=A.length);W<j;W++)yield A[W]}t.slice=T;function q(A,W=Number.POSITIVE_INFINITY){const j=[];if(W===0)return[j,A];const se=A[Symbol.iterator]();for(let B=0;B<W;B++){const Z=se.next();if(Z.done)return[j,t.empty()];j.push(Z.value)}return[j,{[Symbol.iterator](){return se}}]}t.consume=q;async function z(A){const W=[];for await(const j of A)W.push(j);return Promise.resolve(W)}t.asyncToArray=z})(wu||(wu={}));const lc=class lc{constructor(){this.livingDisposables=new Map}getDisposableData(e){let n=this.livingDisposables.get(e);return n||(n={parent:null,source:null,isSingleton:!1,value:e,idx:lc.idx++},this.livingDisposables.set(e,n)),n}trackDisposable(e){const n=this.getDisposableData(e);n.source||(n.source=new Error().stack)}setParent(e,n){const i=this.getDisposableData(e);i.parent=n}markAsDisposed(e){this.livingDisposables.delete(e)}markAsSingleton(e){this.getDisposableData(e).isSingleton=!0}getRootParent(e,n){const i=n.get(e);if(i)return i;const r=e.parent?this.getRootParent(this.getDisposableData(e.parent),n):e;return n.set(e,r),r}getTrackedDisposables(){const e=new Map;return[...this.livingDisposables.entries()].filter(([,i])=>i.source!==null&&!this.getRootParent(i,e).isSingleton).flatMap(([i])=>i)}computeLeakingDisposables(e=10,n){let i;if(n)i=n;else{const c=new Map,l=[...this.livingDisposables.values()].filter(g=>g.source!==null&&!this.getRootParent(g,c).isSingleton);if(l.length===0)return;const h=new Set(l.map(g=>g.value));if(i=l.filter(g=>!(g.parent&&h.has(g.parent))),i.length===0)throw new Error("There are cyclic diposable chains!")}if(!i)return;function r(c){function l(g,p){for(;g.length>0&&p.some(w=>typeof w=="string"?w===g[0]:g[0].match(w));)g.shift()}const h=c.source.split(`
34
- `).map(g=>g.trim().replace("at ","")).filter(g=>g!=="");return l(h,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),h.reverse()}const s=new b4;for(const c of i){const l=r(c);for(let h=0;h<=l.length;h++)s.add(l.slice(0,h).join(`
35
- `),c)}i.sort(c4(c=>c.idx,l4));let o="",a=0;for(const c of i.slice(0,e)){a++;const l=r(c),h=[];for(let g=0;g<l.length;g++){let p=l[g];p=`(shared with ${s.get(l.slice(0,g+1).join(`
33
+ `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(n=>{n(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const f4=new d4;function O0(t){h4(t)||f4.onUnexpectedError(t)}const vu="Canceled";function h4(t){return t instanceof A0?!0:t instanceof Error&&t.name===vu&&t.message===vu}let A0=class extends Error{constructor(){super(vu),this.name=this.message}};function xe(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function g4(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class go extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof go)return e;const n=new go;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}var sg,og;class p4{constructor(e,n){this.uri=e,this.value=n}}function m4(t){return Array.isArray(t)}const kr=class kr{constructor(e,n){if(this[sg]="ResourceMap",e instanceof kr)this.map=new Map(e.map),this.toKey=n??kr.defaultToKey;else if(m4(e)){this.map=new Map,this.toKey=n??kr.defaultToKey;for(const[i,r]of e)this.set(i,r)}else this.map=new Map,this.toKey=e??kr.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new p4(e,n)),this}get(e){var n;return(n=this.map.get(this.toKey(e)))==null?void 0:n.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,n){typeof n<"u"&&(e=e.bind(n));for(const[i,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(sg=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}};kr.defaultToKey=e=>e.toString();let va=kr,y4=class{constructor(){this[og]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const i=this._map.get(e);if(i)return n!==0&&this.touch(i,n),i.value}set(e,n,i=0){let r=this._map.get(e);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(og=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}};class b4 extends y4{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}let L0=class extends b4{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}};class v4{constructor(){this.map=new Map}add(e,n){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(n)}delete(e,n){const i=this.map.get(e);i&&(i.delete(n),i.size===0&&this.map.delete(e))}forEach(e,n){const i=this.map.get(e);i&&i.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}function w4(t,e){const n=this;let i=!1,r;return function(){if(i)return r;if(i=!0,e)try{r=t.apply(n,arguments)}finally{e()}else r=t.apply(n,arguments);return r}}function C4(t,e){const n=Object.create(null);for(const i of t){const r=e(i);let s=n[r];s||(s=n[r]=[]),s.push(i)}return n}var wu;(function(t){function e(A){return A&&typeof A=="object"&&typeof A[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(A){yield A}t.single=r;function s(A){return e(A)?A:r(A)}t.wrap=s;function o(A){return A||n}t.from=o;function*a(A){for(let W=A.length-1;W>=0;W--)yield A[W]}t.reverse=a;function c(A){return!A||A[Symbol.iterator]().next().done===!0}t.isEmpty=c;function l(A){return A[Symbol.iterator]().next().value}t.first=l;function h(A,W){for(const j of A)if(W(j))return!0;return!1}t.some=h;function g(A,W){for(const j of A)if(W(j))return j}t.find=g;function*p(A,W){for(const j of A)W(j)&&(yield j)}t.filter=p;function*w(A,W){let j=0;for(const se of A)yield W(se,j++)}t.map=w;function*v(...A){for(const W of A)yield*W}t.concat=v;function x(A,W,j){let se=j;for(const B of A)se=W(se,B);return se}t.reduce=x;function*T(A,W,j=A.length){for(W<0&&(W+=A.length),j<0?j+=A.length:j>A.length&&(j=A.length);W<j;W++)yield A[W]}t.slice=T;function q(A,W=Number.POSITIVE_INFINITY){const j=[];if(W===0)return[j,A];const se=A[Symbol.iterator]();for(let B=0;B<W;B++){const Z=se.next();if(Z.done)return[j,t.empty()];j.push(Z.value)}return[j,{[Symbol.iterator](){return se}}]}t.consume=q;async function z(A){const W=[];for await(const j of A)W.push(j);return Promise.resolve(W)}t.asyncToArray=z})(wu||(wu={}));const lc=class lc{constructor(){this.livingDisposables=new Map}getDisposableData(e){let n=this.livingDisposables.get(e);return n||(n={parent:null,source:null,isSingleton:!1,value:e,idx:lc.idx++},this.livingDisposables.set(e,n)),n}trackDisposable(e){const n=this.getDisposableData(e);n.source||(n.source=new Error().stack)}setParent(e,n){const i=this.getDisposableData(e);i.parent=n}markAsDisposed(e){this.livingDisposables.delete(e)}markAsSingleton(e){this.getDisposableData(e).isSingleton=!0}getRootParent(e,n){const i=n.get(e);if(i)return i;const r=e.parent?this.getRootParent(this.getDisposableData(e.parent),n):e;return n.set(e,r),r}getTrackedDisposables(){const e=new Map;return[...this.livingDisposables.entries()].filter(([,i])=>i.source!==null&&!this.getRootParent(i,e).isSingleton).flatMap(([i])=>i)}computeLeakingDisposables(e=10,n){let i;if(n)i=n;else{const c=new Map,l=[...this.livingDisposables.values()].filter(g=>g.source!==null&&!this.getRootParent(g,c).isSingleton);if(l.length===0)return;const h=new Set(l.map(g=>g.value));if(i=l.filter(g=>!(g.parent&&h.has(g.parent))),i.length===0)throw new Error("There are cyclic diposable chains!")}if(!i)return;function r(c){function l(g,p){for(;g.length>0&&p.some(w=>typeof w=="string"?w===g[0]:g[0].match(w));)g.shift()}const h=c.source.split(`
34
+ `).map(g=>g.trim().replace("at ","")).filter(g=>g!=="");return l(h,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),h.reverse()}const s=new v4;for(const c of i){const l=r(c);for(let h=0;h<=l.length;h++)s.add(l.slice(0,h).join(`
35
+ `),c)}i.sort(l4(c=>c.idx,u4));let o="",a=0;for(const c of i.slice(0,e)){a++;const l=r(c),h=[];for(let g=0;g<l.length;g++){let p=l[g];p=`(shared with ${s.get(l.slice(0,g+1).join(`
36
36
  `)).size}/${i.length} leaks) at ${p}`;const v=s.get(l.slice(0,g).join(`
37
- `)),x=w4([...v].map(T=>r(T)[g]),T=>T);delete x[l[g]];for(const[T,q]of Object.entries(x))h.unshift(` - stacktraces of ${q.length} other leaks continue with ${T}`);h.unshift(p)}o+=`
37
+ `)),x=C4([...v].map(T=>r(T)[g]),T=>T);delete x[l[g]];for(const[T,q]of Object.entries(x))h.unshift(` - stacktraces of ${q.length} other leaks continue with ${T}`);h.unshift(p)}o+=`
38
38
 
39
39
 
40
40
  ==================== Leaking disposable ${a}/${i.length}: ${c.value.constructor.name} ====================
@@ -47,34 +47,34 @@ ${h.join(`
47
47
 
48
48
  ... and ${i.length-e} more leaking disposables
49
49
 
50
- `),{leaks:i,details:o}}};lc.idx=0;let og=lc;function L0(t){if(wu.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function C4(...t){return x1(()=>L0(t))}function x1(t){return{dispose:v4(()=>{t()})}}const uc=class uc{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{L0(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?uc.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}};uc.DISABLE_DISPOSED_WARNING=!1;let po=uc;var Lo;let Cu=(Lo=class{constructor(){this._store=new po,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},Lo.None=Object.freeze({dispose(){}}),Lo);const ns=class ns{constructor(e){this.element=e,this.next=ns.Undefined,this.prev=ns.Undefined}};ns.Undefined=new ns(void 0);let ct=ns;class _4{constructor(){this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ct.Undefined}clear(){let e=this._first;for(;e!==ct.Undefined;){const n=e.next;e.prev=ct.Undefined,e.next=ct.Undefined,e=n}this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new ct(e);if(this._first===ct.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==ct.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ct.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ct.Undefined&&e.next!==ct.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===ct.Undefined&&e.next===ct.Undefined?(this._first=ct.Undefined,this._last=ct.Undefined):e.next===ct.Undefined?(this._last=this._last.prev,this._last.next=ct.Undefined):e.prev===ct.Undefined&&(this._first=this._first.next,this._first.prev=ct.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ct.Undefined;)yield e.element,e=e.next}}const S4=globalThis.performance&&typeof globalThis.performance.now=="function";class k1{static create(e){return new k1(e)}constructor(e){this._now=S4&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var wa;(function(t){t.None=()=>Cu.None;function e(O,L){return g(O,()=>{},0,void 0,!0,void 0,L)}t.defer=e;function n(O){return(L,D=null,P)=>{let N=!1,$;return $=O(ee=>{if(!N)return $?$.dispose():N=!0,L.call(D,ee)},null,P),N&&$.dispose(),$}}t.once=n;function i(O,L,D){return l((P,N=null,$)=>O(ee=>P.call(N,L(ee)),null,$),D)}t.map=i;function r(O,L,D){return l((P,N=null,$)=>O(ee=>{L(ee),P.call(N,ee)},null,$),D)}t.forEach=r;function s(O,L,D){return l((P,N=null,$)=>O(ee=>L(ee)&&P.call(N,ee),null,$),D)}t.filter=s;function o(O){return O}t.signal=o;function a(...O){return(L,D=null,P)=>{const N=C4(...O.map($=>$(ee=>L.call(D,ee))));return h(N,P)}}t.any=a;function c(O,L,D,P){let N=D;return i(O,$=>(N=L(N,$),N),P)}t.reduce=c;function l(O,L){let D;const P={onWillAddFirstListener(){D=O(N.fire,N)},onDidRemoveLastListener(){D==null||D.dispose()}},N=new hi(P);return L==null||L.add(N),N.event}function h(O,L){return L instanceof Array?L.push(O):L&&L.add(O),O}function g(O,L,D=100,P=!1,N=!1,$,ee){let ke,pe,ot,Ke=0,Pe;const ft={leakWarningThreshold:$,onWillAddFirstListener(){ke=O(ht=>{Ke++,pe=L(pe,ht),P&&!ot&&(He.fire(pe),pe=void 0),Pe=()=>{const rt=pe;pe=void 0,ot=void 0,(!P||Ke>1)&&He.fire(rt),Ke=0},typeof D=="number"?(clearTimeout(ot),ot=setTimeout(Pe,D)):ot===void 0&&(ot=0,queueMicrotask(Pe))})},onWillRemoveListener(){N&&Ke>0&&(Pe==null||Pe())},onDidRemoveLastListener(){Pe=void 0,ke.dispose()}},He=new hi(ft);return ee==null||ee.add(He),He.event}t.debounce=g;function p(O,L=0,D){return t.debounce(O,(P,N)=>P?(P.push(N),P):[N],L,void 0,!0,void 0,D)}t.accumulate=p;function w(O,L=(P,N)=>P===N,D){let P=!0,N;return s(O,$=>{const ee=P||!L($,N);return P=!1,N=$,ee},D)}t.latch=w;function v(O,L,D){return[t.filter(O,L,D),t.filter(O,P=>!L(P),D)]}t.split=v;function x(O,L=!1,D=[],P){let N=D.slice(),$=O(pe=>{N?N.push(pe):ke.fire(pe)});P&&P.add($);const ee=()=>{N==null||N.forEach(pe=>ke.fire(pe)),N=null},ke=new hi({onWillAddFirstListener(){$||($=O(pe=>ke.fire(pe)),P&&P.add($))},onDidAddFirstListener(){N&&(L?setTimeout(ee):ee())},onDidRemoveLastListener(){$&&$.dispose(),$=null}});return P&&P.add(ke),ke.event}t.buffer=x;function T(O,L){return(P,N,$)=>{const ee=L(new z);return O(function(ke){const pe=ee.evaluate(ke);pe!==q&&P.call(N,pe)},void 0,$)}}t.chain=T;const q=Symbol("HaltChainable");class z{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(D=>(L(D),D)),this}filter(L){return this.steps.push(D=>L(D)?D:q),this}reduce(L,D){let P=D;return this.steps.push(N=>(P=L(P,N),P)),this}latch(L=(D,P)=>D===P){let D=!0,P;return this.steps.push(N=>{const $=D||!L(N,P);return D=!1,P=N,$?N:q}),this}evaluate(L){for(const D of this.steps)if(L=D(L),L===q)break;return L}}function A(O,L,D=P=>P){const P=(...ke)=>ee.fire(D(...ke)),N=()=>O.on(L,P),$=()=>O.removeListener(L,P),ee=new hi({onWillAddFirstListener:N,onDidRemoveLastListener:$});return ee.event}t.fromNodeEventEmitter=A;function W(O,L,D=P=>P){const P=(...ke)=>ee.fire(D(...ke)),N=()=>O.addEventListener(L,P),$=()=>O.removeEventListener(L,P),ee=new hi({onWillAddFirstListener:N,onDidRemoveLastListener:$});return ee.event}t.fromDOMEventEmitter=W;function j(O){return new Promise(L=>n(O)(L))}t.toPromise=j;function se(O){const L=new hi;return O.then(D=>{L.fire(D)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}t.fromPromise=se;function B(O,L,D){return L(D),O(P=>L(P))}t.runAndSubscribe=B;class Z{constructor(L,D){this._observable=L,this._counter=0,this._hasChanged=!1;const P={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new hi(P),D&&D.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,D){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function oe(O,L){return new Z(O,L).emitter.event}t.fromObservable=oe;function qe(O){return(L,D,P)=>{let N=0,$=!1;const ee={beginUpdate(){N++},endUpdate(){N--,N===0&&(O.reportChanges(),$&&($=!1,L.call(D)))},handlePossibleChange(){},handleChange(){$=!0}};O.addObserver(ee),O.reportChanges();const ke={dispose(){O.removeObserver(ee)}};return P instanceof po?P.add(ke):Array.isArray(P)&&P.push(ke),ke}}t.fromObservableLight=qe})(wa||(wa={}));const is=class is{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${is._idPool++}`,is.all.add(this)}start(e){this._stopWatch=new k1,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};is.all=new Set,is._idPool=0;let _u=is,D4=-1;class x4{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)==null||e.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let s,o=0;for(const[a,c]of this._stacks)(!s||o<c)&&(s=a,o=c);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`),console.warn(s)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class T1{static create(){return new T1(new Error().stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
50
+ `),{leaks:i,details:o}}};lc.idx=0;let ag=lc;function N0(t){if(wu.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function _4(...t){return x1(()=>N0(t))}function x1(t){return{dispose:w4(()=>{t()})}}const uc=class uc{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{N0(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?uc.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}};uc.DISABLE_DISPOSED_WARNING=!1;let po=uc;var Lo;let Cu=(Lo=class{constructor(){this._store=new po,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},Lo.None=Object.freeze({dispose(){}}),Lo);const ns=class ns{constructor(e){this.element=e,this.next=ns.Undefined,this.prev=ns.Undefined}};ns.Undefined=new ns(void 0);let ct=ns;class S4{constructor(){this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ct.Undefined}clear(){let e=this._first;for(;e!==ct.Undefined;){const n=e.next;e.prev=ct.Undefined,e.next=ct.Undefined,e=n}this._first=ct.Undefined,this._last=ct.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new ct(e);if(this._first===ct.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==ct.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ct.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ct.Undefined&&e.next!==ct.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===ct.Undefined&&e.next===ct.Undefined?(this._first=ct.Undefined,this._last=ct.Undefined):e.next===ct.Undefined?(this._last=this._last.prev,this._last.next=ct.Undefined):e.prev===ct.Undefined&&(this._first=this._first.next,this._first.prev=ct.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ct.Undefined;)yield e.element,e=e.next}}const D4=globalThis.performance&&typeof globalThis.performance.now=="function";class k1{static create(e){return new k1(e)}constructor(e){this._now=D4&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var wa;(function(t){t.None=()=>Cu.None;function e(O,L){return g(O,()=>{},0,void 0,!0,void 0,L)}t.defer=e;function n(O){return(L,D=null,P)=>{let N=!1,$;return $=O(ee=>{if(!N)return $?$.dispose():N=!0,L.call(D,ee)},null,P),N&&$.dispose(),$}}t.once=n;function i(O,L,D){return l((P,N=null,$)=>O(ee=>P.call(N,L(ee)),null,$),D)}t.map=i;function r(O,L,D){return l((P,N=null,$)=>O(ee=>{L(ee),P.call(N,ee)},null,$),D)}t.forEach=r;function s(O,L,D){return l((P,N=null,$)=>O(ee=>L(ee)&&P.call(N,ee),null,$),D)}t.filter=s;function o(O){return O}t.signal=o;function a(...O){return(L,D=null,P)=>{const N=_4(...O.map($=>$(ee=>L.call(D,ee))));return h(N,P)}}t.any=a;function c(O,L,D,P){let N=D;return i(O,$=>(N=L(N,$),N),P)}t.reduce=c;function l(O,L){let D;const P={onWillAddFirstListener(){D=O(N.fire,N)},onDidRemoveLastListener(){D==null||D.dispose()}},N=new hi(P);return L==null||L.add(N),N.event}function h(O,L){return L instanceof Array?L.push(O):L&&L.add(O),O}function g(O,L,D=100,P=!1,N=!1,$,ee){let ke,pe,ot,Ke=0,Pe;const ft={leakWarningThreshold:$,onWillAddFirstListener(){ke=O(ht=>{Ke++,pe=L(pe,ht),P&&!ot&&(He.fire(pe),pe=void 0),Pe=()=>{const rt=pe;pe=void 0,ot=void 0,(!P||Ke>1)&&He.fire(rt),Ke=0},typeof D=="number"?(clearTimeout(ot),ot=setTimeout(Pe,D)):ot===void 0&&(ot=0,queueMicrotask(Pe))})},onWillRemoveListener(){N&&Ke>0&&(Pe==null||Pe())},onDidRemoveLastListener(){Pe=void 0,ke.dispose()}},He=new hi(ft);return ee==null||ee.add(He),He.event}t.debounce=g;function p(O,L=0,D){return t.debounce(O,(P,N)=>P?(P.push(N),P):[N],L,void 0,!0,void 0,D)}t.accumulate=p;function w(O,L=(P,N)=>P===N,D){let P=!0,N;return s(O,$=>{const ee=P||!L($,N);return P=!1,N=$,ee},D)}t.latch=w;function v(O,L,D){return[t.filter(O,L,D),t.filter(O,P=>!L(P),D)]}t.split=v;function x(O,L=!1,D=[],P){let N=D.slice(),$=O(pe=>{N?N.push(pe):ke.fire(pe)});P&&P.add($);const ee=()=>{N==null||N.forEach(pe=>ke.fire(pe)),N=null},ke=new hi({onWillAddFirstListener(){$||($=O(pe=>ke.fire(pe)),P&&P.add($))},onDidAddFirstListener(){N&&(L?setTimeout(ee):ee())},onDidRemoveLastListener(){$&&$.dispose(),$=null}});return P&&P.add(ke),ke.event}t.buffer=x;function T(O,L){return(P,N,$)=>{const ee=L(new z);return O(function(ke){const pe=ee.evaluate(ke);pe!==q&&P.call(N,pe)},void 0,$)}}t.chain=T;const q=Symbol("HaltChainable");class z{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(D=>(L(D),D)),this}filter(L){return this.steps.push(D=>L(D)?D:q),this}reduce(L,D){let P=D;return this.steps.push(N=>(P=L(P,N),P)),this}latch(L=(D,P)=>D===P){let D=!0,P;return this.steps.push(N=>{const $=D||!L(N,P);return D=!1,P=N,$?N:q}),this}evaluate(L){for(const D of this.steps)if(L=D(L),L===q)break;return L}}function A(O,L,D=P=>P){const P=(...ke)=>ee.fire(D(...ke)),N=()=>O.on(L,P),$=()=>O.removeListener(L,P),ee=new hi({onWillAddFirstListener:N,onDidRemoveLastListener:$});return ee.event}t.fromNodeEventEmitter=A;function W(O,L,D=P=>P){const P=(...ke)=>ee.fire(D(...ke)),N=()=>O.addEventListener(L,P),$=()=>O.removeEventListener(L,P),ee=new hi({onWillAddFirstListener:N,onDidRemoveLastListener:$});return ee.event}t.fromDOMEventEmitter=W;function j(O){return new Promise(L=>n(O)(L))}t.toPromise=j;function se(O){const L=new hi;return O.then(D=>{L.fire(D)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}t.fromPromise=se;function B(O,L,D){return L(D),O(P=>L(P))}t.runAndSubscribe=B;class Z{constructor(L,D){this._observable=L,this._counter=0,this._hasChanged=!1;const P={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new hi(P),D&&D.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,D){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function oe(O,L){return new Z(O,L).emitter.event}t.fromObservable=oe;function qe(O){return(L,D,P)=>{let N=0,$=!1;const ee={beginUpdate(){N++},endUpdate(){N--,N===0&&(O.reportChanges(),$&&($=!1,L.call(D)))},handlePossibleChange(){},handleChange(){$=!0}};O.addObserver(ee),O.reportChanges();const ke={dispose(){O.removeObserver(ee)}};return P instanceof po?P.add(ke):Array.isArray(P)&&P.push(ke),ke}}t.fromObservableLight=qe})(wa||(wa={}));const is=class is{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${is._idPool++}`,is.all.add(this)}start(e){this._stopWatch=new k1,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};is.all=new Set,is._idPool=0;let _u=is,x4=-1;class k4{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)==null||e.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let s,o=0;for(const[a,c]of this._stacks)(!s||o<c)&&(s=a,o=c);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`),console.warn(s)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class T1{static create(){return new T1(new Error().stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
51
51
  `).slice(2).join(`
52
- `))}}let k4=0;class xl{constructor(e){this.value=e,this.id=k4++}}const T4=2;let hi=class{constructor(e){var n,i,r,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new x4(((i=this._options)==null?void 0:i.leakWarningThreshold)??D4):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new _u(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,i,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||i.call(n),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,n,i)=>{var a,c,l,h;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Cu.None;if(this._disposed)return Cu.None;n&&(e=e.bind(n));const r=new xl(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=T1.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof xl?(this._deliveryQueue??(this._deliveryQueue=new R4),this._listeners=[this._listeners,r]):this._listeners.push(r):((c=(a=this._options)==null?void 0:a.onWillAddFirstListener)==null||c.call(a,this),this._listeners=r,(h=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||h.call(l,this)),this._size++;const o=x1(()=>{s==null||s(),this._removeListener(r)});return i instanceof po?i.add(o):Array.isArray(i)&&i.push(o),o}),this._event}_removeListener(e){var s,o,a,c;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(c=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||c.call(a,this),this._size=0;return}const n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*T4<=n.length){let l=0;for(let h=0;h<n.length;h++)n[h]?n[l++]=n[h]:r&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=l}}_deliver(e,n){var r;if(!e)return;const i=((r=this._options)==null?void 0:r.onListenerError)||M0;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,i,r,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof xl)this._deliver(this._listeners,e);else{const o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}};class R4{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}const N0=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Ca;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof da?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:wa.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:N0})})(Ca||(Ca={}));let da=class{constructor(){this._isCancelled=!1,this._emitter=null}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?N0:(this._emitter||(this._emitter=new hi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},E4=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new da),this._token}cancel(){this._token?this._token instanceof da&&this._token.cancel():this._token=Ca.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof da&&this._token.dispose():this._token=Ca.None}};function P4(t){return t}class I4{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=P4):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}class ds{constructor(e){this.executor=e,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function F4(t){return!t||typeof t!="string"?!0:t.trim().length===0}function M4(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Su(t,e){return t<e?-1:t>e?1:0}function R1(t,e,n=0,i=t.length,r=0,s=e.length){for(;n<i&&r<s;n++,r++){const c=t.charCodeAt(n),l=e.charCodeAt(r);if(c<l)return-1;if(c>l)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function ag(t,e){return qo(t,e,0,t.length,0,e.length)}function qo(t,e,n=0,i=t.length,r=0,s=e.length){for(;n<i&&r<s;n++,r++){let c=t.charCodeAt(n),l=e.charCodeAt(r);if(c===l)continue;if(c>=128||l>=128)return R1(t.toLowerCase(),e.toLowerCase(),n,i,r,s);cg(c)&&(c-=32),cg(l)&&(l-=32);const h=c-l;if(h!==0)return h}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function cg(t){return t>=97&&t<=122}function O4(t,e){return t.length===e.length&&qo(t,e)===0}function $0(t,e){const n=e.length;return e.length>t.length?!1:qo(t,e,0,n)===0}function E1(t){return 55296<=t&&t<=56319}function _a(t){return 56320<=t&&t<=57343}function P1(t,e){return(t-55296<<10)+(e-56320)+65536}function A4(t,e,n){const i=t.charCodeAt(n);if(E1(i)&&n+1<e){const r=t.charCodeAt(n+1);if(_a(r))return P1(i,r)}return i}function L4(t,e){const n=t.charCodeAt(e-1);if(_a(n)&&e>1){const i=t.charCodeAt(e-2);if(E1(i))return P1(i,n)}return n}class N4{get offset(){return this._offset}constructor(e,n=0){this._str=e,this._len=e.length,this._offset=n}setOffset(e){this._offset=e}prevCodePoint(){const e=L4(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=A4(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class $4{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new N4(e,n)}nextGraphemeLength(){const e=Sa.getInstance(),n=this._iterator,i=n.offset;let r=e.getGraphemeBreakType(n.nextCodePoint());for(;!n.eol();){const s=n.offset,o=e.getGraphemeBreakType(n.nextCodePoint());if(ug(r,o)){n.setOffset(s);break}r=o}return n.offset-i}prevGraphemeLength(){const e=Sa.getInstance(),n=this._iterator,i=n.offset;let r=e.getGraphemeBreakType(n.prevCodePoint());for(;n.offset>0;){const s=n.offset,o=e.getGraphemeBreakType(n.prevCodePoint());if(ug(o,r)){n.setOffset(s);break}r=o}return i-n.offset}eol(){return this._iterator.eol()}}function lg(t,e){return new $4(t,e).nextGraphemeLength()}function ug(t,e){return t===0?e!==5&&e!==7:t===2&&e===3?!1:t===4||t===2||t===3||e===4||e===2||e===3?!0:!(t===8&&(e===8||e===9||e===11||e===12)||(t===11||t===9)&&(e===9||e===10)||(t===12||t===10)&&e===10||e===5||e===13||e===7||t===1||t===13&&e===14||t===6&&e===6)}const Tr=class Tr{static getInstance(){return Tr._INSTANCE||(Tr._INSTANCE=new Tr),Tr._INSTANCE}constructor(){this._data=q4()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const n=this._data,i=n.length/3;let r=1;for(;r<=i;)if(e<n[3*r])r=2*r;else if(e>n[3*r+1])r=2*r+1;else return n[3*r+2];return 0}};Tr._INSTANCE=null;let Sa=Tr;function q4(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}const di=class di{static getInstance(e){return di.cache.get(Array.from(e))}static getLocales(){return di._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};di.ambiguousCharacterData=new ds(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),di.cache=new I4({getCacheKey:JSON.stringify},e=>{function n(h){const g=new Map;for(let p=0;p<h.length;p+=2)g.set(h[p],h[p+1]);return g}function i(h,g){const p=new Map(h);for(const[w,v]of g)p.set(w,v);return p}function r(h,g){if(!h)return g;const p=new Map;for(const[w,v]of h)g.has(w)&&p.set(w,v);return p}const s=di.ambiguousCharacterData.value;let o=e.filter(h=>!h.startsWith("_")&&h in s);o.length===0&&(o=["_default"]);let a;for(const h of o){const g=n(s[h]);a=r(a,g)}const c=n(s._common),l=i(c,a);return new di(l)}),di._locales=new ds(()=>Object.keys(di.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let dg=di;const rs=class rs{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(rs.getRawData())),this._data}static isInvisibleCharacter(e){return rs.getData().has(e)}static get codePoints(){return rs.getData()}};rs._data=void 0;let fg=rs;q0.bind(void 0,!1);q0.bind(void 0,!0);function q0(t,e,n){if(!n||n.length<e.length)return null;let i;return t?i=$0(n,e):i=n.indexOf(e)===0,i?e.length>0?[{start:0,end:e.length}]:[]:null}const H4=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>H4.add(t.charCodeAt(0)));new A0(1e4);const hg=128;function I1(){const t=[],e=[];for(let n=0;n<=hg;n++)e[n]=0;for(let n=0;n<=hg;n++)t.push(e.slice(0));return t}I1();I1();I1();var gg;(function(t){t.Default=[-100,0];function e(n){return!n||n.length===2&&n[0]===-100&&n[1]===0}t.isDefault=e})(gg||(gg={}));const K1=class K1{constructor(e,n){this.firstMatchCanBeWeak=e,this.boostFullMatch=n}};K1.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};let pg=K1;function Tn(t){return typeof t=="string"}function j4(t){return Array.isArray(t)&&t.every(e=>Tn(e))}function mg(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function so(t){return typeof t=="number"&&!isNaN(t)}const yg=Object.create(null);function u(t,e){if(Tn(e)){const n=yg[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return yg[t]=e,{id:t}}const W4={add:u("add",6e4),plus:u("plus",6e4),gistNew:u("gist-new",6e4),repoCreate:u("repo-create",6e4),lightbulb:u("lightbulb",60001),lightBulb:u("light-bulb",60001),repo:u("repo",60002),repoDelete:u("repo-delete",60002),gistFork:u("gist-fork",60003),repoForked:u("repo-forked",60003),gitPullRequest:u("git-pull-request",60004),gitPullRequestAbandoned:u("git-pull-request-abandoned",60004),recordKeys:u("record-keys",60005),keyboard:u("keyboard",60005),tag:u("tag",60006),gitPullRequestLabel:u("git-pull-request-label",60006),tagAdd:u("tag-add",60006),tagRemove:u("tag-remove",60006),person:u("person",60007),personFollow:u("person-follow",60007),personOutline:u("person-outline",60007),personFilled:u("person-filled",60007),gitBranch:u("git-branch",60008),gitBranchCreate:u("git-branch-create",60008),gitBranchDelete:u("git-branch-delete",60008),sourceControl:u("source-control",60008),mirror:u("mirror",60009),mirrorPublic:u("mirror-public",60009),star:u("star",60010),starAdd:u("star-add",60010),starDelete:u("star-delete",60010),starEmpty:u("star-empty",60010),comment:u("comment",60011),commentAdd:u("comment-add",60011),alert:u("alert",60012),warning:u("warning",60012),search:u("search",60013),searchSave:u("search-save",60013),logOut:u("log-out",60014),signOut:u("sign-out",60014),logIn:u("log-in",60015),signIn:u("sign-in",60015),eye:u("eye",60016),eyeUnwatch:u("eye-unwatch",60016),eyeWatch:u("eye-watch",60016),circleFilled:u("circle-filled",60017),primitiveDot:u("primitive-dot",60017),closeDirty:u("close-dirty",60017),debugBreakpoint:u("debug-breakpoint",60017),debugBreakpointDisabled:u("debug-breakpoint-disabled",60017),debugHint:u("debug-hint",60017),terminalDecorationSuccess:u("terminal-decoration-success",60017),primitiveSquare:u("primitive-square",60018),edit:u("edit",60019),pencil:u("pencil",60019),info:u("info",60020),issueOpened:u("issue-opened",60020),gistPrivate:u("gist-private",60021),gitForkPrivate:u("git-fork-private",60021),lock:u("lock",60021),mirrorPrivate:u("mirror-private",60021),close:u("close",60022),removeClose:u("remove-close",60022),x:u("x",60022),repoSync:u("repo-sync",60023),sync:u("sync",60023),clone:u("clone",60024),desktopDownload:u("desktop-download",60024),beaker:u("beaker",60025),microscope:u("microscope",60025),vm:u("vm",60026),deviceDesktop:u("device-desktop",60026),file:u("file",60027),fileText:u("file-text",60027),more:u("more",60028),ellipsis:u("ellipsis",60028),kebabHorizontal:u("kebab-horizontal",60028),mailReply:u("mail-reply",60029),reply:u("reply",60029),organization:u("organization",60030),organizationFilled:u("organization-filled",60030),organizationOutline:u("organization-outline",60030),newFile:u("new-file",60031),fileAdd:u("file-add",60031),newFolder:u("new-folder",60032),fileDirectoryCreate:u("file-directory-create",60032),trash:u("trash",60033),trashcan:u("trashcan",60033),history:u("history",60034),clock:u("clock",60034),folder:u("folder",60035),fileDirectory:u("file-directory",60035),symbolFolder:u("symbol-folder",60035),logoGithub:u("logo-github",60036),markGithub:u("mark-github",60036),github:u("github",60036),terminal:u("terminal",60037),console:u("console",60037),repl:u("repl",60037),zap:u("zap",60038),symbolEvent:u("symbol-event",60038),error:u("error",60039),stop:u("stop",60039),variable:u("variable",60040),symbolVariable:u("symbol-variable",60040),array:u("array",60042),symbolArray:u("symbol-array",60042),symbolModule:u("symbol-module",60043),symbolPackage:u("symbol-package",60043),symbolNamespace:u("symbol-namespace",60043),symbolObject:u("symbol-object",60043),symbolMethod:u("symbol-method",60044),symbolFunction:u("symbol-function",60044),symbolConstructor:u("symbol-constructor",60044),symbolBoolean:u("symbol-boolean",60047),symbolNull:u("symbol-null",60047),symbolNumeric:u("symbol-numeric",60048),symbolNumber:u("symbol-number",60048),symbolStructure:u("symbol-structure",60049),symbolStruct:u("symbol-struct",60049),symbolParameter:u("symbol-parameter",60050),symbolTypeParameter:u("symbol-type-parameter",60050),symbolKey:u("symbol-key",60051),symbolText:u("symbol-text",60051),symbolReference:u("symbol-reference",60052),goToFile:u("go-to-file",60052),symbolEnum:u("symbol-enum",60053),symbolValue:u("symbol-value",60053),symbolRuler:u("symbol-ruler",60054),symbolUnit:u("symbol-unit",60054),activateBreakpoints:u("activate-breakpoints",60055),archive:u("archive",60056),arrowBoth:u("arrow-both",60057),arrowDown:u("arrow-down",60058),arrowLeft:u("arrow-left",60059),arrowRight:u("arrow-right",60060),arrowSmallDown:u("arrow-small-down",60061),arrowSmallLeft:u("arrow-small-left",60062),arrowSmallRight:u("arrow-small-right",60063),arrowSmallUp:u("arrow-small-up",60064),arrowUp:u("arrow-up",60065),bell:u("bell",60066),bold:u("bold",60067),book:u("book",60068),bookmark:u("bookmark",60069),debugBreakpointConditionalUnverified:u("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:u("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:u("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:u("debug-breakpoint-data-unverified",60072),debugBreakpointData:u("debug-breakpoint-data",60073),debugBreakpointDataDisabled:u("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:u("debug-breakpoint-log-unverified",60074),debugBreakpointLog:u("debug-breakpoint-log",60075),debugBreakpointLogDisabled:u("debug-breakpoint-log-disabled",60075),briefcase:u("briefcase",60076),broadcast:u("broadcast",60077),browser:u("browser",60078),bug:u("bug",60079),calendar:u("calendar",60080),caseSensitive:u("case-sensitive",60081),check:u("check",60082),checklist:u("checklist",60083),chevronDown:u("chevron-down",60084),chevronLeft:u("chevron-left",60085),chevronRight:u("chevron-right",60086),chevronUp:u("chevron-up",60087),chromeClose:u("chrome-close",60088),chromeMaximize:u("chrome-maximize",60089),chromeMinimize:u("chrome-minimize",60090),chromeRestore:u("chrome-restore",60091),circleOutline:u("circle-outline",60092),circle:u("circle",60092),debugBreakpointUnverified:u("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:u("terminal-decoration-incomplete",60092),circleSlash:u("circle-slash",60093),circuitBoard:u("circuit-board",60094),clearAll:u("clear-all",60095),clippy:u("clippy",60096),closeAll:u("close-all",60097),cloudDownload:u("cloud-download",60098),cloudUpload:u("cloud-upload",60099),code:u("code",60100),collapseAll:u("collapse-all",60101),colorMode:u("color-mode",60102),commentDiscussion:u("comment-discussion",60103),creditCard:u("credit-card",60105),dash:u("dash",60108),dashboard:u("dashboard",60109),database:u("database",60110),debugContinue:u("debug-continue",60111),debugDisconnect:u("debug-disconnect",60112),debugPause:u("debug-pause",60113),debugRestart:u("debug-restart",60114),debugStart:u("debug-start",60115),debugStepInto:u("debug-step-into",60116),debugStepOut:u("debug-step-out",60117),debugStepOver:u("debug-step-over",60118),debugStop:u("debug-stop",60119),debug:u("debug",60120),deviceCameraVideo:u("device-camera-video",60121),deviceCamera:u("device-camera",60122),deviceMobile:u("device-mobile",60123),diffAdded:u("diff-added",60124),diffIgnored:u("diff-ignored",60125),diffModified:u("diff-modified",60126),diffRemoved:u("diff-removed",60127),diffRenamed:u("diff-renamed",60128),diff:u("diff",60129),diffSidebyside:u("diff-sidebyside",60129),discard:u("discard",60130),editorLayout:u("editor-layout",60131),emptyWindow:u("empty-window",60132),exclude:u("exclude",60133),extensions:u("extensions",60134),eyeClosed:u("eye-closed",60135),fileBinary:u("file-binary",60136),fileCode:u("file-code",60137),fileMedia:u("file-media",60138),filePdf:u("file-pdf",60139),fileSubmodule:u("file-submodule",60140),fileSymlinkDirectory:u("file-symlink-directory",60141),fileSymlinkFile:u("file-symlink-file",60142),fileZip:u("file-zip",60143),files:u("files",60144),filter:u("filter",60145),flame:u("flame",60146),foldDown:u("fold-down",60147),foldUp:u("fold-up",60148),fold:u("fold",60149),folderActive:u("folder-active",60150),folderOpened:u("folder-opened",60151),gear:u("gear",60152),gift:u("gift",60153),gistSecret:u("gist-secret",60154),gist:u("gist",60155),gitCommit:u("git-commit",60156),gitCompare:u("git-compare",60157),compareChanges:u("compare-changes",60157),gitMerge:u("git-merge",60158),githubAction:u("github-action",60159),githubAlt:u("github-alt",60160),globe:u("globe",60161),grabber:u("grabber",60162),graph:u("graph",60163),gripper:u("gripper",60164),heart:u("heart",60165),home:u("home",60166),horizontalRule:u("horizontal-rule",60167),hubot:u("hubot",60168),inbox:u("inbox",60169),issueReopened:u("issue-reopened",60171),issues:u("issues",60172),italic:u("italic",60173),jersey:u("jersey",60174),json:u("json",60175),kebabVertical:u("kebab-vertical",60176),key:u("key",60177),law:u("law",60178),lightbulbAutofix:u("lightbulb-autofix",60179),linkExternal:u("link-external",60180),link:u("link",60181),listOrdered:u("list-ordered",60182),listUnordered:u("list-unordered",60183),liveShare:u("live-share",60184),loading:u("loading",60185),location:u("location",60186),mailRead:u("mail-read",60187),mail:u("mail",60188),markdown:u("markdown",60189),megaphone:u("megaphone",60190),mention:u("mention",60191),milestone:u("milestone",60192),gitPullRequestMilestone:u("git-pull-request-milestone",60192),mortarBoard:u("mortar-board",60193),move:u("move",60194),multipleWindows:u("multiple-windows",60195),mute:u("mute",60196),noNewline:u("no-newline",60197),note:u("note",60198),octoface:u("octoface",60199),openPreview:u("open-preview",60200),package:u("package",60201),paintcan:u("paintcan",60202),pin:u("pin",60203),play:u("play",60204),run:u("run",60204),plug:u("plug",60205),preserveCase:u("preserve-case",60206),preview:u("preview",60207),project:u("project",60208),pulse:u("pulse",60209),question:u("question",60210),quote:u("quote",60211),radioTower:u("radio-tower",60212),reactions:u("reactions",60213),references:u("references",60214),refresh:u("refresh",60215),regex:u("regex",60216),remoteExplorer:u("remote-explorer",60217),remote:u("remote",60218),remove:u("remove",60219),replaceAll:u("replace-all",60220),replace:u("replace",60221),repoClone:u("repo-clone",60222),repoForcePush:u("repo-force-push",60223),repoPull:u("repo-pull",60224),repoPush:u("repo-push",60225),report:u("report",60226),requestChanges:u("request-changes",60227),rocket:u("rocket",60228),rootFolderOpened:u("root-folder-opened",60229),rootFolder:u("root-folder",60230),rss:u("rss",60231),ruby:u("ruby",60232),saveAll:u("save-all",60233),saveAs:u("save-as",60234),save:u("save",60235),screenFull:u("screen-full",60236),screenNormal:u("screen-normal",60237),searchStop:u("search-stop",60238),server:u("server",60240),settingsGear:u("settings-gear",60241),settings:u("settings",60242),shield:u("shield",60243),smiley:u("smiley",60244),sortPrecedence:u("sort-precedence",60245),splitHorizontal:u("split-horizontal",60246),splitVertical:u("split-vertical",60247),squirrel:u("squirrel",60248),starFull:u("star-full",60249),starHalf:u("star-half",60250),symbolClass:u("symbol-class",60251),symbolColor:u("symbol-color",60252),symbolConstant:u("symbol-constant",60253),symbolEnumMember:u("symbol-enum-member",60254),symbolField:u("symbol-field",60255),symbolFile:u("symbol-file",60256),symbolInterface:u("symbol-interface",60257),symbolKeyword:u("symbol-keyword",60258),symbolMisc:u("symbol-misc",60259),symbolOperator:u("symbol-operator",60260),symbolProperty:u("symbol-property",60261),wrench:u("wrench",60261),wrenchSubaction:u("wrench-subaction",60261),symbolSnippet:u("symbol-snippet",60262),tasklist:u("tasklist",60263),telescope:u("telescope",60264),textSize:u("text-size",60265),threeBars:u("three-bars",60266),thumbsdown:u("thumbsdown",60267),thumbsup:u("thumbsup",60268),tools:u("tools",60269),triangleDown:u("triangle-down",60270),triangleLeft:u("triangle-left",60271),triangleRight:u("triangle-right",60272),triangleUp:u("triangle-up",60273),twitter:u("twitter",60274),unfold:u("unfold",60275),unlock:u("unlock",60276),unmute:u("unmute",60277),unverified:u("unverified",60278),verified:u("verified",60279),versions:u("versions",60280),vmActive:u("vm-active",60281),vmOutline:u("vm-outline",60282),vmRunning:u("vm-running",60283),watch:u("watch",60284),whitespace:u("whitespace",60285),wholeWord:u("whole-word",60286),window:u("window",60287),wordWrap:u("word-wrap",60288),zoomIn:u("zoom-in",60289),zoomOut:u("zoom-out",60290),listFilter:u("list-filter",60291),listFlat:u("list-flat",60292),listSelection:u("list-selection",60293),selection:u("selection",60293),listTree:u("list-tree",60294),debugBreakpointFunctionUnverified:u("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:u("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:u("debug-breakpoint-function-disabled",60296),debugStackframeActive:u("debug-stackframe-active",60297),circleSmallFilled:u("circle-small-filled",60298),debugStackframeDot:u("debug-stackframe-dot",60298),terminalDecorationMark:u("terminal-decoration-mark",60298),debugStackframe:u("debug-stackframe",60299),debugStackframeFocused:u("debug-stackframe-focused",60299),debugBreakpointUnsupported:u("debug-breakpoint-unsupported",60300),symbolString:u("symbol-string",60301),debugReverseContinue:u("debug-reverse-continue",60302),debugStepBack:u("debug-step-back",60303),debugRestartFrame:u("debug-restart-frame",60304),debugAlt:u("debug-alt",60305),callIncoming:u("call-incoming",60306),callOutgoing:u("call-outgoing",60307),menu:u("menu",60308),expandAll:u("expand-all",60309),feedback:u("feedback",60310),gitPullRequestReviewer:u("git-pull-request-reviewer",60310),groupByRefType:u("group-by-ref-type",60311),ungroupByRefType:u("ungroup-by-ref-type",60312),account:u("account",60313),gitPullRequestAssignee:u("git-pull-request-assignee",60313),bellDot:u("bell-dot",60314),debugConsole:u("debug-console",60315),library:u("library",60316),output:u("output",60317),runAll:u("run-all",60318),syncIgnored:u("sync-ignored",60319),pinned:u("pinned",60320),githubInverted:u("github-inverted",60321),serverProcess:u("server-process",60322),serverEnvironment:u("server-environment",60323),pass:u("pass",60324),issueClosed:u("issue-closed",60324),stopCircle:u("stop-circle",60325),playCircle:u("play-circle",60326),record:u("record",60327),debugAltSmall:u("debug-alt-small",60328),vmConnect:u("vm-connect",60329),cloud:u("cloud",60330),merge:u("merge",60331),export:u("export",60332),graphLeft:u("graph-left",60333),magnet:u("magnet",60334),notebook:u("notebook",60335),redo:u("redo",60336),checkAll:u("check-all",60337),pinnedDirty:u("pinned-dirty",60338),passFilled:u("pass-filled",60339),circleLargeFilled:u("circle-large-filled",60340),circleLarge:u("circle-large",60341),circleLargeOutline:u("circle-large-outline",60341),combine:u("combine",60342),gather:u("gather",60342),table:u("table",60343),variableGroup:u("variable-group",60344),typeHierarchy:u("type-hierarchy",60345),typeHierarchySub:u("type-hierarchy-sub",60346),typeHierarchySuper:u("type-hierarchy-super",60347),gitPullRequestCreate:u("git-pull-request-create",60348),runAbove:u("run-above",60349),runBelow:u("run-below",60350),notebookTemplate:u("notebook-template",60351),debugRerun:u("debug-rerun",60352),workspaceTrusted:u("workspace-trusted",60353),workspaceUntrusted:u("workspace-untrusted",60354),workspaceUnknown:u("workspace-unknown",60355),terminalCmd:u("terminal-cmd",60356),terminalDebian:u("terminal-debian",60357),terminalLinux:u("terminal-linux",60358),terminalPowershell:u("terminal-powershell",60359),terminalTmux:u("terminal-tmux",60360),terminalUbuntu:u("terminal-ubuntu",60361),terminalBash:u("terminal-bash",60362),arrowSwap:u("arrow-swap",60363),copy:u("copy",60364),personAdd:u("person-add",60365),filterFilled:u("filter-filled",60366),wand:u("wand",60367),debugLineByLine:u("debug-line-by-line",60368),inspect:u("inspect",60369),layers:u("layers",60370),layersDot:u("layers-dot",60371),layersActive:u("layers-active",60372),compass:u("compass",60373),compassDot:u("compass-dot",60374),compassActive:u("compass-active",60375),azure:u("azure",60376),issueDraft:u("issue-draft",60377),gitPullRequestClosed:u("git-pull-request-closed",60378),gitPullRequestDraft:u("git-pull-request-draft",60379),debugAll:u("debug-all",60380),debugCoverage:u("debug-coverage",60381),runErrors:u("run-errors",60382),folderLibrary:u("folder-library",60383),debugContinueSmall:u("debug-continue-small",60384),beakerStop:u("beaker-stop",60385),graphLine:u("graph-line",60386),graphScatter:u("graph-scatter",60387),pieChart:u("pie-chart",60388),bracket:u("bracket",60175),bracketDot:u("bracket-dot",60389),bracketError:u("bracket-error",60390),lockSmall:u("lock-small",60391),azureDevops:u("azure-devops",60392),verifiedFilled:u("verified-filled",60393),newline:u("newline",60394),layout:u("layout",60395),layoutActivitybarLeft:u("layout-activitybar-left",60396),layoutActivitybarRight:u("layout-activitybar-right",60397),layoutPanelLeft:u("layout-panel-left",60398),layoutPanelCenter:u("layout-panel-center",60399),layoutPanelJustify:u("layout-panel-justify",60400),layoutPanelRight:u("layout-panel-right",60401),layoutPanel:u("layout-panel",60402),layoutSidebarLeft:u("layout-sidebar-left",60403),layoutSidebarRight:u("layout-sidebar-right",60404),layoutStatusbar:u("layout-statusbar",60405),layoutMenubar:u("layout-menubar",60406),layoutCentered:u("layout-centered",60407),target:u("target",60408),indent:u("indent",60409),recordSmall:u("record-small",60410),errorSmall:u("error-small",60411),terminalDecorationError:u("terminal-decoration-error",60411),arrowCircleDown:u("arrow-circle-down",60412),arrowCircleLeft:u("arrow-circle-left",60413),arrowCircleRight:u("arrow-circle-right",60414),arrowCircleUp:u("arrow-circle-up",60415),layoutSidebarRightOff:u("layout-sidebar-right-off",60416),layoutPanelOff:u("layout-panel-off",60417),layoutSidebarLeftOff:u("layout-sidebar-left-off",60418),blank:u("blank",60419),heartFilled:u("heart-filled",60420),map:u("map",60421),mapHorizontal:u("map-horizontal",60421),foldHorizontal:u("fold-horizontal",60421),mapFilled:u("map-filled",60422),mapHorizontalFilled:u("map-horizontal-filled",60422),foldHorizontalFilled:u("fold-horizontal-filled",60422),circleSmall:u("circle-small",60423),bellSlash:u("bell-slash",60424),bellSlashDot:u("bell-slash-dot",60425),commentUnresolved:u("comment-unresolved",60426),gitPullRequestGoToChanges:u("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:u("git-pull-request-new-changes",60428),searchFuzzy:u("search-fuzzy",60429),commentDraft:u("comment-draft",60430),send:u("send",60431),sparkle:u("sparkle",60432),insert:u("insert",60433),mic:u("mic",60434),thumbsdownFilled:u("thumbsdown-filled",60435),thumbsupFilled:u("thumbsup-filled",60436),coffee:u("coffee",60437),snake:u("snake",60438),game:u("game",60439),vr:u("vr",60440),chip:u("chip",60441),piano:u("piano",60442),music:u("music",60443),micFilled:u("mic-filled",60444),repoFetch:u("repo-fetch",60445),copilot:u("copilot",60446),lightbulbSparkle:u("lightbulb-sparkle",60447),robot:u("robot",60448),sparkleFilled:u("sparkle-filled",60449),diffSingle:u("diff-single",60450),diffMultiple:u("diff-multiple",60451),surroundWith:u("surround-with",60452),share:u("share",60453),gitStash:u("git-stash",60454),gitStashApply:u("git-stash-apply",60455),gitStashPop:u("git-stash-pop",60456),vscode:u("vscode",60457),vscodeInsiders:u("vscode-insiders",60458),codeOss:u("code-oss",60459),runCoverage:u("run-coverage",60460),runAllCoverage:u("run-all-coverage",60461),coverage:u("coverage",60462),githubProject:u("github-project",60463),mapVertical:u("map-vertical",60464),foldVertical:u("fold-vertical",60464),mapVerticalFilled:u("map-vertical-filled",60465),foldVerticalFilled:u("fold-vertical-filled",60465),goToSearch:u("go-to-search",60466),percentage:u("percentage",60467),sortPercentage:u("sort-percentage",60467)},U4={dialogError:u("dialog-error","error"),dialogWarning:u("dialog-warning","warning"),dialogInfo:u("dialog-info","info"),dialogClose:u("dialog-close","close"),treeItemExpanded:u("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:u("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:u("tree-filter-on-type-off","list-selection"),treeFilterClear:u("tree-filter-clear","close"),treeItemLoading:u("tree-item-loading","loading"),menuSelection:u("menu-selection","check"),menuSubmenu:u("menu-submenu","chevron-right"),menuBarMore:u("menubar-more","more"),scrollbarButtonLeft:u("scrollbar-button-left","triangle-left"),scrollbarButtonRight:u("scrollbar-button-right","triangle-right"),scrollbarButtonUp:u("scrollbar-button-up","triangle-up"),scrollbarButtonDown:u("scrollbar-button-down","triangle-down"),toolBarMore:u("toolbar-more","more"),quickInputBack:u("quick-input-back","arrow-left"),dropDownButton:u("drop-down-button",60084),symbolCustomColor:u("symbol-customcolor",60252),exportIcon:u("export",60332),workspaceUnspecified:u("workspace-unspecified",60355),newLine:u("newline",60394),thumbsDownFilled:u("thumbsdown-filled",60435),thumbsUpFilled:u("thumbsup-filled",60436),gitFetch:u("git-fetch",60445),lightbulbSparkleAutofix:u("lightbulb-sparkle-autofix",60447),debugBreakpointPending:u("debug-breakpoint-pending",60377)},z4={...W4,...U4};var Du;(function(t){function e(n){return n&&typeof n=="object"&&typeof n.id=="string"}t.isThemeColor=e})(Du||(Du={}));var mo;(function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9-]+",t.iconModifierExpression="~[A-Za-z]+",t.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function n(p){const w=e.exec(p.id);if(!w)return n(z4.error);const[,v,x]=w,T=["codicon","codicon-"+v];return x&&T.push("codicon-modifier-"+x.substring(1)),T}t.asClassNameArray=n;function i(p){return n(p).join(" ")}t.asClassName=i;function r(p){return"."+n(p).join(".")}t.asCSSSelector=r;function s(p){return p&&typeof p=="object"&&typeof p.id=="string"&&(typeof p.color>"u"||Du.isThemeColor(p.color))}t.isThemeIcon=s;const o=new RegExp(`^\\$\\((${t.iconNameExpression}(?:${t.iconModifierExpression})?)\\)$`);function a(p){const w=o.exec(p);if(!w)return;const[,v]=w;return{id:v}}t.fromString=a;function c(p){return{id:p}}t.fromId=c;function l(p,w){let v=p.id;const x=v.lastIndexOf("~");return x!==-1&&(v=v.substring(0,x)),w&&(v=`${v}~${w}`),{id:v}}t.modify=l;function h(p){const w=p.id.lastIndexOf("~");if(w!==-1)return p.id.substring(w+1)}t.getModifier=h;function g(p,w){var v,x;return p.id===w.id&&((v=p.color)==null?void 0:v.id)===((x=w.color)==null?void 0:x.id)}t.isEqual=g})(mo||(mo={}));const F1=new RegExp(`\\$\\(${mo.iconNameExpression}(?:${mo.iconModifierExpression})?\\)`,"g"),B4=new RegExp(`(\\\\)?${F1.source}`,"g");function V4(t){return t.replace(B4,(e,n)=>n?e:`\\${e}`)}new RegExp(`\\\\${F1.source}`,"g");new RegExp(`(\\s)?(\\\\)?${F1.source}(\\s)?`,"g");new RegExp(`\\$\\(${mo.iconNameCharacter}+\\)`,"g");let K4=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function G4(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,r)=>{const s=r[0],o=e[s];let a=i;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),K4&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}let Q4={};function f(t,e,n,...i){const r=typeof e=="object"?e.key:e,s=(Q4[t]??{})[r]??n;return G4(s,i)}const Zr="en";let xu=!1,ku=!1,Tu=!1,H0=!1,M1=!1,Yo,fa=Zr,bg=Zr,Zn;const Ai=globalThis;let dn;var x0;typeof Ai.vscode<"u"&&typeof Ai.vscode.process<"u"?dn=Ai.vscode.process:typeof process<"u"&&typeof((x0=process==null?void 0:process.versions)==null?void 0:x0.node)=="string"&&(dn=process);var k0;const J4=typeof((k0=dn==null?void 0:dn.versions)==null?void 0:k0.electron)=="string",Y4=J4&&(dn==null?void 0:dn.type)==="renderer";if(typeof dn=="object"){xu=dn.platform==="win32",ku=dn.platform==="darwin",Tu=dn.platform==="linux",dn.env.CI||dn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Yo=Zr,fa=Zr;const t=dn.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Yo=e.locale,bg=e.osLocale,fa=n||Zr}catch{}H0=!0}else typeof navigator=="object"&&!Y4?(Zn=navigator.userAgent,xu=Zn.indexOf("Windows")>=0,ku=Zn.indexOf("Macintosh")>=0,(Zn.indexOf("Macintosh")>=0||Zn.indexOf("iPad")>=0||Zn.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Tu=Zn.indexOf("Linux")>=0,(Zn==null?void 0:Zn.indexOf("Mobi"))>=0,M1=!0,Yo=Zr,fa=Yo,bg=navigator.language):console.error("Unable to resolve platform.");const qr=xu,bi=ku,Da=Tu,X4=H0,O1=M1,Z4=M1&&typeof Ai.importScripts=="function",ey=Z4?Ai.origin:void 0,vi=Zn,Bi=fa;var vg;(function(t){function e(){return Bi}t.value=e;function n(){return Bi.length===2?Bi==="en":Bi.length>=3?Bi[0]==="e"&&Bi[1]==="n"&&Bi[2]==="-":!1}t.isDefaultVariant=n;function i(){return Bi==="en"}t.isDefault=i})(vg||(vg={}));const ty=typeof Ai.postMessage=="function"&&!Ai.importScripts;(()=>{if(ty){const t=[];Ai.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),s.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),Ai.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const j0=!!(vi&&vi.indexOf("Chrome")>=0),ny=!!(vi&&vi.indexOf("Firefox")>=0),iy=!!(!j0&&vi&&vi.indexOf("Safari")>=0),ry=!!(vi&&vi.indexOf("Edg/")>=0);vi&&vi.indexOf("Android")>=0;let Fr;const kl=globalThis.vscode;if(typeof kl<"u"&&typeof kl.process<"u"){const t=kl.process;Fr={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Fr={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Fr={get platform(){return qr?"win32":bi?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const xa=Fr.cwd,sy=Fr.env,oy=Fr.platform;Fr.arch;const ay=65,cy=97,ly=90,uy=122,Zi=46,Ht=47,mn=92,Vi=58,dy=63;class W0 extends Error{constructor(e,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=e.indexOf(".")!==-1?"property":"argument";let o=`The "${e}" ${s} ${r} of type ${n}`;o+=`. Received type ${typeof i}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function fy(t,e){if(t===null||typeof t!="object")throw new W0(e,"Object",t)}function bt(t,e){if(typeof t!="string")throw new W0(e,"string",t)}const Vn=oy==="win32";function _e(t){return t===Ht||t===mn}function Ru(t){return t===Ht}function Ki(t){return t>=ay&&t<=ly||t>=cy&&t<=uy}function ka(t,e,n,i){let r="",s=0,o=-1,a=0,c=0;for(let l=0;l<=t.length;++l){if(l<t.length)c=t.charCodeAt(l);else{if(i(c))break;c=Ht}if(i(c)){if(!(o===l-1||a===1))if(a===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==Zi||r.charCodeAt(r.length-2)!==Zi){if(r.length>2){const h=r.lastIndexOf(n);h===-1?(r="",s=0):(r=r.slice(0,h),s=r.length-1-r.lastIndexOf(n)),o=l,a=0;continue}else if(r.length!==0){r="",s=0,o=l,a=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${t.slice(o+1,l)}`:r=t.slice(o+1,l),s=l-o-1;o=l,a=0}else c===Zi&&a!==-1?++a:a=-1}return r}function U0(t,e){fy(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const Ot={resolve(...t){let e="",n="",i=!1;for(let r=t.length-1;r>=-1;r--){let s;if(r>=0){if(s=t[r],bt(s,"path"),s.length===0)continue}else e.length===0?s=xa():(s=sy[`=${e}`]||xa(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===mn)&&(s=`${e}\\`));const o=s.length;let a=0,c="",l=!1;const h=s.charCodeAt(0);if(o===1)_e(h)&&(a=1,l=!0);else if(_e(h))if(l=!0,_e(s.charCodeAt(1))){let g=2,p=g;for(;g<o&&!_e(s.charCodeAt(g));)g++;if(g<o&&g!==p){const w=s.slice(p,g);for(p=g;g<o&&_e(s.charCodeAt(g));)g++;if(g<o&&g!==p){for(p=g;g<o&&!_e(s.charCodeAt(g));)g++;(g===o||g!==p)&&(c=`\\\\${w}\\${s.slice(p,g)}`,a=g)}}}else a=1;else Ki(h)&&s.charCodeAt(1)===Vi&&(c=s.slice(0,2),a=2,o>2&&_e(s.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(i){if(e.length>0)break}else if(n=`${s.slice(a)}\\${n}`,i=l,l&&e.length>0)break}return n=ka(n,!i,"\\",_e),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){bt(t,"path");const e=t.length;if(e===0)return".";let n=0,i,r=!1;const s=t.charCodeAt(0);if(e===1)return Ru(s)?"\\":t;if(_e(s))if(r=!0,_e(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){const l=t.slice(c,a);for(c=a;a<e&&_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!_e(t.charCodeAt(a));)a++;if(a===e)return`\\\\${l}\\${t.slice(c)}\\`;a!==c&&(i=`\\\\${l}\\${t.slice(c,a)}`,n=a)}}}else n=1;else Ki(s)&&t.charCodeAt(1)===Vi&&(i=t.slice(0,2),n=2,e>2&&_e(t.charCodeAt(2))&&(r=!0,n=3));let o=n<e?ka(t.slice(n),!r,"\\",_e):"";return o.length===0&&!r&&(o="."),o.length>0&&_e(t.charCodeAt(e-1))&&(o+="\\"),i===void 0?r?`\\${o}`:o:r?`${i}\\${o}`:`${i}${o}`},isAbsolute(t){bt(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return _e(n)||e>2&&Ki(n)&&t.charCodeAt(1)===Vi&&_e(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const o=t[s];bt(o,"path"),o.length>0&&(e===void 0?e=n=o:e+=`\\${o}`)}if(e===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&_e(n.charCodeAt(0))){++r;const s=n.length;s>1&&_e(n.charCodeAt(1))&&(++r,s>2&&(_e(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&_e(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return Ot.normalize(e)},relative(t,e){if(bt(t,"from"),bt(e,"to"),t===e)return"";const n=Ot.resolve(t),i=Ot.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";let r=0;for(;r<t.length&&t.charCodeAt(r)===mn;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===mn;)s--;const o=s-r;let a=0;for(;a<e.length&&e.charCodeAt(a)===mn;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===mn;)c--;const l=c-a,h=o<l?o:l;let g=-1,p=0;for(;p<h;p++){const v=t.charCodeAt(r+p);if(v!==e.charCodeAt(a+p))break;v===mn&&(g=p)}if(p!==h){if(g===-1)return i}else{if(l>h){if(e.charCodeAt(a+p)===mn)return i.slice(a+p+1);if(p===2)return i.slice(a+p)}o>h&&(t.charCodeAt(r+p)===mn?g=p:p===2&&(g=3)),g===-1&&(g=0)}let w="";for(p=r+g+1;p<=s;++p)(p===s||t.charCodeAt(p)===mn)&&(w+=w.length===0?"..":"\\..");return a+=g,w.length>0?`${w}${i.slice(a,c)}`:(i.charCodeAt(a)===mn&&++a,i.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Ot.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===mn){if(e.charCodeAt(1)===mn){const n=e.charCodeAt(2);if(n!==dy&&n!==Zi)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ki(e.charCodeAt(0))&&e.charCodeAt(1)===Vi&&e.charCodeAt(2)===mn)return`\\\\?\\${e}`;return t},dirname(t){bt(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return _e(r)?t:".";if(_e(r)){if(n=i=1,_e(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!_e(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(n=i=a+1)}}}}else Ki(r)&&t.charCodeAt(1)===Vi&&(n=e>2&&_e(t.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=e-1;a>=i;--a)if(_e(t.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&bt(e,"ext"),bt(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&Ki(t.charCodeAt(0))&&t.charCodeAt(1)===Vi&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=n;--s){const c=t.charCodeAt(s);if(_e(c)){if(!r){n=s+1;break}}else a===-1&&(r=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(i=s):(o=-1,i=a))}return n===i?i=a:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=n;--s)if(_e(t.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){bt(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,o=0;t.length>=2&&t.charCodeAt(1)===Vi&&Ki(t.charCodeAt(0))&&(e=i=2);for(let a=t.length-1;a>=e;--a){const c=t.charCodeAt(a);if(_e(c)){if(!s){i=a+1;break}continue}r===-1&&(s=!1,r=a+1),c===Zi?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||r===-1||o===0||o===1&&n===r-1&&n===i+1?"":t.slice(n,r)},format:U0.bind(null,"\\"),parse(t){bt(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let i=0,r=t.charCodeAt(0);if(n===1)return _e(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(_e(r)){if(i=1,_e(t.charCodeAt(1))){let g=2,p=g;for(;g<n&&!_e(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&_e(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&!_e(t.charCodeAt(g));)g++;g===n?i=g:g!==p&&(i=g+1)}}}}else if(Ki(r)&&t.charCodeAt(1)===Vi){if(n<=2)return e.root=e.dir=t,e;if(i=2,_e(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;i=3}}i>0&&(e.root=t.slice(0,i));let s=-1,o=i,a=-1,c=!0,l=t.length-1,h=0;for(;l>=i;--l){if(r=t.charCodeAt(l),_e(r)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),r===Zi?s===-1?s=l:h!==1&&(h=1):s!==-1&&(h=-1)}return a!==-1&&(s===-1||h===0||h===1&&s===a-1&&s===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,s),e.base=t.slice(o,a),e.ext=t.slice(s,a))),o>0&&o!==i?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},hy=(()=>{if(Vn){const t=/\\/g;return()=>{const e=xa().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>xa()})(),Ze={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=-1&&!n;i--){const r=i>=0?t[i]:hy();bt(r,"path"),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===Ht)}return e=ka(e,!n,"/",Ru),n?`/${e}`:e.length>0?e:"."},normalize(t){if(bt(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Ht,n=t.charCodeAt(t.length-1)===Ht;return t=ka(t,!e,"/",Ru),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return bt(t,"path"),t.length>0&&t.charCodeAt(0)===Ht},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const i=t[n];bt(i,"path"),i.length>0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":Ze.normalize(e)},relative(t,e){if(bt(t,"from"),bt(e,"to"),t===e||(t=Ze.resolve(t),e=Ze.resolve(e),t===e))return"";const n=1,i=t.length,r=i-n,s=1,o=e.length-s,a=r<o?r:o;let c=-1,l=0;for(;l<a;l++){const g=t.charCodeAt(n+l);if(g!==e.charCodeAt(s+l))break;g===Ht&&(c=l)}if(l===a)if(o>a){if(e.charCodeAt(s+l)===Ht)return e.slice(s+l+1);if(l===0)return e.slice(s+l)}else r>a&&(t.charCodeAt(n+l)===Ht?c=l:l===0&&(c=0));let h="";for(l=n+c+1;l<=i;++l)(l===i||t.charCodeAt(l)===Ht)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+c)}`},toNamespacedPath(t){return t},dirname(t){if(bt(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Ht;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===Ht){if(!i){n=r;break}}else i=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&bt(e,"ext"),bt(t,"path");let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=0;--s){const c=t.charCodeAt(s);if(c===Ht){if(!r){n=s+1;break}}else a===-1&&(r=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(i=s):(o=-1,i=a))}return n===i?i=a:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===Ht){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){bt(t,"path");let e=-1,n=0,i=-1,r=!0,s=0;for(let o=t.length-1;o>=0;--o){const a=t.charCodeAt(o);if(a===Ht){if(!r){n=o+1;break}continue}i===-1&&(r=!1,i=o+1),a===Zi?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},format:U0.bind(null,"/"),parse(t){bt(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===Ht;let i;n?(e.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=t.length-1,l=0;for(;c>=i;--c){const h=t.charCodeAt(c);if(h===Ht){if(!a){s=c+1;break}continue}o===-1&&(a=!1,o=c+1),h===Zi?r===-1?r=c:l!==1&&(l=1):r!==-1&&(l=-1)}if(o!==-1){const h=s===0&&n?1:s;r===-1||l===0||l===1&&r===o-1&&r===s+1?e.base=e.name=t.slice(h,o):(e.name=t.slice(h,r),e.base=t.slice(h,o),e.ext=t.slice(r,o))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Ze.win32=Ot.win32=Ot;Ze.posix=Ot.posix=Ze;const gy=Vn?Ot.normalize:Ze.normalize;Vn?Ot.isAbsolute:Ze.isAbsolute;Vn?Ot.join:Ze.join;const py=Vn?Ot.resolve:Ze.resolve,my=Vn?Ot.relative:Ze.relative,yy=Vn?Ot.dirname:Ze.dirname;Vn?Ot.basename:Ze.basename;Vn?Ot.extname:Ze.extname;Vn?Ot.parse:Ze.parse;const ha=Vn?Ot.sep:Ze.sep;Vn?Ot.delimiter:Ze.delimiter;function Gi(t){return t===47||t===92}function z0(t){return t.replace(/[\\/]/g,Ze.sep)}function by(t){return t.indexOf("/")===-1&&(t=z0(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function wg(t,e=Ze.sep){if(!t)return"";const n=t.length,i=t.charCodeAt(0);if(Gi(i)){if(Gi(t.charCodeAt(1))&&!Gi(t.charCodeAt(2))){let s=3;const o=s;for(;s<n&&!Gi(t.charCodeAt(s));s++);if(o!==s&&!Gi(t.charCodeAt(s+1))){for(s+=1;s<n;s++)if(Gi(t.charCodeAt(s)))return t.slice(0,s+1).replace(/[\\/]/g,e)}}return e}else if(vy(i)&&t.charCodeAt(1)===58)return Gi(t.charCodeAt(2))?t.slice(0,2)+e:t.slice(0,2);let r=t.indexOf("://");if(r!==-1){for(r+=3;r<n;r++)if(Gi(t.charCodeAt(r)))return t.slice(0,r+1)}return""}function Cg(t,e,n,i=ha){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(n){if(!$0(t,e))return!1;if(e.length===t.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,t.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),t.indexOf(e)===0}function vy(t){return t>=65&&t<=90||t>=97&&t<=122}const wy=/^\w[\w\d+.-]*$/,Cy=/^\//,_y=/^\/\//;function Sy(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!wy.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Cy.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(_y.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Dy(t,e){return!t&&!e?"file":t}function xy(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==ni&&(e=ni+e):e=ni;break}return e}const et="",ni="/",ky=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let st=class ga{static isUri(e){return e instanceof ga?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,i,r,s,o=!1){typeof e=="object"?(this.scheme=e.scheme||et,this.authority=e.authority||et,this.path=e.path||et,this.query=e.query||et,this.fragment=e.fragment||et):(this.scheme=Dy(e,o),this.authority=n||et,this.path=xy(this.scheme,i||et),this.query=r||et,this.fragment=s||et,Sy(this,o))}get fsPath(){return Ta(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:i,path:r,query:s,fragment:o}=e;return n===void 0?n=this.scheme:n===null&&(n=et),i===void 0?i=this.authority:i===null&&(i=et),r===void 0?r=this.path:r===null&&(r=et),s===void 0?s=this.query:s===null&&(s=et),o===void 0?o=this.fragment:o===null&&(o=et),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&o===this.fragment?this:new Kr(n,i,r,s,o)}static parse(e,n=!1){const i=ky.exec(e);return i?new Kr(i[2]||et,Xo(i[4]||et),Xo(i[5]||et),Xo(i[7]||et),Xo(i[9]||et),n):new Kr(et,et,et,et,et)}static file(e){let n=et;if(qr&&(e=e.replace(/\\/g,ni)),e[0]===ni&&e[1]===ni){const i=e.indexOf(ni,2);i===-1?(n=e.substring(2),e=ni):(n=e.substring(2,i),e=e.substring(i)||ni)}return new Kr("file",n,e,et,et)}static from(e,n){return new Kr(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return qr&&e.scheme==="file"?i=ga.file(Ot.join(Ta(e,!0),...n)).path:i=Ze.join(e.path,...n),e.with({path:i})}toString(e=!1){return Eu(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ga)return e;{const n=new Kr(e);return n._formatted=e.external??null,n._fsPath=e._sep===B0?e.fsPath??null:null,n}}else return e}};const B0=qr?1:void 0;let Kr=class extends st{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ta(this,!1)),this._fsPath}toString(e=!1){return e?Eu(this,!0):(this._formatted||(this._formatted=Eu(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=B0),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const V0={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _g(t,e,n){let i,r=-1;for(let s=0;s<t.length;s++){const o=t.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47||n&&o===91||n&&o===93||n&&o===58)r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));const a=V0[o];a!==void 0?(r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i+=a):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(t.substring(r))),i!==void 0?i:t}function Ty(t){let e;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);i===35||i===63?(e===void 0&&(e=t.substr(0,n)),e+=V0[i]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Ta(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,qr&&(n=n.replace(/\//g,"\\")),n}function Eu(t,e){const n=e?Ty:_g;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=ni,i+=ni),s){let l=s.indexOf("@");if(l!==-1){const h=s.substr(0,l);s=s.substr(l+1),l=h.lastIndexOf(":"),l===-1?i+=n(h,!1,!1):(i+=n(h.substr(0,l),!1,!1),i+=":",i+=n(h.substr(l+1),!1,!0)),i+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,l),!1,!0),i+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=e?c:_g(c,!1,!1)),i}function K0(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+K0(t.substr(3)):t}}const Sg=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Xo(t){return t.match(Sg)?t.replace(Sg,e=>K0(e)):t}var dt;(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting"})(dt||(dt={}));const Ry="tkn";class Ey{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,n){this._serverRootPath=Iy(e,n)}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return Ze.join(this._serverRootPath,dt.vscodeRemoteResource)}set(e,n,i){this._hosts[e]=n,this._ports[e]=i}setConnectionToken(e,n){this._connectionTokens[e]=n}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return M0(a),e}const n=e.authority;let i=this._hosts[n];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const r=this._ports[n],s=this._connectionTokens[n];let o=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(o+=`&${Ry}=${encodeURIComponent(s)}`),st.from({scheme:O1?this._preferredWebSchema:dt.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:o})}}const Py=new Ey;function Iy(t,e){return Ze.join(e??"/",`${t.quality??"oss"}-${t.commit??"dev"}`)}const Fy="vscode-app",ss=class ss{constructor(){this.staticBrowserUris=new va,this.appResourcePathUrls=new Map,this.moduleContentProvider=new Map}registerModuleContentProvider(e,n){this.moduleContentProvider.set(e,n)}toModuleContent(e){return this.moduleContentProvider.get(e)()}registerAppResourcePathUrl(e,n){this.appResourcePathUrls.set(e,n)}toUrl(e){var i;let n=this.appResourcePathUrls.get(e);return typeof n=="function"&&(n=n()),new URL(n??e,((i=globalThis.location)==null?void 0:i.href)??(typeof document>"u"?require("url").pathToFileURL(__filename).href:Y1&&Y1.src||new URL("index.cjs.js",document.baseURI).href)).toString()}asBrowserUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToBrowserUri(n)}uriToBrowserUri(e){return e.scheme===dt.vscodeRemote?Py.rewrite(e):e.scheme===dt.file&&(X4||ey===`${dt.vscodeFileResource}://${ss.FALLBACK_AUTHORITY}`)?e.with({scheme:dt.vscodeFileResource,authority:e.authority||ss.FALLBACK_AUTHORITY,query:null,fragment:null}):this.staticBrowserUris.get(e)??e}asFileUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToFileUri(n)}uriToFileUri(e){return e.scheme===dt.vscodeFileResource?e.with({scheme:dt.file,authority:e.authority!==ss.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e,n){return st.isUri(e)?e:st.parse(n.toUrl(e))}registerStaticBrowserUri(e,n){return this.staticBrowserUris.set(e,n),x1(()=>{this.staticBrowserUris.get(e)===n&&this.staticBrowserUris.delete(e)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}};ss.FALLBACK_AUTHORITY=Fy;let Pu=ss;new Pu;var Dg;(function(t){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(e.get("3"));const n="vscode-coi";function i(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:st.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);const a=o==null?void 0:o.get(n);if(a)return e.get(a)}t.getHeadersFromQuery=i;function r(s,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(n,c):s[n]=c}t.addSearchParam=r})(Dg||(Dg={}));function _i(t){return Ta(t,!0)}class My{constructor(e){this._ignorePathCasing=e}compare(e,n,i=!1){return e===n?0:Su(this.getComparisonKey(e,i),this.getComparisonKey(n,i))}isEqual(e,n,i=!1){return e===n?!0:!e||!n?!1:this.getComparisonKey(e,i)===this.getComparisonKey(n,i)}getComparisonKey(e,n=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,n,i=!1){if(e.scheme===n.scheme){if(e.scheme===dt.file)return Cg(_i(e),_i(n),this._ignorePathCasing(e))&&e.query===n.query&&(i||e.fragment===n.fragment);if(xg(e.authority,n.authority))return Cg(e.path,n.path,this._ignorePathCasing(e),"/")&&e.query===n.query&&(i||e.fragment===n.fragment)}return!1}joinPath(e,...n){return st.joinPath(e,...n)}basenameOrAuthority(e){return Oy(e)||e.authority}basename(e){return Ze.basename(e.path)}extname(e){return Ze.extname(e.path)}dirname(e){if(e.path.length===0)return e;let n;return e.scheme===dt.file?n=st.file(yy(_i(e))).path:(n=Ze.dirname(e.path),e.authority&&n.length&&n.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),n="/")),e.with({path:n})}normalizePath(e){if(!e.path.length)return e;let n;return e.scheme===dt.file?n=st.file(gy(_i(e))).path:n=Ze.normalize(e.path),e.with({path:n})}relativePath(e,n){if(e.scheme!==n.scheme||!xg(e.authority,n.authority))return;if(e.scheme===dt.file){const s=my(_i(e),_i(n));return qr?z0(s):s}let i=e.path||"/";const r=n.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const o=Math.min(i.length,r.length);s<o&&!(i.charCodeAt(s)!==r.charCodeAt(s)&&i.charAt(s).toLowerCase()!==r.charAt(s).toLowerCase());s++);i=r.substr(0,s)+i.substr(s)}return Ze.relative(i,r)}resolvePath(e,n){if(e.scheme===dt.file){const i=st.file(py(_i(e),n));return e.with({authority:i.authority,path:i.path})}return n=by(n),e.with({path:Ze.resolve(e.path,n)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,n){return e===n||e!==void 0&&n!==void 0&&O4(e,n)}hasTrailingPathSeparator(e,n=ha){if(e.scheme===dt.file){const i=_i(e);return i.length>wg(i).length&&i[i.length-1]===n}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,n=ha){return kg(e,n)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,n=ha){let i=!1;if(e.scheme===dt.file){const r=_i(e);i=r!==void 0&&r.length===wg(r).length&&r[r.length-1]===n}else{n="/";const r=e.path;i=r.length===1&&r.charCodeAt(r.length-1)===47}return!i&&!kg(e,n)?e.with({path:e.path+"/"}):e}}const ze=new My(()=>!1);ze.isEqual.bind(ze);ze.isEqualOrParent.bind(ze);ze.getComparisonKey.bind(ze);ze.basenameOrAuthority.bind(ze);const Oy=ze.basename.bind(ze);ze.extname.bind(ze);ze.dirname.bind(ze);ze.joinPath.bind(ze);ze.normalizePath.bind(ze);ze.relativePath.bind(ze);ze.resolvePath.bind(ze);ze.isAbsolutePath.bind(ze);const xg=ze.isEqualAuthority.bind(ze),kg=ze.hasTrailingPathSeparator.bind(ze);ze.removeTrailingPathSeparator.bind(ze);ze.addTrailingPathSeparator.bind(ze);var Tg;(function(t){t.META_DATA_LABEL="label",t.META_DATA_DESCRIPTION="description",t.META_DATA_SIZE="size",t.META_DATA_MIME="mime";function e(n){const i=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&i.set(a,c)});const s=n.path.substring(0,n.path.indexOf(";"));return s&&i.set(t.META_DATA_MIME,s),i}t.parseMetaData=e})(Tg||(Tg={}));let Ay=class{constructor(e="",n=!1){if(this.value=e,typeof this.value!="string")throw xe("value");typeof n=="boolean"?(this.isTrusted=n,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=n.isTrusted??void 0,this.supportThemeIcons=n.supportThemeIcons??!1,this.supportHtml=n.supportHtml??!1)}appendText(e,n=0){return this.value+=Ly(this.supportThemeIcons?V4(e):e).replace(/([ \t]+)/g,(i,r)=>"&nbsp;".repeat(r.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
52
+ `))}}let T4=0;class xl{constructor(e){this.value=e,this.id=T4++}}const R4=2;let hi=class{constructor(e){var n,i,r,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new k4(((i=this._options)==null?void 0:i.leakWarningThreshold)??x4):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new _u(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,i,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||i.call(n),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,n,i)=>{var a,c,l,h;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Cu.None;if(this._disposed)return Cu.None;n&&(e=e.bind(n));const r=new xl(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=T1.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof xl?(this._deliveryQueue??(this._deliveryQueue=new E4),this._listeners=[this._listeners,r]):this._listeners.push(r):((c=(a=this._options)==null?void 0:a.onWillAddFirstListener)==null||c.call(a,this),this._listeners=r,(h=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||h.call(l,this)),this._size++;const o=x1(()=>{s==null||s(),this._removeListener(r)});return i instanceof po?i.add(o):Array.isArray(i)&&i.push(o),o}),this._event}_removeListener(e){var s,o,a,c;if((o=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||o.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(c=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||c.call(a,this),this._size=0;return}const n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*R4<=n.length){let l=0;for(let h=0;h<n.length;h++)n[h]?n[l++]=n[h]:r&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=l}}_deliver(e,n){var r;if(!e)return;const i=((r=this._options)==null?void 0:r.onListenerError)||O0;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,i,r,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof xl)this._deliver(this._listeners,e);else{const o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}};class E4{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}const $0=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Ca;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof da?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:wa.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:$0})})(Ca||(Ca={}));let da=class{constructor(){this._isCancelled=!1,this._emitter=null}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?$0:(this._emitter||(this._emitter=new hi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},P4=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new da),this._token}cancel(){this._token?this._token instanceof da&&this._token.cancel():this._token=Ca.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof da&&this._token.dispose():this._token=Ca.None}};function I4(t){return t}class F4{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=I4):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}class ds{constructor(e){this.executor=e,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function M4(t){return!t||typeof t!="string"?!0:t.trim().length===0}function O4(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Su(t,e){return t<e?-1:t>e?1:0}function R1(t,e,n=0,i=t.length,r=0,s=e.length){for(;n<i&&r<s;n++,r++){const c=t.charCodeAt(n),l=e.charCodeAt(r);if(c<l)return-1;if(c>l)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function cg(t,e){return qo(t,e,0,t.length,0,e.length)}function qo(t,e,n=0,i=t.length,r=0,s=e.length){for(;n<i&&r<s;n++,r++){let c=t.charCodeAt(n),l=e.charCodeAt(r);if(c===l)continue;if(c>=128||l>=128)return R1(t.toLowerCase(),e.toLowerCase(),n,i,r,s);lg(c)&&(c-=32),lg(l)&&(l-=32);const h=c-l;if(h!==0)return h}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function lg(t){return t>=97&&t<=122}function A4(t,e){return t.length===e.length&&qo(t,e)===0}function q0(t,e){const n=e.length;return e.length>t.length?!1:qo(t,e,0,n)===0}function E1(t){return 55296<=t&&t<=56319}function _a(t){return 56320<=t&&t<=57343}function P1(t,e){return(t-55296<<10)+(e-56320)+65536}function L4(t,e,n){const i=t.charCodeAt(n);if(E1(i)&&n+1<e){const r=t.charCodeAt(n+1);if(_a(r))return P1(i,r)}return i}function N4(t,e){const n=t.charCodeAt(e-1);if(_a(n)&&e>1){const i=t.charCodeAt(e-2);if(E1(i))return P1(i,n)}return n}class $4{get offset(){return this._offset}constructor(e,n=0){this._str=e,this._len=e.length,this._offset=n}setOffset(e){this._offset=e}prevCodePoint(){const e=N4(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=L4(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class q4{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new $4(e,n)}nextGraphemeLength(){const e=Sa.getInstance(),n=this._iterator,i=n.offset;let r=e.getGraphemeBreakType(n.nextCodePoint());for(;!n.eol();){const s=n.offset,o=e.getGraphemeBreakType(n.nextCodePoint());if(dg(r,o)){n.setOffset(s);break}r=o}return n.offset-i}prevGraphemeLength(){const e=Sa.getInstance(),n=this._iterator,i=n.offset;let r=e.getGraphemeBreakType(n.prevCodePoint());for(;n.offset>0;){const s=n.offset,o=e.getGraphemeBreakType(n.prevCodePoint());if(dg(o,r)){n.setOffset(s);break}r=o}return i-n.offset}eol(){return this._iterator.eol()}}function ug(t,e){return new q4(t,e).nextGraphemeLength()}function dg(t,e){return t===0?e!==5&&e!==7:t===2&&e===3?!1:t===4||t===2||t===3||e===4||e===2||e===3?!0:!(t===8&&(e===8||e===9||e===11||e===12)||(t===11||t===9)&&(e===9||e===10)||(t===12||t===10)&&e===10||e===5||e===13||e===7||t===1||t===13&&e===14||t===6&&e===6)}const Tr=class Tr{static getInstance(){return Tr._INSTANCE||(Tr._INSTANCE=new Tr),Tr._INSTANCE}constructor(){this._data=H4()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const n=this._data,i=n.length/3;let r=1;for(;r<=i;)if(e<n[3*r])r=2*r;else if(e>n[3*r+1])r=2*r+1;else return n[3*r+2];return 0}};Tr._INSTANCE=null;let Sa=Tr;function H4(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}const di=class di{static getInstance(e){return di.cache.get(Array.from(e))}static getLocales(){return di._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};di.ambiguousCharacterData=new ds(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),di.cache=new F4({getCacheKey:JSON.stringify},e=>{function n(h){const g=new Map;for(let p=0;p<h.length;p+=2)g.set(h[p],h[p+1]);return g}function i(h,g){const p=new Map(h);for(const[w,v]of g)p.set(w,v);return p}function r(h,g){if(!h)return g;const p=new Map;for(const[w,v]of h)g.has(w)&&p.set(w,v);return p}const s=di.ambiguousCharacterData.value;let o=e.filter(h=>!h.startsWith("_")&&h in s);o.length===0&&(o=["_default"]);let a;for(const h of o){const g=n(s[h]);a=r(a,g)}const c=n(s._common),l=i(c,a);return new di(l)}),di._locales=new ds(()=>Object.keys(di.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let fg=di;const rs=class rs{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(rs.getRawData())),this._data}static isInvisibleCharacter(e){return rs.getData().has(e)}static get codePoints(){return rs.getData()}};rs._data=void 0;let hg=rs;H0.bind(void 0,!1);H0.bind(void 0,!0);function H0(t,e,n){if(!n||n.length<e.length)return null;let i;return t?i=q0(n,e):i=n.indexOf(e)===0,i?e.length>0?[{start:0,end:e.length}]:[]:null}const j4=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(t=>j4.add(t.charCodeAt(0)));new L0(1e4);const gg=128;function I1(){const t=[],e=[];for(let n=0;n<=gg;n++)e[n]=0;for(let n=0;n<=gg;n++)t.push(e.slice(0));return t}I1();I1();I1();var pg;(function(t){t.Default=[-100,0];function e(n){return!n||n.length===2&&n[0]===-100&&n[1]===0}t.isDefault=e})(pg||(pg={}));const K1=class K1{constructor(e,n){this.firstMatchCanBeWeak=e,this.boostFullMatch=n}};K1.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};let mg=K1;function Tn(t){return typeof t=="string"}function W4(t){return Array.isArray(t)&&t.every(e=>Tn(e))}function yg(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function so(t){return typeof t=="number"&&!isNaN(t)}const bg=Object.create(null);function u(t,e){if(Tn(e)){const n=bg[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return bg[t]=e,{id:t}}const U4={add:u("add",6e4),plus:u("plus",6e4),gistNew:u("gist-new",6e4),repoCreate:u("repo-create",6e4),lightbulb:u("lightbulb",60001),lightBulb:u("light-bulb",60001),repo:u("repo",60002),repoDelete:u("repo-delete",60002),gistFork:u("gist-fork",60003),repoForked:u("repo-forked",60003),gitPullRequest:u("git-pull-request",60004),gitPullRequestAbandoned:u("git-pull-request-abandoned",60004),recordKeys:u("record-keys",60005),keyboard:u("keyboard",60005),tag:u("tag",60006),gitPullRequestLabel:u("git-pull-request-label",60006),tagAdd:u("tag-add",60006),tagRemove:u("tag-remove",60006),person:u("person",60007),personFollow:u("person-follow",60007),personOutline:u("person-outline",60007),personFilled:u("person-filled",60007),gitBranch:u("git-branch",60008),gitBranchCreate:u("git-branch-create",60008),gitBranchDelete:u("git-branch-delete",60008),sourceControl:u("source-control",60008),mirror:u("mirror",60009),mirrorPublic:u("mirror-public",60009),star:u("star",60010),starAdd:u("star-add",60010),starDelete:u("star-delete",60010),starEmpty:u("star-empty",60010),comment:u("comment",60011),commentAdd:u("comment-add",60011),alert:u("alert",60012),warning:u("warning",60012),search:u("search",60013),searchSave:u("search-save",60013),logOut:u("log-out",60014),signOut:u("sign-out",60014),logIn:u("log-in",60015),signIn:u("sign-in",60015),eye:u("eye",60016),eyeUnwatch:u("eye-unwatch",60016),eyeWatch:u("eye-watch",60016),circleFilled:u("circle-filled",60017),primitiveDot:u("primitive-dot",60017),closeDirty:u("close-dirty",60017),debugBreakpoint:u("debug-breakpoint",60017),debugBreakpointDisabled:u("debug-breakpoint-disabled",60017),debugHint:u("debug-hint",60017),terminalDecorationSuccess:u("terminal-decoration-success",60017),primitiveSquare:u("primitive-square",60018),edit:u("edit",60019),pencil:u("pencil",60019),info:u("info",60020),issueOpened:u("issue-opened",60020),gistPrivate:u("gist-private",60021),gitForkPrivate:u("git-fork-private",60021),lock:u("lock",60021),mirrorPrivate:u("mirror-private",60021),close:u("close",60022),removeClose:u("remove-close",60022),x:u("x",60022),repoSync:u("repo-sync",60023),sync:u("sync",60023),clone:u("clone",60024),desktopDownload:u("desktop-download",60024),beaker:u("beaker",60025),microscope:u("microscope",60025),vm:u("vm",60026),deviceDesktop:u("device-desktop",60026),file:u("file",60027),fileText:u("file-text",60027),more:u("more",60028),ellipsis:u("ellipsis",60028),kebabHorizontal:u("kebab-horizontal",60028),mailReply:u("mail-reply",60029),reply:u("reply",60029),organization:u("organization",60030),organizationFilled:u("organization-filled",60030),organizationOutline:u("organization-outline",60030),newFile:u("new-file",60031),fileAdd:u("file-add",60031),newFolder:u("new-folder",60032),fileDirectoryCreate:u("file-directory-create",60032),trash:u("trash",60033),trashcan:u("trashcan",60033),history:u("history",60034),clock:u("clock",60034),folder:u("folder",60035),fileDirectory:u("file-directory",60035),symbolFolder:u("symbol-folder",60035),logoGithub:u("logo-github",60036),markGithub:u("mark-github",60036),github:u("github",60036),terminal:u("terminal",60037),console:u("console",60037),repl:u("repl",60037),zap:u("zap",60038),symbolEvent:u("symbol-event",60038),error:u("error",60039),stop:u("stop",60039),variable:u("variable",60040),symbolVariable:u("symbol-variable",60040),array:u("array",60042),symbolArray:u("symbol-array",60042),symbolModule:u("symbol-module",60043),symbolPackage:u("symbol-package",60043),symbolNamespace:u("symbol-namespace",60043),symbolObject:u("symbol-object",60043),symbolMethod:u("symbol-method",60044),symbolFunction:u("symbol-function",60044),symbolConstructor:u("symbol-constructor",60044),symbolBoolean:u("symbol-boolean",60047),symbolNull:u("symbol-null",60047),symbolNumeric:u("symbol-numeric",60048),symbolNumber:u("symbol-number",60048),symbolStructure:u("symbol-structure",60049),symbolStruct:u("symbol-struct",60049),symbolParameter:u("symbol-parameter",60050),symbolTypeParameter:u("symbol-type-parameter",60050),symbolKey:u("symbol-key",60051),symbolText:u("symbol-text",60051),symbolReference:u("symbol-reference",60052),goToFile:u("go-to-file",60052),symbolEnum:u("symbol-enum",60053),symbolValue:u("symbol-value",60053),symbolRuler:u("symbol-ruler",60054),symbolUnit:u("symbol-unit",60054),activateBreakpoints:u("activate-breakpoints",60055),archive:u("archive",60056),arrowBoth:u("arrow-both",60057),arrowDown:u("arrow-down",60058),arrowLeft:u("arrow-left",60059),arrowRight:u("arrow-right",60060),arrowSmallDown:u("arrow-small-down",60061),arrowSmallLeft:u("arrow-small-left",60062),arrowSmallRight:u("arrow-small-right",60063),arrowSmallUp:u("arrow-small-up",60064),arrowUp:u("arrow-up",60065),bell:u("bell",60066),bold:u("bold",60067),book:u("book",60068),bookmark:u("bookmark",60069),debugBreakpointConditionalUnverified:u("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:u("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:u("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:u("debug-breakpoint-data-unverified",60072),debugBreakpointData:u("debug-breakpoint-data",60073),debugBreakpointDataDisabled:u("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:u("debug-breakpoint-log-unverified",60074),debugBreakpointLog:u("debug-breakpoint-log",60075),debugBreakpointLogDisabled:u("debug-breakpoint-log-disabled",60075),briefcase:u("briefcase",60076),broadcast:u("broadcast",60077),browser:u("browser",60078),bug:u("bug",60079),calendar:u("calendar",60080),caseSensitive:u("case-sensitive",60081),check:u("check",60082),checklist:u("checklist",60083),chevronDown:u("chevron-down",60084),chevronLeft:u("chevron-left",60085),chevronRight:u("chevron-right",60086),chevronUp:u("chevron-up",60087),chromeClose:u("chrome-close",60088),chromeMaximize:u("chrome-maximize",60089),chromeMinimize:u("chrome-minimize",60090),chromeRestore:u("chrome-restore",60091),circleOutline:u("circle-outline",60092),circle:u("circle",60092),debugBreakpointUnverified:u("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:u("terminal-decoration-incomplete",60092),circleSlash:u("circle-slash",60093),circuitBoard:u("circuit-board",60094),clearAll:u("clear-all",60095),clippy:u("clippy",60096),closeAll:u("close-all",60097),cloudDownload:u("cloud-download",60098),cloudUpload:u("cloud-upload",60099),code:u("code",60100),collapseAll:u("collapse-all",60101),colorMode:u("color-mode",60102),commentDiscussion:u("comment-discussion",60103),creditCard:u("credit-card",60105),dash:u("dash",60108),dashboard:u("dashboard",60109),database:u("database",60110),debugContinue:u("debug-continue",60111),debugDisconnect:u("debug-disconnect",60112),debugPause:u("debug-pause",60113),debugRestart:u("debug-restart",60114),debugStart:u("debug-start",60115),debugStepInto:u("debug-step-into",60116),debugStepOut:u("debug-step-out",60117),debugStepOver:u("debug-step-over",60118),debugStop:u("debug-stop",60119),debug:u("debug",60120),deviceCameraVideo:u("device-camera-video",60121),deviceCamera:u("device-camera",60122),deviceMobile:u("device-mobile",60123),diffAdded:u("diff-added",60124),diffIgnored:u("diff-ignored",60125),diffModified:u("diff-modified",60126),diffRemoved:u("diff-removed",60127),diffRenamed:u("diff-renamed",60128),diff:u("diff",60129),diffSidebyside:u("diff-sidebyside",60129),discard:u("discard",60130),editorLayout:u("editor-layout",60131),emptyWindow:u("empty-window",60132),exclude:u("exclude",60133),extensions:u("extensions",60134),eyeClosed:u("eye-closed",60135),fileBinary:u("file-binary",60136),fileCode:u("file-code",60137),fileMedia:u("file-media",60138),filePdf:u("file-pdf",60139),fileSubmodule:u("file-submodule",60140),fileSymlinkDirectory:u("file-symlink-directory",60141),fileSymlinkFile:u("file-symlink-file",60142),fileZip:u("file-zip",60143),files:u("files",60144),filter:u("filter",60145),flame:u("flame",60146),foldDown:u("fold-down",60147),foldUp:u("fold-up",60148),fold:u("fold",60149),folderActive:u("folder-active",60150),folderOpened:u("folder-opened",60151),gear:u("gear",60152),gift:u("gift",60153),gistSecret:u("gist-secret",60154),gist:u("gist",60155),gitCommit:u("git-commit",60156),gitCompare:u("git-compare",60157),compareChanges:u("compare-changes",60157),gitMerge:u("git-merge",60158),githubAction:u("github-action",60159),githubAlt:u("github-alt",60160),globe:u("globe",60161),grabber:u("grabber",60162),graph:u("graph",60163),gripper:u("gripper",60164),heart:u("heart",60165),home:u("home",60166),horizontalRule:u("horizontal-rule",60167),hubot:u("hubot",60168),inbox:u("inbox",60169),issueReopened:u("issue-reopened",60171),issues:u("issues",60172),italic:u("italic",60173),jersey:u("jersey",60174),json:u("json",60175),kebabVertical:u("kebab-vertical",60176),key:u("key",60177),law:u("law",60178),lightbulbAutofix:u("lightbulb-autofix",60179),linkExternal:u("link-external",60180),link:u("link",60181),listOrdered:u("list-ordered",60182),listUnordered:u("list-unordered",60183),liveShare:u("live-share",60184),loading:u("loading",60185),location:u("location",60186),mailRead:u("mail-read",60187),mail:u("mail",60188),markdown:u("markdown",60189),megaphone:u("megaphone",60190),mention:u("mention",60191),milestone:u("milestone",60192),gitPullRequestMilestone:u("git-pull-request-milestone",60192),mortarBoard:u("mortar-board",60193),move:u("move",60194),multipleWindows:u("multiple-windows",60195),mute:u("mute",60196),noNewline:u("no-newline",60197),note:u("note",60198),octoface:u("octoface",60199),openPreview:u("open-preview",60200),package:u("package",60201),paintcan:u("paintcan",60202),pin:u("pin",60203),play:u("play",60204),run:u("run",60204),plug:u("plug",60205),preserveCase:u("preserve-case",60206),preview:u("preview",60207),project:u("project",60208),pulse:u("pulse",60209),question:u("question",60210),quote:u("quote",60211),radioTower:u("radio-tower",60212),reactions:u("reactions",60213),references:u("references",60214),refresh:u("refresh",60215),regex:u("regex",60216),remoteExplorer:u("remote-explorer",60217),remote:u("remote",60218),remove:u("remove",60219),replaceAll:u("replace-all",60220),replace:u("replace",60221),repoClone:u("repo-clone",60222),repoForcePush:u("repo-force-push",60223),repoPull:u("repo-pull",60224),repoPush:u("repo-push",60225),report:u("report",60226),requestChanges:u("request-changes",60227),rocket:u("rocket",60228),rootFolderOpened:u("root-folder-opened",60229),rootFolder:u("root-folder",60230),rss:u("rss",60231),ruby:u("ruby",60232),saveAll:u("save-all",60233),saveAs:u("save-as",60234),save:u("save",60235),screenFull:u("screen-full",60236),screenNormal:u("screen-normal",60237),searchStop:u("search-stop",60238),server:u("server",60240),settingsGear:u("settings-gear",60241),settings:u("settings",60242),shield:u("shield",60243),smiley:u("smiley",60244),sortPrecedence:u("sort-precedence",60245),splitHorizontal:u("split-horizontal",60246),splitVertical:u("split-vertical",60247),squirrel:u("squirrel",60248),starFull:u("star-full",60249),starHalf:u("star-half",60250),symbolClass:u("symbol-class",60251),symbolColor:u("symbol-color",60252),symbolConstant:u("symbol-constant",60253),symbolEnumMember:u("symbol-enum-member",60254),symbolField:u("symbol-field",60255),symbolFile:u("symbol-file",60256),symbolInterface:u("symbol-interface",60257),symbolKeyword:u("symbol-keyword",60258),symbolMisc:u("symbol-misc",60259),symbolOperator:u("symbol-operator",60260),symbolProperty:u("symbol-property",60261),wrench:u("wrench",60261),wrenchSubaction:u("wrench-subaction",60261),symbolSnippet:u("symbol-snippet",60262),tasklist:u("tasklist",60263),telescope:u("telescope",60264),textSize:u("text-size",60265),threeBars:u("three-bars",60266),thumbsdown:u("thumbsdown",60267),thumbsup:u("thumbsup",60268),tools:u("tools",60269),triangleDown:u("triangle-down",60270),triangleLeft:u("triangle-left",60271),triangleRight:u("triangle-right",60272),triangleUp:u("triangle-up",60273),twitter:u("twitter",60274),unfold:u("unfold",60275),unlock:u("unlock",60276),unmute:u("unmute",60277),unverified:u("unverified",60278),verified:u("verified",60279),versions:u("versions",60280),vmActive:u("vm-active",60281),vmOutline:u("vm-outline",60282),vmRunning:u("vm-running",60283),watch:u("watch",60284),whitespace:u("whitespace",60285),wholeWord:u("whole-word",60286),window:u("window",60287),wordWrap:u("word-wrap",60288),zoomIn:u("zoom-in",60289),zoomOut:u("zoom-out",60290),listFilter:u("list-filter",60291),listFlat:u("list-flat",60292),listSelection:u("list-selection",60293),selection:u("selection",60293),listTree:u("list-tree",60294),debugBreakpointFunctionUnverified:u("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:u("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:u("debug-breakpoint-function-disabled",60296),debugStackframeActive:u("debug-stackframe-active",60297),circleSmallFilled:u("circle-small-filled",60298),debugStackframeDot:u("debug-stackframe-dot",60298),terminalDecorationMark:u("terminal-decoration-mark",60298),debugStackframe:u("debug-stackframe",60299),debugStackframeFocused:u("debug-stackframe-focused",60299),debugBreakpointUnsupported:u("debug-breakpoint-unsupported",60300),symbolString:u("symbol-string",60301),debugReverseContinue:u("debug-reverse-continue",60302),debugStepBack:u("debug-step-back",60303),debugRestartFrame:u("debug-restart-frame",60304),debugAlt:u("debug-alt",60305),callIncoming:u("call-incoming",60306),callOutgoing:u("call-outgoing",60307),menu:u("menu",60308),expandAll:u("expand-all",60309),feedback:u("feedback",60310),gitPullRequestReviewer:u("git-pull-request-reviewer",60310),groupByRefType:u("group-by-ref-type",60311),ungroupByRefType:u("ungroup-by-ref-type",60312),account:u("account",60313),gitPullRequestAssignee:u("git-pull-request-assignee",60313),bellDot:u("bell-dot",60314),debugConsole:u("debug-console",60315),library:u("library",60316),output:u("output",60317),runAll:u("run-all",60318),syncIgnored:u("sync-ignored",60319),pinned:u("pinned",60320),githubInverted:u("github-inverted",60321),serverProcess:u("server-process",60322),serverEnvironment:u("server-environment",60323),pass:u("pass",60324),issueClosed:u("issue-closed",60324),stopCircle:u("stop-circle",60325),playCircle:u("play-circle",60326),record:u("record",60327),debugAltSmall:u("debug-alt-small",60328),vmConnect:u("vm-connect",60329),cloud:u("cloud",60330),merge:u("merge",60331),export:u("export",60332),graphLeft:u("graph-left",60333),magnet:u("magnet",60334),notebook:u("notebook",60335),redo:u("redo",60336),checkAll:u("check-all",60337),pinnedDirty:u("pinned-dirty",60338),passFilled:u("pass-filled",60339),circleLargeFilled:u("circle-large-filled",60340),circleLarge:u("circle-large",60341),circleLargeOutline:u("circle-large-outline",60341),combine:u("combine",60342),gather:u("gather",60342),table:u("table",60343),variableGroup:u("variable-group",60344),typeHierarchy:u("type-hierarchy",60345),typeHierarchySub:u("type-hierarchy-sub",60346),typeHierarchySuper:u("type-hierarchy-super",60347),gitPullRequestCreate:u("git-pull-request-create",60348),runAbove:u("run-above",60349),runBelow:u("run-below",60350),notebookTemplate:u("notebook-template",60351),debugRerun:u("debug-rerun",60352),workspaceTrusted:u("workspace-trusted",60353),workspaceUntrusted:u("workspace-untrusted",60354),workspaceUnknown:u("workspace-unknown",60355),terminalCmd:u("terminal-cmd",60356),terminalDebian:u("terminal-debian",60357),terminalLinux:u("terminal-linux",60358),terminalPowershell:u("terminal-powershell",60359),terminalTmux:u("terminal-tmux",60360),terminalUbuntu:u("terminal-ubuntu",60361),terminalBash:u("terminal-bash",60362),arrowSwap:u("arrow-swap",60363),copy:u("copy",60364),personAdd:u("person-add",60365),filterFilled:u("filter-filled",60366),wand:u("wand",60367),debugLineByLine:u("debug-line-by-line",60368),inspect:u("inspect",60369),layers:u("layers",60370),layersDot:u("layers-dot",60371),layersActive:u("layers-active",60372),compass:u("compass",60373),compassDot:u("compass-dot",60374),compassActive:u("compass-active",60375),azure:u("azure",60376),issueDraft:u("issue-draft",60377),gitPullRequestClosed:u("git-pull-request-closed",60378),gitPullRequestDraft:u("git-pull-request-draft",60379),debugAll:u("debug-all",60380),debugCoverage:u("debug-coverage",60381),runErrors:u("run-errors",60382),folderLibrary:u("folder-library",60383),debugContinueSmall:u("debug-continue-small",60384),beakerStop:u("beaker-stop",60385),graphLine:u("graph-line",60386),graphScatter:u("graph-scatter",60387),pieChart:u("pie-chart",60388),bracket:u("bracket",60175),bracketDot:u("bracket-dot",60389),bracketError:u("bracket-error",60390),lockSmall:u("lock-small",60391),azureDevops:u("azure-devops",60392),verifiedFilled:u("verified-filled",60393),newline:u("newline",60394),layout:u("layout",60395),layoutActivitybarLeft:u("layout-activitybar-left",60396),layoutActivitybarRight:u("layout-activitybar-right",60397),layoutPanelLeft:u("layout-panel-left",60398),layoutPanelCenter:u("layout-panel-center",60399),layoutPanelJustify:u("layout-panel-justify",60400),layoutPanelRight:u("layout-panel-right",60401),layoutPanel:u("layout-panel",60402),layoutSidebarLeft:u("layout-sidebar-left",60403),layoutSidebarRight:u("layout-sidebar-right",60404),layoutStatusbar:u("layout-statusbar",60405),layoutMenubar:u("layout-menubar",60406),layoutCentered:u("layout-centered",60407),target:u("target",60408),indent:u("indent",60409),recordSmall:u("record-small",60410),errorSmall:u("error-small",60411),terminalDecorationError:u("terminal-decoration-error",60411),arrowCircleDown:u("arrow-circle-down",60412),arrowCircleLeft:u("arrow-circle-left",60413),arrowCircleRight:u("arrow-circle-right",60414),arrowCircleUp:u("arrow-circle-up",60415),layoutSidebarRightOff:u("layout-sidebar-right-off",60416),layoutPanelOff:u("layout-panel-off",60417),layoutSidebarLeftOff:u("layout-sidebar-left-off",60418),blank:u("blank",60419),heartFilled:u("heart-filled",60420),map:u("map",60421),mapHorizontal:u("map-horizontal",60421),foldHorizontal:u("fold-horizontal",60421),mapFilled:u("map-filled",60422),mapHorizontalFilled:u("map-horizontal-filled",60422),foldHorizontalFilled:u("fold-horizontal-filled",60422),circleSmall:u("circle-small",60423),bellSlash:u("bell-slash",60424),bellSlashDot:u("bell-slash-dot",60425),commentUnresolved:u("comment-unresolved",60426),gitPullRequestGoToChanges:u("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:u("git-pull-request-new-changes",60428),searchFuzzy:u("search-fuzzy",60429),commentDraft:u("comment-draft",60430),send:u("send",60431),sparkle:u("sparkle",60432),insert:u("insert",60433),mic:u("mic",60434),thumbsdownFilled:u("thumbsdown-filled",60435),thumbsupFilled:u("thumbsup-filled",60436),coffee:u("coffee",60437),snake:u("snake",60438),game:u("game",60439),vr:u("vr",60440),chip:u("chip",60441),piano:u("piano",60442),music:u("music",60443),micFilled:u("mic-filled",60444),repoFetch:u("repo-fetch",60445),copilot:u("copilot",60446),lightbulbSparkle:u("lightbulb-sparkle",60447),robot:u("robot",60448),sparkleFilled:u("sparkle-filled",60449),diffSingle:u("diff-single",60450),diffMultiple:u("diff-multiple",60451),surroundWith:u("surround-with",60452),share:u("share",60453),gitStash:u("git-stash",60454),gitStashApply:u("git-stash-apply",60455),gitStashPop:u("git-stash-pop",60456),vscode:u("vscode",60457),vscodeInsiders:u("vscode-insiders",60458),codeOss:u("code-oss",60459),runCoverage:u("run-coverage",60460),runAllCoverage:u("run-all-coverage",60461),coverage:u("coverage",60462),githubProject:u("github-project",60463),mapVertical:u("map-vertical",60464),foldVertical:u("fold-vertical",60464),mapVerticalFilled:u("map-vertical-filled",60465),foldVerticalFilled:u("fold-vertical-filled",60465),goToSearch:u("go-to-search",60466),percentage:u("percentage",60467),sortPercentage:u("sort-percentage",60467)},z4={dialogError:u("dialog-error","error"),dialogWarning:u("dialog-warning","warning"),dialogInfo:u("dialog-info","info"),dialogClose:u("dialog-close","close"),treeItemExpanded:u("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:u("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:u("tree-filter-on-type-off","list-selection"),treeFilterClear:u("tree-filter-clear","close"),treeItemLoading:u("tree-item-loading","loading"),menuSelection:u("menu-selection","check"),menuSubmenu:u("menu-submenu","chevron-right"),menuBarMore:u("menubar-more","more"),scrollbarButtonLeft:u("scrollbar-button-left","triangle-left"),scrollbarButtonRight:u("scrollbar-button-right","triangle-right"),scrollbarButtonUp:u("scrollbar-button-up","triangle-up"),scrollbarButtonDown:u("scrollbar-button-down","triangle-down"),toolBarMore:u("toolbar-more","more"),quickInputBack:u("quick-input-back","arrow-left"),dropDownButton:u("drop-down-button",60084),symbolCustomColor:u("symbol-customcolor",60252),exportIcon:u("export",60332),workspaceUnspecified:u("workspace-unspecified",60355),newLine:u("newline",60394),thumbsDownFilled:u("thumbsdown-filled",60435),thumbsUpFilled:u("thumbsup-filled",60436),gitFetch:u("git-fetch",60445),lightbulbSparkleAutofix:u("lightbulb-sparkle-autofix",60447),debugBreakpointPending:u("debug-breakpoint-pending",60377)},B4={...U4,...z4};var Du;(function(t){function e(n){return n&&typeof n=="object"&&typeof n.id=="string"}t.isThemeColor=e})(Du||(Du={}));var mo;(function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9-]+",t.iconModifierExpression="~[A-Za-z]+",t.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function n(p){const w=e.exec(p.id);if(!w)return n(B4.error);const[,v,x]=w,T=["codicon","codicon-"+v];return x&&T.push("codicon-modifier-"+x.substring(1)),T}t.asClassNameArray=n;function i(p){return n(p).join(" ")}t.asClassName=i;function r(p){return"."+n(p).join(".")}t.asCSSSelector=r;function s(p){return p&&typeof p=="object"&&typeof p.id=="string"&&(typeof p.color>"u"||Du.isThemeColor(p.color))}t.isThemeIcon=s;const o=new RegExp(`^\\$\\((${t.iconNameExpression}(?:${t.iconModifierExpression})?)\\)$`);function a(p){const w=o.exec(p);if(!w)return;const[,v]=w;return{id:v}}t.fromString=a;function c(p){return{id:p}}t.fromId=c;function l(p,w){let v=p.id;const x=v.lastIndexOf("~");return x!==-1&&(v=v.substring(0,x)),w&&(v=`${v}~${w}`),{id:v}}t.modify=l;function h(p){const w=p.id.lastIndexOf("~");if(w!==-1)return p.id.substring(w+1)}t.getModifier=h;function g(p,w){var v,x;return p.id===w.id&&((v=p.color)==null?void 0:v.id)===((x=w.color)==null?void 0:x.id)}t.isEqual=g})(mo||(mo={}));const F1=new RegExp(`\\$\\(${mo.iconNameExpression}(?:${mo.iconModifierExpression})?\\)`,"g"),V4=new RegExp(`(\\\\)?${F1.source}`,"g");function K4(t){return t.replace(V4,(e,n)=>n?e:`\\${e}`)}new RegExp(`\\\\${F1.source}`,"g");new RegExp(`(\\s)?(\\\\)?${F1.source}(\\s)?`,"g");new RegExp(`\\$\\(${mo.iconNameCharacter}+\\)`,"g");let G4=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Q4(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,r)=>{const s=r[0],o=e[s];let a=i;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),G4&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}let J4={};function f(t,e,n,...i){const r=typeof e=="object"?e.key:e,s=(J4[t]??{})[r]??n;return Q4(s,i)}const Zr="en";let xu=!1,ku=!1,Tu=!1,j0=!1,M1=!1,Yo,fa=Zr,vg=Zr,Zn;const Ai=globalThis;let dn;var k0;typeof Ai.vscode<"u"&&typeof Ai.vscode.process<"u"?dn=Ai.vscode.process:typeof process<"u"&&typeof((k0=process==null?void 0:process.versions)==null?void 0:k0.node)=="string"&&(dn=process);var T0;const Y4=typeof((T0=dn==null?void 0:dn.versions)==null?void 0:T0.electron)=="string",X4=Y4&&(dn==null?void 0:dn.type)==="renderer";if(typeof dn=="object"){xu=dn.platform==="win32",ku=dn.platform==="darwin",Tu=dn.platform==="linux",dn.env.CI||dn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Yo=Zr,fa=Zr;const t=dn.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Yo=e.locale,vg=e.osLocale,fa=n||Zr}catch{}j0=!0}else typeof navigator=="object"&&!X4?(Zn=navigator.userAgent,xu=Zn.indexOf("Windows")>=0,ku=Zn.indexOf("Macintosh")>=0,(Zn.indexOf("Macintosh")>=0||Zn.indexOf("iPad")>=0||Zn.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Tu=Zn.indexOf("Linux")>=0,(Zn==null?void 0:Zn.indexOf("Mobi"))>=0,M1=!0,Yo=Zr,fa=Yo,vg=navigator.language):console.error("Unable to resolve platform.");const qr=xu,bi=ku,Da=Tu,Z4=j0,O1=M1,ey=M1&&typeof Ai.importScripts=="function",ty=ey?Ai.origin:void 0,vi=Zn,Bi=fa;var wg;(function(t){function e(){return Bi}t.value=e;function n(){return Bi.length===2?Bi==="en":Bi.length>=3?Bi[0]==="e"&&Bi[1]==="n"&&Bi[2]==="-":!1}t.isDefaultVariant=n;function i(){return Bi==="en"}t.isDefault=i})(wg||(wg={}));const ny=typeof Ai.postMessage=="function"&&!Ai.importScripts;(()=>{if(ny){const t=[];Ai.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),s.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),Ai.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const W0=!!(vi&&vi.indexOf("Chrome")>=0),iy=!!(vi&&vi.indexOf("Firefox")>=0),ry=!!(!W0&&vi&&vi.indexOf("Safari")>=0),sy=!!(vi&&vi.indexOf("Edg/")>=0);vi&&vi.indexOf("Android")>=0;let Fr;const kl=globalThis.vscode;if(typeof kl<"u"&&typeof kl.process<"u"){const t=kl.process;Fr={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Fr={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Fr={get platform(){return qr?"win32":bi?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const xa=Fr.cwd,oy=Fr.env,ay=Fr.platform;Fr.arch;const cy=65,ly=97,uy=90,dy=122,Zi=46,Ht=47,mn=92,Vi=58,fy=63;class U0 extends Error{constructor(e,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=e.indexOf(".")!==-1?"property":"argument";let o=`The "${e}" ${s} ${r} of type ${n}`;o+=`. Received type ${typeof i}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function hy(t,e){if(t===null||typeof t!="object")throw new U0(e,"Object",t)}function bt(t,e){if(typeof t!="string")throw new U0(e,"string",t)}const Vn=ay==="win32";function _e(t){return t===Ht||t===mn}function Ru(t){return t===Ht}function Ki(t){return t>=cy&&t<=uy||t>=ly&&t<=dy}function ka(t,e,n,i){let r="",s=0,o=-1,a=0,c=0;for(let l=0;l<=t.length;++l){if(l<t.length)c=t.charCodeAt(l);else{if(i(c))break;c=Ht}if(i(c)){if(!(o===l-1||a===1))if(a===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==Zi||r.charCodeAt(r.length-2)!==Zi){if(r.length>2){const h=r.lastIndexOf(n);h===-1?(r="",s=0):(r=r.slice(0,h),s=r.length-1-r.lastIndexOf(n)),o=l,a=0;continue}else if(r.length!==0){r="",s=0,o=l,a=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${t.slice(o+1,l)}`:r=t.slice(o+1,l),s=l-o-1;o=l,a=0}else c===Zi&&a!==-1?++a:a=-1}return r}function z0(t,e){hy(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const Ot={resolve(...t){let e="",n="",i=!1;for(let r=t.length-1;r>=-1;r--){let s;if(r>=0){if(s=t[r],bt(s,"path"),s.length===0)continue}else e.length===0?s=xa():(s=oy[`=${e}`]||xa(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===mn)&&(s=`${e}\\`));const o=s.length;let a=0,c="",l=!1;const h=s.charCodeAt(0);if(o===1)_e(h)&&(a=1,l=!0);else if(_e(h))if(l=!0,_e(s.charCodeAt(1))){let g=2,p=g;for(;g<o&&!_e(s.charCodeAt(g));)g++;if(g<o&&g!==p){const w=s.slice(p,g);for(p=g;g<o&&_e(s.charCodeAt(g));)g++;if(g<o&&g!==p){for(p=g;g<o&&!_e(s.charCodeAt(g));)g++;(g===o||g!==p)&&(c=`\\\\${w}\\${s.slice(p,g)}`,a=g)}}}else a=1;else Ki(h)&&s.charCodeAt(1)===Vi&&(c=s.slice(0,2),a=2,o>2&&_e(s.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(i){if(e.length>0)break}else if(n=`${s.slice(a)}\\${n}`,i=l,l&&e.length>0)break}return n=ka(n,!i,"\\",_e),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){bt(t,"path");const e=t.length;if(e===0)return".";let n=0,i,r=!1;const s=t.charCodeAt(0);if(e===1)return Ru(s)?"\\":t;if(_e(s))if(r=!0,_e(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){const l=t.slice(c,a);for(c=a;a<e&&_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!_e(t.charCodeAt(a));)a++;if(a===e)return`\\\\${l}\\${t.slice(c)}\\`;a!==c&&(i=`\\\\${l}\\${t.slice(c,a)}`,n=a)}}}else n=1;else Ki(s)&&t.charCodeAt(1)===Vi&&(i=t.slice(0,2),n=2,e>2&&_e(t.charCodeAt(2))&&(r=!0,n=3));let o=n<e?ka(t.slice(n),!r,"\\",_e):"";return o.length===0&&!r&&(o="."),o.length>0&&_e(t.charCodeAt(e-1))&&(o+="\\"),i===void 0?r?`\\${o}`:o:r?`${i}\\${o}`:`${i}${o}`},isAbsolute(t){bt(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return _e(n)||e>2&&Ki(n)&&t.charCodeAt(1)===Vi&&_e(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const o=t[s];bt(o,"path"),o.length>0&&(e===void 0?e=n=o:e+=`\\${o}`)}if(e===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&_e(n.charCodeAt(0))){++r;const s=n.length;s>1&&_e(n.charCodeAt(1))&&(++r,s>2&&(_e(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&_e(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return Ot.normalize(e)},relative(t,e){if(bt(t,"from"),bt(e,"to"),t===e)return"";const n=Ot.resolve(t),i=Ot.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";let r=0;for(;r<t.length&&t.charCodeAt(r)===mn;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===mn;)s--;const o=s-r;let a=0;for(;a<e.length&&e.charCodeAt(a)===mn;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===mn;)c--;const l=c-a,h=o<l?o:l;let g=-1,p=0;for(;p<h;p++){const v=t.charCodeAt(r+p);if(v!==e.charCodeAt(a+p))break;v===mn&&(g=p)}if(p!==h){if(g===-1)return i}else{if(l>h){if(e.charCodeAt(a+p)===mn)return i.slice(a+p+1);if(p===2)return i.slice(a+p)}o>h&&(t.charCodeAt(r+p)===mn?g=p:p===2&&(g=3)),g===-1&&(g=0)}let w="";for(p=r+g+1;p<=s;++p)(p===s||t.charCodeAt(p)===mn)&&(w+=w.length===0?"..":"\\..");return a+=g,w.length>0?`${w}${i.slice(a,c)}`:(i.charCodeAt(a)===mn&&++a,i.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Ot.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===mn){if(e.charCodeAt(1)===mn){const n=e.charCodeAt(2);if(n!==fy&&n!==Zi)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ki(e.charCodeAt(0))&&e.charCodeAt(1)===Vi&&e.charCodeAt(2)===mn)return`\\\\?\\${e}`;return t},dirname(t){bt(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return _e(r)?t:".";if(_e(r)){if(n=i=1,_e(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&_e(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!_e(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(n=i=a+1)}}}}else Ki(r)&&t.charCodeAt(1)===Vi&&(n=e>2&&_e(t.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=e-1;a>=i;--a)if(_e(t.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&bt(e,"ext"),bt(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&Ki(t.charCodeAt(0))&&t.charCodeAt(1)===Vi&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=n;--s){const c=t.charCodeAt(s);if(_e(c)){if(!r){n=s+1;break}}else a===-1&&(r=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(i=s):(o=-1,i=a))}return n===i?i=a:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=n;--s)if(_e(t.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){bt(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,o=0;t.length>=2&&t.charCodeAt(1)===Vi&&Ki(t.charCodeAt(0))&&(e=i=2);for(let a=t.length-1;a>=e;--a){const c=t.charCodeAt(a);if(_e(c)){if(!s){i=a+1;break}continue}r===-1&&(s=!1,r=a+1),c===Zi?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||r===-1||o===0||o===1&&n===r-1&&n===i+1?"":t.slice(n,r)},format:z0.bind(null,"\\"),parse(t){bt(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let i=0,r=t.charCodeAt(0);if(n===1)return _e(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(_e(r)){if(i=1,_e(t.charCodeAt(1))){let g=2,p=g;for(;g<n&&!_e(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&_e(t.charCodeAt(g));)g++;if(g<n&&g!==p){for(p=g;g<n&&!_e(t.charCodeAt(g));)g++;g===n?i=g:g!==p&&(i=g+1)}}}}else if(Ki(r)&&t.charCodeAt(1)===Vi){if(n<=2)return e.root=e.dir=t,e;if(i=2,_e(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;i=3}}i>0&&(e.root=t.slice(0,i));let s=-1,o=i,a=-1,c=!0,l=t.length-1,h=0;for(;l>=i;--l){if(r=t.charCodeAt(l),_e(r)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),r===Zi?s===-1?s=l:h!==1&&(h=1):s!==-1&&(h=-1)}return a!==-1&&(s===-1||h===0||h===1&&s===a-1&&s===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,s),e.base=t.slice(o,a),e.ext=t.slice(s,a))),o>0&&o!==i?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},gy=(()=>{if(Vn){const t=/\\/g;return()=>{const e=xa().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>xa()})(),Ze={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=-1&&!n;i--){const r=i>=0?t[i]:gy();bt(r,"path"),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===Ht)}return e=ka(e,!n,"/",Ru),n?`/${e}`:e.length>0?e:"."},normalize(t){if(bt(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Ht,n=t.charCodeAt(t.length-1)===Ht;return t=ka(t,!e,"/",Ru),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return bt(t,"path"),t.length>0&&t.charCodeAt(0)===Ht},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const i=t[n];bt(i,"path"),i.length>0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":Ze.normalize(e)},relative(t,e){if(bt(t,"from"),bt(e,"to"),t===e||(t=Ze.resolve(t),e=Ze.resolve(e),t===e))return"";const n=1,i=t.length,r=i-n,s=1,o=e.length-s,a=r<o?r:o;let c=-1,l=0;for(;l<a;l++){const g=t.charCodeAt(n+l);if(g!==e.charCodeAt(s+l))break;g===Ht&&(c=l)}if(l===a)if(o>a){if(e.charCodeAt(s+l)===Ht)return e.slice(s+l+1);if(l===0)return e.slice(s+l)}else r>a&&(t.charCodeAt(n+l)===Ht?c=l:l===0&&(c=0));let h="";for(l=n+c+1;l<=i;++l)(l===i||t.charCodeAt(l)===Ht)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+c)}`},toNamespacedPath(t){return t},dirname(t){if(bt(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===Ht;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===Ht){if(!i){n=r;break}}else i=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&bt(e,"ext"),bt(t,"path");let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=0;--s){const c=t.charCodeAt(s);if(c===Ht){if(!r){n=s+1;break}}else a===-1&&(r=!1,a=s+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(i=s):(o=-1,i=a))}return n===i?i=a:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===Ht){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){bt(t,"path");let e=-1,n=0,i=-1,r=!0,s=0;for(let o=t.length-1;o>=0;--o){const a=t.charCodeAt(o);if(a===Ht){if(!r){n=o+1;break}continue}i===-1&&(r=!1,i=o+1),a===Zi?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},format:z0.bind(null,"/"),parse(t){bt(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===Ht;let i;n?(e.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=t.length-1,l=0;for(;c>=i;--c){const h=t.charCodeAt(c);if(h===Ht){if(!a){s=c+1;break}continue}o===-1&&(a=!1,o=c+1),h===Zi?r===-1?r=c:l!==1&&(l=1):r!==-1&&(l=-1)}if(o!==-1){const h=s===0&&n?1:s;r===-1||l===0||l===1&&r===o-1&&r===s+1?e.base=e.name=t.slice(h,o):(e.name=t.slice(h,r),e.base=t.slice(h,o),e.ext=t.slice(r,o))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Ze.win32=Ot.win32=Ot;Ze.posix=Ot.posix=Ze;const py=Vn?Ot.normalize:Ze.normalize;Vn?Ot.isAbsolute:Ze.isAbsolute;Vn?Ot.join:Ze.join;const my=Vn?Ot.resolve:Ze.resolve,yy=Vn?Ot.relative:Ze.relative,by=Vn?Ot.dirname:Ze.dirname;Vn?Ot.basename:Ze.basename;Vn?Ot.extname:Ze.extname;Vn?Ot.parse:Ze.parse;const ha=Vn?Ot.sep:Ze.sep;Vn?Ot.delimiter:Ze.delimiter;function Gi(t){return t===47||t===92}function B0(t){return t.replace(/[\\/]/g,Ze.sep)}function vy(t){return t.indexOf("/")===-1&&(t=B0(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function Cg(t,e=Ze.sep){if(!t)return"";const n=t.length,i=t.charCodeAt(0);if(Gi(i)){if(Gi(t.charCodeAt(1))&&!Gi(t.charCodeAt(2))){let s=3;const o=s;for(;s<n&&!Gi(t.charCodeAt(s));s++);if(o!==s&&!Gi(t.charCodeAt(s+1))){for(s+=1;s<n;s++)if(Gi(t.charCodeAt(s)))return t.slice(0,s+1).replace(/[\\/]/g,e)}}return e}else if(wy(i)&&t.charCodeAt(1)===58)return Gi(t.charCodeAt(2))?t.slice(0,2)+e:t.slice(0,2);let r=t.indexOf("://");if(r!==-1){for(r+=3;r<n;r++)if(Gi(t.charCodeAt(r)))return t.slice(0,r+1)}return""}function _g(t,e,n,i=ha){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(n){if(!q0(t,e))return!1;if(e.length===t.length)return!0;let s=e.length;return e.charAt(e.length-1)===i&&s--,t.charAt(s)===i}return e.charAt(e.length-1)!==i&&(e+=i),t.indexOf(e)===0}function wy(t){return t>=65&&t<=90||t>=97&&t<=122}const Cy=/^\w[\w\d+.-]*$/,_y=/^\//,Sy=/^\/\//;function Dy(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Cy.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!_y.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Sy.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function xy(t,e){return!t&&!e?"file":t}function ky(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==ni&&(e=ni+e):e=ni;break}return e}const et="",ni="/",Ty=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let st=class ga{static isUri(e){return e instanceof ga?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,i,r,s,o=!1){typeof e=="object"?(this.scheme=e.scheme||et,this.authority=e.authority||et,this.path=e.path||et,this.query=e.query||et,this.fragment=e.fragment||et):(this.scheme=xy(e,o),this.authority=n||et,this.path=ky(this.scheme,i||et),this.query=r||et,this.fragment=s||et,Dy(this,o))}get fsPath(){return Ta(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:i,path:r,query:s,fragment:o}=e;return n===void 0?n=this.scheme:n===null&&(n=et),i===void 0?i=this.authority:i===null&&(i=et),r===void 0?r=this.path:r===null&&(r=et),s===void 0?s=this.query:s===null&&(s=et),o===void 0?o=this.fragment:o===null&&(o=et),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&o===this.fragment?this:new Kr(n,i,r,s,o)}static parse(e,n=!1){const i=Ty.exec(e);return i?new Kr(i[2]||et,Xo(i[4]||et),Xo(i[5]||et),Xo(i[7]||et),Xo(i[9]||et),n):new Kr(et,et,et,et,et)}static file(e){let n=et;if(qr&&(e=e.replace(/\\/g,ni)),e[0]===ni&&e[1]===ni){const i=e.indexOf(ni,2);i===-1?(n=e.substring(2),e=ni):(n=e.substring(2,i),e=e.substring(i)||ni)}return new Kr("file",n,e,et,et)}static from(e,n){return new Kr(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return qr&&e.scheme==="file"?i=ga.file(Ot.join(Ta(e,!0),...n)).path:i=Ze.join(e.path,...n),e.with({path:i})}toString(e=!1){return Eu(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ga)return e;{const n=new Kr(e);return n._formatted=e.external??null,n._fsPath=e._sep===V0?e.fsPath??null:null,n}}else return e}};const V0=qr?1:void 0;let Kr=class extends st{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ta(this,!1)),this._fsPath}toString(e=!1){return e?Eu(this,!0):(this._formatted||(this._formatted=Eu(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=V0),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const K0={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Sg(t,e,n){let i,r=-1;for(let s=0;s<t.length;s++){const o=t.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47||n&&o===91||n&&o===93||n&&o===58)r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));const a=K0[o];a!==void 0?(r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i+=a):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(t.substring(r))),i!==void 0?i:t}function Ry(t){let e;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);i===35||i===63?(e===void 0&&(e=t.substr(0,n)),e+=K0[i]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Ta(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,qr&&(n=n.replace(/\//g,"\\")),n}function Eu(t,e){const n=e?Ry:Sg;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=ni,i+=ni),s){let l=s.indexOf("@");if(l!==-1){const h=s.substr(0,l);s=s.substr(l+1),l=h.lastIndexOf(":"),l===-1?i+=n(h,!1,!1):(i+=n(h.substr(0,l),!1,!1),i+=":",i+=n(h.substr(l+1),!1,!0)),i+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,l),!1,!0),i+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=e?c:Sg(c,!1,!1)),i}function G0(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+G0(t.substr(3)):t}}const Dg=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Xo(t){return t.match(Dg)?t.replace(Dg,e=>G0(e)):t}var dt;(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting"})(dt||(dt={}));const Ey="tkn";class Py{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,n){this._serverRootPath=Fy(e,n)}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return Ze.join(this._serverRootPath,dt.vscodeRemoteResource)}set(e,n,i){this._hosts[e]=n,this._ports[e]=i}setConnectionToken(e,n){this._connectionTokens[e]=n}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return O0(a),e}const n=e.authority;let i=this._hosts[n];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const r=this._ports[n],s=this._connectionTokens[n];let o=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(o+=`&${Ey}=${encodeURIComponent(s)}`),st.from({scheme:O1?this._preferredWebSchema:dt.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:o})}}const Iy=new Py;function Fy(t,e){return Ze.join(e??"/",`${t.quality??"oss"}-${t.commit??"dev"}`)}const My="vscode-app",ss=class ss{constructor(){this.staticBrowserUris=new va,this.appResourcePathUrls=new Map,this.moduleContentProvider=new Map}registerModuleContentProvider(e,n){this.moduleContentProvider.set(e,n)}toModuleContent(e){return this.moduleContentProvider.get(e)()}registerAppResourcePathUrl(e,n){this.appResourcePathUrls.set(e,n)}toUrl(e){var i;let n=this.appResourcePathUrls.get(e);return typeof n=="function"&&(n=n()),new URL(n??e,((i=globalThis.location)==null?void 0:i.href)??(typeof document>"u"?require("url").pathToFileURL(__filename).href:X1&&X1.src||new URL("index.cjs.js",document.baseURI).href)).toString()}asBrowserUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToBrowserUri(n)}uriToBrowserUri(e){return e.scheme===dt.vscodeRemote?Iy.rewrite(e):e.scheme===dt.file&&(Z4||ty===`${dt.vscodeFileResource}://${ss.FALLBACK_AUTHORITY}`)?e.with({scheme:dt.vscodeFileResource,authority:e.authority||ss.FALLBACK_AUTHORITY,query:null,fragment:null}):this.staticBrowserUris.get(e)??e}asFileUri(e){const n=this.toUri(e,{toUrl:this.toUrl.bind(this)});return this.uriToFileUri(n)}uriToFileUri(e){return e.scheme===dt.vscodeFileResource?e.with({scheme:dt.file,authority:e.authority!==ss.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e,n){return st.isUri(e)?e:st.parse(n.toUrl(e))}registerStaticBrowserUri(e,n){return this.staticBrowserUris.set(e,n),x1(()=>{this.staticBrowserUris.get(e)===n&&this.staticBrowserUris.delete(e)})}getRegisteredBrowserUris(){return this.staticBrowserUris.keys()}};ss.FALLBACK_AUTHORITY=My;let Pu=ss;new Pu;var xg;(function(t){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(e.get("3"));const n="vscode-coi";function i(s){let o;typeof s=="string"?o=new URL(s).searchParams:s instanceof URL?o=s.searchParams:st.isUri(s)&&(o=new URL(s.toString(!0)).searchParams);const a=o==null?void 0:o.get(n);if(a)return e.get(a)}t.getHeadersFromQuery=i;function r(s,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";s instanceof URLSearchParams?s.set(n,c):s[n]=c}t.addSearchParam=r})(xg||(xg={}));function _i(t){return Ta(t,!0)}class Oy{constructor(e){this._ignorePathCasing=e}compare(e,n,i=!1){return e===n?0:Su(this.getComparisonKey(e,i),this.getComparisonKey(n,i))}isEqual(e,n,i=!1){return e===n?!0:!e||!n?!1:this.getComparisonKey(e,i)===this.getComparisonKey(n,i)}getComparisonKey(e,n=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,n,i=!1){if(e.scheme===n.scheme){if(e.scheme===dt.file)return _g(_i(e),_i(n),this._ignorePathCasing(e))&&e.query===n.query&&(i||e.fragment===n.fragment);if(kg(e.authority,n.authority))return _g(e.path,n.path,this._ignorePathCasing(e),"/")&&e.query===n.query&&(i||e.fragment===n.fragment)}return!1}joinPath(e,...n){return st.joinPath(e,...n)}basenameOrAuthority(e){return Ay(e)||e.authority}basename(e){return Ze.basename(e.path)}extname(e){return Ze.extname(e.path)}dirname(e){if(e.path.length===0)return e;let n;return e.scheme===dt.file?n=st.file(by(_i(e))).path:(n=Ze.dirname(e.path),e.authority&&n.length&&n.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),n="/")),e.with({path:n})}normalizePath(e){if(!e.path.length)return e;let n;return e.scheme===dt.file?n=st.file(py(_i(e))).path:n=Ze.normalize(e.path),e.with({path:n})}relativePath(e,n){if(e.scheme!==n.scheme||!kg(e.authority,n.authority))return;if(e.scheme===dt.file){const s=yy(_i(e),_i(n));return qr?B0(s):s}let i=e.path||"/";const r=n.path||"/";if(this._ignorePathCasing(e)){let s=0;for(const o=Math.min(i.length,r.length);s<o&&!(i.charCodeAt(s)!==r.charCodeAt(s)&&i.charAt(s).toLowerCase()!==r.charAt(s).toLowerCase());s++);i=r.substr(0,s)+i.substr(s)}return Ze.relative(i,r)}resolvePath(e,n){if(e.scheme===dt.file){const i=st.file(my(_i(e),n));return e.with({authority:i.authority,path:i.path})}return n=vy(n),e.with({path:Ze.resolve(e.path,n)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,n){return e===n||e!==void 0&&n!==void 0&&A4(e,n)}hasTrailingPathSeparator(e,n=ha){if(e.scheme===dt.file){const i=_i(e);return i.length>Cg(i).length&&i[i.length-1]===n}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,n=ha){return Tg(e,n)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,n=ha){let i=!1;if(e.scheme===dt.file){const r=_i(e);i=r!==void 0&&r.length===Cg(r).length&&r[r.length-1]===n}else{n="/";const r=e.path;i=r.length===1&&r.charCodeAt(r.length-1)===47}return!i&&!Tg(e,n)?e.with({path:e.path+"/"}):e}}const ze=new Oy(()=>!1);ze.isEqual.bind(ze);ze.isEqualOrParent.bind(ze);ze.getComparisonKey.bind(ze);ze.basenameOrAuthority.bind(ze);const Ay=ze.basename.bind(ze);ze.extname.bind(ze);ze.dirname.bind(ze);ze.joinPath.bind(ze);ze.normalizePath.bind(ze);ze.relativePath.bind(ze);ze.resolvePath.bind(ze);ze.isAbsolutePath.bind(ze);const kg=ze.isEqualAuthority.bind(ze),Tg=ze.hasTrailingPathSeparator.bind(ze);ze.removeTrailingPathSeparator.bind(ze);ze.addTrailingPathSeparator.bind(ze);var Rg;(function(t){t.META_DATA_LABEL="label",t.META_DATA_DESCRIPTION="description",t.META_DATA_SIZE="size",t.META_DATA_MIME="mime";function e(n){const i=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&i.set(a,c)});const s=n.path.substring(0,n.path.indexOf(";"));return s&&i.set(t.META_DATA_MIME,s),i}t.parseMetaData=e})(Rg||(Rg={}));let Ly=class{constructor(e="",n=!1){if(this.value=e,typeof this.value!="string")throw xe("value");typeof n=="boolean"?(this.isTrusted=n,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=n.isTrusted??void 0,this.supportThemeIcons=n.supportThemeIcons??!1,this.supportHtml=n.supportHtml??!1)}appendText(e,n=0){return this.value+=Ny(this.supportThemeIcons?K4(e):e).replace(/([ \t]+)/g,(i,r)=>"&nbsp;".repeat(r.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
53
53
  `:`
54
54
 
55
55
  `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,n){return this.value+=`
56
- ${Ny(n,e)}
57
- `,this}appendLink(e,n,i){return this.value+="[",this.value+=this._escape(n,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,n){const i=new RegExp(M4(n),"g");return e.replace(i,(r,s)=>e.charAt(s-1)!=="\\"?`\\${r}`:r)}};function Ly(t){return t.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function Ny(t,e){var r;const n=((r=t.match(/^`+/gm))==null?void 0:r.reduce((s,o)=>s.length>o.length?s:o).length)??0,i=n>=3?n+1:3;return[`${"`".repeat(i)}${e}`,t,`${"`".repeat(i)}`].join(`
58
- `)}const Mr=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),$y=/^(.+)\/(.+?)(;.+)?$/;function G0(t,e){const n=$y.exec(t);return n?`${n[1].toLowerCase()}/${n[2].toLowerCase()}${n[3]??""}`:e?void 0:t}const mc=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let t;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?t=crypto.getRandomValues.bind(crypto):t=function(i){for(let r=0;r<i.length;r++)i[r]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),n=[];for(let i=0;i<256;i++)n.push(i.toString(16).padStart(2,"0"));return function(){t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=0,s="";return s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s}}();class qy{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const n=e.charCodeAt(0),i=this._value.charCodeAt(this._pos);return n-i}value(){return this._value[this._pos]}}class Hy{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?R1(e,this._value,0,e.length,this._from,this._to):qo(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class Q0{constructor(e=!0,n=!0){this._splitOnBackslash=e,this._caseSensitive=n}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let n=e.length-1;n>=0;n--,this._valueLen--){const i=this._value.charCodeAt(n);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const n=this._value.charCodeAt(this._to);if(n===47||this._splitOnBackslash&&n===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?R1(e,this._value,0,e.length,this._from,this._to):qo(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class jy{constructor(e,n){this._ignorePathCasing=e,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new Q0(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return ag(e,this._value.scheme);if(this._states[this._stateIdx]===2)return ag(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Su(e,this._value.query);if(this._states[this._stateIdx]===5)return Su(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class Zo{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e;return((e=this.left)==null?void 0:e.height)??0}get heightRight(){var e;return((e=this.right)==null?void 0:e.height)??0}}class Xi{static forUris(e=()=>!1,n=()=>!1){return new Xi(new jy(e,n))}static forPaths(e=!1){return new Xi(new Q0(void 0,!e))}static forStrings(){return new Xi(new qy)}static forConfigKeys(){return new Xi(new Hy)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,n){if(n){const i=n.slice(0);ng(i);for(const r of i)this.set(r,e)}else{const i=e.slice(0);ng(i);for(const r of i)this.set(r[0],r[1])}}set(e,n){const i=this._iter.reset(e);let r;this._root||(this._root=new Zo,this._root.segment=i.value());const s=[];for(r=this._root;;){const a=i.cmp(r.segment);if(a>0)r.left||(r.left=new Zo,r.left.segment=i.value()),s.push([-1,r]),r=r.left;else if(a<0)r.right||(r.right=new Zo,r.right.segment=i.value()),s.push([1,r]),r=r.right;else if(i.hasNext())i.next(),r.mid||(r.mid=new Zo,r.mid.segment=i.value()),s.push([0,r]),r=r.mid;else break}const o=r.value;r.value=n,r.key=e;for(let a=s.length-1;a>=0;a--){const c=s[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const h=s[a][0],g=s[a+1][0];if(h===1&&g===1)s[a][1]=c.rotateLeft();else if(h===-1&&g===-1)s[a][1]=c.rotateRight();else if(h===1&&g===-1)c.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=c.rotateLeft();else if(h===-1&&g===1)c.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return o}get(e){var n;return(n=this._getNode(e))==null?void 0:n.value}_getNode(e){const n=this._iter.reset(e);let i=this._root;for(;i;){const r=n.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(n.hasNext())n.next(),i=i.mid;else break}return i}has(e){const n=this._getNode(e);return!((n==null?void 0:n.value)===void 0&&(n==null?void 0:n.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,n){const i=this._iter.reset(e),r=[];let s=this._root;for(;s;){const o=i.cmp(s.segment);if(o>0)r.push([-1,s]),s=s.left;else if(o<0)r.push([1,s]),s=s.right;else if(i.hasNext())i.next(),r.push([0,s]),s=s.mid;else break}if(s){if(n?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const o=this._min(s.right);if(o.key){const{key:a,value:c,segment:l}=o;this._delete(o.key,!1),s.key=a,s.value=c,s.segment=l}}else{const o=s.left??s.right;if(r.length>0){const[a,c]=r[r.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this._root=o}for(let o=r.length-1;o>=0;o--){const a=r[o][1];a.updateHeight();const c=a.balanceFactor();if(c>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),r[o][1]=a.rotateLeft()):c<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),r[o][1]=a.rotateRight()),o>0)switch(r[o-1][0]){case-1:r[o-1][1].left=r[o][1];break;case 1:r[o-1][1].right=r[o][1];break;case 0:r[o-1][1].mid=r[o][1];break}else this._root=r[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const n=this._iter.reset(e);let i=this._root,r;for(;i;){const s=n.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(n.hasNext())n.next(),r=i.value||r,i=i.mid;else break}return i&&i.value||r}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,n){const i=this._iter.reset(e);let r=this._root;for(;r;){const s=i.cmp(r.segment);if(s>0)r=r.left;else if(s<0)r=r.right;else if(i.hasNext())i.next(),r=r.mid;else return r.mid?this._entries(r.mid):n?r.value:void 0}}hasElementOrSubtree(e){return this._findSuperstrOrElement(e,!0)!==void 0}forEach(e){for(const[n,i]of this)e(i,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const n=[];return this._dfsEntries(e,n),n[Symbol.iterator]()}_dfsEntries(e,n){e&&(e.left&&this._dfsEntries(e.left,n),e.value&&n.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,n),e.right&&this._dfsEntries(e.right,n))}_isBalanced(){const e=n=>{if(!n)return!0;const i=n.balanceFactor();return i<-1||i>1?!1:e(n.left)&&e(n.right)};return e(this._root)}}const $s="vs/platform/files/common/files";var Iu;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Iu||(Iu={}));var Fu;(function(t){t[t.Readonly=1]="Readonly",t[t.Locked=2]="Locked"})(Fu||(Fu={}));var Rg;(function(t){t[t.None=0]="None",t[t.FileReadWrite=2]="FileReadWrite",t[t.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",t[t.FileReadStream=16]="FileReadStream",t[t.FileFolderCopy=8]="FileFolderCopy",t[t.PathCaseSensitive=1024]="PathCaseSensitive",t[t.Readonly=2048]="Readonly",t[t.Trash=4096]="Trash",t[t.FileWriteUnlock=8192]="FileWriteUnlock",t[t.FileAtomicRead=16384]="FileAtomicRead",t[t.FileAtomicWrite=32768]="FileAtomicWrite",t[t.FileAtomicDelete=65536]="FileAtomicDelete",t[t.FileClone=131072]="FileClone"})(Rg||(Rg={}));var Di;(function(t){t.FileExists="EntryExists",t.FileNotFound="EntryNotFound",t.FileNotADirectory="EntryNotADirectory",t.FileIsADirectory="EntryIsADirectory",t.FileExceedsStorageQuota="EntryExceedsStorageQuota",t.FileTooLarge="EntryTooLarge",t.FileWriteLocked="EntryWriteLocked",t.NoPermissions="NoPermissions",t.Unavailable="Unavailable",t.Unknown="Unknown"})(Di||(Di={}));function Wy(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}var Eg;(function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"})(Eg||(Eg={}));const os=class os{constructor(e,n){this.ignorePathCasing=n,this.correlationId=void 0,this.added=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawAdded.map(r=>[r,!0])),i}),this.updated=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawUpdated.map(r=>[r,!0])),i}),this.deleted=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawDeleted.map(r=>[r,!0])),i}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const i of e){switch(i.type){case 1:this.rawAdded.push(i.resource);break;case 0:this.rawUpdated.push(i.resource);break;case 2:this.rawDeleted.push(i.resource);break}this.correlationId!==os.MIXED_CORRELATION&&(typeof i.cId=="number"?this.correlationId===void 0?this.correlationId=i.cId:this.correlationId!==i.cId&&(this.correlationId=os.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=os.MIXED_CORRELATION))}}contains(e,...n){return this.doContains(e,{includeChildren:!1},...n)}affects(e,...n){return this.doContains(e,{includeChildren:!0},...n)}doContains(e,n,...i){if(!e)return!1;const r=i.length>0;return!!((!r||i.includes(1))&&(this.added.value.get(e)||n.includeChildren&&this.added.value.findSuperstr(e))||(!r||i.includes(0))&&(this.updated.value.get(e)||n.includeChildren&&this.updated.value.findSuperstr(e))||(!r||i.includes(2))&&(this.deleted.value.findSubstr(e)||n.includeChildren&&this.deleted.value.findSuperstr(e)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(e){return this.correlationId===e}hasCorrelation(){return typeof this.correlationId=="number"}};os.MIXED_CORRELATION=null;let Pg=os;var Ig;(function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"})(Ig||(Ig={}));const Tt=class Tt{static formatSize(e){return so(e)||(e=0),e<Tt.KB?f($s,1,"{0}B",e.toFixed(0)):e<Tt.MB?f($s,2,"{0}KB",(e/Tt.KB).toFixed(2)):e<Tt.GB?f($s,3,"{0}MB",(e/Tt.MB).toFixed(2)):e<Tt.TB?f($s,4,"{0}GB",(e/Tt.GB).toFixed(2)):f($s,5,"{0}TB",(e/Tt.TB).toFixed(2))}};Tt.KB=1024,Tt.MB=Tt.KB*Tt.KB,Tt.GB=Tt.MB*Tt.KB,Tt.TB=Tt.GB*Tt.KB;let Fg=Tt;var oo;(function(t){t.Unknown="Unknown",t.NotAvailable="NotAvailable",t.TemporarilyNotAvailable="TemporarilyNotAvailable",t.NoResolverFound="NoResolverFound",t.InvalidAuthority="InvalidAuthority"})(oo||(oo={}));const ea=typeof Buffer<"u",Uy=new ds(()=>new Uint8Array(256));let Tl,Rl;class yn{static alloc(e){return ea?new yn(Buffer.allocUnsafe(e)):new yn(new Uint8Array(e))}static wrap(e){return ea&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new yn(e)}static fromString(e,n){return!((n==null?void 0:n.dontUseNodeBuffer)||!1)&&ea?new yn(Buffer.from(e)):(Tl||(Tl=new TextEncoder),new yn(Tl.encode(e)))}static fromByteArray(e){const n=yn.alloc(e.length);for(let i=0,r=e.length;i<r;i++)n.buffer[i]=e[i];return n}static concat(e,n){if(typeof n>"u"){n=0;for(let s=0,o=e.length;s<o;s++)n+=e[s].byteLength}const i=yn.alloc(n);let r=0;for(let s=0,o=e.length;s<o;s++){const a=e[s];i.set(a,r),r+=a.byteLength}return i}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){const e=yn.alloc(this.byteLength);return e.set(this),e}toString(){return ea?this.buffer.toString():(Rl||(Rl=new TextDecoder),Rl.decode(this.buffer))}slice(e,n){return new yn(this.buffer.subarray(e,n))}set(e,n){if(e instanceof yn)this.buffer.set(e.buffer,n);else if(e instanceof Uint8Array)this.buffer.set(e,n);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),n);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return By(this.buffer,e)}writeUInt32BE(e,n){Vy(this.buffer,e,n)}readUInt32LE(e){return Ky(this.buffer,e)}writeUInt32LE(e,n){Gy(this.buffer,e,n)}readUInt8(e){return Qy(this.buffer,e)}writeUInt8(e,n){Jy(this.buffer,e,n)}indexOf(e,n=0){return zy(this.buffer,e instanceof yn?e.buffer:e,n)}}function zy(t,e,n=0){const i=e.byteLength,r=t.byteLength;if(i===0)return 0;if(i===1)return t.indexOf(e[0]);if(i>r-n)return-1;const s=Uy.value;s.fill(e.length);for(let l=0;l<e.length;l++)s[e[l]]=e.length-l-1;let o=n+e.length-1,a=o,c=-1;for(;o<r;)if(t[o]===e[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(e.length-a,s[t[o]]),a=e.length-1;return c}function By(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function Vy(t,e,n){t[n+3]=e,e=e>>>8,t[n+2]=e,e=e>>>8,t[n+1]=e,e=e>>>8,t[n]=e}function Ky(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function Gy(t,e,n){t[n+0]=e&255,e=e>>>8,t[n+1]=e&255,e=e>>>8,t[n+2]=e&255,e=e>>>8,t[n+3]=e&255}function Qy(t,e){return t[e]}function Jy(t,e,n){t[n]=e}function Yy(t){let e=0,n=0,i=0;const r=new Uint8Array(Math.floor(t.length/4*3)),s=a=>{switch(n){case 3:r[i++]=e|a,n=0;break;case 2:r[i++]=e|a>>>2,e=a<<6,n=3;break;case 1:r[i++]=e|a>>>4,e=a<<4,n=2;break;default:e=a<<2,n=1}};for(let a=0;a<t.length;a++){const c=t.charCodeAt(a);if(c>=65&&c<=90)s(c-65);else if(c>=97&&c<=122)s(c-97+26);else if(c>=48&&c<=57)s(c-48+52);else if(c===43||c===45)s(62);else if(c===47||c===95)s(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${t[a]}`)}}const o=i;for(;n>0;)s(0);return yn.wrap(r).slice(0,o)}const Xy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function e5({buffer:t},e=!0,n=!1){const i=n?Zy:Xy;let r="";const s=t.byteLength%3;let o=0;for(;o<t.byteLength-s;o+=3){const a=t[o+0],c=t[o+1],l=t[o+2];r+=i[a>>>2],r+=i[(a<<4|c>>>4)&63],r+=i[(c<<2|l>>>6)&63],r+=i[l&63]}if(s===1){const a=t[o+0];r+=i[a>>>2],r+=i[a<<4&63],e&&(r+="==")}else if(s===2){const a=t[o+0],c=t[o+1];r+=i[a>>>2],r+=i[(a<<4|c>>>4)&63],r+=i[c<<2&63],e&&(r+="=")}return r}var Mg;(function(t){async function e(i){let r;const s=await Promise.all(i.map(o=>o.then(a=>a,a=>{r||(r=a)})));if(typeof r<"u")throw r;return s}t.settled=e;function n(i){return new Promise(async(r,s)=>{try{await i(r,s)}catch(o){s(o)}})}t.withAsyncBody=n})(Mg||(Mg={}));const un=class un{static fromArray(e){return new un(n=>{n.emitMany(e)})}static fromPromise(e){return new un(async n=>{n.emitMany(await e)})}static fromPromises(e){return new un(async n=>{await Promise.all(e.map(async i=>n.emitOne(await i)))})}static merge(e){return new un(async n=>{await Promise.all(e.map(async i=>{for await(const r of i)n.emitOne(r)}))})}constructor(e,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new hi,queueMicrotask(async()=>{const i={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(e(i)),this.resolve()}catch(r){this.reject(r)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await wa.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var n;return(n=this._onReturn)==null||n.call(this),{done:!0,value:void 0}}}}static map(e,n){return new un(async i=>{for await(const r of e)i.emitOne(n(r))})}map(e){return un.map(this,e)}static filter(e,n){return new un(async i=>{for await(const r of e)n(r)&&i.emitOne(r)})}filter(e){return un.filter(this,e)}static coalesce(e){return un.filter(e,n=>!!n)}coalesce(){return un.coalesce(this)}static async toPromise(e){const n=[];for await(const i of e)n.push(i);return n}toPromise(){return un.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};un.EMPTY=un.fromArray([]);let Og=un;new A0(1e4);const ao="vs/platform/contextkey/common/scanner";function El(...t){switch(t.length){case 1:return f(ao,0,"Did you mean {0}?",t[0]);case 2:return f(ao,1,"Did you mean {0} or {1}?",t[0],t[1]);case 3:return f(ao,2,"Did you mean {0}, {1} or {2}?",t[0],t[1],t[2]);default:return}}const t5=f(ao,3,"Did you forget to open or close the quote?"),n5=f(ao,4,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),as=class as{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw h4(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const n=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:n})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const n=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:n})}else this._match(126)?this._addToken(9):this._error(El("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(El("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(El("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const n=this._start,i=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:i};this._errors.push({offset:n,lexeme:i,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const n=this._input.substring(this._start,this._current),i=as._keywords.get(n);i?this._addToken(i):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(t5);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,n=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(n5);return}const s=this._input.charCodeAt(e);if(n)n=!1;else if(s===47&&!i){e++;break}else s===91?i=!0:s===92?n=!0:s===93&&(i=!1);e++}for(;e<this._input.length&&as._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};as._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),as._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let Dr=as;const Ui="vs/platform/contextkey/common/contextkey",At=new Map;At.set("false",!1);At.set("true",!0);At.set("isMac",bi);At.set("isLinux",Da);At.set("isWindows",qr);At.set("isWeb",O1);At.set("isMacNative",bi&&!O1);At.set("isEdge",ry);At.set("isFirefox",ny);At.set("isChrome",j0);At.set("isSafari",iy);const i5=Object.prototype.hasOwnProperty,r5={regexParsingWithErrorRecovery:!0},s5=f(Ui,0,"Empty context key expression"),o5=f(Ui,1,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),a5=f(Ui,2,"'in' after 'not'."),Ag=f(Ui,3,"closing parenthesis ')'"),c5=f(Ui,4,"Unexpected token"),l5=f(Ui,5,"Did you forget to put && or || before the token?"),u5=f(Ui,6,"Unexpected end of expression"),d5=f(Ui,7,"Did you forget to put a context key?"),Rr=class Rr{get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=r5){this._config=e,this._scanner=new Dr,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:s5,offset:0,lexeme:"",additionalInfo:o5});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const n=this._expr();if(!this._isAtEnd()){const i=this._peek(),r=i.type===17?l5:void 0;throw this._parsingErrors.push({message:c5,offset:i.offset,lexeme:Dr.getLexeme(i),additionalInfo:r}),Rr._parseError}return n}catch(n){if(n!==Rr._parseError)throw n;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const n=this._and();e.push(n)}return e.length===1?e[0]:qt.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const n=this._term();e.push(n)}return e.length===1?e[0]:qt.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Qt.INSTANCE;case 12:return this._advance(),an.INSTANCE;case 0:{this._advance();const n=this._expr();return this._consume(1,Ag),n==null?void 0:n.negate()}case 17:return this._advance(),Ur.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),qt.true();case 12:return this._advance(),qt.false();case 0:{this._advance();const n=this._expr();return this._consume(1,Ag),n}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const r=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),r.type!==10)throw this._errExpectedButGot("REGEX",r);const s=r.lexeme,o=s.lastIndexOf("/"),a=o===s.length-1?void 0:this._removeFlagsGY(s.substring(o+1));let c;try{c=new RegExp(s.substring(1,o),a)}catch{throw this._errExpectedButGot("REGEX",r)}return yo.create(n,c)}switch(r.type){case 10:case 19:{const s=[r.lexeme];this._advance();let o=this._peek(),a=0;for(let p=0;p<r.lexeme.length;p++)r.lexeme.charCodeAt(p)===40?a++:r.lexeme.charCodeAt(p)===41&&a--;for(;!this._isAtEnd()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let p=0;p<o.lexeme.length;p++)o.lexeme.charCodeAt(p)===40?a++:r.lexeme.charCodeAt(p)===41&&a--}if(a<0)break;s.push(Dr.getLexeme(o)),this._advance(),o=this._peek()}const c=s.join(""),l=c.lastIndexOf("/"),h=l===c.length-1?void 0:this._removeFlagsGY(c.substring(l+1));let g;try{g=new RegExp(c.substring(1,l),h)}catch{throw this._errExpectedButGot("REGEX",r)}return qt.regex(n,g)}case 18:{const s=r.lexeme;this._advance();let o=null;if(!F4(s)){const a=s.indexOf("/"),c=s.lastIndexOf("/");if(a!==c&&a>=0){const l=s.slice(a+1,c),h=s[c+1]==="i"?"i":"";try{o=new RegExp(l,h)}catch{throw this._errExpectedButGot("REGEX",r)}}}if(o===null)throw this._errExpectedButGot("REGEX",r);return yo.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,a5);const r=this._value();return qt.notIn(n,r)}switch(this._peek().type){case 3:{this._advance();const r=this._value();if(this._previous().type===18)return qt.equals(n,r);switch(r){case"true":return qt.has(n);case"false":return qt.not(n);default:return qt.equals(n,r)}}case 4:{this._advance();const r=this._value();if(this._previous().type===18)return qt.notEquals(n,r);switch(r){case"true":return qt.not(n);case"false":return qt.has(n);default:return qt.notEquals(n,r)}}case 5:return this._advance(),zo.create(n,this._value());case 6:return this._advance(),Bo.create(n,this._value());case 7:return this._advance(),Wo.create(n,this._value());case 8:return this._advance(),Uo.create(n,this._value());case 13:return this._advance(),qt.in(n,this._value());default:return qt.has(n)}}case 20:throw this._parsingErrors.push({message:u5,offset:e.offset,lexeme:"",additionalInfo:d5}),Rr._parseError;default:throw this._errExpectedButGot(`true | false | KEY
56
+ ${$y(n,e)}
57
+ `,this}appendLink(e,n,i){return this.value+="[",this.value+=this._escape(n,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,n){const i=new RegExp(O4(n),"g");return e.replace(i,(r,s)=>e.charAt(s-1)!=="\\"?`\\${r}`:r)}};function Ny(t){return t.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function $y(t,e){var r;const n=((r=t.match(/^`+/gm))==null?void 0:r.reduce((s,o)=>s.length>o.length?s:o).length)??0,i=n>=3?n+1:3;return[`${"`".repeat(i)}${e}`,t,`${"`".repeat(i)}`].join(`
58
+ `)}const Mr=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),qy=/^(.+)\/(.+?)(;.+)?$/;function Q0(t,e){const n=qy.exec(t);return n?`${n[1].toLowerCase()}/${n[2].toLowerCase()}${n[3]??""}`:e?void 0:t}const mc=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let t;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?t=crypto.getRandomValues.bind(crypto):t=function(i){for(let r=0;r<i.length;r++)i[r]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),n=[];for(let i=0;i<256;i++)n.push(i.toString(16).padStart(2,"0"));return function(){t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=0,s="";return s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+="-",s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s+=n[e[r++]],s}}();class Hy{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const n=e.charCodeAt(0),i=this._value.charCodeAt(this._pos);return n-i}value(){return this._value[this._pos]}}class jy{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?R1(e,this._value,0,e.length,this._from,this._to):qo(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class J0{constructor(e=!0,n=!0){this._splitOnBackslash=e,this._caseSensitive=n}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let n=e.length-1;n>=0;n--,this._valueLen--){const i=this._value.charCodeAt(n);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const n=this._value.charCodeAt(this._to);if(n===47||this._splitOnBackslash&&n===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?R1(e,this._value,0,e.length,this._from,this._to):qo(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class Wy{constructor(e,n){this._ignorePathCasing=e,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new J0(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return cg(e,this._value.scheme);if(this._states[this._stateIdx]===2)return cg(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Su(e,this._value.query);if(this._states[this._stateIdx]===5)return Su(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class Zo{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e;return((e=this.left)==null?void 0:e.height)??0}get heightRight(){var e;return((e=this.right)==null?void 0:e.height)??0}}class Xi{static forUris(e=()=>!1,n=()=>!1){return new Xi(new Wy(e,n))}static forPaths(e=!1){return new Xi(new J0(void 0,!e))}static forStrings(){return new Xi(new Hy)}static forConfigKeys(){return new Xi(new jy)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,n){if(n){const i=n.slice(0);ig(i);for(const r of i)this.set(r,e)}else{const i=e.slice(0);ig(i);for(const r of i)this.set(r[0],r[1])}}set(e,n){const i=this._iter.reset(e);let r;this._root||(this._root=new Zo,this._root.segment=i.value());const s=[];for(r=this._root;;){const a=i.cmp(r.segment);if(a>0)r.left||(r.left=new Zo,r.left.segment=i.value()),s.push([-1,r]),r=r.left;else if(a<0)r.right||(r.right=new Zo,r.right.segment=i.value()),s.push([1,r]),r=r.right;else if(i.hasNext())i.next(),r.mid||(r.mid=new Zo,r.mid.segment=i.value()),s.push([0,r]),r=r.mid;else break}const o=r.value;r.value=n,r.key=e;for(let a=s.length-1;a>=0;a--){const c=s[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const h=s[a][0],g=s[a+1][0];if(h===1&&g===1)s[a][1]=c.rotateLeft();else if(h===-1&&g===-1)s[a][1]=c.rotateRight();else if(h===1&&g===-1)c.right=s[a+1][1]=s[a+1][1].rotateRight(),s[a][1]=c.rotateLeft();else if(h===-1&&g===1)c.left=s[a+1][1]=s[a+1][1].rotateLeft(),s[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(s[a-1][0]){case-1:s[a-1][1].left=s[a][1];break;case 1:s[a-1][1].right=s[a][1];break;case 0:s[a-1][1].mid=s[a][1];break}else this._root=s[0][1]}}return o}get(e){var n;return(n=this._getNode(e))==null?void 0:n.value}_getNode(e){const n=this._iter.reset(e);let i=this._root;for(;i;){const r=n.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(n.hasNext())n.next(),i=i.mid;else break}return i}has(e){const n=this._getNode(e);return!((n==null?void 0:n.value)===void 0&&(n==null?void 0:n.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,n){const i=this._iter.reset(e),r=[];let s=this._root;for(;s;){const o=i.cmp(s.segment);if(o>0)r.push([-1,s]),s=s.left;else if(o<0)r.push([1,s]),s=s.right;else if(i.hasNext())i.next(),r.push([0,s]),s=s.mid;else break}if(s){if(n?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const o=this._min(s.right);if(o.key){const{key:a,value:c,segment:l}=o;this._delete(o.key,!1),s.key=a,s.value=c,s.segment=l}}else{const o=s.left??s.right;if(r.length>0){const[a,c]=r[r.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this._root=o}for(let o=r.length-1;o>=0;o--){const a=r[o][1];a.updateHeight();const c=a.balanceFactor();if(c>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),r[o][1]=a.rotateLeft()):c<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),r[o][1]=a.rotateRight()),o>0)switch(r[o-1][0]){case-1:r[o-1][1].left=r[o][1];break;case 1:r[o-1][1].right=r[o][1];break;case 0:r[o-1][1].mid=r[o][1];break}else this._root=r[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const n=this._iter.reset(e);let i=this._root,r;for(;i;){const s=n.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(n.hasNext())n.next(),r=i.value||r,i=i.mid;else break}return i&&i.value||r}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,n){const i=this._iter.reset(e);let r=this._root;for(;r;){const s=i.cmp(r.segment);if(s>0)r=r.left;else if(s<0)r=r.right;else if(i.hasNext())i.next(),r=r.mid;else return r.mid?this._entries(r.mid):n?r.value:void 0}}hasElementOrSubtree(e){return this._findSuperstrOrElement(e,!0)!==void 0}forEach(e){for(const[n,i]of this)e(i,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const n=[];return this._dfsEntries(e,n),n[Symbol.iterator]()}_dfsEntries(e,n){e&&(e.left&&this._dfsEntries(e.left,n),e.value&&n.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,n),e.right&&this._dfsEntries(e.right,n))}_isBalanced(){const e=n=>{if(!n)return!0;const i=n.balanceFactor();return i<-1||i>1?!1:e(n.left)&&e(n.right)};return e(this._root)}}const $s="vs/platform/files/common/files";var Iu;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Iu||(Iu={}));var Fu;(function(t){t[t.Readonly=1]="Readonly",t[t.Locked=2]="Locked"})(Fu||(Fu={}));var Eg;(function(t){t[t.None=0]="None",t[t.FileReadWrite=2]="FileReadWrite",t[t.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",t[t.FileReadStream=16]="FileReadStream",t[t.FileFolderCopy=8]="FileFolderCopy",t[t.PathCaseSensitive=1024]="PathCaseSensitive",t[t.Readonly=2048]="Readonly",t[t.Trash=4096]="Trash",t[t.FileWriteUnlock=8192]="FileWriteUnlock",t[t.FileAtomicRead=16384]="FileAtomicRead",t[t.FileAtomicWrite=32768]="FileAtomicWrite",t[t.FileAtomicDelete=65536]="FileAtomicDelete",t[t.FileClone=131072]="FileClone"})(Eg||(Eg={}));var Di;(function(t){t.FileExists="EntryExists",t.FileNotFound="EntryNotFound",t.FileNotADirectory="EntryNotADirectory",t.FileIsADirectory="EntryIsADirectory",t.FileExceedsStorageQuota="EntryExceedsStorageQuota",t.FileTooLarge="EntryTooLarge",t.FileWriteLocked="EntryWriteLocked",t.NoPermissions="NoPermissions",t.Unavailable="Unavailable",t.Unknown="Unknown"})(Di||(Di={}));function Uy(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}var Pg;(function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"})(Pg||(Pg={}));const os=class os{constructor(e,n){this.ignorePathCasing=n,this.correlationId=void 0,this.added=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawAdded.map(r=>[r,!0])),i}),this.updated=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawUpdated.map(r=>[r,!0])),i}),this.deleted=new ds(()=>{const i=Xi.forUris(()=>this.ignorePathCasing);return i.fill(this.rawDeleted.map(r=>[r,!0])),i}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const i of e){switch(i.type){case 1:this.rawAdded.push(i.resource);break;case 0:this.rawUpdated.push(i.resource);break;case 2:this.rawDeleted.push(i.resource);break}this.correlationId!==os.MIXED_CORRELATION&&(typeof i.cId=="number"?this.correlationId===void 0?this.correlationId=i.cId:this.correlationId!==i.cId&&(this.correlationId=os.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=os.MIXED_CORRELATION))}}contains(e,...n){return this.doContains(e,{includeChildren:!1},...n)}affects(e,...n){return this.doContains(e,{includeChildren:!0},...n)}doContains(e,n,...i){if(!e)return!1;const r=i.length>0;return!!((!r||i.includes(1))&&(this.added.value.get(e)||n.includeChildren&&this.added.value.findSuperstr(e))||(!r||i.includes(0))&&(this.updated.value.get(e)||n.includeChildren&&this.updated.value.findSuperstr(e))||(!r||i.includes(2))&&(this.deleted.value.findSubstr(e)||n.includeChildren&&this.deleted.value.findSuperstr(e)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(e){return this.correlationId===e}hasCorrelation(){return typeof this.correlationId=="number"}};os.MIXED_CORRELATION=null;let Ig=os;var Fg;(function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"})(Fg||(Fg={}));const Tt=class Tt{static formatSize(e){return so(e)||(e=0),e<Tt.KB?f($s,1,"{0}B",e.toFixed(0)):e<Tt.MB?f($s,2,"{0}KB",(e/Tt.KB).toFixed(2)):e<Tt.GB?f($s,3,"{0}MB",(e/Tt.MB).toFixed(2)):e<Tt.TB?f($s,4,"{0}GB",(e/Tt.GB).toFixed(2)):f($s,5,"{0}TB",(e/Tt.TB).toFixed(2))}};Tt.KB=1024,Tt.MB=Tt.KB*Tt.KB,Tt.GB=Tt.MB*Tt.KB,Tt.TB=Tt.GB*Tt.KB;let Mg=Tt;var oo;(function(t){t.Unknown="Unknown",t.NotAvailable="NotAvailable",t.TemporarilyNotAvailable="TemporarilyNotAvailable",t.NoResolverFound="NoResolverFound",t.InvalidAuthority="InvalidAuthority"})(oo||(oo={}));const ea=typeof Buffer<"u",zy=new ds(()=>new Uint8Array(256));let Tl,Rl;class yn{static alloc(e){return ea?new yn(Buffer.allocUnsafe(e)):new yn(new Uint8Array(e))}static wrap(e){return ea&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new yn(e)}static fromString(e,n){return!((n==null?void 0:n.dontUseNodeBuffer)||!1)&&ea?new yn(Buffer.from(e)):(Tl||(Tl=new TextEncoder),new yn(Tl.encode(e)))}static fromByteArray(e){const n=yn.alloc(e.length);for(let i=0,r=e.length;i<r;i++)n.buffer[i]=e[i];return n}static concat(e,n){if(typeof n>"u"){n=0;for(let s=0,o=e.length;s<o;s++)n+=e[s].byteLength}const i=yn.alloc(n);let r=0;for(let s=0,o=e.length;s<o;s++){const a=e[s];i.set(a,r),r+=a.byteLength}return i}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){const e=yn.alloc(this.byteLength);return e.set(this),e}toString(){return ea?this.buffer.toString():(Rl||(Rl=new TextDecoder),Rl.decode(this.buffer))}slice(e,n){return new yn(this.buffer.subarray(e,n))}set(e,n){if(e instanceof yn)this.buffer.set(e.buffer,n);else if(e instanceof Uint8Array)this.buffer.set(e,n);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),n);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return Vy(this.buffer,e)}writeUInt32BE(e,n){Ky(this.buffer,e,n)}readUInt32LE(e){return Gy(this.buffer,e)}writeUInt32LE(e,n){Qy(this.buffer,e,n)}readUInt8(e){return Jy(this.buffer,e)}writeUInt8(e,n){Yy(this.buffer,e,n)}indexOf(e,n=0){return By(this.buffer,e instanceof yn?e.buffer:e,n)}}function By(t,e,n=0){const i=e.byteLength,r=t.byteLength;if(i===0)return 0;if(i===1)return t.indexOf(e[0]);if(i>r-n)return-1;const s=zy.value;s.fill(e.length);for(let l=0;l<e.length;l++)s[e[l]]=e.length-l-1;let o=n+e.length-1,a=o,c=-1;for(;o<r;)if(t[o]===e[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(e.length-a,s[t[o]]),a=e.length-1;return c}function Vy(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function Ky(t,e,n){t[n+3]=e,e=e>>>8,t[n+2]=e,e=e>>>8,t[n+1]=e,e=e>>>8,t[n]=e}function Gy(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function Qy(t,e,n){t[n+0]=e&255,e=e>>>8,t[n+1]=e&255,e=e>>>8,t[n+2]=e&255,e=e>>>8,t[n+3]=e&255}function Jy(t,e){return t[e]}function Yy(t,e,n){t[n]=e}function Xy(t){let e=0,n=0,i=0;const r=new Uint8Array(Math.floor(t.length/4*3)),s=a=>{switch(n){case 3:r[i++]=e|a,n=0;break;case 2:r[i++]=e|a>>>2,e=a<<6,n=3;break;case 1:r[i++]=e|a>>>4,e=a<<4,n=2;break;default:e=a<<2,n=1}};for(let a=0;a<t.length;a++){const c=t.charCodeAt(a);if(c>=65&&c<=90)s(c-65);else if(c>=97&&c<=122)s(c-97+26);else if(c>=48&&c<=57)s(c-48+52);else if(c===43||c===45)s(62);else if(c===47||c===95)s(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${t[a]}`)}}const o=i;for(;n>0;)s(0);return yn.wrap(r).slice(0,o)}const Zy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function t5({buffer:t},e=!0,n=!1){const i=n?e5:Zy;let r="";const s=t.byteLength%3;let o=0;for(;o<t.byteLength-s;o+=3){const a=t[o+0],c=t[o+1],l=t[o+2];r+=i[a>>>2],r+=i[(a<<4|c>>>4)&63],r+=i[(c<<2|l>>>6)&63],r+=i[l&63]}if(s===1){const a=t[o+0];r+=i[a>>>2],r+=i[a<<4&63],e&&(r+="==")}else if(s===2){const a=t[o+0],c=t[o+1];r+=i[a>>>2],r+=i[(a<<4|c>>>4)&63],r+=i[c<<2&63],e&&(r+="=")}return r}var Og;(function(t){async function e(i){let r;const s=await Promise.all(i.map(o=>o.then(a=>a,a=>{r||(r=a)})));if(typeof r<"u")throw r;return s}t.settled=e;function n(i){return new Promise(async(r,s)=>{try{await i(r,s)}catch(o){s(o)}})}t.withAsyncBody=n})(Og||(Og={}));const un=class un{static fromArray(e){return new un(n=>{n.emitMany(e)})}static fromPromise(e){return new un(async n=>{n.emitMany(await e)})}static fromPromises(e){return new un(async n=>{await Promise.all(e.map(async i=>n.emitOne(await i)))})}static merge(e){return new un(async n=>{await Promise.all(e.map(async i=>{for await(const r of i)n.emitOne(r)}))})}constructor(e,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new hi,queueMicrotask(async()=>{const i={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(e(i)),this.resolve()}catch(r){this.reject(r)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await wa.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var n;return(n=this._onReturn)==null||n.call(this),{done:!0,value:void 0}}}}static map(e,n){return new un(async i=>{for await(const r of e)i.emitOne(n(r))})}map(e){return un.map(this,e)}static filter(e,n){return new un(async i=>{for await(const r of e)n(r)&&i.emitOne(r)})}filter(e){return un.filter(this,e)}static coalesce(e){return un.filter(e,n=>!!n)}coalesce(){return un.coalesce(this)}static async toPromise(e){const n=[];for await(const i of e)n.push(i);return n}toPromise(){return un.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};un.EMPTY=un.fromArray([]);let Ag=un;new L0(1e4);const ao="vs/platform/contextkey/common/scanner";function El(...t){switch(t.length){case 1:return f(ao,0,"Did you mean {0}?",t[0]);case 2:return f(ao,1,"Did you mean {0} or {1}?",t[0],t[1]);case 3:return f(ao,2,"Did you mean {0}, {1} or {2}?",t[0],t[1],t[2]);default:return}}const n5=f(ao,3,"Did you forget to open or close the quote?"),i5=f(ao,4,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),as=class as{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw g4(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const n=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:n})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const n=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:n})}else this._match(126)?this._addToken(9):this._error(El("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(El("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(El("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const n=this._start,i=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:i};this._errors.push({offset:n,lexeme:i,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const n=this._input.substring(this._start,this._current),i=as._keywords.get(n);i?this._addToken(i):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(n5);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,n=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(i5);return}const s=this._input.charCodeAt(e);if(n)n=!1;else if(s===47&&!i){e++;break}else s===91?i=!0:s===92?n=!0:s===93&&(i=!1);e++}for(;e<this._input.length&&as._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};as._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),as._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let Dr=as;const Ui="vs/platform/contextkey/common/contextkey",At=new Map;At.set("false",!1);At.set("true",!0);At.set("isMac",bi);At.set("isLinux",Da);At.set("isWindows",qr);At.set("isWeb",O1);At.set("isMacNative",bi&&!O1);At.set("isEdge",sy);At.set("isFirefox",iy);At.set("isChrome",W0);At.set("isSafari",ry);const r5=Object.prototype.hasOwnProperty,s5={regexParsingWithErrorRecovery:!0},o5=f(Ui,0,"Empty context key expression"),a5=f(Ui,1,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),c5=f(Ui,2,"'in' after 'not'."),Lg=f(Ui,3,"closing parenthesis ')'"),l5=f(Ui,4,"Unexpected token"),u5=f(Ui,5,"Did you forget to put && or || before the token?"),d5=f(Ui,6,"Unexpected end of expression"),f5=f(Ui,7,"Did you forget to put a context key?"),Rr=class Rr{get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=s5){this._config=e,this._scanner=new Dr,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:o5,offset:0,lexeme:"",additionalInfo:a5});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const n=this._expr();if(!this._isAtEnd()){const i=this._peek(),r=i.type===17?u5:void 0;throw this._parsingErrors.push({message:l5,offset:i.offset,lexeme:Dr.getLexeme(i),additionalInfo:r}),Rr._parseError}return n}catch(n){if(n!==Rr._parseError)throw n;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const n=this._and();e.push(n)}return e.length===1?e[0]:qt.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const n=this._term();e.push(n)}return e.length===1?e[0]:qt.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Qt.INSTANCE;case 12:return this._advance(),an.INSTANCE;case 0:{this._advance();const n=this._expr();return this._consume(1,Lg),n==null?void 0:n.negate()}case 17:return this._advance(),Ur.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),qt.true();case 12:return this._advance(),qt.false();case 0:{this._advance();const n=this._expr();return this._consume(1,Lg),n}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const r=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),r.type!==10)throw this._errExpectedButGot("REGEX",r);const s=r.lexeme,o=s.lastIndexOf("/"),a=o===s.length-1?void 0:this._removeFlagsGY(s.substring(o+1));let c;try{c=new RegExp(s.substring(1,o),a)}catch{throw this._errExpectedButGot("REGEX",r)}return yo.create(n,c)}switch(r.type){case 10:case 19:{const s=[r.lexeme];this._advance();let o=this._peek(),a=0;for(let p=0;p<r.lexeme.length;p++)r.lexeme.charCodeAt(p)===40?a++:r.lexeme.charCodeAt(p)===41&&a--;for(;!this._isAtEnd()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let p=0;p<o.lexeme.length;p++)o.lexeme.charCodeAt(p)===40?a++:r.lexeme.charCodeAt(p)===41&&a--}if(a<0)break;s.push(Dr.getLexeme(o)),this._advance(),o=this._peek()}const c=s.join(""),l=c.lastIndexOf("/"),h=l===c.length-1?void 0:this._removeFlagsGY(c.substring(l+1));let g;try{g=new RegExp(c.substring(1,l),h)}catch{throw this._errExpectedButGot("REGEX",r)}return qt.regex(n,g)}case 18:{const s=r.lexeme;this._advance();let o=null;if(!M4(s)){const a=s.indexOf("/"),c=s.lastIndexOf("/");if(a!==c&&a>=0){const l=s.slice(a+1,c),h=s[c+1]==="i"?"i":"";try{o=new RegExp(l,h)}catch{throw this._errExpectedButGot("REGEX",r)}}}if(o===null)throw this._errExpectedButGot("REGEX",r);return yo.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,c5);const r=this._value();return qt.notIn(n,r)}switch(this._peek().type){case 3:{this._advance();const r=this._value();if(this._previous().type===18)return qt.equals(n,r);switch(r){case"true":return qt.has(n);case"false":return qt.not(n);default:return qt.equals(n,r)}}case 4:{this._advance();const r=this._value();if(this._previous().type===18)return qt.notEquals(n,r);switch(r){case"true":return qt.not(n);case"false":return qt.has(n);default:return qt.notEquals(n,r)}}case 5:return this._advance(),zo.create(n,this._value());case 6:return this._advance(),Bo.create(n,this._value());case 7:return this._advance(),Wo.create(n,this._value());case 8:return this._advance(),Uo.create(n,this._value());case 13:return this._advance(),qt.in(n,this._value());default:return qt.has(n)}}case 20:throw this._parsingErrors.push({message:d5,offset:e.offset,lexeme:"",additionalInfo:f5}),Rr._parseError;default:throw this._errExpectedButGot(`true | false | KEY
59
59
  | KEY '=~' REGEX
60
60
  | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,n){if(this._check(e))return this._advance();throw this._errExpectedButGot(n,this._peek())}_errExpectedButGot(e,n,i){const r=f(Ui,8,`Expected: {0}
61
- Received: '{1}'.`,e,Dr.getLexeme(n)),s=n.offset,o=Dr.getLexeme(n);return this._parsingErrors.push({message:r,offset:s,lexeme:o,additionalInfo:i}),Rr._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};Rr._parseError=new Error;let Mu=Rr;const G1=class G1{static false(){return Qt.INSTANCE}static true(){return an.INSTANCE}static has(e){return Wr.create(e)}static equals(e,n){return Ho.create(e,n)}static notEquals(e,n){return jo.create(e,n)}static regex(e,n){return yo.create(e,n)}static in(e,n){return yc.create(e,n)}static notIn(e,n){return bc.create(e,n)}static not(e){return Ur.create(e)}static and(...e){return Yi.create(e,null,!0)}static or(...e){return gi.create(e,null,!0)}static greater(e,n){return Wo.create(e,n)}static greaterEquals(e,n){return Uo.create(e,n)}static smaller(e,n){return zo.create(e,n)}static smallerEquals(e,n){return Bo.create(e,n)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};G1._parser=new Mu({regexParsingWithErrorRecovery:!1});let qt=G1;function co(t,e){return t.cmp(e)}const dc=class dc{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}map(e){return this}negate(){return an.INSTANCE}};dc.INSTANCE=new dc;let Qt=dc;const fc=class fc{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}map(e){return this}negate(){return Qt.INSTANCE}};fc.INSTANCE=new fc;let an=fc;class Wr{static create(e,n=null){const i=At.get(e);return typeof i=="boolean"?i?an.INSTANCE:Qt.INSTANCE:new Wr(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Y0(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=At.get(this.key);return typeof e=="boolean"?e?an.INSTANCE:Qt.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||(this.negated=Ur.create(this.key,this)),this.negated}}class Ho{static create(e,n,i=null){if(typeof n=="boolean")return n?Wr.create(e,i):Ur.create(e,i);const r=At.get(e);return typeof r=="boolean"?n===(r?"true":"false")?an.INSTANCE:Qt.INSTANCE:new Ho(e,n,i)}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=At.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?an.INSTANCE:Qt.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=jo.create(this.key,this.value,this)),this.negated}}class yc{static create(e,n){return new yc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(n)?n.includes(i):typeof i=="string"&&typeof n=="object"&&n!==null?i5.call(n,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=bc.create(this.key,this.valueKey)),this.negated}}class bc{static create(e,n){return new bc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=11,this._negated=yc.create(e,n)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}}class jo{static create(e,n,i=null){if(typeof n=="boolean")return n?Ur.create(e,i):Wr.create(e,i);const r=At.get(e);return typeof r=="boolean"?n===(r?"true":"false")?Qt.INSTANCE:an.INSTANCE:new jo(e,n,i)}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=At.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?Qt.INSTANCE:an.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=Ho.create(this.key,this.value,this)),this.negated}}class Ur{static create(e,n=null){const i=At.get(e);return typeof i=="boolean"?i?Qt.INSTANCE:an.INSTANCE:new Ur(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Y0(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=At.get(this.key);return typeof e=="boolean"?e?Qt.INSTANCE:an.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||(this.negated=Wr.create(this.key,this)),this.negated}}function vc(t,e){if(typeof t=="string"){const n=parseFloat(t);isNaN(n)||(t=n)}return typeof t=="string"||typeof t=="number"?e(t):Qt.INSTANCE}class Wo{static create(e,n,i=null){return vc(n,r=>new Wo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=Bo.create(this.key,this.value,this)),this.negated}}class Uo{static create(e,n,i=null){return vc(n,r=>new Uo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=zo.create(this.key,this.value,this)),this.negated}}class zo{static create(e,n,i=null){return vc(n,r=>new zo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=Uo.create(this.key,this.value,this)),this.negated}}class Bo{static create(e,n,i=null){return vc(n,r=>new Bo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=Wo.create(this.key,this.value,this)),this.negated}}class yo{static create(e,n){return new yo(e,n)}constructor(e,n){this.key=e,this.regexp=n,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const n=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return n<i?-1:n>i?1:0}equals(e){if(e.type===this.type){const n=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&n===i}return!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.key);return this.regexp?this.regexp.test(n):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=Ra.create(this)),this.negated}}class Ra{static create(e){return new Ra(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(e){return new Ra(this._actual.map(e))}negate(){return this._actual}}function J0(t){let e=null;for(let n=0,i=t.length;n<i;n++){const r=t[n].substituteConstants();if(t[n]!==r&&e===null){e=[];for(let s=0;s<n;s++)e[s]=t[s]}e!==null&&(e[n]=r)}return e===null?t:e}class Yi{static create(e,n,i){return Yi._normalizeArr(e,n,i)}constructor(e,n){this.expr=e,this.negated=n,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,i=this.expr.length;n<i;n++){const r=co(this.expr[n],e.expr[n]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=J0(this.expr);return e===this.expr?this:Yi.create(e,this.negated,!1)}evaluate(e){for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].evaluate(e))return!1;return!0}static _normalizeArr(e,n,i){const r=[];let s=!1;for(const o of e)if(o){if(o.type===1){s=!0;continue}if(o.type===0)return Qt.INSTANCE;if(o.type===6){r.push(...o.expr);continue}r.push(o)}if(r.length===0&&s)return an.INSTANCE;if(r.length!==0){if(r.length===1)return r[0];r.sort(co);for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];for(;r.length>1;){const o=r[r.length-1];if(o.type!==9)break;r.pop();const a=r.pop(),c=r.length===0,l=gi.create(o.expr.map(h=>Yi.create([h,a],null,i)),null,c);l&&(r.push(l),r.sort(co))}if(r.length===1)return r[0];if(i){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return Qt.INSTANCE;if(r.length===1)return r[0]}return new Yi(r,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new Yi(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());this.negated=gi.create(e,this,!0)}return this.negated}}class gi{static create(e,n,i){return gi._normalizeArr(e,n,i)}constructor(e,n){this.expr=e,this.negated=n,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,i=this.expr.length;n<i;n++){const r=co(this.expr[n],e.expr[n]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=J0(this.expr);return e===this.expr?this:gi.create(e,this.negated,!1)}evaluate(e){for(let n=0,i=this.expr.length;n<i;n++)if(this.expr[n].evaluate(e))return!0;return!1}static _normalizeArr(e,n,i){let r=[],s=!1;if(e){for(let o=0,a=e.length;o<a;o++){const c=e[o];if(c){if(c.type===0){s=!0;continue}if(c.type===1)return an.INSTANCE;if(c.type===9){r=r.concat(c.expr);continue}r.push(c)}}if(r.length===0&&s)return Qt.INSTANCE;r.sort(co)}if(r.length!==0){if(r.length===1)return r[0];for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];if(i){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return an.INSTANCE;if(r.length===1)return r[0]}return new gi(r,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new gi(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());for(;e.length>1;){const n=e.shift(),i=e.shift(),r=[];for(const s of Lg(n))for(const o of Lg(i))r.push(Yi.create([s,o],null,!1));e.unshift(gi.create(r,null,!1))}this.negated=gi.create(e,this,!0)}return this.negated}}const cs=class cs extends Wr{static all(){return cs._info.values()}constructor(e,n,i){super(e,null),this._defaultValue=n,typeof i=="object"?cs._info.push({...i,key:e}):i!==!0&&cs._info.push({key:e,description:i,type:n!=null?typeof n:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Ho.create(this.key,e)}notEqualsTo(e){return jo.create(this.key,e)}};cs._info=[];let re=cs;function Y0(t,e){return t<e?-1:t>e?1:0}function zr(t,e,n,i){return t<n?-1:t>n?1:e<i?-1:e>i?1:0}function Lg(t){return t.type===9?t.expr:[t]}var Fi;(function(t){t.serviceIds=new Map,t.DI_TARGET="$di$target",t.DI_DEPENDENCIES="$di$dependencies";function e(n){return n[t.DI_DEPENDENCIES]||[]}t.getServiceDependencies=e})(Fi||(Fi={}));h5("instantiationService");function f5(t,e,n){e[Fi.DI_TARGET]===e?e[Fi.DI_DEPENDENCIES].push({id:t,index:n}):(e[Fi.DI_DEPENDENCIES]=[{id:t,index:n}],e[Fi.DI_TARGET]=e)}function h5(t){if(Fi.serviceIds.has(t))return Fi.serviceIds.get(t);const e=function(n,i,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");f5(e,n,r)};return e.toString=()=>t,Fi.serviceIds.set(t,e),e}const Ou=["W","X","Y","Z","a","b","c","d","e","f"],g5=new RegExp(`^[${Ou.join("")}]+`),X0=7;function p5(t){if(t.scheme!==dt.vscodeNotebookCell)return;const e=t.fragment.indexOf("s");if(e<0)return;const n=parseInt(t.fragment.substring(0,e).replace(g5,""),X0),i=Yy(t.fragment.substring(e+1)).toString();if(!isNaN(n))return{handle:n,notebook:t.with({scheme:i,fragment:null})}}function m5(t,e){const n=e.toString(X0),r=`${n.length<Ou.length?Ou[n.length-1]:"z"}${n}s${e5(yn.fromString(t.scheme),!0,!0)}`;return t.with({scheme:dt.vscodeNotebookCell,fragment:r})}var Ng;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Ng||(Ng={}));Mr.latex,Mr.markdown,Mr.text;Mr.latex,Mr.markdown,Mr.text;var $g;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})($g||($g={}));var qg;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(qg||(qg={}));var Hg;(function(t){t[t.ModelChange=1]="ModelChange",t[t.Move=2]="Move",t[t.ChangeCellLanguage=5]="ChangeCellLanguage",t[t.Initialize=6]="Initialize",t[t.ChangeCellMetadata=7]="ChangeCellMetadata",t[t.Output=8]="Output",t[t.OutputItem=9]="OutputItem",t[t.ChangeCellContent=10]="ChangeCellContent",t[t.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",t[t.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",t[t.ChangeCellMime=13]="ChangeCellMime",t[t.Unknown=100]="Unknown"})(Hg||(Hg={}));var jg;(function(t){t[t.Handle=0]="Handle",t[t.Index=1]="Index"})(jg||(jg={}));var Wg;(function(t){t.scheme=dt.vscodeNotebookCell;function e(a,c){return m5(a,c)}t.generate=e;function n(a){return p5(a)}t.parse=n;function i(a,c){return a.with({scheme:dt.vscodeNotebookCellOutput,fragment:`op${c??""},${a.scheme!==dt.file?a.scheme:""}`})}t.generateCellOutputUri=i;function r(a){if(a.scheme!==dt.vscodeNotebookCellOutput)return;const c=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(a.fragment);if(!c)return;const l=c[1]&&c[1]!==""?c[1]:void 0,h=c[2];return{outputId:l,notebook:a.with({scheme:h||dt.file,fragment:null})}}t.parseCellOutputUri=r;function s(a,c,l){return t.generate(a,c).with({scheme:l})}t.generateCellPropertyUri=s;function o(a,c){if(a.scheme===c)return t.parse(a.with({scheme:t.scheme}))}t.parseCellPropertyUri=o})(Wg||(Wg={}));new re("notebookEditorCursorAtBoundary","none");new re("notebookEditorCursorAtLineBoundary","none");var Ug;(function(t){t.default="default",t.option="option"})(Ug||(Ug={}));const ls=class ls{static create(e){return`${ls._prefix}${e}`}static parse(e){if(e.startsWith(ls._prefix))return e.substring(ls._prefix.length)}};ls._prefix="notebook/";let zg=ls;function y5(t){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(t)}new TextDecoder;const b5=`${String.fromCharCode(27)}[A`;b5.split("").map(t=>t.charCodeAt(0));var Au,br,Si,Lu,vr,Ji,wr,Nu,$u,pa,Zs,qu,li,ui,Hu,ln,ju;function ie(t){return Object.assign(t,{apply:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const i=n.length===1?[]:n[1];return Reflect.construct(t,i,n[0].constructor)}},call:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const[i,...r]=n;return Reflect.construct(t,r,i.constructor)}}})}var Wu;(function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"})(Wu||(Wu={}));var Pr,T0;let Uu=Au=(T0=class{constructor(e){Br(this,Pr,void 0);Jo(this,Pr,e)}static from(...e){let n=e;return new Au(function(){if(n){for(const i of n)i&&typeof i.dispose=="function"&&i.dispose();n=void 0}})}dispose(){typeof pt(this,Pr)=="function"&&(pt(this,Pr).call(this),Jo(this,Pr,void 0))}},Pr=new WeakMap,T0);Uu=Au=ne([ie],Uu);let Ye=br=class{static Min(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];r.isBefore(n)&&(n=r)}return n}static Max(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];r.isAfter(n)&&(n=r)}return n}static isPosition(e){if(!e)return!1;if(e instanceof br)return!0;const{line:n,character:i}=e;return typeof n=="number"&&typeof i=="number"}static of(e){if(e instanceof br)return e;if(this.isPosition(e))return new br(e.line,e.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}constructor(e,n){if(e<0)throw xe("line must be non-negative");if(n<0)throw xe("character must be non-negative");this._line=e,this._character=n}isBefore(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<e._character}isBeforeOrEqual(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<=e._character}isAfter(e){return!this.isBeforeOrEqual(e)}isAfterOrEqual(e){return!this.isBefore(e)}isEqual(e){return this._line===e._line&&this._character===e._character}compareTo(e){return this._line<e._line?-1:this._line>e.line?1:this._character<e._character?-1:this._character>e._character?1:0}translate(e,n=0){if(e===null||n===null)throw xe();let i;return typeof e>"u"?i=0:typeof e=="number"?i=e:(i=typeof e.lineDelta=="number"?e.lineDelta:0,n=typeof e.characterDelta=="number"?e.characterDelta:0),i===0&&n===0?this:new br(this.line+i,this.character+n)}with(e,n=this.character){if(e===null||n===null)throw xe();let i;return typeof e>"u"?i=this.line:typeof e=="number"?i=e:(i=typeof e.line=="number"?e.line:this.line,n=typeof e.character=="number"?e.character:this.character),i===this.line&&n===this.character?this:new br(i,n)}toJSON(){return{line:this.line,character:this.character}}};Ye=br=ne([ie],Ye);let _t=Si=class{static isRange(e){return e instanceof Si?!0:e?Ye.isPosition(e.start)&&Ye.isPosition(e.end):!1}static of(e){if(e instanceof Si)return e;if(this.isRange(e))return new Si(e.start,e.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}constructor(e,n,i,r){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"?(s=new Ye(e,n),o=new Ye(i,r)):Ye.isPosition(e)&&Ye.isPosition(n)&&(s=Ye.of(e),o=Ye.of(n)),!s||!o)throw new Error("Invalid arguments");s.isBefore(o)?(this._start=s,this._end=o):(this._start=o,this._end=s)}contains(e){return Si.isRange(e)?this.contains(e.start)&&this.contains(e.end):Ye.isPosition(e)?!(Ye.of(e).isBefore(this._start)||this._end.isBefore(e)):!1}isEqual(e){return this._start.isEqual(e._start)&&this._end.isEqual(e._end)}intersection(e){const n=Ye.Max(e.start,this._start),i=Ye.Min(e.end,this._end);if(!n.isAfter(i))return new Si(n,i)}union(e){if(this.contains(e))return this;if(e.contains(this))return e;const n=Ye.Min(e.start,this._start),i=Ye.Max(e.end,this.end);return new Si(n,i)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(e,n=this.end){if(e===null||n===null)throw xe();let i;return e?Ye.isPosition(e)?i=e:(i=e.start||this.start,n=e.end||this.end):i=this.start,i.isEqual(this._start)&&n.isEqual(this.end)?this:new Si(i,n)}toJSON(){return[this.start,this.end]}};_t=Si=ne([ie],_t);let zu=Lu=class extends _t{static isSelection(e){return e instanceof Lu?!0:e?_t.isRange(e)&&Ye.isPosition(e.anchor)&&Ye.isPosition(e.active)&&typeof e.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}constructor(e,n,i,r){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"?(s=new Ye(e,n),o=new Ye(i,r)):Ye.isPosition(e)&&Ye.isPosition(n)&&(s=Ye.of(e),o=Ye.of(n)),!s||!o)throw new Error("Invalid arguments");super(s,o),this._anchor=s,this._active=o}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}};zu=Lu=ne([ie],zu);const Z0=t=>{if(typeof t!="string"||t.length===0||!/^[0-9A-Za-z_\-]+$/.test(t))throw xe("connectionToken")};let v5=class{static isResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.host=="string"&&typeof e.port=="number"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n,i){if(typeof e!="string"||e.length===0)throw xe("host");if(typeof n!="number"||n===0||Math.round(n)!==n)throw xe("port");typeof i<"u"&&Z0(i),this.host=e,this.port=Math.round(n),this.connectionToken=i}},w5=class{static isManagedResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.makeConnection=="function"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n){this.makeConnection=e,this.connectionToken=n,typeof n<"u"&&Z0(n)}},C5=class ma extends Error{static NotAvailable(e,n){return new ma(e,oo.NotAvailable,n)}static TemporarilyNotAvailable(e){return new ma(e,oo.TemporarilyNotAvailable)}constructor(e,n=oo.Unknown,i){super(e),this._message=e,this._code=n,this._detail=i,Object.setPrototypeOf(this,ma.prototype)}};var Bu;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Bu||(Bu={}));var Vu;(function(t){t[t.Replace=1]="Replace",t[t.Append=2]="Append",t[t.Prepend=3]="Prepend"})(Vu||(Vu={}));let Ea=vr=class{static isTextEdit(e){return e instanceof vr?!0:e?_t.isRange(e)&&typeof e.newText=="string":!1}static replace(e,n){return new vr(e,n)}static insert(e,n){return vr.replace(new _t(e,e),n)}static delete(e){return vr.replace(e,"")}static setEndOfLine(e){const n=new vr(new _t(new Ye(0,0),new Ye(0,0)),"");return n.newEol=e,n}get range(){return this._range}set range(e){if(e&&!_t.isRange(e))throw xe("range");this._range=e}get newText(){return this._newText||""}set newText(e){if(e&&typeof e!="string")throw xe("newText");this._newText=e}get newEol(){return this._newEol}set newEol(e){if(e&&typeof e!="number")throw xe("newEol");this._newEol=e}constructor(e,n){this._range=e,this._newText=n}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};Ea=vr=ne([ie],Ea);let Pa=Ji=class{static isNotebookCellEdit(e){return e instanceof Ji?!0:e?to.isNotebookRange(e)&&Array.isArray(e.newCells):!1}static replaceCells(e,n){return new Ji(e,n)}static insertCells(e,n){return new Ji(new to(e,e),n)}static deleteCells(e){return new Ji(e,[])}static updateCellMetadata(e,n){const i=new Ji(new to(e,e),[]);return i.newCellMetadata=n,i}static updateNotebookMetadata(e){const n=new Ji(new to(0,0),[]);return n.newNotebookMetadata=e,n}constructor(e,n){this.range=e,this.newCells=n}};Pa=Ji=ne([ie],Pa);let e2=class ya{static isSnippetTextEdit(e){return e instanceof ya?!0:e?_t.isRange(e.range)&&Ia.isSnippetString(e.snippet):!1}static replace(e,n){return new ya(e,n)}static insert(e,n){return ya.replace(new _t(e,e),n)}constructor(e,n){this.range=e,this.snippet=n}},Ku=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(e,n,i,r){this._edits.push({_type:1,from:e,to:n,options:i,metadata:r})}createFile(e,n,i){this._edits.push({_type:1,from:void 0,to:e,options:n,metadata:i})}deleteFile(e,n,i){this._edits.push({_type:1,from:e,to:void 0,options:n,metadata:i})}replaceNotebookMetadata(e,n,i){this._edits.push({_type:3,metadata:i,uri:e,edit:{editType:5,metadata:n},notebookMetadata:n})}replaceNotebookCells(e,n,i,r){const s=n.start,o=n.end;(s!==o||i.length>0)&&this._edits.push({_type:5,uri:e,index:s,count:o-s,cells:i,metadata:r})}replaceNotebookCellMetadata(e,n,i,r){this._edits.push({_type:3,metadata:r,uri:e,edit:{editType:3,index:n,metadata:i}})}replace(e,n,i,r){this._edits.push({_type:2,uri:e,edit:new Ea(n,i),metadata:r})}insert(e,n,i,r){this.replace(e,new _t(n,n),i,r)}delete(e,n,i){this.replace(e,n,"",i)}has(e){return this._edits.some(n=>n._type===2&&n.uri.toString()===e.toString())}set(e,n){if(n)for(const i of n){if(!i)continue;let r,s;Array.isArray(i)?(r=i[0],s=i[1]):r=i,Pa.isNotebookCellEdit(r)?r.newCellMetadata?this.replaceNotebookCellMetadata(e,r.range.start,r.newCellMetadata,s):r.newNotebookMetadata?this.replaceNotebookMetadata(e,r.newNotebookMetadata,s):this.replaceNotebookCells(e,r.range,r.newCells,s):e2.isSnippetTextEdit(r)?this._edits.push({_type:6,uri:e,range:r.range,edit:r.snippet,metadata:s}):this._edits.push({_type:2,uri:e,edit:r,metadata:s})}else{for(let i=0;i<this._edits.length;i++){const r=this._edits[i];switch(r._type){case 2:case 6:case 3:case 5:r.uri.toString()===e.toString()&&(this._edits[i]=void 0);break}}o4(this._edits)}}get(e){const n=[];for(const i of this._edits)i._type===2&&i.uri.toString()===e.toString()&&n.push(i.edit);return n}entries(){const e=new va;for(const n of this._edits)if(n._type===2){let i=e.get(n.uri);i||(i=[n.uri,[]],e.set(n.uri,i)),i[1].push(n.edit)}return[...e.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}};Ku=ne([ie],Ku);let Ia=wr=class{static isSnippetString(e){return e instanceof wr?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}constructor(e){this._tabstop=1,this.value=e||""}appendText(e){return this.value+=wr._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,n=this._tabstop++){if(typeof e=="function"){const i=new wr;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=wr._escape(e);return this.value+="${",this.value+=n,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,n=this._tabstop++){const i=e.map(r=>r.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=n,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(e,n){if(typeof n=="function"){const i=new wr;i._tabstop=this._tabstop,n(i),this._tabstop=i._tabstop,n=i.value}else typeof n=="string"&&(n=n.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,n&&(this.value+=":",this.value+=n),this.value+="}",this}};Ia=wr=ne([ie],Ia);var Gu;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Gu||(Gu={}));var bo;(function(t){t[t.Hint=3]="Hint",t[t.Information=2]="Information",t[t.Warning=1]="Warning",t[t.Error=0]="Error"})(bo||(bo={}));let vo=Nu=class{static isLocation(e){return e instanceof Nu?!0:e?_t.isRange(e.range)&&st.isUri(e.uri):!1}constructor(e,n){if(this.uri=e,n)if(_t.isRange(n))this.range=_t.of(n);else if(Ye.isPosition(n))this.range=new _t(n,n);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}};vo=Nu=ne([ie],vo);let Fa=class{static is(e){return e?typeof e.message=="string"&&e.location&&_t.isRange(e.location.range)&&st.isUri(e.location.uri):!1}constructor(e,n){this.location=e,this.message=n}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.location.range.isEqual(n.location.range)&&e.location.uri.toString()===n.location.uri.toString()}};Fa=ne([ie],Fa);let Qu=class{constructor(e,n,i=bo.Error){if(!_t.isRange(e))throw new TypeError("range must be set");if(!n)throw new TypeError("message must be set");this.range=e,this.message=n,this.severity=i}toJSON(){return{severity:bo[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.severity===n.severity&&e.code===n.code&&e.severity===n.severity&&e.source===n.source&&e.range.isEqual(n.range)&&yu(e.tags,n.tags)&&yu(e.relatedInformation,n.relatedInformation,Fa.isEqual)}};Qu=ne([ie],Qu);let Ma=class{constructor(e,n){if(!e)throw new Error("Illegal argument, contents must be defined");Array.isArray(e)?this.contents=e:this.contents=[e],this.range=n}};Ma=ne([ie],Ma);let Bg=class extends Ma{constructor(e,n,i,r){super(e,n),this.canIncreaseHover=i,this.canDecreaseHover=r}};Bg=ne([ie],Bg);var Vg;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Vg||(Vg={}));var wo;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(wo||(wo={}));let Ju=class{constructor(e,n=wo.Text){this.range=e,this.kind=n}toJSON(){return{range:this.range,kind:wo[this.kind]}}};Ju=ne([ie],Ju);let Yu=class{constructor(e,n){this.uri=e,this.highlights=n}toJSON(){return{uri:this.uri,highlights:this.highlights.map(e=>e.toJSON())}}};Yu=ne([ie],Yu);var Oa;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(Oa||(Oa={}));var Xu;(function(t){t[t.Deprecated=1]="Deprecated"})(Xu||(Xu={}));let Zu=$u=class{static validate(e){if(!e.name)throw new Error("name must not be falsy")}constructor(e,n,i,r,s){this.name=e,this.kind=n,this.containerName=s,typeof i=="string"&&(this.containerName=i),r instanceof vo?this.location=r:i instanceof _t&&(this.location=new vo(r,i)),$u.validate(this)}toJSON(){return{name:this.name,kind:Oa[this.kind],location:this.location,containerName:this.containerName}}};Zu=$u=ne([ie],Zu);let ed=pa=class{static validate(e){var n;if(!e.name)throw new Error("name must not be falsy");if(!e.range.contains(e.selectionRange))throw new Error("selectionRange must be contained in fullRange");(n=e.children)==null||n.forEach(pa.validate)}constructor(e,n,i,r,s){this.name=e,this.detail=n,this.kind=i,this.range=r,this.selectionRange=s,this.children=[],pa.validate(this)}};ed=pa=ne([ie],ed);var td;(function(t){t[t.Invoke=1]="Invoke",t[t.Automatic=2]="Automatic"})(td||(td={}));let nd=class{constructor(e,n){this.title=e,this.kind=n}};nd=ne([ie],nd);var Ms;let lt=(Ms=class{constructor(e){this.value=e}append(e){return new Zs(this.value?this.value+Zs.sep+e:e)}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+Zs.sep)}},Zs=Ms,Ms.sep=".",Ms);lt=Zs=ne([ie],lt);lt.Empty=new lt("");lt.QuickFix=lt.Empty.append("quickfix");lt.Refactor=lt.Empty.append("refactor");lt.RefactorExtract=lt.Refactor.append("extract");lt.RefactorInline=lt.Refactor.append("inline");lt.RefactorMove=lt.Refactor.append("move");lt.RefactorRewrite=lt.Refactor.append("rewrite");lt.Source=lt.Empty.append("source");lt.SourceOrganizeImports=lt.Source.append("organizeImports");lt.SourceFixAll=lt.Source.append("fixAll");lt.Notebook=lt.Empty.append("notebook");let id=class{constructor(e,n){if(this.range=e,this.parent=n,n&&!n.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}};id=ne([ie],id);let _5=class{constructor(e,n,i,r,s,o){this.kind=e,this.name=n,this.detail=i,this.uri=r,this.range=s,this.selectionRange=o}},S5=class{constructor(e,n){this.fromRanges=n,this.from=e}},D5=class{constructor(e,n){this.fromRanges=n,this.to=e}};var rd;(function(t){t[t.Information=0]="Information",t[t.Warning=1]="Warning",t[t.Error=2]="Error"})(rd||(rd={}));let sd=class{constructor(e,n){this.range=e,this.command=n}get isResolved(){return!!this.command}};sd=ne([ie],sd);var Bt,R0;let Aa=qu=(R0=class{constructor(e,n=!1){Br(this,Bt,void 0);Jo(this,Bt,new Ay(e,{supportThemeIcons:n}))}static isMarkdownString(e){return e instanceof qu?!0:e&&e.appendCodeblock&&e.appendMarkdown&&e.appendText&&e.value!==void 0}get value(){return pt(this,Bt).value}set value(e){pt(this,Bt).value=e}get isTrusted(){return pt(this,Bt).isTrusted}set isTrusted(e){pt(this,Bt).isTrusted=e}get supportThemeIcons(){return pt(this,Bt).supportThemeIcons}set supportThemeIcons(e){pt(this,Bt).supportThemeIcons=e}get supportHtml(){return pt(this,Bt).supportHtml}set supportHtml(e){pt(this,Bt).supportHtml=e}get baseUri(){return pt(this,Bt).baseUri}set baseUri(e){pt(this,Bt).baseUri=e}appendText(e){return pt(this,Bt).appendText(e),this}appendMarkdown(e){return pt(this,Bt).appendMarkdown(e),this}appendCodeblock(e,n){return pt(this,Bt).appendCodeblock(n??"",e),this}},Bt=new WeakMap,R0);Aa=qu=ne([ie],Aa);let od=class{constructor(e,n){this.label=e,this.documentation=n}};od=ne([ie],od);let ad=class{constructor(e,n){this.label=e,this.documentation=n,this.parameters=[]}};ad=ne([ie],ad);let cd=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};cd=ne([ie],cd);var ld;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ld||(ld={}));var ud;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ud||(ud={}));let dd=class{constructor(e){this.value=e}};dd=ne([ie],dd);let fd=class{constructor(e,n,i){this.position=e,this.label=n,this.kind=i}};fd=ne([ie],fd);var hd;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(hd||(hd={}));var La;(function(t){t[t.Text=0]="Text",t[t.Method=1]="Method",t[t.Function=2]="Function",t[t.Constructor=3]="Constructor",t[t.Field=4]="Field",t[t.Variable=5]="Variable",t[t.Class=6]="Class",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Unit=10]="Unit",t[t.Value=11]="Value",t[t.Enum=12]="Enum",t[t.Keyword=13]="Keyword",t[t.Snippet=14]="Snippet",t[t.Color=15]="Color",t[t.File=16]="File",t[t.Reference=17]="Reference",t[t.Folder=18]="Folder",t[t.EnumMember=19]="EnumMember",t[t.Constant=20]="Constant",t[t.Struct=21]="Struct",t[t.Event=22]="Event",t[t.Operator=23]="Operator",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue"})(La||(La={}));var gd;(function(t){t[t.Deprecated=1]="Deprecated"})(gd||(gd={}));let pd=class{constructor(e,n){this.label=e,this.kind=n}toJSON(){return{label:this.label,kind:this.kind&&La[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};pd=ne([ie],pd);let md=class{constructor(e=[],n=!1){this.items=e,this.isIncomplete=n}};md=ne([ie],md);let yd=class{constructor(e,n,i){this.insertText=e,this.range=n,this.command=i}};yd=ne([ie],yd);let bd=class{constructor(e){this.commands=void 0,this.suppressSuggestions=void 0,this.items=e}};bd=ne([ie],bd);var Kg;(function(t){t[t.Unknown=0]="Unknown",t[t.Word=1]="Word",t[t.Line=2]="Line",t[t.Suggest=3]="Suggest"})(Kg||(Kg={}));var vd;(function(t){t[t.Active=-1]="Active",t[t.Beside=-2]="Beside",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five",t[t.Six=6]="Six",t[t.Seven=7]="Seven",t[t.Eight=8]="Eight",t[t.Nine=9]="Nine"})(vd||(vd={}));var wd;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(wd||(wd={}));var Cd;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval"})(Cd||(Cd={}));var _d;(function(t){t[t.Manual=1]="Manual",t[t.AfterDelay=2]="AfterDelay",t[t.FocusOut=3]="FocusOut"})(_d||(_d={}));var Sd;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Sd||(Sd={}));var Co;(function(t){t[t.Keyboard=1]="Keyboard",t[t.Mouse=2]="Mouse",t[t.Command=3]="Command"})(Co||(Co={}));var Dd;(function(t){t[t.Undo=1]="Undo",t[t.Redo=2]="Redo"})(Dd||(Dd={}));var xd;(function(t){t[t.OpenOpen=0]="OpenOpen",t[t.ClosedClosed=1]="ClosedClosed",t[t.OpenClosed=2]="OpenClosed",t[t.ClosedOpen=3]="ClosedOpen"})(xd||(xd={}));(function(t){function e(n){switch(n){case"keyboard":return t.Keyboard;case"mouse":return t.Mouse;case"api":return t.Command}}t.fromValue=e})(Co||(Co={}));var _o;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(_o||(_o={}));(function(t){function e(n){switch(n){case t.Other:return"other";case t.Comment:return"comment";case t.String:return"string";case t.RegEx:return"regex"}return"other"}t.toString=e})(_o||(_o={}));let kd=class{constructor(e,n){if(n&&!st.isUri(n))throw xe("target");if(!_t.isRange(e)||e.isEmpty)throw xe("range");this.range=e,this.target=n}};kd=ne([ie],kd);let Na=class{constructor(e,n,i,r){this.red=e,this.green=n,this.blue=i,this.alpha=r}};Na=ne([ie],Na);let Td=class{constructor(e,n){if(n&&!(n instanceof Na))throw xe("color");if(!_t.isRange(e)||e.isEmpty)throw xe("range");this.range=e,this.color=n}};Td=ne([ie],Td);let Rd=class{constructor(e){if(!e||typeof e!="string")throw xe("label");this.label=e}};Rd=ne([ie],Rd);var Ed;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"})(Ed||(Ed={}));var Pd;(function(t){t[t.Unknown=0]="Unknown",t[t.Shutdown=1]="Shutdown",t[t.Process=2]="Process",t[t.User=3]="User",t[t.Extension=4]="Extension"})(Pd||(Pd={}));var Gg;(function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"})(Gg||(Gg={}));let x5=class{constructor(e,n,i){if(this.startIndex=e,this.length=n,this.tooltip=i,typeof e!="number"||e<0)throw xe("startIndex");if(typeof n!="number"||n<1)throw xe("length");if(i!==void 0&&typeof i!="string")throw xe("tooltip")}},k5=class{constructor(e){this.uri=e}};class T5{constructor(e){this.terminalCommand=e}}var Id;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(Id||(Id={}));let R5=class{constructor(e){if(this.options=e,typeof e!="object")throw xe("options")}};var Fd;(function(t){t[t.Always=1]="Always",t[t.Silent=2]="Silent",t[t.Never=3]="Never"})(Fd||(Fd={}));var Md;(function(t){t[t.Shared=1]="Shared",t[t.Dedicated=2]="Dedicated",t[t.New=3]="New"})(Md||(Md={}));var Pi;let Od=(Pi=class{static from(e){switch(e){case"clean":return li.Clean;case"build":return li.Build;case"rebuild":return li.Rebuild;case"test":return li.Test;default:return}}constructor(e,n){if(this.label=n,typeof e!="string"||typeof n!="string")throw xe("name");this._id=e}get id(){return this._id}},li=Pi,Pi.Clean=new li("clean","Clean"),Pi.Build=new li("build","Build"),Pi.Rebuild=new li("rebuild","Rebuild"),Pi.Test=new li("test","Test"),Pi);Od=li=ne([ie],Od);function t2(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].replace(/,/g,",,")+",";return e}let $a=class{constructor(e,n,i){if(typeof e!="string")throw xe("process");this._args=[],this._process=e,n!==void 0&&(Array.isArray(n)?(this._args=n,this._options=i):this._options=n)}get process(){return this._process}set process(e){if(typeof e!="string")throw xe("process");this._process=e}get args(){return this._args}set args(e){Array.isArray(e)||(e=[]),this._args=e}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("process"),this._process!==void 0&&e.push(this._process),this._args&&this._args.length>0)for(const n of this._args)e.push(n);return t2(e)}};$a=ne([ie],$a);let qa=class{constructor(e,n,i){if(this._args=[],Array.isArray(n)){if(!e)throw xe("command can't be undefined or null");if(typeof e!="string"&&typeof e.value!="string")throw xe("command");this._command=e,this._args=n,this._options=i}else{if(typeof e!="string")throw xe("commandLine");this._commandLine=e,this._options=n}}get commandLine(){return this._commandLine}set commandLine(e){if(typeof e!="string")throw xe("commandLine");this._commandLine=e}get command(){return this._command?this._command:""}set command(e){if(typeof e!="string"&&typeof e.value!="string")throw xe("command");this._command=e}get args(){return this._args}set args(e){this._args=e||[]}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("shell"),this._commandLine!==void 0&&e.push(this._commandLine),this._command!==void 0&&e.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const n of this._args)e.push(typeof n=="string"?n:n.value);return t2(e)}};qa=ne([ie],qa);var Ad;(function(t){t[t.Escape=1]="Escape",t[t.Strong=2]="Strong",t[t.Weak=3]="Weak"})(Ad||(Ad={}));var So;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace"})(So||(So={}));let n2=class{constructor(e){this._callback=e}computeId(){return"customExecution"+mc()}set callback(e){this._callback=e}get callback(){return this._callback}};var Ii;let Ld=(Ii=class{constructor(e,n,i,r,s,o){this.__deprecated=!1,this._definition=this.definition=e;let a;typeof n=="string"?(this._name=this.name=n,this._source=this.source=i,this.execution=r,a=s,this.__deprecated=!0):n===So.Global||n===So.Workspace?(this.target=n,this._name=this.name=i,this._source=this.source=r,this.execution=s,a=o):(this.target=n,this._name=this.name=i,this._source=this.source=r,this.execution=s,a=o),typeof a=="string"?(this._problemMatchers=[a],this._hasDefinedMatchers=!0):Array.isArray(a)?(this._problemMatchers=a,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(e){this.__id=e}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof $a?this._definition={type:ui.ProcessType,id:this._execution.computeId()}:this._execution instanceof qa?this._definition={type:ui.ShellType,id:this._execution.computeId()}:this._execution instanceof n2?this._definition={type:ui.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:ui.EmptyType,id:mc()}}get definition(){return this._definition}set definition(e){if(e==null)throw xe("Kind can't be undefined or null");this.clear(),this._definition=e}get scope(){return this._scope}set target(e){this.clear(),this._scope=e}get name(){return this._name}set name(e){if(typeof e!="string")throw xe("name");this.clear(),this._name=e}get execution(){return this._execution}set execution(e){e===null&&(e=void 0),this.clear(),this._execution=e;const n=this._definition.type;(ui.EmptyType===n||ui.ProcessType===n||ui.ShellType===n||ui.ExtensionCallbackType===n)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(e){if(Array.isArray(e))this.clear(),this._problemMatchers=e,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(e){e!==!0&&e!==!1&&(e=!1),this.clear(),this._isBackground=e}get source(){return this._source}set source(e){if(typeof e!="string"||e.length===0)throw xe("source must be a string of length > 0");this.clear(),this._source=e}get group(){return this._group}set group(e){e===null&&(e=void 0),this.clear(),this._group=e}get detail(){return this._detail}set detail(e){e===null&&(e=void 0),this._detail=e}get presentationOptions(){return this._presentationOptions}set presentationOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._presentationOptions=e}get runOptions(){return this._runOptions}set runOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._runOptions=e}},ui=Ii,Ii.ExtensionCallbackType="customExecution",Ii.ProcessType="process",Ii.ShellType="shell",Ii.EmptyType="$empty",Ii);Ld=ui=ne([ie],Ld);var Nd;(function(t){t[t.SourceControl=1]="SourceControl",t[t.Window=10]="Window",t[t.Notification=15]="Notification"})(Nd||(Nd={}));var Qg;(function(t){function e(n){const i=n;return so(i.value)?i.tooltip&&!Tn(i.tooltip)?(console.log("INVALID view badge, invalid tooltip",i.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",i.value),!1)}t.isViewBadge=e})(Qg||(Qg={}));let $d=Hu=class{static isTreeItem(e,n){var r,s;const i=e;if(i.checkboxState!==void 0){const o=so(i.checkboxState)?i.checkboxState:mg(i.checkboxState)&&so(i.checkboxState.state)?i.checkboxState.state:void 0,a=!so(i.checkboxState)&&mg(i.checkboxState)?i.checkboxState.tooltip:void 0;if(o===void 0||o!==Do.Checked&&o!==Do.Unchecked||a!==void 0&&!Tn(a))return console.log("INVALID tree item, invalid checkboxState",i.checkboxState),!1}if(e instanceof Hu)return!0;if(i.label!==void 0&&!Tn(i.label)&&!((r=i.label)!=null&&r.label))return console.log("INVALID tree item, invalid label",i.label),!1;if(i.id!==void 0&&!Tn(i.id))return console.log("INVALID tree item, invalid id",i.id),!1;if(i.iconPath!==void 0&&!Tn(i.iconPath)&&!st.isUri(i.iconPath)&&(!i.iconPath||!Tn(i.iconPath.id))){const o=i.iconPath;if(!o||!Tn(o.light)&&!st.isUri(o.light)&&!Tn(o.dark)&&!st.isUri(o.dark))return console.log("INVALID tree item, invalid iconPath",i.iconPath),!1}return i.description!==void 0&&!Tn(i.description)&&typeof i.description!="boolean"?(console.log("INVALID tree item, invalid description",i.description),!1):i.resourceUri!==void 0&&!st.isUri(i.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",i.resourceUri),!1):i.tooltip!==void 0&&!Tn(i.tooltip)&&!(i.tooltip instanceof Aa)?(console.log("INVALID tree item, invalid tooltip",i.tooltip),!1):i.command!==void 0&&!i.command.command?(console.log("INVALID tree item, invalid command",i.command),!1):i.collapsibleState!==void 0&&i.collapsibleState<fs.None&&i.collapsibleState>fs.Expanded?(console.log("INVALID tree item, invalid collapsibleState",i.collapsibleState),!1):i.contextValue!==void 0&&!Tn(i.contextValue)?(console.log("INVALID tree item, invalid contextValue",i.contextValue),!1):i.accessibilityInformation!==void 0&&!((s=i.accessibilityInformation)!=null&&s.label)?(console.log("INVALID tree item, invalid accessibilityInformation",i.accessibilityInformation),!1):!0}constructor(e,n=fs.None){this.collapsibleState=n,st.isUri(e)?this.resourceUri=e:this.label=e}};$d=Hu=ne([ie],$d);var fs;(function(t){t[t.None=0]="None",t[t.Collapsed=1]="Collapsed",t[t.Expanded=2]="Expanded"})(fs||(fs={}));var Do;(function(t){t[t.Unchecked=0]="Unchecked",t[t.Checked=1]="Checked"})(Do||(Do={}));let qd=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(e){this.value=e}};qd=ne([ie],qd);var Ei,Ir,eo,E0;let Hd=(E0=class{constructor(e){Br(this,Ir);Br(this,Ei,new Map);for(const[n,i]of e??[]){const r=pt(this,Ei).get(Ns(this,Ir,eo).call(this,n));r?r.push(i):pt(this,Ei).set(Ns(this,Ir,eo).call(this,n),[i])}}get(e){var n;return(n=pt(this,Ei).get(Ns(this,Ir,eo).call(this,e)))==null?void 0:n[0]}set(e,n){pt(this,Ei).set(Ns(this,Ir,eo).call(this,e),[n])}forEach(e,n){for(const[i,r]of pt(this,Ei))for(const s of r)e.call(n,s,i,this)}*[Symbol.iterator](){for(const[e,n]of pt(this,Ei))for(const i of n)yield[e,i]}},Ei=new WeakMap,Ir=new WeakSet,eo=function(e){return e.toLowerCase()},E0);Hd=ne([ie],Hd);let jd=class{constructor(e,n,i){this.insertText=e,this.title=n,this.kind=i}};jd=ne([ie],jd);var Jg;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Jg||(Jg={}));const us=class us{constructor(e){this.value=e}append(...e){return new us((this.value?[this.value,...e]:e).join(us.sep))}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+us.sep)}};us.sep=".";let Ha=us;Ha.Empty=new Ha("");let E5=class{constructor(e,n,i){this.title=n,this.insertText=e,this.kind=i}},ji=class{constructor(e,n){this.id=e,this.color=n}static isThemeIcon(e){return typeof e.id!="string"?(console.log("INVALID ThemeIcon, invalid id",e.id),!1):!0}};ji=ne([ie],ji);ji.File=new ji("file");ji.Folder=new ji("folder");let Wd=class{constructor(e){this.id=e}};Wd=ne([ie],Wd);var Ud;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace",t[t.WorkspaceFolder=3]="WorkspaceFolder"})(Ud||(Ud={}));let zd=class{get base(){return this._base}set base(e){this._base=e,this._baseUri=st.file(e)}get baseUri(){return this._baseUri}set baseUri(e){this._baseUri=e,this._base=e.fsPath}constructor(e,n){if(typeof e!="string"&&(!e||!st.isUri(e)&&!st.isUri(e.uri)))throw xe("base");if(typeof n!="string")throw xe("pattern");typeof e=="string"?this.baseUri=st.file(e):st.isUri(e)?this.baseUri=e:this.baseUri=e.uri,this.pattern=n}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};zd=ne([ie],zd);const P5=new WeakMap;let ps=class{constructor(e,n,i,r,s){this.enabled=typeof e=="boolean"?e:!0,typeof n=="string"&&(this.condition=n),typeof i=="string"&&(this.hitCondition=i),typeof r=="string"&&(this.logMessage=r),typeof s=="string"&&(this.mode=s)}get id(){return this._id||(this._id=P5.get(this)??mc()),this._id}};ps=ne([ie],ps);let Bd=class extends ps{constructor(e,n,i,r,s,o){if(super(n,i,r,s,o),e===null)throw xe("location");this.location=e}};Bd=ne([ie],Bd);let Vd=class extends ps{constructor(e,n,i,r,s,o){super(n,i,r,s,o),this.functionName=e}};Vd=ne([ie],Vd);let Yg=class extends ps{constructor(e,n,i,r,s,o,a,c){if(super(r,s,o,a,c),!n)throw xe("dataId");this.label=e,this.dataId=n,this.canPersist=i}};Yg=ne([ie],Yg);let Kd=class{constructor(e,n,i){this.command=e,this.args=n||[],this.options=i}};Kd=ne([ie],Kd);let Gd=class{constructor(e,n){this.port=e,this.host=n}};Gd=ne([ie],Gd);let Qd=class{constructor(e){this.path=e}};Qd=ne([ie],Qd);let Jd=class{constructor(e){this.implementation=e}};Jd=ne([ie],Jd);let Yd=class{constructor(e,n){this.range=e,this.expression=n}};Yd=ne([ie],Yd);var Xd;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Xd||(Xd={}));let Zd=class{constructor(e,n){this.range=e,this.text=n}};Zd=ne([ie],Zd);let ef=class{constructor(e,n,i=!0){this.range=e,this.variableName=n,this.caseSensitiveLookup=i}};ef=ne([ie],ef);let tf=class{constructor(e,n){this.range=e,this.expression=n}};tf=ne([ie],tf);let Xg=class{constructor(e,n){this.frameId=e,this.stoppedLocation=n}};Xg=ne([ie],Xg);var Zg;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Zg||(Zg={}));var ep;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(ep||(ep={}));var nf;(function(t){t[t.Changed=1]="Changed",t[t.Created=2]="Created",t[t.Deleted=3]="Deleted"})(nf||(nf={}));let rf=ln=class extends Error{static FileExists(e){return new ln(e,Di.FileExists,ln.FileExists)}static FileNotFound(e){return new ln(e,Di.FileNotFound,ln.FileNotFound)}static FileNotADirectory(e){return new ln(e,Di.FileNotADirectory,ln.FileNotADirectory)}static FileIsADirectory(e){return new ln(e,Di.FileIsADirectory,ln.FileIsADirectory)}static NoPermissions(e){return new ln(e,Di.NoPermissions,ln.NoPermissions)}static Unavailable(e){return new ln(e,Di.Unavailable,ln.Unavailable)}constructor(e,n=Di.Unknown,i){super(st.isUri(e)?e.toString(!0):e),this.code=(i==null?void 0:i.name)??"Unknown",Wy(this,n),Object.setPrototypeOf(this,ln.prototype),typeof Error.captureStackTrace=="function"&&typeof i=="function"&&Error.captureStackTrace(this,i)}};rf=ln=ne([ie],rf);let sf=class{constructor(e,n,i){this.start=e,this.end=n,this.kind=i}};sf=ne([ie],sf);var of;(function(t){t[t.Comment=1]="Comment",t[t.Imports=2]="Imports",t[t.Region=3]="Region"})(of||(of={}));var af;(function(t){t[t.Collapsed=0]="Collapsed",t[t.Expanded=1]="Expanded"})(af||(af={}));var cf;(function(t){t[t.Editing=0]="Editing",t[t.Preview=1]="Preview"})(cf||(cf={}));var lf;(function(t){t[t.Published=0]="Published",t[t.Draft=1]="Draft"})(lf||(lf={}));var uf;(function(t){t[t.Unresolved=0]="Unresolved",t[t.Resolved=1]="Resolved"})(uf||(uf={}));var tp;(function(t){t[t.Current=0]="Current",t[t.Outdated=1]="Outdated"})(tp||(tp={}));let I5=class{constructor(e,n=[]){this.tokenTypes=e,this.tokenModifiers=n}};function F5(t){return typeof t>"u"||j4(t)}let M5=class i2{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let n=0,i=e.tokenTypes.length;n<i;n++)this._tokenTypeStrToInt.set(e.tokenTypes[n],n);for(let n=0,i=e.tokenModifiers.length;n<i;n++)this._tokenModifierStrToInt.set(e.tokenModifiers[n],n)}}push(e,n,i,r,s){if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"&&(typeof s=="number"||typeof s>"u"))return typeof s>"u"&&(s=0),this._pushEncoded(e,n,i,r,s);if(_t.isRange(e)&&typeof n=="string"&&F5(i))return this._push(e,n,i);throw xe()}_push(e,n,i){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(n))throw new Error("`tokenType` is not in the provided legend");const r=e.start.line,s=e.start.character,o=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(n);let c=0;if(i)for(const l of i){if(!this._tokenModifierStrToInt.has(l))throw new Error("`tokenModifier` is not in the provided legend");const h=this._tokenModifierStrToInt.get(l);c|=1<<h>>>0}this._pushEncoded(r,s,o,a,c)}_pushEncoded(e,n,i,r,s){if(this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&n<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;const c=this._data.length/5|0;let l=0,h=0;for(let g=0;g<c;g++){let p=this._data[5*g],w=this._data[5*g+1];p===0?(p=l,w+=h):p+=l,this._data[5*g]=p,this._data[5*g+1]=w,l=p,h=w}}let o=e,a=n;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}static _sortAndDeltaEncode(e){const n=[],i=e.length/5|0;for(let a=0;a<i;a++)n[a]=a;n.sort((a,c)=>{const l=e[5*a],h=e[5*c];if(l===h){const g=e[5*a+1],p=e[5*c+1];return g-p}return l-h});const r=new Uint32Array(e.length);let s=0,o=0;for(let a=0;a<i;a++){const c=5*n[a],l=e[c+0],h=e[c+1],g=e[c+2],p=e[c+3],w=e[c+4],v=l-s,x=v===0?h-o:h,T=5*a;r[T+0]=v,r[T+1]=x,r[T+2]=g,r[T+3]=p,r[T+4]=w,s=l,o=h}return r}build(e){return this._dataIsSortedAndDeltaEncoded?new df(new Uint32Array(this._data),e):new df(i2._sortAndDeltaEncode(this._data),e)}},df=class{constructor(e,n){this.resultId=n,this.data=e}},O5=class{constructor(e,n,i){this.start=e,this.deleteCount=n,this.data=i}},A5=class{constructor(e,n){this.resultId=n,this.edits=e}};var ff;(function(t){t[t.Separate=0]="Separate",t[t.MergeWithParent=1]="MergeWithParent"})(ff||(ff={}));let L5=class{constructor(e){this.name=e}};var No;let hf=(No=class{constructor(){}},No.Back={iconPath:new ji("arrow-left")},No);hf=ne([ie],hf);var gf;(function(t){t[t.Separator=-1]="Separator",t[t.Default=0]="Default"})(gf||(gf={}));var pf;(function(t){t[t.Info=1]="Info",t[t.Warning=2]="Warning",t[t.Error=3]="Error"})(pf||(pf={}));var mf;(function(t){t[t.UI=1]="UI",t[t.Workspace=2]="Workspace"})(mf||(mf={}));let np=class{static validate(e){if(typeof e.badge=="string"){let n=lg(e.badge,0);if(n<e.badge.length&&(n+=lg(e.badge,n)),e.badge.length>n)throw new Error("The 'badge'-property must be undefined or a short character")}else if(e.badge&&!ji.isThemeIcon(e.badge))throw new Error("The 'badge'-property is not a valid ThemeIcon");if(!e.color&&!e.badge&&!e.tooltip)throw new Error("The decoration is empty");return!0}constructor(e,n,i){this.badge=e,this.tooltip=n,this.color=i}},ip=class{constructor(e){this.kind=e}};ip=ne([ie],ip);var yf;(function(t){t[t.Light=1]="Light",t[t.Dark=2]="Dark",t[t.HighContrast=3]="HighContrast",t[t.HighContrastLight=4]="HighContrastLight"})(yf||(yf={}));let to=class bf{static isNotebookRange(e){return e instanceof bf?!0:e?typeof e.start=="number"&&typeof e.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}constructor(e,n){if(e<0)throw xe("start must be positive");if(n<0)throw xe("end must be positive");e<=n?(this._start=e,this._end=n):(this._start=n,this._end=e)}with(e){let n=this._start,i=this._end;return e.start!==void 0&&(n=e.start),e.end!==void 0&&(i=e.end),n===this._start&&i===this._end?this:new bf(n,i)}},N5=class vf{static validate(e){if(typeof e.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof e.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof e.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(e){return Array.isArray(e)&&e.every(n=>vf.isNotebookCellData(n))}static isNotebookCellData(e){return!0}constructor(e,n,i,r,s,o,a){this.kind=e,this.value=n,this.languageId=i,this.mime=r,this.outputs=s??[],this.metadata=o,this.executionSummary=a,vf.validate(this)}},$5=class{constructor(e){this.cells=e}};var Rn,hc;let q5=(Rn=class{static isNotebookCellOutputItem(e){return e instanceof Rn?!0:e?typeof e.mime=="string"&&e.data instanceof Uint8Array:!1}static error(e){const n={name:e.name,message:e.message,stack:e.stack};return Rn.json(n,"application/vnd.code.notebook.error")}static stdout(e){return Rn.text(e,"application/vnd.code.notebook.stdout")}static stderr(e){return Rn.text(e,"application/vnd.code.notebook.stderr")}static bytes(e,n="application/octet-stream"){return new Rn(e,n)}static text(e,n=Mr.text){const i=pt(Rn,hc).encode(String(e));return new Rn(i,n)}static json(e,n="text/x-json"){const i=JSON.stringify(e,void 0," ");return Rn.text(i,n)}constructor(e,n){this.data=e,this.mime=n;const i=G0(n,!0);if(!i)throw new Error(`INVALID mime type: ${n}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=i}},hc=new WeakMap,Br(Rn,hc,new TextEncoder),Rn),H5=class wf{static isNotebookCellOutput(e){return e instanceof wf?!0:!e||typeof e!="object"?!1:typeof e.id=="string"&&Array.isArray(e.items)}static ensureUniqueMimeTypes(e,n=!1){const i=new Set,r=new Set;for(let s=0;s<e.length;s++){const o=e[s],a=G0(o.mime);if(!i.has(a)||y5(a)){i.add(a);continue}r.add(s),n&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return r.size===0?e:e.filter((s,o)=>!r.has(o))}constructor(e,n,i){this.items=wf.ensureUniqueMimeTypes(e,!0),typeof n=="string"?(this.id=n,this.metadata=i):(this.id=mc(),this.metadata=n??i)}};var Cf;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Cf||(Cf={}));var _f;(function(t){t[t.Idle=1]="Idle",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(_f||(_f={}));var Sf;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Sf||(Sf={}));var Df;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Df||(Df={}));let j5=class{constructor(e,n){this.text=e,this.alignment=n}};var xf;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred"})(xf||(xf={}));var kf;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred",t[t.Hidden=-1]="Hidden"})(kf||(kf={}));let W5=class{constructor(e,n=[]){this.uri=e,this.provides=a4(n)}},U5=class{constructor(e){this.label=e}};var rp;(function(t){t[t.Named=1]="Named",t[t.Indexed=2]="Indexed"})(rp||(rp={}));let Tf=class{constructor(e,n){this.label=e,this.timestamp=n}};Tf=ne([ie],Tf);var Rf;(function(t){t[t.Production=1]="Production",t[t.Development=2]="Development",t[t.Test=3]="Test"})(Rf||(Rf={}));var Ef;(function(t){t[t.Node=1]="Node",t[t.Webworker=2]="Webworker"})(Ef||(Ef={}));var Pf;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(Pf||(Pf={}));let z5=class{constructor(e,n){this.ranges=e,this.wordPattern=n}},B5=class{constructor(e){this._autoForwardAction=e}get autoForwardAction(){return this._autoForwardAction}};var If;(function(t){t[t.Queued=1]="Queued",t[t.Running=2]="Running",t[t.Passed=3]="Passed",t[t.Failed=4]="Failed",t[t.Skipped=5]="Skipped",t[t.Errored=6]="Errored"})(If||(If={}));var Ff;(function(t){t[t.Run=1]="Run",t[t.Debug=2]="Debug",t[t.Coverage=3]="Coverage"})(Ff||(Ff={}));let Mf=class{constructor(e=void 0,n=void 0,i=void 0,r=!1,s=!0){this.include=e,this.exclude=n,this.profile=i,this.continuous=r,this.preserveFocus=s}};Mf=ne([ie],Mf);let ja=ju=class{static diff(e,n,i){const r=new ju(e);return r.expectedOutput=n,r.actualOutput=i,r}constructor(e){this.message=e}};ja=ju=ne([ie],ja);let Of=class{constructor(e){this.id=e}};Of=ne([ie],Of);class Pl{constructor(e,n){this.covered=e,this.total=n,V5(this)}}function V5(t){if(t){if(t.covered>t.total)throw new Error(`The total number of covered items (${t.covered}) cannot be greater than the total (${t.total})`);if(t.total<0)throw new Error(`The number of covered items (${t.total}) cannot be negative`)}}let K5=class r2{static fromDetails(e,n){const i=new Pl(0,0),r=new Pl(0,0),s=new Pl(0,0);for(const a of n)if("branches"in a){i.total+=1,i.covered+=a.executed?1:0;for(const c of a.branches)r.total+=1,r.covered+=c.executed?1:0}else s.total+=1,s.covered+=a.executed?1:0;const o=new r2(e,i,r.total>0?r:void 0,s.total>0?s:void 0);return o.detailedCoverage=n,o}constructor(e,n,i,r){this.uri=e,this.statementCoverage=n,this.branchCoverage=i,this.declarationCoverage=r}},G5=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i=[]){this.executed=e,this.location=n,this.branches=i}},Q5=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i){this.executed=e,this.location=n,this.label=i}};class J5{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i){this.name=e,this.executed=n,this.location=i}}var Af;(function(t){t[t.None=0]="None",t[t.Option=1]="Option",t[t.Default=2]="Default",t[t.Preferred=3]="Preferred"})(Af||(Af={}));var Lf;(function(t){t[t.Untrusted=0]="Untrusted",t[t.Trusted=1]="Trusted",t[t.Unspecified=2]="Unspecified"})(Lf||(Lf={}));var Nf;(function(t){t[t.Notify=1]="Notify",t[t.OpenBrowser=2]="OpenBrowser",t[t.OpenPreview=3]="OpenPreview",t[t.Silent=4]="Silent",t[t.Ignore=5]="Ignore",t[t.OpenBrowserOnce=6]="OpenBrowserOnce"})(Nf||(Nf={}));let Y5=class{constructor(e,n,i,r,s,o){this.kind=e,this.name=n,this.detail=i,this.uri=r,this.range=s,this.selectionRange=o}};class X5{constructor(e){this.uri=e}}class Z5{constructor(e,n){this.original=e,this.modified=n}}class eb{constructor(e,n,i,r){this.base=e,this.input1=n,this.input2=i,this.result=r}}class tb{constructor(e,n){this.uri=e,this.viewType=n}}class nb{constructor(e){this.viewType=e}}class ib{constructor(e,n){this.uri=e,this.notebookType=n}}class rb{constructor(e,n,i){this.original=e,this.modified=n,this.notebookType=i}}class sb{constructor(){}}class ob{constructor(e,n){this.uri=e,this.inputBoxUri=n}}class ab{constructor(){}}var $f;(function(t){t[t.Down=0]="Down",t[t.Up=1]="Up"})($f||($f={}));var qf;(function(t){t[t.Action=1]="Action",t[t.Toolbar=2]="Toolbar"})(qf||(qf={}));var Hf;(function(t){t[t.Short=1]="Short",t[t.Medium=2]="Medium",t[t.Full=3]="Full"})(Hf||(Hf={}));let cb=class{constructor(e,n){this.label=e,this.values=n}};var jf;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful",t[t.Undone=2]="Undone",t[t.Accepted=3]="Accepted",t[t.Bug=4]="Bug"})(jf||(jf={}));var Wf;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful"})(Wf||(Wf={}));var sp;(function(t){t[t.Panel=1]="Panel",t[t.Terminal=2]="Terminal",t[t.Notebook=3]="Notebook",t[t.Editor=4]="Editor"})(sp||(sp={}));var Uf;(function(t){t[t.SymbolInformation=1]="SymbolInformation",t[t.CommandInformation=2]="CommandInformation",t[t.SearchInformation=3]="SearchInformation",t[t.SettingInformation=4]="SettingInformation"})(Uf||(Uf={}));var zf;(function(t){t[t.Started=1]="Started",t[t.Recognizing=2]="Recognizing",t[t.Recognized=3]="Recognized",t[t.Stopped=4]="Stopped",t[t.Error=5]="Error"})(zf||(zf={}));var Bf;(function(t){t[t.Recognized=1]="Recognized",t[t.Stopped=2]="Stopped"})(Bf||(Bf={}));var op;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(op||(op={}));var Vf;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Vf||(Vf={}));const gc=class gc{constructor(e){this._proxyIdentifierBrand=void 0,this.sid=e,this.nid=++gc.count}};gc.count=0;let Kf=gc;const lb=[];function F(t){const e=new Kf(t);return lb[e.nid]=e,e}var ap;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(ap||(ap={}));var cp;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(cp||(cp={}));var Gf;(function(t){t[t.None=0]="None",t[t.Process=1]="Process",t[t.Output=2]="Output"})(Gf||(Gf={}));F("MainThreadAuthentication"),F("MainThreadBulkEdits"),F("MainThreadLanguageModels"),F("MainThreadChatAgents2"),F("MainThreadChatVariables"),F("MainThreadClipboard"),F("MainThreadCommands"),F("MainThreadComments"),F("MainThreadConfiguration"),F("MainThreadConsole"),F("MainThreadDebugService"),F("MainThreadDecorations"),F("MainThreadDiagnostics"),F("MainThreadDiaglogs"),F("MainThreadDocuments"),F("MainThreadDocumentContentProviders"),F("MainThreadTextEditors"),F("MainThreadEditorInsets"),F("MainThreadEditorTabs"),F("MainThreadErrors"),F("MainThreadTreeViews"),F("MainThreadDownloadService"),F("MainThreadLanguageFeatures"),F("MainThreadLanguages"),F("MainThreadLogger"),F("MainThreadMessageService"),F("MainThreadOutputService"),F("MainThreadProgress"),F("MainThreadQuickDiff"),F("MainThreadQuickOpen"),F("MainThreadStatusBar"),F("MainThreadSecretState"),F("MainThreadStorage"),F("MainThreadSpeechProvider"),F("MainThreadTelemetry"),F("MainThreadTerminalService"),F("MainThreadTerminalShellIntegration"),F("MainThreadWebviews"),F("MainThreadWebviewPanels"),F("MainThreadWebviewViews"),F("MainThreadCustomEditors"),F("MainThreadUrls"),F("MainThreadUriOpeners"),F("MainThreadProfileContentHandlers"),F("MainThreadWorkspace"),F("MainThreadFileSystem"),F("MainThreadFileSystemEventService"),F("MainThreadExtensionService"),F("MainThreadSCM"),F("MainThreadSearch"),F("MainThreadShare"),F("MainThreadTask"),F("MainThreadWindow"),F("MainThreadLabelService"),F("MainThreadNotebook"),F("MainThreadNotebookDocumentsShape"),F("MainThreadNotebookEditorsShape"),F("MainThreadNotebookKernels"),F("MainThreadNotebookRenderers"),F("MainThreadInteractive"),F("MainThreadInlineChatShape"),F("MainThreadTheming"),F("MainThreadTunnelService"),F("MainThreadManagedSockets"),F("MainThreadTimeline"),F("MainThreadTesting"),F("MainThreadLocalizationShape"),F("MainThreadAiRelatedInformation"),F("MainThreadAiEmbeddingVector");F("ExtHostCommands"),F("ExtHostConfiguration"),F("ExtHostDiagnostics"),F("ExtHostDebugService"),F("ExtHostDecorations"),F("ExtHostDocumentsAndEditors"),F("ExtHostDocuments"),F("ExtHostDocumentContentProviders"),F("ExtHostDocumentSaveParticipant"),F("ExtHostEditors"),F("ExtHostTreeViews"),F("ExtHostFileSystem"),F("ExtHostFileSystemInfo"),F("ExtHostFileSystemEventService"),F("ExtHostLanguages"),F("ExtHostLanguageFeatures"),F("ExtHostQuickOpen"),F("ExtHostQuickDiff"),F("ExtHostStatusBar"),F("ExtHostShare"),F("ExtHostExtensionService"),F("ExtHostLogLevelServiceShape"),F("ExtHostTerminalService"),F("ExtHostTerminalShellIntegration"),F("ExtHostSCM"),F("ExtHostSearch"),F("ExtHostTask"),F("ExtHostWorkspace"),F("ExtHostWindow"),F("ExtHostWebviews"),F("ExtHostWebviewPanels"),F("ExtHostCustomEditors"),F("ExtHostWebviewViews"),F("ExtHostEditorInsets"),F("ExtHostEditorTabs"),F("ExtHostProgress"),F("ExtHostComments"),F("ExtHostSecretState"),F("ExtHostStorage"),F("ExtHostUrls"),F("ExtHostUriOpeners"),F("ExtHostProfileContentHandlers"),F("ExtHostOutputService"),F("ExtHostLabelService"),F("ExtHostNotebook"),F("ExtHostNotebookDocuments"),F("ExtHostNotebookEditors"),F("ExtHostNotebookKernels"),F("ExtHostNotebookRenderers"),F("ExtHostNotebookDocumentSaveParticipant"),F("ExtHostInteractive"),F("ExtHostInlineChatShape"),F("ExtHostChatAgents"),F("ExtHostChatVariables"),F("ExtHostChatProvider"),F("ExtHostSpeech"),F("ExtHostAiRelatedInformation"),F("ExtHostAiEmbeddingVector"),F("ExtHostTheming"),F("ExtHostTunnelService"),F("ExtHostManagedSockets"),F("ExtHostAuthentication"),F("ExtHostTimeline"),F("ExtHostTesting"),F("ExtHostTelemetry"),F("ExtHostLocalization");const ae="vs/workbench/contrib/debug/common/debug";new re("debugType",void 0,{type:"string",description:f(ae,0,"Debug type of the active debug session. For example 'python'.")});new re("debugConfigurationType",void 0,{type:"string",description:f(ae,1,"Debug type of the selected launch configuration. For example 'python'.")});new re("debugState","inactive",{type:"string",description:f(ae,2,"State that the focused debug session is in. One of the following: 'inactive', 'initializing', 'stopped' or 'running'.")});const ub="debugUx";new re(ub,"default",{type:"string",description:f(ae,3,"Debug UX state. When there are no debug configurations it is 'simple', otherwise 'default'. Used to decide when to show welcome views in the debug viewlet.")});new re("hasDebugged",!1,{type:"boolean",description:f(ae,4,"True when a debug session has been started at least once, false otherwise.")});new re("inDebugMode",!1,{type:"boolean",description:f(ae,5,"True when debugging, false otherwise.")});new re("inDebugRepl",!1,{type:"boolean",description:f(ae,6,"True when focus is in the debug console, false otherwise.")});new re("breakpointWidgetVisible",!1,{type:"boolean",description:f(ae,7,"True when breakpoint editor zone widget is visible, false otherwise.")});new re("inBreakpointWidget",!1,{type:"boolean",description:f(ae,8,"True when focus is in the breakpoint editor zone widget, false otherwise.")});new re("breakpointsFocused",!0,{type:"boolean",description:f(ae,9,"True when the BREAKPOINTS view is focused, false otherwise.")});new re("watchExpressionsFocused",!0,{type:"boolean",description:f(ae,10,"True when the WATCH view is focused, false otherwsie.")});new re("watchExpressionsExist",!1,{type:"boolean",description:f(ae,11,"True when at least one watch expression exists, false otherwise.")});new re("variablesFocused",!0,{type:"boolean",description:f(ae,12,"True when the VARIABLES views is focused, false otherwsie")});new re("expressionSelected",!1,{type:"boolean",description:f(ae,13,"True when an expression input box is open in either the WATCH or the VARIABLES view, false otherwise.")});new re("breakpointInputFocused",!1,{type:"boolean",description:f(ae,14,"True when the input box has focus in the BREAKPOINTS view.")});new re("callStackItemType",void 0,{type:"string",description:f(ae,15,"Represents the item type of the focused element in the CALL STACK view. For example: 'session', 'thread', 'stackFrame'")});new re("callStackSessionIsAttach",!1,{type:"boolean",description:f(ae,16,"True when the session in the CALL STACK view is attach, false otherwise. Used internally for inline menus in the CALL STACK view.")});new re("callStackItemStopped",!1,{type:"boolean",description:f(ae,17,"True when the focused item in the CALL STACK is stopped. Used internaly for inline menus in the CALL STACK view.")});new re("callStackSessionHasOneThread",!1,{type:"boolean",description:f(ae,18,"True when the focused session in the CALL STACK view has exactly one thread. Used internally for inline menus in the CALL STACK view.")});new re("watchItemType",void 0,{type:"string",description:f(ae,19,"Represents the item type of the focused element in the WATCH view. For example: 'expression', 'variable'")});new re("canViewMemory",void 0,{type:"boolean",description:f(ae,20,"Indicates whether the item in the view has an associated memory refrence.")});new re("breakpointItemType",void 0,{type:"string",description:f(ae,21,"Represents the item type of the focused element in the BREAKPOINTS view. For example: 'breakpoint', 'exceptionBreakppint', 'functionBreakpoint', 'dataBreakpoint'")});new re("breakpointItemBytes",void 0,{type:"boolean",description:f(ae,22,"Whether the breakpoint item is a data breakpoint on a byte range.")});new re("breakpointHasModes",!1,{type:"boolean",description:f(ae,23,"Whether the breakpoint has multiple modes it can switch to.")});new re("breakpointSupportsCondition",!1,{type:"boolean",description:f(ae,24,"True when the focused breakpoint supports conditions.")});new re("loadedScriptsSupported",!1,{type:"boolean",description:f(ae,25,"True when the focused sessions supports the LOADED SCRIPTS view")});new re("loadedScriptsItemType",void 0,{type:"string",description:f(ae,26,"Represents the item type of the focused element in the LOADED SCRIPTS view.")});new re("focusedSessionIsAttach",!1,{type:"boolean",description:f(ae,27,"True when the focused session is 'attach'.")});new re("focusedSessionIsNoDebug",!1,{type:"boolean",description:f(ae,28,"True when the focused session is run without debugging.")});new re("stepBackSupported",!1,{type:"boolean",description:f(ae,29,"True when the focused session supports 'stepBack' requests.")});new re("restartFrameSupported",!1,{type:"boolean",description:f(ae,30,"True when the focused session supports 'restartFrame' requests.")});new re("stackFrameSupportsRestart",!1,{type:"boolean",description:f(ae,31,"True when the focused stack frame suppots 'restartFrame'.")});new re("jumpToCursorSupported",!1,{type:"boolean",description:f(ae,32,"True when the focused session supports 'jumpToCursor' request.")});new re("stepIntoTargetsSupported",!1,{type:"boolean",description:f(ae,33,"True when the focused session supports 'stepIntoTargets' request.")});new re("breakpointsExist",!1,{type:"boolean",description:f(ae,34,"True when at least one breakpoint exists.")});new re("debuggersAvailable",!1,{type:"boolean",description:f(ae,35,"True when there is at least one debug extensions active.")});new re("debugExtensionAvailable",!0,{type:"boolean",description:f(ae,36,"True when there is at least one debug extension installed and enabled.")});new re("debugProtocolVariableMenuContext",void 0,{type:"string",description:f(ae,37,"Represents the context the debug adapter sets on the focused variable in the VARIABLES view.")});new re("debugSetVariableSupported",!1,{type:"boolean",description:f(ae,38,"True when the focused session supports 'setVariable' request.")});new re("debugSetDataBreakpointAddressSupported",!1,{type:"boolean",description:f(ae,39,"True when the focused session supports 'getBreakpointInfo' request on an address.")});new re("debugSetExpressionSupported",!1,{type:"boolean",description:f(ae,40,"True when the focused session supports 'setExpression' request.")});new re("breakWhenValueChangesSupported",!1,{type:"boolean",description:f(ae,41,"True when the focused session supports to break when value changes.")});new re("breakWhenValueIsAccessedSupported",!1,{type:"boolean",description:f(ae,42,"True when the focused breakpoint supports to break when value is accessed.")});new re("breakWhenValueIsReadSupported",!1,{type:"boolean",description:f(ae,43,"True when the focused breakpoint supports to break when value is read.")});new re("terminateDebuggeeSupported",!1,{type:"boolean",description:f(ae,44,"True when the focused session supports the terminate debuggee capability.")});new re("suspendDebuggeeSupported",!1,{type:"boolean",description:f(ae,45,"True when the focused session supports the suspend debuggee capability.")});new re("variableEvaluateNamePresent",!1,{type:"boolean",description:f(ae,46,"True when the focused variable has an 'evalauteName' field set.")});new re("variableIsReadonly",!1,{type:"boolean",description:f(ae,47,"True when the focused variable is read-only.")});new re("variableValue",!1,{type:"string",description:f(ae,48,"Value of the variable, present for debug visualization clauses.")});new re("variableType",!1,{type:"string",description:f(ae,49,"Type of the variable, present for debug visualization clauses.")});new re("variableInterfaces",!1,{type:"array",description:f(ae,50,"Any interfaces or contracts that the variable satisfies, present for debug visualization clauses.")});new re("variableName",!1,{type:"string",description:f(ae,51,"Name of the variable, present for debug visualization clauses.")});new re("variableLanguage",!1,{type:"string",description:f(ae,52,"Language of the variable source, present for debug visualization clauses.")});new re("variableExtensionId",!1,{type:"string",description:f(ae,53,"Extension ID of the variable source, present for debug visualization clauses.")});new re("exceptionWidgetVisible",!1,{type:"boolean",description:f(ae,54,"True when the exception widget is visible.")});new re("multiSessionRepl",!1,{type:"boolean",description:f(ae,55,"True when there is more than 1 debug console.")});new re("multiSessionDebug",!1,{type:"boolean",description:f(ae,56,"True when there is more than 1 active debug session.")});new re("disassembleRequestSupported",!1,{type:"boolean",description:f(ae,57,"True when the focused sessions supports disassemble request.")});new re("disassemblyViewFocus",!1,{type:"boolean",description:f(ae,58,"True when the Disassembly View is focused.")});new re("languageSupportsDisassembleRequest",!1,{type:"boolean",description:f(ae,59,"True when the language in the current editor supports disassemble request.")});new re("focusedStackFrameHasInstructionReference",!1,{type:"boolean",description:f(ae,60,"True when the focused stack frame has instruction pointer reference.")});f(ae,62,"Controls when the internal Debug Console should open.");var Qf;(function(t){t[t.Initial=1]="Initial",t[t.Dynamic=2]="Dynamic"})(Qf||(Qf={}));var lp;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(lp||(lp={}));var up;(function(t){t.deserialize=e=>({id:e.id,name:e.name,iconPath:e.iconPath&&{light:st.revive(e.iconPath.light),dark:st.revive(e.iconPath.dark)},iconClass:e.iconClass,visualization:e.visualization}),t.serialize=e=>e})(up||(up={}));function lo(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let n,i;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(!lo(t[n],e[n]))return!1}else{const r=[];for(i in t)r.push(i);r.sort();const s=[];for(i in e)s.push(i);if(s.sort(),!lo(r,s))return!1;for(n=0;n<r.length;n++)if(!lo(t[r[n]],e[r[n]]))return!1}return!0}var Jf;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Jf||(Jf={}));var dp;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(dp||(dp={}));var fp;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(fp||(fp={}));var Yf;(function(t){t[t.Desktop=1]="Desktop",t[t.Web=2]="Web"})(Yf||(Yf={}));var Xf;(function(t){t[t.Information=1]="Information",t[t.Warning=2]="Warning"})(Xf||(Xf={}));function Il(t,e,n=32){const i=n-e,r=~((1<<i)-1);return(t<<e|(r&t)>>>i)>>>0}function hp(t,e=0,n=t.byteLength,i=0){for(let r=0;r<n;r++)t[e+r]=i}function db(t,e,n="0"){for(;t.length<e;)t=n+t;return t}function qs(t,e=32){return t instanceof ArrayBuffer?Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join(""):db((t>>>0).toString(16),e/4)}const pc=class pc{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(n===0)return;const i=this._buff;let r=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=e.charCodeAt(0),a=0);;){let c=o;if(E1(o))if(a+1<n){const l=e.charCodeAt(a+1);_a(l)?(a++,c=P1(o,l)):c=65533}else{s=o;break}else _a(o)&&(c=65533);if(r=this._push(i,r,c),a++,a<n)o=e.charCodeAt(a);else break}this._buffLen=r,this._leftoverHighSurrogate=s}_push(e,n,i){return i<128?e[n++]=i:i<2048?(e[n++]=192|(i&1984)>>>6,e[n++]=128|(i&63)>>>0):i<65536?(e[n++]=224|(i&61440)>>>12,e[n++]=128|(i&4032)>>>6,e[n++]=128|(i&63)>>>0):(e[n++]=240|(i&1835008)>>>18,e[n++]=128|(i&258048)>>>12,e[n++]=128|(i&4032)>>>6,e[n++]=128|(i&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),qs(this._h0)+qs(this._h1)+qs(this._h2)+qs(this._h3)+qs(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,hp(this._buff,this._buffLen),this._buffLen>56&&(this._step(),hp(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=pc._bigBlock32,n=this._buffDV;for(let g=0;g<64;g+=4)e.setUint32(g,n.getUint32(g,!1),!1);for(let g=64;g<320;g+=4)e.setUint32(g,Il(e.getUint32(g-12,!1)^e.getUint32(g-32,!1)^e.getUint32(g-56,!1)^e.getUint32(g-64,!1),1),!1);let i=this._h0,r=this._h1,s=this._h2,o=this._h3,a=this._h4,c,l,h;for(let g=0;g<80;g++)g<20?(c=r&s|~r&o,l=1518500249):g<40?(c=r^s^o,l=1859775393):g<60?(c=r&s|r&o|s&o,l=2400959708):(c=r^s^o,l=3395469782),h=Il(i,5)+c+a+l+e.getUint32(g*4,!1)&4294967295,a=o,o=s,s=Il(r,30),r=i,i=h;this._h0=this._h0+i&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};pc._bigBlock32=new DataView(new ArrayBuffer(320));let gp=pc;var ii;(function(t){t[t.Off=0]="Off",t[t.Trace=1]="Trace",t[t.Debug=2]="Debug",t[t.Info=3]="Info",t[t.Warning=4]="Warning",t[t.Error=5]="Error"})(ii||(ii={}));ii.Info;function fb(t){switch(t){case ii.Trace:return"trace";case ii.Debug:return"debug";case ii.Info:return"info";case ii.Warning:return"warn";case ii.Error:return"error";case ii.Off:return"off"}}new re("logLevel",fb(ii.Info));var Zf;(function(t){t[t.Complete=100]="Complete",t[t.Partial=50]="Partial",t[t.None=0]="None"})(Zf||(Zf={}));const pp={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},s2="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function hb(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of s2)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}hb();const gb=new _4;gb.unshift({maxLen:1e3,windowSize:15,timeBudget:150});const y="vs/editor/common/config/editorOptions",pb=8;class mb{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ue{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return wc(e,n)}compute(e,n,i){return i}}class ba{constructor(e,n){this.newValue=e,this.didChange=n}}function wc(t,e){if(typeof t!="object"||typeof e!="object"||!t||!e)return new ba(e,t!==e);if(Array.isArray(t)||Array.isArray(e)){const i=Array.isArray(t)&&Array.isArray(e)&&yu(t,e);return new ba(e,!i)}let n=!1;for(const i in e)if(e.hasOwnProperty(i)){const r=wc(t[i],e[i]);r.didChange&&(t[i]=r.newValue,n=!0)}return new ba(t,n)}class Vo{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return wc(e,n)}validate(e){return this.defaultValue}}class Os{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return wc(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,i){return i}}function J(t,e){return typeof t>"u"?e:t==="false"?!1:!!t}class he extends Os{constructor(e,n,i,r=void 0){typeof r<"u"&&(r.type="boolean",r.default=i),super(e,n,i,r)}validate(e){return J(e,this.defaultValue)}}function yb(t,e,n,i){if(typeof t>"u")return e;let r=parseInt(t,10);return isNaN(r)?e:(r=Math.max(n,r),r=Math.min(i,r),r|0)}class Fe extends Os{static clampedInt(e,n,i,r){return yb(e,n,i,r)}constructor(e,n,i,r,s,o=void 0){typeof o<"u"&&(o.type="integer",o.default=i,o.minimum=r,o.maximum=s),super(e,n,i,o),this.minimum=r,this.maximum=s}validate(e){return Fe.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class si extends Os{static clamp(e,n,i){return e<n?n:e>i?i:e}static float(e,n){if(typeof e=="number")return e;if(typeof e>"u")return n;const i=parseFloat(e);return isNaN(i)?n:i}constructor(e,n,i,r,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,n,i,s),this.validationFn=r}validate(e){return this.validationFn(si.float(e,this.defaultValue))}}class Kt extends Os{static string(e,n){return typeof e!="string"?n:e}constructor(e,n,i,r=void 0){typeof r<"u"&&(r.type="string",r.default=i),super(e,n,i,r)}validate(e){return Kt.string(e,this.defaultValue)}}function it(t,e,n,i){return typeof t!="string"?e:i&&t in i?i[t]:n.indexOf(t)===-1?e:t}class Qe extends Os{constructor(e,n,i,r,s=void 0){typeof s<"u"&&(s.type="string",s.enum=r,s.default=i),super(e,n,i,s),this._allowedValues=r}validate(e){return it(e,this.defaultValue,this._allowedValues)}}class ta extends Ue{constructor(e,n,i,r,s,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=r),super(e,n,i,a),this._allowedValues=s,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function bb(t){switch(t){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class vb extends Ue{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f(y,0,"Use platform APIs to detect when a Screen Reader is attached."),f(y,1,"Optimize for usage with a Screen Reader."),f(y,2,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:f(y,3,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,n,i){return i===0?e.accessibilitySupport:i}}class wb extends Ue{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f(y,4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f(y,5,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertSpace:J(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:J(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Cb(t){switch(t){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var pi;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(pi||(pi={}));function _b(t){switch(t){case"line":return pi.Line;case"block":return pi.Block;case"underline":return pi.Underline;case"line-thin":return pi.LineThin;case"block-outline":return pi.BlockOutline;case"underline-thin":return pi.UnderlineThin}}class Sb extends Vo{constructor(){super(142)}compute(e,n,i){const r=["monaco-editor"];return n.get(39)&&r.push(n.get(39)),e.extraEditorClassName&&r.push(e.extraEditorClassName),n.get(74)==="default"?r.push("mouse-default"):n.get(74)==="copy"&&r.push("mouse-copy"),n.get(111)&&r.push("showUnused"),n.get(140)&&r.push("showDeprecated"),r.join(" ")}}class Db extends he{constructor(){super(37,"emptySelectionClipboard",!0,{description:f(y,6,"Controls whether copying without a selection copies the current line.")})}compute(e,n,i){return i&&e.emptySelectionClipboard}}class xb extends Ue{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f(y,7,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f(y,8,"Never seed search string from the editor selection."),f(y,9,"Always seed search string from the editor selection, including word at cursor position."),f(y,10,"Only seed search string from the editor selection.")],description:f(y,11,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f(y,12,"Never turn on Find in Selection automatically (default)."),f(y,13,"Always turn on Find in Selection automatically."),f(y,14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f(y,15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f(y,16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:bi},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f(y,17,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f(y,18,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{cursorMoveOnType:J(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":it(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":it(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:J(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:J(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:J(n.loop,this.defaultValue.loop)}}}const ki=class ki extends Ue{constructor(){super(51,"fontLigatures",ki.OFF,{anyOf:[{type:"boolean",description:f(y,19,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f(y,20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f(y,21,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?ki.OFF:e==="true"?ki.ON:e:e?ki.ON:ki.OFF}};ki.OFF='"liga" off, "calt" off',ki.ON='"liga" on, "calt" on';let eh=ki;const Ti=class Ti extends Ue{constructor(){super(54,"fontVariations",Ti.OFF,{anyOf:[{type:"boolean",description:f(y,22,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f(y,23,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f(y,24,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Ti.OFF:e==="true"?Ti.TRANSLATE:e:e?Ti.TRANSLATE:Ti.OFF}compute(e,n,i){return e.fontInfo.fontVariationSettings}};Ti.OFF="normal",Ti.TRANSLATE="translate";let th=Ti;class kb extends Vo{constructor(){super(50)}compute(e,n,i){return e.fontInfo}}class Tb extends Os{constructor(){super(52,"fontSize",Li.fontSize,{type:"number",minimum:6,maximum:100,default:Li.fontSize,description:f(y,25,"Controls the font size in pixels.")})}validate(e){const n=si.float(e,this.defaultValue);return n===0?Li.fontSize:si.clamp(n,6,100)}compute(e,n,i){return e.fontInfo.fontSize}}const fi=class fi extends Ue{constructor(){super(53,"fontWeight",Li.fontWeight,{anyOf:[{type:"number",minimum:fi.MINIMUM_VALUE,maximum:fi.MAXIMUM_VALUE,errorMessage:f(y,26,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:fi.SUGGESTION_VALUES}],default:Li.fontWeight,description:f(y,27,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Fe.clampedInt(e,Li.fontWeight,fi.MINIMUM_VALUE,fi.MAXIMUM_VALUE))}};fi.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],fi.MINIMUM_VALUE=1,fi.MAXIMUM_VALUE=1e3;let nh=fi;class Rb extends Ue{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f(y,28,"Show Peek view of the results (default)"),f(y,29,"Go to the primary result and show a Peek view"),f(y,30,"Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f(y,31,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:f(y,32,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:f(y,33,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:f(y,34,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:f(y,35,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:f(y,36,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...n},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f(y,37,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f(y,38,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f(y,39,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f(y,40,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f(y,41,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{multiple:it(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??it(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??it(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??it(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??it(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??it(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Kt.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Kt.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Kt.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Kt.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Kt.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Eb extends Ue{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f(y,42,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f(y,43,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f(y,44,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:f(y,45,"Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:f(y,46,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),delay:Fe.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:J(n.sticky,this.defaultValue.sticky),hidingDelay:Fe.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:J(n.above,this.defaultValue.above)}}}class uo extends Vo{constructor(){super(145)}compute(e,n,i){return uo.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const n=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let r=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(r=Math.max(r,n-1));const s=(i+e.viewLineCount+r)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:n,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:r,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,n){const i=e.outerWidth,r=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};const o=n.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,c=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,g=e.minimap.renderCharacters;let p=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const w=e.minimap.maxColumn,v=e.minimap.size,x=e.minimap.side,T=e.verticalScrollbarWidth,q=e.viewLineCount,z=e.remainingWidth,A=e.isViewportWrapping,W=g?2:3;let j=Math.floor(s*r);const se=j/s;let B=!1,Z=!1,oe=W*p,qe=p/s,O=1;if(v==="fill"||v==="fit"){const{typicalViewportLineCount:ke,extraLinesBeforeFirstLine:pe,extraLinesBeyondLastLine:ot,desiredRatio:Ke,minimapLineCount:Pe}=uo.computeContainedMinimapLineCount({viewLineCount:q,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:r,lineHeight:c,pixelRatio:s});if(q/Pe>1)B=!0,Z=!0,p=1,oe=1,qe=p/s;else{let He=!1,ht=p+1;if(v==="fit"){const rt=Math.ceil((pe+q+ot)*oe);A&&a&&z<=n.stableFitRemainingWidth?(He=!0,ht=n.stableFitMaxMinimapScale):He=rt>j}if(v==="fill"||He){B=!0;const rt=p;oe=Math.min(c*s,Math.max(1,Math.floor(1/Ke))),A&&a&&z<=n.stableFitRemainingWidth&&(ht=n.stableFitMaxMinimapScale),p=Math.min(ht,Math.max(1,Math.floor(oe/W))),p>rt&&(O=Math.min(2,p/rt)),qe=p/s/O,j=Math.ceil(Math.max(ke,pe+q+ot)*oe),A?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=z,n.stableFitMaxMinimapScale=p):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const L=Math.floor(w*qe),D=Math.min(L,Math.max(0,Math.floor((z-T-2)*qe/(l+qe)))+pb);let P=Math.floor(s*D);const N=P/s;P=Math.floor(P*O);const $=g?1:2,ee=x==="left"?0:i-D-T;return{renderMinimap:$,minimapLeft:ee,minimapWidth:D,minimapHeightIsEditorHeight:B,minimapIsSampling:Z,minimapScale:p,minimapLineHeight:oe,minimapCanvasInnerWidth:P,minimapCanvasInnerHeight:j,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:se}}static computeLayout(e,n){const i=n.outerWidth|0,r=n.outerHeight|0,s=n.lineHeight|0,o=n.lineNumbersDigitCount|0,a=n.typicalHalfwidthCharacterWidth,c=n.maxDigitWidth,l=n.pixelRatio,h=n.viewLineCount,g=e.get(137),p=g==="inherit"?e.get(136):g,w=p==="inherit"?e.get(132):p,v=e.get(135),x=n.isDominatedByLongLines,T=e.get(57),q=e.get(68).renderType!==0,z=e.get(69),A=e.get(105),W=e.get(84),j=e.get(73),se=e.get(103),B=se.verticalScrollbarSize,Z=se.verticalHasArrows,oe=se.arrowSize,qe=se.horizontalScrollbarSize,O=e.get(43),L=e.get(110)!=="never";let D=e.get(66);O&&L&&(D+=16);let P=0;if(q){const gt=Math.max(o,z);P=Math.round(gt*c)}let N=0;T&&(N=s*n.glyphMarginDecorationLaneCount);let $=0,ee=$+N,ke=ee+P,pe=ke+D;const ot=i-N-P-D;let Ke=!1,Pe=!1,ft=-1;p==="inherit"&&x?(Ke=!0,Pe=!0):w==="on"||w==="bounded"?Pe=!0:w==="wordWrapColumn"&&(ft=v);const He=uo._computeMinimapLayout({outerWidth:i,outerHeight:r,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:l,scrollBeyondLastLine:A,paddingTop:W.top,paddingBottom:W.bottom,minimap:j,verticalScrollbarWidth:B,viewLineCount:h,remainingWidth:ot,isViewportWrapping:Pe},n.memory||new mb);He.renderMinimap!==0&&He.minimapLeft===0&&($+=He.minimapWidth,ee+=He.minimapWidth,ke+=He.minimapWidth,pe+=He.minimapWidth);const ht=ot-He.minimapWidth,rt=Math.max(1,Math.floor((ht-B-2)/a)),Ut=Z?oe:0;return Pe&&(ft=Math.max(1,rt),w==="bounded"&&(ft=Math.min(ft,v))),{width:i,height:r,glyphMarginLeft:$,glyphMarginWidth:N,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:ee,lineNumbersWidth:P,decorationsLeft:ke,decorationsWidth:D,contentLeft:pe,contentWidth:ht,minimap:He,viewportColumn:rt,isWordWrapMinified:Ke,isViewportWrapping:Pe,wrappingColumn:ft,verticalScrollbarWidth:B,horizontalScrollbarHeight:qe,overviewRuler:{top:Ut,width:B,height:r-2*Ut,right:0}}}}class Pb extends Ue{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f(y,47,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f(y,48,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f(y,49,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return it(e,"simple",["simple","advanced"])}compute(e,n,i){return n.get(2)===2?"advanced":i}}var xi;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(xi||(xi={}));class Ib extends Ue{constructor(){const e={enabled:xi.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[xi.Off,xi.OnCode,xi.On],default:e.enabled,enumDescriptions:[f(y,50,"Disable the code action menu."),f(y,51,"Show the code action menu when the cursor is on lines with code."),f(y,52,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:f(y,53,"Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:it(e.enabled,this.defaultValue.enabled,[xi.Off,xi.OnCode,xi.On])}}}class Fb extends Ue{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f(y,54,"Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:f(y,55,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:f(y,56,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:f(y,57,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),maxLineCount:Fe.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:it(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:J(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Mb extends Ue{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f(y,58,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f(y,59,"Inlay hints are enabled"),f(y,60,"Inlay hints are showing by default and hide when holding {0}",bi?"Ctrl+Option":"Ctrl+Alt"),f(y,61,"Inlay hints are hidden by default and show when holding {0}",bi?"Ctrl+Option":"Ctrl+Alt"),f(y,62,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f(y,63,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f(y,64,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f(y,65,"Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return typeof n.enabled=="boolean"&&(n.enabled=n.enabled?"on":"off"),{enabled:it(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Fe.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily),padding:J(n.padding,this.defaultValue.padding)}}}class Ob extends Ue{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Fe.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,i){return i<0?Fe.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class Ab extends si{constructor(){super(67,"lineHeight",Li.lineHeight,e=>si.clamp(e,0,150),{markdownDescription:f(y,66,`Controls the line height.
61
+ Received: '{1}'.`,e,Dr.getLexeme(n)),s=n.offset,o=Dr.getLexeme(n);return this._parsingErrors.push({message:r,offset:s,lexeme:o,additionalInfo:i}),Rr._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};Rr._parseError=new Error;let Mu=Rr;const G1=class G1{static false(){return Qt.INSTANCE}static true(){return an.INSTANCE}static has(e){return Wr.create(e)}static equals(e,n){return Ho.create(e,n)}static notEquals(e,n){return jo.create(e,n)}static regex(e,n){return yo.create(e,n)}static in(e,n){return yc.create(e,n)}static notIn(e,n){return bc.create(e,n)}static not(e){return Ur.create(e)}static and(...e){return Yi.create(e,null,!0)}static or(...e){return gi.create(e,null,!0)}static greater(e,n){return Wo.create(e,n)}static greaterEquals(e,n){return Uo.create(e,n)}static smaller(e,n){return zo.create(e,n)}static smallerEquals(e,n){return Bo.create(e,n)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};G1._parser=new Mu({regexParsingWithErrorRecovery:!1});let qt=G1;function co(t,e){return t.cmp(e)}const dc=class dc{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}map(e){return this}negate(){return an.INSTANCE}};dc.INSTANCE=new dc;let Qt=dc;const fc=class fc{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}map(e){return this}negate(){return Qt.INSTANCE}};fc.INSTANCE=new fc;let an=fc;class Wr{static create(e,n=null){const i=At.get(e);return typeof i=="boolean"?i?an.INSTANCE:Qt.INSTANCE:new Wr(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:X0(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=At.get(this.key);return typeof e=="boolean"?e?an.INSTANCE:Qt.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||(this.negated=Ur.create(this.key,this)),this.negated}}class Ho{static create(e,n,i=null){if(typeof n=="boolean")return n?Wr.create(e,i):Ur.create(e,i);const r=At.get(e);return typeof r=="boolean"?n===(r?"true":"false")?an.INSTANCE:Qt.INSTANCE:new Ho(e,n,i)}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=At.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?an.INSTANCE:Qt.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=jo.create(this.key,this.value,this)),this.negated}}class yc{static create(e,n){return new yc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(n)?n.includes(i):typeof i=="string"&&typeof n=="object"&&n!==null?r5.call(n,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=bc.create(this.key,this.valueKey)),this.negated}}class bc{static create(e,n){return new bc(e,n)}constructor(e,n){this.key=e,this.valueKey=n,this.type=11,this._negated=yc.create(e,n)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}}class jo{static create(e,n,i=null){if(typeof n=="boolean")return n?Ur.create(e,i):Wr.create(e,i);const r=At.get(e);return typeof r=="boolean"?n===(r?"true":"false")?Qt.INSTANCE:an.INSTANCE:new jo(e,n,i)}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=At.get(this.key);if(typeof e=="boolean"){const n=e?"true":"false";return this.value===n?Qt.INSTANCE:an.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=Ho.create(this.key,this.value,this)),this.negated}}class Ur{static create(e,n=null){const i=At.get(e);return typeof i=="boolean"?i?Qt.INSTANCE:an.INSTANCE:new Ur(e,n)}constructor(e,n){this.key=e,this.negated=n,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:X0(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=At.get(this.key);return typeof e=="boolean"?e?Qt.INSTANCE:an.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||(this.negated=Wr.create(this.key,this)),this.negated}}function vc(t,e){if(typeof t=="string"){const n=parseFloat(t);isNaN(n)||(t=n)}return typeof t=="string"||typeof t=="number"?e(t):Qt.INSTANCE}class Wo{static create(e,n,i=null){return vc(n,r=>new Wo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=Bo.create(this.key,this.value,this)),this.negated}}class Uo{static create(e,n,i=null){return vc(n,r=>new Uo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=zo.create(this.key,this.value,this)),this.negated}}class zo{static create(e,n,i=null){return vc(n,r=>new zo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=Uo.create(this.key,this.value,this)),this.negated}}class Bo{static create(e,n,i=null){return vc(n,r=>new Bo(e,r,i))}constructor(e,n,i){this.key=e,this.value=n,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:zr(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=Wo.create(this.key,this.value,this)),this.negated}}class yo{static create(e,n){return new yo(e,n)}constructor(e,n){this.key=e,this.regexp=n,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const n=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return n<i?-1:n>i?1:0}equals(e){if(e.type===this.type){const n=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&n===i}return!1}substituteConstants(){return this}evaluate(e){const n=e.getValue(this.key);return this.regexp?this.regexp.test(n):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=Ra.create(this)),this.negated}}class Ra{static create(e){return new Ra(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(e){return new Ra(this._actual.map(e))}negate(){return this._actual}}function Y0(t){let e=null;for(let n=0,i=t.length;n<i;n++){const r=t[n].substituteConstants();if(t[n]!==r&&e===null){e=[];for(let s=0;s<n;s++)e[s]=t[s]}e!==null&&(e[n]=r)}return e===null?t:e}class Yi{static create(e,n,i){return Yi._normalizeArr(e,n,i)}constructor(e,n){this.expr=e,this.negated=n,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,i=this.expr.length;n<i;n++){const r=co(this.expr[n],e.expr[n]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=Y0(this.expr);return e===this.expr?this:Yi.create(e,this.negated,!1)}evaluate(e){for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].evaluate(e))return!1;return!0}static _normalizeArr(e,n,i){const r=[];let s=!1;for(const o of e)if(o){if(o.type===1){s=!0;continue}if(o.type===0)return Qt.INSTANCE;if(o.type===6){r.push(...o.expr);continue}r.push(o)}if(r.length===0&&s)return an.INSTANCE;if(r.length!==0){if(r.length===1)return r[0];r.sort(co);for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];for(;r.length>1;){const o=r[r.length-1];if(o.type!==9)break;r.pop();const a=r.pop(),c=r.length===0,l=gi.create(o.expr.map(h=>Yi.create([h,a],null,i)),null,c);l&&(r.push(l),r.sort(co))}if(r.length===1)return r[0];if(i){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return Qt.INSTANCE;if(r.length===1)return r[0]}return new Yi(r,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new Yi(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());this.negated=gi.create(e,this,!0)}return this.negated}}class gi{static create(e,n,i){return gi._normalizeArr(e,n,i)}constructor(e,n){this.expr=e,this.negated=n,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let n=0,i=this.expr.length;n<i;n++){const r=co(this.expr[n],e.expr[n]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(e.expr[n]))return!1;return!0}return!1}substituteConstants(){const e=Y0(this.expr);return e===this.expr?this:gi.create(e,this.negated,!1)}evaluate(e){for(let n=0,i=this.expr.length;n<i;n++)if(this.expr[n].evaluate(e))return!0;return!1}static _normalizeArr(e,n,i){let r=[],s=!1;if(e){for(let o=0,a=e.length;o<a;o++){const c=e[o];if(c){if(c.type===0){s=!0;continue}if(c.type===1)return an.INSTANCE;if(c.type===9){r=r.concat(c.expr);continue}r.push(c)}}if(r.length===0&&s)return Qt.INSTANCE;r.sort(co)}if(r.length!==0){if(r.length===1)return r[0];for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];if(i){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return an.INSTANCE;if(r.length===1)return r[0]}return new gi(r,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const n of this.expr)e.push(...n.keys());return e}map(e){return new gi(this.expr.map(n=>n.map(e)),null)}negate(){if(!this.negated){const e=[];for(const n of this.expr)e.push(n.negate());for(;e.length>1;){const n=e.shift(),i=e.shift(),r=[];for(const s of Ng(n))for(const o of Ng(i))r.push(Yi.create([s,o],null,!1));e.unshift(gi.create(r,null,!1))}this.negated=gi.create(e,this,!0)}return this.negated}}const cs=class cs extends Wr{static all(){return cs._info.values()}constructor(e,n,i){super(e,null),this._defaultValue=n,typeof i=="object"?cs._info.push({...i,key:e}):i!==!0&&cs._info.push({key:e,description:i,type:n!=null?typeof n:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Ho.create(this.key,e)}notEqualsTo(e){return jo.create(this.key,e)}};cs._info=[];let re=cs;function X0(t,e){return t<e?-1:t>e?1:0}function zr(t,e,n,i){return t<n?-1:t>n?1:e<i?-1:e>i?1:0}function Ng(t){return t.type===9?t.expr:[t]}var Fi;(function(t){t.serviceIds=new Map,t.DI_TARGET="$di$target",t.DI_DEPENDENCIES="$di$dependencies";function e(n){return n[t.DI_DEPENDENCIES]||[]}t.getServiceDependencies=e})(Fi||(Fi={}));g5("instantiationService");function h5(t,e,n){e[Fi.DI_TARGET]===e?e[Fi.DI_DEPENDENCIES].push({id:t,index:n}):(e[Fi.DI_DEPENDENCIES]=[{id:t,index:n}],e[Fi.DI_TARGET]=e)}function g5(t){if(Fi.serviceIds.has(t))return Fi.serviceIds.get(t);const e=function(n,i,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");h5(e,n,r)};return e.toString=()=>t,Fi.serviceIds.set(t,e),e}const Ou=["W","X","Y","Z","a","b","c","d","e","f"],p5=new RegExp(`^[${Ou.join("")}]+`),Z0=7;function m5(t){if(t.scheme!==dt.vscodeNotebookCell)return;const e=t.fragment.indexOf("s");if(e<0)return;const n=parseInt(t.fragment.substring(0,e).replace(p5,""),Z0),i=Xy(t.fragment.substring(e+1)).toString();if(!isNaN(n))return{handle:n,notebook:t.with({scheme:i,fragment:null})}}function y5(t,e){const n=e.toString(Z0),r=`${n.length<Ou.length?Ou[n.length-1]:"z"}${n}s${t5(yn.fromString(t.scheme),!0,!0)}`;return t.with({scheme:dt.vscodeNotebookCell,fragment:r})}var $g;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})($g||($g={}));Mr.latex,Mr.markdown,Mr.text;Mr.latex,Mr.markdown,Mr.text;var qg;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(qg||(qg={}));var Hg;(function(t){t[t.Unconfirmed=1]="Unconfirmed",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(Hg||(Hg={}));var jg;(function(t){t[t.ModelChange=1]="ModelChange",t[t.Move=2]="Move",t[t.ChangeCellLanguage=5]="ChangeCellLanguage",t[t.Initialize=6]="Initialize",t[t.ChangeCellMetadata=7]="ChangeCellMetadata",t[t.Output=8]="Output",t[t.OutputItem=9]="OutputItem",t[t.ChangeCellContent=10]="ChangeCellContent",t[t.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",t[t.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",t[t.ChangeCellMime=13]="ChangeCellMime",t[t.Unknown=100]="Unknown"})(jg||(jg={}));var Wg;(function(t){t[t.Handle=0]="Handle",t[t.Index=1]="Index"})(Wg||(Wg={}));var Ug;(function(t){t.scheme=dt.vscodeNotebookCell;function e(a,c){return y5(a,c)}t.generate=e;function n(a){return m5(a)}t.parse=n;function i(a,c){return a.with({scheme:dt.vscodeNotebookCellOutput,fragment:`op${c??""},${a.scheme!==dt.file?a.scheme:""}`})}t.generateCellOutputUri=i;function r(a){if(a.scheme!==dt.vscodeNotebookCellOutput)return;const c=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(a.fragment);if(!c)return;const l=c[1]&&c[1]!==""?c[1]:void 0,h=c[2];return{outputId:l,notebook:a.with({scheme:h||dt.file,fragment:null})}}t.parseCellOutputUri=r;function s(a,c,l){return t.generate(a,c).with({scheme:l})}t.generateCellPropertyUri=s;function o(a,c){if(a.scheme===c)return t.parse(a.with({scheme:t.scheme}))}t.parseCellPropertyUri=o})(Ug||(Ug={}));new re("notebookEditorCursorAtBoundary","none");new re("notebookEditorCursorAtLineBoundary","none");var zg;(function(t){t.default="default",t.option="option"})(zg||(zg={}));const ls=class ls{static create(e){return`${ls._prefix}${e}`}static parse(e){if(e.startsWith(ls._prefix))return e.substring(ls._prefix.length)}};ls._prefix="notebook/";let Bg=ls;function b5(t){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(t)}new TextDecoder;const v5=`${String.fromCharCode(27)}[A`;v5.split("").map(t=>t.charCodeAt(0));var Au,br,Si,Lu,vr,Ji,wr,Nu,$u,pa,Zs,qu,li,ui,Hu,ln,ju;function ie(t){return Object.assign(t,{apply:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const i=n.length===1?[]:n[1];return Reflect.construct(t,i,n[0].constructor)}},call:function(...n){if(n.length===0)return Reflect.construct(t,[]);{const[i,...r]=n;return Reflect.construct(t,r,i.constructor)}}})}var Wu;(function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"})(Wu||(Wu={}));var Pr,R0;let Uu=Au=(R0=class{constructor(e){Br(this,Pr,void 0);Jo(this,Pr,e)}static from(...e){let n=e;return new Au(function(){if(n){for(const i of n)i&&typeof i.dispose=="function"&&i.dispose();n=void 0}})}dispose(){typeof pt(this,Pr)=="function"&&(pt(this,Pr).call(this),Jo(this,Pr,void 0))}},Pr=new WeakMap,R0);Uu=Au=ne([ie],Uu);let Ye=br=class{static Min(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];r.isBefore(n)&&(n=r)}return n}static Max(...e){if(e.length===0)throw new TypeError;let n=e[0];for(let i=1;i<e.length;i++){const r=e[i];r.isAfter(n)&&(n=r)}return n}static isPosition(e){if(!e)return!1;if(e instanceof br)return!0;const{line:n,character:i}=e;return typeof n=="number"&&typeof i=="number"}static of(e){if(e instanceof br)return e;if(this.isPosition(e))return new br(e.line,e.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}constructor(e,n){if(e<0)throw xe("line must be non-negative");if(n<0)throw xe("character must be non-negative");this._line=e,this._character=n}isBefore(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<e._character}isBeforeOrEqual(e){return this._line<e._line?!0:e._line<this._line?!1:this._character<=e._character}isAfter(e){return!this.isBeforeOrEqual(e)}isAfterOrEqual(e){return!this.isBefore(e)}isEqual(e){return this._line===e._line&&this._character===e._character}compareTo(e){return this._line<e._line?-1:this._line>e.line?1:this._character<e._character?-1:this._character>e._character?1:0}translate(e,n=0){if(e===null||n===null)throw xe();let i;return typeof e>"u"?i=0:typeof e=="number"?i=e:(i=typeof e.lineDelta=="number"?e.lineDelta:0,n=typeof e.characterDelta=="number"?e.characterDelta:0),i===0&&n===0?this:new br(this.line+i,this.character+n)}with(e,n=this.character){if(e===null||n===null)throw xe();let i;return typeof e>"u"?i=this.line:typeof e=="number"?i=e:(i=typeof e.line=="number"?e.line:this.line,n=typeof e.character=="number"?e.character:this.character),i===this.line&&n===this.character?this:new br(i,n)}toJSON(){return{line:this.line,character:this.character}}};Ye=br=ne([ie],Ye);let _t=Si=class{static isRange(e){return e instanceof Si?!0:e?Ye.isPosition(e.start)&&Ye.isPosition(e.end):!1}static of(e){if(e instanceof Si)return e;if(this.isRange(e))return new Si(e.start,e.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}constructor(e,n,i,r){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"?(s=new Ye(e,n),o=new Ye(i,r)):Ye.isPosition(e)&&Ye.isPosition(n)&&(s=Ye.of(e),o=Ye.of(n)),!s||!o)throw new Error("Invalid arguments");s.isBefore(o)?(this._start=s,this._end=o):(this._start=o,this._end=s)}contains(e){return Si.isRange(e)?this.contains(e.start)&&this.contains(e.end):Ye.isPosition(e)?!(Ye.of(e).isBefore(this._start)||this._end.isBefore(e)):!1}isEqual(e){return this._start.isEqual(e._start)&&this._end.isEqual(e._end)}intersection(e){const n=Ye.Max(e.start,this._start),i=Ye.Min(e.end,this._end);if(!n.isAfter(i))return new Si(n,i)}union(e){if(this.contains(e))return this;if(e.contains(this))return e;const n=Ye.Min(e.start,this._start),i=Ye.Max(e.end,this.end);return new Si(n,i)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(e,n=this.end){if(e===null||n===null)throw xe();let i;return e?Ye.isPosition(e)?i=e:(i=e.start||this.start,n=e.end||this.end):i=this.start,i.isEqual(this._start)&&n.isEqual(this.end)?this:new Si(i,n)}toJSON(){return[this.start,this.end]}};_t=Si=ne([ie],_t);let zu=Lu=class extends _t{static isSelection(e){return e instanceof Lu?!0:e?_t.isRange(e)&&Ye.isPosition(e.anchor)&&Ye.isPosition(e.active)&&typeof e.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}constructor(e,n,i,r){let s,o;if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"?(s=new Ye(e,n),o=new Ye(i,r)):Ye.isPosition(e)&&Ye.isPosition(n)&&(s=Ye.of(e),o=Ye.of(n)),!s||!o)throw new Error("Invalid arguments");super(s,o),this._anchor=s,this._active=o}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}};zu=Lu=ne([ie],zu);const e2=t=>{if(typeof t!="string"||t.length===0||!/^[0-9A-Za-z_\-]+$/.test(t))throw xe("connectionToken")};let w5=class{static isResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.host=="string"&&typeof e.port=="number"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n,i){if(typeof e!="string"||e.length===0)throw xe("host");if(typeof n!="number"||n===0||Math.round(n)!==n)throw xe("port");typeof i<"u"&&e2(i),this.host=e,this.port=Math.round(n),this.connectionToken=i}},C5=class{static isManagedResolvedAuthority(e){return e&&typeof e=="object"&&typeof e.makeConnection=="function"&&(e.connectionToken===void 0||typeof e.connectionToken=="string")}constructor(e,n){this.makeConnection=e,this.connectionToken=n,typeof n<"u"&&e2(n)}},_5=class ma extends Error{static NotAvailable(e,n){return new ma(e,oo.NotAvailable,n)}static TemporarilyNotAvailable(e){return new ma(e,oo.TemporarilyNotAvailable)}constructor(e,n=oo.Unknown,i){super(e),this._message=e,this._code=n,this._detail=i,Object.setPrototypeOf(this,ma.prototype)}};var Bu;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Bu||(Bu={}));var Vu;(function(t){t[t.Replace=1]="Replace",t[t.Append=2]="Append",t[t.Prepend=3]="Prepend"})(Vu||(Vu={}));let Ea=vr=class{static isTextEdit(e){return e instanceof vr?!0:e?_t.isRange(e)&&typeof e.newText=="string":!1}static replace(e,n){return new vr(e,n)}static insert(e,n){return vr.replace(new _t(e,e),n)}static delete(e){return vr.replace(e,"")}static setEndOfLine(e){const n=new vr(new _t(new Ye(0,0),new Ye(0,0)),"");return n.newEol=e,n}get range(){return this._range}set range(e){if(e&&!_t.isRange(e))throw xe("range");this._range=e}get newText(){return this._newText||""}set newText(e){if(e&&typeof e!="string")throw xe("newText");this._newText=e}get newEol(){return this._newEol}set newEol(e){if(e&&typeof e!="number")throw xe("newEol");this._newEol=e}constructor(e,n){this._range=e,this._newText=n}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};Ea=vr=ne([ie],Ea);let Pa=Ji=class{static isNotebookCellEdit(e){return e instanceof Ji?!0:e?to.isNotebookRange(e)&&Array.isArray(e.newCells):!1}static replaceCells(e,n){return new Ji(e,n)}static insertCells(e,n){return new Ji(new to(e,e),n)}static deleteCells(e){return new Ji(e,[])}static updateCellMetadata(e,n){const i=new Ji(new to(e,e),[]);return i.newCellMetadata=n,i}static updateNotebookMetadata(e){const n=new Ji(new to(0,0),[]);return n.newNotebookMetadata=e,n}constructor(e,n){this.range=e,this.newCells=n}};Pa=Ji=ne([ie],Pa);let t2=class ya{static isSnippetTextEdit(e){return e instanceof ya?!0:e?_t.isRange(e.range)&&Ia.isSnippetString(e.snippet):!1}static replace(e,n){return new ya(e,n)}static insert(e,n){return ya.replace(new _t(e,e),n)}constructor(e,n){this.range=e,this.snippet=n}},Ku=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(e,n,i,r){this._edits.push({_type:1,from:e,to:n,options:i,metadata:r})}createFile(e,n,i){this._edits.push({_type:1,from:void 0,to:e,options:n,metadata:i})}deleteFile(e,n,i){this._edits.push({_type:1,from:e,to:void 0,options:n,metadata:i})}replaceNotebookMetadata(e,n,i){this._edits.push({_type:3,metadata:i,uri:e,edit:{editType:5,metadata:n},notebookMetadata:n})}replaceNotebookCells(e,n,i,r){const s=n.start,o=n.end;(s!==o||i.length>0)&&this._edits.push({_type:5,uri:e,index:s,count:o-s,cells:i,metadata:r})}replaceNotebookCellMetadata(e,n,i,r){this._edits.push({_type:3,metadata:r,uri:e,edit:{editType:3,index:n,metadata:i}})}replace(e,n,i,r){this._edits.push({_type:2,uri:e,edit:new Ea(n,i),metadata:r})}insert(e,n,i,r){this.replace(e,new _t(n,n),i,r)}delete(e,n,i){this.replace(e,n,"",i)}has(e){return this._edits.some(n=>n._type===2&&n.uri.toString()===e.toString())}set(e,n){if(n)for(const i of n){if(!i)continue;let r,s;Array.isArray(i)?(r=i[0],s=i[1]):r=i,Pa.isNotebookCellEdit(r)?r.newCellMetadata?this.replaceNotebookCellMetadata(e,r.range.start,r.newCellMetadata,s):r.newNotebookMetadata?this.replaceNotebookMetadata(e,r.newNotebookMetadata,s):this.replaceNotebookCells(e,r.range,r.newCells,s):t2.isSnippetTextEdit(r)?this._edits.push({_type:6,uri:e,range:r.range,edit:r.snippet,metadata:s}):this._edits.push({_type:2,uri:e,edit:r,metadata:s})}else{for(let i=0;i<this._edits.length;i++){const r=this._edits[i];switch(r._type){case 2:case 6:case 3:case 5:r.uri.toString()===e.toString()&&(this._edits[i]=void 0);break}}a4(this._edits)}}get(e){const n=[];for(const i of this._edits)i._type===2&&i.uri.toString()===e.toString()&&n.push(i.edit);return n}entries(){const e=new va;for(const n of this._edits)if(n._type===2){let i=e.get(n.uri);i||(i=[n.uri,[]],e.set(n.uri,i)),i[1].push(n.edit)}return[...e.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}};Ku=ne([ie],Ku);let Ia=wr=class{static isSnippetString(e){return e instanceof wr?!0:e?typeof e.value=="string":!1}static _escape(e){return e.replace(/\$|}|\\/g,"\\$&")}constructor(e){this._tabstop=1,this.value=e||""}appendText(e){return this.value+=wr._escape(e),this}appendTabstop(e=this._tabstop++){return this.value+="$",this.value+=e,this}appendPlaceholder(e,n=this._tabstop++){if(typeof e=="function"){const i=new wr;i._tabstop=this._tabstop,e(i),this._tabstop=i._tabstop,e=i.value}else e=wr._escape(e);return this.value+="${",this.value+=n,this.value+=":",this.value+=e,this.value+="}",this}appendChoice(e,n=this._tabstop++){const i=e.map(r=>r.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=n,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(e,n){if(typeof n=="function"){const i=new wr;i._tabstop=this._tabstop,n(i),this._tabstop=i._tabstop,n=i.value}else typeof n=="string"&&(n=n.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=e,n&&(this.value+=":",this.value+=n),this.value+="}",this}};Ia=wr=ne([ie],Ia);var Gu;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Gu||(Gu={}));var bo;(function(t){t[t.Hint=3]="Hint",t[t.Information=2]="Information",t[t.Warning=1]="Warning",t[t.Error=0]="Error"})(bo||(bo={}));let vo=Nu=class{static isLocation(e){return e instanceof Nu?!0:e?_t.isRange(e.range)&&st.isUri(e.uri):!1}constructor(e,n){if(this.uri=e,n)if(_t.isRange(n))this.range=_t.of(n);else if(Ye.isPosition(n))this.range=new _t(n,n);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}};vo=Nu=ne([ie],vo);let Fa=class{static is(e){return e?typeof e.message=="string"&&e.location&&_t.isRange(e.location.range)&&st.isUri(e.location.uri):!1}constructor(e,n){this.location=e,this.message=n}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.location.range.isEqual(n.location.range)&&e.location.uri.toString()===n.location.uri.toString()}};Fa=ne([ie],Fa);let Qu=class{constructor(e,n,i=bo.Error){if(!_t.isRange(e))throw new TypeError("range must be set");if(!n)throw new TypeError("message must be set");this.range=e,this.message=n,this.severity=i}toJSON(){return{severity:bo[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(e,n){return e===n?!0:!e||!n?!1:e.message===n.message&&e.severity===n.severity&&e.code===n.code&&e.severity===n.severity&&e.source===n.source&&e.range.isEqual(n.range)&&yu(e.tags,n.tags)&&yu(e.relatedInformation,n.relatedInformation,Fa.isEqual)}};Qu=ne([ie],Qu);let Ma=class{constructor(e,n){if(!e)throw new Error("Illegal argument, contents must be defined");Array.isArray(e)?this.contents=e:this.contents=[e],this.range=n}};Ma=ne([ie],Ma);let Vg=class extends Ma{constructor(e,n,i,r){super(e,n),this.canIncreaseHover=i,this.canDecreaseHover=r}};Vg=ne([ie],Vg);var Kg;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Kg||(Kg={}));var wo;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(wo||(wo={}));let Ju=class{constructor(e,n=wo.Text){this.range=e,this.kind=n}toJSON(){return{range:this.range,kind:wo[this.kind]}}};Ju=ne([ie],Ju);let Yu=class{constructor(e,n){this.uri=e,this.highlights=n}toJSON(){return{uri:this.uri,highlights:this.highlights.map(e=>e.toJSON())}}};Yu=ne([ie],Yu);var Oa;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(Oa||(Oa={}));var Xu;(function(t){t[t.Deprecated=1]="Deprecated"})(Xu||(Xu={}));let Zu=$u=class{static validate(e){if(!e.name)throw new Error("name must not be falsy")}constructor(e,n,i,r,s){this.name=e,this.kind=n,this.containerName=s,typeof i=="string"&&(this.containerName=i),r instanceof vo?this.location=r:i instanceof _t&&(this.location=new vo(r,i)),$u.validate(this)}toJSON(){return{name:this.name,kind:Oa[this.kind],location:this.location,containerName:this.containerName}}};Zu=$u=ne([ie],Zu);let ed=pa=class{static validate(e){var n;if(!e.name)throw new Error("name must not be falsy");if(!e.range.contains(e.selectionRange))throw new Error("selectionRange must be contained in fullRange");(n=e.children)==null||n.forEach(pa.validate)}constructor(e,n,i,r,s){this.name=e,this.detail=n,this.kind=i,this.range=r,this.selectionRange=s,this.children=[],pa.validate(this)}};ed=pa=ne([ie],ed);var td;(function(t){t[t.Invoke=1]="Invoke",t[t.Automatic=2]="Automatic"})(td||(td={}));let nd=class{constructor(e,n){this.title=e,this.kind=n}};nd=ne([ie],nd);var Ms;let lt=(Ms=class{constructor(e){this.value=e}append(e){return new Zs(this.value?this.value+Zs.sep+e:e)}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+Zs.sep)}},Zs=Ms,Ms.sep=".",Ms);lt=Zs=ne([ie],lt);lt.Empty=new lt("");lt.QuickFix=lt.Empty.append("quickfix");lt.Refactor=lt.Empty.append("refactor");lt.RefactorExtract=lt.Refactor.append("extract");lt.RefactorInline=lt.Refactor.append("inline");lt.RefactorMove=lt.Refactor.append("move");lt.RefactorRewrite=lt.Refactor.append("rewrite");lt.Source=lt.Empty.append("source");lt.SourceOrganizeImports=lt.Source.append("organizeImports");lt.SourceFixAll=lt.Source.append("fixAll");lt.Notebook=lt.Empty.append("notebook");let id=class{constructor(e,n){if(this.range=e,this.parent=n,n&&!n.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}};id=ne([ie],id);let S5=class{constructor(e,n,i,r,s,o){this.kind=e,this.name=n,this.detail=i,this.uri=r,this.range=s,this.selectionRange=o}},D5=class{constructor(e,n){this.fromRanges=n,this.from=e}},x5=class{constructor(e,n){this.fromRanges=n,this.to=e}};var rd;(function(t){t[t.Information=0]="Information",t[t.Warning=1]="Warning",t[t.Error=2]="Error"})(rd||(rd={}));let sd=class{constructor(e,n){this.range=e,this.command=n}get isResolved(){return!!this.command}};sd=ne([ie],sd);var Bt,E0;let Aa=qu=(E0=class{constructor(e,n=!1){Br(this,Bt,void 0);Jo(this,Bt,new Ly(e,{supportThemeIcons:n}))}static isMarkdownString(e){return e instanceof qu?!0:e&&e.appendCodeblock&&e.appendMarkdown&&e.appendText&&e.value!==void 0}get value(){return pt(this,Bt).value}set value(e){pt(this,Bt).value=e}get isTrusted(){return pt(this,Bt).isTrusted}set isTrusted(e){pt(this,Bt).isTrusted=e}get supportThemeIcons(){return pt(this,Bt).supportThemeIcons}set supportThemeIcons(e){pt(this,Bt).supportThemeIcons=e}get supportHtml(){return pt(this,Bt).supportHtml}set supportHtml(e){pt(this,Bt).supportHtml=e}get baseUri(){return pt(this,Bt).baseUri}set baseUri(e){pt(this,Bt).baseUri=e}appendText(e){return pt(this,Bt).appendText(e),this}appendMarkdown(e){return pt(this,Bt).appendMarkdown(e),this}appendCodeblock(e,n){return pt(this,Bt).appendCodeblock(n??"",e),this}},Bt=new WeakMap,E0);Aa=qu=ne([ie],Aa);let od=class{constructor(e,n){this.label=e,this.documentation=n}};od=ne([ie],od);let ad=class{constructor(e,n){this.label=e,this.documentation=n,this.parameters=[]}};ad=ne([ie],ad);let cd=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};cd=ne([ie],cd);var ld;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ld||(ld={}));var ud;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ud||(ud={}));let dd=class{constructor(e){this.value=e}};dd=ne([ie],dd);let fd=class{constructor(e,n,i){this.position=e,this.label=n,this.kind=i}};fd=ne([ie],fd);var hd;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(hd||(hd={}));var La;(function(t){t[t.Text=0]="Text",t[t.Method=1]="Method",t[t.Function=2]="Function",t[t.Constructor=3]="Constructor",t[t.Field=4]="Field",t[t.Variable=5]="Variable",t[t.Class=6]="Class",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Unit=10]="Unit",t[t.Value=11]="Value",t[t.Enum=12]="Enum",t[t.Keyword=13]="Keyword",t[t.Snippet=14]="Snippet",t[t.Color=15]="Color",t[t.File=16]="File",t[t.Reference=17]="Reference",t[t.Folder=18]="Folder",t[t.EnumMember=19]="EnumMember",t[t.Constant=20]="Constant",t[t.Struct=21]="Struct",t[t.Event=22]="Event",t[t.Operator=23]="Operator",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue"})(La||(La={}));var gd;(function(t){t[t.Deprecated=1]="Deprecated"})(gd||(gd={}));let pd=class{constructor(e,n){this.label=e,this.kind=n}toJSON(){return{label:this.label,kind:this.kind&&La[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};pd=ne([ie],pd);let md=class{constructor(e=[],n=!1){this.items=e,this.isIncomplete=n}};md=ne([ie],md);let yd=class{constructor(e,n,i){this.insertText=e,this.range=n,this.command=i}};yd=ne([ie],yd);let bd=class{constructor(e){this.commands=void 0,this.suppressSuggestions=void 0,this.items=e}};bd=ne([ie],bd);var Gg;(function(t){t[t.Unknown=0]="Unknown",t[t.Word=1]="Word",t[t.Line=2]="Line",t[t.Suggest=3]="Suggest"})(Gg||(Gg={}));var vd;(function(t){t[t.Active=-1]="Active",t[t.Beside=-2]="Beside",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five",t[t.Six=6]="Six",t[t.Seven=7]="Seven",t[t.Eight=8]="Eight",t[t.Nine=9]="Nine"})(vd||(vd={}));var wd;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(wd||(wd={}));var Cd;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval"})(Cd||(Cd={}));var _d;(function(t){t[t.Manual=1]="Manual",t[t.AfterDelay=2]="AfterDelay",t[t.FocusOut=3]="FocusOut"})(_d||(_d={}));var Sd;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Sd||(Sd={}));var Co;(function(t){t[t.Keyboard=1]="Keyboard",t[t.Mouse=2]="Mouse",t[t.Command=3]="Command"})(Co||(Co={}));var Dd;(function(t){t[t.Undo=1]="Undo",t[t.Redo=2]="Redo"})(Dd||(Dd={}));var xd;(function(t){t[t.OpenOpen=0]="OpenOpen",t[t.ClosedClosed=1]="ClosedClosed",t[t.OpenClosed=2]="OpenClosed",t[t.ClosedOpen=3]="ClosedOpen"})(xd||(xd={}));(function(t){function e(n){switch(n){case"keyboard":return t.Keyboard;case"mouse":return t.Mouse;case"api":return t.Command}}t.fromValue=e})(Co||(Co={}));var _o;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(_o||(_o={}));(function(t){function e(n){switch(n){case t.Other:return"other";case t.Comment:return"comment";case t.String:return"string";case t.RegEx:return"regex"}return"other"}t.toString=e})(_o||(_o={}));let kd=class{constructor(e,n){if(n&&!st.isUri(n))throw xe("target");if(!_t.isRange(e)||e.isEmpty)throw xe("range");this.range=e,this.target=n}};kd=ne([ie],kd);let Na=class{constructor(e,n,i,r){this.red=e,this.green=n,this.blue=i,this.alpha=r}};Na=ne([ie],Na);let Td=class{constructor(e,n){if(n&&!(n instanceof Na))throw xe("color");if(!_t.isRange(e)||e.isEmpty)throw xe("range");this.range=e,this.color=n}};Td=ne([ie],Td);let Rd=class{constructor(e){if(!e||typeof e!="string")throw xe("label");this.label=e}};Rd=ne([ie],Rd);var Ed;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"})(Ed||(Ed={}));var Pd;(function(t){t[t.Unknown=0]="Unknown",t[t.Shutdown=1]="Shutdown",t[t.Process=2]="Process",t[t.User=3]="User",t[t.Extension=4]="Extension"})(Pd||(Pd={}));var Qg;(function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"})(Qg||(Qg={}));let k5=class{constructor(e,n,i){if(this.startIndex=e,this.length=n,this.tooltip=i,typeof e!="number"||e<0)throw xe("startIndex");if(typeof n!="number"||n<1)throw xe("length");if(i!==void 0&&typeof i!="string")throw xe("tooltip")}},T5=class{constructor(e){this.uri=e}};class R5{constructor(e){this.terminalCommand=e}}var Id;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(Id||(Id={}));let E5=class{constructor(e){if(this.options=e,typeof e!="object")throw xe("options")}};var Fd;(function(t){t[t.Always=1]="Always",t[t.Silent=2]="Silent",t[t.Never=3]="Never"})(Fd||(Fd={}));var Md;(function(t){t[t.Shared=1]="Shared",t[t.Dedicated=2]="Dedicated",t[t.New=3]="New"})(Md||(Md={}));var Pi;let Od=(Pi=class{static from(e){switch(e){case"clean":return li.Clean;case"build":return li.Build;case"rebuild":return li.Rebuild;case"test":return li.Test;default:return}}constructor(e,n){if(this.label=n,typeof e!="string"||typeof n!="string")throw xe("name");this._id=e}get id(){return this._id}},li=Pi,Pi.Clean=new li("clean","Clean"),Pi.Build=new li("build","Build"),Pi.Rebuild=new li("rebuild","Rebuild"),Pi.Test=new li("test","Test"),Pi);Od=li=ne([ie],Od);function n2(t){let e="";for(let n=0;n<t.length;n++)e+=t[n].replace(/,/g,",,")+",";return e}let $a=class{constructor(e,n,i){if(typeof e!="string")throw xe("process");this._args=[],this._process=e,n!==void 0&&(Array.isArray(n)?(this._args=n,this._options=i):this._options=n)}get process(){return this._process}set process(e){if(typeof e!="string")throw xe("process");this._process=e}get args(){return this._args}set args(e){Array.isArray(e)||(e=[]),this._args=e}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("process"),this._process!==void 0&&e.push(this._process),this._args&&this._args.length>0)for(const n of this._args)e.push(n);return n2(e)}};$a=ne([ie],$a);let qa=class{constructor(e,n,i){if(this._args=[],Array.isArray(n)){if(!e)throw xe("command can't be undefined or null");if(typeof e!="string"&&typeof e.value!="string")throw xe("command");this._command=e,this._args=n,this._options=i}else{if(typeof e!="string")throw xe("commandLine");this._commandLine=e,this._options=n}}get commandLine(){return this._commandLine}set commandLine(e){if(typeof e!="string")throw xe("commandLine");this._commandLine=e}get command(){return this._command?this._command:""}set command(e){if(typeof e!="string"&&typeof e.value!="string")throw xe("command");this._command=e}get args(){return this._args}set args(e){this._args=e||[]}get options(){return this._options}set options(e){this._options=e}computeId(){const e=[];if(e.push("shell"),this._commandLine!==void 0&&e.push(this._commandLine),this._command!==void 0&&e.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const n of this._args)e.push(typeof n=="string"?n:n.value);return n2(e)}};qa=ne([ie],qa);var Ad;(function(t){t[t.Escape=1]="Escape",t[t.Strong=2]="Strong",t[t.Weak=3]="Weak"})(Ad||(Ad={}));var So;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace"})(So||(So={}));let i2=class{constructor(e){this._callback=e}computeId(){return"customExecution"+mc()}set callback(e){this._callback=e}get callback(){return this._callback}};var Ii;let Ld=(Ii=class{constructor(e,n,i,r,s,o){this.__deprecated=!1,this._definition=this.definition=e;let a;typeof n=="string"?(this._name=this.name=n,this._source=this.source=i,this.execution=r,a=s,this.__deprecated=!0):n===So.Global||n===So.Workspace?(this.target=n,this._name=this.name=i,this._source=this.source=r,this.execution=s,a=o):(this.target=n,this._name=this.name=i,this._source=this.source=r,this.execution=s,a=o),typeof a=="string"?(this._problemMatchers=[a],this._hasDefinedMatchers=!0):Array.isArray(a)?(this._problemMatchers=a,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(e){this.__id=e}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof $a?this._definition={type:ui.ProcessType,id:this._execution.computeId()}:this._execution instanceof qa?this._definition={type:ui.ShellType,id:this._execution.computeId()}:this._execution instanceof i2?this._definition={type:ui.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:ui.EmptyType,id:mc()}}get definition(){return this._definition}set definition(e){if(e==null)throw xe("Kind can't be undefined or null");this.clear(),this._definition=e}get scope(){return this._scope}set target(e){this.clear(),this._scope=e}get name(){return this._name}set name(e){if(typeof e!="string")throw xe("name");this.clear(),this._name=e}get execution(){return this._execution}set execution(e){e===null&&(e=void 0),this.clear(),this._execution=e;const n=this._definition.type;(ui.EmptyType===n||ui.ProcessType===n||ui.ShellType===n||ui.ExtensionCallbackType===n)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(e){if(Array.isArray(e))this.clear(),this._problemMatchers=e,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(e){e!==!0&&e!==!1&&(e=!1),this.clear(),this._isBackground=e}get source(){return this._source}set source(e){if(typeof e!="string"||e.length===0)throw xe("source must be a string of length > 0");this.clear(),this._source=e}get group(){return this._group}set group(e){e===null&&(e=void 0),this.clear(),this._group=e}get detail(){return this._detail}set detail(e){e===null&&(e=void 0),this._detail=e}get presentationOptions(){return this._presentationOptions}set presentationOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._presentationOptions=e}get runOptions(){return this._runOptions}set runOptions(e){e==null&&(e=Object.create(null)),this.clear(),this._runOptions=e}},ui=Ii,Ii.ExtensionCallbackType="customExecution",Ii.ProcessType="process",Ii.ShellType="shell",Ii.EmptyType="$empty",Ii);Ld=ui=ne([ie],Ld);var Nd;(function(t){t[t.SourceControl=1]="SourceControl",t[t.Window=10]="Window",t[t.Notification=15]="Notification"})(Nd||(Nd={}));var Jg;(function(t){function e(n){const i=n;return so(i.value)?i.tooltip&&!Tn(i.tooltip)?(console.log("INVALID view badge, invalid tooltip",i.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",i.value),!1)}t.isViewBadge=e})(Jg||(Jg={}));let $d=Hu=class{static isTreeItem(e,n){var r,s;const i=e;if(i.checkboxState!==void 0){const o=so(i.checkboxState)?i.checkboxState:yg(i.checkboxState)&&so(i.checkboxState.state)?i.checkboxState.state:void 0,a=!so(i.checkboxState)&&yg(i.checkboxState)?i.checkboxState.tooltip:void 0;if(o===void 0||o!==Do.Checked&&o!==Do.Unchecked||a!==void 0&&!Tn(a))return console.log("INVALID tree item, invalid checkboxState",i.checkboxState),!1}if(e instanceof Hu)return!0;if(i.label!==void 0&&!Tn(i.label)&&!((r=i.label)!=null&&r.label))return console.log("INVALID tree item, invalid label",i.label),!1;if(i.id!==void 0&&!Tn(i.id))return console.log("INVALID tree item, invalid id",i.id),!1;if(i.iconPath!==void 0&&!Tn(i.iconPath)&&!st.isUri(i.iconPath)&&(!i.iconPath||!Tn(i.iconPath.id))){const o=i.iconPath;if(!o||!Tn(o.light)&&!st.isUri(o.light)&&!Tn(o.dark)&&!st.isUri(o.dark))return console.log("INVALID tree item, invalid iconPath",i.iconPath),!1}return i.description!==void 0&&!Tn(i.description)&&typeof i.description!="boolean"?(console.log("INVALID tree item, invalid description",i.description),!1):i.resourceUri!==void 0&&!st.isUri(i.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",i.resourceUri),!1):i.tooltip!==void 0&&!Tn(i.tooltip)&&!(i.tooltip instanceof Aa)?(console.log("INVALID tree item, invalid tooltip",i.tooltip),!1):i.command!==void 0&&!i.command.command?(console.log("INVALID tree item, invalid command",i.command),!1):i.collapsibleState!==void 0&&i.collapsibleState<fs.None&&i.collapsibleState>fs.Expanded?(console.log("INVALID tree item, invalid collapsibleState",i.collapsibleState),!1):i.contextValue!==void 0&&!Tn(i.contextValue)?(console.log("INVALID tree item, invalid contextValue",i.contextValue),!1):i.accessibilityInformation!==void 0&&!((s=i.accessibilityInformation)!=null&&s.label)?(console.log("INVALID tree item, invalid accessibilityInformation",i.accessibilityInformation),!1):!0}constructor(e,n=fs.None){this.collapsibleState=n,st.isUri(e)?this.resourceUri=e:this.label=e}};$d=Hu=ne([ie],$d);var fs;(function(t){t[t.None=0]="None",t[t.Collapsed=1]="Collapsed",t[t.Expanded=2]="Expanded"})(fs||(fs={}));var Do;(function(t){t[t.Unchecked=0]="Unchecked",t[t.Checked=1]="Checked"})(Do||(Do={}));let qd=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(e){this.value=e}};qd=ne([ie],qd);var Ei,Ir,eo,P0;let Hd=(P0=class{constructor(e){Br(this,Ir);Br(this,Ei,new Map);for(const[n,i]of e??[]){const r=pt(this,Ei).get(Ns(this,Ir,eo).call(this,n));r?r.push(i):pt(this,Ei).set(Ns(this,Ir,eo).call(this,n),[i])}}get(e){var n;return(n=pt(this,Ei).get(Ns(this,Ir,eo).call(this,e)))==null?void 0:n[0]}set(e,n){pt(this,Ei).set(Ns(this,Ir,eo).call(this,e),[n])}forEach(e,n){for(const[i,r]of pt(this,Ei))for(const s of r)e.call(n,s,i,this)}*[Symbol.iterator](){for(const[e,n]of pt(this,Ei))for(const i of n)yield[e,i]}},Ei=new WeakMap,Ir=new WeakSet,eo=function(e){return e.toLowerCase()},P0);Hd=ne([ie],Hd);let jd=class{constructor(e,n,i){this.insertText=e,this.title=n,this.kind=i}};jd=ne([ie],jd);var Yg;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Yg||(Yg={}));const us=class us{constructor(e){this.value=e}append(...e){return new us((this.value?[this.value,...e]:e).join(us.sep))}intersects(e){return this.contains(e)||e.contains(this)}contains(e){return this.value===e.value||e.value.startsWith(this.value+us.sep)}};us.sep=".";let Ha=us;Ha.Empty=new Ha("");let P5=class{constructor(e,n,i){this.title=n,this.insertText=e,this.kind=i}},ji=class{constructor(e,n){this.id=e,this.color=n}static isThemeIcon(e){return typeof e.id!="string"?(console.log("INVALID ThemeIcon, invalid id",e.id),!1):!0}};ji=ne([ie],ji);ji.File=new ji("file");ji.Folder=new ji("folder");let Wd=class{constructor(e){this.id=e}};Wd=ne([ie],Wd);var Ud;(function(t){t[t.Global=1]="Global",t[t.Workspace=2]="Workspace",t[t.WorkspaceFolder=3]="WorkspaceFolder"})(Ud||(Ud={}));let zd=class{get base(){return this._base}set base(e){this._base=e,this._baseUri=st.file(e)}get baseUri(){return this._baseUri}set baseUri(e){this._baseUri=e,this._base=e.fsPath}constructor(e,n){if(typeof e!="string"&&(!e||!st.isUri(e)&&!st.isUri(e.uri)))throw xe("base");if(typeof n!="string")throw xe("pattern");typeof e=="string"?this.baseUri=st.file(e):st.isUri(e)?this.baseUri=e:this.baseUri=e.uri,this.pattern=n}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};zd=ne([ie],zd);const I5=new WeakMap;let ps=class{constructor(e,n,i,r,s){this.enabled=typeof e=="boolean"?e:!0,typeof n=="string"&&(this.condition=n),typeof i=="string"&&(this.hitCondition=i),typeof r=="string"&&(this.logMessage=r),typeof s=="string"&&(this.mode=s)}get id(){return this._id||(this._id=I5.get(this)??mc()),this._id}};ps=ne([ie],ps);let Bd=class extends ps{constructor(e,n,i,r,s,o){if(super(n,i,r,s,o),e===null)throw xe("location");this.location=e}};Bd=ne([ie],Bd);let Vd=class extends ps{constructor(e,n,i,r,s,o){super(n,i,r,s,o),this.functionName=e}};Vd=ne([ie],Vd);let Xg=class extends ps{constructor(e,n,i,r,s,o,a,c){if(super(r,s,o,a,c),!n)throw xe("dataId");this.label=e,this.dataId=n,this.canPersist=i}};Xg=ne([ie],Xg);let Kd=class{constructor(e,n,i){this.command=e,this.args=n||[],this.options=i}};Kd=ne([ie],Kd);let Gd=class{constructor(e,n){this.port=e,this.host=n}};Gd=ne([ie],Gd);let Qd=class{constructor(e){this.path=e}};Qd=ne([ie],Qd);let Jd=class{constructor(e){this.implementation=e}};Jd=ne([ie],Jd);let Yd=class{constructor(e,n){this.range=e,this.expression=n}};Yd=ne([ie],Yd);var Xd;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Xd||(Xd={}));let Zd=class{constructor(e,n){this.range=e,this.text=n}};Zd=ne([ie],Zd);let ef=class{constructor(e,n,i=!0){this.range=e,this.variableName=n,this.caseSensitiveLookup=i}};ef=ne([ie],ef);let tf=class{constructor(e,n){this.range=e,this.expression=n}};tf=ne([ie],tf);let Zg=class{constructor(e,n){this.frameId=e,this.stoppedLocation=n}};Zg=ne([ie],Zg);var ep;(function(t){t[t.AIGenerated=1]="AIGenerated"})(ep||(ep={}));var tp;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(tp||(tp={}));var nf;(function(t){t[t.Changed=1]="Changed",t[t.Created=2]="Created",t[t.Deleted=3]="Deleted"})(nf||(nf={}));let rf=ln=class extends Error{static FileExists(e){return new ln(e,Di.FileExists,ln.FileExists)}static FileNotFound(e){return new ln(e,Di.FileNotFound,ln.FileNotFound)}static FileNotADirectory(e){return new ln(e,Di.FileNotADirectory,ln.FileNotADirectory)}static FileIsADirectory(e){return new ln(e,Di.FileIsADirectory,ln.FileIsADirectory)}static NoPermissions(e){return new ln(e,Di.NoPermissions,ln.NoPermissions)}static Unavailable(e){return new ln(e,Di.Unavailable,ln.Unavailable)}constructor(e,n=Di.Unknown,i){super(st.isUri(e)?e.toString(!0):e),this.code=(i==null?void 0:i.name)??"Unknown",Uy(this,n),Object.setPrototypeOf(this,ln.prototype),typeof Error.captureStackTrace=="function"&&typeof i=="function"&&Error.captureStackTrace(this,i)}};rf=ln=ne([ie],rf);let sf=class{constructor(e,n,i){this.start=e,this.end=n,this.kind=i}};sf=ne([ie],sf);var of;(function(t){t[t.Comment=1]="Comment",t[t.Imports=2]="Imports",t[t.Region=3]="Region"})(of||(of={}));var af;(function(t){t[t.Collapsed=0]="Collapsed",t[t.Expanded=1]="Expanded"})(af||(af={}));var cf;(function(t){t[t.Editing=0]="Editing",t[t.Preview=1]="Preview"})(cf||(cf={}));var lf;(function(t){t[t.Published=0]="Published",t[t.Draft=1]="Draft"})(lf||(lf={}));var uf;(function(t){t[t.Unresolved=0]="Unresolved",t[t.Resolved=1]="Resolved"})(uf||(uf={}));var np;(function(t){t[t.Current=0]="Current",t[t.Outdated=1]="Outdated"})(np||(np={}));let F5=class{constructor(e,n=[]){this.tokenTypes=e,this.tokenModifiers=n}};function M5(t){return typeof t>"u"||W4(t)}let O5=class r2{constructor(e){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,e){this._hasLegend=!0;for(let n=0,i=e.tokenTypes.length;n<i;n++)this._tokenTypeStrToInt.set(e.tokenTypes[n],n);for(let n=0,i=e.tokenModifiers.length;n<i;n++)this._tokenModifierStrToInt.set(e.tokenModifiers[n],n)}}push(e,n,i,r,s){if(typeof e=="number"&&typeof n=="number"&&typeof i=="number"&&typeof r=="number"&&(typeof s=="number"||typeof s>"u"))return typeof s>"u"&&(s=0),this._pushEncoded(e,n,i,r,s);if(_t.isRange(e)&&typeof n=="string"&&M5(i))return this._push(e,n,i);throw xe()}_push(e,n,i){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(e.start.line!==e.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(n))throw new Error("`tokenType` is not in the provided legend");const r=e.start.line,s=e.start.character,o=e.end.character-e.start.character,a=this._tokenTypeStrToInt.get(n);let c=0;if(i)for(const l of i){if(!this._tokenModifierStrToInt.has(l))throw new Error("`tokenModifier` is not in the provided legend");const h=this._tokenModifierStrToInt.get(l);c|=1<<h>>>0}this._pushEncoded(r,s,o,a,c)}_pushEncoded(e,n,i,r,s){if(this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&n<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;const c=this._data.length/5|0;let l=0,h=0;for(let g=0;g<c;g++){let p=this._data[5*g],w=this._data[5*g+1];p===0?(p=l,w+=h):p+=l,this._data[5*g]=p,this._data[5*g+1]=w,l=p,h=w}}let o=e,a=n;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}static _sortAndDeltaEncode(e){const n=[],i=e.length/5|0;for(let a=0;a<i;a++)n[a]=a;n.sort((a,c)=>{const l=e[5*a],h=e[5*c];if(l===h){const g=e[5*a+1],p=e[5*c+1];return g-p}return l-h});const r=new Uint32Array(e.length);let s=0,o=0;for(let a=0;a<i;a++){const c=5*n[a],l=e[c+0],h=e[c+1],g=e[c+2],p=e[c+3],w=e[c+4],v=l-s,x=v===0?h-o:h,T=5*a;r[T+0]=v,r[T+1]=x,r[T+2]=g,r[T+3]=p,r[T+4]=w,s=l,o=h}return r}build(e){return this._dataIsSortedAndDeltaEncoded?new df(new Uint32Array(this._data),e):new df(r2._sortAndDeltaEncode(this._data),e)}},df=class{constructor(e,n){this.resultId=n,this.data=e}},A5=class{constructor(e,n,i){this.start=e,this.deleteCount=n,this.data=i}},L5=class{constructor(e,n){this.resultId=n,this.edits=e}};var ff;(function(t){t[t.Separate=0]="Separate",t[t.MergeWithParent=1]="MergeWithParent"})(ff||(ff={}));let N5=class{constructor(e){this.name=e}};var No;let hf=(No=class{constructor(){}},No.Back={iconPath:new ji("arrow-left")},No);hf=ne([ie],hf);var gf;(function(t){t[t.Separator=-1]="Separator",t[t.Default=0]="Default"})(gf||(gf={}));var pf;(function(t){t[t.Info=1]="Info",t[t.Warning=2]="Warning",t[t.Error=3]="Error"})(pf||(pf={}));var mf;(function(t){t[t.UI=1]="UI",t[t.Workspace=2]="Workspace"})(mf||(mf={}));let ip=class{static validate(e){if(typeof e.badge=="string"){let n=ug(e.badge,0);if(n<e.badge.length&&(n+=ug(e.badge,n)),e.badge.length>n)throw new Error("The 'badge'-property must be undefined or a short character")}else if(e.badge&&!ji.isThemeIcon(e.badge))throw new Error("The 'badge'-property is not a valid ThemeIcon");if(!e.color&&!e.badge&&!e.tooltip)throw new Error("The decoration is empty");return!0}constructor(e,n,i){this.badge=e,this.tooltip=n,this.color=i}},rp=class{constructor(e){this.kind=e}};rp=ne([ie],rp);var yf;(function(t){t[t.Light=1]="Light",t[t.Dark=2]="Dark",t[t.HighContrast=3]="HighContrast",t[t.HighContrastLight=4]="HighContrastLight"})(yf||(yf={}));let to=class bf{static isNotebookRange(e){return e instanceof bf?!0:e?typeof e.start=="number"&&typeof e.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}constructor(e,n){if(e<0)throw xe("start must be positive");if(n<0)throw xe("end must be positive");e<=n?(this._start=e,this._end=n):(this._start=n,this._end=e)}with(e){let n=this._start,i=this._end;return e.start!==void 0&&(n=e.start),e.end!==void 0&&(i=e.end),n===this._start&&i===this._end?this:new bf(n,i)}},$5=class vf{static validate(e){if(typeof e.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof e.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof e.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(e){return Array.isArray(e)&&e.every(n=>vf.isNotebookCellData(n))}static isNotebookCellData(e){return!0}constructor(e,n,i,r,s,o,a){this.kind=e,this.value=n,this.languageId=i,this.mime=r,this.outputs=s??[],this.metadata=o,this.executionSummary=a,vf.validate(this)}},q5=class{constructor(e){this.cells=e}};var Rn,hc;let H5=(Rn=class{static isNotebookCellOutputItem(e){return e instanceof Rn?!0:e?typeof e.mime=="string"&&e.data instanceof Uint8Array:!1}static error(e){const n={name:e.name,message:e.message,stack:e.stack};return Rn.json(n,"application/vnd.code.notebook.error")}static stdout(e){return Rn.text(e,"application/vnd.code.notebook.stdout")}static stderr(e){return Rn.text(e,"application/vnd.code.notebook.stderr")}static bytes(e,n="application/octet-stream"){return new Rn(e,n)}static text(e,n=Mr.text){const i=pt(Rn,hc).encode(String(e));return new Rn(i,n)}static json(e,n="text/x-json"){const i=JSON.stringify(e,void 0," ");return Rn.text(i,n)}constructor(e,n){this.data=e,this.mime=n;const i=Q0(n,!0);if(!i)throw new Error(`INVALID mime type: ${n}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=i}},hc=new WeakMap,Br(Rn,hc,new TextEncoder),Rn),j5=class wf{static isNotebookCellOutput(e){return e instanceof wf?!0:!e||typeof e!="object"?!1:typeof e.id=="string"&&Array.isArray(e.items)}static ensureUniqueMimeTypes(e,n=!1){const i=new Set,r=new Set;for(let s=0;s<e.length;s++){const o=e[s],a=Q0(o.mime);if(!i.has(a)||b5(a)){i.add(a);continue}r.add(s),n&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return r.size===0?e:e.filter((s,o)=>!r.has(o))}constructor(e,n,i){this.items=wf.ensureUniqueMimeTypes(e,!0),typeof n=="string"?(this.id=n,this.metadata=i):(this.id=mc(),this.metadata=n??i)}};var Cf;(function(t){t[t.Markup=1]="Markup",t[t.Code=2]="Code"})(Cf||(Cf={}));var _f;(function(t){t[t.Idle=1]="Idle",t[t.Pending=2]="Pending",t[t.Executing=3]="Executing"})(_f||(_f={}));var Sf;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Sf||(Sf={}));var Df;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(Df||(Df={}));let W5=class{constructor(e,n){this.text=e,this.alignment=n}};var xf;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred"})(xf||(xf={}));var kf;(function(t){t[t.Default=1]="Default",t[t.Preferred=2]="Preferred",t[t.Hidden=-1]="Hidden"})(kf||(kf={}));let U5=class{constructor(e,n=[]){this.uri=e,this.provides=c4(n)}},z5=class{constructor(e){this.label=e}};var sp;(function(t){t[t.Named=1]="Named",t[t.Indexed=2]="Indexed"})(sp||(sp={}));let Tf=class{constructor(e,n){this.label=e,this.timestamp=n}};Tf=ne([ie],Tf);var Rf;(function(t){t[t.Production=1]="Production",t[t.Development=2]="Development",t[t.Test=3]="Test"})(Rf||(Rf={}));var Ef;(function(t){t[t.Node=1]="Node",t[t.Webworker=2]="Webworker"})(Ef||(Ef={}));var Pf;(function(t){t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx"})(Pf||(Pf={}));let B5=class{constructor(e,n){this.ranges=e,this.wordPattern=n}},V5=class{constructor(e){this._autoForwardAction=e}get autoForwardAction(){return this._autoForwardAction}};var If;(function(t){t[t.Queued=1]="Queued",t[t.Running=2]="Running",t[t.Passed=3]="Passed",t[t.Failed=4]="Failed",t[t.Skipped=5]="Skipped",t[t.Errored=6]="Errored"})(If||(If={}));var Ff;(function(t){t[t.Run=1]="Run",t[t.Debug=2]="Debug",t[t.Coverage=3]="Coverage"})(Ff||(Ff={}));let Mf=class{constructor(e=void 0,n=void 0,i=void 0,r=!1,s=!0){this.include=e,this.exclude=n,this.profile=i,this.continuous=r,this.preserveFocus=s}};Mf=ne([ie],Mf);let ja=ju=class{static diff(e,n,i){const r=new ju(e);return r.expectedOutput=n,r.actualOutput=i,r}constructor(e){this.message=e}};ja=ju=ne([ie],ja);let Of=class{constructor(e){this.id=e}};Of=ne([ie],Of);class Pl{constructor(e,n){this.covered=e,this.total=n,K5(this)}}function K5(t){if(t){if(t.covered>t.total)throw new Error(`The total number of covered items (${t.covered}) cannot be greater than the total (${t.total})`);if(t.total<0)throw new Error(`The number of covered items (${t.total}) cannot be negative`)}}let G5=class s2{static fromDetails(e,n){const i=new Pl(0,0),r=new Pl(0,0),s=new Pl(0,0);for(const a of n)if("branches"in a){i.total+=1,i.covered+=a.executed?1:0;for(const c of a.branches)r.total+=1,r.covered+=c.executed?1:0}else s.total+=1,s.covered+=a.executed?1:0;const o=new s2(e,i,r.total>0?r:void 0,s.total>0?s:void 0);return o.detailedCoverage=n,o}constructor(e,n,i,r){this.uri=e,this.statementCoverage=n,this.branchCoverage=i,this.declarationCoverage=r}},Q5=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i=[]){this.executed=e,this.location=n,this.branches=i}},J5=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i){this.executed=e,this.location=n,this.label=i}};class Y5{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,n,i){this.name=e,this.executed=n,this.location=i}}var Af;(function(t){t[t.None=0]="None",t[t.Option=1]="Option",t[t.Default=2]="Default",t[t.Preferred=3]="Preferred"})(Af||(Af={}));var Lf;(function(t){t[t.Untrusted=0]="Untrusted",t[t.Trusted=1]="Trusted",t[t.Unspecified=2]="Unspecified"})(Lf||(Lf={}));var Nf;(function(t){t[t.Notify=1]="Notify",t[t.OpenBrowser=2]="OpenBrowser",t[t.OpenPreview=3]="OpenPreview",t[t.Silent=4]="Silent",t[t.Ignore=5]="Ignore",t[t.OpenBrowserOnce=6]="OpenBrowserOnce"})(Nf||(Nf={}));let X5=class{constructor(e,n,i,r,s,o){this.kind=e,this.name=n,this.detail=i,this.uri=r,this.range=s,this.selectionRange=o}};class Z5{constructor(e){this.uri=e}}class eb{constructor(e,n){this.original=e,this.modified=n}}class tb{constructor(e,n,i,r){this.base=e,this.input1=n,this.input2=i,this.result=r}}class nb{constructor(e,n){this.uri=e,this.viewType=n}}class ib{constructor(e){this.viewType=e}}class rb{constructor(e,n){this.uri=e,this.notebookType=n}}class sb{constructor(e,n,i){this.original=e,this.modified=n,this.notebookType=i}}class ob{constructor(){}}class ab{constructor(e,n){this.uri=e,this.inputBoxUri=n}}class cb{constructor(){}}var $f;(function(t){t[t.Down=0]="Down",t[t.Up=1]="Up"})($f||($f={}));var qf;(function(t){t[t.Action=1]="Action",t[t.Toolbar=2]="Toolbar"})(qf||(qf={}));var Hf;(function(t){t[t.Short=1]="Short",t[t.Medium=2]="Medium",t[t.Full=3]="Full"})(Hf||(Hf={}));let lb=class{constructor(e,n){this.label=e,this.values=n}};var jf;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful",t[t.Undone=2]="Undone",t[t.Accepted=3]="Accepted",t[t.Bug=4]="Bug"})(jf||(jf={}));var Wf;(function(t){t[t.Unhelpful=0]="Unhelpful",t[t.Helpful=1]="Helpful"})(Wf||(Wf={}));var op;(function(t){t[t.Panel=1]="Panel",t[t.Terminal=2]="Terminal",t[t.Notebook=3]="Notebook",t[t.Editor=4]="Editor"})(op||(op={}));var Uf;(function(t){t[t.SymbolInformation=1]="SymbolInformation",t[t.CommandInformation=2]="CommandInformation",t[t.SearchInformation=3]="SearchInformation",t[t.SettingInformation=4]="SettingInformation"})(Uf||(Uf={}));var zf;(function(t){t[t.Started=1]="Started",t[t.Recognizing=2]="Recognizing",t[t.Recognized=3]="Recognized",t[t.Stopped=4]="Stopped",t[t.Error=5]="Error"})(zf||(zf={}));var Bf;(function(t){t[t.Recognized=1]="Recognized",t[t.Stopped=2]="Stopped"})(Bf||(Bf={}));var ap;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(ap||(ap={}));var Vf;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Vf||(Vf={}));const gc=class gc{constructor(e){this._proxyIdentifierBrand=void 0,this.sid=e,this.nid=++gc.count}};gc.count=0;let Kf=gc;const ub=[];function F(t){const e=new Kf(t);return ub[e.nid]=e,e}var cp;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(cp||(cp={}));var lp;(function(t){t[t.Default=0]="Default",t[t.InCenter=1]="InCenter",t[t.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",t[t.AtTop=3]="AtTop"})(lp||(lp={}));var Gf;(function(t){t[t.None=0]="None",t[t.Process=1]="Process",t[t.Output=2]="Output"})(Gf||(Gf={}));F("MainThreadAuthentication"),F("MainThreadBulkEdits"),F("MainThreadLanguageModels"),F("MainThreadChatAgents2"),F("MainThreadChatVariables"),F("MainThreadClipboard"),F("MainThreadCommands"),F("MainThreadComments"),F("MainThreadConfiguration"),F("MainThreadConsole"),F("MainThreadDebugService"),F("MainThreadDecorations"),F("MainThreadDiagnostics"),F("MainThreadDiaglogs"),F("MainThreadDocuments"),F("MainThreadDocumentContentProviders"),F("MainThreadTextEditors"),F("MainThreadEditorInsets"),F("MainThreadEditorTabs"),F("MainThreadErrors"),F("MainThreadTreeViews"),F("MainThreadDownloadService"),F("MainThreadLanguageFeatures"),F("MainThreadLanguages"),F("MainThreadLogger"),F("MainThreadMessageService"),F("MainThreadOutputService"),F("MainThreadProgress"),F("MainThreadQuickDiff"),F("MainThreadQuickOpen"),F("MainThreadStatusBar"),F("MainThreadSecretState"),F("MainThreadStorage"),F("MainThreadSpeechProvider"),F("MainThreadTelemetry"),F("MainThreadTerminalService"),F("MainThreadTerminalShellIntegration"),F("MainThreadWebviews"),F("MainThreadWebviewPanels"),F("MainThreadWebviewViews"),F("MainThreadCustomEditors"),F("MainThreadUrls"),F("MainThreadUriOpeners"),F("MainThreadProfileContentHandlers"),F("MainThreadWorkspace"),F("MainThreadFileSystem"),F("MainThreadFileSystemEventService"),F("MainThreadExtensionService"),F("MainThreadSCM"),F("MainThreadSearch"),F("MainThreadShare"),F("MainThreadTask"),F("MainThreadWindow"),F("MainThreadLabelService"),F("MainThreadNotebook"),F("MainThreadNotebookDocumentsShape"),F("MainThreadNotebookEditorsShape"),F("MainThreadNotebookKernels"),F("MainThreadNotebookRenderers"),F("MainThreadInteractive"),F("MainThreadInlineChatShape"),F("MainThreadTheming"),F("MainThreadTunnelService"),F("MainThreadManagedSockets"),F("MainThreadTimeline"),F("MainThreadTesting"),F("MainThreadLocalizationShape"),F("MainThreadAiRelatedInformation"),F("MainThreadAiEmbeddingVector");F("ExtHostCommands"),F("ExtHostConfiguration"),F("ExtHostDiagnostics"),F("ExtHostDebugService"),F("ExtHostDecorations"),F("ExtHostDocumentsAndEditors"),F("ExtHostDocuments"),F("ExtHostDocumentContentProviders"),F("ExtHostDocumentSaveParticipant"),F("ExtHostEditors"),F("ExtHostTreeViews"),F("ExtHostFileSystem"),F("ExtHostFileSystemInfo"),F("ExtHostFileSystemEventService"),F("ExtHostLanguages"),F("ExtHostLanguageFeatures"),F("ExtHostQuickOpen"),F("ExtHostQuickDiff"),F("ExtHostStatusBar"),F("ExtHostShare"),F("ExtHostExtensionService"),F("ExtHostLogLevelServiceShape"),F("ExtHostTerminalService"),F("ExtHostTerminalShellIntegration"),F("ExtHostSCM"),F("ExtHostSearch"),F("ExtHostTask"),F("ExtHostWorkspace"),F("ExtHostWindow"),F("ExtHostWebviews"),F("ExtHostWebviewPanels"),F("ExtHostCustomEditors"),F("ExtHostWebviewViews"),F("ExtHostEditorInsets"),F("ExtHostEditorTabs"),F("ExtHostProgress"),F("ExtHostComments"),F("ExtHostSecretState"),F("ExtHostStorage"),F("ExtHostUrls"),F("ExtHostUriOpeners"),F("ExtHostProfileContentHandlers"),F("ExtHostOutputService"),F("ExtHostLabelService"),F("ExtHostNotebook"),F("ExtHostNotebookDocuments"),F("ExtHostNotebookEditors"),F("ExtHostNotebookKernels"),F("ExtHostNotebookRenderers"),F("ExtHostNotebookDocumentSaveParticipant"),F("ExtHostInteractive"),F("ExtHostInlineChatShape"),F("ExtHostChatAgents"),F("ExtHostChatVariables"),F("ExtHostChatProvider"),F("ExtHostSpeech"),F("ExtHostAiRelatedInformation"),F("ExtHostAiEmbeddingVector"),F("ExtHostTheming"),F("ExtHostTunnelService"),F("ExtHostManagedSockets"),F("ExtHostAuthentication"),F("ExtHostTimeline"),F("ExtHostTesting"),F("ExtHostTelemetry"),F("ExtHostLocalization");const ae="vs/workbench/contrib/debug/common/debug";new re("debugType",void 0,{type:"string",description:f(ae,0,"Debug type of the active debug session. For example 'python'.")});new re("debugConfigurationType",void 0,{type:"string",description:f(ae,1,"Debug type of the selected launch configuration. For example 'python'.")});new re("debugState","inactive",{type:"string",description:f(ae,2,"State that the focused debug session is in. One of the following: 'inactive', 'initializing', 'stopped' or 'running'.")});const db="debugUx";new re(db,"default",{type:"string",description:f(ae,3,"Debug UX state. When there are no debug configurations it is 'simple', otherwise 'default'. Used to decide when to show welcome views in the debug viewlet.")});new re("hasDebugged",!1,{type:"boolean",description:f(ae,4,"True when a debug session has been started at least once, false otherwise.")});new re("inDebugMode",!1,{type:"boolean",description:f(ae,5,"True when debugging, false otherwise.")});new re("inDebugRepl",!1,{type:"boolean",description:f(ae,6,"True when focus is in the debug console, false otherwise.")});new re("breakpointWidgetVisible",!1,{type:"boolean",description:f(ae,7,"True when breakpoint editor zone widget is visible, false otherwise.")});new re("inBreakpointWidget",!1,{type:"boolean",description:f(ae,8,"True when focus is in the breakpoint editor zone widget, false otherwise.")});new re("breakpointsFocused",!0,{type:"boolean",description:f(ae,9,"True when the BREAKPOINTS view is focused, false otherwise.")});new re("watchExpressionsFocused",!0,{type:"boolean",description:f(ae,10,"True when the WATCH view is focused, false otherwsie.")});new re("watchExpressionsExist",!1,{type:"boolean",description:f(ae,11,"True when at least one watch expression exists, false otherwise.")});new re("variablesFocused",!0,{type:"boolean",description:f(ae,12,"True when the VARIABLES views is focused, false otherwsie")});new re("expressionSelected",!1,{type:"boolean",description:f(ae,13,"True when an expression input box is open in either the WATCH or the VARIABLES view, false otherwise.")});new re("breakpointInputFocused",!1,{type:"boolean",description:f(ae,14,"True when the input box has focus in the BREAKPOINTS view.")});new re("callStackItemType",void 0,{type:"string",description:f(ae,15,"Represents the item type of the focused element in the CALL STACK view. For example: 'session', 'thread', 'stackFrame'")});new re("callStackSessionIsAttach",!1,{type:"boolean",description:f(ae,16,"True when the session in the CALL STACK view is attach, false otherwise. Used internally for inline menus in the CALL STACK view.")});new re("callStackItemStopped",!1,{type:"boolean",description:f(ae,17,"True when the focused item in the CALL STACK is stopped. Used internaly for inline menus in the CALL STACK view.")});new re("callStackSessionHasOneThread",!1,{type:"boolean",description:f(ae,18,"True when the focused session in the CALL STACK view has exactly one thread. Used internally for inline menus in the CALL STACK view.")});new re("watchItemType",void 0,{type:"string",description:f(ae,19,"Represents the item type of the focused element in the WATCH view. For example: 'expression', 'variable'")});new re("canViewMemory",void 0,{type:"boolean",description:f(ae,20,"Indicates whether the item in the view has an associated memory refrence.")});new re("breakpointItemType",void 0,{type:"string",description:f(ae,21,"Represents the item type of the focused element in the BREAKPOINTS view. For example: 'breakpoint', 'exceptionBreakppint', 'functionBreakpoint', 'dataBreakpoint'")});new re("breakpointItemBytes",void 0,{type:"boolean",description:f(ae,22,"Whether the breakpoint item is a data breakpoint on a byte range.")});new re("breakpointHasModes",!1,{type:"boolean",description:f(ae,23,"Whether the breakpoint has multiple modes it can switch to.")});new re("breakpointSupportsCondition",!1,{type:"boolean",description:f(ae,24,"True when the focused breakpoint supports conditions.")});new re("loadedScriptsSupported",!1,{type:"boolean",description:f(ae,25,"True when the focused sessions supports the LOADED SCRIPTS view")});new re("loadedScriptsItemType",void 0,{type:"string",description:f(ae,26,"Represents the item type of the focused element in the LOADED SCRIPTS view.")});new re("focusedSessionIsAttach",!1,{type:"boolean",description:f(ae,27,"True when the focused session is 'attach'.")});new re("focusedSessionIsNoDebug",!1,{type:"boolean",description:f(ae,28,"True when the focused session is run without debugging.")});new re("stepBackSupported",!1,{type:"boolean",description:f(ae,29,"True when the focused session supports 'stepBack' requests.")});new re("restartFrameSupported",!1,{type:"boolean",description:f(ae,30,"True when the focused session supports 'restartFrame' requests.")});new re("stackFrameSupportsRestart",!1,{type:"boolean",description:f(ae,31,"True when the focused stack frame suppots 'restartFrame'.")});new re("jumpToCursorSupported",!1,{type:"boolean",description:f(ae,32,"True when the focused session supports 'jumpToCursor' request.")});new re("stepIntoTargetsSupported",!1,{type:"boolean",description:f(ae,33,"True when the focused session supports 'stepIntoTargets' request.")});new re("breakpointsExist",!1,{type:"boolean",description:f(ae,34,"True when at least one breakpoint exists.")});new re("debuggersAvailable",!1,{type:"boolean",description:f(ae,35,"True when there is at least one debug extensions active.")});new re("debugExtensionAvailable",!0,{type:"boolean",description:f(ae,36,"True when there is at least one debug extension installed and enabled.")});new re("debugProtocolVariableMenuContext",void 0,{type:"string",description:f(ae,37,"Represents the context the debug adapter sets on the focused variable in the VARIABLES view.")});new re("debugSetVariableSupported",!1,{type:"boolean",description:f(ae,38,"True when the focused session supports 'setVariable' request.")});new re("debugSetDataBreakpointAddressSupported",!1,{type:"boolean",description:f(ae,39,"True when the focused session supports 'getBreakpointInfo' request on an address.")});new re("debugSetExpressionSupported",!1,{type:"boolean",description:f(ae,40,"True when the focused session supports 'setExpression' request.")});new re("breakWhenValueChangesSupported",!1,{type:"boolean",description:f(ae,41,"True when the focused session supports to break when value changes.")});new re("breakWhenValueIsAccessedSupported",!1,{type:"boolean",description:f(ae,42,"True when the focused breakpoint supports to break when value is accessed.")});new re("breakWhenValueIsReadSupported",!1,{type:"boolean",description:f(ae,43,"True when the focused breakpoint supports to break when value is read.")});new re("terminateDebuggeeSupported",!1,{type:"boolean",description:f(ae,44,"True when the focused session supports the terminate debuggee capability.")});new re("suspendDebuggeeSupported",!1,{type:"boolean",description:f(ae,45,"True when the focused session supports the suspend debuggee capability.")});new re("variableEvaluateNamePresent",!1,{type:"boolean",description:f(ae,46,"True when the focused variable has an 'evalauteName' field set.")});new re("variableIsReadonly",!1,{type:"boolean",description:f(ae,47,"True when the focused variable is read-only.")});new re("variableValue",!1,{type:"string",description:f(ae,48,"Value of the variable, present for debug visualization clauses.")});new re("variableType",!1,{type:"string",description:f(ae,49,"Type of the variable, present for debug visualization clauses.")});new re("variableInterfaces",!1,{type:"array",description:f(ae,50,"Any interfaces or contracts that the variable satisfies, present for debug visualization clauses.")});new re("variableName",!1,{type:"string",description:f(ae,51,"Name of the variable, present for debug visualization clauses.")});new re("variableLanguage",!1,{type:"string",description:f(ae,52,"Language of the variable source, present for debug visualization clauses.")});new re("variableExtensionId",!1,{type:"string",description:f(ae,53,"Extension ID of the variable source, present for debug visualization clauses.")});new re("exceptionWidgetVisible",!1,{type:"boolean",description:f(ae,54,"True when the exception widget is visible.")});new re("multiSessionRepl",!1,{type:"boolean",description:f(ae,55,"True when there is more than 1 debug console.")});new re("multiSessionDebug",!1,{type:"boolean",description:f(ae,56,"True when there is more than 1 active debug session.")});new re("disassembleRequestSupported",!1,{type:"boolean",description:f(ae,57,"True when the focused sessions supports disassemble request.")});new re("disassemblyViewFocus",!1,{type:"boolean",description:f(ae,58,"True when the Disassembly View is focused.")});new re("languageSupportsDisassembleRequest",!1,{type:"boolean",description:f(ae,59,"True when the language in the current editor supports disassemble request.")});new re("focusedStackFrameHasInstructionReference",!1,{type:"boolean",description:f(ae,60,"True when the focused stack frame has instruction pointer reference.")});f(ae,62,"Controls when the internal Debug Console should open.");var Qf;(function(t){t[t.Initial=1]="Initial",t[t.Dynamic=2]="Dynamic"})(Qf||(Qf={}));var up;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(up||(up={}));var dp;(function(t){t.deserialize=e=>({id:e.id,name:e.name,iconPath:e.iconPath&&{light:st.revive(e.iconPath.light),dark:st.revive(e.iconPath.dark)},iconClass:e.iconClass,visualization:e.visualization}),t.serialize=e=>e})(dp||(dp={}));function lo(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let n,i;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(!lo(t[n],e[n]))return!1}else{const r=[];for(i in t)r.push(i);r.sort();const s=[];for(i in e)s.push(i);if(s.sort(),!lo(r,s))return!1;for(n=0;n<r.length;n++)if(!lo(t[r[n]],e[r[n]]))return!1}return!0}var Jf;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Jf||(Jf={}));var fp;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(fp||(fp={}));var hp;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(hp||(hp={}));var Yf;(function(t){t[t.Desktop=1]="Desktop",t[t.Web=2]="Web"})(Yf||(Yf={}));var Xf;(function(t){t[t.Information=1]="Information",t[t.Warning=2]="Warning"})(Xf||(Xf={}));function Il(t,e,n=32){const i=n-e,r=~((1<<i)-1);return(t<<e|(r&t)>>>i)>>>0}function gp(t,e=0,n=t.byteLength,i=0){for(let r=0;r<n;r++)t[e+r]=i}function fb(t,e,n="0"){for(;t.length<e;)t=n+t;return t}function qs(t,e=32){return t instanceof ArrayBuffer?Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join(""):fb((t>>>0).toString(16),e/4)}const pc=class pc{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(n===0)return;const i=this._buff;let r=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=e.charCodeAt(0),a=0);;){let c=o;if(E1(o))if(a+1<n){const l=e.charCodeAt(a+1);_a(l)?(a++,c=P1(o,l)):c=65533}else{s=o;break}else _a(o)&&(c=65533);if(r=this._push(i,r,c),a++,a<n)o=e.charCodeAt(a);else break}this._buffLen=r,this._leftoverHighSurrogate=s}_push(e,n,i){return i<128?e[n++]=i:i<2048?(e[n++]=192|(i&1984)>>>6,e[n++]=128|(i&63)>>>0):i<65536?(e[n++]=224|(i&61440)>>>12,e[n++]=128|(i&4032)>>>6,e[n++]=128|(i&63)>>>0):(e[n++]=240|(i&1835008)>>>18,e[n++]=128|(i&258048)>>>12,e[n++]=128|(i&4032)>>>6,e[n++]=128|(i&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),qs(this._h0)+qs(this._h1)+qs(this._h2)+qs(this._h3)+qs(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,gp(this._buff,this._buffLen),this._buffLen>56&&(this._step(),gp(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=pc._bigBlock32,n=this._buffDV;for(let g=0;g<64;g+=4)e.setUint32(g,n.getUint32(g,!1),!1);for(let g=64;g<320;g+=4)e.setUint32(g,Il(e.getUint32(g-12,!1)^e.getUint32(g-32,!1)^e.getUint32(g-56,!1)^e.getUint32(g-64,!1),1),!1);let i=this._h0,r=this._h1,s=this._h2,o=this._h3,a=this._h4,c,l,h;for(let g=0;g<80;g++)g<20?(c=r&s|~r&o,l=1518500249):g<40?(c=r^s^o,l=1859775393):g<60?(c=r&s|r&o|s&o,l=2400959708):(c=r^s^o,l=3395469782),h=Il(i,5)+c+a+l+e.getUint32(g*4,!1)&4294967295,a=o,o=s,s=Il(r,30),r=i,i=h;this._h0=this._h0+i&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};pc._bigBlock32=new DataView(new ArrayBuffer(320));let pp=pc;var ii;(function(t){t[t.Off=0]="Off",t[t.Trace=1]="Trace",t[t.Debug=2]="Debug",t[t.Info=3]="Info",t[t.Warning=4]="Warning",t[t.Error=5]="Error"})(ii||(ii={}));ii.Info;function hb(t){switch(t){case ii.Trace:return"trace";case ii.Debug:return"debug";case ii.Info:return"info";case ii.Warning:return"warn";case ii.Error:return"error";case ii.Off:return"off"}}new re("logLevel",hb(ii.Info));var Zf;(function(t){t[t.Complete=100]="Complete",t[t.Partial=50]="Partial",t[t.None=0]="None"})(Zf||(Zf={}));const mp={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},o2="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function gb(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of o2)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}gb();const pb=new S4;pb.unshift({maxLen:1e3,windowSize:15,timeBudget:150});const y="vs/editor/common/config/editorOptions",mb=8;class yb{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ue{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return wc(e,n)}compute(e,n,i){return i}}class ba{constructor(e,n){this.newValue=e,this.didChange=n}}function wc(t,e){if(typeof t!="object"||typeof e!="object"||!t||!e)return new ba(e,t!==e);if(Array.isArray(t)||Array.isArray(e)){const i=Array.isArray(t)&&Array.isArray(e)&&yu(t,e);return new ba(e,!i)}let n=!1;for(const i in e)if(e.hasOwnProperty(i)){const r=wc(t[i],e[i]);r.didChange&&(t[i]=r.newValue,n=!0)}return new ba(t,n)}class Vo{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return wc(e,n)}validate(e){return this.defaultValue}}class Os{constructor(e,n,i,r){this.id=e,this.name=n,this.defaultValue=i,this.schema=r}applyUpdate(e,n){return wc(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,i){return i}}function J(t,e){return typeof t>"u"?e:t==="false"?!1:!!t}class he extends Os{constructor(e,n,i,r=void 0){typeof r<"u"&&(r.type="boolean",r.default=i),super(e,n,i,r)}validate(e){return J(e,this.defaultValue)}}function bb(t,e,n,i){if(typeof t>"u")return e;let r=parseInt(t,10);return isNaN(r)?e:(r=Math.max(n,r),r=Math.min(i,r),r|0)}class Fe extends Os{static clampedInt(e,n,i,r){return bb(e,n,i,r)}constructor(e,n,i,r,s,o=void 0){typeof o<"u"&&(o.type="integer",o.default=i,o.minimum=r,o.maximum=s),super(e,n,i,o),this.minimum=r,this.maximum=s}validate(e){return Fe.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class si extends Os{static clamp(e,n,i){return e<n?n:e>i?i:e}static float(e,n){if(typeof e=="number")return e;if(typeof e>"u")return n;const i=parseFloat(e);return isNaN(i)?n:i}constructor(e,n,i,r,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,n,i,s),this.validationFn=r}validate(e){return this.validationFn(si.float(e,this.defaultValue))}}class Kt extends Os{static string(e,n){return typeof e!="string"?n:e}constructor(e,n,i,r=void 0){typeof r<"u"&&(r.type="string",r.default=i),super(e,n,i,r)}validate(e){return Kt.string(e,this.defaultValue)}}function it(t,e,n,i){return typeof t!="string"?e:i&&t in i?i[t]:n.indexOf(t)===-1?e:t}class Qe extends Os{constructor(e,n,i,r,s=void 0){typeof s<"u"&&(s.type="string",s.enum=r,s.default=i),super(e,n,i,s),this._allowedValues=r}validate(e){return it(e,this.defaultValue,this._allowedValues)}}class ta extends Ue{constructor(e,n,i,r,s,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=r),super(e,n,i,a),this._allowedValues=s,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function vb(t){switch(t){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class wb extends Ue{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f(y,0,"Use platform APIs to detect when a Screen Reader is attached."),f(y,1,"Optimize for usage with a Screen Reader."),f(y,2,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:f(y,3,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,n,i){return i===0?e.accessibilitySupport:i}}class Cb extends Ue{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f(y,4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f(y,5,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertSpace:J(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:J(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _b(t){switch(t){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var pi;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(pi||(pi={}));function Sb(t){switch(t){case"line":return pi.Line;case"block":return pi.Block;case"underline":return pi.Underline;case"line-thin":return pi.LineThin;case"block-outline":return pi.BlockOutline;case"underline-thin":return pi.UnderlineThin}}class Db extends Vo{constructor(){super(142)}compute(e,n,i){const r=["monaco-editor"];return n.get(39)&&r.push(n.get(39)),e.extraEditorClassName&&r.push(e.extraEditorClassName),n.get(74)==="default"?r.push("mouse-default"):n.get(74)==="copy"&&r.push("mouse-copy"),n.get(111)&&r.push("showUnused"),n.get(140)&&r.push("showDeprecated"),r.join(" ")}}class xb extends he{constructor(){super(37,"emptySelectionClipboard",!0,{description:f(y,6,"Controls whether copying without a selection copies the current line.")})}compute(e,n,i){return i&&e.emptySelectionClipboard}}class kb extends Ue{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f(y,7,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f(y,8,"Never seed search string from the editor selection."),f(y,9,"Always seed search string from the editor selection, including word at cursor position."),f(y,10,"Only seed search string from the editor selection.")],description:f(y,11,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f(y,12,"Never turn on Find in Selection automatically (default)."),f(y,13,"Always turn on Find in Selection automatically."),f(y,14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f(y,15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f(y,16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:bi},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f(y,17,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f(y,18,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{cursorMoveOnType:J(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":it(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":it(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:J(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:J(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:J(n.loop,this.defaultValue.loop)}}}const ki=class ki extends Ue{constructor(){super(51,"fontLigatures",ki.OFF,{anyOf:[{type:"boolean",description:f(y,19,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f(y,20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f(y,21,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?ki.OFF:e==="true"?ki.ON:e:e?ki.ON:ki.OFF}};ki.OFF='"liga" off, "calt" off',ki.ON='"liga" on, "calt" on';let eh=ki;const Ti=class Ti extends Ue{constructor(){super(54,"fontVariations",Ti.OFF,{anyOf:[{type:"boolean",description:f(y,22,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f(y,23,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f(y,24,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Ti.OFF:e==="true"?Ti.TRANSLATE:e:e?Ti.TRANSLATE:Ti.OFF}compute(e,n,i){return e.fontInfo.fontVariationSettings}};Ti.OFF="normal",Ti.TRANSLATE="translate";let th=Ti;class Tb extends Vo{constructor(){super(50)}compute(e,n,i){return e.fontInfo}}class Rb extends Os{constructor(){super(52,"fontSize",Li.fontSize,{type:"number",minimum:6,maximum:100,default:Li.fontSize,description:f(y,25,"Controls the font size in pixels.")})}validate(e){const n=si.float(e,this.defaultValue);return n===0?Li.fontSize:si.clamp(n,6,100)}compute(e,n,i){return e.fontInfo.fontSize}}const fi=class fi extends Ue{constructor(){super(53,"fontWeight",Li.fontWeight,{anyOf:[{type:"number",minimum:fi.MINIMUM_VALUE,maximum:fi.MAXIMUM_VALUE,errorMessage:f(y,26,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:fi.SUGGESTION_VALUES}],default:Li.fontWeight,description:f(y,27,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Fe.clampedInt(e,Li.fontWeight,fi.MINIMUM_VALUE,fi.MAXIMUM_VALUE))}};fi.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],fi.MINIMUM_VALUE=1,fi.MAXIMUM_VALUE=1e3;let nh=fi;class Eb extends Ue{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f(y,28,"Show Peek view of the results (default)"),f(y,29,"Go to the primary result and show a Peek view"),f(y,30,"Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f(y,31,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:f(y,32,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:f(y,33,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:f(y,34,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:f(y,35,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:f(y,36,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...n},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f(y,37,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f(y,38,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f(y,39,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f(y,40,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f(y,41,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{multiple:it(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??it(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??it(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??it(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??it(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??it(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Kt.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Kt.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Kt.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Kt.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Kt.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Pb extends Ue{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f(y,42,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f(y,43,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f(y,44,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:f(y,45,"Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:f(y,46,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),delay:Fe.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:J(n.sticky,this.defaultValue.sticky),hidingDelay:Fe.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:J(n.above,this.defaultValue.above)}}}class uo extends Vo{constructor(){super(145)}compute(e,n,i){return uo.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const n=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let r=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(r=Math.max(r,n-1));const s=(i+e.viewLineCount+r)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:n,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:r,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,n){const i=e.outerWidth,r=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};const o=n.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,c=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,g=e.minimap.renderCharacters;let p=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const w=e.minimap.maxColumn,v=e.minimap.size,x=e.minimap.side,T=e.verticalScrollbarWidth,q=e.viewLineCount,z=e.remainingWidth,A=e.isViewportWrapping,W=g?2:3;let j=Math.floor(s*r);const se=j/s;let B=!1,Z=!1,oe=W*p,qe=p/s,O=1;if(v==="fill"||v==="fit"){const{typicalViewportLineCount:ke,extraLinesBeforeFirstLine:pe,extraLinesBeyondLastLine:ot,desiredRatio:Ke,minimapLineCount:Pe}=uo.computeContainedMinimapLineCount({viewLineCount:q,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:r,lineHeight:c,pixelRatio:s});if(q/Pe>1)B=!0,Z=!0,p=1,oe=1,qe=p/s;else{let He=!1,ht=p+1;if(v==="fit"){const rt=Math.ceil((pe+q+ot)*oe);A&&a&&z<=n.stableFitRemainingWidth?(He=!0,ht=n.stableFitMaxMinimapScale):He=rt>j}if(v==="fill"||He){B=!0;const rt=p;oe=Math.min(c*s,Math.max(1,Math.floor(1/Ke))),A&&a&&z<=n.stableFitRemainingWidth&&(ht=n.stableFitMaxMinimapScale),p=Math.min(ht,Math.max(1,Math.floor(oe/W))),p>rt&&(O=Math.min(2,p/rt)),qe=p/s/O,j=Math.ceil(Math.max(ke,pe+q+ot)*oe),A?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=z,n.stableFitMaxMinimapScale=p):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const L=Math.floor(w*qe),D=Math.min(L,Math.max(0,Math.floor((z-T-2)*qe/(l+qe)))+mb);let P=Math.floor(s*D);const N=P/s;P=Math.floor(P*O);const $=g?1:2,ee=x==="left"?0:i-D-T;return{renderMinimap:$,minimapLeft:ee,minimapWidth:D,minimapHeightIsEditorHeight:B,minimapIsSampling:Z,minimapScale:p,minimapLineHeight:oe,minimapCanvasInnerWidth:P,minimapCanvasInnerHeight:j,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:se}}static computeLayout(e,n){const i=n.outerWidth|0,r=n.outerHeight|0,s=n.lineHeight|0,o=n.lineNumbersDigitCount|0,a=n.typicalHalfwidthCharacterWidth,c=n.maxDigitWidth,l=n.pixelRatio,h=n.viewLineCount,g=e.get(137),p=g==="inherit"?e.get(136):g,w=p==="inherit"?e.get(132):p,v=e.get(135),x=n.isDominatedByLongLines,T=e.get(57),q=e.get(68).renderType!==0,z=e.get(69),A=e.get(105),W=e.get(84),j=e.get(73),se=e.get(103),B=se.verticalScrollbarSize,Z=se.verticalHasArrows,oe=se.arrowSize,qe=se.horizontalScrollbarSize,O=e.get(43),L=e.get(110)!=="never";let D=e.get(66);O&&L&&(D+=16);let P=0;if(q){const gt=Math.max(o,z);P=Math.round(gt*c)}let N=0;T&&(N=s*n.glyphMarginDecorationLaneCount);let $=0,ee=$+N,ke=ee+P,pe=ke+D;const ot=i-N-P-D;let Ke=!1,Pe=!1,ft=-1;p==="inherit"&&x?(Ke=!0,Pe=!0):w==="on"||w==="bounded"?Pe=!0:w==="wordWrapColumn"&&(ft=v);const He=uo._computeMinimapLayout({outerWidth:i,outerHeight:r,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:l,scrollBeyondLastLine:A,paddingTop:W.top,paddingBottom:W.bottom,minimap:j,verticalScrollbarWidth:B,viewLineCount:h,remainingWidth:ot,isViewportWrapping:Pe},n.memory||new yb);He.renderMinimap!==0&&He.minimapLeft===0&&($+=He.minimapWidth,ee+=He.minimapWidth,ke+=He.minimapWidth,pe+=He.minimapWidth);const ht=ot-He.minimapWidth,rt=Math.max(1,Math.floor((ht-B-2)/a)),Ut=Z?oe:0;return Pe&&(ft=Math.max(1,rt),w==="bounded"&&(ft=Math.min(ft,v))),{width:i,height:r,glyphMarginLeft:$,glyphMarginWidth:N,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:ee,lineNumbersWidth:P,decorationsLeft:ke,decorationsWidth:D,contentLeft:pe,contentWidth:ht,minimap:He,viewportColumn:rt,isWordWrapMinified:Ke,isViewportWrapping:Pe,wrappingColumn:ft,verticalScrollbarWidth:B,horizontalScrollbarHeight:qe,overviewRuler:{top:Ut,width:B,height:r-2*Ut,right:0}}}}class Ib extends Ue{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f(y,47,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f(y,48,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f(y,49,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return it(e,"simple",["simple","advanced"])}compute(e,n,i){return n.get(2)===2?"advanced":i}}var xi;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(xi||(xi={}));class Fb extends Ue{constructor(){const e={enabled:xi.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[xi.Off,xi.OnCode,xi.On],default:e.enabled,enumDescriptions:[f(y,50,"Disable the code action menu."),f(y,51,"Show the code action menu when the cursor is on lines with code."),f(y,52,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:f(y,53,"Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:it(e.enabled,this.defaultValue.enabled,[xi.Off,xi.OnCode,xi.On])}}}class Mb extends Ue{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f(y,54,"Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:f(y,55,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:f(y,56,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:f(y,57,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),maxLineCount:Fe.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:it(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:J(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Ob extends Ue{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f(y,58,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f(y,59,"Inlay hints are enabled"),f(y,60,"Inlay hints are showing by default and hide when holding {0}",bi?"Ctrl+Option":"Ctrl+Alt"),f(y,61,"Inlay hints are hidden by default and show when holding {0}",bi?"Ctrl+Option":"Ctrl+Alt"),f(y,62,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f(y,63,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f(y,64,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f(y,65,"Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return typeof n.enabled=="boolean"&&(n.enabled=n.enabled?"on":"off"),{enabled:it(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Fe.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily),padding:J(n.padding,this.defaultValue.padding)}}}class Ab extends Ue{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Fe.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,i){return i<0?Fe.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class Lb extends si{constructor(){super(67,"lineHeight",Li.lineHeight,e=>si.clamp(e,0,150),{markdownDescription:f(y,66,`Controls the line height.
62
62
  - Use 0 to automatically compute the line height from the font size.
63
63
  - Values between 0 and 8 will be used as a multiplier with the font size.
64
- - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,n,i){return e.fontInfo.lineHeight}}class Lb extends Ue{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:f(y,67,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:f(y,68,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f(y,69,"The minimap has the same size as the editor contents (and might scroll)."),f(y,70,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f(y,71,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:f(y,72,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:f(y,73,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:f(y,74,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:f(y,75,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:f(y,76,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:f(y,77,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:f(y,78,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:f(y,79,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:f(y,80,"Controls the font size of section headers in the minimap.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),autohide:J(n.autohide,this.defaultValue.autohide),size:it(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:it(n.side,this.defaultValue.side,["right","left"]),showSlider:it(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:J(n.renderCharacters,this.defaultValue.renderCharacters),scale:Fe.clampedInt(n.scale,1,1,3),maxColumn:Fe.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:J(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:J(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:si.clamp(n.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32)}}}function Nb(t){return t==="ctrlCmd"?bi?"metaKey":"ctrlKey":"altKey"}class $b extends Ue{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f(y,81,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f(y,82,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{top:Fe.clampedInt(n.top,0,0,1e3),bottom:Fe.clampedInt(n.bottom,0,0,1e3)}}}class qb extends Ue{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:f(y,83,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:f(y,84,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),cycle:J(n.cycle,this.defaultValue.cycle)}}}class Hb extends Vo{constructor(){super(143)}compute(e,n,i){return e.pixelRatio}}class jb extends Ue{constructor(){const e={other:"on",comments:"off",strings:"off"},n=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f(y,85,"Quick suggestions show inside the suggest widget"),f(y,86,"Quick suggestions show as ghost text"),f(y,87,"Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:n,default:e.strings,description:f(y,88,"Enable quick suggestions inside strings.")},comments:{anyOf:n,default:e.comments,description:f(y,89,"Enable quick suggestions inside comments.")},other:{anyOf:n,default:e.other,description:f(y,90,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:f(y,91,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const l=e?"on":"off";return{comments:l,strings:l,other:l}}if(!e||typeof e!="object")return this.defaultValue;const{other:n,comments:i,strings:r}=e,s=["on","inline","off"];let o,a,c;return typeof n=="boolean"?o=n?"on":"off":o=it(n,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=it(i,this.defaultValue.comments,s),typeof r=="boolean"?c=r?"on":"off":c=it(r,this.defaultValue.strings,s),{other:o,comments:a,strings:c}}}class Wb extends Ue{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f(y,92,"Line numbers are not rendered."),f(y,93,"Line numbers are rendered as absolute number."),f(y,94,"Line numbers are rendered as distance in lines to cursor position."),f(y,95,"Line numbers are rendered every 10 lines.")],default:"on",description:f(y,96,"Controls the display of line numbers.")})}validate(e){let n=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(n=4,i=e):e==="interval"?n=3:e==="relative"?n=2:e==="on"?n=1:n=0),{renderType:n,renderFn:i}}}class Ub extends Ue{constructor(){const e=[],n={type:"number",description:f(y,97,"Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[n,{type:["object"],properties:{column:n,color:{type:"string",description:f(y,98,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:f(y,99,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="number")n.push({column:Fe.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const r=i;n.push({column:Fe.clampedInt(r.column,0,0,1e4),color:r.color})}return n.sort((i,r)=>i.column-r.column),n}return this.defaultValue}}class zb extends Ue{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function mp(t,e){if(typeof t!="string")return e;switch(t){case"hidden":return 2;case"visible":return 3;default:return 1}}class Bb extends Ue{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f(y,100,"The vertical scrollbar will be visible only when necessary."),f(y,101,"The vertical scrollbar will always be visible."),f(y,102,"The vertical scrollbar will always be hidden.")],default:"auto",description:f(y,103,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f(y,104,"The horizontal scrollbar will be visible only when necessary."),f(y,105,"The horizontal scrollbar will always be visible."),f(y,106,"The horizontal scrollbar will always be hidden.")],default:"auto",description:f(y,107,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:f(y,108,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:f(y,109,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:f(y,110,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:f(y,111,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e,i=Fe.clampedInt(n.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),r=Fe.clampedInt(n.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Fe.clampedInt(n.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:mp(n.vertical,this.defaultValue.vertical),horizontal:mp(n.horizontal,this.defaultValue.horizontal),useShadows:J(n.useShadows,this.defaultValue.useShadows),verticalHasArrows:J(n.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:J(n.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:J(n.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:J(n.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Fe.clampedInt(n.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:r,verticalSliderSize:Fe.clampedInt(n.verticalSliderSize,r,0,1e3),scrollByPage:J(n.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:J(n.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}const Yn="inUntrustedWorkspace",hr={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Vb extends Ue{constructor(){const e={nonBasicASCII:Yn,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Yn,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[hr.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.nonBasicASCII,description:f(y,112,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[hr.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:f(y,113,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[hr.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:f(y,114,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[hr.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.includeComments,description:f(y,115,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[hr.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.includeStrings,description:f(y,116,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[hr.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:f(y,117,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[hr.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:f(y,118,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,n){let i=!1;n.allowedCharacters&&e&&(lo(e.allowedCharacters,n.allowedCharacters)||(e={...e,allowedCharacters:n.allowedCharacters},i=!0)),n.allowedLocales&&e&&(lo(e.allowedLocales,n.allowedLocales)||(e={...e,allowedLocales:n.allowedLocales},i=!0));const r=super.applyUpdate(e,n);return i?new ba(r.newValue,!0):r}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{nonBasicASCII:hs(n.nonBasicASCII,Yn,[!0,!1,Yn]),invisibleCharacters:J(n.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:J(n.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:hs(n.includeComments,Yn,[!0,!1,Yn]),includeStrings:hs(n.includeStrings,Yn,[!0,!1,Yn]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,n){if(typeof e!="object"||!e)return n;const i={};for(const[r,s]of Object.entries(e))s===!0&&(i[r]=!0);return i}}class Kb extends Ue{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:f(y,119,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f(y,120,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),f(y,121,"Show the inline suggestion toolbar when hovering over an inline suggestion."),f(y,122,"Never show the inline suggestion toolbar.")],description:f(y,123,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:f(y,124,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:f(y,125,"Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),mode:it(n.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:it(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:J(n.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:J(n.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily)}}}class Gb extends Ue{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:f(y,126,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f(y,127,"Show the inline edit toolbar whenever an inline suggestion is shown."),f(y,128,"Show the inline edit toolbar when hovering over an inline suggestion."),f(y,129,"Never show the inline edit toolbar.")],description:f(y,130,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:f(y,131,"Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:f(y,132,"Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),showToolbar:it(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily),keepOnBlur:J(n.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:J(n.backgroundColoring,this.defaultValue.backgroundColoring)}}}class Qb extends Ue{constructor(){const e={enabled:pp.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:pp.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,133,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:f(y,134,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:J(n.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Jb extends Ue{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f(y,135,"Enables bracket pair guides."),f(y,136,"Enables bracket pair guides only for the active bracket pair."),f(y,137,"Disables bracket pair guides.")],default:e.bracketPairs,description:f(y,138,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f(y,139,"Enables horizontal guides as addition to vertical bracket pair guides."),f(y,140,"Enables horizontal guides only for the active bracket pair."),f(y,141,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:f(y,142,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:f(y,143,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:f(y,144,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f(y,145,"Highlights the active indent guide."),f(y,146,"Highlights the active indent guide even if bracket guides are highlighted."),f(y,147,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:f(y,148,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{bracketPairs:hs(n.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:hs(n.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:J(n.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:J(n.indentation,this.defaultValue.indentation),highlightActiveIndentation:hs(n.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function hs(t,e,n){const i=n.indexOf(t);return i===-1?e:n[i]}class Yb extends Ue{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f(y,149,"Insert suggestion without overwriting text right of the cursor."),f(y,150,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:f(y,151,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:f(y,152,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:f(y,153,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:f(y,154,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[f(y,155,"Always select a suggestion when automatically triggering IntelliSense."),f(y,156,"Never select a suggestion when automatically triggering IntelliSense."),f(y,157,"Select a suggestion only when triggering IntelliSense from a trigger character."),f(y,158,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:f(y,159,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:f(y,160,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:f(y,161,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:f(y,162,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:f(y,163,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:f(y,164,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f(y,165,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f(y,166,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f(y,167,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f(y,168,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f(y,169,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f(y,170,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f(y,171,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f(y,172,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f(y,173,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f(y,174,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f(y,175,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f(y,176,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f(y,177,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f(y,178,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f(y,179,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f(y,180,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f(y,181,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f(y,182,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f(y,183,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f(y,184,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f(y,185,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f(y,186,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f(y,187,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f(y,188,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f(y,189,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f(y,190,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f(y,191,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f(y,192,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f(y,193,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f(y,194,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f(y,195,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f(y,196,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertMode:it(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:J(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:J(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:J(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:J(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:it(n.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:J(n.showIcons,this.defaultValue.showIcons),showStatusBar:J(n.showStatusBar,this.defaultValue.showStatusBar),preview:J(n.preview,this.defaultValue.preview),previewMode:it(n.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:J(n.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:J(n.showMethods,this.defaultValue.showMethods),showFunctions:J(n.showFunctions,this.defaultValue.showFunctions),showConstructors:J(n.showConstructors,this.defaultValue.showConstructors),showDeprecated:J(n.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:J(n.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:J(n.showFields,this.defaultValue.showFields),showVariables:J(n.showVariables,this.defaultValue.showVariables),showClasses:J(n.showClasses,this.defaultValue.showClasses),showStructs:J(n.showStructs,this.defaultValue.showStructs),showInterfaces:J(n.showInterfaces,this.defaultValue.showInterfaces),showModules:J(n.showModules,this.defaultValue.showModules),showProperties:J(n.showProperties,this.defaultValue.showProperties),showEvents:J(n.showEvents,this.defaultValue.showEvents),showOperators:J(n.showOperators,this.defaultValue.showOperators),showUnits:J(n.showUnits,this.defaultValue.showUnits),showValues:J(n.showValues,this.defaultValue.showValues),showConstants:J(n.showConstants,this.defaultValue.showConstants),showEnums:J(n.showEnums,this.defaultValue.showEnums),showEnumMembers:J(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:J(n.showKeywords,this.defaultValue.showKeywords),showWords:J(n.showWords,this.defaultValue.showWords),showColors:J(n.showColors,this.defaultValue.showColors),showFiles:J(n.showFiles,this.defaultValue.showFiles),showReferences:J(n.showReferences,this.defaultValue.showReferences),showFolders:J(n.showFolders,this.defaultValue.showFolders),showTypeParameters:J(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:J(n.showSnippets,this.defaultValue.showSnippets),showUsers:J(n.showUsers,this.defaultValue.showUsers),showIssues:J(n.showIssues,this.defaultValue.showIssues)}}}class Xb extends Ue{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f(y,197,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:f(y,198,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:J(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:J(e.selectSubwords,this.defaultValue.selectSubwords)}}}class Zb extends Ue{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:f(y,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:f(y,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&n.push(i)}catch{}return n}return this.defaultValue}}class e7 extends Ue{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f(y,200,"No indentation. Wrapped lines begin at column 1."),f(y,201,"Wrapped lines get the same indentation as the parent."),f(y,202,"Wrapped lines get +1 indentation toward the parent."),f(y,203,"Wrapped lines get +2 indentation toward the parent.")],description:f(y,204,"Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,n,i){return n.get(2)===2?0:i}}class t7 extends Vo{constructor(){super(146)}compute(e,n,i){const r=n.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:r.isWordWrapMinified,isViewportWrapping:r.isViewportWrapping,wrappingColumn:r.wrappingColumn}}}class n7 extends Ue{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,205,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:f(y,206,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[f(y,207,"Show the drop selector widget after a file is dropped into the editor."),f(y,208,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),showDropSelector:it(n.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class i7 extends Ue{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,209,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:f(y,210,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[f(y,211,"Show the paste selector widget after content is pasted into the editor."),f(y,212,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),showPasteSelector:it(n.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const r7="Consolas, 'Courier New', monospace",s7="Menlo, Monaco, 'Courier New', monospace",o7="'Droid Sans Mono', 'monospace', monospace",Li={fontFamily:bi?s7:Da?o7:r7,fontWeight:"normal",fontSize:bi?12:14,lineHeight:0,letterSpacing:0},a7=[];function R(t){return a7[t.id]=t,t}R(new he(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f(y,213,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),R(new Qe(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f(y,214,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f(y,215,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),R(new vb),R(new Fe(3,"accessibilityPageSize",10,1,1073741824,{description:f(y,216,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),R(new Kt(4,"ariaLabel",f(y,217,"Editor content"))),R(new he(5,"ariaRequired",!1,void 0)),R(new he(8,"screenReaderAnnounceInlineSuggestion",!0,{description:f(y,218,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),R(new Qe(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,219,"Use language configurations to determine when to autoclose brackets."),f(y,220,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f(y,221,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),R(new Qe(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,222,"Use language configurations to determine when to autoclose comments."),f(y,223,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:f(y,224,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),R(new Qe(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f(y,225,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f(y,226,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),R(new Qe(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f(y,227,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:f(y,228,"Controls whether the editor should type over closing quotes or brackets.")})),R(new Qe(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,229,"Use language configurations to determine when to autoclose quotes."),f(y,230,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f(y,231,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),R(new ta(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],bb,{enumDescriptions:[f(y,232,"The editor will not insert indentation automatically."),f(y,233,"The editor will keep the current line's indentation."),f(y,234,"The editor will keep the current line's indentation and honor language defined brackets."),f(y,235,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f(y,236,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f(y,237,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),R(new he(13,"automaticLayout",!1)),R(new Qe(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f(y,238,"Use language configurations to determine when to automatically surround selections."),f(y,239,"Surround with quotes but not brackets."),f(y,240,"Surround with brackets but not quotes."),""],description:f(y,241,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),R(new Qb),R(new Jb),R(new he(116,"stickyTabStops",!1,{description:f(y,242,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),R(new he(17,"codeLens",!0,{description:f(y,243,"Controls whether the editor shows CodeLens.")})),R(new Kt(18,"codeLensFontFamily","",{description:f(y,244,"Controls the font family for CodeLens.")})),R(new Fe(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f(y,245,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),R(new he(20,"colorDecorators",!0,{description:f(y,246,"Controls whether the editor should render the inline color decorators and color picker.")})),R(new Qe(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[f(y,247,"Make the color picker appear both on click and hover of the color decorator"),f(y,248,"Make the color picker appear on hover of the color decorator"),f(y,249,"Make the color picker appear on click of the color decorator")],description:f(y,250,"Controls the condition to make a color picker appear from a color decorator")})),R(new Fe(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f(y,251,"Controls the max number of color decorators that can be rendered in an editor at once.")})),R(new he(22,"columnSelection",!1,{description:f(y,252,"Enable that the selection with the mouse and keys is doing column selection.")})),R(new wb),R(new he(24,"contextmenu",!0)),R(new he(25,"copyWithSyntaxHighlighting",!0,{description:f(y,253,"Controls whether syntax highlighting should be copied into the clipboard.")})),R(new ta(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Cb,{description:f(y,254,"Control the cursor animation style.")})),R(new Qe(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f(y,255,"Smooth caret animation is disabled."),f(y,256,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f(y,257,"Smooth caret animation is always enabled.")],description:f(y,258,"Controls whether the smooth caret animation should be enabled.")})),R(new ta(28,"cursorStyle",pi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],_b,{description:f(y,259,"Controls the cursor style.")})),R(new Fe(29,"cursorSurroundingLines",0,0,1073741824,{description:f(y,260,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),R(new Qe(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f(y,261,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f(y,262,"`cursorSurroundingLines` is enforced always.")],markdownDescription:f(y,263,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),R(new Fe(31,"cursorWidth",0,0,1073741824,{markdownDescription:f(y,264,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),R(new he(32,"disableLayerHinting",!1)),R(new he(33,"disableMonospaceOptimizations",!1)),R(new he(34,"domReadOnly",!1)),R(new he(35,"dragAndDrop",!0,{description:f(y,265,"Controls whether the editor should allow moving selections via drag and drop.")})),R(new Db),R(new n7),R(new Fb),R(new Qe(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f(y,266,"Use a new rendering method with svgs."),f(y,267,"Use a new rendering method with font characters."),f(y,268,"Use the stable rendering method.")],description:f(y,269,"Controls whether whitespace is rendered with a new, experimental method.")})),R(new Kt(39,"extraEditorClassName","")),R(new si(40,"fastScrollSensitivity",5,t=>t<=0?5:t,{markdownDescription:f(y,270,"Scrolling speed multiplier when pressing `Alt`.")})),R(new xb),R(new he(42,"fixedOverflowWidgets",!1)),R(new he(43,"folding",!0,{description:f(y,271,"Controls whether the editor has code folding enabled.")})),R(new Qe(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f(y,272,"Use a language-specific folding strategy if available, else the indentation-based one."),f(y,273,"Use the indentation-based folding strategy.")],description:f(y,274,"Controls the strategy for computing folding ranges.")})),R(new he(45,"foldingHighlight",!0,{description:f(y,275,"Controls whether the editor should highlight folded ranges.")})),R(new he(46,"foldingImportsByDefault",!1,{description:f(y,276,"Controls whether the editor automatically collapses import ranges.")})),R(new Fe(47,"foldingMaximumRegions",5e3,10,65e3,{description:f(y,277,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),R(new he(48,"unfoldOnClickAfterEndOfLine",!1,{description:f(y,278,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),R(new Kt(49,"fontFamily",Li.fontFamily,{description:f(y,279,"Controls the font family.")})),R(new kb),R(new eh),R(new Tb),R(new nh),R(new th),R(new he(55,"formatOnPaste",!1,{description:f(y,280,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),R(new he(56,"formatOnType",!1,{description:f(y,281,"Controls whether the editor should automatically format the line after typing.")})),R(new he(57,"glyphMargin",!0,{description:f(y,282,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),R(new Rb),R(new he(59,"hideCursorInOverviewRuler",!1,{description:f(y,283,"Controls whether the cursor should be hidden in the overview ruler.")})),R(new Eb),R(new he(61,"inDiffEditor",!1)),R(new si(64,"letterSpacing",Li.letterSpacing,t=>si.clamp(t,-5,20),{description:f(y,284,"Controls the letter spacing in pixels.")})),R(new Ib),R(new Ob),R(new Ab),R(new Wb),R(new Fe(69,"lineNumbersMinChars",5,1,300)),R(new he(70,"linkedEditing",!1,{description:f(y,285,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),R(new he(71,"links",!0,{description:f(y,286,"Controls whether the editor should detect links and make them clickable.")})),R(new Qe(72,"matchBrackets","always",["always","near","never"],{description:f(y,287,"Highlight matching brackets.")})),R(new Lb),R(new Qe(74,"mouseStyle","text",["text","default","copy"])),R(new si(75,"mouseWheelScrollSensitivity",1,t=>t===0?1:t,{markdownDescription:f(y,288,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),R(new he(76,"mouseWheelZoom",!1,{markdownDescription:bi?f(y,289,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):f(y,290,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),R(new he(77,"multiCursorMergeOverlapping",!0,{description:f(y,291,"Merge multiple cursors when they are overlapping.")})),R(new ta(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Nb,{markdownEnumDescriptions:[f(y,292,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),f(y,293,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f(y,294,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),R(new Qe(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f(y,295,"Each cursor pastes a single line of the text."),f(y,296,"Each cursor pastes the full text.")],markdownDescription:f(y,297,"Controls pasting when the line count of the pasted text matches the cursor count.")})),R(new Fe(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f(y,298,"Controls the max number of cursors that can be in an active editor at once.")})),R(new Qe(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[f(y,299,"Does not highlight occurrences."),f(y,300,"Highlights occurrences only in the current file."),f(y,301,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:f(y,302,"Controls whether occurrences should be highlighted across open files.")})),R(new he(82,"overviewRulerBorder",!0,{description:f(y,303,"Controls whether a border should be drawn around the overview ruler.")})),R(new Fe(83,"overviewRulerLanes",3,0,3)),R(new $b),R(new i7),R(new qb),R(new Qe(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f(y,304,"Focus the tree when opening peek"),f(y,305,"Focus the editor when opening peek")],description:f(y,306,"Controls whether to focus the inline editor or the tree in the peek widget.")})),R(new he(88,"definitionLinkOpensInPeek",!1,{description:f(y,307,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),R(new jb),R(new Fe(90,"quickSuggestionsDelay",10,0,1073741824,{description:f(y,308,"Controls the delay in milliseconds after which quick suggestions will show up.")})),R(new he(91,"readOnly",!1)),R(new zb),R(new he(93,"renameOnType",!1,{description:f(y,309,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:f(y,310,"Deprecated, use `editor.linkedEditing` instead.")})),R(new he(94,"renderControlCharacters",!0,{description:f(y,311,"Controls whether the editor should render control characters."),restricted:!0})),R(new Qe(95,"renderFinalNewline",Da?"dimmed":"on",["off","on","dimmed"],{description:f(y,312,"Render last line number when the file ends with a newline.")})),R(new Qe(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f(y,313,"Highlights both the gutter and the current line.")],description:f(y,314,"Controls how the editor should render the current line highlight.")})),R(new he(97,"renderLineHighlightOnlyWhenFocus",!1,{description:f(y,315,"Controls if the editor should render the current line highlight only when the editor is focused.")})),R(new Qe(98,"renderValidationDecorations","editable",["editable","on","off"])),R(new Qe(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f(y,316,"Render whitespace characters except for single spaces between words."),f(y,317,"Render whitespace characters only on selected text."),f(y,318,"Render only trailing whitespace characters."),""],description:f(y,319,"Controls how the editor should render whitespace characters.")})),R(new Fe(100,"revealHorizontalRightPadding",15,0,1e3)),R(new he(101,"roundedSelection",!0,{description:f(y,320,"Controls whether selections should have rounded corners.")})),R(new Ub),R(new Bb),R(new Fe(104,"scrollBeyondLastColumn",4,0,1073741824,{description:f(y,321,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),R(new he(105,"scrollBeyondLastLine",!0,{description:f(y,322,"Controls whether the editor will scroll beyond the last line.")})),R(new he(106,"scrollPredominantAxis",!0,{description:f(y,323,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),R(new he(107,"selectionClipboard",!0,{description:f(y,324,"Controls whether the Linux primary clipboard should be supported."),included:Da})),R(new he(108,"selectionHighlight",!0,{description:f(y,325,"Controls whether the editor should highlight matches similar to the selection.")})),R(new he(109,"selectOnLineNumbers",!0)),R(new Qe(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f(y,326,"Always show the folding controls."),f(y,327,"Never show the folding controls and reduce the gutter size."),f(y,328,"Only show the folding controls when the mouse is over the gutter.")],description:f(y,329,"Controls when the folding controls on the gutter are shown.")})),R(new he(111,"showUnused",!0,{description:f(y,330,"Controls fading out of unused code.")})),R(new he(140,"showDeprecated",!0,{description:f(y,331,"Controls strikethrough deprecated variables.")})),R(new Mb),R(new Qe(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f(y,332,"Show snippet suggestions on top of other suggestions."),f(y,333,"Show snippet suggestions below other suggestions."),f(y,334,"Show snippets suggestions with other suggestions."),f(y,335,"Do not show snippet suggestions.")],description:f(y,336,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),R(new Xb),R(new he(114,"smoothScrolling",!1,{description:f(y,337,"Controls whether the editor will scroll using an animation.")})),R(new Fe(117,"stopRenderingLineAfter",1e4,-1,1073741824)),R(new Yb),R(new Kb),R(new Gb),R(new he(149,"inlineCompletionsAccessibilityVerbose",!1,{description:f(y,338,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),R(new Fe(119,"suggestFontSize",0,0,1e3,{markdownDescription:f(y,339,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),R(new Fe(120,"suggestLineHeight",0,0,1e3,{markdownDescription:f(y,340,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),R(new he(121,"suggestOnTriggerCharacters",!0,{description:f(y,341,"Controls whether suggestions should automatically show up when typing trigger characters.")})),R(new Qe(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f(y,342,"Always select the first suggestion."),f(y,343,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f(y,344,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f(y,345,"Controls how suggestions are pre-selected when showing the suggest list.")})),R(new Qe(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f(y,346,"Tab complete will insert the best matching suggestion when pressing tab."),f(y,347,"Disable tab completions."),f(y,348,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f(y,349,"Enables tab completions.")})),R(new Fe(124,"tabIndex",0,-1,1073741824)),R(new Vb),R(new Qe(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f(y,350,"Unusual line terminators are automatically removed."),f(y,351,"Unusual line terminators are ignored."),f(y,352,"Unusual line terminators prompt to be removed.")],description:f(y,353,"Remove unusual line terminators that might cause problems.")})),R(new he(127,"useShadowDOM",!0)),R(new he(128,"useTabStops",!0,{description:f(y,354,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),R(new Qe(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f(y,355,"Use the default line break rule."),f(y,356,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f(y,357,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),R(new Zb),R(new Kt(131,"wordSeparators",s2,{description:f(y,358,"Characters that will be used as word separators when doing word related navigations or operations.")})),R(new Qe(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f(y,359,"Lines will never wrap."),f(y,360,"Lines will wrap at the viewport width."),f(y,361,"Lines will wrap at `#editor.wordWrapColumn#`."),f(y,362,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f(y,363,"Controls how lines should wrap.")})),R(new Kt(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),R(new Kt(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),R(new Fe(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:f(y,364,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),R(new Qe(136,"wordWrapOverride1","inherit",["off","on","inherit"])),R(new Qe(137,"wordWrapOverride2","inherit",["off","on","inherit"])),R(new Sb),R(new he(147,"defaultColorDecorators",!1,{markdownDescription:f(y,365,"Controls whether inline color decorations should be shown using the default document color provider")})),R(new Hb),R(new he(144,"tabFocusMode",!1,{markdownDescription:f(y,366,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),R(new uo),R(new t7),R(new e7),R(new Pb);let c7=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},ih;function l7(t){ih=t}function $t(t){return new Proxy({},{get(e,n){if(ih==null)throw new Error("Default api is not ready yet, do not forget to import 'vscode/localExtensionHost' and wait for services initialization");return ih[t][n]}})}const u7={version:"1.89.1",tasks:$t("tasks"),notebooks:$t("notebooks"),scm:$t("scm"),comments:$t("comments"),authentication:$t("authentication"),tests:$t("tests"),extensions:$t("extensions"),debug:$t("debug"),env:$t("env"),commands:$t("commands"),window:$t("window"),workspace:$t("workspace"),languages:$t("languages"),l10n:$t("l10n"),interactive:$t("interactive"),ai:$t("ai"),chat:$t("chat"),speech:$t("speech"),Breakpoint:ps,TerminalOutputAnchor:Wu,ChatResultFeedbackKind:Wf,ChatVariableLevel:Hf,ChatCompletionItem:cb,CallHierarchyIncomingCall:S5,CallHierarchyItem:_5,CallHierarchyOutgoingCall:D5,CancellationError:O0,CancellationTokenSource:E4,CandidatePortSource:Gf,CodeAction:nd,CodeActionKind:lt,CodeActionTriggerKind:td,CodeLens:sd,Color:Na,ColorInformation:Td,ColorPresentation:Rd,ColorThemeKind:yf,CommentMode:cf,CommentState:lf,CommentThreadCollapsibleState:af,CommentThreadState:uf,CompletionItem:pd,CompletionItemKind:La,CompletionItemTag:gd,CompletionList:md,CompletionTriggerKind:hd,ConfigurationTarget:Ud,CustomExecution:n2,DebugAdapterExecutable:Kd,DebugAdapterInlineImplementation:Jd,DebugAdapterNamedPipeServer:Qd,DebugAdapterServer:Gd,DebugConfigurationProviderTriggerKind:Qf,DebugConsoleMode:ff,DebugVisualization:L5,DecorationRangeBehavior:xd,Diagnostic:Qu,DiagnosticRelatedInformation:Fa,DiagnosticSeverity:bo,DiagnosticTag:Gu,Disposable:Uu,DocumentHighlight:Ju,DocumentHighlightKind:wo,MultiDocumentHighlight:Yu,DocumentLink:kd,DocumentSymbol:ed,EndOfLine:Bu,EnvironmentVariableMutatorType:Vu,EvaluatableExpression:Yd,InlineValueText:Zd,InlineValueVariableLookup:ef,InlineValueEvaluatableExpression:tf,InlineCompletionTriggerKind:Xd,EventEmitter:hi,ExtensionKind:mf,ExtensionMode:Rf,ExternalUriOpenerPriority:Af,FileChangeType:nf,FileDecoration:np,FileDecoration2:np,FileSystemError:rf,FileType:Iu,FilePermission:Fu,FoldingRange:sf,FoldingRangeKind:of,FunctionBreakpoint:Vd,InlineCompletionItem:yd,InlineCompletionList:bd,Hover:Ma,IndentAction:Vf,Location:vo,MarkdownString:Aa,OverviewRulerLane:Jf,ParameterInformation:od,PortAutoForwardAction:Nf,Position:Ye,ProcessExecution:$a,ProgressLocation:Nd,QuickInputButtons:hf,Range:_t,RelativePattern:zd,Selection:zu,SelectionRange:id,SemanticTokens:df,SemanticTokensBuilder:M5,SemanticTokensEdit:O5,SemanticTokensEdits:A5,SemanticTokensLegend:I5,ShellExecution:qa,ShellQuoting:Ad,SignatureHelp:cd,SignatureHelpTriggerKind:ld,SignatureInformation:ad,SnippetString:Ia,SourceBreakpoint:Bd,StandardTokenType:Pf,StatusBarAlignment:wd,SymbolInformation:Zu,SymbolKind:Oa,SymbolTag:Xu,Task:Ld,TaskGroup:Od,TaskPanelKind:Md,TaskRevealKind:Fd,TaskScope:So,TerminalLink:x5,TerminalQuickFixTerminalCommand:T5,TerminalQuickFixOpener:k5,TerminalLocation:Id,TerminalProfile:R5,TerminalExitReason:Pd,TextDocumentSaveReason:_d,TextEdit:Ea,SnippetTextEdit:e2,TextEditorCursorStyle:pi,TextEditorLineNumbersStyle:Cd,TextEditorRevealType:Sd,TextEditorSelectionChangeKind:Co,SyntaxTokenType:_o,TextDocumentChangeReason:Dd,ThemeColor:Wd,ThemeIcon:ji,TreeItem:$d,TreeItemCheckboxState:Do,TreeItemCollapsibleState:fs,TypeHierarchyItem:Y5,UIKind:Yf,Uri:st,ViewColumn:vd,WorkspaceEdit:Ku,DocumentDropEdit:jd,DocumentPasteEdit:E5,InlayHint:fd,InlayHintLabelPart:dd,InlayHintKind:ud,RemoteAuthorityResolverError:C5,ResolvedAuthority:v5,ManagedResolvedAuthority:w5,SourceControlInputBoxValidationType:Ed,ExtensionRuntime:Ef,TimelineItem:Tf,NotebookRange:to,NotebookCellKind:Cf,NotebookCellExecutionState:_f,NotebookCellData:N5,NotebookData:$5,NotebookRendererScript:W5,NotebookCellStatusBarAlignment:Sf,NotebookEditorRevealType:Df,NotebookCellOutput:H5,NotebookCellOutputItem:q5,NotebookCellStatusBarItem:j5,NotebookControllerAffinity:xf,NotebookControllerAffinity2:kf,NotebookEdit:Pa,NotebookKernelSourceAction:U5,PortAttributes:B5,LinkedEditingRanges:z5,TestResultState:If,TestRunRequest:Mf,TestMessage:ja,TestMessage2:ja,TestTag:Of,TestRunProfileKind:Ff,TextSearchCompleteMessageType:Xf,DataTransfer:Hd,DataTransferItem:qd,FileCoverage:K5,StatementCoverage:G5,BranchCoverage:Q5,FunctionCoverage:J5,WorkspaceTrustState:Lf,LanguageStatusSeverity:rd,QuickPickItemKind:gf,InputBoxValidationSeverity:pf,TabInputText:X5,TabInputTextDiff:Z5,TabInputTextMerge:eb,TabInputCustom:tb,TabInputNotebook:ib,TabInputNotebookDiff:rb,TabInputWebview:nb,TabInputTerminal:sb,TabInputInteractiveWindow:ob,TabInputChat:ab,TelemetryTrustedValue:c7,LogLevel:ii,EditSessionIdentityMatch:Zf,InteractiveSessionVoteDirection:$f,ChatCopyKind:qf,InteractiveEditorResponseFeedbackKind:jf,RelatedInformationType:Uf,SpeechToTextStatus:zf,KeywordRecognitionStatus:Bf},{version:d7,tasks:f7,notebooks:h7,scm:g7,comments:p7,authentication:m7,tests:y7,extensions:b7,debug:v7,env:w7,commands:C7,window:_7,workspace:S7,languages:D7,l10n:x7,interactive:k7,ai:T7,chat:R7,speech:E7,Breakpoint:P7,TerminalOutputAnchor:I7,ChatResultFeedbackKind:F7,ChatVariableLevel:M7,ChatCompletionItem:O7,CallHierarchyIncomingCall:A7,CallHierarchyItem:L7,CallHierarchyOutgoingCall:N7,CancellationError:$7,CancellationTokenSource:q7,CandidatePortSource:H7,CodeAction:j7,CodeActionKind:W7,CodeActionTriggerKind:U7,CodeLens:z7,Color:B7,ColorInformation:V7,ColorPresentation:K7,ColorThemeKind:G7,CommentMode:Q7,CommentState:J7,CommentThreadCollapsibleState:Y7,CommentThreadState:X7,CompletionItem:Z7,CompletionItemKind:ev,CompletionItemTag:tv,CompletionList:nv,CompletionTriggerKind:iv,ConfigurationTarget:rv,CustomExecution:sv,DebugAdapterExecutable:ov,DebugAdapterInlineImplementation:av,DebugAdapterNamedPipeServer:cv,DebugAdapterServer:lv,DebugConfigurationProviderTriggerKind:uv,DebugConsoleMode:dv,DebugVisualization:fv,DecorationRangeBehavior:hv,Diagnostic:gv,DiagnosticRelatedInformation:pv,DiagnosticSeverity:mv,DiagnosticTag:yv,Disposable:bv,DocumentHighlight:vv,DocumentHighlightKind:wv,MultiDocumentHighlight:Cv,DocumentLink:_v,DocumentSymbol:Sv,EndOfLine:Dv,EnvironmentVariableMutatorType:xv,EvaluatableExpression:kv,InlineValueText:Tv,InlineValueVariableLookup:Rv,InlineValueEvaluatableExpression:Ev,InlineCompletionTriggerKind:Pv,EventEmitter:Iv,ExtensionKind:Fv,ExtensionMode:Mv,ExternalUriOpenerPriority:Ov,FileChangeType:Av,FileDecoration:Lv,FileDecoration2:Nv,FileSystemError:$v,FileType:qv,FilePermission:Hv,FoldingRange:jv,FoldingRangeKind:Wv,FunctionBreakpoint:Uv,InlineCompletionItem:zv,InlineCompletionList:Bv,Hover:Vv,IndentAction:Kv,Location:Gv,MarkdownString:Qv,OverviewRulerLane:Jv,ParameterInformation:Yv,PortAutoForwardAction:Xv,Position:Zv,ProcessExecution:e9,ProgressLocation:t9,QuickInputButtons:n9,Range:i9,RelativePattern:r9,Selection:s9,SelectionRange:o9,SemanticTokens:a9,SemanticTokensBuilder:c9,SemanticTokensEdit:l9,SemanticTokensEdits:u9,SemanticTokensLegend:d9,ShellExecution:f9,ShellQuoting:h9,SignatureHelp:g9,SignatureHelpTriggerKind:p9,SignatureInformation:m9,SnippetString:y9,SourceBreakpoint:b9,StandardTokenType:v9,StatusBarAlignment:w9,SymbolInformation:C9,SymbolKind:_9,SymbolTag:S9,Task:D9,TaskGroup:x9,TaskPanelKind:k9,TaskRevealKind:T9,TaskScope:R9,TerminalLink:E9,TerminalQuickFixTerminalCommand:P9,TerminalQuickFixOpener:I9,TerminalLocation:F9,TerminalProfile:M9,TerminalExitReason:O9,TextDocumentSaveReason:A9,TextEdit:L9,SnippetTextEdit:N9,TextEditorCursorStyle:$9,TextEditorLineNumbersStyle:q9,TextEditorRevealType:H9,TextEditorSelectionChangeKind:j9,SyntaxTokenType:W9,TextDocumentChangeReason:U9,ThemeColor:z9,ThemeIcon:B9,TreeItem:V9,TreeItemCheckboxState:K9,TreeItemCollapsibleState:G9,TypeHierarchyItem:Q9,UIKind:J9,Uri:Y9,ViewColumn:X9,WorkspaceEdit:Z9,DocumentDropEdit:ew,DocumentPasteEdit:tw,InlayHint:nw,InlayHintLabelPart:iw,InlayHintKind:rw,RemoteAuthorityResolverError:sw,ResolvedAuthority:ow,ManagedResolvedAuthority:aw,SourceControlInputBoxValidationType:cw,ExtensionRuntime:lw,TimelineItem:uw,NotebookRange:dw,NotebookCellKind:fw,NotebookCellExecutionState:hw,NotebookCellData:gw,NotebookData:pw,NotebookRendererScript:mw,NotebookCellStatusBarAlignment:yw,NotebookEditorRevealType:bw,NotebookCellOutput:vw,NotebookCellOutputItem:ww,NotebookCellStatusBarItem:Cw,NotebookControllerAffinity:_w,NotebookControllerAffinity2:Sw,NotebookEdit:Dw,NotebookKernelSourceAction:xw,PortAttributes:kw,LinkedEditingRanges:Tw,TestResultState:Rw,TestRunRequest:Ew,TestMessage:Pw,TestMessage2:Iw,TestTag:Fw,TestRunProfileKind:Mw,TextSearchCompleteMessageType:Ow,DataTransfer:Aw,DataTransferItem:Lw,FileCoverage:Nw,StatementCoverage:$w,BranchCoverage:qw,FunctionCoverage:Hw,WorkspaceTrustState:jw,LanguageStatusSeverity:Ww,QuickPickItemKind:Uw,InputBoxValidationSeverity:zw,TabInputText:Bw,TabInputTextDiff:Vw,TabInputTextMerge:Kw,TabInputCustom:Gw,TabInputNotebook:Qw,TabInputNotebookDiff:Jw,TabInputWebview:Yw,TabInputTerminal:Xw,TabInputInteractiveWindow:Zw,TabInputChat:e8,TelemetryTrustedValue:t8,LogLevel:n8,EditSessionIdentityMatch:i8,InteractiveSessionVoteDirection:r8,ChatCopyKind:s8,InteractiveEditorResponseFeedbackKind:o8,RelatedInformationType:a8,SpeechToTextStatus:c8,KeywordRecognitionStatus:l8}=u7,u8=Object.freeze(Object.defineProperty({__proto__:null,BranchCoverage:qw,Breakpoint:P7,CallHierarchyIncomingCall:A7,CallHierarchyItem:L7,CallHierarchyOutgoingCall:N7,CancellationError:$7,CancellationTokenSource:q7,CandidatePortSource:H7,ChatCompletionItem:O7,ChatCopyKind:s8,ChatResultFeedbackKind:F7,ChatVariableLevel:M7,CodeAction:j7,CodeActionKind:W7,CodeActionTriggerKind:U7,CodeLens:z7,Color:B7,ColorInformation:V7,ColorPresentation:K7,ColorThemeKind:G7,CommentMode:Q7,CommentState:J7,CommentThreadCollapsibleState:Y7,CommentThreadState:X7,CompletionItem:Z7,CompletionItemKind:ev,CompletionItemTag:tv,CompletionList:nv,CompletionTriggerKind:iv,ConfigurationTarget:rv,CustomExecution:sv,DataTransfer:Aw,DataTransferItem:Lw,DebugAdapterExecutable:ov,DebugAdapterInlineImplementation:av,DebugAdapterNamedPipeServer:cv,DebugAdapterServer:lv,DebugConfigurationProviderTriggerKind:uv,DebugConsoleMode:dv,DebugVisualization:fv,DecorationRangeBehavior:hv,Diagnostic:gv,DiagnosticRelatedInformation:pv,DiagnosticSeverity:mv,DiagnosticTag:yv,Disposable:bv,DocumentDropEdit:ew,DocumentHighlight:vv,DocumentHighlightKind:wv,DocumentLink:_v,DocumentPasteEdit:tw,DocumentSymbol:Sv,EditSessionIdentityMatch:i8,EndOfLine:Dv,EnvironmentVariableMutatorType:xv,EvaluatableExpression:kv,EventEmitter:Iv,ExtensionKind:Fv,ExtensionMode:Mv,ExtensionRuntime:lw,ExternalUriOpenerPriority:Ov,FileChangeType:Av,FileCoverage:Nw,FileDecoration:Lv,FileDecoration2:Nv,FilePermission:Hv,FileSystemError:$v,FileType:qv,FoldingRange:jv,FoldingRangeKind:Wv,FunctionBreakpoint:Uv,FunctionCoverage:Hw,Hover:Vv,IndentAction:Kv,InlayHint:nw,InlayHintKind:rw,InlayHintLabelPart:iw,InlineCompletionItem:zv,InlineCompletionList:Bv,InlineCompletionTriggerKind:Pv,InlineValueEvaluatableExpression:Ev,InlineValueText:Tv,InlineValueVariableLookup:Rv,InputBoxValidationSeverity:zw,InteractiveEditorResponseFeedbackKind:o8,InteractiveSessionVoteDirection:r8,KeywordRecognitionStatus:l8,LanguageStatusSeverity:Ww,LinkedEditingRanges:Tw,Location:Gv,LogLevel:n8,ManagedResolvedAuthority:aw,MarkdownString:Qv,MultiDocumentHighlight:Cv,NotebookCellData:gw,NotebookCellExecutionState:hw,NotebookCellKind:fw,NotebookCellOutput:vw,NotebookCellOutputItem:ww,NotebookCellStatusBarAlignment:yw,NotebookCellStatusBarItem:Cw,NotebookControllerAffinity:_w,NotebookControllerAffinity2:Sw,NotebookData:pw,NotebookEdit:Dw,NotebookEditorRevealType:bw,NotebookKernelSourceAction:xw,NotebookRange:dw,NotebookRendererScript:mw,OverviewRulerLane:Jv,ParameterInformation:Yv,PortAttributes:kw,PortAutoForwardAction:Xv,Position:Zv,ProcessExecution:e9,ProgressLocation:t9,QuickInputButtons:n9,QuickPickItemKind:Uw,Range:i9,RelatedInformationType:a8,RelativePattern:r9,RemoteAuthorityResolverError:sw,ResolvedAuthority:ow,Selection:s9,SelectionRange:o9,SemanticTokens:a9,SemanticTokensBuilder:c9,SemanticTokensEdit:l9,SemanticTokensEdits:u9,SemanticTokensLegend:d9,ShellExecution:f9,ShellQuoting:h9,SignatureHelp:g9,SignatureHelpTriggerKind:p9,SignatureInformation:m9,SnippetString:y9,SnippetTextEdit:N9,SourceBreakpoint:b9,SourceControlInputBoxValidationType:cw,SpeechToTextStatus:c8,StandardTokenType:v9,StatementCoverage:$w,StatusBarAlignment:w9,SymbolInformation:C9,SymbolKind:_9,SymbolTag:S9,SyntaxTokenType:W9,TabInputChat:e8,TabInputCustom:Gw,TabInputInteractiveWindow:Zw,TabInputNotebook:Qw,TabInputNotebookDiff:Jw,TabInputTerminal:Xw,TabInputText:Bw,TabInputTextDiff:Vw,TabInputTextMerge:Kw,TabInputWebview:Yw,Task:D9,TaskGroup:x9,TaskPanelKind:k9,TaskRevealKind:T9,TaskScope:R9,TelemetryTrustedValue:t8,TerminalExitReason:O9,TerminalLink:E9,TerminalLocation:F9,TerminalOutputAnchor:I7,TerminalProfile:M9,TerminalQuickFixOpener:I9,TerminalQuickFixTerminalCommand:P9,TestMessage:Pw,TestMessage2:Iw,TestResultState:Rw,TestRunProfileKind:Mw,TestRunRequest:Ew,TestTag:Fw,TextDocumentChangeReason:U9,TextDocumentSaveReason:A9,TextEdit:L9,TextEditorCursorStyle:$9,TextEditorLineNumbersStyle:q9,TextEditorRevealType:H9,TextEditorSelectionChangeKind:j9,TextSearchCompleteMessageType:Ow,ThemeColor:z9,ThemeIcon:B9,TimelineItem:uw,TreeItem:V9,TreeItemCheckboxState:K9,TreeItemCollapsibleState:G9,TypeHierarchyItem:Q9,UIKind:J9,Uri:Y9,ViewColumn:X9,WorkspaceEdit:Z9,WorkspaceTrustState:jw,ai:T7,authentication:m7,chat:R7,commands:C7,comments:p7,debug:v7,env:w7,extensions:b7,interactive:k7,l10n:x7,languages:D7,notebooks:h7,scm:g7,setDefaultApi:l7,speech:E7,tasks:f7,tests:y7,version:d7,window:_7,workspace:S7},Symbol.toStringTag,{value:"Module"})),ye=I0(u8);var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.asPromise=Ve.thenable=Ve.typedArray=Ve.stringArray=Ve.array=Ve.func=Ve.error=Ve.number=Ve.string=Ve.boolean=void 0;function d8(t){return t===!0||t===!1}Ve.boolean=d8;function o2(t){return typeof t=="string"||t instanceof String}Ve.string=o2;function f8(t){return typeof t=="number"||t instanceof Number}Ve.number=f8;function h8(t){return t instanceof Error}Ve.error=h8;function a2(t){return typeof t=="function"}Ve.func=a2;function c2(t){return Array.isArray(t)}Ve.array=c2;function g8(t){return c2(t)&&t.every(e=>o2(e))}Ve.stringArray=g8;function p8(t,e){return Array.isArray(t)&&t.every(e)}Ve.typedArray=p8;function l2(t){return t&&a2(t.then)}Ve.thenable=l2;function m8(t){return t instanceof Promise?t:l2(t)?new Promise((e,n)=>{t.then(i=>e(i),i=>n(i))}):Promise.resolve(t)}Ve.asPromise=m8;var $e={};Object.defineProperty($e,"__esModule",{value:!0});$e.generateUuid=$e.parse=$e.isUUID=$e.v4=$e.empty=void 0;class A1{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class Ee extends A1{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Ee._oneOf(Ee._chars)}constructor(){super([Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-","4",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._oneOf(Ee._timeHighBits),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex()].join(""))}}Ee._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Ee._timeHighBits=["8","9","a","b"];$e.empty=new A1("00000000-0000-0000-0000-000000000000");function u2(){return new Ee}$e.v4=u2;const y8=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function d2(t){return y8.test(t)}$e.isUUID=d2;function b8(t){if(!d2(t))throw new Error("invalid uuid");return new A1(t)}$e.parse=b8;function v8(){return u2().asHex()}$e.generateUuid=v8;Object.defineProperty(ge,"__esModule",{value:!0});ge.WorkspaceFeature=ge.TextDocumentLanguageFeature=ge.TextDocumentEventFeature=ge.DynamicDocumentFeature=ge.DynamicFeature=ge.StaticFeature=ge.ensure=ge.LSPCancellationError=void 0;const Or=ye,Fl=de,fn=Ve,yp=$e;class w8 extends Or.CancellationError{constructor(e){super(),this.data=e}}ge.LSPCancellationError=w8;function C8(t,e){return t[e]===void 0&&(t[e]={}),t[e]}ge.ensure=C8;var bp;(function(t){function e(n){const i=n;return i!=null&&fn.func(i.fillClientCapabilities)&&fn.func(i.initialize)&&fn.func(i.getState)&&fn.func(i.clear)&&(i.fillInitializeParams===void 0||fn.func(i.fillInitializeParams))}t.is=e})(bp||(ge.StaticFeature=bp={}));var vp;(function(t){function e(n){const i=n;return i!=null&&fn.func(i.fillClientCapabilities)&&fn.func(i.initialize)&&fn.func(i.getState)&&fn.func(i.clear)&&(i.fillInitializeParams===void 0||fn.func(i.fillInitializeParams))&&fn.func(i.register)&&fn.func(i.unregister)&&i.registrationType!==void 0}t.is=e})(vp||(ge.DynamicFeature=vp={}));class L1{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let n=0;for(const r of e){n++;for(const s of Or.workspace.textDocuments)if(Or.languages.match(r,s)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const i=n>0;return{kind:"document",id:this.registrationType.method,registrations:i,matches:!1}}}ge.DynamicDocumentFeature=L1;class _8 extends L1{static textDocumentFilter(e,n){for(const i of e)if(Or.languages.match(i,n)>0)return!0;return!1}constructor(e,n,i,r,s,o,a){super(e),this._event=n,this._type=i,this._middleware=r,this._createParams=s,this._textDocument=o,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new Or.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event(n=>{this.callback(n).catch(i=>{this._client.error(`Sending document notification ${this._type.method} failed.`,i)})})),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const n=async i=>{const r=this._createParams(i);await this._client.sendNotification(this._type,r),this.notificationSent(this.getTextDocument(i),this._type,r)};if(this.matches(e)){const i=this._middleware();return i?i(e,r=>n(r)):n(e)}}matches(e){return this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))?!1:!this._selectorFilter||this._selectorFilter(this._selectors.values(),e)}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,n,i){this._onNotificationSent.fire({textDocument:e,type:n,params:i})}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const n of this._selectors.values())if(Or.languages.match(n,e)>0)return{send:i=>this.callback(i)}}}ge.TextDocumentEventFeature=_8;class S8 extends L1{constructor(e,n){super(e),this._registrationType=n,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const n=e.data.registerOptions.documentSelector;n!==null&&(yield this._client.protocol2CodeConverter.asDocumentSelector(n))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let n=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:n[0],data:e,provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,n){if(n){if(Fl.TextDocumentRegistrationOptions.is(n)){const i=Fl.StaticRegistrationOptions.hasId(n)?n.id:yp.generateUuid(),r=n.documentSelector??e;if(r)return[i,Object.assign({},n,{documentSelector:r})]}else if(fn.boolean(n)&&n===!0||Fl.WorkDoneProgressOptions.is(n)){if(!e)return[void 0,void 0];const i=fn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e});return[yp.generateUuid(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,n){if(!(!e||!n))return fn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e})}getProvider(e){for(const n of this._registrations.values()){let i=n.data.registerOptions.documentSelector;if(i!==null&&Or.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(i),e)>0)return n.provider}}getAllProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}ge.TextDocumentLanguageFeature=S8;class D8{constructor(e,n){this._client=e,this._registrationType=n,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 n=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:n[0],provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}ge.WorkspaceFeature=D8;var Ni={};const x8=typeof process=="object"&&process&&process.platform==="win32";var k8=x8?{sep:"\\"}:{sep:"/"},T8=f2;function f2(t,e,n){t instanceof RegExp&&(t=wp(t,n)),e instanceof RegExp&&(e=wp(e,n));var i=h2(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function wp(t,e){var n=e.match(t);return n?n[0]:null}f2.range=h2;function h2(t,e,n){var i,r,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),h=c;if(c>=0&&l>0){if(t===e)return[c,l];for(i=[],s=n.length;h>=0&&!a;)h==c?(i.push(h),c=n.indexOf(t,h+1)):i.length==1?a=[i.pop(),l]:(r=i.pop(),r<s&&(s=r,o=l),l=n.indexOf(e,h+1)),h=c<l&&c>=0?c:l;i.length&&(a=[s,o])}return a}var g2=T8,R8=I8,p2="\0SLASH"+Math.random()+"\0",m2="\0OPEN"+Math.random()+"\0",N1="\0CLOSE"+Math.random()+"\0",y2="\0COMMA"+Math.random()+"\0",b2="\0PERIOD"+Math.random()+"\0";function Ml(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function E8(t){return t.split("\\\\").join(p2).split("\\{").join(m2).split("\\}").join(N1).split("\\,").join(y2).split("\\.").join(b2)}function P8(t){return t.split(p2).join("\\").split(m2).join("{").split(N1).join("}").split(y2).join(",").split(b2).join(".")}function v2(t){if(!t)return[""];var e=[],n=g2("{","}",t);if(!n)return t.split(",");var i=n.pre,r=n.body,s=n.post,o=i.split(",");o[o.length-1]+="{"+r+"}";var a=v2(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function I8(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),no(E8(t),!0).map(P8)):[]}function F8(t){return"{"+t+"}"}function M8(t){return/^-?0\d/.test(t)}function O8(t,e){return t<=e}function A8(t,e){return t>=e}function no(t,e){var n=[],i=g2("{","}",t);if(!i)return[t];var r=i.pre,s=i.post.length?no(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=r+"{"+i.body+"}"+s[o];n.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=c||l,g=i.body.indexOf(",")>=0;if(!h&&!g)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+N1+i.post,no(t)):[t];var p;if(h)p=i.body.split(/\.\./);else if(p=v2(i.body),p.length===1&&(p=no(p[0],!1).map(F8),p.length===1))return s.map(function(qe){return i.pre+p[0]+qe});var w;if(h){var v=Ml(p[0]),x=Ml(p[1]),T=Math.max(p[0].length,p[1].length),q=p.length==3?Math.abs(Ml(p[2])):1,z=O8,A=x<v;A&&(q*=-1,z=A8);var W=p.some(M8);w=[];for(var j=v;z(j,x);j+=q){var se;if(l)se=String.fromCharCode(j),se==="\\"&&(se="");else if(se=String(j),W){var B=T-se.length;if(B>0){var Z=new Array(B+1).join("0");j<0?se="-"+Z+se.slice(1):se=Z+se}}w.push(se)}}else{w=[];for(var oe=0;oe<p.length;oe++)w.push.apply(w,no(p[oe],!1))}for(var oe=0;oe<w.length;oe++)for(var o=0;o<s.length;o++){var a=r+w[oe]+s[o];(!e||h||a)&&n.push(a)}}return n}const Pn=Cc=(t,e,n={})=>(Wa(e),!n.nocomment&&e.charAt(0)==="#"?!1:new _c(e,n).match(t));var Cc=Pn;const rh=k8;Pn.sep=rh.sep;const ei=Symbol("globstar **");Pn.GLOBSTAR=ei;const L8=R8,Cp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},sh="[^/]",Ol=sh+"*?",N8="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$8="(?:(?!(?:\\/|^)\\.).)*?",w2=t=>t.split("").reduce((e,n)=>(e[n]=!0,e),{}),_p=w2("().*{}+?[]^$\\!"),q8=w2("[.("),Sp=/\/+/;Pn.filter=(t,e={})=>(n,i,r)=>Pn(n,t,e);const Qi=(t,e={})=>{const n={};return Object.keys(t).forEach(i=>n[i]=t[i]),Object.keys(e).forEach(i=>n[i]=e[i]),n};Pn.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Pn;const e=Pn,n=(i,r,s)=>e(i,r,Qi(t,s));return n.Minimatch=class extends e.Minimatch{constructor(r,s){super(r,Qi(t,s))}},n.Minimatch.defaults=i=>e.defaults(Qi(t,i)).Minimatch,n.filter=(i,r)=>e.filter(i,Qi(t,r)),n.defaults=i=>e.defaults(Qi(t,i)),n.makeRe=(i,r)=>e.makeRe(i,Qi(t,r)),n.braceExpand=(i,r)=>e.braceExpand(i,Qi(t,r)),n.match=(i,r,s)=>e.match(i,r,Qi(t,s)),n};Pn.braceExpand=(t,e)=>C2(t,e);const C2=(t,e={})=>(Wa(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:L8(t)),H8=1024*64,Wa=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>H8)throw new TypeError("pattern is too long")},Al=Symbol("subparse");Pn.makeRe=(t,e)=>new _c(t,e||{}).makeRe();Pn.match=(t,e,n={})=>{const i=new _c(e,n);return t=t.filter(r=>i.match(r)),i.options.nonull&&!t.length&&t.push(e),t};const j8=t=>t.replace(/\\(.)/g,"$1"),W8=t=>t.replace(/\\([^-\]])/g,"$1"),U8=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),z8=t=>t.replace(/[[\]\\]/g,"\\$&");class _c{constructor(e,n){Wa(e),n||(n={}),this.options=n,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();n.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,i),i=this.globParts=i.map(r=>r.split(Sp)),this.debug(this.pattern,i),i=i.map((r,s,o)=>r.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(r=>r.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let n=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)n=!n,i++;i&&(this.pattern=e.slice(i)),this.negate=n}matchOne(e,n,i){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,o=0,a=e.length,c=n.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var l=n[o],h=e[s];if(this.debug(n,l,h),l===!1)return!1;if(l===ei){this.debug("GLOBSTAR",[n,l,h]);var g=s,p=o+1;if(p===c){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!r.dot&&e[s].charAt(0)===".")return!1;return!0}for(;g<a;){var w=e[g];if(this.debug(`
64
+ - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,n,i){return e.fontInfo.lineHeight}}class Nb extends Ue{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:f(y,67,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:f(y,68,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f(y,69,"The minimap has the same size as the editor contents (and might scroll)."),f(y,70,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f(y,71,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:f(y,72,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:f(y,73,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:f(y,74,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:f(y,75,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:f(y,76,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:f(y,77,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:f(y,78,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:f(y,79,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:f(y,80,"Controls the font size of section headers in the minimap.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),autohide:J(n.autohide,this.defaultValue.autohide),size:it(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:it(n.side,this.defaultValue.side,["right","left"]),showSlider:it(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:J(n.renderCharacters,this.defaultValue.renderCharacters),scale:Fe.clampedInt(n.scale,1,1,3),maxColumn:Fe.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:J(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:J(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:si.clamp(n.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32)}}}function $b(t){return t==="ctrlCmd"?bi?"metaKey":"ctrlKey":"altKey"}class qb extends Ue{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f(y,81,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f(y,82,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{top:Fe.clampedInt(n.top,0,0,1e3),bottom:Fe.clampedInt(n.bottom,0,0,1e3)}}}class Hb extends Ue{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:f(y,83,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:f(y,84,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),cycle:J(n.cycle,this.defaultValue.cycle)}}}class jb extends Vo{constructor(){super(143)}compute(e,n,i){return e.pixelRatio}}class Wb extends Ue{constructor(){const e={other:"on",comments:"off",strings:"off"},n=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f(y,85,"Quick suggestions show inside the suggest widget"),f(y,86,"Quick suggestions show as ghost text"),f(y,87,"Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:n,default:e.strings,description:f(y,88,"Enable quick suggestions inside strings.")},comments:{anyOf:n,default:e.comments,description:f(y,89,"Enable quick suggestions inside comments.")},other:{anyOf:n,default:e.other,description:f(y,90,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:f(y,91,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const l=e?"on":"off";return{comments:l,strings:l,other:l}}if(!e||typeof e!="object")return this.defaultValue;const{other:n,comments:i,strings:r}=e,s=["on","inline","off"];let o,a,c;return typeof n=="boolean"?o=n?"on":"off":o=it(n,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=it(i,this.defaultValue.comments,s),typeof r=="boolean"?c=r?"on":"off":c=it(r,this.defaultValue.strings,s),{other:o,comments:a,strings:c}}}class Ub extends Ue{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f(y,92,"Line numbers are not rendered."),f(y,93,"Line numbers are rendered as absolute number."),f(y,94,"Line numbers are rendered as distance in lines to cursor position."),f(y,95,"Line numbers are rendered every 10 lines.")],default:"on",description:f(y,96,"Controls the display of line numbers.")})}validate(e){let n=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(n=4,i=e):e==="interval"?n=3:e==="relative"?n=2:e==="on"?n=1:n=0),{renderType:n,renderFn:i}}}class zb extends Ue{constructor(){const e=[],n={type:"number",description:f(y,97,"Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[n,{type:["object"],properties:{column:n,color:{type:"string",description:f(y,98,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:f(y,99,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="number")n.push({column:Fe.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const r=i;n.push({column:Fe.clampedInt(r.column,0,0,1e4),color:r.color})}return n.sort((i,r)=>i.column-r.column),n}return this.defaultValue}}class Bb extends Ue{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function yp(t,e){if(typeof t!="string")return e;switch(t){case"hidden":return 2;case"visible":return 3;default:return 1}}class Vb extends Ue{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f(y,100,"The vertical scrollbar will be visible only when necessary."),f(y,101,"The vertical scrollbar will always be visible."),f(y,102,"The vertical scrollbar will always be hidden.")],default:"auto",description:f(y,103,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f(y,104,"The horizontal scrollbar will be visible only when necessary."),f(y,105,"The horizontal scrollbar will always be visible."),f(y,106,"The horizontal scrollbar will always be hidden.")],default:"auto",description:f(y,107,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:f(y,108,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:f(y,109,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:f(y,110,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:f(y,111,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e,i=Fe.clampedInt(n.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),r=Fe.clampedInt(n.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Fe.clampedInt(n.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:yp(n.vertical,this.defaultValue.vertical),horizontal:yp(n.horizontal,this.defaultValue.horizontal),useShadows:J(n.useShadows,this.defaultValue.useShadows),verticalHasArrows:J(n.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:J(n.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:J(n.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:J(n.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Fe.clampedInt(n.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:r,verticalSliderSize:Fe.clampedInt(n.verticalSliderSize,r,0,1e3),scrollByPage:J(n.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:J(n.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}const Yn="inUntrustedWorkspace",hr={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Kb extends Ue{constructor(){const e={nonBasicASCII:Yn,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Yn,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[hr.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.nonBasicASCII,description:f(y,112,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[hr.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:f(y,113,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[hr.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:f(y,114,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[hr.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.includeComments,description:f(y,115,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[hr.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Yn],default:e.includeStrings,description:f(y,116,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[hr.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:f(y,117,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[hr.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:f(y,118,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,n){let i=!1;n.allowedCharacters&&e&&(lo(e.allowedCharacters,n.allowedCharacters)||(e={...e,allowedCharacters:n.allowedCharacters},i=!0)),n.allowedLocales&&e&&(lo(e.allowedLocales,n.allowedLocales)||(e={...e,allowedLocales:n.allowedLocales},i=!0));const r=super.applyUpdate(e,n);return i?new ba(r.newValue,!0):r}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{nonBasicASCII:hs(n.nonBasicASCII,Yn,[!0,!1,Yn]),invisibleCharacters:J(n.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:J(n.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:hs(n.includeComments,Yn,[!0,!1,Yn]),includeStrings:hs(n.includeStrings,Yn,[!0,!1,Yn]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,n){if(typeof e!="object"||!e)return n;const i={};for(const[r,s]of Object.entries(e))s===!0&&(i[r]=!0);return i}}class Gb extends Ue{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:f(y,119,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f(y,120,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),f(y,121,"Show the inline suggestion toolbar when hovering over an inline suggestion."),f(y,122,"Never show the inline suggestion toolbar.")],description:f(y,123,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:f(y,124,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:f(y,125,"Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),mode:it(n.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:it(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:J(n.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:J(n.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily)}}}class Qb extends Ue{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:f(y,126,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f(y,127,"Show the inline edit toolbar whenever an inline suggestion is shown."),f(y,128,"Show the inline edit toolbar when hovering over an inline suggestion."),f(y,129,"Never show the inline edit toolbar.")],description:f(y,130,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:f(y,131,"Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:f(y,132,"Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),showToolbar:it(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Kt.string(n.fontFamily,this.defaultValue.fontFamily),keepOnBlur:J(n.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:J(n.backgroundColoring,this.defaultValue.backgroundColoring)}}}class Jb extends Ue{constructor(){const e={enabled:mp.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:mp.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,133,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:f(y,134,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:J(n.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Yb extends Ue{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f(y,135,"Enables bracket pair guides."),f(y,136,"Enables bracket pair guides only for the active bracket pair."),f(y,137,"Disables bracket pair guides.")],default:e.bracketPairs,description:f(y,138,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f(y,139,"Enables horizontal guides as addition to vertical bracket pair guides."),f(y,140,"Enables horizontal guides only for the active bracket pair."),f(y,141,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:f(y,142,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:f(y,143,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:f(y,144,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f(y,145,"Highlights the active indent guide."),f(y,146,"Highlights the active indent guide even if bracket guides are highlighted."),f(y,147,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:f(y,148,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{bracketPairs:hs(n.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:hs(n.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:J(n.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:J(n.indentation,this.defaultValue.indentation),highlightActiveIndentation:hs(n.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function hs(t,e,n){const i=n.indexOf(t);return i===-1?e:n[i]}class Xb extends Ue{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f(y,149,"Insert suggestion without overwriting text right of the cursor."),f(y,150,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:f(y,151,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:f(y,152,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:f(y,153,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:f(y,154,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[f(y,155,"Always select a suggestion when automatically triggering IntelliSense."),f(y,156,"Never select a suggestion when automatically triggering IntelliSense."),f(y,157,"Select a suggestion only when triggering IntelliSense from a trigger character."),f(y,158,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:f(y,159,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:f(y,160,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:f(y,161,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:f(y,162,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:f(y,163,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:f(y,164,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f(y,165,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f(y,166,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f(y,167,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f(y,168,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f(y,169,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f(y,170,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f(y,171,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f(y,172,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f(y,173,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f(y,174,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f(y,175,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f(y,176,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f(y,177,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f(y,178,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f(y,179,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f(y,180,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f(y,181,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f(y,182,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f(y,183,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f(y,184,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f(y,185,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f(y,186,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f(y,187,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f(y,188,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f(y,189,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f(y,190,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f(y,191,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f(y,192,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f(y,193,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f(y,194,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f(y,195,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f(y,196,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertMode:it(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:J(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:J(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:J(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:J(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:it(n.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:J(n.showIcons,this.defaultValue.showIcons),showStatusBar:J(n.showStatusBar,this.defaultValue.showStatusBar),preview:J(n.preview,this.defaultValue.preview),previewMode:it(n.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:J(n.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:J(n.showMethods,this.defaultValue.showMethods),showFunctions:J(n.showFunctions,this.defaultValue.showFunctions),showConstructors:J(n.showConstructors,this.defaultValue.showConstructors),showDeprecated:J(n.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:J(n.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:J(n.showFields,this.defaultValue.showFields),showVariables:J(n.showVariables,this.defaultValue.showVariables),showClasses:J(n.showClasses,this.defaultValue.showClasses),showStructs:J(n.showStructs,this.defaultValue.showStructs),showInterfaces:J(n.showInterfaces,this.defaultValue.showInterfaces),showModules:J(n.showModules,this.defaultValue.showModules),showProperties:J(n.showProperties,this.defaultValue.showProperties),showEvents:J(n.showEvents,this.defaultValue.showEvents),showOperators:J(n.showOperators,this.defaultValue.showOperators),showUnits:J(n.showUnits,this.defaultValue.showUnits),showValues:J(n.showValues,this.defaultValue.showValues),showConstants:J(n.showConstants,this.defaultValue.showConstants),showEnums:J(n.showEnums,this.defaultValue.showEnums),showEnumMembers:J(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:J(n.showKeywords,this.defaultValue.showKeywords),showWords:J(n.showWords,this.defaultValue.showWords),showColors:J(n.showColors,this.defaultValue.showColors),showFiles:J(n.showFiles,this.defaultValue.showFiles),showReferences:J(n.showReferences,this.defaultValue.showReferences),showFolders:J(n.showFolders,this.defaultValue.showFolders),showTypeParameters:J(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:J(n.showSnippets,this.defaultValue.showSnippets),showUsers:J(n.showUsers,this.defaultValue.showUsers),showIssues:J(n.showIssues,this.defaultValue.showIssues)}}}class Zb extends Ue{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f(y,197,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:f(y,198,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:J(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:J(e.selectSubwords,this.defaultValue.selectSubwords)}}}class e7 extends Ue{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:f(y,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:f(y,199,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&n.push(i)}catch{}return n}return this.defaultValue}}class t7 extends Ue{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f(y,200,"No indentation. Wrapped lines begin at column 1."),f(y,201,"Wrapped lines get the same indentation as the parent."),f(y,202,"Wrapped lines get +1 indentation toward the parent."),f(y,203,"Wrapped lines get +2 indentation toward the parent.")],description:f(y,204,"Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,n,i){return n.get(2)===2?0:i}}class n7 extends Vo{constructor(){super(146)}compute(e,n,i){const r=n.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:r.isWordWrapMinified,isViewportWrapping:r.isViewportWrapping,wrappingColumn:r.wrappingColumn}}}class i7 extends Ue{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,205,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:f(y,206,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[f(y,207,"Show the drop selector widget after a file is dropped into the editor."),f(y,208,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),showDropSelector:it(n.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class r7 extends Ue{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:f(y,209,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:f(y,210,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[f(y,211,"Show the paste selector widget after content is pasted into the editor."),f(y,212,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:J(n.enabled,this.defaultValue.enabled),showPasteSelector:it(n.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const s7="Consolas, 'Courier New', monospace",o7="Menlo, Monaco, 'Courier New', monospace",a7="'Droid Sans Mono', 'monospace', monospace",Li={fontFamily:bi?o7:Da?a7:s7,fontWeight:"normal",fontSize:bi?12:14,lineHeight:0,letterSpacing:0},c7=[];function R(t){return c7[t.id]=t,t}R(new he(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f(y,213,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),R(new Qe(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f(y,214,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f(y,215,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),R(new wb),R(new Fe(3,"accessibilityPageSize",10,1,1073741824,{description:f(y,216,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),R(new Kt(4,"ariaLabel",f(y,217,"Editor content"))),R(new he(5,"ariaRequired",!1,void 0)),R(new he(8,"screenReaderAnnounceInlineSuggestion",!0,{description:f(y,218,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),R(new Qe(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,219,"Use language configurations to determine when to autoclose brackets."),f(y,220,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f(y,221,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),R(new Qe(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,222,"Use language configurations to determine when to autoclose comments."),f(y,223,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:f(y,224,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),R(new Qe(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f(y,225,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f(y,226,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),R(new Qe(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f(y,227,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:f(y,228,"Controls whether the editor should type over closing quotes or brackets.")})),R(new Qe(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f(y,229,"Use language configurations to determine when to autoclose quotes."),f(y,230,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f(y,231,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),R(new ta(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],vb,{enumDescriptions:[f(y,232,"The editor will not insert indentation automatically."),f(y,233,"The editor will keep the current line's indentation."),f(y,234,"The editor will keep the current line's indentation and honor language defined brackets."),f(y,235,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f(y,236,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f(y,237,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),R(new he(13,"automaticLayout",!1)),R(new Qe(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f(y,238,"Use language configurations to determine when to automatically surround selections."),f(y,239,"Surround with quotes but not brackets."),f(y,240,"Surround with brackets but not quotes."),""],description:f(y,241,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),R(new Jb),R(new Yb),R(new he(116,"stickyTabStops",!1,{description:f(y,242,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),R(new he(17,"codeLens",!0,{description:f(y,243,"Controls whether the editor shows CodeLens.")})),R(new Kt(18,"codeLensFontFamily","",{description:f(y,244,"Controls the font family for CodeLens.")})),R(new Fe(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f(y,245,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),R(new he(20,"colorDecorators",!0,{description:f(y,246,"Controls whether the editor should render the inline color decorators and color picker.")})),R(new Qe(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[f(y,247,"Make the color picker appear both on click and hover of the color decorator"),f(y,248,"Make the color picker appear on hover of the color decorator"),f(y,249,"Make the color picker appear on click of the color decorator")],description:f(y,250,"Controls the condition to make a color picker appear from a color decorator")})),R(new Fe(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f(y,251,"Controls the max number of color decorators that can be rendered in an editor at once.")})),R(new he(22,"columnSelection",!1,{description:f(y,252,"Enable that the selection with the mouse and keys is doing column selection.")})),R(new Cb),R(new he(24,"contextmenu",!0)),R(new he(25,"copyWithSyntaxHighlighting",!0,{description:f(y,253,"Controls whether syntax highlighting should be copied into the clipboard.")})),R(new ta(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],_b,{description:f(y,254,"Control the cursor animation style.")})),R(new Qe(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f(y,255,"Smooth caret animation is disabled."),f(y,256,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f(y,257,"Smooth caret animation is always enabled.")],description:f(y,258,"Controls whether the smooth caret animation should be enabled.")})),R(new ta(28,"cursorStyle",pi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Sb,{description:f(y,259,"Controls the cursor style.")})),R(new Fe(29,"cursorSurroundingLines",0,0,1073741824,{description:f(y,260,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),R(new Qe(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f(y,261,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f(y,262,"`cursorSurroundingLines` is enforced always.")],markdownDescription:f(y,263,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),R(new Fe(31,"cursorWidth",0,0,1073741824,{markdownDescription:f(y,264,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),R(new he(32,"disableLayerHinting",!1)),R(new he(33,"disableMonospaceOptimizations",!1)),R(new he(34,"domReadOnly",!1)),R(new he(35,"dragAndDrop",!0,{description:f(y,265,"Controls whether the editor should allow moving selections via drag and drop.")})),R(new xb),R(new i7),R(new Mb),R(new Qe(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f(y,266,"Use a new rendering method with svgs."),f(y,267,"Use a new rendering method with font characters."),f(y,268,"Use the stable rendering method.")],description:f(y,269,"Controls whether whitespace is rendered with a new, experimental method.")})),R(new Kt(39,"extraEditorClassName","")),R(new si(40,"fastScrollSensitivity",5,t=>t<=0?5:t,{markdownDescription:f(y,270,"Scrolling speed multiplier when pressing `Alt`.")})),R(new kb),R(new he(42,"fixedOverflowWidgets",!1)),R(new he(43,"folding",!0,{description:f(y,271,"Controls whether the editor has code folding enabled.")})),R(new Qe(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f(y,272,"Use a language-specific folding strategy if available, else the indentation-based one."),f(y,273,"Use the indentation-based folding strategy.")],description:f(y,274,"Controls the strategy for computing folding ranges.")})),R(new he(45,"foldingHighlight",!0,{description:f(y,275,"Controls whether the editor should highlight folded ranges.")})),R(new he(46,"foldingImportsByDefault",!1,{description:f(y,276,"Controls whether the editor automatically collapses import ranges.")})),R(new Fe(47,"foldingMaximumRegions",5e3,10,65e3,{description:f(y,277,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),R(new he(48,"unfoldOnClickAfterEndOfLine",!1,{description:f(y,278,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),R(new Kt(49,"fontFamily",Li.fontFamily,{description:f(y,279,"Controls the font family.")})),R(new Tb),R(new eh),R(new Rb),R(new nh),R(new th),R(new he(55,"formatOnPaste",!1,{description:f(y,280,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),R(new he(56,"formatOnType",!1,{description:f(y,281,"Controls whether the editor should automatically format the line after typing.")})),R(new he(57,"glyphMargin",!0,{description:f(y,282,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),R(new Eb),R(new he(59,"hideCursorInOverviewRuler",!1,{description:f(y,283,"Controls whether the cursor should be hidden in the overview ruler.")})),R(new Pb),R(new he(61,"inDiffEditor",!1)),R(new si(64,"letterSpacing",Li.letterSpacing,t=>si.clamp(t,-5,20),{description:f(y,284,"Controls the letter spacing in pixels.")})),R(new Fb),R(new Ab),R(new Lb),R(new Ub),R(new Fe(69,"lineNumbersMinChars",5,1,300)),R(new he(70,"linkedEditing",!1,{description:f(y,285,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),R(new he(71,"links",!0,{description:f(y,286,"Controls whether the editor should detect links and make them clickable.")})),R(new Qe(72,"matchBrackets","always",["always","near","never"],{description:f(y,287,"Highlight matching brackets.")})),R(new Nb),R(new Qe(74,"mouseStyle","text",["text","default","copy"])),R(new si(75,"mouseWheelScrollSensitivity",1,t=>t===0?1:t,{markdownDescription:f(y,288,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),R(new he(76,"mouseWheelZoom",!1,{markdownDescription:bi?f(y,289,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):f(y,290,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),R(new he(77,"multiCursorMergeOverlapping",!0,{description:f(y,291,"Merge multiple cursors when they are overlapping.")})),R(new ta(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],$b,{markdownEnumDescriptions:[f(y,292,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),f(y,293,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f(y,294,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),R(new Qe(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f(y,295,"Each cursor pastes a single line of the text."),f(y,296,"Each cursor pastes the full text.")],markdownDescription:f(y,297,"Controls pasting when the line count of the pasted text matches the cursor count.")})),R(new Fe(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f(y,298,"Controls the max number of cursors that can be in an active editor at once.")})),R(new Qe(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[f(y,299,"Does not highlight occurrences."),f(y,300,"Highlights occurrences only in the current file."),f(y,301,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:f(y,302,"Controls whether occurrences should be highlighted across open files.")})),R(new he(82,"overviewRulerBorder",!0,{description:f(y,303,"Controls whether a border should be drawn around the overview ruler.")})),R(new Fe(83,"overviewRulerLanes",3,0,3)),R(new qb),R(new r7),R(new Hb),R(new Qe(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f(y,304,"Focus the tree when opening peek"),f(y,305,"Focus the editor when opening peek")],description:f(y,306,"Controls whether to focus the inline editor or the tree in the peek widget.")})),R(new he(88,"definitionLinkOpensInPeek",!1,{description:f(y,307,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),R(new Wb),R(new Fe(90,"quickSuggestionsDelay",10,0,1073741824,{description:f(y,308,"Controls the delay in milliseconds after which quick suggestions will show up.")})),R(new he(91,"readOnly",!1)),R(new Bb),R(new he(93,"renameOnType",!1,{description:f(y,309,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:f(y,310,"Deprecated, use `editor.linkedEditing` instead.")})),R(new he(94,"renderControlCharacters",!0,{description:f(y,311,"Controls whether the editor should render control characters."),restricted:!0})),R(new Qe(95,"renderFinalNewline",Da?"dimmed":"on",["off","on","dimmed"],{description:f(y,312,"Render last line number when the file ends with a newline.")})),R(new Qe(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f(y,313,"Highlights both the gutter and the current line.")],description:f(y,314,"Controls how the editor should render the current line highlight.")})),R(new he(97,"renderLineHighlightOnlyWhenFocus",!1,{description:f(y,315,"Controls if the editor should render the current line highlight only when the editor is focused.")})),R(new Qe(98,"renderValidationDecorations","editable",["editable","on","off"])),R(new Qe(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f(y,316,"Render whitespace characters except for single spaces between words."),f(y,317,"Render whitespace characters only on selected text."),f(y,318,"Render only trailing whitespace characters."),""],description:f(y,319,"Controls how the editor should render whitespace characters.")})),R(new Fe(100,"revealHorizontalRightPadding",15,0,1e3)),R(new he(101,"roundedSelection",!0,{description:f(y,320,"Controls whether selections should have rounded corners.")})),R(new zb),R(new Vb),R(new Fe(104,"scrollBeyondLastColumn",4,0,1073741824,{description:f(y,321,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),R(new he(105,"scrollBeyondLastLine",!0,{description:f(y,322,"Controls whether the editor will scroll beyond the last line.")})),R(new he(106,"scrollPredominantAxis",!0,{description:f(y,323,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),R(new he(107,"selectionClipboard",!0,{description:f(y,324,"Controls whether the Linux primary clipboard should be supported."),included:Da})),R(new he(108,"selectionHighlight",!0,{description:f(y,325,"Controls whether the editor should highlight matches similar to the selection.")})),R(new he(109,"selectOnLineNumbers",!0)),R(new Qe(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f(y,326,"Always show the folding controls."),f(y,327,"Never show the folding controls and reduce the gutter size."),f(y,328,"Only show the folding controls when the mouse is over the gutter.")],description:f(y,329,"Controls when the folding controls on the gutter are shown.")})),R(new he(111,"showUnused",!0,{description:f(y,330,"Controls fading out of unused code.")})),R(new he(140,"showDeprecated",!0,{description:f(y,331,"Controls strikethrough deprecated variables.")})),R(new Ob),R(new Qe(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f(y,332,"Show snippet suggestions on top of other suggestions."),f(y,333,"Show snippet suggestions below other suggestions."),f(y,334,"Show snippets suggestions with other suggestions."),f(y,335,"Do not show snippet suggestions.")],description:f(y,336,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),R(new Zb),R(new he(114,"smoothScrolling",!1,{description:f(y,337,"Controls whether the editor will scroll using an animation.")})),R(new Fe(117,"stopRenderingLineAfter",1e4,-1,1073741824)),R(new Xb),R(new Gb),R(new Qb),R(new he(149,"inlineCompletionsAccessibilityVerbose",!1,{description:f(y,338,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),R(new Fe(119,"suggestFontSize",0,0,1e3,{markdownDescription:f(y,339,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),R(new Fe(120,"suggestLineHeight",0,0,1e3,{markdownDescription:f(y,340,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),R(new he(121,"suggestOnTriggerCharacters",!0,{description:f(y,341,"Controls whether suggestions should automatically show up when typing trigger characters.")})),R(new Qe(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f(y,342,"Always select the first suggestion."),f(y,343,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f(y,344,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f(y,345,"Controls how suggestions are pre-selected when showing the suggest list.")})),R(new Qe(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f(y,346,"Tab complete will insert the best matching suggestion when pressing tab."),f(y,347,"Disable tab completions."),f(y,348,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f(y,349,"Enables tab completions.")})),R(new Fe(124,"tabIndex",0,-1,1073741824)),R(new Kb),R(new Qe(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f(y,350,"Unusual line terminators are automatically removed."),f(y,351,"Unusual line terminators are ignored."),f(y,352,"Unusual line terminators prompt to be removed.")],description:f(y,353,"Remove unusual line terminators that might cause problems.")})),R(new he(127,"useShadowDOM",!0)),R(new he(128,"useTabStops",!0,{description:f(y,354,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),R(new Qe(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f(y,355,"Use the default line break rule."),f(y,356,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f(y,357,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),R(new e7),R(new Kt(131,"wordSeparators",o2,{description:f(y,358,"Characters that will be used as word separators when doing word related navigations or operations.")})),R(new Qe(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f(y,359,"Lines will never wrap."),f(y,360,"Lines will wrap at the viewport width."),f(y,361,"Lines will wrap at `#editor.wordWrapColumn#`."),f(y,362,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f(y,363,"Controls how lines should wrap.")})),R(new Kt(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),R(new Kt(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),R(new Fe(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:f(y,364,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),R(new Qe(136,"wordWrapOverride1","inherit",["off","on","inherit"])),R(new Qe(137,"wordWrapOverride2","inherit",["off","on","inherit"])),R(new Db),R(new he(147,"defaultColorDecorators",!1,{markdownDescription:f(y,365,"Controls whether inline color decorations should be shown using the default document color provider")})),R(new jb),R(new he(144,"tabFocusMode",!1,{markdownDescription:f(y,366,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),R(new uo),R(new n7),R(new t7),R(new Ib);let l7=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},ih;function u7(t){ih=t}function $t(t){return new Proxy({},{get(e,n){if(ih==null)throw new Error("Default api is not ready yet, do not forget to import 'vscode/localExtensionHost' and wait for services initialization");return ih[t][n]}})}const d7={version:"1.89.1",tasks:$t("tasks"),notebooks:$t("notebooks"),scm:$t("scm"),comments:$t("comments"),authentication:$t("authentication"),tests:$t("tests"),extensions:$t("extensions"),debug:$t("debug"),env:$t("env"),commands:$t("commands"),window:$t("window"),workspace:$t("workspace"),languages:$t("languages"),l10n:$t("l10n"),interactive:$t("interactive"),ai:$t("ai"),chat:$t("chat"),speech:$t("speech"),Breakpoint:ps,TerminalOutputAnchor:Wu,ChatResultFeedbackKind:Wf,ChatVariableLevel:Hf,ChatCompletionItem:lb,CallHierarchyIncomingCall:D5,CallHierarchyItem:S5,CallHierarchyOutgoingCall:x5,CancellationError:A0,CancellationTokenSource:P4,CandidatePortSource:Gf,CodeAction:nd,CodeActionKind:lt,CodeActionTriggerKind:td,CodeLens:sd,Color:Na,ColorInformation:Td,ColorPresentation:Rd,ColorThemeKind:yf,CommentMode:cf,CommentState:lf,CommentThreadCollapsibleState:af,CommentThreadState:uf,CompletionItem:pd,CompletionItemKind:La,CompletionItemTag:gd,CompletionList:md,CompletionTriggerKind:hd,ConfigurationTarget:Ud,CustomExecution:i2,DebugAdapterExecutable:Kd,DebugAdapterInlineImplementation:Jd,DebugAdapterNamedPipeServer:Qd,DebugAdapterServer:Gd,DebugConfigurationProviderTriggerKind:Qf,DebugConsoleMode:ff,DebugVisualization:N5,DecorationRangeBehavior:xd,Diagnostic:Qu,DiagnosticRelatedInformation:Fa,DiagnosticSeverity:bo,DiagnosticTag:Gu,Disposable:Uu,DocumentHighlight:Ju,DocumentHighlightKind:wo,MultiDocumentHighlight:Yu,DocumentLink:kd,DocumentSymbol:ed,EndOfLine:Bu,EnvironmentVariableMutatorType:Vu,EvaluatableExpression:Yd,InlineValueText:Zd,InlineValueVariableLookup:ef,InlineValueEvaluatableExpression:tf,InlineCompletionTriggerKind:Xd,EventEmitter:hi,ExtensionKind:mf,ExtensionMode:Rf,ExternalUriOpenerPriority:Af,FileChangeType:nf,FileDecoration:ip,FileDecoration2:ip,FileSystemError:rf,FileType:Iu,FilePermission:Fu,FoldingRange:sf,FoldingRangeKind:of,FunctionBreakpoint:Vd,InlineCompletionItem:yd,InlineCompletionList:bd,Hover:Ma,IndentAction:Vf,Location:vo,MarkdownString:Aa,OverviewRulerLane:Jf,ParameterInformation:od,PortAutoForwardAction:Nf,Position:Ye,ProcessExecution:$a,ProgressLocation:Nd,QuickInputButtons:hf,Range:_t,RelativePattern:zd,Selection:zu,SelectionRange:id,SemanticTokens:df,SemanticTokensBuilder:O5,SemanticTokensEdit:A5,SemanticTokensEdits:L5,SemanticTokensLegend:F5,ShellExecution:qa,ShellQuoting:Ad,SignatureHelp:cd,SignatureHelpTriggerKind:ld,SignatureInformation:ad,SnippetString:Ia,SourceBreakpoint:Bd,StandardTokenType:Pf,StatusBarAlignment:wd,SymbolInformation:Zu,SymbolKind:Oa,SymbolTag:Xu,Task:Ld,TaskGroup:Od,TaskPanelKind:Md,TaskRevealKind:Fd,TaskScope:So,TerminalLink:k5,TerminalQuickFixTerminalCommand:R5,TerminalQuickFixOpener:T5,TerminalLocation:Id,TerminalProfile:E5,TerminalExitReason:Pd,TextDocumentSaveReason:_d,TextEdit:Ea,SnippetTextEdit:t2,TextEditorCursorStyle:pi,TextEditorLineNumbersStyle:Cd,TextEditorRevealType:Sd,TextEditorSelectionChangeKind:Co,SyntaxTokenType:_o,TextDocumentChangeReason:Dd,ThemeColor:Wd,ThemeIcon:ji,TreeItem:$d,TreeItemCheckboxState:Do,TreeItemCollapsibleState:fs,TypeHierarchyItem:X5,UIKind:Yf,Uri:st,ViewColumn:vd,WorkspaceEdit:Ku,DocumentDropEdit:jd,DocumentPasteEdit:P5,InlayHint:fd,InlayHintLabelPart:dd,InlayHintKind:ud,RemoteAuthorityResolverError:_5,ResolvedAuthority:w5,ManagedResolvedAuthority:C5,SourceControlInputBoxValidationType:Ed,ExtensionRuntime:Ef,TimelineItem:Tf,NotebookRange:to,NotebookCellKind:Cf,NotebookCellExecutionState:_f,NotebookCellData:$5,NotebookData:q5,NotebookRendererScript:U5,NotebookCellStatusBarAlignment:Sf,NotebookEditorRevealType:Df,NotebookCellOutput:j5,NotebookCellOutputItem:H5,NotebookCellStatusBarItem:W5,NotebookControllerAffinity:xf,NotebookControllerAffinity2:kf,NotebookEdit:Pa,NotebookKernelSourceAction:z5,PortAttributes:V5,LinkedEditingRanges:B5,TestResultState:If,TestRunRequest:Mf,TestMessage:ja,TestMessage2:ja,TestTag:Of,TestRunProfileKind:Ff,TextSearchCompleteMessageType:Xf,DataTransfer:Hd,DataTransferItem:qd,FileCoverage:G5,StatementCoverage:Q5,BranchCoverage:J5,FunctionCoverage:Y5,WorkspaceTrustState:Lf,LanguageStatusSeverity:rd,QuickPickItemKind:gf,InputBoxValidationSeverity:pf,TabInputText:Z5,TabInputTextDiff:eb,TabInputTextMerge:tb,TabInputCustom:nb,TabInputNotebook:rb,TabInputNotebookDiff:sb,TabInputWebview:ib,TabInputTerminal:ob,TabInputInteractiveWindow:ab,TabInputChat:cb,TelemetryTrustedValue:l7,LogLevel:ii,EditSessionIdentityMatch:Zf,InteractiveSessionVoteDirection:$f,ChatCopyKind:qf,InteractiveEditorResponseFeedbackKind:jf,RelatedInformationType:Uf,SpeechToTextStatus:zf,KeywordRecognitionStatus:Bf},{version:f7,tasks:h7,notebooks:g7,scm:p7,comments:m7,authentication:y7,tests:b7,extensions:v7,debug:w7,env:C7,commands:_7,window:S7,workspace:D7,languages:x7,l10n:k7,interactive:T7,ai:R7,chat:E7,speech:P7,Breakpoint:I7,TerminalOutputAnchor:F7,ChatResultFeedbackKind:M7,ChatVariableLevel:O7,ChatCompletionItem:A7,CallHierarchyIncomingCall:L7,CallHierarchyItem:N7,CallHierarchyOutgoingCall:$7,CancellationError:q7,CancellationTokenSource:H7,CandidatePortSource:j7,CodeAction:W7,CodeActionKind:U7,CodeActionTriggerKind:z7,CodeLens:B7,Color:V7,ColorInformation:K7,ColorPresentation:G7,ColorThemeKind:Q7,CommentMode:J7,CommentState:Y7,CommentThreadCollapsibleState:X7,CommentThreadState:Z7,CompletionItem:ev,CompletionItemKind:tv,CompletionItemTag:nv,CompletionList:iv,CompletionTriggerKind:rv,ConfigurationTarget:sv,CustomExecution:ov,DebugAdapterExecutable:av,DebugAdapterInlineImplementation:cv,DebugAdapterNamedPipeServer:lv,DebugAdapterServer:uv,DebugConfigurationProviderTriggerKind:dv,DebugConsoleMode:fv,DebugVisualization:hv,DecorationRangeBehavior:gv,Diagnostic:pv,DiagnosticRelatedInformation:mv,DiagnosticSeverity:yv,DiagnosticTag:bv,Disposable:vv,DocumentHighlight:wv,DocumentHighlightKind:Cv,MultiDocumentHighlight:_v,DocumentLink:Sv,DocumentSymbol:Dv,EndOfLine:xv,EnvironmentVariableMutatorType:kv,EvaluatableExpression:Tv,InlineValueText:Rv,InlineValueVariableLookup:Ev,InlineValueEvaluatableExpression:Pv,InlineCompletionTriggerKind:Iv,EventEmitter:Fv,ExtensionKind:Mv,ExtensionMode:Ov,ExternalUriOpenerPriority:Av,FileChangeType:Lv,FileDecoration:Nv,FileDecoration2:$v,FileSystemError:qv,FileType:Hv,FilePermission:jv,FoldingRange:Wv,FoldingRangeKind:Uv,FunctionBreakpoint:zv,InlineCompletionItem:Bv,InlineCompletionList:Vv,Hover:Kv,IndentAction:Gv,Location:Qv,MarkdownString:Jv,OverviewRulerLane:Yv,ParameterInformation:Xv,PortAutoForwardAction:Zv,Position:e9,ProcessExecution:t9,ProgressLocation:n9,QuickInputButtons:i9,Range:r9,RelativePattern:s9,Selection:o9,SelectionRange:a9,SemanticTokens:c9,SemanticTokensBuilder:l9,SemanticTokensEdit:u9,SemanticTokensEdits:d9,SemanticTokensLegend:f9,ShellExecution:h9,ShellQuoting:g9,SignatureHelp:p9,SignatureHelpTriggerKind:m9,SignatureInformation:y9,SnippetString:b9,SourceBreakpoint:v9,StandardTokenType:w9,StatusBarAlignment:C9,SymbolInformation:_9,SymbolKind:S9,SymbolTag:D9,Task:x9,TaskGroup:k9,TaskPanelKind:T9,TaskRevealKind:R9,TaskScope:E9,TerminalLink:P9,TerminalQuickFixTerminalCommand:I9,TerminalQuickFixOpener:F9,TerminalLocation:M9,TerminalProfile:O9,TerminalExitReason:A9,TextDocumentSaveReason:L9,TextEdit:N9,SnippetTextEdit:$9,TextEditorCursorStyle:q9,TextEditorLineNumbersStyle:H9,TextEditorRevealType:j9,TextEditorSelectionChangeKind:W9,SyntaxTokenType:U9,TextDocumentChangeReason:z9,ThemeColor:B9,ThemeIcon:V9,TreeItem:K9,TreeItemCheckboxState:G9,TreeItemCollapsibleState:Q9,TypeHierarchyItem:J9,UIKind:Y9,Uri:X9,ViewColumn:Z9,WorkspaceEdit:ew,DocumentDropEdit:tw,DocumentPasteEdit:nw,InlayHint:iw,InlayHintLabelPart:rw,InlayHintKind:sw,RemoteAuthorityResolverError:ow,ResolvedAuthority:aw,ManagedResolvedAuthority:cw,SourceControlInputBoxValidationType:lw,ExtensionRuntime:uw,TimelineItem:dw,NotebookRange:fw,NotebookCellKind:hw,NotebookCellExecutionState:gw,NotebookCellData:pw,NotebookData:mw,NotebookRendererScript:yw,NotebookCellStatusBarAlignment:bw,NotebookEditorRevealType:vw,NotebookCellOutput:ww,NotebookCellOutputItem:Cw,NotebookCellStatusBarItem:_w,NotebookControllerAffinity:Sw,NotebookControllerAffinity2:Dw,NotebookEdit:xw,NotebookKernelSourceAction:kw,PortAttributes:Tw,LinkedEditingRanges:Rw,TestResultState:Ew,TestRunRequest:Pw,TestMessage:Iw,TestMessage2:Fw,TestTag:Mw,TestRunProfileKind:Ow,TextSearchCompleteMessageType:Aw,DataTransfer:Lw,DataTransferItem:Nw,FileCoverage:$w,StatementCoverage:qw,BranchCoverage:Hw,FunctionCoverage:jw,WorkspaceTrustState:Ww,LanguageStatusSeverity:Uw,QuickPickItemKind:zw,InputBoxValidationSeverity:Bw,TabInputText:Vw,TabInputTextDiff:Kw,TabInputTextMerge:Gw,TabInputCustom:Qw,TabInputNotebook:Jw,TabInputNotebookDiff:Yw,TabInputWebview:Xw,TabInputTerminal:Zw,TabInputInteractiveWindow:e8,TabInputChat:t8,TelemetryTrustedValue:n8,LogLevel:i8,EditSessionIdentityMatch:r8,InteractiveSessionVoteDirection:s8,ChatCopyKind:o8,InteractiveEditorResponseFeedbackKind:a8,RelatedInformationType:c8,SpeechToTextStatus:l8,KeywordRecognitionStatus:u8}=d7,d8=Object.freeze(Object.defineProperty({__proto__:null,BranchCoverage:Hw,Breakpoint:I7,CallHierarchyIncomingCall:L7,CallHierarchyItem:N7,CallHierarchyOutgoingCall:$7,CancellationError:q7,CancellationTokenSource:H7,CandidatePortSource:j7,ChatCompletionItem:A7,ChatCopyKind:o8,ChatResultFeedbackKind:M7,ChatVariableLevel:O7,CodeAction:W7,CodeActionKind:U7,CodeActionTriggerKind:z7,CodeLens:B7,Color:V7,ColorInformation:K7,ColorPresentation:G7,ColorThemeKind:Q7,CommentMode:J7,CommentState:Y7,CommentThreadCollapsibleState:X7,CommentThreadState:Z7,CompletionItem:ev,CompletionItemKind:tv,CompletionItemTag:nv,CompletionList:iv,CompletionTriggerKind:rv,ConfigurationTarget:sv,CustomExecution:ov,DataTransfer:Lw,DataTransferItem:Nw,DebugAdapterExecutable:av,DebugAdapterInlineImplementation:cv,DebugAdapterNamedPipeServer:lv,DebugAdapterServer:uv,DebugConfigurationProviderTriggerKind:dv,DebugConsoleMode:fv,DebugVisualization:hv,DecorationRangeBehavior:gv,Diagnostic:pv,DiagnosticRelatedInformation:mv,DiagnosticSeverity:yv,DiagnosticTag:bv,Disposable:vv,DocumentDropEdit:tw,DocumentHighlight:wv,DocumentHighlightKind:Cv,DocumentLink:Sv,DocumentPasteEdit:nw,DocumentSymbol:Dv,EditSessionIdentityMatch:r8,EndOfLine:xv,EnvironmentVariableMutatorType:kv,EvaluatableExpression:Tv,EventEmitter:Fv,ExtensionKind:Mv,ExtensionMode:Ov,ExtensionRuntime:uw,ExternalUriOpenerPriority:Av,FileChangeType:Lv,FileCoverage:$w,FileDecoration:Nv,FileDecoration2:$v,FilePermission:jv,FileSystemError:qv,FileType:Hv,FoldingRange:Wv,FoldingRangeKind:Uv,FunctionBreakpoint:zv,FunctionCoverage:jw,Hover:Kv,IndentAction:Gv,InlayHint:iw,InlayHintKind:sw,InlayHintLabelPart:rw,InlineCompletionItem:Bv,InlineCompletionList:Vv,InlineCompletionTriggerKind:Iv,InlineValueEvaluatableExpression:Pv,InlineValueText:Rv,InlineValueVariableLookup:Ev,InputBoxValidationSeverity:Bw,InteractiveEditorResponseFeedbackKind:a8,InteractiveSessionVoteDirection:s8,KeywordRecognitionStatus:u8,LanguageStatusSeverity:Uw,LinkedEditingRanges:Rw,Location:Qv,LogLevel:i8,ManagedResolvedAuthority:cw,MarkdownString:Jv,MultiDocumentHighlight:_v,NotebookCellData:pw,NotebookCellExecutionState:gw,NotebookCellKind:hw,NotebookCellOutput:ww,NotebookCellOutputItem:Cw,NotebookCellStatusBarAlignment:bw,NotebookCellStatusBarItem:_w,NotebookControllerAffinity:Sw,NotebookControllerAffinity2:Dw,NotebookData:mw,NotebookEdit:xw,NotebookEditorRevealType:vw,NotebookKernelSourceAction:kw,NotebookRange:fw,NotebookRendererScript:yw,OverviewRulerLane:Yv,ParameterInformation:Xv,PortAttributes:Tw,PortAutoForwardAction:Zv,Position:e9,ProcessExecution:t9,ProgressLocation:n9,QuickInputButtons:i9,QuickPickItemKind:zw,Range:r9,RelatedInformationType:c8,RelativePattern:s9,RemoteAuthorityResolverError:ow,ResolvedAuthority:aw,Selection:o9,SelectionRange:a9,SemanticTokens:c9,SemanticTokensBuilder:l9,SemanticTokensEdit:u9,SemanticTokensEdits:d9,SemanticTokensLegend:f9,ShellExecution:h9,ShellQuoting:g9,SignatureHelp:p9,SignatureHelpTriggerKind:m9,SignatureInformation:y9,SnippetString:b9,SnippetTextEdit:$9,SourceBreakpoint:v9,SourceControlInputBoxValidationType:lw,SpeechToTextStatus:l8,StandardTokenType:w9,StatementCoverage:qw,StatusBarAlignment:C9,SymbolInformation:_9,SymbolKind:S9,SymbolTag:D9,SyntaxTokenType:U9,TabInputChat:t8,TabInputCustom:Qw,TabInputInteractiveWindow:e8,TabInputNotebook:Jw,TabInputNotebookDiff:Yw,TabInputTerminal:Zw,TabInputText:Vw,TabInputTextDiff:Kw,TabInputTextMerge:Gw,TabInputWebview:Xw,Task:x9,TaskGroup:k9,TaskPanelKind:T9,TaskRevealKind:R9,TaskScope:E9,TelemetryTrustedValue:n8,TerminalExitReason:A9,TerminalLink:P9,TerminalLocation:M9,TerminalOutputAnchor:F7,TerminalProfile:O9,TerminalQuickFixOpener:F9,TerminalQuickFixTerminalCommand:I9,TestMessage:Iw,TestMessage2:Fw,TestResultState:Ew,TestRunProfileKind:Ow,TestRunRequest:Pw,TestTag:Mw,TextDocumentChangeReason:z9,TextDocumentSaveReason:L9,TextEdit:N9,TextEditorCursorStyle:q9,TextEditorLineNumbersStyle:H9,TextEditorRevealType:j9,TextEditorSelectionChangeKind:W9,TextSearchCompleteMessageType:Aw,ThemeColor:B9,ThemeIcon:V9,TimelineItem:dw,TreeItem:K9,TreeItemCheckboxState:G9,TreeItemCollapsibleState:Q9,TypeHierarchyItem:J9,UIKind:Y9,Uri:X9,ViewColumn:Z9,WorkspaceEdit:ew,WorkspaceTrustState:Ww,ai:R7,authentication:y7,chat:E7,commands:_7,comments:m7,debug:w7,env:C7,extensions:v7,interactive:T7,l10n:k7,languages:x7,notebooks:g7,scm:p7,setDefaultApi:u7,speech:P7,tasks:h7,tests:b7,version:f7,window:S7,workspace:D7},Symbol.toStringTag,{value:"Module"})),ye=F0(d8);var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.asPromise=Ve.thenable=Ve.typedArray=Ve.stringArray=Ve.array=Ve.func=Ve.error=Ve.number=Ve.string=Ve.boolean=void 0;function f8(t){return t===!0||t===!1}Ve.boolean=f8;function a2(t){return typeof t=="string"||t instanceof String}Ve.string=a2;function h8(t){return typeof t=="number"||t instanceof Number}Ve.number=h8;function g8(t){return t instanceof Error}Ve.error=g8;function c2(t){return typeof t=="function"}Ve.func=c2;function l2(t){return Array.isArray(t)}Ve.array=l2;function p8(t){return l2(t)&&t.every(e=>a2(e))}Ve.stringArray=p8;function m8(t,e){return Array.isArray(t)&&t.every(e)}Ve.typedArray=m8;function u2(t){return t&&c2(t.then)}Ve.thenable=u2;function y8(t){return t instanceof Promise?t:u2(t)?new Promise((e,n)=>{t.then(i=>e(i),i=>n(i))}):Promise.resolve(t)}Ve.asPromise=y8;var $e={};Object.defineProperty($e,"__esModule",{value:!0});$e.generateUuid=$e.parse=$e.isUUID=$e.v4=$e.empty=void 0;class A1{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class Ee extends A1{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Ee._oneOf(Ee._chars)}constructor(){super([Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-","4",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._oneOf(Ee._timeHighBits),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),"-",Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex(),Ee._randomHex()].join(""))}}Ee._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Ee._timeHighBits=["8","9","a","b"];$e.empty=new A1("00000000-0000-0000-0000-000000000000");function d2(){return new Ee}$e.v4=d2;const b8=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function f2(t){return b8.test(t)}$e.isUUID=f2;function v8(t){if(!f2(t))throw new Error("invalid uuid");return new A1(t)}$e.parse=v8;function w8(){return d2().asHex()}$e.generateUuid=w8;Object.defineProperty(ge,"__esModule",{value:!0});ge.WorkspaceFeature=ge.TextDocumentLanguageFeature=ge.TextDocumentEventFeature=ge.DynamicDocumentFeature=ge.DynamicFeature=ge.StaticFeature=ge.ensure=ge.LSPCancellationError=void 0;const Or=ye,Fl=de,fn=Ve,bp=$e;class C8 extends Or.CancellationError{constructor(e){super(),this.data=e}}ge.LSPCancellationError=C8;function _8(t,e){return t[e]===void 0&&(t[e]={}),t[e]}ge.ensure=_8;var vp;(function(t){function e(n){const i=n;return i!=null&&fn.func(i.fillClientCapabilities)&&fn.func(i.initialize)&&fn.func(i.getState)&&fn.func(i.clear)&&(i.fillInitializeParams===void 0||fn.func(i.fillInitializeParams))}t.is=e})(vp||(ge.StaticFeature=vp={}));var wp;(function(t){function e(n){const i=n;return i!=null&&fn.func(i.fillClientCapabilities)&&fn.func(i.initialize)&&fn.func(i.getState)&&fn.func(i.clear)&&(i.fillInitializeParams===void 0||fn.func(i.fillInitializeParams))&&fn.func(i.register)&&fn.func(i.unregister)&&i.registrationType!==void 0}t.is=e})(wp||(ge.DynamicFeature=wp={}));class L1{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let n=0;for(const r of e){n++;for(const s of Or.workspace.textDocuments)if(Or.languages.match(r,s)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const i=n>0;return{kind:"document",id:this.registrationType.method,registrations:i,matches:!1}}}ge.DynamicDocumentFeature=L1;class S8 extends L1{static textDocumentFilter(e,n){for(const i of e)if(Or.languages.match(i,n)>0)return!0;return!1}constructor(e,n,i,r,s,o,a){super(e),this._event=n,this._type=i,this._middleware=r,this._createParams=s,this._textDocument=o,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new Or.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event(n=>{this.callback(n).catch(i=>{this._client.error(`Sending document notification ${this._type.method} failed.`,i)})})),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const n=async i=>{const r=this._createParams(i);await this._client.sendNotification(this._type,r),this.notificationSent(this.getTextDocument(i),this._type,r)};if(this.matches(e)){const i=this._middleware();return i?i(e,r=>n(r)):n(e)}}matches(e){return this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))?!1:!this._selectorFilter||this._selectorFilter(this._selectors.values(),e)}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,n,i){this._onNotificationSent.fire({textDocument:e,type:n,params:i})}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const n of this._selectors.values())if(Or.languages.match(n,e)>0)return{send:i=>this.callback(i)}}}ge.TextDocumentEventFeature=S8;class D8 extends L1{constructor(e,n){super(e),this._registrationType=n,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const n=e.data.registerOptions.documentSelector;n!==null&&(yield this._client.protocol2CodeConverter.asDocumentSelector(n))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let n=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:n[0],data:e,provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,n){if(n){if(Fl.TextDocumentRegistrationOptions.is(n)){const i=Fl.StaticRegistrationOptions.hasId(n)?n.id:bp.generateUuid(),r=n.documentSelector??e;if(r)return[i,Object.assign({},n,{documentSelector:r})]}else if(fn.boolean(n)&&n===!0||Fl.WorkDoneProgressOptions.is(n)){if(!e)return[void 0,void 0];const i=fn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e});return[bp.generateUuid(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,n){if(!(!e||!n))return fn.boolean(n)&&n===!0?{documentSelector:e}:Object.assign({},n,{documentSelector:e})}getProvider(e){for(const n of this._registrations.values()){let i=n.data.registerOptions.documentSelector;if(i!==null&&Or.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(i),e)>0)return n.provider}}getAllProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}ge.TextDocumentLanguageFeature=D8;class x8{constructor(e,n){this._client=e,this._registrationType=n,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 n=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:n[0],provider:n[1]})}unregister(e){let n=this._registrations.get(e);n!==void 0&&n.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){const e=[];for(const n of this._registrations.values())e.push(n.provider);return e}}ge.WorkspaceFeature=x8;var Ni={};const k8=typeof process=="object"&&process&&process.platform==="win32";var T8=k8?{sep:"\\"}:{sep:"/"},R8=h2;function h2(t,e,n){t instanceof RegExp&&(t=Cp(t,n)),e instanceof RegExp&&(e=Cp(e,n));var i=g2(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function Cp(t,e){var n=e.match(t);return n?n[0]:null}h2.range=g2;function g2(t,e,n){var i,r,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),h=c;if(c>=0&&l>0){if(t===e)return[c,l];for(i=[],s=n.length;h>=0&&!a;)h==c?(i.push(h),c=n.indexOf(t,h+1)):i.length==1?a=[i.pop(),l]:(r=i.pop(),r<s&&(s=r,o=l),l=n.indexOf(e,h+1)),h=c<l&&c>=0?c:l;i.length&&(a=[s,o])}return a}var p2=R8,E8=F8,m2="\0SLASH"+Math.random()+"\0",y2="\0OPEN"+Math.random()+"\0",N1="\0CLOSE"+Math.random()+"\0",b2="\0COMMA"+Math.random()+"\0",v2="\0PERIOD"+Math.random()+"\0";function Ml(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function P8(t){return t.split("\\\\").join(m2).split("\\{").join(y2).split("\\}").join(N1).split("\\,").join(b2).split("\\.").join(v2)}function I8(t){return t.split(m2).join("\\").split(y2).join("{").split(N1).join("}").split(b2).join(",").split(v2).join(".")}function w2(t){if(!t)return[""];var e=[],n=p2("{","}",t);if(!n)return t.split(",");var i=n.pre,r=n.body,s=n.post,o=i.split(",");o[o.length-1]+="{"+r+"}";var a=w2(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function F8(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),no(P8(t),!0).map(I8)):[]}function M8(t){return"{"+t+"}"}function O8(t){return/^-?0\d/.test(t)}function A8(t,e){return t<=e}function L8(t,e){return t>=e}function no(t,e){var n=[],i=p2("{","}",t);if(!i)return[t];var r=i.pre,s=i.post.length?no(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=r+"{"+i.body+"}"+s[o];n.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=c||l,g=i.body.indexOf(",")>=0;if(!h&&!g)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+N1+i.post,no(t)):[t];var p;if(h)p=i.body.split(/\.\./);else if(p=w2(i.body),p.length===1&&(p=no(p[0],!1).map(M8),p.length===1))return s.map(function(qe){return i.pre+p[0]+qe});var w;if(h){var v=Ml(p[0]),x=Ml(p[1]),T=Math.max(p[0].length,p[1].length),q=p.length==3?Math.abs(Ml(p[2])):1,z=A8,A=x<v;A&&(q*=-1,z=L8);var W=p.some(O8);w=[];for(var j=v;z(j,x);j+=q){var se;if(l)se=String.fromCharCode(j),se==="\\"&&(se="");else if(se=String(j),W){var B=T-se.length;if(B>0){var Z=new Array(B+1).join("0");j<0?se="-"+Z+se.slice(1):se=Z+se}}w.push(se)}}else{w=[];for(var oe=0;oe<p.length;oe++)w.push.apply(w,no(p[oe],!1))}for(var oe=0;oe<w.length;oe++)for(var o=0;o<s.length;o++){var a=r+w[oe]+s[o];(!e||h||a)&&n.push(a)}}return n}const Pn=Cc=(t,e,n={})=>(Wa(e),!n.nocomment&&e.charAt(0)==="#"?!1:new _c(e,n).match(t));var Cc=Pn;const rh=T8;Pn.sep=rh.sep;const ei=Symbol("globstar **");Pn.GLOBSTAR=ei;const N8=E8,_p={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},sh="[^/]",Ol=sh+"*?",$8="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",q8="(?:(?!(?:\\/|^)\\.).)*?",C2=t=>t.split("").reduce((e,n)=>(e[n]=!0,e),{}),Sp=C2("().*{}+?[]^$\\!"),H8=C2("[.("),Dp=/\/+/;Pn.filter=(t,e={})=>(n,i,r)=>Pn(n,t,e);const Qi=(t,e={})=>{const n={};return Object.keys(t).forEach(i=>n[i]=t[i]),Object.keys(e).forEach(i=>n[i]=e[i]),n};Pn.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Pn;const e=Pn,n=(i,r,s)=>e(i,r,Qi(t,s));return n.Minimatch=class extends e.Minimatch{constructor(r,s){super(r,Qi(t,s))}},n.Minimatch.defaults=i=>e.defaults(Qi(t,i)).Minimatch,n.filter=(i,r)=>e.filter(i,Qi(t,r)),n.defaults=i=>e.defaults(Qi(t,i)),n.makeRe=(i,r)=>e.makeRe(i,Qi(t,r)),n.braceExpand=(i,r)=>e.braceExpand(i,Qi(t,r)),n.match=(i,r,s)=>e.match(i,r,Qi(t,s)),n};Pn.braceExpand=(t,e)=>_2(t,e);const _2=(t,e={})=>(Wa(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:N8(t)),j8=1024*64,Wa=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>j8)throw new TypeError("pattern is too long")},Al=Symbol("subparse");Pn.makeRe=(t,e)=>new _c(t,e||{}).makeRe();Pn.match=(t,e,n={})=>{const i=new _c(e,n);return t=t.filter(r=>i.match(r)),i.options.nonull&&!t.length&&t.push(e),t};const W8=t=>t.replace(/\\(.)/g,"$1"),U8=t=>t.replace(/\\([^-\]])/g,"$1"),z8=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),B8=t=>t.replace(/[[\]\\]/g,"\\$&");class _c{constructor(e,n){Wa(e),n||(n={}),this.options=n,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();n.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,i),i=this.globParts=i.map(r=>r.split(Dp)),this.debug(this.pattern,i),i=i.map((r,s,o)=>r.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(r=>r.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let n=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)n=!n,i++;i&&(this.pattern=e.slice(i)),this.negate=n}matchOne(e,n,i){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,o=0,a=e.length,c=n.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var l=n[o],h=e[s];if(this.debug(n,l,h),l===!1)return!1;if(l===ei){this.debug("GLOBSTAR",[n,l,h]);var g=s,p=o+1;if(p===c){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!r.dot&&e[s].charAt(0)===".")return!1;return!0}for(;g<a;){var w=e[g];if(this.debug(`
65
65
  globstar while`,e,g,n,p,w),this.matchOne(e.slice(g),n.slice(p),i))return this.debug("globstar found match!",g,a,w),!0;if(w==="."||w===".."||!r.dot&&w.charAt(0)==="."){this.debug("dot detected!",e,g,n,p);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(i&&(this.debug(`
66
- >>> no match, partial?`,e,g,n,p),g===a))}var v;if(typeof l=="string"?(v=h===l,this.debug("string match",l,h,v)):(v=h.match(l),this.debug("pattern match",l,h,v)),!v)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return C2(this.pattern,this.options)}parse(e,n){Wa(e);const i=this.options;if(e==="**")if(i.noglobstar)e="*";else return ei;if(e==="")return"";let r="",s=!1,o=!1;const a=[],c=[];let l,h=!1,g=-1,p=-1,w,v,x,T=e.charAt(0)===".",q=i.dot||T;const z=()=>T?"":q?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=B=>B.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(l){switch(l){case"*":r+=Ol,s=!0;break;case"?":r+=sh,s=!0;break;default:r+="\\"+l;break}this.debug("clearStateChar %j %j",l,r),l=!1}};for(let B=0,Z;B<e.length&&(Z=e.charAt(B));B++){if(this.debug("%s %s %s %j",e,B,r,Z),o){if(Z==="/")return!1;_p[Z]&&(r+="\\"),r+=Z,o=!1;continue}switch(Z){case"/":return!1;case"\\":if(h&&e.charAt(B+1)==="-"){r+=Z;continue}W(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,B,r,Z),h){this.debug(" in class"),Z==="!"&&B===p+1&&(Z="^"),r+=Z;continue}this.debug("call clearStateChar %j",l),W(),l=Z,i.noext&&W();continue;case"(":{if(h){r+="(";continue}if(!l){r+="\\(";continue}const oe={type:l,start:B-1,reStart:r.length,open:Cp[l].open,close:Cp[l].close};this.debug(this.pattern," ",oe),a.push(oe),r+=oe.open,oe.start===0&&oe.type!=="!"&&(T=!0,r+=A(e.slice(B+1))),this.debug("plType %j %j",l,r),l=!1;continue}case")":{const oe=a[a.length-1];if(h||!oe){r+="\\)";continue}a.pop(),W(),s=!0,v=oe,r+=v.close,v.type==="!"&&c.push(Object.assign(v,{reEnd:r.length}));continue}case"|":{const oe=a[a.length-1];if(h||!oe){r+="\\|";continue}W(),r+="|",oe.start===0&&oe.type!=="!"&&(T=!0,r+=A(e.slice(B+1)));continue}case"[":if(W(),h){r+="\\"+Z;continue}h=!0,p=B,g=r.length,r+=Z;continue;case"]":if(B===p+1||!h){r+="\\"+Z;continue}w=e.substring(p+1,B);try{RegExp("["+z8(W8(w))+"]"),r+=Z}catch{r=r.substring(0,g)+"(?:$.)"}s=!0,h=!1;continue;default:W(),_p[Z]&&!(Z==="^"&&h)&&(r+="\\"),r+=Z;break}}for(h&&(w=e.slice(p+1),x=this.parse(w,Al),r=r.substring(0,g)+"\\["+x[0],s=s||x[1]),v=a.pop();v;v=a.pop()){let B;B=r.slice(v.reStart+v.open.length),this.debug("setting tail",r,v),B=B.replace(/((?:\\{2}){0,64})(\\?)\|/g,(oe,qe,O)=>(O||(O="\\"),qe+qe+O+"|")),this.debug(`tail=%j
67
- %s`,B,B,v,r);const Z=v.type==="*"?Ol:v.type==="?"?sh:"\\"+v.type;s=!0,r=r.slice(0,v.reStart)+Z+"\\("+B}W(),o&&(r+="\\\\");const j=q8[r.charAt(0)];for(let B=c.length-1;B>-1;B--){const Z=c[B],oe=r.slice(0,Z.reStart),qe=r.slice(Z.reStart,Z.reEnd-8);let O=r.slice(Z.reEnd);const L=r.slice(Z.reEnd-8,Z.reEnd)+O,D=oe.split(")").length,P=oe.split("(").length-D;let N=O;for(let ee=0;ee<P;ee++)N=N.replace(/\)[+*?]?/,"");O=N;const $=O===""&&n!==Al?"(?:$|\\/)":"";r=oe+qe+O+$+L}if(r!==""&&s&&(r="(?=.)"+r),j&&(r=z()+r),n===Al)return[r,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return j8(e);const se=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+r+"$",se),{_glob:e,_src:r})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,i=n.noglobstar?Ol:n.dot?N8:$8,r=n.nocase?"i":"";let s=e.map(o=>(o=o.map(a=>typeof a=="string"?U8(a):a===ei?ei:a._src).reduce((a,c)=>(a[a.length-1]===ei&&c===ei||a.push(c),a),[]),o.forEach((a,c)=>{a!==ei||o[c-1]===ei||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=ei))}),o.filter(a=>a!==ei).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,r)}catch{this.regexp=!1}return this.regexp}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const i=this.options;rh.sep!=="/"&&(e=e.split(rh.sep).join("/")),e=e.split(Sp),this.debug(this.pattern,"split",e);const r=this.set;this.debug(this.pattern,"set",r);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<r.length;o++){const a=r[o];let c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,n))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pn.defaults(e).Minimatch}}Pn.Minimatch=_c;Object.defineProperty(Ni,"__esModule",{value:!0});Ni.DiagnosticFeature=Ni.DiagnosticPullMode=Ni.vsdiag=void 0;const B8=Cc,Le=ye,vt=de,V8=$e,oh=ge;function na(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var qn;(function(t){(function(e){e.full="full",e.unChanged="unChanged"})(t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={}))})(qn||(Ni.vsdiag=qn={}));var Ua;(function(t){t.onType="onType",t.onSave="onSave"})(Ua||(Ni.DiagnosticPullMode=Ua={}));var tn;(function(t){t.active="open",t.reschedule="reschedule",t.outDated="drop"})(tn||(tn={}));class fo{constructor(){this.open=new Set,this._onOpen=new Le.EventEmitter,this._onClose=new Le.EventEmitter,fo.fillTabResources(this.open);const e=n=>{if(n.closed.length===0&&n.opened.length===0)return;const i=this.open,r=new Set;fo.fillTabResources(r);const s=new Set,o=new Set(r);for(const a of i.values())r.has(a)?o.delete(a):s.add(a);if(this.open=r,s.size>0){const a=new Set;for(const c of s)a.add(Le.Uri.parse(c));this._onClose.fire(a)}if(o.size>0){const a=new Set;for(const c of o)a.add(Le.Uri.parse(c));this._onOpen.fire(a)}};Le.window.tabGroups.onDidChangeTabs!==void 0?this.disposable=Le.window.tabGroups.onDidChangeTabs(e):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){var n,i;return e instanceof Le.Uri?((n=Le.window.activeTextEditor)==null?void 0:n.document.uri)===e:((i=Le.window.activeTextEditor)==null?void 0:i.document)===e}isVisible(e){const n=e instanceof Le.Uri?e:e.uri;return this.open.has(n.toString())}getTabResources(){const e=new Set;return fo.fillTabResources(new Set,e),e}static fillTabResources(e,n){const i=e??new Set;for(const r of Le.window.tabGroups.all)for(const s of r.tabs){const o=s.input;let a;o instanceof Le.TabInputText?a=o.uri:o instanceof Le.TabInputTextDiff?a=o.modified:o instanceof Le.TabInputCustom&&(a=o.uri),a!==void 0&&!i.has(a.toString())&&(i.add(a.toString()),n!==void 0&&n.add(a))}}}var Mt;(function(t){t[t.document=1]="document",t[t.workspace=2]="workspace"})(Mt||(Mt={}));var Mi;(function(t){function e(n){return n instanceof Le.Uri?n.toString():n.uri.toString()}t.asKey=e})(Mi||(Mi={}));class K8{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,n,i){const r=e===Mt.document?this.documentPullStates:this.workspacePullStates,[s,o,a]=n instanceof Le.Uri?[n.toString(),n,i]:[n.uri.toString(),n.uri,n.version];let c=r.get(s);return c===void 0&&(c={document:o,pulledVersion:a,resultId:void 0},r.set(s,c)),c}update(e,n,i,r){const s=e===Mt.document?this.documentPullStates:this.workspacePullStates,[o,a,c,l]=n instanceof Le.Uri?[n.toString(),n,i,r]:[n.uri.toString(),n.uri,n.version,i];let h=s.get(o);h===void 0?(h={document:a,pulledVersion:c,resultId:l},s.set(o,h)):(h.pulledVersion=c,h.resultId=l)}unTrack(e,n){const i=Mi.asKey(n);(e===Mt.document?this.documentPullStates:this.workspacePullStates).delete(i)}tracks(e,n){const i=Mi.asKey(n);return(e===Mt.document?this.documentPullStates:this.workspacePullStates).has(i)}getResultId(e,n){var s;const i=Mi.asKey(n);return(s=(e===Mt.document?this.documentPullStates:this.workspacePullStates).get(i))==null?void 0:s.resultId}getAllResultIds(){const e=[];for(let[n,i]of this.workspacePullStates)this.documentPullStates.has(n)&&(i=this.documentPullStates.get(n)),i.resultId!==void 0&&e.push({uri:n,value:i.resultId});return e}}class G8{constructor(e,n,i){this.client=e,this.tabs=n,this.options=i,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new Le.EventEmitter,this.provider=this.createProvider(),this.diagnostics=Le.languages.createDiagnosticCollection(i.identifier),this.openRequests=new Map,this.documentStates=new K8,this.workspaceErrorCounter=0}knows(e,n){const i=n instanceof Le.Uri?n:n.uri;return this.documentStates.tracks(e,n)||this.openRequests.has(i.toString())}forget(e,n){this.documentStates.unTrack(e,n)}pull(e,n){if(this.isDisposed)return;const i=e instanceof Le.Uri?e:e.uri;this.pullAsync(e).then(()=>{n&&n()},r=>{this.client.error(`Document pull failed for text document ${i.toString()}`,r,!1)})}async pullAsync(e,n){if(this.isDisposed)return;const i=e instanceof Le.Uri,r=i?e:e.uri,s=r.toString();n=i?n:e.version;const o=this.openRequests.get(s),a=i?this.documentStates.track(Mt.document,e,n):this.documentStates.track(Mt.document,e);if(o===void 0){const c=new Le.CancellationTokenSource;this.openRequests.set(s,{state:tn.active,document:e,version:n,tokenSource:c});let l,h;try{l=await this.provider.provideDiagnostics(e,a.resultId,c.token)??{kind:qn.DocumentDiagnosticReportKind.full,items:[]}}catch(g){if(g instanceof oh.LSPCancellationError&&vt.DiagnosticServerCancellationData.is(g.data)&&g.data.retriggerRequest===!1&&(h={state:tn.outDated,document:e}),h===void 0&&g instanceof Le.CancellationError)h={state:tn.reschedule,document:e};else throw g}if(h=h??this.openRequests.get(s),h===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),this.diagnostics.delete(r);return}if(this.openRequests.delete(s),!this.tabs.isVisible(e)){this.documentStates.unTrack(Mt.document,e);return}if(h.state===tn.outDated)return;l!==void 0&&(l.kind===qn.DocumentDiagnosticReportKind.full&&this.diagnostics.set(r,l.items),a.pulledVersion=n,a.resultId=l.resultId),h.state===tn.reschedule&&this.pull(e)}else o.state===tn.active?(o.tokenSource.cancel(),this.openRequests.set(s,{state:tn.reschedule,document:o.document})):o.state===tn.outDated&&this.openRequests.set(s,{state:tn.reschedule,document:o.document})}forgetDocument(e){const n=e instanceof Le.Uri?e:e.uri,i=n.toString(),r=this.openRequests.get(i);this.options.workspaceDiagnostics?r!==void 0?this.openRequests.set(i,{state:tn.reschedule,document:e}):this.pull(e,()=>{this.forget(Mt.document,e)}):(r!==void 0&&(r.state===tn.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:tn.outDated,document:e})),this.diagnostics.delete(n),this.forget(Mt.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,vt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{!(e instanceof oh.LSPCancellationError)&&!vt.DiagnosticServerCancellationData.is(e.data)&&(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,vt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new Le.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map(n=>({uri:this.client.protocol2CodeConverter.asUri(n.uri),value:n.value}));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,n=>{if(!(!n||this.isDisposed))for(const i of n.items)i.kind===qn.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(Mt.document,i.uri)||this.diagnostics.set(i.uri,i.items)),this.documentStates.update(Mt.workspace,i.uri,i.version??void 0,i.resultId)})}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(n,i,r)=>{const s=(a,c,l)=>{const h={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(a instanceof Le.Uri?a:a.uri)},previousResultId:c};return this.isDisposed===!0||!this.client.isRunning()?{kind:qn.DocumentDiagnosticReportKind.full,items:[]}:this.client.sendRequest(vt.DocumentDiagnosticRequest.type,h,l).then(async g=>g==null||this.isDisposed||l.isCancellationRequested?{kind:qn.DocumentDiagnosticReportKind.full,items:[]}:g.kind===vt.DocumentDiagnosticReportKind.Full?{kind:qn.DocumentDiagnosticReportKind.full,resultId:g.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(g.items,l)}:{kind:qn.DocumentDiagnosticReportKind.unChanged,resultId:g.resultId},g=>this.client.handleFailedRequest(vt.DocumentDiagnosticRequest.type,l,g,{kind:qn.DocumentDiagnosticReportKind.full,items:[]}))},o=this.client.middleware;return o.provideDiagnostics?o.provideDiagnostics(n,i,r,s):s(n,i,r)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(n,i,r)=>{const s=async l=>l.kind===vt.DocumentDiagnosticReportKind.Full?{kind:qn.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version,items:await this.client.protocol2CodeConverter.asDiagnostics(l.items,i)}:{kind:qn.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version},o=l=>{const h=[];for(const g of l)h.push({uri:this.client.code2ProtocolConverter.asUri(g.uri),value:g.value});return h},a=(l,h)=>{const g=(0,V8.generateUuid)(),p=this.client.onProgress(vt.WorkspaceDiagnosticRequest.partialResult,g,async v=>{if(v==null){r(null);return}const x={items:[]};for(const T of v.items)try{x.items.push(await s(T))}catch(q){this.client.error("Converting workspace diagnostics failed.",q)}r(x)}),w={identifier:this.options.identifier,previousResultIds:o(l),partialResultToken:g};return this.isDisposed===!0||!this.client.isRunning()?{items:[]}:this.client.sendRequest(vt.WorkspaceDiagnosticRequest.type,w,h).then(async v=>{if(h.isCancellationRequested)return{items:[]};const x={items:[]};for(const T of v.items)x.items.push(await s(T));return p.dispose(),r(x),{items:[]}},v=>(p.dispose(),this.client.handleFailedRequest(vt.DocumentDiagnosticRequest.type,h,v,{items:[]})))},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(n,i,r,a):a(n,i)}),e}dispose(){var e,n;this.isDisposed=!0,(e=this.workspaceCancellation)==null||e.cancel(),(n=this.workspaceTimeout)==null||n.dispose();for(const[i,r]of this.openRequests)r.state===tn.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:tn.outDated,document:r.document});this.diagnostics.dispose()}}class Q8{constructor(e){this.diagnosticRequestor=e,this.documents=new vt.LinkedMap,this.isDisposed=!1}add(e){if(this.isDisposed===!0)return;const n=Mi.asKey(e);this.documents.has(n)||(this.documents.set(n,e,vt.Touch.Last),this.trigger())}remove(e){const n=Mi.asKey(e);this.documents.delete(n),this.documents.size===0?this.stop():n===this.endDocumentKey()&&(this.endDocument=this.documents.last)}trigger(){if(this.isDisposed!==!0){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,vt.RAL)().timer.setInterval(()=>{const e=this.documents.first;if(e!==void 0){const n=Mi.asKey(e);this.diagnosticRequestor.pull(e),this.documents.set(n,e,vt.Touch.Last),n===this.endDocumentKey()&&this.stop()}},200)}}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear()}stop(){var e;(e=this.intervalHandle)==null||e.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}endDocumentKey(){return this.endDocument!==void 0?Mi.asKey(this.endDocument):void 0}}class J8{constructor(e,n,i){var v;const r=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(i.documentSelector),o=[],a=x=>{const T=i.documentSelector;if(r.match!==void 0)return r.match(T,x);for(const q of T)if(vt.TextDocumentFilter.is(q)){if(typeof q=="string"||q.language!==void 0&&q.language!=="*"||q.scheme!==void 0&&q.scheme!=="*"&&q.scheme!==x.scheme)return!1;if(q.pattern!==void 0){const z=new B8.Minimatch(q.pattern,{noext:!0});if(!z.makeRe()||!z.match(x.fsPath))return!1}}return!0},c=x=>x instanceof Le.Uri?a(x):Le.languages.match(s,x)>0&&n.isVisible(x),l=x=>{var T;return x instanceof Le.Uri?((T=this.activeTextDocument)==null?void 0:T.uri.toString())===x.toString():this.activeTextDocument===x};this.diagnosticRequestor=new G8(e,n,i),this.backgroundScheduler=new Q8(this.diagnosticRequestor);const h=x=>{!c(x)||!i.interFileDependencies||l(x)||this.backgroundScheduler.add(x)};this.activeTextDocument=(v=Le.window.activeTextEditor)==null?void 0:v.document,Le.window.onDidChangeActiveTextEditor(x=>{const T=this.activeTextDocument;this.activeTextDocument=x==null?void 0:x.document,T!==void 0&&h(T),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});const g=e.getFeature(vt.DidOpenTextDocumentNotification.method);o.push(g.onNotificationSent(x=>{const T=x.textDocument;this.diagnosticRequestor.knows(Mt.document,T)||c(T)&&this.diagnosticRequestor.pull(T,()=>{h(T)})})),o.push(n.onOpen(x=>{for(const T of x){if(this.diagnosticRequestor.knows(Mt.document,T))continue;const q=T.toString();let z;for(const A of Le.workspace.textDocuments)if(q===A.uri.toString()){z=A;break}z!==void 0&&c(z)&&this.diagnosticRequestor.pull(z,()=>{h(z)})}}));const p=new Set;for(const x of Le.workspace.textDocuments)c(x)&&(this.diagnosticRequestor.pull(x,()=>{h(x)}),p.add(x.uri.toString()));if(r.onTabs===!0)for(const x of n.getTabResources())!p.has(x.toString())&&c(x)&&this.diagnosticRequestor.pull(x,()=>{h(x)});if(r.onChange===!0){const x=e.getFeature(vt.DidChangeTextDocumentNotification.method);o.push(x.onNotificationSent(async T=>{const q=T.textDocument;(r.filter===void 0||!r.filter(q,Ua.onType))&&this.diagnosticRequestor.knows(Mt.document,q)&&this.diagnosticRequestor.pull(q,()=>{this.backgroundScheduler.trigger()})}))}if(r.onSave===!0){const x=e.getFeature(vt.DidSaveTextDocumentNotification.method);o.push(x.onNotificationSent(T=>{const q=T.textDocument;(r.filter===void 0||!r.filter(q,Ua.onSave))&&this.diagnosticRequestor.knows(Mt.document,q)&&this.diagnosticRequestor.pull(T.textDocument,()=>{this.backgroundScheduler.trigger()})}))}const w=e.getFeature(vt.DidCloseTextDocumentNotification.method);o.push(w.onNotificationSent(x=>{this.cleanUpDocument(x.textDocument)})),n.onClose(x=>{for(const T of x)this.cleanUpDocument(T)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(const x of Le.workspace.textDocuments)c(x)&&this.diagnosticRequestor.pull(x)}),i.workspaceDiagnostics===!0&&i.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=Le.Disposable.from(...o,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(Mt.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}}class Y8 extends oh.TextDocumentLanguageFeature{constructor(e){super(e,vt.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let n=na(na(e,"textDocument"),"diagnostic");n.dynamicRegistration=!0,n.relatedDocumentSupport=!1,na(na(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,n){this._client.onRequest(vt.DiagnosticRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeDiagnosticsEmitter.fire()});let[r,s]=this.getRegistration(n,e.diagnosticProvider);!r||!s||this.register({id:r,registerOptions:s})}clear(){this.tabs!==void 0&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}registerLanguageProvider(e){this.tabs===void 0&&(this.tabs=new fo);const n=new J8(this._client,this.tabs,e);return[n.disposable,n]}}Ni.DiagnosticFeature=Y8;var jt={},Sc={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.forEach=Wt.mapAsync=Wt.map=Wt.clearTestMode=Wt.setTestMode=Wt.Semaphore=Wt.Delayer=void 0;const Ko=de;class X8{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,n=this.defaultDelay){return this.task=e,n>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(i=>{this.onSuccess=i}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;var i=this.task();return this.task=void 0,i})),(n>=0||this.timeout===void 0)&&(this.timeout=(0,Ko.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},n>=0?n:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){this.timeout!==void 0&&(this.timeout.dispose(),this.timeout=void 0)}}Wt.Delayer=X8;let Z8=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((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Ko.RAL)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Wt.Semaphore=Z8;let $1=!1;function e6(){$1=!0}Wt.setTestMode=e6;function t6(){$1=!1}Wt.clearTestMode=t6;const Dp=15;class q1{constructor(e=Dp){this.yieldAfter=$1===!0?Math.max(e,2):Math.max(e,Dp),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,n=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||n<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}async function n6(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new q1(i==null?void 0:i.yieldAfter);function o(c){s.start();for(let l=c;l<t.length;l++)if(r[l]=e(t[l]),s.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),l+1;return-1}let a=o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,Ko.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Wt.map=n6;async function i6(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new q1(i==null?void 0:i.yieldAfter);async function o(c){s.start();for(let l=c;l<t.length;l++)if(r[l]=await e(t[l],n),s.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),l+1;return-1}let a=await o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,Ko.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Wt.mapAsync=i6;async function r6(t,e,n,i){if(t.length===0)return;const r=new q1(i==null?void 0:i.yieldAfter);function s(a){r.start();for(let c=a;c<t.length;c++)if(e(t[c]),r.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),c+1;return-1}let o=s(0);for(;o!==-1&&!(n!==void 0&&n.isCancellationRequested);)o=await new Promise(a=>{(0,Ko.RAL)().timer.setImmediate(()=>{a(s(o))})})}Wt.forEach=r6;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const s6=ye;class o6 extends s6.CompletionItem{constructor(e){super(e)}}Dc.default=o6;var xc={};Object.defineProperty(xc,"__esModule",{value:!0});const a6=ye;class c6 extends a6.CodeLens{constructor(e){super(e)}}xc.default=c6;var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const l6=ye;class u6 extends l6.DocumentLink{constructor(e,n){super(e,n)}}kc.default=u6;var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});const d6=ye;class f6 extends d6.CodeAction{constructor(e,n){super(e),this.data=n}}Tc.default=f6;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.ProtocolDiagnostic=Hr.DiagnosticCode=void 0;const h6=ye,Ll=Ve;var xp;(function(t){function e(n){const i=n;return i!=null&&(Ll.number(i.value)||Ll.string(i.value))&&Ll.string(i.target)}t.is=e})(xp||(Hr.DiagnosticCode=xp={}));class g6 extends h6.Diagnostic{constructor(e,n,i,r){super(e,n,i),this.data=r,this.hasDiagnosticCode=!1}}Hr.ProtocolDiagnostic=g6;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const p6=ye;class m6 extends p6.CallHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Rc.default=m6;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});const y6=ye;class b6 extends y6.TypeHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Ec.default=b6;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const ia=ye;let v6=class extends ia.SymbolInformation{constructor(e,n,i,r,s){const o=!(r instanceof ia.Uri);super(e,n,i,o?r:new ia.Location(r,new ia.Range(0,0,0,0))),this.hasRange=o,s!==void 0&&(this.data=s)}};Pc.default=v6;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});const w6=ye;class C6 extends w6.InlayHint{constructor(e,n,i){super(e,n,i)}}Ic.default=C6;Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createConverter=void 0;const kt=ye,be=de,gr=Ve,kp=Wt,_6=Dc,S6=xc,D6=kc,Tp=Tc,Rp=Hr,x6=Rc,k6=Ec,T6=Pc,R6=Ic;var ah;(function(t){function e(n){const i=n;return i&&!!i.inserting&&!!i.replacing}t.is=e})(ah||(ah={}));function E6(t){const n=t||(m=>m.toString());function i(m){return n(m)}function r(m){return{uri:n(m.uri)}}function s(m){return{uri:n(m.uri),languageId:m.languageId,version:m.version,text:m.getText()}}function o(m){return{uri:n(m.uri),version:m.version}}function a(m){return{textDocument:s(m)}}function c(m){const E=m;return!!E.document&&!!E.contentChanges}function l(m){const E=m;return!!E.uri&&!!E.version}function h(m,E,te){if(l(m))return{textDocument:{uri:n(m.uri),version:m.version},contentChanges:[{text:m.getText()}]};if(c(m)){const we=E,Te=te;return{textDocument:{uri:n(we),version:Te},contentChanges:m.contentChanges.map(S=>{const H=S.range;return{range:{start:{line:H.start.line,character:H.start.character},end:{line:H.end.line,character:H.end.character}},rangeLength:S.rangeLength,text:S.text}})}}else throw Error("Unsupported text document change parameter")}function g(m){return{textDocument:r(m)}}function p(m,E=!1){let te={textDocument:r(m)};return E&&(te.text=m.getText()),te}function w(m){switch(m){case kt.TextDocumentSaveReason.Manual:return be.TextDocumentSaveReason.Manual;case kt.TextDocumentSaveReason.AfterDelay:return be.TextDocumentSaveReason.AfterDelay;case kt.TextDocumentSaveReason.FocusOut:return be.TextDocumentSaveReason.FocusOut}return be.TextDocumentSaveReason.Manual}function v(m){return{textDocument:r(m.document),reason:w(m.reason)}}function x(m){return{files:m.files.map(E=>({uri:n(E)}))}}function T(m){return{files:m.files.map(E=>({oldUri:n(E.oldUri),newUri:n(E.newUri)}))}}function q(m){return{files:m.files.map(E=>({uri:n(E)}))}}function z(m){return{files:m.files.map(E=>({uri:n(E)}))}}function A(m){return{files:m.files.map(E=>({oldUri:n(E.oldUri),newUri:n(E.newUri)}))}}function W(m){return{files:m.files.map(E=>({uri:n(E)}))}}function j(m,E){return{textDocument:r(m),position:N(E)}}function se(m){switch(m){case kt.CompletionTriggerKind.TriggerCharacter:return be.CompletionTriggerKind.TriggerCharacter;case kt.CompletionTriggerKind.TriggerForIncompleteCompletions:return be.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return be.CompletionTriggerKind.Invoked}}function B(m,E,te){return{textDocument:r(m),position:N(E),context:{triggerKind:se(te.triggerKind),triggerCharacter:te.triggerCharacter}}}function Z(m){switch(m){case kt.SignatureHelpTriggerKind.Invoke:return be.SignatureHelpTriggerKind.Invoked;case kt.SignatureHelpTriggerKind.TriggerCharacter:return be.SignatureHelpTriggerKind.TriggerCharacter;case kt.SignatureHelpTriggerKind.ContentChange:return be.SignatureHelpTriggerKind.ContentChange}}function oe(m){return{label:m.label}}function qe(m){return m.map(oe)}function O(m){return{label:m.label,parameters:qe(m.parameters)}}function L(m){return m.map(O)}function D(m){return m===void 0?m:{signatures:L(m.signatures),activeSignature:m.activeSignature,activeParameter:m.activeParameter}}function P(m,E,te){return{textDocument:r(m),position:N(E),context:{isRetrigger:te.isRetrigger,triggerCharacter:te.triggerCharacter,triggerKind:Z(te.triggerKind),activeSignatureHelp:D(te.activeSignatureHelp)}}}function N(m){return{line:m.line,character:m.character}}function $(m){return m==null?m:{line:m.line>be.uinteger.MAX_VALUE?be.uinteger.MAX_VALUE:m.line,character:m.character>be.uinteger.MAX_VALUE?be.uinteger.MAX_VALUE:m.character}}function ee(m,E){return kp.map(m,$,E)}function ke(m){return m.map($)}function pe(m){return m==null?m:{start:$(m.start),end:$(m.end)}}function ot(m){return m.map(pe)}function Ke(m){return m==null?m:be.Location.create(i(m.uri),pe(m.range))}function Pe(m){switch(m){case kt.DiagnosticSeverity.Error:return be.DiagnosticSeverity.Error;case kt.DiagnosticSeverity.Warning:return be.DiagnosticSeverity.Warning;case kt.DiagnosticSeverity.Information:return be.DiagnosticSeverity.Information;case kt.DiagnosticSeverity.Hint:return be.DiagnosticSeverity.Hint}}function ft(m){if(!m)return;let E=[];for(let te of m){let we=He(te);we!==void 0&&E.push(we)}return E.length>0?E:void 0}function He(m){switch(m){case kt.DiagnosticTag.Unnecessary:return be.DiagnosticTag.Unnecessary;case kt.DiagnosticTag.Deprecated:return be.DiagnosticTag.Deprecated;default:return}}function ht(m){return{message:m.message,location:Ke(m.location)}}function rt(m){return m.map(ht)}function Ut(m){if(m!=null)return gr.number(m)||gr.string(m)?m:{value:m.value,target:i(m.target)}}function gt(m){const E=be.Diagnostic.create(pe(m.range),m.message),te=m instanceof Rp.ProtocolDiagnostic?m:void 0;te!==void 0&&te.data!==void 0&&(E.data=te.data);const we=Ut(m.code);return Rp.DiagnosticCode.is(we)?te!==void 0&&te.hasDiagnosticCode?E.code=we:(E.code=we.value,E.codeDescription={href:we.target}):E.code=we,gr.number(m.severity)&&(E.severity=Pe(m.severity)),Array.isArray(m.tags)&&(E.tags=ft(m.tags)),m.relatedInformation&&(E.relatedInformation=rt(m.relatedInformation)),m.source&&(E.source=m.source),E}function Dt(m,E){return m==null?m:kp.map(m,gt,E)}function Pt(m){return m==null?m:m.map(gt)}function Lt(m,E){switch(m){case"$string":return E;case be.MarkupKind.PlainText:return{kind:m,value:E};case be.MarkupKind.Markdown:return{kind:m,value:E.value};default:return`Unsupported Markup content received. Kind is: ${m}`}}function Se(m){switch(m){case kt.CompletionItemTag.Deprecated:return be.CompletionItemTag.Deprecated}}function Nt(m){if(m===void 0)return m;const E=[];for(let te of m){const we=Se(te);we!==void 0&&E.push(we)}return E}function Be(m,E){return E!==void 0?E:m+1}function xt(m,E=!1){let te,we;gr.string(m.label)?te=m.label:(te=m.label.label,E&&(m.label.detail!==void 0||m.label.description!==void 0)&&(we={detail:m.label.detail,description:m.label.description}));let Te={label:te};we!==void 0&&(Te.labelDetails=we);let at=m instanceof _6.default?m:void 0;m.detail&&(Te.detail=m.detail),m.documentation&&(!at||at.documentationFormat==="$string"?Te.documentation=m.documentation:Te.documentation=Lt(at.documentationFormat,m.documentation)),m.filterText&&(Te.filterText=m.filterText),Cn(Te,m),gr.number(m.kind)&&(Te.kind=Be(m.kind,at&&at.originalItemKind)),m.sortText&&(Te.sortText=m.sortText),m.additionalTextEdits&&(Te.additionalTextEdits=It(m.additionalTextEdits)),m.commitCharacters&&(Te.commitCharacters=m.commitCharacters.slice()),m.command&&(Te.command=Zt(m.command)),(m.preselect===!0||m.preselect===!1)&&(Te.preselect=m.preselect);const S=Nt(m.tags);if(at){if(at.data!==void 0&&(Te.data=at.data),at.deprecated===!0||at.deprecated===!1){if(at.deprecated===!0&&S!==void 0&&S.length>0){const H=S.indexOf(kt.CompletionItemTag.Deprecated);H!==-1&&S.splice(H,1)}Te.deprecated=at.deprecated}at.insertTextMode!==void 0&&(Te.insertTextMode=at.insertTextMode)}return S!==void 0&&S.length>0&&(Te.tags=S),Te.insertTextMode===void 0&&m.keepWhitespace===!0&&(Te.insertTextMode=be.InsertTextMode.adjustIndentation),Te}function Cn(m,E){let te=be.InsertTextFormat.PlainText,we,Te;E.textEdit?(we=E.textEdit.newText,Te=E.textEdit.range):E.insertText instanceof kt.SnippetString?(te=be.InsertTextFormat.Snippet,we=E.insertText.value):we=E.insertText,E.range&&(Te=E.range),m.insertTextFormat=te,E.fromEdit&&we!==void 0&&Te!==void 0?m.textEdit=hn(we,Te):m.insertText=we}function hn(m,E){return ah.is(E)?be.InsertReplaceEdit.create(m,pe(E.inserting),pe(E.replacing)):{newText:m,range:pe(E)}}function Jt(m){return{range:pe(m.range),newText:m.newText}}function It(m){return m==null?m:m.map(Jt)}function Ft(m){return m<=kt.SymbolKind.TypeParameter?m+1:be.SymbolKind.Property}function Xe(m){return m}function Yt(m){return m.map(Xe)}function Kn(m,E,te){return{textDocument:r(m),position:N(E),context:{includeDeclaration:te.includeDeclaration}}}async function In(m,E){let te=be.CodeAction.create(m.title);if(m instanceof Tp.default&&m.data!==void 0&&(te.data=m.data),m.kind!==void 0&&(te.kind=Xt(m.kind)),m.diagnostics!==void 0&&(te.diagnostics=await Dt(m.diagnostics,E)),m.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return m.command!==void 0&&(te.command=Zt(m.command)),m.isPreferred!==void 0&&(te.isPreferred=m.isPreferred),m.disabled!==void 0&&(te.disabled={reason:m.disabled.reason}),te}function Fn(m){let E=be.CodeAction.create(m.title);if(m instanceof Tp.default&&m.data!==void 0&&(E.data=m.data),m.kind!==void 0&&(E.kind=Xt(m.kind)),m.diagnostics!==void 0&&(E.diagnostics=Pt(m.diagnostics)),m.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return m.command!==void 0&&(E.command=Zt(m.command)),m.isPreferred!==void 0&&(E.isPreferred=m.isPreferred),m.disabled!==void 0&&(E.disabled={reason:m.disabled.reason}),E}async function Gn(m,E){if(m==null)return m;let te;return m.only&&gr.string(m.only.value)&&(te=[m.only.value]),be.CodeActionContext.create(await Dt(m.diagnostics,E),te,_n(m.triggerKind))}function Qn(m){if(m==null)return m;let E;return m.only&&gr.string(m.only.value)&&(E=[m.only.value]),be.CodeActionContext.create(Pt(m.diagnostics),E,_n(m.triggerKind))}function _n(m){switch(m){case kt.CodeActionTriggerKind.Invoke:return be.CodeActionTriggerKind.Invoked;case kt.CodeActionTriggerKind.Automatic:return be.CodeActionTriggerKind.Automatic;default:return}}function Xt(m){if(m!=null)return m.value}function Mn(m){return m==null?m:be.InlineValueContext.create(m.frameId,pe(m.stoppedLocation))}function ai(m,E,te){return{context:be.InlineCompletionContext.create(te.triggerKind,te.selectedCompletionInfo),textDocument:r(m),position:$(E)}}function Zt(m){let E=be.Command.create(m.title,m.command);return m.arguments&&(E.arguments=m.arguments),E}function gn(m){let E=be.CodeLens.create(pe(m.range));return m.command&&(E.command=Zt(m.command)),m instanceof S6.default&&m.data&&(E.data=m.data),E}function On(m,E){const te={tabSize:m.tabSize,insertSpaces:m.insertSpaces};return E.trimTrailingWhitespace&&(te.trimTrailingWhitespace=!0),E.trimFinalNewlines&&(te.trimFinalNewlines=!0),E.insertFinalNewline&&(te.insertFinalNewline=!0),te}function en(m){return{textDocument:r(m)}}function An(m){return{textDocument:r(m)}}function Sn(m){let E=be.DocumentLink.create(pe(m.range));m.target&&(E.target=i(m.target)),m.tooltip!==void 0&&(E.tooltip=m.tooltip);let te=m instanceof D6.default?m:void 0;return te&&te.data&&(E.data=te.data),E}function Ln(m){return{textDocument:r(m)}}function ci(m){const E={name:m.name,kind:Ft(m.kind),uri:i(m.uri),range:pe(m.range),selectionRange:pe(m.selectionRange)};return m.detail!==void 0&&m.detail.length>0&&(E.detail=m.detail),m.tags!==void 0&&(E.tags=Yt(m.tags)),m instanceof x6.default&&m.data!==void 0&&(E.data=m.data),E}function Dn(m){const E={name:m.name,kind:Ft(m.kind),uri:i(m.uri),range:pe(m.range),selectionRange:pe(m.selectionRange)};return m.detail!==void 0&&m.detail.length>0&&(E.detail=m.detail),m.tags!==void 0&&(E.tags=Yt(m.tags)),m instanceof k6.default&&m.data!==void 0&&(E.data=m.data),E}function zt(m){const E=m instanceof T6.default?{name:m.name,kind:Ft(m.kind),location:m.hasRange?Ke(m.location):{uri:n(m.location.uri)},data:m.data}:{name:m.name,kind:Ft(m.kind),location:Ke(m.location)};return m.tags!==void 0&&(E.tags=Yt(m.tags)),m.containerName!==""&&(E.containerName=m.containerName),E}function Nn(m){const E=typeof m.label=="string"?m.label:m.label.map(Jn),te=be.InlayHint.create($(m.position),E);return m.kind!==void 0&&(te.kind=m.kind),m.textEdits!==void 0&&(te.textEdits=It(m.textEdits)),m.tooltip!==void 0&&(te.tooltip=cn(m.tooltip)),m.paddingLeft!==void 0&&(te.paddingLeft=m.paddingLeft),m.paddingRight!==void 0&&(te.paddingRight=m.paddingRight),m instanceof R6.default&&m.data!==void 0&&(te.data=m.data),te}function Jn(m){const E=be.InlayHintLabelPart.create(m.value);return m.location!==void 0&&(E.location=Ke(m.location)),m.command!==void 0&&(E.command=Zt(m.command)),m.tooltip!==void 0&&(E.tooltip=cn(m.tooltip)),E}function cn(m){return typeof m=="string"?m:{kind:be.MarkupKind.Markdown,value:m.value}}return{asUri:i,asTextDocumentIdentifier:r,asTextDocumentItem:s,asVersionedTextDocumentIdentifier:o,asOpenTextDocumentParams:a,asChangeTextDocumentParams:h,asCloseTextDocumentParams:g,asSaveTextDocumentParams:p,asWillSaveTextDocumentParams:v,asDidCreateFilesParams:x,asDidRenameFilesParams:T,asDidDeleteFilesParams:q,asWillCreateFilesParams:z,asWillRenameFilesParams:A,asWillDeleteFilesParams:W,asTextDocumentPositionParams:j,asCompletionParams:B,asSignatureHelpParams:P,asWorkerPosition:N,asRange:pe,asRanges:ot,asPosition:$,asPositions:ee,asPositionsSync:ke,asLocation:Ke,asDiagnosticSeverity:Pe,asDiagnosticTag:He,asDiagnostic:gt,asDiagnostics:Dt,asDiagnosticsSync:Pt,asCompletionItem:xt,asTextEdit:Jt,asSymbolKind:Ft,asSymbolTag:Xe,asSymbolTags:Yt,asReferenceParams:Kn,asCodeAction:In,asCodeActionSync:Fn,asCodeActionContext:Gn,asCodeActionContextSync:Qn,asInlineValueContext:Mn,asCommand:Zt,asCodeLens:gn,asFormattingOptions:On,asDocumentSymbolParams:en,asCodeLensParams:An,asDocumentLink:Sn,asDocumentLinkParams:Ln,asCallHierarchyItem:ci,asTypeHierarchyItem:Dn,asInlayHint:Nn,asWorkspaceSymbol:zt,asInlineCompletionParams:ai}}Sc.createConverter=E6;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.createConverter=void 0;const X=ye,me=de,Hn=Ve,We=Wt,P6=Dc,I6=xc,F6=kc,M6=Tc,Ep=Hr,O6=Rc,A6=Ec,L6=Pc,N6=Ic,Pp=de;var za;(function(t){function e(n){let i=n;return i&&Hn.string(i.language)&&Hn.string(i.value)}t.is=e})(za||(za={}));function $6(t,e,n){const r=t||(d=>X.Uri.parse(d));function s(d){return r(d)}function o(d){const _=[];for(const I of d)if(typeof I=="string")_.push(I);else if(Pp.NotebookCellTextDocumentFilter.is(I))if(typeof I.notebook=="string")_.push({notebookType:I.notebook,language:I.language});else{const V=I.notebook.notebookType??"*";_.push({notebookType:V,scheme:I.notebook.scheme,pattern:I.notebook.pattern,language:I.language})}else Pp.TextDocumentFilter.is(I)&&_.push({language:I.language,scheme:I.scheme,pattern:I.pattern});return _}async function a(d,_){return We.map(d,l,_)}function c(d){const _=new Array(d.length);for(let I=0;I<d.length;I++)_[I]=l(d[I]);return _}function l(d){let _=new Ep.ProtocolDiagnostic(v(d.range),d.message,T(d.severity),d.data);if(d.code!==void 0){if(typeof d.code=="string"||typeof d.code=="number")me.CodeDescription.is(d.codeDescription)?_.code={value:d.code,target:s(d.codeDescription.href)}:_.code=d.code;else if(Ep.DiagnosticCode.is(d.code)){_.hasDiagnosticCode=!0;const I=d.code;_.code={value:I.value,target:s(I.target)}}}return d.source&&(_.source=d.source),d.relatedInformation&&(_.relatedInformation=h(d.relatedInformation)),Array.isArray(d.tags)&&(_.tags=g(d.tags)),_}function h(d){const _=new Array(d.length);for(let I=0;I<d.length;I++){const V=d[I];_[I]=new X.DiagnosticRelatedInformation(Pe(V.location),V.message)}return _}function g(d){if(!d)return;let _=[];for(let I of d){let V=p(I);V!==void 0&&_.push(V)}return _.length>0?_:void 0}function p(d){switch(d){case me.DiagnosticTag.Unnecessary:return X.DiagnosticTag.Unnecessary;case me.DiagnosticTag.Deprecated:return X.DiagnosticTag.Deprecated;default:return}}function w(d){return d?new X.Position(d.line,d.character):void 0}function v(d){return d?new X.Range(d.start.line,d.start.character,d.end.line,d.end.character):void 0}async function x(d,_){return We.map(d,I=>new X.Range(I.start.line,I.start.character,I.end.line,I.end.character),_)}function T(d){if(d==null)return X.DiagnosticSeverity.Error;switch(d){case me.DiagnosticSeverity.Error:return X.DiagnosticSeverity.Error;case me.DiagnosticSeverity.Warning:return X.DiagnosticSeverity.Warning;case me.DiagnosticSeverity.Information:return X.DiagnosticSeverity.Information;case me.DiagnosticSeverity.Hint:return X.DiagnosticSeverity.Hint}return X.DiagnosticSeverity.Error}function q(d){if(Hn.string(d))return A(d);if(za.is(d))return A().appendCodeblock(d.value,d.language);if(Array.isArray(d)){let _=[];for(let I of d){let V=A();za.is(I)?V.appendCodeblock(I.value,I.language):V.appendMarkdown(I),_.push(V)}return _}else return A(d)}function z(d){if(Hn.string(d))return d;switch(d.kind){case me.MarkupKind.Markdown:return A(d.value);case me.MarkupKind.PlainText:return d.value;default:return`Unsupported Markup content received. Kind is: ${d.kind}`}}function A(d){let _;if(d===void 0||typeof d=="string")_=new X.MarkdownString(d);else switch(d.kind){case me.MarkupKind.Markdown:_=new X.MarkdownString(d.value);break;case me.MarkupKind.PlainText:_=new X.MarkdownString,_.appendText(d.value);break;default:_=new X.MarkdownString,_.appendText(`Unsupported Markup content received. Kind is: ${d.kind}`);break}return _.isTrusted=e,_.supportHtml=n,_}function W(d){if(d)return new X.Hover(q(d.contents),v(d.range))}async function j(d,_,I){if(!d)return;if(Array.isArray(d))return We.map(d,$n=>qe($n,_),I);const V=d,{defaultRange:Ce,commitCharacters:Oe}=se(V,_),De=await We.map(V.items,$n=>{var Ge,fr,Ls;return qe($n,Oe,Ce,(Ge=V.itemDefaults)==null?void 0:Ge.insertTextMode,(fr=V.itemDefaults)==null?void 0:fr.insertTextFormat,(Ls=V.itemDefaults)==null?void 0:Ls.data)},I);return new X.CompletionList(De,V.isIncomplete)}function se(d,_){var Ce,Oe;const I=(Ce=d.itemDefaults)==null?void 0:Ce.editRange,V=((Oe=d.itemDefaults)==null?void 0:Oe.commitCharacters)??_;return me.Range.is(I)?{defaultRange:v(I),commitCharacters:V}:I!==void 0?{defaultRange:{inserting:v(I.insert),replacing:v(I.replace)},commitCharacters:V}:{defaultRange:void 0,commitCharacters:V}}function B(d){return me.CompletionItemKind.Text<=d&&d<=me.CompletionItemKind.TypeParameter?[d-1,void 0]:[X.CompletionItemKind.Text,d]}function Z(d){switch(d){case me.CompletionItemTag.Deprecated:return X.CompletionItemTag.Deprecated}}function oe(d){if(d==null)return[];const _=[];for(const I of d){const V=Z(I);V!==void 0&&_.push(V)}return _}function qe(d,_,I,V,Ce,Oe){const De=oe(d.tags),$n=O(d),Ge=new P6.default($n);d.detail&&(Ge.detail=d.detail),d.documentation&&(Ge.documentation=z(d.documentation),Ge.documentationFormat=Hn.string(d.documentation)?"$string":d.documentation.kind),d.filterText&&(Ge.filterText=d.filterText);const fr=L(d,I,Ce);if(fr&&(Ge.insertText=fr.text,Ge.range=fr.range,Ge.fromEdit=fr.fromEdit),Hn.number(d.kind)){let[K2,J1]=B(d.kind);Ge.kind=K2,J1&&(Ge.originalItemKind=J1)}d.sortText&&(Ge.sortText=d.sortText),d.additionalTextEdits&&(Ge.additionalTextEdits=$(d.additionalTextEdits));const Ls=d.commitCharacters!==void 0?Hn.stringArray(d.commitCharacters)?d.commitCharacters:void 0:_;Ls&&(Ge.commitCharacters=Ls.slice()),d.command&&(Ge.command=It(d.command)),(d.deprecated===!0||d.deprecated===!1)&&(Ge.deprecated=d.deprecated,d.deprecated===!0&&De.push(X.CompletionItemTag.Deprecated)),(d.preselect===!0||d.preselect===!1)&&(Ge.preselect=d.preselect);const Q1=d.data??Oe;Q1!==void 0&&(Ge.data=Q1),De.length>0&&(Ge.tags=De);const Cl=d.insertTextMode??V;return Cl!==void 0&&(Ge.insertTextMode=Cl,Cl===me.InsertTextMode.asIs&&(Ge.keepWhitespace=!0)),Ge}function O(d){return me.CompletionItemLabelDetails.is(d.labelDetails)?{label:d.label,detail:d.labelDetails.detail,description:d.labelDetails.description}:d.label}function L(d,_,I){const V=d.insertTextFormat??I;if(d.textEdit!==void 0||_!==void 0){const[Ce,Oe]=d.textEdit!==void 0?D(d.textEdit):[_,d.textEditText??d.label];return V===me.InsertTextFormat.Snippet?{text:new X.SnippetString(Oe),range:Ce,fromEdit:!0}:{text:Oe,range:Ce,fromEdit:!0}}else return d.insertText?V===me.InsertTextFormat.Snippet?{text:new X.SnippetString(d.insertText),fromEdit:!1}:{text:d.insertText,fromEdit:!1}:void 0}function D(d){return me.InsertReplaceEdit.is(d)?[{inserting:v(d.insert),replacing:v(d.replace)},d.newText]:[v(d.range),d.newText]}function P(d){if(d)return new X.TextEdit(v(d.range),d.newText)}async function N(d,_){if(d)return We.map(d,P,_)}function $(d){if(!d)return;const _=new Array(d.length);for(let I=0;I<d.length;I++)_[I]=P(d[I]);return _}async function ee(d,_){if(!d)return;let I=new X.SignatureHelp;return Hn.number(d.activeSignature)?I.activeSignature=d.activeSignature:I.activeSignature=0,Hn.number(d.activeParameter)?I.activeParameter=d.activeParameter:I.activeParameter=0,d.signatures&&(I.signatures=await ke(d.signatures,_)),I}async function ke(d,_){return We.mapAsync(d,pe,_)}async function pe(d,_){let I=new X.SignatureInformation(d.label);return d.documentation!==void 0&&(I.documentation=z(d.documentation)),d.parameters!==void 0&&(I.parameters=await ot(d.parameters,_)),d.activeParameter!==void 0&&(I.activeParameter=d.activeParameter),I}function ot(d,_){return We.map(d,Ke,_)}function Ke(d){let _=new X.ParameterInformation(d.label);return d.documentation&&(_.documentation=z(d.documentation)),_}function Pe(d){return d?new X.Location(r(d.uri),v(d.range)):void 0}async function ft(d,_){if(d)return rt(d,_)}async function He(d,_){if(d)return rt(d,_)}function ht(d){if(!d)return;let _={targetUri:r(d.targetUri),targetRange:v(d.targetRange),originSelectionRange:v(d.originSelectionRange),targetSelectionRange:v(d.targetSelectionRange)};if(!_.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return _}async function rt(d,_){if(d)if(Hn.array(d)){if(d.length===0)return[];if(me.LocationLink.is(d[0])){const I=d;return We.map(I,ht,_)}else{const I=d;return We.map(I,Pe,_)}}else return me.LocationLink.is(d)?[ht(d)]:Pe(d)}async function Ut(d,_){if(d)return We.map(d,Pe,_)}async function gt(d,_){if(d)return We.map(d,Dt,_)}function Dt(d){let _=new X.DocumentHighlight(v(d.range));return Hn.number(d.kind)&&(_.kind=Pt(d.kind)),_}function Pt(d){switch(d){case me.DocumentHighlightKind.Text:return X.DocumentHighlightKind.Text;case me.DocumentHighlightKind.Read:return X.DocumentHighlightKind.Read;case me.DocumentHighlightKind.Write:return X.DocumentHighlightKind.Write}return X.DocumentHighlightKind.Text}async function Lt(d,_){if(d)return We.map(d,xt,_)}function Se(d){return d<=me.SymbolKind.TypeParameter?d-1:X.SymbolKind.Property}function Nt(d){switch(d){case me.SymbolTag.Deprecated:return X.SymbolTag.Deprecated;default:return}}function Be(d){if(d==null)return;const _=[];for(const I of d){const V=Nt(I);V!==void 0&&_.push(V)}return _.length===0?void 0:_}function xt(d){const _=d.data,I=d.location,V=I.range===void 0||_!==void 0?new L6.default(d.name,Se(d.kind),d.containerName??"",I.range===void 0?r(I.uri):new X.Location(r(d.location.uri),v(I.range)),_):new X.SymbolInformation(d.name,Se(d.kind),d.containerName??"",new X.Location(r(d.location.uri),v(I.range)));return Jt(V,d),V}async function Cn(d,_){if(d!=null)return We.map(d,hn,_)}function hn(d){let _=new X.DocumentSymbol(d.name,d.detail||"",Se(d.kind),v(d.range),v(d.selectionRange));if(Jt(_,d),d.children!==void 0&&d.children.length>0){let I=[];for(let V of d.children)I.push(hn(V));_.children=I}return _}function Jt(d,_){d.tags=Be(_.tags),_.deprecated&&(d.tags?d.tags.includes(X.SymbolTag.Deprecated)||(d.tags=d.tags.concat(X.SymbolTag.Deprecated)):d.tags=[X.SymbolTag.Deprecated])}function It(d){let _={title:d.title,command:d.command};return d.arguments&&(_.arguments=d.arguments),_}async function Ft(d,_){if(d)return We.map(d,It,_)}const Xe=new Map;Xe.set(me.CodeActionKind.Empty,X.CodeActionKind.Empty),Xe.set(me.CodeActionKind.QuickFix,X.CodeActionKind.QuickFix),Xe.set(me.CodeActionKind.Refactor,X.CodeActionKind.Refactor),Xe.set(me.CodeActionKind.RefactorExtract,X.CodeActionKind.RefactorExtract),Xe.set(me.CodeActionKind.RefactorInline,X.CodeActionKind.RefactorInline),Xe.set(me.CodeActionKind.RefactorRewrite,X.CodeActionKind.RefactorRewrite),Xe.set(me.CodeActionKind.Source,X.CodeActionKind.Source),Xe.set(me.CodeActionKind.SourceOrganizeImports,X.CodeActionKind.SourceOrganizeImports);function Yt(d){if(d==null)return;let _=Xe.get(d);if(_)return _;let I=d.split(".");_=X.CodeActionKind.Empty;for(let V of I)_=_.append(V);return _}function Kn(d){if(d!=null)return d.map(_=>Yt(_))}async function In(d,_){if(d==null)return;let I=new M6.default(d.title,d.data);return d.kind!==void 0&&(I.kind=Yt(d.kind)),d.diagnostics!==void 0&&(I.diagnostics=c(d.diagnostics)),d.edit!==void 0&&(I.edit=await _n(d.edit,_)),d.command!==void 0&&(I.command=It(d.command)),d.isPreferred!==void 0&&(I.isPreferred=d.isPreferred),d.disabled!==void 0&&(I.disabled={reason:d.disabled.reason}),I}function Fn(d,_){return We.mapAsync(d,async I=>me.Command.is(I)?It(I):In(I,_),_)}function Gn(d){if(!d)return;let _=new I6.default(v(d.range));return d.command&&(_.command=It(d.command)),d.data!==void 0&&d.data!==null&&(_.data=d.data),_}async function Qn(d,_){if(d)return We.map(d,Gn,_)}async function _n(d,_){if(!d)return;const I=new Map;if(d.changeAnnotations!==void 0){const Oe=d.changeAnnotations;await We.forEach(Object.keys(Oe),De=>{const $n=Xt(Oe[De]);I.set(De,$n)},_)}const V=Oe=>{if(Oe!==void 0)return I.get(Oe)},Ce=new X.WorkspaceEdit;if(d.documentChanges){const Oe=d.documentChanges;await We.forEach(Oe,De=>{if(me.CreateFile.is(De))Ce.createFile(r(De.uri),De.options,V(De.annotationId));else if(me.RenameFile.is(De))Ce.renameFile(r(De.oldUri),r(De.newUri),De.options,V(De.annotationId));else if(me.DeleteFile.is(De))Ce.deleteFile(r(De.uri),De.options,V(De.annotationId));else if(me.TextDocumentEdit.is(De)){const $n=r(De.textDocument.uri);for(const Ge of De.edits)me.AnnotatedTextEdit.is(Ge)?Ce.replace($n,v(Ge.range),Ge.newText,V(Ge.annotationId)):Ce.replace($n,v(Ge.range),Ge.newText)}else throw new Error(`Unknown workspace edit change received:
68
- ${JSON.stringify(De,void 0,4)}`)},_)}else if(d.changes){const Oe=d.changes;await We.forEach(Object.keys(Oe),De=>{Ce.set(r(De),$(Oe[De]))},_)}return Ce}function Xt(d){if(d!==void 0)return{label:d.label,needsConfirmation:!!d.needsConfirmation,description:d.description}}function Mn(d){let _=v(d.range),I=d.target?s(d.target):void 0,V=new F6.default(_,I);return d.tooltip!==void 0&&(V.tooltip=d.tooltip),d.data!==void 0&&d.data!==null&&(V.data=d.data),V}async function ai(d,_){if(d)return We.map(d,Mn,_)}function Zt(d){return new X.Color(d.red,d.green,d.blue,d.alpha)}function gn(d){return new X.ColorInformation(v(d.range),Zt(d.color))}async function On(d,_){if(d)return We.map(d,gn,_)}function en(d){let _=new X.ColorPresentation(d.label);return _.additionalTextEdits=$(d.additionalTextEdits),d.textEdit&&(_.textEdit=P(d.textEdit)),_}async function An(d,_){if(d)return We.map(d,en,_)}function Sn(d){if(d)switch(d){case me.FoldingRangeKind.Comment:return X.FoldingRangeKind.Comment;case me.FoldingRangeKind.Imports:return X.FoldingRangeKind.Imports;case me.FoldingRangeKind.Region:return X.FoldingRangeKind.Region}}function Ln(d){return new X.FoldingRange(d.startLine,d.endLine,Sn(d.kind))}async function ci(d,_){if(d)return We.map(d,Ln,_)}function Dn(d){return new X.SelectionRange(v(d.range),d.parent?Dn(d.parent):void 0)}async function zt(d,_){return Array.isArray(d)?We.map(d,Dn,_):[]}function Nn(d){return me.InlineValueText.is(d)?new X.InlineValueText(v(d.range),d.text):me.InlineValueVariableLookup.is(d)?new X.InlineValueVariableLookup(v(d.range),d.variableName,d.caseSensitiveLookup):new X.InlineValueEvaluatableExpression(v(d.range),d.expression)}async function Jn(d,_){return Array.isArray(d)?We.map(d,Nn,_):[]}async function cn(d,_){const I=typeof d.label=="string"?d.label:await We.map(d.label,m,_),V=new N6.default(w(d.position),I);return d.kind!==void 0&&(V.kind=d.kind),d.textEdits!==void 0&&(V.textEdits=await N(d.textEdits,_)),d.tooltip!==void 0&&(V.tooltip=E(d.tooltip)),d.paddingLeft!==void 0&&(V.paddingLeft=d.paddingLeft),d.paddingRight!==void 0&&(V.paddingRight=d.paddingRight),d.data!==void 0&&(V.data=d.data),V}function m(d){const _=new X.InlayHintLabelPart(d.value);return d.location!==void 0&&(_.location=Pe(d.location)),d.tooltip!==void 0&&(_.tooltip=E(d.tooltip)),d.command!==void 0&&(_.command=It(d.command)),_}function E(d){return typeof d=="string"?d:A(d)}async function te(d,_){if(Array.isArray(d))return We.mapAsync(d,cn,_)}function we(d){if(d===null)return;const _=new O6.default(Se(d.kind),d.name,d.detail||"",s(d.uri),v(d.range),v(d.selectionRange),d.data);return d.tags!==void 0&&(_.tags=Be(d.tags)),_}async function Te(d,_){if(d!==null)return We.map(d,we,_)}async function at(d,_){return new X.CallHierarchyIncomingCall(we(d.from),await x(d.fromRanges,_))}async function S(d,_){if(d!==null)return We.mapAsync(d,at,_)}async function H(d,_){return new X.CallHierarchyOutgoingCall(we(d.to),await x(d.fromRanges,_))}async function Y(d,_){if(d!==null)return We.mapAsync(d,H,_)}async function b(d,_){if(d!=null)return new X.SemanticTokens(new Uint32Array(d.data),d.resultId)}function le(d){return new X.SemanticTokensEdit(d.start,d.deleteCount,d.data!==void 0?new Uint32Array(d.data):void 0)}async function fe(d,_){if(d!=null)return new X.SemanticTokensEdits(d.edits.map(le),d.resultId)}function G(d){return d}async function C(d,_){if(d!=null)return new X.LinkedEditingRanges(await x(d.ranges,_),M(d.wordPattern))}function M(d){if(d!=null)return new RegExp(d)}function U(d){if(d===null)return;let _=new A6.default(Se(d.kind),d.name,d.detail||"",s(d.uri),v(d.range),v(d.selectionRange),d.data);return d.tags!==void 0&&(_.tags=Be(d.tags)),_}async function Q(d,_){if(d!==null)return We.map(d,U,_)}function Ie(d){if(Hn.string(d))return d;if(me.RelativePattern.is(d)){if(me.URI.is(d.baseUri))return new X.RelativePattern(s(d.baseUri),d.pattern);if(me.WorkspaceFolder.is(d.baseUri)){const _=X.workspace.getWorkspaceFolder(s(d.baseUri.uri));return _!==void 0?new X.RelativePattern(_,d.pattern):void 0}}}async function Me(d,_){if(!d)return;if(Array.isArray(d))return We.map(d,Ce=>je(Ce),_);const I=d,V=await We.map(I.items,Ce=>je(Ce),_);return new X.InlineCompletionList(V)}function je(d){let _;typeof d.insertText=="string"?_=d.insertText:_=new X.SnippetString(d.insertText.value);let I;d.command&&(I=It(d.command));const V=new X.InlineCompletionItem(_,v(d.range),I);return d.filterText&&(V.filterText=d.filterText),V}return{asUri:s,asDocumentSelector:o,asDiagnostics:a,asDiagnostic:l,asRange:v,asRanges:x,asPosition:w,asDiagnosticSeverity:T,asDiagnosticTag:p,asHover:W,asCompletionResult:j,asCompletionItem:qe,asTextEdit:P,asTextEdits:N,asSignatureHelp:ee,asSignatureInformations:ke,asSignatureInformation:pe,asParameterInformations:ot,asParameterInformation:Ke,asDeclarationResult:ft,asDefinitionResult:He,asLocation:Pe,asReferences:Ut,asDocumentHighlights:gt,asDocumentHighlight:Dt,asDocumentHighlightKind:Pt,asSymbolKind:Se,asSymbolTag:Nt,asSymbolTags:Be,asSymbolInformations:Lt,asSymbolInformation:xt,asDocumentSymbols:Cn,asDocumentSymbol:hn,asCommand:It,asCommands:Ft,asCodeAction:In,asCodeActionKind:Yt,asCodeActionKinds:Kn,asCodeActionResult:Fn,asCodeLens:Gn,asCodeLenses:Qn,asWorkspaceEdit:_n,asDocumentLink:Mn,asDocumentLinks:ai,asFoldingRangeKind:Sn,asFoldingRange:Ln,asFoldingRanges:ci,asColor:Zt,asColorInformation:gn,asColorInformations:On,asColorPresentation:en,asColorPresentations:An,asSelectionRange:Dn,asSelectionRanges:zt,asInlineValue:Nn,asInlineValues:Jn,asInlayHint:cn,asInlayHints:te,asSemanticTokensLegend:G,asSemanticTokens:b,asSemanticTokensEdit:le,asSemanticTokensEdits:fe,asCallHierarchyItem:we,asCallHierarchyItems:Te,asCallHierarchyIncomingCall:at,asCallHierarchyIncomingCalls:S,asCallHierarchyOutgoingCall:H,asCallHierarchyOutgoingCalls:Y,asLinkedEditingRanges:C,asTypeHierarchyItem:U,asTypeHierarchyItems:Q,asGlobPattern:Ie,asInlineCompletionResult:Me,asInlineCompletionItem:je}}Fc.createConverter=$6;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.ProgressPart=void 0;const Ip=ye,Fp=de,Mp=Ve;class q6{constructor(e,n,i){this._client=e,this._token=n,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(Fp.WorkDoneProgress.type,this._token,r=>{switch(r.kind){case"begin":this.begin(r);break;case"report":this.report(r);break;case"end":this.done(),i&&i(this);break}})}begin(e){this._infinite=e.percentage===void 0,this._lspProgressDisposable!==void 0&&Ip.window.withProgress({location:Ip.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},async(n,i)=>{if(this._lspProgressDisposable!==void 0)return this._progress=n,this._cancellationToken=i,this._tokenDisposable=this._cancellationToken.onCancellationRequested(()=>{this._client.sendNotification(Fp.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((r,s)=>{this._resolve=r,this._reject=s})})}report(e){if(this._infinite&&Mp.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(Mp.number(e.percentage)){const n=Math.max(0,Math.min(e.percentage,100)),i=Math.max(0,n-this._reported);this._reported+=i,this._progress!==void 0&&this._progress.report({message:e.message,increment:i})}}cancel(){this.cleanup(),this._reject!==void 0&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),this._resolve!==void 0&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){this._lspProgressDisposable!==void 0&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),this._tokenDisposable!==void 0&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}Go.ProgressPart=q6;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.NotebookDocumentSyncFeature=void 0;const rn=ye,H6=Cc,Oi=de,j6=$e,Op=Ve;function Ap(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var es;(function(t){(function(e){function n(g,p){return{version:g.version,uri:p.asUri(g.uri)}}e.asVersionedNotebookDocumentIdentifier=n;function i(g,p,w){const v=Oi.NotebookDocument.create(w.asUri(g.uri),g.notebookType,g.version,r(p,w));return Object.keys(g.metadata).length>0&&(v.metadata=s(g.metadata)),v}e.asNotebookDocument=i;function r(g,p){return g.map(w=>o(w,p))}e.asNotebookCells=r;function s(g){return c(new Set,g)}e.asMetadata=s;function o(g,p){const w=Oi.NotebookCell.create(a(g.kind),p.asUri(g.document.uri));return Object.keys(g.metadata).length>0&&(w.metadata=s(g.metadata)),g.executionSummary!==void 0&&Op.number(g.executionSummary.executionOrder)&&Op.boolean(g.executionSummary.success)&&(w.executionSummary={executionOrder:g.executionSummary.executionOrder,success:g.executionSummary.success}),w}e.asNotebookCell=o;function a(g){switch(g){case rn.NotebookCellKind.Markup:return Oi.NotebookCellKind.Markup;case rn.NotebookCellKind.Code:return Oi.NotebookCellKind.Code}}function c(g,p){if(g.has(p))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(p)){const w=[];for(const v of p)if(v!==null&&typeof v=="object"||Array.isArray(v))w.push(c(g,v));else{if(v instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");w.push(v)}return w}else{const w=Object.keys(p),v=Object.create(null);for(const x of w){const T=p[x];if(T!==null&&typeof T=="object"||Array.isArray(T))v[x]=c(g,T);else{if(T instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");v[x]=T}}return v}}function l(g,p){const w=p.asChangeTextDocumentParams(g,g.document.uri,g.document.version);return{document:w.textDocument,changes:w.contentChanges}}e.asTextContentChange=l;function h(g,p){const w=Object.create(null);if(g.metadata&&(w.metadata=t.c2p.asMetadata(g.metadata)),g.cells!==void 0){const v=Object.create(null),x=g.cells;x.structure&&(v.structure={array:{start:x.structure.array.start,deleteCount:x.structure.array.deleteCount,cells:x.structure.array.cells!==void 0?x.structure.array.cells.map(T=>t.c2p.asNotebookCell(T,p)):void 0},didOpen:x.structure.didOpen!==void 0?x.structure.didOpen.map(T=>p.asOpenTextDocumentParams(T.document).textDocument):void 0,didClose:x.structure.didClose!==void 0?x.structure.didClose.map(T=>p.asCloseTextDocumentParams(T.document).textDocument):void 0}),x.data!==void 0&&(v.data=x.data.map(T=>t.c2p.asNotebookCell(T,p))),x.textContent!==void 0&&(v.textContent=x.textContent.map(T=>t.c2p.asTextContentChange(T,p))),Object.keys(v).length>0&&(w.cells=v)}return w}e.asNotebookDocumentChangeEvent=h})(t.c2p||(t.c2p={}))})(es||(es={}));var ch;(function(t){function e(a,c,l){const h=a.length,g=c.length;let p=0;for(;p<g&&p<h&&n(a[p],c[p],l);)p++;if(p<g&&p<h){let w=h-1,v=g-1;for(;w>=0&&v>=0&&n(a[w],c[v],l);)w--,v--;const x=w+1-p,T=p===v+1?void 0:c.slice(p,v+1);return T!==void 0?{start:p,deleteCount:x,cells:T}:{start:p,deleteCount:x}}else return p<g?{start:p,deleteCount:0,cells:c.slice(p)}:p<h?{start:p,deleteCount:h-p}:void 0}t.computeDiff=e;function n(a,c,l=!0){return a.kind!==c.kind||a.document.uri.toString()!==c.document.uri.toString()||a.document.languageId!==c.document.languageId||!i(a.executionSummary,c.executionSummary)?!1:!l||l&&s(a.metadata,c.metadata)}function i(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.executionOrder===c.executionOrder&&a.success===c.success&&r(a.timing,c.timing)}function r(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.startTime===c.startTime&&a.endTime===c.endTime}function s(a,c){if(a===c)return!0;if(a==null||c===null||c===void 0||typeof a!=typeof c||typeof a!="object")return!1;const l=Array.isArray(a),h=Array.isArray(c);if(l!==h)return!1;if(l&&h){if(a.length!==c.length)return!1;for(let g=0;g<a.length;g++)if(!s(a[g],c[g]))return!1}if(o(a)&&o(c)){const g=Object.keys(a),p=Object.keys(c);if(g.length!==p.length||(g.sort(),p.sort(),!s(g,p)))return!1;for(let w=0;w<g.length;w++){const v=g[w];if(!s(a[v],c[v]))return!1}return!0}return!1}function o(a){return a!==null&&typeof a=="object"}t.isObjectLiteral=o})(ch||(ch={}));var lh;(function(t){function e(n,i){if(typeof n=="string")return n==="*"||i.notebookType===n;if(n.notebookType!==void 0&&n.notebookType!=="*"&&i.notebookType!==n.notebookType)return!1;const r=i.uri;if(n.scheme!==void 0&&n.scheme!=="*"&&r.scheme!==n.scheme)return!1;if(n.pattern!==void 0){const s=new H6.Minimatch(n.pattern,{noext:!0});if(!s.makeRe()||!s.match(r.fsPath))return!1}return!0}t.matchNotebook=e})(lh||(lh={}));var Ba;(function(t){function e(i){var o,a,c;const r=i.notebookSelector,s=[];for(const l of r){const h=(typeof l.notebook=="string"?l.notebook:(o=l.notebook)==null?void 0:o.notebookType)??"*",g=typeof l.notebook=="string"||(a=l.notebook)==null?void 0:a.scheme,p=typeof l.notebook=="string"||(c=l.notebook)==null?void 0:c.pattern;if(l.cells!==void 0)for(const w of l.cells)s.push(n(h,g,p,w.language));else s.push(n(h,g,p,void 0))}return s}t.asDocumentSelector=e;function n(i,r,s,o){return r===void 0&&s===void 0?{notebook:i,language:o}:{notebook:{notebookType:i,scheme:r,pattern:s},language:o}}})(Ba||(Ba={}));var Va;(function(t){function e(n){return{cells:n,uris:new Set(n.map(i=>i.document.uri.toString()))}}t.create=e})(Va||(Va={}));class ra{constructor(e,n){this.client=e,this.options=n,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(Ba.asDocumentSelector(n)),rn.workspace.onDidOpenNotebookDocument(i=>{this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i)},void 0,this.disposables);for(const i of rn.workspace.notebookDocuments)this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i);rn.workspace.onDidChangeNotebookDocument(i=>this.didChangeNotebookDocument(i),void 0,this.disposables),this.options.save===!0&&rn.workspace.onDidSaveNotebookDocument(i=>this.didSave(i),void 0,this.disposables),rn.workspace.onDidCloseNotebookDocument(i=>{this.didClose(i),this.notebookDidOpen.delete(i.uri.toString())},void 0,this.disposables)}getState(){for(const e of rn.workspace.notebookDocuments)if(this.getMatchingCells(e)!==void 0)return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){return rn.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,n){if(rn.languages.match(this.selector,n.document)===0||!this.notebookDidOpen.has(e.uri.toString()))return;const i=this.notebookSyncInfo.get(e.uri.toString()),r=this.cellMatches(e,n);if(i!==void 0){const s=i.uris.has(n.document.uri.toString());if(r&&s||!r&&!s)return;if(r){const o=this.getMatchingCells(e);if(o!==void 0){const a=this.asNotebookDocumentChangeEvent(e,void 0,i,o);a!==void 0&&this.doSendChange(a,o).catch(()=>{})}}}else r&&this.doSendOpen(e,[n]).catch(()=>{})}didChangeNotebookCellTextDocument(e,n){rn.languages.match(this.selector,n.document)!==0&&this.doSendChange({notebook:e,cells:{textContent:[n]}},void 0).catch(()=>{})}didCloseNotebookCellTextDocument(e,n){const i=this.notebookSyncInfo.get(e.uri.toString());if(i===void 0)return;const r=n.document.uri,s=i.cells.findIndex(o=>o.document.uri.toString()===r.toString());if(s!==-1)if(s===0&&i.cells.length===1)this.doSendClose(e,i.cells).catch(()=>{});else{const o=i.cells.slice(),a=o.splice(s,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:s,deleteCount:1},didClose:a}}},o).catch(()=>{})}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,n=this.getMatchingCells(e),i=this.notebookSyncInfo.get(e.uri.toString())){if(i!==void 0)if(n!==void 0){const r=this.asNotebookDocumentChangeEvent(e,void 0,i,n);r!==void 0&&this.doSendChange(r,n).catch(()=>{})}else this.doSendClose(e,[]).catch(()=>{});else{if(n===void 0)return;this.doSendOpen(e,n).catch(()=>{})}}didChangeNotebookDocument(e){const n=e.notebook,i=this.notebookSyncInfo.get(n.uri.toString());if(i===void 0){if(e.contentChanges.length===0)return;const r=this.getMatchingCells(n);if(r===void 0)return;this.didOpen(n,r,i)}else{const r=this.getMatchingCells(n);if(r===void 0){this.didClose(n,i);return}const s=this.asNotebookDocumentChangeEvent(e.notebook,e,i,r);s!==void 0&&this.doSendChange(s,r).catch(()=>{})}}didSave(e){this.notebookSyncInfo.get(e.uri.toString())!==void 0&&this.doSendSave(e).catch(()=>{})}didClose(e,n=this.notebookSyncInfo.get(e.uri.toString())){if(n===void 0)return;const i=e.getCells().filter(r=>n.uris.has(r.document.uri.toString()));this.doSendClose(e,i).catch(()=>{})}async sendDidOpenNotebookDocument(e){const n=this.getMatchingCells(e);if(n!==void 0)return this.doSendOpen(e,n)}async doSendOpen(e,n){var s;const i=async(o,a)=>{const c=es.c2p.asNotebookDocument(o,a,this.client.code2ProtocolConverter),l=a.map(h=>this.client.code2ProtocolConverter.asTextDocumentItem(h.document));try{await this.client.sendNotification(Oi.DidOpenNotebookDocumentNotification.type,{notebookDocument:c,cellTextDocuments:l})}catch(h){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",h),h}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),Va.create(n)),(r==null?void 0:r.didOpen)!==void 0?r.didOpen(e,n,i):i(e,n)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,n=this.getMatchingCells(e.notebook)){var s,o;const i=async a=>{try{await this.client.sendNotification(Oi.DidChangeNotebookDocumentNotification.type,{notebookDocument:es.c2p.asVersionedNotebookDocumentIdentifier(a.notebook,this.client.code2ProtocolConverter),change:es.c2p.asNotebookDocumentChangeEvent(a,this.client.code2ProtocolConverter)})}catch(c){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",c),c}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return((o=e.cells)==null?void 0:o.structure)!==void 0&&this.notebookSyncInfo.set(e.notebook.uri.toString(),Va.create(n??[])),(r==null?void 0:r.didChange)!==void 0?r==null?void 0:r.didChange(e,i):i(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){var r;const n=async s=>{try{await this.client.sendNotification(Oi.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(s.uri)}})}catch(o){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",o),o}},i=(r=this.client.middleware)==null?void 0:r.notebooks;return(i==null?void 0:i.didSave)!==void 0?i.didSave(e,n):n(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,n){var s;const i=async(o,a)=>{try{await this.client.sendNotification(Oi.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(o.uri)},cellTextDocuments:a.map(c=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(c.document))})}catch(c){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",c),c}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),(r==null?void 0:r.didClose)!==void 0?r.didClose(e,n,i):i(e,n)}asNotebookDocumentChangeEvent(e,n,i,r){if(n!==void 0&&n.notebook!==e)throw new Error("Notebook must be identical");const s={notebook:e};(n==null?void 0:n.metadata)!==void 0&&(s.metadata=es.c2p.asMetadata(n.metadata));let o;if((n==null?void 0:n.cellChanges)!==void 0&&n.cellChanges.length>0){const a=[];o=new Set(r.map(c=>c.document.uri.toString()));for(const c of n.cellChanges)o.has(c.cell.document.uri.toString())&&(c.executionSummary!==void 0||c.metadata!==void 0)&&a.push(c.cell);a.length>0&&(s.cells=s.cells??{},s.cells.data=a)}if(((n==null?void 0:n.contentChanges)!==void 0&&n.contentChanges.length>0||n===void 0)&&i!==void 0&&r!==void 0){const a=i.cells,c=r,l=ch.computeDiff(a,c,!1);let h,g;if(l!==void 0){h=l.cells===void 0?new Map:new Map(l.cells.map(v=>[v.document.uri.toString(),v])),g=l.deleteCount===0?new Map:new Map(a.slice(l.start,l.start+l.deleteCount).map(v=>[v.document.uri.toString(),v]));for(const v of Array.from(g.keys()))h.has(v)&&(g.delete(v),h.delete(v));s.cells=s.cells??{};const p=[],w=[];if(h.size>0||g.size>0){for(const v of h.values())p.push(v);for(const v of g.values())w.push(v)}s.cells.structure={array:l,didOpen:p,didClose:w}}}return Object.keys(s).length>1?s:void 0}getMatchingCells(e,n=e.getCells()){if(this.options.notebookSelector!==void 0){for(const i of this.options.notebookSelector)if(i.notebook===void 0||lh.matchNotebook(i.notebook,e)){const r=this.filterCells(e,n,i.cells);return r.length===0?void 0:r}}}cellMatches(e,n){const i=this.getMatchingCells(e,[n]);return i!==void 0&&i[0]===n}filterCells(e,n,i){var s;const r=i!==void 0?n.filter(o=>{const a=o.document.languageId;return i.some(c=>c.language==="*"||a===c.language)}):n;return typeof((s=this.client.clientOptions.notebookDocumentOptions)==null?void 0:s.filterCells)=="function"?this.client.clientOptions.notebookDocumentOptions.filterCells(e,r):r}}class Er{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=Oi.NotebookDocumentSyncRegistrationType.type,rn.workspace.onDidOpenTextDocument(n=>{if(n.uri.scheme!==Er.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof ra&&s.didOpenNotebookCellTextDocument(i,r)}),rn.workspace.onDidChangeTextDocument(n=>{if(n.contentChanges.length===0)return;const i=n.document;if(i.uri.scheme!==Er.CellScheme)return;const[r]=this.findNotebookDocumentAndCell(i);if(r!==void 0)for(const s of this.registrations.values())s instanceof ra&&s.didChangeNotebookCellTextDocument(r,n)}),rn.workspace.onDidCloseTextDocument(n=>{if(n.uri.scheme!==Er.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof ra&&s.didCloseNotebookCellTextDocument(i,r)})}getState(){if(this.registrations.size===0)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const n=e.getState();if(n.kind==="document"&&n.registrations===!0&&n.matches===!0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){const n=Ap(Ap(e,"notebookDocument"),"synchronization");n.dynamicRegistration=!0,n.executionSummarySupport=!0}preInitialize(e){const n=e.notebookDocumentSync;n!==void 0&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(Ba.asDocumentSelector(n)))}initialize(e){const n=e.notebookDocumentSync;if(n===void 0)return;const i=n.id??j6.generateUuid();this.register({id:i,registerOptions:n})}register(e){const n=new ra(this.client,e.registerOptions);this.registrations.set(e.id,n)}unregister(e){const n=this.registrations.get(e);n&&n.dispose()}clear(){for(const e of this.registrations.values())e.dispose();this.registrations.clear()}handles(e){if(e.uri.scheme!==Er.CellScheme)return!1;if(this.dedicatedChannel!==void 0&&rn.languages.match(this.dedicatedChannel,e)>0)return!0;for(const n of this.registrations.values())if(n.handles(e))return!0;return!1}getProvider(e){for(const n of this.registrations.values())if(n.handles(e.document))return n}findNotebookDocumentAndCell(e){const n=e.uri.toString();for(const i of rn.workspace.notebookDocuments)for(const r of i.getCells())if(r.document.uri.toString()===n)return[i,r];return[void 0,void 0]}}Mc.NotebookDocumentSyncFeature=Er;Er.CellScheme="vscode-notebook-cell";var er={};Object.defineProperty(er,"__esModule",{value:!0});er.SyncConfigurationFeature=er.toJSONObject=er.ConfigurationFeature=void 0;const gs=ye,io=de,W6=Ve,U6=$e,Lp=ge;class z6{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(io.ConfigurationRequest.type,(n,i)=>{let r=o=>{let a=[];for(let c of o.items){let l=c.scopeUri!==void 0&&c.scopeUri!==null?this._client.protocol2CodeConverter.asUri(c.scopeUri):void 0;a.push(this.getConfiguration(l,c.section!==null?c.section:void 0))}return a},s=e.middleware.workspace;return s&&s.configuration?s.configuration(n,i,r):r(n)})}getConfiguration(e,n){let i=null;if(n){let r=n.lastIndexOf(".");if(r===-1)i=Ar(gs.workspace.getConfiguration(void 0,e).get(n));else{let s=gs.workspace.getConfiguration(n.substr(0,r),e);s&&(i=Ar(s.get(n.substr(r+1))))}}else{let r=gs.workspace.getConfiguration(void 0,e);i={};for(let s of Object.keys(r))r.has(s)&&(i[s]=Ar(r.get(s)))}return i===void 0&&(i=null),i}clear(){}}er.ConfigurationFeature=z6;function Ar(t){if(t){if(Array.isArray(t))return t.map(Ar);if(typeof t=="object"){const e=Object.create(null);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Ar(t[n]));return e}}return t}er.toJSONObject=Ar;class B6{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 io.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,Lp.ensure)((0,Lp.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var n;this.isCleared=!1;let e=(n=this._client.clientOptions.synchronize)==null?void 0:n.configurationSection;e!==void 0&&this.register({id:U6.generateUuid(),registerOptions:{section:e}})}register(e){let n=gs.workspace.onDidChangeConfiguration(i=>{this.onDidChangeConfiguration(e.registerOptions.section,i)});this._listeners.set(e.id,n),e.registerOptions.section!==void 0&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let n=this._listeners.get(e);n&&(this._listeners.delete(e),n.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,n){var o;if(this.isCleared)return;let i;if(W6.string(e)?i=[e]:i=e,i!==void 0&&n!==void 0&&!i.some(c=>n.affectsConfiguration(c)))return;const r=async a=>a===void 0?this._client.sendNotification(io.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(io.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(a)});let s=(o=this._client.middleware.workspace)==null?void 0:o.didChangeConfiguration;(s?s(i,r):r(i)).catch(a=>{this._client.error(`Sending notification ${io.DidChangeConfigurationNotification.type.method} failed`,a)})}extractSettingsInformation(e){function n(s,o){let a=s;for(let c=0;c<o.length-1;c++){let l=a[o[c]];l||(l=Object.create(null),a[o[c]]=l),a=l}return a}let i=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,r=Object.create(null);for(let s=0;s<e.length;s++){let o=e[s],a=o.indexOf("."),c=null;if(a>=0?c=gs.workspace.getConfiguration(o.substr(0,a),i).get(o.substr(a+1)):c=gs.workspace.getConfiguration(void 0,i).get(o),c){let l=e[s].split(".");n(r,l)[l[l.length-1]]=Ar(c)}}return r}}er.SyncConfigurationFeature=B6;var bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.DidSaveTextDocumentFeature=bn.WillSaveWaitUntilFeature=bn.WillSaveFeature=bn.DidChangeTextDocumentFeature=bn.DidCloseTextDocumentFeature=bn.DidOpenTextDocumentFeature=void 0;const En=ye,tt=de,mt=ge,As=$e;class V6 extends mt.TextDocumentEventFeature{constructor(e,n){super(e,En.workspace.onDidOpenTextDocument,tt.DidOpenTextDocumentNotification.type,()=>e.middleware.didOpen,i=>e.code2ProtocolConverter.asOpenTextDocumentParams(i),i=>i,mt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){const i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}get registrationType(){return tt.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const n=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);En.workspace.textDocuments.forEach(i=>{const r=i.uri.toString();if(!this._syncedDocuments.has(r)&&En.languages.match(n,i)>0&&!this._client.hasDedicatedTextSynchronizationFeature(i)){const s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));(s.didOpen?s.didOpen(i,o):o(i)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)}),this._syncedDocuments.set(r,i)}})}getTextDocument(e){return e}notificationSent(e,n,i){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,n,i)}}bn.DidOpenTextDocumentFeature=V6;class K6 extends mt.TextDocumentEventFeature{constructor(e,n,i){super(e,En.workspace.onDidCloseTextDocument,tt.DidCloseTextDocumentNotification.type,()=>e.middleware.didClose,r=>e.code2ProtocolConverter.asCloseTextDocumentParams(r),r=>r,mt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n,this._pendingTextDocumentChanges=i}get registrationType(){return tt.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,n,i){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,n,i)}unregister(e){const n=this._selectors.get(e);super.unregister(e);const i=this._selectors.values();this._syncedDocuments.forEach(r=>{if(En.languages.match(n,r)>0&&!this._selectorFilter(i,r)&&!this._client.hasDedicatedTextSynchronizationFeature(r)){let s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));this._syncedDocuments.delete(r.uri.toString()),(s.didClose?s.didClose(r,o):o(r)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)})}})}}bn.DidCloseTextDocumentFeature=K6;class G6 extends mt.DynamicDocumentFeature{constructor(e,n){super(e),this._changeData=new Map,this._onNotificationSent=new En.EventEmitter,this._onPendingChangeAdded=new En.EventEmitter,this._pendingTextDocumentChanges=n,this._syncKind=tt.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return tt.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.change!==void 0&&i.change!==tt.TextDocumentSyncKind.None&&this.register({id:As.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},{syncKind:i.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=En.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(e.contentChanges.length===0)return;const n=e.document.uri,i=e.document.version,r=[];for(const s of this._changeData.values())if(En.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const o=this._client.middleware;if(s.syncKind===tt.TextDocumentSyncKind.Incremental){const a=async c=>{const l=this._client.code2ProtocolConverter.asChangeTextDocumentParams(c,n,i);await this._client.sendNotification(tt.DidChangeTextDocumentNotification.type,l),this.notificationSent(c.document,tt.DidChangeTextDocumentNotification.type,l)};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}else if(s.syncKind===tt.TextDocumentSyncKind.Full){const a=async c=>{const l=c.document.uri.toString();this._pendingTextDocumentChanges.set(l,c.document),this._onPendingChangeAdded.fire()};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}}return Promise.all(r).then(void 0,s=>{throw this._client.error(`Sending document notification ${tt.DidChangeTextDocumentNotification.type.method} failed`,s),s})}notificationSent(e,n,i){this._onNotificationSent.fire({textDocument:e,type:n,params:i})}unregister(e){if(this._changeData.delete(e),this._changeData.size===0)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=tt.TextDocumentSyncKind.None;else{this._syncKind=tt.TextDocumentSyncKind.None;for(const n of this._changeData.values())if(this.updateSyncKind(n.syncKind),this._syncKind===tt.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=tt.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(this._pendingTextDocumentChanges.size===0)return[];let n;if(e.size===0)n=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{n=[];for(const i of this._pendingTextDocumentChanges)e.has(i[0])||(n.push(i[1]),this._pendingTextDocumentChanges.delete(i[0]))}return n}getProvider(e){for(const n of this._changeData.values())if(En.languages.match(n.documentSelector,e)>0)return{send:i=>this.callback(i)}}updateSyncKind(e){if(this._syncKind!==tt.TextDocumentSyncKind.Full)switch(e){case tt.TextDocumentSyncKind.Full:this._syncKind=e;break;case tt.TextDocumentSyncKind.Incremental:this._syncKind===tt.TextDocumentSyncKind.None&&(this._syncKind=tt.TextDocumentSyncKind.Incremental);break}}}bn.DidChangeTextDocumentFeature=G6;class Q6 extends mt.TextDocumentEventFeature{constructor(e){super(e,En.workspace.onWillSaveTextDocument,tt.WillSaveTextDocumentNotification.type,()=>e.middleware.willSave,n=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(n),n=>n.document,(n,i)=>mt.TextDocumentEventFeature.textDocumentFilter(n,i.document))}get registrationType(){return tt.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let n=(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization");n.willSave=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSave&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}getTextDocument(e){return e.document}}bn.WillSaveFeature=Q6;class J6 extends mt.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return tt.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let n=(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization");n.willSaveWaitUntil=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSaveWaitUntil&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=En.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(mt.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let n=this._client.middleware,i=r=>this._client.sendRequest(tt.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(r)).then(async s=>{let o=await this._client.protocol2CodeConverter.asTextEdits(s);return o===void 0?[]:o});e.waitUntil(n.willSaveWaitUntil?n.willSaveWaitUntil(e,i):i(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}bn.WillSaveWaitUntilFeature=J6;class Y6 extends mt.TextDocumentEventFeature{constructor(e){super(e,En.workspace.onDidSaveTextDocument,tt.DidSaveTextDocumentNotification.type,()=>e.middleware.didSave,n=>e.code2ProtocolConverter.asSaveTextDocumentParams(n,this._includeText),n=>n,mt.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return tt.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,n){const i=e.resolvedTextDocumentSync;if(n&&i&&i.save){const r=typeof i.save=="boolean"?{includeText:!1}:{includeText:!!i.save.includeText};this.register({id:As.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}bn.DidSaveTextDocumentFeature=Y6;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.CompletionItemFeature=void 0;const X6=ye,Ae=de,Nl=ge,Z6=$e,eC=[Ae.CompletionItemKind.Text,Ae.CompletionItemKind.Method,Ae.CompletionItemKind.Function,Ae.CompletionItemKind.Constructor,Ae.CompletionItemKind.Field,Ae.CompletionItemKind.Variable,Ae.CompletionItemKind.Class,Ae.CompletionItemKind.Interface,Ae.CompletionItemKind.Module,Ae.CompletionItemKind.Property,Ae.CompletionItemKind.Unit,Ae.CompletionItemKind.Value,Ae.CompletionItemKind.Enum,Ae.CompletionItemKind.Keyword,Ae.CompletionItemKind.Snippet,Ae.CompletionItemKind.Color,Ae.CompletionItemKind.File,Ae.CompletionItemKind.Reference,Ae.CompletionItemKind.Folder,Ae.CompletionItemKind.EnumMember,Ae.CompletionItemKind.Constant,Ae.CompletionItemKind.Struct,Ae.CompletionItemKind.Event,Ae.CompletionItemKind.Operator,Ae.CompletionItemKind.TypeParameter];class tC extends Nl.TextDocumentLanguageFeature{constructor(e){super(e,Ae.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let n=(0,Nl.ensure)((0,Nl.ensure)(e,"textDocument"),"completion");n.dynamicRegistration=!0,n.contextSupport=!0,n.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[Ae.MarkupKind.Markdown,Ae.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[Ae.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[Ae.InsertTextMode.asIs,Ae.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},n.insertTextMode=Ae.InsertTextMode.adjustIndentation,n.completionItemKind={valueSet:eC},n.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,n){const i=this.getRegistrationOptions(n,e.completionProvider);i&&this.register({id:Z6.generateUuid(),registerOptions:i})}registerLanguageProvider(e,n){var a;this.labelDetailsSupport.set(n,!!((a=e.completionItem)!=null&&a.labelDetailsSupport));const i=e.triggerCharacters??[],r=e.allCommitCharacters,s=e.documentSelector,o={provideCompletionItems:(c,l,h,g)=>{const p=this._client,w=this._client.middleware,v=(x,T,q,z)=>p.sendRequest(Ae.CompletionRequest.type,p.code2ProtocolConverter.asCompletionParams(x,T,q),z).then(A=>z.isCancellationRequested?null:p.protocol2CodeConverter.asCompletionResult(A,r,z),A=>p.handleFailedRequest(Ae.CompletionRequest.type,z,A,null));return w.provideCompletionItem?w.provideCompletionItem(c,l,g,h,v):v(c,l,g,h)},resolveCompletionItem:e.resolveProvider?(c,l)=>{const h=this._client,g=this._client.middleware,p=(w,v)=>h.sendRequest(Ae.CompletionResolveRequest.type,h.code2ProtocolConverter.asCompletionItem(w,!!this.labelDetailsSupport.get(n)),v).then(x=>v.isCancellationRequested?null:h.protocol2CodeConverter.asCompletionItem(x),x=>h.handleFailedRequest(Ae.CompletionResolveRequest.type,v,x,w));return g.resolveCompletionItem?g.resolveCompletionItem(c,l,p):p(c,l)}:void 0};return[X6.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...i),o]}}Oc.CompletionItemFeature=tC;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.HoverFeature=void 0;const nC=ye,Hs=de,$l=ge,iC=$e;class rC extends $l.TextDocumentLanguageFeature{constructor(e){super(e,Hs.HoverRequest.type)}fillClientCapabilities(e){const n=(0,$l.ensure)((0,$l.ensure)(e,"textDocument"),"hover");n.dynamicRegistration=!0,n.contentFormat=[Hs.MarkupKind.Markdown,Hs.MarkupKind.PlainText]}initialize(e,n){const i=this.getRegistrationOptions(n,e.hoverProvider);i&&this.register({id:iC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideHover:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Hs.HoverRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asHover(w),w=>a.handleFailedRequest(Hs.HoverRequest.type,p,w,null)),l=a.middleware;return l.provideHover?l.provideHover(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return nC.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Ac.HoverFeature=rC;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DefinitionFeature=void 0;const sC=ye,ql=de,Hl=ge,oC=$e;class aC extends Hl.TextDocumentLanguageFeature{constructor(e){super(e,ql.DefinitionRequest.type)}fillClientCapabilities(e){let n=(0,Hl.ensure)((0,Hl.ensure)(e,"textDocument"),"definition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.definitionProvider);i&&this.register({id:oC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDefinition:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(ql.DefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(ql.DefinitionRequest.type,p,w,null)),l=a.middleware;return l.provideDefinition?l.provideDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return sC.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Lc.DefinitionFeature=aC;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.SignatureHelpFeature=void 0;const Np=ye,js=de,jl=ge,cC=$e;class lC extends jl.TextDocumentLanguageFeature{constructor(e){super(e,js.SignatureHelpRequest.type)}fillClientCapabilities(e){let n=(0,jl.ensure)((0,jl.ensure)(e,"textDocument"),"signatureHelp");n.dynamicRegistration=!0,n.signatureInformation={documentationFormat:[js.MarkupKind.Markdown,js.MarkupKind.PlainText]},n.signatureInformation.parameterInformation={labelOffsetSupport:!0},n.signatureInformation.activeParameterSupport=!0,n.contextSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.signatureHelpProvider);i&&this.register({id:cC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n={provideSignatureHelp:(i,r,s,o)=>{const a=this._client,c=(h,g,p,w)=>a.sendRequest(js.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(h,g,p),w).then(v=>w.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(v,w),v=>a.handleFailedRequest(js.SignatureHelpRequest.type,w,v,null)),l=a.middleware;return l.provideSignatureHelp?l.provideSignatureHelp(i,r,o,s,c):c(i,r,o,s)}};return[this.registerProvider(e,n),n]}registerProvider(e,n){const i=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(e.retriggerCharacters===void 0){const r=e.triggerCharacters||[];return Np.languages.registerSignatureHelpProvider(i,n,...r)}else{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return Np.languages.registerSignatureHelpProvider(i,n,r)}}}Nc.SignatureHelpFeature=lC;var $c={};Object.defineProperty($c,"__esModule",{value:!0});$c.DocumentHighlightFeature=void 0;const uC=ye,Wl=de,Ul=ge,dC=$e;class fC extends Ul.TextDocumentLanguageFeature{constructor(e){super(e,Wl.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,Ul.ensure)((0,Ul.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentHighlightProvider);i&&this.register({id:dC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentHighlights:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Wl.DocumentHighlightRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDocumentHighlights(w,p),w=>a.handleFailedRequest(Wl.DocumentHighlightRequest.type,p,w,null)),l=a.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(r,s,o,c):c(r,s,o)}};return[uC.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}$c.DocumentHighlightFeature=fC;var H1={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const e=ye,n=de,i=ge,r=$e;t.SupportedSymbolKinds=[n.SymbolKind.File,n.SymbolKind.Module,n.SymbolKind.Namespace,n.SymbolKind.Package,n.SymbolKind.Class,n.SymbolKind.Method,n.SymbolKind.Property,n.SymbolKind.Field,n.SymbolKind.Constructor,n.SymbolKind.Enum,n.SymbolKind.Interface,n.SymbolKind.Function,n.SymbolKind.Variable,n.SymbolKind.Constant,n.SymbolKind.String,n.SymbolKind.Number,n.SymbolKind.Boolean,n.SymbolKind.Array,n.SymbolKind.Object,n.SymbolKind.Key,n.SymbolKind.Null,n.SymbolKind.EnumMember,n.SymbolKind.Struct,n.SymbolKind.Event,n.SymbolKind.Operator,n.SymbolKind.TypeParameter],t.SupportedSymbolTags=[n.SymbolTag.Deprecated];class s extends i.TextDocumentLanguageFeature{constructor(a){super(a,n.DocumentSymbolRequest.type)}fillClientCapabilities(a){let c=(0,i.ensure)((0,i.ensure)(a,"textDocument"),"documentSymbol");c.dynamicRegistration=!0,c.symbolKind={valueSet:t.SupportedSymbolKinds},c.hierarchicalDocumentSymbolSupport=!0,c.tagSupport={valueSet:t.SupportedSymbolTags},c.labelSupport=!0}initialize(a,c){const l=this.getRegistrationOptions(c,a.documentSymbolProvider);l&&this.register({id:r.generateUuid(),registerOptions:l})}registerLanguageProvider(a){const c=a.documentSelector,l={provideDocumentSymbols:(g,p)=>{const w=this._client,v=async(T,q)=>{try{const z=await w.sendRequest(n.DocumentSymbolRequest.type,w.code2ProtocolConverter.asDocumentSymbolParams(T),q);if(q.isCancellationRequested||z===void 0||z===null)return null;if(z.length===0)return[];{const A=z[0];return n.DocumentSymbol.is(A)?await w.protocol2CodeConverter.asDocumentSymbols(z,q):await w.protocol2CodeConverter.asSymbolInformations(z,q)}}catch(z){return w.handleFailedRequest(n.DocumentSymbolRequest.type,q,z,null)}},x=w.middleware;return x.provideDocumentSymbols?x.provideDocumentSymbols(g,p,v):v(g,p)}},h=a.label!==void 0?{label:a.label}:void 0;return[e.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(c),l,h),l]}}t.DocumentSymbolFeature=s})(H1);var qc={};Object.defineProperty(qc,"__esModule",{value:!0});qc.WorkspaceSymbolFeature=void 0;const hC=ye,Ws=de,zl=ge,$p=H1,gC=$e;class pC extends zl.WorkspaceFeature{constructor(e){super(e,Ws.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let n=(0,zl.ensure)((0,zl.ensure)(e,"workspace"),"symbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:$p.SupportedSymbolKinds},n.tagSupport={valueSet:$p.SupportedSymbolTags},n.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:gC.generateUuid(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const n={provideWorkspaceSymbols:(i,r)=>{const s=this._client,o=(c,l)=>s.sendRequest(Ws.WorkspaceSymbolRequest.type,{query:c},l).then(h=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformations(h,l),h=>s.handleFailedRequest(Ws.WorkspaceSymbolRequest.type,l,h,null)),a=s.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,o):o(i,r)},resolveWorkspaceSymbol:e.resolveProvider===!0?(i,r)=>{const s=this._client,o=(c,l)=>s.sendRequest(Ws.WorkspaceSymbolResolveRequest.type,s.code2ProtocolConverter.asWorkspaceSymbol(c),l).then(h=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformation(h),h=>s.handleFailedRequest(Ws.WorkspaceSymbolResolveRequest.type,l,h,null)),a=s.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(i,r,o):o(i,r)}:void 0};return[hC.languages.registerWorkspaceSymbolProvider(n),n]}}qc.WorkspaceSymbolFeature=pC;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.ReferencesFeature=void 0;const mC=ye,Bl=de,Vl=ge,yC=$e;class bC extends Vl.TextDocumentLanguageFeature{constructor(e){super(e,Bl.ReferencesRequest.type)}fillClientCapabilities(e){(0,Vl.ensure)((0,Vl.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.referencesProvider);i&&this.register({id:yC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideReferences:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>c.sendRequest(Bl.ReferencesRequest.type,c.code2ProtocolConverter.asReferenceParams(g,p,w),v).then(x=>v.isCancellationRequested?null:c.protocol2CodeConverter.asReferences(x,v),x=>c.handleFailedRequest(Bl.ReferencesRequest.type,v,x,null)),h=c.middleware;return h.provideReferences?h.provideReferences(r,s,o,a,l):l(r,s,o,a)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return mC.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Hc.ReferencesFeature=bC;var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.CodeActionFeature=void 0;const vC=ye,xn=de,wC=$e,Kl=ge;class CC extends Kl.TextDocumentLanguageFeature{constructor(e){super(e,xn.CodeActionRequest.type)}fillClientCapabilities(e){const n=(0,Kl.ensure)((0,Kl.ensure)(e,"textDocument"),"codeAction");n.dynamicRegistration=!0,n.isPreferredSupport=!0,n.disabledSupport=!0,n.dataSupport=!0,n.resolveSupport={properties:["edit"]},n.codeActionLiteralSupport={codeActionKind:{valueSet:[xn.CodeActionKind.Empty,xn.CodeActionKind.QuickFix,xn.CodeActionKind.Refactor,xn.CodeActionKind.RefactorExtract,xn.CodeActionKind.RefactorInline,xn.CodeActionKind.RefactorRewrite,xn.CodeActionKind.Source,xn.CodeActionKind.SourceOrganizeImports]}},n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.codeActionProvider);i&&this.register({id:wC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideCodeActions:(r,s,o,a)=>{const c=this._client,l=async(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),context:c.code2ProtocolConverter.asCodeActionContextSync(w)};return c.sendRequest(xn.CodeActionRequest.type,x,v).then(T=>v.isCancellationRequested||T===null||T===void 0?null:c.protocol2CodeConverter.asCodeActionResult(T,v),T=>c.handleFailedRequest(xn.CodeActionRequest.type,v,T,null))},h=c.middleware;return h.provideCodeActions?h.provideCodeActions(r,s,o,a,l):l(r,s,o,a)},resolveCodeAction:e.resolveProvider?(r,s)=>{const o=this._client,a=this._client.middleware,c=async(l,h)=>o.sendRequest(xn.CodeActionResolveRequest.type,o.code2ProtocolConverter.asCodeActionSync(l),h).then(g=>h.isCancellationRequested?l:o.protocol2CodeConverter.asCodeAction(g,h),g=>o.handleFailedRequest(xn.CodeActionResolveRequest.type,h,g,l));return a.resolveCodeAction?a.resolveCodeAction(r,s,c):c(r,s)}:void 0};return[vC.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),i]}}jc.CodeActionFeature=CC;var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});Wc.CodeLensFeature=void 0;const qp=ye,Gr=de,_C=$e,Us=ge;class SC extends Us.TextDocumentLanguageFeature{constructor(e){super(e,Gr.CodeLensRequest.type)}fillClientCapabilities(e){(0,Us.ensure)((0,Us.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,Us.ensure)((0,Us.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,n){this._client.onRequest(Gr.CodeLensRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeCodeLensEmitter.fire()});const r=this.getRegistrationOptions(n,e.codeLensProvider);r&&this.register({id:_C.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new qp.EventEmitter,r={onDidChangeCodeLenses:i.event,provideCodeLenses:(s,o)=>{const a=this._client,c=(h,g)=>a.sendRequest(Gr.CodeLensRequest.type,a.code2ProtocolConverter.asCodeLensParams(h),g).then(p=>g.isCancellationRequested?null:a.protocol2CodeConverter.asCodeLenses(p,g),p=>a.handleFailedRequest(Gr.CodeLensRequest.type,g,p,null)),l=a.middleware;return l.provideCodeLenses?l.provideCodeLenses(s,o,c):c(s,o)},resolveCodeLens:e.resolveProvider?(s,o)=>{const a=this._client,c=(h,g)=>a.sendRequest(Gr.CodeLensResolveRequest.type,a.code2ProtocolConverter.asCodeLens(h),g).then(p=>g.isCancellationRequested?h:a.protocol2CodeConverter.asCodeLens(p),p=>a.handleFailedRequest(Gr.CodeLensResolveRequest.type,g,p,h)),l=a.middleware;return l.resolveCodeLens?l.resolveCodeLens(s,o,c):c(s,o)}:void 0};return[qp.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeCodeLensEmitter:i}]}}Wc.CodeLensFeature=SC;var tr={};Object.defineProperty(tr,"__esModule",{value:!0});tr.DocumentOnTypeFormattingFeature=tr.DocumentRangeFormattingFeature=tr.DocumentFormattingFeature=void 0;const Uc=ye,ri=de,j1=$e,$i=ge;var ms;(function(t){function e(n){const i=Uc.workspace.getConfiguration("files",n);return{trimTrailingWhitespace:i.get("trimTrailingWhitespace"),trimFinalNewlines:i.get("trimFinalNewlines"),insertFinalNewline:i.get("insertFinalNewline")}}t.fromConfiguration=e})(ms||(ms={}));class DC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentFormattingEdits:(r,s,o)=>{const a=this._client,c=(h,g,p)=>{const w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),options:a.code2ProtocolConverter.asFormattingOptions(g,ms.fromConfiguration(h))};return a.sendRequest(ri.DocumentFormattingRequest.type,w,p).then(v=>p.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(v,p),v=>a.handleFailedRequest(ri.DocumentFormattingRequest.type,p,v,null))},l=a.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(r,s,o,c):c(r,s,o)}};return[Uc.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}tr.DocumentFormattingFeature=DC;class xC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const n=(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"rangeFormatting");n.dynamicRegistration=!0,n.rangesSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentRangeFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentRangeFormattingEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),options:c.code2ProtocolConverter.asFormattingOptions(w,ms.fromConfiguration(g))};return c.sendRequest(ri.DocumentRangeFormattingRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(T,v),T=>c.handleFailedRequest(ri.DocumentRangeFormattingRequest.type,v,T,null))},h=c.middleware;return h.provideDocumentRangeFormattingEdits?h.provideDocumentRangeFormattingEdits(r,s,o,a,l):l(r,s,o,a)}};return e.rangesSupport&&(i.provideDocumentRangesFormattingEdits=(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),ranges:c.code2ProtocolConverter.asRanges(p),options:c.code2ProtocolConverter.asFormattingOptions(w,ms.fromConfiguration(g))};return c.sendRequest(ri.DocumentRangesFormattingRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(T,v),T=>c.handleFailedRequest(ri.DocumentRangesFormattingRequest.type,v,T,null))},h=c.middleware;return h.provideDocumentRangesFormattingEdits?h.provideDocumentRangesFormattingEdits(r,s,o,a,l):l(r,s,o,a)}),[Uc.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}tr.DocumentRangeFormattingFeature=xC;class kC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentOnTypeFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideOnTypeFormattingEdits:(s,o,a,c,l)=>{const h=this._client,g=(w,v,x,T,q)=>{let z={textDocument:h.code2ProtocolConverter.asTextDocumentIdentifier(w),position:h.code2ProtocolConverter.asPosition(v),ch:x,options:h.code2ProtocolConverter.asFormattingOptions(T,ms.fromConfiguration(w))};return h.sendRequest(ri.DocumentOnTypeFormattingRequest.type,z,q).then(A=>q.isCancellationRequested?null:h.protocol2CodeConverter.asTextEdits(A,q),A=>h.handleFailedRequest(ri.DocumentOnTypeFormattingRequest.type,q,A,null))},p=h.middleware;return p.provideOnTypeFormattingEdits?p.provideOnTypeFormattingEdits(s,o,a,c,l,g):g(s,o,a,c,l)}},r=e.moreTriggerCharacter||[];return[Uc.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.firstTriggerCharacter,...r),i]}}tr.DocumentOnTypeFormattingFeature=kC;var zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.RenameFeature=void 0;const TC=ye,pr=de,RC=$e,Hp=Ve,Gl=ge;class EC extends Gl.TextDocumentLanguageFeature{constructor(e){super(e,pr.RenameRequest.type)}fillClientCapabilities(e){let n=(0,Gl.ensure)((0,Gl.ensure)(e,"textDocument"),"rename");n.dynamicRegistration=!0,n.prepareSupport=!0,n.prepareSupportDefaultBehavior=pr.PrepareSupportDefaultBehavior.Identifier,n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.renameProvider);i&&(Hp.boolean(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:RC.generateUuid(),registerOptions:i}))}registerLanguageProvider(e){const n=e.documentSelector,i={provideRenameEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{let x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),position:c.code2ProtocolConverter.asPosition(p),newName:w};return c.sendRequest(pr.RenameRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asWorkspaceEdit(T,v),T=>c.handleFailedRequest(pr.RenameRequest.type,v,T,null,!1))},h=c.middleware;return h.provideRenameEdits?h.provideRenameEdits(r,s,o,a,l):l(r,s,o,a)},prepareRename:e.prepareProvider?(r,s,o)=>{const a=this._client,c=(h,g,p)=>{let w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),position:a.code2ProtocolConverter.asPosition(g)};return a.sendRequest(pr.PrepareRenameRequest.type,w,p).then(v=>p.isCancellationRequested?null:pr.Range.is(v)?a.protocol2CodeConverter.asRange(v):this.isDefaultBehavior(v)?v.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):v&&pr.Range.is(v.range)?{range:a.protocol2CodeConverter.asRange(v.range),placeholder:v.placeholder}:Promise.reject(new Error("The element can't be renamed.")),v=>{throw typeof v.message=="string"?new Error(v.message):new Error("The element can't be renamed.")})},l=a.middleware;return l.prepareRename?l.prepareRename(r,s,o,c):c(r,s,o)}:void 0};return[this.registerProvider(n,i),i]}registerProvider(e,n){return TC.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}isDefaultBehavior(e){const n=e;return n&&Hp.boolean(n.defaultBehavior)}}zc.RenameFeature=EC;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});Bc.DocumentLinkFeature=void 0;const PC=ye,zs=de,Ql=ge,IC=$e;class FC extends Ql.TextDocumentLanguageFeature{constructor(e){super(e,zs.DocumentLinkRequest.type)}fillClientCapabilities(e){const n=(0,Ql.ensure)((0,Ql.ensure)(e,"textDocument"),"documentLink");n.dynamicRegistration=!0,n.tooltipSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentLinkProvider);i&&this.register({id:IC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentLinks:(r,s)=>{const o=this._client,a=(l,h)=>o.sendRequest(zs.DocumentLinkRequest.type,o.code2ProtocolConverter.asDocumentLinkParams(l),h).then(g=>h.isCancellationRequested?null:o.protocol2CodeConverter.asDocumentLinks(g,h),g=>o.handleFailedRequest(zs.DocumentLinkRequest.type,h,g,null)),c=o.middleware;return c.provideDocumentLinks?c.provideDocumentLinks(r,s,a):a(r,s)},resolveDocumentLink:e.resolveProvider?(r,s)=>{const o=this._client;let a=(l,h)=>o.sendRequest(zs.DocumentLinkResolveRequest.type,o.code2ProtocolConverter.asDocumentLink(l),h).then(g=>h.isCancellationRequested?l:o.protocol2CodeConverter.asDocumentLink(g),g=>o.handleFailedRequest(zs.DocumentLinkResolveRequest.type,h,g,l));const c=o.middleware;return c.resolveDocumentLink?c.resolveDocumentLink(r,s,a):a(r,s)}:void 0};return[PC.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Bc.DocumentLinkFeature=FC;var Vc={};Object.defineProperty(Vc,"__esModule",{value:!0});Vc.ExecuteCommandFeature=void 0;const MC=ye,Jl=de,OC=$e,jp=ge;class AC{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 Jl.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,jp.ensure)((0,jp.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:OC.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const n=this._client,i=n.middleware,r=(s,o)=>{let a={command:s,arguments:o};return n.sendRequest(Jl.ExecuteCommandRequest.type,a).then(void 0,c=>n.handleFailedRequest(Jl.ExecuteCommandRequest.type,void 0,c,void 0))};if(e.registerOptions.commands){const s=[];for(const o of e.registerOptions.commands)s.push(MC.commands.registerCommand(o,(...a)=>i.executeCommand?i.executeCommand(o,a,r):r(o,a)));this._commands.set(e.id,s)}}unregister(e){let n=this._commands.get(e);n&&n.forEach(i=>i.dispose())}clear(){this._commands.forEach(e=>{e.forEach(n=>n.dispose())}),this._commands.clear()}}Vc.ExecuteCommandFeature=AC;var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});Kc.FileSystemWatcherFeature=void 0;const LC=ye,mr=de,sa=ge;class NC{constructor(e,n){this._client=e,this._notifyFileEvent=n,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return mr.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,sa.ensure)((0,sa.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,sa.ensure)((0,sa.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,n){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const n=[];for(const i of e.registerOptions.watchers){const r=this._client.protocol2CodeConverter.asGlobPattern(i.globPattern);if(r===void 0)continue;let s=!0,o=!0,a=!0;i.kind!==void 0&&i.kind!==null&&(s=(i.kind&mr.WatchKind.Create)!==0,o=(i.kind&mr.WatchKind.Change)!==0,a=(i.kind&mr.WatchKind.Delete)!==0);const c=LC.workspace.createFileSystemWatcher(r,!s,!o,!a);this.hookListeners(c,s,o,a,n),n.push(c)}this._watchers.set(e.id,n)}registerRaw(e,n){let i=[];for(let r of n)this.hookListeners(r,!0,!0,!0,i);this._watchers.set(e,i)}hookListeners(e,n,i,r,s){n&&e.onDidCreate(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.FileChangeType.Created}),null,s),i&&e.onDidChange(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.FileChangeType.Changed}),null,s),r&&e.onDidDelete(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.FileChangeType.Deleted}),null,s)}unregister(e){let n=this._watchers.get(e);if(n)for(let i of n)i.dispose()}clear(){this._watchers.forEach(e=>{for(let n of e)n.dispose()}),this._watchers.clear()}}Kc.FileSystemWatcherFeature=NC;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ColorProviderFeature=void 0;const $C=ye,Bs=de,Yl=ge;class qC extends Yl.TextDocumentLanguageFeature{constructor(e){super(e,Bs.DocumentColorRequest.type)}fillClientCapabilities(e){(0,Yl.ensure)((0,Yl.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideColorPresentations:(r,s,o)=>{const a=this._client,c=(h,g,p)=>{const w={color:h,textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(g.document),range:a.code2ProtocolConverter.asRange(g.range)};return a.sendRequest(Bs.ColorPresentationRequest.type,w,p).then(v=>p.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(v,p),v=>a.handleFailedRequest(Bs.ColorPresentationRequest.type,p,v,null))},l=a.middleware;return l.provideColorPresentations?l.provideColorPresentations(r,s,o,c):c(r,s,o)},provideDocumentColors:(r,s)=>{const o=this._client,a=(l,h)=>{const g={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(l)};return o.sendRequest(Bs.DocumentColorRequest.type,g,h).then(p=>h.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(p,h),p=>o.handleFailedRequest(Bs.DocumentColorRequest.type,h,p,null))},c=o.middleware;return c.provideDocumentColors?c.provideDocumentColors(r,s,a):a(r,s)}};return[$C.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Gc.ColorProviderFeature=qC;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});Qc.ImplementationFeature=void 0;const HC=ye,Xl=de,Zl=ge;class jC extends Zl.TextDocumentLanguageFeature{constructor(e){super(e,Xl.ImplementationRequest.type)}fillClientCapabilities(e){let n=(0,Zl.ensure)((0,Zl.ensure)(e,"textDocument"),"implementation");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideImplementation:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Xl.ImplementationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(Xl.ImplementationRequest.type,p,w,null)),l=a.middleware;return l.provideImplementation?l.provideImplementation(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return HC.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Qc.ImplementationFeature=jC;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});Jc.TypeDefinitionFeature=void 0;const WC=ye,eu=de,Vs=ge;class UC extends Vs.TextDocumentLanguageFeature{constructor(e){super(e,eu.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,Vs.ensure)((0,Vs.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let n=(0,Vs.ensure)((0,Vs.ensure)(e,"textDocument"),"typeDefinition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideTypeDefinition:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(eu.TypeDefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(eu.TypeDefinitionRequest.type,p,w,null)),l=a.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return WC.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Jc.TypeDefinitionFeature=UC;var ys={};Object.defineProperty(ys,"__esModule",{value:!0});ys.WorkspaceFoldersFeature=ys.arrayDiff=void 0;const zC=$e,oa=ye,Ks=de;function tu(t,e){if(t!=null)return t[e]}function uh(t,e){return t.filter(n=>e.indexOf(n)<0)}ys.arrayDiff=uh;class BC{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 Ks.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const n=oa.workspace.workspaceFolders;this.initializeWithFolders(n),n===void 0?e.workspaceFolders=null:e.workspaceFolders=n.map(i=>this.asProtocol(i))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const n=this._client;n.onRequest(Ks.WorkspaceFoldersRequest.type,s=>{const o=()=>{const c=oa.workspace.workspaceFolders;return c===void 0?null:c.map(h=>this.asProtocol(h))},a=n.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(s,o):o()});const i=tu(tu(tu(e,"workspace"),"workspaceFolders"),"changeNotifications");let r;typeof i=="string"?r=i:i===!0&&(r=zC.generateUuid()),r&&this.register({id:r,registerOptions:void 0})}sendInitialEvent(e){let n;if(this._initialFolders&&e){const i=uh(this._initialFolders,e),r=uh(e,this._initialFolders);(r.length>0||i.length>0)&&(n=this.doSendEvent(r,i))}else this._initialFolders?n=this.doSendEvent([],this._initialFolders):e&&(n=this.doSendEvent(e,[]));n!==void 0&&n.catch(i=>{this._client.error(`Sending notification ${Ks.DidChangeWorkspaceFoldersNotification.type.method} failed`,i)})}doSendEvent(e,n){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:n.map(r=>this.asProtocol(r))}};return this._client.sendNotification(Ks.DidChangeWorkspaceFoldersNotification.type,i)}register(e){let n=e.id,i=this._client,r=oa.workspace.onDidChangeWorkspaceFolders(s=>{let o=l=>this.doSendEvent(l.added,l.removed),a=i.middleware.workspace;(a&&a.didChangeWorkspaceFolders?a.didChangeWorkspaceFolders(s,o):o(s)).catch(l=>{this._client.error(`Sending notification ${Ks.DidChangeWorkspaceFoldersNotification.type.method} failed`,l)})});this._listeners.set(n,r),this.sendInitialEvent(oa.workspace.workspaceFolders)}unregister(e){let n=this._listeners.get(e);n!==void 0&&(this._listeners.delete(e),n.dispose())}clear(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return e===void 0?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}ys.WorkspaceFoldersFeature=BC;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.FoldingRangeFeature=void 0;const Wp=ye,yr=de,Gs=ge;class VC extends Gs.TextDocumentLanguageFeature{constructor(e){super(e,yr.FoldingRangeRequest.type)}fillClientCapabilities(e){let n=(0,Gs.ensure)((0,Gs.ensure)(e,"textDocument"),"foldingRange");n.dynamicRegistration=!0,n.rangeLimit=5e3,n.lineFoldingOnly=!0,n.foldingRangeKind={valueSet:[yr.FoldingRangeKind.Comment,yr.FoldingRangeKind.Imports,yr.FoldingRangeKind.Region]},n.foldingRange={collapsedText:!1},(0,Gs.ensure)((0,Gs.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,n){this._client.onRequest(yr.FoldingRangeRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeFoldingRange.fire()});let[i,r]=this.getRegistration(n,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Wp.EventEmitter,r={onDidChangeFoldingRanges:i.event,provideFoldingRanges:(s,o,a)=>{const c=this._client,l=(g,p,w)=>{const v={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g)};return c.sendRequest(yr.FoldingRangeRequest.type,v,w).then(x=>w.isCancellationRequested?null:c.protocol2CodeConverter.asFoldingRanges(x,w),x=>c.handleFailedRequest(yr.FoldingRangeRequest.type,w,x,null))},h=c.middleware;return h.provideFoldingRanges?h.provideFoldingRanges(s,o,a,l):l(s,o,a)}};return[Wp.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeFoldingRange:i}]}}Yc.FoldingRangeFeature=VC;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.DeclarationFeature=void 0;const KC=ye,nu=de,iu=ge;class GC extends iu.TextDocumentLanguageFeature{constructor(e){super(e,nu.DeclarationRequest.type)}fillClientCapabilities(e){const n=(0,iu.ensure)((0,iu.ensure)(e,"textDocument"),"declaration");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDeclaration:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(nu.DeclarationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDeclarationResult(w,p),w=>a.handleFailedRequest(nu.DeclarationRequest.type,p,w,null)),l=a.middleware;return l.provideDeclaration?l.provideDeclaration(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return KC.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Xc.DeclarationFeature=GC;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.SelectionRangeFeature=void 0;const QC=ye,ru=de,su=ge;class JC extends su.TextDocumentLanguageFeature{constructor(e){super(e,ru.SelectionRangeRequest.type)}fillClientCapabilities(e){const n=(0,su.ensure)((0,su.ensure)(e,"textDocument"),"selectionRange");n.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideSelectionRanges:(r,s,o)=>{const a=this._client,c=async(h,g,p)=>{const w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),positions:a.code2ProtocolConverter.asPositionsSync(g,p)};return a.sendRequest(ru.SelectionRangeRequest.type,w,p).then(v=>p.isCancellationRequested?null:a.protocol2CodeConverter.asSelectionRanges(v,p),v=>a.handleFailedRequest(ru.SelectionRangeRequest.type,p,v,null))},l=a.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return QC.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Zc.SelectionRangeFeature=JC;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.ProgressFeature=void 0;const Up=de,YC=Go;function XC(t,e){return t[e]===void 0&&(t[e]=Object.create(null)),t[e]}class ZC{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:Up.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){XC(e,"window").workDoneProgress=!0}initialize(){const e=this._client,n=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new YC.ProgressPart(this._client,r.token,n))};e.onRequest(Up.WorkDoneProgressCreateRequest.type,i)}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}el.ProgressFeature=ZC;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.CallHierarchyFeature=void 0;const e3=ye,Cr=de,ou=ge;class t3{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,n,i){const r=this.client,s=this.middleware,o=(a,c,l)=>{const h=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(Cr.CallHierarchyPrepareRequest.type,h,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyItems(g,l),g=>r.handleFailedRequest(Cr.CallHierarchyPrepareRequest.type,l,g,null))};return s.prepareCallHierarchy?s.prepareCallHierarchy(e,n,i,o):o(e,n,i)}provideCallHierarchyIncomingCalls(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Cr.CallHierarchyIncomingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyIncomingCalls(l,a),l=>i.handleFailedRequest(Cr.CallHierarchyIncomingCallsRequest.type,a,l,null))};return r.provideCallHierarchyIncomingCalls?r.provideCallHierarchyIncomingCalls(e,n,s):s(e,n)}provideCallHierarchyOutgoingCalls(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Cr.CallHierarchyOutgoingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyOutgoingCalls(l,a),l=>i.handleFailedRequest(Cr.CallHierarchyOutgoingCallsRequest.type,a,l,null))};return r.provideCallHierarchyOutgoingCalls?r.provideCallHierarchyOutgoingCalls(e,n,s):s(e,n)}}class n3 extends ou.TextDocumentLanguageFeature{constructor(e){super(e,Cr.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=e,i=(0,ou.ensure)((0,ou.ensure)(n,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=this._client,i=new t3(n);return[e3.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}tl.CallHierarchyFeature=n3;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});nl.SemanticTokensFeature=void 0;const aa=ye,ve=de,Qs=ge,i3=Ve;class r3 extends Qs.TextDocumentLanguageFeature{constructor(e){super(e,ve.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const n=(0,Qs.ensure)((0,Qs.ensure)(e,"textDocument"),"semanticTokens");n.dynamicRegistration=!0,n.tokenTypes=[ve.SemanticTokenTypes.namespace,ve.SemanticTokenTypes.type,ve.SemanticTokenTypes.class,ve.SemanticTokenTypes.enum,ve.SemanticTokenTypes.interface,ve.SemanticTokenTypes.struct,ve.SemanticTokenTypes.typeParameter,ve.SemanticTokenTypes.parameter,ve.SemanticTokenTypes.variable,ve.SemanticTokenTypes.property,ve.SemanticTokenTypes.enumMember,ve.SemanticTokenTypes.event,ve.SemanticTokenTypes.function,ve.SemanticTokenTypes.method,ve.SemanticTokenTypes.macro,ve.SemanticTokenTypes.keyword,ve.SemanticTokenTypes.modifier,ve.SemanticTokenTypes.comment,ve.SemanticTokenTypes.string,ve.SemanticTokenTypes.number,ve.SemanticTokenTypes.regexp,ve.SemanticTokenTypes.operator,ve.SemanticTokenTypes.decorator],n.tokenModifiers=[ve.SemanticTokenModifiers.declaration,ve.SemanticTokenModifiers.definition,ve.SemanticTokenModifiers.readonly,ve.SemanticTokenModifiers.static,ve.SemanticTokenModifiers.deprecated,ve.SemanticTokenModifiers.abstract,ve.SemanticTokenModifiers.async,ve.SemanticTokenModifiers.modification,ve.SemanticTokenModifiers.documentation,ve.SemanticTokenModifiers.defaultLibrary],n.formats=[ve.TokenFormat.Relative],n.requests={range:!0,full:{delta:!0}},n.multilineTokenSupport=!1,n.overlappingTokenSupport=!1,n.serverCancelSupport=!0,n.augmentsSyntaxTokens=!0,(0,Qs.ensure)((0,Qs.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,n){this._client.onRequest(ve.SemanticTokensRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeSemanticTokensEmitter.fire()});const[r,s]=this.getRegistration(n,e.semanticTokensProvider);!r||!s||this.register({id:r,registerOptions:s})}registerLanguageProvider(e){const n=e.documentSelector,i=i3.boolean(e.full)?e.full:e.full!==void 0,r=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,s=new aa.EventEmitter,o=i?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(w,v)=>{const x=this._client,T=x.middleware,q=(z,A)=>{const W={textDocument:x.code2ProtocolConverter.asTextDocumentIdentifier(z)};return x.sendRequest(ve.SemanticTokensRequest.type,W,A).then(j=>A.isCancellationRequested?null:x.protocol2CodeConverter.asSemanticTokens(j,A),j=>x.handleFailedRequest(ve.SemanticTokensRequest.type,A,j,null))};return T.provideDocumentSemanticTokens?T.provideDocumentSemanticTokens(w,v,q):q(w,v)},provideDocumentSemanticTokensEdits:r?(w,v,x)=>{const T=this._client,q=T.middleware,z=(A,W,j)=>{const se={textDocument:T.code2ProtocolConverter.asTextDocumentIdentifier(A),previousResultId:W};return T.sendRequest(ve.SemanticTokensDeltaRequest.type,se,j).then(async B=>j.isCancellationRequested?null:ve.SemanticTokens.is(B)?await T.protocol2CodeConverter.asSemanticTokens(B,j):await T.protocol2CodeConverter.asSemanticTokensEdits(B,j),B=>T.handleFailedRequest(ve.SemanticTokensDeltaRequest.type,j,B,null))};return q.provideDocumentSemanticTokensEdits?q.provideDocumentSemanticTokensEdits(w,v,x,z):z(w,v,x)}:void 0}:void 0,c=e.range===!0?{provideDocumentRangeSemanticTokens:(w,v,x)=>{const T=this._client,q=T.middleware,z=(A,W,j)=>{const se={textDocument:T.code2ProtocolConverter.asTextDocumentIdentifier(A),range:T.code2ProtocolConverter.asRange(W)};return T.sendRequest(ve.SemanticTokensRangeRequest.type,se,j).then(B=>j.isCancellationRequested?null:T.protocol2CodeConverter.asSemanticTokens(B,j),B=>T.handleFailedRequest(ve.SemanticTokensRangeRequest.type,j,B,null))};return q.provideDocumentRangeSemanticTokens?q.provideDocumentRangeSemanticTokens(w,v,x,z):z(w,v,x)}}:void 0,l=[],h=this._client,g=h.protocol2CodeConverter.asSemanticTokensLegend(e.legend),p=h.protocol2CodeConverter.asDocumentSelector(n);return o!==void 0&&l.push(aa.languages.registerDocumentSemanticTokensProvider(p,o,g)),c!==void 0&&l.push(aa.languages.registerDocumentRangeSemanticTokensProvider(p,c,g)),[new aa.Disposable(()=>l.forEach(w=>w.dispose())),{range:c,full:o,onDidChangeSemanticTokensEmitter:s}]}}nl.SemanticTokensFeature=r3;var vn={};Object.defineProperty(vn,"__esModule",{value:!0});vn.WillDeleteFilesFeature=vn.WillRenameFilesFeature=vn.WillCreateFilesFeature=vn.DidDeleteFilesFeature=vn.DidRenameFilesFeature=vn.DidCreateFilesFeature=void 0;const zn=ye,s3=Cc,qi=de,o3=$e;function zp(t,e){return t[e]===void 0&&(t[e]={}),t[e]}function a3(t,e){return t[e]}function Bp(t,e,n){t[e]=n}class Lr{constructor(e,n,i,r,s){this._client=e,this._event=n,this._registrationType=i,this._clientCapability=r,this._serverCapability=s,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 n=zp(zp(e,"workspace"),"fileOperations");Bp(n,"dynamicRegistration",!0),Bp(n,this._clientCapability,!0)}initialize(e){var r;const n=(r=e.workspace)==null?void 0:r.fileOperations,i=n!==void 0?a3(n,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:o3.generateUuid(),registerOptions:{filters:i.filters}})}catch(s){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${s}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const n=e.registerOptions.filters.map(i=>{const r=new s3.Minimatch(i.pattern.glob,Lr.asMinimatchOptions(i.pattern.options));if(!r.makeRe())throw new Error(`Invalid pattern ${i.pattern.glob}!`);return{scheme:i.scheme,matcher:r,kind:i.pattern.matches}});this._filters.set(e.id,n)}unregister(e){this._filters.delete(e),this._filters.size===0&&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 Lr.getFileType(e)}async filter(e,n){const i=await Promise.all(e.files.map(async s=>{const o=n(s),a=o.fsPath.replace(/\\/g,"/");for(const c of this._filters.values())for(const l of c)if(!(l.scheme!==void 0&&l.scheme!==o.scheme)){if(l.matcher.match(a)){if(l.kind===void 0)return!0;const h=await this.getFileType(o);if(h===void 0)return this._client.error(`Failed to determine file type for ${o.toString()}.`),!0;if(h===zn.FileType.File&&l.kind===qi.FileOperationPatternKind.file||h===zn.FileType.Directory&&l.kind===qi.FileOperationPatternKind.folder)return!0}else if(l.kind===qi.FileOperationPatternKind.folder&&await Lr.getFileType(o)===zn.FileType.Directory&&l.matcher.match(`${a}/`))return!0}return!1})),r=e.files.filter((s,o)=>i[o]);return{...e,files:r}}static async getFileType(e){try{return(await zn.workspace.fs.stat(e)).type}catch{return}}static asMinimatchOptions(e){const n={dot:!0};return(e==null?void 0:e.ignoreCase)===!0&&(n.nocase=!0),n}}class _2 extends Lr{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s),this._notificationType=i,this._accessUri=o,this._createParams=a}async send(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const i=async r=>this._client.sendNotification(this._notificationType,this._createParams(r));return this.doSend(n,i)}}}class S2 extends _2{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const n=e.fsPath;if(this._fsPathFileTypes.has(n))return this._fsPathFileTypes.get(n);const i=await Lr.getFileType(e);return i&&this._fsPathFileTypes.set(n,i),i}async cacheFileTypes(e,n){await this.filter(e,n)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),this.filterSize()===0&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}class c3 extends _2{constructor(e){super(e,zn.workspace.onDidCreateFiles,qi.DidCreateFilesNotification.type,"didCreate","didCreate",n=>n,e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.didCreateFiles?i.didCreateFiles(e,n):n(e)}}vn.DidCreateFilesFeature=c3;class l3 extends S2{constructor(e){super(e,zn.workspace.onDidRenameFiles,qi.DidRenameFilesNotification.type,"didRename","didRename",n=>n.oldUri,e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=zn.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,n=>n.oldUri))}doSend(e,n){this.clearFileTypeCache();const i=this._client.middleware.workspace;return i!=null&&i.didRenameFiles?i.didRenameFiles(e,n):n(e)}}vn.DidRenameFilesFeature=l3;class u3 extends S2{constructor(e){super(e,zn.workspace.onDidDeleteFiles,qi.DidDeleteFilesNotification.type,"didDelete","didDelete",n=>n,e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=zn.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,n=>n))}doSend(e,n){this.clearFileTypeCache();const i=this._client.middleware.workspace;return i!=null&&i.didDeleteFiles?i.didDeleteFiles(e,n):n(e)}}vn.DidDeleteFilesFeature=u3;class W1 extends Lr{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s),this._requestType=i,this._accessUri=o,this._createParams=a}async send(e){const n=this.waitUntil(e);e.waitUntil(n)}async waitUntil(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const i=r=>this._client.sendRequest(this._requestType,this._createParams(r),r.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(n,i)}else return}}class d3 extends W1{constructor(e){super(e,zn.workspace.onWillCreateFiles,qi.WillCreateFilesRequest.type,"willCreate","willCreate",n=>n,e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willCreateFiles?i.willCreateFiles(e,n):n(e)}}vn.WillCreateFilesFeature=d3;class f3 extends W1{constructor(e){super(e,zn.workspace.onWillRenameFiles,qi.WillRenameFilesRequest.type,"willRename","willRename",n=>n.oldUri,e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willRenameFiles?i.willRenameFiles(e,n):n(e)}}vn.WillRenameFilesFeature=f3;class h3 extends W1{constructor(e){super(e,zn.workspace.onWillDeleteFiles,qi.WillDeleteFilesRequest.type,"willDelete","willDelete",n=>n,e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willDeleteFiles?i.willDeleteFiles(e,n):n(e)}}vn.WillDeleteFilesFeature=h3;var il={};Object.defineProperty(il,"__esModule",{value:!0});il.LinkedEditingFeature=void 0;const g3=ye,au=de,cu=ge;class p3 extends cu.TextDocumentLanguageFeature{constructor(e){super(e,au.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){const n=(0,cu.ensure)((0,cu.ensure)(e,"textDocument"),"linkedEditingRange");n.dynamicRegistration=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideLinkedEditingRanges:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(au.LinkedEditingRangeRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asLinkedEditingRanges(w,p),w=>a.handleFailedRequest(au.LinkedEditingRangeRequest.type,p,w,null)),l=a.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return g3.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}il.LinkedEditingFeature=p3;var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.TypeHierarchyFeature=void 0;const m3=ye,_r=de,lu=ge;class y3{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,n,i){const r=this.client,s=this.middleware,o=(a,c,l)=>{const h=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(_r.TypeHierarchyPrepareRequest.type,h,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(g,l),g=>r.handleFailedRequest(_r.TypeHierarchyPrepareRequest.type,l,g,null))};return s.prepareTypeHierarchy?s.prepareTypeHierarchy(e,n,i,o):o(e,n,i)}provideTypeHierarchySupertypes(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(_r.TypeHierarchySupertypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(_r.TypeHierarchySupertypesRequest.type,a,l,null))};return r.provideTypeHierarchySupertypes?r.provideTypeHierarchySupertypes(e,n,s):s(e,n)}provideTypeHierarchySubtypes(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(_r.TypeHierarchySubtypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(_r.TypeHierarchySubtypesRequest.type,a,l,null))};return r.provideTypeHierarchySubtypes?r.provideTypeHierarchySubtypes(e,n,s):s(e,n)}}class b3 extends lu.TextDocumentLanguageFeature{constructor(e){super(e,_r.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=(0,lu.ensure)((0,lu.ensure)(e,"textDocument"),"typeHierarchy");n.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.typeHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=this._client,i=new y3(n);return[m3.languages.registerTypeHierarchyProvider(n.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}rl.TypeHierarchyFeature=b3;var sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.InlineValueFeature=void 0;const Vp=ye,ca=de,Js=ge;class v3 extends Js.TextDocumentLanguageFeature{constructor(e){super(e,ca.InlineValueRequest.type)}fillClientCapabilities(e){(0,Js.ensure)((0,Js.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,Js.ensure)((0,Js.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,n){this._client.onRequest(ca.InlineValueRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlineValues.fire()});const[i,r]=this.getRegistration(n,e.inlineValueProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Vp.EventEmitter,r={onDidChangeInlineValues:i.event,provideInlineValues:(s,o,a,c)=>{const l=this._client,h=(p,w,v,x)=>{const T={textDocument:l.code2ProtocolConverter.asTextDocumentIdentifier(p),range:l.code2ProtocolConverter.asRange(w),context:l.code2ProtocolConverter.asInlineValueContext(v)};return l.sendRequest(ca.InlineValueRequest.type,T,x).then(q=>x.isCancellationRequested?null:l.protocol2CodeConverter.asInlineValues(q,x),q=>l.handleFailedRequest(ca.InlineValueRequest.type,x,q,null))},g=l.middleware;return g.provideInlineValues?g.provideInlineValues(s,o,a,c,h):h(s,o,a,c)}};return[this.registerProvider(n,r),{provider:r,onDidChangeInlineValues:i}]}registerProvider(e,n){return Vp.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}sl.InlineValueFeature=v3;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.InlayHintsFeature=void 0;const Kp=ye,Qr=de,Ys=ge;class w3 extends Ys.TextDocumentLanguageFeature{constructor(e){super(e,Qr.InlayHintRequest.type)}fillClientCapabilities(e){const n=(0,Ys.ensure)((0,Ys.ensure)(e,"textDocument"),"inlayHint");n.dynamicRegistration=!0,n.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,Ys.ensure)((0,Ys.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,n){this._client.onRequest(Qr.InlayHintRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlayHints.fire()});const[i,r]=this.getRegistration(n,e.inlayHintProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Kp.EventEmitter,r={onDidChangeInlayHints:i.event,provideInlayHints:(s,o,a)=>{const c=this._client,l=async(g,p,w)=>{const v={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p)};try{const x=await c.sendRequest(Qr.InlayHintRequest.type,v,w);return w.isCancellationRequested?null:c.protocol2CodeConverter.asInlayHints(x,w)}catch(x){return c.handleFailedRequest(Qr.InlayHintRequest.type,w,x,null)}},h=c.middleware;return h.provideInlayHints?h.provideInlayHints(s,o,a,l):l(s,o,a)}};return r.resolveInlayHint=e.resolveProvider===!0?(s,o)=>{const a=this._client,c=async(h,g)=>{try{const p=await a.sendRequest(Qr.InlayHintResolveRequest.type,a.code2ProtocolConverter.asInlayHint(h),g);if(g.isCancellationRequested)return null;const w=a.protocol2CodeConverter.asInlayHint(p,g);return g.isCancellationRequested?null:w}catch(p){return a.handleFailedRequest(Qr.InlayHintResolveRequest.type,g,p,null)}},l=a.middleware;return l.resolveInlayHint?l.resolveInlayHint(s,o,c):c(s,o)}:void 0,[this.registerProvider(n,r),{provider:r,onDidChangeInlayHints:i}]}registerProvider(e,n){return Kp.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}ol.InlayHintsFeature=w3;var al={};Object.defineProperty(al,"__esModule",{value:!0});al.InlineCompletionItemFeature=void 0;const C3=ye,uu=de,du=ge,_3=$e;class S3 extends du.TextDocumentLanguageFeature{constructor(e){super(e,uu.InlineCompletionRequest.type)}fillClientCapabilities(e){let n=(0,du.ensure)((0,du.ensure)(e,"textDocument"),"inlineCompletion");n.dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.inlineCompletionProvider);i&&this.register({id:_3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideInlineCompletionItems:(r,s,o,a)=>{const c=this._client,l=this._client.middleware,h=(g,p,w,v)=>c.sendRequest(uu.InlineCompletionRequest.type,c.code2ProtocolConverter.asInlineCompletionParams(g,p,w),v).then(x=>v.isCancellationRequested?null:c.protocol2CodeConverter.asInlineCompletionResult(x,v),x=>c.handleFailedRequest(uu.InlineCompletionRequest.type,v,x,null));return l.provideInlineCompletionItems?l.provideInlineCompletionItems(r,s,o,a,h):h(r,s,o,a)}};return[C3.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}al.InlineCompletionItemFeature=S3;Object.defineProperty(jt,"__esModule",{value:!0});jt.ProposedFeatures=jt.BaseLanguageClient=jt.MessageTransports=jt.SuspendMode=jt.State=jt.CloseAction=jt.ErrorAction=jt.RevealOutputChannelOn=void 0;const Je=ye,K=de,D3=Sc,x3=Fc,ti=Ve,la=Wt,Gp=$e,k3=Go,Xn=ge,T3=Ni,Qp=Mc,Jp=er,Jr=bn,R3=Oc,E3=Ac,P3=Lc,I3=Nc,F3=$c,M3=H1,O3=qc,A3=Hc,L3=jc,N3=Wc,fu=tr,$3=zc,q3=Bc,H3=Vc,j3=Kc,W3=Gc,U3=Qc,z3=Jc,B3=ys,V3=Yc,K3=Xc,G3=Zc,Q3=el,J3=tl,Y3=nl,Yr=vn,X3=il,Z3=rl,e_=sl,t_=ol,n_=al;var xr;(function(t){t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Never=4]="Never"})(xr||(jt.RevealOutputChannelOn=xr={}));var xo;(function(t){t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown"})(xo||(jt.ErrorAction=xo={}));var nr;(function(t){t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart"})(nr||(jt.CloseAction=nr={}));var ho;(function(t){t[t.Stopped=1]="Stopped",t[t.Starting=3]="Starting",t[t.Running=2]="Running"})(ho||(jt.State=ho={}));var Yp;(function(t){t.off="off",t.on="on"})(Yp||(jt.SuspendMode=Yp={}));var dh;(function(t){function e(n){return n==null?!1:typeof n=="boolean"||typeof n=="object"&&n!==null&&ti.stringArray(n.enabledCommands)?n:!1}t.sanitizeIsTrusted=e})(dh||(dh={}));class i_{constructor(e,n){this.client=e,this.maxRestartCount=n,this.restarts=[]}error(e,n,i){return i&&i<=3?{action:xo.Continue}:{action:xo.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:nr.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?{action:nr.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:nr.Restart})}}var Re;(function(t){t.Initial="initial",t.Starting="starting",t.StartFailed="startFailed",t.Running="running",t.Stopping="stopping",t.Stopped="stopped"})(Re||(Re={}));var Xp;(function(t){function e(n){return n&&K.MessageReader.is(n.reader)&&K.MessageWriter.is(n.writer)}t.is=e})(Xp||(jt.MessageTransports=Xp={}));class Nr{constructor(e,n,i){var s;this._traceFormat=K.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new la.Semaphore(1),this._id=e,this._name=n,i=i||{};const r={isTrusted:!1,supportHtml:!1};i.markdown!==void 0&&(r.isTrusted=dh.sanitizeIsTrusted(i.markdown.isTrusted),r.supportHtml=i.markdown.supportHtml===!0),this._clientOptions={documentSelector:i.documentSelector??[],synchronize:i.synchronize??{},diagnosticCollectionName:i.diagnosticCollectionName,outputChannelName:i.outputChannelName??this._name,revealOutputChannelOn:i.revealOutputChannelOn??xr.Error,stdioEncoding:i.stdioEncoding??"utf8",initializationOptions:i.initializationOptions,initializationFailedHandler:i.initializationFailedHandler,progressOnInitialization:!!i.progressOnInitialization,errorHandler:i.errorHandler??this.createDefaultErrorHandler((s=i.connectionOptions)==null?void 0:s.maxRestartCount),middleware:i.middleware??{},uriConverters:i.uriConverters,workspaceFolder:i.workspaceFolder,connectionOptions:i.connectionOptions,markdown:r,diagnosticPullOptions:i.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:i.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Re.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,i.outputChannel?(this._outputChannel=i.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=i.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new la.Semaphore(1),this._pendingChangeDelayer=new la.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new la.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new K.Emitter,this._stateChangeEmitter=new K.Emitter,this._trace=K.Trace.Off,this._tracer={log:(o,a)=>{ti.string(o)?this.logTrace(o,a):this.logObjectTrace(o)}},this._c2p=D3.createConverter(i.uriConverters?i.uriConverters.code2Protocol:void 0),this._p2c=x3.createConverter(i.uriConverters?i.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=Je.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){let n=this.getPublicState();this._state=e;let i=this.getPublicState();i!==n&&this._stateChangeEmitter.fire({oldState:n,newState:i})}getPublicState(){switch(this.$state){case Re.Starting:return ho.Starting;case Re.Running:return ho.Running;default:return ho.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...n){var s;if(this.$state===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));const i=await this.$start();this._didChangeTextDocumentFeature.syncKind===K.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(i);const r=(s=this._clientOptions.middleware)==null?void 0:s.sendRequest;if(r!==void 0){let o,a;return n.length===1?K.CancellationToken.is(n[0])?a=n[0]:o=n[0]:n.length===2&&(o=n[0],a=n[1]),r(e,o,a,(c,l,h)=>{const g=[];return l!==void 0&&g.push(l),h!==void 0&&g.push(h),i.sendRequest(c,...g)})}else return i.sendRequest(e,...n)}onRequest(e,n){const i=typeof e=="string"?e:e.method;this._requestHandlers.set(i,n);const r=this.activeConnection();let s;return r!==void 0?(this._requestDisposables.set(i,r.onRequest(e,n)),s={dispose:()=>{const o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}):(this._pendingRequestHandlers.set(i,n),s={dispose:()=>{this._pendingRequestHandlers.delete(i);const o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}),{dispose:()=>{this._requestHandlers.delete(i),s.dispose()}}}async sendNotification(e,n){var a;if(this.$state===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));const i=this._didChangeTextDocumentFeature.syncKind===K.TextDocumentSyncKind.Full;let r;i&&typeof e!="string"&&e.method===K.DidOpenTextDocumentNotification.method&&(r=n==null?void 0:n.textDocument.uri,this._pendingOpenNotifications.add(r));const s=await this.$start();i&&await this.sendPendingFullTextDocumentChanges(s),r!==void 0&&this._pendingOpenNotifications.delete(r);const o=(a=this._clientOptions.middleware)==null?void 0:a.sendNotification;return o?o(e,s.sendNotification.bind(s),n):s.sendNotification(e,n)}onNotification(e,n){const i=typeof e=="string"?e:e.method;this._notificationHandlers.set(i,n);const r=this.activeConnection();let s;return r!==void 0?(this._notificationDisposables.set(i,r.onNotification(e,n)),s={dispose:()=>{const o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}):(this._pendingNotificationHandlers.set(i,n),s={dispose:()=>{this._pendingNotificationHandlers.delete(i);const o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}),{dispose:()=>{this._notificationHandlers.delete(i),s.dispose()}}}async sendProgress(e,n,i){if(this.$state===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,n,i)}catch(r){throw this.error(`Sending progress for token ${n} failed.`,r),r}}onProgress(e,n,i){var c;this._progressHandlers.set(n,{type:e,handler:i});const r=this.activeConnection();let s;const o=(c=this._clientOptions.middleware)==null?void 0:c.handleWorkDoneProgress,a=K.WorkDoneProgress.is(e)&&o!==void 0?l=>{o(n,l,()=>i(l))}:i;return r!==void 0?(this._progressDisposables.set(n,r.onProgress(e,n,a)),s={dispose:()=>{const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}):(this._pendingProgressHandlers.set(n,{type:e,handler:i}),s={dispose:()=>{this._pendingProgressHandlers.delete(n);const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}),{dispose:()=>{this._progressHandlers.delete(n),s.dispose()}}}createDefaultErrorHandler(e){if(e!==void 0&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new i_(this,e??4)}async setTrace(e){this._trace=e;const n=this.activeConnection();n!==void 0&&await n.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof K.ResponseError){const n=e;return` Message: ${n.message}
66
+ >>> no match, partial?`,e,g,n,p),g===a))}var v;if(typeof l=="string"?(v=h===l,this.debug("string match",l,h,v)):(v=h.match(l),this.debug("pattern match",l,h,v)),!v)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return _2(this.pattern,this.options)}parse(e,n){Wa(e);const i=this.options;if(e==="**")if(i.noglobstar)e="*";else return ei;if(e==="")return"";let r="",s=!1,o=!1;const a=[],c=[];let l,h=!1,g=-1,p=-1,w,v,x,T=e.charAt(0)===".",q=i.dot||T;const z=()=>T?"":q?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=B=>B.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=()=>{if(l){switch(l){case"*":r+=Ol,s=!0;break;case"?":r+=sh,s=!0;break;default:r+="\\"+l;break}this.debug("clearStateChar %j %j",l,r),l=!1}};for(let B=0,Z;B<e.length&&(Z=e.charAt(B));B++){if(this.debug("%s %s %s %j",e,B,r,Z),o){if(Z==="/")return!1;Sp[Z]&&(r+="\\"),r+=Z,o=!1;continue}switch(Z){case"/":return!1;case"\\":if(h&&e.charAt(B+1)==="-"){r+=Z;continue}W(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,B,r,Z),h){this.debug(" in class"),Z==="!"&&B===p+1&&(Z="^"),r+=Z;continue}this.debug("call clearStateChar %j",l),W(),l=Z,i.noext&&W();continue;case"(":{if(h){r+="(";continue}if(!l){r+="\\(";continue}const oe={type:l,start:B-1,reStart:r.length,open:_p[l].open,close:_p[l].close};this.debug(this.pattern," ",oe),a.push(oe),r+=oe.open,oe.start===0&&oe.type!=="!"&&(T=!0,r+=A(e.slice(B+1))),this.debug("plType %j %j",l,r),l=!1;continue}case")":{const oe=a[a.length-1];if(h||!oe){r+="\\)";continue}a.pop(),W(),s=!0,v=oe,r+=v.close,v.type==="!"&&c.push(Object.assign(v,{reEnd:r.length}));continue}case"|":{const oe=a[a.length-1];if(h||!oe){r+="\\|";continue}W(),r+="|",oe.start===0&&oe.type!=="!"&&(T=!0,r+=A(e.slice(B+1)));continue}case"[":if(W(),h){r+="\\"+Z;continue}h=!0,p=B,g=r.length,r+=Z;continue;case"]":if(B===p+1||!h){r+="\\"+Z;continue}w=e.substring(p+1,B);try{RegExp("["+B8(U8(w))+"]"),r+=Z}catch{r=r.substring(0,g)+"(?:$.)"}s=!0,h=!1;continue;default:W(),Sp[Z]&&!(Z==="^"&&h)&&(r+="\\"),r+=Z;break}}for(h&&(w=e.slice(p+1),x=this.parse(w,Al),r=r.substring(0,g)+"\\["+x[0],s=s||x[1]),v=a.pop();v;v=a.pop()){let B;B=r.slice(v.reStart+v.open.length),this.debug("setting tail",r,v),B=B.replace(/((?:\\{2}){0,64})(\\?)\|/g,(oe,qe,O)=>(O||(O="\\"),qe+qe+O+"|")),this.debug(`tail=%j
67
+ %s`,B,B,v,r);const Z=v.type==="*"?Ol:v.type==="?"?sh:"\\"+v.type;s=!0,r=r.slice(0,v.reStart)+Z+"\\("+B}W(),o&&(r+="\\\\");const j=H8[r.charAt(0)];for(let B=c.length-1;B>-1;B--){const Z=c[B],oe=r.slice(0,Z.reStart),qe=r.slice(Z.reStart,Z.reEnd-8);let O=r.slice(Z.reEnd);const L=r.slice(Z.reEnd-8,Z.reEnd)+O,D=oe.split(")").length,P=oe.split("(").length-D;let N=O;for(let ee=0;ee<P;ee++)N=N.replace(/\)[+*?]?/,"");O=N;const $=O===""&&n!==Al?"(?:$|\\/)":"";r=oe+qe+O+$+L}if(r!==""&&s&&(r="(?=.)"+r),j&&(r=z()+r),n===Al)return[r,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return W8(e);const se=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+r+"$",se),{_glob:e,_src:r})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,i=n.noglobstar?Ol:n.dot?$8:q8,r=n.nocase?"i":"";let s=e.map(o=>(o=o.map(a=>typeof a=="string"?z8(a):a===ei?ei:a._src).reduce((a,c)=>(a[a.length-1]===ei&&c===ei||a.push(c),a),[]),o.forEach((a,c)=>{a!==ei||o[c-1]===ei||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=ei))}),o.filter(a=>a!==ei).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,r)}catch{this.regexp=!1}return this.regexp}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const i=this.options;rh.sep!=="/"&&(e=e.split(rh.sep).join("/")),e=e.split(Dp),this.debug(this.pattern,"split",e);const r=this.set;this.debug(this.pattern,"set",r);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<r.length;o++){const a=r[o];let c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,n))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pn.defaults(e).Minimatch}}Pn.Minimatch=_c;Object.defineProperty(Ni,"__esModule",{value:!0});Ni.DiagnosticFeature=Ni.DiagnosticPullMode=Ni.vsdiag=void 0;const V8=Cc,Le=ye,vt=de,K8=$e,oh=ge;function na(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var qn;(function(t){(function(e){e.full="full",e.unChanged="unChanged"})(t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={}))})(qn||(Ni.vsdiag=qn={}));var Ua;(function(t){t.onType="onType",t.onSave="onSave"})(Ua||(Ni.DiagnosticPullMode=Ua={}));var tn;(function(t){t.active="open",t.reschedule="reschedule",t.outDated="drop"})(tn||(tn={}));class fo{constructor(){this.open=new Set,this._onOpen=new Le.EventEmitter,this._onClose=new Le.EventEmitter,fo.fillTabResources(this.open);const e=n=>{if(n.closed.length===0&&n.opened.length===0)return;const i=this.open,r=new Set;fo.fillTabResources(r);const s=new Set,o=new Set(r);for(const a of i.values())r.has(a)?o.delete(a):s.add(a);if(this.open=r,s.size>0){const a=new Set;for(const c of s)a.add(Le.Uri.parse(c));this._onClose.fire(a)}if(o.size>0){const a=new Set;for(const c of o)a.add(Le.Uri.parse(c));this._onOpen.fire(a)}};Le.window.tabGroups.onDidChangeTabs!==void 0?this.disposable=Le.window.tabGroups.onDidChangeTabs(e):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){var n,i;return e instanceof Le.Uri?((n=Le.window.activeTextEditor)==null?void 0:n.document.uri)===e:((i=Le.window.activeTextEditor)==null?void 0:i.document)===e}isVisible(e){const n=e instanceof Le.Uri?e:e.uri;return this.open.has(n.toString())}getTabResources(){const e=new Set;return fo.fillTabResources(new Set,e),e}static fillTabResources(e,n){const i=e??new Set;for(const r of Le.window.tabGroups.all)for(const s of r.tabs){const o=s.input;let a;o instanceof Le.TabInputText?a=o.uri:o instanceof Le.TabInputTextDiff?a=o.modified:o instanceof Le.TabInputCustom&&(a=o.uri),a!==void 0&&!i.has(a.toString())&&(i.add(a.toString()),n!==void 0&&n.add(a))}}}var Mt;(function(t){t[t.document=1]="document",t[t.workspace=2]="workspace"})(Mt||(Mt={}));var Mi;(function(t){function e(n){return n instanceof Le.Uri?n.toString():n.uri.toString()}t.asKey=e})(Mi||(Mi={}));class G8{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,n,i){const r=e===Mt.document?this.documentPullStates:this.workspacePullStates,[s,o,a]=n instanceof Le.Uri?[n.toString(),n,i]:[n.uri.toString(),n.uri,n.version];let c=r.get(s);return c===void 0&&(c={document:o,pulledVersion:a,resultId:void 0},r.set(s,c)),c}update(e,n,i,r){const s=e===Mt.document?this.documentPullStates:this.workspacePullStates,[o,a,c,l]=n instanceof Le.Uri?[n.toString(),n,i,r]:[n.uri.toString(),n.uri,n.version,i];let h=s.get(o);h===void 0?(h={document:a,pulledVersion:c,resultId:l},s.set(o,h)):(h.pulledVersion=c,h.resultId=l)}unTrack(e,n){const i=Mi.asKey(n);(e===Mt.document?this.documentPullStates:this.workspacePullStates).delete(i)}tracks(e,n){const i=Mi.asKey(n);return(e===Mt.document?this.documentPullStates:this.workspacePullStates).has(i)}getResultId(e,n){var s;const i=Mi.asKey(n);return(s=(e===Mt.document?this.documentPullStates:this.workspacePullStates).get(i))==null?void 0:s.resultId}getAllResultIds(){const e=[];for(let[n,i]of this.workspacePullStates)this.documentPullStates.has(n)&&(i=this.documentPullStates.get(n)),i.resultId!==void 0&&e.push({uri:n,value:i.resultId});return e}}class Q8{constructor(e,n,i){this.client=e,this.tabs=n,this.options=i,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new Le.EventEmitter,this.provider=this.createProvider(),this.diagnostics=Le.languages.createDiagnosticCollection(i.identifier),this.openRequests=new Map,this.documentStates=new G8,this.workspaceErrorCounter=0}knows(e,n){const i=n instanceof Le.Uri?n:n.uri;return this.documentStates.tracks(e,n)||this.openRequests.has(i.toString())}forget(e,n){this.documentStates.unTrack(e,n)}pull(e,n){if(this.isDisposed)return;const i=e instanceof Le.Uri?e:e.uri;this.pullAsync(e).then(()=>{n&&n()},r=>{this.client.error(`Document pull failed for text document ${i.toString()}`,r,!1)})}async pullAsync(e,n){if(this.isDisposed)return;const i=e instanceof Le.Uri,r=i?e:e.uri,s=r.toString();n=i?n:e.version;const o=this.openRequests.get(s),a=i?this.documentStates.track(Mt.document,e,n):this.documentStates.track(Mt.document,e);if(o===void 0){const c=new Le.CancellationTokenSource;this.openRequests.set(s,{state:tn.active,document:e,version:n,tokenSource:c});let l,h;try{l=await this.provider.provideDiagnostics(e,a.resultId,c.token)??{kind:qn.DocumentDiagnosticReportKind.full,items:[]}}catch(g){if(g instanceof oh.LSPCancellationError&&vt.DiagnosticServerCancellationData.is(g.data)&&g.data.retriggerRequest===!1&&(h={state:tn.outDated,document:e}),h===void 0&&g instanceof Le.CancellationError)h={state:tn.reschedule,document:e};else throw g}if(h=h??this.openRequests.get(s),h===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),this.diagnostics.delete(r);return}if(this.openRequests.delete(s),!this.tabs.isVisible(e)){this.documentStates.unTrack(Mt.document,e);return}if(h.state===tn.outDated)return;l!==void 0&&(l.kind===qn.DocumentDiagnosticReportKind.full&&this.diagnostics.set(r,l.items),a.pulledVersion=n,a.resultId=l.resultId),h.state===tn.reschedule&&this.pull(e)}else o.state===tn.active?(o.tokenSource.cancel(),this.openRequests.set(s,{state:tn.reschedule,document:o.document})):o.state===tn.outDated&&this.openRequests.set(s,{state:tn.reschedule,document:o.document})}forgetDocument(e){const n=e instanceof Le.Uri?e:e.uri,i=n.toString(),r=this.openRequests.get(i);this.options.workspaceDiagnostics?r!==void 0?this.openRequests.set(i,{state:tn.reschedule,document:e}):this.pull(e,()=>{this.forget(Mt.document,e)}):(r!==void 0&&(r.state===tn.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:tn.outDated,document:e})),this.diagnostics.delete(n),this.forget(Mt.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,vt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{!(e instanceof oh.LSPCancellationError)&&!vt.DiagnosticServerCancellationData.is(e.data)&&(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,vt.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new Le.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map(n=>({uri:this.client.protocol2CodeConverter.asUri(n.uri),value:n.value}));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,n=>{if(!(!n||this.isDisposed))for(const i of n.items)i.kind===qn.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(Mt.document,i.uri)||this.diagnostics.set(i.uri,i.items)),this.documentStates.update(Mt.workspace,i.uri,i.version??void 0,i.resultId)})}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(n,i,r)=>{const s=(a,c,l)=>{const h={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(a instanceof Le.Uri?a:a.uri)},previousResultId:c};return this.isDisposed===!0||!this.client.isRunning()?{kind:qn.DocumentDiagnosticReportKind.full,items:[]}:this.client.sendRequest(vt.DocumentDiagnosticRequest.type,h,l).then(async g=>g==null||this.isDisposed||l.isCancellationRequested?{kind:qn.DocumentDiagnosticReportKind.full,items:[]}:g.kind===vt.DocumentDiagnosticReportKind.Full?{kind:qn.DocumentDiagnosticReportKind.full,resultId:g.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(g.items,l)}:{kind:qn.DocumentDiagnosticReportKind.unChanged,resultId:g.resultId},g=>this.client.handleFailedRequest(vt.DocumentDiagnosticRequest.type,l,g,{kind:qn.DocumentDiagnosticReportKind.full,items:[]}))},o=this.client.middleware;return o.provideDiagnostics?o.provideDiagnostics(n,i,r,s):s(n,i,r)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(n,i,r)=>{const s=async l=>l.kind===vt.DocumentDiagnosticReportKind.Full?{kind:qn.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version,items:await this.client.protocol2CodeConverter.asDiagnostics(l.items,i)}:{kind:qn.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(l.uri),resultId:l.resultId,version:l.version},o=l=>{const h=[];for(const g of l)h.push({uri:this.client.code2ProtocolConverter.asUri(g.uri),value:g.value});return h},a=(l,h)=>{const g=(0,K8.generateUuid)(),p=this.client.onProgress(vt.WorkspaceDiagnosticRequest.partialResult,g,async v=>{if(v==null){r(null);return}const x={items:[]};for(const T of v.items)try{x.items.push(await s(T))}catch(q){this.client.error("Converting workspace diagnostics failed.",q)}r(x)}),w={identifier:this.options.identifier,previousResultIds:o(l),partialResultToken:g};return this.isDisposed===!0||!this.client.isRunning()?{items:[]}:this.client.sendRequest(vt.WorkspaceDiagnosticRequest.type,w,h).then(async v=>{if(h.isCancellationRequested)return{items:[]};const x={items:[]};for(const T of v.items)x.items.push(await s(T));return p.dispose(),r(x),{items:[]}},v=>(p.dispose(),this.client.handleFailedRequest(vt.DocumentDiagnosticRequest.type,h,v,{items:[]})))},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(n,i,r,a):a(n,i)}),e}dispose(){var e,n;this.isDisposed=!0,(e=this.workspaceCancellation)==null||e.cancel(),(n=this.workspaceTimeout)==null||n.dispose();for(const[i,r]of this.openRequests)r.state===tn.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:tn.outDated,document:r.document});this.diagnostics.dispose()}}class J8{constructor(e){this.diagnosticRequestor=e,this.documents=new vt.LinkedMap,this.isDisposed=!1}add(e){if(this.isDisposed===!0)return;const n=Mi.asKey(e);this.documents.has(n)||(this.documents.set(n,e,vt.Touch.Last),this.trigger())}remove(e){const n=Mi.asKey(e);this.documents.delete(n),this.documents.size===0?this.stop():n===this.endDocumentKey()&&(this.endDocument=this.documents.last)}trigger(){if(this.isDisposed!==!0){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,vt.RAL)().timer.setInterval(()=>{const e=this.documents.first;if(e!==void 0){const n=Mi.asKey(e);this.diagnosticRequestor.pull(e),this.documents.set(n,e,vt.Touch.Last),n===this.endDocumentKey()&&this.stop()}},200)}}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear()}stop(){var e;(e=this.intervalHandle)==null||e.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}endDocumentKey(){return this.endDocument!==void 0?Mi.asKey(this.endDocument):void 0}}class Y8{constructor(e,n,i){var v;const r=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(i.documentSelector),o=[],a=x=>{const T=i.documentSelector;if(r.match!==void 0)return r.match(T,x);for(const q of T)if(vt.TextDocumentFilter.is(q)){if(typeof q=="string"||q.language!==void 0&&q.language!=="*"||q.scheme!==void 0&&q.scheme!=="*"&&q.scheme!==x.scheme)return!1;if(q.pattern!==void 0){const z=new V8.Minimatch(q.pattern,{noext:!0});if(!z.makeRe()||!z.match(x.fsPath))return!1}}return!0},c=x=>x instanceof Le.Uri?a(x):Le.languages.match(s,x)>0&&n.isVisible(x),l=x=>{var T;return x instanceof Le.Uri?((T=this.activeTextDocument)==null?void 0:T.uri.toString())===x.toString():this.activeTextDocument===x};this.diagnosticRequestor=new Q8(e,n,i),this.backgroundScheduler=new J8(this.diagnosticRequestor);const h=x=>{!c(x)||!i.interFileDependencies||l(x)||this.backgroundScheduler.add(x)};this.activeTextDocument=(v=Le.window.activeTextEditor)==null?void 0:v.document,Le.window.onDidChangeActiveTextEditor(x=>{const T=this.activeTextDocument;this.activeTextDocument=x==null?void 0:x.document,T!==void 0&&h(T),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});const g=e.getFeature(vt.DidOpenTextDocumentNotification.method);o.push(g.onNotificationSent(x=>{const T=x.textDocument;this.diagnosticRequestor.knows(Mt.document,T)||c(T)&&this.diagnosticRequestor.pull(T,()=>{h(T)})})),o.push(n.onOpen(x=>{for(const T of x){if(this.diagnosticRequestor.knows(Mt.document,T))continue;const q=T.toString();let z;for(const A of Le.workspace.textDocuments)if(q===A.uri.toString()){z=A;break}z!==void 0&&c(z)&&this.diagnosticRequestor.pull(z,()=>{h(z)})}}));const p=new Set;for(const x of Le.workspace.textDocuments)c(x)&&(this.diagnosticRequestor.pull(x,()=>{h(x)}),p.add(x.uri.toString()));if(r.onTabs===!0)for(const x of n.getTabResources())!p.has(x.toString())&&c(x)&&this.diagnosticRequestor.pull(x,()=>{h(x)});if(r.onChange===!0){const x=e.getFeature(vt.DidChangeTextDocumentNotification.method);o.push(x.onNotificationSent(async T=>{const q=T.textDocument;(r.filter===void 0||!r.filter(q,Ua.onType))&&this.diagnosticRequestor.knows(Mt.document,q)&&this.diagnosticRequestor.pull(q,()=>{this.backgroundScheduler.trigger()})}))}if(r.onSave===!0){const x=e.getFeature(vt.DidSaveTextDocumentNotification.method);o.push(x.onNotificationSent(T=>{const q=T.textDocument;(r.filter===void 0||!r.filter(q,Ua.onSave))&&this.diagnosticRequestor.knows(Mt.document,q)&&this.diagnosticRequestor.pull(T.textDocument,()=>{this.backgroundScheduler.trigger()})}))}const w=e.getFeature(vt.DidCloseTextDocumentNotification.method);o.push(w.onNotificationSent(x=>{this.cleanUpDocument(x.textDocument)})),n.onClose(x=>{for(const T of x)this.cleanUpDocument(T)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(const x of Le.workspace.textDocuments)c(x)&&this.diagnosticRequestor.pull(x)}),i.workspaceDiagnostics===!0&&i.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=Le.Disposable.from(...o,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(Mt.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}}class X8 extends oh.TextDocumentLanguageFeature{constructor(e){super(e,vt.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let n=na(na(e,"textDocument"),"diagnostic");n.dynamicRegistration=!0,n.relatedDocumentSupport=!1,na(na(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,n){this._client.onRequest(vt.DiagnosticRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeDiagnosticsEmitter.fire()});let[r,s]=this.getRegistration(n,e.diagnosticProvider);!r||!s||this.register({id:r,registerOptions:s})}clear(){this.tabs!==void 0&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}registerLanguageProvider(e){this.tabs===void 0&&(this.tabs=new fo);const n=new Y8(this._client,this.tabs,e);return[n.disposable,n]}}Ni.DiagnosticFeature=X8;var jt={},Sc={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.forEach=Wt.mapAsync=Wt.map=Wt.clearTestMode=Wt.setTestMode=Wt.Semaphore=Wt.Delayer=void 0;const Ko=de;class Z8{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,n=this.defaultDelay){return this.task=e,n>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(i=>{this.onSuccess=i}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;var i=this.task();return this.task=void 0,i})),(n>=0||this.timeout===void 0)&&(this.timeout=(0,Ko.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},n>=0?n:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){this.timeout!==void 0&&(this.timeout.dispose(),this.timeout=void 0)}}Wt.Delayer=Z8;let e6=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((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Ko.RAL)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Wt.Semaphore=e6;let $1=!1;function t6(){$1=!0}Wt.setTestMode=t6;function n6(){$1=!1}Wt.clearTestMode=n6;const xp=15;class q1{constructor(e=xp){this.yieldAfter=$1===!0?Math.max(e,2):Math.max(e,xp),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,n=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||n<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}}async function i6(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new q1(i==null?void 0:i.yieldAfter);function o(c){s.start();for(let l=c;l<t.length;l++)if(r[l]=e(t[l]),s.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),l+1;return-1}let a=o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,Ko.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Wt.map=i6;async function r6(t,e,n,i){if(t.length===0)return[];const r=new Array(t.length),s=new q1(i==null?void 0:i.yieldAfter);async function o(c){s.start();for(let l=c;l<t.length;l++)if(r[l]=await e(t[l],n),s.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),l+1;return-1}let a=await o(0);for(;a!==-1&&!(n!==void 0&&n.isCancellationRequested);)a=await new Promise(c=>{(0,Ko.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Wt.mapAsync=r6;async function s6(t,e,n,i){if(t.length===0)return;const r=new q1(i==null?void 0:i.yieldAfter);function s(a){r.start();for(let c=a;c<t.length;c++)if(e(t[c]),r.shouldYield())return i!=null&&i.yieldCallback&&i.yieldCallback(),c+1;return-1}let o=s(0);for(;o!==-1&&!(n!==void 0&&n.isCancellationRequested);)o=await new Promise(a=>{(0,Ko.RAL)().timer.setImmediate(()=>{a(s(o))})})}Wt.forEach=s6;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const o6=ye;class a6 extends o6.CompletionItem{constructor(e){super(e)}}Dc.default=a6;var xc={};Object.defineProperty(xc,"__esModule",{value:!0});const c6=ye;class l6 extends c6.CodeLens{constructor(e){super(e)}}xc.default=l6;var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const u6=ye;class d6 extends u6.DocumentLink{constructor(e,n){super(e,n)}}kc.default=d6;var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});const f6=ye;class h6 extends f6.CodeAction{constructor(e,n){super(e),this.data=n}}Tc.default=h6;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.ProtocolDiagnostic=Hr.DiagnosticCode=void 0;const g6=ye,Ll=Ve;var kp;(function(t){function e(n){const i=n;return i!=null&&(Ll.number(i.value)||Ll.string(i.value))&&Ll.string(i.target)}t.is=e})(kp||(Hr.DiagnosticCode=kp={}));class p6 extends g6.Diagnostic{constructor(e,n,i,r){super(e,n,i),this.data=r,this.hasDiagnosticCode=!1}}Hr.ProtocolDiagnostic=p6;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const m6=ye;class y6 extends m6.CallHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Rc.default=y6;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});const b6=ye;class v6 extends b6.TypeHierarchyItem{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,o),a!==void 0&&(this.data=a)}}Ec.default=v6;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const ia=ye;let w6=class extends ia.SymbolInformation{constructor(e,n,i,r,s){const o=!(r instanceof ia.Uri);super(e,n,i,o?r:new ia.Location(r,new ia.Range(0,0,0,0))),this.hasRange=o,s!==void 0&&(this.data=s)}};Pc.default=w6;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});const C6=ye;class _6 extends C6.InlayHint{constructor(e,n,i){super(e,n,i)}}Ic.default=_6;Object.defineProperty(Sc,"__esModule",{value:!0});Sc.createConverter=void 0;const kt=ye,be=de,gr=Ve,Tp=Wt,S6=Dc,D6=xc,x6=kc,Rp=Tc,Ep=Hr,k6=Rc,T6=Ec,R6=Pc,E6=Ic;var ah;(function(t){function e(n){const i=n;return i&&!!i.inserting&&!!i.replacing}t.is=e})(ah||(ah={}));function P6(t){const n=t||(m=>m.toString());function i(m){return n(m)}function r(m){return{uri:n(m.uri)}}function s(m){return{uri:n(m.uri),languageId:m.languageId,version:m.version,text:m.getText()}}function o(m){return{uri:n(m.uri),version:m.version}}function a(m){return{textDocument:s(m)}}function c(m){const E=m;return!!E.document&&!!E.contentChanges}function l(m){const E=m;return!!E.uri&&!!E.version}function h(m,E,te){if(l(m))return{textDocument:{uri:n(m.uri),version:m.version},contentChanges:[{text:m.getText()}]};if(c(m)){const we=E,Te=te;return{textDocument:{uri:n(we),version:Te},contentChanges:m.contentChanges.map(S=>{const H=S.range;return{range:{start:{line:H.start.line,character:H.start.character},end:{line:H.end.line,character:H.end.character}},rangeLength:S.rangeLength,text:S.text}})}}else throw Error("Unsupported text document change parameter")}function g(m){return{textDocument:r(m)}}function p(m,E=!1){let te={textDocument:r(m)};return E&&(te.text=m.getText()),te}function w(m){switch(m){case kt.TextDocumentSaveReason.Manual:return be.TextDocumentSaveReason.Manual;case kt.TextDocumentSaveReason.AfterDelay:return be.TextDocumentSaveReason.AfterDelay;case kt.TextDocumentSaveReason.FocusOut:return be.TextDocumentSaveReason.FocusOut}return be.TextDocumentSaveReason.Manual}function v(m){return{textDocument:r(m.document),reason:w(m.reason)}}function x(m){return{files:m.files.map(E=>({uri:n(E)}))}}function T(m){return{files:m.files.map(E=>({oldUri:n(E.oldUri),newUri:n(E.newUri)}))}}function q(m){return{files:m.files.map(E=>({uri:n(E)}))}}function z(m){return{files:m.files.map(E=>({uri:n(E)}))}}function A(m){return{files:m.files.map(E=>({oldUri:n(E.oldUri),newUri:n(E.newUri)}))}}function W(m){return{files:m.files.map(E=>({uri:n(E)}))}}function j(m,E){return{textDocument:r(m),position:N(E)}}function se(m){switch(m){case kt.CompletionTriggerKind.TriggerCharacter:return be.CompletionTriggerKind.TriggerCharacter;case kt.CompletionTriggerKind.TriggerForIncompleteCompletions:return be.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return be.CompletionTriggerKind.Invoked}}function B(m,E,te){return{textDocument:r(m),position:N(E),context:{triggerKind:se(te.triggerKind),triggerCharacter:te.triggerCharacter}}}function Z(m){switch(m){case kt.SignatureHelpTriggerKind.Invoke:return be.SignatureHelpTriggerKind.Invoked;case kt.SignatureHelpTriggerKind.TriggerCharacter:return be.SignatureHelpTriggerKind.TriggerCharacter;case kt.SignatureHelpTriggerKind.ContentChange:return be.SignatureHelpTriggerKind.ContentChange}}function oe(m){return{label:m.label}}function qe(m){return m.map(oe)}function O(m){return{label:m.label,parameters:qe(m.parameters)}}function L(m){return m.map(O)}function D(m){return m===void 0?m:{signatures:L(m.signatures),activeSignature:m.activeSignature,activeParameter:m.activeParameter}}function P(m,E,te){return{textDocument:r(m),position:N(E),context:{isRetrigger:te.isRetrigger,triggerCharacter:te.triggerCharacter,triggerKind:Z(te.triggerKind),activeSignatureHelp:D(te.activeSignatureHelp)}}}function N(m){return{line:m.line,character:m.character}}function $(m){return m==null?m:{line:m.line>be.uinteger.MAX_VALUE?be.uinteger.MAX_VALUE:m.line,character:m.character>be.uinteger.MAX_VALUE?be.uinteger.MAX_VALUE:m.character}}function ee(m,E){return Tp.map(m,$,E)}function ke(m){return m.map($)}function pe(m){return m==null?m:{start:$(m.start),end:$(m.end)}}function ot(m){return m.map(pe)}function Ke(m){return m==null?m:be.Location.create(i(m.uri),pe(m.range))}function Pe(m){switch(m){case kt.DiagnosticSeverity.Error:return be.DiagnosticSeverity.Error;case kt.DiagnosticSeverity.Warning:return be.DiagnosticSeverity.Warning;case kt.DiagnosticSeverity.Information:return be.DiagnosticSeverity.Information;case kt.DiagnosticSeverity.Hint:return be.DiagnosticSeverity.Hint}}function ft(m){if(!m)return;let E=[];for(let te of m){let we=He(te);we!==void 0&&E.push(we)}return E.length>0?E:void 0}function He(m){switch(m){case kt.DiagnosticTag.Unnecessary:return be.DiagnosticTag.Unnecessary;case kt.DiagnosticTag.Deprecated:return be.DiagnosticTag.Deprecated;default:return}}function ht(m){return{message:m.message,location:Ke(m.location)}}function rt(m){return m.map(ht)}function Ut(m){if(m!=null)return gr.number(m)||gr.string(m)?m:{value:m.value,target:i(m.target)}}function gt(m){const E=be.Diagnostic.create(pe(m.range),m.message),te=m instanceof Ep.ProtocolDiagnostic?m:void 0;te!==void 0&&te.data!==void 0&&(E.data=te.data);const we=Ut(m.code);return Ep.DiagnosticCode.is(we)?te!==void 0&&te.hasDiagnosticCode?E.code=we:(E.code=we.value,E.codeDescription={href:we.target}):E.code=we,gr.number(m.severity)&&(E.severity=Pe(m.severity)),Array.isArray(m.tags)&&(E.tags=ft(m.tags)),m.relatedInformation&&(E.relatedInformation=rt(m.relatedInformation)),m.source&&(E.source=m.source),E}function Dt(m,E){return m==null?m:Tp.map(m,gt,E)}function Pt(m){return m==null?m:m.map(gt)}function Lt(m,E){switch(m){case"$string":return E;case be.MarkupKind.PlainText:return{kind:m,value:E};case be.MarkupKind.Markdown:return{kind:m,value:E.value};default:return`Unsupported Markup content received. Kind is: ${m}`}}function Se(m){switch(m){case kt.CompletionItemTag.Deprecated:return be.CompletionItemTag.Deprecated}}function Nt(m){if(m===void 0)return m;const E=[];for(let te of m){const we=Se(te);we!==void 0&&E.push(we)}return E}function Be(m,E){return E!==void 0?E:m+1}function xt(m,E=!1){let te,we;gr.string(m.label)?te=m.label:(te=m.label.label,E&&(m.label.detail!==void 0||m.label.description!==void 0)&&(we={detail:m.label.detail,description:m.label.description}));let Te={label:te};we!==void 0&&(Te.labelDetails=we);let at=m instanceof S6.default?m:void 0;m.detail&&(Te.detail=m.detail),m.documentation&&(!at||at.documentationFormat==="$string"?Te.documentation=m.documentation:Te.documentation=Lt(at.documentationFormat,m.documentation)),m.filterText&&(Te.filterText=m.filterText),Cn(Te,m),gr.number(m.kind)&&(Te.kind=Be(m.kind,at&&at.originalItemKind)),m.sortText&&(Te.sortText=m.sortText),m.additionalTextEdits&&(Te.additionalTextEdits=It(m.additionalTextEdits)),m.commitCharacters&&(Te.commitCharacters=m.commitCharacters.slice()),m.command&&(Te.command=Zt(m.command)),(m.preselect===!0||m.preselect===!1)&&(Te.preselect=m.preselect);const S=Nt(m.tags);if(at){if(at.data!==void 0&&(Te.data=at.data),at.deprecated===!0||at.deprecated===!1){if(at.deprecated===!0&&S!==void 0&&S.length>0){const H=S.indexOf(kt.CompletionItemTag.Deprecated);H!==-1&&S.splice(H,1)}Te.deprecated=at.deprecated}at.insertTextMode!==void 0&&(Te.insertTextMode=at.insertTextMode)}return S!==void 0&&S.length>0&&(Te.tags=S),Te.insertTextMode===void 0&&m.keepWhitespace===!0&&(Te.insertTextMode=be.InsertTextMode.adjustIndentation),Te}function Cn(m,E){let te=be.InsertTextFormat.PlainText,we,Te;E.textEdit?(we=E.textEdit.newText,Te=E.textEdit.range):E.insertText instanceof kt.SnippetString?(te=be.InsertTextFormat.Snippet,we=E.insertText.value):we=E.insertText,E.range&&(Te=E.range),m.insertTextFormat=te,E.fromEdit&&we!==void 0&&Te!==void 0?m.textEdit=hn(we,Te):m.insertText=we}function hn(m,E){return ah.is(E)?be.InsertReplaceEdit.create(m,pe(E.inserting),pe(E.replacing)):{newText:m,range:pe(E)}}function Jt(m){return{range:pe(m.range),newText:m.newText}}function It(m){return m==null?m:m.map(Jt)}function Ft(m){return m<=kt.SymbolKind.TypeParameter?m+1:be.SymbolKind.Property}function Xe(m){return m}function Yt(m){return m.map(Xe)}function Kn(m,E,te){return{textDocument:r(m),position:N(E),context:{includeDeclaration:te.includeDeclaration}}}async function In(m,E){let te=be.CodeAction.create(m.title);if(m instanceof Rp.default&&m.data!==void 0&&(te.data=m.data),m.kind!==void 0&&(te.kind=Xt(m.kind)),m.diagnostics!==void 0&&(te.diagnostics=await Dt(m.diagnostics,E)),m.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return m.command!==void 0&&(te.command=Zt(m.command)),m.isPreferred!==void 0&&(te.isPreferred=m.isPreferred),m.disabled!==void 0&&(te.disabled={reason:m.disabled.reason}),te}function Fn(m){let E=be.CodeAction.create(m.title);if(m instanceof Rp.default&&m.data!==void 0&&(E.data=m.data),m.kind!==void 0&&(E.kind=Xt(m.kind)),m.diagnostics!==void 0&&(E.diagnostics=Pt(m.diagnostics)),m.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return m.command!==void 0&&(E.command=Zt(m.command)),m.isPreferred!==void 0&&(E.isPreferred=m.isPreferred),m.disabled!==void 0&&(E.disabled={reason:m.disabled.reason}),E}async function Gn(m,E){if(m==null)return m;let te;return m.only&&gr.string(m.only.value)&&(te=[m.only.value]),be.CodeActionContext.create(await Dt(m.diagnostics,E),te,_n(m.triggerKind))}function Qn(m){if(m==null)return m;let E;return m.only&&gr.string(m.only.value)&&(E=[m.only.value]),be.CodeActionContext.create(Pt(m.diagnostics),E,_n(m.triggerKind))}function _n(m){switch(m){case kt.CodeActionTriggerKind.Invoke:return be.CodeActionTriggerKind.Invoked;case kt.CodeActionTriggerKind.Automatic:return be.CodeActionTriggerKind.Automatic;default:return}}function Xt(m){if(m!=null)return m.value}function Mn(m){return m==null?m:be.InlineValueContext.create(m.frameId,pe(m.stoppedLocation))}function ai(m,E,te){return{context:be.InlineCompletionContext.create(te.triggerKind,te.selectedCompletionInfo),textDocument:r(m),position:$(E)}}function Zt(m){let E=be.Command.create(m.title,m.command);return m.arguments&&(E.arguments=m.arguments),E}function gn(m){let E=be.CodeLens.create(pe(m.range));return m.command&&(E.command=Zt(m.command)),m instanceof D6.default&&m.data&&(E.data=m.data),E}function On(m,E){const te={tabSize:m.tabSize,insertSpaces:m.insertSpaces};return E.trimTrailingWhitespace&&(te.trimTrailingWhitespace=!0),E.trimFinalNewlines&&(te.trimFinalNewlines=!0),E.insertFinalNewline&&(te.insertFinalNewline=!0),te}function en(m){return{textDocument:r(m)}}function An(m){return{textDocument:r(m)}}function Sn(m){let E=be.DocumentLink.create(pe(m.range));m.target&&(E.target=i(m.target)),m.tooltip!==void 0&&(E.tooltip=m.tooltip);let te=m instanceof x6.default?m:void 0;return te&&te.data&&(E.data=te.data),E}function Ln(m){return{textDocument:r(m)}}function ci(m){const E={name:m.name,kind:Ft(m.kind),uri:i(m.uri),range:pe(m.range),selectionRange:pe(m.selectionRange)};return m.detail!==void 0&&m.detail.length>0&&(E.detail=m.detail),m.tags!==void 0&&(E.tags=Yt(m.tags)),m instanceof k6.default&&m.data!==void 0&&(E.data=m.data),E}function Dn(m){const E={name:m.name,kind:Ft(m.kind),uri:i(m.uri),range:pe(m.range),selectionRange:pe(m.selectionRange)};return m.detail!==void 0&&m.detail.length>0&&(E.detail=m.detail),m.tags!==void 0&&(E.tags=Yt(m.tags)),m instanceof T6.default&&m.data!==void 0&&(E.data=m.data),E}function zt(m){const E=m instanceof R6.default?{name:m.name,kind:Ft(m.kind),location:m.hasRange?Ke(m.location):{uri:n(m.location.uri)},data:m.data}:{name:m.name,kind:Ft(m.kind),location:Ke(m.location)};return m.tags!==void 0&&(E.tags=Yt(m.tags)),m.containerName!==""&&(E.containerName=m.containerName),E}function Nn(m){const E=typeof m.label=="string"?m.label:m.label.map(Jn),te=be.InlayHint.create($(m.position),E);return m.kind!==void 0&&(te.kind=m.kind),m.textEdits!==void 0&&(te.textEdits=It(m.textEdits)),m.tooltip!==void 0&&(te.tooltip=cn(m.tooltip)),m.paddingLeft!==void 0&&(te.paddingLeft=m.paddingLeft),m.paddingRight!==void 0&&(te.paddingRight=m.paddingRight),m instanceof E6.default&&m.data!==void 0&&(te.data=m.data),te}function Jn(m){const E=be.InlayHintLabelPart.create(m.value);return m.location!==void 0&&(E.location=Ke(m.location)),m.command!==void 0&&(E.command=Zt(m.command)),m.tooltip!==void 0&&(E.tooltip=cn(m.tooltip)),E}function cn(m){return typeof m=="string"?m:{kind:be.MarkupKind.Markdown,value:m.value}}return{asUri:i,asTextDocumentIdentifier:r,asTextDocumentItem:s,asVersionedTextDocumentIdentifier:o,asOpenTextDocumentParams:a,asChangeTextDocumentParams:h,asCloseTextDocumentParams:g,asSaveTextDocumentParams:p,asWillSaveTextDocumentParams:v,asDidCreateFilesParams:x,asDidRenameFilesParams:T,asDidDeleteFilesParams:q,asWillCreateFilesParams:z,asWillRenameFilesParams:A,asWillDeleteFilesParams:W,asTextDocumentPositionParams:j,asCompletionParams:B,asSignatureHelpParams:P,asWorkerPosition:N,asRange:pe,asRanges:ot,asPosition:$,asPositions:ee,asPositionsSync:ke,asLocation:Ke,asDiagnosticSeverity:Pe,asDiagnosticTag:He,asDiagnostic:gt,asDiagnostics:Dt,asDiagnosticsSync:Pt,asCompletionItem:xt,asTextEdit:Jt,asSymbolKind:Ft,asSymbolTag:Xe,asSymbolTags:Yt,asReferenceParams:Kn,asCodeAction:In,asCodeActionSync:Fn,asCodeActionContext:Gn,asCodeActionContextSync:Qn,asInlineValueContext:Mn,asCommand:Zt,asCodeLens:gn,asFormattingOptions:On,asDocumentSymbolParams:en,asCodeLensParams:An,asDocumentLink:Sn,asDocumentLinkParams:Ln,asCallHierarchyItem:ci,asTypeHierarchyItem:Dn,asInlayHint:Nn,asWorkspaceSymbol:zt,asInlineCompletionParams:ai}}Sc.createConverter=P6;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.createConverter=void 0;const X=ye,me=de,Hn=Ve,We=Wt,I6=Dc,F6=xc,M6=kc,O6=Tc,Pp=Hr,A6=Rc,L6=Ec,N6=Pc,$6=Ic,Ip=de;var za;(function(t){function e(n){let i=n;return i&&Hn.string(i.language)&&Hn.string(i.value)}t.is=e})(za||(za={}));function q6(t,e,n){const r=t||(d=>X.Uri.parse(d));function s(d){return r(d)}function o(d){const _=[];for(const I of d)if(typeof I=="string")_.push(I);else if(Ip.NotebookCellTextDocumentFilter.is(I))if(typeof I.notebook=="string")_.push({notebookType:I.notebook,language:I.language});else{const V=I.notebook.notebookType??"*";_.push({notebookType:V,scheme:I.notebook.scheme,pattern:I.notebook.pattern,language:I.language})}else Ip.TextDocumentFilter.is(I)&&_.push({language:I.language,scheme:I.scheme,pattern:I.pattern});return _}async function a(d,_){return We.map(d,l,_)}function c(d){const _=new Array(d.length);for(let I=0;I<d.length;I++)_[I]=l(d[I]);return _}function l(d){let _=new Pp.ProtocolDiagnostic(v(d.range),d.message,T(d.severity),d.data);if(d.code!==void 0){if(typeof d.code=="string"||typeof d.code=="number")me.CodeDescription.is(d.codeDescription)?_.code={value:d.code,target:s(d.codeDescription.href)}:_.code=d.code;else if(Pp.DiagnosticCode.is(d.code)){_.hasDiagnosticCode=!0;const I=d.code;_.code={value:I.value,target:s(I.target)}}}return d.source&&(_.source=d.source),d.relatedInformation&&(_.relatedInformation=h(d.relatedInformation)),Array.isArray(d.tags)&&(_.tags=g(d.tags)),_}function h(d){const _=new Array(d.length);for(let I=0;I<d.length;I++){const V=d[I];_[I]=new X.DiagnosticRelatedInformation(Pe(V.location),V.message)}return _}function g(d){if(!d)return;let _=[];for(let I of d){let V=p(I);V!==void 0&&_.push(V)}return _.length>0?_:void 0}function p(d){switch(d){case me.DiagnosticTag.Unnecessary:return X.DiagnosticTag.Unnecessary;case me.DiagnosticTag.Deprecated:return X.DiagnosticTag.Deprecated;default:return}}function w(d){return d?new X.Position(d.line,d.character):void 0}function v(d){return d?new X.Range(d.start.line,d.start.character,d.end.line,d.end.character):void 0}async function x(d,_){return We.map(d,I=>new X.Range(I.start.line,I.start.character,I.end.line,I.end.character),_)}function T(d){if(d==null)return X.DiagnosticSeverity.Error;switch(d){case me.DiagnosticSeverity.Error:return X.DiagnosticSeverity.Error;case me.DiagnosticSeverity.Warning:return X.DiagnosticSeverity.Warning;case me.DiagnosticSeverity.Information:return X.DiagnosticSeverity.Information;case me.DiagnosticSeverity.Hint:return X.DiagnosticSeverity.Hint}return X.DiagnosticSeverity.Error}function q(d){if(Hn.string(d))return A(d);if(za.is(d))return A().appendCodeblock(d.value,d.language);if(Array.isArray(d)){let _=[];for(let I of d){let V=A();za.is(I)?V.appendCodeblock(I.value,I.language):V.appendMarkdown(I),_.push(V)}return _}else return A(d)}function z(d){if(Hn.string(d))return d;switch(d.kind){case me.MarkupKind.Markdown:return A(d.value);case me.MarkupKind.PlainText:return d.value;default:return`Unsupported Markup content received. Kind is: ${d.kind}`}}function A(d){let _;if(d===void 0||typeof d=="string")_=new X.MarkdownString(d);else switch(d.kind){case me.MarkupKind.Markdown:_=new X.MarkdownString(d.value);break;case me.MarkupKind.PlainText:_=new X.MarkdownString,_.appendText(d.value);break;default:_=new X.MarkdownString,_.appendText(`Unsupported Markup content received. Kind is: ${d.kind}`);break}return _.isTrusted=e,_.supportHtml=n,_}function W(d){if(d)return new X.Hover(q(d.contents),v(d.range))}async function j(d,_,I){if(!d)return;if(Array.isArray(d))return We.map(d,$n=>qe($n,_),I);const V=d,{defaultRange:Ce,commitCharacters:Oe}=se(V,_),De=await We.map(V.items,$n=>{var Ge,fr,Ls;return qe($n,Oe,Ce,(Ge=V.itemDefaults)==null?void 0:Ge.insertTextMode,(fr=V.itemDefaults)==null?void 0:fr.insertTextFormat,(Ls=V.itemDefaults)==null?void 0:Ls.data)},I);return new X.CompletionList(De,V.isIncomplete)}function se(d,_){var Ce,Oe;const I=(Ce=d.itemDefaults)==null?void 0:Ce.editRange,V=((Oe=d.itemDefaults)==null?void 0:Oe.commitCharacters)??_;return me.Range.is(I)?{defaultRange:v(I),commitCharacters:V}:I!==void 0?{defaultRange:{inserting:v(I.insert),replacing:v(I.replace)},commitCharacters:V}:{defaultRange:void 0,commitCharacters:V}}function B(d){return me.CompletionItemKind.Text<=d&&d<=me.CompletionItemKind.TypeParameter?[d-1,void 0]:[X.CompletionItemKind.Text,d]}function Z(d){switch(d){case me.CompletionItemTag.Deprecated:return X.CompletionItemTag.Deprecated}}function oe(d){if(d==null)return[];const _=[];for(const I of d){const V=Z(I);V!==void 0&&_.push(V)}return _}function qe(d,_,I,V,Ce,Oe){const De=oe(d.tags),$n=O(d),Ge=new I6.default($n);d.detail&&(Ge.detail=d.detail),d.documentation&&(Ge.documentation=z(d.documentation),Ge.documentationFormat=Hn.string(d.documentation)?"$string":d.documentation.kind),d.filterText&&(Ge.filterText=d.filterText);const fr=L(d,I,Ce);if(fr&&(Ge.insertText=fr.text,Ge.range=fr.range,Ge.fromEdit=fr.fromEdit),Hn.number(d.kind)){let[G2,J1]=B(d.kind);Ge.kind=G2,J1&&(Ge.originalItemKind=J1)}d.sortText&&(Ge.sortText=d.sortText),d.additionalTextEdits&&(Ge.additionalTextEdits=$(d.additionalTextEdits));const Ls=d.commitCharacters!==void 0?Hn.stringArray(d.commitCharacters)?d.commitCharacters:void 0:_;Ls&&(Ge.commitCharacters=Ls.slice()),d.command&&(Ge.command=It(d.command)),(d.deprecated===!0||d.deprecated===!1)&&(Ge.deprecated=d.deprecated,d.deprecated===!0&&De.push(X.CompletionItemTag.Deprecated)),(d.preselect===!0||d.preselect===!1)&&(Ge.preselect=d.preselect);const Q1=d.data??Oe;Q1!==void 0&&(Ge.data=Q1),De.length>0&&(Ge.tags=De);const Cl=d.insertTextMode??V;return Cl!==void 0&&(Ge.insertTextMode=Cl,Cl===me.InsertTextMode.asIs&&(Ge.keepWhitespace=!0)),Ge}function O(d){return me.CompletionItemLabelDetails.is(d.labelDetails)?{label:d.label,detail:d.labelDetails.detail,description:d.labelDetails.description}:d.label}function L(d,_,I){const V=d.insertTextFormat??I;if(d.textEdit!==void 0||_!==void 0){const[Ce,Oe]=d.textEdit!==void 0?D(d.textEdit):[_,d.textEditText??d.label];return V===me.InsertTextFormat.Snippet?{text:new X.SnippetString(Oe),range:Ce,fromEdit:!0}:{text:Oe,range:Ce,fromEdit:!0}}else return d.insertText?V===me.InsertTextFormat.Snippet?{text:new X.SnippetString(d.insertText),fromEdit:!1}:{text:d.insertText,fromEdit:!1}:void 0}function D(d){return me.InsertReplaceEdit.is(d)?[{inserting:v(d.insert),replacing:v(d.replace)},d.newText]:[v(d.range),d.newText]}function P(d){if(d)return new X.TextEdit(v(d.range),d.newText)}async function N(d,_){if(d)return We.map(d,P,_)}function $(d){if(!d)return;const _=new Array(d.length);for(let I=0;I<d.length;I++)_[I]=P(d[I]);return _}async function ee(d,_){if(!d)return;let I=new X.SignatureHelp;return Hn.number(d.activeSignature)?I.activeSignature=d.activeSignature:I.activeSignature=0,Hn.number(d.activeParameter)?I.activeParameter=d.activeParameter:I.activeParameter=0,d.signatures&&(I.signatures=await ke(d.signatures,_)),I}async function ke(d,_){return We.mapAsync(d,pe,_)}async function pe(d,_){let I=new X.SignatureInformation(d.label);return d.documentation!==void 0&&(I.documentation=z(d.documentation)),d.parameters!==void 0&&(I.parameters=await ot(d.parameters,_)),d.activeParameter!==void 0&&(I.activeParameter=d.activeParameter),I}function ot(d,_){return We.map(d,Ke,_)}function Ke(d){let _=new X.ParameterInformation(d.label);return d.documentation&&(_.documentation=z(d.documentation)),_}function Pe(d){return d?new X.Location(r(d.uri),v(d.range)):void 0}async function ft(d,_){if(d)return rt(d,_)}async function He(d,_){if(d)return rt(d,_)}function ht(d){if(!d)return;let _={targetUri:r(d.targetUri),targetRange:v(d.targetRange),originSelectionRange:v(d.originSelectionRange),targetSelectionRange:v(d.targetSelectionRange)};if(!_.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return _}async function rt(d,_){if(d)if(Hn.array(d)){if(d.length===0)return[];if(me.LocationLink.is(d[0])){const I=d;return We.map(I,ht,_)}else{const I=d;return We.map(I,Pe,_)}}else return me.LocationLink.is(d)?[ht(d)]:Pe(d)}async function Ut(d,_){if(d)return We.map(d,Pe,_)}async function gt(d,_){if(d)return We.map(d,Dt,_)}function Dt(d){let _=new X.DocumentHighlight(v(d.range));return Hn.number(d.kind)&&(_.kind=Pt(d.kind)),_}function Pt(d){switch(d){case me.DocumentHighlightKind.Text:return X.DocumentHighlightKind.Text;case me.DocumentHighlightKind.Read:return X.DocumentHighlightKind.Read;case me.DocumentHighlightKind.Write:return X.DocumentHighlightKind.Write}return X.DocumentHighlightKind.Text}async function Lt(d,_){if(d)return We.map(d,xt,_)}function Se(d){return d<=me.SymbolKind.TypeParameter?d-1:X.SymbolKind.Property}function Nt(d){switch(d){case me.SymbolTag.Deprecated:return X.SymbolTag.Deprecated;default:return}}function Be(d){if(d==null)return;const _=[];for(const I of d){const V=Nt(I);V!==void 0&&_.push(V)}return _.length===0?void 0:_}function xt(d){const _=d.data,I=d.location,V=I.range===void 0||_!==void 0?new N6.default(d.name,Se(d.kind),d.containerName??"",I.range===void 0?r(I.uri):new X.Location(r(d.location.uri),v(I.range)),_):new X.SymbolInformation(d.name,Se(d.kind),d.containerName??"",new X.Location(r(d.location.uri),v(I.range)));return Jt(V,d),V}async function Cn(d,_){if(d!=null)return We.map(d,hn,_)}function hn(d){let _=new X.DocumentSymbol(d.name,d.detail||"",Se(d.kind),v(d.range),v(d.selectionRange));if(Jt(_,d),d.children!==void 0&&d.children.length>0){let I=[];for(let V of d.children)I.push(hn(V));_.children=I}return _}function Jt(d,_){d.tags=Be(_.tags),_.deprecated&&(d.tags?d.tags.includes(X.SymbolTag.Deprecated)||(d.tags=d.tags.concat(X.SymbolTag.Deprecated)):d.tags=[X.SymbolTag.Deprecated])}function It(d){let _={title:d.title,command:d.command};return d.arguments&&(_.arguments=d.arguments),_}async function Ft(d,_){if(d)return We.map(d,It,_)}const Xe=new Map;Xe.set(me.CodeActionKind.Empty,X.CodeActionKind.Empty),Xe.set(me.CodeActionKind.QuickFix,X.CodeActionKind.QuickFix),Xe.set(me.CodeActionKind.Refactor,X.CodeActionKind.Refactor),Xe.set(me.CodeActionKind.RefactorExtract,X.CodeActionKind.RefactorExtract),Xe.set(me.CodeActionKind.RefactorInline,X.CodeActionKind.RefactorInline),Xe.set(me.CodeActionKind.RefactorRewrite,X.CodeActionKind.RefactorRewrite),Xe.set(me.CodeActionKind.Source,X.CodeActionKind.Source),Xe.set(me.CodeActionKind.SourceOrganizeImports,X.CodeActionKind.SourceOrganizeImports);function Yt(d){if(d==null)return;let _=Xe.get(d);if(_)return _;let I=d.split(".");_=X.CodeActionKind.Empty;for(let V of I)_=_.append(V);return _}function Kn(d){if(d!=null)return d.map(_=>Yt(_))}async function In(d,_){if(d==null)return;let I=new O6.default(d.title,d.data);return d.kind!==void 0&&(I.kind=Yt(d.kind)),d.diagnostics!==void 0&&(I.diagnostics=c(d.diagnostics)),d.edit!==void 0&&(I.edit=await _n(d.edit,_)),d.command!==void 0&&(I.command=It(d.command)),d.isPreferred!==void 0&&(I.isPreferred=d.isPreferred),d.disabled!==void 0&&(I.disabled={reason:d.disabled.reason}),I}function Fn(d,_){return We.mapAsync(d,async I=>me.Command.is(I)?It(I):In(I,_),_)}function Gn(d){if(!d)return;let _=new F6.default(v(d.range));return d.command&&(_.command=It(d.command)),d.data!==void 0&&d.data!==null&&(_.data=d.data),_}async function Qn(d,_){if(d)return We.map(d,Gn,_)}async function _n(d,_){if(!d)return;const I=new Map;if(d.changeAnnotations!==void 0){const Oe=d.changeAnnotations;await We.forEach(Object.keys(Oe),De=>{const $n=Xt(Oe[De]);I.set(De,$n)},_)}const V=Oe=>{if(Oe!==void 0)return I.get(Oe)},Ce=new X.WorkspaceEdit;if(d.documentChanges){const Oe=d.documentChanges;await We.forEach(Oe,De=>{if(me.CreateFile.is(De))Ce.createFile(r(De.uri),De.options,V(De.annotationId));else if(me.RenameFile.is(De))Ce.renameFile(r(De.oldUri),r(De.newUri),De.options,V(De.annotationId));else if(me.DeleteFile.is(De))Ce.deleteFile(r(De.uri),De.options,V(De.annotationId));else if(me.TextDocumentEdit.is(De)){const $n=r(De.textDocument.uri);for(const Ge of De.edits)me.AnnotatedTextEdit.is(Ge)?Ce.replace($n,v(Ge.range),Ge.newText,V(Ge.annotationId)):Ce.replace($n,v(Ge.range),Ge.newText)}else throw new Error(`Unknown workspace edit change received:
68
+ ${JSON.stringify(De,void 0,4)}`)},_)}else if(d.changes){const Oe=d.changes;await We.forEach(Object.keys(Oe),De=>{Ce.set(r(De),$(Oe[De]))},_)}return Ce}function Xt(d){if(d!==void 0)return{label:d.label,needsConfirmation:!!d.needsConfirmation,description:d.description}}function Mn(d){let _=v(d.range),I=d.target?s(d.target):void 0,V=new M6.default(_,I);return d.tooltip!==void 0&&(V.tooltip=d.tooltip),d.data!==void 0&&d.data!==null&&(V.data=d.data),V}async function ai(d,_){if(d)return We.map(d,Mn,_)}function Zt(d){return new X.Color(d.red,d.green,d.blue,d.alpha)}function gn(d){return new X.ColorInformation(v(d.range),Zt(d.color))}async function On(d,_){if(d)return We.map(d,gn,_)}function en(d){let _=new X.ColorPresentation(d.label);return _.additionalTextEdits=$(d.additionalTextEdits),d.textEdit&&(_.textEdit=P(d.textEdit)),_}async function An(d,_){if(d)return We.map(d,en,_)}function Sn(d){if(d)switch(d){case me.FoldingRangeKind.Comment:return X.FoldingRangeKind.Comment;case me.FoldingRangeKind.Imports:return X.FoldingRangeKind.Imports;case me.FoldingRangeKind.Region:return X.FoldingRangeKind.Region}}function Ln(d){return new X.FoldingRange(d.startLine,d.endLine,Sn(d.kind))}async function ci(d,_){if(d)return We.map(d,Ln,_)}function Dn(d){return new X.SelectionRange(v(d.range),d.parent?Dn(d.parent):void 0)}async function zt(d,_){return Array.isArray(d)?We.map(d,Dn,_):[]}function Nn(d){return me.InlineValueText.is(d)?new X.InlineValueText(v(d.range),d.text):me.InlineValueVariableLookup.is(d)?new X.InlineValueVariableLookup(v(d.range),d.variableName,d.caseSensitiveLookup):new X.InlineValueEvaluatableExpression(v(d.range),d.expression)}async function Jn(d,_){return Array.isArray(d)?We.map(d,Nn,_):[]}async function cn(d,_){const I=typeof d.label=="string"?d.label:await We.map(d.label,m,_),V=new $6.default(w(d.position),I);return d.kind!==void 0&&(V.kind=d.kind),d.textEdits!==void 0&&(V.textEdits=await N(d.textEdits,_)),d.tooltip!==void 0&&(V.tooltip=E(d.tooltip)),d.paddingLeft!==void 0&&(V.paddingLeft=d.paddingLeft),d.paddingRight!==void 0&&(V.paddingRight=d.paddingRight),d.data!==void 0&&(V.data=d.data),V}function m(d){const _=new X.InlayHintLabelPart(d.value);return d.location!==void 0&&(_.location=Pe(d.location)),d.tooltip!==void 0&&(_.tooltip=E(d.tooltip)),d.command!==void 0&&(_.command=It(d.command)),_}function E(d){return typeof d=="string"?d:A(d)}async function te(d,_){if(Array.isArray(d))return We.mapAsync(d,cn,_)}function we(d){if(d===null)return;const _=new A6.default(Se(d.kind),d.name,d.detail||"",s(d.uri),v(d.range),v(d.selectionRange),d.data);return d.tags!==void 0&&(_.tags=Be(d.tags)),_}async function Te(d,_){if(d!==null)return We.map(d,we,_)}async function at(d,_){return new X.CallHierarchyIncomingCall(we(d.from),await x(d.fromRanges,_))}async function S(d,_){if(d!==null)return We.mapAsync(d,at,_)}async function H(d,_){return new X.CallHierarchyOutgoingCall(we(d.to),await x(d.fromRanges,_))}async function Y(d,_){if(d!==null)return We.mapAsync(d,H,_)}async function b(d,_){if(d!=null)return new X.SemanticTokens(new Uint32Array(d.data),d.resultId)}function le(d){return new X.SemanticTokensEdit(d.start,d.deleteCount,d.data!==void 0?new Uint32Array(d.data):void 0)}async function fe(d,_){if(d!=null)return new X.SemanticTokensEdits(d.edits.map(le),d.resultId)}function G(d){return d}async function C(d,_){if(d!=null)return new X.LinkedEditingRanges(await x(d.ranges,_),M(d.wordPattern))}function M(d){if(d!=null)return new RegExp(d)}function U(d){if(d===null)return;let _=new L6.default(Se(d.kind),d.name,d.detail||"",s(d.uri),v(d.range),v(d.selectionRange),d.data);return d.tags!==void 0&&(_.tags=Be(d.tags)),_}async function Q(d,_){if(d!==null)return We.map(d,U,_)}function Ie(d){if(Hn.string(d))return d;if(me.RelativePattern.is(d)){if(me.URI.is(d.baseUri))return new X.RelativePattern(s(d.baseUri),d.pattern);if(me.WorkspaceFolder.is(d.baseUri)){const _=X.workspace.getWorkspaceFolder(s(d.baseUri.uri));return _!==void 0?new X.RelativePattern(_,d.pattern):void 0}}}async function Me(d,_){if(!d)return;if(Array.isArray(d))return We.map(d,Ce=>je(Ce),_);const I=d,V=await We.map(I.items,Ce=>je(Ce),_);return new X.InlineCompletionList(V)}function je(d){let _;typeof d.insertText=="string"?_=d.insertText:_=new X.SnippetString(d.insertText.value);let I;d.command&&(I=It(d.command));const V=new X.InlineCompletionItem(_,v(d.range),I);return d.filterText&&(V.filterText=d.filterText),V}return{asUri:s,asDocumentSelector:o,asDiagnostics:a,asDiagnostic:l,asRange:v,asRanges:x,asPosition:w,asDiagnosticSeverity:T,asDiagnosticTag:p,asHover:W,asCompletionResult:j,asCompletionItem:qe,asTextEdit:P,asTextEdits:N,asSignatureHelp:ee,asSignatureInformations:ke,asSignatureInformation:pe,asParameterInformations:ot,asParameterInformation:Ke,asDeclarationResult:ft,asDefinitionResult:He,asLocation:Pe,asReferences:Ut,asDocumentHighlights:gt,asDocumentHighlight:Dt,asDocumentHighlightKind:Pt,asSymbolKind:Se,asSymbolTag:Nt,asSymbolTags:Be,asSymbolInformations:Lt,asSymbolInformation:xt,asDocumentSymbols:Cn,asDocumentSymbol:hn,asCommand:It,asCommands:Ft,asCodeAction:In,asCodeActionKind:Yt,asCodeActionKinds:Kn,asCodeActionResult:Fn,asCodeLens:Gn,asCodeLenses:Qn,asWorkspaceEdit:_n,asDocumentLink:Mn,asDocumentLinks:ai,asFoldingRangeKind:Sn,asFoldingRange:Ln,asFoldingRanges:ci,asColor:Zt,asColorInformation:gn,asColorInformations:On,asColorPresentation:en,asColorPresentations:An,asSelectionRange:Dn,asSelectionRanges:zt,asInlineValue:Nn,asInlineValues:Jn,asInlayHint:cn,asInlayHints:te,asSemanticTokensLegend:G,asSemanticTokens:b,asSemanticTokensEdit:le,asSemanticTokensEdits:fe,asCallHierarchyItem:we,asCallHierarchyItems:Te,asCallHierarchyIncomingCall:at,asCallHierarchyIncomingCalls:S,asCallHierarchyOutgoingCall:H,asCallHierarchyOutgoingCalls:Y,asLinkedEditingRanges:C,asTypeHierarchyItem:U,asTypeHierarchyItems:Q,asGlobPattern:Ie,asInlineCompletionResult:Me,asInlineCompletionItem:je}}Fc.createConverter=q6;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.ProgressPart=void 0;const Fp=ye,Mp=de,Op=Ve;class H6{constructor(e,n,i){this._client=e,this._token=n,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(Mp.WorkDoneProgress.type,this._token,r=>{switch(r.kind){case"begin":this.begin(r);break;case"report":this.report(r);break;case"end":this.done(),i&&i(this);break}})}begin(e){this._infinite=e.percentage===void 0,this._lspProgressDisposable!==void 0&&Fp.window.withProgress({location:Fp.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},async(n,i)=>{if(this._lspProgressDisposable!==void 0)return this._progress=n,this._cancellationToken=i,this._tokenDisposable=this._cancellationToken.onCancellationRequested(()=>{this._client.sendNotification(Mp.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((r,s)=>{this._resolve=r,this._reject=s})})}report(e){if(this._infinite&&Op.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(Op.number(e.percentage)){const n=Math.max(0,Math.min(e.percentage,100)),i=Math.max(0,n-this._reported);this._reported+=i,this._progress!==void 0&&this._progress.report({message:e.message,increment:i})}}cancel(){this.cleanup(),this._reject!==void 0&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),this._resolve!==void 0&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){this._lspProgressDisposable!==void 0&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),this._tokenDisposable!==void 0&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}Go.ProgressPart=H6;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.NotebookDocumentSyncFeature=void 0;const rn=ye,j6=Cc,Oi=de,W6=$e,Ap=Ve;function Lp(t,e){return t[e]===void 0&&(t[e]={}),t[e]}var es;(function(t){(function(e){function n(g,p){return{version:g.version,uri:p.asUri(g.uri)}}e.asVersionedNotebookDocumentIdentifier=n;function i(g,p,w){const v=Oi.NotebookDocument.create(w.asUri(g.uri),g.notebookType,g.version,r(p,w));return Object.keys(g.metadata).length>0&&(v.metadata=s(g.metadata)),v}e.asNotebookDocument=i;function r(g,p){return g.map(w=>o(w,p))}e.asNotebookCells=r;function s(g){return c(new Set,g)}e.asMetadata=s;function o(g,p){const w=Oi.NotebookCell.create(a(g.kind),p.asUri(g.document.uri));return Object.keys(g.metadata).length>0&&(w.metadata=s(g.metadata)),g.executionSummary!==void 0&&Ap.number(g.executionSummary.executionOrder)&&Ap.boolean(g.executionSummary.success)&&(w.executionSummary={executionOrder:g.executionSummary.executionOrder,success:g.executionSummary.success}),w}e.asNotebookCell=o;function a(g){switch(g){case rn.NotebookCellKind.Markup:return Oi.NotebookCellKind.Markup;case rn.NotebookCellKind.Code:return Oi.NotebookCellKind.Code}}function c(g,p){if(g.has(p))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(p)){const w=[];for(const v of p)if(v!==null&&typeof v=="object"||Array.isArray(v))w.push(c(g,v));else{if(v instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");w.push(v)}return w}else{const w=Object.keys(p),v=Object.create(null);for(const x of w){const T=p[x];if(T!==null&&typeof T=="object"||Array.isArray(T))v[x]=c(g,T);else{if(T instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");v[x]=T}}return v}}function l(g,p){const w=p.asChangeTextDocumentParams(g,g.document.uri,g.document.version);return{document:w.textDocument,changes:w.contentChanges}}e.asTextContentChange=l;function h(g,p){const w=Object.create(null);if(g.metadata&&(w.metadata=t.c2p.asMetadata(g.metadata)),g.cells!==void 0){const v=Object.create(null),x=g.cells;x.structure&&(v.structure={array:{start:x.structure.array.start,deleteCount:x.structure.array.deleteCount,cells:x.structure.array.cells!==void 0?x.structure.array.cells.map(T=>t.c2p.asNotebookCell(T,p)):void 0},didOpen:x.structure.didOpen!==void 0?x.structure.didOpen.map(T=>p.asOpenTextDocumentParams(T.document).textDocument):void 0,didClose:x.structure.didClose!==void 0?x.structure.didClose.map(T=>p.asCloseTextDocumentParams(T.document).textDocument):void 0}),x.data!==void 0&&(v.data=x.data.map(T=>t.c2p.asNotebookCell(T,p))),x.textContent!==void 0&&(v.textContent=x.textContent.map(T=>t.c2p.asTextContentChange(T,p))),Object.keys(v).length>0&&(w.cells=v)}return w}e.asNotebookDocumentChangeEvent=h})(t.c2p||(t.c2p={}))})(es||(es={}));var ch;(function(t){function e(a,c,l){const h=a.length,g=c.length;let p=0;for(;p<g&&p<h&&n(a[p],c[p],l);)p++;if(p<g&&p<h){let w=h-1,v=g-1;for(;w>=0&&v>=0&&n(a[w],c[v],l);)w--,v--;const x=w+1-p,T=p===v+1?void 0:c.slice(p,v+1);return T!==void 0?{start:p,deleteCount:x,cells:T}:{start:p,deleteCount:x}}else return p<g?{start:p,deleteCount:0,cells:c.slice(p)}:p<h?{start:p,deleteCount:h-p}:void 0}t.computeDiff=e;function n(a,c,l=!0){return a.kind!==c.kind||a.document.uri.toString()!==c.document.uri.toString()||a.document.languageId!==c.document.languageId||!i(a.executionSummary,c.executionSummary)?!1:!l||l&&s(a.metadata,c.metadata)}function i(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.executionOrder===c.executionOrder&&a.success===c.success&&r(a.timing,c.timing)}function r(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.startTime===c.startTime&&a.endTime===c.endTime}function s(a,c){if(a===c)return!0;if(a==null||c===null||c===void 0||typeof a!=typeof c||typeof a!="object")return!1;const l=Array.isArray(a),h=Array.isArray(c);if(l!==h)return!1;if(l&&h){if(a.length!==c.length)return!1;for(let g=0;g<a.length;g++)if(!s(a[g],c[g]))return!1}if(o(a)&&o(c)){const g=Object.keys(a),p=Object.keys(c);if(g.length!==p.length||(g.sort(),p.sort(),!s(g,p)))return!1;for(let w=0;w<g.length;w++){const v=g[w];if(!s(a[v],c[v]))return!1}return!0}return!1}function o(a){return a!==null&&typeof a=="object"}t.isObjectLiteral=o})(ch||(ch={}));var lh;(function(t){function e(n,i){if(typeof n=="string")return n==="*"||i.notebookType===n;if(n.notebookType!==void 0&&n.notebookType!=="*"&&i.notebookType!==n.notebookType)return!1;const r=i.uri;if(n.scheme!==void 0&&n.scheme!=="*"&&r.scheme!==n.scheme)return!1;if(n.pattern!==void 0){const s=new j6.Minimatch(n.pattern,{noext:!0});if(!s.makeRe()||!s.match(r.fsPath))return!1}return!0}t.matchNotebook=e})(lh||(lh={}));var Ba;(function(t){function e(i){var o,a,c;const r=i.notebookSelector,s=[];for(const l of r){const h=(typeof l.notebook=="string"?l.notebook:(o=l.notebook)==null?void 0:o.notebookType)??"*",g=typeof l.notebook=="string"||(a=l.notebook)==null?void 0:a.scheme,p=typeof l.notebook=="string"||(c=l.notebook)==null?void 0:c.pattern;if(l.cells!==void 0)for(const w of l.cells)s.push(n(h,g,p,w.language));else s.push(n(h,g,p,void 0))}return s}t.asDocumentSelector=e;function n(i,r,s,o){return r===void 0&&s===void 0?{notebook:i,language:o}:{notebook:{notebookType:i,scheme:r,pattern:s},language:o}}})(Ba||(Ba={}));var Va;(function(t){function e(n){return{cells:n,uris:new Set(n.map(i=>i.document.uri.toString()))}}t.create=e})(Va||(Va={}));class ra{constructor(e,n){this.client=e,this.options=n,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(Ba.asDocumentSelector(n)),rn.workspace.onDidOpenNotebookDocument(i=>{this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i)},void 0,this.disposables);for(const i of rn.workspace.notebookDocuments)this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i);rn.workspace.onDidChangeNotebookDocument(i=>this.didChangeNotebookDocument(i),void 0,this.disposables),this.options.save===!0&&rn.workspace.onDidSaveNotebookDocument(i=>this.didSave(i),void 0,this.disposables),rn.workspace.onDidCloseNotebookDocument(i=>{this.didClose(i),this.notebookDidOpen.delete(i.uri.toString())},void 0,this.disposables)}getState(){for(const e of rn.workspace.notebookDocuments)if(this.getMatchingCells(e)!==void 0)return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){return rn.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,n){if(rn.languages.match(this.selector,n.document)===0||!this.notebookDidOpen.has(e.uri.toString()))return;const i=this.notebookSyncInfo.get(e.uri.toString()),r=this.cellMatches(e,n);if(i!==void 0){const s=i.uris.has(n.document.uri.toString());if(r&&s||!r&&!s)return;if(r){const o=this.getMatchingCells(e);if(o!==void 0){const a=this.asNotebookDocumentChangeEvent(e,void 0,i,o);a!==void 0&&this.doSendChange(a,o).catch(()=>{})}}}else r&&this.doSendOpen(e,[n]).catch(()=>{})}didChangeNotebookCellTextDocument(e,n){rn.languages.match(this.selector,n.document)!==0&&this.doSendChange({notebook:e,cells:{textContent:[n]}},void 0).catch(()=>{})}didCloseNotebookCellTextDocument(e,n){const i=this.notebookSyncInfo.get(e.uri.toString());if(i===void 0)return;const r=n.document.uri,s=i.cells.findIndex(o=>o.document.uri.toString()===r.toString());if(s!==-1)if(s===0&&i.cells.length===1)this.doSendClose(e,i.cells).catch(()=>{});else{const o=i.cells.slice(),a=o.splice(s,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:s,deleteCount:1},didClose:a}}},o).catch(()=>{})}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,n=this.getMatchingCells(e),i=this.notebookSyncInfo.get(e.uri.toString())){if(i!==void 0)if(n!==void 0){const r=this.asNotebookDocumentChangeEvent(e,void 0,i,n);r!==void 0&&this.doSendChange(r,n).catch(()=>{})}else this.doSendClose(e,[]).catch(()=>{});else{if(n===void 0)return;this.doSendOpen(e,n).catch(()=>{})}}didChangeNotebookDocument(e){const n=e.notebook,i=this.notebookSyncInfo.get(n.uri.toString());if(i===void 0){if(e.contentChanges.length===0)return;const r=this.getMatchingCells(n);if(r===void 0)return;this.didOpen(n,r,i)}else{const r=this.getMatchingCells(n);if(r===void 0){this.didClose(n,i);return}const s=this.asNotebookDocumentChangeEvent(e.notebook,e,i,r);s!==void 0&&this.doSendChange(s,r).catch(()=>{})}}didSave(e){this.notebookSyncInfo.get(e.uri.toString())!==void 0&&this.doSendSave(e).catch(()=>{})}didClose(e,n=this.notebookSyncInfo.get(e.uri.toString())){if(n===void 0)return;const i=e.getCells().filter(r=>n.uris.has(r.document.uri.toString()));this.doSendClose(e,i).catch(()=>{})}async sendDidOpenNotebookDocument(e){const n=this.getMatchingCells(e);if(n!==void 0)return this.doSendOpen(e,n)}async doSendOpen(e,n){var s;const i=async(o,a)=>{const c=es.c2p.asNotebookDocument(o,a,this.client.code2ProtocolConverter),l=a.map(h=>this.client.code2ProtocolConverter.asTextDocumentItem(h.document));try{await this.client.sendNotification(Oi.DidOpenNotebookDocumentNotification.type,{notebookDocument:c,cellTextDocuments:l})}catch(h){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",h),h}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),Va.create(n)),(r==null?void 0:r.didOpen)!==void 0?r.didOpen(e,n,i):i(e,n)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,n=this.getMatchingCells(e.notebook)){var s,o;const i=async a=>{try{await this.client.sendNotification(Oi.DidChangeNotebookDocumentNotification.type,{notebookDocument:es.c2p.asVersionedNotebookDocumentIdentifier(a.notebook,this.client.code2ProtocolConverter),change:es.c2p.asNotebookDocumentChangeEvent(a,this.client.code2ProtocolConverter)})}catch(c){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",c),c}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return((o=e.cells)==null?void 0:o.structure)!==void 0&&this.notebookSyncInfo.set(e.notebook.uri.toString(),Va.create(n??[])),(r==null?void 0:r.didChange)!==void 0?r==null?void 0:r.didChange(e,i):i(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){var r;const n=async s=>{try{await this.client.sendNotification(Oi.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(s.uri)}})}catch(o){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",o),o}},i=(r=this.client.middleware)==null?void 0:r.notebooks;return(i==null?void 0:i.didSave)!==void 0?i.didSave(e,n):n(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,n){var s;const i=async(o,a)=>{try{await this.client.sendNotification(Oi.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(o.uri)},cellTextDocuments:a.map(c=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(c.document))})}catch(c){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",c),c}},r=(s=this.client.middleware)==null?void 0:s.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),(r==null?void 0:r.didClose)!==void 0?r.didClose(e,n,i):i(e,n)}asNotebookDocumentChangeEvent(e,n,i,r){if(n!==void 0&&n.notebook!==e)throw new Error("Notebook must be identical");const s={notebook:e};(n==null?void 0:n.metadata)!==void 0&&(s.metadata=es.c2p.asMetadata(n.metadata));let o;if((n==null?void 0:n.cellChanges)!==void 0&&n.cellChanges.length>0){const a=[];o=new Set(r.map(c=>c.document.uri.toString()));for(const c of n.cellChanges)o.has(c.cell.document.uri.toString())&&(c.executionSummary!==void 0||c.metadata!==void 0)&&a.push(c.cell);a.length>0&&(s.cells=s.cells??{},s.cells.data=a)}if(((n==null?void 0:n.contentChanges)!==void 0&&n.contentChanges.length>0||n===void 0)&&i!==void 0&&r!==void 0){const a=i.cells,c=r,l=ch.computeDiff(a,c,!1);let h,g;if(l!==void 0){h=l.cells===void 0?new Map:new Map(l.cells.map(v=>[v.document.uri.toString(),v])),g=l.deleteCount===0?new Map:new Map(a.slice(l.start,l.start+l.deleteCount).map(v=>[v.document.uri.toString(),v]));for(const v of Array.from(g.keys()))h.has(v)&&(g.delete(v),h.delete(v));s.cells=s.cells??{};const p=[],w=[];if(h.size>0||g.size>0){for(const v of h.values())p.push(v);for(const v of g.values())w.push(v)}s.cells.structure={array:l,didOpen:p,didClose:w}}}return Object.keys(s).length>1?s:void 0}getMatchingCells(e,n=e.getCells()){if(this.options.notebookSelector!==void 0){for(const i of this.options.notebookSelector)if(i.notebook===void 0||lh.matchNotebook(i.notebook,e)){const r=this.filterCells(e,n,i.cells);return r.length===0?void 0:r}}}cellMatches(e,n){const i=this.getMatchingCells(e,[n]);return i!==void 0&&i[0]===n}filterCells(e,n,i){var s;const r=i!==void 0?n.filter(o=>{const a=o.document.languageId;return i.some(c=>c.language==="*"||a===c.language)}):n;return typeof((s=this.client.clientOptions.notebookDocumentOptions)==null?void 0:s.filterCells)=="function"?this.client.clientOptions.notebookDocumentOptions.filterCells(e,r):r}}class Er{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=Oi.NotebookDocumentSyncRegistrationType.type,rn.workspace.onDidOpenTextDocument(n=>{if(n.uri.scheme!==Er.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof ra&&s.didOpenNotebookCellTextDocument(i,r)}),rn.workspace.onDidChangeTextDocument(n=>{if(n.contentChanges.length===0)return;const i=n.document;if(i.uri.scheme!==Er.CellScheme)return;const[r]=this.findNotebookDocumentAndCell(i);if(r!==void 0)for(const s of this.registrations.values())s instanceof ra&&s.didChangeNotebookCellTextDocument(r,n)}),rn.workspace.onDidCloseTextDocument(n=>{if(n.uri.scheme!==Er.CellScheme)return;const[i,r]=this.findNotebookDocumentAndCell(n);if(!(i===void 0||r===void 0))for(const s of this.registrations.values())s instanceof ra&&s.didCloseNotebookCellTextDocument(i,r)})}getState(){if(this.registrations.size===0)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const n=e.getState();if(n.kind==="document"&&n.registrations===!0&&n.matches===!0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){const n=Lp(Lp(e,"notebookDocument"),"synchronization");n.dynamicRegistration=!0,n.executionSummarySupport=!0}preInitialize(e){const n=e.notebookDocumentSync;n!==void 0&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(Ba.asDocumentSelector(n)))}initialize(e){const n=e.notebookDocumentSync;if(n===void 0)return;const i=n.id??W6.generateUuid();this.register({id:i,registerOptions:n})}register(e){const n=new ra(this.client,e.registerOptions);this.registrations.set(e.id,n)}unregister(e){const n=this.registrations.get(e);n&&n.dispose()}clear(){for(const e of this.registrations.values())e.dispose();this.registrations.clear()}handles(e){if(e.uri.scheme!==Er.CellScheme)return!1;if(this.dedicatedChannel!==void 0&&rn.languages.match(this.dedicatedChannel,e)>0)return!0;for(const n of this.registrations.values())if(n.handles(e))return!0;return!1}getProvider(e){for(const n of this.registrations.values())if(n.handles(e.document))return n}findNotebookDocumentAndCell(e){const n=e.uri.toString();for(const i of rn.workspace.notebookDocuments)for(const r of i.getCells())if(r.document.uri.toString()===n)return[i,r];return[void 0,void 0]}}Mc.NotebookDocumentSyncFeature=Er;Er.CellScheme="vscode-notebook-cell";var er={};Object.defineProperty(er,"__esModule",{value:!0});er.SyncConfigurationFeature=er.toJSONObject=er.ConfigurationFeature=void 0;const gs=ye,io=de,U6=Ve,z6=$e,Np=ge;class B6{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(io.ConfigurationRequest.type,(n,i)=>{let r=o=>{let a=[];for(let c of o.items){let l=c.scopeUri!==void 0&&c.scopeUri!==null?this._client.protocol2CodeConverter.asUri(c.scopeUri):void 0;a.push(this.getConfiguration(l,c.section!==null?c.section:void 0))}return a},s=e.middleware.workspace;return s&&s.configuration?s.configuration(n,i,r):r(n)})}getConfiguration(e,n){let i=null;if(n){let r=n.lastIndexOf(".");if(r===-1)i=Ar(gs.workspace.getConfiguration(void 0,e).get(n));else{let s=gs.workspace.getConfiguration(n.substr(0,r),e);s&&(i=Ar(s.get(n.substr(r+1))))}}else{let r=gs.workspace.getConfiguration(void 0,e);i={};for(let s of Object.keys(r))r.has(s)&&(i[s]=Ar(r.get(s)))}return i===void 0&&(i=null),i}clear(){}}er.ConfigurationFeature=B6;function Ar(t){if(t){if(Array.isArray(t))return t.map(Ar);if(typeof t=="object"){const e=Object.create(null);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Ar(t[n]));return e}}return t}er.toJSONObject=Ar;class V6{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 io.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,Np.ensure)((0,Np.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){var n;this.isCleared=!1;let e=(n=this._client.clientOptions.synchronize)==null?void 0:n.configurationSection;e!==void 0&&this.register({id:z6.generateUuid(),registerOptions:{section:e}})}register(e){let n=gs.workspace.onDidChangeConfiguration(i=>{this.onDidChangeConfiguration(e.registerOptions.section,i)});this._listeners.set(e.id,n),e.registerOptions.section!==void 0&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let n=this._listeners.get(e);n&&(this._listeners.delete(e),n.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,n){var o;if(this.isCleared)return;let i;if(U6.string(e)?i=[e]:i=e,i!==void 0&&n!==void 0&&!i.some(c=>n.affectsConfiguration(c)))return;const r=async a=>a===void 0?this._client.sendNotification(io.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(io.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(a)});let s=(o=this._client.middleware.workspace)==null?void 0:o.didChangeConfiguration;(s?s(i,r):r(i)).catch(a=>{this._client.error(`Sending notification ${io.DidChangeConfigurationNotification.type.method} failed`,a)})}extractSettingsInformation(e){function n(s,o){let a=s;for(let c=0;c<o.length-1;c++){let l=a[o[c]];l||(l=Object.create(null),a[o[c]]=l),a=l}return a}let i=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,r=Object.create(null);for(let s=0;s<e.length;s++){let o=e[s],a=o.indexOf("."),c=null;if(a>=0?c=gs.workspace.getConfiguration(o.substr(0,a),i).get(o.substr(a+1)):c=gs.workspace.getConfiguration(void 0,i).get(o),c){let l=e[s].split(".");n(r,l)[l[l.length-1]]=Ar(c)}}return r}}er.SyncConfigurationFeature=V6;var bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.DidSaveTextDocumentFeature=bn.WillSaveWaitUntilFeature=bn.WillSaveFeature=bn.DidChangeTextDocumentFeature=bn.DidCloseTextDocumentFeature=bn.DidOpenTextDocumentFeature=void 0;const En=ye,tt=de,mt=ge,As=$e;class K6 extends mt.TextDocumentEventFeature{constructor(e,n){super(e,En.workspace.onDidOpenTextDocument,tt.DidOpenTextDocumentNotification.type,()=>e.middleware.didOpen,i=>e.code2ProtocolConverter.asOpenTextDocumentParams(i),i=>i,mt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){const i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}get registrationType(){return tt.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const n=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);En.workspace.textDocuments.forEach(i=>{const r=i.uri.toString();if(!this._syncedDocuments.has(r)&&En.languages.match(n,i)>0&&!this._client.hasDedicatedTextSynchronizationFeature(i)){const s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));(s.didOpen?s.didOpen(i,o):o(i)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)}),this._syncedDocuments.set(r,i)}})}getTextDocument(e){return e}notificationSent(e,n,i){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,n,i)}}bn.DidOpenTextDocumentFeature=K6;class G6 extends mt.TextDocumentEventFeature{constructor(e,n,i){super(e,En.workspace.onDidCloseTextDocument,tt.DidCloseTextDocumentNotification.type,()=>e.middleware.didClose,r=>e.code2ProtocolConverter.asCloseTextDocumentParams(r),r=>r,mt.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=n,this._pendingTextDocumentChanges=i}get registrationType(){return tt.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.openClose&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,n,i){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,n,i)}unregister(e){const n=this._selectors.get(e);super.unregister(e);const i=this._selectors.values();this._syncedDocuments.forEach(r=>{if(En.languages.match(n,r)>0&&!this._selectorFilter(i,r)&&!this._client.hasDedicatedTextSynchronizationFeature(r)){let s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));this._syncedDocuments.delete(r.uri.toString()),(s.didClose?s.didClose(r,o):o(r)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)})}})}}bn.DidCloseTextDocumentFeature=G6;class Q6 extends mt.DynamicDocumentFeature{constructor(e,n){super(e),this._changeData=new Map,this._onNotificationSent=new En.EventEmitter,this._onPendingChangeAdded=new En.EventEmitter,this._pendingTextDocumentChanges=n,this._syncKind=tt.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return tt.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.change!==void 0&&i.change!==tt.TextDocumentSyncKind.None&&this.register({id:As.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},{syncKind:i.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=En.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(e.contentChanges.length===0)return;const n=e.document.uri,i=e.document.version,r=[];for(const s of this._changeData.values())if(En.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const o=this._client.middleware;if(s.syncKind===tt.TextDocumentSyncKind.Incremental){const a=async c=>{const l=this._client.code2ProtocolConverter.asChangeTextDocumentParams(c,n,i);await this._client.sendNotification(tt.DidChangeTextDocumentNotification.type,l),this.notificationSent(c.document,tt.DidChangeTextDocumentNotification.type,l)};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}else if(s.syncKind===tt.TextDocumentSyncKind.Full){const a=async c=>{const l=c.document.uri.toString();this._pendingTextDocumentChanges.set(l,c.document),this._onPendingChangeAdded.fire()};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}}return Promise.all(r).then(void 0,s=>{throw this._client.error(`Sending document notification ${tt.DidChangeTextDocumentNotification.type.method} failed`,s),s})}notificationSent(e,n,i){this._onNotificationSent.fire({textDocument:e,type:n,params:i})}unregister(e){if(this._changeData.delete(e),this._changeData.size===0)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=tt.TextDocumentSyncKind.None;else{this._syncKind=tt.TextDocumentSyncKind.None;for(const n of this._changeData.values())if(this.updateSyncKind(n.syncKind),this._syncKind===tt.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=tt.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(this._pendingTextDocumentChanges.size===0)return[];let n;if(e.size===0)n=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{n=[];for(const i of this._pendingTextDocumentChanges)e.has(i[0])||(n.push(i[1]),this._pendingTextDocumentChanges.delete(i[0]))}return n}getProvider(e){for(const n of this._changeData.values())if(En.languages.match(n.documentSelector,e)>0)return{send:i=>this.callback(i)}}updateSyncKind(e){if(this._syncKind!==tt.TextDocumentSyncKind.Full)switch(e){case tt.TextDocumentSyncKind.Full:this._syncKind=e;break;case tt.TextDocumentSyncKind.Incremental:this._syncKind===tt.TextDocumentSyncKind.None&&(this._syncKind=tt.TextDocumentSyncKind.Incremental);break}}}bn.DidChangeTextDocumentFeature=Q6;class J6 extends mt.TextDocumentEventFeature{constructor(e){super(e,En.workspace.onWillSaveTextDocument,tt.WillSaveTextDocumentNotification.type,()=>e.middleware.willSave,n=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(n),n=>n.document,(n,i)=>mt.TextDocumentEventFeature.textDocumentFilter(n,i.document))}get registrationType(){return tt.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let n=(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization");n.willSave=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSave&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}getTextDocument(e){return e.document}}bn.WillSaveFeature=J6;class Y6 extends mt.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return tt.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let n=(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization");n.willSaveWaitUntil=!0}initialize(e,n){let i=e.resolvedTextDocumentSync;n&&i&&i.willSaveWaitUntil&&this.register({id:As.generateUuid(),registerOptions:{documentSelector:n}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=En.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(mt.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let n=this._client.middleware,i=r=>this._client.sendRequest(tt.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(r)).then(async s=>{let o=await this._client.protocol2CodeConverter.asTextEdits(s);return o===void 0?[]:o});e.waitUntil(n.willSaveWaitUntil?n.willSaveWaitUntil(e,i):i(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}bn.WillSaveWaitUntilFeature=Y6;class X6 extends mt.TextDocumentEventFeature{constructor(e){super(e,En.workspace.onDidSaveTextDocument,tt.DidSaveTextDocumentNotification.type,()=>e.middleware.didSave,n=>e.code2ProtocolConverter.asSaveTextDocumentParams(n,this._includeText),n=>n,mt.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return tt.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,mt.ensure)((0,mt.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,n){const i=e.resolvedTextDocumentSync;if(n&&i&&i.save){const r=typeof i.save=="boolean"?{includeText:!1}:{includeText:!!i.save.includeText};this.register({id:As.generateUuid(),registerOptions:Object.assign({},{documentSelector:n},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}bn.DidSaveTextDocumentFeature=X6;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.CompletionItemFeature=void 0;const Z6=ye,Ae=de,Nl=ge,eC=$e,tC=[Ae.CompletionItemKind.Text,Ae.CompletionItemKind.Method,Ae.CompletionItemKind.Function,Ae.CompletionItemKind.Constructor,Ae.CompletionItemKind.Field,Ae.CompletionItemKind.Variable,Ae.CompletionItemKind.Class,Ae.CompletionItemKind.Interface,Ae.CompletionItemKind.Module,Ae.CompletionItemKind.Property,Ae.CompletionItemKind.Unit,Ae.CompletionItemKind.Value,Ae.CompletionItemKind.Enum,Ae.CompletionItemKind.Keyword,Ae.CompletionItemKind.Snippet,Ae.CompletionItemKind.Color,Ae.CompletionItemKind.File,Ae.CompletionItemKind.Reference,Ae.CompletionItemKind.Folder,Ae.CompletionItemKind.EnumMember,Ae.CompletionItemKind.Constant,Ae.CompletionItemKind.Struct,Ae.CompletionItemKind.Event,Ae.CompletionItemKind.Operator,Ae.CompletionItemKind.TypeParameter];class nC extends Nl.TextDocumentLanguageFeature{constructor(e){super(e,Ae.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let n=(0,Nl.ensure)((0,Nl.ensure)(e,"textDocument"),"completion");n.dynamicRegistration=!0,n.contextSupport=!0,n.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[Ae.MarkupKind.Markdown,Ae.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[Ae.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[Ae.InsertTextMode.asIs,Ae.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},n.insertTextMode=Ae.InsertTextMode.adjustIndentation,n.completionItemKind={valueSet:tC},n.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,n){const i=this.getRegistrationOptions(n,e.completionProvider);i&&this.register({id:eC.generateUuid(),registerOptions:i})}registerLanguageProvider(e,n){var a;this.labelDetailsSupport.set(n,!!((a=e.completionItem)!=null&&a.labelDetailsSupport));const i=e.triggerCharacters??[],r=e.allCommitCharacters,s=e.documentSelector,o={provideCompletionItems:(c,l,h,g)=>{const p=this._client,w=this._client.middleware,v=(x,T,q,z)=>p.sendRequest(Ae.CompletionRequest.type,p.code2ProtocolConverter.asCompletionParams(x,T,q),z).then(A=>z.isCancellationRequested?null:p.protocol2CodeConverter.asCompletionResult(A,r,z),A=>p.handleFailedRequest(Ae.CompletionRequest.type,z,A,null));return w.provideCompletionItem?w.provideCompletionItem(c,l,g,h,v):v(c,l,g,h)},resolveCompletionItem:e.resolveProvider?(c,l)=>{const h=this._client,g=this._client.middleware,p=(w,v)=>h.sendRequest(Ae.CompletionResolveRequest.type,h.code2ProtocolConverter.asCompletionItem(w,!!this.labelDetailsSupport.get(n)),v).then(x=>v.isCancellationRequested?null:h.protocol2CodeConverter.asCompletionItem(x),x=>h.handleFailedRequest(Ae.CompletionResolveRequest.type,v,x,w));return g.resolveCompletionItem?g.resolveCompletionItem(c,l,p):p(c,l)}:void 0};return[Z6.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...i),o]}}Oc.CompletionItemFeature=nC;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.HoverFeature=void 0;const iC=ye,Hs=de,$l=ge,rC=$e;class sC extends $l.TextDocumentLanguageFeature{constructor(e){super(e,Hs.HoverRequest.type)}fillClientCapabilities(e){const n=(0,$l.ensure)((0,$l.ensure)(e,"textDocument"),"hover");n.dynamicRegistration=!0,n.contentFormat=[Hs.MarkupKind.Markdown,Hs.MarkupKind.PlainText]}initialize(e,n){const i=this.getRegistrationOptions(n,e.hoverProvider);i&&this.register({id:rC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideHover:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Hs.HoverRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asHover(w),w=>a.handleFailedRequest(Hs.HoverRequest.type,p,w,null)),l=a.middleware;return l.provideHover?l.provideHover(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return iC.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Ac.HoverFeature=sC;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DefinitionFeature=void 0;const oC=ye,ql=de,Hl=ge,aC=$e;class cC extends Hl.TextDocumentLanguageFeature{constructor(e){super(e,ql.DefinitionRequest.type)}fillClientCapabilities(e){let n=(0,Hl.ensure)((0,Hl.ensure)(e,"textDocument"),"definition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.definitionProvider);i&&this.register({id:aC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDefinition:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(ql.DefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(ql.DefinitionRequest.type,p,w,null)),l=a.middleware;return l.provideDefinition?l.provideDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return oC.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Lc.DefinitionFeature=cC;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.SignatureHelpFeature=void 0;const $p=ye,js=de,jl=ge,lC=$e;class uC extends jl.TextDocumentLanguageFeature{constructor(e){super(e,js.SignatureHelpRequest.type)}fillClientCapabilities(e){let n=(0,jl.ensure)((0,jl.ensure)(e,"textDocument"),"signatureHelp");n.dynamicRegistration=!0,n.signatureInformation={documentationFormat:[js.MarkupKind.Markdown,js.MarkupKind.PlainText]},n.signatureInformation.parameterInformation={labelOffsetSupport:!0},n.signatureInformation.activeParameterSupport=!0,n.contextSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.signatureHelpProvider);i&&this.register({id:lC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n={provideSignatureHelp:(i,r,s,o)=>{const a=this._client,c=(h,g,p,w)=>a.sendRequest(js.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(h,g,p),w).then(v=>w.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(v,w),v=>a.handleFailedRequest(js.SignatureHelpRequest.type,w,v,null)),l=a.middleware;return l.provideSignatureHelp?l.provideSignatureHelp(i,r,o,s,c):c(i,r,o,s)}};return[this.registerProvider(e,n),n]}registerProvider(e,n){const i=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(e.retriggerCharacters===void 0){const r=e.triggerCharacters||[];return $p.languages.registerSignatureHelpProvider(i,n,...r)}else{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return $p.languages.registerSignatureHelpProvider(i,n,r)}}}Nc.SignatureHelpFeature=uC;var $c={};Object.defineProperty($c,"__esModule",{value:!0});$c.DocumentHighlightFeature=void 0;const dC=ye,Wl=de,Ul=ge,fC=$e;class hC extends Ul.TextDocumentLanguageFeature{constructor(e){super(e,Wl.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,Ul.ensure)((0,Ul.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentHighlightProvider);i&&this.register({id:fC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentHighlights:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Wl.DocumentHighlightRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDocumentHighlights(w,p),w=>a.handleFailedRequest(Wl.DocumentHighlightRequest.type,p,w,null)),l=a.middleware;return l.provideDocumentHighlights?l.provideDocumentHighlights(r,s,o,c):c(r,s,o)}};return[dC.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}$c.DocumentHighlightFeature=hC;var H1={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const e=ye,n=de,i=ge,r=$e;t.SupportedSymbolKinds=[n.SymbolKind.File,n.SymbolKind.Module,n.SymbolKind.Namespace,n.SymbolKind.Package,n.SymbolKind.Class,n.SymbolKind.Method,n.SymbolKind.Property,n.SymbolKind.Field,n.SymbolKind.Constructor,n.SymbolKind.Enum,n.SymbolKind.Interface,n.SymbolKind.Function,n.SymbolKind.Variable,n.SymbolKind.Constant,n.SymbolKind.String,n.SymbolKind.Number,n.SymbolKind.Boolean,n.SymbolKind.Array,n.SymbolKind.Object,n.SymbolKind.Key,n.SymbolKind.Null,n.SymbolKind.EnumMember,n.SymbolKind.Struct,n.SymbolKind.Event,n.SymbolKind.Operator,n.SymbolKind.TypeParameter],t.SupportedSymbolTags=[n.SymbolTag.Deprecated];class s extends i.TextDocumentLanguageFeature{constructor(a){super(a,n.DocumentSymbolRequest.type)}fillClientCapabilities(a){let c=(0,i.ensure)((0,i.ensure)(a,"textDocument"),"documentSymbol");c.dynamicRegistration=!0,c.symbolKind={valueSet:t.SupportedSymbolKinds},c.hierarchicalDocumentSymbolSupport=!0,c.tagSupport={valueSet:t.SupportedSymbolTags},c.labelSupport=!0}initialize(a,c){const l=this.getRegistrationOptions(c,a.documentSymbolProvider);l&&this.register({id:r.generateUuid(),registerOptions:l})}registerLanguageProvider(a){const c=a.documentSelector,l={provideDocumentSymbols:(g,p)=>{const w=this._client,v=async(T,q)=>{try{const z=await w.sendRequest(n.DocumentSymbolRequest.type,w.code2ProtocolConverter.asDocumentSymbolParams(T),q);if(q.isCancellationRequested||z===void 0||z===null)return null;if(z.length===0)return[];{const A=z[0];return n.DocumentSymbol.is(A)?await w.protocol2CodeConverter.asDocumentSymbols(z,q):await w.protocol2CodeConverter.asSymbolInformations(z,q)}}catch(z){return w.handleFailedRequest(n.DocumentSymbolRequest.type,q,z,null)}},x=w.middleware;return x.provideDocumentSymbols?x.provideDocumentSymbols(g,p,v):v(g,p)}},h=a.label!==void 0?{label:a.label}:void 0;return[e.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(c),l,h),l]}}t.DocumentSymbolFeature=s})(H1);var qc={};Object.defineProperty(qc,"__esModule",{value:!0});qc.WorkspaceSymbolFeature=void 0;const gC=ye,Ws=de,zl=ge,qp=H1,pC=$e;class mC extends zl.WorkspaceFeature{constructor(e){super(e,Ws.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let n=(0,zl.ensure)((0,zl.ensure)(e,"workspace"),"symbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:qp.SupportedSymbolKinds},n.tagSupport={valueSet:qp.SupportedSymbolTags},n.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:pC.generateUuid(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const n={provideWorkspaceSymbols:(i,r)=>{const s=this._client,o=(c,l)=>s.sendRequest(Ws.WorkspaceSymbolRequest.type,{query:c},l).then(h=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformations(h,l),h=>s.handleFailedRequest(Ws.WorkspaceSymbolRequest.type,l,h,null)),a=s.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,o):o(i,r)},resolveWorkspaceSymbol:e.resolveProvider===!0?(i,r)=>{const s=this._client,o=(c,l)=>s.sendRequest(Ws.WorkspaceSymbolResolveRequest.type,s.code2ProtocolConverter.asWorkspaceSymbol(c),l).then(h=>l.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformation(h),h=>s.handleFailedRequest(Ws.WorkspaceSymbolResolveRequest.type,l,h,null)),a=s.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(i,r,o):o(i,r)}:void 0};return[gC.languages.registerWorkspaceSymbolProvider(n),n]}}qc.WorkspaceSymbolFeature=mC;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.ReferencesFeature=void 0;const yC=ye,Bl=de,Vl=ge,bC=$e;class vC extends Vl.TextDocumentLanguageFeature{constructor(e){super(e,Bl.ReferencesRequest.type)}fillClientCapabilities(e){(0,Vl.ensure)((0,Vl.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.referencesProvider);i&&this.register({id:bC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideReferences:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>c.sendRequest(Bl.ReferencesRequest.type,c.code2ProtocolConverter.asReferenceParams(g,p,w),v).then(x=>v.isCancellationRequested?null:c.protocol2CodeConverter.asReferences(x,v),x=>c.handleFailedRequest(Bl.ReferencesRequest.type,v,x,null)),h=c.middleware;return h.provideReferences?h.provideReferences(r,s,o,a,l):l(r,s,o,a)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return yC.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Hc.ReferencesFeature=vC;var jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.CodeActionFeature=void 0;const wC=ye,xn=de,CC=$e,Kl=ge;class _C extends Kl.TextDocumentLanguageFeature{constructor(e){super(e,xn.CodeActionRequest.type)}fillClientCapabilities(e){const n=(0,Kl.ensure)((0,Kl.ensure)(e,"textDocument"),"codeAction");n.dynamicRegistration=!0,n.isPreferredSupport=!0,n.disabledSupport=!0,n.dataSupport=!0,n.resolveSupport={properties:["edit"]},n.codeActionLiteralSupport={codeActionKind:{valueSet:[xn.CodeActionKind.Empty,xn.CodeActionKind.QuickFix,xn.CodeActionKind.Refactor,xn.CodeActionKind.RefactorExtract,xn.CodeActionKind.RefactorInline,xn.CodeActionKind.RefactorRewrite,xn.CodeActionKind.Source,xn.CodeActionKind.SourceOrganizeImports]}},n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.codeActionProvider);i&&this.register({id:CC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideCodeActions:(r,s,o,a)=>{const c=this._client,l=async(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),context:c.code2ProtocolConverter.asCodeActionContextSync(w)};return c.sendRequest(xn.CodeActionRequest.type,x,v).then(T=>v.isCancellationRequested||T===null||T===void 0?null:c.protocol2CodeConverter.asCodeActionResult(T,v),T=>c.handleFailedRequest(xn.CodeActionRequest.type,v,T,null))},h=c.middleware;return h.provideCodeActions?h.provideCodeActions(r,s,o,a,l):l(r,s,o,a)},resolveCodeAction:e.resolveProvider?(r,s)=>{const o=this._client,a=this._client.middleware,c=async(l,h)=>o.sendRequest(xn.CodeActionResolveRequest.type,o.code2ProtocolConverter.asCodeActionSync(l),h).then(g=>h.isCancellationRequested?l:o.protocol2CodeConverter.asCodeAction(g,h),g=>o.handleFailedRequest(xn.CodeActionResolveRequest.type,h,g,l));return a.resolveCodeAction?a.resolveCodeAction(r,s,c):c(r,s)}:void 0};return[wC.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),i]}}jc.CodeActionFeature=_C;var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});Wc.CodeLensFeature=void 0;const Hp=ye,Gr=de,SC=$e,Us=ge;class DC extends Us.TextDocumentLanguageFeature{constructor(e){super(e,Gr.CodeLensRequest.type)}fillClientCapabilities(e){(0,Us.ensure)((0,Us.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,Us.ensure)((0,Us.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,n){this._client.onRequest(Gr.CodeLensRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeCodeLensEmitter.fire()});const r=this.getRegistrationOptions(n,e.codeLensProvider);r&&this.register({id:SC.generateUuid(),registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Hp.EventEmitter,r={onDidChangeCodeLenses:i.event,provideCodeLenses:(s,o)=>{const a=this._client,c=(h,g)=>a.sendRequest(Gr.CodeLensRequest.type,a.code2ProtocolConverter.asCodeLensParams(h),g).then(p=>g.isCancellationRequested?null:a.protocol2CodeConverter.asCodeLenses(p,g),p=>a.handleFailedRequest(Gr.CodeLensRequest.type,g,p,null)),l=a.middleware;return l.provideCodeLenses?l.provideCodeLenses(s,o,c):c(s,o)},resolveCodeLens:e.resolveProvider?(s,o)=>{const a=this._client,c=(h,g)=>a.sendRequest(Gr.CodeLensResolveRequest.type,a.code2ProtocolConverter.asCodeLens(h),g).then(p=>g.isCancellationRequested?h:a.protocol2CodeConverter.asCodeLens(p),p=>a.handleFailedRequest(Gr.CodeLensResolveRequest.type,g,p,h)),l=a.middleware;return l.resolveCodeLens?l.resolveCodeLens(s,o,c):c(s,o)}:void 0};return[Hp.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeCodeLensEmitter:i}]}}Wc.CodeLensFeature=DC;var tr={};Object.defineProperty(tr,"__esModule",{value:!0});tr.DocumentOnTypeFormattingFeature=tr.DocumentRangeFormattingFeature=tr.DocumentFormattingFeature=void 0;const Uc=ye,ri=de,j1=$e,$i=ge;var ms;(function(t){function e(n){const i=Uc.workspace.getConfiguration("files",n);return{trimTrailingWhitespace:i.get("trimTrailingWhitespace"),trimFinalNewlines:i.get("trimFinalNewlines"),insertFinalNewline:i.get("insertFinalNewline")}}t.fromConfiguration=e})(ms||(ms={}));class xC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentFormattingEdits:(r,s,o)=>{const a=this._client,c=(h,g,p)=>{const w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),options:a.code2ProtocolConverter.asFormattingOptions(g,ms.fromConfiguration(h))};return a.sendRequest(ri.DocumentFormattingRequest.type,w,p).then(v=>p.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(v,p),v=>a.handleFailedRequest(ri.DocumentFormattingRequest.type,p,v,null))},l=a.middleware;return l.provideDocumentFormattingEdits?l.provideDocumentFormattingEdits(r,s,o,c):c(r,s,o)}};return[Uc.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}tr.DocumentFormattingFeature=xC;class kC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const n=(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"rangeFormatting");n.dynamicRegistration=!0,n.rangesSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentRangeFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentRangeFormattingEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p),options:c.code2ProtocolConverter.asFormattingOptions(w,ms.fromConfiguration(g))};return c.sendRequest(ri.DocumentRangeFormattingRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(T,v),T=>c.handleFailedRequest(ri.DocumentRangeFormattingRequest.type,v,T,null))},h=c.middleware;return h.provideDocumentRangeFormattingEdits?h.provideDocumentRangeFormattingEdits(r,s,o,a,l):l(r,s,o,a)}};return e.rangesSupport&&(i.provideDocumentRangesFormattingEdits=(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{const x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),ranges:c.code2ProtocolConverter.asRanges(p),options:c.code2ProtocolConverter.asFormattingOptions(w,ms.fromConfiguration(g))};return c.sendRequest(ri.DocumentRangesFormattingRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(T,v),T=>c.handleFailedRequest(ri.DocumentRangesFormattingRequest.type,v,T,null))},h=c.middleware;return h.provideDocumentRangesFormattingEdits?h.provideDocumentRangesFormattingEdits(r,s,o,a,l):l(r,s,o,a)}),[Uc.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}tr.DocumentRangeFormattingFeature=kC;class TC extends $i.TextDocumentLanguageFeature{constructor(e){super(e,ri.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,$i.ensure)((0,$i.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentOnTypeFormattingProvider);i&&this.register({id:j1.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideOnTypeFormattingEdits:(s,o,a,c,l)=>{const h=this._client,g=(w,v,x,T,q)=>{let z={textDocument:h.code2ProtocolConverter.asTextDocumentIdentifier(w),position:h.code2ProtocolConverter.asPosition(v),ch:x,options:h.code2ProtocolConverter.asFormattingOptions(T,ms.fromConfiguration(w))};return h.sendRequest(ri.DocumentOnTypeFormattingRequest.type,z,q).then(A=>q.isCancellationRequested?null:h.protocol2CodeConverter.asTextEdits(A,q),A=>h.handleFailedRequest(ri.DocumentOnTypeFormattingRequest.type,q,A,null))},p=h.middleware;return p.provideOnTypeFormattingEdits?p.provideOnTypeFormattingEdits(s,o,a,c,l,g):g(s,o,a,c,l)}},r=e.moreTriggerCharacter||[];return[Uc.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i,e.firstTriggerCharacter,...r),i]}}tr.DocumentOnTypeFormattingFeature=TC;var zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.RenameFeature=void 0;const RC=ye,pr=de,EC=$e,jp=Ve,Gl=ge;class PC extends Gl.TextDocumentLanguageFeature{constructor(e){super(e,pr.RenameRequest.type)}fillClientCapabilities(e){let n=(0,Gl.ensure)((0,Gl.ensure)(e,"textDocument"),"rename");n.dynamicRegistration=!0,n.prepareSupport=!0,n.prepareSupportDefaultBehavior=pr.PrepareSupportDefaultBehavior.Identifier,n.honorsChangeAnnotations=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.renameProvider);i&&(jp.boolean(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:EC.generateUuid(),registerOptions:i}))}registerLanguageProvider(e){const n=e.documentSelector,i={provideRenameEdits:(r,s,o,a)=>{const c=this._client,l=(g,p,w,v)=>{let x={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),position:c.code2ProtocolConverter.asPosition(p),newName:w};return c.sendRequest(pr.RenameRequest.type,x,v).then(T=>v.isCancellationRequested?null:c.protocol2CodeConverter.asWorkspaceEdit(T,v),T=>c.handleFailedRequest(pr.RenameRequest.type,v,T,null,!1))},h=c.middleware;return h.provideRenameEdits?h.provideRenameEdits(r,s,o,a,l):l(r,s,o,a)},prepareRename:e.prepareProvider?(r,s,o)=>{const a=this._client,c=(h,g,p)=>{let w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),position:a.code2ProtocolConverter.asPosition(g)};return a.sendRequest(pr.PrepareRenameRequest.type,w,p).then(v=>p.isCancellationRequested?null:pr.Range.is(v)?a.protocol2CodeConverter.asRange(v):this.isDefaultBehavior(v)?v.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):v&&pr.Range.is(v.range)?{range:a.protocol2CodeConverter.asRange(v.range),placeholder:v.placeholder}:Promise.reject(new Error("The element can't be renamed.")),v=>{throw typeof v.message=="string"?new Error(v.message):new Error("The element can't be renamed.")})},l=a.middleware;return l.prepareRename?l.prepareRename(r,s,o,c):c(r,s,o)}:void 0};return[this.registerProvider(n,i),i]}registerProvider(e,n){return RC.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}isDefaultBehavior(e){const n=e;return n&&jp.boolean(n.defaultBehavior)}}zc.RenameFeature=PC;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});Bc.DocumentLinkFeature=void 0;const IC=ye,zs=de,Ql=ge,FC=$e;class MC extends Ql.TextDocumentLanguageFeature{constructor(e){super(e,zs.DocumentLinkRequest.type)}fillClientCapabilities(e){const n=(0,Ql.ensure)((0,Ql.ensure)(e,"textDocument"),"documentLink");n.dynamicRegistration=!0,n.tooltipSupport=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.documentLinkProvider);i&&this.register({id:FC.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDocumentLinks:(r,s)=>{const o=this._client,a=(l,h)=>o.sendRequest(zs.DocumentLinkRequest.type,o.code2ProtocolConverter.asDocumentLinkParams(l),h).then(g=>h.isCancellationRequested?null:o.protocol2CodeConverter.asDocumentLinks(g,h),g=>o.handleFailedRequest(zs.DocumentLinkRequest.type,h,g,null)),c=o.middleware;return c.provideDocumentLinks?c.provideDocumentLinks(r,s,a):a(r,s)},resolveDocumentLink:e.resolveProvider?(r,s)=>{const o=this._client;let a=(l,h)=>o.sendRequest(zs.DocumentLinkResolveRequest.type,o.code2ProtocolConverter.asDocumentLink(l),h).then(g=>h.isCancellationRequested?l:o.protocol2CodeConverter.asDocumentLink(g),g=>o.handleFailedRequest(zs.DocumentLinkResolveRequest.type,h,g,l));const c=o.middleware;return c.resolveDocumentLink?c.resolveDocumentLink(r,s,a):a(r,s)}:void 0};return[IC.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Bc.DocumentLinkFeature=MC;var Vc={};Object.defineProperty(Vc,"__esModule",{value:!0});Vc.ExecuteCommandFeature=void 0;const OC=ye,Jl=de,AC=$e,Wp=ge;class LC{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 Jl.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,Wp.ensure)((0,Wp.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:AC.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const n=this._client,i=n.middleware,r=(s,o)=>{let a={command:s,arguments:o};return n.sendRequest(Jl.ExecuteCommandRequest.type,a).then(void 0,c=>n.handleFailedRequest(Jl.ExecuteCommandRequest.type,void 0,c,void 0))};if(e.registerOptions.commands){const s=[];for(const o of e.registerOptions.commands)s.push(OC.commands.registerCommand(o,(...a)=>i.executeCommand?i.executeCommand(o,a,r):r(o,a)));this._commands.set(e.id,s)}}unregister(e){let n=this._commands.get(e);n&&n.forEach(i=>i.dispose())}clear(){this._commands.forEach(e=>{e.forEach(n=>n.dispose())}),this._commands.clear()}}Vc.ExecuteCommandFeature=LC;var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});Kc.FileSystemWatcherFeature=void 0;const NC=ye,mr=de,sa=ge;class $C{constructor(e,n){this._client=e,this._notifyFileEvent=n,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return mr.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,sa.ensure)((0,sa.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,sa.ensure)((0,sa.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,n){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const n=[];for(const i of e.registerOptions.watchers){const r=this._client.protocol2CodeConverter.asGlobPattern(i.globPattern);if(r===void 0)continue;let s=!0,o=!0,a=!0;i.kind!==void 0&&i.kind!==null&&(s=(i.kind&mr.WatchKind.Create)!==0,o=(i.kind&mr.WatchKind.Change)!==0,a=(i.kind&mr.WatchKind.Delete)!==0);const c=NC.workspace.createFileSystemWatcher(r,!s,!o,!a);this.hookListeners(c,s,o,a,n),n.push(c)}this._watchers.set(e.id,n)}registerRaw(e,n){let i=[];for(let r of n)this.hookListeners(r,!0,!0,!0,i);this._watchers.set(e,i)}hookListeners(e,n,i,r,s){n&&e.onDidCreate(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.FileChangeType.Created}),null,s),i&&e.onDidChange(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.FileChangeType.Changed}),null,s),r&&e.onDidDelete(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:mr.FileChangeType.Deleted}),null,s)}unregister(e){let n=this._watchers.get(e);if(n)for(let i of n)i.dispose()}clear(){this._watchers.forEach(e=>{for(let n of e)n.dispose()}),this._watchers.clear()}}Kc.FileSystemWatcherFeature=$C;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ColorProviderFeature=void 0;const qC=ye,Bs=de,Yl=ge;class HC extends Yl.TextDocumentLanguageFeature{constructor(e){super(e,Bs.DocumentColorRequest.type)}fillClientCapabilities(e){(0,Yl.ensure)((0,Yl.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideColorPresentations:(r,s,o)=>{const a=this._client,c=(h,g,p)=>{const w={color:h,textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(g.document),range:a.code2ProtocolConverter.asRange(g.range)};return a.sendRequest(Bs.ColorPresentationRequest.type,w,p).then(v=>p.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(v,p),v=>a.handleFailedRequest(Bs.ColorPresentationRequest.type,p,v,null))},l=a.middleware;return l.provideColorPresentations?l.provideColorPresentations(r,s,o,c):c(r,s,o)},provideDocumentColors:(r,s)=>{const o=this._client,a=(l,h)=>{const g={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(l)};return o.sendRequest(Bs.DocumentColorRequest.type,g,h).then(p=>h.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(p,h),p=>o.handleFailedRequest(Bs.DocumentColorRequest.type,h,p,null))},c=o.middleware;return c.provideDocumentColors?c.provideDocumentColors(r,s,a):a(r,s)}};return[qC.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}Gc.ColorProviderFeature=HC;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});Qc.ImplementationFeature=void 0;const jC=ye,Xl=de,Zl=ge;class WC extends Zl.TextDocumentLanguageFeature{constructor(e){super(e,Xl.ImplementationRequest.type)}fillClientCapabilities(e){let n=(0,Zl.ensure)((0,Zl.ensure)(e,"textDocument"),"implementation");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideImplementation:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(Xl.ImplementationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(Xl.ImplementationRequest.type,p,w,null)),l=a.middleware;return l.provideImplementation?l.provideImplementation(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return jC.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Qc.ImplementationFeature=WC;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});Jc.TypeDefinitionFeature=void 0;const UC=ye,eu=de,Vs=ge;class zC extends Vs.TextDocumentLanguageFeature{constructor(e){super(e,eu.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,Vs.ensure)((0,Vs.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let n=(0,Vs.ensure)((0,Vs.ensure)(e,"textDocument"),"typeDefinition");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideTypeDefinition:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(eu.TypeDefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(w,p),w=>a.handleFailedRequest(eu.TypeDefinitionRequest.type,p,w,null)),l=a.middleware;return l.provideTypeDefinition?l.provideTypeDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return UC.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Jc.TypeDefinitionFeature=zC;var ys={};Object.defineProperty(ys,"__esModule",{value:!0});ys.WorkspaceFoldersFeature=ys.arrayDiff=void 0;const BC=$e,oa=ye,Ks=de;function tu(t,e){if(t!=null)return t[e]}function uh(t,e){return t.filter(n=>e.indexOf(n)<0)}ys.arrayDiff=uh;class VC{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 Ks.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const n=oa.workspace.workspaceFolders;this.initializeWithFolders(n),n===void 0?e.workspaceFolders=null:e.workspaceFolders=n.map(i=>this.asProtocol(i))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const n=this._client;n.onRequest(Ks.WorkspaceFoldersRequest.type,s=>{const o=()=>{const c=oa.workspace.workspaceFolders;return c===void 0?null:c.map(h=>this.asProtocol(h))},a=n.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(s,o):o()});const i=tu(tu(tu(e,"workspace"),"workspaceFolders"),"changeNotifications");let r;typeof i=="string"?r=i:i===!0&&(r=BC.generateUuid()),r&&this.register({id:r,registerOptions:void 0})}sendInitialEvent(e){let n;if(this._initialFolders&&e){const i=uh(this._initialFolders,e),r=uh(e,this._initialFolders);(r.length>0||i.length>0)&&(n=this.doSendEvent(r,i))}else this._initialFolders?n=this.doSendEvent([],this._initialFolders):e&&(n=this.doSendEvent(e,[]));n!==void 0&&n.catch(i=>{this._client.error(`Sending notification ${Ks.DidChangeWorkspaceFoldersNotification.type.method} failed`,i)})}doSendEvent(e,n){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:n.map(r=>this.asProtocol(r))}};return this._client.sendNotification(Ks.DidChangeWorkspaceFoldersNotification.type,i)}register(e){let n=e.id,i=this._client,r=oa.workspace.onDidChangeWorkspaceFolders(s=>{let o=l=>this.doSendEvent(l.added,l.removed),a=i.middleware.workspace;(a&&a.didChangeWorkspaceFolders?a.didChangeWorkspaceFolders(s,o):o(s)).catch(l=>{this._client.error(`Sending notification ${Ks.DidChangeWorkspaceFoldersNotification.type.method} failed`,l)})});this._listeners.set(n,r),this.sendInitialEvent(oa.workspace.workspaceFolders)}unregister(e){let n=this._listeners.get(e);n!==void 0&&(this._listeners.delete(e),n.dispose())}clear(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return e===void 0?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}ys.WorkspaceFoldersFeature=VC;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.FoldingRangeFeature=void 0;const Up=ye,yr=de,Gs=ge;class KC extends Gs.TextDocumentLanguageFeature{constructor(e){super(e,yr.FoldingRangeRequest.type)}fillClientCapabilities(e){let n=(0,Gs.ensure)((0,Gs.ensure)(e,"textDocument"),"foldingRange");n.dynamicRegistration=!0,n.rangeLimit=5e3,n.lineFoldingOnly=!0,n.foldingRangeKind={valueSet:[yr.FoldingRangeKind.Comment,yr.FoldingRangeKind.Imports,yr.FoldingRangeKind.Region]},n.foldingRange={collapsedText:!1},(0,Gs.ensure)((0,Gs.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,n){this._client.onRequest(yr.FoldingRangeRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeFoldingRange.fire()});let[i,r]=this.getRegistration(n,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Up.EventEmitter,r={onDidChangeFoldingRanges:i.event,provideFoldingRanges:(s,o,a)=>{const c=this._client,l=(g,p,w)=>{const v={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g)};return c.sendRequest(yr.FoldingRangeRequest.type,v,w).then(x=>w.isCancellationRequested?null:c.protocol2CodeConverter.asFoldingRanges(x,w),x=>c.handleFailedRequest(yr.FoldingRangeRequest.type,w,x,null))},h=c.middleware;return h.provideFoldingRanges?h.provideFoldingRanges(s,o,a,l):l(s,o,a)}};return[Up.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),r),{provider:r,onDidChangeFoldingRange:i}]}}Yc.FoldingRangeFeature=KC;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.DeclarationFeature=void 0;const GC=ye,nu=de,iu=ge;class QC extends iu.TextDocumentLanguageFeature{constructor(e){super(e,nu.DeclarationRequest.type)}fillClientCapabilities(e){const n=(0,iu.ensure)((0,iu.ensure)(e,"textDocument"),"declaration");n.dynamicRegistration=!0,n.linkSupport=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideDeclaration:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(nu.DeclarationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asDeclarationResult(w,p),w=>a.handleFailedRequest(nu.DeclarationRequest.type,p,w,null)),l=a.middleware;return l.provideDeclaration?l.provideDeclaration(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return GC.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Xc.DeclarationFeature=QC;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.SelectionRangeFeature=void 0;const JC=ye,ru=de,su=ge;class YC extends su.TextDocumentLanguageFeature{constructor(e){super(e,ru.SelectionRangeRequest.type)}fillClientCapabilities(e){const n=(0,su.ensure)((0,su.ensure)(e,"textDocument"),"selectionRange");n.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideSelectionRanges:(r,s,o)=>{const a=this._client,c=async(h,g,p)=>{const w={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(h),positions:a.code2ProtocolConverter.asPositionsSync(g,p)};return a.sendRequest(ru.SelectionRangeRequest.type,w,p).then(v=>p.isCancellationRequested?null:a.protocol2CodeConverter.asSelectionRanges(v,p),v=>a.handleFailedRequest(ru.SelectionRangeRequest.type,p,v,null))},l=a.middleware;return l.provideSelectionRanges?l.provideSelectionRanges(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return JC.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}Zc.SelectionRangeFeature=YC;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.ProgressFeature=void 0;const zp=de,XC=Go;function ZC(t,e){return t[e]===void 0&&(t[e]=Object.create(null)),t[e]}class e3{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:zp.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){ZC(e,"window").workDoneProgress=!0}initialize(){const e=this._client,n=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new XC.ProgressPart(this._client,r.token,n))};e.onRequest(zp.WorkDoneProgressCreateRequest.type,i)}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}el.ProgressFeature=e3;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.CallHierarchyFeature=void 0;const t3=ye,Cr=de,ou=ge;class n3{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,n,i){const r=this.client,s=this.middleware,o=(a,c,l)=>{const h=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(Cr.CallHierarchyPrepareRequest.type,h,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyItems(g,l),g=>r.handleFailedRequest(Cr.CallHierarchyPrepareRequest.type,l,g,null))};return s.prepareCallHierarchy?s.prepareCallHierarchy(e,n,i,o):o(e,n,i)}provideCallHierarchyIncomingCalls(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Cr.CallHierarchyIncomingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyIncomingCalls(l,a),l=>i.handleFailedRequest(Cr.CallHierarchyIncomingCallsRequest.type,a,l,null))};return r.provideCallHierarchyIncomingCalls?r.provideCallHierarchyIncomingCalls(e,n,s):s(e,n)}provideCallHierarchyOutgoingCalls(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Cr.CallHierarchyOutgoingCallsRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyOutgoingCalls(l,a),l=>i.handleFailedRequest(Cr.CallHierarchyOutgoingCallsRequest.type,a,l,null))};return r.provideCallHierarchyOutgoingCalls?r.provideCallHierarchyOutgoingCalls(e,n,s):s(e,n)}}class i3 extends ou.TextDocumentLanguageFeature{constructor(e){super(e,Cr.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=e,i=(0,ou.ensure)((0,ou.ensure)(n,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=this._client,i=new n3(n);return[t3.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}tl.CallHierarchyFeature=i3;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});nl.SemanticTokensFeature=void 0;const aa=ye,ve=de,Qs=ge,r3=Ve;class s3 extends Qs.TextDocumentLanguageFeature{constructor(e){super(e,ve.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const n=(0,Qs.ensure)((0,Qs.ensure)(e,"textDocument"),"semanticTokens");n.dynamicRegistration=!0,n.tokenTypes=[ve.SemanticTokenTypes.namespace,ve.SemanticTokenTypes.type,ve.SemanticTokenTypes.class,ve.SemanticTokenTypes.enum,ve.SemanticTokenTypes.interface,ve.SemanticTokenTypes.struct,ve.SemanticTokenTypes.typeParameter,ve.SemanticTokenTypes.parameter,ve.SemanticTokenTypes.variable,ve.SemanticTokenTypes.property,ve.SemanticTokenTypes.enumMember,ve.SemanticTokenTypes.event,ve.SemanticTokenTypes.function,ve.SemanticTokenTypes.method,ve.SemanticTokenTypes.macro,ve.SemanticTokenTypes.keyword,ve.SemanticTokenTypes.modifier,ve.SemanticTokenTypes.comment,ve.SemanticTokenTypes.string,ve.SemanticTokenTypes.number,ve.SemanticTokenTypes.regexp,ve.SemanticTokenTypes.operator,ve.SemanticTokenTypes.decorator],n.tokenModifiers=[ve.SemanticTokenModifiers.declaration,ve.SemanticTokenModifiers.definition,ve.SemanticTokenModifiers.readonly,ve.SemanticTokenModifiers.static,ve.SemanticTokenModifiers.deprecated,ve.SemanticTokenModifiers.abstract,ve.SemanticTokenModifiers.async,ve.SemanticTokenModifiers.modification,ve.SemanticTokenModifiers.documentation,ve.SemanticTokenModifiers.defaultLibrary],n.formats=[ve.TokenFormat.Relative],n.requests={range:!0,full:{delta:!0}},n.multilineTokenSupport=!1,n.overlappingTokenSupport=!1,n.serverCancelSupport=!0,n.augmentsSyntaxTokens=!0,(0,Qs.ensure)((0,Qs.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,n){this._client.onRequest(ve.SemanticTokensRefreshRequest.type,async()=>{for(const o of this.getAllProviders())o.onDidChangeSemanticTokensEmitter.fire()});const[r,s]=this.getRegistration(n,e.semanticTokensProvider);!r||!s||this.register({id:r,registerOptions:s})}registerLanguageProvider(e){const n=e.documentSelector,i=r3.boolean(e.full)?e.full:e.full!==void 0,r=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,s=new aa.EventEmitter,o=i?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(w,v)=>{const x=this._client,T=x.middleware,q=(z,A)=>{const W={textDocument:x.code2ProtocolConverter.asTextDocumentIdentifier(z)};return x.sendRequest(ve.SemanticTokensRequest.type,W,A).then(j=>A.isCancellationRequested?null:x.protocol2CodeConverter.asSemanticTokens(j,A),j=>x.handleFailedRequest(ve.SemanticTokensRequest.type,A,j,null))};return T.provideDocumentSemanticTokens?T.provideDocumentSemanticTokens(w,v,q):q(w,v)},provideDocumentSemanticTokensEdits:r?(w,v,x)=>{const T=this._client,q=T.middleware,z=(A,W,j)=>{const se={textDocument:T.code2ProtocolConverter.asTextDocumentIdentifier(A),previousResultId:W};return T.sendRequest(ve.SemanticTokensDeltaRequest.type,se,j).then(async B=>j.isCancellationRequested?null:ve.SemanticTokens.is(B)?await T.protocol2CodeConverter.asSemanticTokens(B,j):await T.protocol2CodeConverter.asSemanticTokensEdits(B,j),B=>T.handleFailedRequest(ve.SemanticTokensDeltaRequest.type,j,B,null))};return q.provideDocumentSemanticTokensEdits?q.provideDocumentSemanticTokensEdits(w,v,x,z):z(w,v,x)}:void 0}:void 0,c=e.range===!0?{provideDocumentRangeSemanticTokens:(w,v,x)=>{const T=this._client,q=T.middleware,z=(A,W,j)=>{const se={textDocument:T.code2ProtocolConverter.asTextDocumentIdentifier(A),range:T.code2ProtocolConverter.asRange(W)};return T.sendRequest(ve.SemanticTokensRangeRequest.type,se,j).then(B=>j.isCancellationRequested?null:T.protocol2CodeConverter.asSemanticTokens(B,j),B=>T.handleFailedRequest(ve.SemanticTokensRangeRequest.type,j,B,null))};return q.provideDocumentRangeSemanticTokens?q.provideDocumentRangeSemanticTokens(w,v,x,z):z(w,v,x)}}:void 0,l=[],h=this._client,g=h.protocol2CodeConverter.asSemanticTokensLegend(e.legend),p=h.protocol2CodeConverter.asDocumentSelector(n);return o!==void 0&&l.push(aa.languages.registerDocumentSemanticTokensProvider(p,o,g)),c!==void 0&&l.push(aa.languages.registerDocumentRangeSemanticTokensProvider(p,c,g)),[new aa.Disposable(()=>l.forEach(w=>w.dispose())),{range:c,full:o,onDidChangeSemanticTokensEmitter:s}]}}nl.SemanticTokensFeature=s3;var vn={};Object.defineProperty(vn,"__esModule",{value:!0});vn.WillDeleteFilesFeature=vn.WillRenameFilesFeature=vn.WillCreateFilesFeature=vn.DidDeleteFilesFeature=vn.DidRenameFilesFeature=vn.DidCreateFilesFeature=void 0;const zn=ye,o3=Cc,qi=de,a3=$e;function Bp(t,e){return t[e]===void 0&&(t[e]={}),t[e]}function c3(t,e){return t[e]}function Vp(t,e,n){t[e]=n}class Lr{constructor(e,n,i,r,s){this._client=e,this._event=n,this._registrationType=i,this._clientCapability=r,this._serverCapability=s,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 n=Bp(Bp(e,"workspace"),"fileOperations");Vp(n,"dynamicRegistration",!0),Vp(n,this._clientCapability,!0)}initialize(e){var r;const n=(r=e.workspace)==null?void 0:r.fileOperations,i=n!==void 0?c3(n,this._serverCapability):void 0;if((i==null?void 0:i.filters)!==void 0)try{this.register({id:a3.generateUuid(),registerOptions:{filters:i.filters}})}catch(s){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${s}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const n=e.registerOptions.filters.map(i=>{const r=new o3.Minimatch(i.pattern.glob,Lr.asMinimatchOptions(i.pattern.options));if(!r.makeRe())throw new Error(`Invalid pattern ${i.pattern.glob}!`);return{scheme:i.scheme,matcher:r,kind:i.pattern.matches}});this._filters.set(e.id,n)}unregister(e){this._filters.delete(e),this._filters.size===0&&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 Lr.getFileType(e)}async filter(e,n){const i=await Promise.all(e.files.map(async s=>{const o=n(s),a=o.fsPath.replace(/\\/g,"/");for(const c of this._filters.values())for(const l of c)if(!(l.scheme!==void 0&&l.scheme!==o.scheme)){if(l.matcher.match(a)){if(l.kind===void 0)return!0;const h=await this.getFileType(o);if(h===void 0)return this._client.error(`Failed to determine file type for ${o.toString()}.`),!0;if(h===zn.FileType.File&&l.kind===qi.FileOperationPatternKind.file||h===zn.FileType.Directory&&l.kind===qi.FileOperationPatternKind.folder)return!0}else if(l.kind===qi.FileOperationPatternKind.folder&&await Lr.getFileType(o)===zn.FileType.Directory&&l.matcher.match(`${a}/`))return!0}return!1})),r=e.files.filter((s,o)=>i[o]);return{...e,files:r}}static async getFileType(e){try{return(await zn.workspace.fs.stat(e)).type}catch{return}}static asMinimatchOptions(e){const n={dot:!0};return(e==null?void 0:e.ignoreCase)===!0&&(n.nocase=!0),n}}class S2 extends Lr{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s),this._notificationType=i,this._accessUri=o,this._createParams=a}async send(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const i=async r=>this._client.sendNotification(this._notificationType,this._createParams(r));return this.doSend(n,i)}}}class D2 extends S2{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const n=e.fsPath;if(this._fsPathFileTypes.has(n))return this._fsPathFileTypes.get(n);const i=await Lr.getFileType(e);return i&&this._fsPathFileTypes.set(n,i),i}async cacheFileTypes(e,n){await this.filter(e,n)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),this.filterSize()===0&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}class l3 extends S2{constructor(e){super(e,zn.workspace.onDidCreateFiles,qi.DidCreateFilesNotification.type,"didCreate","didCreate",n=>n,e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.didCreateFiles?i.didCreateFiles(e,n):n(e)}}vn.DidCreateFilesFeature=l3;class u3 extends D2{constructor(e){super(e,zn.workspace.onDidRenameFiles,qi.DidRenameFilesNotification.type,"didRename","didRename",n=>n.oldUri,e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=zn.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,n=>n.oldUri))}doSend(e,n){this.clearFileTypeCache();const i=this._client.middleware.workspace;return i!=null&&i.didRenameFiles?i.didRenameFiles(e,n):n(e)}}vn.DidRenameFilesFeature=u3;class d3 extends D2{constructor(e){super(e,zn.workspace.onDidDeleteFiles,qi.DidDeleteFilesNotification.type,"didDelete","didDelete",n=>n,e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=zn.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,n=>n))}doSend(e,n){this.clearFileTypeCache();const i=this._client.middleware.workspace;return i!=null&&i.didDeleteFiles?i.didDeleteFiles(e,n):n(e)}}vn.DidDeleteFilesFeature=d3;class W1 extends Lr{constructor(e,n,i,r,s,o,a){super(e,n,i,r,s),this._requestType=i,this._accessUri=o,this._createParams=a}async send(e){const n=this.waitUntil(e);e.waitUntil(n)}async waitUntil(e){const n=await this.filter(e,this._accessUri);if(n.files.length){const i=r=>this._client.sendRequest(this._requestType,this._createParams(r),r.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(n,i)}else return}}class f3 extends W1{constructor(e){super(e,zn.workspace.onWillCreateFiles,qi.WillCreateFilesRequest.type,"willCreate","willCreate",n=>n,e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willCreateFiles?i.willCreateFiles(e,n):n(e)}}vn.WillCreateFilesFeature=f3;class h3 extends W1{constructor(e){super(e,zn.workspace.onWillRenameFiles,qi.WillRenameFilesRequest.type,"willRename","willRename",n=>n.oldUri,e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willRenameFiles?i.willRenameFiles(e,n):n(e)}}vn.WillRenameFilesFeature=h3;class g3 extends W1{constructor(e){super(e,zn.workspace.onWillDeleteFiles,qi.WillDeleteFilesRequest.type,"willDelete","willDelete",n=>n,e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,n){const i=this._client.middleware.workspace;return i!=null&&i.willDeleteFiles?i.willDeleteFiles(e,n):n(e)}}vn.WillDeleteFilesFeature=g3;var il={};Object.defineProperty(il,"__esModule",{value:!0});il.LinkedEditingFeature=void 0;const p3=ye,au=de,cu=ge;class m3 extends cu.TextDocumentLanguageFeature{constructor(e){super(e,au.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){const n=(0,cu.ensure)((0,cu.ensure)(e,"textDocument"),"linkedEditingRange");n.dynamicRegistration=!0}initialize(e,n){let[i,r]=this.getRegistration(n,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i={provideLinkedEditingRanges:(r,s,o)=>{const a=this._client,c=(h,g,p)=>a.sendRequest(au.LinkedEditingRangeRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(h,g),p).then(w=>p.isCancellationRequested?null:a.protocol2CodeConverter.asLinkedEditingRanges(w,p),w=>a.handleFailedRequest(au.LinkedEditingRangeRequest.type,p,w,null)),l=a.middleware;return l.provideLinkedEditingRange?l.provideLinkedEditingRange(r,s,o,c):c(r,s,o)}};return[this.registerProvider(n,i),i]}registerProvider(e,n){return p3.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}il.LinkedEditingFeature=m3;var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.TypeHierarchyFeature=void 0;const y3=ye,_r=de,lu=ge;class b3{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,n,i){const r=this.client,s=this.middleware,o=(a,c,l)=>{const h=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(_r.TypeHierarchyPrepareRequest.type,h,l).then(g=>l.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(g,l),g=>r.handleFailedRequest(_r.TypeHierarchyPrepareRequest.type,l,g,null))};return s.prepareTypeHierarchy?s.prepareTypeHierarchy(e,n,i,o):o(e,n,i)}provideTypeHierarchySupertypes(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(_r.TypeHierarchySupertypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(_r.TypeHierarchySupertypesRequest.type,a,l,null))};return r.provideTypeHierarchySupertypes?r.provideTypeHierarchySupertypes(e,n,s):s(e,n)}provideTypeHierarchySubtypes(e,n){const i=this.client,r=this.middleware,s=(o,a)=>{const c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(_r.TypeHierarchySubtypesRequest.type,c,a).then(l=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(l,a),l=>i.handleFailedRequest(_r.TypeHierarchySubtypesRequest.type,a,l,null))};return r.provideTypeHierarchySubtypes?r.provideTypeHierarchySubtypes(e,n,s):s(e,n)}}class v3 extends lu.TextDocumentLanguageFeature{constructor(e){super(e,_r.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){const n=(0,lu.ensure)((0,lu.ensure)(e,"textDocument"),"typeHierarchy");n.dynamicRegistration=!0}initialize(e,n){const[i,r]=this.getRegistration(n,e.typeHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=this._client,i=new b3(n);return[y3.languages.registerTypeHierarchyProvider(n.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}}rl.TypeHierarchyFeature=v3;var sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.InlineValueFeature=void 0;const Kp=ye,ca=de,Js=ge;class w3 extends Js.TextDocumentLanguageFeature{constructor(e){super(e,ca.InlineValueRequest.type)}fillClientCapabilities(e){(0,Js.ensure)((0,Js.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,Js.ensure)((0,Js.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,n){this._client.onRequest(ca.InlineValueRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlineValues.fire()});const[i,r]=this.getRegistration(n,e.inlineValueProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Kp.EventEmitter,r={onDidChangeInlineValues:i.event,provideInlineValues:(s,o,a,c)=>{const l=this._client,h=(p,w,v,x)=>{const T={textDocument:l.code2ProtocolConverter.asTextDocumentIdentifier(p),range:l.code2ProtocolConverter.asRange(w),context:l.code2ProtocolConverter.asInlineValueContext(v)};return l.sendRequest(ca.InlineValueRequest.type,T,x).then(q=>x.isCancellationRequested?null:l.protocol2CodeConverter.asInlineValues(q,x),q=>l.handleFailedRequest(ca.InlineValueRequest.type,x,q,null))},g=l.middleware;return g.provideInlineValues?g.provideInlineValues(s,o,a,c,h):h(s,o,a,c)}};return[this.registerProvider(n,r),{provider:r,onDidChangeInlineValues:i}]}registerProvider(e,n){return Kp.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}sl.InlineValueFeature=w3;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.InlayHintsFeature=void 0;const Gp=ye,Qr=de,Ys=ge;class C3 extends Ys.TextDocumentLanguageFeature{constructor(e){super(e,Qr.InlayHintRequest.type)}fillClientCapabilities(e){const n=(0,Ys.ensure)((0,Ys.ensure)(e,"textDocument"),"inlayHint");n.dynamicRegistration=!0,n.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,Ys.ensure)((0,Ys.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,n){this._client.onRequest(Qr.InlayHintRefreshRequest.type,async()=>{for(const s of this.getAllProviders())s.onDidChangeInlayHints.fire()});const[i,r]=this.getRegistration(n,e.inlayHintProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){const n=e.documentSelector,i=new Gp.EventEmitter,r={onDidChangeInlayHints:i.event,provideInlayHints:(s,o,a)=>{const c=this._client,l=async(g,p,w)=>{const v={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(g),range:c.code2ProtocolConverter.asRange(p)};try{const x=await c.sendRequest(Qr.InlayHintRequest.type,v,w);return w.isCancellationRequested?null:c.protocol2CodeConverter.asInlayHints(x,w)}catch(x){return c.handleFailedRequest(Qr.InlayHintRequest.type,w,x,null)}},h=c.middleware;return h.provideInlayHints?h.provideInlayHints(s,o,a,l):l(s,o,a)}};return r.resolveInlayHint=e.resolveProvider===!0?(s,o)=>{const a=this._client,c=async(h,g)=>{try{const p=await a.sendRequest(Qr.InlayHintResolveRequest.type,a.code2ProtocolConverter.asInlayHint(h),g);if(g.isCancellationRequested)return null;const w=a.protocol2CodeConverter.asInlayHint(p,g);return g.isCancellationRequested?null:w}catch(p){return a.handleFailedRequest(Qr.InlayHintResolveRequest.type,g,p,null)}},l=a.middleware;return l.resolveInlayHint?l.resolveInlayHint(s,o,c):c(s,o)}:void 0,[this.registerProvider(n,r),{provider:r,onDidChangeInlayHints:i}]}registerProvider(e,n){return Gp.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),n)}}ol.InlayHintsFeature=C3;var al={};Object.defineProperty(al,"__esModule",{value:!0});al.InlineCompletionItemFeature=void 0;const _3=ye,uu=de,du=ge,S3=$e;class D3 extends du.TextDocumentLanguageFeature{constructor(e){super(e,uu.InlineCompletionRequest.type)}fillClientCapabilities(e){let n=(0,du.ensure)((0,du.ensure)(e,"textDocument"),"inlineCompletion");n.dynamicRegistration=!0}initialize(e,n){const i=this.getRegistrationOptions(n,e.inlineCompletionProvider);i&&this.register({id:S3.generateUuid(),registerOptions:i})}registerLanguageProvider(e){const n=e.documentSelector,i={provideInlineCompletionItems:(r,s,o,a)=>{const c=this._client,l=this._client.middleware,h=(g,p,w,v)=>c.sendRequest(uu.InlineCompletionRequest.type,c.code2ProtocolConverter.asInlineCompletionParams(g,p,w),v).then(x=>v.isCancellationRequested?null:c.protocol2CodeConverter.asInlineCompletionResult(x,v),x=>c.handleFailedRequest(uu.InlineCompletionRequest.type,v,x,null));return l.provideInlineCompletionItems?l.provideInlineCompletionItems(r,s,o,a,h):h(r,s,o,a)}};return[_3.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(n),i),i]}}al.InlineCompletionItemFeature=D3;Object.defineProperty(jt,"__esModule",{value:!0});jt.ProposedFeatures=jt.BaseLanguageClient=jt.MessageTransports=jt.SuspendMode=jt.State=jt.CloseAction=jt.ErrorAction=jt.RevealOutputChannelOn=void 0;const Je=ye,K=de,x3=Sc,k3=Fc,ti=Ve,la=Wt,Qp=$e,T3=Go,Xn=ge,R3=Ni,Jp=Mc,Yp=er,Jr=bn,E3=Oc,P3=Ac,I3=Lc,F3=Nc,M3=$c,O3=H1,A3=qc,L3=Hc,N3=jc,$3=Wc,fu=tr,q3=zc,H3=Bc,j3=Vc,W3=Kc,U3=Gc,z3=Qc,B3=Jc,V3=ys,K3=Yc,G3=Xc,Q3=Zc,J3=el,Y3=tl,X3=nl,Yr=vn,Z3=il,e_=rl,t_=sl,n_=ol,i_=al;var xr;(function(t){t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Never=4]="Never"})(xr||(jt.RevealOutputChannelOn=xr={}));var xo;(function(t){t[t.Continue=1]="Continue",t[t.Shutdown=2]="Shutdown"})(xo||(jt.ErrorAction=xo={}));var nr;(function(t){t[t.DoNotRestart=1]="DoNotRestart",t[t.Restart=2]="Restart"})(nr||(jt.CloseAction=nr={}));var ho;(function(t){t[t.Stopped=1]="Stopped",t[t.Starting=3]="Starting",t[t.Running=2]="Running"})(ho||(jt.State=ho={}));var Xp;(function(t){t.off="off",t.on="on"})(Xp||(jt.SuspendMode=Xp={}));var dh;(function(t){function e(n){return n==null?!1:typeof n=="boolean"||typeof n=="object"&&n!==null&&ti.stringArray(n.enabledCommands)?n:!1}t.sanitizeIsTrusted=e})(dh||(dh={}));class r_{constructor(e,n){this.client=e,this.maxRestartCount=n,this.restarts=[]}error(e,n,i){return i&&i<=3?{action:xo.Continue}:{action:xo.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:nr.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?{action:nr.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:nr.Restart})}}var Re;(function(t){t.Initial="initial",t.Starting="starting",t.StartFailed="startFailed",t.Running="running",t.Stopping="stopping",t.Stopped="stopped"})(Re||(Re={}));var Zp;(function(t){function e(n){return n&&K.MessageReader.is(n.reader)&&K.MessageWriter.is(n.writer)}t.is=e})(Zp||(jt.MessageTransports=Zp={}));class Nr{constructor(e,n,i){var s;this._traceFormat=K.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new la.Semaphore(1),this._id=e,this._name=n,i=i||{};const r={isTrusted:!1,supportHtml:!1};i.markdown!==void 0&&(r.isTrusted=dh.sanitizeIsTrusted(i.markdown.isTrusted),r.supportHtml=i.markdown.supportHtml===!0),this._clientOptions={documentSelector:i.documentSelector??[],synchronize:i.synchronize??{},diagnosticCollectionName:i.diagnosticCollectionName,outputChannelName:i.outputChannelName??this._name,revealOutputChannelOn:i.revealOutputChannelOn??xr.Error,stdioEncoding:i.stdioEncoding??"utf8",initializationOptions:i.initializationOptions,initializationFailedHandler:i.initializationFailedHandler,progressOnInitialization:!!i.progressOnInitialization,errorHandler:i.errorHandler??this.createDefaultErrorHandler((s=i.connectionOptions)==null?void 0:s.maxRestartCount),middleware:i.middleware??{},uriConverters:i.uriConverters,workspaceFolder:i.workspaceFolder,connectionOptions:i.connectionOptions,markdown:r,diagnosticPullOptions:i.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:i.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Re.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,i.outputChannel?(this._outputChannel=i.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=i.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new la.Semaphore(1),this._pendingChangeDelayer=new la.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new la.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new K.Emitter,this._stateChangeEmitter=new K.Emitter,this._trace=K.Trace.Off,this._tracer={log:(o,a)=>{ti.string(o)?this.logTrace(o,a):this.logObjectTrace(o)}},this._c2p=x3.createConverter(i.uriConverters?i.uriConverters.code2Protocol:void 0),this._p2c=k3.createConverter(i.uriConverters?i.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=Je.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){let n=this.getPublicState();this._state=e;let i=this.getPublicState();i!==n&&this._stateChangeEmitter.fire({oldState:n,newState:i})}getPublicState(){switch(this.$state){case Re.Starting:return ho.Starting;case Re.Running:return ho.Running;default:return ho.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...n){var s;if(this.$state===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));const i=await this.$start();this._didChangeTextDocumentFeature.syncKind===K.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(i);const r=(s=this._clientOptions.middleware)==null?void 0:s.sendRequest;if(r!==void 0){let o,a;return n.length===1?K.CancellationToken.is(n[0])?a=n[0]:o=n[0]:n.length===2&&(o=n[0],a=n[1]),r(e,o,a,(c,l,h)=>{const g=[];return l!==void 0&&g.push(l),h!==void 0&&g.push(h),i.sendRequest(c,...g)})}else return i.sendRequest(e,...n)}onRequest(e,n){const i=typeof e=="string"?e:e.method;this._requestHandlers.set(i,n);const r=this.activeConnection();let s;return r!==void 0?(this._requestDisposables.set(i,r.onRequest(e,n)),s={dispose:()=>{const o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}):(this._pendingRequestHandlers.set(i,n),s={dispose:()=>{this._pendingRequestHandlers.delete(i);const o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}),{dispose:()=>{this._requestHandlers.delete(i),s.dispose()}}}async sendNotification(e,n){var a;if(this.$state===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));const i=this._didChangeTextDocumentFeature.syncKind===K.TextDocumentSyncKind.Full;let r;i&&typeof e!="string"&&e.method===K.DidOpenTextDocumentNotification.method&&(r=n==null?void 0:n.textDocument.uri,this._pendingOpenNotifications.add(r));const s=await this.$start();i&&await this.sendPendingFullTextDocumentChanges(s),r!==void 0&&this._pendingOpenNotifications.delete(r);const o=(a=this._clientOptions.middleware)==null?void 0:a.sendNotification;return o?o(e,s.sendNotification.bind(s),n):s.sendNotification(e,n)}onNotification(e,n){const i=typeof e=="string"?e:e.method;this._notificationHandlers.set(i,n);const r=this.activeConnection();let s;return r!==void 0?(this._notificationDisposables.set(i,r.onNotification(e,n)),s={dispose:()=>{const o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}):(this._pendingNotificationHandlers.set(i,n),s={dispose:()=>{this._pendingNotificationHandlers.delete(i);const o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}),{dispose:()=>{this._notificationHandlers.delete(i),s.dispose()}}}async sendProgress(e,n,i){if(this.$state===Re.StartFailed||this.$state===Re.Stopping||this.$state===Re.Stopped)return Promise.reject(new K.ResponseError(K.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,n,i)}catch(r){throw this.error(`Sending progress for token ${n} failed.`,r),r}}onProgress(e,n,i){var c;this._progressHandlers.set(n,{type:e,handler:i});const r=this.activeConnection();let s;const o=(c=this._clientOptions.middleware)==null?void 0:c.handleWorkDoneProgress,a=K.WorkDoneProgress.is(e)&&o!==void 0?l=>{o(n,l,()=>i(l))}:i;return r!==void 0?(this._progressDisposables.set(n,r.onProgress(e,n,a)),s={dispose:()=>{const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}):(this._pendingProgressHandlers.set(n,{type:e,handler:i}),s={dispose:()=>{this._pendingProgressHandlers.delete(n);const l=this._progressDisposables.get(n);l!==void 0&&(l.dispose(),this._progressDisposables.delete(n))}}),{dispose:()=>{this._progressHandlers.delete(n),s.dispose()}}}createDefaultErrorHandler(e){if(e!==void 0&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new r_(this,e??4)}async setTrace(e){this._trace=e;const n=this.activeConnection();n!==void 0&&await n.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof K.ResponseError){const n=e;return` Message: ${n.message}
69
69
  Code: ${n.code} ${n.data?`
70
- `+n.data.toString():""}`}return e instanceof Error?ti.string(e.stack)?e.stack:e.message:ti.string(e)?e:e.toString()}debug(e,n,i=!0){this.logOutputMessage(K.MessageType.Debug,xr.Debug,"Debug",e,n,i)}info(e,n,i=!0){this.logOutputMessage(K.MessageType.Info,xr.Info,"Info",e,n,i)}warn(e,n,i=!0){this.logOutputMessage(K.MessageType.Warning,xr.Warn,"Warn",e,n,i)}error(e,n,i=!0){this.logOutputMessage(K.MessageType.Error,xr.Error,"Error",e,n,i)}logOutputMessage(e,n,i,r,s,o){this.outputChannel.appendLine(`[${i.padEnd(5)} - ${new Date().toLocaleTimeString()}] ${r}`),s!=null&&this.outputChannel.appendLine(this.data2String(s)),(o==="force"||o&&this._clientOptions.revealOutputChannelOn<=n)&&this.showNotificationMessage(e,r)}showNotificationMessage(e,n){n=n??"A request has failed. See the output for more information.",(e===K.MessageType.Error?Je.window.showErrorMessage:e===K.MessageType.Warning?Je.window.showWarningMessage:Je.window.showInformationMessage)(n,"Go to output").then(r=>{r!==void 0&&this.outputChannel.show(!0)})}logTrace(e,n){this.traceOutputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),n&&this.traceOutputChannel.appendLine(this.data2String(n))}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===Re.Initial||this.$state===Re.Stopping||this.$state===Re.Stopped}needsStop(){return this.$state===Re.Starting||this.$state===Re.Running}activeConnection(){return this.$state===Re.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===Re.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===Re.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;const[e,n,i]=this.createOnStartPromise();this._onStart=e,this._diagnostics===void 0&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?Je.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):Je.languages.createDiagnosticCollection());for(const[r,s]of this._notificationHandlers)this._pendingNotificationHandlers.has(r)||this._pendingNotificationHandlers.set(r,s);for(const[r,s]of this._requestHandlers)this._pendingRequestHandlers.has(r)||this._pendingRequestHandlers.set(r,s);for(const[r,s]of this._progressHandlers)this._pendingProgressHandlers.has(r)||this._pendingProgressHandlers.set(r,s);this.$state=Re.Starting;try{const r=await this.createConnection();r.onNotification(K.LogMessageNotification.type,s=>{switch(s.type){case K.MessageType.Error:this.error(s.message,void 0,!1);break;case K.MessageType.Warning:this.warn(s.message,void 0,!1);break;case K.MessageType.Info:this.info(s.message,void 0,!1);break;case K.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),r.onNotification(K.ShowMessageNotification.type,s=>{switch(s.type){case K.MessageType.Error:Je.window.showErrorMessage(s.message);break;case K.MessageType.Warning:Je.window.showWarningMessage(s.message);break;case K.MessageType.Info:Je.window.showInformationMessage(s.message);break;default:Je.window.showInformationMessage(s.message)}}),r.onRequest(K.ShowMessageRequest.type,s=>{let o;switch(s.type){case K.MessageType.Error:o=Je.window.showErrorMessage;break;case K.MessageType.Warning:o=Je.window.showWarningMessage;break;case K.MessageType.Info:o=Je.window.showInformationMessage;break;default:o=Je.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),r.onNotification(K.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),r.onRequest(K.ShowDocumentRequest.type,async s=>{var c;const o=async l=>{const h=this.protocol2CodeConverter.asUri(l.uri);try{if(l.external===!0)return{success:await Je.env.openExternal(h)};{const g={};return l.selection!==void 0&&(g.selection=this.protocol2CodeConverter.asRange(l.selection)),l.takeFocus===void 0||l.takeFocus===!1?g.preserveFocus=!0:l.takeFocus===!0&&(g.preserveFocus=!1),await Je.window.showTextDocument(h,g),{success:!0}}}catch{return{success:!1}}},a=(c=this._clientOptions.middleware.window)==null?void 0:c.showDocument;return a!==void 0?a(s,o):o(s)}),r.listen(),await this.initialize(r),n()}catch(r){this.$state=Re.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,r,"force"),i(r)}return this._onStart}createOnStartPromise(){let e,n;return[new Promise((r,s)=>{e=r,n=s}),e,n]}async initialize(e){this.refreshTrace(e,!1);const n=this._clientOptions.initializationOptions,[i,r]=this._clientOptions.workspaceFolder!==void 0?[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:Je.env.appName,version:Je.version},locale:this.getLocale(),rootPath:i||null,rootUri:i?this._c2p.asUri(Je.Uri.file(i)):null,capabilities:this.computeClientCapabilities(),initializationOptions:ti.func(n)?n():n,trace:K.Trace.toString(this._trace),workspaceFolders:r};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){const o=Gp.generateUuid(),a=new k3.ProgressPart(e,o);s.workDoneToken=o;try{const c=await this.doInitialize(e,s);return a.done(),c}catch(c){throw a.cancel(),c}}else return this.doInitialize(e,s)}async doInitialize(e,n){try{const i=await e.initialize(n);if(i.capabilities.positionEncoding!==void 0&&i.capabilities.positionEncoding!==K.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${i.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=i,this.$state=Re.Running;let r;ti.number(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===K.TextDocumentSyncKind.None?r={openClose:!1,change:K.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!==void 0&&i.capabilities.textDocumentSync!==null&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onNotification(K.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(K.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(K.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(K.ApplyWorkspaceEditRequest.type,s=>this.handleApplyWorkspaceEdit(s));for(const[s,o]of this._pendingNotificationHandlers)this._notificationDisposables.set(s,e.onNotification(s,o));this._pendingNotificationHandlers.clear();for(const[s,o]of this._pendingRequestHandlers)this._requestDisposables.set(s,e.onRequest(s,o));this._pendingRequestHandlers.clear();for(const[s,o]of this._pendingProgressHandlers)this._progressDisposables.set(s,e.onProgress(o.type,s,o.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(K.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),i}catch(i){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(i)?this.initialize(e):this.stop():i instanceof K.ResponseError&&i.data&&i.data.retry?Je.window.showErrorMessage(i.message,{title:"Retry",id:"retry"}).then(r=>{r&&r.id==="retry"?this.initialize(e):this.stop()}):(i&&i.message&&Je.window.showErrorMessage(i.message),this.error("Server initialization failed.",i),this.stop()),i}}_clientGetRootPath(){let e=Je.workspace.workspaceFolders;if(!e||e.length===0)return;let n=e[0];if(n.uri.scheme==="file")return n.uri.fsPath}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,n){if(this.$state===Re.Stopped||this.$state===Re.Initial)return;if(this.$state===Re.Stopping){if(this._onStop!==void 0)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const i=this.activeConnection();if(i===void 0||this.$state!==Re.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=Re.Stopping,this.cleanUp(e);const r=new Promise(o=>{(0,K.RAL)().timer.setTimeout(o,n)}),s=(async o=>(await o.shutdown(),await o.exit(),o))(i);return this._onStop=Promise.race([r,s]).then(o=>{if(o!==void 0)o.end(),o.dispose();else throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out")},o=>{throw this.error("Stopping server failed",o,!1),o}).finally(()=>{this.$state=Re.Stopped,e==="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 n=this._listeners.splice(0,this._listeners.length);for(const i of n)i.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const i of Array.from(this._features.entries()).map(r=>r[1]).reverse())i.clear();e==="stop"&&this._diagnostics!==void 0&&(this._diagnostics.dispose(),this._diagnostics=void 0),this._idleInterval!==void 0&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){this._outputChannel!==void 0&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var s;const n=this;async function i(o){return n._fileEvents.push(o),n._fileEventDelayer.trigger(async()=>{await n.sendNotification(K.DidChangeWatchedFilesNotification.type,{changes:n._fileEvents}),n._fileEvents=[]})}const r=(s=this.clientOptions.middleware)==null?void 0:s.workspace;(r!=null&&r.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)).catch(o=>{n.error("Notify file events failed.",o)})}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock(async()=>{try{const n=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(n.length===0)return;for(const i of n){const r=this.code2ProtocolConverter.asChangeTextDocumentParams(i);await e.sendNotification(K.DidChangeTextDocumentNotification.type,r),this._didChangeTextDocumentFeature.notificationSent(i,K.DidChangeTextDocumentNotification.type,r)}}catch(n){throw this.error("Sending pending changes failed",n,!1),n}})}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger(async()=>{const e=this.activeConnection();if(e===void 0){this.triggerPendingChangeDelivery();return}await this.sendPendingFullTextDocumentChanges(e)}).catch(e=>this.error("Delivering pending changes failed",e,!1))}handleDiagnostics(e){if(!this._diagnostics)return;const n=e.uri;this._diagnosticQueueState.state==="busy"&&this._diagnosticQueueState.document===n&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,K.RAL)().timer.setImmediate(()=>{this.workDiagnosticQueue()})}workDiagnosticQueue(){if(this._diagnosticQueueState.state==="busy")return;const e=this._diagnosticQueue.entries().next();if(e.done===!0)return;const[n,i]=e.value;this._diagnosticQueue.delete(n);const r=new Je.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:n,tokenSource:r},this._p2c.asDiagnostics(i,r.token).then(s=>{if(!r.token.isCancellationRequested){const o=this._p2c.asUri(n),a=this.clientOptions.middleware;a.handleDiagnostics?a.handleDiagnostics(o,s,(c,l)=>this.setDiagnostics(c,l)):this.setDiagnostics(o,s)}}).finally(()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()})}setDiagnostics(e,n){this._diagnostics&&this._diagnostics.set(e,n)}getLocale(){return Je.env.language}async $start(){if(this.$state===Re.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}async createConnection(){let e=(r,s,o)=>{this.handleConnectionError(r,s,o).catch(a=>this.error("Handling connection error failed",a))},n=()=>{this.handleConnectionClosed().catch(r=>this.error("Handling connection close failed",r))};const i=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=s_(i.reader,i.writer,e,n,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Re.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:nr.DoNotRestart};if(this.$state!==Re.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===nr.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,e.handled===!0?!1:"force"),this.cleanUp("stop"),this.$state===Re.Starting?this.$state=Re.StartFailed:this.$state=Re.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===nr.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=Re.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(n=>this.error("Restarting server failed",n,"force")))}async handleConnectionError(e,n,i){const r=await this._clientOptions.errorHandler.error(e,n,i);r.action===xo.Shutdown?(this.error(r.message??`Client ${this._name}: connection to server is erroring.
70
+ `+n.data.toString():""}`}return e instanceof Error?ti.string(e.stack)?e.stack:e.message:ti.string(e)?e:e.toString()}debug(e,n,i=!0){this.logOutputMessage(K.MessageType.Debug,xr.Debug,"Debug",e,n,i)}info(e,n,i=!0){this.logOutputMessage(K.MessageType.Info,xr.Info,"Info",e,n,i)}warn(e,n,i=!0){this.logOutputMessage(K.MessageType.Warning,xr.Warn,"Warn",e,n,i)}error(e,n,i=!0){this.logOutputMessage(K.MessageType.Error,xr.Error,"Error",e,n,i)}logOutputMessage(e,n,i,r,s,o){this.outputChannel.appendLine(`[${i.padEnd(5)} - ${new Date().toLocaleTimeString()}] ${r}`),s!=null&&this.outputChannel.appendLine(this.data2String(s)),(o==="force"||o&&this._clientOptions.revealOutputChannelOn<=n)&&this.showNotificationMessage(e,r)}showNotificationMessage(e,n){n=n??"A request has failed. See the output for more information.",(e===K.MessageType.Error?Je.window.showErrorMessage:e===K.MessageType.Warning?Je.window.showWarningMessage:Je.window.showInformationMessage)(n,"Go to output").then(r=>{r!==void 0&&this.outputChannel.show(!0)})}logTrace(e,n){this.traceOutputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),n&&this.traceOutputChannel.appendLine(this.data2String(n))}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===Re.Initial||this.$state===Re.Stopping||this.$state===Re.Stopped}needsStop(){return this.$state===Re.Starting||this.$state===Re.Running}activeConnection(){return this.$state===Re.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===Re.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===Re.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;const[e,n,i]=this.createOnStartPromise();this._onStart=e,this._diagnostics===void 0&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?Je.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):Je.languages.createDiagnosticCollection());for(const[r,s]of this._notificationHandlers)this._pendingNotificationHandlers.has(r)||this._pendingNotificationHandlers.set(r,s);for(const[r,s]of this._requestHandlers)this._pendingRequestHandlers.has(r)||this._pendingRequestHandlers.set(r,s);for(const[r,s]of this._progressHandlers)this._pendingProgressHandlers.has(r)||this._pendingProgressHandlers.set(r,s);this.$state=Re.Starting;try{const r=await this.createConnection();r.onNotification(K.LogMessageNotification.type,s=>{switch(s.type){case K.MessageType.Error:this.error(s.message,void 0,!1);break;case K.MessageType.Warning:this.warn(s.message,void 0,!1);break;case K.MessageType.Info:this.info(s.message,void 0,!1);break;case K.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),r.onNotification(K.ShowMessageNotification.type,s=>{switch(s.type){case K.MessageType.Error:Je.window.showErrorMessage(s.message);break;case K.MessageType.Warning:Je.window.showWarningMessage(s.message);break;case K.MessageType.Info:Je.window.showInformationMessage(s.message);break;default:Je.window.showInformationMessage(s.message)}}),r.onRequest(K.ShowMessageRequest.type,s=>{let o;switch(s.type){case K.MessageType.Error:o=Je.window.showErrorMessage;break;case K.MessageType.Warning:o=Je.window.showWarningMessage;break;case K.MessageType.Info:o=Je.window.showInformationMessage;break;default:o=Je.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),r.onNotification(K.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),r.onRequest(K.ShowDocumentRequest.type,async s=>{var c;const o=async l=>{const h=this.protocol2CodeConverter.asUri(l.uri);try{if(l.external===!0)return{success:await Je.env.openExternal(h)};{const g={};return l.selection!==void 0&&(g.selection=this.protocol2CodeConverter.asRange(l.selection)),l.takeFocus===void 0||l.takeFocus===!1?g.preserveFocus=!0:l.takeFocus===!0&&(g.preserveFocus=!1),await Je.window.showTextDocument(h,g),{success:!0}}}catch{return{success:!1}}},a=(c=this._clientOptions.middleware.window)==null?void 0:c.showDocument;return a!==void 0?a(s,o):o(s)}),r.listen(),await this.initialize(r),n()}catch(r){this.$state=Re.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,r,"force"),i(r)}return this._onStart}createOnStartPromise(){let e,n;return[new Promise((r,s)=>{e=r,n=s}),e,n]}async initialize(e){this.refreshTrace(e,!1);const n=this._clientOptions.initializationOptions,[i,r]=this._clientOptions.workspaceFolder!==void 0?[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:Je.env.appName,version:Je.version},locale:this.getLocale(),rootPath:i||null,rootUri:i?this._c2p.asUri(Je.Uri.file(i)):null,capabilities:this.computeClientCapabilities(),initializationOptions:ti.func(n)?n():n,trace:K.Trace.toString(this._trace),workspaceFolders:r};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){const o=Qp.generateUuid(),a=new T3.ProgressPart(e,o);s.workDoneToken=o;try{const c=await this.doInitialize(e,s);return a.done(),c}catch(c){throw a.cancel(),c}}else return this.doInitialize(e,s)}async doInitialize(e,n){try{const i=await e.initialize(n);if(i.capabilities.positionEncoding!==void 0&&i.capabilities.positionEncoding!==K.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${i.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=i,this.$state=Re.Running;let r;ti.number(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===K.TextDocumentSyncKind.None?r={openClose:!1,change:K.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!==void 0&&i.capabilities.textDocumentSync!==null&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onNotification(K.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(K.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(K.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(K.ApplyWorkspaceEditRequest.type,s=>this.handleApplyWorkspaceEdit(s));for(const[s,o]of this._pendingNotificationHandlers)this._notificationDisposables.set(s,e.onNotification(s,o));this._pendingNotificationHandlers.clear();for(const[s,o]of this._pendingRequestHandlers)this._requestDisposables.set(s,e.onRequest(s,o));this._pendingRequestHandlers.clear();for(const[s,o]of this._pendingProgressHandlers)this._progressDisposables.set(s,e.onProgress(o.type,s,o.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(K.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),i}catch(i){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(i)?this.initialize(e):this.stop():i instanceof K.ResponseError&&i.data&&i.data.retry?Je.window.showErrorMessage(i.message,{title:"Retry",id:"retry"}).then(r=>{r&&r.id==="retry"?this.initialize(e):this.stop()}):(i&&i.message&&Je.window.showErrorMessage(i.message),this.error("Server initialization failed.",i),this.stop()),i}}_clientGetRootPath(){let e=Je.workspace.workspaceFolders;if(!e||e.length===0)return;let n=e[0];if(n.uri.scheme==="file")return n.uri.fsPath}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,n){if(this.$state===Re.Stopped||this.$state===Re.Initial)return;if(this.$state===Re.Stopping){if(this._onStop!==void 0)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const i=this.activeConnection();if(i===void 0||this.$state!==Re.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=Re.Stopping,this.cleanUp(e);const r=new Promise(o=>{(0,K.RAL)().timer.setTimeout(o,n)}),s=(async o=>(await o.shutdown(),await o.exit(),o))(i);return this._onStop=Promise.race([r,s]).then(o=>{if(o!==void 0)o.end(),o.dispose();else throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out")},o=>{throw this.error("Stopping server failed",o,!1),o}).finally(()=>{this.$state=Re.Stopped,e==="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 n=this._listeners.splice(0,this._listeners.length);for(const i of n)i.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const i of Array.from(this._features.entries()).map(r=>r[1]).reverse())i.clear();e==="stop"&&this._diagnostics!==void 0&&(this._diagnostics.dispose(),this._diagnostics=void 0),this._idleInterval!==void 0&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){this._outputChannel!==void 0&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var s;const n=this;async function i(o){return n._fileEvents.push(o),n._fileEventDelayer.trigger(async()=>{await n.sendNotification(K.DidChangeWatchedFilesNotification.type,{changes:n._fileEvents}),n._fileEvents=[]})}const r=(s=this.clientOptions.middleware)==null?void 0:s.workspace;(r!=null&&r.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)).catch(o=>{n.error("Notify file events failed.",o)})}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock(async()=>{try{const n=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(n.length===0)return;for(const i of n){const r=this.code2ProtocolConverter.asChangeTextDocumentParams(i);await e.sendNotification(K.DidChangeTextDocumentNotification.type,r),this._didChangeTextDocumentFeature.notificationSent(i,K.DidChangeTextDocumentNotification.type,r)}}catch(n){throw this.error("Sending pending changes failed",n,!1),n}})}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger(async()=>{const e=this.activeConnection();if(e===void 0){this.triggerPendingChangeDelivery();return}await this.sendPendingFullTextDocumentChanges(e)}).catch(e=>this.error("Delivering pending changes failed",e,!1))}handleDiagnostics(e){if(!this._diagnostics)return;const n=e.uri;this._diagnosticQueueState.state==="busy"&&this._diagnosticQueueState.document===n&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,K.RAL)().timer.setImmediate(()=>{this.workDiagnosticQueue()})}workDiagnosticQueue(){if(this._diagnosticQueueState.state==="busy")return;const e=this._diagnosticQueue.entries().next();if(e.done===!0)return;const[n,i]=e.value;this._diagnosticQueue.delete(n);const r=new Je.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:n,tokenSource:r},this._p2c.asDiagnostics(i,r.token).then(s=>{if(!r.token.isCancellationRequested){const o=this._p2c.asUri(n),a=this.clientOptions.middleware;a.handleDiagnostics?a.handleDiagnostics(o,s,(c,l)=>this.setDiagnostics(c,l)):this.setDiagnostics(o,s)}}).finally(()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()})}setDiagnostics(e,n){this._diagnostics&&this._diagnostics.set(e,n)}getLocale(){return Je.env.language}async $start(){if(this.$state===Re.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}async createConnection(){let e=(r,s,o)=>{this.handleConnectionError(r,s,o).catch(a=>this.error("Handling connection error failed",a))},n=()=>{this.handleConnectionClosed().catch(r=>this.error("Handling connection close failed",r))};const i=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=o_(i.reader,i.writer,e,n,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Re.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:nr.DoNotRestart};if(this.$state!==Re.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===nr.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,e.handled===!0?!1:"force"),this.cleanUp("stop"),this.$state===Re.Starting?this.$state=Re.StartFailed:this.$state=Re.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===nr.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=Re.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(n=>this.error("Restarting server failed",n,"force")))}async handleConnectionError(e,n,i){const r=await this._clientOptions.errorHandler.error(e,n,i);r.action===xo.Shutdown?(this.error(r.message??`Client ${this._name}: connection to server is erroring.
71
71
  ${e.message}
72
72
  Shutting down server.`,void 0,r.handled===!0?!1:"force"),this.stop().catch(s=>{this.error("Stopping server failed",s,!1)})):this.error(r.message??`Client ${this._name}: connection to server is erroring.
73
- ${e.message}`,void 0,r.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(Je.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,n=!1){const i=Je.workspace.getConfiguration(this._id);let r=K.Trace.Off,s=K.TraceFormat.Text;if(i){const o=i.get("trace.server","off");typeof o=="string"?r=K.Trace.fromString(o):(r=K.Trace.fromString(i.get("trace.server.verbosity","off")),s=K.TraceFormat.fromString(i.get("trace.server.format","text")))}this._trace=r,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:n,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let n=this._clientOptions.synchronize.fileEvents;if(!n)return;let i;ti.array(n)?i=n:i=[n],i&&this._dynamicFeatures.get(K.DidChangeWatchedFilesNotification.type.method).registerRaw(Gp.generateUuid(),i)}registerFeatures(e){for(let n of e)this.registerFeature(n)}registerFeature(e){if(this._features.push(e),Xn.DynamicFeature.is(e)){const n=e.registrationType;this._dynamicFeatures.set(n.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const n=this.getFeature(K.NotebookDocumentSyncRegistrationType.method);return n===void 0||!(n instanceof Qp.NotebookDocumentSyncFeature)?!1:n.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new Jp.ConfigurationFeature(this)),this.registerFeature(new Jr.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new Jr.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new Jr.WillSaveFeature(this)),this.registerFeature(new Jr.WillSaveWaitUntilFeature(this)),this.registerFeature(new Jr.DidSaveTextDocumentFeature(this)),this.registerFeature(new Jr.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new j3.FileSystemWatcherFeature(this,n=>this.notifyFileEvent(n))),this.registerFeature(new R3.CompletionItemFeature(this)),this.registerFeature(new E3.HoverFeature(this)),this.registerFeature(new I3.SignatureHelpFeature(this)),this.registerFeature(new P3.DefinitionFeature(this)),this.registerFeature(new A3.ReferencesFeature(this)),this.registerFeature(new F3.DocumentHighlightFeature(this)),this.registerFeature(new M3.DocumentSymbolFeature(this)),this.registerFeature(new O3.WorkspaceSymbolFeature(this)),this.registerFeature(new L3.CodeActionFeature(this)),this.registerFeature(new N3.CodeLensFeature(this)),this.registerFeature(new fu.DocumentFormattingFeature(this)),this.registerFeature(new fu.DocumentRangeFormattingFeature(this)),this.registerFeature(new fu.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new $3.RenameFeature(this)),this.registerFeature(new q3.DocumentLinkFeature(this)),this.registerFeature(new H3.ExecuteCommandFeature(this)),this.registerFeature(new Jp.SyncConfigurationFeature(this)),this.registerFeature(new z3.TypeDefinitionFeature(this)),this.registerFeature(new U3.ImplementationFeature(this)),this.registerFeature(new W3.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new B3.WorkspaceFoldersFeature(this)),this.registerFeature(new V3.FoldingRangeFeature(this)),this.registerFeature(new K3.DeclarationFeature(this)),this.registerFeature(new G3.SelectionRangeFeature(this)),this.registerFeature(new Q3.ProgressFeature(this)),this.registerFeature(new J3.CallHierarchyFeature(this)),this.registerFeature(new Y3.SemanticTokensFeature(this)),this.registerFeature(new X3.LinkedEditingFeature(this)),this.registerFeature(new Yr.DidCreateFilesFeature(this)),this.registerFeature(new Yr.DidRenameFilesFeature(this)),this.registerFeature(new Yr.DidDeleteFilesFeature(this)),this.registerFeature(new Yr.WillCreateFilesFeature(this)),this.registerFeature(new Yr.WillRenameFilesFeature(this)),this.registerFeature(new Yr.WillDeleteFilesFeature(this)),this.registerFeature(new Z3.TypeHierarchyFeature(this)),this.registerFeature(new e_.InlineValueFeature(this)),this.registerFeature(new t_.InlayHintsFeature(this)),this.registerFeature(new T3.DiagnosticFeature(this)),this.registerFeature(new Qp.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(fh.createAll(this))}fillInitializeParams(e){for(let n of this._features)ti.func(n.fillInitializeParams)&&n.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,Xn.ensure)(e,"workspace").applyEdit=!0;const n=(0,Xn.ensure)((0,Xn.ensure)(e,"workspace"),"workspaceEdit");n.documentChanges=!0,n.resourceOperations=[K.ResourceOperationKind.Create,K.ResourceOperationKind.Rename,K.ResourceOperationKind.Delete],n.failureHandling=K.FailureHandlingKind.TextOnlyTransactional,n.normalizesLineEndings=!0,n.changeAnnotationSupport={groupsOnLabel:!0};const i=(0,Xn.ensure)((0,Xn.ensure)(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!1,i.tagSupport={valueSet:[K.DiagnosticTag.Unnecessary,K.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;const r=(0,Xn.ensure)(e,"window"),s=(0,Xn.ensure)(r,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};const o=(0,Xn.ensure)(r,"showDocument");o.support=!0;const a=(0,Xn.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(Nr.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.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(let c of this._features)c.fillClientCapabilities(e);return e}initializeFeatures(e){const n=this._clientOptions.documentSelector;for(const i of this._features)ti.func(i.preInitialize)&&i.preInitialize(this._capabilities,n);for(const i of this._features)i.initialize(this._capabilities,n)}async handleRegistrationRequest(e){var i;const n=(i=this.clientOptions.middleware)==null?void 0:i.handleRegisterCapability;return n?n(e,r=>this.doRegisterCapability(r)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(const n of e.registrations)this._ignoredRegistrations.add(n.id);return}for(const n of e.registrations){const i=this._dynamicFeatures.get(n.method);if(i===void 0)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Registration failed.`));const r=n.registerOptions??{};r.documentSelector=r.documentSelector??this._clientOptions.documentSelector;const s={id:n.id,registerOptions:r};try{i.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){var i;const n=(i=this.clientOptions.middleware)==null?void 0:i.handleUnregisterCapability;return n?n(e,r=>this.doUnregisterCapability(r)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(const n of e.unregisterations){if(this._ignoredRegistrations.has(n.id))continue;const i=this._dynamicFeatures.get(n.method);if(!i)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Unregistration failed.`));i.unregister(n.id)}}async handleApplyWorkspaceEdit(e){const n=e.edit,i=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(n)),r=new Map;Je.workspace.textDocuments.forEach(o=>r.set(o.uri.toString(),o));let s=!1;if(n.documentChanges){for(const o of n.documentChanges)if(K.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){const a=this._p2c.asUri(o.textDocument.uri).toString(),c=r.get(a);if(c&&c.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):ti.asPromise(Je.workspace.applyEdit(i).then(o=>({applied:o})))}handleFailedRequest(e,n,i,r,s=!0){if(i instanceof K.ResponseError){if(i.code===K.ErrorCodes.PendingResponseRejected||i.code===K.ErrorCodes.ConnectionInactive)return r;if(i.code===K.LSPErrorCodes.RequestCancelled||i.code===K.LSPErrorCodes.ServerCancelled){if(n!==void 0&&n.isCancellationRequested)return r;throw i.data!==void 0?new Xn.LSPCancellationError(i.data):new Je.CancellationError}else if(i.code===K.LSPErrorCodes.ContentModified){if(Nr.RequestsToCancelOnContentModified.has(e.method)||Nr.CancellableResolveCalls.has(e.method))throw new Je.CancellationError;return r}}throw this.error(`Request ${e.method} failed.`,i,s),i}}jt.BaseLanguageClient=Nr;Nr.RequestsToCancelOnContentModified=new Set([K.SemanticTokensRequest.method,K.SemanticTokensRangeRequest.method,K.SemanticTokensDeltaRequest.method]);Nr.CancellableResolveCalls=new Set([K.CompletionResolveRequest.method,K.CodeLensResolveRequest.method,K.CodeActionResolveRequest.method,K.InlayHintResolveRequest.method,K.DocumentLinkResolveRequest.method,K.WorkspaceSymbolResolveRequest.method]);class r_{error(e){(0,K.RAL)().console.error(e)}warn(e){(0,K.RAL)().console.warn(e)}info(e){(0,K.RAL)().console.info(e)}log(e){(0,K.RAL)().console.log(e)}}function s_(t,e,n,i,r){const s=new r_,o=(0,K.createProtocolConnection)(t,e,s,r);return o.onError(c=>{n(c[0],c[1],c[2])}),o.onClose(i),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(c,l,h)=>{const g={sendNotification:!1,traceFormat:K.TraceFormat.Text};return h===void 0?o.trace(c,l,g):(ti.boolean(h),o.trace(c,l,h))},initialize:c=>o.sendRequest(K.InitializeRequest.type,c),shutdown:()=>o.sendRequest(K.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(K.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var fh;(function(t){function e(n){return[new n_.InlineCompletionItemFeature(n)]}t.createAll=e})(fh||(jt.ProposedFeatures=fh={}));(function(t){var e=Et&&Et.__createBinding||(Object.create?function(r,s,o,a){a===void 0&&(a=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(r,a,c)}:function(r,s,o,a){a===void 0&&(a=o),r[a]=s[o]}),n=Et&&Et.__exportStar||function(r,s){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,r,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,n(de,t),n(ge,t);var i=Ni;Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return i.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return i.DiagnosticPullMode}}),n(jt,t)})(mu);var D2={},x2={},U1={},Ka={},ce={},Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.stringArray=Rt.array=Rt.func=Rt.error=Rt.number=Rt.string=Rt.boolean=void 0;function o_(t){return t===!0||t===!1}Rt.boolean=o_;function k2(t){return typeof t=="string"||t instanceof String}Rt.string=k2;function a_(t){return typeof t=="number"||t instanceof Number}Rt.number=a_;function c_(t){return t instanceof Error}Rt.error=c_;function l_(t){return typeof t=="function"}Rt.func=l_;function T2(t){return Array.isArray(t)}Rt.array=T2;function u_(t){return T2(t)&&t.every(e=>k2(e))}Rt.stringArray=u_;Object.defineProperty(ce,"__esModule",{value:!0});ce.Message=ce.NotificationType9=ce.NotificationType8=ce.NotificationType7=ce.NotificationType6=ce.NotificationType5=ce.NotificationType4=ce.NotificationType3=ce.NotificationType2=ce.NotificationType1=ce.NotificationType0=ce.NotificationType=ce.RequestType9=ce.RequestType8=ce.RequestType7=ce.RequestType6=ce.RequestType5=ce.RequestType4=ce.RequestType3=ce.RequestType2=ce.RequestType1=ce.RequestType=ce.RequestType0=ce.AbstractMessageSignature=ce.ParameterStructures=ce.ResponseError=ce.ErrorCodes=void 0;const Sr=Rt;var hh;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(hh||(ce.ErrorCodes=hh={}));class z1 extends Error{constructor(e,n,i){super(n),this.code=Sr.number(e)?e:hh.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,z1.prototype)}toJson(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}}ce.ResponseError=z1;class on{constructor(e){this.kind=e}static is(e){return e===on.auto||e===on.byName||e===on.byPosition}toString(){return this.kind}}ce.ParameterStructures=on;on.auto=new on("auto");on.byPosition=new on("byPosition");on.byName=new on("byName");class yt{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return on.auto}}ce.AbstractMessageSignature=yt;class d_ extends yt{constructor(e){super(e,0)}}ce.RequestType0=d_;class f_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType=f_;class h_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType1=h_;class g_ extends yt{constructor(e){super(e,2)}}ce.RequestType2=g_;class p_ extends yt{constructor(e){super(e,3)}}ce.RequestType3=p_;class m_ extends yt{constructor(e){super(e,4)}}ce.RequestType4=m_;class y_ extends yt{constructor(e){super(e,5)}}ce.RequestType5=y_;class b_ extends yt{constructor(e){super(e,6)}}ce.RequestType6=b_;class v_ extends yt{constructor(e){super(e,7)}}ce.RequestType7=v_;class w_ extends yt{constructor(e){super(e,8)}}ce.RequestType8=w_;class C_ extends yt{constructor(e){super(e,9)}}ce.RequestType9=C_;class __ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType=__;class S_ extends yt{constructor(e){super(e,0)}}ce.NotificationType0=S_;class D_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType1=D_;class x_ extends yt{constructor(e){super(e,2)}}ce.NotificationType2=x_;class k_ extends yt{constructor(e){super(e,3)}}ce.NotificationType3=k_;class T_ extends yt{constructor(e){super(e,4)}}ce.NotificationType4=T_;class R_ extends yt{constructor(e){super(e,5)}}ce.NotificationType5=R_;class E_ extends yt{constructor(e){super(e,6)}}ce.NotificationType6=E_;class P_ extends yt{constructor(e){super(e,7)}}ce.NotificationType7=P_;class I_ extends yt{constructor(e){super(e,8)}}ce.NotificationType8=I_;class F_ extends yt{constructor(e){super(e,9)}}ce.NotificationType9=F_;var Zp;(function(t){function e(r){const s=r;return s&&Sr.string(s.method)&&(Sr.string(s.id)||Sr.number(s.id))}t.isRequest=e;function n(r){const s=r;return s&&Sr.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){const s=r;return s&&(s.result!==void 0||!!s.error)&&(Sr.string(s.id)||Sr.number(s.id)||s.id===null)}t.isResponse=i})(Zp||(ce.Message=Zp={}));var Hi={},em;Object.defineProperty(Hi,"__esModule",{value:!0});Hi.LRUCache=Hi.LinkedMap=Hi.Touch=void 0;var nn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(nn||(Hi.Touch=nn={}));class R2{constructor(){this[em]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=nn.None){const i=this._map.get(e);if(i)return n!==nn.None&&this.touch(i,n),i.value}set(e,n,i=nn.None){let r=this._map.get(e);if(r)r.value=n,i!==nn.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case nn.None:this.addItemLast(r);break;case nn.First:this.addItemFirst(r);break;case nn.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:n.key,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}values(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:n.value,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}entries(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:[n.key,n.value],done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}[(em=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==nn.First&&n!==nn.Last)){if(n===nn.First){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===nn.Last){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}}Hi.LinkedMap=R2;class M_ extends R2{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=nn.AsNew){return super.get(e,n)}peek(e){return super.get(e,nn.None)}set(e,n){return super.set(e,n,nn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}Hi.LRUCache=M_;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.Disposable=void 0;var tm;(function(t){function e(n){return{dispose:n}}t.create=e})(tm||(cl.Disposable=tm={}));var wi={},zi={};Object.defineProperty(zi,"__esModule",{value:!0});let gh;function ph(){if(gh===void 0)throw new Error("No runtime abstraction layer installed");return gh}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");gh=n}t.install=e})(ph||(ph={}));zi.default=ph;Object.defineProperty(wi,"__esModule",{value:!0});wi.Emitter=wi.Event=void 0;const O_=zi;var nm;(function(t){const e={dispose(){}};t.None=function(){return e}})(nm||(wi.Event=nm={}));class A_{add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,o=i.length;s<o;s++)try{n.push(i[s].apply(r[s],e))}catch(a){(0,O_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class ll{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new A_),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=ll._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}wi.Emitter=ll;ll._noop=function(){};var dr={};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancellationTokenSource=dr.CancellationToken=void 0;const L_=zi,N_=Rt,mh=wi;var Ga;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:mh.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:mh.Event.None});function e(n){const i=n;return i&&(i===t.None||i===t.Cancelled||N_.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(Ga||(dr.CancellationToken=Ga={}));const $_=Object.freeze(function(t,e){const n=(0,L_.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}});class im{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?$_:(this._emitter||(this._emitter=new mh.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class q_{get token(){return this._token||(this._token=new im),this._token}cancel(){this._token?this._token.cancel():this._token=Ga.Cancelled}dispose(){this._token?this._token instanceof im&&this._token.dispose():this._token=Ga.None}}dr.CancellationTokenSource=q_;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});bs.SharedArrayReceiverStrategy=bs.SharedArraySenderStrategy=void 0;const H_=dr;var ko;(function(t){t.Continue=0,t.Cancelled=1})(ko||(ko={}));class j_{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;const n=new SharedArrayBuffer(4),i=new Int32Array(n,0,1);i[0]=ko.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){const i=this.buffers.get(n);if(i===void 0)return;const r=new Int32Array(i,0,1);Atomics.store(r,0,ko.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}bs.SharedArraySenderStrategy=j_;class W_{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===ko.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class U_{constructor(e){this.token=new W_(e)}cancel(){}dispose(){}}class z_{constructor(){this.kind="request"}createCancellationTokenSource(e){const n=e.$cancellationData;return n===void 0?new H_.CancellationTokenSource:new U_(n)}}bs.SharedArrayReceiverStrategy=z_;var ir={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.Semaphore=void 0;const B_=zi;class V_{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((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,B_.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}}Qo.Semaphore=V_;Object.defineProperty(ir,"__esModule",{value:!0});ir.ReadableStreamMessageReader=ir.AbstractMessageReader=ir.MessageReader=void 0;const yh=zi,Xr=Rt,hu=wi,K_=Qo;var rm;(function(t){function e(n){let i=n;return i&&Xr.func(i.listen)&&Xr.func(i.dispose)&&Xr.func(i.onError)&&Xr.func(i.onClose)&&Xr.func(i.onPartialMessage)}t.is=e})(rm||(ir.MessageReader=rm={}));class E2{constructor(){this.errorEmitter=new hu.Emitter,this.closeEmitter=new hu.Emitter,this.partialMessageEmitter=new hu.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: ${Xr.string(e.message)?e.message:"unknown"}`)}}ir.AbstractMessageReader=E2;var bh;(function(t){function e(n){let i,r;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(r=n.contentDecoder,s.set(r.name,r)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,yh.default)().applicationJson.decoder,a.set(o.name,o)),{charset:i,contentDecoder:r,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(bh||(bh={}));class G_ extends E2{constructor(e,n){super(),this.readable=e,this.options=bh.fromOptions(n),this.buffer=(0,yh.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new K_.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 n=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const i=this.buffer.tryReadHeaders(!0);if(!i)return;const r=i.get("content-length");if(!r){this.fireError(new Error(`Header must provide a Content-Length property.
74
- ${JSON.stringify(Object.fromEntries(i))}`));return}const s=parseInt(r);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${r}`));return}this.nextMessageLength=s}const n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,yh.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}ir.ReadableStreamMessageReader=G_;var rr={};Object.defineProperty(rr,"__esModule",{value:!0});rr.WriteableStreamMessageWriter=rr.AbstractMessageWriter=rr.MessageWriter=void 0;const sm=zi,ro=Rt,Q_=Qo,om=wi,J_="Content-Length: ",am=`\r
75
- `;var cm;(function(t){function e(n){let i=n;return i&&ro.func(i.dispose)&&ro.func(i.onClose)&&ro.func(i.onError)&&ro.func(i.write)}t.is=e})(cm||(rr.MessageWriter=cm={}));class P2{constructor(){this.errorEmitter=new om.Emitter,this.closeEmitter=new om.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,i){this.errorEmitter.fire([this.asError(e),n,i])}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: ${ro.string(e.message)?e.message:"unknown"}`)}}rr.AbstractMessageWriter=P2;var vh;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,sm.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,sm.default)().applicationJson.encoder}}t.fromOptions=e})(vh||(vh={}));class Y_ extends P2{constructor(e,n){super(),this.writable=e,this.options=vh.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Q_.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{const r=[];return r.push(J_,i.byteLength.toString(),am),r.push(am),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,n,i){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}}rr.WriteableStreamMessageWriter=Y_;var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.AbstractMessageBuffer=void 0;const X_=13,Z_=10,eS=`\r
76
- `;class tS{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let n=0,i=0,r=0,s=0;e:for(;i<this._chunks.length;){const l=this._chunks[i];for(r=0;r<l.length;){switch(l[r]){case X_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case Z_:switch(n){case 1:n=2;break;case 3:n=4,r++;break e;default:n=0}break;default:n=0}r++}s+=l.byteLength,i++}if(n!==4)return;const o=this._read(s+r),a=new Map,c=this.toString(o,"ascii").split(eS);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){const h=c[l],g=h.indexOf(":");if(g===-1)throw new Error(`Message header must separate key and value using ':'
77
- ${h}`);const p=h.substr(0,g),w=h.substr(g+1).trim();a.set(e?p.toLowerCase():p,w)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){const s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}const n=this.allocNative(e);let i=0,r=0;for(;e>0;){const s=this._chunks[r];if(s.byteLength>e){const o=s.slice(0,e);n.set(o,i),i+=e,this._chunks[r]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,i),i+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}}ul.AbstractMessageBuffer=tS;var I2={};(function(t){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.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const e=zi,n=Rt,i=ce,r=Hi,s=wi,o=dr;var a;(function(D){D.type=new i.NotificationType("$/cancelRequest")})(a||(a={}));var c;(function(D){function P(N){return typeof N=="string"||typeof N=="number"}D.is=P})(c||(t.ProgressToken=c={}));var l;(function(D){D.type=new i.NotificationType("$/progress")})(l||(l={}));class h{constructor(){}}t.ProgressType=h;var g;(function(D){function P(N){return n.func(N)}D.is=P})(g||(g={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(D){D[D.Off=0]="Off",D[D.Messages=1]="Messages",D[D.Compact=2]="Compact",D[D.Verbose=3]="Verbose"})(p||(t.Trace=p={}));var w;(function(D){D.Off="off",D.Messages="messages",D.Compact="compact",D.Verbose="verbose"})(w||(t.TraceValues=w={})),function(D){function P($){if(!n.string($))return D.Off;switch($=$.toLowerCase(),$){case"off":return D.Off;case"messages":return D.Messages;case"compact":return D.Compact;case"verbose":return D.Verbose;default:return D.Off}}D.fromString=P;function N($){switch($){case D.Off:return"off";case D.Messages:return"messages";case D.Compact:return"compact";case D.Verbose:return"verbose";default:return"off"}}D.toString=N}(p||(t.Trace=p={}));var v;(function(D){D.Text="text",D.JSON="json"})(v||(t.TraceFormat=v={})),function(D){function P(N){return n.string(N)?(N=N.toLowerCase(),N==="json"?D.JSON:D.Text):D.Text}D.fromString=P}(v||(t.TraceFormat=v={}));var x;(function(D){D.type=new i.NotificationType("$/setTrace")})(x||(t.SetTraceNotification=x={}));var T;(function(D){D.type=new i.NotificationType("$/logTrace")})(T||(t.LogTraceNotification=T={}));var q;(function(D){D[D.Closed=1]="Closed",D[D.Disposed=2]="Disposed",D[D.AlreadyListening=3]="AlreadyListening"})(q||(t.ConnectionErrors=q={}));class z extends Error{constructor(P,N){super(N),this.code=P,Object.setPrototypeOf(this,z.prototype)}}t.ConnectionError=z;var A;(function(D){function P(N){const $=N;return $&&n.func($.cancelUndispatched)}D.is=P})(A||(t.ConnectionStrategy=A={}));var W;(function(D){function P(N){const $=N;return $&&($.kind===void 0||$.kind==="id")&&n.func($.createCancellationTokenSource)&&($.dispose===void 0||n.func($.dispose))}D.is=P})(W||(t.IdCancellationReceiverStrategy=W={}));var j;(function(D){function P(N){const $=N;return $&&$.kind==="request"&&n.func($.createCancellationTokenSource)&&($.dispose===void 0||n.func($.dispose))}D.is=P})(j||(t.RequestCancellationReceiverStrategy=j={}));var se;(function(D){D.Message=Object.freeze({createCancellationTokenSource(N){return new o.CancellationTokenSource}});function P(N){return W.is(N)||j.is(N)}D.is=P})(se||(t.CancellationReceiverStrategy=se={}));var B;(function(D){D.Message=Object.freeze({sendCancellation(N,$){return N.sendNotification(a.type,{id:$})},cleanup(N){}});function P(N){const $=N;return $&&n.func($.sendCancellation)&&n.func($.cleanup)}D.is=P})(B||(t.CancellationSenderStrategy=B={}));var Z;(function(D){D.Message=Object.freeze({receiver:se.Message,sender:B.Message});function P(N){const $=N;return $&&se.is($.receiver)&&B.is($.sender)}D.is=P})(Z||(t.CancellationStrategy=Z={}));var oe;(function(D){function P(N){const $=N;return $&&n.func($.handleMessage)}D.is=P})(oe||(t.MessageStrategy=oe={}));var qe;(function(D){function P(N){const $=N;return $&&(Z.is($.cancellationStrategy)||A.is($.connectionStrategy)||oe.is($.messageStrategy))}D.is=P})(qe||(t.ConnectionOptions=qe={}));var O;(function(D){D[D.New=1]="New",D[D.Listening=2]="Listening",D[D.Closed=3]="Closed",D[D.Disposed=4]="Disposed"})(O||(O={}));function L(D,P,N,$){const ee=N!==void 0?N:t.NullLogger;let ke=0,pe=0,ot=0;const Ke="2.0";let Pe;const ft=new Map;let He;const ht=new Map,rt=new Map;let Ut,gt=new r.LinkedMap,Dt=new Map,Pt=new Set,Lt=new Map,Se=p.Off,Nt=v.Text,Be,xt=O.New;const Cn=new s.Emitter,hn=new s.Emitter,Jt=new s.Emitter,It=new s.Emitter,Ft=new s.Emitter,Xe=$&&$.cancellationStrategy?$.cancellationStrategy:Z.Message;function Yt(C){if(C===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+C.toString()}function Kn(C){return C===null?"res-unknown-"+(++ot).toString():"res-"+C.toString()}function In(){return"not-"+(++pe).toString()}function Fn(C,M){i.Message.isRequest(M)?C.set(Yt(M.id),M):i.Message.isResponse(M)?C.set(Kn(M.id),M):C.set(In(),M)}function Gn(C){}function Qn(){return xt===O.Listening}function _n(){return xt===O.Closed}function Xt(){return xt===O.Disposed}function Mn(){(xt===O.New||xt===O.Listening)&&(xt=O.Closed,hn.fire(void 0))}function ai(C){Cn.fire([C,void 0,void 0])}function Zt(C){Cn.fire(C)}D.onClose(Mn),D.onError(ai),P.onClose(Mn),P.onError(Zt);function gn(){Ut||gt.size===0||(Ut=(0,e.default)().timer.setImmediate(()=>{Ut=void 0,en()}))}function On(C){i.Message.isRequest(C)?Sn(C):i.Message.isNotification(C)?ci(C):i.Message.isResponse(C)?Ln(C):Dn(C)}function en(){if(gt.size===0)return;const C=gt.shift();try{const M=$==null?void 0:$.messageStrategy;oe.is(M)?M.handleMessage(C,On):On(C)}finally{gn()}}const An=C=>{try{if(i.Message.isNotification(C)&&C.method===a.type.method){const M=C.params.id,U=Yt(M),Q=gt.get(U);if(i.Message.isRequest(Q)){const Me=$==null?void 0:$.connectionStrategy,je=Me&&Me.cancelUndispatched?Me.cancelUndispatched(Q,Gn):void 0;if(je&&(je.error!==void 0||je.result!==void 0)){gt.delete(U),Lt.delete(M),je.id=Q.id,cn(je,C.method,Date.now()),P.write(je).catch(()=>ee.error("Sending response for canceled message failed."));return}}const Ie=Lt.get(M);if(Ie!==void 0){Ie.cancel(),E(C);return}else Pt.add(M)}Fn(gt,C)}finally{gn()}};function Sn(C){if(Xt())return;function M(_,I,V){const Ce={jsonrpc:Ke,id:C.id};_ instanceof i.ResponseError?Ce.error=_.toJson():Ce.result=_===void 0?null:_,cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}function U(_,I,V){const Ce={jsonrpc:Ke,id:C.id,error:_.toJson()};cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}function Q(_,I,V){_===void 0&&(_=null);const Ce={jsonrpc:Ke,id:C.id,result:_};cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}m(C);const Ie=ft.get(C.method);let Me,je;Ie&&(Me=Ie.type,je=Ie.handler);const d=Date.now();if(je||Pe){const _=C.id??String(Date.now()),I=W.is(Xe.receiver)?Xe.receiver.createCancellationTokenSource(_):Xe.receiver.createCancellationTokenSource(C);C.id!==null&&Pt.has(C.id)&&I.cancel(),C.id!==null&&Lt.set(_,I);try{let V;if(je)if(C.params===void 0){if(Me!==void 0&&Me.numberOfParams!==0){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines ${Me.numberOfParams} params but received none.`),C.method,d);return}V=je(I.token)}else if(Array.isArray(C.params)){if(Me!==void 0&&Me.parameterStructures===i.ParameterStructures.byName){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by name but received parameters by position`),C.method,d);return}V=je(...C.params,I.token)}else{if(Me!==void 0&&Me.parameterStructures===i.ParameterStructures.byPosition){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by position but received parameters by name`),C.method,d);return}V=je(C.params,I.token)}else Pe&&(V=Pe(C.method,C.params,I.token));const Ce=V;V?Ce.then?Ce.then(Oe=>{Lt.delete(_),M(Oe,C.method,d)},Oe=>{Lt.delete(_),Oe instanceof i.ResponseError?U(Oe,C.method,d):Oe&&n.string(Oe.message)?U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${Oe.message}`),C.method,d):U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,d)}):(Lt.delete(_),M(V,C.method,d)):(Lt.delete(_),Q(V,C.method,d))}catch(V){Lt.delete(_),V instanceof i.ResponseError?M(V,C.method,d):V&&n.string(V.message)?U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${V.message}`),C.method,d):U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,d)}}else U(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${C.method}`),C.method,d)}function Ln(C){if(!Xt())if(C.id===null)C.error?ee.error(`Received response message without id: Error is:
73
+ ${e.message}`,void 0,r.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(Je.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,n=!1){const i=Je.workspace.getConfiguration(this._id);let r=K.Trace.Off,s=K.TraceFormat.Text;if(i){const o=i.get("trace.server","off");typeof o=="string"?r=K.Trace.fromString(o):(r=K.Trace.fromString(i.get("trace.server.verbosity","off")),s=K.TraceFormat.fromString(i.get("trace.server.format","text")))}this._trace=r,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:n,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let n=this._clientOptions.synchronize.fileEvents;if(!n)return;let i;ti.array(n)?i=n:i=[n],i&&this._dynamicFeatures.get(K.DidChangeWatchedFilesNotification.type.method).registerRaw(Qp.generateUuid(),i)}registerFeatures(e){for(let n of e)this.registerFeature(n)}registerFeature(e){if(this._features.push(e),Xn.DynamicFeature.is(e)){const n=e.registrationType;this._dynamicFeatures.set(n.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const n=this.getFeature(K.NotebookDocumentSyncRegistrationType.method);return n===void 0||!(n instanceof Jp.NotebookDocumentSyncFeature)?!1:n.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new Yp.ConfigurationFeature(this)),this.registerFeature(new Jr.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new Jr.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new Jr.WillSaveFeature(this)),this.registerFeature(new Jr.WillSaveWaitUntilFeature(this)),this.registerFeature(new Jr.DidSaveTextDocumentFeature(this)),this.registerFeature(new Jr.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new W3.FileSystemWatcherFeature(this,n=>this.notifyFileEvent(n))),this.registerFeature(new E3.CompletionItemFeature(this)),this.registerFeature(new P3.HoverFeature(this)),this.registerFeature(new F3.SignatureHelpFeature(this)),this.registerFeature(new I3.DefinitionFeature(this)),this.registerFeature(new L3.ReferencesFeature(this)),this.registerFeature(new M3.DocumentHighlightFeature(this)),this.registerFeature(new O3.DocumentSymbolFeature(this)),this.registerFeature(new A3.WorkspaceSymbolFeature(this)),this.registerFeature(new N3.CodeActionFeature(this)),this.registerFeature(new $3.CodeLensFeature(this)),this.registerFeature(new fu.DocumentFormattingFeature(this)),this.registerFeature(new fu.DocumentRangeFormattingFeature(this)),this.registerFeature(new fu.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new q3.RenameFeature(this)),this.registerFeature(new H3.DocumentLinkFeature(this)),this.registerFeature(new j3.ExecuteCommandFeature(this)),this.registerFeature(new Yp.SyncConfigurationFeature(this)),this.registerFeature(new B3.TypeDefinitionFeature(this)),this.registerFeature(new z3.ImplementationFeature(this)),this.registerFeature(new U3.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new V3.WorkspaceFoldersFeature(this)),this.registerFeature(new K3.FoldingRangeFeature(this)),this.registerFeature(new G3.DeclarationFeature(this)),this.registerFeature(new Q3.SelectionRangeFeature(this)),this.registerFeature(new J3.ProgressFeature(this)),this.registerFeature(new Y3.CallHierarchyFeature(this)),this.registerFeature(new X3.SemanticTokensFeature(this)),this.registerFeature(new Z3.LinkedEditingFeature(this)),this.registerFeature(new Yr.DidCreateFilesFeature(this)),this.registerFeature(new Yr.DidRenameFilesFeature(this)),this.registerFeature(new Yr.DidDeleteFilesFeature(this)),this.registerFeature(new Yr.WillCreateFilesFeature(this)),this.registerFeature(new Yr.WillRenameFilesFeature(this)),this.registerFeature(new Yr.WillDeleteFilesFeature(this)),this.registerFeature(new e_.TypeHierarchyFeature(this)),this.registerFeature(new t_.InlineValueFeature(this)),this.registerFeature(new n_.InlayHintsFeature(this)),this.registerFeature(new R3.DiagnosticFeature(this)),this.registerFeature(new Jp.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(fh.createAll(this))}fillInitializeParams(e){for(let n of this._features)ti.func(n.fillInitializeParams)&&n.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,Xn.ensure)(e,"workspace").applyEdit=!0;const n=(0,Xn.ensure)((0,Xn.ensure)(e,"workspace"),"workspaceEdit");n.documentChanges=!0,n.resourceOperations=[K.ResourceOperationKind.Create,K.ResourceOperationKind.Rename,K.ResourceOperationKind.Delete],n.failureHandling=K.FailureHandlingKind.TextOnlyTransactional,n.normalizesLineEndings=!0,n.changeAnnotationSupport={groupsOnLabel:!0};const i=(0,Xn.ensure)((0,Xn.ensure)(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!1,i.tagSupport={valueSet:[K.DiagnosticTag.Unnecessary,K.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;const r=(0,Xn.ensure)(e,"window"),s=(0,Xn.ensure)(r,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};const o=(0,Xn.ensure)(r,"showDocument");o.support=!0;const a=(0,Xn.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(Nr.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.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(let c of this._features)c.fillClientCapabilities(e);return e}initializeFeatures(e){const n=this._clientOptions.documentSelector;for(const i of this._features)ti.func(i.preInitialize)&&i.preInitialize(this._capabilities,n);for(const i of this._features)i.initialize(this._capabilities,n)}async handleRegistrationRequest(e){var i;const n=(i=this.clientOptions.middleware)==null?void 0:i.handleRegisterCapability;return n?n(e,r=>this.doRegisterCapability(r)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(const n of e.registrations)this._ignoredRegistrations.add(n.id);return}for(const n of e.registrations){const i=this._dynamicFeatures.get(n.method);if(i===void 0)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Registration failed.`));const r=n.registerOptions??{};r.documentSelector=r.documentSelector??this._clientOptions.documentSelector;const s={id:n.id,registerOptions:r};try{i.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){var i;const n=(i=this.clientOptions.middleware)==null?void 0:i.handleUnregisterCapability;return n?n(e,r=>this.doUnregisterCapability(r)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(const n of e.unregisterations){if(this._ignoredRegistrations.has(n.id))continue;const i=this._dynamicFeatures.get(n.method);if(!i)return Promise.reject(new Error(`No feature implementation for ${n.method} found. Unregistration failed.`));i.unregister(n.id)}}async handleApplyWorkspaceEdit(e){const n=e.edit,i=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(n)),r=new Map;Je.workspace.textDocuments.forEach(o=>r.set(o.uri.toString(),o));let s=!1;if(n.documentChanges){for(const o of n.documentChanges)if(K.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){const a=this._p2c.asUri(o.textDocument.uri).toString(),c=r.get(a);if(c&&c.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):ti.asPromise(Je.workspace.applyEdit(i).then(o=>({applied:o})))}handleFailedRequest(e,n,i,r,s=!0){if(i instanceof K.ResponseError){if(i.code===K.ErrorCodes.PendingResponseRejected||i.code===K.ErrorCodes.ConnectionInactive)return r;if(i.code===K.LSPErrorCodes.RequestCancelled||i.code===K.LSPErrorCodes.ServerCancelled){if(n!==void 0&&n.isCancellationRequested)return r;throw i.data!==void 0?new Xn.LSPCancellationError(i.data):new Je.CancellationError}else if(i.code===K.LSPErrorCodes.ContentModified){if(Nr.RequestsToCancelOnContentModified.has(e.method)||Nr.CancellableResolveCalls.has(e.method))throw new Je.CancellationError;return r}}throw this.error(`Request ${e.method} failed.`,i,s),i}}jt.BaseLanguageClient=Nr;Nr.RequestsToCancelOnContentModified=new Set([K.SemanticTokensRequest.method,K.SemanticTokensRangeRequest.method,K.SemanticTokensDeltaRequest.method]);Nr.CancellableResolveCalls=new Set([K.CompletionResolveRequest.method,K.CodeLensResolveRequest.method,K.CodeActionResolveRequest.method,K.InlayHintResolveRequest.method,K.DocumentLinkResolveRequest.method,K.WorkspaceSymbolResolveRequest.method]);class s_{error(e){(0,K.RAL)().console.error(e)}warn(e){(0,K.RAL)().console.warn(e)}info(e){(0,K.RAL)().console.info(e)}log(e){(0,K.RAL)().console.log(e)}}function o_(t,e,n,i,r){const s=new s_,o=(0,K.createProtocolConnection)(t,e,s,r);return o.onError(c=>{n(c[0],c[1],c[2])}),o.onClose(i),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(c,l,h)=>{const g={sendNotification:!1,traceFormat:K.TraceFormat.Text};return h===void 0?o.trace(c,l,g):(ti.boolean(h),o.trace(c,l,h))},initialize:c=>o.sendRequest(K.InitializeRequest.type,c),shutdown:()=>o.sendRequest(K.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(K.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var fh;(function(t){function e(n){return[new i_.InlineCompletionItemFeature(n)]}t.createAll=e})(fh||(jt.ProposedFeatures=fh={}));(function(t){var e=Et&&Et.__createBinding||(Object.create?function(r,s,o,a){a===void 0&&(a=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(r,a,c)}:function(r,s,o,a){a===void 0&&(a=o),r[a]=s[o]}),n=Et&&Et.__exportStar||function(r,s){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,r,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,n(de,t),n(ge,t);var i=Ni;Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return i.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return i.DiagnosticPullMode}}),n(jt,t)})(mu);var x2={},k2={},U1={},Ka={},ce={},Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.stringArray=Rt.array=Rt.func=Rt.error=Rt.number=Rt.string=Rt.boolean=void 0;function a_(t){return t===!0||t===!1}Rt.boolean=a_;function T2(t){return typeof t=="string"||t instanceof String}Rt.string=T2;function c_(t){return typeof t=="number"||t instanceof Number}Rt.number=c_;function l_(t){return t instanceof Error}Rt.error=l_;function u_(t){return typeof t=="function"}Rt.func=u_;function R2(t){return Array.isArray(t)}Rt.array=R2;function d_(t){return R2(t)&&t.every(e=>T2(e))}Rt.stringArray=d_;Object.defineProperty(ce,"__esModule",{value:!0});ce.Message=ce.NotificationType9=ce.NotificationType8=ce.NotificationType7=ce.NotificationType6=ce.NotificationType5=ce.NotificationType4=ce.NotificationType3=ce.NotificationType2=ce.NotificationType1=ce.NotificationType0=ce.NotificationType=ce.RequestType9=ce.RequestType8=ce.RequestType7=ce.RequestType6=ce.RequestType5=ce.RequestType4=ce.RequestType3=ce.RequestType2=ce.RequestType1=ce.RequestType=ce.RequestType0=ce.AbstractMessageSignature=ce.ParameterStructures=ce.ResponseError=ce.ErrorCodes=void 0;const Sr=Rt;var hh;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(hh||(ce.ErrorCodes=hh={}));class z1 extends Error{constructor(e,n,i){super(n),this.code=Sr.number(e)?e:hh.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,z1.prototype)}toJson(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}}ce.ResponseError=z1;class on{constructor(e){this.kind=e}static is(e){return e===on.auto||e===on.byName||e===on.byPosition}toString(){return this.kind}}ce.ParameterStructures=on;on.auto=new on("auto");on.byPosition=new on("byPosition");on.byName=new on("byName");class yt{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return on.auto}}ce.AbstractMessageSignature=yt;class f_ extends yt{constructor(e){super(e,0)}}ce.RequestType0=f_;class h_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType=h_;class g_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.RequestType1=g_;class p_ extends yt{constructor(e){super(e,2)}}ce.RequestType2=p_;class m_ extends yt{constructor(e){super(e,3)}}ce.RequestType3=m_;class y_ extends yt{constructor(e){super(e,4)}}ce.RequestType4=y_;class b_ extends yt{constructor(e){super(e,5)}}ce.RequestType5=b_;class v_ extends yt{constructor(e){super(e,6)}}ce.RequestType6=v_;class w_ extends yt{constructor(e){super(e,7)}}ce.RequestType7=w_;class C_ extends yt{constructor(e){super(e,8)}}ce.RequestType8=C_;class __ extends yt{constructor(e){super(e,9)}}ce.RequestType9=__;class S_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType=S_;class D_ extends yt{constructor(e){super(e,0)}}ce.NotificationType0=D_;class x_ extends yt{constructor(e,n=on.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}}ce.NotificationType1=x_;class k_ extends yt{constructor(e){super(e,2)}}ce.NotificationType2=k_;class T_ extends yt{constructor(e){super(e,3)}}ce.NotificationType3=T_;class R_ extends yt{constructor(e){super(e,4)}}ce.NotificationType4=R_;class E_ extends yt{constructor(e){super(e,5)}}ce.NotificationType5=E_;class P_ extends yt{constructor(e){super(e,6)}}ce.NotificationType6=P_;class I_ extends yt{constructor(e){super(e,7)}}ce.NotificationType7=I_;class F_ extends yt{constructor(e){super(e,8)}}ce.NotificationType8=F_;class M_ extends yt{constructor(e){super(e,9)}}ce.NotificationType9=M_;var em;(function(t){function e(r){const s=r;return s&&Sr.string(s.method)&&(Sr.string(s.id)||Sr.number(s.id))}t.isRequest=e;function n(r){const s=r;return s&&Sr.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){const s=r;return s&&(s.result!==void 0||!!s.error)&&(Sr.string(s.id)||Sr.number(s.id)||s.id===null)}t.isResponse=i})(em||(ce.Message=em={}));var Hi={},tm;Object.defineProperty(Hi,"__esModule",{value:!0});Hi.LRUCache=Hi.LinkedMap=Hi.Touch=void 0;var nn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(nn||(Hi.Touch=nn={}));class E2{constructor(){this[tm]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=nn.None){const i=this._map.get(e);if(i)return n!==nn.None&&this.touch(i,n),i.value}set(e,n,i=nn.None){let r=this._map.get(e);if(r)r.value=n,i!==nn.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case nn.None:this.addItemLast(r);break;case nn.First:this.addItemFirst(r);break;case nn.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:n.key,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}values(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:n.value,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}entries(){const e=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){const r={value:[n.key,n.value],done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}[(tm=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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 n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==nn.First&&n!==nn.Last)){if(n===nn.First){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===nn.Last){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}}Hi.LinkedMap=E2;class O_ extends E2{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),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,n=nn.AsNew){return super.get(e,n)}peek(e){return super.get(e,nn.None)}set(e,n){return super.set(e,n,nn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}Hi.LRUCache=O_;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.Disposable=void 0;var nm;(function(t){function e(n){return{dispose:n}}t.create=e})(nm||(cl.Disposable=nm={}));var wi={},zi={};Object.defineProperty(zi,"__esModule",{value:!0});let gh;function ph(){if(gh===void 0)throw new Error("No runtime abstraction layer installed");return gh}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");gh=n}t.install=e})(ph||(ph={}));zi.default=ph;Object.defineProperty(wi,"__esModule",{value:!0});wi.Emitter=wi.Event=void 0;const A_=zi;var im;(function(t){const e={dispose(){}};t.None=function(){return e}})(im||(wi.Event=im={}));class L_{add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,o=i.length;s<o;s++)try{n.push(i[s].apply(r[s],e))}catch(a){(0,A_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class ll{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new L_),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=ll._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}wi.Emitter=ll;ll._noop=function(){};var dr={};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancellationTokenSource=dr.CancellationToken=void 0;const N_=zi,$_=Rt,mh=wi;var Ga;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:mh.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:mh.Event.None});function e(n){const i=n;return i&&(i===t.None||i===t.Cancelled||$_.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(Ga||(dr.CancellationToken=Ga={}));const q_=Object.freeze(function(t,e){const n=(0,N_.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}});class rm{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?q_:(this._emitter||(this._emitter=new mh.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class H_{get token(){return this._token||(this._token=new rm),this._token}cancel(){this._token?this._token.cancel():this._token=Ga.Cancelled}dispose(){this._token?this._token instanceof rm&&this._token.dispose():this._token=Ga.None}}dr.CancellationTokenSource=H_;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});bs.SharedArrayReceiverStrategy=bs.SharedArraySenderStrategy=void 0;const j_=dr;var ko;(function(t){t.Continue=0,t.Cancelled=1})(ko||(ko={}));class W_{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;const n=new SharedArrayBuffer(4),i=new Int32Array(n,0,1);i[0]=ko.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){const i=this.buffers.get(n);if(i===void 0)return;const r=new Int32Array(i,0,1);Atomics.store(r,0,ko.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}bs.SharedArraySenderStrategy=W_;class U_{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===ko.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class z_{constructor(e){this.token=new U_(e)}cancel(){}dispose(){}}class B_{constructor(){this.kind="request"}createCancellationTokenSource(e){const n=e.$cancellationData;return n===void 0?new j_.CancellationTokenSource:new z_(n)}}bs.SharedArrayReceiverStrategy=B_;var ir={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.Semaphore=void 0;const V_=zi;class K_{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((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,V_.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||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 n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}}Qo.Semaphore=K_;Object.defineProperty(ir,"__esModule",{value:!0});ir.ReadableStreamMessageReader=ir.AbstractMessageReader=ir.MessageReader=void 0;const yh=zi,Xr=Rt,hu=wi,G_=Qo;var sm;(function(t){function e(n){let i=n;return i&&Xr.func(i.listen)&&Xr.func(i.dispose)&&Xr.func(i.onError)&&Xr.func(i.onClose)&&Xr.func(i.onPartialMessage)}t.is=e})(sm||(ir.MessageReader=sm={}));class P2{constructor(){this.errorEmitter=new hu.Emitter,this.closeEmitter=new hu.Emitter,this.partialMessageEmitter=new hu.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: ${Xr.string(e.message)?e.message:"unknown"}`)}}ir.AbstractMessageReader=P2;var bh;(function(t){function e(n){let i,r;const s=new Map;let o;const a=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(r=n.contentDecoder,s.set(r.name,r)),n.contentDecoders!==void 0)for(const c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(o=n.contentTypeDecoder,a.set(o.name,o)),n.contentTypeDecoders!==void 0)for(const c of n.contentTypeDecoders)a.set(c.name,c)}return o===void 0&&(o=(0,yh.default)().applicationJson.decoder,a.set(o.name,o)),{charset:i,contentDecoder:r,contentDecoders:s,contentTypeDecoder:o,contentTypeDecoders:a}}t.fromOptions=e})(bh||(bh={}));class Q_ extends P2{constructor(e,n){super(),this.readable=e,this.options=bh.fromOptions(n),this.buffer=(0,yh.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new G_.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 n=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){const i=this.buffer.tryReadHeaders(!0);if(!i)return;const r=i.get("content-length");if(!r){this.fireError(new Error(`Header must provide a Content-Length property.
74
+ ${JSON.stringify(Object.fromEntries(i))}`));return}const s=parseInt(r);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${r}`));return}this.nextMessageLength=s}const n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,yh.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}ir.ReadableStreamMessageReader=Q_;var rr={};Object.defineProperty(rr,"__esModule",{value:!0});rr.WriteableStreamMessageWriter=rr.AbstractMessageWriter=rr.MessageWriter=void 0;const om=zi,ro=Rt,J_=Qo,am=wi,Y_="Content-Length: ",cm=`\r
75
+ `;var lm;(function(t){function e(n){let i=n;return i&&ro.func(i.dispose)&&ro.func(i.onClose)&&ro.func(i.onError)&&ro.func(i.write)}t.is=e})(lm||(rr.MessageWriter=lm={}));class I2{constructor(){this.errorEmitter=new am.Emitter,this.closeEmitter=new am.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,i){this.errorEmitter.fire([this.asError(e),n,i])}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: ${ro.string(e.message)?e.message:"unknown"}`)}}rr.AbstractMessageWriter=I2;var vh;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,om.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,om.default)().applicationJson.encoder}}t.fromOptions=e})(vh||(vh={}));class X_ extends I2{constructor(e,n){super(),this.writable=e,this.options=vh.fromOptions(n),this.errorCount=0,this.writeSemaphore=new J_.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{const r=[];return r.push(Y_,i.byteLength.toString(),cm),r.push(cm),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,n,i){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}}rr.WriteableStreamMessageWriter=X_;var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.AbstractMessageBuffer=void 0;const Z_=13,eS=10,tS=`\r
76
+ `;class nS{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let n=0,i=0,r=0,s=0;e:for(;i<this._chunks.length;){const l=this._chunks[i];for(r=0;r<l.length;){switch(l[r]){case Z_:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case eS:switch(n){case 1:n=2;break;case 3:n=4,r++;break e;default:n=0}break;default:n=0}r++}s+=l.byteLength,i++}if(n!==4)return;const o=this._read(s+r),a=new Map,c=this.toString(o,"ascii").split(tS);if(c.length<2)return a;for(let l=0;l<c.length-2;l++){const h=c[l],g=h.indexOf(":");if(g===-1)throw new Error(`Message header must separate key and value using ':'
77
+ ${h}`);const p=h.substr(0,g),w=h.substr(g+1).trim();a.set(e?p.toLowerCase():p,w)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){const s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}const n=this.allocNative(e);let i=0,r=0;for(;e>0;){const s=this._chunks[r];if(s.byteLength>e){const o=s.slice(0,e);n.set(o,i),i+=e,this._chunks[r]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,i),i+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}}ul.AbstractMessageBuffer=nS;var F2={};(function(t){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.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const e=zi,n=Rt,i=ce,r=Hi,s=wi,o=dr;var a;(function(D){D.type=new i.NotificationType("$/cancelRequest")})(a||(a={}));var c;(function(D){function P(N){return typeof N=="string"||typeof N=="number"}D.is=P})(c||(t.ProgressToken=c={}));var l;(function(D){D.type=new i.NotificationType("$/progress")})(l||(l={}));class h{constructor(){}}t.ProgressType=h;var g;(function(D){function P(N){return n.func(N)}D.is=P})(g||(g={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(D){D[D.Off=0]="Off",D[D.Messages=1]="Messages",D[D.Compact=2]="Compact",D[D.Verbose=3]="Verbose"})(p||(t.Trace=p={}));var w;(function(D){D.Off="off",D.Messages="messages",D.Compact="compact",D.Verbose="verbose"})(w||(t.TraceValues=w={})),function(D){function P($){if(!n.string($))return D.Off;switch($=$.toLowerCase(),$){case"off":return D.Off;case"messages":return D.Messages;case"compact":return D.Compact;case"verbose":return D.Verbose;default:return D.Off}}D.fromString=P;function N($){switch($){case D.Off:return"off";case D.Messages:return"messages";case D.Compact:return"compact";case D.Verbose:return"verbose";default:return"off"}}D.toString=N}(p||(t.Trace=p={}));var v;(function(D){D.Text="text",D.JSON="json"})(v||(t.TraceFormat=v={})),function(D){function P(N){return n.string(N)?(N=N.toLowerCase(),N==="json"?D.JSON:D.Text):D.Text}D.fromString=P}(v||(t.TraceFormat=v={}));var x;(function(D){D.type=new i.NotificationType("$/setTrace")})(x||(t.SetTraceNotification=x={}));var T;(function(D){D.type=new i.NotificationType("$/logTrace")})(T||(t.LogTraceNotification=T={}));var q;(function(D){D[D.Closed=1]="Closed",D[D.Disposed=2]="Disposed",D[D.AlreadyListening=3]="AlreadyListening"})(q||(t.ConnectionErrors=q={}));class z extends Error{constructor(P,N){super(N),this.code=P,Object.setPrototypeOf(this,z.prototype)}}t.ConnectionError=z;var A;(function(D){function P(N){const $=N;return $&&n.func($.cancelUndispatched)}D.is=P})(A||(t.ConnectionStrategy=A={}));var W;(function(D){function P(N){const $=N;return $&&($.kind===void 0||$.kind==="id")&&n.func($.createCancellationTokenSource)&&($.dispose===void 0||n.func($.dispose))}D.is=P})(W||(t.IdCancellationReceiverStrategy=W={}));var j;(function(D){function P(N){const $=N;return $&&$.kind==="request"&&n.func($.createCancellationTokenSource)&&($.dispose===void 0||n.func($.dispose))}D.is=P})(j||(t.RequestCancellationReceiverStrategy=j={}));var se;(function(D){D.Message=Object.freeze({createCancellationTokenSource(N){return new o.CancellationTokenSource}});function P(N){return W.is(N)||j.is(N)}D.is=P})(se||(t.CancellationReceiverStrategy=se={}));var B;(function(D){D.Message=Object.freeze({sendCancellation(N,$){return N.sendNotification(a.type,{id:$})},cleanup(N){}});function P(N){const $=N;return $&&n.func($.sendCancellation)&&n.func($.cleanup)}D.is=P})(B||(t.CancellationSenderStrategy=B={}));var Z;(function(D){D.Message=Object.freeze({receiver:se.Message,sender:B.Message});function P(N){const $=N;return $&&se.is($.receiver)&&B.is($.sender)}D.is=P})(Z||(t.CancellationStrategy=Z={}));var oe;(function(D){function P(N){const $=N;return $&&n.func($.handleMessage)}D.is=P})(oe||(t.MessageStrategy=oe={}));var qe;(function(D){function P(N){const $=N;return $&&(Z.is($.cancellationStrategy)||A.is($.connectionStrategy)||oe.is($.messageStrategy))}D.is=P})(qe||(t.ConnectionOptions=qe={}));var O;(function(D){D[D.New=1]="New",D[D.Listening=2]="Listening",D[D.Closed=3]="Closed",D[D.Disposed=4]="Disposed"})(O||(O={}));function L(D,P,N,$){const ee=N!==void 0?N:t.NullLogger;let ke=0,pe=0,ot=0;const Ke="2.0";let Pe;const ft=new Map;let He;const ht=new Map,rt=new Map;let Ut,gt=new r.LinkedMap,Dt=new Map,Pt=new Set,Lt=new Map,Se=p.Off,Nt=v.Text,Be,xt=O.New;const Cn=new s.Emitter,hn=new s.Emitter,Jt=new s.Emitter,It=new s.Emitter,Ft=new s.Emitter,Xe=$&&$.cancellationStrategy?$.cancellationStrategy:Z.Message;function Yt(C){if(C===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+C.toString()}function Kn(C){return C===null?"res-unknown-"+(++ot).toString():"res-"+C.toString()}function In(){return"not-"+(++pe).toString()}function Fn(C,M){i.Message.isRequest(M)?C.set(Yt(M.id),M):i.Message.isResponse(M)?C.set(Kn(M.id),M):C.set(In(),M)}function Gn(C){}function Qn(){return xt===O.Listening}function _n(){return xt===O.Closed}function Xt(){return xt===O.Disposed}function Mn(){(xt===O.New||xt===O.Listening)&&(xt=O.Closed,hn.fire(void 0))}function ai(C){Cn.fire([C,void 0,void 0])}function Zt(C){Cn.fire(C)}D.onClose(Mn),D.onError(ai),P.onClose(Mn),P.onError(Zt);function gn(){Ut||gt.size===0||(Ut=(0,e.default)().timer.setImmediate(()=>{Ut=void 0,en()}))}function On(C){i.Message.isRequest(C)?Sn(C):i.Message.isNotification(C)?ci(C):i.Message.isResponse(C)?Ln(C):Dn(C)}function en(){if(gt.size===0)return;const C=gt.shift();try{const M=$==null?void 0:$.messageStrategy;oe.is(M)?M.handleMessage(C,On):On(C)}finally{gn()}}const An=C=>{try{if(i.Message.isNotification(C)&&C.method===a.type.method){const M=C.params.id,U=Yt(M),Q=gt.get(U);if(i.Message.isRequest(Q)){const Me=$==null?void 0:$.connectionStrategy,je=Me&&Me.cancelUndispatched?Me.cancelUndispatched(Q,Gn):void 0;if(je&&(je.error!==void 0||je.result!==void 0)){gt.delete(U),Lt.delete(M),je.id=Q.id,cn(je,C.method,Date.now()),P.write(je).catch(()=>ee.error("Sending response for canceled message failed."));return}}const Ie=Lt.get(M);if(Ie!==void 0){Ie.cancel(),E(C);return}else Pt.add(M)}Fn(gt,C)}finally{gn()}};function Sn(C){if(Xt())return;function M(_,I,V){const Ce={jsonrpc:Ke,id:C.id};_ instanceof i.ResponseError?Ce.error=_.toJson():Ce.result=_===void 0?null:_,cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}function U(_,I,V){const Ce={jsonrpc:Ke,id:C.id,error:_.toJson()};cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}function Q(_,I,V){_===void 0&&(_=null);const Ce={jsonrpc:Ke,id:C.id,result:_};cn(Ce,I,V),P.write(Ce).catch(()=>ee.error("Sending response failed."))}m(C);const Ie=ft.get(C.method);let Me,je;Ie&&(Me=Ie.type,je=Ie.handler);const d=Date.now();if(je||Pe){const _=C.id??String(Date.now()),I=W.is(Xe.receiver)?Xe.receiver.createCancellationTokenSource(_):Xe.receiver.createCancellationTokenSource(C);C.id!==null&&Pt.has(C.id)&&I.cancel(),C.id!==null&&Lt.set(_,I);try{let V;if(je)if(C.params===void 0){if(Me!==void 0&&Me.numberOfParams!==0){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines ${Me.numberOfParams} params but received none.`),C.method,d);return}V=je(I.token)}else if(Array.isArray(C.params)){if(Me!==void 0&&Me.parameterStructures===i.ParameterStructures.byName){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by name but received parameters by position`),C.method,d);return}V=je(...C.params,I.token)}else{if(Me!==void 0&&Me.parameterStructures===i.ParameterStructures.byPosition){U(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by position but received parameters by name`),C.method,d);return}V=je(C.params,I.token)}else Pe&&(V=Pe(C.method,C.params,I.token));const Ce=V;V?Ce.then?Ce.then(Oe=>{Lt.delete(_),M(Oe,C.method,d)},Oe=>{Lt.delete(_),Oe instanceof i.ResponseError?U(Oe,C.method,d):Oe&&n.string(Oe.message)?U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${Oe.message}`),C.method,d):U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,d)}):(Lt.delete(_),M(V,C.method,d)):(Lt.delete(_),Q(V,C.method,d))}catch(V){Lt.delete(_),V instanceof i.ResponseError?M(V,C.method,d):V&&n.string(V.message)?U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${V.message}`),C.method,d):U(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,d)}}else U(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${C.method}`),C.method,d)}function Ln(C){if(!Xt())if(C.id===null)C.error?ee.error(`Received response message without id: Error is:
78
78
  ${JSON.stringify(C.error,void 0,4)}`):ee.error("Received response message without id. No further error information provided.");else{const M=C.id,U=Dt.get(M);if(te(C,U),U!==void 0){Dt.delete(M);try{if(C.error){const Q=C.error;U.reject(new i.ResponseError(Q.code,Q.message,Q.data))}else if(C.result!==void 0)U.resolve(C.result);else throw new Error("Should never happen.")}catch(Q){Q.message?ee.error(`Response handler '${U.method}' failed with message: ${Q.message}`):ee.error(`Response handler '${U.method}' failed unexpectedly.`)}}}}function ci(C){if(Xt())return;let M,U;if(C.method===a.type.method){const Q=C.params.id;Pt.delete(Q),E(C);return}else{const Q=ht.get(C.method);Q&&(U=Q.handler,M=Q.type)}if(U||He)try{if(E(C),U)if(C.params===void 0)M!==void 0&&M.numberOfParams!==0&&M.parameterStructures!==i.ParameterStructures.byName&&ee.error(`Notification ${C.method} defines ${M.numberOfParams} params but received none.`),U();else if(Array.isArray(C.params)){const Q=C.params;C.method===l.type.method&&Q.length===2&&c.is(Q[0])?U({token:Q[0],value:Q[1]}):(M!==void 0&&(M.parameterStructures===i.ParameterStructures.byName&&ee.error(`Notification ${C.method} defines parameters by name but received parameters by position`),M.numberOfParams!==C.params.length&&ee.error(`Notification ${C.method} defines ${M.numberOfParams} params but received ${Q.length} arguments`)),U(...Q))}else M!==void 0&&M.parameterStructures===i.ParameterStructures.byPosition&&ee.error(`Notification ${C.method} defines parameters by position but received parameters by name`),U(C.params);else He&&He(C.method,C.params)}catch(Q){Q.message?ee.error(`Notification handler '${C.method}' failed with message: ${Q.message}`):ee.error(`Notification handler '${C.method}' failed unexpectedly.`)}else Jt.fire(C)}function Dn(C){if(!C){ee.error("Received empty message.");return}ee.error(`Received message which is neither a response nor a notification message:
79
79
  ${JSON.stringify(C,null,4)}`);const M=C;if(n.string(M.id)||n.number(M.id)){const U=M.id,Q=Dt.get(U);Q&&Q.reject(new Error("The received response has neither a result nor an error property."))}}function zt(C){if(C!=null)switch(Se){case p.Verbose:return JSON.stringify(C,null,4);case p.Compact:return JSON.stringify(C);default:return}}function Nn(C){if(!(Se===p.Off||!Be))if(Nt===v.Text){let M;(Se===p.Verbose||Se===p.Compact)&&C.params&&(M=`Params: ${zt(C.params)}
80
80
 
@@ -100,31 +100,31 @@ ${JSON.stringify(C,null,4)}`);const M=C;if(n.string(M.id)||n.number(M.id)){const
100
100
 
101
101
  `:C.error===void 0&&(U=`No result returned.
102
102
 
103
- `)),M){const Q=C.error?` Request failed: ${C.error.message} (${C.error.code}).`:"";Be.log(`Received response '${M.method} - (${C.id})' in ${Date.now()-M.timerStart}ms.${Q}`,U)}else Be.log(`Received response ${C.id} without active response promise.`,U)}else we("receive-response",C)}function we(C,M){if(!Be||Se===p.Off)return;const U={isLSPMessage:!0,type:C,message:M,timestamp:Date.now()};Be.log(U)}function Te(){if(_n())throw new z(q.Closed,"Connection is closed.");if(Xt())throw new z(q.Disposed,"Connection is disposed.")}function at(){if(Qn())throw new z(q.AlreadyListening,"Connection is already listening")}function S(){if(!Qn())throw new Error("Call listen() first.")}function H(C){return C===void 0?null:C}function Y(C){if(C!==null)return C}function b(C){return C!=null&&!Array.isArray(C)&&typeof C=="object"}function le(C,M){switch(C){case i.ParameterStructures.auto:return b(M)?Y(M):[H(M)];case i.ParameterStructures.byName:if(!b(M))throw new Error("Received parameters by name but param is not an object literal.");return Y(M);case i.ParameterStructures.byPosition:return[H(M)];default:throw new Error(`Unknown parameter structure ${C.toString()}`)}}function fe(C,M){let U;const Q=C.numberOfParams;switch(Q){case 0:U=void 0;break;case 1:U=le(C.parameterStructures,M[0]);break;default:U=[];for(let Ie=0;Ie<M.length&&Ie<Q;Ie++)U.push(H(M[Ie]));if(M.length<Q)for(let Ie=M.length;Ie<Q;Ie++)U.push(null);break}return U}const G={sendNotification:(C,...M)=>{Te();let U,Q;if(n.string(C)){U=C;const Me=M[0];let je=0,d=i.ParameterStructures.auto;i.ParameterStructures.is(Me)&&(je=1,d=Me);let _=M.length;const I=_-je;switch(I){case 0:Q=void 0;break;case 1:Q=le(d,M[je]);break;default:if(d===i.ParameterStructures.byName)throw new Error(`Received ${I} parameters for 'by Name' notification parameter structure.`);Q=M.slice(je,_).map(V=>H(V));break}}else{const Me=M;U=C.method,Q=fe(C,Me)}const Ie={jsonrpc:Ke,method:U,params:Q};return Jn(Ie),P.write(Ie).catch(Me=>{throw ee.error("Sending notification failed."),Me})},onNotification:(C,M)=>{Te();let U;return n.func(C)?He=C:M&&(n.string(C)?(U=C,ht.set(C,{type:void 0,handler:M})):(U=C.method,ht.set(C.method,{type:C,handler:M}))),{dispose:()=>{U!==void 0?ht.delete(U):He=void 0}}},onProgress:(C,M,U)=>{if(rt.has(M))throw new Error(`Progress handler for token ${M} already registered`);return rt.set(M,U),{dispose:()=>{rt.delete(M)}}},sendProgress:(C,M,U)=>G.sendNotification(l.type,{token:M,value:U}),onUnhandledProgress:It.event,sendRequest:(C,...M)=>{Te(),S();let U,Q,Ie;if(n.string(C)){U=C;const _=M[0],I=M[M.length-1];let V=0,Ce=i.ParameterStructures.auto;i.ParameterStructures.is(_)&&(V=1,Ce=_);let Oe=M.length;o.CancellationToken.is(I)&&(Oe=Oe-1,Ie=I);const De=Oe-V;switch(De){case 0:Q=void 0;break;case 1:Q=le(Ce,M[V]);break;default:if(Ce===i.ParameterStructures.byName)throw new Error(`Received ${De} parameters for 'by Name' request parameter structure.`);Q=M.slice(V,Oe).map($n=>H($n));break}}else{const _=M;U=C.method,Q=fe(C,_);const I=C.numberOfParams;Ie=o.CancellationToken.is(_[I])?_[I]:void 0}const Me=ke++;let je;Ie&&(je=Ie.onCancellationRequested(()=>{const _=Xe.sender.sendCancellation(G,Me);return _===void 0?(ee.log(`Received no promise from cancellation strategy when cancelling id ${Me}`),Promise.resolve()):_.catch(()=>{ee.log(`Sending cancellation messages for id ${Me} failed`)})}));const d={jsonrpc:Ke,id:Me,method:U,params:Q};return Nn(d),typeof Xe.sender.enableCancellation=="function"&&Xe.sender.enableCancellation(d),new Promise(async(_,I)=>{const V=De=>{_(De),Xe.sender.cleanup(Me),je==null||je.dispose()},Ce=De=>{I(De),Xe.sender.cleanup(Me),je==null||je.dispose()},Oe={method:U,timerStart:Date.now(),resolve:V,reject:Ce};try{await P.write(d),Dt.set(Me,Oe)}catch(De){throw ee.error("Sending request failed."),Oe.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,De.message?De.message:"Unknown reason")),De}})},onRequest:(C,M)=>{Te();let U=null;return g.is(C)?(U=void 0,Pe=C):n.string(C)?(U=null,M!==void 0&&(U=C,ft.set(C,{handler:M,type:void 0}))):M!==void 0&&(U=C.method,ft.set(C.method,{type:C,handler:M})),{dispose:()=>{U!==null&&(U!==void 0?ft.delete(U):Pe=void 0)}}},hasPendingResponse:()=>Dt.size>0,trace:async(C,M,U)=>{let Q=!1,Ie=v.Text;U!==void 0&&(n.boolean(U)?Q=U:(Q=U.sendNotification||!1,Ie=U.traceFormat||v.Text)),Se=C,Nt=Ie,Se===p.Off?Be=void 0:Be=M,Q&&!_n()&&!Xt()&&await G.sendNotification(x.type,{value:p.toString(C)})},onError:Cn.event,onClose:hn.event,onUnhandledNotification:Jt.event,onDispose:Ft.event,end:()=>{P.end()},dispose:()=>{if(Xt())return;xt=O.Disposed,Ft.fire(void 0);const C=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const M of Dt.values())M.reject(C);Dt=new Map,Lt=new Map,Pt=new Set,gt=new r.LinkedMap,n.func(P.dispose)&&P.dispose(),n.func(D.dispose)&&D.dispose()},listen:()=>{Te(),at(),xt=O.Listening,D.listen(An)},inspect:()=>{(0,e.default)().console.log("inspect")}};return G.onNotification(T.type,C=>{if(Se===p.Off||!Be)return;const M=Se===p.Verbose||Se===p.Compact;Be.log(C.message,M?C.verbose:void 0)}),G.onNotification(l.type,C=>{const M=rt.get(C.token);M?M(C.value):It.fire(C)}),G}t.createMessageConnection=L})(I2);(function(t){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.Trace=void 0;const e=ce;Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=Hi;Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const i=cl;Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return i.Disposable}});const r=wi;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return r.Emitter}});const s=dr;Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=bs;Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=ir;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=rr;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=ul;Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const h=I2;Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}});const g=zi;t.RAL=g.default})(Ka);Object.defineProperty(U1,"__esModule",{value:!0});const mi=Ka;class dl extends mi.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return dl.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}}dl.emptyBuffer=new Uint8Array(0);class nS{constructor(e){this.socket=e,this._onData=new mi.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(r=>{this._onData.fire(new Uint8Array(r))},()=>{(0,mi.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),mi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mi.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}}class iS{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),mi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mi.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}const rS=new TextEncoder,F2=Object.freeze({messageBuffer:Object.freeze({create:t=>new dl(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(rS.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new nS(t),asWritableStream:t=>new iS(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const i=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const i=setInterval(t,e,...n);return{dispose:()=>clearInterval(i)}}})});function wh(){return F2}(function(t){function e(){mi.RAL.install(F2)}t.install=e})(wh||(wh={}));U1.default=wh;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(c,l,h,g){g===void 0&&(g=h);var p=Object.getOwnPropertyDescriptor(l,h);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[h]}}),Object.defineProperty(c,g,p)}:function(c,l,h,g){g===void 0&&(g=h),c[g]=l[h]}),n=Et&&Et.__exportStar||function(c,l){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(l,h)&&e(l,c,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,U1.default.install();const r=Ka;n(Ka,t);class s extends r.AbstractMessageReader{constructor(l){super(),this._onData=new r.Emitter,this._messageListener=h=>{this._onData.fire(h.data)},l.addEventListener("error",h=>this.fireError(h)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends r.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",h=>this.fireError(h))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(h){return this.handleError(h,l),Promise.reject(h)}}handleError(l,h){this.errorCount++,this.fireError(l,h,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,h,g){return h===void 0&&(h=r.NullLogger),r.ConnectionStrategy.is(g)&&(g={connectionStrategy:g}),(0,r.createMessageConnection)(c,l,h,g)}t.createMessageConnection=a})(x2);var lm=x2,M2={},Ch;(function(t){function e(n){return typeof n=="string"}t.is=e})(Ch||(Ch={}));var Qa;(function(t){function e(n){return typeof n=="string"}t.is=e})(Qa||(Qa={}));var _h;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(_h||(_h={}));var To;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(To||(To={}));var Wn;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=To.MAX_VALUE),r===Number.MAX_VALUE&&(r=To.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&k.uinteger(r.line)&&k.uinteger(r.character)}t.is=n})(Wn||(Wn={}));var St;(function(t){function e(i,r,s,o){if(k.uinteger(i)&&k.uinteger(r)&&k.uinteger(s)&&k.uinteger(o))return{start:Wn.create(i,r),end:Wn.create(s,o)};if(Wn.is(i)&&Wn.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${o}]`)}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&Wn.is(r.start)&&Wn.is(r.end)}t.is=n})(St||(St={}));var Ro;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.range)&&(k.string(r.uri)||k.undefined(r.uri))}t.is=n})(Ro||(Ro={}));var Sh;(function(t){function e(i,r,s,o){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.targetRange)&&k.string(r.targetUri)&&St.is(r.targetSelectionRange)&&(St.is(r.originSelectionRange)||k.undefined(r.originSelectionRange))}t.is=n})(Sh||(Sh={}));var Ja;(function(t){function e(i,r,s,o){return{red:i,green:r,blue:s,alpha:o}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.numberRange(r.red,0,1)&&k.numberRange(r.green,0,1)&&k.numberRange(r.blue,0,1)&&k.numberRange(r.alpha,0,1)}t.is=n})(Ja||(Ja={}));var Dh;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&St.is(r.range)&&Ja.is(r.color)}t.is=n})(Dh||(Dh={}));var xh;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.string(r.label)&&(k.undefined(r.textEdit)||yi.is(r))&&(k.undefined(r.additionalTextEdits)||k.typedArray(r.additionalTextEdits,yi.is))}t.is=n})(xh||(xh={}));var kh;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(kh||(kh={}));var Th;(function(t){function e(i,r,s,o,a,c){const l={startLine:i,endLine:r};return k.defined(s)&&(l.startCharacter=s),k.defined(o)&&(l.endCharacter=o),k.defined(a)&&(l.kind=a),k.defined(c)&&(l.collapsedText=c),l}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.uinteger(r.startLine)&&k.uinteger(r.startLine)&&(k.undefined(r.startCharacter)||k.uinteger(r.startCharacter))&&(k.undefined(r.endCharacter)||k.uinteger(r.endCharacter))&&(k.undefined(r.kind)||k.string(r.kind))}t.is=n})(Th||(Th={}));var Ya;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&Ro.is(r.location)&&k.string(r.message)}t.is=n})(Ya||(Ya={}));var Rh;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Rh||(Rh={}));var Eh;(function(t){t.Unnecessary=1,t.Deprecated=2})(Eh||(Eh={}));var Ph;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&k.string(i.href)}t.is=e})(Ph||(Ph={}));var Eo;(function(t){function e(i,r,s,o,a,c){let l={range:i,message:r};return k.defined(s)&&(l.severity=s),k.defined(o)&&(l.code=o),k.defined(a)&&(l.source=a),k.defined(c)&&(l.relatedInformation=c),l}t.create=e;function n(i){var r;let s=i;return k.defined(s)&&St.is(s.range)&&k.string(s.message)&&(k.number(s.severity)||k.undefined(s.severity))&&(k.integer(s.code)||k.string(s.code)||k.undefined(s.code))&&(k.undefined(s.codeDescription)||k.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(k.string(s.source)||k.undefined(s.source))&&(k.undefined(s.relatedInformation)||k.typedArray(s.relatedInformation,Ya.is))}t.is=n})(Eo||(Eo={}));var jr;(function(t){function e(i,r,...s){let o={title:i,command:r};return k.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.title)&&k.string(r.command)}t.is=n})(jr||(jr={}));var yi;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){const o=s;return k.objectLiteral(o)&&k.string(o.newText)&&St.is(o.range)}t.is=r})(yi||(yi={}));var $r;(function(t){function e(i,r,s){const o={label:i};return r!==void 0&&(o.needsConfirmation=r),s!==void 0&&(o.description=s),o}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.string(r.label)&&(k.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(k.string(r.description)||r.description===void 0)}t.is=n})($r||($r={}));var Gt;(function(t){function e(n){const i=n;return k.string(i)}t.is=e})(Gt||(Gt={}));var Ri;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function i(s,o){return{range:s,newText:"",annotationId:o}}t.del=i;function r(s){const o=s;return yi.is(o)&&($r.is(o.annotationId)||Gt.is(o.annotationId))}t.is=r})(Ri||(Ri={}));var Po;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&Io.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(Po||(Po={}));var vs;(function(t){function e(i,r,s){let o={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&k.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||k.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||k.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(vs||(vs={}));var ws;(function(t){function e(i,r,s,o){let a={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&k.string(r.oldUri)&&k.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||k.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||k.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(ws||(ws={}));var Cs;(function(t){function e(i,r,s){let o={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&k.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||k.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||k.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(Cs||(Cs={}));var Xa;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>k.string(r.kind)?vs.is(r)||ws.is(r)||Cs.is(r):Po.is(r)))}t.is=e})(Xa||(Xa={}));class ua{constructor(e,n){this.edits=e,this.changeAnnotations=n}insert(e,n,i){let r,s;if(i===void 0?r=yi.insert(e,n):Gt.is(i)?(s=i,r=Ri.insert(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Ri.insert(e,n,s)),this.edits.push(r),s!==void 0)return s}replace(e,n,i){let r,s;if(i===void 0?r=yi.replace(e,n):Gt.is(i)?(s=i,r=Ri.replace(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Ri.replace(e,n,s)),this.edits.push(r),s!==void 0)return s}delete(e,n){let i,r;if(n===void 0?i=yi.del(e):Gt.is(n)?(r=n,i=Ri.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Ri.del(e,r)),this.edits.push(i),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}}class um{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,n){let i;if(Gt.is(e)?i=e:(i=this.nextId(),n=e),this._annotations[i]!==void 0)throw new Error(`Id ${i} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${i}`);return this._annotations[i]=n,this._size++,i}nextId(){return this._counter++,this._counter.toString()}}class sS{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new um(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(n=>{if(Po.is(n)){const i=new ua(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(n=>{const i=new ua(e.changes[n]);this._textEditChanges[n]=i})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Io.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const n={uri:e.uri,version:e.version};let i=this._textEditChanges[n.uri];if(!i){const r=[],s={textDocument:n,edits:r};this._workspaceEdit.documentChanges.push(s),i=new ua(r,this._changeAnnotations),this._textEditChanges[n.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[e];if(!n){let i=[];this._workspaceEdit.changes[e]=i,n=new ua(i),this._textEditChanges[e]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new um,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r;$r.is(n)||Gt.is(n)?r=n:i=n;let s,o;if(r===void 0?s=vs.create(e,i):(o=Gt.is(r)?r:this._changeAnnotations.manage(r),s=vs.create(e,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}renameFile(e,n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;$r.is(i)||Gt.is(i)?s=i:r=i;let o,a;if(s===void 0?o=ws.create(e,n,r):(a=Gt.is(s)?s:this._changeAnnotations.manage(s),o=ws.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a}deleteFile(e,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r;$r.is(n)||Gt.is(n)?r=n:i=n;let s,o;if(r===void 0?s=Cs.create(e,i):(o=Gt.is(r)?r:this._changeAnnotations.manage(r),s=Cs.create(e,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}}var Ih;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)}t.is=n})(Ih||(Ih={}));var Fh;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&k.integer(r.version)}t.is=n})(Fh||(Fh={}));var Io;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&(r.version===null||k.integer(r.version))}t.is=n})(Io||(Io={}));var Mh;(function(t){function e(i,r,s,o){return{uri:i,languageId:r,version:s,text:o}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&k.string(r.languageId)&&k.integer(r.version)&&k.string(r.text)}t.is=n})(Mh||(Mh={}));var Za;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(Za||(Za={}));var _s;(function(t){function e(n){const i=n;return k.objectLiteral(n)&&Za.is(i.kind)&&k.string(i.value)}t.is=e})(_s||(_s={}));var Oh;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Oh||(Oh={}));var Ah;(function(t){t.PlainText=1,t.Snippet=2})(Ah||(Ah={}));var Lh;(function(t){t.Deprecated=1})(Lh||(Lh={}));var Nh;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){const r=i;return r&&k.string(r.newText)&&St.is(r.insert)&&St.is(r.replace)}t.is=n})(Nh||(Nh={}));var $h;(function(t){t.asIs=1,t.adjustIndentation=2})($h||($h={}));var qh;(function(t){function e(n){const i=n;return i&&(k.string(i.detail)||i.detail===void 0)&&(k.string(i.description)||i.description===void 0)}t.is=e})(qh||(qh={}));var Hh;(function(t){function e(n){return{label:n}}t.create=e})(Hh||(Hh={}));var jh;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(jh||(jh={}));var Fo;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){const r=i;return k.string(r)||k.objectLiteral(r)&&k.string(r.language)&&k.string(r.value)}t.is=n})(Fo||(Fo={}));var Wh;(function(t){function e(n){let i=n;return!!i&&k.objectLiteral(i)&&(_s.is(i.contents)||Fo.is(i.contents)||k.typedArray(i.contents,Fo.is))&&(n.range===void 0||St.is(n.range))}t.is=e})(Wh||(Wh={}));var Uh;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(Uh||(Uh={}));var zh;(function(t){function e(n,i,...r){let s={label:n};return k.defined(i)&&(s.documentation=i),k.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(zh||(zh={}));var Bh;(function(t){t.Text=1,t.Read=2,t.Write=3})(Bh||(Bh={}));var Vh;(function(t){function e(n,i){let r={range:n};return k.number(i)&&(r.kind=i),r}t.create=e})(Vh||(Vh={}));var Kh;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Kh||(Kh={}));var Gh;(function(t){t.Deprecated=1})(Gh||(Gh={}));var Qh;(function(t){function e(n,i,r,s,o){let a={name:n,kind:i,location:{uri:s,range:r}};return o&&(a.containerName=o),a}t.create=e})(Qh||(Qh={}));var Jh;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(Jh||(Jh={}));var Yh;(function(t){function e(i,r,s,o,a,c){let l={name:i,detail:r,kind:s,range:o,selectionRange:a};return c!==void 0&&(l.children=c),l}t.create=e;function n(i){let r=i;return r&&k.string(r.name)&&k.number(r.kind)&&St.is(r.range)&&St.is(r.selectionRange)&&(r.detail===void 0||k.string(r.detail))&&(r.deprecated===void 0||k.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Yh||(Yh={}));var Xh;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Xh||(Xh={}));var Mo;(function(t){t.Invoked=1,t.Automatic=2})(Mo||(Mo={}));var Zh;(function(t){function e(i,r,s){let o={diagnostics:i};return r!=null&&(o.only=r),s!=null&&(o.triggerKind=s),o}t.create=e;function n(i){let r=i;return k.defined(r)&&k.typedArray(r.diagnostics,Eo.is)&&(r.only===void 0||k.typedArray(r.only,k.string))&&(r.triggerKind===void 0||r.triggerKind===Mo.Invoked||r.triggerKind===Mo.Automatic)}t.is=n})(Zh||(Zh={}));var e1;(function(t){function e(i,r,s){let o={title:i},a=!0;return typeof r=="string"?(a=!1,o.kind=r):jr.is(r)?o.command=r:o.edit=r,a&&s!==void 0&&(o.kind=s),o}t.create=e;function n(i){let r=i;return r&&k.string(r.title)&&(r.diagnostics===void 0||k.typedArray(r.diagnostics,Eo.is))&&(r.kind===void 0||k.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||jr.is(r.command))&&(r.isPreferred===void 0||k.boolean(r.isPreferred))&&(r.edit===void 0||Xa.is(r.edit))}t.is=n})(e1||(e1={}));var t1;(function(t){function e(i,r){let s={range:i};return k.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return k.defined(r)&&St.is(r.range)&&(k.undefined(r.command)||jr.is(r.command))}t.is=n})(t1||(t1={}));var n1;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.uinteger(r.tabSize)&&k.boolean(r.insertSpaces)}t.is=n})(n1||(n1={}));var i1;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return k.defined(r)&&St.is(r.range)&&(k.undefined(r.target)||k.string(r.target))}t.is=n})(i1||(i1={}));var r1;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(r1||(r1={}));var s1;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(s1||(s1={}));var o1;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(o1||(o1={}));var a1;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(a1||(a1={}));var c1;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&k.string(r.text)}t.is=n})(c1||(c1={}));var l1;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&k.boolean(r.caseSensitiveLookup)&&(k.string(r.variableName)||r.variableName===void 0)}t.is=n})(l1||(l1={}));var u1;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&(k.string(r.expression)||r.expression===void 0)}t.is=n})(u1||(u1={}));var d1;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){const r=i;return k.defined(r)&&St.is(i.stoppedLocation)}t.is=n})(d1||(d1={}));var ec;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ec||(ec={}));var tc;(function(t){function e(i){return{value:i}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&(r.tooltip===void 0||k.string(r.tooltip)||_s.is(r.tooltip))&&(r.location===void 0||Ro.is(r.location))&&(r.command===void 0||jr.is(r.command))}t.is=n})(tc||(tc={}));var f1;(function(t){function e(i,r,s){const o={position:i,label:r};return s!==void 0&&(o.kind=s),o}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&Wn.is(r.position)&&(k.string(r.label)||k.typedArray(r.label,tc.is))&&(r.kind===void 0||ec.is(r.kind))&&r.textEdits===void 0||k.typedArray(r.textEdits,yi.is)&&(r.tooltip===void 0||k.string(r.tooltip)||_s.is(r.tooltip))&&(r.paddingLeft===void 0||k.boolean(r.paddingLeft))&&(r.paddingRight===void 0||k.boolean(r.paddingRight))}t.is=n})(f1||(f1={}));var h1;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(h1||(h1={}));var g1;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(g1||(g1={}));var p1;(function(t){function e(n){return{items:n}}t.create=e})(p1||(p1={}));var m1;(function(t){t.Invoked=0,t.Automatic=1})(m1||(m1={}));var y1;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(y1||(y1={}));var b1;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(b1||(b1={}));var v1;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&Qa.is(i.uri)&&k.string(i.name)}t.is=e})(v1||(v1={}));const oS=[`
103
+ `)),M){const Q=C.error?` Request failed: ${C.error.message} (${C.error.code}).`:"";Be.log(`Received response '${M.method} - (${C.id})' in ${Date.now()-M.timerStart}ms.${Q}`,U)}else Be.log(`Received response ${C.id} without active response promise.`,U)}else we("receive-response",C)}function we(C,M){if(!Be||Se===p.Off)return;const U={isLSPMessage:!0,type:C,message:M,timestamp:Date.now()};Be.log(U)}function Te(){if(_n())throw new z(q.Closed,"Connection is closed.");if(Xt())throw new z(q.Disposed,"Connection is disposed.")}function at(){if(Qn())throw new z(q.AlreadyListening,"Connection is already listening")}function S(){if(!Qn())throw new Error("Call listen() first.")}function H(C){return C===void 0?null:C}function Y(C){if(C!==null)return C}function b(C){return C!=null&&!Array.isArray(C)&&typeof C=="object"}function le(C,M){switch(C){case i.ParameterStructures.auto:return b(M)?Y(M):[H(M)];case i.ParameterStructures.byName:if(!b(M))throw new Error("Received parameters by name but param is not an object literal.");return Y(M);case i.ParameterStructures.byPosition:return[H(M)];default:throw new Error(`Unknown parameter structure ${C.toString()}`)}}function fe(C,M){let U;const Q=C.numberOfParams;switch(Q){case 0:U=void 0;break;case 1:U=le(C.parameterStructures,M[0]);break;default:U=[];for(let Ie=0;Ie<M.length&&Ie<Q;Ie++)U.push(H(M[Ie]));if(M.length<Q)for(let Ie=M.length;Ie<Q;Ie++)U.push(null);break}return U}const G={sendNotification:(C,...M)=>{Te();let U,Q;if(n.string(C)){U=C;const Me=M[0];let je=0,d=i.ParameterStructures.auto;i.ParameterStructures.is(Me)&&(je=1,d=Me);let _=M.length;const I=_-je;switch(I){case 0:Q=void 0;break;case 1:Q=le(d,M[je]);break;default:if(d===i.ParameterStructures.byName)throw new Error(`Received ${I} parameters for 'by Name' notification parameter structure.`);Q=M.slice(je,_).map(V=>H(V));break}}else{const Me=M;U=C.method,Q=fe(C,Me)}const Ie={jsonrpc:Ke,method:U,params:Q};return Jn(Ie),P.write(Ie).catch(Me=>{throw ee.error("Sending notification failed."),Me})},onNotification:(C,M)=>{Te();let U;return n.func(C)?He=C:M&&(n.string(C)?(U=C,ht.set(C,{type:void 0,handler:M})):(U=C.method,ht.set(C.method,{type:C,handler:M}))),{dispose:()=>{U!==void 0?ht.delete(U):He=void 0}}},onProgress:(C,M,U)=>{if(rt.has(M))throw new Error(`Progress handler for token ${M} already registered`);return rt.set(M,U),{dispose:()=>{rt.delete(M)}}},sendProgress:(C,M,U)=>G.sendNotification(l.type,{token:M,value:U}),onUnhandledProgress:It.event,sendRequest:(C,...M)=>{Te(),S();let U,Q,Ie;if(n.string(C)){U=C;const _=M[0],I=M[M.length-1];let V=0,Ce=i.ParameterStructures.auto;i.ParameterStructures.is(_)&&(V=1,Ce=_);let Oe=M.length;o.CancellationToken.is(I)&&(Oe=Oe-1,Ie=I);const De=Oe-V;switch(De){case 0:Q=void 0;break;case 1:Q=le(Ce,M[V]);break;default:if(Ce===i.ParameterStructures.byName)throw new Error(`Received ${De} parameters for 'by Name' request parameter structure.`);Q=M.slice(V,Oe).map($n=>H($n));break}}else{const _=M;U=C.method,Q=fe(C,_);const I=C.numberOfParams;Ie=o.CancellationToken.is(_[I])?_[I]:void 0}const Me=ke++;let je;Ie&&(je=Ie.onCancellationRequested(()=>{const _=Xe.sender.sendCancellation(G,Me);return _===void 0?(ee.log(`Received no promise from cancellation strategy when cancelling id ${Me}`),Promise.resolve()):_.catch(()=>{ee.log(`Sending cancellation messages for id ${Me} failed`)})}));const d={jsonrpc:Ke,id:Me,method:U,params:Q};return Nn(d),typeof Xe.sender.enableCancellation=="function"&&Xe.sender.enableCancellation(d),new Promise(async(_,I)=>{const V=De=>{_(De),Xe.sender.cleanup(Me),je==null||je.dispose()},Ce=De=>{I(De),Xe.sender.cleanup(Me),je==null||je.dispose()},Oe={method:U,timerStart:Date.now(),resolve:V,reject:Ce};try{await P.write(d),Dt.set(Me,Oe)}catch(De){throw ee.error("Sending request failed."),Oe.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,De.message?De.message:"Unknown reason")),De}})},onRequest:(C,M)=>{Te();let U=null;return g.is(C)?(U=void 0,Pe=C):n.string(C)?(U=null,M!==void 0&&(U=C,ft.set(C,{handler:M,type:void 0}))):M!==void 0&&(U=C.method,ft.set(C.method,{type:C,handler:M})),{dispose:()=>{U!==null&&(U!==void 0?ft.delete(U):Pe=void 0)}}},hasPendingResponse:()=>Dt.size>0,trace:async(C,M,U)=>{let Q=!1,Ie=v.Text;U!==void 0&&(n.boolean(U)?Q=U:(Q=U.sendNotification||!1,Ie=U.traceFormat||v.Text)),Se=C,Nt=Ie,Se===p.Off?Be=void 0:Be=M,Q&&!_n()&&!Xt()&&await G.sendNotification(x.type,{value:p.toString(C)})},onError:Cn.event,onClose:hn.event,onUnhandledNotification:Jt.event,onDispose:Ft.event,end:()=>{P.end()},dispose:()=>{if(Xt())return;xt=O.Disposed,Ft.fire(void 0);const C=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const M of Dt.values())M.reject(C);Dt=new Map,Lt=new Map,Pt=new Set,gt=new r.LinkedMap,n.func(P.dispose)&&P.dispose(),n.func(D.dispose)&&D.dispose()},listen:()=>{Te(),at(),xt=O.Listening,D.listen(An)},inspect:()=>{(0,e.default)().console.log("inspect")}};return G.onNotification(T.type,C=>{if(Se===p.Off||!Be)return;const M=Se===p.Verbose||Se===p.Compact;Be.log(C.message,M?C.verbose:void 0)}),G.onNotification(l.type,C=>{const M=rt.get(C.token);M?M(C.value):It.fire(C)}),G}t.createMessageConnection=L})(F2);(function(t){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.Trace=void 0;const e=ce;Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return e.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return e.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return e.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return e.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return e.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return e.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return e.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return e.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return e.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return e.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return e.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return e.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return e.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return e.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return e.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return e.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return e.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return e.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return e.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return e.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return e.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return e.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return e.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return e.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return e.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return e.ParameterStructures}});const n=Hi;Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return n.Touch}});const i=cl;Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return i.Disposable}});const r=wi;Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return r.Emitter}});const s=dr;Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const o=bs;Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});const a=ir;Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=rr;Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=ul;Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});const h=F2;Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}});const g=zi;t.RAL=g.default})(Ka);Object.defineProperty(U1,"__esModule",{value:!0});const mi=Ka;class dl extends mi.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return dl.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}}dl.emptyBuffer=new Uint8Array(0);class iS{constructor(e){this.socket=e,this._onData=new mi.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(r=>{this._onData.fire(new Uint8Array(r))},()=>{(0,mi.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),mi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mi.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}}class rS{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),mi.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mi.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mi.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}const sS=new TextEncoder,M2=Object.freeze({messageBuffer:Object.freeze({create:t=>new dl(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(sS.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new iS(t),asWritableStream:t=>new rS(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){const i=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(t,...e){const n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){const i=setInterval(t,e,...n);return{dispose:()=>clearInterval(i)}}})});function wh(){return M2}(function(t){function e(){mi.RAL.install(M2)}t.install=e})(wh||(wh={}));U1.default=wh;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(c,l,h,g){g===void 0&&(g=h);var p=Object.getOwnPropertyDescriptor(l,h);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[h]}}),Object.defineProperty(c,g,p)}:function(c,l,h,g){g===void 0&&(g=h),c[g]=l[h]}),n=Et&&Et.__exportStar||function(c,l){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(l,h)&&e(l,c,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,U1.default.install();const r=Ka;n(Ka,t);class s extends r.AbstractMessageReader{constructor(l){super(),this._onData=new r.Emitter,this._messageListener=h=>{this._onData.fire(h.data)},l.addEventListener("error",h=>this.fireError(h)),l.onmessage=this._messageListener}listen(l){return this._onData.event(l)}}t.BrowserMessageReader=s;class o extends r.AbstractMessageWriter{constructor(l){super(),this.port=l,this.errorCount=0,l.addEventListener("error",h=>this.fireError(h))}write(l){try{return this.port.postMessage(l),Promise.resolve()}catch(h){return this.handleError(h,l),Promise.reject(h)}}handleError(l,h){this.errorCount++,this.fireError(l,h,this.errorCount)}end(){}}t.BrowserMessageWriter=o;function a(c,l,h,g){return h===void 0&&(h=r.NullLogger),r.ConnectionStrategy.is(g)&&(g={connectionStrategy:g}),(0,r.createMessageConnection)(c,l,h,g)}t.createMessageConnection=a})(k2);var um=k2,O2={},Ch;(function(t){function e(n){return typeof n=="string"}t.is=e})(Ch||(Ch={}));var Qa;(function(t){function e(n){return typeof n=="string"}t.is=e})(Qa||(Qa={}));var _h;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(_h||(_h={}));var To;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(To||(To={}));var Wn;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=To.MAX_VALUE),r===Number.MAX_VALUE&&(r=To.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&k.uinteger(r.line)&&k.uinteger(r.character)}t.is=n})(Wn||(Wn={}));var St;(function(t){function e(i,r,s,o){if(k.uinteger(i)&&k.uinteger(r)&&k.uinteger(s)&&k.uinteger(o))return{start:Wn.create(i,r),end:Wn.create(s,o)};if(Wn.is(i)&&Wn.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${o}]`)}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&Wn.is(r.start)&&Wn.is(r.end)}t.is=n})(St||(St={}));var Ro;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.range)&&(k.string(r.uri)||k.undefined(r.uri))}t.is=n})(Ro||(Ro={}));var Sh;(function(t){function e(i,r,s,o){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.targetRange)&&k.string(r.targetUri)&&St.is(r.targetSelectionRange)&&(St.is(r.originSelectionRange)||k.undefined(r.originSelectionRange))}t.is=n})(Sh||(Sh={}));var Ja;(function(t){function e(i,r,s,o){return{red:i,green:r,blue:s,alpha:o}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.numberRange(r.red,0,1)&&k.numberRange(r.green,0,1)&&k.numberRange(r.blue,0,1)&&k.numberRange(r.alpha,0,1)}t.is=n})(Ja||(Ja={}));var Dh;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&St.is(r.range)&&Ja.is(r.color)}t.is=n})(Dh||(Dh={}));var xh;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.string(r.label)&&(k.undefined(r.textEdit)||yi.is(r))&&(k.undefined(r.additionalTextEdits)||k.typedArray(r.additionalTextEdits,yi.is))}t.is=n})(xh||(xh={}));var kh;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(kh||(kh={}));var Th;(function(t){function e(i,r,s,o,a,c){const l={startLine:i,endLine:r};return k.defined(s)&&(l.startCharacter=s),k.defined(o)&&(l.endCharacter=o),k.defined(a)&&(l.kind=a),k.defined(c)&&(l.collapsedText=c),l}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.uinteger(r.startLine)&&k.uinteger(r.startLine)&&(k.undefined(r.startCharacter)||k.uinteger(r.startCharacter))&&(k.undefined(r.endCharacter)||k.uinteger(r.endCharacter))&&(k.undefined(r.kind)||k.string(r.kind))}t.is=n})(Th||(Th={}));var Ya;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&Ro.is(r.location)&&k.string(r.message)}t.is=n})(Ya||(Ya={}));var Rh;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Rh||(Rh={}));var Eh;(function(t){t.Unnecessary=1,t.Deprecated=2})(Eh||(Eh={}));var Ph;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&k.string(i.href)}t.is=e})(Ph||(Ph={}));var Eo;(function(t){function e(i,r,s,o,a,c){let l={range:i,message:r};return k.defined(s)&&(l.severity=s),k.defined(o)&&(l.code=o),k.defined(a)&&(l.source=a),k.defined(c)&&(l.relatedInformation=c),l}t.create=e;function n(i){var r;let s=i;return k.defined(s)&&St.is(s.range)&&k.string(s.message)&&(k.number(s.severity)||k.undefined(s.severity))&&(k.integer(s.code)||k.string(s.code)||k.undefined(s.code))&&(k.undefined(s.codeDescription)||k.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(k.string(s.source)||k.undefined(s.source))&&(k.undefined(s.relatedInformation)||k.typedArray(s.relatedInformation,Ya.is))}t.is=n})(Eo||(Eo={}));var jr;(function(t){function e(i,r,...s){let o={title:i,command:r};return k.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.title)&&k.string(r.command)}t.is=n})(jr||(jr={}));var yi;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){const o=s;return k.objectLiteral(o)&&k.string(o.newText)&&St.is(o.range)}t.is=r})(yi||(yi={}));var $r;(function(t){function e(i,r,s){const o={label:i};return r!==void 0&&(o.needsConfirmation=r),s!==void 0&&(o.description=s),o}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&k.string(r.label)&&(k.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(k.string(r.description)||r.description===void 0)}t.is=n})($r||($r={}));var Gt;(function(t){function e(n){const i=n;return k.string(i)}t.is=e})(Gt||(Gt={}));var Ri;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function i(s,o){return{range:s,newText:"",annotationId:o}}t.del=i;function r(s){const o=s;return yi.is(o)&&($r.is(o.annotationId)||Gt.is(o.annotationId))}t.is=r})(Ri||(Ri={}));var Po;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&Io.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(Po||(Po={}));var vs;(function(t){function e(i,r,s){let o={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&k.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||k.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||k.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(vs||(vs={}));var ws;(function(t){function e(i,r,s,o){let a={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&k.string(r.oldUri)&&k.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||k.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||k.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(ws||(ws={}));var Cs;(function(t){function e(i,r,s){let o={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&k.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||k.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||k.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Gt.is(r.annotationId))}t.is=n})(Cs||(Cs={}));var Xa;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>k.string(r.kind)?vs.is(r)||ws.is(r)||Cs.is(r):Po.is(r)))}t.is=e})(Xa||(Xa={}));class ua{constructor(e,n){this.edits=e,this.changeAnnotations=n}insert(e,n,i){let r,s;if(i===void 0?r=yi.insert(e,n):Gt.is(i)?(s=i,r=Ri.insert(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Ri.insert(e,n,s)),this.edits.push(r),s!==void 0)return s}replace(e,n,i){let r,s;if(i===void 0?r=yi.replace(e,n):Gt.is(i)?(s=i,r=Ri.replace(e,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),r=Ri.replace(e,n,s)),this.edits.push(r),s!==void 0)return s}delete(e,n){let i,r;if(n===void 0?i=yi.del(e):Gt.is(n)?(r=n,i=Ri.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Ri.del(e,r)),this.edits.push(i),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}}class dm{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,n){let i;if(Gt.is(e)?i=e:(i=this.nextId(),n=e),this._annotations[i]!==void 0)throw new Error(`Id ${i} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${i}`);return this._annotations[i]=n,this._size++,i}nextId(){return this._counter++,this._counter.toString()}}class oS{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new dm(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(n=>{if(Po.is(n)){const i=new ua(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(n=>{const i=new ua(e.changes[n]);this._textEditChanges[n]=i})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Io.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const n={uri:e.uri,version:e.version};let i=this._textEditChanges[n.uri];if(!i){const r=[],s={textDocument:n,edits:r};this._workspaceEdit.documentChanges.push(s),i=new ua(r,this._changeAnnotations),this._textEditChanges[n.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let n=this._textEditChanges[e];if(!n){let i=[];this._workspaceEdit.changes[e]=i,n=new ua(i),this._textEditChanges[e]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new dm,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r;$r.is(n)||Gt.is(n)?r=n:i=n;let s,o;if(r===void 0?s=vs.create(e,i):(o=Gt.is(r)?r:this._changeAnnotations.manage(r),s=vs.create(e,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}renameFile(e,n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let s;$r.is(i)||Gt.is(i)?s=i:r=i;let o,a;if(s===void 0?o=ws.create(e,n,r):(a=Gt.is(s)?s:this._changeAnnotations.manage(s),o=ws.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a}deleteFile(e,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r;$r.is(n)||Gt.is(n)?r=n:i=n;let s,o;if(r===void 0?s=Cs.create(e,i):(o=Gt.is(r)?r:this._changeAnnotations.manage(r),s=Cs.create(e,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}}var Ih;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)}t.is=n})(Ih||(Ih={}));var Fh;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&k.integer(r.version)}t.is=n})(Fh||(Fh={}));var Io;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&(r.version===null||k.integer(r.version))}t.is=n})(Io||(Io={}));var Mh;(function(t){function e(i,r,s,o){return{uri:i,languageId:r,version:s,text:o}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.string(r.uri)&&k.string(r.languageId)&&k.integer(r.version)&&k.string(r.text)}t.is=n})(Mh||(Mh={}));var Za;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(Za||(Za={}));var _s;(function(t){function e(n){const i=n;return k.objectLiteral(n)&&Za.is(i.kind)&&k.string(i.value)}t.is=e})(_s||(_s={}));var Oh;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Oh||(Oh={}));var Ah;(function(t){t.PlainText=1,t.Snippet=2})(Ah||(Ah={}));var Lh;(function(t){t.Deprecated=1})(Lh||(Lh={}));var Nh;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){const r=i;return r&&k.string(r.newText)&&St.is(r.insert)&&St.is(r.replace)}t.is=n})(Nh||(Nh={}));var $h;(function(t){t.asIs=1,t.adjustIndentation=2})($h||($h={}));var qh;(function(t){function e(n){const i=n;return i&&(k.string(i.detail)||i.detail===void 0)&&(k.string(i.description)||i.description===void 0)}t.is=e})(qh||(qh={}));var Hh;(function(t){function e(n){return{label:n}}t.create=e})(Hh||(Hh={}));var jh;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(jh||(jh={}));var Fo;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){const r=i;return k.string(r)||k.objectLiteral(r)&&k.string(r.language)&&k.string(r.value)}t.is=n})(Fo||(Fo={}));var Wh;(function(t){function e(n){let i=n;return!!i&&k.objectLiteral(i)&&(_s.is(i.contents)||Fo.is(i.contents)||k.typedArray(i.contents,Fo.is))&&(n.range===void 0||St.is(n.range))}t.is=e})(Wh||(Wh={}));var Uh;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(Uh||(Uh={}));var zh;(function(t){function e(n,i,...r){let s={label:n};return k.defined(i)&&(s.documentation=i),k.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(zh||(zh={}));var Bh;(function(t){t.Text=1,t.Read=2,t.Write=3})(Bh||(Bh={}));var Vh;(function(t){function e(n,i){let r={range:n};return k.number(i)&&(r.kind=i),r}t.create=e})(Vh||(Vh={}));var Kh;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Kh||(Kh={}));var Gh;(function(t){t.Deprecated=1})(Gh||(Gh={}));var Qh;(function(t){function e(n,i,r,s,o){let a={name:n,kind:i,location:{uri:s,range:r}};return o&&(a.containerName=o),a}t.create=e})(Qh||(Qh={}));var Jh;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(Jh||(Jh={}));var Yh;(function(t){function e(i,r,s,o,a,c){let l={name:i,detail:r,kind:s,range:o,selectionRange:a};return c!==void 0&&(l.children=c),l}t.create=e;function n(i){let r=i;return r&&k.string(r.name)&&k.number(r.kind)&&St.is(r.range)&&St.is(r.selectionRange)&&(r.detail===void 0||k.string(r.detail))&&(r.deprecated===void 0||k.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Yh||(Yh={}));var Xh;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Xh||(Xh={}));var Mo;(function(t){t.Invoked=1,t.Automatic=2})(Mo||(Mo={}));var Zh;(function(t){function e(i,r,s){let o={diagnostics:i};return r!=null&&(o.only=r),s!=null&&(o.triggerKind=s),o}t.create=e;function n(i){let r=i;return k.defined(r)&&k.typedArray(r.diagnostics,Eo.is)&&(r.only===void 0||k.typedArray(r.only,k.string))&&(r.triggerKind===void 0||r.triggerKind===Mo.Invoked||r.triggerKind===Mo.Automatic)}t.is=n})(Zh||(Zh={}));var e1;(function(t){function e(i,r,s){let o={title:i},a=!0;return typeof r=="string"?(a=!1,o.kind=r):jr.is(r)?o.command=r:o.edit=r,a&&s!==void 0&&(o.kind=s),o}t.create=e;function n(i){let r=i;return r&&k.string(r.title)&&(r.diagnostics===void 0||k.typedArray(r.diagnostics,Eo.is))&&(r.kind===void 0||k.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||jr.is(r.command))&&(r.isPreferred===void 0||k.boolean(r.isPreferred))&&(r.edit===void 0||Xa.is(r.edit))}t.is=n})(e1||(e1={}));var t1;(function(t){function e(i,r){let s={range:i};return k.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return k.defined(r)&&St.is(r.range)&&(k.undefined(r.command)||jr.is(r.command))}t.is=n})(t1||(t1={}));var n1;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return k.defined(r)&&k.uinteger(r.tabSize)&&k.boolean(r.insertSpaces)}t.is=n})(n1||(n1={}));var i1;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return k.defined(r)&&St.is(r.range)&&(k.undefined(r.target)||k.string(r.target))}t.is=n})(i1||(i1={}));var r1;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return k.objectLiteral(r)&&St.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(r1||(r1={}));var s1;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(s1||(s1={}));var o1;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(o1||(o1={}));var a1;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(a1||(a1={}));var c1;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&k.string(r.text)}t.is=n})(c1||(c1={}));var l1;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&k.boolean(r.caseSensitiveLookup)&&(k.string(r.variableName)||r.variableName===void 0)}t.is=n})(l1||(l1={}));var u1;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){const r=i;return r!=null&&St.is(r.range)&&(k.string(r.expression)||r.expression===void 0)}t.is=n})(u1||(u1={}));var d1;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){const r=i;return k.defined(r)&&St.is(i.stoppedLocation)}t.is=n})(d1||(d1={}));var ec;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ec||(ec={}));var tc;(function(t){function e(i){return{value:i}}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&(r.tooltip===void 0||k.string(r.tooltip)||_s.is(r.tooltip))&&(r.location===void 0||Ro.is(r.location))&&(r.command===void 0||jr.is(r.command))}t.is=n})(tc||(tc={}));var f1;(function(t){function e(i,r,s){const o={position:i,label:r};return s!==void 0&&(o.kind=s),o}t.create=e;function n(i){const r=i;return k.objectLiteral(r)&&Wn.is(r.position)&&(k.string(r.label)||k.typedArray(r.label,tc.is))&&(r.kind===void 0||ec.is(r.kind))&&r.textEdits===void 0||k.typedArray(r.textEdits,yi.is)&&(r.tooltip===void 0||k.string(r.tooltip)||_s.is(r.tooltip))&&(r.paddingLeft===void 0||k.boolean(r.paddingLeft))&&(r.paddingRight===void 0||k.boolean(r.paddingRight))}t.is=n})(f1||(f1={}));var h1;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(h1||(h1={}));var g1;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(g1||(g1={}));var p1;(function(t){function e(n){return{items:n}}t.create=e})(p1||(p1={}));var m1;(function(t){t.Invoked=0,t.Automatic=1})(m1||(m1={}));var y1;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(y1||(y1={}));var b1;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(b1||(b1={}));var v1;(function(t){function e(n){const i=n;return k.objectLiteral(i)&&Qa.is(i.uri)&&k.string(i.name)}t.is=e})(v1||(v1={}));const aS=[`
104
104
  `,`\r
105
- `,"\r"];var w1;(function(t){function e(s,o,a,c){return new aS(s,o,a,c)}t.create=e;function n(s){let o=s;return!!(k.defined(o)&&k.string(o.uri)&&(k.undefined(o.languageId)||k.string(o.languageId))&&k.uinteger(o.lineCount)&&k.func(o.getText)&&k.func(o.positionAt)&&k.func(o.offsetAt))}t.is=n;function i(s,o){let a=s.getText(),c=r(o,(h,g)=>{let p=h.range.start.line-g.range.start.line;return p===0?h.range.start.character-g.range.start.character:p}),l=a.length;for(let h=c.length-1;h>=0;h--){let g=c[h],p=s.offsetAt(g.range.start),w=s.offsetAt(g.range.end);if(w<=l)a=a.substring(0,p)+g.newText+a.substring(w,a.length);else throw new Error("Overlapping edit");l=p}return a}t.applyEdits=i;function r(s,o){if(s.length<=1)return s;const a=s.length/2|0,c=s.slice(0,a),l=s.slice(a);r(c,o),r(l,o);let h=0,g=0,p=0;for(;h<c.length&&g<l.length;)o(c[h],l[g])<=0?s[p++]=c[h++]:s[p++]=l[g++];for(;h<c.length;)s[p++]=c[h++];for(;g<l.length;)s[p++]=l[g++];return s}})(w1||(w1={}));class aS{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
105
+ `,"\r"];var w1;(function(t){function e(s,o,a,c){return new cS(s,o,a,c)}t.create=e;function n(s){let o=s;return!!(k.defined(o)&&k.string(o.uri)&&(k.undefined(o.languageId)||k.string(o.languageId))&&k.uinteger(o.lineCount)&&k.func(o.getText)&&k.func(o.positionAt)&&k.func(o.offsetAt))}t.is=n;function i(s,o){let a=s.getText(),c=r(o,(h,g)=>{let p=h.range.start.line-g.range.start.line;return p===0?h.range.start.character-g.range.start.character:p}),l=a.length;for(let h=c.length-1;h>=0;h--){let g=c[h],p=s.offsetAt(g.range.start),w=s.offsetAt(g.range.end);if(w<=l)a=a.substring(0,p)+g.newText+a.substring(w,a.length);else throw new Error("Overlapping edit");l=p}return a}t.applyEdits=i;function r(s,o){if(s.length<=1)return s;const a=s.length/2|0,c=s.slice(0,a),l=s.slice(a);r(c,o),r(l,o);let h=0,g=0,p=0;for(;h<c.length&&g<l.length;)o(c[h],l[g])<=0?s[p++]=c[h++]:s[p++]=l[g++];for(;h<c.length;)s[p++]=c[h++];for(;g<l.length;)s[p++]=l[g++];return s}})(w1||(w1={}));class cS{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
106
106
  `,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
107
- `&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return Wn.create(0,e);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>e?r=o:i=o+1}let s=i-1;return Wn.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}}var k;(function(t){const e=Object.prototype.toString;function n(w){return typeof w<"u"}t.defined=n;function i(w){return typeof w>"u"}t.undefined=i;function r(w){return w===!0||w===!1}t.boolean=r;function s(w){return e.call(w)==="[object String]"}t.string=s;function o(w){return e.call(w)==="[object Number]"}t.number=o;function a(w,v,x){return e.call(w)==="[object Number]"&&v<=w&&w<=x}t.numberRange=a;function c(w){return e.call(w)==="[object Number]"&&-2147483648<=w&&w<=2147483647}t.integer=c;function l(w){return e.call(w)==="[object Number]"&&0<=w&&w<=2147483647}t.uinteger=l;function h(w){return e.call(w)==="[object Function]"}t.func=h;function g(w){return w!==null&&typeof w=="object"}t.objectLiteral=g;function p(w,v){return Array.isArray(w)&&w.every(v)}t.typedArray=p})(k||(k={}));const cS=Object.freeze(Object.defineProperty({__proto__:null,get AnnotatedTextEdit(){return Ri},get ChangeAnnotation(){return $r},get ChangeAnnotationIdentifier(){return Gt},get CodeAction(){return e1},get CodeActionContext(){return Zh},get CodeActionKind(){return Xh},get CodeActionTriggerKind(){return Mo},get CodeDescription(){return Ph},get CodeLens(){return t1},get Color(){return Ja},get ColorInformation(){return Dh},get ColorPresentation(){return xh},get Command(){return jr},get CompletionItem(){return Hh},get CompletionItemKind(){return Oh},get CompletionItemLabelDetails(){return qh},get CompletionItemTag(){return Lh},get CompletionList(){return jh},get CreateFile(){return vs},get DeleteFile(){return Cs},get Diagnostic(){return Eo},get DiagnosticRelatedInformation(){return Ya},get DiagnosticSeverity(){return Rh},get DiagnosticTag(){return Eh},get DocumentHighlight(){return Vh},get DocumentHighlightKind(){return Bh},get DocumentLink(){return i1},get DocumentSymbol(){return Yh},get DocumentUri(){return Ch},EOL:oS,get FoldingRange(){return Th},get FoldingRangeKind(){return kh},get FormattingOptions(){return n1},get Hover(){return Wh},get InlayHint(){return f1},get InlayHintKind(){return ec},get InlayHintLabelPart(){return tc},get InlineCompletionContext(){return b1},get InlineCompletionItem(){return g1},get InlineCompletionList(){return p1},get InlineCompletionTriggerKind(){return m1},get InlineValueContext(){return d1},get InlineValueEvaluatableExpression(){return u1},get InlineValueText(){return c1},get InlineValueVariableLookup(){return l1},get InsertReplaceEdit(){return Nh},get InsertTextFormat(){return Ah},get InsertTextMode(){return $h},get Location(){return Ro},get LocationLink(){return Sh},get MarkedString(){return Fo},get MarkupContent(){return _s},get MarkupKind(){return Za},get OptionalVersionedTextDocumentIdentifier(){return Io},get ParameterInformation(){return Uh},get Position(){return Wn},get Range(){return St},get RenameFile(){return ws},get SelectedCompletionInfo(){return y1},get SelectionRange(){return r1},get SemanticTokenModifiers(){return o1},get SemanticTokenTypes(){return s1},get SemanticTokens(){return a1},get SignatureInformation(){return zh},get StringValue(){return h1},get SymbolInformation(){return Qh},get SymbolKind(){return Kh},get SymbolTag(){return Gh},get TextDocument(){return w1},get TextDocumentEdit(){return Po},get TextDocumentIdentifier(){return Ih},get TextDocumentItem(){return Mh},get TextEdit(){return yi},get URI(){return Qa},get VersionedTextDocumentIdentifier(){return Fh},WorkspaceChange:sS,get WorkspaceEdit(){return Xa},get WorkspaceFolder(){return v1},get WorkspaceSymbol(){return Jh},get integer(){return _h},get uinteger(){return To}},Symbol.toStringTag,{value:"Module"})),B1=I0(cS);var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ProtocolNotificationType=Ne.ProtocolNotificationType0=Ne.ProtocolRequestType=Ne.ProtocolRequestType0=Ne.RegistrationType=Ne.MessageDirection=void 0;const Ss=$o;var dm;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(dm||(Ne.MessageDirection=dm={}));class lS{constructor(e){this.method=e}}Ne.RegistrationType=lS;class uS extends Ss.RequestType0{constructor(e){super(e)}}Ne.ProtocolRequestType0=uS;class dS extends Ss.RequestType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolRequestType=dS;class fS extends Ss.NotificationType0{constructor(e){super(e)}}Ne.ProtocolNotificationType0=fS;class hS extends Ss.NotificationType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolNotificationType=hS;var O2={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.objectLiteral=Ct.typedArray=Ct.stringArray=Ct.array=Ct.func=Ct.error=Ct.number=Ct.string=Ct.boolean=void 0;function gS(t){return t===!0||t===!1}Ct.boolean=gS;function A2(t){return typeof t=="string"||t instanceof String}Ct.string=A2;function pS(t){return typeof t=="number"||t instanceof Number}Ct.number=pS;function mS(t){return t instanceof Error}Ct.error=mS;function yS(t){return typeof t=="function"}Ct.func=yS;function L2(t){return Array.isArray(t)}Ct.array=L2;function bS(t){return L2(t)&&t.every(e=>A2(e))}Ct.stringArray=bS;function vS(t,e){return Array.isArray(t)&&t.every(e)}Ct.typedArray=vS;function wS(t){return t!==null&&typeof t=="object"}Ct.objectLiteral=wS;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.ImplementationRequest=void 0;const fm=Ne;var hm;(function(t){t.method="textDocument/implementation",t.messageDirection=fm.MessageDirection.clientToServer,t.type=new fm.ProtocolRequestType(t.method)})(hm||(fl.ImplementationRequest=hm={}));var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.TypeDefinitionRequest=void 0;const gm=Ne;var pm;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=gm.MessageDirection.clientToServer,t.type=new gm.ProtocolRequestType(t.method)})(pm||(hl.TypeDefinitionRequest=pm={}));var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.DidChangeWorkspaceFoldersNotification=Ds.WorkspaceFoldersRequest=void 0;const nc=Ne;var mm;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=nc.MessageDirection.serverToClient,t.type=new nc.ProtocolRequestType0(t.method)})(mm||(Ds.WorkspaceFoldersRequest=mm={}));var ym;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=nc.MessageDirection.clientToServer,t.type=new nc.ProtocolNotificationType(t.method)})(ym||(Ds.DidChangeWorkspaceFoldersNotification=ym={}));var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.ConfigurationRequest=void 0;const bm=Ne;var vm;(function(t){t.method="workspace/configuration",t.messageDirection=bm.MessageDirection.serverToClient,t.type=new bm.ProtocolRequestType(t.method)})(vm||(gl.ConfigurationRequest=vm={}));var xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.ColorPresentationRequest=xs.DocumentColorRequest=void 0;const ic=Ne;var wm;(function(t){t.method="textDocument/documentColor",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(wm||(xs.DocumentColorRequest=wm={}));var Cm;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(Cm||(xs.ColorPresentationRequest=Cm={}));var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.FoldingRangeRefreshRequest=ks.FoldingRangeRequest=void 0;const rc=Ne;var _m;(function(t){t.method="textDocument/foldingRange",t.messageDirection=rc.MessageDirection.clientToServer,t.type=new rc.ProtocolRequestType(t.method)})(_m||(ks.FoldingRangeRequest=_m={}));var Sm;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=rc.MessageDirection.serverToClient,t.type=new rc.ProtocolRequestType0(t.method)})(Sm||(ks.FoldingRangeRefreshRequest=Sm={}));var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.DeclarationRequest=void 0;const Dm=Ne;var xm;(function(t){t.method="textDocument/declaration",t.messageDirection=Dm.MessageDirection.clientToServer,t.type=new Dm.ProtocolRequestType(t.method)})(xm||(pl.DeclarationRequest=xm={}));var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.SelectionRangeRequest=void 0;const km=Ne;var Tm;(function(t){t.method="textDocument/selectionRange",t.messageDirection=km.MessageDirection.clientToServer,t.type=new km.ProtocolRequestType(t.method)})(Tm||(ml.SelectionRangeRequest=Tm={}));var sr={};Object.defineProperty(sr,"__esModule",{value:!0});sr.WorkDoneProgressCancelNotification=sr.WorkDoneProgressCreateRequest=sr.WorkDoneProgress=void 0;const CS=$o,sc=Ne;var Rm;(function(t){t.type=new CS.ProgressType;function e(n){return n===t.type}t.is=e})(Rm||(sr.WorkDoneProgress=Rm={}));var Em;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=sc.MessageDirection.serverToClient,t.type=new sc.ProtocolRequestType(t.method)})(Em||(sr.WorkDoneProgressCreateRequest=Em={}));var Pm;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=sc.MessageDirection.clientToServer,t.type=new sc.ProtocolNotificationType(t.method)})(Pm||(sr.WorkDoneProgressCancelNotification=Pm={}));var or={};Object.defineProperty(or,"__esModule",{value:!0});or.CallHierarchyOutgoingCallsRequest=or.CallHierarchyIncomingCallsRequest=or.CallHierarchyPrepareRequest=void 0;const Ts=Ne;var Im;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Im||(or.CallHierarchyPrepareRequest=Im={}));var Fm;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Fm||(or.CallHierarchyIncomingCallsRequest=Fm={}));var Mm;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Mm||(or.CallHierarchyOutgoingCallsRequest=Mm={}));var wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.SemanticTokensRefreshRequest=wn.SemanticTokensRangeRequest=wn.SemanticTokensDeltaRequest=wn.SemanticTokensRequest=wn.SemanticTokensRegistrationType=wn.TokenFormat=void 0;const Wi=Ne;var Om;(function(t){t.Relative="relative"})(Om||(wn.TokenFormat=Om={}));var Oo;(function(t){t.method="textDocument/semanticTokens",t.type=new Wi.RegistrationType(t.method)})(Oo||(wn.SemanticTokensRegistrationType=Oo={}));var Am;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Am||(wn.SemanticTokensRequest=Am={}));var Lm;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Lm||(wn.SemanticTokensDeltaRequest=Lm={}));var Nm;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Nm||(wn.SemanticTokensRangeRequest=Nm={}));var $m;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Wi.MessageDirection.serverToClient,t.type=new Wi.ProtocolRequestType0(t.method)})($m||(wn.SemanticTokensRefreshRequest=$m={}));var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.ShowDocumentRequest=void 0;const qm=Ne;var Hm;(function(t){t.method="window/showDocument",t.messageDirection=qm.MessageDirection.serverToClient,t.type=new qm.ProtocolRequestType(t.method)})(Hm||(yl.ShowDocumentRequest=Hm={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.LinkedEditingRangeRequest=void 0;const jm=Ne;var Wm;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=jm.MessageDirection.clientToServer,t.type=new jm.ProtocolRequestType(t.method)})(Wm||(bl.LinkedEditingRangeRequest=Wm={}));var sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.WillDeleteFilesRequest=sn.DidDeleteFilesNotification=sn.DidRenameFilesNotification=sn.WillRenameFilesRequest=sn.DidCreateFilesNotification=sn.WillCreateFilesRequest=sn.FileOperationPatternKind=void 0;const Bn=Ne;var Um;(function(t){t.file="file",t.folder="folder"})(Um||(sn.FileOperationPatternKind=Um={}));var zm;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(zm||(sn.WillCreateFilesRequest=zm={}));var Bm;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Bm||(sn.DidCreateFilesNotification=Bm={}));var Vm;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Vm||(sn.WillRenameFilesRequest=Vm={}));var Km;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Km||(sn.DidRenameFilesNotification=Km={}));var Gm;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Gm||(sn.DidDeleteFilesNotification=Gm={}));var Qm;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Qm||(sn.WillDeleteFilesRequest=Qm={}));var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.MonikerRequest=ar.MonikerKind=ar.UniquenessLevel=void 0;const Jm=Ne;var Ym;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Ym||(ar.UniquenessLevel=Ym={}));var Xm;(function(t){t.$import="import",t.$export="export",t.local="local"})(Xm||(ar.MonikerKind=Xm={}));var Zm;(function(t){t.method="textDocument/moniker",t.messageDirection=Jm.MessageDirection.clientToServer,t.type=new Jm.ProtocolRequestType(t.method)})(Zm||(ar.MonikerRequest=Zm={}));var cr={};Object.defineProperty(cr,"__esModule",{value:!0});cr.TypeHierarchySubtypesRequest=cr.TypeHierarchySupertypesRequest=cr.TypeHierarchyPrepareRequest=void 0;const Rs=Ne;var e0;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(e0||(cr.TypeHierarchyPrepareRequest=e0={}));var t0;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(t0||(cr.TypeHierarchySupertypesRequest=t0={}));var n0;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(n0||(cr.TypeHierarchySubtypesRequest=n0={}));var Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.InlineValueRefreshRequest=Es.InlineValueRequest=void 0;const oc=Ne;var i0;(function(t){t.method="textDocument/inlineValue",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method)})(i0||(Es.InlineValueRequest=i0={}));var r0;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=oc.MessageDirection.serverToClient,t.type=new oc.ProtocolRequestType0(t.method)})(r0||(Es.InlineValueRefreshRequest=r0={}));var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.InlayHintRefreshRequest=lr.InlayHintResolveRequest=lr.InlayHintRequest=void 0;const Ps=Ne;var s0;(function(t){t.method="textDocument/inlayHint",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(s0||(lr.InlayHintRequest=s0={}));var o0;(function(t){t.method="inlayHint/resolve",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(o0||(lr.InlayHintResolveRequest=o0={}));var a0;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=Ps.MessageDirection.serverToClient,t.type=new Ps.ProtocolRequestType0(t.method)})(a0||(lr.InlayHintRefreshRequest=a0={}));var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.DiagnosticRefreshRequest=Un.WorkspaceDiagnosticRequest=Un.DocumentDiagnosticRequest=Un.DocumentDiagnosticReportKind=Un.DiagnosticServerCancellationData=void 0;const N2=$o,_S=Ct,Is=Ne;var c0;(function(t){function e(n){const i=n;return i&&_S.boolean(i.retriggerRequest)}t.is=e})(c0||(Un.DiagnosticServerCancellationData=c0={}));var l0;(function(t){t.Full="full",t.Unchanged="unchanged"})(l0||(Un.DocumentDiagnosticReportKind=l0={}));var u0;(function(t){t.method="textDocument/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new N2.ProgressType})(u0||(Un.DocumentDiagnosticRequest=u0={}));var d0;(function(t){t.method="workspace/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new N2.ProgressType})(d0||(Un.WorkspaceDiagnosticRequest=d0={}));var f0;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=Is.MessageDirection.serverToClient,t.type=new Is.ProtocolRequestType0(t.method)})(f0||(Un.DiagnosticRefreshRequest=f0={}));var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.DidCloseNotebookDocumentNotification=wt.DidSaveNotebookDocumentNotification=wt.DidChangeNotebookDocumentNotification=wt.NotebookCellArrayChange=wt.DidOpenNotebookDocumentNotification=wt.NotebookDocumentSyncRegistrationType=wt.NotebookDocument=wt.NotebookCell=wt.ExecutionSummary=wt.NotebookCellKind=void 0;const Ao=B1,oi=Ct,Ci=Ne;var C1;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(C1||(wt.NotebookCellKind=C1={}));var _1;(function(t){function e(r,s){const o={executionOrder:r};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(r){const s=r;return oi.objectLiteral(s)&&Ao.uinteger.is(s.executionOrder)&&(s.success===void 0||oi.boolean(s.success))}t.is=n;function i(r,s){return r===s?!0:r==null||s===null||s===void 0?!1:r.executionOrder===s.executionOrder&&r.success===s.success}t.equals=i})(_1||(wt.ExecutionSummary=_1={}));var ac;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){const o=s;return oi.objectLiteral(o)&&C1.is(o.kind)&&Ao.DocumentUri.is(o.document)&&(o.metadata===void 0||oi.objectLiteral(o.metadata))}t.is=n;function i(s,o){const a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!r(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!_1.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=i;function r(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;const a=Array.isArray(s),c=Array.isArray(o);if(a!==c)return!1;if(a&&c){if(s.length!==o.length)return!1;for(let l=0;l<s.length;l++)if(!r(s[l],o[l]))return!1}if(oi.objectLiteral(s)&&oi.objectLiteral(o)){const l=Object.keys(s),h=Object.keys(o);if(l.length!==h.length||(l.sort(),h.sort(),!r(l,h)))return!1;for(let g=0;g<l.length;g++){const p=l[g];if(!r(s[p],o[p]))return!1}}return!0}})(ac||(wt.NotebookCell=ac={}));var h0;(function(t){function e(i,r,s,o){return{uri:i,notebookType:r,version:s,cells:o}}t.create=e;function n(i){const r=i;return oi.objectLiteral(r)&&oi.string(r.uri)&&Ao.integer.is(r.version)&&oi.typedArray(r.cells,ac.is)}t.is=n})(h0||(wt.NotebookDocument=h0={}));var Fs;(function(t){t.method="notebookDocument/sync",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.RegistrationType(t.method)})(Fs||(wt.NotebookDocumentSyncRegistrationType=Fs={}));var g0;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(g0||(wt.DidOpenNotebookDocumentNotification=g0={}));var p0;(function(t){function e(i){const r=i;return oi.objectLiteral(r)&&Ao.uinteger.is(r.start)&&Ao.uinteger.is(r.deleteCount)&&(r.cells===void 0||oi.typedArray(r.cells,ac.is))}t.is=e;function n(i,r,s){const o={start:i,deleteCount:r};return s!==void 0&&(o.cells=s),o}t.create=n})(p0||(wt.NotebookCellArrayChange=p0={}));var m0;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(m0||(wt.DidChangeNotebookDocumentNotification=m0={}));var y0;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(y0||(wt.DidSaveNotebookDocumentNotification=y0={}));var b0;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(b0||(wt.DidCloseNotebookDocumentNotification=b0={}));var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.InlineCompletionRequest=void 0;const v0=Ne;var w0;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=v0.MessageDirection.clientToServer,t.type=new v0.ProtocolRequestType(t.method)})(w0||(vl.InlineCompletionRequest=w0={}));(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=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.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerRequest=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=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=void 0;const e=Ne,n=B1,i=Ct,r=fl;Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return r.ImplementationRequest}});const s=hl;Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const o=Ds;Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return o.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return o.DidChangeWorkspaceFoldersNotification}});const a=gl;Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const c=xs;Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return c.ColorPresentationRequest}});const l=ks;Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return l.FoldingRangeRefreshRequest}});const h=pl;Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return h.DeclarationRequest}});const g=ml;Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return g.SelectionRangeRequest}});const p=sr;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 w=or;Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return w.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return w.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return w.CallHierarchyPrepareRequest}});const v=wn;Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return v.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return v.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return v.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return v.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return v.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return v.SemanticTokensRegistrationType}});const x=yl;Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return x.ShowDocumentRequest}});const T=bl;Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return T.LinkedEditingRangeRequest}});const q=sn;Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return q.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return q.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return q.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return q.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return q.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return q.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return q.WillDeleteFilesRequest}});const z=ar;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return z.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return z.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return z.MonikerRequest}});const A=cr;Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return A.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return A.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return A.TypeHierarchySupertypesRequest}});const W=Es;Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return W.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return W.InlineValueRefreshRequest}});const j=lr;Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return j.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return j.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return j.InlayHintRefreshRequest}});const se=Un;Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return se.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return se.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return se.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return se.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return se.DiagnosticRefreshRequest}});const B=wt;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return B.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return B.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return B.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return B.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return B.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return B.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidCloseNotebookDocumentNotification}});const Z=vl;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return Z.InlineCompletionRequest}});var oe;(function(b){function le(fe){const G=fe;return i.string(G)||i.string(G.language)||i.string(G.scheme)||i.string(G.pattern)}b.is=le})(oe||(t.TextDocumentFilter=oe={}));var qe;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(i.string(G.notebookType)||i.string(G.scheme)||i.string(G.pattern))}b.is=le})(qe||(t.NotebookDocumentFilter=qe={}));var O;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(i.string(G.notebook)||qe.is(G.notebook))&&(G.language===void 0||i.string(G.language))}b.is=le})(O||(t.NotebookCellTextDocumentFilter=O={}));var L;(function(b){function le(fe){if(!Array.isArray(fe))return!1;for(let G of fe)if(!i.string(G)&&!oe.is(G)&&!O.is(G))return!1;return!0}b.is=le})(L||(t.DocumentSelector=L={}));var D;(function(b){b.method="client/registerCapability",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(D||(t.RegistrationRequest=D={}));var P;(function(b){b.method="client/unregisterCapability",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(P||(t.UnregistrationRequest=P={}));var N;(function(b){b.Create="create",b.Rename="rename",b.Delete="delete"})(N||(t.ResourceOperationKind=N={}));var $;(function(b){b.Abort="abort",b.Transactional="transactional",b.TextOnlyTransactional="textOnlyTransactional",b.Undo="undo"})($||(t.FailureHandlingKind=$={}));var ee;(function(b){b.UTF8="utf-8",b.UTF16="utf-16",b.UTF32="utf-32"})(ee||(t.PositionEncodingKind=ee={}));var ke;(function(b){function le(fe){const G=fe;return G&&i.string(G.id)&&G.id.length>0}b.hasId=le})(ke||(t.StaticRegistrationOptions=ke={}));var pe;(function(b){function le(fe){const G=fe;return G&&(G.documentSelector===null||L.is(G.documentSelector))}b.is=le})(pe||(t.TextDocumentRegistrationOptions=pe={}));var ot;(function(b){function le(G){const C=G;return i.objectLiteral(C)&&(C.workDoneProgress===void 0||i.boolean(C.workDoneProgress))}b.is=le;function fe(G){const C=G;return C&&i.boolean(C.workDoneProgress)}b.hasWorkDoneProgress=fe})(ot||(t.WorkDoneProgressOptions=ot={}));var Ke;(function(b){b.method="initialize",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ke||(t.InitializeRequest=Ke={}));var Pe;(function(b){b.unknownProtocolVersion=1})(Pe||(t.InitializeErrorCodes=Pe={}));var ft;(function(b){b.method="initialized",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(ft||(t.InitializedNotification=ft={}));var He;(function(b){b.method="shutdown",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType0(b.method)})(He||(t.ShutdownRequest=He={}));var ht;(function(b){b.method="exit",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType0(b.method)})(ht||(t.ExitNotification=ht={}));var rt;(function(b){b.method="workspace/didChangeConfiguration",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(rt||(t.DidChangeConfigurationNotification=rt={}));var Ut;(function(b){b.Error=1,b.Warning=2,b.Info=3,b.Log=4,b.Debug=5})(Ut||(t.MessageType=Ut={}));var gt;(function(b){b.method="window/showMessage",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(gt||(t.ShowMessageNotification=gt={}));var Dt;(function(b){b.method="window/showMessageRequest",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(Dt||(t.ShowMessageRequest=Dt={}));var Pt;(function(b){b.method="window/logMessage",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Pt||(t.LogMessageNotification=Pt={}));var Lt;(function(b){b.method="telemetry/event",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Lt||(t.TelemetryEventNotification=Lt={}));var Se;(function(b){b.None=0,b.Full=1,b.Incremental=2})(Se||(t.TextDocumentSyncKind=Se={}));var Nt;(function(b){b.method="textDocument/didOpen",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Nt||(t.DidOpenTextDocumentNotification=Nt={}));var Be;(function(b){function le(G){let C=G;return C!=null&&typeof C.text=="string"&&C.range!==void 0&&(C.rangeLength===void 0||typeof C.rangeLength=="number")}b.isIncremental=le;function fe(G){let C=G;return C!=null&&typeof C.text=="string"&&C.range===void 0&&C.rangeLength===void 0}b.isFull=fe})(Be||(t.TextDocumentContentChangeEvent=Be={}));var xt;(function(b){b.method="textDocument/didChange",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(xt||(t.DidChangeTextDocumentNotification=xt={}));var Cn;(function(b){b.method="textDocument/didClose",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Cn||(t.DidCloseTextDocumentNotification=Cn={}));var hn;(function(b){b.method="textDocument/didSave",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(hn||(t.DidSaveTextDocumentNotification=hn={}));var Jt;(function(b){b.Manual=1,b.AfterDelay=2,b.FocusOut=3})(Jt||(t.TextDocumentSaveReason=Jt={}));var It;(function(b){b.method="textDocument/willSave",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(It||(t.WillSaveTextDocumentNotification=It={}));var Ft;(function(b){b.method="textDocument/willSaveWaitUntil",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ft||(t.WillSaveTextDocumentWaitUntilRequest=Ft={}));var Xe;(function(b){b.method="workspace/didChangeWatchedFiles",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Xe||(t.DidChangeWatchedFilesNotification=Xe={}));var Yt;(function(b){b.Created=1,b.Changed=2,b.Deleted=3})(Yt||(t.FileChangeType=Yt={}));var Kn;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(n.URI.is(G.baseUri)||n.WorkspaceFolder.is(G.baseUri))&&i.string(G.pattern)}b.is=le})(Kn||(t.RelativePattern=Kn={}));var In;(function(b){b.Create=1,b.Change=2,b.Delete=4})(In||(t.WatchKind=In={}));var Fn;(function(b){b.method="textDocument/publishDiagnostics",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Fn||(t.PublishDiagnosticsNotification=Fn={}));var Gn;(function(b){b.Invoked=1,b.TriggerCharacter=2,b.TriggerForIncompleteCompletions=3})(Gn||(t.CompletionTriggerKind=Gn={}));var Qn;(function(b){b.method="textDocument/completion",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Qn||(t.CompletionRequest=Qn={}));var _n;(function(b){b.method="completionItem/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(_n||(t.CompletionResolveRequest=_n={}));var Xt;(function(b){b.method="textDocument/hover",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Xt||(t.HoverRequest=Xt={}));var Mn;(function(b){b.Invoked=1,b.TriggerCharacter=2,b.ContentChange=3})(Mn||(t.SignatureHelpTriggerKind=Mn={}));var ai;(function(b){b.method="textDocument/signatureHelp",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(ai||(t.SignatureHelpRequest=ai={}));var Zt;(function(b){b.method="textDocument/definition",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Zt||(t.DefinitionRequest=Zt={}));var gn;(function(b){b.method="textDocument/references",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(gn||(t.ReferencesRequest=gn={}));var On;(function(b){b.method="textDocument/documentHighlight",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(On||(t.DocumentHighlightRequest=On={}));var en;(function(b){b.method="textDocument/documentSymbol",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(en||(t.DocumentSymbolRequest=en={}));var An;(function(b){b.method="textDocument/codeAction",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(An||(t.CodeActionRequest=An={}));var Sn;(function(b){b.method="codeAction/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Sn||(t.CodeActionResolveRequest=Sn={}));var Ln;(function(b){b.method="workspace/symbol",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ln||(t.WorkspaceSymbolRequest=Ln={}));var ci;(function(b){b.method="workspaceSymbol/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(ci||(t.WorkspaceSymbolResolveRequest=ci={}));var Dn;(function(b){b.method="textDocument/codeLens",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Dn||(t.CodeLensRequest=Dn={}));var zt;(function(b){b.method="codeLens/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(zt||(t.CodeLensResolveRequest=zt={}));var Nn;(function(b){b.method="workspace/codeLens/refresh",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType0(b.method)})(Nn||(t.CodeLensRefreshRequest=Nn={}));var Jn;(function(b){b.method="textDocument/documentLink",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Jn||(t.DocumentLinkRequest=Jn={}));var cn;(function(b){b.method="documentLink/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(cn||(t.DocumentLinkResolveRequest=cn={}));var m;(function(b){b.method="textDocument/formatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(m||(t.DocumentFormattingRequest=m={}));var E;(function(b){b.method="textDocument/rangeFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(E||(t.DocumentRangeFormattingRequest=E={}));var te;(function(b){b.method="textDocument/rangesFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(te||(t.DocumentRangesFormattingRequest=te={}));var we;(function(b){b.method="textDocument/onTypeFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(we||(t.DocumentOnTypeFormattingRequest=we={}));var Te;(function(b){b.Identifier=1})(Te||(t.PrepareSupportDefaultBehavior=Te={}));var at;(function(b){b.method="textDocument/rename",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(at||(t.RenameRequest=at={}));var S;(function(b){b.method="textDocument/prepareRename",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(S||(t.PrepareRenameRequest=S={}));var H;(function(b){b.method="workspace/executeCommand",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(H||(t.ExecuteCommandRequest=H={}));var Y;(function(b){b.method="workspace/applyEdit",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType("workspace/applyEdit")})(Y||(t.ApplyWorkspaceEditRequest=Y={}))})(O2);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.createProtocolConnection=void 0;const C0=$o;function SS(t,e,n,i){return C0.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,C0.createMessageConnection)(t,e,n,i)}wl.createProtocolConnection=SS;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=Et&&Et.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,n($o,t),n(B1,t),n(Ne,t),n(O2,t);var i=wl;Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return i.createProtocolConnection}});var r;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(r||(t.LSPErrorCodes=r={}))})(M2);(function(t){var e=Et&&Et.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=Et&&Et.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const i=lm;n(lm,t),n(M2,t);function r(s,o,a,c){return(0,i.createMessageConnection)(s,o,a,c)}t.createProtocolConnection=r})(D2);var _0=D2;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(o,a,c,l){l===void 0&&(l=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(o,l,h)}:function(o,a,c,l){l===void 0&&(l=c),o[l]=a[c]}),n=Et&&Et.__exportStar||function(o,a){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&e(a,o,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageClient=void 0;const i=mu,r=_0;n(_0,t),n(mu,t);class s extends i.BaseLanguageClient{constructor(a,c,l,h){super(a,c,l),this.worker=h}createMessageTransports(a){const c=new r.BrowserMessageReader(this.worker),l=new r.BrowserMessageWriter(this.worker);return Promise.resolve({reader:c,writer:l})}}t.LanguageClient=s})(pu);class DS extends D1.WebSocketMessageReader{constructor(n,i){super(n);pn(this,"onMessage");this.onMessage=i}readMessage(n){this.onMessage&&this.onMessage();const[,i]=n.split(`\r
107
+ `&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return Wn.create(0,e);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>e?r=o:i=o+1}let s=i-1;return Wn.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}}var k;(function(t){const e=Object.prototype.toString;function n(w){return typeof w<"u"}t.defined=n;function i(w){return typeof w>"u"}t.undefined=i;function r(w){return w===!0||w===!1}t.boolean=r;function s(w){return e.call(w)==="[object String]"}t.string=s;function o(w){return e.call(w)==="[object Number]"}t.number=o;function a(w,v,x){return e.call(w)==="[object Number]"&&v<=w&&w<=x}t.numberRange=a;function c(w){return e.call(w)==="[object Number]"&&-2147483648<=w&&w<=2147483647}t.integer=c;function l(w){return e.call(w)==="[object Number]"&&0<=w&&w<=2147483647}t.uinteger=l;function h(w){return e.call(w)==="[object Function]"}t.func=h;function g(w){return w!==null&&typeof w=="object"}t.objectLiteral=g;function p(w,v){return Array.isArray(w)&&w.every(v)}t.typedArray=p})(k||(k={}));const lS=Object.freeze(Object.defineProperty({__proto__:null,get AnnotatedTextEdit(){return Ri},get ChangeAnnotation(){return $r},get ChangeAnnotationIdentifier(){return Gt},get CodeAction(){return e1},get CodeActionContext(){return Zh},get CodeActionKind(){return Xh},get CodeActionTriggerKind(){return Mo},get CodeDescription(){return Ph},get CodeLens(){return t1},get Color(){return Ja},get ColorInformation(){return Dh},get ColorPresentation(){return xh},get Command(){return jr},get CompletionItem(){return Hh},get CompletionItemKind(){return Oh},get CompletionItemLabelDetails(){return qh},get CompletionItemTag(){return Lh},get CompletionList(){return jh},get CreateFile(){return vs},get DeleteFile(){return Cs},get Diagnostic(){return Eo},get DiagnosticRelatedInformation(){return Ya},get DiagnosticSeverity(){return Rh},get DiagnosticTag(){return Eh},get DocumentHighlight(){return Vh},get DocumentHighlightKind(){return Bh},get DocumentLink(){return i1},get DocumentSymbol(){return Yh},get DocumentUri(){return Ch},EOL:aS,get FoldingRange(){return Th},get FoldingRangeKind(){return kh},get FormattingOptions(){return n1},get Hover(){return Wh},get InlayHint(){return f1},get InlayHintKind(){return ec},get InlayHintLabelPart(){return tc},get InlineCompletionContext(){return b1},get InlineCompletionItem(){return g1},get InlineCompletionList(){return p1},get InlineCompletionTriggerKind(){return m1},get InlineValueContext(){return d1},get InlineValueEvaluatableExpression(){return u1},get InlineValueText(){return c1},get InlineValueVariableLookup(){return l1},get InsertReplaceEdit(){return Nh},get InsertTextFormat(){return Ah},get InsertTextMode(){return $h},get Location(){return Ro},get LocationLink(){return Sh},get MarkedString(){return Fo},get MarkupContent(){return _s},get MarkupKind(){return Za},get OptionalVersionedTextDocumentIdentifier(){return Io},get ParameterInformation(){return Uh},get Position(){return Wn},get Range(){return St},get RenameFile(){return ws},get SelectedCompletionInfo(){return y1},get SelectionRange(){return r1},get SemanticTokenModifiers(){return o1},get SemanticTokenTypes(){return s1},get SemanticTokens(){return a1},get SignatureInformation(){return zh},get StringValue(){return h1},get SymbolInformation(){return Qh},get SymbolKind(){return Kh},get SymbolTag(){return Gh},get TextDocument(){return w1},get TextDocumentEdit(){return Po},get TextDocumentIdentifier(){return Ih},get TextDocumentItem(){return Mh},get TextEdit(){return yi},get URI(){return Qa},get VersionedTextDocumentIdentifier(){return Fh},WorkspaceChange:oS,get WorkspaceEdit(){return Xa},get WorkspaceFolder(){return v1},get WorkspaceSymbol(){return Jh},get integer(){return _h},get uinteger(){return To}},Symbol.toStringTag,{value:"Module"})),B1=F0(lS);var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ProtocolNotificationType=Ne.ProtocolNotificationType0=Ne.ProtocolRequestType=Ne.ProtocolRequestType0=Ne.RegistrationType=Ne.MessageDirection=void 0;const Ss=$o;var fm;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(fm||(Ne.MessageDirection=fm={}));class uS{constructor(e){this.method=e}}Ne.RegistrationType=uS;class dS extends Ss.RequestType0{constructor(e){super(e)}}Ne.ProtocolRequestType0=dS;class fS extends Ss.RequestType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolRequestType=fS;class hS extends Ss.NotificationType0{constructor(e){super(e)}}Ne.ProtocolNotificationType0=hS;class gS extends Ss.NotificationType{constructor(e){super(e,Ss.ParameterStructures.byName)}}Ne.ProtocolNotificationType=gS;var A2={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.objectLiteral=Ct.typedArray=Ct.stringArray=Ct.array=Ct.func=Ct.error=Ct.number=Ct.string=Ct.boolean=void 0;function pS(t){return t===!0||t===!1}Ct.boolean=pS;function L2(t){return typeof t=="string"||t instanceof String}Ct.string=L2;function mS(t){return typeof t=="number"||t instanceof Number}Ct.number=mS;function yS(t){return t instanceof Error}Ct.error=yS;function bS(t){return typeof t=="function"}Ct.func=bS;function N2(t){return Array.isArray(t)}Ct.array=N2;function vS(t){return N2(t)&&t.every(e=>L2(e))}Ct.stringArray=vS;function wS(t,e){return Array.isArray(t)&&t.every(e)}Ct.typedArray=wS;function CS(t){return t!==null&&typeof t=="object"}Ct.objectLiteral=CS;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.ImplementationRequest=void 0;const hm=Ne;var gm;(function(t){t.method="textDocument/implementation",t.messageDirection=hm.MessageDirection.clientToServer,t.type=new hm.ProtocolRequestType(t.method)})(gm||(fl.ImplementationRequest=gm={}));var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.TypeDefinitionRequest=void 0;const pm=Ne;var mm;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=pm.MessageDirection.clientToServer,t.type=new pm.ProtocolRequestType(t.method)})(mm||(hl.TypeDefinitionRequest=mm={}));var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.DidChangeWorkspaceFoldersNotification=Ds.WorkspaceFoldersRequest=void 0;const nc=Ne;var ym;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=nc.MessageDirection.serverToClient,t.type=new nc.ProtocolRequestType0(t.method)})(ym||(Ds.WorkspaceFoldersRequest=ym={}));var bm;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=nc.MessageDirection.clientToServer,t.type=new nc.ProtocolNotificationType(t.method)})(bm||(Ds.DidChangeWorkspaceFoldersNotification=bm={}));var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.ConfigurationRequest=void 0;const vm=Ne;var wm;(function(t){t.method="workspace/configuration",t.messageDirection=vm.MessageDirection.serverToClient,t.type=new vm.ProtocolRequestType(t.method)})(wm||(gl.ConfigurationRequest=wm={}));var xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.ColorPresentationRequest=xs.DocumentColorRequest=void 0;const ic=Ne;var Cm;(function(t){t.method="textDocument/documentColor",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(Cm||(xs.DocumentColorRequest=Cm={}));var _m;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=ic.MessageDirection.clientToServer,t.type=new ic.ProtocolRequestType(t.method)})(_m||(xs.ColorPresentationRequest=_m={}));var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.FoldingRangeRefreshRequest=ks.FoldingRangeRequest=void 0;const rc=Ne;var Sm;(function(t){t.method="textDocument/foldingRange",t.messageDirection=rc.MessageDirection.clientToServer,t.type=new rc.ProtocolRequestType(t.method)})(Sm||(ks.FoldingRangeRequest=Sm={}));var Dm;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=rc.MessageDirection.serverToClient,t.type=new rc.ProtocolRequestType0(t.method)})(Dm||(ks.FoldingRangeRefreshRequest=Dm={}));var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.DeclarationRequest=void 0;const xm=Ne;var km;(function(t){t.method="textDocument/declaration",t.messageDirection=xm.MessageDirection.clientToServer,t.type=new xm.ProtocolRequestType(t.method)})(km||(pl.DeclarationRequest=km={}));var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.SelectionRangeRequest=void 0;const Tm=Ne;var Rm;(function(t){t.method="textDocument/selectionRange",t.messageDirection=Tm.MessageDirection.clientToServer,t.type=new Tm.ProtocolRequestType(t.method)})(Rm||(ml.SelectionRangeRequest=Rm={}));var sr={};Object.defineProperty(sr,"__esModule",{value:!0});sr.WorkDoneProgressCancelNotification=sr.WorkDoneProgressCreateRequest=sr.WorkDoneProgress=void 0;const _S=$o,sc=Ne;var Em;(function(t){t.type=new _S.ProgressType;function e(n){return n===t.type}t.is=e})(Em||(sr.WorkDoneProgress=Em={}));var Pm;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=sc.MessageDirection.serverToClient,t.type=new sc.ProtocolRequestType(t.method)})(Pm||(sr.WorkDoneProgressCreateRequest=Pm={}));var Im;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=sc.MessageDirection.clientToServer,t.type=new sc.ProtocolNotificationType(t.method)})(Im||(sr.WorkDoneProgressCancelNotification=Im={}));var or={};Object.defineProperty(or,"__esModule",{value:!0});or.CallHierarchyOutgoingCallsRequest=or.CallHierarchyIncomingCallsRequest=or.CallHierarchyPrepareRequest=void 0;const Ts=Ne;var Fm;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Fm||(or.CallHierarchyPrepareRequest=Fm={}));var Mm;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Mm||(or.CallHierarchyIncomingCallsRequest=Mm={}));var Om;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=Ts.MessageDirection.clientToServer,t.type=new Ts.ProtocolRequestType(t.method)})(Om||(or.CallHierarchyOutgoingCallsRequest=Om={}));var wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.SemanticTokensRefreshRequest=wn.SemanticTokensRangeRequest=wn.SemanticTokensDeltaRequest=wn.SemanticTokensRequest=wn.SemanticTokensRegistrationType=wn.TokenFormat=void 0;const Wi=Ne;var Am;(function(t){t.Relative="relative"})(Am||(wn.TokenFormat=Am={}));var Oo;(function(t){t.method="textDocument/semanticTokens",t.type=new Wi.RegistrationType(t.method)})(Oo||(wn.SemanticTokensRegistrationType=Oo={}));var Lm;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Lm||(wn.SemanticTokensRequest=Lm={}));var Nm;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})(Nm||(wn.SemanticTokensDeltaRequest=Nm={}));var $m;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Wi.MessageDirection.clientToServer,t.type=new Wi.ProtocolRequestType(t.method),t.registrationMethod=Oo.method})($m||(wn.SemanticTokensRangeRequest=$m={}));var qm;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Wi.MessageDirection.serverToClient,t.type=new Wi.ProtocolRequestType0(t.method)})(qm||(wn.SemanticTokensRefreshRequest=qm={}));var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.ShowDocumentRequest=void 0;const Hm=Ne;var jm;(function(t){t.method="window/showDocument",t.messageDirection=Hm.MessageDirection.serverToClient,t.type=new Hm.ProtocolRequestType(t.method)})(jm||(yl.ShowDocumentRequest=jm={}));var bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.LinkedEditingRangeRequest=void 0;const Wm=Ne;var Um;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=Wm.MessageDirection.clientToServer,t.type=new Wm.ProtocolRequestType(t.method)})(Um||(bl.LinkedEditingRangeRequest=Um={}));var sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.WillDeleteFilesRequest=sn.DidDeleteFilesNotification=sn.DidRenameFilesNotification=sn.WillRenameFilesRequest=sn.DidCreateFilesNotification=sn.WillCreateFilesRequest=sn.FileOperationPatternKind=void 0;const Bn=Ne;var zm;(function(t){t.file="file",t.folder="folder"})(zm||(sn.FileOperationPatternKind=zm={}));var Bm;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Bm||(sn.WillCreateFilesRequest=Bm={}));var Vm;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Vm||(sn.DidCreateFilesNotification=Vm={}));var Km;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Km||(sn.WillRenameFilesRequest=Km={}));var Gm;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Gm||(sn.DidRenameFilesNotification=Gm={}));var Qm;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolNotificationType(t.method)})(Qm||(sn.DidDeleteFilesNotification=Qm={}));var Jm;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Bn.MessageDirection.clientToServer,t.type=new Bn.ProtocolRequestType(t.method)})(Jm||(sn.WillDeleteFilesRequest=Jm={}));var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.MonikerRequest=ar.MonikerKind=ar.UniquenessLevel=void 0;const Ym=Ne;var Xm;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Xm||(ar.UniquenessLevel=Xm={}));var Zm;(function(t){t.$import="import",t.$export="export",t.local="local"})(Zm||(ar.MonikerKind=Zm={}));var e0;(function(t){t.method="textDocument/moniker",t.messageDirection=Ym.MessageDirection.clientToServer,t.type=new Ym.ProtocolRequestType(t.method)})(e0||(ar.MonikerRequest=e0={}));var cr={};Object.defineProperty(cr,"__esModule",{value:!0});cr.TypeHierarchySubtypesRequest=cr.TypeHierarchySupertypesRequest=cr.TypeHierarchyPrepareRequest=void 0;const Rs=Ne;var t0;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(t0||(cr.TypeHierarchyPrepareRequest=t0={}));var n0;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(n0||(cr.TypeHierarchySupertypesRequest=n0={}));var i0;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(i0||(cr.TypeHierarchySubtypesRequest=i0={}));var Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.InlineValueRefreshRequest=Es.InlineValueRequest=void 0;const oc=Ne;var r0;(function(t){t.method="textDocument/inlineValue",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method)})(r0||(Es.InlineValueRequest=r0={}));var s0;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=oc.MessageDirection.serverToClient,t.type=new oc.ProtocolRequestType0(t.method)})(s0||(Es.InlineValueRefreshRequest=s0={}));var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.InlayHintRefreshRequest=lr.InlayHintResolveRequest=lr.InlayHintRequest=void 0;const Ps=Ne;var o0;(function(t){t.method="textDocument/inlayHint",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(o0||(lr.InlayHintRequest=o0={}));var a0;(function(t){t.method="inlayHint/resolve",t.messageDirection=Ps.MessageDirection.clientToServer,t.type=new Ps.ProtocolRequestType(t.method)})(a0||(lr.InlayHintResolveRequest=a0={}));var c0;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=Ps.MessageDirection.serverToClient,t.type=new Ps.ProtocolRequestType0(t.method)})(c0||(lr.InlayHintRefreshRequest=c0={}));var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.DiagnosticRefreshRequest=Un.WorkspaceDiagnosticRequest=Un.DocumentDiagnosticRequest=Un.DocumentDiagnosticReportKind=Un.DiagnosticServerCancellationData=void 0;const $2=$o,SS=Ct,Is=Ne;var l0;(function(t){function e(n){const i=n;return i&&SS.boolean(i.retriggerRequest)}t.is=e})(l0||(Un.DiagnosticServerCancellationData=l0={}));var u0;(function(t){t.Full="full",t.Unchanged="unchanged"})(u0||(Un.DocumentDiagnosticReportKind=u0={}));var d0;(function(t){t.method="textDocument/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new $2.ProgressType})(d0||(Un.DocumentDiagnosticRequest=d0={}));var f0;(function(t){t.method="workspace/diagnostic",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method),t.partialResult=new $2.ProgressType})(f0||(Un.WorkspaceDiagnosticRequest=f0={}));var h0;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=Is.MessageDirection.serverToClient,t.type=new Is.ProtocolRequestType0(t.method)})(h0||(Un.DiagnosticRefreshRequest=h0={}));var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.DidCloseNotebookDocumentNotification=wt.DidSaveNotebookDocumentNotification=wt.DidChangeNotebookDocumentNotification=wt.NotebookCellArrayChange=wt.DidOpenNotebookDocumentNotification=wt.NotebookDocumentSyncRegistrationType=wt.NotebookDocument=wt.NotebookCell=wt.ExecutionSummary=wt.NotebookCellKind=void 0;const Ao=B1,oi=Ct,Ci=Ne;var C1;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(C1||(wt.NotebookCellKind=C1={}));var _1;(function(t){function e(r,s){const o={executionOrder:r};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(r){const s=r;return oi.objectLiteral(s)&&Ao.uinteger.is(s.executionOrder)&&(s.success===void 0||oi.boolean(s.success))}t.is=n;function i(r,s){return r===s?!0:r==null||s===null||s===void 0?!1:r.executionOrder===s.executionOrder&&r.success===s.success}t.equals=i})(_1||(wt.ExecutionSummary=_1={}));var ac;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){const o=s;return oi.objectLiteral(o)&&C1.is(o.kind)&&Ao.DocumentUri.is(o.document)&&(o.metadata===void 0||oi.objectLiteral(o.metadata))}t.is=n;function i(s,o){const a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!r(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!_1.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=i;function r(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;const a=Array.isArray(s),c=Array.isArray(o);if(a!==c)return!1;if(a&&c){if(s.length!==o.length)return!1;for(let l=0;l<s.length;l++)if(!r(s[l],o[l]))return!1}if(oi.objectLiteral(s)&&oi.objectLiteral(o)){const l=Object.keys(s),h=Object.keys(o);if(l.length!==h.length||(l.sort(),h.sort(),!r(l,h)))return!1;for(let g=0;g<l.length;g++){const p=l[g];if(!r(s[p],o[p]))return!1}}return!0}})(ac||(wt.NotebookCell=ac={}));var g0;(function(t){function e(i,r,s,o){return{uri:i,notebookType:r,version:s,cells:o}}t.create=e;function n(i){const r=i;return oi.objectLiteral(r)&&oi.string(r.uri)&&Ao.integer.is(r.version)&&oi.typedArray(r.cells,ac.is)}t.is=n})(g0||(wt.NotebookDocument=g0={}));var Fs;(function(t){t.method="notebookDocument/sync",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.RegistrationType(t.method)})(Fs||(wt.NotebookDocumentSyncRegistrationType=Fs={}));var p0;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(p0||(wt.DidOpenNotebookDocumentNotification=p0={}));var m0;(function(t){function e(i){const r=i;return oi.objectLiteral(r)&&Ao.uinteger.is(r.start)&&Ao.uinteger.is(r.deleteCount)&&(r.cells===void 0||oi.typedArray(r.cells,ac.is))}t.is=e;function n(i,r,s){const o={start:i,deleteCount:r};return s!==void 0&&(o.cells=s),o}t.create=n})(m0||(wt.NotebookCellArrayChange=m0={}));var y0;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(y0||(wt.DidChangeNotebookDocumentNotification=y0={}));var b0;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(b0||(wt.DidSaveNotebookDocumentNotification=b0={}));var v0;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolNotificationType(t.method),t.registrationMethod=Fs.method})(v0||(wt.DidCloseNotebookDocumentNotification=v0={}));var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.InlineCompletionRequest=void 0;const w0=Ne;var C0;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=w0.MessageDirection.clientToServer,t.type=new w0.ProtocolRequestType(t.method)})(C0||(vl.InlineCompletionRequest=C0={}));(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=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.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerRequest=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=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=void 0;const e=Ne,n=B1,i=Ct,r=fl;Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return r.ImplementationRequest}});const s=hl;Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const o=Ds;Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return o.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return o.DidChangeWorkspaceFoldersNotification}});const a=gl;Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const c=xs;Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return c.ColorPresentationRequest}});const l=ks;Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return l.FoldingRangeRefreshRequest}});const h=pl;Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return h.DeclarationRequest}});const g=ml;Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return g.SelectionRangeRequest}});const p=sr;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 w=or;Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return w.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return w.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return w.CallHierarchyPrepareRequest}});const v=wn;Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return v.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return v.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return v.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return v.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return v.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return v.SemanticTokensRegistrationType}});const x=yl;Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return x.ShowDocumentRequest}});const T=bl;Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return T.LinkedEditingRangeRequest}});const q=sn;Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return q.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return q.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return q.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return q.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return q.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return q.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return q.WillDeleteFilesRequest}});const z=ar;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return z.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return z.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return z.MonikerRequest}});const A=cr;Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return A.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return A.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return A.TypeHierarchySupertypesRequest}});const W=Es;Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return W.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return W.InlineValueRefreshRequest}});const j=lr;Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return j.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return j.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return j.InlayHintRefreshRequest}});const se=Un;Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return se.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return se.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return se.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return se.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return se.DiagnosticRefreshRequest}});const B=wt;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return B.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return B.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return B.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return B.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return B.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return B.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return B.DidCloseNotebookDocumentNotification}});const Z=vl;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return Z.InlineCompletionRequest}});var oe;(function(b){function le(fe){const G=fe;return i.string(G)||i.string(G.language)||i.string(G.scheme)||i.string(G.pattern)}b.is=le})(oe||(t.TextDocumentFilter=oe={}));var qe;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(i.string(G.notebookType)||i.string(G.scheme)||i.string(G.pattern))}b.is=le})(qe||(t.NotebookDocumentFilter=qe={}));var O;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(i.string(G.notebook)||qe.is(G.notebook))&&(G.language===void 0||i.string(G.language))}b.is=le})(O||(t.NotebookCellTextDocumentFilter=O={}));var L;(function(b){function le(fe){if(!Array.isArray(fe))return!1;for(let G of fe)if(!i.string(G)&&!oe.is(G)&&!O.is(G))return!1;return!0}b.is=le})(L||(t.DocumentSelector=L={}));var D;(function(b){b.method="client/registerCapability",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(D||(t.RegistrationRequest=D={}));var P;(function(b){b.method="client/unregisterCapability",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(P||(t.UnregistrationRequest=P={}));var N;(function(b){b.Create="create",b.Rename="rename",b.Delete="delete"})(N||(t.ResourceOperationKind=N={}));var $;(function(b){b.Abort="abort",b.Transactional="transactional",b.TextOnlyTransactional="textOnlyTransactional",b.Undo="undo"})($||(t.FailureHandlingKind=$={}));var ee;(function(b){b.UTF8="utf-8",b.UTF16="utf-16",b.UTF32="utf-32"})(ee||(t.PositionEncodingKind=ee={}));var ke;(function(b){function le(fe){const G=fe;return G&&i.string(G.id)&&G.id.length>0}b.hasId=le})(ke||(t.StaticRegistrationOptions=ke={}));var pe;(function(b){function le(fe){const G=fe;return G&&(G.documentSelector===null||L.is(G.documentSelector))}b.is=le})(pe||(t.TextDocumentRegistrationOptions=pe={}));var ot;(function(b){function le(G){const C=G;return i.objectLiteral(C)&&(C.workDoneProgress===void 0||i.boolean(C.workDoneProgress))}b.is=le;function fe(G){const C=G;return C&&i.boolean(C.workDoneProgress)}b.hasWorkDoneProgress=fe})(ot||(t.WorkDoneProgressOptions=ot={}));var Ke;(function(b){b.method="initialize",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ke||(t.InitializeRequest=Ke={}));var Pe;(function(b){b.unknownProtocolVersion=1})(Pe||(t.InitializeErrorCodes=Pe={}));var ft;(function(b){b.method="initialized",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(ft||(t.InitializedNotification=ft={}));var He;(function(b){b.method="shutdown",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType0(b.method)})(He||(t.ShutdownRequest=He={}));var ht;(function(b){b.method="exit",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType0(b.method)})(ht||(t.ExitNotification=ht={}));var rt;(function(b){b.method="workspace/didChangeConfiguration",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(rt||(t.DidChangeConfigurationNotification=rt={}));var Ut;(function(b){b.Error=1,b.Warning=2,b.Info=3,b.Log=4,b.Debug=5})(Ut||(t.MessageType=Ut={}));var gt;(function(b){b.method="window/showMessage",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(gt||(t.ShowMessageNotification=gt={}));var Dt;(function(b){b.method="window/showMessageRequest",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType(b.method)})(Dt||(t.ShowMessageRequest=Dt={}));var Pt;(function(b){b.method="window/logMessage",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Pt||(t.LogMessageNotification=Pt={}));var Lt;(function(b){b.method="telemetry/event",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Lt||(t.TelemetryEventNotification=Lt={}));var Se;(function(b){b.None=0,b.Full=1,b.Incremental=2})(Se||(t.TextDocumentSyncKind=Se={}));var Nt;(function(b){b.method="textDocument/didOpen",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Nt||(t.DidOpenTextDocumentNotification=Nt={}));var Be;(function(b){function le(G){let C=G;return C!=null&&typeof C.text=="string"&&C.range!==void 0&&(C.rangeLength===void 0||typeof C.rangeLength=="number")}b.isIncremental=le;function fe(G){let C=G;return C!=null&&typeof C.text=="string"&&C.range===void 0&&C.rangeLength===void 0}b.isFull=fe})(Be||(t.TextDocumentContentChangeEvent=Be={}));var xt;(function(b){b.method="textDocument/didChange",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(xt||(t.DidChangeTextDocumentNotification=xt={}));var Cn;(function(b){b.method="textDocument/didClose",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Cn||(t.DidCloseTextDocumentNotification=Cn={}));var hn;(function(b){b.method="textDocument/didSave",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(hn||(t.DidSaveTextDocumentNotification=hn={}));var Jt;(function(b){b.Manual=1,b.AfterDelay=2,b.FocusOut=3})(Jt||(t.TextDocumentSaveReason=Jt={}));var It;(function(b){b.method="textDocument/willSave",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(It||(t.WillSaveTextDocumentNotification=It={}));var Ft;(function(b){b.method="textDocument/willSaveWaitUntil",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ft||(t.WillSaveTextDocumentWaitUntilRequest=Ft={}));var Xe;(function(b){b.method="workspace/didChangeWatchedFiles",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolNotificationType(b.method)})(Xe||(t.DidChangeWatchedFilesNotification=Xe={}));var Yt;(function(b){b.Created=1,b.Changed=2,b.Deleted=3})(Yt||(t.FileChangeType=Yt={}));var Kn;(function(b){function le(fe){const G=fe;return i.objectLiteral(G)&&(n.URI.is(G.baseUri)||n.WorkspaceFolder.is(G.baseUri))&&i.string(G.pattern)}b.is=le})(Kn||(t.RelativePattern=Kn={}));var In;(function(b){b.Create=1,b.Change=2,b.Delete=4})(In||(t.WatchKind=In={}));var Fn;(function(b){b.method="textDocument/publishDiagnostics",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolNotificationType(b.method)})(Fn||(t.PublishDiagnosticsNotification=Fn={}));var Gn;(function(b){b.Invoked=1,b.TriggerCharacter=2,b.TriggerForIncompleteCompletions=3})(Gn||(t.CompletionTriggerKind=Gn={}));var Qn;(function(b){b.method="textDocument/completion",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Qn||(t.CompletionRequest=Qn={}));var _n;(function(b){b.method="completionItem/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(_n||(t.CompletionResolveRequest=_n={}));var Xt;(function(b){b.method="textDocument/hover",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Xt||(t.HoverRequest=Xt={}));var Mn;(function(b){b.Invoked=1,b.TriggerCharacter=2,b.ContentChange=3})(Mn||(t.SignatureHelpTriggerKind=Mn={}));var ai;(function(b){b.method="textDocument/signatureHelp",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(ai||(t.SignatureHelpRequest=ai={}));var Zt;(function(b){b.method="textDocument/definition",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Zt||(t.DefinitionRequest=Zt={}));var gn;(function(b){b.method="textDocument/references",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(gn||(t.ReferencesRequest=gn={}));var On;(function(b){b.method="textDocument/documentHighlight",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(On||(t.DocumentHighlightRequest=On={}));var en;(function(b){b.method="textDocument/documentSymbol",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(en||(t.DocumentSymbolRequest=en={}));var An;(function(b){b.method="textDocument/codeAction",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(An||(t.CodeActionRequest=An={}));var Sn;(function(b){b.method="codeAction/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Sn||(t.CodeActionResolveRequest=Sn={}));var Ln;(function(b){b.method="workspace/symbol",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Ln||(t.WorkspaceSymbolRequest=Ln={}));var ci;(function(b){b.method="workspaceSymbol/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(ci||(t.WorkspaceSymbolResolveRequest=ci={}));var Dn;(function(b){b.method="textDocument/codeLens",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Dn||(t.CodeLensRequest=Dn={}));var zt;(function(b){b.method="codeLens/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(zt||(t.CodeLensResolveRequest=zt={}));var Nn;(function(b){b.method="workspace/codeLens/refresh",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType0(b.method)})(Nn||(t.CodeLensRefreshRequest=Nn={}));var Jn;(function(b){b.method="textDocument/documentLink",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(Jn||(t.DocumentLinkRequest=Jn={}));var cn;(function(b){b.method="documentLink/resolve",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(cn||(t.DocumentLinkResolveRequest=cn={}));var m;(function(b){b.method="textDocument/formatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(m||(t.DocumentFormattingRequest=m={}));var E;(function(b){b.method="textDocument/rangeFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(E||(t.DocumentRangeFormattingRequest=E={}));var te;(function(b){b.method="textDocument/rangesFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(te||(t.DocumentRangesFormattingRequest=te={}));var we;(function(b){b.method="textDocument/onTypeFormatting",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(we||(t.DocumentOnTypeFormattingRequest=we={}));var Te;(function(b){b.Identifier=1})(Te||(t.PrepareSupportDefaultBehavior=Te={}));var at;(function(b){b.method="textDocument/rename",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(at||(t.RenameRequest=at={}));var S;(function(b){b.method="textDocument/prepareRename",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(S||(t.PrepareRenameRequest=S={}));var H;(function(b){b.method="workspace/executeCommand",b.messageDirection=e.MessageDirection.clientToServer,b.type=new e.ProtocolRequestType(b.method)})(H||(t.ExecuteCommandRequest=H={}));var Y;(function(b){b.method="workspace/applyEdit",b.messageDirection=e.MessageDirection.serverToClient,b.type=new e.ProtocolRequestType("workspace/applyEdit")})(Y||(t.ApplyWorkspaceEditRequest=Y={}))})(A2);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.createProtocolConnection=void 0;const _0=$o;function DS(t,e,n,i){return _0.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,_0.createMessageConnection)(t,e,n,i)}wl.createProtocolConnection=DS;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=Et&&Et.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,n($o,t),n(B1,t),n(Ne,t),n(A2,t);var i=wl;Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return i.createProtocolConnection}});var r;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(r||(t.LSPErrorCodes=r={}))})(O2);(function(t){var e=Et&&Et.__createBinding||(Object.create?function(s,o,a,c){c===void 0&&(c=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(s,c,l)}:function(s,o,a,c){c===void 0&&(c=a),s[c]=o[a]}),n=Et&&Et.__exportStar||function(s,o){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,s,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const i=um;n(um,t),n(O2,t);function r(s,o,a,c){return(0,i.createMessageConnection)(s,o,a,c)}t.createProtocolConnection=r})(x2);var S0=x2;(function(t){var e=Et&&Et.__createBinding||(Object.create?function(o,a,c,l){l===void 0&&(l=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(o,l,h)}:function(o,a,c,l){l===void 0&&(l=c),o[l]=a[c]}),n=Et&&Et.__exportStar||function(o,a){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&e(a,o,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageClient=void 0;const i=mu,r=S0;n(S0,t),n(mu,t);class s extends i.BaseLanguageClient{constructor(a,c,l,h){super(a,c,l),this.worker=h}createMessageTransports(a){const c=new r.BrowserMessageReader(this.worker),l=new r.BrowserMessageWriter(this.worker);return Promise.resolve({reader:c,writer:l})}}t.LanguageClient=s})(pu);class xS extends D1.WebSocketMessageReader{constructor(n,i){super(n);pn(this,"onMessage");this.onMessage=i}readMessage(n){this.onMessage&&this.onMessage();const[,i]=n.split(`\r
108
108
  \r
109
- `);if(this.state==="initial")this.events.splice(0,0,{message:i});else if(this.state==="listening"){const r=JSON.parse(i);this.callback(r)}}}class xS extends D1.WebSocketMessageWriter{constructor(n,i){super(n);pn(this,"onSend");this.onSend=i}async write(n){try{const i=JSON.stringify(n);this.socket.send(i),this.onSend&&this.onSend()}catch(i){this.errorCount++,this.fireError(i,n,this.errorCount)}}}const kS={base:"vs-dark",inherit:!0,colors:{"editor.background":"#313131"},rules:[{token:"",background:"#313131"}]};function jn(t){return`file:///PACKAGE/Project/Sources/${t}`}function V1(t,e=0){setTimeout(t,e)}function $2(t,e){const n=new Vt.Selection(e.startLineNumber,e.startColumn,e.endLineNumber||e.startLineNumber,e.endColumn||e.startColumn);V1(()=>{t.setSelection(n),t.revealRangeInCenter(n),t.focus()})}function q2(t,e,n=0){n>0&&(e=n+e),V1(()=>{t.setPosition({lineNumber:e,column:1}),t.revealLineInCenter(e),t.focus()})}function TS(t,e,n){const r=t.getModel();if(r&&e){const s=r.getLineCount();for(let o=1;o<=s;o++){const a=r.getLineContent(o);if(new RegExp(`(?:Function|function) ${n}`).test(a))return o}}return 0}const RS={comments:{lineComment:"//",blockComment:["/**","**/"]},brackets:[["{","}"],["(",")"],["[","]"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" **/",notIn:["string"]}],autoCloseBefore:";:.,=}])>` \n ",wordPattern:new RegExp("(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\r\\n\\t\\f\\v ]+)|(?<=[a-zA-Z]) ?(?=[a-zA-Z])"),indentationRules:{increaseIndentPattern:new RegExp("(^(?![^\\s])*\\s*(class constructor))|(^(?![^\\s])*\\s*(exposed|local|\\s*){1}\\s*function{1}\\s*\\w)|(^(?![^\\s])*\\s*(If|Else|For|For each|While|Begin SQL|Case of|Use|Repeat|: *\\(.*)).*$","i"),decreaseIndentPattern:new RegExp("(^(?![^\\s])*\\s*(exposed|local|\\s*){1}\\s*function{1}\\s*\\w)|(End If|End For|Else|End for each|End While|End SQL|End case|End use|Until|: *\\(.*).*$","i")},onEnterRules:[{beforeText:new RegExp("^exposed","i"),action:{indentAction:1}}]},ES={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
109
+ `);if(this.state==="initial")this.events.splice(0,0,{message:i});else if(this.state==="listening"){const r=JSON.parse(i);this.callback(r)}}}class kS extends D1.WebSocketMessageWriter{constructor(n,i){super(n);pn(this,"onSend");this.onSend=i}async write(n){try{const i=JSON.stringify(n);this.socket.send(i),this.onSend&&this.onSend()}catch(i){this.errorCount++,this.fireError(i,n,this.errorCount)}}}const TS={base:"vs-dark",inherit:!0,colors:{"editor.background":"#313131"},rules:[{token:"",background:"#313131"}]};function jn(t){return`file:///PACKAGE/Project/Sources/${t}`}function V1(t,e=0){setTimeout(t,e)}function q2(t,e){const n=new Vt.Selection(e.startLineNumber,e.startColumn,e.endLineNumber||e.startLineNumber,e.endColumn||e.startColumn);V1(()=>{t.setSelection(n),t.revealRangeInCenter(n),t.focus()})}function H2(t,e,n=0){n>0&&(e=n+e),V1(()=>{t.setPosition({lineNumber:e,column:1}),t.revealLineInCenter(e),t.focus()})}function RS(t,e,n){const r=t.getModel();if(r&&e){const s=r.getLineCount();for(let o=1;o<=s;o++){const a=r.getLineContent(o);if(new RegExp(`(?:Function|function) ${n}`).test(a))return o}}return 0}const ES={comments:{lineComment:"//",blockComment:["/**","**/"]},brackets:[["{","}"],["(",")"],["[","]"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" **/",notIn:["string"]}],autoCloseBefore:";:.,=}])>` \n ",wordPattern:new RegExp("(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\r\\n\\t\\f\\v ]+)|(?<=[a-zA-Z]) ?(?=[a-zA-Z])"),indentationRules:{increaseIndentPattern:new RegExp("(^(?![^\\s])*\\s*(class constructor))|(^(?![^\\s])*\\s*(exposed|local|\\s*){1}\\s*function{1}\\s*\\w)|(^(?![^\\s])*\\s*(If|Else|For|For each|While|Begin SQL|Case of|Use|Repeat|: *\\(.*)).*$","i"),decreaseIndentPattern:new RegExp("(^(?![^\\s])*\\s*(exposed|local|\\s*){1}\\s*function{1}\\s*\\w)|(End If|End For|Else|End for each|End While|End SQL|End case|End use|Until|: *\\(.*).*$","i")},onEnterRules:[{beforeText:new RegExp("^exposed","i"),action:{indentAction:1}}]},PS={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
110
110
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"While",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["While(${1:expression})"," ${2:body}","End while"].join(`
111
111
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Case of",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Case of"," :(${1:boolean_expression})"," ${2:body}","End case"].join(`
112
112
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Else",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Else"," "].join(`
113
113
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"If",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["If (${1:expression})"," ${5:body}","End if"].join(`
114
114
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"For",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["For(${1:counter};${2:start};${3:end}${4:;increment})"," ${5:body}","End for"].join(`
115
115
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Function",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
116
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},PS={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
116
+ `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},IS={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
117
117
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"while",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["while(${1:expression})"," ${2:body}","end"].join(`
118
118
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"switch",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["switch"," :(${1:boolean_expression})"," ${2:body}","end"].join(`
119
119
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"else",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["else"," "].join(`
120
120
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"if",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["if (${1:expression})"," ${5:body}","end"].join(`
121
121
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"for",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["for(${1:counter},${2:start},${3:end}${4:,increment})"," ${5:body}","end"].join(`
122
122
  `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"function",kind:ue.languages.CompletionItemKind.Snippet,range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
123
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},IS=[{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.NumpadAdd,command:"editor.action.fontZoomIn"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Equal,command:"editor.action.fontZoomIn"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.NumpadSubtract,command:"editor.action.fontZoomOut"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Minus,command:"editor.action.fontZoomOut"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Numpad0,command:"editor.action.fontZoomReset"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Digit0,command:"editor.action.fontZoomReset"}],FS=({defaultZoom:t})=>(nt.useEffect(()=>{t!==void 0&&Vt.editor.EditorZoom.setZoomLevel(t)},[]),null),MS=()=>{const t=X2(),e=t.textModelService.ctor.prototype;return e.createModelReference=n=>{const i={uri:n,dispose:()=>{}};return Promise.resolve(i)},t},OS=({openHandler:t})=>Z2((n,i,r)=>t?t(n,i,r):Promise.resolve(void 0));({}).VITE_DISABLE_MONACO_LOADER||S1.loader.config({monaco:ue});const H2=nt.createContext(void 0),AS=({children:t,url:e,qodly:n,defaultZoom:i,openHandler:r,language:s="4d",defaultInited:o=!1})=>{const a=S1.useMonaco(),[c,l]=nt.useState(o),[h,g]=nt.useState(null),p=nt.useRef(),w=nt.useRef(0);nt.useEffect(()=>{e&&a&&v()},[e,a]);const v=async()=>{if(!a)return;const O=new Y2.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),L=await r4({serviceConfig:{userServices:{...MS(),...OS({openHandler:r})}},logger:O});await P0.initServices({caller:"Qodly Code Editor",logger:O,serviceConfig:L});const D=await kn.getMonacoTheme();a.editor.defineTheme("fd-dark",D||kS),a.languages.register({id:s,extensions:[".4dm",".4qm",".4qs"],aliases:["4d","4D"]}),a.languages.setLanguageConfiguration(s,RS),a.languages.registerCompletionItemProvider(s,n?PS:ES),Vt.editor.addKeybindingRules(IS),x()},x=()=>{g(null);let O;try{O=new WebSocket(localStorage.LSP_SERVER||e)}catch{g(new Event("INVALID_URL"));return}O.onopen=T,O.onclose=q,O.onerror=z,w.current=0},T=async function(){const O=D1.toSocket(this),L=new DS(O),D=new xS(O),P=new i4({name:"4D Language Client",clientOptions:{workspaceFolder:{uri:Vt.Uri.parse("file:///PACKAGE")},documentSelector:[{scheme:"file",language:s}],errorHandler:{error:()=>({action:pu.ErrorAction.Continue}),closed:()=>({action:pu.CloseAction.DoNotRestart})}},connectionProvider:{get:()=>Promise.resolve({reader:L,writer:D})}});p.current=P;const N=P.sendRequest.bind(P);p.current.sendRequest=function($,ee,ke){return typeof $=="object"&&$.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(ee.textDocument.uri)?Promise.resolve():N($,ee,ke)},L.onClose(()=>{P.stop(),w.current<3?setTimeout(()=>{w.current++,x()},1e3):g(new Event("WEBSOCKET_CLOSED"))}),P.needsStart()&&await P.start(),l(!0)},q=()=>{},z=O=>{g(O)};nt.useEffect(()=>{const O=kn.lspSubject.subscribe(({action:L,payload:D})=>{switch(L){case kn.LspActions.WILL_SAVE:A(D.filePath);break;case kn.LspActions.DID_SAVE:W(D.filePath,D.content);break;case kn.LspActions.WILL_CREATE:j(D.filePath);break;case kn.LspActions.DID_CREATE:Z(D.filePath);break;case kn.LspActions.WILL_RENAME:se(D.oldPath,D.newPath);break;case kn.LspActions.DID_RENAME:oe(D.oldPath,D.newPath);break;case kn.LspActions.WILL_DELETE:B(D.filePath);break;case kn.LspActions.DID_DELETE:qe(D.filePath);break}});return()=>O.unsubscribe()},[]);const A=(O,L=de.TextDocumentSaveReason.Manual)=>{var D;(D=p.current)==null||D.sendNotification(de.WillSaveTextDocumentNotification.type,{textDocument:{uri:jn(O)},reason:L})},W=(O,L)=>{var D;(D=p.current)==null||D.sendNotification(de.DidSaveTextDocumentNotification.type,{textDocument:{uri:jn(O)},text:L})},j=O=>{var L;(L=p.current)==null||L.sendRequest(de.WillCreateFilesRequest.type,{files:[{uri:jn(O)}]})},se=(O,L)=>{var D;(D=p.current)==null||D.sendRequest(de.WillRenameFilesRequest.type,{files:[{oldUri:jn(O),newUri:jn(L)}]})},B=O=>{var L;(L=p.current)==null||L.sendRequest(de.WillDeleteFilesRequest.type,{files:[{uri:jn(O)}]})},Z=O=>{var L;(L=p.current)==null||L.sendNotification(de.DidCreateFilesNotification.type,{files:[{uri:jn(O)}]})},oe=(O,L)=>{var D;(D=p.current)==null||D.sendNotification(de.DidRenameFilesNotification.type,{files:[{oldUri:jn(O),newUri:jn(L)}]})},qe=O=>{var L;(L=p.current)==null||L.sendNotification(de.DidDeleteFilesNotification.type,{files:[{uri:jn(O)}]})};return ut.jsxs(H2.Provider,{value:{inited:c||!!h,clientRef:p,lastError:h,reload:x},children:[t,ut.jsx(FS,{defaultZoom:i})]})};function LS(){const t=nt.useContext(H2);if(t===void 0)throw new Error("useLSP must be used within an LSPContext");return t}const j2=nt.createContext(void 0),NS=nt.memo(({children:t})=>{const[e,n]=nt.useState(null);return ut.jsx(j2.Provider,{value:{editor:e,setEditor:n},children:t})});function W2(){const t=nt.useContext(j2),e=nt.useState(null);if(t===void 0){const[n,i]=e;return{editor:n,setEditor:i}}return t}var U2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},S0=nt.createContext&&nt.createContext(U2),ur=globalThis&&globalThis.__assign||function(){return ur=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ur.apply(this,arguments)},$S=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};function z2(t){return t&&t.map(function(e,n){return nt.createElement(e.tag,ur({key:n},e.attr),z2(e.child))})}function B2(t){return function(e){return nt.createElement(qS,ur({attr:ur({},t.attr)},e),z2(t.child))}}function qS(t){var e=function(n){var i=t.attr,r=t.size,s=t.title,o=$S(t,["attr","size","title"]),a=r||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),nt.createElement("svg",ur({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,o,{className:c,style:ur(ur({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&nt.createElement("title",null,s),t.children)};return S0!==void 0?nt.createElement(S0.Consumer,null,function(n){return e(n)}):e(U2)}function HS(t){return B2({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}}]})(t)}function jS(t){return B2({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(t)}const V2=({lspProps:{lastError:t,reload:e}})=>{const[n,i]=nt.useState(!1),r=()=>{e()},s=()=>{i(!1)};return nt.useEffect(()=>{i(!!t)},[t]),n?ut.jsxs("div",{className:"flex items-center border-b border-fd-gray-darker bg-grey-800 px-2 py-1.5 text-xs text-grey-50",children:[ut.jsxs("span",{className:"flex flex-1 justify-center gap-1",children:[ut.jsx(jS,{className:"h-4 w-4 text-yellow-600"}),ut.jsxs("span",{children:["LSP not loaded."," ",ut.jsx("button",{className:"text-primary-dark underline",onClick:r,children:"Reload?"})]})]}),ut.jsx("button",{className:"focus:outline-none",children:ut.jsx(HS,{className:"h-4 w-4 text-white",onClick:s})})]}):null},WS={provideCompletionItems:(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"device:xs",kind:ue.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {"," self {"," ${2:background-color}:${3:red};"," }","}"].join(`
124
- `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},US="#/definitions/Condition",zS={Base:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id"]},Condition:{oneOf:[{$ref:"#/definitions/Datasource"},{$ref:"#/definitions/Privilege"},{$ref:"#/definitions/Combination"},{$ref:"#/definitions/CurrentState"},{$ref:"#/definitions/ParentState"},{$ref:"#/definitions/Reference"}]},Datasource:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"datasource"},path:{type:"string"},value:{type:["number","string","boolean","object","array","null"]},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex","in","nin","gt","gte","lt","lte"]}},required:["name","type","path","value","op"]},Privilege:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"privilege"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Combination:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"combination"},op:{enum:["and","or"]},conditions:{type:"array",items:{$ref:"#/definitions/Condition"}}},required:["type","conditions","op"]},CurrentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"currentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},ParentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"parentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Reference:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"reference"},ref:{type:"string"}},required:["type","ref"]}},BS={$ref:US,definitions:zS};function VS(t,e){const n=document.createElement("style");n.dataset.id=e,n.textContent=t,document.head.append(n)}function KS(t){return Array.from(document.styleSheets).find(e=>e.ownerNode.getAttribute("data-id")===t)}function GS(t,e){const n=[];let i=[];const r=[],s=(W,j,se,B)=>{n.push({startLineNumber:W,endLineNumber:se,startColumn:j,endColumn:B}),l(),c()},o=W=>{r.indexOf(W)<0&&r.push(W)},a=W=>{const j=r.indexOf(W);j<0||r.splice(j,1)},c=()=>{for(const W of r)try{W(i)}catch(j){console.error(j)}},l=()=>{const W=t.getModel();W&&(i=JS(n.map(j=>[W.getOffsetAt({lineNumber:j.startLineNumber,column:j.startColumn}),W.getOffsetAt({lineNumber:j.endLineNumber,column:j.endColumn})]),!0),i.length>0&&(i[0][0]<=0&&(i[0][0]=Number.NEGATIVE_INFINITY),i[i.length-1][1]>=W.getValueLength()&&(i[i.length-1][1]=Number.POSITIVE_INFINITY)))},h=W=>{const j={isDeletion:!1,isAddition:!1,isReplacement:!1};return W.text===""?j.isDeletion=!0:W.range.startLineNumber===W.range.endLineNumber&&W.range.startColumn===W.range.endColumn?j.isAddition=!0:j.isReplacement=!0,j},g=t.onDidChangeModel(W=>{l(),z()}),p=t.onDidChangeModelContent(W=>{if(!W.isUndoing)for(const j of W.changes){const se=h(j);if(se.isReplacement||se.isDeletion||se.isAddition){const B=n.some(oe=>j.range.startLineNumber>=oe.startLineNumber&&j.range.endLineNumber<=oe.endLineNumber&&j.range.startColumn>=oe.startColumn&&j.range.endColumn<=oe.endColumn),Z=!B&&e&&j.range.startLineNumber===1&&j.range.startColumn===1&&!kn.hasAttributesString(j.text);if(B||Z){const oe=t.getModel();if(oe){oe.undo();return}}}}}),w=()=>{g.dispose(),p.dispose()};let v=[],x=`
123
+ `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},FS=[{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.NumpadAdd,command:"editor.action.fontZoomIn"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Equal,command:"editor.action.fontZoomIn"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.NumpadSubtract,command:"editor.action.fontZoomOut"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Minus,command:"editor.action.fontZoomOut"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Numpad0,command:"editor.action.fontZoomReset"},{keybinding:Vt.KeyMod.CtrlCmd|Vt.KeyCode.Digit0,command:"editor.action.fontZoomReset"}],MS=({defaultZoom:t})=>(nt.useEffect(()=>{t!==void 0&&Vt.editor.EditorZoom.setZoomLevel(t)},[]),null),OS=()=>{const t=Z2(),e=t.textModelService.ctor.prototype;return e.createModelReference=()=>Promise.resolve({dispose:()=>{}}),t},AS=()=>e4(()=>Promise.resolve(void 0));({}).VITE_DISABLE_MONACO_LOADER||S1.loader.config({monaco:ue});const j2=nt.createContext(void 0),LS=({children:t,url:e,qodly:n,defaultZoom:i,openHandler:r,language:s="4d",defaultInited:o=!1})=>{const a=S1.useMonaco(),[c,l]=nt.useState(o),[h,g]=nt.useState(null),p=nt.useRef(),w=nt.useRef(0);nt.useEffect(()=>{e&&a&&v()},[e,a]);const v=async()=>{if(!a)return;const O=new X2.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),L=await s4({serviceConfig:{userServices:{...OS(),...AS()}},logger:O});await I0.initServices({caller:"Qodly Code Editor",logger:O,serviceConfig:L}),r&&Y1.StandaloneServices.get(Y1.ICodeEditorService).registerCodeEditorOpenHandler(r);const D=await kn.getMonacoTheme();a.editor.defineTheme("fd-dark",D||TS),a.languages.register({id:s,extensions:[".4dm",".4qm",".4qs"],aliases:["4d","4D"]}),a.languages.setLanguageConfiguration(s,ES),a.languages.registerCompletionItemProvider(s,n?IS:PS),Vt.editor.addKeybindingRules(FS),x()},x=()=>{g(null);let O;try{O=new WebSocket(localStorage.LSP_SERVER||e)}catch{g(new Event("INVALID_URL"));return}O.onopen=T,O.onclose=q,O.onerror=z,w.current=0},T=async function(){const O=D1.toSocket(this),L=new xS(O),D=new kS(O),P=new r4({name:"4D Language Client",clientOptions:{workspaceFolder:{uri:Vt.Uri.parse("file:///PACKAGE")},documentSelector:[{scheme:"file",language:s}],errorHandler:{error:()=>({action:pu.ErrorAction.Continue}),closed:()=>({action:pu.CloseAction.DoNotRestart})}},connectionProvider:{get:()=>Promise.resolve({reader:L,writer:D})}});p.current=P;const N=P.sendRequest.bind(P);p.current.sendRequest=function($,ee,ke){return typeof $=="object"&&$.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(ee.textDocument.uri)?Promise.resolve():N($,ee,ke)},L.onClose(()=>{P.stop(),w.current<3?setTimeout(()=>{w.current++,x()},1e3):g(new Event("WEBSOCKET_CLOSED"))}),P.needsStart()&&await P.start(),l(!0)},q=()=>{},z=O=>{g(O)};nt.useEffect(()=>{const O=kn.lspSubject.subscribe(({action:L,payload:D})=>{switch(L){case kn.LspActions.WILL_SAVE:A(D.filePath);break;case kn.LspActions.DID_SAVE:W(D.filePath,D.content);break;case kn.LspActions.WILL_CREATE:j(D.filePath);break;case kn.LspActions.DID_CREATE:Z(D.filePath);break;case kn.LspActions.WILL_RENAME:se(D.oldPath,D.newPath);break;case kn.LspActions.DID_RENAME:oe(D.oldPath,D.newPath);break;case kn.LspActions.WILL_DELETE:B(D.filePath);break;case kn.LspActions.DID_DELETE:qe(D.filePath);break}});return()=>O.unsubscribe()},[]);const A=(O,L=de.TextDocumentSaveReason.Manual)=>{var D;(D=p.current)==null||D.sendNotification(de.WillSaveTextDocumentNotification.type,{textDocument:{uri:jn(O)},reason:L})},W=(O,L)=>{var D;(D=p.current)==null||D.sendNotification(de.DidSaveTextDocumentNotification.type,{textDocument:{uri:jn(O)},text:L})},j=O=>{var L;(L=p.current)==null||L.sendRequest(de.WillCreateFilesRequest.type,{files:[{uri:jn(O)}]})},se=(O,L)=>{var D;(D=p.current)==null||D.sendRequest(de.WillRenameFilesRequest.type,{files:[{oldUri:jn(O),newUri:jn(L)}]})},B=O=>{var L;(L=p.current)==null||L.sendRequest(de.WillDeleteFilesRequest.type,{files:[{uri:jn(O)}]})},Z=O=>{var L;(L=p.current)==null||L.sendNotification(de.DidCreateFilesNotification.type,{files:[{uri:jn(O)}]})},oe=(O,L)=>{var D;(D=p.current)==null||D.sendNotification(de.DidRenameFilesNotification.type,{files:[{oldUri:jn(O),newUri:jn(L)}]})},qe=O=>{var L;(L=p.current)==null||L.sendNotification(de.DidDeleteFilesNotification.type,{files:[{uri:jn(O)}]})};return ut.jsxs(j2.Provider,{value:{inited:c||!!h,clientRef:p,lastError:h,reload:x},children:[t,ut.jsx(MS,{defaultZoom:i})]})};function NS(){const t=nt.useContext(j2);if(t===void 0)throw new Error("useLSP must be used within an LSPContext");return t}const W2=nt.createContext(void 0),$S=nt.memo(({children:t})=>{const[e,n]=nt.useState(null);return ut.jsx(W2.Provider,{value:{editor:e,setEditor:n},children:t})});function U2(){const t=nt.useContext(W2),e=nt.useState(null);if(t===void 0){const[n,i]=e;return{editor:n,setEditor:i}}return t}var z2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},D0=nt.createContext&&nt.createContext(z2),ur=globalThis&&globalThis.__assign||function(){return ur=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ur.apply(this,arguments)},qS=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};function B2(t){return t&&t.map(function(e,n){return nt.createElement(e.tag,ur({key:n},e.attr),B2(e.child))})}function V2(t){return function(e){return nt.createElement(HS,ur({attr:ur({},t.attr)},e),B2(t.child))}}function HS(t){var e=function(n){var i=t.attr,r=t.size,s=t.title,o=qS(t,["attr","size","title"]),a=r||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),nt.createElement("svg",ur({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,o,{className:c,style:ur(ur({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&nt.createElement("title",null,s),t.children)};return D0!==void 0?nt.createElement(D0.Consumer,null,function(n){return e(n)}):e(z2)}function jS(t){return V2({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}}]})(t)}function WS(t){return V2({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(t)}const K2=({lspProps:{lastError:t,reload:e}})=>{const[n,i]=nt.useState(!1),r=()=>{e()},s=()=>{i(!1)};return nt.useEffect(()=>{i(!!t)},[t]),n?ut.jsxs("div",{className:"flex items-center border-b border-fd-gray-darker bg-grey-800 px-2 py-1.5 text-xs text-grey-50",children:[ut.jsxs("span",{className:"flex flex-1 justify-center gap-1",children:[ut.jsx(WS,{className:"h-4 w-4 text-yellow-600"}),ut.jsxs("span",{children:["LSP not loaded."," ",ut.jsx("button",{className:"text-primary-dark underline",onClick:r,children:"Reload?"})]})]}),ut.jsx("button",{className:"focus:outline-none",children:ut.jsx(jS,{className:"h-4 w-4 text-white",onClick:s})})]}):null},US={provideCompletionItems:(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"device:xs",kind:ue.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new ue.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {"," self {"," ${2:background-color}:${3:red};"," }","}"].join(`
124
+ `),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},zS="#/definitions/Condition",BS={Base:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id"]},Condition:{oneOf:[{$ref:"#/definitions/Datasource"},{$ref:"#/definitions/Privilege"},{$ref:"#/definitions/Combination"},{$ref:"#/definitions/CurrentState"},{$ref:"#/definitions/ParentState"},{$ref:"#/definitions/Reference"}]},Datasource:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"datasource"},path:{type:"string"},value:{type:["number","string","boolean","object","array","null"]},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex","in","nin","gt","gte","lt","lte"]}},required:["name","type","path","value","op"]},Privilege:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"privilege"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Combination:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"combination"},op:{enum:["and","or"]},conditions:{type:"array",items:{$ref:"#/definitions/Condition"}}},required:["type","conditions","op"]},CurrentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"currentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},ParentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"parentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Reference:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"reference"},ref:{type:"string"}},required:["type","ref"]}},VS={$ref:zS,definitions:BS};function KS(t,e){const n=document.createElement("style");n.dataset.id=e,n.textContent=t,document.head.append(n)}function GS(t){return Array.from(document.styleSheets).find(e=>e.ownerNode.getAttribute("data-id")===t)}function QS(t,e){const n=[];let i=[];const r=[],s=(W,j,se,B)=>{n.push({startLineNumber:W,endLineNumber:se,startColumn:j,endColumn:B}),l(),c()},o=W=>{r.indexOf(W)<0&&r.push(W)},a=W=>{const j=r.indexOf(W);j<0||r.splice(j,1)},c=()=>{for(const W of r)try{W(i)}catch(j){console.error(j)}},l=()=>{const W=t.getModel();W&&(i=YS(n.map(j=>[W.getOffsetAt({lineNumber:j.startLineNumber,column:j.startColumn}),W.getOffsetAt({lineNumber:j.endLineNumber,column:j.endColumn})]),!0),i.length>0&&(i[0][0]<=0&&(i[0][0]=Number.NEGATIVE_INFINITY),i[i.length-1][1]>=W.getValueLength()&&(i[i.length-1][1]=Number.POSITIVE_INFINITY)))},h=W=>{const j={isDeletion:!1,isAddition:!1,isReplacement:!1};return W.text===""?j.isDeletion=!0:W.range.startLineNumber===W.range.endLineNumber&&W.range.startColumn===W.range.endColumn?j.isAddition=!0:j.isReplacement=!0,j},g=t.onDidChangeModel(W=>{l(),z()}),p=t.onDidChangeModelContent(W=>{if(!W.isUndoing)for(const j of W.changes){const se=h(j);if(se.isReplacement||se.isDeletion||se.isAddition){const B=n.some(oe=>j.range.startLineNumber>=oe.startLineNumber&&j.range.endLineNumber<=oe.endLineNumber&&j.range.startColumn>=oe.startColumn&&j.range.endColumn<=oe.endColumn),Z=!B&&e&&j.range.startLineNumber===1&&j.range.startColumn===1&&!kn.hasAttributesString(j.text);if(B||Z){const oe=t.getModel();if(oe){oe.undo();return}}}}}),w=()=>{g.dispose(),p.dispose()};let v=[],x=`
125
125
  .idoc-readonly-mark {
126
126
  cursor: not-allowed;
127
127
  z-index: 1;
128
128
  }
129
- `;if(x){const W="monaco-read-only";KS(W)||VS(x,W),x=null}const T=()=>{o(z),z()},q=()=>{a(z),v=t.deltaDecorations(v,[])},z=()=>{const W=t.getModel();W&&(v=t.deltaDecorations(v,i.map(A(W))))},A=W=>j=>{const se=W.getPositionAt(j[0]),B=W.getPositionAt(j[1]);return{range:new ue.Range(se.lineNumber,se.column,B.lineNumber,B.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return i},exclude:s,attach:o,detach:a,dispose:w,show:T,hide:q}}function QS(t,e,n){let i=!1;const r=q=>q[1]<q[0]?(i=!0,[[q[1],q[0]]]):[[...q]],s=q=>i?q.map(z=>z[1]>z[0]?a(z):z).reverse():q;let o;const a=q=>(o=q[1],q[1]=q[0],q[0]=o,q),c=r(t);let l,h,g,p,w,v,x,T;g=c[0];for(h of e)for(x=h[0],T=h[1],p=0;p<c.length;p++){if(g=c[p],w=g[0],v=g[1],w<x)v<x?l=[g]:v<=T?l=[[w,x-1]]:l=[[w,x-1],[T+1,v]];else if(w<=T)if(x===Number.NEGATIVE_INFINITY){const q=T+1;l=n===0?[]:[[q,v>q?v:q]]}else T===Number.POSITIVE_INFINITY?l=n===0?[]:[[x-1,x-1]]:v<=T?l=n<0?[[x-1,x-1]]:n>0?[[T+1,T+1]]:[]:l=[[T+1,v]];else l=[g];if(c.splice(p,1,...l),c.length===1&&c[0][1]<x)return s(c)}return s(c)}function JS(t,e){if(t.length<2)return t;const n=[];let i=null,r,s;t=t.map(o=>(o[1]<o[0]&&(r=o[1],o[1]=o[0],o[1]=r),o)).sort((o,a)=>o[0]-a[0]),n.push(t[0]);for(let o=1;o<t.length;o++)i=n[n.length-1],s=t[o],i[1]===s[0]&&!e?n.push(s):i[1]===s[0]-1&&e?(i[1]=s[1],n.splice(n.length-1,1,i)):i[1]<s[0]?n.push(s):i[1]<s[1]&&(i[1]=s[1],n.splice(n.length-1,1,i));return n}function Xs(t,e){return e.bind(t)}class YS{constructor(e,n){pn(this,"editor");pn(this,"intervals");pn(this,"disposables",[]);pn(this,"prefer",1);pn(this,"lastPrefer",1);pn(this,"onCursor",Xs(this,function(e){if(e.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}));pn(this,"onRectangleSelectionStart",Xs(this,function({event:e}){e.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}));pn(this,"onRectangleSelectionStop",Xs(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}));pn(this,"onKey",Xs(this,function(e){const n=e.keyCode,i=ue.KeyCode;if(e.altKey||i.F1<=n&&n<=i.F19||e.ctrlKey&&n!==i.Backspace)return;if(n===i.UpArrow||n===i.LeftArrow||n===i.Home||n===i.PageUp){this.prefer=-1;return}if(n===i.DownArrow||n===i.RightArrow||n===i.End||n===i.PageDown){this.prefer=1;return}const r=this.getSelections(),s=this.intervals.buffer;let o;if(n===i.Delete)o=a=>a[0]===a[1]&&s.find(c=>a[1]+1===c[0])!=null;else if(n===i.Backspace)o=a=>a[0]===a[1]&&s.find(c=>c[1]+1===a[0])!=null;else return;r.findIndex(o)!==-1&&(e.stopPropagation(),e.preventDefault())}));pn(this,"getOffsetAt",Xs(this,function(e){let n;for(let i=0;i<this.intervals.buffer.length;i++)if(n=this.intervals.buffer[i],e<=n[1])return n[0]-e<e-n[1]?n[0]:n[1]}));var i;this.editor=e,this.intervals=GS(e,n),(i=this.editor.getModel())==null||i.setEOL(ue.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const e of this.disposables)e.dispose();this.disposables.splice(0)}exclude(e,n,i,r){arguments.length===1?this.intervals.exclude(e,0,e,Number.MAX_SAFE_INTEGER):this.intervals.exclude(e,n,i,r)}getApprovedSelections(){const e=this.editor.getModel();return this.getSelections().map(i=>QS(i,this.intervals.buffer,this.prefer)).flat().map(i=>{const r=e.getPositionAt(i[0]),s=e.getPositionAt(i[1]);return new ue.Selection(r.lineNumber,r.column,s.lineNumber,s.column)})}getSelections(){const e=this.editor.getModel();return(this.editor.getSelections()||[]).map(n=>[e.getOffsetAt({lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn}),e.getOffsetAt({lineNumber:n.positionLineNumber,column:n.positionColumn})])}}const XS=new RegExp("^[ s]+(exposed|Function)","i"),D0=()=>ut.jsx("div",{className:"absolute inset-0 animate-pulse",children:ut.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:ut.jsxs("div",{className:"space-y-2",children:[ut.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),ZS=({path:t,initialValue:e,theme:n="fd-dark",type:i,language:r,onChange:s,options:o={},extra:a={},showAlerts:c=!1,lspProps:l,...h})=>{const{initialLineInfo:g,initialSelectionInfo:p}=a,{editor:w,setEditor:v}=W2(),{inited:x}=l;function T(z){r==="css"&&z.languages.registerCompletionItemProvider("css",WS),r==="json"&&z.languages.json&&z.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:BS}]})}function q(z,A){v(z);const W=z.getModel();if(W&&(W.updateOptions({insertSpaces:!1}),z.onKeyUp(()=>{var se;const j=(se=z.getPosition())==null?void 0:se.lineNumber;if(j){const B=W.getLineFirstNonWhitespaceColumn(j),Z=W.getLineLength(j),oe=W.getLineContent(j);XS.test(oe)&&z.executeEdits("edit-handler",[{range:new A.Range(j,0,j,Z),text:oe.substr(B-1,Z-B)}])}})),i===kn.FileFolderType.METHOD&&kn.hasAttributesString(e)){const j=new YS(z,!0);j.exclude(1,1,1,Number.POSITIVE_INFINITY),j.enable()}}return nt.useEffect(()=>{if(!w)return;const{line:z,offset:A}=g||{};z&&q2(w,z,A)},[g,w]),nt.useEffect(()=>{if(!w)return;const{selection:z}=p||{};z&&$2(w,z)},[p,w]),x?ut.jsxs(ut.Fragment,{children:[c?ut.jsx(V2,{lspProps:l}):null,ut.jsx(S1.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},...o},path:jn(t),value:e,theme:"fd-dark",onChange:z=>s&&s(z||""),language:r,beforeMount:T,onMount:q,loading:ut.jsx(D0,{}),...h})]}):ut.jsx(D0,{})},eD={html:["html"],css:["css","less","scss"],json:["json"],javascript:["typescript"],typescript:["typescript"]};for(const[t,e]of Object.entries(eD))ue.languages.register({id:t,aliases:e});exports.Alerts=V2;exports.CodeEditor=ZS;exports.CodeEditorProvider=NS;exports.LSPProvider=AS;exports._await=V1;exports.getFileSystemPath=jn;exports.getFunctionOffset=TS;exports.jumpToLine=q2;exports.jumpToSelection=$2;exports.useCodeEditor=W2;exports.useLSP=LS;
129
+ `;if(x){const W="monaco-read-only";GS(W)||KS(x,W),x=null}const T=()=>{o(z),z()},q=()=>{a(z),v=t.deltaDecorations(v,[])},z=()=>{const W=t.getModel();W&&(v=t.deltaDecorations(v,i.map(A(W))))},A=W=>j=>{const se=W.getPositionAt(j[0]),B=W.getPositionAt(j[1]);return{range:new ue.Range(se.lineNumber,se.column,B.lineNumber,B.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return i},exclude:s,attach:o,detach:a,dispose:w,show:T,hide:q}}function JS(t,e,n){let i=!1;const r=q=>q[1]<q[0]?(i=!0,[[q[1],q[0]]]):[[...q]],s=q=>i?q.map(z=>z[1]>z[0]?a(z):z).reverse():q;let o;const a=q=>(o=q[1],q[1]=q[0],q[0]=o,q),c=r(t);let l,h,g,p,w,v,x,T;g=c[0];for(h of e)for(x=h[0],T=h[1],p=0;p<c.length;p++){if(g=c[p],w=g[0],v=g[1],w<x)v<x?l=[g]:v<=T?l=[[w,x-1]]:l=[[w,x-1],[T+1,v]];else if(w<=T)if(x===Number.NEGATIVE_INFINITY){const q=T+1;l=n===0?[]:[[q,v>q?v:q]]}else T===Number.POSITIVE_INFINITY?l=n===0?[]:[[x-1,x-1]]:v<=T?l=n<0?[[x-1,x-1]]:n>0?[[T+1,T+1]]:[]:l=[[T+1,v]];else l=[g];if(c.splice(p,1,...l),c.length===1&&c[0][1]<x)return s(c)}return s(c)}function YS(t,e){if(t.length<2)return t;const n=[];let i=null,r,s;t=t.map(o=>(o[1]<o[0]&&(r=o[1],o[1]=o[0],o[1]=r),o)).sort((o,a)=>o[0]-a[0]),n.push(t[0]);for(let o=1;o<t.length;o++)i=n[n.length-1],s=t[o],i[1]===s[0]&&!e?n.push(s):i[1]===s[0]-1&&e?(i[1]=s[1],n.splice(n.length-1,1,i)):i[1]<s[0]?n.push(s):i[1]<s[1]&&(i[1]=s[1],n.splice(n.length-1,1,i));return n}function Xs(t,e){return e.bind(t)}class XS{constructor(e,n){pn(this,"editor");pn(this,"intervals");pn(this,"disposables",[]);pn(this,"prefer",1);pn(this,"lastPrefer",1);pn(this,"onCursor",Xs(this,function(e){if(e.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}));pn(this,"onRectangleSelectionStart",Xs(this,function({event:e}){e.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}));pn(this,"onRectangleSelectionStop",Xs(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}));pn(this,"onKey",Xs(this,function(e){const n=e.keyCode,i=ue.KeyCode;if(e.altKey||i.F1<=n&&n<=i.F19||e.ctrlKey&&n!==i.Backspace)return;if(n===i.UpArrow||n===i.LeftArrow||n===i.Home||n===i.PageUp){this.prefer=-1;return}if(n===i.DownArrow||n===i.RightArrow||n===i.End||n===i.PageDown){this.prefer=1;return}const r=this.getSelections(),s=this.intervals.buffer;let o;if(n===i.Delete)o=a=>a[0]===a[1]&&s.find(c=>a[1]+1===c[0])!=null;else if(n===i.Backspace)o=a=>a[0]===a[1]&&s.find(c=>c[1]+1===a[0])!=null;else return;r.findIndex(o)!==-1&&(e.stopPropagation(),e.preventDefault())}));pn(this,"getOffsetAt",Xs(this,function(e){let n;for(let i=0;i<this.intervals.buffer.length;i++)if(n=this.intervals.buffer[i],e<=n[1])return n[0]-e<e-n[1]?n[0]:n[1]}));var i;this.editor=e,this.intervals=QS(e,n),(i=this.editor.getModel())==null||i.setEOL(ue.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const e of this.disposables)e.dispose();this.disposables.splice(0)}exclude(e,n,i,r){arguments.length===1?this.intervals.exclude(e,0,e,Number.MAX_SAFE_INTEGER):this.intervals.exclude(e,n,i,r)}getApprovedSelections(){const e=this.editor.getModel();return this.getSelections().map(i=>JS(i,this.intervals.buffer,this.prefer)).flat().map(i=>{const r=e.getPositionAt(i[0]),s=e.getPositionAt(i[1]);return new ue.Selection(r.lineNumber,r.column,s.lineNumber,s.column)})}getSelections(){const e=this.editor.getModel();return(this.editor.getSelections()||[]).map(n=>[e.getOffsetAt({lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn}),e.getOffsetAt({lineNumber:n.positionLineNumber,column:n.positionColumn})])}}const ZS=new RegExp("^[ s]+(exposed|Function)","i"),x0=()=>ut.jsx("div",{className:"absolute inset-0 animate-pulse",children:ut.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:ut.jsxs("div",{className:"space-y-2",children:[ut.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"}),ut.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),eD=({path:t,initialValue:e,theme:n="fd-dark",type:i,language:r,onChange:s,options:o={},extra:a={},showAlerts:c=!1,lspProps:l,...h})=>{const{initialLineInfo:g,initialSelectionInfo:p}=a,{editor:w,setEditor:v}=U2(),{inited:x}=l;function T(z){r==="css"&&z.languages.registerCompletionItemProvider("css",US),r==="json"&&z.languages.json&&z.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:VS}]})}function q(z,A){v(z);const W=z.getModel();if(W&&(W.updateOptions({insertSpaces:!1}),z.onKeyUp(()=>{var se;const j=(se=z.getPosition())==null?void 0:se.lineNumber;if(j){const B=W.getLineFirstNonWhitespaceColumn(j),Z=W.getLineLength(j),oe=W.getLineContent(j);ZS.test(oe)&&z.executeEdits("edit-handler",[{range:new A.Range(j,0,j,Z),text:oe.substr(B-1,Z-B)}])}})),i===kn.FileFolderType.METHOD&&kn.hasAttributesString(e)){const j=new XS(z,!0);j.exclude(1,1,1,Number.POSITIVE_INFINITY),j.enable()}}return nt.useEffect(()=>{if(!w)return;const{line:z,offset:A}=g||{};z&&H2(w,z,A)},[g,w]),nt.useEffect(()=>{if(!w)return;const{selection:z}=p||{};z&&q2(w,z)},[p,w]),x?ut.jsxs(ut.Fragment,{children:[c?ut.jsx(K2,{lspProps:l}):null,ut.jsx(S1.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},...o},path:jn(t),value:e,theme:"fd-dark",onChange:z=>s&&s(z||""),language:r,beforeMount:T,onMount:q,loading:ut.jsx(x0,{}),...h})]}):ut.jsx(x0,{})},tD={html:["html"],css:["css","less","scss"],json:["json"],javascript:["typescript"],typescript:["typescript"]};for(const[t,e]of Object.entries(tD))ue.languages.register({id:t,aliases:e});exports.Alerts=K2;exports.CodeEditor=eD;exports.CodeEditorProvider=$S;exports.LSPProvider=LS;exports._await=V1;exports.getFileSystemPath=jn;exports.getFunctionOffset=RS;exports.jumpToLine=H2;exports.jumpToSelection=q2;exports.useCodeEditor=U2;exports.useLSP=NS;
130
130
  //# sourceMappingURL=index.cjs.js.map