@redocly/openapi-language-server 0.6.20 → 0.6.22
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/lib/index.js +17 -17
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var By=Object.create;var si=Object.defineProperty;var Hy=Object.getOwnPropertyDescriptor;var zy=Object.getOwnPropertyNames;var $y=Object.getPrototypeOf,Yy=Object.prototype.hasOwnProperty;var Ul=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Es=(e,t)=>{for(var n in t)si(e,n,{get:t[n],enumerable:!0})},oi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zy(t))!Yy.call(e,i)&&i!==n&&si(e,i,{get:()=>t[i],enumerable:!(r=Hy(t,i))||r.enumerable});return e},Ns=(e,t,n)=>(oi(e,t,"default"),n&&oi(n,t,"default")),Le=(e,t,n)=>(n=e!=null?By($y(e)):{},oi(t||!e||!e.__esModule?si(n,"default",{value:e,enumerable:!0}):n,e)),ai=e=>oi(si({},"__esModule",{value:!0}),e);var St=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.isYAMLNode=me.isNodesEqual=me.newMap=me.newSeq=me.newItems=me.newScalar=me.newAnchorRef=me.newMapping=me.Kind=void 0;var ft;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(ft=me.Kind||(me.Kind={}));function Ky(e,t,n=2){var r=t?t.endPosition:e.endPosition+1,i={key:e,value:t,nodeIndent:n,startPosition:e.startPosition,endPosition:r,kind:ft.MAPPING,parent:null,errors:[]};return i}me.newMapping=Ky;function Gy(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:ft.ANCHOR_REF,parent:null}}me.newAnchorRef=Gy;function Qy(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:ft.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}me.newScalar=Qy;function Hl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:ft.SEQ,parent:null}}me.newItems=Hl;function Jy(){return Hl()}me.newSeq=Jy;function Xy(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:ft.MAP,parent:null}}me.newMap=Xy;function xr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===ft.SCALAR)return e.value===t.value;if(e.kind===ft.SEQ){let n=e,r=t;if(n.items.length!==r.items.length)return!1;for(let i=0;i<n.items.length;i++){let o=n.items[i],s=r.items[i];if(!xr(o,s))return!1}return!0}if(e.kind===ft.MAP){let n=e,r=t;if(n.mappings.length!==r.mappings.length)return!1;for(let i of n.mappings){let o=i.key,s=i.value,a=r.mappings.find(c=>xr(o,c.key));if(a){if(!xr(s,a.value))return!1}else return!1}return!0}if(ft.MAPPING===e.kind){let n=e,r=t;return xr(n.key,r.key)}return!1}me.isNodesEqual=xr;function Zy(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}me.isYAMLNode=Zy});var sn=S(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.isNegativeZero=Ie.repeat=Ie.extend=Ie.toArray=Ie.isObject=Ie.isNothing=void 0;function zl(e){return typeof e>"u"||e===null}Ie.isNothing=zl;function eb(e){return typeof e=="object"&&e!==null}Ie.isObject=eb;function tb(e){return Array.isArray(e)?e:zl(e)?[]:[e]}Ie.toArray=tb;function nb(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}Ie.extend=nb;function rb(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Ie.repeat=rb;function ib(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ie.isNegativeZero=ib});var Rn=S((
|
|
1
|
+
var By=Object.create;var si=Object.defineProperty;var Hy=Object.getOwnPropertyDescriptor;var zy=Object.getOwnPropertyNames;var $y=Object.getPrototypeOf,Yy=Object.prototype.hasOwnProperty;var Ul=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Es=(e,t)=>{for(var n in t)si(e,n,{get:t[n],enumerable:!0})},oi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zy(t))!Yy.call(e,i)&&i!==n&&si(e,i,{get:()=>t[i],enumerable:!(r=Hy(t,i))||r.enumerable});return e},Ns=(e,t,n)=>(oi(e,t,"default"),n&&oi(n,t,"default")),Le=(e,t,n)=>(n=e!=null?By($y(e)):{},oi(t||!e||!e.__esModule?si(n,"default",{value:e,enumerable:!0}):n,e)),ai=e=>oi(si({},"__esModule",{value:!0}),e);var St=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.isYAMLNode=me.isNodesEqual=me.newMap=me.newSeq=me.newItems=me.newScalar=me.newAnchorRef=me.newMapping=me.Kind=void 0;var ft;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(ft=me.Kind||(me.Kind={}));function Ky(e,t,n=2){var r=t?t.endPosition:e.endPosition+1,i={key:e,value:t,nodeIndent:n,startPosition:e.startPosition,endPosition:r,kind:ft.MAPPING,parent:null,errors:[]};return i}me.newMapping=Ky;function Gy(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:ft.ANCHOR_REF,parent:null}}me.newAnchorRef=Gy;function Qy(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:ft.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}me.newScalar=Qy;function Hl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:ft.SEQ,parent:null}}me.newItems=Hl;function Jy(){return Hl()}me.newSeq=Jy;function Xy(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:ft.MAP,parent:null}}me.newMap=Xy;function xr(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===ft.SCALAR)return e.value===t.value;if(e.kind===ft.SEQ){let n=e,r=t;if(n.items.length!==r.items.length)return!1;for(let i=0;i<n.items.length;i++){let o=n.items[i],s=r.items[i];if(!xr(o,s))return!1}return!0}if(e.kind===ft.MAP){let n=e,r=t;if(n.mappings.length!==r.mappings.length)return!1;for(let i of n.mappings){let o=i.key,s=i.value,a=r.mappings.find(c=>xr(o,c.key));if(a){if(!xr(s,a.value))return!1}else return!1}return!0}if(ft.MAPPING===e.kind){let n=e,r=t;return xr(n.key,r.key)}return!1}me.isNodesEqual=xr;function Zy(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}me.isYAMLNode=Zy});var sn=S(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.isNegativeZero=Ie.repeat=Ie.extend=Ie.toArray=Ie.isObject=Ie.isNothing=void 0;function zl(e){return typeof e>"u"||e===null}Ie.isNothing=zl;function eb(e){return typeof e=="object"&&e!==null}Ie.isObject=eb;function tb(e){return Array.isArray(e)?e:zl(e)?[]:[e]}Ie.toArray=tb;function nb(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}Ie.extend=nb;function rb(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Ie.repeat=rb;function ib(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ie.isNegativeZero=ib});var Rn=S((hD,$l)=>{"use strict";var ci=class e{constructor(t,n=null,r=!1){this.name="YAMLException",this.reason=t,this.mark=n,this.message=this.toString(!1),this.isWarning=r}static isInstance(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function"){for(let n of t.getClassIdentifier())if(n==e.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(e.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};ci.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";$l.exports=ci});var Kl=S((yD,Vl)=>{"use strict";var Yl=sn(),Is=class{constructor(t,n,r,i,o){this.name=t,this.buffer=n,this.position=r,this.line=i,this.column=o}getSnippet(t=0,n=75){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
|
|
2
2
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>n/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
|
|
3
3
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),Yl.repeat(" ",t)+r+a+o+`
|
|
4
4
|
`+Yl.repeat(" ",t+this.position-i+r.length)+"^"}toString(t=!0){var n,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(n=this.getSnippet(),n&&(r+=`:
|
|
5
|
-
`+n)),r}};Vl.exports=Is});var ke=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.Type=void 0;var Gl=Rn(),ob=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],sb=["scalar","sequence","mapping"];function ab(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Us=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(ob.indexOf(r)===-1)throw new Gl('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.defaultStyle=n.defaultStyle||null,this.styleAliases=ab(n.styleAliases||null),sb.indexOf(this.kind)===-1)throw new Gl('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ui.Type=Us});var Tn=S(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.Schema=void 0;var Ql=sn(),li=Rn(),cb=ke();function Ws(e,t,n){var r=[];return e.include.forEach(function(i){n=Ws(i,t,n)}),e[t].forEach(function(i){n.forEach(function(o,s){o.tag===i.tag&&r.push(s)}),n.push(i)}),n.filter(function(i,o){return r.indexOf(o)===-1})}function ub(){var e={},t,n;function r(i){e[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}var Lt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new li("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ws(this,"implicit",[]),this.compiledExplicit=Ws(this,"explicit",[]),this.compiledTypeMap=ub(this.compiledImplicit,this.compiledExplicit)}};pi.Schema=Lt;Lt.DEFAULT=null;Lt.create=function(...t){var n,r;switch(t.length){case 1:n=Lt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new li("Wrong number of arguments for Schema.create function")}if(n=Ql.toArray(n),r=Ql.toArray(r),!n.every(function(i){return i instanceof Lt}))throw new li("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof cb.Type}))throw new li("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Lt({include:n,explicit:r})}});var Xl=S((
|
|
6
|
-
\r`;function Yb(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Bs;for(n=0;n<o;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Vb(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Bs,a=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),di?new di(c):c}function Kb(e){var t="",n=0,r,i,o=e.length,s=Bs;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function Gb(e){return di&&di.isBuffer(e)}kp.exports=new $b.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Yb,construct:Vb,predicate:Gb,represent:Kb})});var qp=S((
|
|
5
|
+
`+n)),r}};Vl.exports=Is});var ke=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.Type=void 0;var Gl=Rn(),ob=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],sb=["scalar","sequence","mapping"];function ab(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Us=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(ob.indexOf(r)===-1)throw new Gl('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.defaultStyle=n.defaultStyle||null,this.styleAliases=ab(n.styleAliases||null),sb.indexOf(this.kind)===-1)throw new Gl('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ui.Type=Us});var Tn=S(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.Schema=void 0;var Ql=sn(),li=Rn(),cb=ke();function Ws(e,t,n){var r=[];return e.include.forEach(function(i){n=Ws(i,t,n)}),e[t].forEach(function(i){n.forEach(function(o,s){o.tag===i.tag&&r.push(s)}),n.push(i)}),n.filter(function(i,o){return r.indexOf(o)===-1})}function ub(){var e={},t,n;function r(i){e[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}var Lt=class{constructor(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new li("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ws(this,"implicit",[]),this.compiledExplicit=Ws(this,"explicit",[]),this.compiledTypeMap=ub(this.compiledImplicit,this.compiledExplicit)}};pi.Schema=Lt;Lt.DEFAULT=null;Lt.create=function(...t){var n,r;switch(t.length){case 1:n=Lt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new li("Wrong number of arguments for Schema.create function")}if(n=Ql.toArray(n),r=Ql.toArray(r),!n.every(function(i){return i instanceof Lt}))throw new li("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof cb.Type}))throw new li("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Lt({include:n,explicit:r})}});var Xl=S((xD,Jl)=>{"use strict";var lb=ke();Jl.exports=new lb.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var ep=S((PD,Zl)=>{"use strict";var pb=ke();Zl.exports=new pb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var np=S((_D,tp)=>{"use strict";var db=ke();tp.exports=new db.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var ip=S((CD,rp)=>{"use strict";var fb=Tn();rp.exports=new fb.Schema({explicit:[Xl(),ep(),np()]})});var ap=S((SD,sp)=>{"use strict";var gb=ke(),op=St();function mb(e){let t=op.isYAMLNode(e)?e.value:e;if(t===null)return!0;var n=t.length;return n===1&&t==="~"||n===4&&(t==="null"||t==="Null"||t==="NULL")}function hb(e){return op.isYAMLNode(e)?e:null}function yb(e){return e===null}sp.exports=new gb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:mb,construct:hb,predicate:yb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var lp=S((DD,up)=>{"use strict";var bb=ke(),cp=St();function vb(e){let t=cp.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length;return n===4&&(t==="true"||t==="True"||t==="TRUE")||n===5&&(t==="false"||t==="False"||t==="FALSE")}function xb(e){return cp.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function Pb(e){return Object.prototype.toString.call(e)==="[object Boolean]"}up.exports=new bb.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vb,construct:xb,predicate:Pb,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var fp=S((RD,dp)=>{"use strict";var _b=sn(),Cb=ke(),pp=St();function Sb(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Db(e){return 48<=e&&e<=55}function Rb(e){return 48<=e&&e<=57}function Tb(e){let t=pp.isYAMLNode(e)?e.value:e;if(t===null)return!1;var n=t.length,r=0,i=!1,o;if(!n)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===n)return!0;if(o=t[++r],o==="b"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;i=!0}return i}if(o==="x"){for(r++;r<n;r++)if(o=t[r],o!=="_"){if(!Sb(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!Db(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!Rb(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function wb(e){if(pp.isYAMLNode(e))return e;var t=e,n=1,r,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0"?0:r==="0"?t[1]==="b"?n*parseInt(t.slice(2),2):t[1]==="x"?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),n*t):n*parseInt(t,10)}function kb(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!_b.isNegativeZero(e)}dp.exports=new Cb.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Tb,construct:wb,predicate:kb,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var yp=S((TD,hp)=>{"use strict";var gp=sn(),Ab=ke(),mp=St(),Ob=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function qb(e){let t=mp.isYAMLNode(e)?e.value:e;return!(t===null||!Ob.test(t))}function Eb(e){if(mp.isYAMLNode(e))return e;var t,n,r,i;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,r=1,i.forEach(function(o){t+=o*r,r*=60}),n*t):n*parseFloat(t,10)}function Nb(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(gp.isNegativeZero(e))return"-0.0";return e.toString(10)}function jb(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||gp.isNegativeZero(e))}hp.exports=new Ab.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:qb,construct:Eb,predicate:jb,represent:Nb,defaultStyle:"lowercase"})});var vp=S((wD,bp)=>{"use strict";var Mb=Tn();bp.exports=new Mb.Schema({include:[ip()],implicit:[ap(),lp(),fp(),yp()]})});var Pp=S((kD,xp)=>{"use strict";var Lb=Tn();xp.exports=new Lb.Schema({include:[vp()]})});var Sp=S((AD,Cp)=>{"use strict";var Fb=ke(),_p=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function Ib(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,u=null,d,h,v;return t=_p.exec(e),t!==null}function Ub(e){var t,n,r,i,o,s,a,c=0,u=null,d,h,v;if(t=_p.exec(e),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(d=+t[10],h=+(t[11]||0),u=(d*60+h)*6e4,t[9]==="-"&&(u=-u)),v=new Date(Date.UTC(n,r,i,o,s,a,c)),u&&v.setTime(v.getTime()-u),v}function Wb(e){return e.toISOString()}Cp.exports=new Fb.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ib,construct:Ub,instanceOf:Date,represent:Wb})});var Rp=S((OD,Dp)=>{"use strict";var Bb=ke();function Hb(e){return e==="<<"||e===null}Dp.exports=new Bb.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Hb})});var Tp={};Es(Tp,{default:()=>zb});var zb,wp=Ul(()=>{zb={}});var Ap=S((qD,kp)=>{"use strict";var di=(wp(),ai(Tp)).Buffer,$b=ke(),Bs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
6
|
+
\r`;function Yb(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Bs;for(n=0;n<o;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Vb(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Bs,a=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),di?new di(c):c}function Kb(e){var t="",n=0,r,i,o=e.length,s=Bs;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function Gb(e){return di&&di.isBuffer(e)}kp.exports=new $b.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Yb,construct:Vb,predicate:Gb,represent:Kb})});var qp=S((ED,Op)=>{"use strict";var Qb=ke(),Jb=Object.prototype.hasOwnProperty,Xb=Object.prototype.toString;function Zb(e){if(e===null)return!0;var t=[],n,r,i,o,s,a=e;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,Xb.call(i)!=="[object Object]")return!1;for(o in i)if(Jb.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function ev(e){return e!==null?e:[]}Op.exports=new Qb.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Zb,construct:ev})});var Np=S((ND,Ep)=>{"use strict";var tv=ke(),Hs=St(),nv=Object.prototype.toString;function rv(e){if(e===null)return!0;if(e.kind!=Hs.Kind.SEQ)return!1;var t,n,r,i,o,s=e.items;for(t=0,n=s.length;t<n;t+=1)if(r=s[t],nv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function iv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=Hs.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,n=o.length;t<n;t+=1){let a=o[t].mappings[0],c=Hs.newItems();c.parent=i,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],i.items.push(c)}return i}Ep.exports=new tv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:rv,construct:iv})});var Mp=S((jD,jp)=>{"use strict";var ov=ke(),sv=St();function av(e){return e===null?!0:e.kind==sv.Kind.MAP}function cv(e){return e!==null?e:{}}jp.exports=new ov.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:av,construct:cv})});var fi=S((MD,Lp)=>{"use strict";var uv=Tn(),lv=new uv.Schema({include:[Pp()],implicit:[Sp(),Rp()],explicit:[Ap(),qp(),Np(),Mp()]});Lp.exports=lv});var Ip=S((LD,Fp)=>{"use strict";var pv=ke();function dv(){return!0}function fv(){}function gv(){return""}function mv(e){return typeof e>"u"}Fp.exports=new pv.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:dv,construct:fv,predicate:mv,represent:gv})});var Wp=S((FD,Up)=>{"use strict";var hv=ke();function yv(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if(t[0]==="/"){if(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!=="/")return!1;t=t.slice(1,t.length-r.length-1)}try{var i=new RegExp(t,r);return!0}catch{return!1}}function bv(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return t[0]==="/"&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function vv(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function xv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Up.exports=new hv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:yv,construct:bv,predicate:xv,represent:vv})});var zs=S((ID,zp)=>{"use strict";var Bp=Tn(),Hp=new Bp.Schema({include:[fi()],explicit:[Ip(),Wp()]});Bp.Schema.DEFAULT=Hp;zp.exports=Hp});var rd=S((gt,_r)=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.safeLoad=gt.safeLoadAll=gt.load=gt.loadAll=void 0;var We=St(),Ft=sn(),Xs=Rn(),Zs=Kl(),Kp=fi(),Pv=zs(),hi=Object.prototype.hasOwnProperty,gi=1,Gp=2,Qp=3,mi=4,$s=1,_v=2,$p=3,Cv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Sv=/[\x85\u2028\u2029]/,Dv=/[,\[\]\{\}]/,Jp=/^(?:!|!!|![a-z\-]+!)$/i,Xp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function at(e){return e===10||e===13}function cn(e){return e===9||e===32}function Ue(e){return e===9||e===32||e===10||e===13}function wn(e){return e===44||e===91||e===93||e===123||e===125}function Rv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Tv(e){return e===120?2:e===117?4:e===85?8:0}function wv(e){return 48<=e&&e<=57?e-48:-1}function kv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
7
7
|
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Av(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ys=new Array(256),Vs=new Array(256),Zp=new Array(256),Ks=new Array(256);for(Qe=0;Qe<256;Qe++)Ks[Qe]=Vs[Qe]=kv(Qe),Ys[Qe]=Vs[Qe]?1:0,Zp[Qe]=1,Ys[Qe]||(Ks[Qe]="\\"+String.fromCharCode(Qe));var Qe,Gs=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||Pv,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.allowAnyEscape=n.allowAnyEscape||!1,this.ignoreDuplicateKeys=n.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}};function ea(e,t,n=!1){return new Xs(t,new Zs(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Qs(e,t,n,r=!1,i=!1){var o=Ov(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new Zs(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Xs(n,a,r);e.errors.push(c)}}}function W(e,t){var n=ea(e,t),r=n.message+n.mark.position;if(!e.errorMap[r]){e.errors.push(n),e.errorMap[r]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if(o==`
|
|
8
8
|
`){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function Js(e,t){var n=ea(e,t);e.onWarning&&e.onWarning.call(null,n)}var Yp={YAML:function(t,n,r){var i,o,s;t.version!==null&&W(t,"duplication of %YAML directive"),r.length!==1&&W(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&W(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&W(t,"found incompatible YAML document (version 1.2 is required)"),t.version=r[0],t.checkLineBreaks=s<2,s!==2&&W(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,n,r){var i,o;r.length!==2&&W(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],Jp.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),hi.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),Xp.test(o)||W(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function It(e,t,n,r){var i,o,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||W(e,"expected valid JSON character");else Cv.test(a)&&W(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function an(e,t,n,r,i,o){if(r!=null){var s=i?i.endPosition:r.endPosition;!i&&e.input.charAt(s)===":"&&s++,t===null&&(t={startPosition:r.startPosition,endPosition:s,parent:null,errors:[],mappings:[],kind:We.Kind.MAP,nodeIndent:o});var a=We.newMapping(r,i,o);return a.parent=t,r.parent=a,i==null?a.endPosition=r.endPosition:i.parent=a,!e.ignoreDuplicateKeys&&t.mappings.forEach(c=>{We.isNodesEqual(c,a)&&(Qs(e,a.key.startPosition,"duplicate key"),Qs(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function ta(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):W(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function Ov(e,t){for(var n,r=0;r<e.lines.length&&!(e.lines[r].start>t);r++)n=e.lines[r];return n||{start:0,line:0}}function ce(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;cn(o);)o===9&&e.errors.push(ea(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(at(o))for(ta(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&Js(e,"deficient indentation"),i}function Pr(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&e.input.charCodeAt(t+1)===n&&e.input.charCodeAt(t+2)===n&&(t+=3,n=e.input.charCodeAt(t),n===0||Ue(n)))}function na(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Ft.repeat(`
|
|
9
9
|
`,n-1))}function qv(e,t,n){var r,i,o,s,a,c,u,d,h=e.kind,v=e.result,y,R=We.newScalar("",t);if(R.plainScalar=!0,e.result=R,y=e.input.charCodeAt(e.position),Ue(y)||wn(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((y===63||y===45)&&(i=e.input.charCodeAt(e.position+1),Ue(i)||n&&wn(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;y!==0;){if(y===58){if(i=e.input.charCodeAt(e.position+1),Ue(i)||n&&wn(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Ue(r))break}else{if(e.position===e.lineStart&&Pr(e)||n&&wn(y))break;if(at(y))if(c=e.line,u=e.lineStart,d=e.lineIndent,ce(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=u,e.lineIndent=d;break}}if(a&&(It(e,o,s,!1),na(e,R,e.line-c),o=s=e.position,a=!1),cn(y)||(s=e.position+1),y=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return It(e,o,s,!1),e.result.startPosition!=-1?(R.rawValue=e.input.substring(R.startPosition,R.endPosition),e.result.endPosition=ce(e,!1,-1)?e.position-1:e.position,!0):(e.kind=h,e.result=v,!1)}function Ev(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=We.newScalar("",t);for(o.singleQuoted=!0,e.kind="scalar",e.result=o,o.startPosition=e.position,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(It(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),o.endPosition=e.position,n===39)r=i=e.position,e.position++;else return!0;else at(n)?(It(e,r,i,!0),na(e,o,ce(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Pr(e)?W(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);W(e,"unexpected end of the stream within a single quoted scalar")}function Nv(e,t){var n,r,i,o,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var u=We.newScalar("",t);for(u.doubleQuoted=!0,e.result=u,u.startPosition=e.position,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return It(e,n,e.position,!0),e.position++,u.endPosition=e.position,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0;if(c===92){if(It(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),at(c))ce(e,!1,t);else if(c<256&&(e.allowAnyEscape?Zp[c]:Ys[c]))u.value+=e.allowAnyEscape?Ks[c]:Vs[c],e.position++;else if((s=Tv(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=Rv(c))>=0?o=(o<<4)+s:W(e,"expected hexadecimal character");u.value+=Av(o),e.position++}else W(e,"unknown escape sequence");n=r=e.position}else at(c)?(It(e,n,r,!0),na(e,u,ce(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Pr(e)?W(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}W(e,"unexpected end of the stream within a double quoted scalar")}function jv(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,u,d,h,v,y,R,F;if(F=e.input.charCodeAt(e.position),F===91)c=93,h=!1,o=We.newItems(),o.startPosition=e.position;else if(F===123)c=125,h=!0,o=We.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),F=e.input.charCodeAt(++e.position);F!==0;){if(ce(e,!0,t),F=e.input.charCodeAt(e.position),F===c)return e.position++,e.tag=i,e.anchor=s,e.kind=h?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var $=e.position;W(e,"missed comma between flow collection entries"),e.position=$+1}if(y=v=R=null,u=d=!1,F===63&&(a=e.input.charCodeAt(e.position+1),Ue(a)&&(u=d=!0,e.position++,ce(e,!0,t))),r=e.line,kn(e,t,gi,!1,!0),y=e.tag,v=e.result,ce(e,!0,t),F=e.input.charCodeAt(e.position),(d||e.line===r)&&F===58&&(u=!0,F=e.input.charCodeAt(++e.position),ce(e,!0,t),kn(e,t,gi,!1,!0),R=e.result),h)an(e,o,y,v,R,t);else if(u){var V=an(e,null,y,v,R,t);V.parent=o,o.items.push(V)}else v&&(v.parent=o),o.items.push(v);o.endPosition=e.position+1,ce(e,!0,t),F=e.input.charCodeAt(e.position),F===44?(n=!0,F=e.input.charCodeAt(++e.position)):n=!1}W(e,"unexpected end of the stream within a flow collection")}function Mv(e,t){var n,r,i=$s,o=!1,s=t,a=0,c=!1,u,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;var h=We.newScalar("",t);for(e.kind="scalar",e.result=h,h.startPosition=e.position;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)$s===i?i=d===43?$p:_v:W(e,"repeat of a chomping mode identifier");else if((u=wv(d))>=0)u===0?W(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?W(e,"repeat of an indentation width identifier"):(s=t+u-1,o=!0);else break;if(cn(d)){do d=e.input.charCodeAt(++e.position);while(cn(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!at(d)&&d!==0)}for(;d!==0;){for(ta(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),at(d)){a++;continue}if(e.lineIndent<s){i===$p?h.value+=Ft.repeat(`
|
|
@@ -32,11 +32,11 @@ var By=Object.create;var si=Object.defineProperty;var Hy=Object.getOwnPropertyDe
|
|
|
32
32
|
`+e.slice(i+1):r+=e.slice(o),r}function hx(e){return zv!==e&&un!==e&&$v!==e&&Jv!==e&&rx!==e&&ix!==e&&sx!==e&&cx!==e&&Vv!==e&&Gv!==e&&Qv!==e&&Yv!==e&&ax!==e&&ex!==e&&aa!==e&&sa!==e&&Kv!==e&&Zv!==e&&!De[e]&&!cd(e)}function cd(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function yx(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)ln(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function bx(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)ln(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=ca(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function vx(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,c,u,d;for(s=0,a=o.length;s<a;s+=1)d="",s!==0&&(d+=", "),c=o[s],u=n[c],ln(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",ln(e,t,u,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function xx(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,u,d,h,v;for(a=0,c=s.length;a<c;a+=1)v="",(!r||a!==0)&&(v+=ca(e,t)),u=s[a],d=n[u],ln(e,t+1,u,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&un===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,h&&(v+=ca(e,t)),ln(e,t+1,d,!0,h)&&(e.dump&&un===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=o,e.dump=i||"{}"}function sd(e,t,n){var r,i,o,s,a,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=n?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,pa.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(ad.call(a.represent,c))r=a.represent[c](t,c);else throw new la("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function ln(e,t,n,r,i){e.tag=null,e.dump=n,sd(e,n,!1)||sd(e,n,!0);var o=pa.call(e.dump);r&&(r=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(i=!1);var s=o==="[object Object]"||o==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(n),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(xx(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
33
33
|
`:"")+e.dump)):(vx(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(bx(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
|
|
34
34
|
`:"")+e.dump)):(yx(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&gx(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new la("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Px(e,t){var n=[],r=[],i,o;for(ua(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function ua(e,t,n){var r=pa.call(e),i,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)ua(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)ua(e[i[o]],t,n)}function ud(e,t){t=t||{};var n=new dx(t);return Px(e,n),ln(n,0,e,!0,!0)?n.dump+`
|
|
35
|
-
`:""}An.dump=ud;function _x(e,t){return ud(e,Cr.extend({schema:Hv},t))}An.safeDump=_x});var pd=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.determineScalarType=Ye.ScalarType=Ye.parseYamlFloat=Ye.parseYamlInteger=Ye.parseYamlBoolean=void 0;function Cx(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ye.parseYamlBoolean=Cx;function Sx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Dx(e){let t=Sx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ye.parseYamlInteger=Dx;function Rx(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ye.parseYamlFloat=Rx;var Dt;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(Dt=Ye.ScalarType||(Ye.ScalarType={}));function Tx(e){if(e===void 0)return Dt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Dt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Dt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Dt.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return Dt.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?Dt.float:Dt.string}Ye.determineScalarType=Tx});var On=S(he=>{"use strict";var wx=he&&he.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),dd=he&&he.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&wx(t,e,n)};Object.defineProperty(he,"__esModule",{value:!0});he.safeDump=he.dump=he.safeLoadAll=he.safeLoad=he.loadAll=he.load=void 0;var bi=rd();Object.defineProperty(he,"load",{enumerable:!0,get:function(){return bi.load}});Object.defineProperty(he,"loadAll",{enumerable:!0,get:function(){return bi.loadAll}});Object.defineProperty(he,"safeLoad",{enumerable:!0,get:function(){return bi.safeLoad}});Object.defineProperty(he,"safeLoadAll",{enumerable:!0,get:function(){return bi.safeLoadAll}});var fd=ld();Object.defineProperty(he,"dump",{enumerable:!0,get:function(){return fd.dump}});Object.defineProperty(he,"safeDump",{enumerable:!0,get:function(){return fd.safeDump}});he.YAMLException=Rn();dd(St(),he);dd(pd(),he)});var Wn=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.stringArray=qe.array=qe.func=qe.error=qe.number=qe.string=qe.boolean=void 0;function L_(e){return e===!0||e===!1}qe.boolean=L_;function $d(e){return typeof e=="string"||e instanceof String}qe.string=$d;function F_(e){return typeof e=="number"||e instanceof Number}qe.number=F_;function I_(e){return e instanceof Error}qe.error=I_;function U_(e){return typeof e=="function"}qe.func=U_;function Yd(e){return Array.isArray(e)}qe.array=Yd;function W_(e){return Yd(e)&&e.every(t=>$d(t))}qe.stringArray=W_});var nc=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.Message=I.NotificationType9=I.NotificationType8=I.NotificationType7=I.NotificationType6=I.NotificationType5=I.NotificationType4=I.NotificationType3=I.NotificationType2=I.NotificationType1=I.NotificationType0=I.NotificationType=I.RequestType9=I.RequestType8=I.RequestType7=I.RequestType6=I.RequestType5=I.RequestType4=I.RequestType3=I.RequestType2=I.RequestType1=I.RequestType=I.RequestType0=I.AbstractMessageSignature=I.ParameterStructures=I.ResponseError=I.ErrorCodes=void 0;var mn=Wn(),qa;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(qa||(I.ErrorCodes=qa={}));var Ea=class e extends Error{constructor(t,n,r){super(n),this.code=mn.number(t)?t:qa.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};I.ResponseError=Ea;var Be=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};I.ParameterStructures=Be;Be.auto=new Be("auto");Be.byPosition=new Be("byPosition");Be.byName=new Be("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Be.auto}};I.AbstractMessageSignature=oe;var Na=class extends oe{constructor(t){super(t,0)}};I.RequestType0=Na;var ja=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType=ja;var Ma=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType1=Ma;var La=class extends oe{constructor(t){super(t,2)}};I.RequestType2=La;var Fa=class extends oe{constructor(t){super(t,3)}};I.RequestType3=Fa;var Ia=class extends oe{constructor(t){super(t,4)}};I.RequestType4=Ia;var Ua=class extends oe{constructor(t){super(t,5)}};I.RequestType5=Ua;var Wa=class extends oe{constructor(t){super(t,6)}};I.RequestType6=Wa;var Ba=class extends oe{constructor(t){super(t,7)}};I.RequestType7=Ba;var Ha=class extends oe{constructor(t){super(t,8)}};I.RequestType8=Ha;var za=class extends oe{constructor(t){super(t,9)}};I.RequestType9=za;var $a=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType=$a;var Ya=class extends oe{constructor(t){super(t,0)}};I.NotificationType0=Ya;var Va=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType1=Va;var Ka=class extends oe{constructor(t){super(t,2)}};I.NotificationType2=Ka;var Ga=class extends oe{constructor(t){super(t,3)}};I.NotificationType3=Ga;var Qa=class extends oe{constructor(t){super(t,4)}};I.NotificationType4=Qa;var Ja=class extends oe{constructor(t){super(t,5)}};I.NotificationType5=Ja;var Xa=class extends oe{constructor(t){super(t,6)}};I.NotificationType6=Xa;var Za=class extends oe{constructor(t){super(t,7)}};I.NotificationType7=Za;var ec=class extends oe{constructor(t){super(t,8)}};I.NotificationType8=ec;var tc=class extends oe{constructor(t){super(t,9)}};I.NotificationType9=tc;var Vd;(function(e){function t(i){let o=i;return o&&mn.string(o.method)&&(mn.string(o.id)||mn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&mn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(mn.string(o.id)||mn.number(o.id)||o.id===null)}e.isResponse=r})(Vd||(I.Message=Vd={}))});var ic=S(Bt=>{"use strict";var Kd;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.LRUCache=Bt.LinkedMap=Bt.Touch=void 0;var Ee;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ee||(Bt.Touch=Ee={}));var Zi=class{constructor(){this[Kd]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ee.None){let r=this._map.get(t);if(r)return n!==Ee.None&&this.touch(r,n),r.value}set(t,n,r=Ee.None){let i=this._map.get(t);if(i)i.value=n,r!==Ee.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ee.None:this.addItemLast(i);break;case Ee.First:this.addItemFirst(i);break;case Ee.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Kd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ee.First&&n!==Ee.Last)){if(n===Ee.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ee.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Bt.LinkedMap=Zi;var rc=class extends Zi{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ee.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ee.None)}set(t,n){return super.set(t,n,Ee.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bt.LRUCache=rc});var Qd=S(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.Disposable=void 0;var Gd;(function(e){function t(n){return{dispose:n}}e.create=t})(Gd||(eo.Disposable=Gd={}))});var Ht=S(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var oc;function sc(){if(oc===void 0)throw new Error("No runtime abstraction layer installed");return oc}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");oc=n}e.install=t})(sc||(sc={}));ac.default=sc});var Hn=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Emitter=Bn.Event=void 0;var B_=Ht(),Jd;(function(e){let t={dispose(){}};e.None=function(){return t}})(Jd||(Bn.Event=Jd={}));var cc=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,B_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},to=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new cc),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Bn.Emitter=to;to._noop=function(){}});var io=S(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.CancellationTokenSource=zn.CancellationToken=void 0;var H_=Ht(),z_=Wn(),uc=Hn(),no;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:uc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:uc.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||z_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(no||(zn.CancellationToken=no={}));var $_=Object.freeze(function(e,t){let n=(0,H_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),ro=class{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 uc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},lc=class{get token(){return this._token||(this._token=new ro),this._token}cancel(){this._token?this._token.cancel():this._token=no.Cancelled}dispose(){this._token?this._token instanceof ro&&this._token.dispose():this._token=no.None}};zn.CancellationTokenSource=lc});var Xd=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.SharedArrayReceiverStrategy=$n.SharedArraySenderStrategy=void 0;var Y_=io(),qr;(function(e){e.Continue=0,e.Cancelled=1})(qr||(qr={}));var pc=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=qr.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,qr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};$n.SharedArraySenderStrategy=pc;var dc=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===qr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},fc=class{constructor(t){this.token=new dc(t)}cancel(){}dispose(){}},gc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new Y_.CancellationTokenSource:new fc(n)}};$n.SharedArrayReceiverStrategy=gc});var hc=S(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.Semaphore=void 0;var V_=Ht(),mc=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),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;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};oo.Semaphore=mc});var ef=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ReadableStreamMessageReader=zt.AbstractMessageReader=zt.MessageReader=void 0;var bc=Ht(),Yn=Wn(),yc=Hn(),K_=hc(),Zd;(function(e){function t(n){let r=n;return r&&Yn.func(r.listen)&&Yn.func(r.dispose)&&Yn.func(r.onError)&&Yn.func(r.onClose)&&Yn.func(r.onPartialMessage)}e.is=t})(Zd||(zt.MessageReader=Zd={}));var so=class{constructor(){this.errorEmitter=new yc.Emitter,this.closeEmitter=new yc.Emitter,this.partialMessageEmitter=new yc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Yn.string(t.message)?t.message:"unknown"}`)}};zt.AbstractMessageReader=so;var vc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let u of n.contentDecoders)s.set(u.name,u);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let u of n.contentTypeDecoders)c.set(u.name,u)}return a===void 0&&(a=(0,bc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(vc||(vc={}));var xc=class extends so{constructor(t,n){super(),this.readable=t,this.options=vc.fromOptions(n),this.buffer=(0,bc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new K_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
36
|
-
${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,bc.default)().timer.setTimeout((t,n)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};zt.ReadableStreamMessageReader=xc});var sf=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WriteableStreamMessageWriter=$t.AbstractMessageWriter=$t.MessageWriter=void 0;var tf=Ht(),Er=Wn(),
|
|
37
|
-
`,of;(function(e){function t(n){let r=n;return r&&Er.func(r.dispose)&&Er.func(r.onClose)&&Er.func(r.onError)&&Er.func(r.write)}e.is=t})(of||($t.MessageWriter=of={}));var ao=class{constructor(){this.errorEmitter=new nf.Emitter,this.closeEmitter=new nf.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t,n,r){this.errorEmitter.fire([this.asError(t),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(t){return t instanceof Error?t:new Error(`Writer received error. Reason: ${Er.string(t.message)?t.message:"unknown"}`)}};$t.AbstractMessageWriter=ao;var Pc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,tf.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,tf.default)().applicationJson.encoder}}e.fromOptions=t})(Pc||(Pc={}));var _c=class extends ao{constructor(t,n){super(),this.writable=t,this.options=Pc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new
|
|
38
|
-
`,Cc=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let u=this._chunks[r];for(i=0;i<u.length;){switch(u[i]){case
|
|
39
|
-
${d}`);let v=d.substr(0,h),y=d.substr(h+1).trim();a.set(t?v.toLowerCase():v,y)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};co.AbstractMessageBuffer=Cc});var df=S(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.createMessageConnection=H.ConnectionOptions=H.MessageStrategy=H.CancellationStrategy=H.CancellationSenderStrategy=H.CancellationReceiverStrategy=H.RequestCancellationReceiverStrategy=H.IdCancellationReceiverStrategy=H.ConnectionStrategy=H.ConnectionError=H.ConnectionErrors=H.LogTraceNotification=H.SetTraceNotification=H.TraceFormat=H.TraceValues=H.Trace=H.NullLogger=H.ProgressType=H.ProgressToken=void 0;var cf=Ht(),ue=Wn(),U=nc(),uf=ic(),Nr=Hn(),Sc=io(),Lr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Lr||(Lr={}));var Dc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Dc||(H.ProgressToken=Dc={}));var jr;(function(e){e.type=new U.NotificationType("$/progress")})(jr||(jr={}));var Rc=class{constructor(){}};H.ProgressType=Rc;var Tc;(function(e){function t(n){return ue.func(n)}e.is=t})(Tc||(Tc={}));H.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var J;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(J||(H.Trace=J={}));var lf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(lf||(H.TraceValues=lf={}));(function(e){function t(r){if(!ue.string(r))return e.Off;switch(r=r.toLowerCase(),r){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function n(r){switch(r){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=n})(J||(H.Trace=J={}));var Ke;(function(e){e.Text="text",e.JSON="json"})(Ke||(H.TraceFormat=Ke={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ke||(H.TraceFormat=Ke={}));var wc;(function(e){e.type=new U.NotificationType("$/setTrace")})(wc||(H.SetTraceNotification=wc={}));var uo;(function(e){e.type=new U.NotificationType("$/logTrace")})(uo||(H.LogTraceNotification=uo={}));var Mr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(Mr||(H.ConnectionErrors=Mr={}));var Vn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=Vn;var kc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(kc||(H.ConnectionStrategy=kc={}));var lo;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(lo||(H.IdCancellationReceiverStrategy=lo={}));var Ac;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(Ac||(H.RequestCancellationReceiverStrategy=Ac={}));var po;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Sc.CancellationTokenSource}});function t(n){return lo.is(n)||Ac.is(n)}e.is=t})(po||(H.CancellationReceiverStrategy=po={}));var fo;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Lr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(fo||(H.CancellationSenderStrategy=fo={}));var go;(function(e){e.Message=Object.freeze({receiver:po.Message,sender:fo.Message});function t(n){let r=n;return r&&po.is(r.receiver)&&fo.is(r.sender)}e.is=t})(go||(H.CancellationStrategy=go={}));var mo;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(mo||(H.MessageStrategy=mo={}));var pf;(function(e){function t(n){let r=n;return r&&(go.is(r.cancellationStrategy)||kc.is(r.connectionStrategy)||mo.is(r.messageStrategy))}e.is=t})(pf||(H.ConnectionOptions=pf={}));var ct;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(ct||(ct={}));function
|
|
35
|
+
`:""}An.dump=ud;function _x(e,t){return ud(e,Cr.extend({schema:Hv},t))}An.safeDump=_x});var pd=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.determineScalarType=Ye.ScalarType=Ye.parseYamlFloat=Ye.parseYamlInteger=Ye.parseYamlBoolean=void 0;function Cx(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Ye.parseYamlBoolean=Cx;function Sx(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Dx(e){let t=Sx(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Ye.parseYamlInteger=Dx;function Rx(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;let n=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(n)return n[1]==="-"?-1/0:1/0;let r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`}Ye.parseYamlFloat=Rx;var Dt;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(Dt=Ye.ScalarType||(Ye.ScalarType={}));function Tx(e){if(e===void 0)return Dt.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Dt.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Dt.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Dt.bool;let n=/^[-+]?[0-9]+$/,r=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(n.test(t)||r.test(t)||i.test(t))return Dt.int;let o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?Dt.float:Dt.string}Ye.determineScalarType=Tx});var On=S(he=>{"use strict";var wx=he&&he.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),dd=he&&he.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&wx(t,e,n)};Object.defineProperty(he,"__esModule",{value:!0});he.safeDump=he.dump=he.safeLoadAll=he.safeLoad=he.loadAll=he.load=void 0;var bi=rd();Object.defineProperty(he,"load",{enumerable:!0,get:function(){return bi.load}});Object.defineProperty(he,"loadAll",{enumerable:!0,get:function(){return bi.loadAll}});Object.defineProperty(he,"safeLoad",{enumerable:!0,get:function(){return bi.safeLoad}});Object.defineProperty(he,"safeLoadAll",{enumerable:!0,get:function(){return bi.safeLoadAll}});var fd=ld();Object.defineProperty(he,"dump",{enumerable:!0,get:function(){return fd.dump}});Object.defineProperty(he,"safeDump",{enumerable:!0,get:function(){return fd.safeDump}});he.YAMLException=Rn();dd(St(),he);dd(pd(),he)});var Wn=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.stringArray=qe.array=qe.func=qe.error=qe.number=qe.string=qe.boolean=void 0;function U_(e){return e===!0||e===!1}qe.boolean=U_;function $d(e){return typeof e=="string"||e instanceof String}qe.string=$d;function W_(e){return typeof e=="number"||e instanceof Number}qe.number=W_;function B_(e){return e instanceof Error}qe.error=B_;function H_(e){return typeof e=="function"}qe.func=H_;function Yd(e){return Array.isArray(e)}qe.array=Yd;function z_(e){return Yd(e)&&e.every(t=>$d(t))}qe.stringArray=z_});var nc=S(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.Message=I.NotificationType9=I.NotificationType8=I.NotificationType7=I.NotificationType6=I.NotificationType5=I.NotificationType4=I.NotificationType3=I.NotificationType2=I.NotificationType1=I.NotificationType0=I.NotificationType=I.RequestType9=I.RequestType8=I.RequestType7=I.RequestType6=I.RequestType5=I.RequestType4=I.RequestType3=I.RequestType2=I.RequestType1=I.RequestType=I.RequestType0=I.AbstractMessageSignature=I.ParameterStructures=I.ResponseError=I.ErrorCodes=void 0;var mn=Wn(),qa;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(qa||(I.ErrorCodes=qa={}));var Ea=class e extends Error{constructor(t,n,r){super(n),this.code=mn.number(t)?t:qa.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};I.ResponseError=Ea;var Be=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};I.ParameterStructures=Be;Be.auto=new Be("auto");Be.byPosition=new Be("byPosition");Be.byName=new Be("byName");var oe=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Be.auto}};I.AbstractMessageSignature=oe;var Na=class extends oe{constructor(t){super(t,0)}};I.RequestType0=Na;var ja=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType=ja;var Ma=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.RequestType1=Ma;var La=class extends oe{constructor(t){super(t,2)}};I.RequestType2=La;var Fa=class extends oe{constructor(t){super(t,3)}};I.RequestType3=Fa;var Ia=class extends oe{constructor(t){super(t,4)}};I.RequestType4=Ia;var Ua=class extends oe{constructor(t){super(t,5)}};I.RequestType5=Ua;var Wa=class extends oe{constructor(t){super(t,6)}};I.RequestType6=Wa;var Ba=class extends oe{constructor(t){super(t,7)}};I.RequestType7=Ba;var Ha=class extends oe{constructor(t){super(t,8)}};I.RequestType8=Ha;var za=class extends oe{constructor(t){super(t,9)}};I.RequestType9=za;var $a=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType=$a;var Ya=class extends oe{constructor(t){super(t,0)}};I.NotificationType0=Ya;var Va=class extends oe{constructor(t,n=Be.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};I.NotificationType1=Va;var Ka=class extends oe{constructor(t){super(t,2)}};I.NotificationType2=Ka;var Ga=class extends oe{constructor(t){super(t,3)}};I.NotificationType3=Ga;var Qa=class extends oe{constructor(t){super(t,4)}};I.NotificationType4=Qa;var Ja=class extends oe{constructor(t){super(t,5)}};I.NotificationType5=Ja;var Xa=class extends oe{constructor(t){super(t,6)}};I.NotificationType6=Xa;var Za=class extends oe{constructor(t){super(t,7)}};I.NotificationType7=Za;var ec=class extends oe{constructor(t){super(t,8)}};I.NotificationType8=ec;var tc=class extends oe{constructor(t){super(t,9)}};I.NotificationType9=tc;var Vd;(function(e){function t(i){let o=i;return o&&mn.string(o.method)&&(mn.string(o.id)||mn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&mn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(mn.string(o.id)||mn.number(o.id)||o.id===null)}e.isResponse=r})(Vd||(I.Message=Vd={}))});var ic=S(Bt=>{"use strict";var Kd;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.LRUCache=Bt.LinkedMap=Bt.Touch=void 0;var Ee;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ee||(Bt.Touch=Ee={}));var Zi=class{constructor(){this[Kd]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=Ee.None){let r=this._map.get(t);if(r)return n!==Ee.None&&this.touch(r,n),r.value}set(t,n,r=Ee.None){let i=this._map.get(t);if(i)i.value=n,r!==Ee.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ee.None:this.addItemLast(i);break;case Ee.First:this.addItemFirst(i);break;case Ee.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Kd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Ee.First&&n!==Ee.Last)){if(n===Ee.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===Ee.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Bt.LinkedMap=Zi;var rc=class extends Zi{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=Ee.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ee.None)}set(t,n){return super.set(t,n,Ee.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bt.LRUCache=rc});var Qd=S(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.Disposable=void 0;var Gd;(function(e){function t(n){return{dispose:n}}e.create=t})(Gd||(eo.Disposable=Gd={}))});var Ht=S(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var oc;function sc(){if(oc===void 0)throw new Error("No runtime abstraction layer installed");return oc}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");oc=n}e.install=t})(sc||(sc={}));ac.default=sc});var Hn=S(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Emitter=Bn.Event=void 0;var $_=Ht(),Jd;(function(e){let t={dispose(){}};e.None=function(){return t}})(Jd||(Bn.Event=Jd={}));var cc=class{add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,$_.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},to=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new cc),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Bn.Emitter=to;to._noop=function(){}});var io=S(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.CancellationTokenSource=zn.CancellationToken=void 0;var Y_=Ht(),V_=Wn(),uc=Hn(),no;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:uc.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:uc.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||V_.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(no||(zn.CancellationToken=no={}));var K_=Object.freeze(function(e,t){let n=(0,Y_.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),ro=class{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?K_:(this._emitter||(this._emitter=new uc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},lc=class{get token(){return this._token||(this._token=new ro),this._token}cancel(){this._token?this._token.cancel():this._token=no.Cancelled}dispose(){this._token?this._token instanceof ro&&this._token.dispose():this._token=no.None}};zn.CancellationTokenSource=lc});var Xd=S($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.SharedArrayReceiverStrategy=$n.SharedArraySenderStrategy=void 0;var G_=io(),qr;(function(e){e.Continue=0,e.Cancelled=1})(qr||(qr={}));var pc=class{constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=qr.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,qr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};$n.SharedArraySenderStrategy=pc;var dc=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===qr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},fc=class{constructor(t){this.token=new dc(t)}cancel(){}dispose(){}},gc=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new G_.CancellationTokenSource:new fc(n)}};$n.SharedArrayReceiverStrategy=gc});var hc=S(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.Semaphore=void 0;var Q_=Ht(),mc=class{constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Q_.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};oo.Semaphore=mc});var ef=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ReadableStreamMessageReader=zt.AbstractMessageReader=zt.MessageReader=void 0;var bc=Ht(),Yn=Wn(),yc=Hn(),J_=hc(),Zd;(function(e){function t(n){let r=n;return r&&Yn.func(r.listen)&&Yn.func(r.dispose)&&Yn.func(r.onError)&&Yn.func(r.onClose)&&Yn.func(r.onPartialMessage)}e.is=t})(Zd||(zt.MessageReader=Zd={}));var so=class{constructor(){this.errorEmitter=new yc.Emitter,this.closeEmitter=new yc.Emitter,this.partialMessageEmitter=new yc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${Yn.string(t.message)?t.message:"unknown"}`)}};zt.AbstractMessageReader=so;var vc;(function(e){function t(n){let r,i,o,s=new Map,a,c=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let u of n.contentDecoders)s.set(u.name,u);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,c.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let u of n.contentTypeDecoders)c.set(u.name,u)}return a===void 0&&(a=(0,bc.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(vc||(vc={}));var xc=class extends so{constructor(t,n){super(),this.readable=t,this.options=vc.fromOptions(n),this.buffer=(0,bc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new J_.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
36
|
+
${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,bc.default)().timer.setTimeout((t,n)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};zt.ReadableStreamMessageReader=xc});var sf=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WriteableStreamMessageWriter=$t.AbstractMessageWriter=$t.MessageWriter=void 0;var tf=Ht(),Er=Wn(),X_=hc(),nf=Hn(),Z_="Content-Length: ",rf=`\r
|
|
37
|
+
`,of;(function(e){function t(n){let r=n;return r&&Er.func(r.dispose)&&Er.func(r.onClose)&&Er.func(r.onError)&&Er.func(r.write)}e.is=t})(of||($t.MessageWriter=of={}));var ao=class{constructor(){this.errorEmitter=new nf.Emitter,this.closeEmitter=new nf.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t,n,r){this.errorEmitter.fire([this.asError(t),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(t){return t instanceof Error?t:new Error(`Writer received error. Reason: ${Er.string(t.message)?t.message:"unknown"}`)}};$t.AbstractMessageWriter=ao;var Pc;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,tf.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,tf.default)().applicationJson.encoder}}e.fromOptions=t})(Pc||(Pc={}));var _c=class extends ao{constructor(t,n){super(),this.writable=t,this.options=Pc.fromOptions(n),this.errorCount=0,this.writeSemaphore=new X_.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(t){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(t,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(Z_,r.byteLength.toString(),rf),i.push(rf),this.doWrite(t,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(t,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,t),Promise.reject(i)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){this.writable.end()}};$t.WriteableStreamMessageWriter=_c});var af=S(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.AbstractMessageBuffer=void 0;var eC=13,tC=10,nC=`\r
|
|
38
|
+
`,Cc=class{constructor(t="utf-8"){this._encoding=t,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(t){let n=typeof t=="string"?this.fromString(t,this._encoding):t;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(t=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let u=this._chunks[r];for(i=0;i<u.length;){switch(u[i]){case eC:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case tC:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=u.byteLength,r++}if(n!==4)return;let s=this._read(o+i),a=new Map,c=this.toString(s,"ascii").split(nC);if(c.length<2)return a;for(let u=0;u<c.length-2;u++){let d=c[u],h=d.indexOf(":");if(h===-1)throw new Error(`Message header must separate key and value using ':'
|
|
39
|
+
${d}`);let v=d.substr(0,h),y=d.substr(h+1).trim();a.set(t?v.toLowerCase():v,y)}return a}tryReadBody(t){if(!(this._totalLength<t))return this._read(t)}get numberOfBytes(){return this._totalLength}_read(t){if(t===0)return this.emptyBuffer();if(t>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===t){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=t,this.asNative(o)}if(this._chunks[0].byteLength>t){let o=this._chunks[0],s=this.asNative(o,t);return this._chunks[0]=o.slice(t),this._totalLength-=t,s}let n=this.allocNative(t),r=0,i=0;for(;t>0;){let o=this._chunks[i];if(o.byteLength>t){let s=o.slice(0,t);n.set(s,r),r+=t,this._chunks[i]=o.slice(t),this._totalLength-=t,t-=t}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,t-=o.byteLength}return n}};co.AbstractMessageBuffer=Cc});var df=S(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.createMessageConnection=H.ConnectionOptions=H.MessageStrategy=H.CancellationStrategy=H.CancellationSenderStrategy=H.CancellationReceiverStrategy=H.RequestCancellationReceiverStrategy=H.IdCancellationReceiverStrategy=H.ConnectionStrategy=H.ConnectionError=H.ConnectionErrors=H.LogTraceNotification=H.SetTraceNotification=H.TraceFormat=H.TraceValues=H.Trace=H.NullLogger=H.ProgressType=H.ProgressToken=void 0;var cf=Ht(),ue=Wn(),U=nc(),uf=ic(),Nr=Hn(),Sc=io(),Lr;(function(e){e.type=new U.NotificationType("$/cancelRequest")})(Lr||(Lr={}));var Dc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Dc||(H.ProgressToken=Dc={}));var jr;(function(e){e.type=new U.NotificationType("$/progress")})(jr||(jr={}));var Rc=class{constructor(){}};H.ProgressType=Rc;var Tc;(function(e){function t(n){return ue.func(n)}e.is=t})(Tc||(Tc={}));H.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var J;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(J||(H.Trace=J={}));var lf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(lf||(H.TraceValues=lf={}));(function(e){function t(r){if(!ue.string(r))return e.Off;switch(r=r.toLowerCase(),r){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function n(r){switch(r){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=n})(J||(H.Trace=J={}));var Ke;(function(e){e.Text="text",e.JSON="json"})(Ke||(H.TraceFormat=Ke={}));(function(e){function t(n){return ue.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ke||(H.TraceFormat=Ke={}));var wc;(function(e){e.type=new U.NotificationType("$/setTrace")})(wc||(H.SetTraceNotification=wc={}));var uo;(function(e){e.type=new U.NotificationType("$/logTrace")})(uo||(H.LogTraceNotification=uo={}));var Mr;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(Mr||(H.ConnectionErrors=Mr={}));var Vn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};H.ConnectionError=Vn;var kc;(function(e){function t(n){let r=n;return r&&ue.func(r.cancelUndispatched)}e.is=t})(kc||(H.ConnectionStrategy=kc={}));var lo;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(lo||(H.IdCancellationReceiverStrategy=lo={}));var Ac;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&ue.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ue.func(r.dispose))}e.is=t})(Ac||(H.RequestCancellationReceiverStrategy=Ac={}));var po;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Sc.CancellationTokenSource}});function t(n){return lo.is(n)||Ac.is(n)}e.is=t})(po||(H.CancellationReceiverStrategy=po={}));var fo;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Lr.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ue.func(r.sendCancellation)&&ue.func(r.cleanup)}e.is=t})(fo||(H.CancellationSenderStrategy=fo={}));var go;(function(e){e.Message=Object.freeze({receiver:po.Message,sender:fo.Message});function t(n){let r=n;return r&&po.is(r.receiver)&&fo.is(r.sender)}e.is=t})(go||(H.CancellationStrategy=go={}));var mo;(function(e){function t(n){let r=n;return r&&ue.func(r.handleMessage)}e.is=t})(mo||(H.MessageStrategy=mo={}));var pf;(function(e){function t(n){let r=n;return r&&(go.is(r.cancellationStrategy)||kc.is(r.connectionStrategy)||mo.is(r.messageStrategy))}e.is=t})(pf||(H.ConnectionOptions=pf={}));var ct;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(ct||(ct={}));function rC(e,t,n,r){let i=n!==void 0?n:H.NullLogger,o=0,s=0,a=0,c="2.0",u,d=new Map,h,v=new Map,y=new Map,R,F=new uf.LinkedMap,$=new Map,V=new Set,m=new Map,g=J.Off,w=Ke.Text,Y,X=ct.New,it=new Nr.Emitter,Nt=new Nr.Emitter,rn=new Nr.Emitter,Cn=new Nr.Emitter,k=new Nr.Emitter,b=r&&r.cancellationStrategy?r.cancellationStrategy:go.Message;function N(p){if(p===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+p.toString()}function j(p){return p===null?"res-unknown-"+(++a).toString():"res-"+p.toString()}function P(){return"not-"+(++s).toString()}function C(p,_){U.Message.isRequest(_)?p.set(N(_.id),_):U.Message.isResponse(_)?p.set(j(_.id),_):p.set(P(),_)}function D(p){}function E(){return X===ct.Listening}function M(){return X===ct.Closed}function q(){return X===ct.Disposed}function z(){(X===ct.New||X===ct.Listening)&&(X=ct.Closed,Nt.fire(void 0))}function K(p){it.fire([p,void 0,void 0])}function Ce(p){it.fire(p)}e.onClose(z),e.onError(K),t.onClose(z),t.onError(Ce);function ee(){R||F.size===0||(R=(0,cf.default)().timer.setImmediate(()=>{R=void 0,on()}))}function ot(p){U.Message.isRequest(p)?Oy(p):U.Message.isNotification(p)?Ey(p):U.Message.isResponse(p)?qy(p):p?.type?.startsWith("redocly/")||Ny(p)}function on(){if(F.size===0)return;let p=F.shift();try{let _=r?.messageStrategy;mo.is(_)?_.handleMessage(p,ot):ot(p)}finally{ee()}}let Ay=p=>{try{if(U.Message.isNotification(p)&&p.method===Lr.type.method){let _=p.params.id,A=N(_),L=F.get(A);if(U.Message.isRequest(L)){let te=r?.connectionStrategy,le=te&&te.cancelUndispatched?te.cancelUndispatched(L,D):void 0;if(le&&(le.error!==void 0||le.result!==void 0)){F.delete(A),m.delete(_),le.id=L.id,ii(le,p.method,Date.now()),t.write(le).catch(()=>i.error("Sending response for canceled message failed."));return}}let ie=m.get(_);if(ie!==void 0){ie.cancel(),Os(p);return}else V.add(_)}C(F,p)}finally{ee()}};function Oy(p){if(q())return;function _(G,ae,Z){let Pe={jsonrpc:c,id:p.id};G instanceof U.ResponseError?Pe.error=G.toJson():Pe.result=G===void 0?null:G,ii(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function A(G,ae,Z){let Pe={jsonrpc:c,id:p.id,error:G.toJson()};ii(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}function L(G,ae,Z){G===void 0&&(G=null);let Pe={jsonrpc:c,id:p.id,result:G};ii(Pe,ae,Z),t.write(Pe).catch(()=>i.error("Sending response failed."))}Ly(p);let ie=d.get(p.method),te,le;ie&&(te=ie.type,le=ie.handler);let ge=Date.now();if(le||u){let G=p.id??String(Date.now()),ae=lo.is(b.receiver)?b.receiver.createCancellationTokenSource(G):b.receiver.createCancellationTokenSource(p);p.id!==null&&V.has(p.id)&&ae.cancel(),p.id!==null&&m.set(G,ae);try{let Z;if(le)if(p.params===void 0){if(te!==void 0&&te.numberOfParams!==0){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines ${te.numberOfParams} params but received none.`),p.method,ge);return}Z=le(ae.token)}else if(Array.isArray(p.params)){if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byName){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,ge);return}Z=le(...p.params,ae.token)}else{if(te!==void 0&&te.parameterStructures===U.ParameterStructures.byPosition){A(new U.ResponseError(U.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,ge);return}Z=le(p.params,ae.token)}else u&&(Z=u(p.method,p.params,ae.token));let Pe=Z;Z?Pe.then?Pe.then(Me=>{m.delete(G),_(Me,p.method,ge)},Me=>{m.delete(G),Me instanceof U.ResponseError?A(Me,p.method,ge):Me&&ue.string(Me.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Me.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}):(m.delete(G),_(Z,p.method,ge)):(m.delete(G),L(Z,p.method,ge))}catch(Z){m.delete(G),Z instanceof U.ResponseError?_(Z,p.method,ge):Z&&ue.string(Z.message)?A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Z.message}`),p.method,ge):A(new U.ResponseError(U.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ge)}}else A(new U.ResponseError(U.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,ge)}function qy(p){if(!q())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
|
|
40
40
|
${JSON.stringify(p.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let _=p.id,A=$.get(_);if(Fy(p,A),A!==void 0){$.delete(_);try{if(p.error){let L=p.error;A.reject(new U.ResponseError(L.code,L.message,L.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(L){L.message?i.error(`Response handler '${A.method}' failed with message: ${L.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function Ey(p){if(q())return;let _,A;if(p.method===Lr.type.method){let L=p.params.id;V.delete(L),Os(p);return}else{let L=v.get(p.method);L&&(A=L.handler,_=L.type)}if(A||h)try{if(Os(p),A)if(p.params===void 0)_!==void 0&&_.numberOfParams!==0&&_.parameterStructures!==U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let L=p.params;p.method===jr.type.method&&L.length===2&&Dc.is(L[0])?A({token:L[0],value:L[1]}):(_!==void 0&&(_.parameterStructures===U.ParameterStructures.byName&&i.error(`Notification ${p.method} defines parameters by name but received parameters by position`),_.numberOfParams!==p.params.length&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received ${L.length} arguments`)),A(...L))}else _!==void 0&&_.parameterStructures===U.ParameterStructures.byPosition&&i.error(`Notification ${p.method} defines parameters by position but received parameters by name`),A(p.params);else h&&h(p.method,p.params)}catch(L){L.message?i.error(`Notification handler '${p.method}' failed with message: ${L.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else rn.fire(p)}function Ny(p){if(!p){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
41
41
|
${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A=_.id,L=$.get(A);L&&L.reject(new Error("The received response has neither a result nor an error property."))}}function jt(p){if(p!=null)switch(g){case J.Verbose:return JSON.stringify(p,null,4);case J.Compact:return JSON.stringify(p);default:return}}function jy(p){if(!(g===J.Off||!Y))if(w===Ke.Text){let _;(g===J.Verbose||g===J.Compact)&&p.params&&(_=`Params: ${jt(p.params)}
|
|
42
42
|
|
|
@@ -62,23 +62,23 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A
|
|
|
62
62
|
|
|
63
63
|
`:p.error===void 0&&(A=`No result returned.
|
|
64
64
|
|
|
65
|
-
`)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Sn("receive-response",p)}function Sn(p,_){if(!Y||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function hr(){if(M())throw new Vn(Mr.Closed,"Connection is closed.");if(q())throw new Vn(Mr.Disposed,"Connection is disposed.")}function Iy(){if(E())throw new Vn(Mr.AlreadyListening,"Connection is already listening")}function Uy(){if(!E())throw new Error("Call listen() first.")}function yr(p){return p===void 0?null:p}function Ll(p){if(p!==null)return p}function Fl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function qs(p,_){switch(p){case U.ParameterStructures.auto:return Fl(_)?Ll(_):[yr(_)];case U.ParameterStructures.byName:if(!Fl(_))throw new Error("Received parameters by name but param is not an object literal.");return Ll(_);case U.ParameterStructures.byPosition:return[yr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Il(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=qs(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(yr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let Dn={sendNotification:(p,..._)=>{hr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let G=_.length,ae=G-le;switch(ae){case 0:L=void 0;break;case 1:L=qs(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,G).map(Z=>yr(Z));break}}else{let te=_;A=p.method,L=Il(p,te)}let ie={jsonrpc:c,method:A,params:L};return My(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{hr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>Dn.sendNotification(jr.type,{token:_,value:A}),onUnhandledProgress:Cn.event,sendRequest:(p,..._)=>{hr(),Uy();let A,L,ie;if(ue.string(p)){A=p;let G=_[0],ae=_[_.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,Pe=G);let Me=_.length;Sc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let dt=Me-Z;switch(dt){case 0:L=void 0;break;case 1:L=qs(Pe,_[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${dt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(Wy=>yr(Wy));break}}else{let G=_;A=p.method,L=Il(p,G);let ae=p.numberOfParams;ie=Sc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let G=b.sender.sendCancellation(Dn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return jy(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(G,ae)=>{let Z=dt=>{G(dt),b.sender.cleanup(te),le?.dispose()},Pe=dt=>{ae(dt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(ge),$.set(te,Me)}catch(dt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,dt.message?dt.message:"Unknown reason")),dt}})},onRequest:(p,_)=>{hr();let A=null;return Tc.is(p)?(A=void 0,u=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):u=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ke.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ke.Text)),g=p,w=ie,g===J.Off?Y=void 0:Y=_,L&&!M()&&!q()&&await Dn.sendNotification(wc.type,{value:J.toString(p)})},onError:it.event,onClose:Nt.event,onUnhandledNotification:rn.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=ct.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,V=new Set,F=new uf.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{hr(),Iy(),X=ct.Listening,e.listen(Ay)},inspect:()=>{(0,cf.default)().console.log("inspect")}};return Dn.onNotification(uo.type,p=>{if(g===J.Off||!Y)return;let _=g===J.Verbose||g===J.Compact;Y.log(p.message,_?p.verbose:void 0)}),Dn.onNotification(jr.type,p=>{let _=y.get(p.token);_?_(p.value):Cn.fire(p)}),Dn}H.createMessageConnection=eC});var ho=S(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ProgressType=x.ProgressToken=x.createMessageConnection=x.NullLogger=x.ConnectionOptions=x.ConnectionStrategy=x.AbstractMessageBuffer=x.WriteableStreamMessageWriter=x.AbstractMessageWriter=x.MessageWriter=x.ReadableStreamMessageReader=x.AbstractMessageReader=x.MessageReader=x.SharedArrayReceiverStrategy=x.SharedArraySenderStrategy=x.CancellationToken=x.CancellationTokenSource=x.Emitter=x.Event=x.Disposable=x.LRUCache=x.Touch=x.LinkedMap=x.ParameterStructures=x.NotificationType9=x.NotificationType8=x.NotificationType7=x.NotificationType6=x.NotificationType5=x.NotificationType4=x.NotificationType3=x.NotificationType2=x.NotificationType1=x.NotificationType0=x.NotificationType=x.ErrorCodes=x.ResponseError=x.RequestType9=x.RequestType8=x.RequestType7=x.RequestType6=x.RequestType5=x.RequestType4=x.RequestType3=x.RequestType2=x.RequestType1=x.RequestType0=x.RequestType=x.Message=x.RAL=void 0;x.MessageStrategy=x.CancellationStrategy=x.CancellationSenderStrategy=x.CancellationReceiverStrategy=x.ConnectionError=x.ConnectionErrors=x.LogTraceNotification=x.SetTraceNotification=x.TraceFormat=x.TraceValues=x.Trace=void 0;var re=nc();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return re.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return re.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return re.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return re.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return re.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return re.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return re.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return re.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return re.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return re.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return re.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return re.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return re.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return re.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return re.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return re.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return re.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return re.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return re.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return re.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return re.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return re.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return re.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return re.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return re.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return re.ParameterStructures}});var Oc=ic();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return Oc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return Oc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return Oc.Touch}});var tC=Qd();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return tC.Disposable}});var ff=Hn();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return ff.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return ff.Emitter}});var gf=io();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return gf.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return gf.CancellationToken}});var mf=Xd();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return mf.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return mf.SharedArrayReceiverStrategy}});var qc=ef();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return qc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return qc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return qc.ReadableStreamMessageReader}});var Ec=sf();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return Ec.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return Ec.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Ec.WriteableStreamMessageWriter}});var nC=af();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return nC.AbstractMessageBuffer}});var Ae=df();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return Ae.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return Ae.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return Ae.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return Ae.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return Ae.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return Ae.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return Ae.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return Ae.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return Ae.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return Ae.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return Ae.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return Ae.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return Ae.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ae.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ae.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return Ae.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return Ae.MessageStrategy}});var rC=Ht();x.RAL=rC.default});var yf=S(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var yt=ho(),yo=class e extends yt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};yo.emptyBuffer=new Uint8Array(0);var Nc=class{constructor(t){this.socket=t,this._onData=new yt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,yt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),yt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),yt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),yt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},jc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),yt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),yt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),yt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="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(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},iC=new TextEncoder,hf=Object.freeze({messageBuffer:Object.freeze({create:e=>new yo(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(iC.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new Nc(e),asWritableStream:e=>new jc(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function Mc(){return hf}(function(e){function t(){yt.RAL.install(hf)}e.install=t})(Mc||(Mc={}));Lc.default=Mc});var hn=S(Ge=>{"use strict";var oC=Ge&&Ge.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),sC=Ge&&Ge.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&oC(t,e,n)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.createMessageConnection=Ge.BrowserMessageWriter=Ge.BrowserMessageReader=void 0;var aC=yf();aC.default.install();var Kn=ho();sC(ho(),Ge);var Fc=class extends Kn.AbstractMessageReader{constructor(t){super(),this._onData=new Kn.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};Ge.BrowserMessageReader=Fc;var Ic=class extends Kn.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};Ge.BrowserMessageWriter=Ic;function cC(e,t,n,r){return n===void 0&&(n=Kn.NullLogger),Kn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Kn.createMessageConnection)(e,t,n,r)}Ge.createMessageConnection=cC});var Uc=S((ST,bf)=>{"use strict";bf.exports=hn()});var Ro={};Es(Ro,{AnnotatedTextEdit:()=>Ot,ChangeAnnotation:()=>yn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>Pu,CodeActionContext:()=>xu,CodeActionKind:()=>vu,CodeActionTriggerKind:()=>zr,CodeDescription:()=>Qc,CodeLens:()=>_u,Color:()=>vo,ColorInformation:()=>zc,ColorPresentation:()=>$c,Command:()=>bn,CompletionItem:()=>au,CompletionItemKind:()=>tu,CompletionItemLabelDetails:()=>su,CompletionItemTag:()=>ru,CompletionList:()=>cu,CreateFile:()=>Qn,DeleteFile:()=>Xn,Diagnostic:()=>Ur,DiagnosticRelatedInformation:()=>xo,DiagnosticSeverity:()=>Kc,DiagnosticTag:()=>Gc,DocumentHighlight:()=>fu,DocumentHighlightKind:()=>du,DocumentLink:()=>Su,DocumentSymbol:()=>bu,DocumentUri:()=>Wc,EOL:()=>uC,FoldingRange:()=>Vc,FoldingRangeKind:()=>Yc,FormattingOptions:()=>Cu,Hover:()=>uu,InlayHint:()=>Eu,InlayHintKind:()=>So,InlayHintLabelPart:()=>Do,InlineCompletionContext:()=>Iu,InlineCompletionItem:()=>ju,InlineCompletionList:()=>Mu,InlineCompletionTriggerKind:()=>Lu,InlineValueContext:()=>qu,InlineValueEvaluatableExpression:()=>Ou,InlineValueText:()=>ku,InlineValueVariableLookup:()=>Au,InsertReplaceEdit:()=>iu,InsertTextFormat:()=>nu,InsertTextMode:()=>ou,Location:()=>Ir,LocationLink:()=>Hc,MarkedString:()=>Hr,MarkupContent:()=>Zn,MarkupKind:()=>Co,OptionalVersionedTextDocumentIdentifier:()=>Br,ParameterInformation:()=>lu,Position:()=>Xe,Range:()=>pe,RenameFile:()=>Jn,SelectedCompletionInfo:()=>Fu,SelectionRange:()=>Du,SemanticTokenModifiers:()=>Tu,SemanticTokenTypes:()=>Ru,SemanticTokens:()=>wu,SignatureInformation:()=>pu,StringValue:()=>Nu,SymbolInformation:()=>hu,SymbolKind:()=>gu,SymbolTag:()=>mu,TextDocument:()=>Wu,TextDocumentEdit:()=>Wr,TextDocumentIdentifier:()=>Xc,TextDocumentItem:()=>eu,TextEdit:()=>bt,URI:()=>bo,VersionedTextDocumentIdentifier:()=>Zc,WorkspaceChange:()=>Jc,WorkspaceEdit:()=>Po,WorkspaceFolder:()=>Uu,WorkspaceSymbol:()=>yu,integer:()=>Bc,uinteger:()=>Fr});var Wc,bo,Bc,Fr,Xe,pe,Ir,Hc,vo,zc,$c,Yc,Vc,xo,Kc,Gc,Qc,Ur,bn,bt,yn,Oe,Ot,Wr,Qn,Jn,Xn,Po,Gn,_o,Jc,Xc,Zc,Br,eu,Co,Zn,tu,nu,ru,iu,ou,su,au,cu,Hr,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,zr,xu,Pu,_u,Cu,Su,Du,Ru,Tu,wu,ku,Au,Ou,qu,So,Do,Eu,Nu,ju,Mu,Lu,Fu,Iu,Uu,uC,Wu,Bu,f,To=Ul(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Wc||(Wc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(bo||(bo={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Bc||(Bc={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Fr||(Fr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Fr.MAX_VALUE),i===Number.MAX_VALUE&&(i=Fr.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Ir||(Ir={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(Hc||(Hc={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.numberRange(i.red,0,1)&&f.numberRange(i.green,0,1)&&f.numberRange(i.blue,0,1)&&f.numberRange(i.alpha,0,1)}e.is=n})(vo||(vo={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&vo.is(i.color)}e.is=n})(zc||(zc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||bt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,bt.is))}e.is=n})($c||($c={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Yc||(Yc={}));(function(e){function t(r,i,o,s,a,c){let u={startLine:r,endLine:i};return f.defined(o)&&(u.startCharacter=o),f.defined(s)&&(u.endCharacter=s),f.defined(a)&&(u.kind=a),f.defined(c)&&(u.collapsedText=c),u}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(Vc||(Vc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Ir.is(i.location)&&f.string(i.message)}e.is=n})(xo||(xo={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Kc||(Kc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Gc||(Gc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Qc||(Qc={}));(function(e){function t(r,i,o,s,a,c){let u={range:r,message:i};return f.defined(o)&&(u.severity=o),f.defined(s)&&(u.code=s),f.defined(a)&&(u.source=a),f.defined(c)&&(u.relatedInformation=c),u}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,xo.is))}e.is=n})(Ur||(Ur={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return f.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.title)&&f.string(i.command)}e.is=n})(bn||(bn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(bt||(bt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(yn||(yn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return bt.is(s)&&(yn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Ot||(Ot={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Br.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Wr||(Wr={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Qn||(Qn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Jn||(Jn={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Xn||(Xn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?Qn.is(i)||Jn.is(i)||Xn.is(i):Wr.is(i)))}e.is=t})(Po||(Po={}));Gn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=bt.insert(t,n):Oe.is(r)?(o=r,i=Ot.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=bt.replace(t,n):Oe.is(r)?(o=r,i=Ot.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=bt.del(t):Oe.is(n)?(i=n,r=Ot.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Ot.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},_o=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Oe.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Jc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new _o(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Wr.is(n)){let r=new Gn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Gn(t.changes[n]);this._textEditChanges[n]=r})):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(t){if(Br.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Gn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}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[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Gn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new _o,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(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;yn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Qn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Qn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;yn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Jn.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=Jn.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;yn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Xn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Xn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Xc||(Xc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})(Zc||(Zc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Br||(Br={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(eu||(eu={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Co||(Co={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&Co.is(r.kind)&&f.string(r.value)}e.is=t})(Zn||(Zn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(tu||(tu={}));(function(e){e.PlainText=1,e.Snippet=2})(nu||(nu={}));(function(e){e.Deprecated=1})(ru||(ru={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})(iu||(iu={}));(function(e){e.asIs=1,e.adjustIndentation=2})(ou||(ou={}));(function(e){function t(n){let r=n;return r&&(f.string(r.detail)||r.detail===void 0)&&(f.string(r.description)||r.description===void 0)}e.is=t})(su||(su={}));(function(e){function t(n){return{label:n}}e.create=t})(au||(au={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(cu||(cu={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return f.string(i)||f.objectLiteral(i)&&f.string(i.language)&&f.string(i.value)}e.is=n})(Hr||(Hr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Zn.is(r.contents)||Hr.is(r.contents)||f.typedArray(r.contents,Hr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(uu||(uu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(lu||(lu={}));(function(e){function t(n,r,...i){let o={label:n};return f.defined(r)&&(o.documentation=r),f.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(pu||(pu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(du||(du={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(fu||(fu={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(gu||(gu={}));(function(e){e.Deprecated=1})(mu||(mu={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(hu||(hu={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(yu||(yu={}));(function(e){function t(r,i,o,s,a,c){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(u.children=c),u}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(bu||(bu={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(vu||(vu={}));(function(e){e.Invoked=1,e.Automatic=2})(zr||(zr={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.typedArray(i.diagnostics,Ur.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===zr.Invoked||i.triggerKind===zr.Automatic)}e.is=n})(xu||(xu={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):bn.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&f.string(i.title)&&(i.diagnostics===void 0||f.typedArray(i.diagnostics,Ur.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||bn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||Po.is(i.edit))}e.is=n})(Pu||(Pu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||bn.is(i.command))}e.is=n})(_u||(_u={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(Cu||(Cu={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Su||(Su={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Du||(Du={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ru||(Ru={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Tu||(Tu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(wu||(wu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(ku||(ku={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(Au||(Au={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(Ou||(Ou={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(qu||(qu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(So||(So={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.location===void 0||Ir.is(i.location))&&(i.command===void 0||bn.is(i.command))}e.is=n})(Do||(Do={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,Do.is))&&(i.kind===void 0||So.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,bt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Eu||(Eu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Nu||(Nu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(ju||(ju={}));(function(e){function t(n){return{items:n}}e.create=t})(Mu||(Mu={}));(function(e){e.Invoked=0,e.Automatic=1})(Lu||(Lu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Fu||(Fu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Iu||(Iu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&bo.is(r.uri)&&f.string(r.name)}e.is=t})(Uu||(Uu={}));uC=[`
|
|
65
|
+
`)),_){let L=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${L}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else Sn("receive-response",p)}function Sn(p,_){if(!Y||g===J.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function hr(){if(M())throw new Vn(Mr.Closed,"Connection is closed.");if(q())throw new Vn(Mr.Disposed,"Connection is disposed.")}function Iy(){if(E())throw new Vn(Mr.AlreadyListening,"Connection is already listening")}function Uy(){if(!E())throw new Error("Call listen() first.")}function yr(p){return p===void 0?null:p}function Ll(p){if(p!==null)return p}function Fl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function qs(p,_){switch(p){case U.ParameterStructures.auto:return Fl(_)?Ll(_):[yr(_)];case U.ParameterStructures.byName:if(!Fl(_))throw new Error("Received parameters by name but param is not an object literal.");return Ll(_);case U.ParameterStructures.byPosition:return[yr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Il(p,_){let A,L=p.numberOfParams;switch(L){case 0:A=void 0;break;case 1:A=qs(p.parameterStructures,_[0]);break;default:A=[];for(let ie=0;ie<_.length&&ie<L;ie++)A.push(yr(_[ie]));if(_.length<L)for(let ie=_.length;ie<L;ie++)A.push(null);break}return A}let Dn={sendNotification:(p,..._)=>{hr();let A,L;if(ue.string(p)){A=p;let te=_[0],le=0,ge=U.ParameterStructures.auto;U.ParameterStructures.is(te)&&(le=1,ge=te);let G=_.length,ae=G-le;switch(ae){case 0:L=void 0;break;case 1:L=qs(ge,_[le]);break;default:if(ge===U.ParameterStructures.byName)throw new Error(`Received ${ae} parameters for 'by Name' notification parameter structure.`);L=_.slice(le,G).map(Z=>yr(Z));break}}else{let te=_;A=p.method,L=Il(p,te)}let ie={jsonrpc:c,method:A,params:L};return My(ie),t.write(ie).catch(te=>{throw i.error("Sending notification failed."),te})},onNotification:(p,_)=>{hr();let A;return ue.func(p)?h=p:_&&(ue.string(p)?(A=p,v.set(p,{type:void 0,handler:_})):(A=p.method,v.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?v.delete(A):h=void 0}}},onProgress:(p,_,A)=>{if(y.has(_))throw new Error(`Progress handler for token ${_} already registered`);return y.set(_,A),{dispose:()=>{y.delete(_)}}},sendProgress:(p,_,A)=>Dn.sendNotification(jr.type,{token:_,value:A}),onUnhandledProgress:Cn.event,sendRequest:(p,..._)=>{hr(),Uy();let A,L,ie;if(ue.string(p)){A=p;let G=_[0],ae=_[_.length-1],Z=0,Pe=U.ParameterStructures.auto;U.ParameterStructures.is(G)&&(Z=1,Pe=G);let Me=_.length;Sc.CancellationToken.is(ae)&&(Me=Me-1,ie=ae);let dt=Me-Z;switch(dt){case 0:L=void 0;break;case 1:L=qs(Pe,_[Z]);break;default:if(Pe===U.ParameterStructures.byName)throw new Error(`Received ${dt} parameters for 'by Name' request parameter structure.`);L=_.slice(Z,Me).map(Wy=>yr(Wy));break}}else{let G=_;A=p.method,L=Il(p,G);let ae=p.numberOfParams;ie=Sc.CancellationToken.is(G[ae])?G[ae]:void 0}let te=o++,le;ie&&(le=ie.onCancellationRequested(()=>{let G=b.sender.sendCancellation(Dn,te);return G===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${te}`),Promise.resolve()):G.catch(()=>{i.log(`Sending cancellation messages for id ${te} failed`)})}));let ge={jsonrpc:c,id:te,method:A,params:L};return jy(ge),typeof b.sender.enableCancellation=="function"&&b.sender.enableCancellation(ge),new Promise(async(G,ae)=>{let Z=dt=>{G(dt),b.sender.cleanup(te),le?.dispose()},Pe=dt=>{ae(dt),b.sender.cleanup(te),le?.dispose()},Me={method:A,timerStart:Date.now(),resolve:Z,reject:Pe};try{await t.write(ge),$.set(te,Me)}catch(dt){throw i.error("Sending request failed."),Me.reject(new U.ResponseError(U.ErrorCodes.MessageWriteError,dt.message?dt.message:"Unknown reason")),dt}})},onRequest:(p,_)=>{hr();let A=null;return Tc.is(p)?(A=void 0,u=p):ue.string(p)?(A=null,_!==void 0&&(A=p,d.set(p,{handler:_,type:void 0}))):_!==void 0&&(A=p.method,d.set(p.method,{type:p,handler:_})),{dispose:()=>{A!==null&&(A!==void 0?d.delete(A):u=void 0)}}},hasPendingResponse:()=>$.size>0,trace:async(p,_,A)=>{let L=!1,ie=Ke.Text;A!==void 0&&(ue.boolean(A)?L=A:(L=A.sendNotification||!1,ie=A.traceFormat||Ke.Text)),g=p,w=ie,g===J.Off?Y=void 0:Y=_,L&&!M()&&!q()&&await Dn.sendNotification(wc.type,{value:J.toString(p)})},onError:it.event,onClose:Nt.event,onUnhandledNotification:rn.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(q())return;X=ct.Disposed,k.fire(void 0);let p=new U.ResponseError(U.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of $.values())_.reject(p);$=new Map,m=new Map,V=new Set,F=new uf.LinkedMap,ue.func(t.dispose)&&t.dispose(),ue.func(e.dispose)&&e.dispose()},listen:()=>{hr(),Iy(),X=ct.Listening,e.listen(Ay)},inspect:()=>{(0,cf.default)().console.log("inspect")}};return Dn.onNotification(uo.type,p=>{if(g===J.Off||!Y)return;let _=g===J.Verbose||g===J.Compact;Y.log(p.message,_?p.verbose:void 0)}),Dn.onNotification(jr.type,p=>{let _=y.get(p.token);_?_(p.value):Cn.fire(p)}),Dn}H.createMessageConnection=rC});var ho=S(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.ProgressType=x.ProgressToken=x.createMessageConnection=x.NullLogger=x.ConnectionOptions=x.ConnectionStrategy=x.AbstractMessageBuffer=x.WriteableStreamMessageWriter=x.AbstractMessageWriter=x.MessageWriter=x.ReadableStreamMessageReader=x.AbstractMessageReader=x.MessageReader=x.SharedArrayReceiverStrategy=x.SharedArraySenderStrategy=x.CancellationToken=x.CancellationTokenSource=x.Emitter=x.Event=x.Disposable=x.LRUCache=x.Touch=x.LinkedMap=x.ParameterStructures=x.NotificationType9=x.NotificationType8=x.NotificationType7=x.NotificationType6=x.NotificationType5=x.NotificationType4=x.NotificationType3=x.NotificationType2=x.NotificationType1=x.NotificationType0=x.NotificationType=x.ErrorCodes=x.ResponseError=x.RequestType9=x.RequestType8=x.RequestType7=x.RequestType6=x.RequestType5=x.RequestType4=x.RequestType3=x.RequestType2=x.RequestType1=x.RequestType0=x.RequestType=x.Message=x.RAL=void 0;x.MessageStrategy=x.CancellationStrategy=x.CancellationSenderStrategy=x.CancellationReceiverStrategy=x.ConnectionError=x.ConnectionErrors=x.LogTraceNotification=x.SetTraceNotification=x.TraceFormat=x.TraceValues=x.Trace=void 0;var re=nc();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return re.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return re.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return re.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return re.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return re.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return re.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return re.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return re.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return re.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return re.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return re.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return re.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return re.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return re.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return re.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return re.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return re.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return re.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return re.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return re.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return re.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return re.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return re.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return re.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return re.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return re.ParameterStructures}});var Oc=ic();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return Oc.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return Oc.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return Oc.Touch}});var iC=Qd();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return iC.Disposable}});var ff=Hn();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return ff.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return ff.Emitter}});var gf=io();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return gf.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return gf.CancellationToken}});var mf=Xd();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return mf.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return mf.SharedArrayReceiverStrategy}});var qc=ef();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return qc.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return qc.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return qc.ReadableStreamMessageReader}});var Ec=sf();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return Ec.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return Ec.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Ec.WriteableStreamMessageWriter}});var oC=af();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return oC.AbstractMessageBuffer}});var Ae=df();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return Ae.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return Ae.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return Ae.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return Ae.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return Ae.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return Ae.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return Ae.Trace}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return Ae.TraceValues}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return Ae.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return Ae.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return Ae.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return Ae.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return Ae.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ae.CancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ae.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return Ae.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return Ae.MessageStrategy}});var sC=Ht();x.RAL=sC.default});var yf=S(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var yt=ho(),yo=class e extends yt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(t,n){return new TextEncoder().encode(t)}toString(t,n){return n==="ascii"?this.asciiDecoder.decode(t):new TextDecoder(n).decode(t)}asNative(t,n){return n===void 0?t:t.slice(0,n)}allocNative(t){return new Uint8Array(t)}};yo.emptyBuffer=new Uint8Array(0);var Nc=class{constructor(t){this.socket=t,this._onData=new yt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,yt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),yt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),yt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),yt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},jc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),yt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),yt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),yt.Disposable.create(()=>this.socket.removeEventListener("end",t))}write(t,n){if(typeof t=="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(t)}else this.socket.send(t);return Promise.resolve()}end(){this.socket.close()}},aC=new TextEncoder,hf=Object.freeze({messageBuffer:Object.freeze({create:e=>new yo(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(aC.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new Nc(e),asWritableStream:e=>new jc(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function Mc(){return hf}(function(e){function t(){yt.RAL.install(hf)}e.install=t})(Mc||(Mc={}));Lc.default=Mc});var hn=S(Ge=>{"use strict";var cC=Ge&&Ge.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),uC=Ge&&Ge.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cC(t,e,n)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.createMessageConnection=Ge.BrowserMessageWriter=Ge.BrowserMessageReader=void 0;var lC=yf();lC.default.install();var Kn=ho();uC(ho(),Ge);var Fc=class extends Kn.AbstractMessageReader{constructor(t){super(),this._onData=new Kn.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},t.addEventListener("error",n=>this.fireError(n)),t.onmessage=this._messageListener}listen(t){return this._onData.event(t)}};Ge.BrowserMessageReader=Fc;var Ic=class extends Kn.AbstractMessageWriter{constructor(t){super(),this.port=t,this.errorCount=0,t.addEventListener("error",n=>this.fireError(n))}write(t){try{return this.port.postMessage(t),Promise.resolve()}catch(n){return this.handleError(n,t),Promise.reject(n)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){}};Ge.BrowserMessageWriter=Ic;function pC(e,t,n,r){return n===void 0&&(n=Kn.NullLogger),Kn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Kn.createMessageConnection)(e,t,n,r)}Ge.createMessageConnection=pC});var Uc=S((TT,bf)=>{"use strict";bf.exports=hn()});var Ro={};Es(Ro,{AnnotatedTextEdit:()=>Ot,ChangeAnnotation:()=>yn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>Pu,CodeActionContext:()=>xu,CodeActionKind:()=>vu,CodeActionTriggerKind:()=>zr,CodeDescription:()=>Qc,CodeLens:()=>_u,Color:()=>vo,ColorInformation:()=>zc,ColorPresentation:()=>$c,Command:()=>bn,CompletionItem:()=>au,CompletionItemKind:()=>tu,CompletionItemLabelDetails:()=>su,CompletionItemTag:()=>ru,CompletionList:()=>cu,CreateFile:()=>Qn,DeleteFile:()=>Xn,Diagnostic:()=>Ur,DiagnosticRelatedInformation:()=>xo,DiagnosticSeverity:()=>Kc,DiagnosticTag:()=>Gc,DocumentHighlight:()=>fu,DocumentHighlightKind:()=>du,DocumentLink:()=>Su,DocumentSymbol:()=>bu,DocumentUri:()=>Wc,EOL:()=>dC,FoldingRange:()=>Vc,FoldingRangeKind:()=>Yc,FormattingOptions:()=>Cu,Hover:()=>uu,InlayHint:()=>Eu,InlayHintKind:()=>So,InlayHintLabelPart:()=>Do,InlineCompletionContext:()=>Iu,InlineCompletionItem:()=>ju,InlineCompletionList:()=>Mu,InlineCompletionTriggerKind:()=>Lu,InlineValueContext:()=>qu,InlineValueEvaluatableExpression:()=>Ou,InlineValueText:()=>ku,InlineValueVariableLookup:()=>Au,InsertReplaceEdit:()=>iu,InsertTextFormat:()=>nu,InsertTextMode:()=>ou,Location:()=>Ir,LocationLink:()=>Hc,MarkedString:()=>Hr,MarkupContent:()=>Zn,MarkupKind:()=>Co,OptionalVersionedTextDocumentIdentifier:()=>Br,ParameterInformation:()=>lu,Position:()=>Xe,Range:()=>pe,RenameFile:()=>Jn,SelectedCompletionInfo:()=>Fu,SelectionRange:()=>Du,SemanticTokenModifiers:()=>Tu,SemanticTokenTypes:()=>Ru,SemanticTokens:()=>wu,SignatureInformation:()=>pu,StringValue:()=>Nu,SymbolInformation:()=>hu,SymbolKind:()=>gu,SymbolTag:()=>mu,TextDocument:()=>Wu,TextDocumentEdit:()=>Wr,TextDocumentIdentifier:()=>Xc,TextDocumentItem:()=>eu,TextEdit:()=>bt,URI:()=>bo,VersionedTextDocumentIdentifier:()=>Zc,WorkspaceChange:()=>Jc,WorkspaceEdit:()=>Po,WorkspaceFolder:()=>Uu,WorkspaceSymbol:()=>yu,integer:()=>Bc,uinteger:()=>Fr});var Wc,bo,Bc,Fr,Xe,pe,Ir,Hc,vo,zc,$c,Yc,Vc,xo,Kc,Gc,Qc,Ur,bn,bt,yn,Oe,Ot,Wr,Qn,Jn,Xn,Po,Gn,_o,Jc,Xc,Zc,Br,eu,Co,Zn,tu,nu,ru,iu,ou,su,au,cu,Hr,uu,lu,pu,du,fu,gu,mu,hu,yu,bu,vu,zr,xu,Pu,_u,Cu,Su,Du,Ru,Tu,wu,ku,Au,Ou,qu,So,Do,Eu,Nu,ju,Mu,Lu,Fu,Iu,Uu,dC,Wu,Bu,f,To=Ul(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Wc||(Wc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(bo||(bo={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Bc||(Bc={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Fr||(Fr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Fr.MAX_VALUE),i===Number.MAX_VALUE&&(i=Fr.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.line)&&f.uinteger(i.character)}e.is=n})(Xe||(Xe={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:Xe.create(r,i),end:Xe.create(o,s)};if(Xe.is(r)&&Xe.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.start)&&Xe.is(i.end)}e.is=n})(pe||(pe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(Ir||(Ir={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.targetRange)&&f.string(i.targetUri)&&pe.is(i.targetSelectionRange)&&(pe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(Hc||(Hc={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.numberRange(i.red,0,1)&&f.numberRange(i.green,0,1)&&f.numberRange(i.blue,0,1)&&f.numberRange(i.alpha,0,1)}e.is=n})(vo||(vo={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&vo.is(i.color)}e.is=n})(zc||(zc={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.undefined(i.textEdit)||bt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,bt.is))}e.is=n})($c||($c={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Yc||(Yc={}));(function(e){function t(r,i,o,s,a,c){let u={startLine:r,endLine:i};return f.defined(o)&&(u.startCharacter=o),f.defined(s)&&(u.endCharacter=s),f.defined(a)&&(u.kind=a),f.defined(c)&&(u.collapsedText=c),u}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.uinteger(i.startLine)&&f.uinteger(i.startLine)&&(f.undefined(i.startCharacter)||f.uinteger(i.startCharacter))&&(f.undefined(i.endCharacter)||f.uinteger(i.endCharacter))&&(f.undefined(i.kind)||f.string(i.kind))}e.is=n})(Vc||(Vc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Ir.is(i.location)&&f.string(i.message)}e.is=n})(xo||(xo={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Kc||(Kc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Gc||(Gc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Qc||(Qc={}));(function(e){function t(r,i,o,s,a,c){let u={range:r,message:i};return f.defined(o)&&(u.severity=o),f.defined(s)&&(u.code=s),f.defined(a)&&(u.source=a),f.defined(c)&&(u.relatedInformation=c),u}e.create=t;function n(r){var i;let o=r;return f.defined(o)&&pe.is(o.range)&&f.string(o.message)&&(f.number(o.severity)||f.undefined(o.severity))&&(f.integer(o.code)||f.string(o.code)||f.undefined(o.code))&&(f.undefined(o.codeDescription)||f.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(f.string(o.source)||f.undefined(o.source))&&(f.undefined(o.relatedInformation)||f.typedArray(o.relatedInformation,xo.is))}e.is=n})(Ur||(Ur={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return f.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.title)&&f.string(i.command)}e.is=n})(bn||(bn={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return f.objectLiteral(s)&&f.string(s.newText)&&pe.is(s.range)}e.is=i})(bt||(bt={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&f.string(i.label)&&(f.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(f.string(i.description)||i.description===void 0)}e.is=n})(yn||(yn={}));(function(e){function t(n){let r=n;return f.string(r)}e.is=t})(Oe||(Oe={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return bt.is(s)&&(yn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Ot||(Ot={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Br.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Wr||(Wr={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&f.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Qn||(Qn={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&f.string(i.oldUri)&&f.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||f.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||f.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Jn||(Jn={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&f.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||f.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||f.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Oe.is(i.annotationId))}e.is=n})(Xn||(Xn={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>f.string(i.kind)?Qn.is(i)||Jn.is(i)||Xn.is(i):Wr.is(i)))}e.is=t})(Po||(Po={}));Gn=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=bt.insert(t,n):Oe.is(r)?(o=r,i=Ot.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.insert(t,n,o)),this.edits.push(i),o!==void 0)return o}replace(t,n,r){let i,o;if(r===void 0?i=bt.replace(t,n):Oe.is(r)?(o=r,i=Ot.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Ot.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=bt.del(t):Oe.is(n)?(i=n,r=Ot.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Ot.del(t,i)),this.edits.push(r),i!==void 0)return i}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},_o=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,n){let r;if(Oe.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(n===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=n,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Jc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new _o(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Wr.is(n)){let r=new Gn(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new Gn(t.changes[n]);this._textEditChanges[n]=r})):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(t){if(Br.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){let i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Gn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}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[t];if(!n){let r=[];this._workspaceEdit.changes[t]=r,n=new Gn(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new _o,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(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;yn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Qn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Qn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;yn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Jn.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=Jn.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;yn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Xn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Xn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)}e.is=n})(Xc||(Xc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.integer(i.version)}e.is=n})(Zc||(Zc={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&(i.version===null||f.integer(i.version))}e.is=n})(Br||(Br={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.string(i.uri)&&f.string(i.languageId)&&f.integer(i.version)&&f.string(i.text)}e.is=n})(eu||(eu={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Co||(Co={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&Co.is(r.kind)&&f.string(r.value)}e.is=t})(Zn||(Zn={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(tu||(tu={}));(function(e){e.PlainText=1,e.Snippet=2})(nu||(nu={}));(function(e){e.Deprecated=1})(ru||(ru={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&f.string(i.newText)&&pe.is(i.insert)&&pe.is(i.replace)}e.is=n})(iu||(iu={}));(function(e){e.asIs=1,e.adjustIndentation=2})(ou||(ou={}));(function(e){function t(n){let r=n;return r&&(f.string(r.detail)||r.detail===void 0)&&(f.string(r.description)||r.description===void 0)}e.is=t})(su||(su={}));(function(e){function t(n){return{label:n}}e.create=t})(au||(au={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(cu||(cu={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return f.string(i)||f.objectLiteral(i)&&f.string(i.language)&&f.string(i.value)}e.is=n})(Hr||(Hr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Zn.is(r.contents)||Hr.is(r.contents)||f.typedArray(r.contents,Hr.is))&&(n.range===void 0||pe.is(n.range))}e.is=t})(uu||(uu={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(lu||(lu={}));(function(e){function t(n,r,...i){let o={label:n};return f.defined(r)&&(o.documentation=r),f.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(pu||(pu={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(du||(du={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(fu||(fu={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(gu||(gu={}));(function(e){e.Deprecated=1})(mu||(mu={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(hu||(hu={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(yu||(yu={}));(function(e){function t(r,i,o,s,a,c){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(u.children=c),u}e.create=t;function n(r){let i=r;return i&&f.string(i.name)&&f.number(i.kind)&&pe.is(i.range)&&pe.is(i.selectionRange)&&(i.detail===void 0||f.string(i.detail))&&(i.deprecated===void 0||f.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(bu||(bu={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(vu||(vu={}));(function(e){e.Invoked=1,e.Automatic=2})(zr||(zr={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return f.defined(i)&&f.typedArray(i.diagnostics,Ur.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===zr.Invoked||i.triggerKind===zr.Automatic)}e.is=n})(xu||(xu={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):bn.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&f.string(i.title)&&(i.diagnostics===void 0||f.typedArray(i.diagnostics,Ur.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||bn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||Po.is(i.edit))}e.is=n})(Pu||(Pu={}));(function(e){function t(r,i){let o={range:r};return f.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.command)||bn.is(i.command))}e.is=n})(_u||(_u={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&f.uinteger(i.tabSize)&&f.boolean(i.insertSpaces)}e.is=n})(Cu||(Cu={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(Su||(Su={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&pe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Du||(Du={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ru||(Ru={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Tu||(Tu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(wu||(wu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.string(i.text)}e.is=n})(ku||(ku={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(Au||(Au={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&pe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(Ou||(Ou={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&pe.is(r.stoppedLocation)}e.is=n})(qu||(qu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(So||(So={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.location===void 0||Ir.is(i.location))&&(i.command===void 0||bn.is(i.command))}e.is=n})(Do||(Do={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&Xe.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,Do.is))&&(i.kind===void 0||So.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,bt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Zn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(Eu||(Eu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Nu||(Nu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(ju||(ju={}));(function(e){function t(n){return{items:n}}e.create=t})(Mu||(Mu={}));(function(e){e.Invoked=0,e.Automatic=1})(Lu||(Lu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Fu||(Fu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Iu||(Iu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&bo.is(r.uri)&&f.string(r.name)}e.is=t})(Uu||(Uu={}));dC=[`
|
|
66
66
|
`,`\r
|
|
67
67
|
`,"\r"];(function(e){function t(o,s,a,c){return new Bu(o,s,a,c)}e.create=t;function n(o){let s=o;return!!(f.defined(s)&&f.string(s.uri)&&(f.undefined(s.languageId)||f.string(s.languageId))&&f.uinteger(s.lineCount)&&f.func(s.getText)&&f.func(s.positionAt)&&f.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),c=i(s,(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),u=a.length;for(let d=c.length-1;d>=0;d--){let h=c[d],v=o.offsetAt(h.range.start),y=o.offsetAt(h.range.end);if(y<=u)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");u=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),u=o.slice(a);i(c,s),i(u,s);let d=0,h=0,v=0;for(;d<c.length&&h<u.length;)s(c[d],u[h])<=0?o[v++]=c[d++]:o[v++]=u[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<u.length;)o[v++]=u[h++];return o}})(Wu||(Wu={}));Bu=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
|
|
68
68
|
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
69
|
-
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,F){return t.call(y)==="[object Number]"&&R<=y&&y<=F}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var er=hn(),vf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(vf||(He.MessageDirection=vf={}));var Hu=class{constructor(t){this.method=t}};He.RegistrationType=Hu;var zu=class extends er.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=zu;var $u=class extends er.RequestType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolRequestType=$u;var Yu=class extends er.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Yu;var Vu=class extends er.NotificationType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolNotificationType=Vu});var wo=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function lC(e){return e===!0||e===!1}ve.boolean=lC;function xf(e){return typeof e=="string"||e instanceof String}ve.string=xf;function pC(e){return typeof e=="number"||e instanceof Number}ve.number=pC;function dC(e){return e instanceof Error}ve.error=dC;function fC(e){return typeof e=="function"}ve.func=fC;function Pf(e){return Array.isArray(e)}ve.array=Pf;function gC(e){return Pf(e)&&e.every(t=>xf(t))}ve.stringArray=gC;function mC(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=mC;function hC(e){return e!==null&&typeof e=="object"}ve.objectLiteral=hC});var Sf=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ImplementationRequest=void 0;var _f=se(),Cf;(function(e){e.method="textDocument/implementation",e.messageDirection=_f.MessageDirection.clientToServer,e.type=new _f.ProtocolRequestType(e.method)})(Cf||(ko.ImplementationRequest=Cf={}))});var Tf=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TypeDefinitionRequest=void 0;var Df=se(),Rf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Rf||(Ao.TypeDefinitionRequest=Rf={}))});var Af=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DidChangeWorkspaceFoldersNotification=tr.WorkspaceFoldersRequest=void 0;var Oo=se(),wf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=Oo.MessageDirection.serverToClient,e.type=new Oo.ProtocolRequestType0(e.method)})(wf||(tr.WorkspaceFoldersRequest=wf={}));var kf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=Oo.MessageDirection.clientToServer,e.type=new Oo.ProtocolNotificationType(e.method)})(kf||(tr.DidChangeWorkspaceFoldersNotification=kf={}))});var Ef=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationRequest=void 0;var Of=se(),qf;(function(e){e.method="workspace/configuration",e.messageDirection=Of.MessageDirection.serverToClient,e.type=new Of.ProtocolRequestType(e.method)})(qf||(qo.ConfigurationRequest=qf={}))});var Mf=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ColorPresentationRequest=nr.DocumentColorRequest=void 0;var Eo=se(),Nf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(Nf||(nr.DocumentColorRequest=Nf={}));var jf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(jf||(nr.ColorPresentationRequest=jf={}))});var If=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.FoldingRangeRefreshRequest=rr.FoldingRangeRequest=void 0;var No=se(),Lf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(Lf||(rr.FoldingRangeRequest=Lf={}));var Ff;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(Ff||(rr.FoldingRangeRefreshRequest=Ff={}))});var Bf=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeclarationRequest=void 0;var Uf=se(),Wf;(function(e){e.method="textDocument/declaration",e.messageDirection=Uf.MessageDirection.clientToServer,e.type=new Uf.ProtocolRequestType(e.method)})(Wf||(jo.DeclarationRequest=Wf={}))});var $f=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.SelectionRangeRequest=void 0;var Hf=se(),zf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Hf.MessageDirection.clientToServer,e.type=new Hf.ProtocolRequestType(e.method)})(zf||(Mo.SelectionRangeRequest=zf={}))});var Gf=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.WorkDoneProgressCancelNotification=Yt.WorkDoneProgressCreateRequest=Yt.WorkDoneProgress=void 0;var yC=hn(),Lo=se(),Yf;(function(e){e.type=new yC.ProgressType;function t(n){return n===e.type}e.is=t})(Yf||(Yt.WorkDoneProgress=Yf={}));var Vf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Lo.MessageDirection.serverToClient,e.type=new Lo.ProtocolRequestType(e.method)})(Vf||(Yt.WorkDoneProgressCreateRequest=Vf={}));var Kf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolNotificationType(e.method)})(Kf||(Yt.WorkDoneProgressCancelNotification=Kf={}))});var Zf=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var ir=se(),Qf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Qf||(Vt.CallHierarchyPrepareRequest=Qf={}));var Jf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Jf||(Vt.CallHierarchyIncomingCallsRequest=Jf={}));var Xf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Xf||(Vt.CallHierarchyOutgoingCallsRequest=Xf={}))});var og=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var qt=se(),eg;(function(e){e.Relative="relative"})(eg||(ze.TokenFormat=eg={}));var $r;(function(e){e.method="textDocument/semanticTokens",e.type=new qt.RegistrationType(e.method)})($r||(ze.SemanticTokensRegistrationType=$r={}));var tg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(tg||(ze.SemanticTokensRequest=tg={}));var ng;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(ng||(ze.SemanticTokensDeltaRequest=ng={}));var rg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(rg||(ze.SemanticTokensRangeRequest=rg={}));var ig;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=qt.MessageDirection.serverToClient,e.type=new qt.ProtocolRequestType0(e.method)})(ig||(ze.SemanticTokensRefreshRequest=ig={}))});var cg=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ShowDocumentRequest=void 0;var sg=se(),ag;(function(e){e.method="window/showDocument",e.messageDirection=sg.MessageDirection.serverToClient,e.type=new sg.ProtocolRequestType(e.method)})(ag||(Fo.ShowDocumentRequest=ag={}))});var pg=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LinkedEditingRangeRequest=void 0;var ug=se(),lg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=ug.MessageDirection.clientToServer,e.type=new ug.ProtocolRequestType(e.method)})(lg||(Io.LinkedEditingRangeRequest=lg={}))});var vg=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.WillDeleteFilesRequest=Ne.DidDeleteFilesNotification=Ne.DidRenameFilesNotification=Ne.WillRenameFilesRequest=Ne.DidCreateFilesNotification=Ne.WillCreateFilesRequest=Ne.FileOperationPatternKind=void 0;var Ze=se(),dg;(function(e){e.file="file",e.folder="folder"})(dg||(Ne.FileOperationPatternKind=dg={}));var fg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(fg||(Ne.WillCreateFilesRequest=fg={}));var gg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(gg||(Ne.DidCreateFilesNotification=gg={}));var mg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(mg||(Ne.WillRenameFilesRequest=mg={}));var hg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(hg||(Ne.DidRenameFilesNotification=hg={}));var yg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(yg||(Ne.DidDeleteFilesNotification=yg={}));var bg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(bg||(Ne.WillDeleteFilesRequest=bg={}))});var Sg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.MonikerRequest=Kt.MonikerKind=Kt.UniquenessLevel=void 0;var xg=se(),Pg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Pg||(Kt.UniquenessLevel=Pg={}));var _g;(function(e){e.$import="import",e.$export="export",e.local="local"})(_g||(Kt.MonikerKind=_g={}));var Cg;(function(e){e.method="textDocument/moniker",e.messageDirection=xg.MessageDirection.clientToServer,e.type=new xg.ProtocolRequestType(e.method)})(Cg||(Kt.MonikerRequest=Cg={}))});var wg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var or=se(),Dg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Dg||(Gt.TypeHierarchyPrepareRequest=Dg={}));var Rg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Rg||(Gt.TypeHierarchySupertypesRequest=Rg={}));var Tg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Tg||(Gt.TypeHierarchySubtypesRequest=Tg={}))});var Og=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.InlineValueRefreshRequest=sr.InlineValueRequest=void 0;var Uo=se(),kg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Uo.MessageDirection.clientToServer,e.type=new Uo.ProtocolRequestType(e.method)})(kg||(sr.InlineValueRequest=kg={}));var Ag;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Uo.MessageDirection.serverToClient,e.type=new Uo.ProtocolRequestType0(e.method)})(Ag||(sr.InlineValueRefreshRequest=Ag={}))});var jg=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.InlayHintRefreshRequest=Qt.InlayHintResolveRequest=Qt.InlayHintRequest=void 0;var ar=se(),qg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(qg||(Qt.InlayHintRequest=qg={}));var Eg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Eg||(Qt.InlayHintResolveRequest=Eg={}));var Ng;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(Ng||(Qt.InlayHintRefreshRequest=Ng={}))});var Bg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Wg=hn(),bC=wo(),cr=se(),Mg;(function(e){function t(n){let r=n;return r&&bC.boolean(r.retriggerRequest)}e.is=t})(Mg||(et.DiagnosticServerCancellationData=Mg={}));var Lg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Lg||(et.DocumentDiagnosticReportKind=Lg={}));var Fg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Fg||(et.DocumentDiagnosticRequest=Fg={}));var Ig;(function(e){e.method="workspace/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Ig||(et.WorkspaceDiagnosticRequest=Ig={}));var Ug;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})(Ug||(et.DiagnosticRefreshRequest=Ug={}))});var Gg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Yr=(To(),ai(Ro)),ut=wo(),vt=se(),Ku;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Ku||(de.NotebookCellKind=Ku={}));var Gu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ut.objectLiteral(o)&&Yr.uinteger.is(o.executionOrder)&&(o.success===void 0||ut.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Gu||(de.ExecutionSummary=Gu={}));var Wo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ut.objectLiteral(s)&&Ku.is(s.kind)&&Yr.DocumentUri.is(s.document)&&(s.metadata===void 0||ut.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Gu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(ut.objectLiteral(o)&&ut.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})(Wo||(de.NotebookCell=Wo={}));var Hg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ut.objectLiteral(i)&&ut.string(i.uri)&&Yr.integer.is(i.version)&&ut.typedArray(i.cells,Wo.is)}e.is=n})(Hg||(de.NotebookDocument=Hg={}));var ur;(function(e){e.method="notebookDocument/sync",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.RegistrationType(e.method)})(ur||(de.NotebookDocumentSyncRegistrationType=ur={}));var zg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(zg||(de.DidOpenNotebookDocumentNotification=zg={}));var $g;(function(e){function t(r){let i=r;return ut.objectLiteral(i)&&Yr.uinteger.is(i.start)&&Yr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ut.typedArray(i.cells,Wo.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})($g||(de.NotebookCellArrayChange=$g={}));var Yg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Yg||(de.DidChangeNotebookDocumentNotification=Yg={}));var Vg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Vg||(de.DidSaveNotebookDocumentNotification=Vg={}));var Kg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Kg||(de.DidCloseNotebookDocumentNotification=Kg={}))});var Xg=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.InlineCompletionRequest=void 0;var Qg=se(),Jg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Qg.MessageDirection.clientToServer,e.type=new Qg.ProtocolRequestType(e.method)})(Jg||(Bo.InlineCompletionRequest=Jg={}))});var ph=S(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var T=se(),Zg=(To(),ai(Ro)),Te=wo(),vC=Sf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return vC.ImplementationRequest}});var xC=Tf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return xC.TypeDefinitionRequest}});var ah=Af();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ah.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ah.DidChangeWorkspaceFoldersNotification}});var PC=Ef();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return PC.ConfigurationRequest}});var ch=Mf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return ch.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return ch.ColorPresentationRequest}});var uh=If();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRefreshRequest}});var _C=Bf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return _C.DeclarationRequest}});var CC=$f();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return CC.SelectionRangeRequest}});var el=Gf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return el.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return el.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return el.WorkDoneProgressCancelNotification}});var tl=Zf();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return tl.CallHierarchyPrepareRequest}});var lr=og();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return lr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return lr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return lr.SemanticTokensRegistrationType}});var SC=cg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return SC.ShowDocumentRequest}});var DC=pg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return DC.LinkedEditingRangeRequest}});var vn=vg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return vn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return vn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return vn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return vn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return vn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return vn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return vn.WillDeleteFilesRequest}});var nl=Sg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return nl.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return nl.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return nl.MonikerRequest}});var rl=wg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return rl.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySupertypesRequest}});var lh=Og();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return lh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return lh.InlineValueRefreshRequest}});var il=jg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return il.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return il.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return il.InlayHintRefreshRequest}});var Vr=Bg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Vr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Vr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Vr.DiagnosticRefreshRequest}});var xt=Gg();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return xt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return xt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return xt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return xt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return xt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return xt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidCloseNotebookDocumentNotification}});var RC=Xg();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return RC.InlineCompletionRequest}});var Qu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Qu||(l.TextDocumentFilter=Qu={}));var Ju;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Ju||(l.NotebookDocumentFilter=Ju={}));var Xu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Ju.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Xu||(l.NotebookCellTextDocumentFilter=Xu={}));var Zu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Qu.is(r)&&!Xu.is(r))return!1;return!0}e.is=t})(Zu||(l.DocumentSelector=Zu={}));var em;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(em||(l.RegistrationRequest=em={}));var tm;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(tm||(l.UnregistrationRequest=tm={}));var nm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(nm||(l.ResourceOperationKind=nm={}));var rm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(rm||(l.FailureHandlingKind=rm={}));var im;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(im||(l.PositionEncodingKind=im={}));var om;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(om||(l.StaticRegistrationOptions=om={}));var sm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Zu.is(r.documentSelector))}e.is=t})(sm||(l.TextDocumentRegistrationOptions=sm={}));var am;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(am||(l.WorkDoneProgressOptions=am={}));var cm;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(cm||(l.InitializeRequest=cm={}));var um;(function(e){e.unknownProtocolVersion=1})(um||(l.InitializeErrorCodes=um={}));var lm;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(lm||(l.InitializedNotification=lm={}));var pm;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(pm||(l.ShutdownRequest=pm={}));var dm;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(dm||(l.ExitNotification=dm={}));var fm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(fm||(l.DidChangeConfigurationNotification=fm={}));var gm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(gm||(l.MessageType=gm={}));var mm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(mm||(l.ShowMessageNotification=mm={}));var hm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(hm||(l.ShowMessageRequest=hm={}));var ym;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(ym||(l.LogMessageNotification=ym={}));var bm;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(bm||(l.TelemetryEventNotification=bm={}));var vm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(vm||(l.TextDocumentSyncKind=vm={}));var xm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(xm||(l.DidOpenTextDocumentNotification=xm={}));var Pm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(Pm||(l.TextDocumentContentChangeEvent=Pm={}));var _m;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(_m||(l.DidChangeTextDocumentNotification=_m={}));var Cm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Cm||(l.DidCloseTextDocumentNotification=Cm={}));var Sm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Sm||(l.DidSaveTextDocumentNotification=Sm={}));var Dm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Dm||(l.TextDocumentSaveReason=Dm={}));var Rm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Rm||(l.WillSaveTextDocumentNotification=Rm={}));var Tm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(l.WillSaveTextDocumentWaitUntilRequest=Tm={}));var wm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(wm||(l.DidChangeWatchedFilesNotification=wm={}));var km;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(km||(l.FileChangeType=km={}));var Am;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Zg.URI.is(r.baseUri)||Zg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(Am||(l.RelativePattern=Am={}));var Om;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Om||(l.WatchKind=Om={}));var qm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(qm||(l.PublishDiagnosticsNotification=qm={}));var Em;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Em||(l.CompletionTriggerKind=Em={}));var Nm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(l.CompletionRequest=Nm={}));var jm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(jm||(l.CompletionResolveRequest=jm={}));var Mm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(l.HoverRequest=Mm={}));var Lm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Lm||(l.SignatureHelpTriggerKind=Lm={}));var Fm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(l.SignatureHelpRequest=Fm={}));var Im;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(l.DefinitionRequest=Im={}));var Um;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(l.ReferencesRequest=Um={}));var Wm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(l.DocumentHighlightRequest=Wm={}));var Bm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(l.DocumentSymbolRequest=Bm={}));var Hm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(l.CodeActionRequest=Hm={}));var zm;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(l.CodeActionResolveRequest=zm={}));var $m;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(l.WorkspaceSymbolRequest=$m={}));var Ym;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Ym||(l.WorkspaceSymbolResolveRequest=Ym={}));var Vm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Vm||(l.CodeLensRequest=Vm={}));var Km;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Km||(l.CodeLensResolveRequest=Km={}));var Gm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(Gm||(l.CodeLensRefreshRequest=Gm={}));var Qm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Qm||(l.DocumentLinkRequest=Qm={}));var Jm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Jm||(l.DocumentLinkResolveRequest=Jm={}));var Xm;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Xm||(l.DocumentFormattingRequest=Xm={}));var Zm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Zm||(l.DocumentRangeFormattingRequest=Zm={}));var eh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(eh||(l.DocumentRangesFormattingRequest=eh={}));var th;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(th||(l.DocumentOnTypeFormattingRequest=th={}));var nh;(function(e){e.Identifier=1})(nh||(l.PrepareSupportDefaultBehavior=nh={}));var rh;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(rh||(l.RenameRequest=rh={}));var ih;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ih||(l.PrepareRenameRequest=ih={}));var oh;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(oh||(l.ExecuteCommandRequest=oh={}));var sh;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(sh||(l.ApplyWorkspaceEditRequest=sh={}))});var fh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.createProtocolConnection=void 0;var dh=hn();function TC(e,t,n,r){return dh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,dh.createMessageConnection)(e,t,n,r)}Ho.createProtocolConnection=TC});var mh=S($e=>{"use strict";var wC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),zo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&wC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;zo(hn(),$e);zo((To(),ai(Ro)),$e);zo(se(),$e);zo(ph(),$e);var kC=fh();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return kC.createProtocolConnection}});var gh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(gh||($e.LSPErrorCodes=gh={}))});var ye=S(Pt=>{"use strict";var AC=Pt&&Pt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),hh=Pt&&Pt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&AC(t,e,n)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createProtocolConnection=void 0;var OC=Uc();hh(Uc(),Pt);hh(mh(),Pt);function qC(e,t,n,r){return(0,OC.createMessageConnection)(e,t,n,r)}Pt.createProtocolConnection=qC});var sl=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.SemanticTokensBuilder=Jt.SemanticTokensDiff=Jt.SemanticTokensFeature=void 0;var $o=ye(),EC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest($o.SemanticTokensRefreshRequest.type),on:t=>{let n=$o.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=$o.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=$o.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jt.SemanticTokensFeature=EC;var Yo=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Jt.SemanticTokensDiff=Yo;var ol=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Yo(this._prevData,this._data).computeDiff()}:this.build()}};Jt.SemanticTokensBuilder=ol});var yh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.InlineCompletionFeature=void 0;var NC=ye(),jC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(NC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Vo.InlineCompletionFeature=jC});var cl=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.TextDocuments=void 0;var xn=ye(),al=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=xn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ko.TextDocuments=al});var ll=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.NotebookDocuments=pr.NotebookSyncFeature=void 0;var tt=ye(),bh=cl(),MC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};pr.NotebookSyncFeature=MC;var Go=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Go.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ul=class{constructor(t){t instanceof bh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new bh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Go,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let u=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let V of u)R.push(this.getNotebookCell(V));let F=[];for(let V of d)F.push(this.getNotebookCell(V));let $=[];for(let V of v)$.push(this.getNotebookCell(V));(R.length>0||F.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:F,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};pr.NotebookDocuments=ul});var pl=S(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function LC(e){return e===!0||e===!1}xe.boolean=LC;function vh(e){return typeof e=="string"||e instanceof String}xe.string=vh;function FC(e){return typeof e=="number"||e instanceof Number}xe.number=FC;function IC(e){return e instanceof Error}xe.error=IC;function xh(e){return typeof e=="function"}xe.func=xh;function Ph(e){return Array.isArray(e)}xe.array=Ph;function UC(e){return Ph(e)&&e.every(t=>vh(t))}xe.stringArray=UC;function WC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=WC;function BC(e){return e&&xh(e.then)}xe.thenable=BC});var dl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Kr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Gr=class e extends Kr{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};Gr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Gr._timeHighBits=["8","9","a","b"];nt.empty=new Kr("00000000-0000-0000-0000-000000000000");function _h(){return new Gr}nt.v4=_h;var HC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Ch(e){return HC.test(e)}nt.isUUID=Ch;function zC(e){if(!Ch(e))throw new Error("invalid uuid");return new Kr(e)}nt.parse=zC;function $C(){return _h().asHex()}nt.generateUuid=$C});var Sh=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.attachPartialResult=Zt.ProgressFeature=Zt.attachWorkDone=void 0;var Xt=ye(),YC=dl(),Pn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,{kind:"end"})}};Pn.Instances=new Map;var Qo=class extends Pn{constructor(t,n){super(t,n),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Qr=class{constructor(){}begin(){}report(){}done(){}},Jo=class extends Qr{constructor(){super(),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function VC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Qr;let n=t.workDoneToken;return delete t.workDoneToken,new Pn(e,n)}Zt.attachWorkDone=VC;var KC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Xt.WorkDoneProgressCancelNotification.type,n=>{let r=Pn.Instances.get(n.token);(r instanceof Qo||r instanceof Jo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Qr:new Pn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,YC.generateUuid)();return this.connection.sendRequest(Xt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Qo(this.connection,t))}else return Promise.resolve(new Jo)}};Zt.ProgressFeature=KC;var fl;(function(e){e.type=new Xt.ProgressType})(fl||(fl={}));var gl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(fl.type,this._token,t)}};function GC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new gl(e,n)}Zt.attachPartialResult=GC});var Dh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ConfigurationFeature=void 0;var QC=ye(),JC=pl(),XC=e=>class extends e{getConfiguration(t){return t?JC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(QC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Xo.ConfigurationFeature=XC});var Rh=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.WorkspaceFoldersFeature=void 0;var Zo=ye(),ZC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Zo.Emitter,this.connection.onNotification(Zo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Zo.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Zo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};es.WorkspaceFoldersFeature=ZC});var Th=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.CallHierarchyFeature=void 0;var ml=ye(),e0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(ml.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=ml.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=ml.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ts.CallHierarchyFeature=e0});var wh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ShowDocumentFeature=void 0;var t0=ye(),n0=e=>class extends e{showDocument(t){return this.connection.sendRequest(t0.ShowDocumentRequest.type,t)}};ns.ShowDocumentFeature=n0});var kh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.FileOperationsFeature=void 0;var dr=ye(),r0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(dr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(dr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(dr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(dr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(dr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(dr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};rs.FileOperationsFeature=r0});var Ah=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.LinkedEditingRangeFeature=void 0;var i0=ye(),o0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(i0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};is.LinkedEditingRangeFeature=o0});var Oh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TypeHierarchyFeature=void 0;var hl=ye(),s0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(hl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=hl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=hl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};os.TypeHierarchyFeature=s0});var Eh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.InlineValueFeature=void 0;var qh=ye(),a0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(qh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(qh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};ss.InlineValueFeature=a0});var jh=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.FoldingRangeFeature=void 0;var Nh=ye(),c0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Nh.FoldingRangeRefreshRequest.type),on:t=>{let n=Nh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};as.FoldingRangeFeature=c0});var Mh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.InlayHintFeature=void 0;var yl=ye(),u0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(yl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(yl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(yl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};cs.InlayHintFeature=u0});var Lh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.DiagnosticFeature=void 0;var Jr=ye(),l0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Jr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Jr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Jr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.WorkspaceDiagnosticRequest.partialResult,n)))}}};us.DiagnosticFeature=l0});var Fh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.MonikerFeature=void 0;var p0=ye(),d0=e=>class extends e{get moniker(){return{on:t=>{let n=p0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ls.MonikerFeature=d0});var Zh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=pl(),vl=dl(),B=Sh(),f0=Dh(),g0=Rh(),m0=Th(),h0=sl(),y0=wh(),b0=kh(),v0=Ah(),x0=Oh(),P0=Eh(),_0=jh(),C0=Mh(),S0=Lh(),D0=ll(),R0=Fh();function bl(e){if(e!==null)return e}var xl=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=xl;var ps=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},Pl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(bl)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(bl)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(bl)}},Ih=(0,y0.ShowDocumentFeature)((0,B.ProgressFeature)(Pl)),Uh;(function(e){function t(){return new ds}e.create=t})(Uh||(Q.BulkRegistration=Uh={}));var ds=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=vl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Wh;(function(e){function t(){return new Xr(void 0,[])}e.create=t})(Wh||(Q.BulkUnregistration=Wh={}));var Xr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},fs=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof ds?this.registerMany(t):t instanceof Xr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=vl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=vl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new Xr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},_l=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Bh=(0,b0.FileOperationsFeature)((0,g0.WorkspaceFoldersFeature)((0,f0.ConfigurationFeature)(_l))),gs=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},ms=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},hs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=hs;var Hh=(0,_0.FoldingRangeFeature)((0,R0.MonikerFeature)((0,S0.DiagnosticFeature)((0,C0.InlayHintFeature)((0,P0.InlineValueFeature)((0,x0.TypeHierarchyFeature)((0,v0.LinkedEditingRangeFeature)((0,h0.SemanticTokensFeature)((0,m0.CallHierarchyFeature)(hs))))))))),ys=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=ys;var zh=(0,D0.NotebookSyncFeature)(ys);function $h(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=$h;function Yh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Yh;function Vh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Vh;function Kh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Xh;function T0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,$h),tracer:n(e.tracer,t.tracer,Vh),telemetry:n(e.telemetry,t.telemetry,Yh),client:n(e.client,t.client,Kh),window:n(e.window,t.window,Gh),workspace:n(e.workspace,t.workspace,Qh),languages:n(e.languages,t.languages,Jh),notebooks:n(e.notebooks,t.notebooks,Xh)}}Q.combineFeatures=T0;function w0(e,t,n){let r=n&&n.console?new(n.console(ps)):new ps,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(gs)):new gs,s=n&&n.telemetry?new(n.telemetry(ms)):new ms,a=n&&n.client?new(n.client(fs)):new fs,c=n&&n.window?new(n.window(Ih)):new Ih,u=n&&n.workspace?new(n.workspace(Bh)):new Bh,d=n&&n.languages?new(n.languages(Hh)):new Hh,h=n&&n.notebooks?new(n.notebooks(zh)):new zh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let R,F,$,V={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(F=m,{dispose:()=>{F=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return u},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(V);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(F){let g=F(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return Y})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),V}Q.createConnection=w0});var Cl=S(je=>{"use strict";var k0=je&&je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ty=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&k0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var A0=sl();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return A0.SemanticTokensBuilder}});var O0=yh();ty(ye(),je);var q0=cl();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return q0.TextDocuments}});var E0=ll();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return E0.NotebookDocuments}});ty(Zh(),je);var ey;(function(e){e.all={__brand:"features",languages:O0.InlineCompletionFeature}})(ey||(je.ProposedFeatures=ey={}))});var ry=S((jw,ny)=>{"use strict";ny.exports=ye()});var Sl=S(_t=>{"use strict";var N0=_t&&_t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),oy=_t&&_t.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&N0(t,e,n)};Object.defineProperty(_t,"__esModule",{value:!0});_t.createConnection=void 0;var bs=Cl();oy(ry(),_t);oy(Cl(),_t);var iy=!1,j0={initialize:e=>{},get shutdownReceived(){return iy},set shutdownReceived(e){iy=e},exit:e=>{}};function M0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),bs.ConnectionStrategy.is(e)||bs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,bs.createProtocolConnection)(o,s,u,a);return(0,bs.createConnection)(c,j0,i)}_t.createConnection=M0});var en=S((Lw,sy)=>{"use strict";sy.exports=Sl()});var Ml=S((Ak,hy)=>{"use strict";function Ct(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function my(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function OS(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var mr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),Ct(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=my(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Ct(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=my(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Ct(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];Ct(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":mr.normalize(t)},relative:function(t,n){if(Ct(t),Ct(n),t===n||(t=mr.resolve(t),n=mr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Ct(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ct(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){Ct(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return OS("/",t)},parse:function(t){Ct(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,u=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};mr.posix=mr;hy.exports=mr});import{createConfig as Td,loadConfig as Ex,DEFAULT_CONFIG as Nx}from"@redocly/openapi-core";var Wl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function N(P,C){for(var D,E="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)D=P.charCodeAt(K);else{if(D===47)break;D=47}if(D===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(E.length<2||M!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var Ce=E.lastIndexOf("/");if(Ce!==E.length-1){Ce===-1?(E="",M=0):M=(E=E.slice(0,Ce)).length-1-E.lastIndexOf("/"),q=K,z=0;continue}}else if(E.length===2||E.length===1){E="",M=0,q=K,z=0;continue}}C&&(E.length>0?E+="/..":E="..",M=2)}else E.length>0?E+="/"+P.slice(q+1,K):E=P.slice(q+1,K),M=K-q-1;q=K,z=0}else D===46&&z!==-1?++z:z=-1}return E}var j={resolve:function(){for(var P,C="",D=!1,E=arguments.length-1;E>=-1&&!D;E--){var M;E>=0?M=arguments[E]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=N(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=N(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var E=P.length,M=E-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,K=M<z?M:z,Ce=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>K&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=D+Ce+1;ee<=E;++ee)ee!==E&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,E=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){E=q;break}}else M=!1;return E===-1?D?"/":".":D&&E===1?"//":P.slice(0,E)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,E=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,K=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){E=D+1;break}}else K===-1&&(q=!1,K=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=K))}return E===M?M=K:M===-1&&(M=P.length),P.slice(E,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){E=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(E,M)},extname:function(P){b(P);for(var C=-1,D=0,E=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)E===-1&&(M=!1,E=z+1),K===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||E===-1||q===0||q===1&&C===E-1&&C===D+1?"":P.slice(C,E)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var E=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return E?E===D.root?E+M:E+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,E=P.charCodeAt(0),M=E===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,K=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((E=P.charCodeAt(ee))!==47)K===-1&&(Ce=!1,K=ee+1),E===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(C.base=C.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,K)):(C.name=P.slice(z,q),C.base=P.slice(z,K)),C.ext=P.slice(q,K)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var N=t[k]={exports:{}};return e[k](N,N.exports,n),N.exports}n.d=(k,b)=>{for(var N in b)n.o(b,N)&&!n.o(k,N)&&Object.defineProperty(k,N,{enumerable:!0,get:b[N]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>Cn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.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(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let u="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,N,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(E,M){return E||M?E:"file"})(b,D),this.authority=N||u,this.path=(function(E,M){switch(E){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||u),this.query=P||u,this.fragment=C||u,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:N,authority:j,path:P,query:C,fragment:D}=b;return N===void 0?N=this.scheme:N===null&&(N=u),j===void 0?j=this.authority:j===null&&(j=u),P===void 0?P=this.path:P===null&&(P=u),C===void 0?C=this.query:C===null&&(C=u),D===void 0?D=this.fragment:D===null&&(D=u),N===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(N,j,P,C,D)}static parse(b,N=!1){let j=h.exec(b);return j?new R(j[2]||u,X(j[4]||u),X(j[5]||u),X(j[7]||u),X(j[9]||u),N):new R(u,u,u,u,u)}static file(b){let N=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(N=b.substring(2),b=d):(N=b.substring(2,j),b=b.substring(j)||d)}return new R("file",N,b,u,u)}static from(b){let N=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(N,!0),N}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let N=new R(b);return N._formatted=b.external,N._fsPath=b._sep===y?b.fsPath:null,N}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let F={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 $(k,b,N){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||N&&D===91||N&&D===93||N&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let E=F[D];E!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=E):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function V(k){let b;for(let N=0;N<k.length;N++){let j=k.charCodeAt(N);j===35||j===63?(b===void 0&&(b=k.substr(0,N)),b+=F[j]):b!==void 0&&(b+=k[N])}return b!==void 0?b:k}function m(k,b){let N;return N=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(N=N.replace(/\//g,"\\")),N}function g(k,b){let N=b?V:$,j="",{scheme:P,authority:C,path:D,query:E,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=N(z,!1,!1):(j+=N(z.substr(0,q),!1,!1),j+=":",j+=N(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=N(C,!1,!0):(j+=N(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=N(D,!0,!1)}return E&&(j+="?",j+=N(E,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var Cn;(function(k){k.joinPath=function(b,...N){return b.with({path:Nt.join(b.path,...N)})},k.resolvePath=function(b,...N){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...N);return P&&C[0]===rn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let N=Nt.dirname(b.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),b.with({path:N})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(Cn||(Cn={})),Wl=r})();var{URI:Mt,Utils:ne}=Wl;import{CONFIG_FILE_NAME as Vy}from"@redocly/openapi-core";var Ms={languageId:"yaml",filePattern:/\.ya?ml$/i},Ls={languageId:"json",filePattern:/\.json$/i},js=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ms,Ls];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Vy);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new js;function Fs(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Mt.parse(e)}function st(e){return Mt.parse(e).fsPath}function br(e){let t=["https","http"],{scheme:n}=Mt.parse(e);return t.includes(n)}function vr(e){return ne.basename(Se(e))}async function Bl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as Ox,Source as Rd,readFileFromUrl as qx}from"@redocly/openapi-core";var vi=Le(On(),1);import{isAbsoluteUrl as kx}from"@redocly/openapi-core";function gd(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let R=s.get(u.uri)||[];d||(s.set(u.uri,[...R,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...R,{resolve:v,reject:y}])})}return c}function da(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function md(e){return e==="$ref"}async function fa(e,t){let n=Mt.parse(t);return ne.joinPath(n,e).toString()}async function hd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await fa(i,n)===t)return r}function yd(e){return typeof e=="string"}function Sr(e){return typeof e=="function"}function bd(e){return e?.kind===vi.Kind.MAP}function ga(e){return e?.kind===vi.Kind.MAPPING}function ma(e){return e?.kind===vi.Kind.SEQ}function Dr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ha(e){return kx(e)||e.startsWith("file://")}var xi=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=Pd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),u=this._lineOffsets,d=vd(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=vd(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&xd(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},Pi;(function(e){function t(i,o,s,a){return new xi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof xi)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=ya(o.map(Ax),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(Pi||(Pi={}));function ya(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ya(r,t),ya(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function vd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);xd(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function xd(e){return e===13||e===10}function Pd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Ax(e){let t=Pd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var _i=Le(On(),1),_d=new Map;function Cd(e,t){return _d.set(e,t)}function Sd(e){let t=[];for(let[n,r]of _d.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ve(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return Pi.create(e,"yaml",1,n)}function ba(e){return Ls.filePattern.test(e)}function Dd(e){return Ms.filePattern.test(e)}function pn({uri:e,ast:t,textDocument:n}){if(!(Dd(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=_i.safeLoad(i,{filename:e})}if(t?.kind===_i.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var mt=class extends Ox{resolveExternalRef(t,n){return ha(n)?n:t&&ha(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(br(t)){let{body:n,mimeType:r}=await qx(t,{...this.config.http,customFetch:fetch});return new Rd(t,n,r)}return new Rd(t,(await Ve(t)).getText())}};var Rt;async function Ci(e,t){try{let n=new mt,r=e?await be.findConfig(e):void 0;if(r===void 0)return Rt=await Td(Nx),Rt;Rt=await Ex({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Rt=await Td({})}return Rt}async function qn(e){return Rt||await Ci(e)}async function dn(e){return await va(e)?!0:!!Rt?.resolvedRefMap&&[...Rt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Fs(vr(e),n))}async function va(e){let t=await be.findConfig(e);return t?Fs(e,t):!1}var wd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Rr={type:"object",properties:wd,additionalProperties:!1},jx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ut={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},wd),{like:Rr,dislike:Rr,satisfied:Rr,neutral:Rr,dissatisfied:Rr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:jx},additionalProperties:!1}},additionalProperties:!1};var Mx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},xa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Si={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ut,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:xa,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Mx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var En={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Lx={type:"object",properties:{name:{type:"string"},items:En,queries:En,mutations:En,subscriptions:En,types:En,directives:En},required:["name"],additionalProperties:!1},Fx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Lx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Ix={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Ux={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Wx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Ix,license:Ux},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Fx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:xa,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ut,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:Wx},additionalProperties:!1};var Bx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Hx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},kd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},zx={type:"object",properties:{beforeInfo:{type:"array",items:kd},end:{type:"array",items:kd}}},fn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Di={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},$x={type:"object",properties:ki(fn.properties,["light","dark"])},Yx={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Vx={type:"object",properties:{error:Di,info:Di,redirect:Di,success:Di}},Kx={type:"object",properties:jn(fn.properties,["dark"])},Gx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Qx={type:"object",properties:{accent:fn,border:$x,error:fn,http:Yx,primary:fn,responses:Vx,secondary:Kx,success:fn,text:Gx,tonalOffset:{type:"number"},warning:fn}},Ri={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Jx={type:"object",properties:{small:Ri,medium:Ri,large:Ri,xlarge:Ri}},ht={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Xx={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Jx})},Ad={type:"object",properties:ki(ht.properties,["fontSize","lineHeight"])},Zx={type:"object",properties:{medium:Ad,small:Ad}},eP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Zx})},tP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},nP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Od={type:"object",properties:{fullWidth:{type:"boolean"}}},rP={type:"object",properties:{buttons:Xx,httpBadges:eP,layoutControls:tP,panels:nP,tryItButton:Od,tryItSendButton:Od}},wi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},iP={type:"object",properties:{maxWidth:wi}},oP={type:"object",properties:{maxWidth:wi,middlePanelMaxWidth:wi}},sP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:iP,"three-panel":oP}},qd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},aP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:qd,defaultDetailsWidth:{type:"string"},examples:qd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Nd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},cP={type:"object",properties:ki(Nd.properties,["textTransform"])},uP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},lP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Nd,level1items:cP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:uP,textColor:{type:"string"},width:{type:"string"}})},Ti={type:"object",properties:Object.assign(Object.assign({},ht.properties),{color:{type:"string"},transform:{type:"string"}})},pP={type:"object",properties:Object.assign(Object.assign({},ht.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},dP={type:"object",properties:jn(ht.properties,["fontSize"])},fP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},gP={type:"object",properties:Object.assign(Object.assign({code:pP,fieldName:ht},ki(ht.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ti,heading2:Ti,heading3:Ti,headings:dP,lineHeight:{type:"string"},links:fP,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ti,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},mP={type:"object",properties:Object.assign({color:{type:"string"}},jn(ht.properties,["fontWeight"]))},hP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:mP}},yP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},bP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Ed={type:"object",properties:{custom:{type:"string"}}},vP={type:"object",properties:{DownloadButton:Ed,NextSectionButton:Ed}},xP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},PP={type:"object",properties:{borderRadius:{type:"string"}}},_P={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},CP={type:"object",properties:{breakpoints:wi,codeBlock:hP,colors:Qx,components:rP,layout:sP,logo:yP,fab:bP,overrides:vP,rightPanel:xP,schema:aP,shape:PP,sidebar:lP,spacing:_P,typography:gP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},SP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Bx}},required:["languages"]},jd={type:"object",properties:{theme:CP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:SP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Hx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:zx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function ki(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Tt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Tr={rules:Tt,oas2Rules:Tt,oas3_0Rules:Tt,oas3_1Rules:Tt,oas3_2Rules:Tt,async2Rules:Tt,async3Rules:Tt,arazzo1Rules:Tt,overlay1Rules:Tt};var wt={type:"object",additionalProperties:!0},wr={preprocessors:wt,oas2Preprocessors:wt,oas3_0Preprocessors:wt,oas3_1Preprocessors:wt,oas3_2Preprocessors:wt,async2Preprocessors:wt,async3Preprocessors:wt,arazzo1Preprocessors:wt,overlay1Preprocessors:wt},kt={type:"object",additionalProperties:!0};var kr={decorators:kt,oas2Decorators:kt,oas3_0Decorators:kt,oas3_1Decorators:kt,oas3_2Decorators:kt,async2Decorators:kt,async3Decorators:kt,arazzo1Decorators:kt,overlay1Decorators:kt};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Md={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Pa={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},_a={type:"array",items:Object.assign(Object.assign({},Pa),{properties:Object.assign(Object.assign({},Pa.properties),{items:{type:"array",items:Pa}})})},DP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},RP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},TP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},wP={type:"object",properties:Object.assign({facets:TP},Re.properties),additionalProperties:!1},kP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Ai={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Oi={type:"object",properties:Object.assign({items:_a},Re.properties),additionalProperties:!1},qi={type:"object",additionalProperties:DP},Ei={type:"object",properties:Object.assign({items:_a,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Ni={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},ji={type:"object",properties:{head:{type:"array",items:Md},body:{type:"array",items:Md}},additionalProperties:!1},Mi={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Li={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:RP,filters:wP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:kP}},Re.properties),additionalProperties:!1},Fi={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Ii={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},AP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},Ui={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:AP},additionalProperties:!1},Wi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Bi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Mn=Object.assign(Object.assign({},Si),{properties:Object.assign(Object.assign({},Si.properties),jd.properties)}),OP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},qP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},EP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},NP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},jP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},MP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},LP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Ca={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},FP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:Ca}},additionalProperties:!1,required:["trackingId"]},Hi={type:"object",properties:{adobe:OP,amplitude:qP,fullstory:EP,heap:NP,rudderstack:jP,segment:MP,gtm:LP,ga:FP}},zi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},$i={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Yi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},IP={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},UP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:IP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:_a,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":UP}},Fn={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Tr),wr),kr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var WP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},BP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},HP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},At={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:BP},excludes:{type:"array",items:WP},filters:{type:"array",items:HP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},zP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},$P={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:zP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},YP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:$P,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},VP={type:"object",additionalProperties:YP},Vi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:VP,catalogs:{type:"object",properties:{all:At,services:At,domains:At,teams:At,users:At,apiDescriptions:At,dataSchemas:At,apiOperations:At},additionalProperties:At}},additionalProperties:!1};var Ar={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},Sa={type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},KP={type:"object",properties:{operator:Ar,conditions:{type:"array",items:Sa}},required:["operator","conditions"],additionalProperties:!1},Ld={type:"array",items:{oneOf:[Sa,{type:"object",properties:{operator:Ar,conditions:{type:"array",items:{oneOf:[Sa,KP]}}},required:["operator","conditions"],additionalProperties:!1}]}},Id={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},GP={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Id},required:["subject","assertions"],additionalProperties:!1}},QP={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Id,where:GP,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},JP={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},QP]}},XP={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:JP},required:["name"],additionalProperties:!1},Fd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},ZP={oneOf:[Fd,{type:"array",items:Fd}]},e_={type:"object",properties:{name:{type:"string"},description:{type:"string"},entities:{oneOf:[Ld,{type:"object",properties:{operator:Ar,conditions:Ld},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:XP,minItems:1},trigger:ZP},required:["name","entities","levels"],additionalProperties:!1},Ki={type:"array",items:e_};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn},additionalProperties:!0};var Ra="https://redocly.com/sso/teams",In;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(In||(In={}));var Un;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Un||(Un={}));var Da;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Da||(Da={}));var Ta=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"];function Gi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Gi(i,t):i)]:[n,Gi(r,t)]}).filter(Boolean))}var t_={type:"object",additionalProperties:{type:"string"}},n_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Qi={type:"string",enum:["error","warn","off"]},r_={type:"object",additionalProperties:!1,properties:{schemaCheck:Qi,statusCodeCheck:Qi,contentTypeCheck:Qi,successCriteriaCheck:Qi}},i_={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},o_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},s_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ud={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[i_,o_]},inputs:t_,servers:n_,severity:r_,slo:s_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var a_={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},c_={type:"object",properties:{type:{type:"string",const:In.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:a_,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},u_={type:"object",properties:{type:{type:"string",const:In.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Ra},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},l_={oneOf:[c_,u_],discriminator:{propertyName:"type"}},p_={type:"object",additionalProperties:l_},d_={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},f_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},g_={type:"object",additionalProperties:f_,default:{}},ka={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Mn,graphql:Nn,theme:{type:"object",properties:{openapi:Mn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Tr),wr),kr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},m_={type:"object",additionalProperties:!0},h_={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Wd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Bd={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Wd},default:{llmstxt:Wd.default},additionalProperties:!1},y_={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},gn={type:"object",additionalProperties:{type:"string"}},zd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:gn,cms:gn,reunite:gn,features:{type:"object",properties:{aiSearch:gn},additionalProperties:!1},content:{type:"object",properties:{"**":gn},additionalProperties:gn}},additionalProperties:gn},b_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},v_={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},x_={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[b_,v_]}},additionalProperties:!1,required:["type","apiBaseUrl"]},P_={type:"object",properties:{type:{type:"string",const:Un.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},__={type:"object",properties:{type:{type:"string",const:Un.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},wa={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[P_,__],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},C_=Object.assign(Object.assign({},wa),{properties:Object.assign(Object.assign({},wa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),S_={type:"object",oneOf:[wa,C_,x_],discriminator:{propertyName:"type"}},D_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:S_}}},Hd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},R_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},T_={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},Or={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:g_,seo:Bd,rbac:zd,apiFunctions:y_,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:R_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ka},extends:{type:"array",items:{type:"string"}}},Tr),kr),wr),{ssoDirect:p_,sso:d_,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:D_,removeAttribution:{type:"boolean"},i18n:Hd,l10n:Hd,metadata:m_,metadataGlobs:h_,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Ud,logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn,mcp:T_}),default:{redirects:{},seo:Bd.default},additionalProperties:!0},w_=Object.assign(Object.assign({},Gi(Or,"default")),{additionalProperties:!1}),Aa=Object.assign(Object.assign({$id:"root-redocly-config"},Or),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Or.properties),{env:{type:"object",additionalProperties:w_}}),default:{},additionalProperties:!1});var Oa={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,mockServer:Or.properties.mockServer,analytics:{type:"object",properties:{ga:Ca}}},additionalProperties:!0,default:{}},k_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Oa.properties),{apis:{type:"object",additionalProperties:ka},theme:Oa}),additionalProperties:!1};var A_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},O_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},q_={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},E_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0};var N_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},j_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},M_={type:"object",properties:{type:{type:"string",enum:Ta},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Wt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:N_,links:{type:"array",items:j_},relations:{type:"array",items:M_},metadata:{type:"object",additionalProperties:!0}},Ji={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"user"},metadata:A_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-operation"},metadata:q_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"data-schema"},metadata:E_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-description"},metadata:O_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},Xi={type:"object",properties:Object.assign({},Wt),required:["key","title","type"],additionalProperties:!1};var Fe=Le(en(),1);import{getLineColLocation as V0,lintDocument as K0,makeDocumentFromString as xs,lintConfig as G0,lintEntityFile as Q0,detectSpec as J0,createConfigTypes as X0}from"@redocly/openapi-core";import{bundleDocument as L0,isPlainObject as F0,makeDocumentFromString as I0,getTypes as U0,detectSpec as W0}from"@redocly/openapi-core";var ay=new Map,vs=new Map;function B0(e){return e?Array.from(e).map(([t,n])=>[t,da(n)]):[]}async function Dl(e,t){let n=await qn(),r=new mt(n.resolve),i=I0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:u}=await L0({document:i,config:n,externalRefResolver:r,types:U0(W0(i.parsed))}),d=B0(u);u&&(vs=new Map([...vs,...u])),ay.set(e.uri,{uri:e.uri,name:vr(e.uri),definition:F0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function H0(){return Array.from(ay).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:vr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Rl(e){return vs.has(e)?vs.get(e):null}import{createConfig as z0,lintDocument as $0}from"@redocly/openapi-core";async function cy(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await Y0(i):i,c=await z0({...s,plugins:a},{configPath:r}),u=await $0({document:e,externalRefResolver:t,config:c});o.push(...u.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function Y0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
|
|
70
|
-
Plugins code preview:`,e.substring(0,500)+"..."),[]}}var
|
|
69
|
+
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,F){return t.call(y)==="[object Number]"&&R<=y&&y<=F}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var er=hn(),vf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(vf||(He.MessageDirection=vf={}));var Hu=class{constructor(t){this.method=t}};He.RegistrationType=Hu;var zu=class extends er.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=zu;var $u=class extends er.RequestType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolRequestType=$u;var Yu=class extends er.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Yu;var Vu=class extends er.NotificationType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolNotificationType=Vu});var wo=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function fC(e){return e===!0||e===!1}ve.boolean=fC;function xf(e){return typeof e=="string"||e instanceof String}ve.string=xf;function gC(e){return typeof e=="number"||e instanceof Number}ve.number=gC;function mC(e){return e instanceof Error}ve.error=mC;function hC(e){return typeof e=="function"}ve.func=hC;function Pf(e){return Array.isArray(e)}ve.array=Pf;function yC(e){return Pf(e)&&e.every(t=>xf(t))}ve.stringArray=yC;function bC(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=bC;function vC(e){return e!==null&&typeof e=="object"}ve.objectLiteral=vC});var Sf=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ImplementationRequest=void 0;var _f=se(),Cf;(function(e){e.method="textDocument/implementation",e.messageDirection=_f.MessageDirection.clientToServer,e.type=new _f.ProtocolRequestType(e.method)})(Cf||(ko.ImplementationRequest=Cf={}))});var Tf=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TypeDefinitionRequest=void 0;var Df=se(),Rf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Rf||(Ao.TypeDefinitionRequest=Rf={}))});var Af=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DidChangeWorkspaceFoldersNotification=tr.WorkspaceFoldersRequest=void 0;var Oo=se(),wf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=Oo.MessageDirection.serverToClient,e.type=new Oo.ProtocolRequestType0(e.method)})(wf||(tr.WorkspaceFoldersRequest=wf={}));var kf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=Oo.MessageDirection.clientToServer,e.type=new Oo.ProtocolNotificationType(e.method)})(kf||(tr.DidChangeWorkspaceFoldersNotification=kf={}))});var Ef=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationRequest=void 0;var Of=se(),qf;(function(e){e.method="workspace/configuration",e.messageDirection=Of.MessageDirection.serverToClient,e.type=new Of.ProtocolRequestType(e.method)})(qf||(qo.ConfigurationRequest=qf={}))});var Mf=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ColorPresentationRequest=nr.DocumentColorRequest=void 0;var Eo=se(),Nf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(Nf||(nr.DocumentColorRequest=Nf={}));var jf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(jf||(nr.ColorPresentationRequest=jf={}))});var If=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.FoldingRangeRefreshRequest=rr.FoldingRangeRequest=void 0;var No=se(),Lf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(Lf||(rr.FoldingRangeRequest=Lf={}));var Ff;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(Ff||(rr.FoldingRangeRefreshRequest=Ff={}))});var Bf=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeclarationRequest=void 0;var Uf=se(),Wf;(function(e){e.method="textDocument/declaration",e.messageDirection=Uf.MessageDirection.clientToServer,e.type=new Uf.ProtocolRequestType(e.method)})(Wf||(jo.DeclarationRequest=Wf={}))});var $f=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.SelectionRangeRequest=void 0;var Hf=se(),zf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Hf.MessageDirection.clientToServer,e.type=new Hf.ProtocolRequestType(e.method)})(zf||(Mo.SelectionRangeRequest=zf={}))});var Gf=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.WorkDoneProgressCancelNotification=Yt.WorkDoneProgressCreateRequest=Yt.WorkDoneProgress=void 0;var xC=hn(),Lo=se(),Yf;(function(e){e.type=new xC.ProgressType;function t(n){return n===e.type}e.is=t})(Yf||(Yt.WorkDoneProgress=Yf={}));var Vf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Lo.MessageDirection.serverToClient,e.type=new Lo.ProtocolRequestType(e.method)})(Vf||(Yt.WorkDoneProgressCreateRequest=Vf={}));var Kf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolNotificationType(e.method)})(Kf||(Yt.WorkDoneProgressCancelNotification=Kf={}))});var Zf=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var ir=se(),Qf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Qf||(Vt.CallHierarchyPrepareRequest=Qf={}));var Jf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Jf||(Vt.CallHierarchyIncomingCallsRequest=Jf={}));var Xf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(Xf||(Vt.CallHierarchyOutgoingCallsRequest=Xf={}))});var og=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var qt=se(),eg;(function(e){e.Relative="relative"})(eg||(ze.TokenFormat=eg={}));var $r;(function(e){e.method="textDocument/semanticTokens",e.type=new qt.RegistrationType(e.method)})($r||(ze.SemanticTokensRegistrationType=$r={}));var tg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(tg||(ze.SemanticTokensRequest=tg={}));var ng;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(ng||(ze.SemanticTokensDeltaRequest=ng={}));var rg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(rg||(ze.SemanticTokensRangeRequest=rg={}));var ig;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=qt.MessageDirection.serverToClient,e.type=new qt.ProtocolRequestType0(e.method)})(ig||(ze.SemanticTokensRefreshRequest=ig={}))});var cg=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ShowDocumentRequest=void 0;var sg=se(),ag;(function(e){e.method="window/showDocument",e.messageDirection=sg.MessageDirection.serverToClient,e.type=new sg.ProtocolRequestType(e.method)})(ag||(Fo.ShowDocumentRequest=ag={}))});var pg=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LinkedEditingRangeRequest=void 0;var ug=se(),lg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=ug.MessageDirection.clientToServer,e.type=new ug.ProtocolRequestType(e.method)})(lg||(Io.LinkedEditingRangeRequest=lg={}))});var vg=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.WillDeleteFilesRequest=Ne.DidDeleteFilesNotification=Ne.DidRenameFilesNotification=Ne.WillRenameFilesRequest=Ne.DidCreateFilesNotification=Ne.WillCreateFilesRequest=Ne.FileOperationPatternKind=void 0;var Ze=se(),dg;(function(e){e.file="file",e.folder="folder"})(dg||(Ne.FileOperationPatternKind=dg={}));var fg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(fg||(Ne.WillCreateFilesRequest=fg={}));var gg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(gg||(Ne.DidCreateFilesNotification=gg={}));var mg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(mg||(Ne.WillRenameFilesRequest=mg={}));var hg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(hg||(Ne.DidRenameFilesNotification=hg={}));var yg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(yg||(Ne.DidDeleteFilesNotification=yg={}));var bg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(bg||(Ne.WillDeleteFilesRequest=bg={}))});var Sg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.MonikerRequest=Kt.MonikerKind=Kt.UniquenessLevel=void 0;var xg=se(),Pg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Pg||(Kt.UniquenessLevel=Pg={}));var _g;(function(e){e.$import="import",e.$export="export",e.local="local"})(_g||(Kt.MonikerKind=_g={}));var Cg;(function(e){e.method="textDocument/moniker",e.messageDirection=xg.MessageDirection.clientToServer,e.type=new xg.ProtocolRequestType(e.method)})(Cg||(Kt.MonikerRequest=Cg={}))});var wg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var or=se(),Dg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Dg||(Gt.TypeHierarchyPrepareRequest=Dg={}));var Rg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Rg||(Gt.TypeHierarchySupertypesRequest=Rg={}));var Tg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Tg||(Gt.TypeHierarchySubtypesRequest=Tg={}))});var Og=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.InlineValueRefreshRequest=sr.InlineValueRequest=void 0;var Uo=se(),kg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Uo.MessageDirection.clientToServer,e.type=new Uo.ProtocolRequestType(e.method)})(kg||(sr.InlineValueRequest=kg={}));var Ag;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Uo.MessageDirection.serverToClient,e.type=new Uo.ProtocolRequestType0(e.method)})(Ag||(sr.InlineValueRefreshRequest=Ag={}))});var jg=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.InlayHintRefreshRequest=Qt.InlayHintResolveRequest=Qt.InlayHintRequest=void 0;var ar=se(),qg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(qg||(Qt.InlayHintRequest=qg={}));var Eg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Eg||(Qt.InlayHintResolveRequest=Eg={}));var Ng;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(Ng||(Qt.InlayHintRefreshRequest=Ng={}))});var Bg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Wg=hn(),PC=wo(),cr=se(),Mg;(function(e){function t(n){let r=n;return r&&PC.boolean(r.retriggerRequest)}e.is=t})(Mg||(et.DiagnosticServerCancellationData=Mg={}));var Lg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Lg||(et.DocumentDiagnosticReportKind=Lg={}));var Fg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Fg||(et.DocumentDiagnosticRequest=Fg={}));var Ig;(function(e){e.method="workspace/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new Wg.ProgressType})(Ig||(et.WorkspaceDiagnosticRequest=Ig={}));var Ug;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})(Ug||(et.DiagnosticRefreshRequest=Ug={}))});var Gg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Yr=(To(),ai(Ro)),ut=wo(),vt=se(),Ku;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Ku||(de.NotebookCellKind=Ku={}));var Gu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ut.objectLiteral(o)&&Yr.uinteger.is(o.executionOrder)&&(o.success===void 0||ut.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Gu||(de.ExecutionSummary=Gu={}));var Wo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ut.objectLiteral(s)&&Ku.is(s.kind)&&Yr.DocumentUri.is(s.document)&&(s.metadata===void 0||ut.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Gu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(ut.objectLiteral(o)&&ut.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})(Wo||(de.NotebookCell=Wo={}));var Hg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ut.objectLiteral(i)&&ut.string(i.uri)&&Yr.integer.is(i.version)&&ut.typedArray(i.cells,Wo.is)}e.is=n})(Hg||(de.NotebookDocument=Hg={}));var ur;(function(e){e.method="notebookDocument/sync",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.RegistrationType(e.method)})(ur||(de.NotebookDocumentSyncRegistrationType=ur={}));var zg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(zg||(de.DidOpenNotebookDocumentNotification=zg={}));var $g;(function(e){function t(r){let i=r;return ut.objectLiteral(i)&&Yr.uinteger.is(i.start)&&Yr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ut.typedArray(i.cells,Wo.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})($g||(de.NotebookCellArrayChange=$g={}));var Yg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Yg||(de.DidChangeNotebookDocumentNotification=Yg={}));var Vg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Vg||(de.DidSaveNotebookDocumentNotification=Vg={}));var Kg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=vt.MessageDirection.clientToServer,e.type=new vt.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Kg||(de.DidCloseNotebookDocumentNotification=Kg={}))});var Xg=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.InlineCompletionRequest=void 0;var Qg=se(),Jg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Qg.MessageDirection.clientToServer,e.type=new Qg.ProtocolRequestType(e.method)})(Jg||(Bo.InlineCompletionRequest=Jg={}))});var ph=S(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var T=se(),Zg=(To(),ai(Ro)),Te=wo(),_C=Sf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return _C.ImplementationRequest}});var CC=Tf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return CC.TypeDefinitionRequest}});var ah=Af();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ah.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ah.DidChangeWorkspaceFoldersNotification}});var SC=Ef();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return SC.ConfigurationRequest}});var ch=Mf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return ch.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return ch.ColorPresentationRequest}});var uh=If();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return uh.FoldingRangeRefreshRequest}});var DC=Bf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return DC.DeclarationRequest}});var RC=$f();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return RC.SelectionRangeRequest}});var el=Gf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return el.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return el.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return el.WorkDoneProgressCancelNotification}});var tl=Zf();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return tl.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return tl.CallHierarchyPrepareRequest}});var lr=og();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return lr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return lr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return lr.SemanticTokensRegistrationType}});var TC=cg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return TC.ShowDocumentRequest}});var wC=pg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return wC.LinkedEditingRangeRequest}});var vn=vg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return vn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return vn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return vn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return vn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return vn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return vn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return vn.WillDeleteFilesRequest}});var nl=Sg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return nl.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return nl.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return nl.MonikerRequest}});var rl=wg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return rl.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return rl.TypeHierarchySupertypesRequest}});var lh=Og();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return lh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return lh.InlineValueRefreshRequest}});var il=jg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return il.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return il.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return il.InlayHintRefreshRequest}});var Vr=Bg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Vr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Vr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Vr.DiagnosticRefreshRequest}});var xt=Gg();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return xt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return xt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return xt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return xt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return xt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return xt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return xt.DidCloseNotebookDocumentNotification}});var kC=Xg();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return kC.InlineCompletionRequest}});var Qu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Qu||(l.TextDocumentFilter=Qu={}));var Ju;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Ju||(l.NotebookDocumentFilter=Ju={}));var Xu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Ju.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Xu||(l.NotebookCellTextDocumentFilter=Xu={}));var Zu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Qu.is(r)&&!Xu.is(r))return!1;return!0}e.is=t})(Zu||(l.DocumentSelector=Zu={}));var em;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(em||(l.RegistrationRequest=em={}));var tm;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(tm||(l.UnregistrationRequest=tm={}));var nm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(nm||(l.ResourceOperationKind=nm={}));var rm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(rm||(l.FailureHandlingKind=rm={}));var im;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(im||(l.PositionEncodingKind=im={}));var om;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(om||(l.StaticRegistrationOptions=om={}));var sm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Zu.is(r.documentSelector))}e.is=t})(sm||(l.TextDocumentRegistrationOptions=sm={}));var am;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(am||(l.WorkDoneProgressOptions=am={}));var cm;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(cm||(l.InitializeRequest=cm={}));var um;(function(e){e.unknownProtocolVersion=1})(um||(l.InitializeErrorCodes=um={}));var lm;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(lm||(l.InitializedNotification=lm={}));var pm;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(pm||(l.ShutdownRequest=pm={}));var dm;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(dm||(l.ExitNotification=dm={}));var fm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(fm||(l.DidChangeConfigurationNotification=fm={}));var gm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(gm||(l.MessageType=gm={}));var mm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(mm||(l.ShowMessageNotification=mm={}));var hm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(hm||(l.ShowMessageRequest=hm={}));var ym;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(ym||(l.LogMessageNotification=ym={}));var bm;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(bm||(l.TelemetryEventNotification=bm={}));var vm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(vm||(l.TextDocumentSyncKind=vm={}));var xm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(xm||(l.DidOpenTextDocumentNotification=xm={}));var Pm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(Pm||(l.TextDocumentContentChangeEvent=Pm={}));var _m;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(_m||(l.DidChangeTextDocumentNotification=_m={}));var Cm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Cm||(l.DidCloseTextDocumentNotification=Cm={}));var Sm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Sm||(l.DidSaveTextDocumentNotification=Sm={}));var Dm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Dm||(l.TextDocumentSaveReason=Dm={}));var Rm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Rm||(l.WillSaveTextDocumentNotification=Rm={}));var Tm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(l.WillSaveTextDocumentWaitUntilRequest=Tm={}));var wm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(wm||(l.DidChangeWatchedFilesNotification=wm={}));var km;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(km||(l.FileChangeType=km={}));var Am;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Zg.URI.is(r.baseUri)||Zg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(Am||(l.RelativePattern=Am={}));var Om;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Om||(l.WatchKind=Om={}));var qm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(qm||(l.PublishDiagnosticsNotification=qm={}));var Em;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Em||(l.CompletionTriggerKind=Em={}));var Nm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(l.CompletionRequest=Nm={}));var jm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(jm||(l.CompletionResolveRequest=jm={}));var Mm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(l.HoverRequest=Mm={}));var Lm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Lm||(l.SignatureHelpTriggerKind=Lm={}));var Fm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(l.SignatureHelpRequest=Fm={}));var Im;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(l.DefinitionRequest=Im={}));var Um;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(l.ReferencesRequest=Um={}));var Wm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(l.DocumentHighlightRequest=Wm={}));var Bm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(l.DocumentSymbolRequest=Bm={}));var Hm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(l.CodeActionRequest=Hm={}));var zm;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(l.CodeActionResolveRequest=zm={}));var $m;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(l.WorkspaceSymbolRequest=$m={}));var Ym;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Ym||(l.WorkspaceSymbolResolveRequest=Ym={}));var Vm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Vm||(l.CodeLensRequest=Vm={}));var Km;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Km||(l.CodeLensResolveRequest=Km={}));var Gm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(Gm||(l.CodeLensRefreshRequest=Gm={}));var Qm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Qm||(l.DocumentLinkRequest=Qm={}));var Jm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Jm||(l.DocumentLinkResolveRequest=Jm={}));var Xm;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Xm||(l.DocumentFormattingRequest=Xm={}));var Zm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Zm||(l.DocumentRangeFormattingRequest=Zm={}));var eh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(eh||(l.DocumentRangesFormattingRequest=eh={}));var th;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(th||(l.DocumentOnTypeFormattingRequest=th={}));var nh;(function(e){e.Identifier=1})(nh||(l.PrepareSupportDefaultBehavior=nh={}));var rh;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(rh||(l.RenameRequest=rh={}));var ih;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ih||(l.PrepareRenameRequest=ih={}));var oh;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(oh||(l.ExecuteCommandRequest=oh={}));var sh;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(sh||(l.ApplyWorkspaceEditRequest=sh={}))});var fh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.createProtocolConnection=void 0;var dh=hn();function AC(e,t,n,r){return dh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,dh.createMessageConnection)(e,t,n,r)}Ho.createProtocolConnection=AC});var mh=S($e=>{"use strict";var OC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),zo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&OC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;zo(hn(),$e);zo((To(),ai(Ro)),$e);zo(se(),$e);zo(ph(),$e);var qC=fh();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return qC.createProtocolConnection}});var gh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(gh||($e.LSPErrorCodes=gh={}))});var ye=S(Pt=>{"use strict";var EC=Pt&&Pt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),hh=Pt&&Pt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&EC(t,e,n)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createProtocolConnection=void 0;var NC=Uc();hh(Uc(),Pt);hh(mh(),Pt);function jC(e,t,n,r){return(0,NC.createMessageConnection)(e,t,n,r)}Pt.createProtocolConnection=jC});var sl=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.SemanticTokensBuilder=Jt.SemanticTokensDiff=Jt.SemanticTokensFeature=void 0;var $o=ye(),MC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest($o.SemanticTokensRefreshRequest.type),on:t=>{let n=$o.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=$o.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=$o.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jt.SemanticTokensFeature=MC;var Yo=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Jt.SemanticTokensDiff=Yo;var ol=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Yo(this._prevData,this._data).computeDiff()}:this.build()}};Jt.SemanticTokensBuilder=ol});var yh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.InlineCompletionFeature=void 0;var LC=ye(),FC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(LC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Vo.InlineCompletionFeature=FC});var cl=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.TextDocuments=void 0;var xn=ye(),al=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=xn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ko.TextDocuments=al});var ll=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.NotebookDocuments=pr.NotebookSyncFeature=void 0;var tt=ye(),bh=cl(),IC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};pr.NotebookSyncFeature=IC;var Go=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Go.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ul=class{constructor(t){t instanceof bh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new bh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Go,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let u=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let V of u)R.push(this.getNotebookCell(V));let F=[];for(let V of d)F.push(this.getNotebookCell(V));let $=[];for(let V of v)$.push(this.getNotebookCell(V));(R.length>0||F.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:F,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};pr.NotebookDocuments=ul});var pl=S(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function UC(e){return e===!0||e===!1}xe.boolean=UC;function vh(e){return typeof e=="string"||e instanceof String}xe.string=vh;function WC(e){return typeof e=="number"||e instanceof Number}xe.number=WC;function BC(e){return e instanceof Error}xe.error=BC;function xh(e){return typeof e=="function"}xe.func=xh;function Ph(e){return Array.isArray(e)}xe.array=Ph;function HC(e){return Ph(e)&&e.every(t=>vh(t))}xe.stringArray=HC;function zC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=zC;function $C(e){return e&&xh(e.then)}xe.thenable=$C});var dl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Kr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Gr=class e extends Kr{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};Gr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Gr._timeHighBits=["8","9","a","b"];nt.empty=new Kr("00000000-0000-0000-0000-000000000000");function _h(){return new Gr}nt.v4=_h;var YC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Ch(e){return YC.test(e)}nt.isUUID=Ch;function VC(e){if(!Ch(e))throw new Error("invalid uuid");return new Kr(e)}nt.parse=VC;function KC(){return _h().asHex()}nt.generateUuid=KC});var Sh=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.attachPartialResult=Zt.ProgressFeature=Zt.attachWorkDone=void 0;var Xt=ye(),GC=dl(),Pn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,{kind:"end"})}};Pn.Instances=new Map;var Qo=class extends Pn{constructor(t,n){super(t,n),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Qr=class{constructor(){}begin(){}report(){}done(){}},Jo=class extends Qr{constructor(){super(),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function QC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Qr;let n=t.workDoneToken;return delete t.workDoneToken,new Pn(e,n)}Zt.attachWorkDone=QC;var JC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Xt.WorkDoneProgressCancelNotification.type,n=>{let r=Pn.Instances.get(n.token);(r instanceof Qo||r instanceof Jo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Qr:new Pn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,GC.generateUuid)();return this.connection.sendRequest(Xt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Qo(this.connection,t))}else return Promise.resolve(new Jo)}};Zt.ProgressFeature=JC;var fl;(function(e){e.type=new Xt.ProgressType})(fl||(fl={}));var gl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(fl.type,this._token,t)}};function XC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new gl(e,n)}Zt.attachPartialResult=XC});var Dh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ConfigurationFeature=void 0;var ZC=ye(),e0=pl(),t0=e=>class extends e{getConfiguration(t){return t?e0.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(ZC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Xo.ConfigurationFeature=t0});var Rh=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.WorkspaceFoldersFeature=void 0;var Zo=ye(),n0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Zo.Emitter,this.connection.onNotification(Zo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Zo.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Zo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};es.WorkspaceFoldersFeature=n0});var Th=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.CallHierarchyFeature=void 0;var ml=ye(),r0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(ml.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=ml.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=ml.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ts.CallHierarchyFeature=r0});var wh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ShowDocumentFeature=void 0;var i0=ye(),o0=e=>class extends e{showDocument(t){return this.connection.sendRequest(i0.ShowDocumentRequest.type,t)}};ns.ShowDocumentFeature=o0});var kh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.FileOperationsFeature=void 0;var dr=ye(),s0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(dr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(dr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(dr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(dr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(dr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(dr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};rs.FileOperationsFeature=s0});var Ah=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.LinkedEditingRangeFeature=void 0;var a0=ye(),c0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(a0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};is.LinkedEditingRangeFeature=c0});var Oh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TypeHierarchyFeature=void 0;var hl=ye(),u0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(hl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=hl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=hl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};os.TypeHierarchyFeature=u0});var Eh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.InlineValueFeature=void 0;var qh=ye(),l0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(qh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(qh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};ss.InlineValueFeature=l0});var jh=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.FoldingRangeFeature=void 0;var Nh=ye(),p0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Nh.FoldingRangeRefreshRequest.type),on:t=>{let n=Nh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};as.FoldingRangeFeature=p0});var Mh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.InlayHintFeature=void 0;var yl=ye(),d0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(yl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(yl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(yl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};cs.InlayHintFeature=d0});var Lh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.DiagnosticFeature=void 0;var Jr=ye(),f0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Jr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Jr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Jr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.WorkspaceDiagnosticRequest.partialResult,n)))}}};us.DiagnosticFeature=f0});var Fh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.MonikerFeature=void 0;var g0=ye(),m0=e=>class extends e{get moniker(){return{on:t=>{let n=g0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ls.MonikerFeature=m0});var Zh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=pl(),vl=dl(),B=Sh(),h0=Dh(),y0=Rh(),b0=Th(),v0=sl(),x0=wh(),P0=kh(),_0=Ah(),C0=Oh(),S0=Eh(),D0=jh(),R0=Mh(),T0=Lh(),w0=ll(),k0=Fh();function bl(e){if(e!==null)return e}var xl=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=xl;var ps=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},Pl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(bl)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(bl)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(bl)}},Ih=(0,x0.ShowDocumentFeature)((0,B.ProgressFeature)(Pl)),Uh;(function(e){function t(){return new ds}e.create=t})(Uh||(Q.BulkRegistration=Uh={}));var ds=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=vl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Wh;(function(e){function t(){return new Xr(void 0,[])}e.create=t})(Wh||(Q.BulkUnregistration=Wh={}));var Xr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},fs=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof ds?this.registerMany(t):t instanceof Xr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=vl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=vl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new Xr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},_l=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Bh=(0,P0.FileOperationsFeature)((0,y0.WorkspaceFoldersFeature)((0,h0.ConfigurationFeature)(_l))),gs=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},ms=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},hs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=hs;var Hh=(0,D0.FoldingRangeFeature)((0,k0.MonikerFeature)((0,T0.DiagnosticFeature)((0,R0.InlayHintFeature)((0,S0.InlineValueFeature)((0,C0.TypeHierarchyFeature)((0,_0.LinkedEditingRangeFeature)((0,v0.SemanticTokensFeature)((0,b0.CallHierarchyFeature)(hs))))))))),ys=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=ys;var zh=(0,w0.NotebookSyncFeature)(ys);function $h(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=$h;function Yh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Yh;function Vh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Vh;function Kh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Kh;function Gh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Xh;function A0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,$h),tracer:n(e.tracer,t.tracer,Vh),telemetry:n(e.telemetry,t.telemetry,Yh),client:n(e.client,t.client,Kh),window:n(e.window,t.window,Gh),workspace:n(e.workspace,t.workspace,Qh),languages:n(e.languages,t.languages,Jh),notebooks:n(e.notebooks,t.notebooks,Xh)}}Q.combineFeatures=A0;function O0(e,t,n){let r=n&&n.console?new(n.console(ps)):new ps,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(gs)):new gs,s=n&&n.telemetry?new(n.telemetry(ms)):new ms,a=n&&n.client?new(n.client(fs)):new fs,c=n&&n.window?new(n.window(Ih)):new Ih,u=n&&n.workspace?new(n.workspace(Bh)):new Bh,d=n&&n.languages?new(n.languages(Hh)):new Hh,h=n&&n.notebooks?new(n.notebooks(zh)):new zh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let R,F,$,V={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(F=m,{dispose:()=>{F=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return u},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(V);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(F){let g=F(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return Y})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),V}Q.createConnection=O0});var Cl=S(je=>{"use strict";var q0=je&&je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ty=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&q0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var E0=sl();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return E0.SemanticTokensBuilder}});var N0=yh();ty(ye(),je);var j0=cl();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return j0.TextDocuments}});var M0=ll();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return M0.NotebookDocuments}});ty(Zh(),je);var ey;(function(e){e.all={__brand:"features",languages:N0.InlineCompletionFeature}})(ey||(je.ProposedFeatures=ey={}))});var ry=S((Fw,ny)=>{"use strict";ny.exports=ye()});var Sl=S(_t=>{"use strict";var L0=_t&&_t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),oy=_t&&_t.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&L0(t,e,n)};Object.defineProperty(_t,"__esModule",{value:!0});_t.createConnection=void 0;var bs=Cl();oy(ry(),_t);oy(Cl(),_t);var iy=!1,F0={initialize:e=>{},get shutdownReceived(){return iy},set shutdownReceived(e){iy=e},exit:e=>{}};function I0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),bs.ConnectionStrategy.is(e)||bs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,bs.createProtocolConnection)(o,s,u,a);return(0,bs.createConnection)(c,F0,i)}_t.createConnection=I0});var en=S((Uw,sy)=>{"use strict";sy.exports=Sl()});var Ml=S((Ek,hy)=>{"use strict";function Ct(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function my(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function NS(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var mr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),Ct(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=my(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Ct(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=my(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Ct(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];Ct(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":mr.normalize(t)},relative:function(t,n){if(Ct(t),Ct(n),t===n||(t=mr.resolve(t),n=mr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Ct(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ct(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){Ct(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return NS("/",t)},parse:function(t){Ct(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,u=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};mr.posix=mr;hy.exports=mr});import{createConfig as Td,loadConfig as Ex,DEFAULT_CONFIG as Nx}from"@redocly/openapi-core";var Wl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function N(P,C){for(var D,E="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)D=P.charCodeAt(K);else{if(D===47)break;D=47}if(D===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(E.length<2||M!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var Ce=E.lastIndexOf("/");if(Ce!==E.length-1){Ce===-1?(E="",M=0):M=(E=E.slice(0,Ce)).length-1-E.lastIndexOf("/"),q=K,z=0;continue}}else if(E.length===2||E.length===1){E="",M=0,q=K,z=0;continue}}C&&(E.length>0?E+="/..":E="..",M=2)}else E.length>0?E+="/"+P.slice(q+1,K):E=P.slice(q+1,K),M=K-q-1;q=K,z=0}else D===46&&z!==-1?++z:z=-1}return E}var j={resolve:function(){for(var P,C="",D=!1,E=arguments.length-1;E>=-1&&!D;E--){var M;E>=0?M=arguments[E]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=N(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=N(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var E=P.length,M=E-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,K=M<z?M:z,Ce=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>K&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=D+Ce+1;ee<=E;++ee)ee!==E&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,E=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){E=q;break}}else M=!1;return E===-1?D?"/":".":D&&E===1?"//":P.slice(0,E)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,E=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,K=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){E=D+1;break}}else K===-1&&(q=!1,K=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=K))}return E===M?M=K:M===-1&&(M=P.length),P.slice(E,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){E=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(E,M)},extname:function(P){b(P);for(var C=-1,D=0,E=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)E===-1&&(M=!1,E=z+1),K===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||E===-1||q===0||q===1&&C===E-1&&C===D+1?"":P.slice(C,E)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var E=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return E?E===D.root?E+M:E+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,E=P.charCodeAt(0),M=E===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,K=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((E=P.charCodeAt(ee))!==47)K===-1&&(Ce=!1,K=ee+1),E===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(C.base=C.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,K)):(C.name=P.slice(z,q),C.base=P.slice(z,K)),C.ext=P.slice(q,K)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var N=t[k]={exports:{}};return e[k](N,N.exports,n),N.exports}n.d=(k,b)=>{for(var N in b)n.o(b,N)&&!n.o(k,N)&&Object.defineProperty(k,N,{enumerable:!0,get:b[N]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>Cn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.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(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let u="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,N,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(E,M){return E||M?E:"file"})(b,D),this.authority=N||u,this.path=(function(E,M){switch(E){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||u),this.query=P||u,this.fragment=C||u,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:N,authority:j,path:P,query:C,fragment:D}=b;return N===void 0?N=this.scheme:N===null&&(N=u),j===void 0?j=this.authority:j===null&&(j=u),P===void 0?P=this.path:P===null&&(P=u),C===void 0?C=this.query:C===null&&(C=u),D===void 0?D=this.fragment:D===null&&(D=u),N===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(N,j,P,C,D)}static parse(b,N=!1){let j=h.exec(b);return j?new R(j[2]||u,X(j[4]||u),X(j[5]||u),X(j[7]||u),X(j[9]||u),N):new R(u,u,u,u,u)}static file(b){let N=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(N=b.substring(2),b=d):(N=b.substring(2,j),b=b.substring(j)||d)}return new R("file",N,b,u,u)}static from(b){let N=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(N,!0),N}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let N=new R(b);return N._formatted=b.external,N._fsPath=b._sep===y?b.fsPath:null,N}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let F={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 $(k,b,N){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||N&&D===91||N&&D===93||N&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let E=F[D];E!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=E):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function V(k){let b;for(let N=0;N<k.length;N++){let j=k.charCodeAt(N);j===35||j===63?(b===void 0&&(b=k.substr(0,N)),b+=F[j]):b!==void 0&&(b+=k[N])}return b!==void 0?b:k}function m(k,b){let N;return N=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(N=N.replace(/\//g,"\\")),N}function g(k,b){let N=b?V:$,j="",{scheme:P,authority:C,path:D,query:E,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=N(z,!1,!1):(j+=N(z.substr(0,q),!1,!1),j+=":",j+=N(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=N(C,!1,!0):(j+=N(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=N(D,!0,!1)}return E&&(j+="?",j+=N(E,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var Cn;(function(k){k.joinPath=function(b,...N){return b.with({path:Nt.join(b.path,...N)})},k.resolvePath=function(b,...N){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...N);return P&&C[0]===rn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let N=Nt.dirname(b.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),b.with({path:N})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(Cn||(Cn={})),Wl=r})();var{URI:Mt,Utils:ne}=Wl;import{CONFIG_FILE_NAME as Vy}from"@redocly/openapi-core";var Ms={languageId:"yaml",filePattern:/\.ya?ml$/i},Ls={languageId:"json",filePattern:/\.json$/i},js=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ms,Ls];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Vy);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new js;function Fs(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Mt.parse(e)}function st(e){return Mt.parse(e).fsPath}function br(e){let t=["https","http"],{scheme:n}=Mt.parse(e);return t.includes(n)}function vr(e){return ne.basename(Se(e))}async function Bl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as Ox,Source as Rd,readFileFromUrl as qx}from"@redocly/openapi-core";var vi=Le(On(),1);import{isAbsoluteUrl as kx}from"@redocly/openapi-core";function gd(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let R=s.get(u.uri)||[];d||(s.set(u.uri,[...R,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...R,{resolve:v,reject:y}])})}return c}function da(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function md(e){return e==="$ref"}async function fa(e,t){let n=Mt.parse(t);return ne.joinPath(n,e).toString()}async function hd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await fa(i,n)===t)return r}function yd(e){return typeof e=="string"}function Sr(e){return typeof e=="function"}function bd(e){return e?.kind===vi.Kind.MAP}function ga(e){return e?.kind===vi.Kind.MAPPING}function ma(e){return e?.kind===vi.Kind.SEQ}function Dr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ha(e){return kx(e)||e.startsWith("file://")}var xi=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=Pd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),u=this._lineOffsets,d=vd(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=vd(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&xd(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},Pi;(function(e){function t(i,o,s,a){return new xi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof xi)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=ya(o.map(Ax),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(Pi||(Pi={}));function ya(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ya(r,t),ya(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function vd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);xd(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function xd(e){return e===13||e===10}function Pd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Ax(e){let t=Pd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var _i=Le(On(),1),_d=new Map;function Cd(e,t){return _d.set(e,t)}function Sd(e){let t=[];for(let[n,r]of _d.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ve(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return Pi.create(e,"yaml",1,n)}function ba(e){return Ls.filePattern.test(e)}function Dd(e){return Ms.filePattern.test(e)}function pn({uri:e,ast:t,textDocument:n}){if(!(Dd(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=_i.safeLoad(i,{filename:e})}if(t?.kind===_i.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var mt=class extends Ox{resolveExternalRef(t,n){return ha(n)?n:t&&ha(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(br(t)){let{body:n,mimeType:r}=await qx(t,{...this.config.http,customFetch:fetch});return new Rd(t,n,r)}return new Rd(t,(await Ve(t)).getText())}};var Rt;async function Ci(e,t){try{let n=new mt,r=e?await be.findConfig(e):void 0;if(r===void 0)return Rt=await Td(Nx),Rt;Rt=await Ex({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Rt=await Td({})}return Rt}async function qn(e){return Rt||await Ci(e)}async function dn(e){return await va(e)?!0:!!Rt?.resolvedRefMap&&[...Rt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Fs(vr(e),n))}async function va(e){let t=await be.findConfig(e);return t?Fs(e,t):!1}var wd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Rr={type:"object",properties:wd,additionalProperties:!1},jx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ut={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},wd),{like:Rr,dislike:Rr,satisfied:Rr,neutral:Rr,dissatisfied:Rr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:jx},additionalProperties:!1}},additionalProperties:!1};var Mx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},xa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Si={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ut,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:xa,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Mx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var En={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Lx={type:"object",properties:{name:{type:"string"},items:En,queries:En,mutations:En,subscriptions:En,types:En,directives:En},required:["name"],additionalProperties:!1},Fx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Lx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Ix={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Ux={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Wx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Ix,license:Ux},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Fx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:xa,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ut,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:Wx},additionalProperties:!1};var Bx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Hx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},kd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},zx={type:"object",properties:{beforeInfo:{type:"array",items:kd},end:{type:"array",items:kd}}},fn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Di={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},$x={type:"object",properties:ki(fn.properties,["light","dark"])},Yx={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Vx={type:"object",properties:{error:Di,info:Di,redirect:Di,success:Di}},Kx={type:"object",properties:jn(fn.properties,["dark"])},Gx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Qx={type:"object",properties:{accent:fn,border:$x,error:fn,http:Yx,primary:fn,responses:Vx,secondary:Kx,success:fn,text:Gx,tonalOffset:{type:"number"},warning:fn}},Ri={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Jx={type:"object",properties:{small:Ri,medium:Ri,large:Ri,xlarge:Ri}},ht={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Xx={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Jx})},Ad={type:"object",properties:ki(ht.properties,["fontSize","lineHeight"])},Zx={type:"object",properties:{medium:Ad,small:Ad}},eP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Zx})},tP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},nP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Od={type:"object",properties:{fullWidth:{type:"boolean"}}},rP={type:"object",properties:{buttons:Xx,httpBadges:eP,layoutControls:tP,panels:nP,tryItButton:Od,tryItSendButton:Od}},wi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},iP={type:"object",properties:{maxWidth:wi}},oP={type:"object",properties:{maxWidth:wi,middlePanelMaxWidth:wi}},sP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:iP,"three-panel":oP}},qd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},aP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:qd,defaultDetailsWidth:{type:"string"},examples:qd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Nd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},cP={type:"object",properties:ki(Nd.properties,["textTransform"])},uP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},lP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Nd,level1items:cP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:uP,textColor:{type:"string"},width:{type:"string"}})},Ti={type:"object",properties:Object.assign(Object.assign({},ht.properties),{color:{type:"string"},transform:{type:"string"}})},pP={type:"object",properties:Object.assign(Object.assign({},ht.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},dP={type:"object",properties:jn(ht.properties,["fontSize"])},fP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},gP={type:"object",properties:Object.assign(Object.assign({code:pP,fieldName:ht},ki(ht.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ti,heading2:Ti,heading3:Ti,headings:dP,lineHeight:{type:"string"},links:fP,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ti,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},mP={type:"object",properties:Object.assign({color:{type:"string"}},jn(ht.properties,["fontWeight"]))},hP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:mP}},yP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},bP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Ed={type:"object",properties:{custom:{type:"string"}}},vP={type:"object",properties:{DownloadButton:Ed,NextSectionButton:Ed}},xP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},PP={type:"object",properties:{borderRadius:{type:"string"}}},_P={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},CP={type:"object",properties:{breakpoints:wi,codeBlock:hP,colors:Qx,components:rP,layout:sP,logo:yP,fab:bP,overrides:vP,rightPanel:xP,schema:aP,shape:PP,sidebar:lP,spacing:_P,typography:gP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},SP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Bx}},required:["languages"]},jd={type:"object",properties:{theme:CP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:SP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Hx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:zx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function ki(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Tt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Tr={rules:Tt,oas2Rules:Tt,oas3_0Rules:Tt,oas3_1Rules:Tt,oas3_2Rules:Tt,async2Rules:Tt,async3Rules:Tt,arazzo1Rules:Tt,overlay1Rules:Tt};var wt={type:"object",additionalProperties:!0},wr={preprocessors:wt,oas2Preprocessors:wt,oas3_0Preprocessors:wt,oas3_1Preprocessors:wt,oas3_2Preprocessors:wt,async2Preprocessors:wt,async3Preprocessors:wt,arazzo1Preprocessors:wt,overlay1Preprocessors:wt},kt={type:"object",additionalProperties:!0};var kr={decorators:kt,oas2Decorators:kt,oas3_0Decorators:kt,oas3_1Decorators:kt,oas3_2Decorators:kt,async2Decorators:kt,async3Decorators:kt,arazzo1Decorators:kt,overlay1Decorators:kt};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Md={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Pa={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},_a={type:"array",items:Object.assign(Object.assign({},Pa),{properties:Object.assign(Object.assign({},Pa.properties),{items:{type:"array",items:Pa}})})},DP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},RP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},TP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},wP={type:"object",properties:Object.assign({facets:TP},Re.properties),additionalProperties:!1},kP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Ai={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Oi={type:"object",properties:Object.assign({items:_a},Re.properties),additionalProperties:!1},qi={type:"object",additionalProperties:DP},Ei={type:"object",properties:Object.assign({items:_a,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Ni={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},ji={type:"object",properties:{head:{type:"array",items:Md},body:{type:"array",items:Md}},additionalProperties:!1},Mi={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Li={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:RP,filters:wP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:kP}},Re.properties),additionalProperties:!1},Fi={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Ii={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},AP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},Ui={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:AP},additionalProperties:!1},Wi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Bi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Mn=Object.assign(Object.assign({},Si),{properties:Object.assign(Object.assign({},Si.properties),jd.properties)}),OP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},qP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},EP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},NP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},jP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},MP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},LP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Ca={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},FP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:Ca}},additionalProperties:!1,required:["trackingId"]},Hi={type:"object",properties:{adobe:OP,amplitude:qP,fullstory:EP,heap:NP,rudderstack:jP,segment:MP,gtm:LP,ga:FP}},zi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},$i={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Yi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},IP={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},UP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:IP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:_a,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":UP}},Fn={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Tr),wr),kr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var WP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},BP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},HP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},At={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:BP},excludes:{type:"array",items:WP},filters:{type:"array",items:HP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},zP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},$P={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:zP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},YP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:$P,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},VP={type:"object",additionalProperties:YP},Vi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:VP,catalogs:{type:"object",properties:{all:At,services:At,domains:At,teams:At,users:At,apiDescriptions:At,dataSchemas:At,apiOperations:At},additionalProperties:At}},additionalProperties:!1};var Ar={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},Sa={type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},KP={type:"object",properties:{operator:Ar,conditions:{type:"array",items:Sa}},required:["operator","conditions"],additionalProperties:!1},Ld={type:"array",items:{oneOf:[Sa,{type:"object",properties:{operator:Ar,conditions:{type:"array",items:{oneOf:[Sa,KP]}}},required:["operator","conditions"],additionalProperties:!1}]}},Id={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},GP={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Id},required:["subject","assertions"],additionalProperties:!1}},QP={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Id,where:GP,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},JP={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},QP]}},XP={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:JP},required:["name"],additionalProperties:!1},Fd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},ZP={oneOf:[Fd,{type:"array",items:Fd}]},e_={type:"object",properties:{name:{type:"string"},description:{type:"string"},entities:{oneOf:[Ld,{type:"object",properties:{operator:Ar,conditions:Ld},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:XP,minItems:1},trigger:ZP},required:["name","entities","levels"],additionalProperties:!1},Ki={type:"array",items:e_};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn},additionalProperties:!0};var Ra="https://redocly.com/sso/teams",In;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(In||(In={}));var Un;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Un||(Un={}));var Da;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Da||(Da={}));var Ta=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"];function Gi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Gi(i,t):i)]:[n,Gi(r,t)]}).filter(Boolean))}var t_={type:"object",additionalProperties:{type:"string"}},n_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Qi={type:"string",enum:["error","warn","off"]},r_={type:"object",additionalProperties:!1,properties:{schemaCheck:Qi,statusCodeCheck:Qi,contentTypeCheck:Qi,successCriteriaCheck:Qi}},i_={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},o_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},s_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ud={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[i_,o_]},inputs:t_,servers:n_,severity:r_,slo:s_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var a_={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},c_={type:"object",properties:{type:{type:"string",const:In.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:a_,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},u_={type:"object",properties:{type:{type:"string",const:In.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Ra},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},l_={oneOf:[c_,u_],discriminator:{propertyName:"type"}},p_={type:"object",additionalProperties:l_},d_={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},f_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},g_={type:"object",additionalProperties:f_,default:{}},m_={type:"string",enum:["info","success","warning","error"],default:"info"},h_={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:m_},required:["content"],additionalProperties:!1},y_={type:"array",items:h_,default:[]},ka={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Mn,graphql:Nn,theme:{type:"object",properties:{openapi:Mn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Tr),wr),kr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},b_={type:"object",additionalProperties:!0},v_={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Wd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Bd={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Wd},default:{llmstxt:Wd.default},additionalProperties:!1},x_={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},gn={type:"object",additionalProperties:{type:"string"}},zd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:gn,cms:gn,reunite:gn,features:{type:"object",properties:{aiSearch:gn},additionalProperties:!1},content:{type:"object",properties:{"**":gn},additionalProperties:gn}},additionalProperties:gn},P_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},__={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},C_={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[P_,__]}},additionalProperties:!1,required:["type","apiBaseUrl"]},S_={type:"object",properties:{type:{type:"string",const:Un.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},D_={type:"object",properties:{type:{type:"string",const:Un.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},wa={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[S_,D_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},R_=Object.assign(Object.assign({},wa),{properties:Object.assign(Object.assign({},wa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),T_={type:"object",oneOf:[wa,R_,C_],discriminator:{propertyName:"type"}},w_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:T_}}},Hd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},k_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},A_={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},Or={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:g_,seo:Bd,rbac:zd,apiFunctions:x_,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:k_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ka},extends:{type:"array",items:{type:"string"}}},Tr),kr),wr),{ssoDirect:p_,sso:d_,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:w_,removeAttribution:{type:"boolean"},i18n:Hd,l10n:Hd,metadata:b_,metadataGlobs:v_,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Ud,logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn,mcp:A_,banner:y_}),default:{redirects:{},seo:Bd.default},additionalProperties:!0},O_=Object.assign(Object.assign({},Gi(Or,"default")),{additionalProperties:!1}),Aa=Object.assign(Object.assign({$id:"root-redocly-config"},Or),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Or.properties),{env:{type:"object",additionalProperties:O_}}),default:{},additionalProperties:!1});var Oa={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,mockServer:Or.properties.mockServer,analytics:{type:"object",properties:{ga:Ca}}},additionalProperties:!0,default:{}},q_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Oa.properties),{apis:{type:"object",additionalProperties:ka},theme:Oa}),additionalProperties:!1};var E_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},N_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},j_={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},M_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0};var L_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},F_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},I_={type:"object",properties:{type:{type:"string",enum:Ta},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Wt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:L_,links:{type:"array",items:F_},relations:{type:"array",items:I_},metadata:{type:"object",additionalProperties:!0}},Ji={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"user"},metadata:E_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-operation"},metadata:j_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"data-schema"},metadata:M_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-description"},metadata:N_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},Xi={type:"object",properties:Object.assign({},Wt),required:["key","title","type"],additionalProperties:!1};var Fe=Le(en(),1);import{getLineColLocation as Q0,lintDocument as J0,makeDocumentFromString as xs,lintConfig as X0,lintEntityFile as Z0,detectSpec as eS,createConfigTypes as tS}from"@redocly/openapi-core";import{bundleDocument as U0,isPlainObject as W0,makeDocumentFromString as B0,getTypes as H0,detectSpec as z0}from"@redocly/openapi-core";var ay=new Map,vs=new Map;function $0(e){return e?Array.from(e).map(([t,n])=>[t,da(n)]):[]}async function Dl(e,t){let n=await qn(),r=new mt(n.resolve),i=B0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:u}=await U0({document:i,config:n,externalRefResolver:r,types:H0(z0(i.parsed))}),d=$0(u);u&&(vs=new Map([...vs,...u])),ay.set(e.uri,{uri:e.uri,name:vr(e.uri),definition:W0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function Y0(){return Array.from(ay).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:vr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Rl(e){return vs.has(e)?vs.get(e):null}import{createConfig as V0,lintDocument as K0}from"@redocly/openapi-core";async function cy(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await G0(i):i,c=await V0({...s,plugins:a},{configPath:r}),u=await K0({document:e,externalRefResolver:t,config:c});o.push(...u.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function G0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
|
|
70
|
+
Plugins code preview:`,e.substring(0,500)+"..."),[]}}var nS=800,wl=gd(sS,nS);async function rS(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await qn(),r=await be.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await fa(i,r);if(t.includes(o))return o}return t[0]}function iS(e){try{return eS(e),!0}catch{return!1}}async function oS(e){try{let t=xs(e.getText(),e.uri),n=new mt,r=await Z0({document:t,entitySchema:Ji,entityDefaultSchema:Xi,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return Tl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function sS(e){let t=e.uri,n=await qn();if(await dn(st(t)))try{let r=await va(st(t))?xs(e.getText(),t):xs(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new mt,o=await X0({config:{document:r},externalRefResolver:i,externalConfigTypes:tS(Aa,n)}),s=[{uri:e.uri,diagnostics:[]}];return Tl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(pn({uri:st(t),textDocument:e}))return await oS(e);{let r=Sd(t),i=await rS(r||[]);i&&(e=await Ve(i),t=i);let o;try{o=xs(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!iS(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new mt(n.resolve),c=await be.getRootWorkspaceFolderURI(),u=await hd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await J0({document:o,config:n.forAlias(u),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=be.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,V=$&&be.scorecardStatus==="enabled"?await cy(o,a,$,n.configPath,be.remoteScorecardAndPlugins?.plugins):[];h=[...v,...V]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=lS(v);Dl(e,y);let R=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),Cd(t,{dependencyPaths:a.getFiles(),durationMS:R}),Tl(h,s)}catch(a){aS(e.uri,a,s)}return s}}}function Zr(){return be.documents.all().map(wl)}function aS(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Se(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Fe.Position.create(o,s),c=Fe.Diagnostic.create(Fe.Range.create(a,a),t.message,Fe.DiagnosticSeverity.Error);uy(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function uy(e,t,n){let r=n.find(i=>i.uri===e);return r||(r={uri:e,diagnostics:[]},n.push(r)),r.diagnostics.push(t),n}function cS(e){return e.suggest.length===0?"":e.suggest.length===1?`
|
|
71
71
|
Did you mean: ${e.suggest[0]} ?`:`
|
|
72
72
|
Did you mean:
|
|
73
73
|
- ${e.suggest.join(`
|
|
74
|
-
- `)}`}function
|
|
75
|
-
Scorecard level: ${e.scorecardLevel}`:""}function Tl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Fe.DiagnosticSeverity.Error;break;case"warn":r=Fe.DiagnosticSeverity.Warning;break;default:r=Fe.DiagnosticSeverity.Warning}let i=V0(n.location[0]),o=Se(i.source.absoluteRef).toString(),s=Fe.Position.create(i.start.line-1,i.start.col-1),a=i.end?Fe.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+oS(n)+sS(n),u=Fe.Diagnostic.create(Fe.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");uy(o,u,t)})}function aS(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var As=Le(en(),1);var fe=Le(en(),1);function _e(e,t){return e?t?Ps[e+"_"+t]||t:Ps[e]||Ps.Default:Ps.Default}var cS=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],Ps=cS.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var tn="newItem",ei="propertyName",fr="newLine";function _s(e){return!!(e?.name&&ly[e.name])}function kl(e){return ly[e]||[]}var ly={[fr]:[{label:"newLine",kind:fe.CompletionItemKind.Constructor,data:{},sortText:_e(fr)}],[ei]:[{label:ei,kind:fe.CompletionItemKind.Constructor,data:{properties:{}},sortText:_e(ei)}],ServerVariable_Map:[{label:"newVariableName",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:fe.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/json",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/octet-stream",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"multipart/form-data",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/xml",kind:fe.CompletionItemKind.Property,data:[],sortText:_e("MediaTypeMap")}]};import{Oas2Types as uS,Oas3Types as lS,Oas3_1Types as pS,Oas3_2Types as py,AsyncApi2Types as dS,AsyncApi3Types as fS,Arazzo1Types as gS,ConfigTypes as mS,normalizeTypes as Ol,getMajorSpecVersion as hS,createEntityTypes as yS}from"@redocly/openapi-core";var lt=Le(On(),1);var Al=new Map;async function bS(e,t){let n=await Ve(e),r=n.getText(),i=lt.safeLoad(r,{filename:e}),{nodePath:o}=Cs({node:i,nodePath:[]},t,n,!0),s=await ql(i,e),{version:a}=Nl(i),{currentType:c,parentType:u,endPath:d}=Ss(s,o,i),h=ti(i),v=c?.name?c:u;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function vS(e){let n=(await Ve(e)).getText(),r=lt.safeLoad(n,{filename:e});return El(r)}function dy(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,ma(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(bd(n)){let o=Ds(n);for(let s of o)if(ga(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function xS(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function Cs(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=Ds(i);if(a.length===0||PS(i)||!r&&_S(i,n,t))return e;let c=CS(a,s);return Cs({nodePath:SS(o,i,a[c],c),node:a[c]},t,n,r)}function PS(e){return e?.kind===lt.Kind.MAPPING&&!e?.value}function _S(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=DS(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function CS(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function SS(e,t,n,r){return ma(t)?[...e,r]:ga(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function DS(e,t){let n=e?.startPosition??0,r=xS(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function Ss(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let u;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)u=e.items;else if(Sr(e.items)){let d=RS(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],Sr(u)&&(u=u(null,a));else if(e?.additionalProperties&&!Sr(e?.additionalProperties))u=e.additionalProperties;else if(Sr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(u=d)}u&&(e=u,o[c]=u)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=null);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function RS(e,t){let n={};if(e.kind===lt.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function ql(e,t){if(await dn(t)||await dn(st(t)))return Ol(mS).ConfigRoot;if(pn({uri:t,ast:e})||pn({uri:st(t),ast:e})){let o=yS(Ji,Xi),s=Ol(o);if(e?.kind===lt.Kind.SEQ)return s.EntityFileArray;let a=TS(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=kS(e);if(!e)return n;let i=r?Rl(t):n;return r&&!Rl(t)&&e?null:i||n}function TS(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function wS(e){if(Al.has(e))return Al.get(e);let t=Ol(AS(e)).Root;return Al.set(e,t),t}function El(e){let t,n=!1;if(e?.kind===lt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.2")){t="oas3_2";break}if(i==="openapi"&&o.startsWith("3.1")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.0")){t="oas3_0";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo")return{version:"arazzo1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function Nl(e){let{version:t,isDefault:n}=El(e);return{version:hS(t),isDefault:n}}function kS(e){let{version:t,isDefault:n}=El(e);return{types:wS(t),isDefault:n}}function Ds(e){switch(e?.kind){case lt.Kind.MAPPING:return[e.key,e.value];case lt.Kind.MAP:return e.mappings;case lt.Kind.SEQ:return e?.items;default:return[]}}function AS(e){switch(e){case"oas3_2":return py;case"oas3_1":return pS;case"oas3_0":return lS;case"oas2":return uS;case"async2":return dS;case"async3":return fS;case"arazzo1":return gS;default:return py}}function ti(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:yd(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ti(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ti(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as fy}from"@redocly/openapi-core";var jl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function gy(e){let t=jl[e.name];return t&&t.forEach(n=>{e.properties[n.name]=n.value}),e}var Rs=Le(en(),1),pt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||Rs.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:u,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&u?this.getTextEdit(c,d,u):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return Rs.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var gr=Le(en(),1),_n=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?gr.InsertTextFormat.PlainText:gr.InsertTextFormat.Snippet,this.kind=t||gr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===gr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ni={example:"example",default:"default",enum:"enum",ref:"$ref"},Ts=[ni.default,ni.example];var by=Le(On(),1);var we={};Es(we,{default:()=>yy.default});Ns(we,Le(Ml()));var yy=Le(Ml());function qS(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=Ss(e,r,n);if(i?.name){let[o]=jl[i.name]||[];return o?.value}return null}function ES(e,t,n){let r=t[t.length-1];if(md(r))return qS(e,t,n);let{currentType:i}=Ss(e,t,n);return i?_s(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:ei,properties:{}}:i:null}async function vy(e,t){let n=await Ve(e),r=n.getText(),i=(0,by.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=Cs({node:i,nodePath:[]},t,n),a=await ql(i,e),c=ES(a,s,i),u=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(u),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:u,openApiType:c}}async function xy(e,t){let n=ne.resolvePath(Se(e)),r=ne.dirname(n),i=await Bl(ne.joinPath(r,t),r.path),o=ne.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,we.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Py=Le(en(),1);var ws=class extends pt{constructor(t){super(t),this.kind=Py.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var _y=Le(en(),1);var ks=class extends pt{constructor(t){super(t),this.kind=_y.CompletionItemKind.File}};var jS=be.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function MS(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,we.resolve)(n.path,t,".."),s=r?o:(0,we.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:_e("FolderCompletion"),value:`${s}${a}`}}async function LS(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ne.resolvePath(i,s),c=await be.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(u=>u.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function Cy(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(MS(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,we.resolve)(i.path,c),h=(0,we.relative)(n.path,d),v=s.includes(we.sep)?s.slice(0,s.lastIndexOf(we.sep)+1):s+we.sep,y=r?d:h;if(u===0)return{type:u,name:c,value:y,sortBy:`${_e("FileCompletion")}${c}`,matchBy:`${v}${c}`};let R=`${c}/`;return{type:u,name:R,value:`${y}${h?"/":""}`,sortBy:`${_e("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function Sy(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:u,type:d}=o,h={label:s,filterText:Dr(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new ws(h):new ks(h)})}async function Dy(e,t){let{node:n}=t,r=n.value??"",i=await xy(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await be.fs.readDir(o)}catch{return Sy(Cy([],i),t)}let a=await LS(s,{supportedFiles:jS},i);return Sy(Cy(a,i),t)}import{isEmptyObject as FS}from"@redocly/openapi-core";function Ry(e,t){if(t?.items)return"- "+Ry(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
|
|
76
|
-
`);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function
|
|
74
|
+
- `)}`}function uS(e){return e.scorecardLevel?`
|
|
75
|
+
Scorecard level: ${e.scorecardLevel}`:""}function Tl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Fe.DiagnosticSeverity.Error;break;case"warn":r=Fe.DiagnosticSeverity.Warning;break;default:r=Fe.DiagnosticSeverity.Warning}let i=Q0(n.location[0]),o=Se(i.source.absoluteRef).toString(),s=Fe.Position.create(i.start.line-1,i.start.col-1),a=i.end?Fe.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+` Rule: ${n.ruleId}.`+cS(n)+uS(n),u=Fe.Diagnostic.create(Fe.Range.create(s,a),c,r,void 0,"Redocly OpenAPI");uy(o,u,t)})}function lS(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var As=Le(en(),1);var fe=Le(en(),1);function _e(e,t){return e?t?Ps[e+"_"+t]||t:Ps[e]||Ps.Default:Ps.Default}var pS=["newLine","MediaTypeMap","PathMap","propertyName","newItem","Root_openapi","Root","Info","Root_info","Info_title","Info_summary","Info_description","Info_termsOfService","Info_contact","Contact_name","Contact_url","Contact_email","Info_license","License_name","License_identifier","License_url","Info_version","Root_jsonSchemaDialect","jsonSchemaDialect","Root_servers","Server_List","Server_url","Server_description","Server_variables","Root_paths","Root_webhooks","Root_components","Root_security","Root_tags","Root_externalDocs","LocalComponentCompletion","FolderCompletion","FileCompletion","Default"],Ps=pS.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var tn="newItem",ei="propertyName",fr="newLine";function _s(e){return!!(e?.name&&ly[e.name])}function kl(e){return ly[e]||[]}var ly={[fr]:[{label:"newLine",kind:fe.CompletionItemKind.Constructor,data:{},sortText:_e(fr)}],[ei]:[{label:ei,kind:fe.CompletionItemKind.Constructor,data:{properties:{}},sortText:_e(ei)}],ServerVariable_Map:[{label:"newVariableName",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:fe.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:fe.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/json",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/octet-stream",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"multipart/form-data",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:fe.CompletionItemKind.Property,data:{properties:{}},sortText:_e("MediaTypeMap")},{label:"application/xml",kind:fe.CompletionItemKind.Property,data:[],sortText:_e("MediaTypeMap")}]};import{Oas2Types as dS,Oas3Types as fS,Oas3_1Types as gS,Oas3_2Types as py,AsyncApi2Types as mS,AsyncApi3Types as hS,Arazzo1Types as yS,ConfigTypes as bS,normalizeTypes as Ol,getMajorSpecVersion as vS,createEntityTypes as xS}from"@redocly/openapi-core";var lt=Le(On(),1);var Al=new Map;async function PS(e,t){let n=await Ve(e),r=n.getText(),i=lt.safeLoad(r,{filename:e}),{nodePath:o}=Cs({node:i,nodePath:[]},t,n,!0),s=await ql(i,e),{version:a}=Nl(i),{currentType:c,parentType:u,endPath:d}=Ss(s,o,i),h=ti(i),v=c?.name?c:u;return{nodePath:o,endPath:d,type:v,existingValues:h,types:s,descriptionVersion:a}}async function _S(e){let n=(await Ve(e)).getText(),r=lt.safeLoad(n,{filename:e});return El(r)}function dy(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,ma(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(bd(n)){let o=Ds(n);for(let s of o)if(ga(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function CS(e,t){for(let n=0;n<t.length;n++)if(n===t.length-1||t[n+1]>e)return n;return t.length-1}function Cs(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),a=Ds(i);if(a.length===0||SS(i)||!r&&DS(i,n,t))return e;let c=RS(a,s);return Cs({nodePath:TS(o,i,a[c],c),node:a[c]},t,n,r)}function SS(e){return e?.kind===lt.Kind.MAPPING&&!e?.value}function DS(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=wS(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function RS(e,t){for(let n=1;n<e.length;n++){let r=e[n];if(r&&r.startPosition>t)return n-1}return e.length-1}function TS(e,t,n,r){return ma(t)?[...e,r]:ga(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function wS(e,t){let n=e?.startPosition??0,r=CS(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function Ss(e,t,n){let r=e,i,o=new Array(t.length).fill(null);t.forEach((a,c)=>{let u;if(e?.name&&e?.name!==r?.name&&(r=e,i=a),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items){if(e.items.properties)u=e.items;else if(Sr(e.items)){let d=kS(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],Sr(u)&&(u=u(null,a));else if(e?.additionalProperties&&!Sr(e?.additionalProperties))u=e.additionalProperties;else if(Sr(e?.additionalProperties)&&a){let d=e.additionalProperties(null,a);d&&(u=d)}u&&(e=u,o[c]=u)}),e?.name&&r?.name&&e?.name!==r?.name&&(i=null);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function kS(e,t){let n={};if(e.kind===lt.Kind.SEQ&&e.items?.[t]){let r=e.items?.[t]?.mappings??[];for(let i of r)i.key?.value&&(n[i.key?.value]=i.value?.value)}return n}async function ql(e,t){if(await dn(t)||await dn(st(t)))return Ol(bS).ConfigRoot;if(pn({uri:t,ast:e})||pn({uri:st(t),ast:e})){let o=xS(Ji,Xi),s=Ol(o);if(e?.kind===lt.Kind.SEQ)return s.EntityFileArray;let a=AS(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=qS(e);if(!e)return n;let i=r?Rl(t):n;return r&&!Rl(t)&&e?null:i||n}function AS(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function OS(e){if(Al.has(e))return Al.get(e);let t=Ol(ES(e)).Root;return Al.set(e,t),t}function El(e){let t,n=!1;if(e?.kind===lt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.2")){t="oas3_2";break}if(i==="openapi"&&o.startsWith("3.1")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.0")){t="oas3_0";break}if(i==="swagger"&&o==="2.0"){t="oas2";break}if(i==="asyncapi"&&o.startsWith("2."))return{version:"async2",isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:"async3",isDefault:!1};if(i==="arazzo")return{version:"arazzo1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function Nl(e){let{version:t,isDefault:n}=El(e);return{version:vS(t),isDefault:n}}function qS(e){let{version:t,isDefault:n}=El(e);return{types:OS(t),isDefault:n}}function Ds(e){switch(e?.kind){case lt.Kind.MAPPING:return[e.key,e.value];case lt.Kind.MAP:return e.mappings;case lt.Kind.SEQ:return e?.items;default:return[]}}function ES(e){switch(e){case"oas3_2":return py;case"oas3_1":return gS;case"oas3_0":return fS;case"oas2":return dS;case"async2":return mS;case"async3":return hS;case"arazzo1":return yS;default:return py}}function ti(e,t,n){if(typeof t>"u"&&(t={}),typeof n>"u"&&(n=0),!e)return{};let r=e?.mappings||e?.items;if(r){let i=0;for(let o of r)o?.value===null||!o?.value?.value?t[o?.key?.value||i]={value:yd(o?.value)?o?.value:null,startOffset:o?.key?.value?o.startPosition+o.key.value.length+1:null,endOffset:null,indent:n}:t[o?.key?.value||i]={value:o?.value?.value,rawValue:o?.value?.rawValue||null,startOffset:o?.value?.startPosition||null,endOffset:o?.value?.endPosition||null,indent:n},Object.keys(o?.value||o||{}).includes("items")?(t[o?.key?.value||i]={type:"sequence",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ti(o?.value||o,t[o?.key?.value||i],n+1)):Object.keys(o?.value||o||{}).includes("mappings")&&(t[o?.key?.value||i]={type:"map",startOffset:o.startPosition,endOffset:o.endPosition,indent:n,value:null},ti(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as fy}from"@redocly/openapi-core";var jl={Schema:[{name:"$ref",value:{type:"string",name:"Schema"}}],PathItem:[{name:"$ref",value:{type:"string",name:"PathItem"}}],Parameter:[{name:"$ref",value:{type:"string",name:"Parameter"}}],Response:[{name:"$ref",value:{type:"string",name:"Response"}}],Example:[{name:"$ref",value:{type:"string",name:"Example"}}],RequestBody:[{name:"$ref",value:{type:"string",name:"RequestBody"}}],Header:[{name:"$ref",value:{type:"string",name:"Header"}}],SecuritySchema:[{name:"$ref",value:{type:"string",name:"SecuritySchema"}}],Link:[{name:"$ref",value:{type:"string",name:"Link"}}],Callback:[{name:"$ref",value:{type:"string",name:"Callback"}}]};function gy(e){let t=jl[e.name];return t&&t.forEach(n=>{e.properties[n.name]=n.value}),e}var Rs=Le(en(),1),pt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||Rs.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:u,position:d}=a;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c?.value&&d&&u?this.getTextEdit(c,d,u):void 0)}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return Rs.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var gr=Le(en(),1),_n=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i||n.includes("$")?gr.InsertTextFormat.PlainText:gr.InsertTextFormat.Snippet,this.kind=t||gr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===gr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var ni={example:"example",default:"default",enum:"enum",ref:"$ref"},Ts=[ni.default,ni.example];var by=Le(On(),1);var we={};Es(we,{default:()=>yy.default});Ns(we,Le(Ml()));var yy=Le(Ml());function jS(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=Ss(e,r,n);if(i?.name){let[o]=jl[i.name]||[];return o?.value}return null}function MS(e,t,n){let r=t[t.length-1];if(md(r))return jS(e,t,n);let{currentType:i}=Ss(e,t,n);return i?_s(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:ei,properties:{}}:i:null}async function vy(e,t){let n=await Ve(e),r=n.getText(),i=(0,by.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=Cs({node:i,nodePath:[]},t,n),a=await ql(i,e),c=MS(a,s,i),u=n._lineOffsets[t.line],d=n.getText({start:n.positionAt(u),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:d,lineOffset:u,openApiType:c}}async function xy(e,t){let n=ne.resolvePath(Se(e)),r=ne.dirname(n),i=await Bl(ne.joinPath(r,t),r.path),o=ne.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,we.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Py=Le(en(),1);var ws=class extends pt{constructor(t){super(t),this.kind=Py.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var _y=Le(en(),1);var ks=class extends pt{constructor(t){super(t),this.kind=_y.CompletionItemKind.File}};var FS=be.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function IS(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,we.resolve)(n.path,t,".."),s=r?o:(0,we.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:_e("FolderCompletion"),value:`${s}${a}`}}async function US(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=ne.resolvePath(i,s),c=await be.fs.stat(a);c.isFile()&&a.path!==o.path&&t.supportedFiles.some(u=>u.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function Cy(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(IS(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,we.resolve)(i.path,c),h=(0,we.relative)(n.path,d),v=s.includes(we.sep)?s.slice(0,s.lastIndexOf(we.sep)+1):s+we.sep,y=r?d:h;if(u===0)return{type:u,name:c,value:y,sortBy:`${_e("FileCompletion")}${c}`,matchBy:`${v}${c}`};let R=`${c}/`;return{type:u,name:R,value:`${y}${h?"/":""}`,sortBy:`${_e("FolderCompletion")}${c}`,matchBy:`${v}${c}`}}))}function Sy(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:a,matchBy:c,sortBy:u,type:d}=o,h={label:s,filterText:Dr(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new ws(h):new ks(h)})}async function Dy(e,t){let{node:n}=t,r=n.value??"",i=await xy(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await be.fs.readDir(o)}catch{return Sy(Cy([],i),t)}let a=await US(s,{supportedFiles:FS},i);return Sy(Cy(a,i),t)}import{isEmptyObject as WS}from"@redocly/openapi-core";function Ry(e,t){if(t?.items)return"- "+Ry(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
|
|
76
|
+
`);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function BS(e,t,n,r){if(e===tn)return"";if(r?.items||r?.required){let i=`
|
|
77
77
|
`;return n.includes(`
|
|
78
78
|
`)&&(i+=" "),i}return n.includes(`
|
|
79
|
-
`)||!t?"":" "}function
|
|
80
|
-
`:e?.includes(":")&&!e?.includes(": ")?" ":""}function
|
|
79
|
+
`)||!t?"":" "}function HS(e){return e===tn?"":": "}function zS(e){return e?.includes(":")||e?.includes(": ")?`
|
|
80
|
+
`:e?.includes(":")&&!e?.includes(": ")?" ":""}function $S(e,t){return!t||WS(t)?"":e.includes(`
|
|
81
81
|
`)?`
|
|
82
82
|
`:`
|
|
83
83
|
`}function ri(e,t,n=!0){if(e===fr)return`
|
|
84
|
-
`;let r=
|
|
84
|
+
`;let r=zS(t?.lineText),i=HS(e),o=e===tn?"":e,s=Ry(e,t),a=BS(e,s,r,t),c=n?$S(r,t?.properties):" ";return`${r}${o}${i}${a}${s}${c}`}function YS(e,t){let{version:n}=Nl(e),r=fy(t,n);if(!r)return[];let i=dy(e,["components",r]);return i?(Ds(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function VS(e){let{node:t,position:n,lineOffset:r}=e,i=Ts.includes(t.key?.value)?t:Ts.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===ni.enum)?.value?.items?.map(({value:s})=>new pt({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function KS(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?YS(i,r.name):[];return[...await Dy(e,t),...a.map(u=>{let d=Dr(u,s);return new pt({label:u,filterText:Dr(u,s),value:d,sortText:`${_e("LocalComponentCompletion")}${u}`,data:{lineOffset:o,position:n,node:s}})})]}function GS(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new pt({label:o,kind:As.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function QS(e,t){let{node:n,position:r,lineOffset:i}=t;return["true","false"].map(o=>new pt({label:o,data:{node:n,position:r,lineOffset:i}}))}function JS(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=ZS(t,n,r);return eD(i,s,o)}async function XS(e,t){let{node:n,nodePath:r,openApiType:i}=t;if(!n)return[];let o=n.key?.value||(r.length?r[r.length-1]:null);return o&&i?.name&&ni.ref===o?KS(e,t):Ts.includes(o)?VS(t):i?.enum?GS(t):i?.type==="boolean"?QS(e,t):[]}async function Ty(e,t){let n=await vy(e,t);return n.openApiType?.properties?JS(n):XS(e,n)}function ZS(e,t,n){if(!e)return[];let i=ti(e);for(let a=0;a<t.length;a++)i[t[a]]&&(i=i[t[a]]);let o=i?Object.keys(i).filter(a=>i[a]&&typeof i[a]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let a=s.map(c=>c.key?.value||null);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function eD(e,t,n){if(!e)return[];if(gy(e),_s(e))return kl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new _n({...r,insertText:ri(r.label,{...r.data,...e,lineText:n})}));if(e.properties&&Object.keys(e.properties).length){let r=Object.keys(e.properties).filter(i=>!t.includes(i)).map(i=>{let o={...e.properties[i]||{},lineText:n};return new _n({label:i,kind:As.CompletionItemKind.Property,insertText:ri(i,o,!o?.items),sortText:_e(e?.name,i)})});return n.endsWith(":")&&r.push(...kl(fr).map(i=>new _n({...i,insertText:ri(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new _n({label:tn,kind:As.CompletionItemKind.Constructor,insertText:ri(tn,{...e,lineText:n}),sortText:_e(tn)})]:[]}var Et=Le(Sl(),1);var nn=Le(On(),1);import{getAstNodeByPointer as tD}from"@redocly/openapi-core";async function nD({position:e,textDocument:t,value:n,line:r,document:i}){let[o,s]=n.split("#/"),a=r.indexOf(n),c=a+n.length;if(e.character>=a&&a!==-1){let u=o?ne.joinPath(ne.dirname(Mt.parse(i.uri)),o).toString():t.uri,d;try{d=await Ve(u)}catch{return}let h=(0,nn.safeLoad)(d.getText(),{filename:st(u)}),v=tD(h,`#/${s}`,!0),y=Et.Range.create(d.positionAt(v?.startPosition||0),d.positionAt(v?.endPosition||0));return[Et.LocationLink.create(u,Et.Range.create(0,0,d.lineCount,0),y,Et.Range.create(Et.Position.create(e.line,a),Et.Position.create(e.line,c)))]}}async function wy({position:e,textDocument:t}){let n;try{n=await Ve(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,nn.safeLoad)(o,{filename:st(t.uri)}),a;switch(s.kind){case nn.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case nn.Kind.MAP:{a=s?.mappings?.[0];break}case nn.Kind.SEQ:{let u=s?.items?.[0];a=u?.kind===nn.Kind.MAP?u?.mappings?.[0]:{value:{value:u?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!br(c))return nD({position:e,textDocument:t,value:c,line:o,document:n})}var rD=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(rD||{});var ky=class{async onCompletion(t){let{uri:n}=t.textDocument;return ba(n)?[]:Ty(n,t.position)}async onCompletionResolve(t){return t}async validateOpenAPI(t){return wl(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await dn(i.uri));if(n)return await Ci(n.uri),Zr();if(t.changes.find(i=>pn({uri:i.uri})))return Zr()}async onDidConfigChange(t){return await Ci(t),Zr()}async onDidChangeConfiguration(){return Zr()}async onDefinition(t){let{uri:n}=t.textDocument;return ba(n)?[]:await wy(t)||[]}};export{rD as ContextErrorCodes,ky as OpenapiLanguageServer,Dl as bundleOpenAPI,Y0 as getBundles,qn as getConfigData,PS as getContextData,Ve as getDocumentByURI,_S as getSpecVersion,dn as isConfigFile,pn as isEntityFile,br as isHttpPath,Dd as isYamlFile,be as languageServerConfig,Ci as loadOpenAPIConfig,Se as parseUri,da as removeCirculars,Zr as revalidateAllDocuments,st as uriToAbsFSPath};
|