@redocly/openapi-language-server 0.10.15 → 0.10.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +20 -20
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1,9 +1,9 @@
1
- var xb=Object.create;var ni=Object.defineProperty;var _b=Object.getOwnPropertyDescriptor;var Cb=Object.getOwnPropertyNames;var Rb=Object.getPrototypeOf,Tb=Object.prototype.hasOwnProperty;var xl=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var R=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},vs=(e,t)=>{for(var n in t)ni(e,n,{get:t[n],enumerable:!0})},ti=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Cb(t))!Tb.call(e,i)&&i!==n&&ni(e,i,{get:()=>t[i],enumerable:!(r=_b(t,i))||r.enumerable});return e},Ps=(e,t,n)=>(ti(e,t,"default"),n&&ti(n,t,"default")),Ee=(e,t,n)=>(n=e!=null?xb(Rb(e)):{},ti(t||!e||!e.__esModule?ni(n,"default",{value:e,enumerable:!0}):n,e)),ri=e=>ti(ni({},"__esModule",{value:!0}),e);var qt=R(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.isYAMLNode=he.isNodesEqual=he.newMap=he.newSeq=he.newItems=he.newScalar=he.newAnchorRef=he.newMapping=he.Kind=void 0;var bt;(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"})(bt=he.Kind||(he.Kind={}));function kb(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:bt.MAPPING,parent:null,errors:[]};return i}he.newMapping=kb;function Ab(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:bt.ANCHOR_REF,parent:null}}he.newAnchorRef=Ab;function Eb(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:bt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}he.newScalar=Eb;function wl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:bt.SEQ,parent:null}}he.newItems=wl;function Nb(){return wl()}he.newSeq=Nb;function qb(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:bt.MAP,parent:null}}he.newMap=qb;function br(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===bt.SCALAR)return e.value===t.value;if(e.kind===bt.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(!br(o,s))return!1}return!0}if(e.kind===bt.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=>br(o,c.key));if(a){if(!br(s,a.value))return!1}else return!1}return!0}if(bt.MAPPING===e.kind){let n=e,r=t;return br(n.key,r.key)}return!1}he.isNodesEqual=br;function Ob(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}he.isYAMLNode=Ob});var ln=R(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.isNegativeZero=He.repeat=He.extend=He.toArray=He.isObject=He.isNothing=void 0;function Sl(e){return typeof e>"u"||e===null}He.isNothing=Sl;function Lb(e){return typeof e=="object"&&e!==null}He.isObject=Lb;function Mb(e){return Array.isArray(e)?e:Sl(e)?[]:[e]}He.toArray=Mb;function jb(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}He.extend=jb;function Ib(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}He.repeat=Ib;function Fb(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}He.isNegativeZero=Fb});var kn=R((FD,kl)=>{"use strict";var si=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}};si.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";kl.exports=si});var Nl=R((UD,El)=>{"use strict";var Al=ln(),Ts=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
1
+ var xb=Object.create;var ni=Object.defineProperty;var _b=Object.getOwnPropertyDescriptor;var Cb=Object.getOwnPropertyNames;var Rb=Object.getPrototypeOf,Tb=Object.prototype.hasOwnProperty;var xl=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var R=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},vs=(e,t)=>{for(var n in t)ni(e,n,{get:t[n],enumerable:!0})},ti=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Cb(t))!Tb.call(e,i)&&i!==n&&ni(e,i,{get:()=>t[i],enumerable:!(r=_b(t,i))||r.enumerable});return e},Ps=(e,t,n)=>(ti(e,t,"default"),n&&ti(n,t,"default")),Ee=(e,t,n)=>(n=e!=null?xb(Rb(e)):{},ti(t||!e||!e.__esModule?ni(n,"default",{value:e,enumerable:!0}):n,e)),ri=e=>ti(ni({},"__esModule",{value:!0}),e);var qt=R(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.isYAMLNode=he.isNodesEqual=he.newMap=he.newSeq=he.newItems=he.newScalar=he.newAnchorRef=he.newMapping=he.Kind=void 0;var bt;(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"})(bt=he.Kind||(he.Kind={}));function kb(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:bt.MAPPING,parent:null,errors:[]};return i}he.newMapping=kb;function Ab(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:bt.ANCHOR_REF,parent:null}}he.newAnchorRef=Ab;function Eb(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:bt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}he.newScalar=Eb;function wl(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:bt.SEQ,parent:null}}he.newItems=wl;function Nb(){return wl()}he.newSeq=Nb;function qb(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:bt.MAP,parent:null}}he.newMap=qb;function br(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===bt.SCALAR)return e.value===t.value;if(e.kind===bt.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(!br(o,s))return!1}return!0}if(e.kind===bt.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=>br(o,c.key));if(a){if(!br(s,a.value))return!1}else return!1}return!0}if(bt.MAPPING===e.kind){let n=e,r=t;return br(n.key,r.key)}return!1}he.isNodesEqual=br;function Ob(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}he.isYAMLNode=Ob});var ln=R(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.isNegativeZero=He.repeat=He.extend=He.toArray=He.isObject=He.isNothing=void 0;function Sl(e){return typeof e>"u"||e===null}He.isNothing=Sl;function Lb(e){return typeof e=="object"&&e!==null}He.isObject=Lb;function Mb(e){return Array.isArray(e)?e:Sl(e)?[]:[e]}He.toArray=Mb;function jb(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}He.extend=jb;function Ib(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}He.repeat=Ib;function Fb(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}He.isNegativeZero=Fb});var kn=R((UD,kl)=>{"use strict";var si=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}};si.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";kl.exports=si});var Nl=R((WD,El)=>{"use strict";var Al=ln(),Ts=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),Al.repeat(" ",t)+r+a+o+`
4
4
  `+Al.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}};El.exports=Ts});var Ne=R(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.Type=void 0;var ql=kn(),Ub=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Wb=["scalar","sequence","mapping"];function Hb(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Ds=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(Ub.indexOf(r)===-1)throw new ql('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=Hb(n.styleAliases||null),Wb.indexOf(this.kind)===-1)throw new ql('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ai.Type=Ds});var An=R(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.Schema=void 0;var Ol=ln(),ci=kn(),Bb=Ne();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 zb(){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 Ht=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 ci("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=zb(this.compiledImplicit,this.compiledExplicit)}};ui.Schema=Ht;Ht.DEFAULT=null;Ht.create=function(...t){var n,r;switch(t.length){case 1:n=Ht.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new ci("Wrong number of arguments for Schema.create function")}if(n=Ol.toArray(n),r=Ol.toArray(r),!n.every(function(i){return i instanceof Ht}))throw new ci("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Bb.Type}))throw new ci("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ht({include:n,explicit:r})}});var Ml=R((BD,Ll)=>{"use strict";var $b=Ne();Ll.exports=new $b.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Il=R((zD,jl)=>{"use strict";var Yb=Ne();jl.exports=new Yb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Ul=R(($D,Fl)=>{"use strict";var Vb=Ne();Fl.exports=new Vb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Hl=R((YD,Wl)=>{"use strict";var Kb=An();Wl.exports=new Kb.Schema({explicit:[Ml(),Il(),Ul()]})});var $l=R((VD,zl)=>{"use strict";var Gb=Ne(),Bl=qt();function Qb(e){let t=Bl.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 Jb(e){return Bl.isYAMLNode(e)?e:null}function Xb(e){return e===null}zl.exports=new Gb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Qb,construct:Jb,predicate:Xb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Kl=R((KD,Vl)=>{"use strict";var Zb=Ne(),Yl=qt();function ev(e){let t=Yl.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 tv(e){return Yl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function nv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Vl.exports=new Zb.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ev,construct:tv,predicate:nv,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 Jl=R((GD,Ql)=>{"use strict";var rv=ln(),iv=Ne(),Gl=qt();function ov(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function sv(e){return 48<=e&&e<=55}function av(e){return 48<=e&&e<=57}function cv(e){let t=Gl.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(!ov(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!sv(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!av(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function uv(e){if(Gl.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 lv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!rv.isNegativeZero(e)}Ql.exports=new iv.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:cv,construct:uv,predicate:lv,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 tp=R((QD,ep)=>{"use strict";var Xl=ln(),pv=Ne(),Zl=qt(),dv=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function fv(e){let t=Zl.isYAMLNode(e)?e.value:e;return!(t===null||!dv.test(t))}function gv(e){if(Zl.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 mv(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(Xl.isNegativeZero(e))return"-0.0";return e.toString(10)}function yv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xl.isNegativeZero(e))}ep.exports=new pv.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:fv,construct:gv,predicate:yv,represent:mv,defaultStyle:"lowercase"})});var rp=R((JD,np)=>{"use strict";var hv=An();np.exports=new hv.Schema({include:[Hl()],implicit:[$l(),Kl(),Jl(),tp()]})});var op=R((XD,ip)=>{"use strict";var bv=An();ip.exports=new bv.Schema({include:[rp()]})});var cp=R((ZD,ap)=>{"use strict";var vv=Ne(),sp=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 Pv(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,u=null,d,m,b;return t=sp.exec(e),t!==null}function xv(e){var t,n,r,i,o,s,a,c=0,u=null,d,m,b;if(t=sp.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],m=+(t[11]||0),u=(d*60+m)*6e4,t[9]==="-"&&(u=-u)),b=new Date(Date.UTC(n,r,i,o,s,a,c)),u&&b.setTime(b.getTime()-u),b}function _v(e){return e.toISOString()}ap.exports=new vv.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Pv,construct:xv,instanceOf:Date,represent:_v})});var lp=R((ew,up)=>{"use strict";var Cv=Ne();function Rv(e){return e==="<<"||e===null}up.exports=new Cv.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Rv})});var pp={};vs(pp,{default:()=>Tv});var Tv,dp=xl(()=>{Tv={}});var gp=R((tw,fp)=>{"use strict";var li=(dp(),ri(pp)).Buffer,Dv=Ne(),Ss=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
- \r`;function wv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Ss;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 Sv(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Ss,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),li?new li(c):c}function kv(e){var t="",n=0,r,i,o=e.length,s=Ss;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 Av(e){return li&&li.isBuffer(e)}fp.exports=new Dv.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wv,construct:Sv,predicate:Av,represent:kv})});var yp=R((nw,mp)=>{"use strict";var Ev=Ne(),Nv=Object.prototype.hasOwnProperty,qv=Object.prototype.toString;function Ov(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,qv.call(i)!=="[object Object]")return!1;for(o in i)if(Nv.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 Lv(e){return e!==null?e:[]}mp.exports=new Ev.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ov,construct:Lv})});var bp=R((rw,hp)=>{"use strict";var Mv=Ne(),ks=qt(),jv=Object.prototype.toString;function Iv(e){if(e===null)return!0;if(e.kind!=ks.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],jv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function Fv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=ks.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=ks.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}hp.exports=new Mv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Iv,construct:Fv})});var Pp=R((iw,vp)=>{"use strict";var Uv=Ne(),Wv=qt();function Hv(e){return e===null?!0:e.kind==Wv.Kind.MAP}function Bv(e){return e!==null?e:{}}vp.exports=new Uv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Hv,construct:Bv})});var pi=R((ow,xp)=>{"use strict";var zv=An(),$v=new zv.Schema({include:[op()],implicit:[cp(),lp()],explicit:[gp(),yp(),bp(),Pp()]});xp.exports=$v});var Cp=R((sw,_p)=>{"use strict";var Yv=Ne();function Vv(){return!0}function Kv(){}function Gv(){return""}function Qv(e){return typeof e>"u"}_p.exports=new Yv.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Vv,construct:Kv,predicate:Qv,represent:Gv})});var Tp=R((aw,Rp)=>{"use strict";var Jv=Ne();function Xv(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 Zv(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 eP(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function tP(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Rp.exports=new Jv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Xv,construct:Zv,predicate:tP,represent:eP})});var As=R((cw,Sp)=>{"use strict";var Dp=An(),wp=new Dp.Schema({include:[pi()],explicit:[Cp(),Tp()]});Dp.Schema.DEFAULT=wp;Sp.exports=wp});var Wp=R((vt,Pr)=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.safeLoad=vt.safeLoadAll=vt.load=vt.loadAll=void 0;var ze=qt(),Bt=ln(),Is=kn(),Fs=Nl(),Np=pi(),nP=As(),gi=Object.prototype.hasOwnProperty,di=1,qp=2,Op=3,fi=4,Es=1,rP=2,kp=3,iP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oP=/[\x85\u2028\u2029]/,sP=/[,\[\]\{\}]/,Lp=/^(?:!|!!|![a-z\-]+!)$/i,Mp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function pt(e){return e===10||e===13}function dn(e){return e===9||e===32}function Be(e){return e===9||e===32||e===10||e===13}function En(e){return e===44||e===91||e===93||e===123||e===125}function aP(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function cP(e){return e===120?2:e===117?4:e===85?8:0}function uP(e){return 48<=e&&e<=57?e-48:-1}function lP(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
5
+ `+n)),r}};El.exports=Ts});var Ne=R(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.Type=void 0;var ql=kn(),Ub=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Wb=["scalar","sequence","mapping"];function Hb(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var Ds=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(Ub.indexOf(r)===-1)throw new ql('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=Hb(n.styleAliases||null),Wb.indexOf(this.kind)===-1)throw new ql('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ai.Type=Ds});var An=R(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.Schema=void 0;var Ol=ln(),ci=kn(),Bb=Ne();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 zb(){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 Ht=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 ci("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=zb(this.compiledImplicit,this.compiledExplicit)}};ui.Schema=Ht;Ht.DEFAULT=null;Ht.create=function(...t){var n,r;switch(t.length){case 1:n=Ht.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new ci("Wrong number of arguments for Schema.create function")}if(n=Ol.toArray(n),r=Ol.toArray(r),!n.every(function(i){return i instanceof Ht}))throw new ci("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof Bb.Type}))throw new ci("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ht({include:n,explicit:r})}});var Ml=R((zD,Ll)=>{"use strict";var $b=Ne();Ll.exports=new $b.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Il=R(($D,jl)=>{"use strict";var Yb=Ne();jl.exports=new Yb.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Ul=R((YD,Fl)=>{"use strict";var Vb=Ne();Fl.exports=new Vb.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Hl=R((VD,Wl)=>{"use strict";var Kb=An();Wl.exports=new Kb.Schema({explicit:[Ml(),Il(),Ul()]})});var $l=R((KD,zl)=>{"use strict";var Gb=Ne(),Bl=qt();function Qb(e){let t=Bl.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 Jb(e){return Bl.isYAMLNode(e)?e:null}function Xb(e){return e===null}zl.exports=new Gb.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Qb,construct:Jb,predicate:Xb,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Kl=R((GD,Vl)=>{"use strict";var Zb=Ne(),Yl=qt();function ev(e){let t=Yl.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 tv(e){return Yl.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function nv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Vl.exports=new Zb.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ev,construct:tv,predicate:nv,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 Jl=R((QD,Ql)=>{"use strict";var rv=ln(),iv=Ne(),Gl=qt();function ov(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function sv(e){return 48<=e&&e<=55}function av(e){return 48<=e&&e<=57}function cv(e){let t=Gl.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(!ov(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!sv(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!av(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function uv(e){if(Gl.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 lv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!rv.isNegativeZero(e)}Ql.exports=new iv.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:cv,construct:uv,predicate:lv,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 tp=R((JD,ep)=>{"use strict";var Xl=ln(),pv=Ne(),Zl=qt(),dv=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function fv(e){let t=Zl.isYAMLNode(e)?e.value:e;return!(t===null||!dv.test(t))}function gv(e){if(Zl.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 mv(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(Xl.isNegativeZero(e))return"-0.0";return e.toString(10)}function yv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xl.isNegativeZero(e))}ep.exports=new pv.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:fv,construct:gv,predicate:yv,represent:mv,defaultStyle:"lowercase"})});var rp=R((XD,np)=>{"use strict";var hv=An();np.exports=new hv.Schema({include:[Hl()],implicit:[$l(),Kl(),Jl(),tp()]})});var op=R((ZD,ip)=>{"use strict";var bv=An();ip.exports=new bv.Schema({include:[rp()]})});var cp=R((ew,ap)=>{"use strict";var vv=Ne(),sp=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 Pv(e){if(e===null)return!1;var t,n,r,i,o,s,a,c=0,u=null,d,m,b;return t=sp.exec(e),t!==null}function xv(e){var t,n,r,i,o,s,a,c=0,u=null,d,m,b;if(t=sp.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],m=+(t[11]||0),u=(d*60+m)*6e4,t[9]==="-"&&(u=-u)),b=new Date(Date.UTC(n,r,i,o,s,a,c)),u&&b.setTime(b.getTime()-u),b}function _v(e){return e.toISOString()}ap.exports=new vv.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Pv,construct:xv,instanceOf:Date,represent:_v})});var lp=R((tw,up)=>{"use strict";var Cv=Ne();function Rv(e){return e==="<<"||e===null}up.exports=new Cv.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Rv})});var pp={};vs(pp,{default:()=>Tv});var Tv,dp=xl(()=>{Tv={}});var gp=R((nw,fp)=>{"use strict";var li=(dp(),ri(pp)).Buffer,Dv=Ne(),Ss=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function wv(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=Ss;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 Sv(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Ss,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),li?new li(c):c}function kv(e){var t="",n=0,r,i,o=e.length,s=Ss;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 Av(e){return li&&li.isBuffer(e)}fp.exports=new Dv.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wv,construct:Sv,predicate:Av,represent:kv})});var yp=R((rw,mp)=>{"use strict";var Ev=Ne(),Nv=Object.prototype.hasOwnProperty,qv=Object.prototype.toString;function Ov(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,qv.call(i)!=="[object Object]")return!1;for(o in i)if(Nv.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 Lv(e){return e!==null?e:[]}mp.exports=new Ev.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ov,construct:Lv})});var bp=R((iw,hp)=>{"use strict";var Mv=Ne(),ks=qt(),jv=Object.prototype.toString;function Iv(e){if(e===null)return!0;if(e.kind!=ks.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],jv.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function Fv(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=ks.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=ks.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}hp.exports=new Mv.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Iv,construct:Fv})});var Pp=R((ow,vp)=>{"use strict";var Uv=Ne(),Wv=qt();function Hv(e){return e===null?!0:e.kind==Wv.Kind.MAP}function Bv(e){return e!==null?e:{}}vp.exports=new Uv.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Hv,construct:Bv})});var pi=R((sw,xp)=>{"use strict";var zv=An(),$v=new zv.Schema({include:[op()],implicit:[cp(),lp()],explicit:[gp(),yp(),bp(),Pp()]});xp.exports=$v});var Cp=R((aw,_p)=>{"use strict";var Yv=Ne();function Vv(){return!0}function Kv(){}function Gv(){return""}function Qv(e){return typeof e>"u"}_p.exports=new Yv.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Vv,construct:Kv,predicate:Qv,represent:Gv})});var Tp=R((cw,Rp)=>{"use strict";var Jv=Ne();function Xv(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 Zv(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 eP(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function tP(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Rp.exports=new Jv.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Xv,construct:Zv,predicate:tP,represent:eP})});var As=R((uw,Sp)=>{"use strict";var Dp=An(),wp=new Dp.Schema({include:[pi()],explicit:[Cp(),Tp()]});Dp.Schema.DEFAULT=wp;Sp.exports=wp});var Wp=R((vt,Pr)=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.safeLoad=vt.safeLoadAll=vt.load=vt.loadAll=void 0;var ze=qt(),Bt=ln(),Is=kn(),Fs=Nl(),Np=pi(),nP=As(),gi=Object.prototype.hasOwnProperty,di=1,qp=2,Op=3,fi=4,Es=1,rP=2,kp=3,iP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oP=/[\x85\u2028\u2029]/,sP=/[,\[\]\{\}]/,Lp=/^(?:!|!!|![a-z\-]+!)$/i,Mp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function pt(e){return e===10||e===13}function dn(e){return e===9||e===32}function Be(e){return e===9||e===32||e===10||e===13}function En(e){return e===44||e===91||e===93||e===123||e===125}function aP(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function cP(e){return e===120?2:e===117?4:e===85?8:0}function uP(e){return 48<=e&&e<=57?e-48:-1}function lP(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 pP(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ns=new Array(256),qs=new Array(256),jp=new Array(256),Os=new Array(256);for(tt=0;tt<256;tt++)Os[tt]=qs[tt]=lP(tt),Ns[tt]=qs[tt]?1:0,jp[tt]=1,Ns[tt]||(Os[tt]="\\"+String.fromCharCode(tt));var tt,Ls=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||nP,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 Us(e,t,n=!1){return new Is(t,new Fs(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Ms(e,t,n,r=!1,i=!1){var o=dP(e,t);if(o){var s=n+t;if(!e.errorMap[s]){var a=new Fs(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Is(n,a,r);e.errors.push(c)}}}function H(e,t){var n=Us(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=Us(e,t);e.onWarning&&e.onWarning.call(null,n)}var Ap={YAML:function(t,n,r){var i,o,s;t.version!==null&&H(t,"duplication of %YAML directive"),r.length!==1&&H(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&H(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&H(t,"found incompatible YAML document (version 1.2 is required)"),t.version=r[0],t.checkLineBreaks=s<2,s!==2&&H(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,n,r){var i,o;r.length!==2&&H(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],Lp.test(i)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),gi.call(t.tagMap,i)&&H(t,'there is a previously declared suffix for "'+i+'" tag handle'),Mp.test(o)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function zt(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||H(e,"expected valid JSON character");else iP.test(a)&&H(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=n}}function pn(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:ze.Kind.MAP,nodeIndent:o});var a=ze.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=>{ze.isNodesEqual(c,a)&&(Ms(e,a.key.startPosition,"duplicate key"),Ms(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=s,t}}function Ws(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++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function dP(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 le(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;dn(o);)o===9&&e.errors.push(Us(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(pt(o))for(Ws(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 vr(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||Be(n)))}function Hs(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Bt.repeat(`
9
9
  `,n-1))}function fP(e,t,n){var r,i,o,s,a,c,u,d,m=e.kind,b=e.result,h,D=ze.newScalar("",t);if(D.plainScalar=!0,e.result=D,h=e.input.charCodeAt(e.position),Be(h)||En(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Be(i)||n&&En(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Be(i)||n&&En(i))break}else if(h===35){if(r=e.input.charCodeAt(e.position-1),Be(r))break}else{if(e.position===e.lineStart&&vr(e)||n&&En(h))break;if(pt(h))if(c=e.line,u=e.lineStart,d=e.lineIndent,le(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=u,e.lineIndent=d;break}}if(a&&(zt(e,o,s,!1),Hs(e,D,e.line-c),o=s=e.position,a=!1),dn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return zt(e,o,s,!1),e.result.startPosition!=-1?(D.rawValue=e.input.substring(D.startPosition,D.endPosition),e.result.endPosition=le(e,!1,-1)?e.position-1:e.position,!0):(e.kind=m,e.result=b,!1)}function gP(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=ze.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(zt(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 pt(n)?(zt(e,r,i,!0),Hs(e,o,le(e,!1,t)),r=i=e.position):e.position===e.lineStart&&vr(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function mP(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=ze.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 zt(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(zt(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),pt(c))le(e,!1,t);else if(c<256&&(e.allowAnyEscape?jp[c]:Ns[c]))u.value+=e.allowAnyEscape?Os[c]:qs[c],e.position++;else if((s=cP(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=aP(c))>=0?o=(o<<4)+s:H(e,"expected hexadecimal character");u.value+=pP(o),e.position++}else H(e,"unknown escape sequence");n=r=e.position}else pt(c)?(zt(e,n,r,!0),Hs(e,u,le(e,!1,t)),n=r=e.position):e.position===e.lineStart&&vr(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function yP(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,c,u,d,m,b,h,D,I;if(I=e.input.charCodeAt(e.position),I===91)c=93,m=!1,o=ze.newItems(),o.startPosition=e.position;else if(I===123)c=125,m=!0,o=ze.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if(le(e,!0,t),I=e.input.charCodeAt(e.position),I===c)return e.position++,e.tag=i,e.anchor=s,e.kind=m?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var G=e.position;H(e,"missed comma between flow collection entries"),e.position=G+1}if(h=b=D=null,u=d=!1,I===63&&(a=e.input.charCodeAt(e.position+1),Be(a)&&(u=d=!0,e.position++,le(e,!0,t))),r=e.line,Nn(e,t,di,!1,!0),h=e.tag,b=e.result,le(e,!0,t),I=e.input.charCodeAt(e.position),(d||e.line===r)&&I===58&&(u=!0,I=e.input.charCodeAt(++e.position),le(e,!0,t),Nn(e,t,di,!1,!0),D=e.result),m)pn(e,o,h,b,D,t);else if(u){var U=pn(e,null,h,b,D,t);U.parent=o,o.items.push(U)}else b&&(b.parent=o),o.items.push(b);o.endPosition=e.position+1,le(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(n=!0,I=e.input.charCodeAt(++e.position)):n=!1}H(e,"unexpected end of the stream within a flow collection")}function hP(e,t){var n,r,i=Es,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 m=ze.newScalar("",t);for(e.kind="scalar",e.result=m,m.startPosition=e.position;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Es===i?i=d===43?kp:rP:H(e,"repeat of a chomping mode identifier");else if((u=uP(d))>=0)u===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?H(e,"repeat of an indentation width identifier"):(s=t+u-1,o=!0);else break;if(dn(d)){do d=e.input.charCodeAt(++e.position);while(dn(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!pt(d)&&d!==0)}for(;d!==0;){for(Ws(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),pt(d)){a++;continue}if(e.lineIndent<s){i===kp?m.value+=Bt.repeat(`
@@ -32,11 +32,11 @@ var xb=Object.create;var ni=Object.defineProperty;var _b=Object.getOwnPropertyDe
32
32
  `+e.slice(i+1):r+=e.slice(o),r}function JP(e){return TP!==e&&fn!==e&&DP!==e&&NP!==e&&IP!==e&&FP!==e&&WP!==e&&BP!==e&&SP!==e&&AP!==e&&EP!==e&&wP!==e&&HP!==e&&LP!==e&&Vs!==e&&Ys!==e&&kP!==e&&OP!==e&&!we[e]&&!Yp(e)}function Yp(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function XP(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)gn(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function ZP(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)gn(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=Ks(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function ex(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],gn(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+": ",gn(e,t,u,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function tx(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,c,u,d,m,b;for(a=0,c=s.length;a<c;a+=1)b="",(!r||a!==0)&&(b+=Ks(e,t)),u=s[a],d=n[u],gn(e,t+1,u,!0,!0)&&(m=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,m&&(e.dump&&fn===e.dump.charCodeAt(0)?b+="?":b+="? "),b+=e.dump,m&&(b+=Ks(e,t)),gn(e,t+1,d,!0,m)&&(e.dump&&fn===e.dump.charCodeAt(0)?b+=":":b+=": ",b+=e.dump,i+=b));e.tag=o,e.dump=i||"{}"}function zp(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,Js.call(a.represent)==="[object Function]")r=a.represent(t,c);else if($p.call(a.represent,c))r=a.represent[c](t,c);else throw new Qs("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function gn(e,t,n,r,i){e.tag=null,e.dump=n,zp(e,n,!1)||zp(e,n,!0);var o=Js.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?(tx(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
33
33
  `:"")+e.dump)):(ex(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(ZP(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
34
34
  `:"")+e.dump)):(XP(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&GP(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Qs("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function nx(e,t){var n=[],r=[],i,o;for(Gs(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function Gs(e,t,n){var r=Js.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)Gs(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)Gs(e[i[o]],t,n)}function Vp(e,t){t=t||{};var n=new VP(t);return nx(e,n),gn(n,0,e,!0,!0)?n.dump+`
35
- `:""}qn.dump=Vp;function rx(e,t){return Vp(e,xr.extend({schema:RP},t))}qn.safeDump=rx});var Gp=R(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.determineScalarType=Je.ScalarType=Je.parseYamlFloat=Je.parseYamlInteger=Je.parseYamlBoolean=void 0;function ix(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Je.parseYamlBoolean=ix;function ox(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function sx(e){let t=ox(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Je.parseYamlInteger=sx;function ax(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}"`}Je.parseYamlFloat=ax;var Ot;(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"})(Ot=Je.ScalarType||(Je.ScalarType={}));function cx(e){if(e===void 0)return Ot.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Ot.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Ot.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Ot.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 Ot.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?Ot.float:Ot.string}Je.determineScalarType=cx});var On=R(be=>{"use strict";var ux=be&&be.__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]})),Qp=be&&be.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ux(t,e,n)};Object.defineProperty(be,"__esModule",{value:!0});be.safeDump=be.dump=be.safeLoadAll=be.safeLoad=be.loadAll=be.load=void 0;var yi=Wp();Object.defineProperty(be,"load",{enumerable:!0,get:function(){return yi.load}});Object.defineProperty(be,"loadAll",{enumerable:!0,get:function(){return yi.loadAll}});Object.defineProperty(be,"safeLoad",{enumerable:!0,get:function(){return yi.safeLoad}});Object.defineProperty(be,"safeLoadAll",{enumerable:!0,get:function(){return yi.safeLoadAll}});var Jp=Kp();Object.defineProperty(be,"dump",{enumerable:!0,get:function(){return Jp.dump}});Object.defineProperty(be,"safeDump",{enumerable:!0,get:function(){return Jp.safeDump}});be.YAMLException=kn();Qp(qt(),be);Qp(Gp(),be)});var jn=R(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.stringArray=Le.array=Le.func=Le.error=Le.number=Le.string=Le.boolean=void 0;function J0(e){return e===!0||e===!1}Le.boolean=J0;function ef(e){return typeof e=="string"||e instanceof String}Le.string=ef;function X0(e){return typeof e=="number"||e instanceof Number}Le.number=X0;function Z0(e){return e instanceof Error}Le.error=Z0;function eC(e){return typeof e=="function"}Le.func=eC;function tf(e){return Array.isArray(e)}Le.array=tf;function tC(e){return tf(e)&&e.every(t=>ef(t))}Le.stringArray=tC});var Na=R(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.Message=F.NotificationType9=F.NotificationType8=F.NotificationType7=F.NotificationType6=F.NotificationType5=F.NotificationType4=F.NotificationType3=F.NotificationType2=F.NotificationType1=F.NotificationType0=F.NotificationType=F.RequestType9=F.RequestType8=F.RequestType7=F.RequestType6=F.RequestType5=F.RequestType4=F.RequestType3=F.RequestType2=F.RequestType1=F.RequestType=F.RequestType0=F.AbstractMessageSignature=F.ParameterStructures=F.ResponseError=F.ErrorCodes=void 0;var bn=jn(),ca;(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})(ca||(F.ErrorCodes=ca={}));var ua=class e extends Error{constructor(t,n,r){super(n),this.code=bn.number(t)?t:ca.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}};F.ResponseError=ua;var $e=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};F.ParameterStructures=$e;$e.auto=new $e("auto");$e.byPosition=new $e("byPosition");$e.byName=new $e("byName");var se=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return $e.auto}};F.AbstractMessageSignature=se;var la=class extends se{constructor(t){super(t,0)}};F.RequestType0=la;var pa=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=pa;var da=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=da;var fa=class extends se{constructor(t){super(t,2)}};F.RequestType2=fa;var ga=class extends se{constructor(t){super(t,3)}};F.RequestType3=ga;var ma=class extends se{constructor(t){super(t,4)}};F.RequestType4=ma;var ya=class extends se{constructor(t){super(t,5)}};F.RequestType5=ya;var ha=class extends se{constructor(t){super(t,6)}};F.RequestType6=ha;var ba=class extends se{constructor(t){super(t,7)}};F.RequestType7=ba;var va=class extends se{constructor(t){super(t,8)}};F.RequestType8=va;var Pa=class extends se{constructor(t){super(t,9)}};F.RequestType9=Pa;var xa=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=xa;var _a=class extends se{constructor(t){super(t,0)}};F.NotificationType0=_a;var Ca=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Ca;var Ra=class extends se{constructor(t){super(t,2)}};F.NotificationType2=Ra;var Ta=class extends se{constructor(t){super(t,3)}};F.NotificationType3=Ta;var Da=class extends se{constructor(t){super(t,4)}};F.NotificationType4=Da;var wa=class extends se{constructor(t){super(t,5)}};F.NotificationType5=wa;var Sa=class extends se{constructor(t){super(t,6)}};F.NotificationType6=Sa;var ka=class extends se{constructor(t){super(t,7)}};F.NotificationType7=ka;var Aa=class extends se{constructor(t){super(t,8)}};F.NotificationType8=Aa;var Ea=class extends se{constructor(t){super(t,9)}};F.NotificationType9=Ea;var nf;(function(e){function t(i){let o=i;return o&&bn.string(o.method)&&(bn.string(o.id)||bn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&bn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(bn.string(o.id)||bn.number(o.id)||o.id===null)}e.isResponse=r})(nf||(F.Message=nf={}))});var Oa=R(Kt=>{"use strict";var rf;Object.defineProperty(Kt,"__esModule",{value:!0});Kt.LRUCache=Kt.LinkedMap=Kt.Touch=void 0;var Me;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Me||(Kt.Touch=Me={}));var Li=class{constructor(){this[rf]="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=Me.None){let r=this._map.get(t);if(r)return n!==Me.None&&this.touch(r,n),r.value}set(t,n,r=Me.None){let i=this._map.get(t);if(i)i.value=n,r!==Me.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Me.None:this.addItemLast(i);break;case Me.First:this.addItemFirst(i);break;case Me.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}[(rf=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!==Me.First&&n!==Me.Last)){if(n===Me.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===Me.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)}};Kt.LinkedMap=Li;var qa=class extends Li{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=Me.AsNew){return super.get(t,n)}peek(t){return super.get(t,Me.None)}set(t,n){return super.set(t,n,Me.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Kt.LRUCache=qa});var sf=R(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Disposable=void 0;var of;(function(e){function t(n){return{dispose:n}}e.create=t})(of||(Mi.Disposable=of={}))});var Gt=R(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var La;function Ma(){if(La===void 0)throw new Error("No runtime abstraction layer installed");return La}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");La=n}e.install=t})(Ma||(Ma={}));ja.default=Ma});var Fn=R(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.Emitter=In.Event=void 0;var nC=Gt(),af;(function(e){let t={dispose(){}};e.None=function(){return t}})(af||(In.Event=af={}));var Ia=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,nC.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ji=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ia),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)}};In.Emitter=ji;ji._noop=function(){}});var Ui=R(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CancellationTokenSource=Un.CancellationToken=void 0;var rC=Gt(),iC=jn(),Fa=Fn(),Ii;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Fa.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Fa.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||iC.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(Ii||(Un.CancellationToken=Ii={}));var oC=Object.freeze(function(e,t){let n=(0,rC.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Fi=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?oC:(this._emitter||(this._emitter=new Fa.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ua=class{get token(){return this._token||(this._token=new Fi),this._token}cancel(){this._token?this._token.cancel():this._token=Ii.Cancelled}dispose(){this._token?this._token instanceof Fi&&this._token.dispose():this._token=Ii.None}};Un.CancellationTokenSource=Ua});var cf=R(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.SharedArrayReceiverStrategy=Wn.SharedArraySenderStrategy=void 0;var sC=Ui(),Dr;(function(e){e.Continue=0,e.Cancelled=1})(Dr||(Dr={}));var Wa=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]=Dr.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,Dr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Wn.SharedArraySenderStrategy=Wa;var Ha=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Dr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Ba=class{constructor(t){this.token=new Ha(t)}cancel(){}dispose(){}},za=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new sC.CancellationTokenSource:new Ba(n)}};Wn.SharedArrayReceiverStrategy=za});var Ya=R(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.Semaphore=void 0;var aC=Gt(),$a=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,aC.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()}}};Wi.Semaphore=$a});var lf=R(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ReadableStreamMessageReader=Qt.AbstractMessageReader=Qt.MessageReader=void 0;var Ka=Gt(),Hn=jn(),Va=Fn(),cC=Ya(),uf;(function(e){function t(n){let r=n;return r&&Hn.func(r.listen)&&Hn.func(r.dispose)&&Hn.func(r.onError)&&Hn.func(r.onClose)&&Hn.func(r.onPartialMessage)}e.is=t})(uf||(Qt.MessageReader=uf={}));var Hi=class{constructor(){this.errorEmitter=new Va.Emitter,this.closeEmitter=new Va.Emitter,this.partialMessageEmitter=new Va.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: ${Hn.string(t.message)?t.message:"unknown"}`)}};Qt.AbstractMessageReader=Hi;var Ga;(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,Ka.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(Ga||(Ga={}));var Qa=class extends Hi{constructor(t,n){super(),this.readable=t,this.options=Ga.fromOptions(n),this.buffer=(0,Ka.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new cC.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,Ka.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))}};Qt.ReadableStreamMessageReader=Qa});var mf=R(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.WriteableStreamMessageWriter=Jt.AbstractMessageWriter=Jt.MessageWriter=void 0;var pf=Gt(),wr=jn(),uC=Ya(),df=Fn(),lC="Content-Length: ",ff=`\r
37
- `,gf;(function(e){function t(n){let r=n;return r&&wr.func(r.dispose)&&wr.func(r.onClose)&&wr.func(r.onError)&&wr.func(r.write)}e.is=t})(gf||(Jt.MessageWriter=gf={}));var Bi=class{constructor(){this.errorEmitter=new df.Emitter,this.closeEmitter=new df.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: ${wr.string(t.message)?t.message:"unknown"}`)}};Jt.AbstractMessageWriter=Bi;var Ja;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,pf.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,pf.default)().applicationJson.encoder}}e.fromOptions=t})(Ja||(Ja={}));var Xa=class extends Bi{constructor(t,n){super(),this.writable=t,this.options=Ja.fromOptions(n),this.errorCount=0,this.writeSemaphore=new uC.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(lC,r.byteLength.toString(),ff),i.push(ff),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()}};Jt.WriteableStreamMessageWriter=Xa});var yf=R(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AbstractMessageBuffer=void 0;var pC=13,dC=10,fC=`\r
38
- `,Za=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 pC:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case dC: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(fC);if(c.length<2)return a;for(let u=0;u<c.length-2;u++){let d=c[u],m=d.indexOf(":");if(m===-1)throw new Error(`Message header must separate key and value using ':'
39
- ${d}`);let b=d.substr(0,m),h=d.substr(m+1).trim();a.set(t?b.toLowerCase():b,h)}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}};zi.AbstractMessageBuffer=Za});var xf=R(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.createMessageConnection=z.ConnectionOptions=z.MessageStrategy=z.CancellationStrategy=z.CancellationSenderStrategy=z.CancellationReceiverStrategy=z.RequestCancellationReceiverStrategy=z.IdCancellationReceiverStrategy=z.ConnectionStrategy=z.ConnectionError=z.ConnectionErrors=z.LogTraceNotification=z.SetTraceNotification=z.TraceFormat=z.TraceValues=z.Trace=z.NullLogger=z.ProgressType=z.ProgressToken=void 0;var hf=Gt(),pe=jn(),W=Na(),bf=Oa(),Sr=Fn(),ec=Ui(),Er;(function(e){e.type=new W.NotificationType("$/cancelRequest")})(Er||(Er={}));var tc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(tc||(z.ProgressToken=tc={}));var kr;(function(e){e.type=new W.NotificationType("$/progress")})(kr||(kr={}));var nc=class{constructor(){}};z.ProgressType=nc;var rc;(function(e){function t(n){return pe.func(n)}e.is=t})(rc||(rc={}));z.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var X;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(X||(z.Trace=X={}));var vf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(vf||(z.TraceValues=vf={}));(function(e){function t(r){if(!pe.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})(X||(z.Trace=X={}));var Ze;(function(e){e.Text="text",e.JSON="json"})(Ze||(z.TraceFormat=Ze={}));(function(e){function t(n){return pe.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ze||(z.TraceFormat=Ze={}));var ic;(function(e){e.type=new W.NotificationType("$/setTrace")})(ic||(z.SetTraceNotification=ic={}));var $i;(function(e){e.type=new W.NotificationType("$/logTrace")})($i||(z.LogTraceNotification=$i={}));var Ar;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(Ar||(z.ConnectionErrors=Ar={}));var Bn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};z.ConnectionError=Bn;var oc;(function(e){function t(n){let r=n;return r&&pe.func(r.cancelUndispatched)}e.is=t})(oc||(z.ConnectionStrategy=oc={}));var Yi;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||pe.func(r.dispose))}e.is=t})(Yi||(z.IdCancellationReceiverStrategy=Yi={}));var sc;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||pe.func(r.dispose))}e.is=t})(sc||(z.RequestCancellationReceiverStrategy=sc={}));var Vi;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new ec.CancellationTokenSource}});function t(n){return Yi.is(n)||sc.is(n)}e.is=t})(Vi||(z.CancellationReceiverStrategy=Vi={}));var Ki;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Er.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&pe.func(r.sendCancellation)&&pe.func(r.cleanup)}e.is=t})(Ki||(z.CancellationSenderStrategy=Ki={}));var Gi;(function(e){e.Message=Object.freeze({receiver:Vi.Message,sender:Ki.Message});function t(n){let r=n;return r&&Vi.is(r.receiver)&&Ki.is(r.sender)}e.is=t})(Gi||(z.CancellationStrategy=Gi={}));var Qi;(function(e){function t(n){let r=n;return r&&pe.func(r.handleMessage)}e.is=t})(Qi||(z.MessageStrategy=Qi={}));var Pf;(function(e){function t(n){let r=n;return r&&(Gi.is(r.cancellationStrategy)||oc.is(r.connectionStrategy)||Qi.is(r.messageStrategy))}e.is=t})(Pf||(z.ConnectionOptions=Pf={}));var gt;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(gt||(gt={}));function gC(e,t,n,r){let i=n!==void 0?n:z.NullLogger,o=0,s=0,a=0,c="2.0",u,d=new Map,m,b=new Map,h=new Map,D,I=new bf.LinkedMap,G=new Map,U=new Set,y=new Map,g=X.Off,S=Ze.Text,Y,Z=gt.New,ut=new Sr.Emitter,Ut=new Sr.Emitter,cn=new Sr.Emitter,Dn=new Sr.Emitter,k=new Sr.Emitter,v=r&&r.cancellationStrategy?r.cancellationStrategy:Gi.Message;function O(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 L(p){return p===null?"res-unknown-"+(++a).toString():"res-"+p.toString()}function x(){return"not-"+(++s).toString()}function C(p,_){W.Message.isRequest(_)?p.set(O(_.id),_):W.Message.isResponse(_)?p.set(L(_.id),_):p.set(x(),_)}function T(p){}function q(){return Z===gt.Listening}function M(){return Z===gt.Closed}function N(){return Z===gt.Disposed}function $(){(Z===gt.New||Z===gt.Listening)&&(Z=gt.Closed,Ut.fire(void 0))}function V(p){ut.fire([p,void 0,void 0])}function Te(p){ut.fire(p)}e.onClose($),e.onError(V),t.onClose($),t.onError(Te);function ne(){D||I.size===0||(D=(0,hf.default)().timer.setImmediate(()=>{D=void 0,un()}))}function lt(p){W.Message.isRequest(p)?lb(p):W.Message.isNotification(p)?db(p):W.Message.isResponse(p)?pb(p):p?.type?.startsWith("redocly/")||fb(p)}function un(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;Qi.is(_)?_.handleMessage(p,lt):lt(p)}finally{ne()}}let ub=p=>{try{if(W.Message.isNotification(p)&&p.method===Er.type.method){let _=p.params.id,A=O(_),j=I.get(A);if(W.Message.isRequest(j)){let re=r?.connectionStrategy,de=re&&re.cancelUndispatched?re.cancelUndispatched(j,T):void 0;if(de&&(de.error!==void 0||de.result!==void 0)){I.delete(A),y.delete(_),de.id=j.id,ei(de,p.method,Date.now()),t.write(de).catch(()=>i.error("Sending response for canceled message failed."));return}}let oe=y.get(_);if(oe!==void 0){oe.cancel(),hs(p);return}else U.add(_)}C(I,p)}finally{ne()}};function lb(p){if(N())return;function _(Q,ue,te){let Ce={jsonrpc:c,id:p.id};Q instanceof W.ResponseError?Ce.error=Q.toJson():Ce.result=Q===void 0?null:Q,ei(Ce,ue,te),t.write(Ce).catch(()=>i.error("Sending response failed."))}function A(Q,ue,te){let Ce={jsonrpc:c,id:p.id,error:Q.toJson()};ei(Ce,ue,te),t.write(Ce).catch(()=>i.error("Sending response failed."))}function j(Q,ue,te){Q===void 0&&(Q=null);let Ce={jsonrpc:c,id:p.id,result:Q};ei(Ce,ue,te),t.write(Ce).catch(()=>i.error("Sending response failed."))}yb(p);let oe=d.get(p.method),re,de;oe&&(re=oe.type,de=oe.handler);let ye=Date.now();if(de||u){let Q=p.id??String(Date.now()),ue=Yi.is(v.receiver)?v.receiver.createCancellationTokenSource(Q):v.receiver.createCancellationTokenSource(p);p.id!==null&&U.has(p.id)&&ue.cancel(),p.id!==null&&y.set(Q,ue);try{let te;if(de)if(p.params===void 0){if(re!==void 0&&re.numberOfParams!==0){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines ${re.numberOfParams} params but received none.`),p.method,ye);return}te=de(ue.token)}else if(Array.isArray(p.params)){if(re!==void 0&&re.parameterStructures===W.ParameterStructures.byName){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,ye);return}te=de(...p.params,ue.token)}else{if(re!==void 0&&re.parameterStructures===W.ParameterStructures.byPosition){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,ye);return}te=de(p.params,ue.token)}else u&&(te=u(p.method,p.params,ue.token));let Ce=te;te?Ce.then?Ce.then(Fe=>{y.delete(Q),_(Fe,p.method,ye)},Fe=>{y.delete(Q),Fe instanceof W.ResponseError?A(Fe,p.method,ye):Fe&&pe.string(Fe.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Fe.message}`),p.method,ye):A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ye)}):(y.delete(Q),_(te,p.method,ye)):(y.delete(Q),j(te,p.method,ye))}catch(te){y.delete(Q),te instanceof W.ResponseError?_(te,p.method,ye):te&&pe.string(te.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${te.message}`),p.method,ye):A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ye)}}else A(new W.ResponseError(W.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,ye)}function pb(p){if(!N())if(p.id===null)p.error?i.error(`Received response message without id: Error is:
35
+ `:""}qn.dump=Vp;function rx(e,t){return Vp(e,xr.extend({schema:RP},t))}qn.safeDump=rx});var Gp=R(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.determineScalarType=Je.ScalarType=Je.parseYamlFloat=Je.parseYamlInteger=Je.parseYamlBoolean=void 0;function ix(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}Je.parseYamlBoolean=ix;function ox(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function sx(e){let t=ox(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}Je.parseYamlInteger=sx;function ax(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}"`}Je.parseYamlFloat=ax;var Ot;(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"})(Ot=Je.ScalarType||(Je.ScalarType={}));function cx(e){if(e===void 0)return Ot.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Ot.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Ot.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Ot.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 Ot.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?Ot.float:Ot.string}Je.determineScalarType=cx});var On=R(be=>{"use strict";var ux=be&&be.__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]})),Qp=be&&be.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ux(t,e,n)};Object.defineProperty(be,"__esModule",{value:!0});be.safeDump=be.dump=be.safeLoadAll=be.safeLoad=be.loadAll=be.load=void 0;var yi=Wp();Object.defineProperty(be,"load",{enumerable:!0,get:function(){return yi.load}});Object.defineProperty(be,"loadAll",{enumerable:!0,get:function(){return yi.loadAll}});Object.defineProperty(be,"safeLoad",{enumerable:!0,get:function(){return yi.safeLoad}});Object.defineProperty(be,"safeLoadAll",{enumerable:!0,get:function(){return yi.safeLoadAll}});var Jp=Kp();Object.defineProperty(be,"dump",{enumerable:!0,get:function(){return Jp.dump}});Object.defineProperty(be,"safeDump",{enumerable:!0,get:function(){return Jp.safeDump}});be.YAMLException=kn();Qp(qt(),be);Qp(Gp(),be)});var jn=R(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.stringArray=Le.array=Le.func=Le.error=Le.number=Le.string=Le.boolean=void 0;function X0(e){return e===!0||e===!1}Le.boolean=X0;function ef(e){return typeof e=="string"||e instanceof String}Le.string=ef;function Z0(e){return typeof e=="number"||e instanceof Number}Le.number=Z0;function eC(e){return e instanceof Error}Le.error=eC;function tC(e){return typeof e=="function"}Le.func=tC;function tf(e){return Array.isArray(e)}Le.array=tf;function nC(e){return tf(e)&&e.every(t=>ef(t))}Le.stringArray=nC});var Na=R(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.Message=F.NotificationType9=F.NotificationType8=F.NotificationType7=F.NotificationType6=F.NotificationType5=F.NotificationType4=F.NotificationType3=F.NotificationType2=F.NotificationType1=F.NotificationType0=F.NotificationType=F.RequestType9=F.RequestType8=F.RequestType7=F.RequestType6=F.RequestType5=F.RequestType4=F.RequestType3=F.RequestType2=F.RequestType1=F.RequestType=F.RequestType0=F.AbstractMessageSignature=F.ParameterStructures=F.ResponseError=F.ErrorCodes=void 0;var bn=jn(),ca;(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})(ca||(F.ErrorCodes=ca={}));var ua=class e extends Error{constructor(t,n,r){super(n),this.code=bn.number(t)?t:ca.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}};F.ResponseError=ua;var $e=class e{constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};F.ParameterStructures=$e;$e.auto=new $e("auto");$e.byPosition=new $e("byPosition");$e.byName=new $e("byName");var se=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return $e.auto}};F.AbstractMessageSignature=se;var la=class extends se{constructor(t){super(t,0)}};F.RequestType0=la;var pa=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType=pa;var da=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.RequestType1=da;var fa=class extends se{constructor(t){super(t,2)}};F.RequestType2=fa;var ga=class extends se{constructor(t){super(t,3)}};F.RequestType3=ga;var ma=class extends se{constructor(t){super(t,4)}};F.RequestType4=ma;var ya=class extends se{constructor(t){super(t,5)}};F.RequestType5=ya;var ha=class extends se{constructor(t){super(t,6)}};F.RequestType6=ha;var ba=class extends se{constructor(t){super(t,7)}};F.RequestType7=ba;var va=class extends se{constructor(t){super(t,8)}};F.RequestType8=va;var Pa=class extends se{constructor(t){super(t,9)}};F.RequestType9=Pa;var xa=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType=xa;var _a=class extends se{constructor(t){super(t,0)}};F.NotificationType0=_a;var Ca=class extends se{constructor(t,n=$e.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};F.NotificationType1=Ca;var Ra=class extends se{constructor(t){super(t,2)}};F.NotificationType2=Ra;var Ta=class extends se{constructor(t){super(t,3)}};F.NotificationType3=Ta;var Da=class extends se{constructor(t){super(t,4)}};F.NotificationType4=Da;var wa=class extends se{constructor(t){super(t,5)}};F.NotificationType5=wa;var Sa=class extends se{constructor(t){super(t,6)}};F.NotificationType6=Sa;var ka=class extends se{constructor(t){super(t,7)}};F.NotificationType7=ka;var Aa=class extends se{constructor(t){super(t,8)}};F.NotificationType8=Aa;var Ea=class extends se{constructor(t){super(t,9)}};F.NotificationType9=Ea;var nf;(function(e){function t(i){let o=i;return o&&bn.string(o.method)&&(bn.string(o.id)||bn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&bn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(bn.string(o.id)||bn.number(o.id)||o.id===null)}e.isResponse=r})(nf||(F.Message=nf={}))});var Oa=R(Kt=>{"use strict";var rf;Object.defineProperty(Kt,"__esModule",{value:!0});Kt.LRUCache=Kt.LinkedMap=Kt.Touch=void 0;var Me;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Me||(Kt.Touch=Me={}));var Li=class{constructor(){this[rf]="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=Me.None){let r=this._map.get(t);if(r)return n!==Me.None&&this.touch(r,n),r.value}set(t,n,r=Me.None){let i=this._map.get(t);if(i)i.value=n,r!==Me.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Me.None:this.addItemLast(i);break;case Me.First:this.addItemFirst(i);break;case Me.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}[(rf=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!==Me.First&&n!==Me.Last)){if(n===Me.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===Me.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)}};Kt.LinkedMap=Li;var qa=class extends Li{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=Me.AsNew){return super.get(t,n)}peek(t){return super.get(t,Me.None)}set(t,n){return super.set(t,n,Me.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Kt.LRUCache=qa});var sf=R(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Disposable=void 0;var of;(function(e){function t(n){return{dispose:n}}e.create=t})(of||(Mi.Disposable=of={}))});var Gt=R(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var La;function Ma(){if(La===void 0)throw new Error("No runtime abstraction layer installed");return La}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");La=n}e.install=t})(Ma||(Ma={}));ja.default=Ma});var Fn=R(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.Emitter=In.Event=void 0;var rC=Gt(),af;(function(e){let t={dispose(){}};e.None=function(){return t}})(af||(In.Event=af={}));var Ia=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,rC.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ji=class e{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ia),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)}};In.Emitter=ji;ji._noop=function(){}});var Ui=R(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CancellationTokenSource=Un.CancellationToken=void 0;var iC=Gt(),oC=jn(),Fa=Fn(),Ii;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Fa.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Fa.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||oC.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(Ii||(Un.CancellationToken=Ii={}));var sC=Object.freeze(function(e,t){let n=(0,iC.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Fi=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?sC:(this._emitter||(this._emitter=new Fa.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ua=class{get token(){return this._token||(this._token=new Fi),this._token}cancel(){this._token?this._token.cancel():this._token=Ii.Cancelled}dispose(){this._token?this._token instanceof Fi&&this._token.dispose():this._token=Ii.None}};Un.CancellationTokenSource=Ua});var cf=R(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.SharedArrayReceiverStrategy=Wn.SharedArraySenderStrategy=void 0;var aC=Ui(),Dr;(function(e){e.Continue=0,e.Cancelled=1})(Dr||(Dr={}));var Wa=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]=Dr.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,Dr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Wn.SharedArraySenderStrategy=Wa;var Ha=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Dr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Ba=class{constructor(t){this.token=new Ha(t)}cancel(){}dispose(){}},za=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new aC.CancellationTokenSource:new Ba(n)}};Wn.SharedArrayReceiverStrategy=za});var Ya=R(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.Semaphore=void 0;var cC=Gt(),$a=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,cC.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()}}};Wi.Semaphore=$a});var lf=R(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ReadableStreamMessageReader=Qt.AbstractMessageReader=Qt.MessageReader=void 0;var Ka=Gt(),Hn=jn(),Va=Fn(),uC=Ya(),uf;(function(e){function t(n){let r=n;return r&&Hn.func(r.listen)&&Hn.func(r.dispose)&&Hn.func(r.onError)&&Hn.func(r.onClose)&&Hn.func(r.onPartialMessage)}e.is=t})(uf||(Qt.MessageReader=uf={}));var Hi=class{constructor(){this.errorEmitter=new Va.Emitter,this.closeEmitter=new Va.Emitter,this.partialMessageEmitter=new Va.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: ${Hn.string(t.message)?t.message:"unknown"}`)}};Qt.AbstractMessageReader=Hi;var Ga;(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,Ka.default)().applicationJson.decoder,c.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:c}}e.fromOptions=t})(Ga||(Ga={}));var Qa=class extends Hi{constructor(t,n){super(),this.readable=t,this.options=Ga.fromOptions(n),this.buffer=(0,Ka.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new uC.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,Ka.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))}};Qt.ReadableStreamMessageReader=Qa});var mf=R(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.WriteableStreamMessageWriter=Jt.AbstractMessageWriter=Jt.MessageWriter=void 0;var pf=Gt(),wr=jn(),lC=Ya(),df=Fn(),pC="Content-Length: ",ff=`\r
37
+ `,gf;(function(e){function t(n){let r=n;return r&&wr.func(r.dispose)&&wr.func(r.onClose)&&wr.func(r.onError)&&wr.func(r.write)}e.is=t})(gf||(Jt.MessageWriter=gf={}));var Bi=class{constructor(){this.errorEmitter=new df.Emitter,this.closeEmitter=new df.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: ${wr.string(t.message)?t.message:"unknown"}`)}};Jt.AbstractMessageWriter=Bi;var Ja;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,pf.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,pf.default)().applicationJson.encoder}}e.fromOptions=t})(Ja||(Ja={}));var Xa=class extends Bi{constructor(t,n){super(),this.writable=t,this.options=Ja.fromOptions(n),this.errorCount=0,this.writeSemaphore=new lC.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(pC,r.byteLength.toString(),ff),i.push(ff),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()}};Jt.WriteableStreamMessageWriter=Xa});var yf=R(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AbstractMessageBuffer=void 0;var dC=13,fC=10,gC=`\r
38
+ `,Za=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 dC:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case fC: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(gC);if(c.length<2)return a;for(let u=0;u<c.length-2;u++){let d=c[u],m=d.indexOf(":");if(m===-1)throw new Error(`Message header must separate key and value using ':'
39
+ ${d}`);let b=d.substr(0,m),h=d.substr(m+1).trim();a.set(t?b.toLowerCase():b,h)}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}};zi.AbstractMessageBuffer=Za});var xf=R(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.createMessageConnection=z.ConnectionOptions=z.MessageStrategy=z.CancellationStrategy=z.CancellationSenderStrategy=z.CancellationReceiverStrategy=z.RequestCancellationReceiverStrategy=z.IdCancellationReceiverStrategy=z.ConnectionStrategy=z.ConnectionError=z.ConnectionErrors=z.LogTraceNotification=z.SetTraceNotification=z.TraceFormat=z.TraceValues=z.Trace=z.NullLogger=z.ProgressType=z.ProgressToken=void 0;var hf=Gt(),pe=jn(),W=Na(),bf=Oa(),Sr=Fn(),ec=Ui(),Er;(function(e){e.type=new W.NotificationType("$/cancelRequest")})(Er||(Er={}));var tc;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(tc||(z.ProgressToken=tc={}));var kr;(function(e){e.type=new W.NotificationType("$/progress")})(kr||(kr={}));var nc=class{constructor(){}};z.ProgressType=nc;var rc;(function(e){function t(n){return pe.func(n)}e.is=t})(rc||(rc={}));z.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var X;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(X||(z.Trace=X={}));var vf;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(vf||(z.TraceValues=vf={}));(function(e){function t(r){if(!pe.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})(X||(z.Trace=X={}));var Ze;(function(e){e.Text="text",e.JSON="json"})(Ze||(z.TraceFormat=Ze={}));(function(e){function t(n){return pe.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(Ze||(z.TraceFormat=Ze={}));var ic;(function(e){e.type=new W.NotificationType("$/setTrace")})(ic||(z.SetTraceNotification=ic={}));var $i;(function(e){e.type=new W.NotificationType("$/logTrace")})($i||(z.LogTraceNotification=$i={}));var Ar;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(Ar||(z.ConnectionErrors=Ar={}));var Bn=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};z.ConnectionError=Bn;var oc;(function(e){function t(n){let r=n;return r&&pe.func(r.cancelUndispatched)}e.is=t})(oc||(z.ConnectionStrategy=oc={}));var Yi;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||pe.func(r.dispose))}e.is=t})(Yi||(z.IdCancellationReceiverStrategy=Yi={}));var sc;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&pe.func(r.createCancellationTokenSource)&&(r.dispose===void 0||pe.func(r.dispose))}e.is=t})(sc||(z.RequestCancellationReceiverStrategy=sc={}));var Vi;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new ec.CancellationTokenSource}});function t(n){return Yi.is(n)||sc.is(n)}e.is=t})(Vi||(z.CancellationReceiverStrategy=Vi={}));var Ki;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Er.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&pe.func(r.sendCancellation)&&pe.func(r.cleanup)}e.is=t})(Ki||(z.CancellationSenderStrategy=Ki={}));var Gi;(function(e){e.Message=Object.freeze({receiver:Vi.Message,sender:Ki.Message});function t(n){let r=n;return r&&Vi.is(r.receiver)&&Ki.is(r.sender)}e.is=t})(Gi||(z.CancellationStrategy=Gi={}));var Qi;(function(e){function t(n){let r=n;return r&&pe.func(r.handleMessage)}e.is=t})(Qi||(z.MessageStrategy=Qi={}));var Pf;(function(e){function t(n){let r=n;return r&&(Gi.is(r.cancellationStrategy)||oc.is(r.connectionStrategy)||Qi.is(r.messageStrategy))}e.is=t})(Pf||(z.ConnectionOptions=Pf={}));var gt;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(gt||(gt={}));function mC(e,t,n,r){let i=n!==void 0?n:z.NullLogger,o=0,s=0,a=0,c="2.0",u,d=new Map,m,b=new Map,h=new Map,D,I=new bf.LinkedMap,G=new Map,U=new Set,y=new Map,g=X.Off,S=Ze.Text,Y,Z=gt.New,ut=new Sr.Emitter,Ut=new Sr.Emitter,cn=new Sr.Emitter,Dn=new Sr.Emitter,k=new Sr.Emitter,v=r&&r.cancellationStrategy?r.cancellationStrategy:Gi.Message;function O(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 L(p){return p===null?"res-unknown-"+(++a).toString():"res-"+p.toString()}function x(){return"not-"+(++s).toString()}function C(p,_){W.Message.isRequest(_)?p.set(O(_.id),_):W.Message.isResponse(_)?p.set(L(_.id),_):p.set(x(),_)}function T(p){}function q(){return Z===gt.Listening}function M(){return Z===gt.Closed}function N(){return Z===gt.Disposed}function $(){(Z===gt.New||Z===gt.Listening)&&(Z=gt.Closed,Ut.fire(void 0))}function V(p){ut.fire([p,void 0,void 0])}function Te(p){ut.fire(p)}e.onClose($),e.onError(V),t.onClose($),t.onError(Te);function ne(){D||I.size===0||(D=(0,hf.default)().timer.setImmediate(()=>{D=void 0,un()}))}function lt(p){W.Message.isRequest(p)?lb(p):W.Message.isNotification(p)?db(p):W.Message.isResponse(p)?pb(p):p?.type?.startsWith("redocly/")||fb(p)}function un(){if(I.size===0)return;let p=I.shift();try{let _=r?.messageStrategy;Qi.is(_)?_.handleMessage(p,lt):lt(p)}finally{ne()}}let ub=p=>{try{if(W.Message.isNotification(p)&&p.method===Er.type.method){let _=p.params.id,A=O(_),j=I.get(A);if(W.Message.isRequest(j)){let re=r?.connectionStrategy,de=re&&re.cancelUndispatched?re.cancelUndispatched(j,T):void 0;if(de&&(de.error!==void 0||de.result!==void 0)){I.delete(A),y.delete(_),de.id=j.id,ei(de,p.method,Date.now()),t.write(de).catch(()=>i.error("Sending response for canceled message failed."));return}}let oe=y.get(_);if(oe!==void 0){oe.cancel(),hs(p);return}else U.add(_)}C(I,p)}finally{ne()}};function lb(p){if(N())return;function _(Q,ue,te){let Ce={jsonrpc:c,id:p.id};Q instanceof W.ResponseError?Ce.error=Q.toJson():Ce.result=Q===void 0?null:Q,ei(Ce,ue,te),t.write(Ce).catch(()=>i.error("Sending response failed."))}function A(Q,ue,te){let Ce={jsonrpc:c,id:p.id,error:Q.toJson()};ei(Ce,ue,te),t.write(Ce).catch(()=>i.error("Sending response failed."))}function j(Q,ue,te){Q===void 0&&(Q=null);let Ce={jsonrpc:c,id:p.id,result:Q};ei(Ce,ue,te),t.write(Ce).catch(()=>i.error("Sending response failed."))}yb(p);let oe=d.get(p.method),re,de;oe&&(re=oe.type,de=oe.handler);let ye=Date.now();if(de||u){let Q=p.id??String(Date.now()),ue=Yi.is(v.receiver)?v.receiver.createCancellationTokenSource(Q):v.receiver.createCancellationTokenSource(p);p.id!==null&&U.has(p.id)&&ue.cancel(),p.id!==null&&y.set(Q,ue);try{let te;if(de)if(p.params===void 0){if(re!==void 0&&re.numberOfParams!==0){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines ${re.numberOfParams} params but received none.`),p.method,ye);return}te=de(ue.token)}else if(Array.isArray(p.params)){if(re!==void 0&&re.parameterStructures===W.ParameterStructures.byName){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by name but received parameters by position`),p.method,ye);return}te=de(...p.params,ue.token)}else{if(re!==void 0&&re.parameterStructures===W.ParameterStructures.byPosition){A(new W.ResponseError(W.ErrorCodes.InvalidParams,`Request ${p.method} defines parameters by position but received parameters by name`),p.method,ye);return}te=de(p.params,ue.token)}else u&&(te=u(p.method,p.params,ue.token));let Ce=te;te?Ce.then?Ce.then(Fe=>{y.delete(Q),_(Fe,p.method,ye)},Fe=>{y.delete(Q),Fe instanceof W.ResponseError?A(Fe,p.method,ye):Fe&&pe.string(Fe.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${Fe.message}`),p.method,ye):A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ye)}):(y.delete(Q),_(te,p.method,ye)):(y.delete(Q),j(te,p.method,ye))}catch(te){y.delete(Q),te instanceof W.ResponseError?_(te,p.method,ye):te&&pe.string(te.message)?A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed with message: ${te.message}`),p.method,ye):A(new W.ResponseError(W.ErrorCodes.InternalError,`Request ${p.method} failed unexpectedly without providing any details.`),p.method,ye)}}else A(new W.ResponseError(W.ErrorCodes.MethodNotFound,`Unhandled method ${p.method}`),p.method,ye)}function pb(p){if(!N())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=G.get(_);if(hb(p,A),A!==void 0){G.delete(_);try{if(p.error){let j=p.error;A.reject(new W.ResponseError(j.code,j.message,j.data))}else if(p.result!==void 0)A.resolve(p.result);else throw new Error("Should never happen.")}catch(j){j.message?i.error(`Response handler '${A.method}' failed with message: ${j.message}`):i.error(`Response handler '${A.method}' failed unexpectedly.`)}}}}function db(p){if(N())return;let _,A;if(p.method===Er.type.method){let j=p.params.id;U.delete(j),hs(p);return}else{let j=b.get(p.method);j&&(A=j.handler,_=j.type)}if(A||m)try{if(hs(p),A)if(p.params===void 0)_!==void 0&&_.numberOfParams!==0&&_.parameterStructures!==W.ParameterStructures.byName&&i.error(`Notification ${p.method} defines ${_.numberOfParams} params but received none.`),A();else if(Array.isArray(p.params)){let j=p.params;p.method===kr.type.method&&j.length===2&&tc.is(j[0])?A({token:j[0],value:j[1]}):(_!==void 0&&(_.parameterStructures===W.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 ${j.length} arguments`)),A(...j))}else _!==void 0&&_.parameterStructures===W.ParameterStructures.byPosition&&i.error(`Notification ${p.method} defines parameters by position but received parameters by name`),A(p.params);else m&&m(p.method,p.params)}catch(j){j.message?i.error(`Notification handler '${p.method}' failed with message: ${j.message}`):i.error(`Notification handler '${p.method}' failed unexpectedly.`)}else cn.fire(p)}function fb(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(pe.string(_.id)||pe.number(_.id)){let A=_.id,j=G.get(A);j&&j.reject(new Error("The received response has neither a result nor an error property."))}}function Wt(p){if(p!=null)switch(g){case X.Verbose:return JSON.stringify(p,null,4);case X.Compact:return JSON.stringify(p);default:return}}function gb(p){if(!(g===X.Off||!Y))if(S===Ze.Text){let _;(g===X.Verbose||g===X.Compact)&&p.params&&(_=`Params: ${Wt(p.params)}
42
42
 
@@ -62,34 +62,34 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(pe.string(_.id)||pe.number(_.id)){let A
62
62
 
63
63
  `:p.error===void 0&&(A=`No result returned.
64
64
 
65
- `)),_){let j=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${j}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else wn("receive-response",p)}function wn(p,_){if(!Y||g===X.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function fr(){if(M())throw new Bn(Ar.Closed,"Connection is closed.");if(N())throw new Bn(Ar.Disposed,"Connection is disposed.")}function bb(){if(q())throw new Bn(Ar.AlreadyListening,"Connection is already listening")}function vb(){if(!q())throw new Error("Call listen() first.")}function gr(p){return p===void 0?null:p}function bl(p){if(p!==null)return p}function vl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function bs(p,_){switch(p){case W.ParameterStructures.auto:return vl(_)?bl(_):[gr(_)];case W.ParameterStructures.byName:if(!vl(_))throw new Error("Received parameters by name but param is not an object literal.");return bl(_);case W.ParameterStructures.byPosition:return[gr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Pl(p,_){let A,j=p.numberOfParams;switch(j){case 0:A=void 0;break;case 1:A=bs(p.parameterStructures,_[0]);break;default:A=[];for(let oe=0;oe<_.length&&oe<j;oe++)A.push(gr(_[oe]));if(_.length<j)for(let oe=_.length;oe<j;oe++)A.push(null);break}return A}let Sn={sendNotification:(p,..._)=>{fr();let A,j;if(pe.string(p)){A=p;let re=_[0],de=0,ye=W.ParameterStructures.auto;W.ParameterStructures.is(re)&&(de=1,ye=re);let Q=_.length,ue=Q-de;switch(ue){case 0:j=void 0;break;case 1:j=bs(ye,_[de]);break;default:if(ye===W.ParameterStructures.byName)throw new Error(`Received ${ue} parameters for 'by Name' notification parameter structure.`);j=_.slice(de,Q).map(te=>gr(te));break}}else{let re=_;A=p.method,j=Pl(p,re)}let oe={jsonrpc:c,method:A,params:j};return mb(oe),t.write(oe).catch(re=>{throw i.error("Sending notification failed."),re})},onNotification:(p,_)=>{fr();let A;return pe.func(p)?m=p:_&&(pe.string(p)?(A=p,b.set(p,{type:void 0,handler:_})):(A=p.method,b.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?b.delete(A):m=void 0}}},onProgress:(p,_,A)=>{if(h.has(_))throw new Error(`Progress handler for token ${_} already registered`);return h.set(_,A),{dispose:()=>{h.delete(_)}}},sendProgress:(p,_,A)=>Sn.sendNotification(kr.type,{token:_,value:A}),onUnhandledProgress:Dn.event,sendRequest:(p,..._)=>{fr(),vb();let A,j,oe;if(pe.string(p)){A=p;let Q=_[0],ue=_[_.length-1],te=0,Ce=W.ParameterStructures.auto;W.ParameterStructures.is(Q)&&(te=1,Ce=Q);let Fe=_.length;ec.CancellationToken.is(ue)&&(Fe=Fe-1,oe=ue);let ht=Fe-te;switch(ht){case 0:j=void 0;break;case 1:j=bs(Ce,_[te]);break;default:if(Ce===W.ParameterStructures.byName)throw new Error(`Received ${ht} parameters for 'by Name' request parameter structure.`);j=_.slice(te,Fe).map(Pb=>gr(Pb));break}}else{let Q=_;A=p.method,j=Pl(p,Q);let ue=p.numberOfParams;oe=ec.CancellationToken.is(Q[ue])?Q[ue]:void 0}let re=o++,de;oe&&(de=oe.onCancellationRequested(()=>{let Q=v.sender.sendCancellation(Sn,re);return Q===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${re}`),Promise.resolve()):Q.catch(()=>{i.log(`Sending cancellation messages for id ${re} failed`)})}));let ye={jsonrpc:c,id:re,method:A,params:j};return gb(ye),typeof v.sender.enableCancellation=="function"&&v.sender.enableCancellation(ye),new Promise(async(Q,ue)=>{let te=ht=>{Q(ht),v.sender.cleanup(re),de?.dispose()},Ce=ht=>{ue(ht),v.sender.cleanup(re),de?.dispose()},Fe={method:A,timerStart:Date.now(),resolve:te,reject:Ce};try{await t.write(ye),G.set(re,Fe)}catch(ht){throw i.error("Sending request failed."),Fe.reject(new W.ResponseError(W.ErrorCodes.MessageWriteError,ht.message?ht.message:"Unknown reason")),ht}})},onRequest:(p,_)=>{fr();let A=null;return rc.is(p)?(A=void 0,u=p):pe.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:()=>G.size>0,trace:async(p,_,A)=>{let j=!1,oe=Ze.Text;A!==void 0&&(pe.boolean(A)?j=A:(j=A.sendNotification||!1,oe=A.traceFormat||Ze.Text)),g=p,S=oe,g===X.Off?Y=void 0:Y=_,j&&!M()&&!N()&&await Sn.sendNotification(ic.type,{value:X.toString(p)})},onError:ut.event,onClose:Ut.event,onUnhandledNotification:cn.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;Z=gt.Disposed,k.fire(void 0);let p=new W.ResponseError(W.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of G.values())_.reject(p);G=new Map,y=new Map,U=new Set,I=new bf.LinkedMap,pe.func(t.dispose)&&t.dispose(),pe.func(e.dispose)&&e.dispose()},listen:()=>{fr(),bb(),Z=gt.Listening,e.listen(ub)},inspect:()=>{(0,hf.default)().console.log("inspect")}};return Sn.onNotification($i.type,p=>{if(g===X.Off||!Y)return;let _=g===X.Verbose||g===X.Compact;Y.log(p.message,_?p.verbose:void 0)}),Sn.onNotification(kr.type,p=>{let _=h.get(p.token);_?_(p.value):Dn.fire(p)}),Sn}z.createMessageConnection=gC});var Ji=R(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.ProgressType=P.ProgressToken=P.createMessageConnection=P.NullLogger=P.ConnectionOptions=P.ConnectionStrategy=P.AbstractMessageBuffer=P.WriteableStreamMessageWriter=P.AbstractMessageWriter=P.MessageWriter=P.ReadableStreamMessageReader=P.AbstractMessageReader=P.MessageReader=P.SharedArrayReceiverStrategy=P.SharedArraySenderStrategy=P.CancellationToken=P.CancellationTokenSource=P.Emitter=P.Event=P.Disposable=P.LRUCache=P.Touch=P.LinkedMap=P.ParameterStructures=P.NotificationType9=P.NotificationType8=P.NotificationType7=P.NotificationType6=P.NotificationType5=P.NotificationType4=P.NotificationType3=P.NotificationType2=P.NotificationType1=P.NotificationType0=P.NotificationType=P.ErrorCodes=P.ResponseError=P.RequestType9=P.RequestType8=P.RequestType7=P.RequestType6=P.RequestType5=P.RequestType4=P.RequestType3=P.RequestType2=P.RequestType1=P.RequestType0=P.RequestType=P.Message=P.RAL=void 0;P.MessageStrategy=P.CancellationStrategy=P.CancellationSenderStrategy=P.CancellationReceiverStrategy=P.ConnectionError=P.ConnectionErrors=P.LogTraceNotification=P.SetTraceNotification=P.TraceFormat=P.TraceValues=P.Trace=void 0;var ie=Na();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return ie.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return ie.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return ie.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return ie.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return ie.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return ie.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return ie.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return ie.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return ie.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return ie.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return ie.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return ie.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return ie.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return ie.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return ie.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return ie.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return ie.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return ie.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return ie.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return ie.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return ie.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return ie.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return ie.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return ie.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return ie.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return ie.ParameterStructures}});var ac=Oa();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return ac.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return ac.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return ac.Touch}});var mC=sf();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return mC.Disposable}});var _f=Fn();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return _f.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return _f.Emitter}});var Cf=Ui();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return Cf.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return Cf.CancellationToken}});var Rf=cf();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Rf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Rf.SharedArrayReceiverStrategy}});var cc=lf();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return cc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return cc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return cc.ReadableStreamMessageReader}});var uc=mf();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return uc.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return uc.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return uc.WriteableStreamMessageWriter}});var yC=yf();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return yC.AbstractMessageBuffer}});var qe=xf();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return qe.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return qe.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return qe.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return qe.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return qe.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return qe.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return qe.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return qe.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return qe.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return qe.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return qe.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return qe.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return qe.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return qe.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return qe.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return qe.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return qe.MessageStrategy}});var hC=Gt();P.RAL=hC.default});var Df=R(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var Rt=Ji(),Xi=class e extends Rt.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)}};Xi.emptyBuffer=new Uint8Array(0);var lc=class{constructor(t){this.socket=t,this._onData=new Rt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Rt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},pc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.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()}},bC=new TextEncoder,Tf=Object.freeze({messageBuffer:Object.freeze({create:e=>new Xi(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(bC.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 lc(e),asWritableStream:e=>new pc(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 dc(){return Tf}(function(e){function t(){Rt.RAL.install(Tf)}e.install=t})(dc||(dc={}));fc.default=dc});var vn=R(et=>{"use strict";var vC=et&&et.__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]})),PC=et&&et.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&vC(t,e,n)};Object.defineProperty(et,"__esModule",{value:!0});et.createMessageConnection=et.BrowserMessageWriter=et.BrowserMessageReader=void 0;var xC=Df();xC.default.install();var zn=Ji();PC(Ji(),et);var gc=class extends zn.AbstractMessageReader{constructor(t){super(),this._onData=new zn.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)}};et.BrowserMessageReader=gc;var mc=class extends zn.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(){}};et.BrowserMessageWriter=mc;function _C(e,t,n,r){return n===void 0&&(n=zn.NullLogger),zn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,zn.createMessageConnection)(e,t,n,r)}et.createMessageConnection=_C});var yc=R((eS,wf)=>{"use strict";wf.exports=vn()});var ao={};vs(ao,{AnnotatedTextEdit:()=>Mt,ChangeAnnotation:()=>Pn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>Jc,CodeActionContext:()=>Qc,CodeActionKind:()=>Gc,CodeActionTriggerKind:()=>Ir,CodeDescription:()=>Dc,CodeLens:()=>Xc,Color:()=>eo,ColorInformation:()=>Pc,ColorPresentation:()=>xc,Command:()=>xn,CompletionItem:()=>jc,CompletionItemKind:()=>Ec,CompletionItemLabelDetails:()=>Mc,CompletionItemTag:()=>qc,CompletionList:()=>Ic,CreateFile:()=>Yn,DeleteFile:()=>Kn,Diagnostic:()=>Or,DiagnosticRelatedInformation:()=>to,DiagnosticSeverity:()=>Rc,DiagnosticTag:()=>Tc,DocumentHighlight:()=>Bc,DocumentHighlightKind:()=>Hc,DocumentLink:()=>eu,DocumentSymbol:()=>Kc,DocumentUri:()=>hc,EOL:()=>CC,FoldingRange:()=>Cc,FoldingRangeKind:()=>_c,FormattingOptions:()=>Zc,Hover:()=>Fc,InlayHint:()=>uu,InlayHintKind:()=>oo,InlayHintLabelPart:()=>so,InlineCompletionContext:()=>mu,InlineCompletionItem:()=>pu,InlineCompletionList:()=>du,InlineCompletionTriggerKind:()=>fu,InlineValueContext:()=>cu,InlineValueEvaluatableExpression:()=>au,InlineValueText:()=>ou,InlineValueVariableLookup:()=>su,InsertReplaceEdit:()=>Oc,InsertTextFormat:()=>Nc,InsertTextMode:()=>Lc,Location:()=>qr,LocationLink:()=>vc,MarkedString:()=>jr,MarkupContent:()=>Gn,MarkupKind:()=>io,OptionalVersionedTextDocumentIdentifier:()=>Mr,ParameterInformation:()=>Uc,Position:()=>rt,Range:()=>fe,RenameFile:()=>Vn,SelectedCompletionInfo:()=>gu,SelectionRange:()=>tu,SemanticTokenModifiers:()=>ru,SemanticTokenTypes:()=>nu,SemanticTokens:()=>iu,SignatureInformation:()=>Wc,StringValue:()=>lu,SymbolInformation:()=>Yc,SymbolKind:()=>zc,SymbolTag:()=>$c,TextDocument:()=>hu,TextDocumentEdit:()=>Lr,TextDocumentIdentifier:()=>Sc,TextDocumentItem:()=>Ac,TextEdit:()=>Tt,URI:()=>Zi,VersionedTextDocumentIdentifier:()=>kc,WorkspaceChange:()=>wc,WorkspaceEdit:()=>no,WorkspaceFolder:()=>yu,WorkspaceSymbol:()=>Vc,integer:()=>bc,uinteger:()=>Nr});var hc,Zi,bc,Nr,rt,fe,qr,vc,eo,Pc,xc,_c,Cc,to,Rc,Tc,Dc,Or,xn,Tt,Pn,Oe,Mt,Lr,Yn,Vn,Kn,no,$n,ro,wc,Sc,kc,Mr,Ac,io,Gn,Ec,Nc,qc,Oc,Lc,Mc,jc,Ic,jr,Fc,Uc,Wc,Hc,Bc,zc,$c,Yc,Vc,Kc,Gc,Ir,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,su,au,cu,oo,so,uu,lu,pu,du,fu,gu,mu,yu,CC,hu,bu,f,co=xl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(hc||(hc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(Zi||(Zi={}));(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})(Nr||(Nr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Nr.MAX_VALUE),i===Number.MAX_VALUE&&(i=Nr.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})(rt||(rt={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:rt.create(r,i),end:rt.create(o,s)};if(rt.is(r)&&rt.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)&&rt.is(i.start)&&rt.is(i.end)}e.is=n})(fe||(fe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(qr||(qr={}));(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)&&fe.is(i.targetRange)&&f.string(i.targetUri)&&fe.is(i.targetSelectionRange)&&(fe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(vc||(vc={}));(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})(eo||(eo={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&eo.is(i.color)}e.is=n})(Pc||(Pc={}));(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)||Tt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Tt.is))}e.is=n})(xc||(xc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_c||(_c={}));(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})(Cc||(Cc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&qr.is(i.location)&&f.string(i.message)}e.is=n})(to||(to={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Rc||(Rc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Tc||(Tc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Dc||(Dc={}));(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)&&fe.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,to.is))}e.is=n})(Or||(Or={}));(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})(xn||(xn={}));(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)&&fe.is(s.range)}e.is=i})(Tt||(Tt={}));(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})(Pn||(Pn={}));(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 Tt.is(s)&&(Pn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Mt||(Mt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Mr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Lr||(Lr={}));(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})(Yn||(Yn={}));(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})(Vn||(Vn={}));(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})(Kn||(Kn={}));(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)?Yn.is(i)||Vn.is(i)||Kn.is(i):Lr.is(i)))}e.is=t})(no||(no={}));$n=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Tt.insert(t,n):Oe.is(r)?(o=r,i=Mt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.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=Tt.replace(t,n):Oe.is(r)?(o=r,i=Mt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Tt.del(t):Oe.is(n)?(i=n,r=Mt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Mt.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.")}},ro=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()}},wc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ro(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Lr.is(n)){let r=new $n(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new $n(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(Mr.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 $n(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 $n(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ro,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;Pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Yn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Yn.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;Pn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Vn.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=Vn.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;Pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Kn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Kn.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})(Sc||(Sc={}));(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})(kc||(kc={}));(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})(Mr||(Mr={}));(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})(Ac||(Ac={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(io||(io={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&io.is(r.kind)&&f.string(r.value)}e.is=t})(Gn||(Gn={}));(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})(Ec||(Ec={}));(function(e){e.PlainText=1,e.Snippet=2})(Nc||(Nc={}));(function(e){e.Deprecated=1})(qc||(qc={}));(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)&&fe.is(i.insert)&&fe.is(i.replace)}e.is=n})(Oc||(Oc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Lc||(Lc={}));(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})(Mc||(Mc={}));(function(e){function t(n){return{label:n}}e.create=t})(jc||(jc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Ic||(Ic={}));(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})(jr||(jr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Gn.is(r.contents)||jr.is(r.contents)||f.typedArray(r.contents,jr.is))&&(n.range===void 0||fe.is(n.range))}e.is=t})(Fc||(Fc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Uc||(Uc={}));(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})(Wc||(Wc={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Hc||(Hc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(Bc||(Bc={}));(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})(zc||(zc={}));(function(e){e.Deprecated=1})($c||($c={}));(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})(Yc||(Yc={}));(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})(Vc||(Vc={}));(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)&&fe.is(i.range)&&fe.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})(Kc||(Kc={}));(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"})(Gc||(Gc={}));(function(e){e.Invoked=1,e.Automatic=2})(Ir||(Ir={}));(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,Or.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Ir.Invoked||i.triggerKind===Ir.Automatic)}e.is=n})(Qc||(Qc={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):xn.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,Or.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||xn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||no.is(i.edit))}e.is=n})(Jc||(Jc={}));(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)&&fe.is(i.range)&&(f.undefined(i.command)||xn.is(i.command))}e.is=n})(Xc||(Xc={}));(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})(Zc||(Zc={}));(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)&&fe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(eu||(eu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(tu||(tu={}));(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"})(nu||(nu={}));(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"})(ru||(ru={}));(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})(iu||(iu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&f.string(i.text)}e.is=n})(ou||(ou={}));(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&&fe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(su||(su={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(au||(au={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&fe.is(r.stoppedLocation)}e.is=n})(cu||(cu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(oo||(oo={}));(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)||Gn.is(i.tooltip))&&(i.location===void 0||qr.is(i.location))&&(i.command===void 0||xn.is(i.command))}e.is=n})(so||(so={}));(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)&&rt.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,so.is))&&(i.kind===void 0||oo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Tt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Gn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(uu||(uu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(lu||(lu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(pu||(pu={}));(function(e){function t(n){return{items:n}}e.create=t})(du||(du={}));(function(e){e.Invoked=0,e.Automatic=1})(fu||(fu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(gu||(gu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(mu||(mu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Zi.is(r.uri)&&f.string(r.name)}e.is=t})(yu||(yu={}));CC=[`
65
+ `)),_){let j=p.error?` Request failed: ${p.error.message} (${p.error.code}).`:"";Y.log(`Received response '${_.method} - (${p.id})' in ${Date.now()-_.timerStart}ms.${j}`,A)}else Y.log(`Received response ${p.id} without active response promise.`,A)}else wn("receive-response",p)}function wn(p,_){if(!Y||g===X.Off)return;let A={isLSPMessage:!0,type:p,message:_,timestamp:Date.now()};Y.log(A)}function fr(){if(M())throw new Bn(Ar.Closed,"Connection is closed.");if(N())throw new Bn(Ar.Disposed,"Connection is disposed.")}function bb(){if(q())throw new Bn(Ar.AlreadyListening,"Connection is already listening")}function vb(){if(!q())throw new Error("Call listen() first.")}function gr(p){return p===void 0?null:p}function bl(p){if(p!==null)return p}function vl(p){return p!=null&&!Array.isArray(p)&&typeof p=="object"}function bs(p,_){switch(p){case W.ParameterStructures.auto:return vl(_)?bl(_):[gr(_)];case W.ParameterStructures.byName:if(!vl(_))throw new Error("Received parameters by name but param is not an object literal.");return bl(_);case W.ParameterStructures.byPosition:return[gr(_)];default:throw new Error(`Unknown parameter structure ${p.toString()}`)}}function Pl(p,_){let A,j=p.numberOfParams;switch(j){case 0:A=void 0;break;case 1:A=bs(p.parameterStructures,_[0]);break;default:A=[];for(let oe=0;oe<_.length&&oe<j;oe++)A.push(gr(_[oe]));if(_.length<j)for(let oe=_.length;oe<j;oe++)A.push(null);break}return A}let Sn={sendNotification:(p,..._)=>{fr();let A,j;if(pe.string(p)){A=p;let re=_[0],de=0,ye=W.ParameterStructures.auto;W.ParameterStructures.is(re)&&(de=1,ye=re);let Q=_.length,ue=Q-de;switch(ue){case 0:j=void 0;break;case 1:j=bs(ye,_[de]);break;default:if(ye===W.ParameterStructures.byName)throw new Error(`Received ${ue} parameters for 'by Name' notification parameter structure.`);j=_.slice(de,Q).map(te=>gr(te));break}}else{let re=_;A=p.method,j=Pl(p,re)}let oe={jsonrpc:c,method:A,params:j};return mb(oe),t.write(oe).catch(re=>{throw i.error("Sending notification failed."),re})},onNotification:(p,_)=>{fr();let A;return pe.func(p)?m=p:_&&(pe.string(p)?(A=p,b.set(p,{type:void 0,handler:_})):(A=p.method,b.set(p.method,{type:p,handler:_}))),{dispose:()=>{A!==void 0?b.delete(A):m=void 0}}},onProgress:(p,_,A)=>{if(h.has(_))throw new Error(`Progress handler for token ${_} already registered`);return h.set(_,A),{dispose:()=>{h.delete(_)}}},sendProgress:(p,_,A)=>Sn.sendNotification(kr.type,{token:_,value:A}),onUnhandledProgress:Dn.event,sendRequest:(p,..._)=>{fr(),vb();let A,j,oe;if(pe.string(p)){A=p;let Q=_[0],ue=_[_.length-1],te=0,Ce=W.ParameterStructures.auto;W.ParameterStructures.is(Q)&&(te=1,Ce=Q);let Fe=_.length;ec.CancellationToken.is(ue)&&(Fe=Fe-1,oe=ue);let ht=Fe-te;switch(ht){case 0:j=void 0;break;case 1:j=bs(Ce,_[te]);break;default:if(Ce===W.ParameterStructures.byName)throw new Error(`Received ${ht} parameters for 'by Name' request parameter structure.`);j=_.slice(te,Fe).map(Pb=>gr(Pb));break}}else{let Q=_;A=p.method,j=Pl(p,Q);let ue=p.numberOfParams;oe=ec.CancellationToken.is(Q[ue])?Q[ue]:void 0}let re=o++,de;oe&&(de=oe.onCancellationRequested(()=>{let Q=v.sender.sendCancellation(Sn,re);return Q===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${re}`),Promise.resolve()):Q.catch(()=>{i.log(`Sending cancellation messages for id ${re} failed`)})}));let ye={jsonrpc:c,id:re,method:A,params:j};return gb(ye),typeof v.sender.enableCancellation=="function"&&v.sender.enableCancellation(ye),new Promise(async(Q,ue)=>{let te=ht=>{Q(ht),v.sender.cleanup(re),de?.dispose()},Ce=ht=>{ue(ht),v.sender.cleanup(re),de?.dispose()},Fe={method:A,timerStart:Date.now(),resolve:te,reject:Ce};try{await t.write(ye),G.set(re,Fe)}catch(ht){throw i.error("Sending request failed."),Fe.reject(new W.ResponseError(W.ErrorCodes.MessageWriteError,ht.message?ht.message:"Unknown reason")),ht}})},onRequest:(p,_)=>{fr();let A=null;return rc.is(p)?(A=void 0,u=p):pe.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:()=>G.size>0,trace:async(p,_,A)=>{let j=!1,oe=Ze.Text;A!==void 0&&(pe.boolean(A)?j=A:(j=A.sendNotification||!1,oe=A.traceFormat||Ze.Text)),g=p,S=oe,g===X.Off?Y=void 0:Y=_,j&&!M()&&!N()&&await Sn.sendNotification(ic.type,{value:X.toString(p)})},onError:ut.event,onClose:Ut.event,onUnhandledNotification:cn.event,onDispose:k.event,end:()=>{t.end()},dispose:()=>{if(N())return;Z=gt.Disposed,k.fire(void 0);let p=new W.ResponseError(W.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let _ of G.values())_.reject(p);G=new Map,y=new Map,U=new Set,I=new bf.LinkedMap,pe.func(t.dispose)&&t.dispose(),pe.func(e.dispose)&&e.dispose()},listen:()=>{fr(),bb(),Z=gt.Listening,e.listen(ub)},inspect:()=>{(0,hf.default)().console.log("inspect")}};return Sn.onNotification($i.type,p=>{if(g===X.Off||!Y)return;let _=g===X.Verbose||g===X.Compact;Y.log(p.message,_?p.verbose:void 0)}),Sn.onNotification(kr.type,p=>{let _=h.get(p.token);_?_(p.value):Dn.fire(p)}),Sn}z.createMessageConnection=mC});var Ji=R(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.ProgressType=P.ProgressToken=P.createMessageConnection=P.NullLogger=P.ConnectionOptions=P.ConnectionStrategy=P.AbstractMessageBuffer=P.WriteableStreamMessageWriter=P.AbstractMessageWriter=P.MessageWriter=P.ReadableStreamMessageReader=P.AbstractMessageReader=P.MessageReader=P.SharedArrayReceiverStrategy=P.SharedArraySenderStrategy=P.CancellationToken=P.CancellationTokenSource=P.Emitter=P.Event=P.Disposable=P.LRUCache=P.Touch=P.LinkedMap=P.ParameterStructures=P.NotificationType9=P.NotificationType8=P.NotificationType7=P.NotificationType6=P.NotificationType5=P.NotificationType4=P.NotificationType3=P.NotificationType2=P.NotificationType1=P.NotificationType0=P.NotificationType=P.ErrorCodes=P.ResponseError=P.RequestType9=P.RequestType8=P.RequestType7=P.RequestType6=P.RequestType5=P.RequestType4=P.RequestType3=P.RequestType2=P.RequestType1=P.RequestType0=P.RequestType=P.Message=P.RAL=void 0;P.MessageStrategy=P.CancellationStrategy=P.CancellationSenderStrategy=P.CancellationReceiverStrategy=P.ConnectionError=P.ConnectionErrors=P.LogTraceNotification=P.SetTraceNotification=P.TraceFormat=P.TraceValues=P.Trace=void 0;var ie=Na();Object.defineProperty(P,"Message",{enumerable:!0,get:function(){return ie.Message}});Object.defineProperty(P,"RequestType",{enumerable:!0,get:function(){return ie.RequestType}});Object.defineProperty(P,"RequestType0",{enumerable:!0,get:function(){return ie.RequestType0}});Object.defineProperty(P,"RequestType1",{enumerable:!0,get:function(){return ie.RequestType1}});Object.defineProperty(P,"RequestType2",{enumerable:!0,get:function(){return ie.RequestType2}});Object.defineProperty(P,"RequestType3",{enumerable:!0,get:function(){return ie.RequestType3}});Object.defineProperty(P,"RequestType4",{enumerable:!0,get:function(){return ie.RequestType4}});Object.defineProperty(P,"RequestType5",{enumerable:!0,get:function(){return ie.RequestType5}});Object.defineProperty(P,"RequestType6",{enumerable:!0,get:function(){return ie.RequestType6}});Object.defineProperty(P,"RequestType7",{enumerable:!0,get:function(){return ie.RequestType7}});Object.defineProperty(P,"RequestType8",{enumerable:!0,get:function(){return ie.RequestType8}});Object.defineProperty(P,"RequestType9",{enumerable:!0,get:function(){return ie.RequestType9}});Object.defineProperty(P,"ResponseError",{enumerable:!0,get:function(){return ie.ResponseError}});Object.defineProperty(P,"ErrorCodes",{enumerable:!0,get:function(){return ie.ErrorCodes}});Object.defineProperty(P,"NotificationType",{enumerable:!0,get:function(){return ie.NotificationType}});Object.defineProperty(P,"NotificationType0",{enumerable:!0,get:function(){return ie.NotificationType0}});Object.defineProperty(P,"NotificationType1",{enumerable:!0,get:function(){return ie.NotificationType1}});Object.defineProperty(P,"NotificationType2",{enumerable:!0,get:function(){return ie.NotificationType2}});Object.defineProperty(P,"NotificationType3",{enumerable:!0,get:function(){return ie.NotificationType3}});Object.defineProperty(P,"NotificationType4",{enumerable:!0,get:function(){return ie.NotificationType4}});Object.defineProperty(P,"NotificationType5",{enumerable:!0,get:function(){return ie.NotificationType5}});Object.defineProperty(P,"NotificationType6",{enumerable:!0,get:function(){return ie.NotificationType6}});Object.defineProperty(P,"NotificationType7",{enumerable:!0,get:function(){return ie.NotificationType7}});Object.defineProperty(P,"NotificationType8",{enumerable:!0,get:function(){return ie.NotificationType8}});Object.defineProperty(P,"NotificationType9",{enumerable:!0,get:function(){return ie.NotificationType9}});Object.defineProperty(P,"ParameterStructures",{enumerable:!0,get:function(){return ie.ParameterStructures}});var ac=Oa();Object.defineProperty(P,"LinkedMap",{enumerable:!0,get:function(){return ac.LinkedMap}});Object.defineProperty(P,"LRUCache",{enumerable:!0,get:function(){return ac.LRUCache}});Object.defineProperty(P,"Touch",{enumerable:!0,get:function(){return ac.Touch}});var yC=sf();Object.defineProperty(P,"Disposable",{enumerable:!0,get:function(){return yC.Disposable}});var _f=Fn();Object.defineProperty(P,"Event",{enumerable:!0,get:function(){return _f.Event}});Object.defineProperty(P,"Emitter",{enumerable:!0,get:function(){return _f.Emitter}});var Cf=Ui();Object.defineProperty(P,"CancellationTokenSource",{enumerable:!0,get:function(){return Cf.CancellationTokenSource}});Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return Cf.CancellationToken}});var Rf=cf();Object.defineProperty(P,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return Rf.SharedArraySenderStrategy}});Object.defineProperty(P,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return Rf.SharedArrayReceiverStrategy}});var cc=lf();Object.defineProperty(P,"MessageReader",{enumerable:!0,get:function(){return cc.MessageReader}});Object.defineProperty(P,"AbstractMessageReader",{enumerable:!0,get:function(){return cc.AbstractMessageReader}});Object.defineProperty(P,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return cc.ReadableStreamMessageReader}});var uc=mf();Object.defineProperty(P,"MessageWriter",{enumerable:!0,get:function(){return uc.MessageWriter}});Object.defineProperty(P,"AbstractMessageWriter",{enumerable:!0,get:function(){return uc.AbstractMessageWriter}});Object.defineProperty(P,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return uc.WriteableStreamMessageWriter}});var hC=yf();Object.defineProperty(P,"AbstractMessageBuffer",{enumerable:!0,get:function(){return hC.AbstractMessageBuffer}});var qe=xf();Object.defineProperty(P,"ConnectionStrategy",{enumerable:!0,get:function(){return qe.ConnectionStrategy}});Object.defineProperty(P,"ConnectionOptions",{enumerable:!0,get:function(){return qe.ConnectionOptions}});Object.defineProperty(P,"NullLogger",{enumerable:!0,get:function(){return qe.NullLogger}});Object.defineProperty(P,"createMessageConnection",{enumerable:!0,get:function(){return qe.createMessageConnection}});Object.defineProperty(P,"ProgressToken",{enumerable:!0,get:function(){return qe.ProgressToken}});Object.defineProperty(P,"ProgressType",{enumerable:!0,get:function(){return qe.ProgressType}});Object.defineProperty(P,"Trace",{enumerable:!0,get:function(){return qe.Trace}});Object.defineProperty(P,"TraceValues",{enumerable:!0,get:function(){return qe.TraceValues}});Object.defineProperty(P,"TraceFormat",{enumerable:!0,get:function(){return qe.TraceFormat}});Object.defineProperty(P,"SetTraceNotification",{enumerable:!0,get:function(){return qe.SetTraceNotification}});Object.defineProperty(P,"LogTraceNotification",{enumerable:!0,get:function(){return qe.LogTraceNotification}});Object.defineProperty(P,"ConnectionErrors",{enumerable:!0,get:function(){return qe.ConnectionErrors}});Object.defineProperty(P,"ConnectionError",{enumerable:!0,get:function(){return qe.ConnectionError}});Object.defineProperty(P,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return qe.CancellationReceiverStrategy}});Object.defineProperty(P,"CancellationSenderStrategy",{enumerable:!0,get:function(){return qe.CancellationSenderStrategy}});Object.defineProperty(P,"CancellationStrategy",{enumerable:!0,get:function(){return qe.CancellationStrategy}});Object.defineProperty(P,"MessageStrategy",{enumerable:!0,get:function(){return qe.MessageStrategy}});var bC=Gt();P.RAL=bC.default});var Df=R(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var Rt=Ji(),Xi=class e extends Rt.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)}};Xi.emptyBuffer=new Uint8Array(0);var lc=class{constructor(t){this.socket=t,this._onData=new Rt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Rt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},pc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Rt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Rt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Rt.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()}},vC=new TextEncoder,Tf=Object.freeze({messageBuffer:Object.freeze({create:e=>new Xi(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(vC.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 lc(e),asWritableStream:e=>new pc(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 dc(){return Tf}(function(e){function t(){Rt.RAL.install(Tf)}e.install=t})(dc||(dc={}));fc.default=dc});var vn=R(et=>{"use strict";var PC=et&&et.__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]})),xC=et&&et.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&PC(t,e,n)};Object.defineProperty(et,"__esModule",{value:!0});et.createMessageConnection=et.BrowserMessageWriter=et.BrowserMessageReader=void 0;var _C=Df();_C.default.install();var zn=Ji();xC(Ji(),et);var gc=class extends zn.AbstractMessageReader{constructor(t){super(),this._onData=new zn.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)}};et.BrowserMessageReader=gc;var mc=class extends zn.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(){}};et.BrowserMessageWriter=mc;function CC(e,t,n,r){return n===void 0&&(n=zn.NullLogger),zn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,zn.createMessageConnection)(e,t,n,r)}et.createMessageConnection=CC});var yc=R((tS,wf)=>{"use strict";wf.exports=vn()});var ao={};vs(ao,{AnnotatedTextEdit:()=>Mt,ChangeAnnotation:()=>Pn,ChangeAnnotationIdentifier:()=>Oe,CodeAction:()=>Jc,CodeActionContext:()=>Qc,CodeActionKind:()=>Gc,CodeActionTriggerKind:()=>Ir,CodeDescription:()=>Dc,CodeLens:()=>Xc,Color:()=>eo,ColorInformation:()=>Pc,ColorPresentation:()=>xc,Command:()=>xn,CompletionItem:()=>jc,CompletionItemKind:()=>Ec,CompletionItemLabelDetails:()=>Mc,CompletionItemTag:()=>qc,CompletionList:()=>Ic,CreateFile:()=>Yn,DeleteFile:()=>Kn,Diagnostic:()=>Or,DiagnosticRelatedInformation:()=>to,DiagnosticSeverity:()=>Rc,DiagnosticTag:()=>Tc,DocumentHighlight:()=>Bc,DocumentHighlightKind:()=>Hc,DocumentLink:()=>eu,DocumentSymbol:()=>Kc,DocumentUri:()=>hc,EOL:()=>RC,FoldingRange:()=>Cc,FoldingRangeKind:()=>_c,FormattingOptions:()=>Zc,Hover:()=>Fc,InlayHint:()=>uu,InlayHintKind:()=>oo,InlayHintLabelPart:()=>so,InlineCompletionContext:()=>mu,InlineCompletionItem:()=>pu,InlineCompletionList:()=>du,InlineCompletionTriggerKind:()=>fu,InlineValueContext:()=>cu,InlineValueEvaluatableExpression:()=>au,InlineValueText:()=>ou,InlineValueVariableLookup:()=>su,InsertReplaceEdit:()=>Oc,InsertTextFormat:()=>Nc,InsertTextMode:()=>Lc,Location:()=>qr,LocationLink:()=>vc,MarkedString:()=>jr,MarkupContent:()=>Gn,MarkupKind:()=>io,OptionalVersionedTextDocumentIdentifier:()=>Mr,ParameterInformation:()=>Uc,Position:()=>rt,Range:()=>fe,RenameFile:()=>Vn,SelectedCompletionInfo:()=>gu,SelectionRange:()=>tu,SemanticTokenModifiers:()=>ru,SemanticTokenTypes:()=>nu,SemanticTokens:()=>iu,SignatureInformation:()=>Wc,StringValue:()=>lu,SymbolInformation:()=>Yc,SymbolKind:()=>zc,SymbolTag:()=>$c,TextDocument:()=>hu,TextDocumentEdit:()=>Lr,TextDocumentIdentifier:()=>Sc,TextDocumentItem:()=>Ac,TextEdit:()=>Tt,URI:()=>Zi,VersionedTextDocumentIdentifier:()=>kc,WorkspaceChange:()=>wc,WorkspaceEdit:()=>no,WorkspaceFolder:()=>yu,WorkspaceSymbol:()=>Vc,integer:()=>bc,uinteger:()=>Nr});var hc,Zi,bc,Nr,rt,fe,qr,vc,eo,Pc,xc,_c,Cc,to,Rc,Tc,Dc,Or,xn,Tt,Pn,Oe,Mt,Lr,Yn,Vn,Kn,no,$n,ro,wc,Sc,kc,Mr,Ac,io,Gn,Ec,Nc,qc,Oc,Lc,Mc,jc,Ic,jr,Fc,Uc,Wc,Hc,Bc,zc,$c,Yc,Vc,Kc,Gc,Ir,Qc,Jc,Xc,Zc,eu,tu,nu,ru,iu,ou,su,au,cu,oo,so,uu,lu,pu,du,fu,gu,mu,yu,RC,hu,bu,f,co=xl(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(hc||(hc={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(Zi||(Zi={}));(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})(Nr||(Nr={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Nr.MAX_VALUE),i===Number.MAX_VALUE&&(i=Nr.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})(rt||(rt={}));(function(e){function t(r,i,o,s){if(f.uinteger(r)&&f.uinteger(i)&&f.uinteger(o)&&f.uinteger(s))return{start:rt.create(r,i),end:rt.create(o,s)};if(rt.is(r)&&rt.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)&&rt.is(i.start)&&rt.is(i.end)}e.is=n})(fe||(fe={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(f.string(i.uri)||f.undefined(i.uri))}e.is=n})(qr||(qr={}));(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)&&fe.is(i.targetRange)&&f.string(i.targetUri)&&fe.is(i.targetSelectionRange)&&(fe.is(i.originSelectionRange)||f.undefined(i.originSelectionRange))}e.is=n})(vc||(vc={}));(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})(eo||(eo={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&eo.is(i.color)}e.is=n})(Pc||(Pc={}));(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)||Tt.is(i))&&(f.undefined(i.additionalTextEdits)||f.typedArray(i.additionalTextEdits,Tt.is))}e.is=n})(xc||(xc={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_c||(_c={}));(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})(Cc||(Cc={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&qr.is(i.location)&&f.string(i.message)}e.is=n})(to||(to={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Rc||(Rc={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(Tc||(Tc={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&f.string(r.href)}e.is=t})(Dc||(Dc={}));(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)&&fe.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,to.is))}e.is=n})(Or||(Or={}));(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})(xn||(xn={}));(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)&&fe.is(s.range)}e.is=i})(Tt||(Tt={}));(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})(Pn||(Pn={}));(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 Tt.is(s)&&(Pn.is(s.annotationId)||Oe.is(s.annotationId))}e.is=i})(Mt||(Mt={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&Mr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Lr||(Lr={}));(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})(Yn||(Yn={}));(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})(Vn||(Vn={}));(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})(Kn||(Kn={}));(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)?Yn.is(i)||Vn.is(i)||Kn.is(i):Lr.is(i)))}e.is=t})(no||(no={}));$n=class{constructor(t,n){this.edits=t,this.changeAnnotations=n}insert(t,n,r){let i,o;if(r===void 0?i=Tt.insert(t,n):Oe.is(r)?(o=r,i=Mt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.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=Tt.replace(t,n):Oe.is(r)?(o=r,i=Mt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Mt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o}delete(t,n){let r,i;if(n===void 0?r=Tt.del(t):Oe.is(n)?(i=n,r=Mt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Mt.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.")}},ro=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()}},wc=class{constructor(t){this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ro(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(n=>{if(Lr.is(n)){let r=new $n(n.edits,this._changeAnnotations);this._textEditChanges[n.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(n=>{let r=new $n(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(Mr.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 $n(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 $n(r),this._textEditChanges[t]=n}return n}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ro,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;Pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Yn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Yn.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;Pn.is(r)||Oe.is(r)?o=r:i=r;let s,a;if(o===void 0?s=Vn.create(t,n,i):(a=Oe.is(o)?o:this._changeAnnotations.manage(o),s=Vn.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;Pn.is(n)||Oe.is(n)?i=n:r=n;let o,s;if(i===void 0?o=Kn.create(t,r):(s=Oe.is(i)?i:this._changeAnnotations.manage(i),o=Kn.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})(Sc||(Sc={}));(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})(kc||(kc={}));(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})(Mr||(Mr={}));(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})(Ac||(Ac={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(io||(io={}));(function(e){function t(n){let r=n;return f.objectLiteral(n)&&io.is(r.kind)&&f.string(r.value)}e.is=t})(Gn||(Gn={}));(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})(Ec||(Ec={}));(function(e){e.PlainText=1,e.Snippet=2})(Nc||(Nc={}));(function(e){e.Deprecated=1})(qc||(qc={}));(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)&&fe.is(i.insert)&&fe.is(i.replace)}e.is=n})(Oc||(Oc={}));(function(e){e.asIs=1,e.adjustIndentation=2})(Lc||(Lc={}));(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})(Mc||(Mc={}));(function(e){function t(n){return{label:n}}e.create=t})(jc||(jc={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Ic||(Ic={}));(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})(jr||(jr={}));(function(e){function t(n){let r=n;return!!r&&f.objectLiteral(r)&&(Gn.is(r.contents)||jr.is(r.contents)||f.typedArray(r.contents,jr.is))&&(n.range===void 0||fe.is(n.range))}e.is=t})(Fc||(Fc={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Uc||(Uc={}));(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})(Wc||(Wc={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(Hc||(Hc={}));(function(e){function t(n,r){let i={range:n};return f.number(r)&&(i.kind=r),i}e.create=t})(Bc||(Bc={}));(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})(zc||(zc={}));(function(e){e.Deprecated=1})($c||($c={}));(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})(Yc||(Yc={}));(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})(Vc||(Vc={}));(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)&&fe.is(i.range)&&fe.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})(Kc||(Kc={}));(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"})(Gc||(Gc={}));(function(e){e.Invoked=1,e.Automatic=2})(Ir||(Ir={}));(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,Or.is)&&(i.only===void 0||f.typedArray(i.only,f.string))&&(i.triggerKind===void 0||i.triggerKind===Ir.Invoked||i.triggerKind===Ir.Automatic)}e.is=n})(Qc||(Qc={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):xn.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,Or.is))&&(i.kind===void 0||f.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||xn.is(i.command))&&(i.isPreferred===void 0||f.boolean(i.isPreferred))&&(i.edit===void 0||no.is(i.edit))}e.is=n})(Jc||(Jc={}));(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)&&fe.is(i.range)&&(f.undefined(i.command)||xn.is(i.command))}e.is=n})(Xc||(Xc={}));(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})(Zc||(Zc={}));(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)&&fe.is(i.range)&&(f.undefined(i.target)||f.string(i.target))}e.is=n})(eu||(eu={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return f.objectLiteral(i)&&fe.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(tu||(tu={}));(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"})(nu||(nu={}));(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"})(ru||(ru={}));(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})(iu||(iu={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&f.string(i.text)}e.is=n})(ou||(ou={}));(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&&fe.is(i.range)&&f.boolean(i.caseSensitiveLookup)&&(f.string(i.variableName)||i.variableName===void 0)}e.is=n})(su||(su={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&fe.is(i.range)&&(f.string(i.expression)||i.expression===void 0)}e.is=n})(au||(au={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return f.defined(i)&&fe.is(r.stoppedLocation)}e.is=n})(cu||(cu={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(oo||(oo={}));(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)||Gn.is(i.tooltip))&&(i.location===void 0||qr.is(i.location))&&(i.command===void 0||xn.is(i.command))}e.is=n})(so||(so={}));(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)&&rt.is(i.position)&&(f.string(i.label)||f.typedArray(i.label,so.is))&&(i.kind===void 0||oo.is(i.kind))&&i.textEdits===void 0||f.typedArray(i.textEdits,Tt.is)&&(i.tooltip===void 0||f.string(i.tooltip)||Gn.is(i.tooltip))&&(i.paddingLeft===void 0||f.boolean(i.paddingLeft))&&(i.paddingRight===void 0||f.boolean(i.paddingRight))}e.is=n})(uu||(uu={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(lu||(lu={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(pu||(pu={}));(function(e){function t(n){return{items:n}}e.create=t})(du||(du={}));(function(e){e.Invoked=0,e.Automatic=1})(fu||(fu={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(gu||(gu={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(mu||(mu={}));(function(e){function t(n){let r=n;return f.objectLiteral(r)&&Zi.is(r.uri)&&f.string(r.name)}e.is=t})(yu||(yu={}));RC=[`
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,m)=>{let b=d.range.start.line-m.range.start.line;return b===0?d.range.start.character-m.range.start.character:b}),u=a.length;for(let d=c.length-1;d>=0;d--){let m=c[d],b=o.offsetAt(m.range.start),h=o.offsetAt(m.range.end);if(h<=u)a=a.substring(0,b)+m.newText+a.substring(h,a.length);else throw new Error("Overlapping edit");u=b}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,m=0,b=0;for(;d<c.length&&m<u.length;)s(c[d],u[m])<=0?o[b++]=c[d++]:o[b++]=u[m++];for(;d<c.length;)o[b++]=c[d++];for(;m<u.length;)o[b++]=u[m++];return o}})(hu||(hu={}));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 rt.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 rt.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(h){return typeof h<"u"}e.defined=n;function r(h){return typeof h>"u"}e.undefined=r;function i(h){return h===!0||h===!1}e.boolean=i;function o(h){return t.call(h)==="[object String]"}e.string=o;function s(h){return t.call(h)==="[object Number]"}e.number=s;function a(h,D,I){return t.call(h)==="[object Number]"&&D<=h&&h<=I}e.numberRange=a;function c(h){return t.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function u(h){return t.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=u;function d(h){return t.call(h)==="[object Function]"}e.func=d;function m(h){return h!==null&&typeof h=="object"}e.objectLiteral=m;function b(h,D){return Array.isArray(h)&&h.every(D)}e.typedArray=b})(f||(f={}))});var ce=R(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var Qn=vn(),Sf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Sf||(Ye.MessageDirection=Sf={}));var vu=class{constructor(t){this.method=t}};Ye.RegistrationType=vu;var Pu=class extends Qn.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=Pu;var xu=class extends Qn.RequestType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolRequestType=xu;var _u=class extends Qn.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=_u;var Cu=class extends Qn.NotificationType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Cu});var uo=R(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.objectLiteral=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function RC(e){return e===!0||e===!1}xe.boolean=RC;function kf(e){return typeof e=="string"||e instanceof String}xe.string=kf;function TC(e){return typeof e=="number"||e instanceof Number}xe.number=TC;function DC(e){return e instanceof Error}xe.error=DC;function wC(e){return typeof e=="function"}xe.func=wC;function Af(e){return Array.isArray(e)}xe.array=Af;function SC(e){return Af(e)&&e.every(t=>kf(t))}xe.stringArray=SC;function kC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=kC;function AC(e){return e!==null&&typeof e=="object"}xe.objectLiteral=AC});var qf=R(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.ImplementationRequest=void 0;var Ef=ce(),Nf;(function(e){e.method="textDocument/implementation",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(lo.ImplementationRequest=Nf={}))});var Mf=R(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.TypeDefinitionRequest=void 0;var Of=ce(),Lf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Of.MessageDirection.clientToServer,e.type=new Of.ProtocolRequestType(e.method)})(Lf||(po.TypeDefinitionRequest=Lf={}))});var Ff=R(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.DidChangeWorkspaceFoldersNotification=Jn.WorkspaceFoldersRequest=void 0;var fo=ce(),jf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=fo.MessageDirection.serverToClient,e.type=new fo.ProtocolRequestType0(e.method)})(jf||(Jn.WorkspaceFoldersRequest=jf={}));var If;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolNotificationType(e.method)})(If||(Jn.DidChangeWorkspaceFoldersNotification=If={}))});var Hf=R(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.ConfigurationRequest=void 0;var Uf=ce(),Wf;(function(e){e.method="workspace/configuration",e.messageDirection=Uf.MessageDirection.serverToClient,e.type=new Uf.ProtocolRequestType(e.method)})(Wf||(go.ConfigurationRequest=Wf={}))});var $f=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ColorPresentationRequest=Xn.DocumentColorRequest=void 0;var mo=ce(),Bf;(function(e){e.method="textDocument/documentColor",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(Bf||(Xn.DocumentColorRequest=Bf={}));var zf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(zf||(Xn.ColorPresentationRequest=zf={}))});var Kf=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.FoldingRangeRefreshRequest=Zn.FoldingRangeRequest=void 0;var yo=ce(),Yf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=yo.MessageDirection.clientToServer,e.type=new yo.ProtocolRequestType(e.method)})(Yf||(Zn.FoldingRangeRequest=Yf={}));var Vf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=yo.MessageDirection.serverToClient,e.type=new yo.ProtocolRequestType0(e.method)})(Vf||(Zn.FoldingRangeRefreshRequest=Vf={}))});var Jf=R(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DeclarationRequest=void 0;var Gf=ce(),Qf;(function(e){e.method="textDocument/declaration",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(ho.DeclarationRequest=Qf={}))});var eg=R(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.SelectionRangeRequest=void 0;var Xf=ce(),Zf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Xf.MessageDirection.clientToServer,e.type=new Xf.ProtocolRequestType(e.method)})(Zf||(bo.SelectionRangeRequest=Zf={}))});var ig=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.WorkDoneProgressCancelNotification=Xt.WorkDoneProgressCreateRequest=Xt.WorkDoneProgress=void 0;var EC=vn(),vo=ce(),tg;(function(e){e.type=new EC.ProgressType;function t(n){return n===e.type}e.is=t})(tg||(Xt.WorkDoneProgress=tg={}));var ng;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=vo.MessageDirection.serverToClient,e.type=new vo.ProtocolRequestType(e.method)})(ng||(Xt.WorkDoneProgressCreateRequest=ng={}));var rg;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=vo.MessageDirection.clientToServer,e.type=new vo.ProtocolNotificationType(e.method)})(rg||(Xt.WorkDoneProgressCancelNotification=rg={}))});var cg=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CallHierarchyOutgoingCallsRequest=Zt.CallHierarchyIncomingCallsRequest=Zt.CallHierarchyPrepareRequest=void 0;var er=ce(),og;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(og||(Zt.CallHierarchyPrepareRequest=og={}));var sg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(sg||(Zt.CallHierarchyIncomingCallsRequest=sg={}));var ag;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(ag||(Zt.CallHierarchyOutgoingCallsRequest=ag={}))});var gg=R(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var jt=ce(),ug;(function(e){e.Relative="relative"})(ug||(Ve.TokenFormat=ug={}));var Fr;(function(e){e.method="textDocument/semanticTokens",e.type=new jt.RegistrationType(e.method)})(Fr||(Ve.SemanticTokensRegistrationType=Fr={}));var lg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Fr.method})(lg||(Ve.SemanticTokensRequest=lg={}));var pg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Fr.method})(pg||(Ve.SemanticTokensDeltaRequest=pg={}));var dg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Fr.method})(dg||(Ve.SemanticTokensRangeRequest=dg={}));var fg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=jt.MessageDirection.serverToClient,e.type=new jt.ProtocolRequestType0(e.method)})(fg||(Ve.SemanticTokensRefreshRequest=fg={}))});var hg=R(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.ShowDocumentRequest=void 0;var mg=ce(),yg;(function(e){e.method="window/showDocument",e.messageDirection=mg.MessageDirection.serverToClient,e.type=new mg.ProtocolRequestType(e.method)})(yg||(Po.ShowDocumentRequest=yg={}))});var Pg=R(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.LinkedEditingRangeRequest=void 0;var bg=ce(),vg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=bg.MessageDirection.clientToServer,e.type=new bg.ProtocolRequestType(e.method)})(vg||(xo.LinkedEditingRangeRequest=vg={}))});var Sg=R(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var it=ce(),xg;(function(e){e.file="file",e.folder="folder"})(xg||(je.FileOperationPatternKind=xg={}));var _g;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(_g||(je.WillCreateFilesRequest=_g={}));var Cg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Cg||(je.DidCreateFilesNotification=Cg={}));var Rg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(Rg||(je.WillRenameFilesRequest=Rg={}));var Tg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Tg||(je.DidRenameFilesNotification=Tg={}));var Dg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Dg||(je.DidDeleteFilesNotification=Dg={}));var wg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(wg||(je.WillDeleteFilesRequest=wg={}))});var qg=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.MonikerRequest=en.MonikerKind=en.UniquenessLevel=void 0;var kg=ce(),Ag;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Ag||(en.UniquenessLevel=Ag={}));var Eg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Eg||(en.MonikerKind=Eg={}));var Ng;(function(e){e.method="textDocument/moniker",e.messageDirection=kg.MessageDirection.clientToServer,e.type=new kg.ProtocolRequestType(e.method)})(Ng||(en.MonikerRequest=Ng={}))});var jg=R(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.TypeHierarchySubtypesRequest=tn.TypeHierarchySupertypesRequest=tn.TypeHierarchyPrepareRequest=void 0;var tr=ce(),Og;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Og||(tn.TypeHierarchyPrepareRequest=Og={}));var Lg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Lg||(tn.TypeHierarchySupertypesRequest=Lg={}));var Mg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Mg||(tn.TypeHierarchySubtypesRequest=Mg={}))});var Ug=R(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.InlineValueRefreshRequest=nr.InlineValueRequest=void 0;var _o=ce(),Ig;(function(e){e.method="textDocument/inlineValue",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(Ig||(nr.InlineValueRequest=Ig={}));var Fg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=_o.MessageDirection.serverToClient,e.type=new _o.ProtocolRequestType0(e.method)})(Fg||(nr.InlineValueRefreshRequest=Fg={}))});var zg=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.InlayHintRefreshRequest=nn.InlayHintResolveRequest=nn.InlayHintRequest=void 0;var rr=ce(),Wg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Wg||(nn.InlayHintRequest=Wg={}));var Hg;(function(e){e.method="inlayHint/resolve",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Hg||(nn.InlayHintResolveRequest=Hg={}));var Bg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=rr.MessageDirection.serverToClient,e.type=new rr.ProtocolRequestType0(e.method)})(Bg||(nn.InlayHintRefreshRequest=Bg={}))});var Jg=R(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DiagnosticRefreshRequest=ot.WorkspaceDiagnosticRequest=ot.DocumentDiagnosticRequest=ot.DocumentDiagnosticReportKind=ot.DiagnosticServerCancellationData=void 0;var Qg=vn(),NC=uo(),ir=ce(),$g;(function(e){function t(n){let r=n;return r&&NC.boolean(r.retriggerRequest)}e.is=t})($g||(ot.DiagnosticServerCancellationData=$g={}));var Yg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Yg||(ot.DocumentDiagnosticReportKind=Yg={}));var Vg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Qg.ProgressType})(Vg||(ot.DocumentDiagnosticRequest=Vg={}));var Kg;(function(e){e.method="workspace/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Qg.ProgressType})(Kg||(ot.WorkspaceDiagnosticRequest=Kg={}));var Gg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Gg||(ot.DiagnosticRefreshRequest=Gg={}))});var im=R(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.DidCloseNotebookDocumentNotification=ge.DidSaveNotebookDocumentNotification=ge.DidChangeNotebookDocumentNotification=ge.NotebookCellArrayChange=ge.DidOpenNotebookDocumentNotification=ge.NotebookDocumentSyncRegistrationType=ge.NotebookDocument=ge.NotebookCell=ge.ExecutionSummary=ge.NotebookCellKind=void 0;var Ur=(co(),ri(ao)),mt=uo(),Dt=ce(),Ru;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Ru||(ge.NotebookCellKind=Ru={}));var Tu;(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 mt.objectLiteral(o)&&Ur.uinteger.is(o.executionOrder)&&(o.success===void 0||mt.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})(Tu||(ge.ExecutionSummary=Tu={}));var Co;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return mt.objectLiteral(s)&&Ru.is(s.kind)&&Ur.DocumentUri.is(s.document)&&(s.metadata===void 0||mt.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)&&!Tu.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(mt.objectLiteral(o)&&mt.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 m=0;m<u.length;m++){let b=u[m];if(!i(o[b],s[b]))return!1}}return!0}})(Co||(ge.NotebookCell=Co={}));var Xg;(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 mt.objectLiteral(i)&&mt.string(i.uri)&&Ur.integer.is(i.version)&&mt.typedArray(i.cells,Co.is)}e.is=n})(Xg||(ge.NotebookDocument=Xg={}));var or;(function(e){e.method="notebookDocument/sync",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.RegistrationType(e.method)})(or||(ge.NotebookDocumentSyncRegistrationType=or={}));var Zg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Zg||(ge.DidOpenNotebookDocumentNotification=Zg={}));var em;(function(e){function t(r){let i=r;return mt.objectLiteral(i)&&Ur.uinteger.is(i.start)&&Ur.uinteger.is(i.deleteCount)&&(i.cells===void 0||mt.typedArray(i.cells,Co.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})(em||(ge.NotebookCellArrayChange=em={}));var tm;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(tm||(ge.DidChangeNotebookDocumentNotification=tm={}));var nm;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(nm||(ge.DidSaveNotebookDocumentNotification=nm={}));var rm;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(rm||(ge.DidCloseNotebookDocumentNotification=rm={}))});var am=R(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.InlineCompletionRequest=void 0;var om=ce(),sm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=om.MessageDirection.clientToServer,e.type=new om.ProtocolRequestType(e.method)})(sm||(Ro.InlineCompletionRequest=sm={}))});var Py=R(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 w=ce(),cm=(co(),ri(ao)),ke=uo(),qC=qf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return qC.ImplementationRequest}});var OC=Mf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return OC.TypeDefinitionRequest}});var yy=Ff();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return yy.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return yy.DidChangeWorkspaceFoldersNotification}});var LC=Hf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return LC.ConfigurationRequest}});var hy=$f();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return hy.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return hy.ColorPresentationRequest}});var by=Kf();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return by.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return by.FoldingRangeRefreshRequest}});var MC=Jf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return MC.DeclarationRequest}});var jC=eg();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return jC.SelectionRangeRequest}});var Au=ig();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return Au.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Au.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Au.WorkDoneProgressCancelNotification}});var Eu=cg();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Eu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Eu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Eu.CallHierarchyPrepareRequest}});var sr=gg();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return sr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return sr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return sr.SemanticTokensRegistrationType}});var IC=hg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return IC.ShowDocumentRequest}});var FC=Pg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return FC.LinkedEditingRangeRequest}});var _n=Sg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return _n.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _n.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _n.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _n.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _n.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _n.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _n.WillDeleteFilesRequest}});var Nu=qg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return Nu.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return Nu.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return Nu.MonikerRequest}});var qu=jg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return qu.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return qu.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return qu.TypeHierarchySupertypesRequest}});var vy=Ug();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return vy.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return vy.InlineValueRefreshRequest}});var Ou=zg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Ou.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Ou.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Ou.InlayHintRefreshRequest}});var Wr=Jg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Wr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Wr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Wr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Wr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Wr.DiagnosticRefreshRequest}});var wt=im();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var UC=am();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return UC.InlineCompletionRequest}});var Du;(function(e){function t(n){let r=n;return ke.string(r)||ke.string(r.language)||ke.string(r.scheme)||ke.string(r.pattern)}e.is=t})(Du||(l.TextDocumentFilter=Du={}));var wu;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebookType)||ke.string(r.scheme)||ke.string(r.pattern))}e.is=t})(wu||(l.NotebookDocumentFilter=wu={}));var Su;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebook)||wu.is(r.notebook))&&(r.language===void 0||ke.string(r.language))}e.is=t})(Su||(l.NotebookCellTextDocumentFilter=Su={}));var ku;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!ke.string(r)&&!Du.is(r)&&!Su.is(r))return!1;return!0}e.is=t})(ku||(l.DocumentSelector=ku={}));var um;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(um||(l.RegistrationRequest=um={}));var lm;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(lm||(l.UnregistrationRequest=lm={}));var pm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(pm||(l.ResourceOperationKind=pm={}));var dm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(dm||(l.FailureHandlingKind=dm={}));var fm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(fm||(l.PositionEncodingKind=fm={}));var gm;(function(e){function t(n){let r=n;return r&&ke.string(r.id)&&r.id.length>0}e.hasId=t})(gm||(l.StaticRegistrationOptions=gm={}));var mm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||ku.is(r.documentSelector))}e.is=t})(mm||(l.TextDocumentRegistrationOptions=mm={}));var ym;(function(e){function t(r){let i=r;return ke.objectLiteral(i)&&(i.workDoneProgress===void 0||ke.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&ke.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(ym||(l.WorkDoneProgressOptions=ym={}));var hm;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(hm||(l.InitializeRequest=hm={}));var bm;(function(e){e.unknownProtocolVersion=1})(bm||(l.InitializeErrorCodes=bm={}));var vm;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(vm||(l.InitializedNotification=vm={}));var Pm;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(Pm||(l.ShutdownRequest=Pm={}));var xm;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(xm||(l.ExitNotification=xm={}));var _m;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(_m||(l.DidChangeConfigurationNotification=_m={}));var Cm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Cm||(l.MessageType=Cm={}));var Rm;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Rm||(l.ShowMessageNotification=Rm={}));var Tm;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Tm||(l.ShowMessageRequest=Tm={}));var Dm;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Dm||(l.LogMessageNotification=Dm={}));var wm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(wm||(l.TelemetryEventNotification=wm={}));var Sm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Sm||(l.TextDocumentSyncKind=Sm={}));var km;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(km||(l.DidOpenTextDocumentNotification=km={}));var Am;(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})(Am||(l.TextDocumentContentChangeEvent=Am={}));var Em;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Em||(l.DidChangeTextDocumentNotification=Em={}));var Nm;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Nm||(l.DidCloseTextDocumentNotification=Nm={}));var qm;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(qm||(l.DidSaveTextDocumentNotification=qm={}));var Om;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Om||(l.TextDocumentSaveReason=Om={}));var Lm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Lm||(l.WillSaveTextDocumentNotification=Lm={}));var Mm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(l.WillSaveTextDocumentWaitUntilRequest=Mm={}));var jm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(jm||(l.DidChangeWatchedFilesNotification=jm={}));var Im;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Im||(l.FileChangeType=Im={}));var Fm;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(cm.URI.is(r.baseUri)||cm.WorkspaceFolder.is(r.baseUri))&&ke.string(r.pattern)}e.is=t})(Fm||(l.RelativePattern=Fm={}));var Um;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Um||(l.WatchKind=Um={}));var Wm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Wm||(l.PublishDiagnosticsNotification=Wm={}));var Hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Hm||(l.CompletionTriggerKind=Hm={}));var Bm;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bm||(l.CompletionRequest=Bm={}));var zm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zm||(l.CompletionResolveRequest=zm={}));var $m;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($m||(l.HoverRequest=$m={}));var Ym;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Ym||(l.SignatureHelpTriggerKind=Ym={}));var Vm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vm||(l.SignatureHelpRequest=Vm={}));var Km;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Km||(l.DefinitionRequest=Km={}));var Gm;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Gm||(l.ReferencesRequest=Gm={}));var Qm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.DocumentHighlightRequest=Qm={}));var Jm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Jm||(l.DocumentSymbolRequest=Jm={}));var Xm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xm||(l.CodeActionRequest=Xm={}));var Zm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.CodeActionResolveRequest=Zm={}));var ey;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ey||(l.WorkspaceSymbolRequest=ey={}));var ty;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ty||(l.WorkspaceSymbolResolveRequest=ty={}));var ny;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ny||(l.CodeLensRequest=ny={}));var ry;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ry||(l.CodeLensResolveRequest=ry={}));var iy;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(iy||(l.CodeLensRefreshRequest=iy={}));var oy;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(oy||(l.DocumentLinkRequest=oy={}));var sy;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(sy||(l.DocumentLinkResolveRequest=sy={}));var ay;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ay||(l.DocumentFormattingRequest=ay={}));var cy;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(cy||(l.DocumentRangeFormattingRequest=cy={}));var uy;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(uy||(l.DocumentRangesFormattingRequest=uy={}));var ly;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ly||(l.DocumentOnTypeFormattingRequest=ly={}));var py;(function(e){e.Identifier=1})(py||(l.PrepareSupportDefaultBehavior=py={}));var dy;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(dy||(l.RenameRequest=dy={}));var fy;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(fy||(l.PrepareRenameRequest=fy={}));var gy;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(gy||(l.ExecuteCommandRequest=gy={}));var my;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(my||(l.ApplyWorkspaceEditRequest=my={}))});var _y=R(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.createProtocolConnection=void 0;var xy=vn();function WC(e,t,n,r){return xy.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,xy.createMessageConnection)(e,t,n,r)}To.createProtocolConnection=WC});var Ry=R(Ke=>{"use strict";var HC=Ke&&Ke.__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]})),Do=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&HC(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Do(vn(),Ke);Do((co(),ri(ao)),Ke);Do(ce(),Ke);Do(Py(),Ke);var BC=_y();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return BC.createProtocolConnection}});var Cy;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Cy||(Ke.LSPErrorCodes=Cy={}))});var ve=R(St=>{"use strict";var zC=St&&St.__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=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&zC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var $C=yc();Ty(yc(),St);Ty(Ry(),St);function YC(e,t,n,r){return(0,$C.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=YC});var Mu=R(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.SemanticTokensBuilder=rn.SemanticTokensDiff=rn.SemanticTokensFeature=void 0;var wo=ve(),VC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(wo.SemanticTokensRefreshRequest.type),on:t=>{let n=wo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=wo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=wo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rn.SemanticTokensFeature=VC;var So=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}]:[]}};rn.SemanticTokensDiff=So;var Lu=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 So(this._prevData,this._data).computeDiff()}:this.build()}};rn.SemanticTokensBuilder=Lu});var Dy=R(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InlineCompletionFeature=void 0;var KC=ve(),GC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(KC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};ko.InlineCompletionFeature=GC});var Iu=R(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TextDocuments=void 0;var Cn=ve(),ju=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Cn.Emitter,this._onDidOpen=new Cn.Emitter,this._onDidClose=new Cn.Emitter,this._onDidSave=new Cn.Emitter,this._onWillSave=new Cn.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=Cn.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}))})),Cn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ao.TextDocuments=ju});var Uu=R(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NotebookDocuments=ar.NotebookSyncFeature=void 0;var st=ve(),wy=Iu(),QC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(st.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(st.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(st.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(st.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ar.NotebookSyncFeature=QC;var Eo=class e{onDidOpenTextDocument(t){return this.openHandler=t,st.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,st.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,st.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}};Eo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Fu=class{constructor(t){t instanceof wy.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new wy.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new st.Emitter,this._onDidChange=new st.Emitter,this._onDidSave=new st.Emitter,this._onDidClose=new st.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 Eo,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=[],m=[],b=[];if(c.cells!==void 0){let U=c.cells;if(U.structure!==void 0){let y=U.structure.array;if(o.cells.splice(y.start,y.deleteCount,...y.cells!==void 0?y.cells:[]),U.structure.didOpen!==void 0)for(let g of U.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(U.structure.didClose)for(let g of U.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(U.data!==void 0){let y=new Map(U.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let S=y.get(o.cells[g].document);if(S!==void 0){let Y=o.cells.splice(g,1,S);if(m.push({old:Y[0],new:S}),y.delete(S.document),y.size===0)break}}}if(U.textContent!==void 0)for(let y of U.textContent)n.changeTextDocument({textDocument:y.document,contentChanges:y.changes}),b.push(y.document.uri)}this.updateCellMap(o);let h={notebookDocument:o};a&&(h.metadata={old:s,new:o.metadata});let D=[];for(let U of u)D.push(this.getNotebookCell(U));let I=[];for(let U of d)I.push(this.getNotebookCell(U));let G=[];for(let U of b)G.push(this.getNotebookCell(U));(D.length>0||I.length>0||m.length>0||G.length>0)&&(h.cells={added:D,removed:I,changed:{data:m,textContent:G}}),(h.metadata!==void 0||h.cells!==void 0)&&this._onDidChange.fire(h)})),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)}})),st.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ar.NotebookDocuments=Fu});var Wu=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.thenable=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function JC(e){return e===!0||e===!1}_e.boolean=JC;function Sy(e){return typeof e=="string"||e instanceof String}_e.string=Sy;function XC(e){return typeof e=="number"||e instanceof Number}_e.number=XC;function ZC(e){return e instanceof Error}_e.error=ZC;function ky(e){return typeof e=="function"}_e.func=ky;function Ay(e){return Array.isArray(e)}_e.array=Ay;function eR(e){return Ay(e)&&e.every(t=>Sy(t))}_e.stringArray=eR;function tR(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=tR;function nR(e){return e&&ky(e.then)}_e.thenable=nR});var Hu=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.generateUuid=at.parse=at.isUUID=at.v4=at.empty=void 0;var Hr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Br=class e extends Hr{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(""))}};Br._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Br._timeHighBits=["8","9","a","b"];at.empty=new Hr("00000000-0000-0000-0000-000000000000");function Ey(){return new Br}at.v4=Ey;var rR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Ny(e){return rR.test(e)}at.isUUID=Ny;function iR(e){if(!Ny(e))throw new Error("invalid uuid");return new Hr(e)}at.parse=iR;function oR(){return Ey().asHex()}at.generateUuid=oR});var qy=R(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.attachPartialResult=sn.ProgressFeature=sn.attachWorkDone=void 0;var on=ve(),sR=Hu(),Rn=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(on.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(on.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(on.WorkDoneProgress.type,this._token,{kind:"end"})}};Rn.Instances=new Map;var No=class extends Rn{constructor(t,n){super(t,n),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},zr=class{constructor(){}begin(){}report(){}done(){}},qo=class extends zr{constructor(){super(),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function aR(e,t){if(t===void 0||t.workDoneToken===void 0)return new zr;let n=t.workDoneToken;return delete t.workDoneToken,new Rn(e,n)}sn.attachWorkDone=aR;var cR=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(on.WorkDoneProgressCancelNotification.type,n=>{let r=Rn.Instances.get(n.token);(r instanceof No||r instanceof qo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new zr:new Rn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,sR.generateUuid)();return this.connection.sendRequest(on.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new No(this.connection,t))}else return Promise.resolve(new qo)}};sn.ProgressFeature=cR;var Bu;(function(e){e.type=new on.ProgressType})(Bu||(Bu={}));var zu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Bu.type,this._token,t)}};function uR(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new zu(e,n)}sn.attachPartialResult=uR});var Oy=R(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ConfigurationFeature=void 0;var lR=ve(),pR=Wu(),dR=e=>class extends e{getConfiguration(t){return t?pR.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(lR.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Oo.ConfigurationFeature=dR});var Ly=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.WorkspaceFoldersFeature=void 0;var Lo=ve(),fR=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Lo.Emitter,this.connection.onNotification(Lo.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(Lo.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(Lo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Mo.WorkspaceFoldersFeature=fR});var My=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.CallHierarchyFeature=void 0;var $u=ve(),gR=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest($u.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=$u.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=$u.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};jo.CallHierarchyFeature=gR});var jy=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.ShowDocumentFeature=void 0;var mR=ve(),yR=e=>class extends e{showDocument(t){return this.connection.sendRequest(mR.ShowDocumentRequest.type,t)}};Io.ShowDocumentFeature=yR});var Iy=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.FileOperationsFeature=void 0;var cr=ve(),hR=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(cr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(cr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(cr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(cr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(cr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(cr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Fo.FileOperationsFeature=hR});var Fy=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.LinkedEditingRangeFeature=void 0;var bR=ve(),vR=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(bR.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Uo.LinkedEditingRangeFeature=vR});var Uy=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TypeHierarchyFeature=void 0;var Yu=ve(),PR=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Yu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Yu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Yu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Wo.TypeHierarchyFeature=PR});var Hy=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.InlineValueFeature=void 0;var Wy=ve(),xR=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Wy.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Wy.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Ho.InlineValueFeature=xR});var zy=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.FoldingRangeFeature=void 0;var By=ve(),_R=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(By.FoldingRangeRefreshRequest.type),on:t=>{let n=By.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bo.FoldingRangeFeature=_R});var $y=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.InlayHintFeature=void 0;var Vu=ve(),CR=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Vu.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(Vu.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(Vu.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};zo.InlayHintFeature=CR});var Yy=R($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DiagnosticFeature=void 0;var $r=ve(),RR=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest($r.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest($r.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress($r.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest($r.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress($r.WorkspaceDiagnosticRequest.partialResult,n)))}}};$o.DiagnosticFeature=RR});var Vy=R(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.MonikerFeature=void 0;var TR=ve(),DR=e=>class extends e{get moniker(){return{on:t=>{let n=TR.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yo.MonikerFeature=DR});var ch=R(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createConnection=J.combineFeatures=J.combineNotebooksFeatures=J.combineLanguagesFeatures=J.combineWorkspaceFeatures=J.combineWindowFeatures=J.combineClientFeatures=J.combineTracerFeatures=J.combineTelemetryFeatures=J.combineConsoleFeatures=J._NotebooksImpl=J._LanguagesImpl=J.BulkUnregistration=J.BulkRegistration=J.ErrorMessageTracker=void 0;var E=ve(),ct=Wu(),Gu=Hu(),B=qy(),wR=Oy(),SR=Ly(),kR=My(),AR=Mu(),ER=jy(),NR=Iy(),qR=Fy(),OR=Uy(),LR=Hy(),MR=zy(),jR=$y(),IR=Yy(),FR=Uu(),UR=Vy();function Ku(e){if(e!==null)return e}var Qu=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)})}};J.ErrorMessageTracker=Qu;var Vo=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Ju=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Ku)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Ku)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Ku)}},Ky=(0,ER.ShowDocumentFeature)((0,B.ProgressFeature)(Ju)),Gy;(function(e){function t(){return new Ko}e.create=t})(Gy||(J.BulkRegistration=Gy={}));var Ko=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=ct.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Gu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Qy;(function(e){function t(){return new Yr(void 0,[])}e.create=t})(Qy||(J.BulkUnregistration=Qy={}));var Yr=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=ct.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Go=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 Ko?this.registerMany(t):t instanceof Yr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ct.string(n)?n:n.method,o=Gu.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=ct.string(t)?t:t.method,i=Gu.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new Yr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Xu=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(E.ApplyWorkspaceEditRequest.type,r)}},Jy=(0,NR.FileOperationsFeature)((0,SR.WorkspaceFoldersFeature)((0,wR.ConfigurationFeature)(Xu))),Qo=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},Jo=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Xo=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)}};J._LanguagesImpl=Xo;var Xy=(0,MR.FoldingRangeFeature)((0,UR.MonikerFeature)((0,IR.DiagnosticFeature)((0,jR.InlayHintFeature)((0,LR.InlineValueFeature)((0,OR.TypeHierarchyFeature)((0,qR.LinkedEditingRangeFeature)((0,AR.SemanticTokensFeature)((0,kR.CallHierarchyFeature)(Xo))))))))),Zo=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)}};J._NotebooksImpl=Zo;var Zy=(0,FR.NotebookSyncFeature)(Zo);function eh(e,t){return function(n){return t(e(n))}}J.combineConsoleFeatures=eh;function th(e,t){return function(n){return t(e(n))}}J.combineTelemetryFeatures=th;function nh(e,t){return function(n){return t(e(n))}}J.combineTracerFeatures=nh;function rh(e,t){return function(n){return t(e(n))}}J.combineClientFeatures=rh;function ih(e,t){return function(n){return t(e(n))}}J.combineWindowFeatures=ih;function oh(e,t){return function(n){return t(e(n))}}J.combineWorkspaceFeatures=oh;function sh(e,t){return function(n){return t(e(n))}}J.combineLanguagesFeatures=sh;function ah(e,t){return function(n){return t(e(n))}}J.combineNotebooksFeatures=ah;function WR(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,eh),tracer:n(e.tracer,t.tracer,nh),telemetry:n(e.telemetry,t.telemetry,th),client:n(e.client,t.client,rh),window:n(e.window,t.window,ih),workspace:n(e.workspace,t.workspace,oh),languages:n(e.languages,t.languages,sh),notebooks:n(e.notebooks,t.notebooks,ah)}}J.combineFeatures=WR;function HR(e,t,n){let r=n&&n.console?new(n.console(Vo)):new Vo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Qo)):new Qo,s=n&&n.telemetry?new(n.telemetry(Jo)):new Jo,a=n&&n.client?new(n.client(Go)):new Go,c=n&&n.window?new(n.window(Ky)):new Ky,u=n&&n.workspace?new(n.workspace(Jy)):new Jy,d=n&&n.languages?new(n.languages(Xy)):new Xy,m=n&&n.notebooks?new(n.notebooks(Zy)):new Zy,b=[r,o,s,a,c,u,d,m];function h(y){return y instanceof Promise?y:ct.thenable(y)?new Promise((g,S)=>{y.then(Y=>g(Y),Y=>S(Y))}):Promise.resolve(y)}let D,I,G,U={listen:()=>i.listen(),sendRequest:(y,...g)=>i.sendRequest(ct.string(y)?y:y.method,...g),onRequest:(y,g)=>i.onRequest(y,g),sendNotification:(y,g)=>{let S=ct.string(y)?y:y.method;return i.sendNotification(S,g)},onNotification:(y,g)=>i.onNotification(y,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:y=>(I=y,{dispose:()=>{I=void 0}}),onInitialized:y=>i.onNotification(E.InitializedNotification.type,y),onShutdown:y=>(D=y,{dispose:()=>{D=void 0}}),onExit:y=>(G=y,{dispose:()=>{G=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 m},onDidChangeConfiguration:y=>i.onNotification(E.DidChangeConfigurationNotification.type,y),onDidChangeWatchedFiles:y=>i.onNotification(E.DidChangeWatchedFilesNotification.type,y),__textDocumentSync:void 0,onDidOpenTextDocument:y=>i.onNotification(E.DidOpenTextDocumentNotification.type,y),onDidChangeTextDocument:y=>i.onNotification(E.DidChangeTextDocumentNotification.type,y),onDidCloseTextDocument:y=>i.onNotification(E.DidCloseTextDocumentNotification.type,y),onWillSaveTextDocument:y=>i.onNotification(E.WillSaveTextDocumentNotification.type,y),onWillSaveTextDocumentWaitUntil:y=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,y),onDidSaveTextDocument:y=>i.onNotification(E.DidSaveTextDocumentNotification.type,y),sendDiagnostics:y=>i.sendNotification(E.PublishDiagnosticsNotification.type,y),onHover:y=>i.onRequest(E.HoverRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:y=>i.onRequest(E.CompletionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:y=>i.onRequest(E.CompletionResolveRequest.type,y),onSignatureHelp:y=>i.onRequest(E.SignatureHelpRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:y=>i.onRequest(E.DeclarationRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:y=>i.onRequest(E.DefinitionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:y=>i.onRequest(E.TypeDefinitionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:y=>i.onRequest(E.ImplementationRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:y=>i.onRequest(E.ReferencesRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:y=>i.onRequest(E.DocumentHighlightRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:y=>i.onRequest(E.DocumentSymbolRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:y=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:y=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,y),onCodeAction:y=>i.onRequest(E.CodeActionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:y=>i.onRequest(E.CodeActionResolveRequest.type,(g,S)=>y(g,S)),onCodeLens:y=>i.onRequest(E.CodeLensRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:y=>i.onRequest(E.CodeLensResolveRequest.type,(g,S)=>y(g,S)),onDocumentFormatting:y=>i.onRequest(E.DocumentFormattingRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:y=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:y=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,S)=>y(g,S)),onRenameRequest:y=>i.onRequest(E.RenameRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:y=>i.onRequest(E.PrepareRenameRequest.type,(g,S)=>y(g,S)),onDocumentLinks:y=>i.onRequest(E.DocumentLinkRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:y=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,S)=>y(g,S)),onDocumentColor:y=>i.onRequest(E.DocumentColorRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:y=>i.onRequest(E.ColorPresentationRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:y=>i.onRequest(E.FoldingRangeRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:y=>i.onRequest(E.SelectionRangeRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:y=>i.onRequest(E.ExecuteCommandRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let y of b)y.attach(U);return i.onRequest(E.InitializeRequest.type,y=>{t.initialize(y),ct.string(y.trace)&&(o.trace=E.Trace.fromString(y.trace));for(let g of b)g.initialize(y.capabilities);if(I){let g=I(y,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,y),void 0);return h(g).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let Z=Y.capabilities;Z||(Z={},Y.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None:!ct.number(Z.textDocumentSync)&&!ct.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None);for(let ut of b)ut.fillServerCapabilities(Z);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of b)S.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{G&&G()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,y=>{o.trace=E.Trace.fromString(y.value)}),U}J.createConnection=HR});var Zu=R(Ie=>{"use strict";var BR=Ie&&Ie.__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]})),lh=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&BR(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var zR=Mu();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return zR.SemanticTokensBuilder}});var $R=Dy();lh(ve(),Ie);var YR=Iu();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return YR.TextDocuments}});var VR=Uu();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return VR.NotebookDocuments}});lh(ch(),Ie);var uh;(function(e){e.all={__brand:"features",languages:$R.InlineCompletionFeature}})(uh||(Ie.ProposedFeatures=uh={}))});var dh=R((pk,ph)=>{"use strict";ph.exports=ve()});var ts=R(kt=>{"use strict";var KR=kt&&kt.__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]})),gh=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&KR(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConnection=void 0;var es=Zu();gh(dh(),kt);gh(Zu(),kt);var fh=!1,GR={initialize:e=>{},get shutdownReceived(){return fh},set shutdownReceived(e){fh=e},exit:e=>{}};function QR(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),es.ConnectionStrategy.is(e)||es.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,es.createProtocolConnection)(o,s,u,a);return(0,es.createConnection)(c,GR,i)}kt.createConnection=QR});var It=R((fk,mh)=>{"use strict";mh.exports=ts()});var yl=R((Jk,Eh)=>{"use strict";function Et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Ah(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 JT(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 dr={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),Et(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Ah(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Et(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Ah(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Et(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];Et(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(Et(t),Et(n),t===n||(t=dr.resolve(t),n=dr.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,m=0;m<=u;++m){if(m===u){if(c>u){if(n.charCodeAt(s+m)===47)return n.slice(s+m+1);if(m===0)return n.slice(s+m)}else o>u&&(t.charCodeAt(r+m)===47?d=m:m===0&&(d=0));break}var b=t.charCodeAt(r+m),h=n.charCodeAt(s+m);if(b!==h)break;b===47&&(d=m)}var D="";for(m=r+d+1;m<=i;++m)(m===i||t.charCodeAt(m)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Et(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');Et(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){Et(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 JT("/",t)},parse:function(t){Et(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,m=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:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===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};dr.posix=dr;Eh.exports=dr});import{createConfig as td,loadConfig as dx,loadIgnoreConfig as fx,DEFAULT_CONFIG as gx,IGNORE_FILE as mx}from"@redocly/openapi-core";var _l;(()=>{"use strict";var e={975:k=>{function v(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var T,q="",M=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)T=x.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||M!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var Te=q.lastIndexOf("/");if(Te!==q.length-1){Te===-1?(q="",M=0):M=(q=q.slice(0,Te)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",M=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",M=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),M=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return q}var L={resolve:function(){for(var x,C="",T=!1,q=arguments.length-1;q>=-1&&!T;q--){var M;q>=0?M=arguments[q]:(x===void 0&&(x=process.cwd()),M=x),v(M),M.length!==0&&(C=M+"/"+C,T=M.charCodeAt(0)===47)}return C=O(C,!T),T?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(v(x),x.length===0)return".";var C=x.charCodeAt(0)===47,T=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&T&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return v(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,C=0;C<arguments.length;++C){var T=arguments[C];v(T),T.length>0&&(x===void 0?x=T:x+="/"+T)}return x===void 0?".":L.normalize(x)},relative:function(x,C){if(v(x),v(C),x===C||(x=L.resolve(x))===(C=L.resolve(C)))return"";for(var T=1;T<x.length&&x.charCodeAt(T)===47;++T);for(var q=x.length,M=q-T,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=M<$?M:$,Te=-1,ne=0;ne<=V;++ne){if(ne===V){if($>V){if(C.charCodeAt(N+ne)===47)return C.slice(N+ne+1);if(ne===0)return C.slice(N+ne)}else M>V&&(x.charCodeAt(T+ne)===47?Te=ne:ne===0&&(Te=0));break}var lt=x.charCodeAt(T+ne);if(lt!==C.charCodeAt(N+ne))break;lt===47&&(Te=ne)}var un="";for(ne=T+Te+1;ne<=q;++ne)ne!==q&&x.charCodeAt(ne)!==47||(un.length===0?un+="..":un+="/..");return un.length>0?un+C.slice(N+Te):(N+=Te,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(v(x),x.length===0)return".";for(var C=x.charCodeAt(0),T=C===47,q=-1,M=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!M){q=N;break}}else M=!1;return q===-1?T?"/":".":T&&q===1?"//":x.slice(0,q)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');v(x);var T,q=0,M=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var $=C.length-1,V=-1;for(T=x.length-1;T>=0;--T){var Te=x.charCodeAt(T);if(Te===47){if(!N){q=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(Te===C.charCodeAt($)?--$==-1&&(M=T):($=-1,M=V))}return q===M?M=V:M===-1&&(M=x.length),x.slice(q,M)}for(T=x.length-1;T>=0;--T)if(x.charCodeAt(T)===47){if(!N){q=T+1;break}}else M===-1&&(N=!1,M=T+1);return M===-1?"":x.slice(q,M)},extname:function(x){v(x);for(var C=-1,T=0,q=-1,M=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(M=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!M){T=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===T+1?"":x.slice(C,q)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return(function(C,T){var q=T.dir||T.root,M=T.base||(T.name||"")+(T.ext||"");return q?q===T.root?q+M:q+"/"+M:M})(0,x)},parse:function(x){v(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var T,q=x.charCodeAt(0),M=q===47;M?(C.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,Te=!0,ne=x.length-1,lt=0;ne>=T;--ne)if((q=x.charCodeAt(ne))!==47)V===-1&&(Te=!1,V=ne+1),q===46?N===-1?N=ne:lt!==1&&(lt=1):N!==-1&&(lt=-1);else if(!Te){$=ne+1;break}return N===-1||V===-1||lt===0||lt===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&M?x.slice(1,V):x.slice($,V)):($===0&&M?(C.name=x.slice(1,N),C.base=x.slice(1,V)):(C.name=x.slice($,N),C.base=x.slice($,V)),C.ext=x.slice(N,V)),$>0?C.dir=x.slice(0,$-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};L.posix=L,k.exports=L}},t={};function n(k){var v=t[k];if(v!==void 0)return v.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,v)=>{for(var O in v)n.o(v,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:v[O]})},n.o=(k,v)=>Object.prototype.hasOwnProperty.call(k,v),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:()=>b,Utils:()=>Dn}),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,v){if(!k.scheme&&v)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="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class b{static isUri(v){return v instanceof b||!!v&&typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}scheme;authority;path;query;fragment;constructor(v,O,L,x,C,T=!1){typeof v=="object"?(this.scheme=v.scheme||u,this.authority=v.authority||u,this.path=v.path||u,this.query=v.query||u,this.fragment=v.fragment||u):(this.scheme=(function(q,M){return q||M?q:"file"})(v,T),this.authority=O||u,this.path=(function(q,M){switch(q){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,L||u),this.query=x||u,this.fragment=C||u,c(this,T))}get fsPath(){return y(this,!1)}with(v){if(!v)return this;let{scheme:O,authority:L,path:x,query:C,fragment:T}=v;return O===void 0?O=this.scheme:O===null&&(O=u),L===void 0?L=this.authority:L===null&&(L=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),T===void 0?T=this.fragment:T===null&&(T=u),O===this.scheme&&L===this.authority&&x===this.path&&C===this.query&&T===this.fragment?this:new D(O,L,x,C,T)}static parse(v,O=!1){let L=m.exec(v);return L?new D(L[2]||u,Z(L[4]||u),Z(L[5]||u),Z(L[7]||u),Z(L[9]||u),O):new D(u,u,u,u,u)}static file(v){let O=u;if(i&&(v=v.replace(/\\/g,d)),v[0]===d&&v[1]===d){let L=v.indexOf(d,2);L===-1?(O=v.substring(2),v=d):(O=v.substring(2,L),v=v.substring(L)||d)}return new D("file",O,v,u,u)}static from(v){let O=new D(v.scheme,v.authority,v.path,v.query,v.fragment);return c(O,!0),O}toString(v=!1){return g(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof b)return v;{let O=new D(v);return O._formatted=v.external,O._fsPath=v._sep===h?v.fsPath:null,O}}return v}}let h=i?1:void 0;class D extends b{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(v=!1){return v?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=h),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function G(k,v,O){let L,x=-1;for(let C=0;C<k.length;C++){let T=k.charCodeAt(C);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||v&&T===47||O&&T===91||O&&T===93||O&&T===58)x!==-1&&(L+=encodeURIComponent(k.substring(x,C)),x=-1),L!==void 0&&(L+=k.charAt(C));else{L===void 0&&(L=k.substr(0,C));let q=I[T];q!==void 0?(x!==-1&&(L+=encodeURIComponent(k.substring(x,C)),x=-1),L+=q):x===-1&&(x=C)}}return x!==-1&&(L+=encodeURIComponent(k.substring(x))),L!==void 0?L:k}function U(k){let v;for(let O=0;O<k.length;O++){let L=k.charCodeAt(O);L===35||L===63?(v===void 0&&(v=k.substr(0,O)),v+=I[L]):v!==void 0&&(v+=k[O])}return v!==void 0?v:k}function y(k,v){let O;return O=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?v?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(O=O.replace(/\//g,"\\")),O}function g(k,v){let O=v?U:G,L="",{scheme:x,authority:C,path:T,query:q,fragment:M}=k;if(x&&(L+=x,L+=":"),(C||x==="file")&&(L+=d,L+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?L+=O($,!1,!1):(L+=O($.substr(0,N),!1,!1),L+=":",L+=O($.substr(N+1),!1,!0)),L+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?L+=O(C,!1,!0):(L+=O(C.substr(0,N),!1,!0),L+=C.substr(N))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){let N=T.charCodeAt(1);N>=65&&N<=90&&(T=`/${String.fromCharCode(N+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){let N=T.charCodeAt(0);N>=65&&N<=90&&(T=`${String.fromCharCode(N+32)}:${T.substr(2)}`)}L+=O(T,!0,!1)}return q&&(L+="?",L+=O(q,!1,!1)),M&&(L+="#",L+=v?M:G(M,!1,!1)),L}function S(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+S(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Z(k){return k.match(Y)?k.replace(Y,(v=>S(v))):k}var ut=n(975);let Ut=ut.posix||ut,cn="/";var Dn;(function(k){k.joinPath=function(v,...O){return v.with({path:Ut.join(v.path,...O)})},k.resolvePath=function(v,...O){let L=v.path,x=!1;L[0]!==cn&&(L=cn+L,x=!0);let C=Ut.resolve(L,...O);return x&&C[0]===cn&&!v.authority&&(C=C.substring(1)),v.with({path:C})},k.dirname=function(v){if(v.path.length===0||v.path===cn)return v;let O=Ut.dirname(v.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),v.with({path:O})},k.basename=function(v){return Ut.basename(v.path)},k.extname=function(v){return Ut.extname(v.path)}})(Dn||(Dn={})),_l=r})();var{URI:Qe,Utils:K}=_l;import{isBrowser as wb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as Db}from"@redocly/openapi-core";var _s={languageId:"yaml",filePattern:/\.ya?ml$/i},Cs={languageId:"json",filePattern:/\.json$/i},xs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[_s,Cs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(Ue(t)),Db);return await this._fs.exists(n)?De(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}},ae=new xs;function mr(e,t){let n=r=>K.resolvePath(Ue(Nt(r))).toString();return n(e)===n(t)}function Ue(e){return Qe.parse(e)}function Nt(e){return e.startsWith("file://")?e:Qe.file(e).toString()}function De(e){let t=Qe.parse(e).fsPath;return wb&&t.startsWith("/")?t.slice(1):t}function yr(e){let t=["https","http"],{scheme:n}=Qe.parse(e);return t.includes(n)}function hr(e){return K.basename(Ue(e))}async function Cl(e,t="/"){let n=K.resolvePath(Ue(t));for(;e.path!=="/";)try{(await ae.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as lx,Source as ed,readFileFromUrl as px,isAbsoluteUrl as Zs}from"@redocly/openapi-core";var ii=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=Dl(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=Rl(r.text,!1,o);if(c-a===d.length)for(let b=0,h=d.length;b<h;b++)u[b+a+1]=d[b];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 m=r.text.length-(s-o);if(m!==0)for(let b=a+1+d.length,h=u.length;b<h;b++)u[b]=u[b]+m}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=Rl(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&&Tl(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}},oi;(function(e){function t(i,o,s,a){return new ii(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof ii)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=Rs(o.map(Sb),(d,m)=>{let b=d.range.start.line-m.range.start.line;return b===0?d.range.start.character-m.range.start.character:b}),c=0,u=[];for(let d of a){let m=i.offsetAt(d.range.start);if(m<c)throw new Error("Overlapping edit");m>c&&u.push(s.substring(c,m)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(oi||(oi={}));function Rs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Rs(r,t),Rs(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 Rl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Tl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Tl(e){return e===13||e===10}function Dl(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 Sb(e){let t=Dl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var hi=Ee(On(),1),Xp=new Map;function Zp(e,t){return Xp.set(e,t)}function Xs(e){let t=[];for(let[n,r]of Xp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Xe(e){let t=ae.documents.get(e);if(t)return t;let n=await ae.fs.readFile(Ue(e),"utf-8");return oi.create(e,"yaml",1,n)}function _r(e){return Cs.filePattern.test(e)}function bi(e){return _s.filePattern.test(e)}function mn({uri:e,ast:t,textDocument:n}){if(!(bi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=hi.safeLoad(i,{filename:e})}if(t?.kind===hi.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 Pt=class extends lx{resolveExternalRef(t,n){return Zs(n)?n:t&&Zs(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(Ue(Nt(t))),n).toString():n}async loadExternalRef(t){if(yr(t)){let{body:i,mimeType:o}=await px(t,{...this.config.http,customFetch:fetch});return new ed(t,i,o)}let n=Nt(t),r=Zs(t)?De(t):t;return new ed(r,(await Xe(n)).getText())}};var $t;async function vi(e,t){let n=!1;try{let r=new Pt,i=e?await ae.findConfig(e):void 0;if(i===void 0){let o=await fx(i,r);$t=await td(gx,{externalRefResolver:r,ignore:o})}else $t=await dx({configPath:i,externalRefResolver:r})}catch(r){n=!0;let i=r instanceof Error?r.message:String(r);t?.createEventHandleLoadConfigError?.(i),$t=await td({})}return{config:$t,loadFailed:n}}async function Yt(e){return $t||(await vi(e)).config}async function yn(e){return await ea(e)?!0:!!$t?.resolvedRefMap&&[...$t.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>mr(hr(Nt(e)),n))}async function ea(e){let t=await ae.findConfig(e);return t?mr(e,t):!1}function yx(e){return e.endsWith(mx)}import{clearPluginsCache as xx}from"@redocly/openapi-core";var nd=new Set([".js",".mjs",".cjs",".ts"]),hx=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,bx=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function vx(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ae,r=K.dirname(Qe.file(e.configPath)),i=new Set;async function o(a){if(K.extname(a))return await n.exists(a)?a:void 0;let c=K.dirname(a),u=K.basename(a),d=await n.readDir(c).catch(()=>[]);for(let m of nd)if(d.includes(u+m))return K.joinPath(c,u+m)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!nd.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(bx,""),u=K.dirname(a);for(let[,d]of c.matchAll(hx)){let m=await o(K.resolvePath(u,d));m&&await s(m)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Qe.parse(a).fsPath)}function Px(e,t){return t.some(n=>mr(n,e))}var hd={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:hd,additionalProperties:!1},_x={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Tr={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...hd,like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:_x},additionalProperties:!1}},additionalProperties:!1},Cx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},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},ia={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ri={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Tr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ia,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:Cx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Ln={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Rx={type:"object",properties:{name:{type:"string"},items:Ln,queries:Ln,mutations:Ln,subscriptions:Ln,types:Ln,directives:Ln},required:["name"],additionalProperties:!1},Tx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Rx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Dx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},wx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Sx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Dx,license:wx},additionalProperties:!1},Ti={type:"object",properties:{menu:{type:"object",properties:{...Tx.properties},additionalProperties:!1},downloadUrls:ia,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:Tr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Sx},additionalProperties:!1},kx={type:"object",properties:{downloadUrls:ia,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Tr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Ax={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Ex={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"}}},rd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Nx={type:"object",properties:{beforeInfo:{type:"array",items:rd},end:{type:"array",items:rd}}},hn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Pi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qx={type:"object",properties:Ei(hn.properties,["light","dark"])},Ox={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"}}},Lx={type:"object",properties:{error:Pi,info:Pi,redirect:Pi,success:Pi}},Mx={type:"object",properties:Mn(hn.properties,["dark"])},jx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Ix={type:"object",properties:{accent:hn,border:qx,error:hn,http:Ox,primary:hn,responses:Lx,secondary:Mx,success:hn,text:jx,tonalOffset:{type:"number"},warning:hn}},xi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Fx={type:"object",properties:{small:xi,medium:xi,large:xi,xlarge:xi}},Ct={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Ux={type:"object",properties:{...Mn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Fx}},id={type:"object",properties:Ei(Ct.properties,["fontSize","lineHeight"])},Wx={type:"object",properties:{medium:id,small:id}},Hx={type:"object",properties:{...Mn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:Wx}},Bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},zx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},od={type:"object",properties:{fullWidth:{type:"boolean"}}},$x={type:"object",properties:{buttons:Ux,httpBadges:Hx,layoutControls:Bx,panels:zx,tryItButton:od,tryItSendButton:od}},Di={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Yx={type:"object",properties:{maxWidth:Di}},Vx={type:"object",properties:{maxWidth:Di,middlePanelMaxWidth:Di}},Kx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Yx,"three-panel":Vx}},sd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Gx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:sd,defaultDetailsWidth:{type:"string"},examples:sd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},bd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Qx={type:"object",properties:Ei(bd.properties,["textTransform"])},Jx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Xx={type:"object",properties:{...Mn(Ct.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:bd,level1items:Qx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Jx,textColor:{type:"string"},width:{type:"string"}}},_i={type:"object",properties:{...Ct.properties,color:{type:"string"},transform:{type:"string"}}},Zx={type:"object",properties:{...Ct.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"}}},e_={type:"object",properties:Mn(Ct.properties,["fontSize"])},t_={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},n_={type:"object",properties:{code:Zx,fieldName:Ct,...Ei(Ct.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_i,heading2:_i,heading3:_i,headings:e_,lineHeight:{type:"string"},links:t_,optimizeSpeed:{type:"boolean"},rightPanelHeading:_i,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},r_={type:"object",properties:{color:{type:"string"},...Mn(Ct.properties,["fontWeight"])}},i_={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:r_}},o_={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},s_={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},ad={type:"object",properties:{custom:{type:"string"}}},a_={type:"object",properties:{DownloadButton:ad,NextSectionButton:ad}},c_={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},u_={type:"object",properties:{borderRadius:{type:"string"}}},l_={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},p_={type:"object",properties:{breakpoints:Di,codeBlock:i_,colors:Ix,components:$x,layout:Kx,logo:o_,fab:s_,overrides:a_,rightPanel:c_,schema:Gx,shape:u_,sidebar:Xx,spacing:l_,typography:n_,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},d_={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Ax}},required:["languages"]},vd={type:"object",properties:{theme:p_,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:d_,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:Ex,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",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:Nx,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 Ei(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Mn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var nt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var f_={rules:nt,oas2Rules:nt,oas3_0Rules:nt,oas3_1Rules:nt,oas3_2Rules:nt,async2Rules:nt,async3Rules:nt,arazzo1Rules:nt,arazzo1_1Rules:nt,overlay1Rules:nt,openrpc1Rules:nt,graphqlRules:nt};var dt={nodeTypeName:void 0,type:"object",additionalProperties:!0},g_={preprocessors:dt,oas2Preprocessors:dt,oas3_0Preprocessors:dt,oas3_1Preprocessors:dt,oas3_2Preprocessors:dt,async2Preprocessors:dt,async3Preprocessors:dt,arazzo1Preprocessors:dt,arazzo1_1Preprocessors:dt,overlay1Preprocessors:dt,openrpc1Preprocessors:dt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0};var m_={decorators:ft,oas2Decorators:ft,oas3_0Decorators:ft,oas3_1Decorators:ft,oas3_2Decorators:ft,async2Decorators:ft,async3Decorators:ft,arazzo1Decorators:ft,arazzo1_1Decorators:ft,overlay1Decorators:ft,openrpc1Decorators:ft},y_={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Ni={...f_,...m_,...g_,extends:y_},Pd=e=>e,_t=Pd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Se={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},cd={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},ta={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},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"]},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}}},oa={type:"array",items:{...ta,properties:{...ta.properties,items:{type:"array",items:ta}}}},h_={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},b_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},v_={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}},P_={type:"object",properties:{facets:v_,...Se.properties},additionalProperties:!1},x_={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xd={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},_d={type:"object",properties:{items:oa,...Se.properties},additionalProperties:!1},Cd={type:"object",additionalProperties:h_},Rd={type:"object",properties:{items:oa,copyrightText:{type:"string"},logo:Se,...Se.properties},additionalProperties:!1},Td={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Se.properties},additionalProperties:!1},Dd={type:"object",properties:{head:{type:"array",items:cd},body:{type:"array",items:cd}},additionalProperties:!1},wd={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}},Sd={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:b_,filters:P_,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:x_},...Se.properties},additionalProperties:!1},kd={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Ad={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Se.properties},additionalProperties:!1},sa={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},__={type:"object",properties:{...Se.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ed={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},actions:__},additionalProperties:!1},Nd={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Se.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Se.properties},additionalProperties:!1},expand:{type:"object",properties:{...Se.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Se.properties},additionalProperties:!1}},additionalProperties:!1},qd={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...Se.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Se.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Se.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},wi={...Ri,properties:{...Ri.properties,...vd.properties}},Nw={...Ri,properties:{...Ri.properties,...vd.properties}},C_={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},R_={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"]},T_={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},D_={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},w_={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"]},S_={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},k_={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Od={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"]},A_={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:Od}},additionalProperties:!1,required:["trackingId"]},Ld={type:"object",properties:{adobe:C_,amplitude:R_,fullstory:T_,heap:D_,rudderstack:w_,segment:S_,gtm:k_,ga:A_}},Md={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...Se.properties},additionalProperties:!1},jd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Id={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}}},additionalProperties:!1},E_={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},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"}}}},N_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:E_},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:oa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Si={type:"object",patternProperties:{".*":N_}},ki={nodeTypeName:_t.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:_t.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Ni},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},q_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},O_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},L_={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"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Lt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:O_},excludes:{type:"array",items:q_},filters:{type:"array",items:L_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},M_={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},j_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:M_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},I_={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:j_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},F_={type:"object",additionalProperties:I_},Fd={type:"object",properties:{show:{type:"boolean"},entityTypes:F_,catalogs:{type:"object",properties:{all:Lt,services:Lt,domains:Lt,teams:Lt,users:Lt,apiDescriptions:Lt,dataSchemas:Lt,apiOperations:Lt},additionalProperties:Lt}},additionalProperties:!1},ud={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},aa={type:"string",enum:["and","or"]},na={type:"object",properties:{field:{type:"string"},operator:ud,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:ud,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},U_={type:"object",properties:{operator:aa,conditions:{type:"array",items:na}},required:["operator","conditions"],additionalProperties:!1},ld={type:"array",items:{oneOf:[na,{type:"object",properties:{operator:aa,conditions:{type:"array",items:{oneOf:[na,U_]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ud={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},W_={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:Ud},required:["subject","assertions"],additionalProperties:!1}},H_={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:Ud,where:W_,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},B_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},H_]}},z_={type:"object",properties:{name:{type:"string"},extends:Ni.extends,rules:B_},required:["name"],additionalProperties:!1},pd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},$_={oneOf:[pd,{type:"array",items:pd}]},Y_={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ld,{type:"object",properties:{operator:aa,conditions:ld},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:z_,minItems:1},trigger:$_},required:["name","key","entities","levels"],additionalProperties:!1},Wd={type:"array",items:Y_},xt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xd,navbar:_d,products:Cd,footer:Rd,sidebar:Td,scripts:Dd,links:wd,feedback:Tr,search:Sd,aiAssistant:kd,colorMode:Ad,palette:sa,navigation:Ed,codeSnippet:Nd,markdown:qd,openapi:wi,asyncapi:kx,graphql:Ti,analytics:Ld,userMenu:Md,versionPicker:jd,breadcrumbs:Id,catalog:Si,entitiesCatalog:Fd,catalogClassic:Si,scorecard:ki,scorecardClassic:ki,scorecards:Wd},additionalProperties:!0};var V_=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(V_||{}),K_=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(K_||{});var G_=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(G_||{});var Hd="^[a-z0-9]+(?:-[a-z0-9]+)*$",qw=new RegExp(Hd);var Q_=63,Ow=`Unique ID cannot exceed ${Q_} characters`,Bd="redocly",zd=[Bd,"corporate","guest"],Lw=`Unique ID cannot be a reserved word (${zd.join(", ")})`,dd=["REDOCLY","CORPORATE","GUEST"],J_={type:"object",additionalProperties:{type:"string"}},X_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ci={type:"string",enum:["error","warn","off"]},Z_={type:"object",additionalProperties:!1,properties:{schemaCheck:Ci,statusCodeCheck:Ci,contentTypeCheck:Ci,successCriteriaCheck:Ci}},e0={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},t0={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},n0={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},r0={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},i0={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{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:[e0,t0]},inputs:J_,servers:X_,severity:Z_,slo:n0},required:["path","trigger","agent"],additionalProperties:!1}},mcpServers:r0},additionalProperties:!1},$d={type:"string",enum:["off","info","warn","error"]},Rr={type:"array",items:{type:"string"}},o0={type:"object",properties:{severity:$d,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Rr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Rr,excludes:Rr,exceptions:{type:"object",properties:{files:Rr,lines:Rr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},s0={oneOf:[$d,o0]},fd={type:"object",additionalProperties:s0},a0={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},c0={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:a0}},additionalProperties:!1},u0={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:c0},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},l0={type:"object",properties:{rules:fd,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},u0]},apiDescriptions:{type:"object",properties:{rules:fd},additionalProperties:!1}},additionalProperties:!1},p0={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},d0={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:p0,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},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},f0={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},g0={oneOf:[d0,f0],discriminator:{propertyName:"type"}},m0={type:"object",additionalProperties:g0},Yd={oneOf:[{type:"array",items:{type:"string",enum:dd},uniqueItems:!0},{type:"string",enum:dd}]},gd={type:"string",pattern:Hd,not:{enum:zd.filter(e=>e!==Bd)}},Vd={oneOf:[{type:"array",items:gd,uniqueItems:!0},gd]},Kd={type:"boolean"},Gd={type:"string",pattern:"^https?://.*"},Qd={type:"string",pattern:"^https?://.*"},y0={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},h0={type:"object",additionalProperties:y0,nodeTypeName:_t.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},b0={type:"string",enum:["info","success","warning","error"]},ee={type:"object",additionalProperties:{type:"string"}},v0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:b0,rbac:ee,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},P0={type:"array",items:v0},Jd={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ee,openapi:wi,graphql:Ti,theme:{type:"object",properties:{openapi:wi,graphql:Ti},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Ni},required:["root"]},x0={type:"object",additionalProperties:!0},_0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},C0={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},R0={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},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:C0},additionalProperties:!1},T0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},D0={type:"object",properties:{catalogs:{type:"object",properties:{all:ee,services:ee,domains:ee,teams:ee,users:ee,apiDescriptions:ee,dataSchemas:ee,apiOperations:ee},additionalProperties:ee},entitiesTypes:{type:"object",properties:{service:ee,domain:ee,team:ee,user:ee,apiDescription:ee,apiOperation:ee,dataSchema:ee},additionalProperties:ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":ee},additionalProperties:ee}},additionalProperties:!1},Xd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ee,cms:ee,reunite:ee,features:{type:"object",properties:{aiSearch:ee,mcp:ee},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:D0},additionalProperties:ee},w0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},S0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},k0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[w0,S0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},A0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},E0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ra={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[A0,E0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},N0={...ra,properties:{...ra.properties,type:{type:"string",const:"APIGEE_EDGE"}}},q0={type:"object",oneOf:[ra,N0,k0],discriminator:{propertyName:"type"}},O0={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:q0}}},md={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"]},L0={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},M0={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},j0={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},I0={type:"object",properties:{requiresLogin:Kd,logoutReturnUrl:Gd,residency:Qd,sso:Yd,idps:Vd,rbac:Xd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Ai={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:h0,seo:R0,rbac:Xd,apiFunctions:T0,requiresLogin:Kd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:L0}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:Jd},...Ni,ssoDirect:m0,sso:Yd,idps:Vd,residency:Qd,logoutReturnUrl:Gd,access:I0,developerOnboarding:O0,removeAttribution:{type:"boolean"},i18n:md,l10n:md,metadata:x0,metadataGlobs:_0,ignore:{type:"array",items:{type:"string"}},theme:xt,reunite:i0,logo:xd,navbar:_d,products:Cd,footer:Rd,sidebar:Td,scripts:Dd,links:wd,feedback:Tr,search:Sd,aiAssistant:kd,colorMode:Ad,palette:sa,navigation:Ed,codeSnippet:Nd,markdown:qd,openapi:wi,graphql:Ti,analytics:Ld,userMenu:Md,versionPicker:jd,breadcrumbs:Id,catalog:Si,entitiesCatalog:Fd,catalogClassic:Si,scorecard:ki,scorecardClassic:ki,scorecards:Wd,mcp:M0,skills:j0,recheck:l0,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:P0},not:{required:["sso","idps"]},additionalProperties:!0},F0={...Ai,additionalProperties:!1},Zd={$id:"root-redocly-config",...Ai,properties:{plugins:{type:"array",items:{type:"string"}},...Ai.properties,env:{type:"object",additionalProperties:F0}},additionalProperties:!1},yd={type:"object",properties:{logo:xt.properties.logo,navbar:xt.properties.navbar,footer:xt.properties.footer,sidebar:xt.properties.sidebar,search:xt.properties.search,codeSnippet:xt.properties.codeSnippet,breadcrumbs:xt.properties.breadcrumbs,openapi:xt.properties.openapi,feedback:xt.properties.feedback,palette:sa,mockServer:Ai.properties.mockServer,analytics:{type:"object",properties:{ga:Od}}},additionalProperties:!0},Mw={$id:"product-config-override",type:"object",properties:{...yd.properties,apis:{type:"object",additionalProperties:Jd},theme:yd},additionalProperties:!1},U0=["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"],Pe=Pd({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),W0={type:"object",nodeTypeName:Pe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},H0={type:"object",nodeTypeName:Pe.ApiDescriptionEntityMetadata,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},B0={type:"object",nodeTypeName:Pe.ApiOperationEntityMetadata,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},z0={type:"object",nodeTypeName:Pe.DataSchemaEntityMetadata,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},$0={type:"object",properties:{},nodeTypeName:Pe.EntityMetadata,additionalProperties:!0},Y0={type:"object",nodeTypeName:Pe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},V0={type:"object",nodeTypeName:Pe.EntitySlackContact,properties:{channels:{type:"array",items:Y0}},required:["channels"],additionalProperties:!1},K0={type:"object",nodeTypeName:Pe.EntityContact,properties:{slack:V0},additionalProperties:!1},G0={type:"object",nodeTypeName:Pe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},Q0={type:"object",nodeTypeName:Pe.EntityRelation,properties:{type:{type:"string",enum:U0},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Vt={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:K0,links:{type:"array",nodeTypeName:Pe.EntityLinkList,items:G0},relations:{type:"array",nodeTypeName:Pe.EntityRelationList,items:Q0},metadata:$0},qi={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Vt,type:{type:"string",const:"user"},metadata:W0},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Pe.UserEntity},{type:"object",nodeTypeName:Pe.ApiOperationEntity,properties:{...Vt,type:{type:"string",const:"api-operation"},metadata:B0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DataSchemaEntity,properties:{...Vt,type:{type:"string",const:"data-schema"},metadata:z0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ApiDescriptionEntity,properties:{...Vt,type:{type:"string",const:"api-description"},metadata:H0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ServiceEntity,properties:{...Vt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DomainEntity,properties:{...Vt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.TeamEntity,properties:{...Vt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Oi={type:"object",nodeTypeName:Pe.Entity,properties:{...Vt},required:["key","title","type"],additionalProperties:!1};var We=Ee(It(),1);import{getLineColLocation as pT,lintDocument as dT,makeDocumentFromString as os,lintConfig as fT,lintEntityFile as gT,detectSpec as mT,createConfigTypes as yT}from"@redocly/openapi-core";var ns=Ee(On(),1);function yh(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),m=d?Date.now()-d:0;try{if(m<t&&m>=0)r.set(u.uri,setTimeout(()=>a(u),t-m));else if(r.delete(u.uri),i.delete(u.uri),!n){let b=s.get(u.uri),h=e(o.get(u.uri));b&&b.forEach(({resolve:D})=>D(h)),s.delete(u.uri)}}catch(b){let h=s.get(u.uri);h&&h.forEach(({reject:D})=>D(b)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),m=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((b,h)=>{let D=s.get(u.uri)||[];d||(s.set(u.uri,[...D,{resolve:b,reject:h}]),r.set(u.uri,setTimeout(()=>a(u),t))),m?b(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:b,reject:h}])})}return c}function rs(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 hh(e){return e==="$ref"}function el(e,t){return e?K.dirname(Qe.file(e)).toString():t}async function tl(e,t){let n=Qe.parse(t);return K.joinPath(n,e).toString()}async function bh(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await tl(i,n)===t)return r}function vh(e){return typeof e=="string"}function Vr(e){return typeof e=="function"}function Ph(e){return e?.kind===ns.Kind.MAP}function nl(e){return e?.kind===ns.Kind.MAPPING}function rl(e){return e?.kind===ns.Kind.SEQ}function Kr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as JR,isPlainObject as XR,makeDocumentFromString as ZR,getTypes as eT,detectSpec as tT}from"@redocly/openapi-core";var xh=new Map,is=new Map;function nT(e){return e?Array.from(e).map(([t,n])=>[t,rs(n)]):[]}async function il(e,t){let n=await Yt(),r=new Pt(n.resolve),i=ZR(e.getText(),e.uri),o=tT(i.parsed),s=o==="oas3_2",a=s?"oas3_1":o,{bundle:c,rootType:u,refTypes:d}=await JR({document:i,config:n,externalRefResolver:r,types:eT(a)}),m=nT(d);d&&(is=new Map([...is,...d]));let b=XR(c.parsed)?c.parsed:{};xh.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:s?{...b,openapi:"3.1.0"}:b,specVersion:a,rootType:rs(u),refTypes:m,errors:t})}function rT(){return Array.from(xh).map(([e,{definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}])=>({name:hr(e),uri:e,definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}))}function ol(e){return is.get(e)??is.get(De(e))??null}import{createConfig as _h,lintDocument as iT,loadIgnoreConfig as oT,regexFromString as sT}from"@redocly/openapi-core";async function Ch(e,t,n,r,i,o){let s=[],a=await oT(r,t),c=typeof i=="string"?await aT(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,m=d?.["x-metadata"]||{},b={title:d?.title,version:d?.version,...m,...o},h=uT(n.targets,b);h?.rules&&r&&(u=await cT(e.source.absoluteRef,h.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let m=u[d.name]??await _h({...d,plugins:c},{configPath:r,ignore:a}),b=await iT({document:e,externalRefResolver:t,config:m});s.push(...b.filter(({ignored:h})=>!h).map(h=>({...h,scorecardLevel:d.name})))}return s}async function aT(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){let n=t instanceof Error?t.message:String(t);return console.error("Failed to load plugins module:",n),console.error(`
70
- Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function cT(e,t,n=[],r=[],i,o){let s={};for(let a of n){let c={[a.name]:{root:e,rules:t}},u=await _h({apis:c,...a,plugins:r},{configPath:i,...o&&{ignore:o}});s[a.name]=u.forAlias(a.name)}return s}function uT(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>lT(i,o,t)))return n}}function lT(e,t,n){if(t.match(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}Z)?\/(\d{4}-\d{2}-\d{2})?$/)){if(!n[e])return!1;let[r,i]=t.split("/"),o=new Date(n[e]);return isNaN(o.getTime())?!1:!(o<new Date(r)||i&&o>new Date(i))}else if(t.match(/^\/.*\//)){if(!n[e])return!1;try{return sT(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var hT=800,al=yh(xT,hT);async function bT(e){let t=e.map(({documentPath:o})=>Ue(o).toString()),n=await Yt(),r=await ae.getRootWorkspaceFolderURI(),i=el(n.configPath,r);for(let{root:o}of Object.values(n.resolvedConfig.apis??{})){let s=await tl(o,i);if(t.includes(s))return s}return t[0]}function vT(e){try{return mT(e),!0}catch{return!1}}async function PT(e){try{let t=os(e.getText(),e.uri),n=new Pt,r=await gT({document:t,entitySchema:qi,entityDefaultSchema:Oi,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return sl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function xT(e){let t=e.uri,n=await Yt();if(await yn(De(t)))try{let r=await ea(De(t))?os(e.getText(),t):os(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new Pt,o=await fT({config:{document:r},externalRefResolver:i,externalConfigTypes:yT(Zd,n)}),s=[{uri:e.uri,diagnostics:[]}];return sl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(mn({uri:De(t),textDocument:e}))return await PT(e);{let r=Xs(t),i=await bT(r||[]);i&&(e=await Xe(i),t=i);let o;try{o=os(e.getText(),De(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!vT(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new Pt(n.resolve),c=await ae.getRootWorkspaceFolderURI(),u=el(n.configPath,c),d=await bh(n.resolvedConfig.apis??{},e.uri,u),m=Date.now(),b=[],h=[];try{h=(await dT({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:S})=>!S);let U=ae.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,y=d?n.resolvedConfig.apis?.[d]?.metadata:void 0,g=U&&ae.scorecardStatus==="enabled"?await Ch(o,a,U,n.configPath,ae.remoteScorecardAndPlugins?.plugins,y):[];b=[...h,...g]}catch(U){let y=U instanceof Error?U.message:String(U);b.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${y}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let D=TT(h);il(e,D);let I=Date.now()-m;s=[...new Set([e.uri,...[...a.getFiles()].map(U=>Ue(U).toString())])].map(U=>({uri:U,diagnostics:[]})),Zp(t,{dependencyPaths:a.getFiles(),durationMS:I}),sl(b,s)}catch(a){_T(e.uri,a,s)}return s}}}function Gr(){return ae.documents.all().map(al)}function _T(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Nt(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=We.Position.create(o,s),c=We.Diagnostic.create(We.Range.create(a,a),t.message,We.DiagnosticSeverity.Error);Rh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Rh(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 CT(e){return e.suggest.length===0?"":e.suggest.length===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 rt.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 rt.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(h){return typeof h<"u"}e.defined=n;function r(h){return typeof h>"u"}e.undefined=r;function i(h){return h===!0||h===!1}e.boolean=i;function o(h){return t.call(h)==="[object String]"}e.string=o;function s(h){return t.call(h)==="[object Number]"}e.number=s;function a(h,D,I){return t.call(h)==="[object Number]"&&D<=h&&h<=I}e.numberRange=a;function c(h){return t.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function u(h){return t.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=u;function d(h){return t.call(h)==="[object Function]"}e.func=d;function m(h){return h!==null&&typeof h=="object"}e.objectLiteral=m;function b(h,D){return Array.isArray(h)&&h.every(D)}e.typedArray=b})(f||(f={}))});var ce=R(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var Qn=vn(),Sf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Sf||(Ye.MessageDirection=Sf={}));var vu=class{constructor(t){this.method=t}};Ye.RegistrationType=vu;var Pu=class extends Qn.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=Pu;var xu=class extends Qn.RequestType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolRequestType=xu;var _u=class extends Qn.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=_u;var Cu=class extends Qn.NotificationType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Cu});var uo=R(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.objectLiteral=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function TC(e){return e===!0||e===!1}xe.boolean=TC;function kf(e){return typeof e=="string"||e instanceof String}xe.string=kf;function DC(e){return typeof e=="number"||e instanceof Number}xe.number=DC;function wC(e){return e instanceof Error}xe.error=wC;function SC(e){return typeof e=="function"}xe.func=SC;function Af(e){return Array.isArray(e)}xe.array=Af;function kC(e){return Af(e)&&e.every(t=>kf(t))}xe.stringArray=kC;function AC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=AC;function EC(e){return e!==null&&typeof e=="object"}xe.objectLiteral=EC});var qf=R(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.ImplementationRequest=void 0;var Ef=ce(),Nf;(function(e){e.method="textDocument/implementation",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(lo.ImplementationRequest=Nf={}))});var Mf=R(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.TypeDefinitionRequest=void 0;var Of=ce(),Lf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Of.MessageDirection.clientToServer,e.type=new Of.ProtocolRequestType(e.method)})(Lf||(po.TypeDefinitionRequest=Lf={}))});var Ff=R(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.DidChangeWorkspaceFoldersNotification=Jn.WorkspaceFoldersRequest=void 0;var fo=ce(),jf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=fo.MessageDirection.serverToClient,e.type=new fo.ProtocolRequestType0(e.method)})(jf||(Jn.WorkspaceFoldersRequest=jf={}));var If;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=fo.MessageDirection.clientToServer,e.type=new fo.ProtocolNotificationType(e.method)})(If||(Jn.DidChangeWorkspaceFoldersNotification=If={}))});var Hf=R(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.ConfigurationRequest=void 0;var Uf=ce(),Wf;(function(e){e.method="workspace/configuration",e.messageDirection=Uf.MessageDirection.serverToClient,e.type=new Uf.ProtocolRequestType(e.method)})(Wf||(go.ConfigurationRequest=Wf={}))});var $f=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ColorPresentationRequest=Xn.DocumentColorRequest=void 0;var mo=ce(),Bf;(function(e){e.method="textDocument/documentColor",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(Bf||(Xn.DocumentColorRequest=Bf={}));var zf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(zf||(Xn.ColorPresentationRequest=zf={}))});var Kf=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.FoldingRangeRefreshRequest=Zn.FoldingRangeRequest=void 0;var yo=ce(),Yf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=yo.MessageDirection.clientToServer,e.type=new yo.ProtocolRequestType(e.method)})(Yf||(Zn.FoldingRangeRequest=Yf={}));var Vf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=yo.MessageDirection.serverToClient,e.type=new yo.ProtocolRequestType0(e.method)})(Vf||(Zn.FoldingRangeRefreshRequest=Vf={}))});var Jf=R(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DeclarationRequest=void 0;var Gf=ce(),Qf;(function(e){e.method="textDocument/declaration",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(ho.DeclarationRequest=Qf={}))});var eg=R(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.SelectionRangeRequest=void 0;var Xf=ce(),Zf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Xf.MessageDirection.clientToServer,e.type=new Xf.ProtocolRequestType(e.method)})(Zf||(bo.SelectionRangeRequest=Zf={}))});var ig=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.WorkDoneProgressCancelNotification=Xt.WorkDoneProgressCreateRequest=Xt.WorkDoneProgress=void 0;var NC=vn(),vo=ce(),tg;(function(e){e.type=new NC.ProgressType;function t(n){return n===e.type}e.is=t})(tg||(Xt.WorkDoneProgress=tg={}));var ng;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=vo.MessageDirection.serverToClient,e.type=new vo.ProtocolRequestType(e.method)})(ng||(Xt.WorkDoneProgressCreateRequest=ng={}));var rg;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=vo.MessageDirection.clientToServer,e.type=new vo.ProtocolNotificationType(e.method)})(rg||(Xt.WorkDoneProgressCancelNotification=rg={}))});var cg=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CallHierarchyOutgoingCallsRequest=Zt.CallHierarchyIncomingCallsRequest=Zt.CallHierarchyPrepareRequest=void 0;var er=ce(),og;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(og||(Zt.CallHierarchyPrepareRequest=og={}));var sg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(sg||(Zt.CallHierarchyIncomingCallsRequest=sg={}));var ag;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(ag||(Zt.CallHierarchyOutgoingCallsRequest=ag={}))});var gg=R(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var jt=ce(),ug;(function(e){e.Relative="relative"})(ug||(Ve.TokenFormat=ug={}));var Fr;(function(e){e.method="textDocument/semanticTokens",e.type=new jt.RegistrationType(e.method)})(Fr||(Ve.SemanticTokensRegistrationType=Fr={}));var lg;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Fr.method})(lg||(Ve.SemanticTokensRequest=lg={}));var pg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Fr.method})(pg||(Ve.SemanticTokensDeltaRequest=pg={}));var dg;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Fr.method})(dg||(Ve.SemanticTokensRangeRequest=dg={}));var fg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=jt.MessageDirection.serverToClient,e.type=new jt.ProtocolRequestType0(e.method)})(fg||(Ve.SemanticTokensRefreshRequest=fg={}))});var hg=R(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.ShowDocumentRequest=void 0;var mg=ce(),yg;(function(e){e.method="window/showDocument",e.messageDirection=mg.MessageDirection.serverToClient,e.type=new mg.ProtocolRequestType(e.method)})(yg||(Po.ShowDocumentRequest=yg={}))});var Pg=R(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.LinkedEditingRangeRequest=void 0;var bg=ce(),vg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=bg.MessageDirection.clientToServer,e.type=new bg.ProtocolRequestType(e.method)})(vg||(xo.LinkedEditingRangeRequest=vg={}))});var Sg=R(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var it=ce(),xg;(function(e){e.file="file",e.folder="folder"})(xg||(je.FileOperationPatternKind=xg={}));var _g;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(_g||(je.WillCreateFilesRequest=_g={}));var Cg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Cg||(je.DidCreateFilesNotification=Cg={}));var Rg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(Rg||(je.WillRenameFilesRequest=Rg={}));var Tg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Tg||(je.DidRenameFilesNotification=Tg={}));var Dg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Dg||(je.DidDeleteFilesNotification=Dg={}));var wg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(wg||(je.WillDeleteFilesRequest=wg={}))});var qg=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.MonikerRequest=en.MonikerKind=en.UniquenessLevel=void 0;var kg=ce(),Ag;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Ag||(en.UniquenessLevel=Ag={}));var Eg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Eg||(en.MonikerKind=Eg={}));var Ng;(function(e){e.method="textDocument/moniker",e.messageDirection=kg.MessageDirection.clientToServer,e.type=new kg.ProtocolRequestType(e.method)})(Ng||(en.MonikerRequest=Ng={}))});var jg=R(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.TypeHierarchySubtypesRequest=tn.TypeHierarchySupertypesRequest=tn.TypeHierarchyPrepareRequest=void 0;var tr=ce(),Og;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Og||(tn.TypeHierarchyPrepareRequest=Og={}));var Lg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Lg||(tn.TypeHierarchySupertypesRequest=Lg={}));var Mg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Mg||(tn.TypeHierarchySubtypesRequest=Mg={}))});var Ug=R(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.InlineValueRefreshRequest=nr.InlineValueRequest=void 0;var _o=ce(),Ig;(function(e){e.method="textDocument/inlineValue",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(Ig||(nr.InlineValueRequest=Ig={}));var Fg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=_o.MessageDirection.serverToClient,e.type=new _o.ProtocolRequestType0(e.method)})(Fg||(nr.InlineValueRefreshRequest=Fg={}))});var zg=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.InlayHintRefreshRequest=nn.InlayHintResolveRequest=nn.InlayHintRequest=void 0;var rr=ce(),Wg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Wg||(nn.InlayHintRequest=Wg={}));var Hg;(function(e){e.method="inlayHint/resolve",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Hg||(nn.InlayHintResolveRequest=Hg={}));var Bg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=rr.MessageDirection.serverToClient,e.type=new rr.ProtocolRequestType0(e.method)})(Bg||(nn.InlayHintRefreshRequest=Bg={}))});var Jg=R(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DiagnosticRefreshRequest=ot.WorkspaceDiagnosticRequest=ot.DocumentDiagnosticRequest=ot.DocumentDiagnosticReportKind=ot.DiagnosticServerCancellationData=void 0;var Qg=vn(),qC=uo(),ir=ce(),$g;(function(e){function t(n){let r=n;return r&&qC.boolean(r.retriggerRequest)}e.is=t})($g||(ot.DiagnosticServerCancellationData=$g={}));var Yg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Yg||(ot.DocumentDiagnosticReportKind=Yg={}));var Vg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Qg.ProgressType})(Vg||(ot.DocumentDiagnosticRequest=Vg={}));var Kg;(function(e){e.method="workspace/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Qg.ProgressType})(Kg||(ot.WorkspaceDiagnosticRequest=Kg={}));var Gg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Gg||(ot.DiagnosticRefreshRequest=Gg={}))});var im=R(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.DidCloseNotebookDocumentNotification=ge.DidSaveNotebookDocumentNotification=ge.DidChangeNotebookDocumentNotification=ge.NotebookCellArrayChange=ge.DidOpenNotebookDocumentNotification=ge.NotebookDocumentSyncRegistrationType=ge.NotebookDocument=ge.NotebookCell=ge.ExecutionSummary=ge.NotebookCellKind=void 0;var Ur=(co(),ri(ao)),mt=uo(),Dt=ce(),Ru;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Ru||(ge.NotebookCellKind=Ru={}));var Tu;(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 mt.objectLiteral(o)&&Ur.uinteger.is(o.executionOrder)&&(o.success===void 0||mt.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})(Tu||(ge.ExecutionSummary=Tu={}));var Co;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return mt.objectLiteral(s)&&Ru.is(s.kind)&&Ur.DocumentUri.is(s.document)&&(s.metadata===void 0||mt.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)&&!Tu.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(mt.objectLiteral(o)&&mt.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 m=0;m<u.length;m++){let b=u[m];if(!i(o[b],s[b]))return!1}}return!0}})(Co||(ge.NotebookCell=Co={}));var Xg;(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 mt.objectLiteral(i)&&mt.string(i.uri)&&Ur.integer.is(i.version)&&mt.typedArray(i.cells,Co.is)}e.is=n})(Xg||(ge.NotebookDocument=Xg={}));var or;(function(e){e.method="notebookDocument/sync",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.RegistrationType(e.method)})(or||(ge.NotebookDocumentSyncRegistrationType=or={}));var Zg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Zg||(ge.DidOpenNotebookDocumentNotification=Zg={}));var em;(function(e){function t(r){let i=r;return mt.objectLiteral(i)&&Ur.uinteger.is(i.start)&&Ur.uinteger.is(i.deleteCount)&&(i.cells===void 0||mt.typedArray(i.cells,Co.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})(em||(ge.NotebookCellArrayChange=em={}));var tm;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(tm||(ge.DidChangeNotebookDocumentNotification=tm={}));var nm;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(nm||(ge.DidSaveNotebookDocumentNotification=nm={}));var rm;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(rm||(ge.DidCloseNotebookDocumentNotification=rm={}))});var am=R(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.InlineCompletionRequest=void 0;var om=ce(),sm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=om.MessageDirection.clientToServer,e.type=new om.ProtocolRequestType(e.method)})(sm||(Ro.InlineCompletionRequest=sm={}))});var Py=R(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 w=ce(),cm=(co(),ri(ao)),ke=uo(),OC=qf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return OC.ImplementationRequest}});var LC=Mf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return LC.TypeDefinitionRequest}});var yy=Ff();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return yy.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return yy.DidChangeWorkspaceFoldersNotification}});var MC=Hf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return MC.ConfigurationRequest}});var hy=$f();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return hy.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return hy.ColorPresentationRequest}});var by=Kf();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return by.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return by.FoldingRangeRefreshRequest}});var jC=Jf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return jC.DeclarationRequest}});var IC=eg();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return IC.SelectionRangeRequest}});var Au=ig();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return Au.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Au.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Au.WorkDoneProgressCancelNotification}});var Eu=cg();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Eu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Eu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Eu.CallHierarchyPrepareRequest}});var sr=gg();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return sr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return sr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return sr.SemanticTokensRegistrationType}});var FC=hg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return FC.ShowDocumentRequest}});var UC=Pg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return UC.LinkedEditingRangeRequest}});var _n=Sg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return _n.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _n.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _n.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _n.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _n.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _n.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _n.WillDeleteFilesRequest}});var Nu=qg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return Nu.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return Nu.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return Nu.MonikerRequest}});var qu=jg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return qu.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return qu.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return qu.TypeHierarchySupertypesRequest}});var vy=Ug();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return vy.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return vy.InlineValueRefreshRequest}});var Ou=zg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Ou.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Ou.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Ou.InlayHintRefreshRequest}});var Wr=Jg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Wr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Wr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Wr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Wr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Wr.DiagnosticRefreshRequest}});var wt=im();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var WC=am();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return WC.InlineCompletionRequest}});var Du;(function(e){function t(n){let r=n;return ke.string(r)||ke.string(r.language)||ke.string(r.scheme)||ke.string(r.pattern)}e.is=t})(Du||(l.TextDocumentFilter=Du={}));var wu;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebookType)||ke.string(r.scheme)||ke.string(r.pattern))}e.is=t})(wu||(l.NotebookDocumentFilter=wu={}));var Su;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebook)||wu.is(r.notebook))&&(r.language===void 0||ke.string(r.language))}e.is=t})(Su||(l.NotebookCellTextDocumentFilter=Su={}));var ku;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!ke.string(r)&&!Du.is(r)&&!Su.is(r))return!1;return!0}e.is=t})(ku||(l.DocumentSelector=ku={}));var um;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(um||(l.RegistrationRequest=um={}));var lm;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(lm||(l.UnregistrationRequest=lm={}));var pm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(pm||(l.ResourceOperationKind=pm={}));var dm;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(dm||(l.FailureHandlingKind=dm={}));var fm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(fm||(l.PositionEncodingKind=fm={}));var gm;(function(e){function t(n){let r=n;return r&&ke.string(r.id)&&r.id.length>0}e.hasId=t})(gm||(l.StaticRegistrationOptions=gm={}));var mm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||ku.is(r.documentSelector))}e.is=t})(mm||(l.TextDocumentRegistrationOptions=mm={}));var ym;(function(e){function t(r){let i=r;return ke.objectLiteral(i)&&(i.workDoneProgress===void 0||ke.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&ke.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(ym||(l.WorkDoneProgressOptions=ym={}));var hm;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(hm||(l.InitializeRequest=hm={}));var bm;(function(e){e.unknownProtocolVersion=1})(bm||(l.InitializeErrorCodes=bm={}));var vm;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(vm||(l.InitializedNotification=vm={}));var Pm;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(Pm||(l.ShutdownRequest=Pm={}));var xm;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(xm||(l.ExitNotification=xm={}));var _m;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(_m||(l.DidChangeConfigurationNotification=_m={}));var Cm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Cm||(l.MessageType=Cm={}));var Rm;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Rm||(l.ShowMessageNotification=Rm={}));var Tm;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Tm||(l.ShowMessageRequest=Tm={}));var Dm;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Dm||(l.LogMessageNotification=Dm={}));var wm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(wm||(l.TelemetryEventNotification=wm={}));var Sm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Sm||(l.TextDocumentSyncKind=Sm={}));var km;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(km||(l.DidOpenTextDocumentNotification=km={}));var Am;(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})(Am||(l.TextDocumentContentChangeEvent=Am={}));var Em;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Em||(l.DidChangeTextDocumentNotification=Em={}));var Nm;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Nm||(l.DidCloseTextDocumentNotification=Nm={}));var qm;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(qm||(l.DidSaveTextDocumentNotification=qm={}));var Om;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Om||(l.TextDocumentSaveReason=Om={}));var Lm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Lm||(l.WillSaveTextDocumentNotification=Lm={}));var Mm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(l.WillSaveTextDocumentWaitUntilRequest=Mm={}));var jm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(jm||(l.DidChangeWatchedFilesNotification=jm={}));var Im;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Im||(l.FileChangeType=Im={}));var Fm;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(cm.URI.is(r.baseUri)||cm.WorkspaceFolder.is(r.baseUri))&&ke.string(r.pattern)}e.is=t})(Fm||(l.RelativePattern=Fm={}));var Um;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Um||(l.WatchKind=Um={}));var Wm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Wm||(l.PublishDiagnosticsNotification=Wm={}));var Hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Hm||(l.CompletionTriggerKind=Hm={}));var Bm;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Bm||(l.CompletionRequest=Bm={}));var zm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zm||(l.CompletionResolveRequest=zm={}));var $m;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($m||(l.HoverRequest=$m={}));var Ym;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Ym||(l.SignatureHelpTriggerKind=Ym={}));var Vm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vm||(l.SignatureHelpRequest=Vm={}));var Km;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Km||(l.DefinitionRequest=Km={}));var Gm;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Gm||(l.ReferencesRequest=Gm={}));var Qm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.DocumentHighlightRequest=Qm={}));var Jm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Jm||(l.DocumentSymbolRequest=Jm={}));var Xm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xm||(l.CodeActionRequest=Xm={}));var Zm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.CodeActionResolveRequest=Zm={}));var ey;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ey||(l.WorkspaceSymbolRequest=ey={}));var ty;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ty||(l.WorkspaceSymbolResolveRequest=ty={}));var ny;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ny||(l.CodeLensRequest=ny={}));var ry;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ry||(l.CodeLensResolveRequest=ry={}));var iy;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(iy||(l.CodeLensRefreshRequest=iy={}));var oy;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(oy||(l.DocumentLinkRequest=oy={}));var sy;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(sy||(l.DocumentLinkResolveRequest=sy={}));var ay;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ay||(l.DocumentFormattingRequest=ay={}));var cy;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(cy||(l.DocumentRangeFormattingRequest=cy={}));var uy;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(uy||(l.DocumentRangesFormattingRequest=uy={}));var ly;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ly||(l.DocumentOnTypeFormattingRequest=ly={}));var py;(function(e){e.Identifier=1})(py||(l.PrepareSupportDefaultBehavior=py={}));var dy;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(dy||(l.RenameRequest=dy={}));var fy;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(fy||(l.PrepareRenameRequest=fy={}));var gy;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(gy||(l.ExecuteCommandRequest=gy={}));var my;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(my||(l.ApplyWorkspaceEditRequest=my={}))});var _y=R(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.createProtocolConnection=void 0;var xy=vn();function HC(e,t,n,r){return xy.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,xy.createMessageConnection)(e,t,n,r)}To.createProtocolConnection=HC});var Ry=R(Ke=>{"use strict";var BC=Ke&&Ke.__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]})),Do=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&BC(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Do(vn(),Ke);Do((co(),ri(ao)),Ke);Do(ce(),Ke);Do(Py(),Ke);var zC=_y();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return zC.createProtocolConnection}});var Cy;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Cy||(Ke.LSPErrorCodes=Cy={}))});var ve=R(St=>{"use strict";var $C=St&&St.__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=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$C(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var YC=yc();Ty(yc(),St);Ty(Ry(),St);function VC(e,t,n,r){return(0,YC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=VC});var Mu=R(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.SemanticTokensBuilder=rn.SemanticTokensDiff=rn.SemanticTokensFeature=void 0;var wo=ve(),KC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(wo.SemanticTokensRefreshRequest.type),on:t=>{let n=wo.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=wo.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=wo.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rn.SemanticTokensFeature=KC;var So=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}]:[]}};rn.SemanticTokensDiff=So;var Lu=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 So(this._prevData,this._data).computeDiff()}:this.build()}};rn.SemanticTokensBuilder=Lu});var Dy=R(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InlineCompletionFeature=void 0;var GC=ve(),QC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(GC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};ko.InlineCompletionFeature=QC});var Iu=R(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TextDocuments=void 0;var Cn=ve(),ju=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Cn.Emitter,this._onDidOpen=new Cn.Emitter,this._onDidClose=new Cn.Emitter,this._onDidSave=new Cn.Emitter,this._onWillSave=new Cn.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=Cn.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}))})),Cn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ao.TextDocuments=ju});var Uu=R(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NotebookDocuments=ar.NotebookSyncFeature=void 0;var st=ve(),wy=Iu(),JC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(st.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(st.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(st.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(st.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ar.NotebookSyncFeature=JC;var Eo=class e{onDidOpenTextDocument(t){return this.openHandler=t,st.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,st.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,st.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}};Eo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Fu=class{constructor(t){t instanceof wy.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new wy.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new st.Emitter,this._onDidChange=new st.Emitter,this._onDidSave=new st.Emitter,this._onDidClose=new st.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 Eo,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=[],m=[],b=[];if(c.cells!==void 0){let U=c.cells;if(U.structure!==void 0){let y=U.structure.array;if(o.cells.splice(y.start,y.deleteCount,...y.cells!==void 0?y.cells:[]),U.structure.didOpen!==void 0)for(let g of U.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(U.structure.didClose)for(let g of U.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(U.data!==void 0){let y=new Map(U.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let S=y.get(o.cells[g].document);if(S!==void 0){let Y=o.cells.splice(g,1,S);if(m.push({old:Y[0],new:S}),y.delete(S.document),y.size===0)break}}}if(U.textContent!==void 0)for(let y of U.textContent)n.changeTextDocument({textDocument:y.document,contentChanges:y.changes}),b.push(y.document.uri)}this.updateCellMap(o);let h={notebookDocument:o};a&&(h.metadata={old:s,new:o.metadata});let D=[];for(let U of u)D.push(this.getNotebookCell(U));let I=[];for(let U of d)I.push(this.getNotebookCell(U));let G=[];for(let U of b)G.push(this.getNotebookCell(U));(D.length>0||I.length>0||m.length>0||G.length>0)&&(h.cells={added:D,removed:I,changed:{data:m,textContent:G}}),(h.metadata!==void 0||h.cells!==void 0)&&this._onDidChange.fire(h)})),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)}})),st.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ar.NotebookDocuments=Fu});var Wu=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.thenable=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function XC(e){return e===!0||e===!1}_e.boolean=XC;function Sy(e){return typeof e=="string"||e instanceof String}_e.string=Sy;function ZC(e){return typeof e=="number"||e instanceof Number}_e.number=ZC;function eR(e){return e instanceof Error}_e.error=eR;function ky(e){return typeof e=="function"}_e.func=ky;function Ay(e){return Array.isArray(e)}_e.array=Ay;function tR(e){return Ay(e)&&e.every(t=>Sy(t))}_e.stringArray=tR;function nR(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=nR;function rR(e){return e&&ky(e.then)}_e.thenable=rR});var Hu=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.generateUuid=at.parse=at.isUUID=at.v4=at.empty=void 0;var Hr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Br=class e extends Hr{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(""))}};Br._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Br._timeHighBits=["8","9","a","b"];at.empty=new Hr("00000000-0000-0000-0000-000000000000");function Ey(){return new Br}at.v4=Ey;var iR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Ny(e){return iR.test(e)}at.isUUID=Ny;function oR(e){if(!Ny(e))throw new Error("invalid uuid");return new Hr(e)}at.parse=oR;function sR(){return Ey().asHex()}at.generateUuid=sR});var qy=R(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.attachPartialResult=sn.ProgressFeature=sn.attachWorkDone=void 0;var on=ve(),aR=Hu(),Rn=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(on.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(on.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(on.WorkDoneProgress.type,this._token,{kind:"end"})}};Rn.Instances=new Map;var No=class extends Rn{constructor(t,n){super(t,n),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},zr=class{constructor(){}begin(){}report(){}done(){}},qo=class extends zr{constructor(){super(),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function cR(e,t){if(t===void 0||t.workDoneToken===void 0)return new zr;let n=t.workDoneToken;return delete t.workDoneToken,new Rn(e,n)}sn.attachWorkDone=cR;var uR=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(on.WorkDoneProgressCancelNotification.type,n=>{let r=Rn.Instances.get(n.token);(r instanceof No||r instanceof qo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new zr:new Rn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,aR.generateUuid)();return this.connection.sendRequest(on.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new No(this.connection,t))}else return Promise.resolve(new qo)}};sn.ProgressFeature=uR;var Bu;(function(e){e.type=new on.ProgressType})(Bu||(Bu={}));var zu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Bu.type,this._token,t)}};function lR(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new zu(e,n)}sn.attachPartialResult=lR});var Oy=R(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ConfigurationFeature=void 0;var pR=ve(),dR=Wu(),fR=e=>class extends e{getConfiguration(t){return t?dR.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(pR.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Oo.ConfigurationFeature=fR});var Ly=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.WorkspaceFoldersFeature=void 0;var Lo=ve(),gR=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Lo.Emitter,this.connection.onNotification(Lo.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(Lo.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(Lo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Mo.WorkspaceFoldersFeature=gR});var My=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.CallHierarchyFeature=void 0;var $u=ve(),mR=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest($u.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=$u.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=$u.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};jo.CallHierarchyFeature=mR});var jy=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.ShowDocumentFeature=void 0;var yR=ve(),hR=e=>class extends e{showDocument(t){return this.connection.sendRequest(yR.ShowDocumentRequest.type,t)}};Io.ShowDocumentFeature=hR});var Iy=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.FileOperationsFeature=void 0;var cr=ve(),bR=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(cr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(cr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(cr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(cr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(cr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(cr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Fo.FileOperationsFeature=bR});var Fy=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.LinkedEditingRangeFeature=void 0;var vR=ve(),PR=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(vR.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Uo.LinkedEditingRangeFeature=PR});var Uy=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TypeHierarchyFeature=void 0;var Yu=ve(),xR=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Yu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Yu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Yu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Wo.TypeHierarchyFeature=xR});var Hy=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.InlineValueFeature=void 0;var Wy=ve(),_R=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Wy.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Wy.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Ho.InlineValueFeature=_R});var zy=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.FoldingRangeFeature=void 0;var By=ve(),CR=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(By.FoldingRangeRefreshRequest.type),on:t=>{let n=By.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bo.FoldingRangeFeature=CR});var $y=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.InlayHintFeature=void 0;var Vu=ve(),RR=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Vu.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(Vu.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(Vu.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};zo.InlayHintFeature=RR});var Yy=R($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DiagnosticFeature=void 0;var $r=ve(),TR=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest($r.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest($r.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress($r.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest($r.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress($r.WorkspaceDiagnosticRequest.partialResult,n)))}}};$o.DiagnosticFeature=TR});var Vy=R(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.MonikerFeature=void 0;var DR=ve(),wR=e=>class extends e{get moniker(){return{on:t=>{let n=DR.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yo.MonikerFeature=wR});var ch=R(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createConnection=J.combineFeatures=J.combineNotebooksFeatures=J.combineLanguagesFeatures=J.combineWorkspaceFeatures=J.combineWindowFeatures=J.combineClientFeatures=J.combineTracerFeatures=J.combineTelemetryFeatures=J.combineConsoleFeatures=J._NotebooksImpl=J._LanguagesImpl=J.BulkUnregistration=J.BulkRegistration=J.ErrorMessageTracker=void 0;var E=ve(),ct=Wu(),Gu=Hu(),B=qy(),SR=Oy(),kR=Ly(),AR=My(),ER=Mu(),NR=jy(),qR=Iy(),OR=Fy(),LR=Uy(),MR=Hy(),jR=zy(),IR=$y(),FR=Yy(),UR=Uu(),WR=Vy();function Ku(e){if(e!==null)return e}var Qu=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)})}};J.ErrorMessageTracker=Qu;var Vo=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Ju=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Ku)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Ku)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Ku)}},Ky=(0,NR.ShowDocumentFeature)((0,B.ProgressFeature)(Ju)),Gy;(function(e){function t(){return new Ko}e.create=t})(Gy||(J.BulkRegistration=Gy={}));var Ko=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=ct.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Gu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Qy;(function(e){function t(){return new Yr(void 0,[])}e.create=t})(Qy||(J.BulkUnregistration=Qy={}));var Yr=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=ct.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Go=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 Ko?this.registerMany(t):t instanceof Yr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ct.string(n)?n:n.method,o=Gu.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=ct.string(t)?t:t.method,i=Gu.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new Yr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Xu=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(E.ApplyWorkspaceEditRequest.type,r)}},Jy=(0,qR.FileOperationsFeature)((0,kR.WorkspaceFoldersFeature)((0,SR.ConfigurationFeature)(Xu))),Qo=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},Jo=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Xo=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)}};J._LanguagesImpl=Xo;var Xy=(0,jR.FoldingRangeFeature)((0,WR.MonikerFeature)((0,FR.DiagnosticFeature)((0,IR.InlayHintFeature)((0,MR.InlineValueFeature)((0,LR.TypeHierarchyFeature)((0,OR.LinkedEditingRangeFeature)((0,ER.SemanticTokensFeature)((0,AR.CallHierarchyFeature)(Xo))))))))),Zo=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)}};J._NotebooksImpl=Zo;var Zy=(0,UR.NotebookSyncFeature)(Zo);function eh(e,t){return function(n){return t(e(n))}}J.combineConsoleFeatures=eh;function th(e,t){return function(n){return t(e(n))}}J.combineTelemetryFeatures=th;function nh(e,t){return function(n){return t(e(n))}}J.combineTracerFeatures=nh;function rh(e,t){return function(n){return t(e(n))}}J.combineClientFeatures=rh;function ih(e,t){return function(n){return t(e(n))}}J.combineWindowFeatures=ih;function oh(e,t){return function(n){return t(e(n))}}J.combineWorkspaceFeatures=oh;function sh(e,t){return function(n){return t(e(n))}}J.combineLanguagesFeatures=sh;function ah(e,t){return function(n){return t(e(n))}}J.combineNotebooksFeatures=ah;function HR(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,eh),tracer:n(e.tracer,t.tracer,nh),telemetry:n(e.telemetry,t.telemetry,th),client:n(e.client,t.client,rh),window:n(e.window,t.window,ih),workspace:n(e.workspace,t.workspace,oh),languages:n(e.languages,t.languages,sh),notebooks:n(e.notebooks,t.notebooks,ah)}}J.combineFeatures=HR;function BR(e,t,n){let r=n&&n.console?new(n.console(Vo)):new Vo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Qo)):new Qo,s=n&&n.telemetry?new(n.telemetry(Jo)):new Jo,a=n&&n.client?new(n.client(Go)):new Go,c=n&&n.window?new(n.window(Ky)):new Ky,u=n&&n.workspace?new(n.workspace(Jy)):new Jy,d=n&&n.languages?new(n.languages(Xy)):new Xy,m=n&&n.notebooks?new(n.notebooks(Zy)):new Zy,b=[r,o,s,a,c,u,d,m];function h(y){return y instanceof Promise?y:ct.thenable(y)?new Promise((g,S)=>{y.then(Y=>g(Y),Y=>S(Y))}):Promise.resolve(y)}let D,I,G,U={listen:()=>i.listen(),sendRequest:(y,...g)=>i.sendRequest(ct.string(y)?y:y.method,...g),onRequest:(y,g)=>i.onRequest(y,g),sendNotification:(y,g)=>{let S=ct.string(y)?y:y.method;return i.sendNotification(S,g)},onNotification:(y,g)=>i.onNotification(y,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:y=>(I=y,{dispose:()=>{I=void 0}}),onInitialized:y=>i.onNotification(E.InitializedNotification.type,y),onShutdown:y=>(D=y,{dispose:()=>{D=void 0}}),onExit:y=>(G=y,{dispose:()=>{G=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 m},onDidChangeConfiguration:y=>i.onNotification(E.DidChangeConfigurationNotification.type,y),onDidChangeWatchedFiles:y=>i.onNotification(E.DidChangeWatchedFilesNotification.type,y),__textDocumentSync:void 0,onDidOpenTextDocument:y=>i.onNotification(E.DidOpenTextDocumentNotification.type,y),onDidChangeTextDocument:y=>i.onNotification(E.DidChangeTextDocumentNotification.type,y),onDidCloseTextDocument:y=>i.onNotification(E.DidCloseTextDocumentNotification.type,y),onWillSaveTextDocument:y=>i.onNotification(E.WillSaveTextDocumentNotification.type,y),onWillSaveTextDocumentWaitUntil:y=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,y),onDidSaveTextDocument:y=>i.onNotification(E.DidSaveTextDocumentNotification.type,y),sendDiagnostics:y=>i.sendNotification(E.PublishDiagnosticsNotification.type,y),onHover:y=>i.onRequest(E.HoverRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:y=>i.onRequest(E.CompletionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:y=>i.onRequest(E.CompletionResolveRequest.type,y),onSignatureHelp:y=>i.onRequest(E.SignatureHelpRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:y=>i.onRequest(E.DeclarationRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:y=>i.onRequest(E.DefinitionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:y=>i.onRequest(E.TypeDefinitionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:y=>i.onRequest(E.ImplementationRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:y=>i.onRequest(E.ReferencesRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:y=>i.onRequest(E.DocumentHighlightRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:y=>i.onRequest(E.DocumentSymbolRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:y=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:y=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,y),onCodeAction:y=>i.onRequest(E.CodeActionRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:y=>i.onRequest(E.CodeActionResolveRequest.type,(g,S)=>y(g,S)),onCodeLens:y=>i.onRequest(E.CodeLensRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:y=>i.onRequest(E.CodeLensResolveRequest.type,(g,S)=>y(g,S)),onDocumentFormatting:y=>i.onRequest(E.DocumentFormattingRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:y=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:y=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,S)=>y(g,S)),onRenameRequest:y=>i.onRequest(E.RenameRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:y=>i.onRequest(E.PrepareRenameRequest.type,(g,S)=>y(g,S)),onDocumentLinks:y=>i.onRequest(E.DocumentLinkRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:y=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,S)=>y(g,S)),onDocumentColor:y=>i.onRequest(E.DocumentColorRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:y=>i.onRequest(E.ColorPresentationRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:y=>i.onRequest(E.FoldingRangeRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:y=>i.onRequest(E.SelectionRangeRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:y=>i.onRequest(E.ExecuteCommandRequest.type,(g,S)=>y(g,S,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let y of b)y.attach(U);return i.onRequest(E.InitializeRequest.type,y=>{t.initialize(y),ct.string(y.trace)&&(o.trace=E.Trace.fromString(y.trace));for(let g of b)g.initialize(y.capabilities);if(I){let g=I(y,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,y),void 0);return h(g).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let Z=Y.capabilities;Z||(Z={},Y.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None:!ct.number(Z.textDocumentSync)&&!ct.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None);for(let ut of b)ut.fillServerCapabilities(Z);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of b)S.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{G&&G()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,y=>{o.trace=E.Trace.fromString(y.value)}),U}J.createConnection=BR});var Zu=R(Ie=>{"use strict";var zR=Ie&&Ie.__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]})),lh=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&zR(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var $R=Mu();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return $R.SemanticTokensBuilder}});var YR=Dy();lh(ve(),Ie);var VR=Iu();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return VR.TextDocuments}});var KR=Uu();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return KR.NotebookDocuments}});lh(ch(),Ie);var uh;(function(e){e.all={__brand:"features",languages:YR.InlineCompletionFeature}})(uh||(Ie.ProposedFeatures=uh={}))});var dh=R((dk,ph)=>{"use strict";ph.exports=ve()});var ts=R(kt=>{"use strict";var GR=kt&&kt.__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]})),gh=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&GR(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConnection=void 0;var es=Zu();gh(dh(),kt);gh(Zu(),kt);var fh=!1,QR={initialize:e=>{},get shutdownReceived(){return fh},set shutdownReceived(e){fh=e},exit:e=>{}};function JR(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),es.ConnectionStrategy.is(e)||es.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,es.createProtocolConnection)(o,s,u,a);return(0,es.createConnection)(c,QR,i)}kt.createConnection=JR});var It=R((gk,mh)=>{"use strict";mh.exports=ts()});var yl=R((Xk,Eh)=>{"use strict";function Et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Ah(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 XT(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 dr={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),Et(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Ah(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Et(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Ah(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Et(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];Et(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(Et(t),Et(n),t===n||(t=dr.resolve(t),n=dr.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,m=0;m<=u;++m){if(m===u){if(c>u){if(n.charCodeAt(s+m)===47)return n.slice(s+m+1);if(m===0)return n.slice(s+m)}else o>u&&(t.charCodeAt(r+m)===47?d=m:m===0&&(d=0));break}var b=t.charCodeAt(r+m),h=n.charCodeAt(s+m);if(b!==h)break;b===47&&(d=m)}var D="";for(m=r+d+1;m<=i;++m)(m===i||t.charCodeAt(m)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Et(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');Et(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){Et(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 XT("/",t)},parse:function(t){Et(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,m=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:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===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};dr.posix=dr;Eh.exports=dr});import{createConfig as td,loadConfig as dx,loadIgnoreConfig as fx,DEFAULT_CONFIG as gx,IGNORE_FILE as mx}from"@redocly/openapi-core";var _l;(()=>{"use strict";var e={975:k=>{function v(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var T,q="",M=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)T=x.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||M!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var Te=q.lastIndexOf("/");if(Te!==q.length-1){Te===-1?(q="",M=0):M=(q=q.slice(0,Te)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",M=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",M=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),M=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return q}var L={resolve:function(){for(var x,C="",T=!1,q=arguments.length-1;q>=-1&&!T;q--){var M;q>=0?M=arguments[q]:(x===void 0&&(x=process.cwd()),M=x),v(M),M.length!==0&&(C=M+"/"+C,T=M.charCodeAt(0)===47)}return C=O(C,!T),T?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(v(x),x.length===0)return".";var C=x.charCodeAt(0)===47,T=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&T&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return v(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,C=0;C<arguments.length;++C){var T=arguments[C];v(T),T.length>0&&(x===void 0?x=T:x+="/"+T)}return x===void 0?".":L.normalize(x)},relative:function(x,C){if(v(x),v(C),x===C||(x=L.resolve(x))===(C=L.resolve(C)))return"";for(var T=1;T<x.length&&x.charCodeAt(T)===47;++T);for(var q=x.length,M=q-T,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=M<$?M:$,Te=-1,ne=0;ne<=V;++ne){if(ne===V){if($>V){if(C.charCodeAt(N+ne)===47)return C.slice(N+ne+1);if(ne===0)return C.slice(N+ne)}else M>V&&(x.charCodeAt(T+ne)===47?Te=ne:ne===0&&(Te=0));break}var lt=x.charCodeAt(T+ne);if(lt!==C.charCodeAt(N+ne))break;lt===47&&(Te=ne)}var un="";for(ne=T+Te+1;ne<=q;++ne)ne!==q&&x.charCodeAt(ne)!==47||(un.length===0?un+="..":un+="/..");return un.length>0?un+C.slice(N+Te):(N+=Te,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(v(x),x.length===0)return".";for(var C=x.charCodeAt(0),T=C===47,q=-1,M=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!M){q=N;break}}else M=!1;return q===-1?T?"/":".":T&&q===1?"//":x.slice(0,q)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');v(x);var T,q=0,M=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var $=C.length-1,V=-1;for(T=x.length-1;T>=0;--T){var Te=x.charCodeAt(T);if(Te===47){if(!N){q=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(Te===C.charCodeAt($)?--$==-1&&(M=T):($=-1,M=V))}return q===M?M=V:M===-1&&(M=x.length),x.slice(q,M)}for(T=x.length-1;T>=0;--T)if(x.charCodeAt(T)===47){if(!N){q=T+1;break}}else M===-1&&(N=!1,M=T+1);return M===-1?"":x.slice(q,M)},extname:function(x){v(x);for(var C=-1,T=0,q=-1,M=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(M=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!M){T=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===T+1?"":x.slice(C,q)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return(function(C,T){var q=T.dir||T.root,M=T.base||(T.name||"")+(T.ext||"");return q?q===T.root?q+M:q+"/"+M:M})(0,x)},parse:function(x){v(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var T,q=x.charCodeAt(0),M=q===47;M?(C.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,Te=!0,ne=x.length-1,lt=0;ne>=T;--ne)if((q=x.charCodeAt(ne))!==47)V===-1&&(Te=!1,V=ne+1),q===46?N===-1?N=ne:lt!==1&&(lt=1):N!==-1&&(lt=-1);else if(!Te){$=ne+1;break}return N===-1||V===-1||lt===0||lt===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&M?x.slice(1,V):x.slice($,V)):($===0&&M?(C.name=x.slice(1,N),C.base=x.slice(1,V)):(C.name=x.slice($,N),C.base=x.slice($,V)),C.ext=x.slice(N,V)),$>0?C.dir=x.slice(0,$-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};L.posix=L,k.exports=L}},t={};function n(k){var v=t[k];if(v!==void 0)return v.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,v)=>{for(var O in v)n.o(v,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:v[O]})},n.o=(k,v)=>Object.prototype.hasOwnProperty.call(k,v),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:()=>b,Utils:()=>Dn}),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,v){if(!k.scheme&&v)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="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class b{static isUri(v){return v instanceof b||!!v&&typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}scheme;authority;path;query;fragment;constructor(v,O,L,x,C,T=!1){typeof v=="object"?(this.scheme=v.scheme||u,this.authority=v.authority||u,this.path=v.path||u,this.query=v.query||u,this.fragment=v.fragment||u):(this.scheme=(function(q,M){return q||M?q:"file"})(v,T),this.authority=O||u,this.path=(function(q,M){switch(q){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,L||u),this.query=x||u,this.fragment=C||u,c(this,T))}get fsPath(){return y(this,!1)}with(v){if(!v)return this;let{scheme:O,authority:L,path:x,query:C,fragment:T}=v;return O===void 0?O=this.scheme:O===null&&(O=u),L===void 0?L=this.authority:L===null&&(L=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),T===void 0?T=this.fragment:T===null&&(T=u),O===this.scheme&&L===this.authority&&x===this.path&&C===this.query&&T===this.fragment?this:new D(O,L,x,C,T)}static parse(v,O=!1){let L=m.exec(v);return L?new D(L[2]||u,Z(L[4]||u),Z(L[5]||u),Z(L[7]||u),Z(L[9]||u),O):new D(u,u,u,u,u)}static file(v){let O=u;if(i&&(v=v.replace(/\\/g,d)),v[0]===d&&v[1]===d){let L=v.indexOf(d,2);L===-1?(O=v.substring(2),v=d):(O=v.substring(2,L),v=v.substring(L)||d)}return new D("file",O,v,u,u)}static from(v){let O=new D(v.scheme,v.authority,v.path,v.query,v.fragment);return c(O,!0),O}toString(v=!1){return g(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof b)return v;{let O=new D(v);return O._formatted=v.external,O._fsPath=v._sep===h?v.fsPath:null,O}}return v}}let h=i?1:void 0;class D extends b{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(v=!1){return v?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=h),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function G(k,v,O){let L,x=-1;for(let C=0;C<k.length;C++){let T=k.charCodeAt(C);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||v&&T===47||O&&T===91||O&&T===93||O&&T===58)x!==-1&&(L+=encodeURIComponent(k.substring(x,C)),x=-1),L!==void 0&&(L+=k.charAt(C));else{L===void 0&&(L=k.substr(0,C));let q=I[T];q!==void 0?(x!==-1&&(L+=encodeURIComponent(k.substring(x,C)),x=-1),L+=q):x===-1&&(x=C)}}return x!==-1&&(L+=encodeURIComponent(k.substring(x))),L!==void 0?L:k}function U(k){let v;for(let O=0;O<k.length;O++){let L=k.charCodeAt(O);L===35||L===63?(v===void 0&&(v=k.substr(0,O)),v+=I[L]):v!==void 0&&(v+=k[O])}return v!==void 0?v:k}function y(k,v){let O;return O=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?v?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(O=O.replace(/\//g,"\\")),O}function g(k,v){let O=v?U:G,L="",{scheme:x,authority:C,path:T,query:q,fragment:M}=k;if(x&&(L+=x,L+=":"),(C||x==="file")&&(L+=d,L+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?L+=O($,!1,!1):(L+=O($.substr(0,N),!1,!1),L+=":",L+=O($.substr(N+1),!1,!0)),L+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?L+=O(C,!1,!0):(L+=O(C.substr(0,N),!1,!0),L+=C.substr(N))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){let N=T.charCodeAt(1);N>=65&&N<=90&&(T=`/${String.fromCharCode(N+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){let N=T.charCodeAt(0);N>=65&&N<=90&&(T=`${String.fromCharCode(N+32)}:${T.substr(2)}`)}L+=O(T,!0,!1)}return q&&(L+="?",L+=O(q,!1,!1)),M&&(L+="#",L+=v?M:G(M,!1,!1)),L}function S(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+S(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Z(k){return k.match(Y)?k.replace(Y,(v=>S(v))):k}var ut=n(975);let Ut=ut.posix||ut,cn="/";var Dn;(function(k){k.joinPath=function(v,...O){return v.with({path:Ut.join(v.path,...O)})},k.resolvePath=function(v,...O){let L=v.path,x=!1;L[0]!==cn&&(L=cn+L,x=!0);let C=Ut.resolve(L,...O);return x&&C[0]===cn&&!v.authority&&(C=C.substring(1)),v.with({path:C})},k.dirname=function(v){if(v.path.length===0||v.path===cn)return v;let O=Ut.dirname(v.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),v.with({path:O})},k.basename=function(v){return Ut.basename(v.path)},k.extname=function(v){return Ut.extname(v.path)}})(Dn||(Dn={})),_l=r})();var{URI:Qe,Utils:K}=_l;import{isBrowser as wb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as Db}from"@redocly/openapi-core";var _s={languageId:"yaml",filePattern:/\.ya?ml$/i},Cs={languageId:"json",filePattern:/\.json$/i},xs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[_s,Cs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(Ue(t)),Db);return await this._fs.exists(n)?De(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}},ae=new xs;function mr(e,t){let n=r=>K.resolvePath(Ue(Nt(r))).toString();return n(e)===n(t)}function Ue(e){return Qe.parse(e)}function Nt(e){return e.startsWith("file://")?e:Qe.file(e).toString()}function De(e){let t=Qe.parse(e).fsPath;return wb&&t.startsWith("/")?t.slice(1):t}function yr(e){let t=["https","http"],{scheme:n}=Qe.parse(e);return t.includes(n)}function hr(e){return K.basename(Ue(e))}async function Cl(e,t="/"){let n=K.resolvePath(Ue(t));for(;e.path!=="/";)try{(await ae.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as lx,Source as ed,readFileFromUrl as px,isAbsoluteUrl as Zs}from"@redocly/openapi-core";var ii=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=Dl(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=Rl(r.text,!1,o);if(c-a===d.length)for(let b=0,h=d.length;b<h;b++)u[b+a+1]=d[b];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 m=r.text.length-(s-o);if(m!==0)for(let b=a+1+d.length,h=u.length;b<h;b++)u[b]=u[b]+m}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=Rl(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&&Tl(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}},oi;(function(e){function t(i,o,s,a){return new ii(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof ii)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=Rs(o.map(Sb),(d,m)=>{let b=d.range.start.line-m.range.start.line;return b===0?d.range.start.character-m.range.start.character:b}),c=0,u=[];for(let d of a){let m=i.offsetAt(d.range.start);if(m<c)throw new Error("Overlapping edit");m>c&&u.push(s.substring(c,m)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(oi||(oi={}));function Rs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Rs(r,t),Rs(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 Rl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Tl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Tl(e){return e===13||e===10}function Dl(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 Sb(e){let t=Dl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var hi=Ee(On(),1),Xp=new Map;function Zp(e,t){return Xp.set(e,t)}function Xs(e){let t=[];for(let[n,r]of Xp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Xe(e){let t=ae.documents.get(e);if(t)return t;let n=await ae.fs.readFile(Ue(e),"utf-8");return oi.create(e,"yaml",1,n)}function _r(e){return Cs.filePattern.test(e)}function bi(e){return _s.filePattern.test(e)}function mn({uri:e,ast:t,textDocument:n}){if(!(bi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=hi.safeLoad(i,{filename:e})}if(t?.kind===hi.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 Pt=class extends lx{resolveExternalRef(t,n){return Zs(n)?n:t&&Zs(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(Ue(Nt(t))),n).toString():n}async loadExternalRef(t){if(yr(t)){let{body:i,mimeType:o}=await px(t,{...this.config.http,customFetch:fetch});return new ed(t,i,o)}let n=Nt(t),r=Zs(t)?De(t):t;return new ed(r,(await Xe(n)).getText())}};var $t;async function vi(e,t){let n=!1;try{let r=new Pt,i=e?await ae.findConfig(e):void 0;if(i===void 0){let o=await fx(i,r);$t=await td(gx,{externalRefResolver:r,ignore:o})}else $t=await dx({configPath:i,externalRefResolver:r})}catch(r){n=!0;let i=r instanceof Error?r.message:String(r);t?.createEventHandleLoadConfigError?.(i),$t=await td({})}return{config:$t,loadFailed:n}}async function Yt(e){return $t||(await vi(e)).config}async function yn(e){return await ea(e)?!0:!!$t?.resolvedRefMap&&[...$t.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>mr(hr(Nt(e)),n))}async function ea(e){let t=await ae.findConfig(e);return t?mr(e,t):!1}function yx(e){return e.endsWith(mx)}import{clearPluginsCache as xx}from"@redocly/openapi-core";var nd=new Set([".js",".mjs",".cjs",".ts"]),hx=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,bx=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function vx(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ae,r=K.dirname(Qe.file(e.configPath)),i=new Set;async function o(a){if(K.extname(a))return await n.exists(a)?a:void 0;let c=K.dirname(a),u=K.basename(a),d=await n.readDir(c).catch(()=>[]);for(let m of nd)if(d.includes(u+m))return K.joinPath(c,u+m)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!nd.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(bx,""),u=K.dirname(a);for(let[,d]of c.matchAll(hx)){let m=await o(K.resolvePath(u,d));m&&await s(m)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Qe.parse(a).fsPath)}function Px(e,t){return t.some(n=>mr(n,e))}var hd={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:hd,additionalProperties:!1},_x={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Tr={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...hd,like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:_x},additionalProperties:!1}},additionalProperties:!1},Cx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},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},ia={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ri={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Tr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ia,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:Cx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Ln={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Rx={type:"object",properties:{name:{type:"string"},items:Ln,queries:Ln,mutations:Ln,subscriptions:Ln,types:Ln,directives:Ln},required:["name"],additionalProperties:!1},Tx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Rx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Dx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},wx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Sx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Dx,license:wx},additionalProperties:!1},Ti={type:"object",properties:{menu:{type:"object",properties:{...Tx.properties},additionalProperties:!1},downloadUrls:ia,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:Tr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Sx},additionalProperties:!1},kx={type:"object",properties:{downloadUrls:ia,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Tr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Ax={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Ex={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"}}},rd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Nx={type:"object",properties:{beforeInfo:{type:"array",items:rd},end:{type:"array",items:rd}}},hn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Pi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qx={type:"object",properties:Ei(hn.properties,["light","dark"])},Ox={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"}}},Lx={type:"object",properties:{error:Pi,info:Pi,redirect:Pi,success:Pi}},Mx={type:"object",properties:Mn(hn.properties,["dark"])},jx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Ix={type:"object",properties:{accent:hn,border:qx,error:hn,http:Ox,primary:hn,responses:Lx,secondary:Mx,success:hn,text:jx,tonalOffset:{type:"number"},warning:hn}},xi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Fx={type:"object",properties:{small:xi,medium:xi,large:xi,xlarge:xi}},Ct={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Ux={type:"object",properties:{...Mn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Fx}},id={type:"object",properties:Ei(Ct.properties,["fontSize","lineHeight"])},Wx={type:"object",properties:{medium:id,small:id}},Hx={type:"object",properties:{...Mn(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:Wx}},Bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},zx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},od={type:"object",properties:{fullWidth:{type:"boolean"}}},$x={type:"object",properties:{buttons:Ux,httpBadges:Hx,layoutControls:Bx,panels:zx,tryItButton:od,tryItSendButton:od}},Di={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Yx={type:"object",properties:{maxWidth:Di}},Vx={type:"object",properties:{maxWidth:Di,middlePanelMaxWidth:Di}},Kx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Yx,"three-panel":Vx}},sd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Gx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:sd,defaultDetailsWidth:{type:"string"},examples:sd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},bd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Qx={type:"object",properties:Ei(bd.properties,["textTransform"])},Jx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Xx={type:"object",properties:{...Mn(Ct.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:bd,level1items:Qx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Jx,textColor:{type:"string"},width:{type:"string"}}},_i={type:"object",properties:{...Ct.properties,color:{type:"string"},transform:{type:"string"}}},Zx={type:"object",properties:{...Ct.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"}}},e_={type:"object",properties:Mn(Ct.properties,["fontSize"])},t_={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},n_={type:"object",properties:{code:Zx,fieldName:Ct,...Ei(Ct.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_i,heading2:_i,heading3:_i,headings:e_,lineHeight:{type:"string"},links:t_,optimizeSpeed:{type:"boolean"},rightPanelHeading:_i,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},r_={type:"object",properties:{color:{type:"string"},...Mn(Ct.properties,["fontWeight"])}},i_={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:r_}},o_={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},s_={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},ad={type:"object",properties:{custom:{type:"string"}}},a_={type:"object",properties:{DownloadButton:ad,NextSectionButton:ad}},c_={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},u_={type:"object",properties:{borderRadius:{type:"string"}}},l_={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},p_={type:"object",properties:{breakpoints:Di,codeBlock:i_,colors:Ix,components:$x,layout:Kx,logo:o_,fab:s_,overrides:a_,rightPanel:c_,schema:Gx,shape:u_,sidebar:Xx,spacing:l_,typography:n_,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},d_={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Ax}},required:["languages"]},vd={type:"object",properties:{theme:p_,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:d_,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:Ex,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",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:Nx,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 Ei(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Mn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var nt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var f_={rules:nt,oas2Rules:nt,oas3_0Rules:nt,oas3_1Rules:nt,oas3_2Rules:nt,async2Rules:nt,async3Rules:nt,arazzo1Rules:nt,arazzo1_1Rules:nt,overlay1Rules:nt,openrpc1Rules:nt,graphqlRules:nt};var dt={nodeTypeName:void 0,type:"object",additionalProperties:!0},g_={preprocessors:dt,oas2Preprocessors:dt,oas3_0Preprocessors:dt,oas3_1Preprocessors:dt,oas3_2Preprocessors:dt,async2Preprocessors:dt,async3Preprocessors:dt,arazzo1Preprocessors:dt,arazzo1_1Preprocessors:dt,overlay1Preprocessors:dt,openrpc1Preprocessors:dt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0};var m_={decorators:ft,oas2Decorators:ft,oas3_0Decorators:ft,oas3_1Decorators:ft,oas3_2Decorators:ft,async2Decorators:ft,async3Decorators:ft,arazzo1Decorators:ft,arazzo1_1Decorators:ft,overlay1Decorators:ft,openrpc1Decorators:ft},y_={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Ni={...f_,...m_,...g_,extends:y_},Pd=e=>e,_t=Pd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Se={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},cd={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"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},ta={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},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"]},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}}},oa={type:"array",items:{...ta,properties:{...ta.properties,items:{type:"array",items:ta}}}},h_={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},b_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},v_={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}},P_={type:"object",properties:{facets:v_,...Se.properties},additionalProperties:!1},x_={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xd={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},_d={type:"object",properties:{items:oa,...Se.properties},additionalProperties:!1},Cd={type:"object",additionalProperties:h_},Rd={type:"object",properties:{items:oa,copyrightText:{type:"string"},logo:Se,...Se.properties},additionalProperties:!1},Td={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Se.properties},additionalProperties:!1},Dd={type:"object",properties:{head:{type:"array",items:cd},body:{type:"array",items:cd}},additionalProperties:!1},wd={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}},Sd={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:b_,filters:P_,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:x_},...Se.properties},additionalProperties:!1},kd={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Ad={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Se.properties},additionalProperties:!1},sa={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},__={type:"object",properties:{...Se.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ed={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},actions:__},additionalProperties:!1},Nd={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Se.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Se.properties},additionalProperties:!1},expand:{type:"object",properties:{...Se.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Se.properties},additionalProperties:!1}},additionalProperties:!1},qd={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...Se.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Se.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Se.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},wi={...Ri,properties:{...Ri.properties,...vd.properties}},qw={...Ri,properties:{...Ri.properties,...vd.properties}},C_={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},R_={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"]},T_={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},D_={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},w_={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"]},S_={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},k_={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Od={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"]},A_={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:Od}},additionalProperties:!1,required:["trackingId"]},Ld={type:"object",properties:{adobe:C_,amplitude:R_,fullstory:T_,heap:D_,rudderstack:w_,segment:S_,gtm:k_,ga:A_}},E_={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},Md={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...Se.properties},additionalProperties:!1},jd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Id={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}}},additionalProperties:!1},N_={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},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"}}}},q_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:N_},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:oa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Si={type:"object",patternProperties:{".*":q_}},ki={nodeTypeName:_t.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:_t.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Ni},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},O_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},L_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},M_={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"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Lt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:L_},excludes:{type:"array",items:O_},filters:{type:"array",items:M_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},j_={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},I_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:j_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},F_={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:I_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},U_={type:"object",additionalProperties:F_},Fd={type:"object",properties:{show:{type:"boolean"},entityTypes:U_,catalogs:{type:"object",properties:{all:Lt,services:Lt,domains:Lt,teams:Lt,users:Lt,apiDescriptions:Lt,dataSchemas:Lt,apiOperations:Lt},additionalProperties:Lt}},additionalProperties:!1},ud={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},aa={type:"string",enum:["and","or"]},na={type:"object",properties:{field:{type:"string"},operator:ud,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:ud,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},W_={type:"object",properties:{operator:aa,conditions:{type:"array",items:na}},required:["operator","conditions"],additionalProperties:!1},ld={type:"array",items:{oneOf:[na,{type:"object",properties:{operator:aa,conditions:{type:"array",items:{oneOf:[na,W_]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ud={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},H_={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:Ud},required:["subject","assertions"],additionalProperties:!1}},B_={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:Ud,where:H_,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},z_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},B_]}},$_={type:"object",properties:{name:{type:"string"},extends:Ni.extends,rules:z_},required:["name"],additionalProperties:!1},pd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},Y_={oneOf:[pd,{type:"array",items:pd}]},V_={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ld,{type:"object",properties:{operator:aa,conditions:ld},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:$_,minItems:1},trigger:Y_},required:["name","key","entities","levels"],additionalProperties:!1},Wd={type:"array",items:V_},xt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xd,navbar:_d,products:Cd,footer:Rd,sidebar:Td,scripts:Dd,links:wd,feedback:Tr,search:Sd,aiAssistant:kd,colorMode:Ad,palette:sa,navigation:Ed,codeSnippet:Nd,markdown:qd,openapi:wi,asyncapi:kx,graphql:Ti,analytics:Ld,userMenu:Md,versionPicker:jd,breadcrumbs:Id,catalog:Si,entitiesCatalog:Fd,catalogClassic:Si,scorecard:ki,scorecardClassic:ki,scorecards:Wd},additionalProperties:!0};var K_=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(K_||{}),G_=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(G_||{});var Q_=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Q_||{});var Hd="^[a-z0-9]+(?:-[a-z0-9]+)*$",Ow=new RegExp(Hd);var J_=63,Lw=`Unique ID cannot exceed ${J_} characters`,Bd="redocly",zd=[Bd,"corporate","guest"],Mw=`Unique ID cannot be a reserved word (${zd.join(", ")})`,dd=["REDOCLY","CORPORATE","GUEST"],X_={type:"object",additionalProperties:{type:"string"}},Z_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ci={type:"string",enum:["error","warn","off"]},e0={type:"object",additionalProperties:!1,properties:{schemaCheck:Ci,statusCodeCheck:Ci,contentTypeCheck:Ci,successCriteriaCheck:Ci}},t0={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},n0={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},r0={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},i0={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},o0={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{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:[t0,n0]},inputs:X_,servers:Z_,severity:e0,slo:r0},required:["path","trigger","agent"],additionalProperties:!1}},mcpServers:i0},additionalProperties:!1},$d={type:"string",enum:["off","info","warn","error"]},Rr={type:"array",items:{type:"string"}},s0={type:"object",properties:{severity:$d,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Rr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Rr,excludes:Rr,exceptions:{type:"object",properties:{files:Rr,lines:Rr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},a0={oneOf:[$d,s0]},fd={type:"object",additionalProperties:a0},c0={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},u0={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:c0}},additionalProperties:!1},l0={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:u0},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},p0={type:"object",properties:{rules:fd,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},l0]},apiDescriptions:{type:"object",properties:{rules:fd},additionalProperties:!1}},additionalProperties:!1},d0={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},f0={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:d0,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},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},g0={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},m0={oneOf:[f0,g0],discriminator:{propertyName:"type"}},y0={type:"object",additionalProperties:m0},Yd={oneOf:[{type:"array",items:{type:"string",enum:dd},uniqueItems:!0},{type:"string",enum:dd}]},gd={type:"string",pattern:Hd,not:{enum:zd.filter(e=>e!==Bd)}},Vd={oneOf:[{type:"array",items:gd,uniqueItems:!0},gd]},Kd={type:"boolean"},Gd={type:"string",pattern:"^https?://.*"},Qd={type:"string",pattern:"^https?://.*"},h0={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},b0={type:"object",additionalProperties:h0,nodeTypeName:_t.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},v0={type:"string",enum:["info","success","warning","error"]},ee={type:"object",additionalProperties:{type:"string"}},P0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:v0,rbac:ee,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},x0={type:"array",items:P0},Jd={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:ee,openapi:wi,graphql:Ti,theme:{type:"object",properties:{openapi:wi,graphql:Ti},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Ni},required:["root"]},_0={type:"object",additionalProperties:!0},C0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},R0={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},T0={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},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:R0},additionalProperties:!1},D0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},w0={type:"object",properties:{catalogs:{type:"object",properties:{all:ee,services:ee,domains:ee,teams:ee,users:ee,apiDescriptions:ee,dataSchemas:ee,apiOperations:ee},additionalProperties:ee},entitiesTypes:{type:"object",properties:{service:ee,domain:ee,team:ee,user:ee,apiDescription:ee,apiOperation:ee,dataSchema:ee},additionalProperties:ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":ee},additionalProperties:ee}},additionalProperties:!1},Xd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ee,cms:ee,reunite:ee,features:{type:"object",properties:{aiSearch:ee,mcp:ee},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:w0},additionalProperties:ee},S0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},k0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},A0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[S0,k0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},E0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},N0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ra={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[E0,N0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},q0={...ra,properties:{...ra.properties,type:{type:"string",const:"APIGEE_EDGE"}}},O0={type:"object",oneOf:[ra,q0,A0],discriminator:{propertyName:"type"}},L0={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:O0}}},md={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"]},M0={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},j0={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},I0={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},F0={type:"object",properties:{requiresLogin:Kd,logoutReturnUrl:Gd,residency:Qd,sso:Yd,idps:Vd,rbac:Xd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Ai={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:b0,seo:T0,rbac:Xd,apiFunctions:D0,requiresLogin:Kd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:M0}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:Jd},...Ni,ssoDirect:y0,sso:Yd,idps:Vd,residency:Qd,logoutReturnUrl:Gd,access:F0,developerOnboarding:L0,removeAttribution:{type:"boolean"},i18n:md,l10n:md,metadata:_0,metadataGlobs:C0,ignore:{type:"array",items:{type:"string"}},theme:xt,reunite:o0,logo:xd,navbar:_d,products:Cd,footer:Rd,sidebar:Td,scripts:Dd,links:wd,feedback:Tr,search:Sd,aiAssistant:kd,colorMode:Ad,palette:sa,navigation:Ed,codeSnippet:Nd,markdown:qd,openapi:wi,graphql:Ti,analytics:Ld,consent:E_,userMenu:Md,versionPicker:jd,breadcrumbs:Id,catalog:Si,entitiesCatalog:Fd,catalogClassic:Si,scorecard:ki,scorecardClassic:ki,scorecards:Wd,mcp:j0,skills:I0,recheck:p0,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:x0},not:{required:["sso","idps"]},additionalProperties:!0},U0={...Ai,additionalProperties:!1},Zd={$id:"root-redocly-config",...Ai,properties:{plugins:{type:"array",items:{type:"string"}},...Ai.properties,env:{type:"object",additionalProperties:U0}},additionalProperties:!1},yd={type:"object",properties:{logo:xt.properties.logo,navbar:xt.properties.navbar,footer:xt.properties.footer,sidebar:xt.properties.sidebar,search:xt.properties.search,codeSnippet:xt.properties.codeSnippet,breadcrumbs:xt.properties.breadcrumbs,openapi:xt.properties.openapi,feedback:xt.properties.feedback,palette:sa,mockServer:Ai.properties.mockServer,analytics:{type:"object",properties:{ga:Od}}},additionalProperties:!0},jw={$id:"product-config-override",type:"object",properties:{...yd.properties,apis:{type:"object",additionalProperties:Jd},theme:yd},additionalProperties:!1},W0=["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"],Pe=Pd({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),H0={type:"object",nodeTypeName:Pe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},B0={type:"object",nodeTypeName:Pe.ApiDescriptionEntityMetadata,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},z0={type:"object",nodeTypeName:Pe.ApiOperationEntityMetadata,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},$0={type:"object",nodeTypeName:Pe.DataSchemaEntityMetadata,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},Y0={type:"object",properties:{},nodeTypeName:Pe.EntityMetadata,additionalProperties:!0},V0={type:"object",nodeTypeName:Pe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},K0={type:"object",nodeTypeName:Pe.EntitySlackContact,properties:{channels:{type:"array",items:V0}},required:["channels"],additionalProperties:!1},G0={type:"object",nodeTypeName:Pe.EntityContact,properties:{slack:K0},additionalProperties:!1},Q0={type:"object",nodeTypeName:Pe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},J0={type:"object",nodeTypeName:Pe.EntityRelation,properties:{type:{type:"string",enum:W0},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Vt={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:G0,links:{type:"array",nodeTypeName:Pe.EntityLinkList,items:Q0},relations:{type:"array",nodeTypeName:Pe.EntityRelationList,items:J0},metadata:Y0},qi={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Vt,type:{type:"string",const:"user"},metadata:H0},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Pe.UserEntity},{type:"object",nodeTypeName:Pe.ApiOperationEntity,properties:{...Vt,type:{type:"string",const:"api-operation"},metadata:z0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DataSchemaEntity,properties:{...Vt,type:{type:"string",const:"data-schema"},metadata:$0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ApiDescriptionEntity,properties:{...Vt,type:{type:"string",const:"api-description"},metadata:B0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ServiceEntity,properties:{...Vt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DomainEntity,properties:{...Vt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.TeamEntity,properties:{...Vt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Oi={type:"object",nodeTypeName:Pe.Entity,properties:{...Vt},required:["key","title","type"],additionalProperties:!1};var We=Ee(It(),1);import{getLineColLocation as dT,lintDocument as fT,makeDocumentFromString as os,lintConfig as gT,lintEntityFile as mT,detectSpec as yT,createConfigTypes as hT}from"@redocly/openapi-core";var ns=Ee(On(),1);function yh(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),m=d?Date.now()-d:0;try{if(m<t&&m>=0)r.set(u.uri,setTimeout(()=>a(u),t-m));else if(r.delete(u.uri),i.delete(u.uri),!n){let b=s.get(u.uri),h=e(o.get(u.uri));b&&b.forEach(({resolve:D})=>D(h)),s.delete(u.uri)}}catch(b){let h=s.get(u.uri);h&&h.forEach(({reject:D})=>D(b)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),m=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((b,h)=>{let D=s.get(u.uri)||[];d||(s.set(u.uri,[...D,{resolve:b,reject:h}]),r.set(u.uri,setTimeout(()=>a(u),t))),m?b(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:b,reject:h}])})}return c}function rs(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 hh(e){return e==="$ref"}function el(e,t){return e?K.dirname(Qe.file(e)).toString():t}async function tl(e,t){let n=Qe.parse(t);return K.joinPath(n,e).toString()}async function bh(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await tl(i,n)===t)return r}function vh(e){return typeof e=="string"}function Vr(e){return typeof e=="function"}function Ph(e){return e?.kind===ns.Kind.MAP}function nl(e){return e?.kind===ns.Kind.MAPPING}function rl(e){return e?.kind===ns.Kind.SEQ}function Kr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as XR,isPlainObject as ZR,makeDocumentFromString as eT,getTypes as tT,detectSpec as nT}from"@redocly/openapi-core";var xh=new Map,is=new Map;function rT(e){return e?Array.from(e).map(([t,n])=>[t,rs(n)]):[]}async function il(e,t){let n=await Yt(),r=new Pt(n.resolve),i=eT(e.getText(),e.uri),o=nT(i.parsed),s=o==="oas3_2",a=s?"oas3_1":o,{bundle:c,rootType:u,refTypes:d}=await XR({document:i,config:n,externalRefResolver:r,types:tT(a)}),m=rT(d);d&&(is=new Map([...is,...d]));let b=ZR(c.parsed)?c.parsed:{};xh.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:s?{...b,openapi:"3.1.0"}:b,specVersion:a,rootType:rs(u),refTypes:m,errors:t})}function iT(){return Array.from(xh).map(([e,{definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}])=>({name:hr(e),uri:e,definition:t,specVersion:n,rootType:r,refTypes:i,errors:o}))}function ol(e){return is.get(e)??is.get(De(e))??null}import{createConfig as _h,lintDocument as oT,loadIgnoreConfig as sT,regexFromString as aT}from"@redocly/openapi-core";async function Ch(e,t,n,r,i,o){let s=[],a=await sT(r,t),c=typeof i=="string"?await cT(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,m=d?.["x-metadata"]||{},b={title:d?.title,version:d?.version,...m,...o},h=lT(n.targets,b);h?.rules&&r&&(u=await uT(e.source.absoluteRef,h.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let m=u[d.name]??await _h({...d,plugins:c},{configPath:r,ignore:a}),b=await oT({document:e,externalRefResolver:t,config:m});s.push(...b.filter(({ignored:h})=>!h).map(h=>({...h,scorecardLevel:d.name})))}return s}async function cT(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){let n=t instanceof Error?t.message:String(t);return console.error("Failed to load plugins module:",n),console.error(`
70
+ Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function uT(e,t,n=[],r=[],i,o){let s={};for(let a of n){let c={[a.name]:{root:e,rules:t}},u=await _h({apis:c,...a,plugins:r},{configPath:i,...o&&{ignore:o}});s[a.name]=u.forAlias(a.name)}return s}function lT(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>pT(i,o,t)))return n}}function pT(e,t,n){if(t.match(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}Z)?\/(\d{4}-\d{2}-\d{2})?$/)){if(!n[e])return!1;let[r,i]=t.split("/"),o=new Date(n[e]);return isNaN(o.getTime())?!1:!(o<new Date(r)||i&&o>new Date(i))}else if(t.match(/^\/.*\//)){if(!n[e])return!1;try{return aT(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var bT=800,al=yh(_T,bT);async function vT(e){let t=e.map(({documentPath:o})=>Ue(o).toString()),n=await Yt(),r=await ae.getRootWorkspaceFolderURI(),i=el(n.configPath,r);for(let{root:o}of Object.values(n.resolvedConfig.apis??{})){let s=await tl(o,i);if(t.includes(s))return s}return t[0]}function PT(e){try{return yT(e),!0}catch{return!1}}async function xT(e){try{let t=os(e.getText(),e.uri),n=new Pt,r=await mT({document:t,entitySchema:qi,entityDefaultSchema:Oi,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return sl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function _T(e){let t=e.uri,n=await Yt();if(await yn(De(t)))try{let r=await ea(De(t))?os(e.getText(),t):os(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new Pt,o=await gT({config:{document:r},externalRefResolver:i,externalConfigTypes:hT(Zd,n)}),s=[{uri:e.uri,diagnostics:[]}];return sl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(mn({uri:De(t),textDocument:e}))return await xT(e);{let r=Xs(t),i=await vT(r||[]);i&&(e=await Xe(i),t=i);let o;try{o=os(e.getText(),De(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!PT(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new Pt(n.resolve),c=await ae.getRootWorkspaceFolderURI(),u=el(n.configPath,c),d=await bh(n.resolvedConfig.apis??{},e.uri,u),m=Date.now(),b=[],h=[];try{h=(await fT({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:S})=>!S);let U=ae.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,y=d?n.resolvedConfig.apis?.[d]?.metadata:void 0,g=U&&ae.scorecardStatus==="enabled"?await Ch(o,a,U,n.configPath,ae.remoteScorecardAndPlugins?.plugins,y):[];b=[...h,...g]}catch(U){let y=U instanceof Error?U.message:String(U);b.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${y}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let D=DT(h);il(e,D);let I=Date.now()-m;s=[...new Set([e.uri,...[...a.getFiles()].map(U=>Ue(U).toString())])].map(U=>({uri:U,diagnostics:[]})),Zp(t,{dependencyPaths:a.getFiles(),durationMS:I}),sl(b,s)}catch(a){CT(e.uri,a,s)}return s}}}function Gr(){return ae.documents.all().map(al)}function CT(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Nt(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=We.Position.create(o,s),c=We.Diagnostic.create(We.Range.create(a,a),t.message,We.DiagnosticSeverity.Error);Rh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Rh(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 RT(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 RT(e){return e.scorecardLevel?`
75
- Scorecard level: ${e.scorecardLevel}`:""}function sl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=We.DiagnosticSeverity.Error;break;case"warn":r=We.DiagnosticSeverity.Warning;break;default:r=We.DiagnosticSeverity.Warning}let i=pT(n.location[0]),o=Nt(i.source.absoluteRef),s=We.Position.create(i.start.line-1,i.start.col-1),a=i.end?We.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+CT(n)+RT(n),u=We.Diagnostic.create(We.Range.create(s,a),c,r,`Rule: ${n.ruleId}`,"Redocly OpenAPI");n.reference&&(u.codeDescription={href:n.reference}),Rh(o,u,t)})}function TT(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var ys=Ee(It(),1);var me=Ee(It(),1);function Re(e,t){return e?t?ss[e+"_"+t]||t:ss[e]||ss.Default:ss.Default}var DT=["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"],ss=DT.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var lr="newItem",Qr="propertyName",ur="newLine";function as(e){return!!(e?.name&&Th[e.name])}function cl(e){return Th[e]||[]}var Th={[ur]:[{label:"newLine",kind:me.CompletionItemKind.Constructor,data:{},sortText:Re(ur)}],[Qr]:[{label:Qr,kind:me.CompletionItemKind.Constructor,data:{properties:{}},sortText:Re(Qr)}],ServerVariable_Map:[{label:"newVariableName",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:me.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/json",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/octet-stream",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"multipart/form-data",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/xml",kind:me.CompletionItemKind.Property,data:[],sortText:Re("MediaTypeMap")}]};import{Oas2Types as wT,Oas3Types as ST,Oas3_1Types as kT,Oas3_2Types as Dh,AsyncApi2Types as AT,AsyncApi3Types as ET,Arazzo1Types as NT,Arazzo1_1Types as qT,Overlay1Types as OT,OpenRpcTypes as LT,ConfigTypes as MT,normalizeTypes as ll,getMajorSpecVersion as jT,createEntityTypes as IT}from"@redocly/openapi-core";var yt=Ee(On(),1);var ul=new Map;async function pl(e,t){let n=await Xe(e),r=n.getText(),i=yt.safeLoad(r,{filename:e}),{nodePath:o}=cs({node:i,nodePath:[]},t,n,!0),s=await dl(i,e),{version:a}=gl(i),{currentType:c,parentType:u,endPath:d}=Xr(s,o,i),m=Jr(i),b=c?.name?c:u;return{nodePath:o,endPath:d,type:b,existingValues:m,types:s,descriptionVersion:a}}async function FT(e){let n=(await Xe(e)).getText();try{let r=yt.safeLoad(n,{filename:e});return fl(r)}catch{return{version:"oas3_2",isDefault:!0}}}function wh(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,rl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(Ph(n)){let o=us(n);for(let s of o)if(nl(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function UT(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=us(i);if(a.length===0||WT(i)||!r&&HT(i,n,t))return e;let c=BT(a,s);return cs({nodePath:zT(o,i,a[c],c),node:a[c]},t,n,r)}function WT(e){return e?.kind===yt.Kind.MAPPING&&!e?.value}function HT(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=$T(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-$/{}]+$/.test(r)?o:n.character)===i}function BT(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 zT(e,t,n,r){return rl(t)?[...e,r]:nl(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function $T(e,t){let n=e?.startPosition??0,r=UT(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function Xr(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(Vr(e.items)){let d=YT(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],Vr(u)&&(u=u(null,a));else if(e?.additionalProperties&&!Vr(e?.additionalProperties))u=e.additionalProperties;else if(Vr(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=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function YT(e,t){let n={};if(e.kind===yt.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 dl(e,t){if(await yn(t)||await yn(De(t)))return ll(MT).ConfigRoot;if(mn({uri:t,ast:e})||mn({uri:De(t),ast:e})){let{entityTypes:o}=IT(qi,Oi),s=ll(o);if(e?.kind===yt.Kind.SEQ)return s.EntityFileArray;let a=VT(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=GT(e);if(!e)return n;let i=r?ol(t):n;return r&&!ol(t)&&e?null:i||n}function VT(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function KT(e){if(ul.has(e))return ul.get(e);let t=ll(QT(e)).Root;return ul.set(e,t),t}function fl(e){let t,n=!1;if(e?.kind===yt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.0.")){t="oas3_0";break}if(i==="openapi"&&o.startsWith("3.1.")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.")){t="oas3_2";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"&&o.startsWith("1.0."))return{version:"arazzo1",isDefault:!1};if(i==="arazzo"&&o.startsWith("1."))return{version:"arazzo1_1",isDefault:!1};if(i==="overlay"&&o.startsWith("1."))return{version:"overlay1",isDefault:!1};if(i==="openrpc"&&o.startsWith("1."))return{version:"openrpc1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function gl(e){let{version:t,isDefault:n}=fl(e);return{version:jT(t),isDefault:n}}function GT(e){let{version:t,isDefault:n}=fl(e);return{types:KT(t),isDefault:n}}function us(e){switch(e?.kind){case yt.Kind.MAPPING:return[e.key,e.value];case yt.Kind.MAP:return e.mappings;case yt.Kind.SEQ:return e?.items;default:return[]}}function QT(e){switch(e){case"oas3_2":return Dh;case"oas3_1":return kT;case"oas3_0":return ST;case"oas2":return wT;case"async2":return AT;case"async3":return ET;case"arazzo1":return NT;case"arazzo1_1":return qT;case"overlay1":return OT;case"openrpc1":return LT;case"graphql":return{};default:return Dh}}function Jr(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:vh(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},Jr(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},Jr(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as Sh}from"@redocly/openapi-core";var ml={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 kh(e){let t=ml[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var ls=Ee(It(),1),Ge=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||ls.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!==void 0?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 ls.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var pr=Ee(It(),1),At=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i??(n.includes("$")?pr.InsertTextFormat.PlainText:pr.InsertTextFormat.Snippet),this.kind=t||pr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===pr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var Zr={example:"example",default:"default",enum:"enum",ref:"$ref"},ps=[Zr.default,Zr.example];var qh=Ee(On(),1);var Ae={};vs(Ae,{default:()=>Nh.default});Ps(Ae,Ee(yl()));var Nh=Ee(yl());function XT(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=Xr(e,r,n);if(i?.name){let[o]=ml[i.name]||[];return o?.value}return null}function ZT(e,t,n){let r=t[t.length-1];if(hh(r))return XT(e,t,n);let{currentType:i}=Xr(e,t,n);return i?as(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:Qr,properties:{}}:i:null}function eD(e,t){return typeof t=="string"&&t in(e?.properties??{})?t:void 0}function tD(e,t,n){let{currentType:r,parentType:i,endPath:o}=Xr(e,t,n);return{contextType:r?.name??i?.name??"",contextProperty:eD(i,o)}}async function Oh(e,t){let n=await Xe(e),r=n.getText(),i=(0,qh.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=cs({node:i,nodePath:[]},t,n),a=await dl(i,e),c=ZT(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,...tD(a,s,i)}}async function Lh(e,t){let n=K.resolvePath(Ue(e)),r=K.dirname(n),i=await Cl(K.joinPath(r,t),r.path),o=K.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,Ae.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Mh=Ee(It(),1);var ds=class extends Ge{constructor(t){super(t),this.kind=Mh.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var jh=Ee(It(),1);var fs=class extends Ge{constructor(t){super(t),this.kind=jh.CompletionItemKind.File}};var rD=ae.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function iD(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,Ae.resolve)(n.path,t,".."),s=r?o:(0,Ae.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Re("FolderCompletion"),value:`${s}${a}`}}async function oD(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=K.resolvePath(i,s),c=await ae.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 Ih(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(iD(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,Ae.resolve)(i.path,c),m=(0,Ae.relative)(n.path,d),b=s.includes(Ae.sep)?s.slice(0,s.lastIndexOf(Ae.sep)+1):s+Ae.sep,h=r?d:m;if(u===0)return{type:u,name:c,value:h,sortBy:`${Re("FileCompletion")}${c}`,matchBy:`${b}${c}`};let D=`${c}/`;return{type:u,name:D,value:`${h}${m?"/":""}`,sortBy:`${Re("FolderCompletion")}${c}`,matchBy:`${b}${c}`}}))}function Fh(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,m={label:s,filterText:Kr(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new ds(m):new fs(m)})}async function Uh(e,t){let{node:n}=t,r=n.value??"",i=await Lh(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await ae.fs.readDir(o)}catch{return Fh(Ih([],i),t)}let a=await oD(s,{supportedFiles:rD},i);return Fh(Ih(a,i),t)}import{isEmptyObject as sD,isPlainObject as Hh}from"@redocly/openapi-core";var gs=" ";function aD(e){let t=e?.match(/^\s*(?:- )+/)?.[0].match(/- /g)?.length??0;return gs.repeat(t)}function Bh(e){return!Hh(e)||!Array.isArray(e.required)?[]:e.required.filter(t=>typeof t=="string")}function zh(e,t){return e.map((n,r)=>`${n}: \${${r+1}}`).join(`
74
+ - `)}`}function TT(e){return e.scorecardLevel?`
75
+ Scorecard level: ${e.scorecardLevel}`:""}function sl(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=We.DiagnosticSeverity.Error;break;case"warn":r=We.DiagnosticSeverity.Warning;break;default:r=We.DiagnosticSeverity.Warning}let i=dT(n.location[0]),o=Nt(i.source.absoluteRef),s=We.Position.create(i.start.line-1,i.start.col-1),a=i.end?We.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+RT(n)+TT(n),u=We.Diagnostic.create(We.Range.create(s,a),c,r,`Rule: ${n.ruleId}`,"Redocly OpenAPI");n.reference&&(u.codeDescription={href:n.reference}),Rh(o,u,t)})}function DT(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var ys=Ee(It(),1);var me=Ee(It(),1);function Re(e,t){return e?t?ss[e+"_"+t]||t:ss[e]||ss.Default:ss.Default}var wT=["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"],ss=wT.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var lr="newItem",Qr="propertyName",ur="newLine";function as(e){return!!(e?.name&&Th[e.name])}function cl(e){return Th[e]||[]}var Th={[ur]:[{label:"newLine",kind:me.CompletionItemKind.Constructor,data:{},sortText:Re(ur)}],[Qr]:[{label:Qr,kind:me.CompletionItemKind.Constructor,data:{properties:{}},sortText:Re(Qr)}],ServerVariable_Map:[{label:"newVariableName",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:me.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:me.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/json",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/octet-stream",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"multipart/form-data",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:me.CompletionItemKind.Property,data:{properties:{}},sortText:Re("MediaTypeMap")},{label:"application/xml",kind:me.CompletionItemKind.Property,data:[],sortText:Re("MediaTypeMap")}]};import{Oas2Types as ST,Oas3Types as kT,Oas3_1Types as AT,Oas3_2Types as Dh,AsyncApi2Types as ET,AsyncApi3Types as NT,Arazzo1Types as qT,Arazzo1_1Types as OT,Overlay1Types as LT,OpenRpcTypes as MT,ConfigTypes as jT,normalizeTypes as ll,getMajorSpecVersion as IT,createEntityTypes as FT}from"@redocly/openapi-core";var yt=Ee(On(),1);var ul=new Map;async function pl(e,t){let n=await Xe(e),r=n.getText(),i=yt.safeLoad(r,{filename:e}),{nodePath:o}=cs({node:i,nodePath:[]},t,n,!0),s=await dl(i,e),{version:a}=gl(i),{currentType:c,parentType:u,endPath:d}=Xr(s,o,i),m=Jr(i),b=c?.name?c:u;return{nodePath:o,endPath:d,type:b,existingValues:m,types:s,descriptionVersion:a}}async function UT(e){let n=(await Xe(e)).getText();try{let r=yt.safeLoad(n,{filename:e});return fl(r)}catch{return{version:"oas3_2",isDefault:!0}}}function wh(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,rl(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(Ph(n)){let o=us(n);for(let s of o)if(nl(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function WT(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=us(i);if(a.length===0||HT(i)||!r&&BT(i,n,t))return e;let c=zT(a,s);return cs({nodePath:$T(o,i,a[c],c),node:a[c]},t,n,r)}function HT(e){return e?.kind===yt.Kind.MAPPING&&!e?.value}function BT(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=YT(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-$/{}]+$/.test(r)?o:n.character)===i}function zT(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 $T(e,t,n,r){return rl(t)?[...e,r]:nl(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function YT(e,t){let n=e?.startPosition??0,r=WT(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function Xr(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(Vr(e.items)){let d=VT(n,typeof t[0]=="number"?t[0]:0);u=e.items(d,a)}}else if(e?.properties&&e.properties[a])u=e.properties[a],Vr(u)&&(u=u(null,a));else if(e?.additionalProperties&&!Vr(e?.additionalProperties))u=e.additionalProperties;else if(Vr(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=void 0);let s=o.every(a=>!!a);return{currentType:s||t[0]==="openapi"||t.length===0?e:null,parentType:s?r:null,endPath:i}}function VT(e,t){let n={};if(e.kind===yt.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 dl(e,t){if(await yn(t)||await yn(De(t)))return ll(jT).ConfigRoot;if(mn({uri:t,ast:e})||mn({uri:De(t),ast:e})){let{entityTypes:o}=FT(qi,Oi),s=ll(o);if(e?.kind===yt.Kind.SEQ)return s.EntityFileArray;let a=KT(e);return a&&s[a]?s[a]:s.EntityFileDefault}let{types:n,isDefault:r}=QT(e);if(!e)return n;let i=r?ol(t):n;return r&&!ol(t)&&e?null:i||n}function KT(e){let t="type";return e?.mappings?.find(n=>n.key?.value===t&&n.value?.value)?.value?.value}function GT(e){if(ul.has(e))return ul.get(e);let t=ll(JT(e)).Root;return ul.set(e,t),t}function fl(e){let t,n=!1;if(e?.kind===yt.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.0.")){t="oas3_0";break}if(i==="openapi"&&o.startsWith("3.1.")){t="oas3_1";break}if(i==="openapi"&&o.startsWith("3.")){t="oas3_2";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"&&o.startsWith("1.0."))return{version:"arazzo1",isDefault:!1};if(i==="arazzo"&&o.startsWith("1."))return{version:"arazzo1_1",isDefault:!1};if(i==="overlay"&&o.startsWith("1."))return{version:"overlay1",isDefault:!1};if(i==="openrpc"&&o.startsWith("1."))return{version:"openrpc1",isDefault:!1}}return t||(t="oas3_2",n=!0),{version:t,isDefault:n}}function gl(e){let{version:t,isDefault:n}=fl(e);return{version:IT(t),isDefault:n}}function QT(e){let{version:t,isDefault:n}=fl(e);return{types:GT(t),isDefault:n}}function us(e){switch(e?.kind){case yt.Kind.MAPPING:return[e.key,e.value];case yt.Kind.MAP:return e.mappings;case yt.Kind.SEQ:return e?.items;default:return[]}}function JT(e){switch(e){case"oas3_2":return Dh;case"oas3_1":return AT;case"oas3_0":return kT;case"oas2":return ST;case"async2":return ET;case"async3":return NT;case"arazzo1":return qT;case"arazzo1_1":return OT;case"overlay1":return LT;case"openrpc1":return MT;case"graphql":return{};default:return Dh}}function Jr(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:vh(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},Jr(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},Jr(o?.value||o,t[o?.key?.value||i],n+1)),i++}return t}import{mapTypeToComponent as Sh}from"@redocly/openapi-core";var ml={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 kh(e){let t=ml[e.name];if(t&&e.properties)for(let n of t)e.properties[n.name]=n.value;return e}var ls=Ee(It(),1),Ge=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:a}){this.kind=t||ls.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!==void 0?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 ls.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var pr=Ee(It(),1),At=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:a}){this.insertTextFormat=i??(n.includes("$")?pr.InsertTextFormat.PlainText:pr.InsertTextFormat.Snippet),this.kind=t||pr.CompletionItemKind.Property,this.label=n,this.data=a||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===pr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:void 0}};var Zr={example:"example",default:"default",enum:"enum",ref:"$ref"},ps=[Zr.default,Zr.example];var qh=Ee(On(),1);var Ae={};vs(Ae,{default:()=>Nh.default});Ps(Ae,Ee(yl()));var Nh=Ee(yl());function ZT(e,t,n){let r=t.slice(0,t.length-1),{currentType:i}=Xr(e,r,n);if(i?.name){let[o]=ml[i.name]||[];return o?.value}return null}function eD(e,t,n){let r=t[t.length-1];if(hh(r))return ZT(e,t,n);let{currentType:i}=Xr(e,t,n);return i?as(i)?i:i?.name&&(i?.name.includes("Map")||i?.name.includes("Named"))?{name:Qr,properties:{}}:i:null}function tD(e,t){return typeof t=="string"&&t in(e?.properties??{})?t:void 0}function nD(e,t,n){let{currentType:r,parentType:i,endPath:o}=Xr(e,t,n);return{contextType:r?.name??i?.name??"",contextProperty:tD(i,o)}}async function Oh(e,t){let n=await Xe(e),r=n.getText(),i=(0,qh.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=cs({node:i,nodePath:[]},t,n),a=await dl(i,e),c=eD(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,...nD(a,s,i)}}async function Lh(e,t){let n=K.resolvePath(Ue(e)),r=K.dirname(n),i=await Cl(K.joinPath(r,t),r.path),o=K.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t?(0,Ae.isAbsolute)(t):!1,docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var Mh=Ee(It(),1);var ds=class extends Ge{constructor(t){super(t),this.kind=Mh.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var jh=Ee(It(),1);var fs=class extends Ge{constructor(t){super(t),this.kind=jh.CompletionItemKind.File}};var iD=ae.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function oD(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,Ae.resolve)(n.path,t,".."),s=r?o:(0,Ae.relative)(n.path,o),a=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Re("FolderCompletion"),value:`${s}${a}`}}async function sD(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let a=K.resolvePath(i,s),c=await ae.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 Ih(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,a=[];return i.path!==o&&a.push(oD(t)),a.concat(e.map(({name:c,type:u})=>{let d=(0,Ae.resolve)(i.path,c),m=(0,Ae.relative)(n.path,d),b=s.includes(Ae.sep)?s.slice(0,s.lastIndexOf(Ae.sep)+1):s+Ae.sep,h=r?d:m;if(u===0)return{type:u,name:c,value:h,sortBy:`${Re("FileCompletion")}${c}`,matchBy:`${b}${c}`};let D=`${c}/`;return{type:u,name:D,value:`${h}${m?"/":""}`,sortBy:`${Re("FolderCompletion")}${c}`,matchBy:`${b}${c}`}}))}function Fh(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,m={label:s,filterText:Kr(c,n),sortText:u,value:a,data:{lineOffset:r,position:i,node:n}};return d===1?new ds(m):new fs(m)})}async function Uh(e,t){let{node:n}=t,r=n.value??"",i=await Lh(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await ae.fs.readDir(o)}catch{return Fh(Ih([],i),t)}let a=await sD(s,{supportedFiles:iD},i);return Fh(Ih(a,i),t)}import{isEmptyObject as aD,isPlainObject as Hh}from"@redocly/openapi-core";var gs=" ";function cD(e){let t=e?.match(/^\s*(?:- )+/)?.[0].match(/- /g)?.length??0;return gs.repeat(t)}function Bh(e){return!Hh(e)||!Array.isArray(e.required)?[]:e.required.filter(t=>typeof t=="string")}function zh(e,t){return e.map((n,r)=>`${n}: \${${r+1}}`).join(`
76
76
  ${t}`)}function Wh(e,t){let n=Bh(e);return n.length?`- ${zh(n,t+gs)}`:"- "}function Tn(e,t){if(e===ur)return`
77
- `;let n=t?.lineText,r=!!n?.trimEnd().endsWith(":"),i=aD(n)+(r?gs:""),o=r?`
77
+ `;let n=t?.lineText,r=!!n?.trimEnd().endsWith(":"),i=cD(n)+(r?gs:""),o=r?`
78
78
  ${i}`:"",s=i+gs;if(e===lr)return`${o}${Wh(t?.items,i)}`;if(Hh(t?.items))return`${o}${e}:
79
79
  ${s}${Wh(t?.items,s)}`;let a=Bh(t);return a.length?`${o}${e}:
80
- ${s}${zh(a,s)}`:t?.properties&&!sD(t.properties)?`${o}${e}:
81
- ${s}`:`${o}${e}: `}var ms=Ee(It(),1);var cD=["BuiltinRule","ConfigurableRule","CustomRule"],uD=["error","warn","off"],lD=["assertions"],$h="rule/customRuleName",Yh=`rule/\${1:my-rule}:
80
+ ${s}${zh(a,s)}`:t?.properties&&!aD(t.properties)?`${o}${e}:
81
+ ${s}`:`${o}${e}: `}var ms=Ee(It(),1);var uD=["BuiltinRule","ConfigurableRule","CustomRule"],lD=["error","warn","off"],pD=["assertions"],$h="rule/customRuleName",Yh=`rule/\${1:my-rule}:
82
82
  subject:
83
83
  type: \${2}
84
84
  assertions:
85
- \${3}`;function Vh(e){return e.openApiType?.name==="Rules"}function Kh(e){return!!e.openApiType?.name&&cD.includes(e.openApiType.name)&&e.lineText.trimEnd().endsWith(":")}function hl(e){return e[e.length-2]==="extends"&&typeof e[e.length-1]=="number"&&(e.length===2||e.length===4&&e[0]==="apis")}function Gh(e){return e[e.length-1]==="extends"&&(e.length===1||e.length===3&&e[0]==="apis")}async function Qh(e){return((await Yt(e)).plugins||[]).map(n=>{let r=new Set;for(let i of Object.values(n.rules||{}))for(let o of Object.keys(i))lD.includes(o)||r.add(o);return{id:n.id||"",ruleNames:[...r],configNames:Object.keys(n.configs||{})}})}function pD(e){return e.trimEnd().endsWith(":")?`
85
+ \${3}`;function Vh(e){return e.openApiType?.name==="Rules"}function Kh(e){return!!e.openApiType?.name&&uD.includes(e.openApiType.name)&&e.lineText.trimEnd().endsWith(":")}function hl(e){return e[e.length-2]==="extends"&&typeof e[e.length-1]=="number"&&(e.length===2||e.length===4&&e[0]==="apis")}function Gh(e){return e[e.length-1]==="extends"&&(e.length===1||e.length===3&&e[0]==="apis")}async function Qh(e){return((await Yt(e)).plugins||[]).map(n=>{let r=new Set;for(let i of Object.values(n.rules||{}))for(let o of Object.keys(i))pD.includes(o)||r.add(o);return{id:n.id||"",ruleNames:[...r],configNames:Object.keys(n.configs||{})}})}function dD(e){return e.trimEnd().endsWith(":")?`
86
86
  ${Yh.replace(/\n/g,`
87
- `)}`:Yh}async function Jh(e,t,n){let{lineText:r}=t,o=(await Qh(e)).flatMap(({id:s,ruleNames:a})=>a.map(c=>s?`${s}/${c}`:c)).filter(s=>!n.includes(s)).map(s=>new At({label:s,kind:ms.CompletionItemKind.Property,insertText:Tn(s,{lineText:r})}));return o.push(new At({label:$h,kind:ms.CompletionItemKind.Snippet,insertText:pD(r),filterText:$h})),o}function Xh(e){let{node:t,position:n,lineOffset:r,lineText:i}=e,o=i.endsWith(" ")?"":" ";return uD.map(s=>new Ge({label:s,kind:ms.CompletionItemKind.EnumMember,value:`${o}${s}`,filterText:s,data:{node:t,position:n,lineOffset:r}}))}async function Zh(e,t){let{node:n,position:r,lineOffset:i,nodePath:o,lineText:s}=t,a=await Qh(e),c=hl(o)?"":s.trimEnd().endsWith(":")?`
88
- - `:"- ";return a.flatMap(({id:u,configNames:d})=>d.map(m=>u?`${u}/${m}`:m)).map(u=>new Ge({label:u,value:`${c}${u}`,filterText:u,data:{node:n,position:r,lineOffset:i}}))}function dD(e,t){let{version:n}=gl(e),r=Sh(t,n);if(!r)return[];let i=wh(e,["components",r]);return i?(us(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function fD(e){let{node:t,position:n,lineOffset:r}=e,i=ps.includes(t.key?.value)?t:ps.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Zr.enum)?.value?.items?.map(({value:s})=>new Ge({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function gD(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?dD(i,r.name):[];return[...await Uh(e,t),...a.map(u=>{let d=Kr(u,s);return new Ge({label:u,filterText:Kr(u,s),value:d,sortText:`${Re("LocalComponentCompletion")}${u}`,data:{lineOffset:o,position:n,node:s}})})]}function mD(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new Ge({label:o,kind:ys.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function yD(e){let{node:t,position:n,lineOffset:r}=e;return["true","false"].map(i=>new Ge({label:i,data:{node:t,position:n,lineOffset:r}}))}function eb(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=nb(t,n,r);return xD(i,s,o)}async function hD(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&&Zr.ref===o?gD(e,t):ps.includes(o)?fD(t):i?.enum?mD(t):i?.type==="boolean"?yD(t):[]}async function tb(e,t){let n=await Oh(e,t),r=await bD(e,n),{contextType:i,contextProperty:o}=n;for(let s of r)s.data={...s.data,contextType:i,contextProperty:o};return r}async function bD(e,t){if(hl(t.nodePath)||Gh(t.nodePath))return Zh(e,t);if(Vh(t)){let n=nb(t.currentAst,t.nodePath,t.node);return Jh(e,t,n)}return Kh(t)?[...Xh(t),...eb(t)]:t.openApiType?.properties?eb(t):vD(await hD(e,t),t.lineText)}function vD(e,t){if(t.endsWith(":"))for(let n of e)n.textEdit||(n.insertText=` ${n.insertText}`);return e}function PD(e,t){return e.startsWith("$")&&/\$[\w-]*$/.test(t)?e.slice(1):e}function nb(e,t,n){if(!e)return[];let i=Jr(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);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function xD(e,t,n){if(!e)return[];if(kh(e),as(e))return cl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new At({...r,insertText:Tn(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 At({label:i,kind:ys.CompletionItemKind.Property,insertText:PD(Tn(i,o),n),sortText:Re(e?.name,i)})});return n.endsWith(":")&&r.push(...cl(ur).map(i=>new At({...i,insertText:Tn(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new At({label:lr,kind:ys.CompletionItemKind.Constructor,insertText:Tn(lr,{...e,lineText:n}),sortText:Re(lr)})]:[]}var Ft=Ee(ts(),1);var an=Ee(On(),1);import{getAstNodeByPointer as _D}from"@redocly/openapi-core";async function CD({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?K.joinPath(K.dirname(Qe.parse(i.uri)),o).toString():t.uri,d;try{d=await Xe(u)}catch{return}let m=(0,an.safeLoad)(d.getText(),{filename:De(u)}),b=_D(m,`#/${s}`,!0),h=Ft.Range.create(d.positionAt(b?.startPosition||0),d.positionAt(b?.endPosition||0));return[Ft.LocationLink.create(u,Ft.Range.create(0,0,d.lineCount,0),h,Ft.Range.create(Ft.Position.create(e.line,a),Ft.Position.create(e.line,c)))]}}async function rb({position:e,textDocument:t}){let n;try{n=await Xe(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,an.safeLoad)(o,{filename:De(t.uri)}),a;switch(s.kind){case an.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case an.Kind.MAP:{a=s?.mappings?.[0];break}case an.Kind.SEQ:{let u=s?.items?.[0];a=u?.kind===an.Kind.MAP?u?.mappings?.[0]:{value:{value:u?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!yr(c))return CD({position:e,textDocument:t,value:c,line:o,document:n})}var sb=Ee(ts(),1);function ib({nodePath:e,propertyTypeName:t,typeName:n,documentationLink:r}){let i=e.join(" \u203A "),o=r&&r.trim()?`
87
+ `)}`:Yh}async function Jh(e,t,n){let{lineText:r}=t,o=(await Qh(e)).flatMap(({id:s,ruleNames:a})=>a.map(c=>s?`${s}/${c}`:c)).filter(s=>!n.includes(s)).map(s=>new At({label:s,kind:ms.CompletionItemKind.Property,insertText:Tn(s,{lineText:r})}));return o.push(new At({label:$h,kind:ms.CompletionItemKind.Snippet,insertText:dD(r),filterText:$h})),o}function Xh(e){let{node:t,position:n,lineOffset:r,lineText:i}=e,o=i.endsWith(" ")?"":" ";return lD.map(s=>new Ge({label:s,kind:ms.CompletionItemKind.EnumMember,value:`${o}${s}`,filterText:s,data:{node:t,position:n,lineOffset:r}}))}async function Zh(e,t){let{node:n,position:r,lineOffset:i,nodePath:o,lineText:s}=t,a=await Qh(e),c=hl(o)?"":s.trimEnd().endsWith(":")?`
88
+ - `:"- ";return a.flatMap(({id:u,configNames:d})=>d.map(m=>u?`${u}/${m}`:m)).map(u=>new Ge({label:u,value:`${c}${u}`,filterText:u,data:{node:n,position:r,lineOffset:i}}))}function fD(e,t){let{version:n}=gl(e),r=Sh(t,n);if(!r)return[];let i=wh(e,["components",r]);return i?(us(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function gD(e){let{node:t,position:n,lineOffset:r}=e,i=ps.includes(t.key?.value)?t:ps.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Zr.enum)?.value?.items?.map(({value:s})=>new Ge({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function mD(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,a=r?.name?fD(i,r.name):[];return[...await Uh(e,t),...a.map(u=>{let d=Kr(u,s);return new Ge({label:u,filterText:Kr(u,s),value:d,sortText:`${Re("LocalComponentCompletion")}${u}`,data:{lineOffset:o,position:n,node:s}})})]}function yD(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t?.enum?t.enum.map(o=>new Ge({label:o,kind:ys.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}})):[]}function hD(e){let{node:t,position:n,lineOffset:r}=e;return["true","false"].map(i=>new Ge({label:i,data:{node:t,position:n,lineOffset:r}}))}function eb(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=nb(t,n,r);return _D(i,s,o)}async function bD(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&&Zr.ref===o?mD(e,t):ps.includes(o)?gD(t):i?.enum?yD(t):i?.type==="boolean"?hD(t):[]}async function tb(e,t){let n=await Oh(e,t),r=await vD(e,n),{contextType:i,contextProperty:o}=n;for(let s of r)s.data={...s.data,contextType:i,contextProperty:o};return r}async function vD(e,t){if(hl(t.nodePath)||Gh(t.nodePath))return Zh(e,t);if(Vh(t)){let n=nb(t.currentAst,t.nodePath,t.node);return Jh(e,t,n)}return Kh(t)?[...Xh(t),...eb(t)]:t.openApiType?.properties?eb(t):PD(await bD(e,t),t.lineText)}function PD(e,t){if(t.endsWith(":"))for(let n of e)n.textEdit||(n.insertText=` ${n.insertText}`);return e}function xD(e,t){return e.startsWith("$")&&/\$[\w-]*$/.test(t)?e.slice(1):e}function nb(e,t,n){if(!e)return[];let i=Jr(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);o.push(...a)}return!o.length&&n?.value&&o.push(n.value),o}function _D(e,t,n){if(!e)return[];if(kh(e),as(e))return cl(e?.name).filter(r=>!t.includes(r.label)).map(r=>new At({...r,insertText:Tn(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 At({label:i,kind:ys.CompletionItemKind.Property,insertText:xD(Tn(i,o),n),sortText:Re(e?.name,i)})});return n.endsWith(":")&&r.push(...cl(ur).map(i=>new At({...i,insertText:Tn(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new At({label:lr,kind:ys.CompletionItemKind.Constructor,insertText:Tn(lr,{...e,lineText:n}),sortText:Re(lr)})]:[]}var Ft=Ee(ts(),1);var an=Ee(On(),1);import{getAstNodeByPointer as CD}from"@redocly/openapi-core";async function RD({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?K.joinPath(K.dirname(Qe.parse(i.uri)),o).toString():t.uri,d;try{d=await Xe(u)}catch{return}let m=(0,an.safeLoad)(d.getText(),{filename:De(u)}),b=CD(m,`#/${s}`,!0),h=Ft.Range.create(d.positionAt(b?.startPosition||0),d.positionAt(b?.endPosition||0));return[Ft.LocationLink.create(u,Ft.Range.create(0,0,d.lineCount,0),h,Ft.Range.create(Ft.Position.create(e.line,a),Ft.Position.create(e.line,c)))]}}async function rb({position:e,textDocument:t}){let n;try{n=await Xe(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,an.safeLoad)(o,{filename:De(t.uri)}),a;switch(s.kind){case an.Kind.SCALAR:{a=s.parent||{value:{value:s?.value}};break}case an.Kind.MAP:{a=s?.mappings?.[0];break}case an.Kind.SEQ:{let u=s?.items?.[0];a=u?.kind===an.Kind.MAP?u?.mappings?.[0]:{value:{value:u?.value}};break}default:a=null}let c=a?.value?.value;if(c&&!yr(c))return RD({position:e,textDocument:t,value:c,line:o,document:n})}var sb=Ee(ts(),1);function ib({nodePath:e,propertyTypeName:t,typeName:n,documentationLink:r}){let i=e.join(" \u203A "),o=r&&r.trim()?`
89
89
 
90
90
  [Documentation](${r})
91
91
  `:"";return`${n&&t&&n!==t?`\`type\` **${n}** \u203A \`property\` **${t}**`:`\`type\` **${t}**`}${o}
92
92
 
93
93
  *${i}*
94
94
  `}function ob(e){if(!e)return"";let t=e.nodePath.map(a=>String(a)),n=e.type,r=n?.name;if(!n||!r)return"";let i=n?.properties,o=e?.endPath?i?.[e.endPath]:n;return typeof o=="function"||e.types?.name==="ConfigRoot"&&r.startsWith("rootRedoclyConfigSchema.")?"":[ib({nodePath:t,propertyTypeName:e.endPath?e.endPath:r,typeName:e.endPath?r:void 0,documentationLink:o?.documentationLink}),o?.description??""].join(`
95
- `)}async function ab(e){try{let t=e.textDocument.uri;if(!bi(t)&&!_r(t))return null;let n=e.position;if(!RD(n,t))return null;let r=await pl(t,n);if(!r)return null;let i=ob(r);return i?{contents:{kind:sb.MarkupKind.Markdown,value:i},metadata:{nodePath:r.nodePath,endPath:r.endPath,typeName:r.type?.name,descriptionVersion:r.descriptionVersion}}:null}catch(t){return console.error("Error in hover handler:",t),null}}function RD(e,t){let n=ae.documents.get(t);if(!n)return!0;let r=n.getText({start:{line:e.line,character:0},end:{line:e.line+1,character:0}}).trimEnd(),i=r.indexOf(":");if(i===-1)return!1;let o=r.match(/^\s*/)?.[0].length??0,s=r.substring(o,i).trimEnd(),a=o+s.length;return e.character>=o&&e.character<a}var TD=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(TD||{});var cb=class{async onCompletion(t){let{uri:n}=t.textDocument;return _r(n)?[]:tb(n,t.position)}async onCompletionResolve(t){return t}async onHover(t){return ab(t)}async validateOpenAPI(t){return al(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await yn(i.uri));if(n)return await vi(n.uri),Gr();if(t.changes.find(i=>mn({uri:i.uri})))return Gr()}async onDidConfigChange(t){return await vi(t),Gr()}async onDidChangeConfiguration(){return Gr()}async onDefinition(t){let{uri:n}=t.textDocument;return _r(n)?[]:await rb(t)||[]}};export{TD as ContextErrorCodes,cb as OpenapiLanguageServer,il as bundleOpenAPI,xx as clearPluginsCache,rT as getBundles,Yt as getConfigData,pl as getContextData,Xe as getDocumentByURI,Xs as getPathsByDependency,vx as getPluginFiles,FT as getSpecVersion,yn as isConfigFile,mn as isEntityFile,yr as isHttpPath,yx as isIgnoreFile,Px as isPluginFile,bi as isYamlFile,ae as languageServerConfig,vi as loadOpenAPIConfig,Ue as parseUri,rs as removeCirculars,Gr as revalidateAllDocuments,De as uriToAbsFSPath};
95
+ `)}async function ab(e){try{let t=e.textDocument.uri;if(!bi(t)&&!_r(t))return null;let n=e.position;if(!TD(n,t))return null;let r=await pl(t,n);if(!r)return null;let i=ob(r);return i?{contents:{kind:sb.MarkupKind.Markdown,value:i},metadata:{nodePath:r.nodePath,endPath:r.endPath,typeName:r.type?.name,descriptionVersion:r.descriptionVersion}}:null}catch(t){return console.error("Error in hover handler:",t),null}}function TD(e,t){let n=ae.documents.get(t);if(!n)return!0;let r=n.getText({start:{line:e.line,character:0},end:{line:e.line+1,character:0}}).trimEnd(),i=r.indexOf(":");if(i===-1)return!1;let o=r.match(/^\s*/)?.[0].length??0,s=r.substring(o,i).trimEnd(),a=o+s.length;return e.character>=o&&e.character<a}var DD=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(DD||{});var cb=class{async onCompletion(t){let{uri:n}=t.textDocument;return _r(n)?[]:tb(n,t.position)}async onCompletionResolve(t){return t}async onHover(t){return ab(t)}async validateOpenAPI(t){return al(t)}async onDidChangeWatchedFiles(t){let n=t.changes.find(async i=>await yn(i.uri));if(n)return await vi(n.uri),Gr();if(t.changes.find(i=>mn({uri:i.uri})))return Gr()}async onDidConfigChange(t){return await vi(t),Gr()}async onDidChangeConfiguration(){return Gr()}async onDefinition(t){let{uri:n}=t.textDocument;return _r(n)?[]:await rb(t)||[]}};export{DD as ContextErrorCodes,cb as OpenapiLanguageServer,il as bundleOpenAPI,xx as clearPluginsCache,iT as getBundles,Yt as getConfigData,pl as getContextData,Xe as getDocumentByURI,Xs as getPathsByDependency,vx as getPluginFiles,UT as getSpecVersion,yn as isConfigFile,mn as isEntityFile,yr as isHttpPath,yx as isIgnoreFile,Px as isPluginFile,bi as isYamlFile,ae as languageServerConfig,vi as loadOpenAPIConfig,Ue as parseUri,rs as removeCirculars,Gr as revalidateAllDocuments,De as uriToAbsFSPath};