@redocly/openapi-language-server 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,84 +1,84 @@
1
- var jp=Object.create;var ai=Object.defineProperty;var Lp=Object.getOwnPropertyDescriptor;var Ip=Object.getOwnPropertyNames;var Fp=Object.getPrototypeOf,Wp=Object.prototype.hasOwnProperty;var iu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Hp=(e,t)=>()=>(e&&(t=e(e=0)),t);var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ou=(e,t)=>{for(var n in t)ai(e,n,{get:t[n],enumerable:!0})},si=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ip(t))!Wp.call(e,i)&&i!==n&&ai(e,i,{get:()=>t[i],enumerable:!(r=Lp(t,i))||r.enumerable});return e},cs=(e,t,n)=>(si(e,t,"default"),n&&si(n,t,"default")),Xe=(e,t,n)=>(n=e!=null?jp(Fp(e)):{},si(t||!e||!e.__esModule?ai(n,"default",{value:e,enumerable:!0}):n,e)),Up=e=>si(ai({},"__esModule",{value:!0}),e);var Wt=A(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isYAMLNode=Se.isNodesEqual=Se.newMap=Se.newSeq=Se.newItems=Se.newScalar=Se.newAnchorRef=Se.newMapping=Se.Kind=void 0;var wt;(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"})(wt=Se.Kind||(Se.Kind={}));function zp(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:wt.MAPPING,parent:null,errors:[]};return i}Se.newMapping=zp;function $p(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:wt.ANCHOR_REF,parent:null}}Se.newAnchorRef=$p;function Yp(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:wt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}Se.newScalar=Yp;function uu(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:wt.SEQ,parent:null}}Se.newItems=uu;function Vp(){return uu()}Se.newSeq=Vp;function Kp(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:wt.MAP,parent:null}}Se.newMap=Kp;function br(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===wt.SCALAR)return e.value===t.value;if(e.kind===wt.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===wt.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,u=r.mappings.find(c=>br(o,c.key));if(u){if(!br(s,u.value))return!1}else return!1}return!0}if(wt.MAPPING===e.kind){let n=e,r=t;return br(n.key,r.key)}return!1}Se.isNodesEqual=br;function Gp(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}Se.isYAMLNode=Gp});var yn=A(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.isNegativeZero=Ze.repeat=Ze.extend=Ze.toArray=Ze.isObject=Ze.isNothing=void 0;function lu(e){return typeof e>"u"||e===null}Ze.isNothing=lu;function Qp(e){return typeof e=="object"&&e!==null}Ze.isObject=Qp;function Jp(e){return Array.isArray(e)?e:lu(e)?[]:[e]}Ze.toArray=Jp;function Xp(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}Ze.extend=Xp;function Zp(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Ze.repeat=Zp;function eg(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ze.isNegativeZero=eg});var In=A((N0,du)=>{"use strict";var bn=class{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==bn.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(bn.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};bn.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";du.exports=bn});var gu=A((O0,pu)=>{"use strict";var fu=yn(),fs=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,u;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
1
+ var jp=Object.create;var ai=Object.defineProperty;var Lp=Object.getOwnPropertyDescriptor;var Ip=Object.getOwnPropertyNames;var Fp=Object.getPrototypeOf,Wp=Object.prototype.hasOwnProperty;var ou=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Hp=(e,t)=>()=>(e&&(t=e(e=0)),t);var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),su=(e,t)=>{for(var n in t)ai(e,n,{get:t[n],enumerable:!0})},si=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ip(t))!Wp.call(e,i)&&i!==n&&ai(e,i,{get:()=>t[i],enumerable:!(r=Lp(t,i))||r.enumerable});return e},cs=(e,t,n)=>(si(e,t,"default"),n&&si(n,t,"default")),Xe=(e,t,n)=>(n=e!=null?jp(Fp(e)):{},si(t||!e||!e.__esModule?ai(n,"default",{value:e,enumerable:!0}):n,e)),Up=e=>si(ai({},"__esModule",{value:!0}),e);var Ht=A(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isYAMLNode=Se.isNodesEqual=Se.newMap=Se.newSeq=Se.newItems=Se.newScalar=Se.newAnchorRef=Se.newMapping=Se.Kind=void 0;var kt;(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"})(kt=Se.Kind||(Se.Kind={}));function zp(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:kt.MAPPING,parent:null,errors:[]};return i}Se.newMapping=zp;function $p(e,t,n,r,i=2){return{errors:[],referencesAnchor:e,value:r,nodeIndent:i,startPosition:t,endPosition:n,kind:kt.ANCHOR_REF,parent:null}}Se.newAnchorRef=$p;function Yp(e="",t=2){let n={errors:[],startPosition:-1,endPosition:-1,value:""+e,nodeIndent:t,kind:kt.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(n.valueObject=e),n}Se.newScalar=Yp;function lu(){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:2,items:[],kind:kt.SEQ,parent:null}}Se.newItems=lu;function Vp(){return lu()}Se.newSeq=Vp;function Kp(e,t=2){return{errors:[],startPosition:-1,endPosition:-1,nodeIndent:t,mappings:e||[],kind:kt.MAP,parent:null}}Se.newMap=Kp;function br(e,t){if(!e||!t||e.kind!==t.kind)return!1;if(e.kind===kt.SCALAR)return e.value===t.value;if(e.kind===kt.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===kt.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,u=r.mappings.find(c=>br(o,c.key));if(u){if(!br(s,u.value))return!1}else return!1}return!0}if(kt.MAPPING===e.kind){let n=e,r=t;return br(n.key,r.key)}return!1}Se.isNodesEqual=br;function Gp(e){return e.startPosition!==void 0&&e.endPosition!==void 0&&e.kind!==void 0}Se.isYAMLNode=Gp});var yn=A(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.isNegativeZero=Ze.repeat=Ze.extend=Ze.toArray=Ze.isObject=Ze.isNothing=void 0;function du(e){return typeof e>"u"||e===null}Ze.isNothing=du;function Qp(e){return typeof e=="object"&&e!==null}Ze.isObject=Qp;function Jp(e){return Array.isArray(e)?e:du(e)?[]:[e]}Ze.toArray=Jp;function Xp(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}Ze.extend=Xp;function Zp(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}Ze.repeat=Zp;function eg(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ze.isNegativeZero=eg});var In=A((E0,fu)=>{"use strict";var bn=class{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==bn.CLASS_IDENTIFIER)return!0}return!1}getClassIdentifier(){var t=[];return t.concat(bn.CLASS_IDENTIFIER)}toString(t=!1){var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(n+=" "+this.mark.toString()),n}};bn.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException";fu.exports=bn});var mu=A((M0,gu)=>{"use strict";var pu=yn(),fs=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,u;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
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return u=this.buffer.slice(i,s),fu.repeat(" ",t)+r+u+o+`
4
- `+fu.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}};pu.exports=fs});var Fe=A(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.Type=void 0;var mu=In(),tg=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ng=["scalar","sequence","mapping"];function rg(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var ps=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(tg.indexOf(r)===-1)throw new mu('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=rg(n.styleAliases||null),ng.indexOf(this.kind)===-1)throw new mu('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ci.Type=ps});var Fn=A(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.Schema=void 0;var hu=yn(),ui=In(),ig=Fe();function gs(e,t,n){var r=[];return e.include.forEach(function(i){n=gs(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 og(){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 Xt=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 ui("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=gs(this,"implicit",[]),this.compiledExplicit=gs(this,"explicit",[]),this.compiledTypeMap=og(this.compiledImplicit,this.compiledExplicit)}};li.Schema=Xt;Xt.DEFAULT=null;Xt.create=function(...t){var n,r;switch(t.length){case 1:n=Xt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new ui("Wrong number of arguments for Schema.create function")}if(n=hu.toArray(n),r=hu.toArray(r),!n.every(function(i){return i instanceof Xt}))throw new ui("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof ig.Type}))throw new ui("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Xt({include:n,explicit:r})}});var bu=A((j0,yu)=>{"use strict";var sg=Fe();yu.exports=new sg.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Cu=A((L0,vu)=>{"use strict";var ag=Fe();vu.exports=new ag.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var _u=A((I0,Pu)=>{"use strict";var cg=Fe();Pu.exports=new cg.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Du=A((F0,Ru)=>{"use strict";var ug=Fn();Ru.exports=new ug.Schema({explicit:[bu(),Cu(),_u()]})});var xu=A((W0,Tu)=>{"use strict";var lg=Fe(),Su=Wt();function dg(e){let t=Su.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 fg(e){return Su.isYAMLNode(e)?e:null}function pg(e){return e===null}Tu.exports=new lg.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:dg,construct:fg,predicate:pg,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Au=A((H0,ku)=>{"use strict";"use strict";var gg=Fe(),wu=Wt();function mg(e){let t=wu.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 hg(e){return wu.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function yg(e){return Object.prototype.toString.call(e)==="[object Boolean]"}ku.exports=new gg.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mg,construct:hg,predicate:yg,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 Ou=A((U0,Nu)=>{"use strict";var bg=yn(),vg=Fe(),qu=Wt();function Cg(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Pg(e){return 48<=e&&e<=55}function _g(e){return 48<=e&&e<=57}function Rg(e){let t=qu.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(!Cg(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!Pg(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!_g(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function Dg(e){if(qu.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 Sg(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!bg.isNegativeZero(e)}Nu.exports=new vg.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Rg,construct:Dg,predicate:Sg,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 Lu=A((B0,ju)=>{"use strict";var Eu=yn(),Tg=Fe(),Mu=Wt(),xg=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function wg(e){let t=Mu.isYAMLNode(e)?e.value:e;return!(t===null||!xg.test(t))}function kg(e){if(Mu.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 Ag(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(Eu.isNegativeZero(e))return"-0.0";return e.toString(10)}function qg(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Eu.isNegativeZero(e))}ju.exports=new Tg.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:wg,construct:kg,predicate:qg,represent:Ag,defaultStyle:"lowercase"})});var Fu=A((z0,Iu)=>{"use strict";var Ng=Fn();Iu.exports=new Ng.Schema({include:[Du()],implicit:[xu(),Au(),Ou(),Lu()]})});var Hu=A(($0,Wu)=>{"use strict";var Og=Fn();Wu.exports=new Og.Schema({include:[Fu()]})});var zu=A((Y0,Bu)=>{"use strict";var Eg=Fe(),Uu=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 Mg(e){if(e===null)return!1;var t,n,r,i,o,s,u,c=0,p=null,g,b,R;return t=Uu.exec(e),t!==null}function jg(e){var t,n,r,i,o,s,u,c=0,p=null,g,b,R;if(t=Uu.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],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(g=+t[10],b=+(t[11]||0),p=(g*60+b)*6e4,t[9]==="-"&&(p=-p)),R=new Date(Date.UTC(n,r,i,o,s,u,c)),p&&R.setTime(R.getTime()-p),R}function Lg(e){return e.toISOString()}Bu.exports=new Eg.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Mg,construct:jg,instanceOf:Date,represent:Lg})});var Yu=A((V0,$u)=>{"use strict";var Ig=Fe();function Fg(e){return e==="<<"||e===null}$u.exports=new Ig.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Fg})});var Vu={};ou(Vu,{default:()=>Wg});var Wg,Ku=Hp(()=>{Wg={}});var Qu=A((K0,Gu)=>{"use strict";var di=(Ku(),Up(Vu)).Buffer,Hg=Fe(),ms=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
- \r`;function Ug(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=ms;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 Bg(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=ms,u=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)),u=u<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)):r===18?(c.push(u>>10&255),c.push(u>>2&255)):r===12&&c.push(u>>4&255),di?new di(c):c}function zg(e){var t="",n=0,r,i,o=e.length,s=ms;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 $g(e){return di&&di.isBuffer(e)}Gu.exports=new Hg.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ug,construct:Bg,predicate:$g,represent:zg})});var Xu=A((G0,Ju)=>{"use strict";var Yg=Fe(),Vg=Object.prototype.hasOwnProperty,Kg=Object.prototype.toString;function Gg(e){if(e===null)return!0;var t=[],n,r,i,o,s,u=e;for(n=0,r=u.length;n<r;n+=1){if(i=u[n],s=!1,Kg.call(i)!=="[object Object]")return!1;for(o in i)if(Vg.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 Qg(e){return e!==null?e:[]}Ju.exports=new Yg.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Gg,construct:Qg})});var el=A((Q0,Zu)=>{"use strict";var Jg=Fe(),hs=Wt(),Xg=Object.prototype.toString;function Zg(e){if(e===null)return!0;if(e.kind!=hs.Kind.SEQ)return!1;var t,n,r,i,o,s=e.items;for(t=0,n=s.length;t<n;t+=1)if(r=s[t],Xg.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function em(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=hs.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,n=o.length;t<n;t+=1){let u=o[t].mappings[0],c=hs.newItems();c.parent=i,c.startPosition=u.key.startPosition,c.endPosition=u.value.startPosition,u.key.parent=c,u.value.parent=c,c.items=[u.key,u.value],i.items.push(c)}return i}Zu.exports=new Jg.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Zg,construct:em})});var nl=A((J0,tl)=>{"use strict";var tm=Fe(),nm=Wt();function rm(e){return e===null?!0:e.kind==nm.Kind.MAP}function im(e){return e!==null?e:{}}tl.exports=new tm.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:rm,construct:im})});var fi=A((X0,rl)=>{"use strict";var om=Fn(),sm=new om.Schema({include:[Hu()],implicit:[zu(),Yu()],explicit:[Qu(),Xu(),el(),nl()]});rl.exports=sm});var ol=A((Z0,il)=>{"use strict";var am=Fe();function cm(){return!0}function um(){}function lm(){return""}function dm(e){return typeof e>"u"}il.exports=new am.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:cm,construct:um,predicate:dm,represent:lm})});var al=A((eR,sl)=>{"use strict";var fm=Fe();function pm(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 gm(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 mm(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function hm(e){return Object.prototype.toString.call(e)==="[object RegExp]"}sl.exports=new fm.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:pm,construct:gm,predicate:hm,represent:mm})});var ys=A((tR,ll)=>{"use strict";var cl=Fn(),ul=new cl.Schema({include:[fi()],explicit:[ol(),al()]});cl.Schema.DEFAULT=ul;ll.exports=ul});var Rl=A((kt,Cr)=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.safeLoad=kt.safeLoadAll=kt.load=kt.loadAll=void 0;var tt=Wt(),Zt=yn(),Ss=In(),Ts=gu(),gl=fi(),ym=ys(),mi=Object.prototype.hasOwnProperty,pi=1,ml=2,hl=3,gi=4,bs=1,bm=2,dl=3,vm=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cm=/[\x85\u2028\u2029]/,Pm=/[,\[\]\{\}]/,yl=/^(?:!|!!|![a-z\-]+!)$/i,bl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ht(e){return e===10||e===13}function Cn(e){return e===9||e===32}function et(e){return e===9||e===32||e===10||e===13}function Wn(e){return e===44||e===91||e===93||e===123||e===125}function _m(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Rm(e){return e===120?2:e===117?4:e===85?8:0}function Dm(e){return 48<=e&&e<=57?e-48:-1}function Sm(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
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 Tm(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var vs=new Array(256),Cs=new Array(256),vl=new Array(256),Ps=new Array(256);for(st=0;st<256;st++)Ps[st]=Cs[st]=Sm(st),vs[st]=Cs[st]?1:0,vl[st]=1,vs[st]||(Ps[st]="\\"+String.fromCharCode(st));var st,_s=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||ym,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 xs(e,t,n=!1){return new Ss(t,new Ts(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Rs(e,t,n,r=!1,i=!1){var o=xm(e,t);if(!!o){var s=n+t;if(!e.errorMap[s]){var u=new Ts(e.filename,e.input,t,o.line,t-o.start);i&&(u.toLineEnd=!0);var c=new Ss(n,u,r);e.errors.push(c)}}}function Y(e,t){var n=xs(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
- `){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function Ds(e,t){var n=xs(e,t);e.onWarning&&e.onWarning.call(null,n)}var fl={YAML:function(t,n,r){var i,o,s;t.version!==null&&Y(t,"duplication of %YAML directive"),r.length!==1&&Y(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Y(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Y(t,"found incompatible YAML document (version 1.2 is required)"),t.version=r[0],t.checkLineBreaks=s<2,s!==2&&Y(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,n,r){var i,o;r.length!==2&&Y(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],yl.test(i)||Y(t,"ill-formed tag handle (first argument) of the TAG directive"),mi.call(t.tagMap,i)&&Y(t,'there is a previously declared suffix for "'+i+'" tag handle'),bl.test(o)||Y(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function en(e,t,n,r){var i,o,s,u,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=n){if(u=e.input.slice(t,n),r)for(i=0,o=u.length;i<o;i+=1)s=u.charCodeAt(i),s===9||32<=s&&s<=1114111||Y(e,"expected valid JSON character");else vm.test(u)&&Y(e,"the stream contains non-printable characters");c.value+=u,c.endPosition=n}}function vn(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:tt.Kind.MAP,nodeIndent:o});var u=tt.newMapping(r,i,o);return u.parent=t,r.parent=u,i==null?u.endPosition=r.endPosition:i.parent=u,!e.ignoreDuplicateKeys&&t.mappings.forEach(c=>{tt.isNodesEqual(c,u)&&(Rs(e,u.key.startPosition,"duplicate key"),Rs(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(u),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++):Y(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function xm(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 be(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Cn(o);)o===9&&e.errors.push(xs(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(ht(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&&Ds(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||et(n)))}function ks(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Zt.repeat(`
9
- `,n-1))}function wm(e,t,n){var r,i,o,s,u,c,p,g,b=e.kind,R=e.result,D,T=tt.newScalar("",t);if(T.plainScalar=!0,e.result=T,D=e.input.charCodeAt(e.position),et(D)||Wn(D)||D===35||D===38||D===42||D===33||D===124||D===62||D===39||D===34||D===37||D===64||D===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((D===63||D===45)&&(i=e.input.charCodeAt(e.position+1),et(i)||n&&Wn(i)))return!1;for(e.kind="scalar",o=s=e.position,u=!1;D!==0;){if(D===58){if(i=e.input.charCodeAt(e.position+1),et(i)||n&&Wn(i))break}else if(D===35){if(r=e.input.charCodeAt(e.position-1),et(r))break}else{if(e.position===e.lineStart&&vr(e)||n&&Wn(D))break;if(ht(D))if(c=e.line,p=e.lineStart,g=e.lineIndent,be(e,!1,-1),e.lineIndent>=t){u=!0,D=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=p,e.lineIndent=g;break}}if(u&&(en(e,o,s,!1),ks(e,T,e.line-c),o=s=e.position,u=!1),Cn(D)||(s=e.position+1),D=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return en(e,o,s,!1),e.result.startPosition!=-1?(T.rawValue=e.input.substring(T.startPosition,T.endPosition),e.result.endPosition=be(e,!1,-1)?e.position-1:e.position,!0):(e.kind=b,e.result=R,!1)}function km(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=tt.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(en(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 ht(n)?(en(e,r,i,!0),ks(e,o,be(e,!1,t)),r=i=e.position):e.position===e.lineStart&&vr(e)?Y(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);Y(e,"unexpected end of the stream within a single quoted scalar")}function Am(e,t){var n,r,i,o,s,u,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var p=tt.newScalar("",t);for(p.doubleQuoted=!0,e.result=p,p.startPosition=e.position,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return en(e,n,e.position,!0),e.position++,p.endPosition=e.position,p.rawValue=e.input.substring(p.startPosition,p.endPosition),!0;if(c===92){if(en(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),ht(c))be(e,!1,t);else if(c<256&&(e.allowAnyEscape?vl[c]:vs[c]))p.value+=e.allowAnyEscape?Ps[c]:Cs[c],e.position++;else if((s=Rm(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=_m(c))>=0?o=(o<<4)+s:Y(e,"expected hexadecimal character");p.value+=Tm(o),e.position++}else Y(e,"unknown escape sequence");n=r=e.position}else ht(c)?(en(e,n,r,!0),ks(e,p,be(e,!1,t)),n=r=e.position):e.position===e.lineStart&&vr(e)?Y(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Y(e,"unexpected end of the stream within a double quoted scalar")}function qm(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,u,c,p,g,b,R,D,T,q;if(q=e.input.charCodeAt(e.position),q===91)c=93,b=!1,o=tt.newItems(),o.startPosition=e.position;else if(q===123)c=125,b=!0,o=tt.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),q=e.input.charCodeAt(++e.position);q!==0;){if(be(e,!0,t),q=e.input.charCodeAt(e.position),q===c)return e.position++,e.tag=i,e.anchor=s,e.kind=b?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var B=e.position;Y(e,"missed comma between flow collection entries"),e.position=B+1}if(D=R=T=null,p=g=!1,q===63&&(u=e.input.charCodeAt(e.position+1),et(u)&&(p=g=!0,e.position++,be(e,!0,t))),r=e.line,Hn(e,t,pi,!1,!0),D=e.tag,R=e.result,be(e,!0,t),q=e.input.charCodeAt(e.position),(g||e.line===r)&&q===58&&(p=!0,q=e.input.charCodeAt(++e.position),be(e,!0,t),Hn(e,t,pi,!1,!0),T=e.result),b)vn(e,o,D,R,T,t);else if(p){var j=vn(e,null,D,R,T,t);j.parent=o,o.items.push(j)}else R&&(R.parent=o),o.items.push(R);o.endPosition=e.position+1,be(e,!0,t),q=e.input.charCodeAt(e.position),q===44?(n=!0,q=e.input.charCodeAt(++e.position)):n=!1}Y(e,"unexpected end of the stream within a flow collection")}function Nm(e,t){var n,r,i=bs,o=!1,s=t,u=0,c=!1,p,g;if(g=e.input.charCodeAt(e.position),g===124)r=!1;else if(g===62)r=!0;else return!1;var b=tt.newScalar("",t);for(e.kind="scalar",e.result=b,b.startPosition=e.position;g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)bs===i?i=g===43?dl:bm:Y(e,"repeat of a chomping mode identifier");else if((p=Dm(g))>=0)p===0?Y(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Y(e,"repeat of an indentation width identifier"):(s=t+p-1,o=!0);else break;if(Cn(g)){do g=e.input.charCodeAt(++e.position);while(Cn(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!ht(g)&&g!==0)}for(;g!==0;){for(ws(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),ht(g)){u++;continue}if(e.lineIndent<s){i===dl?b.value+=Zt.repeat(`
3
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return u=this.buffer.slice(i,s),pu.repeat(" ",t)+r+u+o+`
4
+ `+pu.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}};gu.exports=fs});var Fe=A(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.Type=void 0;var hu=In(),tg=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ng=["scalar","sequence","mapping"];function rg(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}var ps=class{constructor(t,n){if(n=n||{},Object.keys(n).forEach(function(r){if(tg.indexOf(r)===-1)throw new hu('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=rg(n.styleAliases||null),ng.indexOf(this.kind)===-1)throw new hu('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}};ci.Type=ps});var Fn=A(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.Schema=void 0;var yu=yn(),ui=In(),ig=Fe();function gs(e,t,n){var r=[];return e.include.forEach(function(i){n=gs(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 og(){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 Xt=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 ui("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=gs(this,"implicit",[]),this.compiledExplicit=gs(this,"explicit",[]),this.compiledTypeMap=og(this.compiledImplicit,this.compiledExplicit)}};li.Schema=Xt;Xt.DEFAULT=null;Xt.create=function(...t){var n,r;switch(t.length){case 1:n=Xt.DEFAULT,r=t[0];break;case 2:n=t[0],r=t[1];break;default:throw new ui("Wrong number of arguments for Schema.create function")}if(n=yu.toArray(n),r=yu.toArray(r),!n.every(function(i){return i instanceof Xt}))throw new ui("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(i){return i instanceof ig.Type}))throw new ui("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Xt({include:n,explicit:r})}});var vu=A((I0,bu)=>{"use strict";var sg=Fe();bu.exports=new sg.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Pu=A((F0,Cu)=>{"use strict";var ag=Fe();Cu.exports=new ag.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Du=A((W0,_u)=>{"use strict";var cg=Fe();_u.exports=new cg.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Su=A((H0,Ru)=>{"use strict";var ug=Fn();Ru.exports=new ug.Schema({explicit:[vu(),Pu(),Du()]})});var wu=A((U0,xu)=>{"use strict";var lg=Fe(),Tu=Ht();function dg(e){let t=Tu.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 fg(e){return Tu.isYAMLNode(e)?e:null}function pg(e){return e===null}xu.exports=new lg.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:dg,construct:fg,predicate:pg,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var qu=A((B0,Au)=>{"use strict";"use strict";var gg=Fe(),ku=Ht();function mg(e){let t=ku.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 hg(e){return ku.isYAMLNode(e)?e:e==="true"||e==="True"||e==="TRUE"}function yg(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Au.exports=new gg.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mg,construct:hg,predicate:yg,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 Eu=A((z0,Ou)=>{"use strict";var bg=yn(),vg=Fe(),Nu=Ht();function Cg(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Pg(e){return 48<=e&&e<=55}function _g(e){return 48<=e&&e<=57}function Dg(e){let t=Nu.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(!Cg(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(!Pg(t.charCodeAt(r)))return!1;i=!0}return i}for(;r<n;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!_g(t.charCodeAt(r)))return!1;i=!0}return i?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r)):!1}function Rg(e){if(Nu.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 Sg(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!bg.isNegativeZero(e)}Ou.exports=new vg.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Dg,construct:Rg,predicate:Sg,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 Iu=A(($0,Lu)=>{"use strict";var Mu=yn(),Tg=Fe(),ju=Ht(),xg=new RegExp("-?(0|[1-9][0-9]*)(.[0-9]*)?([eE][-+]?[0-9]+)?|^0$|^[-+]?.(inf|Inf|INF)$|^.(nan|NaN|NAN)$");function wg(e){let t=ju.isYAMLNode(e)?e.value:e;return!(t===null||!xg.test(t))}function kg(e){if(ju.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 Ag(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(Mu.isNegativeZero(e))return"-0.0";return e.toString(10)}function qg(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Mu.isNegativeZero(e))}Lu.exports=new Tg.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:wg,construct:kg,predicate:qg,represent:Ag,defaultStyle:"lowercase"})});var Wu=A((Y0,Fu)=>{"use strict";var Ng=Fn();Fu.exports=new Ng.Schema({include:[Su()],implicit:[wu(),qu(),Eu(),Iu()]})});var Uu=A((V0,Hu)=>{"use strict";var Og=Fn();Hu.exports=new Og.Schema({include:[Wu()]})});var $u=A((K0,zu)=>{"use strict";var Eg=Fe(),Bu=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 Mg(e){if(e===null)return!1;var t,n,r,i,o,s,u,c=0,p=null,g,b,D;return t=Bu.exec(e),t!==null}function jg(e){var t,n,r,i,o,s,u,c=0,p=null,g,b,D;if(t=Bu.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],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(g=+t[10],b=+(t[11]||0),p=(g*60+b)*6e4,t[9]==="-"&&(p=-p)),D=new Date(Date.UTC(n,r,i,o,s,u,c)),p&&D.setTime(D.getTime()-p),D}function Lg(e){return e.toISOString()}zu.exports=new Eg.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Mg,construct:jg,instanceOf:Date,represent:Lg})});var Vu=A((G0,Yu)=>{"use strict";var Ig=Fe();function Fg(e){return e==="<<"||e===null}Yu.exports=new Ig.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Fg})});var Ku={};su(Ku,{default:()=>Wg});var Wg,Gu=Hp(()=>{Wg={}});var Ju=A((Q0,Qu)=>{"use strict";var di=(Gu(),Up(Ku)).Buffer,Hg=Fe(),ms=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function Ug(e){if(e===null)return!1;var t,n,r=0,i=0,o=e.length,s=ms;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 Bg(e){var t,n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=ms,u=0,c=[];for(n=0;n<o;n++)n%4===0&&n&&(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)),u=u<<6|s.indexOf(i.charAt(n));return r=o%4*6,r===0?(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)):r===18?(c.push(u>>10&255),c.push(u>>2&255)):r===12&&c.push(u>>4&255),di?new di(c):c}function zg(e){var t="",n=0,r,i,o=e.length,s=ms;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 $g(e){return di&&di.isBuffer(e)}Qu.exports=new Hg.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ug,construct:Bg,predicate:$g,represent:zg})});var Zu=A((J0,Xu)=>{"use strict";var Yg=Fe(),Vg=Object.prototype.hasOwnProperty,Kg=Object.prototype.toString;function Gg(e){if(e===null)return!0;var t=[],n,r,i,o,s,u=e;for(n=0,r=u.length;n<r;n+=1){if(i=u[n],s=!1,Kg.call(i)!=="[object Object]")return!1;for(o in i)if(Vg.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 Qg(e){return e!==null?e:[]}Xu.exports=new Yg.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Gg,construct:Qg})});var tl=A((X0,el)=>{"use strict";var Jg=Fe(),hs=Ht(),Xg=Object.prototype.toString;function Zg(e){if(e===null)return!0;if(e.kind!=hs.Kind.SEQ)return!1;var t,n,r,i,o,s=e.items;for(t=0,n=s.length;t<n;t+=1)if(r=s[t],Xg.call(r)!=="[object Object]"||!Array.isArray(r.mappings)||r.mappings.length!==1)return!1;return!0}function em(e){if(e===null||!Array.isArray(e.items))return[];let t,n,r,i,o=e.items;for(i=hs.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,n=o.length;t<n;t+=1){let u=o[t].mappings[0],c=hs.newItems();c.parent=i,c.startPosition=u.key.startPosition,c.endPosition=u.value.startPosition,u.key.parent=c,u.value.parent=c,c.items=[u.key,u.value],i.items.push(c)}return i}el.exports=new Jg.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Zg,construct:em})});var rl=A((Z0,nl)=>{"use strict";var tm=Fe(),nm=Ht();function rm(e){return e===null?!0:e.kind==nm.Kind.MAP}function im(e){return e!==null?e:{}}nl.exports=new tm.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:rm,construct:im})});var fi=A((eD,il)=>{"use strict";var om=Fn(),sm=new om.Schema({include:[Uu()],implicit:[$u(),Vu()],explicit:[Ju(),Zu(),tl(),rl()]});il.exports=sm});var sl=A((tD,ol)=>{"use strict";var am=Fe();function cm(){return!0}function um(){}function lm(){return""}function dm(e){return typeof e>"u"}ol.exports=new am.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:cm,construct:um,predicate:dm,represent:lm})});var cl=A((nD,al)=>{"use strict";var fm=Fe();function pm(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 gm(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 mm(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function hm(e){return Object.prototype.toString.call(e)==="[object RegExp]"}al.exports=new fm.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:pm,construct:gm,predicate:hm,represent:mm})});var ys=A((rD,dl)=>{"use strict";var ul=Fn(),ll=new ul.Schema({include:[fi()],explicit:[sl(),cl()]});ul.Schema.DEFAULT=ll;dl.exports=ll});var Rl=A((At,Cr)=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.safeLoad=At.safeLoadAll=At.load=At.loadAll=void 0;var tt=Ht(),Zt=yn(),Ss=In(),Ts=mu(),ml=fi(),ym=ys(),mi=Object.prototype.hasOwnProperty,pi=1,hl=2,yl=3,gi=4,bs=1,bm=2,fl=3,vm=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cm=/[\x85\u2028\u2029]/,Pm=/[,\[\]\{\}]/,bl=/^(?:!|!!|![a-z\-]+!)$/i,vl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function yt(e){return e===10||e===13}function Cn(e){return e===9||e===32}function et(e){return e===9||e===32||e===10||e===13}function Wn(e){return e===44||e===91||e===93||e===123||e===125}function _m(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Dm(e){return e===120?2:e===117?4:e===85?8:0}function Rm(e){return 48<=e&&e<=57?e-48:-1}function Sm(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
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 Tm(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var vs=new Array(256),Cs=new Array(256),Cl=new Array(256),Ps=new Array(256);for(at=0;at<256;at++)Ps[at]=Cs[at]=Sm(at),vs[at]=Cs[at]?1:0,Cl[at]=1,vs[at]||(Ps[at]="\\"+String.fromCharCode(at));var at,_s=class{constructor(t,n){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=n.filename||null,this.schema=n.schema||ym,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 xs(e,t,n=!1){return new Ss(t,new Ts(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function Ds(e,t,n,r=!1,i=!1){var o=xm(e,t);if(!!o){var s=n+t;if(!e.errorMap[s]){var u=new Ts(e.filename,e.input,t,o.line,t-o.start);i&&(u.toLineEnd=!0);var c=new Ss(n,u,r);e.errors.push(c)}}}function Y(e,t){var n=xs(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
+ `){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function Rs(e,t){var n=xs(e,t);e.onWarning&&e.onWarning.call(null,n)}var pl={YAML:function(t,n,r){var i,o,s;t.version!==null&&Y(t,"duplication of %YAML directive"),r.length!==1&&Y(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Y(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Y(t,"found incompatible YAML document (version 1.2 is required)"),t.version=r[0],t.checkLineBreaks=s<2,s!==2&&Y(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,n,r){var i,o;r.length!==2&&Y(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],bl.test(i)||Y(t,"ill-formed tag handle (first argument) of the TAG directive"),mi.call(t.tagMap,i)&&Y(t,'there is a previously declared suffix for "'+i+'" tag handle'),vl.test(o)||Y(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function en(e,t,n,r){var i,o,s,u,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=n){if(u=e.input.slice(t,n),r)for(i=0,o=u.length;i<o;i+=1)s=u.charCodeAt(i),s===9||32<=s&&s<=1114111||Y(e,"expected valid JSON character");else vm.test(u)&&Y(e,"the stream contains non-printable characters");c.value+=u,c.endPosition=n}}function vn(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:tt.Kind.MAP,nodeIndent:o});var u=tt.newMapping(r,i,o);return u.parent=t,r.parent=u,i==null?u.endPosition=r.endPosition:i.parent=u,!e.ignoreDuplicateKeys&&t.mappings.forEach(c=>{tt.isNodesEqual(c,u)&&(Ds(e,u.key.startPosition,"duplicate key"),Ds(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(u),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++):Y(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function xm(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 be(e,t,n,r=!1){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Cn(o);)o===9&&e.errors.push(xs(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(yt(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&&Rs(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||et(n)))}function ks(e,t,n){n===1?t.value+=" ":n>1&&(t.value+=Zt.repeat(`
9
+ `,n-1))}function wm(e,t,n){var r,i,o,s,u,c,p,g,b=e.kind,D=e.result,R,T=tt.newScalar("",t);if(T.plainScalar=!0,e.result=T,R=e.input.charCodeAt(e.position),et(R)||Wn(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96)return e.result.startPosition=e.position-1,e.result.endPosition=e.position-1,!1;if((R===63||R===45)&&(i=e.input.charCodeAt(e.position+1),et(i)||n&&Wn(i)))return!1;for(e.kind="scalar",o=s=e.position,u=!1;R!==0;){if(R===58){if(i=e.input.charCodeAt(e.position+1),et(i)||n&&Wn(i))break}else if(R===35){if(r=e.input.charCodeAt(e.position-1),et(r))break}else{if(e.position===e.lineStart&&vr(e)||n&&Wn(R))break;if(yt(R))if(c=e.line,p=e.lineStart,g=e.lineIndent,be(e,!1,-1),e.lineIndent>=t){u=!0,R=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=p,e.lineIndent=g;break}}if(u&&(en(e,o,s,!1),ks(e,T,e.line-c),o=s=e.position,u=!1),Cn(R)||(s=e.position+1),R=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return en(e,o,s,!1),e.result.startPosition!=-1?(T.rawValue=e.input.substring(T.startPosition,T.endPosition),e.result.endPosition=be(e,!1,-1)?e.position-1:e.position,!0):(e.kind=b,e.result=D,!1)}function km(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;var o=tt.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(en(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 yt(n)?(en(e,r,i,!0),ks(e,o,be(e,!1,t)),r=i=e.position):e.position===e.lineStart&&vr(e)?Y(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);Y(e,"unexpected end of the stream within a single quoted scalar")}function Am(e,t){var n,r,i,o,s,u,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var p=tt.newScalar("",t);for(p.doubleQuoted=!0,e.result=p,p.startPosition=e.position,e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return en(e,n,e.position,!0),e.position++,p.endPosition=e.position,p.rawValue=e.input.substring(p.startPosition,p.endPosition),!0;if(c===92){if(en(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),yt(c))be(e,!1,t);else if(c<256&&(e.allowAnyEscape?Cl[c]:vs[c]))p.value+=e.allowAnyEscape?Ps[c]:Cs[c],e.position++;else if((s=Dm(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=_m(c))>=0?o=(o<<4)+s:Y(e,"expected hexadecimal character");p.value+=Tm(o),e.position++}else Y(e,"unknown escape sequence");n=r=e.position}else yt(c)?(en(e,n,r,!0),ks(e,p,be(e,!1,t)),n=r=e.position):e.position===e.lineStart&&vr(e)?Y(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Y(e,"unexpected end of the stream within a double quoted scalar")}function qm(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,u,c,p,g,b,D,R,T,q;if(q=e.input.charCodeAt(e.position),q===91)c=93,b=!1,o=tt.newItems(),o.startPosition=e.position;else if(q===123)c=125,b=!0,o=tt.newMap(null,t),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),q=e.input.charCodeAt(++e.position);q!==0;){if(be(e,!0,t),q=e.input.charCodeAt(e.position),q===c)return e.position++,e.tag=i,e.anchor=s,e.kind=b?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!n){var B=e.position;Y(e,"missed comma between flow collection entries"),e.position=B+1}if(R=D=T=null,p=g=!1,q===63&&(u=e.input.charCodeAt(e.position+1),et(u)&&(p=g=!0,e.position++,be(e,!0,t))),r=e.line,Hn(e,t,pi,!1,!0),R=e.tag,D=e.result,be(e,!0,t),q=e.input.charCodeAt(e.position),(g||e.line===r)&&q===58&&(p=!0,q=e.input.charCodeAt(++e.position),be(e,!0,t),Hn(e,t,pi,!1,!0),T=e.result),b)vn(e,o,R,D,T,t);else if(p){var j=vn(e,null,R,D,T,t);j.parent=o,o.items.push(j)}else D&&(D.parent=o),o.items.push(D);o.endPosition=e.position+1,be(e,!0,t),q=e.input.charCodeAt(e.position),q===44?(n=!0,q=e.input.charCodeAt(++e.position)):n=!1}Y(e,"unexpected end of the stream within a flow collection")}function Nm(e,t){var n,r,i=bs,o=!1,s=t,u=0,c=!1,p,g;if(g=e.input.charCodeAt(e.position),g===124)r=!1;else if(g===62)r=!0;else return!1;var b=tt.newScalar("",t);for(e.kind="scalar",e.result=b,b.startPosition=e.position;g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)bs===i?i=g===43?fl:bm:Y(e,"repeat of a chomping mode identifier");else if((p=Rm(g))>=0)p===0?Y(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Y(e,"repeat of an indentation width identifier"):(s=t+p-1,o=!0);else break;if(Cn(g)){do g=e.input.charCodeAt(++e.position);while(Cn(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!yt(g)&&g!==0)}for(;g!==0;){for(ws(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),yt(g)){u++;continue}if(e.lineIndent<s){i===fl?b.value+=Zt.repeat(`
10
10
  `,u):i===bs&&o&&(b.value+=`
11
11
  `);break}for(r?Cn(g)?(c=!0,b.value+=Zt.repeat(`
12
12
  `,u+1)):c?(c=!1,b.value+=Zt.repeat(`
13
13
  `,u+1)):u===0?o&&(b.value+=" "):b.value+=Zt.repeat(`
14
14
  `,u):o&&(b.value+=Zt.repeat(`
15
- `,u+1)),o=!0,u=0,n=e.position;!ht(g)&&g!==0;)g=e.input.charCodeAt(++e.position);en(e,n,e.position,!1)}b.endPosition=e.position;for(var R=e.position-1,D=!1;;){var T=e.input[R];if(T=="\r"||T==`
16
- `){D&&R--;break}if(T!=" "&&T!=" ")break;R--}return b.endPosition=R,b.rawValue=e.input.substring(b.startPosition,b.endPosition),!0}function pl(e,t){var n,r=e.tag,i=e.anchor,o=tt.newItems(),s,u=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!et(s)));){if(u=!0,e.position++,be(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,Hn(e,t,hl,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=be(e,!0,t,!0)?e.position-1:e.position,c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)Y(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Om(e,t,n){var r,i,o,s=e.tag,u=e.anchor,c=tt.newMap(null,t),p=null,g=null,b=null,R=!1,D=!1,T;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),T=e.input.charCodeAt(e.position);T!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(T===63||T===58)&&et(r))T===63?(R&&(vn(e,c,p,g,null,t),p=g=b=null),D=!0,R=!0,i=!0):R?(R=!1,i=!0):Y(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,T=r;else if(Hn(e,n,ml,!1,!0))if(e.line===o){for(T=e.input.charCodeAt(e.position);Cn(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),et(T)||Y(e,"a whitespace character is expected after the key-value separator within a block mapping"),R&&(vn(e,c,p,g,null,t),p=g=b=null),D=!0,R=!1,i=!1,p=e.tag,g=e.result;else{if(e.position==e.lineStart&&vr(e))break;if(D)Y(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=u,!0}}else if(D){for(Y(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(T=e.input.charCodeAt(--e.position),ht(T)){e.position++;break}g=e.result,g.value=e.input.substring(e.result.startPosition,e.position-1),g.rawValue=g.value,g.endPosition=e.position-1,vn(e,c,p,g,null,t)}else return e.tag=s,e.anchor=u,!0;else break;if(e.line===o||e.lineIndent>t){let q=e.line;Hn(e,t,gi,!0,i)?(be(e,!0,t),R?g=e.result:(b=e.result,b.endPosition=e.line===q?e.position:e.position-1)):g&&(g.endPosition=e.line===q?e.position:e.position-1),R||(vn(e,c,p,g,b,t),p=g=b=null),be(e,!0,-1),T=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&T!==0)Y(e,"bad indentation of a mapping entry"+e.position),T=e.input.charCodeAt(++e.position),be(e,!0,-1);else if(e.lineIndent<t)break}return R&&vn(e,c,p,g,null,t),D&&(e.tag=s,e.anchor=u,e.kind="mapping",e.result=c),D}function Em(e){var t,n=!1,r=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Y(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Y(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!et(s);)s===33&&(r?Y(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),yl.test(i)||Y(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),Pm.test(o)&&Y(e,"tag suffix cannot contain flow indicator characters")}return o&&!bl.test(o)&&Y(e,"tag name cannot contain such characters: "+o),n?e.tag=o:mi.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Y(e,'undeclared tag handle "'+i+'"'),!0}function Mm(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Y(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!et(n)&&!Wn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Y(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function jm(e){var t,n,r=e.length,i=e.input,o;if(o=e.input.charCodeAt(e.position),o!==42)return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!et(o)&&!Wn(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(Y(e,"name of an alias node must contain at least one character"),e.position=t+1),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||(Y(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=tt.newAnchorRef(n,t,e.position,e.anchorMap[n],0),be(e,!0,-1),!0}function Hn(e,t,n,r,i){var o,s,u,c=1,p=!1,g=!1,b,R,D,T,q,B;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=u=gi===n||hl===n,r&&be(e,!0,-1)&&(p=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let j=e.position;if(c===1)for(;Em(e)||Mm(e);)be(e,!0,-1)?(p=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=p||i),(c===1||gi===n)&&(pi===n||ml===n?T=t:T=t+1,q=e.position-e.lineStart,c===1?u&&(pl(e,q)||Om(e,q,T))||qm(e,T)?g=!0:(s&&Nm(e,T)||km(e,T)||Am(e,T)?g=!0:jm(e)?(g=!0,(e.tag!==null||e.anchor!==null)&&Y(e,"alias node should not have any properties")):wm(e,T,pi===n)&&(g=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(g=u&&pl(e,q))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=tt.newScalar("",q),e.result.startPosition=e.position,e.result.endPosition=e.position,Y(e,"!include without value")),e.result.kind=tt.Kind.INCLUDE_REF;else if(e.tag==="?")for(b=0,R=e.implicitTypes.length;b<R;b+=1){D=e.implicitTypes[b];var _=e.result.value;if(D.resolve(_)){e.result.valueObject=D.construct(e.result.value),e.tag=D.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else mi.call(e.typeMap,e.tag)?(D=e.typeMap[e.tag],e.result!==null&&D.kind!==e.kind&&(!D.additionalKinds||D.additionalKinds&&D.additionalKinds.indexOf(e.kind)===-1)&&Y(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+D.kind+'", not "'+e.kind+'"'),D.resolve(e.result)?(e.result=D.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):Y(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Rs(e,j,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||g}function Lm(e){var t=e.position,n,r,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(be(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!et(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&Y(e,"directive name must not be less than one character in length");s!==0;){for(;Cn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ht(s));break}if(ht(s))break;for(n=e.position;s!==0&&!et(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&ws(e),mi.call(fl,r)?fl[r](e,r,i):(Ds(e,'unknown document directive "'+r+'"'),e.position++)}if(be(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,be(e,!0,-1)):o&&Y(e,"directives end mark is expected"),Hn(e,e.lineIndent-1,gi,!1,!0),be(e,!0,-1),e.checkLineBreaks&&Cm.test(e.input.slice(t,e.position))&&Ds(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,be(e,!0,-1));return}if(e.position<e.length-1)Y(e,"end of the stream or a document separator is expected");else return}function Cl(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
15
+ `,u+1)),o=!0,u=0,n=e.position;!yt(g)&&g!==0;)g=e.input.charCodeAt(++e.position);en(e,n,e.position,!1)}b.endPosition=e.position;for(var D=e.position-1,R=!1;;){var T=e.input[D];if(T=="\r"||T==`
16
+ `){R&&D--;break}if(T!=" "&&T!=" ")break;D--}return b.endPosition=D,b.rawValue=e.input.substring(b.startPosition,b.endPosition),!0}function gl(e,t){var n,r=e.tag,i=e.anchor,o=tt.newItems(),s,u=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!et(s)));){if(u=!0,e.position++,be(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,Hn(e,t,yl,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),o.endPosition=be(e,!0,t,!0)?e.position-1:e.position,c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)Y(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Om(e,t,n){var r,i,o,s=e.tag,u=e.anchor,c=tt.newMap(null,t),p=null,g=null,b=null,D=!1,R=!1,T;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),T=e.input.charCodeAt(e.position);T!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,(T===63||T===58)&&et(r))T===63?(D&&(vn(e,c,p,g,null,t),p=g=b=null),R=!0,D=!0,i=!0):D?(D=!1,i=!0):Y(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,T=r;else if(Hn(e,n,hl,!1,!0))if(e.line===o){for(T=e.input.charCodeAt(e.position);Cn(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),et(T)||Y(e,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(vn(e,c,p,g,null,t),p=g=b=null),R=!0,D=!1,i=!1,p=e.tag,g=e.result;else{if(e.position==e.lineStart&&vr(e))break;if(R)Y(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=u,!0}}else if(R){for(Y(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(T=e.input.charCodeAt(--e.position),yt(T)){e.position++;break}g=e.result,g.value=e.input.substring(e.result.startPosition,e.position-1),g.rawValue=g.value,g.endPosition=e.position-1,vn(e,c,p,g,null,t)}else return e.tag=s,e.anchor=u,!0;else break;if(e.line===o||e.lineIndent>t){let q=e.line;Hn(e,t,gi,!0,i)?(be(e,!0,t),D?g=e.result:(b=e.result,b.endPosition=e.line===q?e.position:e.position-1)):g&&(g.endPosition=e.line===q?e.position:e.position-1),D||(vn(e,c,p,g,b,t),p=g=b=null),be(e,!0,-1),T=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&T!==0)Y(e,"bad indentation of a mapping entry"+e.position),T=e.input.charCodeAt(++e.position),be(e,!0,-1);else if(e.lineIndent<t)break}return D&&vn(e,c,p,g,null,t),R&&(e.tag=s,e.anchor=u,e.kind="mapping",e.result=c),R}function Em(e){var t,n=!1,r=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Y(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Y(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!et(s);)s===33&&(r?Y(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),bl.test(i)||Y(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),Pm.test(o)&&Y(e,"tag suffix cannot contain flow indicator characters")}return o&&!vl.test(o)&&Y(e,"tag name cannot contain such characters: "+o),n?e.tag=o:mi.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Y(e,'undeclared tag handle "'+i+'"'),!0}function Mm(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Y(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!et(n)&&!Wn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Y(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function jm(e){var t,n,r=e.length,i=e.input,o;if(o=e.input.charCodeAt(e.position),o!==42)return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!et(o)&&!Wn(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(Y(e,"name of an alias node must contain at least one character"),e.position=t+1),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||(Y(e,'unidentified alias "'+n+'"'),e.position<=t&&(e.position=t+1)),e.result=tt.newAnchorRef(n,t,e.position,e.anchorMap[n],0),be(e,!0,-1),!0}function Hn(e,t,n,r,i){var o,s,u,c=1,p=!1,g=!1,b,D,R,T,q,B;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=u=gi===n||yl===n,r&&be(e,!0,-1)&&(p=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));let j=e.position;if(c===1)for(;Em(e)||Mm(e);)be(e,!0,-1)?(p=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=p||i),(c===1||gi===n)&&(pi===n||hl===n?T=t:T=t+1,q=e.position-e.lineStart,c===1?u&&(gl(e,q)||Om(e,q,T))||qm(e,T)?g=!0:(s&&Nm(e,T)||km(e,T)||Am(e,T)?g=!0:jm(e)?(g=!0,(e.tag!==null||e.anchor!==null)&&Y(e,"alias node should not have any properties")):wm(e,T,pi===n)&&(g=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(g=u&&gl(e,q))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=tt.newScalar("",q),e.result.startPosition=e.position,e.result.endPosition=e.position,Y(e,"!include without value")),e.result.kind=tt.Kind.INCLUDE_REF;else if(e.tag==="?")for(b=0,D=e.implicitTypes.length;b<D;b+=1){R=e.implicitTypes[b];var _=e.result.value;if(R.resolve(_)){e.result.valueObject=R.construct(e.result.value),e.tag=R.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else mi.call(e.typeMap,e.tag)?(R=e.typeMap[e.tag],e.result!==null&&R.kind!==e.kind&&(!R.additionalKinds||R.additionalKinds&&R.additionalKinds.indexOf(e.kind)===-1)&&Y(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+R.kind+'", not "'+e.kind+'"'),R.resolve(e.result)?(e.result=R.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):Y(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Ds(e,j,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||g}function Lm(e){var t=e.position,n,r,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(be(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!et(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&Y(e,"directive name must not be less than one character in length");s!==0;){for(;Cn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!yt(s));break}if(yt(s))break;for(n=e.position;s!==0&&!et(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&ws(e),mi.call(pl,r)?pl[r](e,r,i):(Rs(e,'unknown document directive "'+r+'"'),e.position++)}if(be(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,be(e,!0,-1)):o&&Y(e,"directives end mark is expected"),Hn(e,e.lineIndent-1,gi,!1,!0),be(e,!0,-1),e.checkLineBreaks&&Cm.test(e.input.slice(t,e.position))&&Rs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,be(e,!0,-1));return}if(e.position<e.length-1)Y(e,"end of the stream or a document separator is expected");else return}function Pl(e,t){e=String(e),t=t||{};let n=e.length;n!==0&&(e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13&&(e+=`
17
17
  `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new _s(e,t);for(r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;){var i=r.position;if(Lm(r),r.position<=i)for(;r.position<r.length-1;r.position++){var o=r.input.charAt(r.position);if(o==`
18
- `)break}}let s=r.documents,u=s.length;u>0&&(s[u-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function As(e,t,n={}){var r=Cl(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}kt.loadAll=As;function qs(e,t={}){var n=Cl(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new Ss("expected a single document in the stream, but found more");return o.mark=new Ts("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}kt.load=qs;function Pl(e,t,n={}){As(e,t,Zt.extend({schema:gl},n))}kt.safeLoadAll=Pl;function _l(e,t={}){return qs(e,Zt.extend({schema:gl},t))}kt.safeLoad=_l;Cr.exports.loadAll=As;Cr.exports.load=qs;Cr.exports.safeLoadAll=Pl;Cr.exports.safeLoad=_l});var Al=A(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.safeDump=Un.dump=void 0;var Pr=yn(),Ls=In(),Im=ys(),Fm=fi(),Is=Object.prototype.toString,xl=Object.prototype.hasOwnProperty,Wm=9,Pn=10,Hm=13,Ns=32,Um=33,Os=34,Bm=35,zm=37,$m=38,Es=39,Ym=42,Vm=44,Km=45,Gm=58,Qm=62,Jm=63,Xm=64,Zm=91,eh=93,th=96,nh=123,rh=124,ih=125,Ee={};Ee[0]="\\0";Ee[7]="\\a";Ee[8]="\\b";Ee[9]="\\t";Ee[10]="\\n";Ee[11]="\\v";Ee[12]="\\f";Ee[13]="\\r";Ee[27]="\\e";Ee[34]='\\"';Ee[92]="\\\\";Ee[133]="\\N";Ee[160]="\\_";Ee[8232]="\\L";Ee[8233]="\\P";var oh=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function sh(e,t){var n,r,i,o,s,u,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,o=r.length;i<o;i+=1)s=r[i],u=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&xl.call(c.styleAliases,u)&&(u=c.styleAliases[u]),n[s]=u;return n}function ah(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Ls("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Pr.repeat("0",r-t.length)+t}function ch(e){this.schema=e.schema||Im,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Pr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=sh(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Dl(e,t){for(var n=Pr.repeat(" ",t),r=0,i=-1,o="",s,u=e.length;r<u;)i=e.indexOf(`
18
+ `)break}}let s=r.documents,u=s.length;u>0&&(s[u-1].endPosition=n);for(let c of s)c.errors=r.errors,c.startPosition>c.endPosition&&(c.startPosition=c.endPosition);return s}function As(e,t,n={}){var r=Pl(e,n),i,o;for(i=0,o=r.length;i<o;i+=1)t(r[i])}At.loadAll=As;function qs(e,t={}){var n=Pl(e,t),r,i;if(n.length!==0){if(n.length===1)return n[0];var o=new Ss("expected a single document in the stream, but found more");return o.mark=new Ts("","",0,0,0),o.mark.position=n[0].endPosition,n[0].errors.push(o),n[0]}}At.load=qs;function _l(e,t,n={}){As(e,t,Zt.extend({schema:ml},n))}At.safeLoadAll=_l;function Dl(e,t={}){return qs(e,Zt.extend({schema:ml},t))}At.safeLoad=Dl;Cr.exports.loadAll=As;Cr.exports.load=qs;Cr.exports.safeLoadAll=_l;Cr.exports.safeLoad=Dl});var ql=A(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.safeDump=Un.dump=void 0;var Pr=yn(),Ls=In(),Im=ys(),Fm=fi(),Is=Object.prototype.toString,wl=Object.prototype.hasOwnProperty,Wm=9,Pn=10,Hm=13,Ns=32,Um=33,Os=34,Bm=35,zm=37,$m=38,Es=39,Ym=42,Vm=44,Km=45,Gm=58,Qm=62,Jm=63,Xm=64,Zm=91,eh=93,th=96,nh=123,rh=124,ih=125,Ee={};Ee[0]="\\0";Ee[7]="\\a";Ee[8]="\\b";Ee[9]="\\t";Ee[10]="\\n";Ee[11]="\\v";Ee[12]="\\f";Ee[13]="\\r";Ee[27]="\\e";Ee[34]='\\"';Ee[92]="\\\\";Ee[133]="\\N";Ee[160]="\\_";Ee[8232]="\\L";Ee[8233]="\\P";var oh=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function sh(e,t){var n,r,i,o,s,u,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,o=r.length;i<o;i+=1)s=r[i],u=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&wl.call(c.styleAliases,u)&&(u=c.styleAliases[u]),n[s]=u;return n}function ah(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Ls("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Pr.repeat("0",r-t.length)+t}function ch(e){this.schema=e.schema||Im,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Pr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=sh(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Sl(e,t){for(var n=Pr.repeat(" ",t),r=0,i=-1,o="",s,u=e.length;r<u;)i=e.indexOf(`
19
19
  `,r),i===-1?(s=e.slice(r),r=u):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
20
20
  `&&(o+=n),o+=s;return o}function Ms(e,t){return`
21
- `+Pr.repeat(" ",e.indent*t)}function uh(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function hi(e){this.source=e,this.result="",this.checkpoint=0}hi.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};hi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Ee[e]||ah(e),this.result+=t,this.checkpoint+=1,this};hi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function lh(e,t,n){var r,i,o,s,u,c,p,g,b,R,D,T,q,B,j,_,v,N,z,Z,ue;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(oh.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=Ns===i||Ns===t.charCodeAt(t.length-1),(Km===i||Jm===i||Xm===i||th===i)&&(r=!1),o?(r=!1,s=!1,u=!1):(s=!0,u=!0),c=!0,p=new hi(t),g=!1,b=0,R=0,D=e.indent*n,T=80,D<40?T-=D:T=40,B=0;B<t.length;B++){if(q=t.charCodeAt(B),r)if(!fh(q))r=!1;else continue;c&&q===Es&&(c=!1),j=Ee[q],_=wl(q),!(!j&&!_)&&(q!==Pn&&q!==Os&&q!==Es?(s=!1,u=!1):q===Pn&&(g=!0,c=!1,B>0&&(v=t.charCodeAt(B-1),v===Ns&&(u=!1,s=!1)),s&&(N=B-b,b=B,N>R&&(R=N))),q!==Os&&(c=!1),p.takeUpTo(B),p.escapeChar())}if(r&&uh(e,t)&&(r=!1),z="",(s||u)&&(Z=0,t.charCodeAt(t.length-1)===Pn&&(Z+=1,t.charCodeAt(t.length-2)===Pn&&(Z+=1)),Z===0?z="-":Z===2&&(z="+")),u&&R<T&&(s=!1),g||(u=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)ue=dh(t,T),e.dump=">"+z+`
22
- `+Dl(ue,D);else if(u)z||(t=t.replace(/\n$/,"")),e.dump="|"+z+`
23
- `+Dl(t,D);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function dh(e,t){var n="",r=0,i=e.length,o=/\n+$/.exec(e),s;for(o&&(i=o.index+1);r<i;)s=e.indexOf(`
21
+ `+Pr.repeat(" ",e.indent*t)}function uh(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function hi(e){this.source=e,this.result="",this.checkpoint=0}hi.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};hi.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Ee[e]||ah(e),this.result+=t,this.checkpoint+=1,this};hi.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function lh(e,t,n){var r,i,o,s,u,c,p,g,b,D,R,T,q,B,j,_,v,N,z,Z,ue;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(oh.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(r=!0,i=t.length?t.charCodeAt(0):0,o=Ns===i||Ns===t.charCodeAt(t.length-1),(Km===i||Jm===i||Xm===i||th===i)&&(r=!1),o?(r=!1,s=!1,u=!1):(s=!0,u=!0),c=!0,p=new hi(t),g=!1,b=0,D=0,R=e.indent*n,T=80,R<40?T-=R:T=40,B=0;B<t.length;B++){if(q=t.charCodeAt(B),r)if(!fh(q))r=!1;else continue;c&&q===Es&&(c=!1),j=Ee[q],_=kl(q),!(!j&&!_)&&(q!==Pn&&q!==Os&&q!==Es?(s=!1,u=!1):q===Pn&&(g=!0,c=!1,B>0&&(v=t.charCodeAt(B-1),v===Ns&&(u=!1,s=!1)),s&&(N=B-b,b=B,N>D&&(D=N))),q!==Os&&(c=!1),p.takeUpTo(B),p.escapeChar())}if(r&&uh(e,t)&&(r=!1),z="",(s||u)&&(Z=0,t.charCodeAt(t.length-1)===Pn&&(Z+=1,t.charCodeAt(t.length-2)===Pn&&(Z+=1)),Z===0?z="-":Z===2&&(z="+")),u&&D<T&&(s=!1),g||(u=!1),r)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)ue=dh(t,T),e.dump=">"+z+`
22
+ `+Sl(ue,R);else if(u)z||(t=t.replace(/\n$/,"")),e.dump="|"+z+`
23
+ `+Sl(t,R);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function dh(e,t){var n="",r=0,i=e.length,o=/\n+$/.exec(e),s;for(o&&(i=o.index+1);r<i;)s=e.indexOf(`
24
24
  `,r),s>i||s===-1?(n&&(n+=`
25
25
 
26
- `),n+=Sl(e.slice(r,i),t),r=i):(n&&(n+=`
26
+ `),n+=Tl(e.slice(r,i),t),r=i):(n&&(n+=`
27
27
 
28
- `),n+=Sl(e.slice(r,s),t),r=s+1);return o&&o[0]!==`
29
- `&&(n+=o[0]),n}function Sl(e,t){if(e==="")return e;for(var n=/[^\s] [^\s]/g,r="",i=0,o=0,s=n.exec(e),u,c,p;s;)u=s.index,u-o>t&&(i!==o?c=i:c=u,r&&(r+=`
28
+ `),n+=Tl(e.slice(r,s),t),r=s+1);return o&&o[0]!==`
29
+ `&&(n+=o[0]),n}function Tl(e,t){if(e==="")return e;for(var n=/[^\s] [^\s]/g,r="",i=0,o=0,s=n.exec(e),u,c,p;s;)u=s.index,u-o>t&&(i!==o?c=i:c=u,r&&(r+=`
30
30
  `),p=e.slice(o,c),r+=p,o=c+1),i=u+1,s=n.exec(e);return r&&(r+=`
31
31
  `),o!==i&&e.length-o>t?r+=e.slice(o,i)+`
32
- `+e.slice(i+1):r+=e.slice(o),r}function fh(e){return Wm!==e&&Pn!==e&&Hm!==e&&Vm!==e&&Zm!==e&&eh!==e&&nh!==e&&ih!==e&&Bm!==e&&$m!==e&&Ym!==e&&Um!==e&&rh!==e&&Qm!==e&&Es!==e&&Os!==e&&zm!==e&&Gm!==e&&!Ee[e]&&!wl(e)}function wl(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function ph(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)_n(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function gh(e,t,n,r){var i="",o=e.tag,s,u;for(s=0,u=n.length;s<u;s+=1)_n(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=Ms(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function mh(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,u,c,p,g;for(s=0,u=o.length;s<u;s+=1)g="",s!==0&&(g+=", "),c=o[s],p=n[c],_n(e,t,c,!1,!1)&&(e.dump.length>1024&&(g+="? "),g+=e.dump+": ",_n(e,t,p,!1,!1)&&(g+=e.dump,r+=g));e.tag=i,e.dump="{"+r+"}"}function hh(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),u,c,p,g,b,R;for(u=0,c=s.length;u<c;u+=1)R="",(!r||u!==0)&&(R+=Ms(e,t)),p=s[u],g=n[p],_n(e,t+1,p,!0,!0)&&(b=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,b&&(e.dump&&Pn===e.dump.charCodeAt(0)?R+="?":R+="? "),R+=e.dump,b&&(R+=Ms(e,t)),_n(e,t+1,g,!0,b)&&(e.dump&&Pn===e.dump.charCodeAt(0)?R+=":":R+=": ",R+=e.dump,i+=R));e.tag=o,e.dump=i||"{}"}function Tl(e,t,n){var r,i,o,s,u,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=n?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Is.call(u.represent)==="[object Function]")r=u.represent(t,c);else if(xl.call(u.represent,c))r=u.represent[c](t,c);else throw new Ls("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function _n(e,t,n,r,i){e.tag=null,e.dump=n,Tl(e,n,!1)||Tl(e,n,!0);var o=Is.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]",u,c;if(s&&(u=e.duplicates.indexOf(n),c=u!==-1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(s&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(hh(e,t,e.dump,i),c&&(e.dump="&ref_"+u+(t===0?`
32
+ `+e.slice(i+1):r+=e.slice(o),r}function fh(e){return Wm!==e&&Pn!==e&&Hm!==e&&Vm!==e&&Zm!==e&&eh!==e&&nh!==e&&ih!==e&&Bm!==e&&$m!==e&&Ym!==e&&Um!==e&&rh!==e&&Qm!==e&&Es!==e&&Os!==e&&zm!==e&&Gm!==e&&!Ee[e]&&!kl(e)}function kl(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function ph(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)_n(e,t,n[o],!1,!1)&&(o!==0&&(r+=", "),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function gh(e,t,n,r){var i="",o=e.tag,s,u;for(s=0,u=n.length;s<u;s+=1)_n(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=Ms(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function mh(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,u,c,p,g;for(s=0,u=o.length;s<u;s+=1)g="",s!==0&&(g+=", "),c=o[s],p=n[c],_n(e,t,c,!1,!1)&&(e.dump.length>1024&&(g+="? "),g+=e.dump+": ",_n(e,t,p,!1,!1)&&(g+=e.dump,r+=g));e.tag=i,e.dump="{"+r+"}"}function hh(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),u,c,p,g,b,D;for(u=0,c=s.length;u<c;u+=1)D="",(!r||u!==0)&&(D+=Ms(e,t)),p=s[u],g=n[p],_n(e,t+1,p,!0,!0)&&(b=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,b&&(e.dump&&Pn===e.dump.charCodeAt(0)?D+="?":D+="? "),D+=e.dump,b&&(D+=Ms(e,t)),_n(e,t+1,g,!0,b)&&(e.dump&&Pn===e.dump.charCodeAt(0)?D+=":":D+=": ",D+=e.dump,i+=D));e.tag=o,e.dump=i||"{}"}function xl(e,t,n){var r,i,o,s,u,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=n?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Is.call(u.represent)==="[object Function]")r=u.represent(t,c);else if(wl.call(u.represent,c))r=u.represent[c](t,c);else throw new Ls("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function _n(e,t,n,r,i){e.tag=null,e.dump=n,xl(e,n,!1)||xl(e,n,!0);var o=Is.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]",u,c;if(s&&(u=e.duplicates.indexOf(n),c=u!==-1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(s&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(hh(e,t,e.dump,i),c&&(e.dump="&ref_"+u+(t===0?`
33
33
  `:"")+e.dump)):(mh(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(gh(e,t,e.dump,i),c&&(e.dump="&ref_"+u+(t===0?`
34
- `:"")+e.dump)):(ph(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&lh(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Ls("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function yh(e,t){var n=[],r=[],i,o;for(js(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function js(e,t,n){var r=Is.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)js(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)js(e[i[o]],t,n)}function kl(e,t){t=t||{};var n=new ch(t);return yh(e,n),_n(n,0,e,!0,!0)?n.dump+`
35
- `:""}Un.dump=kl;function bh(e,t){return kl(e,Pr.extend({schema:Fm},t))}Un.safeDump=bh});var ql=A(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.determineScalarType=nt.ScalarType=nt.parseYamlFloat=nt.parseYamlInteger=nt.parseYamlBoolean=void 0;function vh(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}nt.parseYamlBoolean=vh;function Ch(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Ph(e){let t=Ch(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}nt.parseYamlInteger=Ph;function _h(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}"`}nt.parseYamlFloat=_h;var Ht;(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"})(Ht=nt.ScalarType||(nt.ScalarType={}));function Rh(e){if(e===void 0)return Ht.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Ht.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Ht.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Ht.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 Ht.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?Ht.float:Ht.string}nt.determineScalarType=Rh});var _r=A(Te=>{"use strict";var Dh=Te&&Te.__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]}),Nl=Te&&Te.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Dh(t,e,n)};Object.defineProperty(Te,"__esModule",{value:!0});Te.safeDump=Te.dump=Te.safeLoadAll=Te.safeLoad=Te.loadAll=Te.load=void 0;var yi=Rl();Object.defineProperty(Te,"load",{enumerable:!0,get:function(){return yi.load}});Object.defineProperty(Te,"loadAll",{enumerable:!0,get:function(){return yi.loadAll}});Object.defineProperty(Te,"safeLoad",{enumerable:!0,get:function(){return yi.safeLoad}});Object.defineProperty(Te,"safeLoadAll",{enumerable:!0,get:function(){return yi.safeLoadAll}});var Ol=Al();Object.defineProperty(Te,"dump",{enumerable:!0,get:function(){return Ol.dump}});Object.defineProperty(Te,"safeDump",{enumerable:!0,get:function(){return Ol.safeDump}});Te.YAMLException=In();Nl(Wt(),Te);Nl(ql(),Te)});var Qn=A(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.stringArray=Ye.array=Ye.func=Ye.error=Ye.number=Ye.string=Ye.boolean=void 0;function ab(e){return e===!0||e===!1}Ye.boolean=ab;function sd(e){return typeof e=="string"||e instanceof String}Ye.string=sd;function cb(e){return typeof e=="number"||e instanceof Number}Ye.number=cb;function ub(e){return e instanceof Error}Ye.error=ub;function lb(e){return typeof e=="function"}Ye.func=lb;function ad(e){return Array.isArray(e)}Ye.array=ad;function db(e){return ad(e)&&e.every(t=>sd(t))}Ye.stringArray=db});var wa=A(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.Message=U.NotificationType9=U.NotificationType8=U.NotificationType7=U.NotificationType6=U.NotificationType5=U.NotificationType4=U.NotificationType3=U.NotificationType2=U.NotificationType1=U.NotificationType0=U.NotificationType=U.RequestType9=U.RequestType8=U.RequestType7=U.RequestType6=U.RequestType5=U.RequestType4=U.RequestType3=U.RequestType2=U.RequestType1=U.RequestType=U.RequestType0=U.AbstractMessageSignature=U.ParameterStructures=U.ResponseError=U.ErrorCodes=void 0;var Tn=Qn(),cd;(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})(cd=U.ErrorCodes||(U.ErrorCodes={}));var xr=class extends Error{constructor(t,n,r){super(n),this.code=Tn.number(t)?t:cd.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,xr.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};U.ResponseError=xr;var Me=class{constructor(t){this.kind=t}static is(t){return t===Me.auto||t===Me.byName||t===Me.byPosition}toString(){return this.kind}};U.ParameterStructures=Me;Me.auto=new Me("auto");Me.byPosition=new Me("byPosition");Me.byName=new Me("byName");var me=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Me.auto}};U.AbstractMessageSignature=me;var sa=class extends me{constructor(t){super(t,0)}};U.RequestType0=sa;var aa=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.RequestType=aa;var ca=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.RequestType1=ca;var ua=class extends me{constructor(t){super(t,2)}};U.RequestType2=ua;var la=class extends me{constructor(t){super(t,3)}};U.RequestType3=la;var da=class extends me{constructor(t){super(t,4)}};U.RequestType4=da;var fa=class extends me{constructor(t){super(t,5)}};U.RequestType5=fa;var pa=class extends me{constructor(t){super(t,6)}};U.RequestType6=pa;var ga=class extends me{constructor(t){super(t,7)}};U.RequestType7=ga;var ma=class extends me{constructor(t){super(t,8)}};U.RequestType8=ma;var ha=class extends me{constructor(t){super(t,9)}};U.RequestType9=ha;var ya=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.NotificationType=ya;var ba=class extends me{constructor(t){super(t,0)}};U.NotificationType0=ba;var va=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.NotificationType1=va;var Ca=class extends me{constructor(t){super(t,2)}};U.NotificationType2=Ca;var Pa=class extends me{constructor(t){super(t,3)}};U.NotificationType3=Pa;var _a=class extends me{constructor(t){super(t,4)}};U.NotificationType4=_a;var Ra=class extends me{constructor(t){super(t,5)}};U.NotificationType5=Ra;var Da=class extends me{constructor(t){super(t,6)}};U.NotificationType6=Da;var Sa=class extends me{constructor(t){super(t,7)}};U.NotificationType7=Sa;var Ta=class extends me{constructor(t){super(t,8)}};U.NotificationType8=Ta;var xa=class extends me{constructor(t){super(t,9)}};U.NotificationType9=xa;var fb;(function(e){function t(i){let o=i;return o&&Tn.string(o.method)&&(Tn.string(o.id)||Tn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&Tn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(Tn.string(o.id)||Tn.number(o.id)||o.id===null)}e.isResponse=r})(fb=U.Message||(U.Message={}))});var Aa=A(Bt=>{"use strict";var ud;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.LRUCache=Bt.LinkedMap=Bt.Touch=void 0;var Ke;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ke=Bt.Touch||(Bt.Touch={}));var Ki=class{constructor(){this[ud]="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=Ke.None){let r=this._map.get(t);if(!!r)return n!==Ke.None&&this.touch(r,n),r.value}set(t,n,r=Ke.None){let i=this._map.get(t);if(i)i.value=n,r!==Ke.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ke.None:this.addItemLast(i);break;case Ke.First:this.addItemFirst(i);break;case Ke.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}[(ud=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!==Ke.First&&n!==Ke.Last)){if(n===Ke.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===Ke.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Bt.LinkedMap=Ki;var ka=class extends Ki{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=Ke.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ke.None)}set(t,n){return super.set(t,n,Ke.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bt.LRUCache=ka});var ld=A(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.Disposable=void 0;var pb;(function(e){function t(n){return{dispose:n}}e.create=t})(pb=wr.Disposable||(wr.Disposable={}))});var nn=A(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var qa;function Na(){if(qa===void 0)throw new Error("No runtime abstraction layer installed");return qa}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");qa=n}e.install=t})(Na||(Na={}));Oa.default=Na});var Xn=A(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.Emitter=xn.Event=void 0;var gb=nn(),mb;(function(e){let t={dispose(){}};e.None=function(){return t}})(mb=xn.Event||(xn.Event={}));var Ea=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(u){(0,gb.default)().console.error(u)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Jn=class{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ea),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=Jn._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)}};xn.Emitter=Jn;Jn._noop=function(){}});var Qi=A(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.CancellationTokenSource=wn.CancellationToken=void 0;var hb=nn(),yb=Qn(),Ma=Xn(),ja;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ma.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ma.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||yb.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(ja=wn.CancellationToken||(wn.CancellationToken={}));var bb=Object.freeze(function(e,t){let n=(0,hb.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Gi=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?bb:(this._emitter||(this._emitter=new Ma.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},La=class{get token(){return this._token||(this._token=new Gi),this._token}cancel(){this._token?this._token.cancel():this._token=ja.Cancelled}dispose(){this._token?this._token instanceof Gi&&this._token.dispose():this._token=ja.None}};wn.CancellationTokenSource=La});var dd=A(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.SharedArrayReceiverStrategy=Zn.SharedArraySenderStrategy=void 0;var vb=Qi(),kr;(function(e){e.Continue=0,e.Cancelled=1})(kr||(kr={}));var Ia=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]=kr.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,kr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Zn.SharedArraySenderStrategy=Ia;var Fa=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===kr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Wa=class{constructor(t){this.token=new Fa(t)}cancel(){}dispose(){}},Ha=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new vb.CancellationTokenSource:new Wa(n)}};Zn.SharedArrayReceiverStrategy=Ha});var Ba=A(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Semaphore=void 0;var Cb=nn(),Ua=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,Cb.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()}}};Ji.Semaphore=Ua});var fd=A(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ReadableStreamMessageReader=zt.AbstractMessageReader=zt.MessageReader=void 0;var $a=nn(),er=Qn(),za=Xn(),Pb=Ba(),_b;(function(e){function t(n){let r=n;return r&&er.func(r.listen)&&er.func(r.dispose)&&er.func(r.onError)&&er.func(r.onClose)&&er.func(r.onPartialMessage)}e.is=t})(_b=zt.MessageReader||(zt.MessageReader={}));var Xi=class{constructor(){this.errorEmitter=new za.Emitter,this.closeEmitter=new za.Emitter,this.partialMessageEmitter=new za.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: ${er.string(t.message)?t.message:"unknown"}`)}};zt.AbstractMessageReader=Xi;var Ya;(function(e){function t(n){let r,i,o,s=new Map,u,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 p of n.contentDecoders)s.set(p.name,p);if(n.contentTypeDecoder!==void 0&&(u=n.contentTypeDecoder,c.set(u.name,u)),n.contentTypeDecoders!==void 0)for(let p of n.contentTypeDecoders)c.set(p.name,p)}return u===void 0&&(u=(0,$a.default)().applicationJson.decoder,c.set(u.name,u)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:u,contentTypeDecoders:c}}e.fromOptions=t})(Ya||(Ya={}));var Va=class extends Xi{constructor(t,n){super(),this.readable=t,this.options=Ya.fromOptions(n),this.buffer=(0,$a.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Pb.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){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."));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error("Content-Length value must be a number."));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)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,$a.default)().timer.setTimeout((t,n)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};zt.ReadableStreamMessageReader=Va});var hd=A($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WriteableStreamMessageWriter=$t.AbstractMessageWriter=$t.MessageWriter=void 0;var pd=nn(),Ar=Qn(),Rb=Ba(),gd=Xn(),Db="Content-Length: ",md=`\r
36
- `,Sb;(function(e){function t(n){let r=n;return r&&Ar.func(r.dispose)&&Ar.func(r.onClose)&&Ar.func(r.onError)&&Ar.func(r.write)}e.is=t})(Sb=$t.MessageWriter||($t.MessageWriter={}));var Zi=class{constructor(){this.errorEmitter=new gd.Emitter,this.closeEmitter=new gd.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: ${Ar.string(t.message)?t.message:"unknown"}`)}};$t.AbstractMessageWriter=Zi;var Ka;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,pd.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,pd.default)().applicationJson.encoder}}e.fromOptions=t})(Ka||(Ka={}));var Ga=class extends Zi{constructor(t,n){super(),this.writable=t,this.options=Ka.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Rb.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(Db,r.byteLength.toString(),md),i.push(md),this.doWrite(t,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(t,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,t),Promise.reject(i)}}handleError(t,n){this.errorCount++,this.fireError(t,n,this.errorCount)}end(){this.writable.end()}};$t.WriteableStreamMessageWriter=Ga});var yd=A(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.AbstractMessageBuffer=void 0;var Tb=13,xb=10,wb=`\r
37
- `,Qa=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 p=this._chunks[r];i=0;t:for(;i<p.length;){switch(p[i]){case Tb:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case xb:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=p.byteLength,r++}if(n!==4)return;let s=this._read(o+i),u=new Map,c=this.toString(s,"ascii").split(wb);if(c.length<2)return u;for(let p=0;p<c.length-2;p++){let g=c[p],b=g.indexOf(":");if(b===-1)throw new Error("Message header must separate key and value using :");let R=g.substr(0,b),D=g.substr(b+1).trim();u.set(t?R.toLowerCase():R,D)}return u}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}};eo.AbstractMessageBuffer=Qa});var Dd=A(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.createMessageConnection=W.ConnectionOptions=W.MessageStrategy=W.CancellationStrategy=W.CancellationSenderStrategy=W.CancellationReceiverStrategy=W.RequestCancellationReceiverStrategy=W.IdCancellationReceiverStrategy=W.ConnectionStrategy=W.ConnectionError=W.ConnectionErrors=W.LogTraceNotification=W.SetTraceNotification=W.TraceFormat=W.TraceValues=W.Trace=W.NullLogger=W.ProgressType=W.ProgressToken=void 0;var bd=nn(),ve=Qn(),$=wa(),vd=Aa(),qr=Xn(),Ja=Qi(),Or;(function(e){e.type=new $.NotificationType("$/cancelRequest")})(Or||(Or={}));var Cd;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Cd=W.ProgressToken||(W.ProgressToken={}));var Nr;(function(e){e.type=new $.NotificationType("$/progress")})(Nr||(Nr={}));var Xa=class{constructor(){}};W.ProgressType=Xa;var Za;(function(e){function t(n){return ve.func(n)}e.is=t})(Za||(Za={}));W.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var ae;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(ae=W.Trace||(W.Trace={}));var kb;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(kb=W.TraceValues||(W.TraceValues={}));(function(e){function t(r){if(!ve.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})(ae=W.Trace||(W.Trace={}));var yt;(function(e){e.Text="text",e.JSON="json"})(yt=W.TraceFormat||(W.TraceFormat={}));(function(e){function t(n){return ve.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(yt=W.TraceFormat||(W.TraceFormat={}));var Pd;(function(e){e.type=new $.NotificationType("$/setTrace")})(Pd=W.SetTraceNotification||(W.SetTraceNotification={}));var ec;(function(e){e.type=new $.NotificationType("$/logTrace")})(ec=W.LogTraceNotification||(W.LogTraceNotification={}));var to;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(to=W.ConnectionErrors||(W.ConnectionErrors={}));var rn=class extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,rn.prototype)}};W.ConnectionError=rn;var _d;(function(e){function t(n){let r=n;return r&&ve.func(r.cancelUndispatched)}e.is=t})(_d=W.ConnectionStrategy||(W.ConnectionStrategy={}));var rc;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&ve.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ve.func(r.dispose))}e.is=t})(rc=W.IdCancellationReceiverStrategy||(W.IdCancellationReceiverStrategy={}));var Rd;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&ve.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ve.func(r.dispose))}e.is=t})(Rd=W.RequestCancellationReceiverStrategy||(W.RequestCancellationReceiverStrategy={}));var tc;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Ja.CancellationTokenSource}});function t(n){return rc.is(n)||Rd.is(n)}e.is=t})(tc=W.CancellationReceiverStrategy||(W.CancellationReceiverStrategy={}));var nc;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Or.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ve.func(r.sendCancellation)&&ve.func(r.cleanup)}e.is=t})(nc=W.CancellationSenderStrategy||(W.CancellationSenderStrategy={}));var ic;(function(e){e.Message=Object.freeze({receiver:tc.Message,sender:nc.Message});function t(n){let r=n;return r&&tc.is(r.receiver)&&nc.is(r.sender)}e.is=t})(ic=W.CancellationStrategy||(W.CancellationStrategy={}));var oc;(function(e){function t(n){let r=n;return r&&ve.func(r.handleMessage)}e.is=t})(oc=W.MessageStrategy||(W.MessageStrategy={}));var Ab;(function(e){function t(n){let r=n;return r&&(ic.is(r.cancellationStrategy)||_d.is(r.connectionStrategy)||oc.is(r.messageStrategy))}e.is=t})(Ab=W.ConnectionOptions||(W.ConnectionOptions={}));var bt;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(bt||(bt={}));function qb(e,t,n,r){let i=n!==void 0?n:W.NullLogger,o=0,s=0,u=0,c="2.0",p,g=new Map,b,R=new Map,D=new Map,T,q=new vd.LinkedMap,B=new Map,j=new Set,_=new Map,v=ae.Off,N=yt.Text,z,Z=bt.New,ue=new qr.Emitter,$e=new qr.Emitter,ft=new qr.Emitter,pt=new qr.Emitter,L=new qr.Emitter,x=r&&r.cancellationStrategy?r.cancellationStrategy:ic.Message;function H(m){if(m===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+m.toString()}function I(m){return m===null?"res-unknown-"+(++u).toString():"res-"+m.toString()}function ie(){return"not-"+(++s).toString()}function X(m,w){$.Message.isRequest(w)?m.set(H(w.id),w):$.Message.isResponse(w)?m.set(I(w.id),w):m.set(ie(),w)}function K(m){}function Ve(){return Z===bt.Listening}function Ae(){return Z===bt.Closed}function ce(){return Z===bt.Disposed}function Tt(){(Z===bt.New||Z===bt.Listening)&&(Z=bt.Closed,$e.fire(void 0))}function On(m){ue.fire([m,void 0,void 0])}function G(m){ue.fire(m)}e.onClose(Tt),e.onError(On),t.onClose(Tt),t.onError(G);function ei(){T||q.size===0||(T=(0,bd.default)().timer.setImmediate(()=>{T=void 0,Jo()}))}function ti(m){$.Message.isRequest(m)?Zo(m):$.Message.isNotification(m)?ts(m):$.Message.isResponse(m)?es(m):gr(m)}function Jo(){if(q.size===0)return;let m=q.shift();try{let w=r?.messageStrategy;oc.is(w)?w.handleMessage(m,ti):ti(m)}finally{ei()}}let Xo=m=>{try{if($.Message.isNotification(m)&&m.method===Or.type.method){let w=m.params.id,E=H(w),F=q.get(E);if($.Message.isRequest(F)){let se=r?.connectionStrategy,he=se&&se.cancelUndispatched?se.cancelUndispatched(F,K):void 0;if(he&&(he.error!==void 0||he.result!==void 0)){q.delete(E),_.delete(w),he.id=F.id,En(he,m.method,Date.now()),t.write(he).catch(()=>i.error("Sending response for canceled message failed."));return}}let le=_.get(w);if(le!==void 0){le.cancel(),mr(m);return}else j.add(w)}X(q,m)}finally{ei()}};function Zo(m){if(ce())return;function w(ee,de,oe){let De={jsonrpc:c,id:m.id};ee instanceof $.ResponseError?De.error=ee.toJson():De.result=ee===void 0?null:ee,En(De,de,oe),t.write(De).catch(()=>i.error("Sending response failed."))}function E(ee,de,oe){let De={jsonrpc:c,id:m.id,error:ee.toJson()};En(De,de,oe),t.write(De).catch(()=>i.error("Sending response failed."))}function F(ee,de,oe){ee===void 0&&(ee=null);let De={jsonrpc:c,id:m.id,result:ee};En(De,de,oe),t.write(De).catch(()=>i.error("Sending response failed."))}is(m);let le=g.get(m.method),se,he;le&&(se=le.type,he=le.handler);let ye=Date.now();if(he||p){let ee=m.id??String(Date.now()),de=rc.is(x.receiver)?x.receiver.createCancellationTokenSource(ee):x.receiver.createCancellationTokenSource(m);m.id!==null&&j.has(m.id)&&de.cancel(),m.id!==null&&_.set(ee,de);try{let oe;if(he)if(m.params===void 0){if(se!==void 0&&se.numberOfParams!==0){E(new $.ResponseError($.ErrorCodes.InvalidParams,`Request ${m.method} defines ${se.numberOfParams} params but received none.`),m.method,ye);return}oe=he(de.token)}else if(Array.isArray(m.params)){if(se!==void 0&&se.parameterStructures===$.ParameterStructures.byName){E(new $.ResponseError($.ErrorCodes.InvalidParams,`Request ${m.method} defines parameters by name but received parameters by position`),m.method,ye);return}oe=he(...m.params,de.token)}else{if(se!==void 0&&se.parameterStructures===$.ParameterStructures.byPosition){E(new $.ResponseError($.ErrorCodes.InvalidParams,`Request ${m.method} defines parameters by position but received parameters by name`),m.method,ye);return}oe=he(m.params,de.token)}else p&&(oe=p(m.method,m.params,de.token));let De=oe;oe?De.then?De.then(Le=>{_.delete(ee),w(Le,m.method,ye)},Le=>{_.delete(ee),Le instanceof $.ResponseError?E(Le,m.method,ye):Le&&ve.string(Le.message)?E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed with message: ${Le.message}`),m.method,ye):E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed unexpectedly without providing any details.`),m.method,ye)}):(_.delete(ee),w(oe,m.method,ye)):(_.delete(ee),F(oe,m.method,ye))}catch(oe){_.delete(ee),oe instanceof $.ResponseError?w(oe,m.method,ye):oe&&ve.string(oe.message)?E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed with message: ${oe.message}`),m.method,ye):E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed unexpectedly without providing any details.`),m.method,ye)}}else E(new $.ResponseError($.ErrorCodes.MethodNotFound,`Unhandled method ${m.method}`),m.method,ye)}function es(m){if(!ce())if(m.id===null)m.error?i.error(`Received response message without id: Error is:
38
- ${JSON.stringify(m.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let w=m.id,E=B.get(w);if(os(m,E),E!==void 0){B.delete(w);try{if(m.error){let F=m.error;E.reject(new $.ResponseError(F.code,F.message,F.data))}else if(m.result!==void 0)E.resolve(m.result);else throw new Error("Should never happen.")}catch(F){F.message?i.error(`Response handler '${E.method}' failed with message: ${F.message}`):i.error(`Response handler '${E.method}' failed unexpectedly.`)}}}}function ts(m){if(ce())return;let w,E;if(m.method===Or.type.method){let F=m.params.id;j.delete(F),mr(m);return}else{let F=R.get(m.method);F&&(E=F.handler,w=F.type)}if(E||b)try{if(mr(m),E)if(m.params===void 0)w!==void 0&&w.numberOfParams!==0&&w.parameterStructures!==$.ParameterStructures.byName&&i.error(`Notification ${m.method} defines ${w.numberOfParams} params but received none.`),E();else if(Array.isArray(m.params)){let F=m.params;m.method===Nr.type.method&&F.length===2&&Cd.is(F[0])?E({token:F[0],value:F[1]}):(w!==void 0&&(w.parameterStructures===$.ParameterStructures.byName&&i.error(`Notification ${m.method} defines parameters by name but received parameters by position`),w.numberOfParams!==m.params.length&&i.error(`Notification ${m.method} defines ${w.numberOfParams} params but received ${F.length} arguments`)),E(...F))}else w!==void 0&&w.parameterStructures===$.ParameterStructures.byPosition&&i.error(`Notification ${m.method} defines parameters by position but received parameters by name`),E(m.params);else b&&b(m.method,m.params)}catch(F){F.message?i.error(`Notification handler '${m.method}' failed with message: ${F.message}`):i.error(`Notification handler '${m.method}' failed unexpectedly.`)}else ft.fire(m)}function gr(m){if(!m){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
39
- ${JSON.stringify(m,null,4)}`);let w=m;if(ve.string(w.id)||ve.number(w.id)){let E=w.id,F=B.get(E);F&&F.reject(new Error("The received response has neither a result nor an error property."))}}function xt(m){if(m!=null)switch(v){case ae.Verbose:return JSON.stringify(m,null,4);case ae.Compact:return JSON.stringify(m);default:return}}function ns(m){if(!(v===ae.Off||!z))if(N===yt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&m.params&&(w=`Params: ${xt(m.params)}
34
+ `:"")+e.dump)):(ph(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&lh(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Ls("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function yh(e,t){var n=[],r=[],i,o;for(js(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function js(e,t,n){var r=Is.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)js(e[o],t,n);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)js(e[i[o]],t,n)}function Al(e,t){t=t||{};var n=new ch(t);return yh(e,n),_n(n,0,e,!0,!0)?n.dump+`
35
+ `:""}Un.dump=Al;function bh(e,t){return Al(e,Pr.extend({schema:Fm},t))}Un.safeDump=bh});var Nl=A(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.determineScalarType=nt.ScalarType=nt.parseYamlFloat=nt.parseYamlInteger=nt.parseYamlBoolean=void 0;function vh(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`}nt.parseYamlBoolean=vh;function Ch(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Ph(e){let t=Ch(e);if(isNaN(t))throw`Invalid integer "${e}"`;return t}nt.parseYamlInteger=Ph;function _h(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}"`}nt.parseYamlFloat=_h;var Ut;(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"})(Ut=nt.ScalarType||(nt.ScalarType={}));function Dh(e){if(e===void 0)return Ut.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Ut.string;let t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Ut.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Ut.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 Ut.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?Ut.float:Ut.string}nt.determineScalarType=Dh});var _r=A(Te=>{"use strict";var Rh=Te&&Te.__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]}),Ol=Te&&Te.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Rh(t,e,n)};Object.defineProperty(Te,"__esModule",{value:!0});Te.safeDump=Te.dump=Te.safeLoadAll=Te.safeLoad=Te.loadAll=Te.load=void 0;var yi=Rl();Object.defineProperty(Te,"load",{enumerable:!0,get:function(){return yi.load}});Object.defineProperty(Te,"loadAll",{enumerable:!0,get:function(){return yi.loadAll}});Object.defineProperty(Te,"safeLoad",{enumerable:!0,get:function(){return yi.safeLoad}});Object.defineProperty(Te,"safeLoadAll",{enumerable:!0,get:function(){return yi.safeLoadAll}});var El=ql();Object.defineProperty(Te,"dump",{enumerable:!0,get:function(){return El.dump}});Object.defineProperty(Te,"safeDump",{enumerable:!0,get:function(){return El.safeDump}});Te.YAMLException=In();Ol(Ht(),Te);Ol(Nl(),Te)});var Qn=A(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.stringArray=Ye.array=Ye.func=Ye.error=Ye.number=Ye.string=Ye.boolean=void 0;function ab(e){return e===!0||e===!1}Ye.boolean=ab;function ad(e){return typeof e=="string"||e instanceof String}Ye.string=ad;function cb(e){return typeof e=="number"||e instanceof Number}Ye.number=cb;function ub(e){return e instanceof Error}Ye.error=ub;function lb(e){return typeof e=="function"}Ye.func=lb;function cd(e){return Array.isArray(e)}Ye.array=cd;function db(e){return cd(e)&&e.every(t=>ad(t))}Ye.stringArray=db});var wa=A(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.Message=U.NotificationType9=U.NotificationType8=U.NotificationType7=U.NotificationType6=U.NotificationType5=U.NotificationType4=U.NotificationType3=U.NotificationType2=U.NotificationType1=U.NotificationType0=U.NotificationType=U.RequestType9=U.RequestType8=U.RequestType7=U.RequestType6=U.RequestType5=U.RequestType4=U.RequestType3=U.RequestType2=U.RequestType1=U.RequestType=U.RequestType0=U.AbstractMessageSignature=U.ParameterStructures=U.ResponseError=U.ErrorCodes=void 0;var Tn=Qn(),ud;(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})(ud=U.ErrorCodes||(U.ErrorCodes={}));var xr=class extends Error{constructor(t,n,r){super(n),this.code=Tn.number(t)?t:ud.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,xr.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};U.ResponseError=xr;var Me=class{constructor(t){this.kind=t}static is(t){return t===Me.auto||t===Me.byName||t===Me.byPosition}toString(){return this.kind}};U.ParameterStructures=Me;Me.auto=new Me("auto");Me.byPosition=new Me("byPosition");Me.byName=new Me("byName");var me=class{constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return Me.auto}};U.AbstractMessageSignature=me;var sa=class extends me{constructor(t){super(t,0)}};U.RequestType0=sa;var aa=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.RequestType=aa;var ca=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.RequestType1=ca;var ua=class extends me{constructor(t){super(t,2)}};U.RequestType2=ua;var la=class extends me{constructor(t){super(t,3)}};U.RequestType3=la;var da=class extends me{constructor(t){super(t,4)}};U.RequestType4=da;var fa=class extends me{constructor(t){super(t,5)}};U.RequestType5=fa;var pa=class extends me{constructor(t){super(t,6)}};U.RequestType6=pa;var ga=class extends me{constructor(t){super(t,7)}};U.RequestType7=ga;var ma=class extends me{constructor(t){super(t,8)}};U.RequestType8=ma;var ha=class extends me{constructor(t){super(t,9)}};U.RequestType9=ha;var ya=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.NotificationType=ya;var ba=class extends me{constructor(t){super(t,0)}};U.NotificationType0=ba;var va=class extends me{constructor(t,n=Me.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};U.NotificationType1=va;var Ca=class extends me{constructor(t){super(t,2)}};U.NotificationType2=Ca;var Pa=class extends me{constructor(t){super(t,3)}};U.NotificationType3=Pa;var _a=class extends me{constructor(t){super(t,4)}};U.NotificationType4=_a;var Da=class extends me{constructor(t){super(t,5)}};U.NotificationType5=Da;var Ra=class extends me{constructor(t){super(t,6)}};U.NotificationType6=Ra;var Sa=class extends me{constructor(t){super(t,7)}};U.NotificationType7=Sa;var Ta=class extends me{constructor(t){super(t,8)}};U.NotificationType8=Ta;var xa=class extends me{constructor(t){super(t,9)}};U.NotificationType9=xa;var fb;(function(e){function t(i){let o=i;return o&&Tn.string(o.method)&&(Tn.string(o.id)||Tn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&Tn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(Tn.string(o.id)||Tn.number(o.id)||o.id===null)}e.isResponse=r})(fb=U.Message||(U.Message={}))});var Aa=A(zt=>{"use strict";var ld;Object.defineProperty(zt,"__esModule",{value:!0});zt.LRUCache=zt.LinkedMap=zt.Touch=void 0;var Ke;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(Ke=zt.Touch||(zt.Touch={}));var Ki=class{constructor(){this[ld]="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=Ke.None){let r=this._map.get(t);if(!!r)return n!==Ke.None&&this.touch(r,n),r.value}set(t,n,r=Ke.None){let i=this._map.get(t);if(i)i.value=n,r!==Ke.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case Ke.None:this.addItemLast(i);break;case Ke.First:this.addItemFirst(i);break;case Ke.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}[(ld=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!==Ke.First&&n!==Ke.Last)){if(n===Ke.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===Ke.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)}};zt.LinkedMap=Ki;var ka=class extends Ki{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=Ke.AsNew){return super.get(t,n)}peek(t){return super.get(t,Ke.None)}set(t,n){return super.set(t,n,Ke.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};zt.LRUCache=ka});var dd=A(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.Disposable=void 0;var pb;(function(e){function t(n){return{dispose:n}}e.create=t})(pb=wr.Disposable||(wr.Disposable={}))});var nn=A(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var qa;function Na(){if(qa===void 0)throw new Error("No runtime abstraction layer installed");return qa}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");qa=n}e.install=t})(Na||(Na={}));Oa.default=Na});var Xn=A(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.Emitter=xn.Event=void 0;var gb=nn(),mb;(function(e){let t={dispose(){}};e.None=function(){return t}})(mb=xn.Event||(xn.Event={}));var Ea=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(u){(0,gb.default)().console.error(u)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Jn=class{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ea),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=Jn._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)}};xn.Emitter=Jn;Jn._noop=function(){}});var Qi=A(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.CancellationTokenSource=wn.CancellationToken=void 0;var hb=nn(),yb=Qn(),Ma=Xn(),ja;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ma.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ma.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||yb.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(ja=wn.CancellationToken||(wn.CancellationToken={}));var bb=Object.freeze(function(e,t){let n=(0,hb.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),Gi=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?bb:(this._emitter||(this._emitter=new Ma.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},La=class{get token(){return this._token||(this._token=new Gi),this._token}cancel(){this._token?this._token.cancel():this._token=ja.Cancelled}dispose(){this._token?this._token instanceof Gi&&this._token.dispose():this._token=ja.None}};wn.CancellationTokenSource=La});var fd=A(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.SharedArrayReceiverStrategy=Zn.SharedArraySenderStrategy=void 0;var vb=Qi(),kr;(function(e){e.Continue=0,e.Cancelled=1})(kr||(kr={}));var Ia=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]=kr.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,kr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Zn.SharedArraySenderStrategy=Ia;var Fa=class{constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===kr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Wa=class{constructor(t){this.token=new Fa(t)}cancel(){}dispose(){}},Ha=class{constructor(){this.kind="request"}createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new vb.CancellationTokenSource:new Wa(n)}};Zn.SharedArrayReceiverStrategy=Ha});var Ba=A(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Semaphore=void 0;var Cb=nn(),Ua=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,Cb.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()}}};Ji.Semaphore=Ua});var pd=A($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.ReadableStreamMessageReader=$t.AbstractMessageReader=$t.MessageReader=void 0;var $a=nn(),er=Qn(),za=Xn(),Pb=Ba(),_b;(function(e){function t(n){let r=n;return r&&er.func(r.listen)&&er.func(r.dispose)&&er.func(r.onError)&&er.func(r.onClose)&&er.func(r.onPartialMessage)}e.is=t})(_b=$t.MessageReader||($t.MessageReader={}));var Xi=class{constructor(){this.errorEmitter=new za.Emitter,this.closeEmitter=new za.Emitter,this.partialMessageEmitter=new za.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: ${er.string(t.message)?t.message:"unknown"}`)}};$t.AbstractMessageReader=Xi;var Ya;(function(e){function t(n){let r,i,o,s=new Map,u,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 p of n.contentDecoders)s.set(p.name,p);if(n.contentTypeDecoder!==void 0&&(u=n.contentTypeDecoder,c.set(u.name,u)),n.contentTypeDecoders!==void 0)for(let p of n.contentTypeDecoders)c.set(p.name,p)}return u===void 0&&(u=(0,$a.default)().applicationJson.decoder,c.set(u.name,u)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:u,contentTypeDecoders:c}}e.fromOptions=t})(Ya||(Ya={}));var Va=class extends Xi{constructor(t,n){super(),this.readable=t,this.options=Ya.fromOptions(n),this.buffer=(0,$a.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Pb.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){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."));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error("Content-Length value must be a number."));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)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,$a.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))}};$t.ReadableStreamMessageReader=Va});var yd=A(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.WriteableStreamMessageWriter=Yt.AbstractMessageWriter=Yt.MessageWriter=void 0;var gd=nn(),Ar=Qn(),Db=Ba(),md=Xn(),Rb="Content-Length: ",hd=`\r
36
+ `,Sb;(function(e){function t(n){let r=n;return r&&Ar.func(r.dispose)&&Ar.func(r.onClose)&&Ar.func(r.onError)&&Ar.func(r.write)}e.is=t})(Sb=Yt.MessageWriter||(Yt.MessageWriter={}));var Zi=class{constructor(){this.errorEmitter=new md.Emitter,this.closeEmitter=new md.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: ${Ar.string(t.message)?t.message:"unknown"}`)}};Yt.AbstractMessageWriter=Zi;var Ka;(function(e){function t(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,gd.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,gd.default)().applicationJson.encoder}}e.fromOptions=t})(Ka||(Ka={}));var Ga=class extends Zi{constructor(t,n){super(),this.writable=t,this.options=Ka.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Db.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(Rb,r.byteLength.toString(),hd),i.push(hd),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()}};Yt.WriteableStreamMessageWriter=Ga});var bd=A(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.AbstractMessageBuffer=void 0;var Tb=13,xb=10,wb=`\r
37
+ `,Qa=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 p=this._chunks[r];i=0;t:for(;i<p.length;){switch(p[i]){case Tb:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case xb:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=p.byteLength,r++}if(n!==4)return;let s=this._read(o+i),u=new Map,c=this.toString(s,"ascii").split(wb);if(c.length<2)return u;for(let p=0;p<c.length-2;p++){let g=c[p],b=g.indexOf(":");if(b===-1)throw new Error("Message header must separate key and value using :");let D=g.substr(0,b),R=g.substr(b+1).trim();u.set(t?D.toLowerCase():D,R)}return u}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}};eo.AbstractMessageBuffer=Qa});var Sd=A(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.createMessageConnection=W.ConnectionOptions=W.MessageStrategy=W.CancellationStrategy=W.CancellationSenderStrategy=W.CancellationReceiverStrategy=W.RequestCancellationReceiverStrategy=W.IdCancellationReceiverStrategy=W.ConnectionStrategy=W.ConnectionError=W.ConnectionErrors=W.LogTraceNotification=W.SetTraceNotification=W.TraceFormat=W.TraceValues=W.Trace=W.NullLogger=W.ProgressType=W.ProgressToken=void 0;var vd=nn(),ve=Qn(),$=wa(),Cd=Aa(),qr=Xn(),Ja=Qi(),Or;(function(e){e.type=new $.NotificationType("$/cancelRequest")})(Or||(Or={}));var Pd;(function(e){function t(n){return typeof n=="string"||typeof n=="number"}e.is=t})(Pd=W.ProgressToken||(W.ProgressToken={}));var Nr;(function(e){e.type=new $.NotificationType("$/progress")})(Nr||(Nr={}));var Xa=class{constructor(){}};W.ProgressType=Xa;var Za;(function(e){function t(n){return ve.func(n)}e.is=t})(Za||(Za={}));W.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var ae;(function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"})(ae=W.Trace||(W.Trace={}));var kb;(function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"})(kb=W.TraceValues||(W.TraceValues={}));(function(e){function t(r){if(!ve.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})(ae=W.Trace||(W.Trace={}));var bt;(function(e){e.Text="text",e.JSON="json"})(bt=W.TraceFormat||(W.TraceFormat={}));(function(e){function t(n){return ve.string(n)?(n=n.toLowerCase(),n==="json"?e.JSON:e.Text):e.Text}e.fromString=t})(bt=W.TraceFormat||(W.TraceFormat={}));var _d;(function(e){e.type=new $.NotificationType("$/setTrace")})(_d=W.SetTraceNotification||(W.SetTraceNotification={}));var ec;(function(e){e.type=new $.NotificationType("$/logTrace")})(ec=W.LogTraceNotification||(W.LogTraceNotification={}));var to;(function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"})(to=W.ConnectionErrors||(W.ConnectionErrors={}));var rn=class extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,rn.prototype)}};W.ConnectionError=rn;var Dd;(function(e){function t(n){let r=n;return r&&ve.func(r.cancelUndispatched)}e.is=t})(Dd=W.ConnectionStrategy||(W.ConnectionStrategy={}));var rc;(function(e){function t(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&ve.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ve.func(r.dispose))}e.is=t})(rc=W.IdCancellationReceiverStrategy||(W.IdCancellationReceiverStrategy={}));var Rd;(function(e){function t(n){let r=n;return r&&r.kind==="request"&&ve.func(r.createCancellationTokenSource)&&(r.dispose===void 0||ve.func(r.dispose))}e.is=t})(Rd=W.RequestCancellationReceiverStrategy||(W.RequestCancellationReceiverStrategy={}));var tc;(function(e){e.Message=Object.freeze({createCancellationTokenSource(n){return new Ja.CancellationTokenSource}});function t(n){return rc.is(n)||Rd.is(n)}e.is=t})(tc=W.CancellationReceiverStrategy||(W.CancellationReceiverStrategy={}));var nc;(function(e){e.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Or.type,{id:r})},cleanup(n){}});function t(n){let r=n;return r&&ve.func(r.sendCancellation)&&ve.func(r.cleanup)}e.is=t})(nc=W.CancellationSenderStrategy||(W.CancellationSenderStrategy={}));var ic;(function(e){e.Message=Object.freeze({receiver:tc.Message,sender:nc.Message});function t(n){let r=n;return r&&tc.is(r.receiver)&&nc.is(r.sender)}e.is=t})(ic=W.CancellationStrategy||(W.CancellationStrategy={}));var oc;(function(e){function t(n){let r=n;return r&&ve.func(r.handleMessage)}e.is=t})(oc=W.MessageStrategy||(W.MessageStrategy={}));var Ab;(function(e){function t(n){let r=n;return r&&(ic.is(r.cancellationStrategy)||Dd.is(r.connectionStrategy)||oc.is(r.messageStrategy))}e.is=t})(Ab=W.ConnectionOptions||(W.ConnectionOptions={}));var vt;(function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"})(vt||(vt={}));function qb(e,t,n,r){let i=n!==void 0?n:W.NullLogger,o=0,s=0,u=0,c="2.0",p,g=new Map,b,D=new Map,R=new Map,T,q=new Cd.LinkedMap,B=new Map,j=new Set,_=new Map,v=ae.Off,N=bt.Text,z,Z=vt.New,ue=new qr.Emitter,$e=new qr.Emitter,pt=new qr.Emitter,gt=new qr.Emitter,L=new qr.Emitter,x=r&&r.cancellationStrategy?r.cancellationStrategy:ic.Message;function H(m){if(m===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+m.toString()}function I(m){return m===null?"res-unknown-"+(++u).toString():"res-"+m.toString()}function ie(){return"not-"+(++s).toString()}function X(m,w){$.Message.isRequest(w)?m.set(H(w.id),w):$.Message.isResponse(w)?m.set(I(w.id),w):m.set(ie(),w)}function K(m){}function Ve(){return Z===vt.Listening}function Ae(){return Z===vt.Closed}function ce(){return Z===vt.Disposed}function xt(){(Z===vt.New||Z===vt.Listening)&&(Z=vt.Closed,$e.fire(void 0))}function On(m){ue.fire([m,void 0,void 0])}function G(m){ue.fire(m)}e.onClose(xt),e.onError(On),t.onClose(xt),t.onError(G);function ei(){T||q.size===0||(T=(0,vd.default)().timer.setImmediate(()=>{T=void 0,Jo()}))}function ti(m){$.Message.isRequest(m)?Zo(m):$.Message.isNotification(m)?ts(m):$.Message.isResponse(m)?es(m):gr(m)}function Jo(){if(q.size===0)return;let m=q.shift();try{let w=r?.messageStrategy;oc.is(w)?w.handleMessage(m,ti):ti(m)}finally{ei()}}let Xo=m=>{try{if($.Message.isNotification(m)&&m.method===Or.type.method){let w=m.params.id,E=H(w),F=q.get(E);if($.Message.isRequest(F)){let se=r?.connectionStrategy,he=se&&se.cancelUndispatched?se.cancelUndispatched(F,K):void 0;if(he&&(he.error!==void 0||he.result!==void 0)){q.delete(E),_.delete(w),he.id=F.id,En(he,m.method,Date.now()),t.write(he).catch(()=>i.error("Sending response for canceled message failed."));return}}let le=_.get(w);if(le!==void 0){le.cancel(),mr(m);return}else j.add(w)}X(q,m)}finally{ei()}};function Zo(m){if(ce())return;function w(ee,de,oe){let Re={jsonrpc:c,id:m.id};ee instanceof $.ResponseError?Re.error=ee.toJson():Re.result=ee===void 0?null:ee,En(Re,de,oe),t.write(Re).catch(()=>i.error("Sending response failed."))}function E(ee,de,oe){let Re={jsonrpc:c,id:m.id,error:ee.toJson()};En(Re,de,oe),t.write(Re).catch(()=>i.error("Sending response failed."))}function F(ee,de,oe){ee===void 0&&(ee=null);let Re={jsonrpc:c,id:m.id,result:ee};En(Re,de,oe),t.write(Re).catch(()=>i.error("Sending response failed."))}is(m);let le=g.get(m.method),se,he;le&&(se=le.type,he=le.handler);let ye=Date.now();if(he||p){let ee=m.id??String(Date.now()),de=rc.is(x.receiver)?x.receiver.createCancellationTokenSource(ee):x.receiver.createCancellationTokenSource(m);m.id!==null&&j.has(m.id)&&de.cancel(),m.id!==null&&_.set(ee,de);try{let oe;if(he)if(m.params===void 0){if(se!==void 0&&se.numberOfParams!==0){E(new $.ResponseError($.ErrorCodes.InvalidParams,`Request ${m.method} defines ${se.numberOfParams} params but received none.`),m.method,ye);return}oe=he(de.token)}else if(Array.isArray(m.params)){if(se!==void 0&&se.parameterStructures===$.ParameterStructures.byName){E(new $.ResponseError($.ErrorCodes.InvalidParams,`Request ${m.method} defines parameters by name but received parameters by position`),m.method,ye);return}oe=he(...m.params,de.token)}else{if(se!==void 0&&se.parameterStructures===$.ParameterStructures.byPosition){E(new $.ResponseError($.ErrorCodes.InvalidParams,`Request ${m.method} defines parameters by position but received parameters by name`),m.method,ye);return}oe=he(m.params,de.token)}else p&&(oe=p(m.method,m.params,de.token));let Re=oe;oe?Re.then?Re.then(Le=>{_.delete(ee),w(Le,m.method,ye)},Le=>{_.delete(ee),Le instanceof $.ResponseError?E(Le,m.method,ye):Le&&ve.string(Le.message)?E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed with message: ${Le.message}`),m.method,ye):E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed unexpectedly without providing any details.`),m.method,ye)}):(_.delete(ee),w(oe,m.method,ye)):(_.delete(ee),F(oe,m.method,ye))}catch(oe){_.delete(ee),oe instanceof $.ResponseError?w(oe,m.method,ye):oe&&ve.string(oe.message)?E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed with message: ${oe.message}`),m.method,ye):E(new $.ResponseError($.ErrorCodes.InternalError,`Request ${m.method} failed unexpectedly without providing any details.`),m.method,ye)}}else E(new $.ResponseError($.ErrorCodes.MethodNotFound,`Unhandled method ${m.method}`),m.method,ye)}function es(m){if(!ce())if(m.id===null)m.error?i.error(`Received response message without id: Error is:
38
+ ${JSON.stringify(m.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let w=m.id,E=B.get(w);if(os(m,E),E!==void 0){B.delete(w);try{if(m.error){let F=m.error;E.reject(new $.ResponseError(F.code,F.message,F.data))}else if(m.result!==void 0)E.resolve(m.result);else throw new Error("Should never happen.")}catch(F){F.message?i.error(`Response handler '${E.method}' failed with message: ${F.message}`):i.error(`Response handler '${E.method}' failed unexpectedly.`)}}}}function ts(m){if(ce())return;let w,E;if(m.method===Or.type.method){let F=m.params.id;j.delete(F),mr(m);return}else{let F=D.get(m.method);F&&(E=F.handler,w=F.type)}if(E||b)try{if(mr(m),E)if(m.params===void 0)w!==void 0&&w.numberOfParams!==0&&w.parameterStructures!==$.ParameterStructures.byName&&i.error(`Notification ${m.method} defines ${w.numberOfParams} params but received none.`),E();else if(Array.isArray(m.params)){let F=m.params;m.method===Nr.type.method&&F.length===2&&Pd.is(F[0])?E({token:F[0],value:F[1]}):(w!==void 0&&(w.parameterStructures===$.ParameterStructures.byName&&i.error(`Notification ${m.method} defines parameters by name but received parameters by position`),w.numberOfParams!==m.params.length&&i.error(`Notification ${m.method} defines ${w.numberOfParams} params but received ${F.length} arguments`)),E(...F))}else w!==void 0&&w.parameterStructures===$.ParameterStructures.byPosition&&i.error(`Notification ${m.method} defines parameters by position but received parameters by name`),E(m.params);else b&&b(m.method,m.params)}catch(F){F.message?i.error(`Notification handler '${m.method}' failed with message: ${F.message}`):i.error(`Notification handler '${m.method}' failed unexpectedly.`)}else pt.fire(m)}function gr(m){if(!m){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
39
+ ${JSON.stringify(m,null,4)}`);let w=m;if(ve.string(w.id)||ve.number(w.id)){let E=w.id,F=B.get(E);F&&F.reject(new Error("The received response has neither a result nor an error property."))}}function wt(m){if(m!=null)switch(v){case ae.Verbose:return JSON.stringify(m,null,4);case ae.Compact:return JSON.stringify(m);default:return}}function ns(m){if(!(v===ae.Off||!z))if(N===bt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&m.params&&(w=`Params: ${wt(m.params)}
40
40
 
41
- `),z.log(`Sending request '${m.method} - (${m.id})'.`,w)}else Gt("send-request",m)}function rs(m){if(!(v===ae.Off||!z))if(N===yt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&(m.params?w=`Params: ${xt(m.params)}
41
+ `),z.log(`Sending request '${m.method} - (${m.id})'.`,w)}else Gt("send-request",m)}function rs(m){if(!(v===ae.Off||!z))if(N===bt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&(m.params?w=`Params: ${wt(m.params)}
42
42
 
43
43
  `:w=`No parameters provided.
44
44
 
45
- `),z.log(`Sending notification '${m.method}'.`,w)}else Gt("send-notification",m)}function En(m,w,E){if(!(v===ae.Off||!z))if(N===yt.Text){let F;(v===ae.Verbose||v===ae.Compact)&&(m.error&&m.error.data?F=`Error data: ${xt(m.error.data)}
45
+ `),z.log(`Sending notification '${m.method}'.`,w)}else Gt("send-notification",m)}function En(m,w,E){if(!(v===ae.Off||!z))if(N===bt.Text){let F;(v===ae.Verbose||v===ae.Compact)&&(m.error&&m.error.data?F=`Error data: ${wt(m.error.data)}
46
46
 
47
- `:m.result?F=`Result: ${xt(m.result)}
47
+ `:m.result?F=`Result: ${wt(m.result)}
48
48
 
49
49
  `:m.error===void 0&&(F=`No result returned.
50
50
 
51
- `)),z.log(`Sending response '${w} - (${m.id})'. Processing request took ${Date.now()-E}ms`,F)}else Gt("send-response",m)}function is(m){if(!(v===ae.Off||!z))if(N===yt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&m.params&&(w=`Params: ${xt(m.params)}
51
+ `)),z.log(`Sending response '${w} - (${m.id})'. Processing request took ${Date.now()-E}ms`,F)}else Gt("send-response",m)}function is(m){if(!(v===ae.Off||!z))if(N===bt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&m.params&&(w=`Params: ${wt(m.params)}
52
52
 
53
- `),z.log(`Received request '${m.method} - (${m.id})'.`,w)}else Gt("receive-request",m)}function mr(m){if(!(v===ae.Off||!z||m.method===ec.type.method))if(N===yt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&(m.params?w=`Params: ${xt(m.params)}
53
+ `),z.log(`Received request '${m.method} - (${m.id})'.`,w)}else Gt("receive-request",m)}function mr(m){if(!(v===ae.Off||!z||m.method===ec.type.method))if(N===bt.Text){let w;(v===ae.Verbose||v===ae.Compact)&&(m.params?w=`Params: ${wt(m.params)}
54
54
 
55
55
  `:w=`No parameters provided.
56
56
 
57
- `),z.log(`Received notification '${m.method}'.`,w)}else Gt("receive-notification",m)}function os(m,w){if(!(v===ae.Off||!z))if(N===yt.Text){let E;if((v===ae.Verbose||v===ae.Compact)&&(m.error&&m.error.data?E=`Error data: ${xt(m.error.data)}
57
+ `),z.log(`Received notification '${m.method}'.`,w)}else Gt("receive-notification",m)}function os(m,w){if(!(v===ae.Off||!z))if(N===bt.Text){let E;if((v===ae.Verbose||v===ae.Compact)&&(m.error&&m.error.data?E=`Error data: ${wt(m.error.data)}
58
58
 
59
- `:m.result?E=`Result: ${xt(m.result)}
59
+ `:m.result?E=`Result: ${wt(m.result)}
60
60
 
61
61
  `:m.error===void 0&&(E=`No result returned.
62
62
 
63
- `)),w){let F=m.error?` Request failed: ${m.error.message} (${m.error.code}).`:"";z.log(`Received response '${w.method} - (${m.id})' in ${Date.now()-w.timerStart}ms.${F}`,E)}else z.log(`Received response ${m.id} without active response promise.`,E)}else Gt("receive-response",m)}function Gt(m,w){if(!z||v===ae.Off)return;let E={isLSPMessage:!0,type:m,message:w,timestamp:Date.now()};z.log(E)}function hn(){if(Ae())throw new rn(to.Closed,"Connection is closed.");if(ce())throw new rn(to.Disposed,"Connection is disposed.")}function ss(){if(Ve())throw new rn(to.AlreadyListening,"Connection is already listening")}function as(){if(!Ve())throw new Error("Call listen() first.")}function It(m){return m===void 0?null:m}function ni(m){if(m!==null)return m}function ri(m){return m!=null&&!Array.isArray(m)&&typeof m=="object"}function hr(m,w){switch(m){case $.ParameterStructures.auto:return ri(w)?ni(w):[It(w)];case $.ParameterStructures.byName:if(!ri(w))throw new Error("Received parameters by name but param is not an object literal.");return ni(w);case $.ParameterStructures.byPosition:return[It(w)];default:throw new Error(`Unknown parameter structure ${m.toString()}`)}}function ii(m,w){let E,F=m.numberOfParams;switch(F){case 0:E=void 0;break;case 1:E=hr(m.parameterStructures,w[0]);break;default:E=[];for(let le=0;le<w.length&&le<F;le++)E.push(It(w[le]));if(w.length<F)for(let le=w.length;le<F;le++)E.push(null);break}return E}let Qt={sendNotification:(m,...w)=>{hn();let E,F;if(ve.string(m)){E=m;let se=w[0],he=0,ye=$.ParameterStructures.auto;$.ParameterStructures.is(se)&&(he=1,ye=se);let ee=w.length,de=ee-he;switch(de){case 0:F=void 0;break;case 1:F=hr(ye,w[he]);break;default:if(ye===$.ParameterStructures.byName)throw new Error(`Received ${de} parameters for 'by Name' notification parameter structure.`);F=w.slice(he,ee).map(oe=>It(oe));break}}else{let se=w;E=m.method,F=ii(m,se)}let le={jsonrpc:c,method:E,params:F};return rs(le),t.write(le).catch(se=>{throw i.error("Sending notification failed."),se})},onNotification:(m,w)=>{hn();let E;return ve.func(m)?b=m:w&&(ve.string(m)?(E=m,R.set(m,{type:void 0,handler:w})):(E=m.method,R.set(m.method,{type:m,handler:w}))),{dispose:()=>{E!==void 0?R.delete(E):b=void 0}}},onProgress:(m,w,E)=>{if(D.has(w))throw new Error(`Progress handler for token ${w} already registered`);return D.set(w,E),{dispose:()=>{D.delete(w)}}},sendProgress:(m,w,E)=>Qt.sendNotification(Nr.type,{token:w,value:E}),onUnhandledProgress:pt.event,sendRequest:(m,...w)=>{hn(),as();let E,F,le;if(ve.string(m)){E=m;let ee=w[0],de=w[w.length-1],oe=0,De=$.ParameterStructures.auto;$.ParameterStructures.is(ee)&&(oe=1,De=ee);let Le=w.length;Ja.CancellationToken.is(de)&&(Le=Le-1,le=de);let ot=Le-oe;switch(ot){case 0:F=void 0;break;case 1:F=hr(De,w[oe]);break;default:if(De===$.ParameterStructures.byName)throw new Error(`Received ${ot} parameters for 'by Name' request parameter structure.`);F=w.slice(oe,Le).map(C=>It(C));break}}else{let ee=w;E=m.method,F=ii(m,ee);let de=m.numberOfParams;le=Ja.CancellationToken.is(ee[de])?ee[de]:void 0}let se=o++,he;le&&(he=le.onCancellationRequested(()=>{let ee=x.sender.sendCancellation(Qt,se);return ee===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${se}`),Promise.resolve()):ee.catch(()=>{i.log(`Sending cancellation messages for id ${se} failed`)})}));let ye={jsonrpc:c,id:se,method:E,params:F};return ns(ye),typeof x.sender.enableCancellation=="function"&&x.sender.enableCancellation(ye),new Promise(async(ee,de)=>{let oe=ot=>{ee(ot),x.sender.cleanup(se),he?.dispose()},De=ot=>{de(ot),x.sender.cleanup(se),he?.dispose()},Le={method:E,timerStart:Date.now(),resolve:oe,reject:De};try{await t.write(ye),B.set(se,Le)}catch(ot){throw i.error("Sending request failed."),Le.reject(new $.ResponseError($.ErrorCodes.MessageWriteError,ot.message?ot.message:"Unknown reason")),ot}})},onRequest:(m,w)=>{hn();let E=null;return Za.is(m)?(E=void 0,p=m):ve.string(m)?(E=null,w!==void 0&&(E=m,g.set(m,{handler:w,type:void 0}))):w!==void 0&&(E=m.method,g.set(m.method,{type:m,handler:w})),{dispose:()=>{E!==null&&(E!==void 0?g.delete(E):p=void 0)}}},hasPendingResponse:()=>B.size>0,trace:async(m,w,E)=>{let F=!1,le=yt.Text;E!==void 0&&(ve.boolean(E)?F=E:(F=E.sendNotification||!1,le=E.traceFormat||yt.Text)),v=m,N=le,v===ae.Off?z=void 0:z=w,F&&!Ae()&&!ce()&&await Qt.sendNotification(Pd.type,{value:ae.toString(m)})},onError:ue.event,onClose:$e.event,onUnhandledNotification:ft.event,onDispose:L.event,end:()=>{t.end()},dispose:()=>{if(ce())return;Z=bt.Disposed,L.fire(void 0);let m=new $.ResponseError($.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let w of B.values())w.reject(m);B=new Map,_=new Map,j=new Set,q=new vd.LinkedMap,ve.func(t.dispose)&&t.dispose(),ve.func(e.dispose)&&e.dispose()},listen:()=>{hn(),ss(),Z=bt.Listening,e.listen(Xo)},inspect:()=>{(0,bd.default)().console.log("inspect")}};return Qt.onNotification(ec.type,m=>{if(v===ae.Off||!z)return;let w=v===ae.Verbose||v===ae.Compact;z.log(m.message,w?m.verbose:void 0)}),Qt.onNotification(Nr.type,m=>{let w=D.get(m.token);w?w(m.value):pt.fire(m)}),Qt}W.createMessageConnection=qb});var no=A(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.ProgressType=S.ProgressToken=S.createMessageConnection=S.NullLogger=S.ConnectionOptions=S.ConnectionStrategy=S.AbstractMessageBuffer=S.WriteableStreamMessageWriter=S.AbstractMessageWriter=S.MessageWriter=S.ReadableStreamMessageReader=S.AbstractMessageReader=S.MessageReader=S.SharedArrayReceiverStrategy=S.SharedArraySenderStrategy=S.CancellationToken=S.CancellationTokenSource=S.Emitter=S.Event=S.Disposable=S.LRUCache=S.Touch=S.LinkedMap=S.ParameterStructures=S.NotificationType9=S.NotificationType8=S.NotificationType7=S.NotificationType6=S.NotificationType5=S.NotificationType4=S.NotificationType3=S.NotificationType2=S.NotificationType1=S.NotificationType0=S.NotificationType=S.ErrorCodes=S.ResponseError=S.RequestType9=S.RequestType8=S.RequestType7=S.RequestType6=S.RequestType5=S.RequestType4=S.RequestType3=S.RequestType2=S.RequestType1=S.RequestType0=S.RequestType=S.Message=S.RAL=void 0;S.MessageStrategy=S.CancellationStrategy=S.CancellationSenderStrategy=S.CancellationReceiverStrategy=S.ConnectionError=S.ConnectionErrors=S.LogTraceNotification=S.SetTraceNotification=S.TraceFormat=S.TraceValues=S.Trace=void 0;var ge=wa();Object.defineProperty(S,"Message",{enumerable:!0,get:function(){return ge.Message}});Object.defineProperty(S,"RequestType",{enumerable:!0,get:function(){return ge.RequestType}});Object.defineProperty(S,"RequestType0",{enumerable:!0,get:function(){return ge.RequestType0}});Object.defineProperty(S,"RequestType1",{enumerable:!0,get:function(){return ge.RequestType1}});Object.defineProperty(S,"RequestType2",{enumerable:!0,get:function(){return ge.RequestType2}});Object.defineProperty(S,"RequestType3",{enumerable:!0,get:function(){return ge.RequestType3}});Object.defineProperty(S,"RequestType4",{enumerable:!0,get:function(){return ge.RequestType4}});Object.defineProperty(S,"RequestType5",{enumerable:!0,get:function(){return ge.RequestType5}});Object.defineProperty(S,"RequestType6",{enumerable:!0,get:function(){return ge.RequestType6}});Object.defineProperty(S,"RequestType7",{enumerable:!0,get:function(){return ge.RequestType7}});Object.defineProperty(S,"RequestType8",{enumerable:!0,get:function(){return ge.RequestType8}});Object.defineProperty(S,"RequestType9",{enumerable:!0,get:function(){return ge.RequestType9}});Object.defineProperty(S,"ResponseError",{enumerable:!0,get:function(){return ge.ResponseError}});Object.defineProperty(S,"ErrorCodes",{enumerable:!0,get:function(){return ge.ErrorCodes}});Object.defineProperty(S,"NotificationType",{enumerable:!0,get:function(){return ge.NotificationType}});Object.defineProperty(S,"NotificationType0",{enumerable:!0,get:function(){return ge.NotificationType0}});Object.defineProperty(S,"NotificationType1",{enumerable:!0,get:function(){return ge.NotificationType1}});Object.defineProperty(S,"NotificationType2",{enumerable:!0,get:function(){return ge.NotificationType2}});Object.defineProperty(S,"NotificationType3",{enumerable:!0,get:function(){return ge.NotificationType3}});Object.defineProperty(S,"NotificationType4",{enumerable:!0,get:function(){return ge.NotificationType4}});Object.defineProperty(S,"NotificationType5",{enumerable:!0,get:function(){return ge.NotificationType5}});Object.defineProperty(S,"NotificationType6",{enumerable:!0,get:function(){return ge.NotificationType6}});Object.defineProperty(S,"NotificationType7",{enumerable:!0,get:function(){return ge.NotificationType7}});Object.defineProperty(S,"NotificationType8",{enumerable:!0,get:function(){return ge.NotificationType8}});Object.defineProperty(S,"NotificationType9",{enumerable:!0,get:function(){return ge.NotificationType9}});Object.defineProperty(S,"ParameterStructures",{enumerable:!0,get:function(){return ge.ParameterStructures}});var sc=Aa();Object.defineProperty(S,"LinkedMap",{enumerable:!0,get:function(){return sc.LinkedMap}});Object.defineProperty(S,"LRUCache",{enumerable:!0,get:function(){return sc.LRUCache}});Object.defineProperty(S,"Touch",{enumerable:!0,get:function(){return sc.Touch}});var Nb=ld();Object.defineProperty(S,"Disposable",{enumerable:!0,get:function(){return Nb.Disposable}});var Sd=Xn();Object.defineProperty(S,"Event",{enumerable:!0,get:function(){return Sd.Event}});Object.defineProperty(S,"Emitter",{enumerable:!0,get:function(){return Sd.Emitter}});var Td=Qi();Object.defineProperty(S,"CancellationTokenSource",{enumerable:!0,get:function(){return Td.CancellationTokenSource}});Object.defineProperty(S,"CancellationToken",{enumerable:!0,get:function(){return Td.CancellationToken}});var xd=dd();Object.defineProperty(S,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return xd.SharedArraySenderStrategy}});Object.defineProperty(S,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return xd.SharedArrayReceiverStrategy}});var ac=fd();Object.defineProperty(S,"MessageReader",{enumerable:!0,get:function(){return ac.MessageReader}});Object.defineProperty(S,"AbstractMessageReader",{enumerable:!0,get:function(){return ac.AbstractMessageReader}});Object.defineProperty(S,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return ac.ReadableStreamMessageReader}});var cc=hd();Object.defineProperty(S,"MessageWriter",{enumerable:!0,get:function(){return cc.MessageWriter}});Object.defineProperty(S,"AbstractMessageWriter",{enumerable:!0,get:function(){return cc.AbstractMessageWriter}});Object.defineProperty(S,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return cc.WriteableStreamMessageWriter}});var Ob=yd();Object.defineProperty(S,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Ob.AbstractMessageBuffer}});var He=Dd();Object.defineProperty(S,"ConnectionStrategy",{enumerable:!0,get:function(){return He.ConnectionStrategy}});Object.defineProperty(S,"ConnectionOptions",{enumerable:!0,get:function(){return He.ConnectionOptions}});Object.defineProperty(S,"NullLogger",{enumerable:!0,get:function(){return He.NullLogger}});Object.defineProperty(S,"createMessageConnection",{enumerable:!0,get:function(){return He.createMessageConnection}});Object.defineProperty(S,"ProgressToken",{enumerable:!0,get:function(){return He.ProgressToken}});Object.defineProperty(S,"ProgressType",{enumerable:!0,get:function(){return He.ProgressType}});Object.defineProperty(S,"Trace",{enumerable:!0,get:function(){return He.Trace}});Object.defineProperty(S,"TraceValues",{enumerable:!0,get:function(){return He.TraceValues}});Object.defineProperty(S,"TraceFormat",{enumerable:!0,get:function(){return He.TraceFormat}});Object.defineProperty(S,"SetTraceNotification",{enumerable:!0,get:function(){return He.SetTraceNotification}});Object.defineProperty(S,"LogTraceNotification",{enumerable:!0,get:function(){return He.LogTraceNotification}});Object.defineProperty(S,"ConnectionErrors",{enumerable:!0,get:function(){return He.ConnectionErrors}});Object.defineProperty(S,"ConnectionError",{enumerable:!0,get:function(){return He.ConnectionError}});Object.defineProperty(S,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return He.CancellationReceiverStrategy}});Object.defineProperty(S,"CancellationSenderStrategy",{enumerable:!0,get:function(){return He.CancellationSenderStrategy}});Object.defineProperty(S,"CancellationStrategy",{enumerable:!0,get:function(){return He.CancellationStrategy}});Object.defineProperty(S,"MessageStrategy",{enumerable:!0,get:function(){return He.MessageStrategy}});var Eb=nn();S.RAL=Eb.default});var kd=A(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var qt=no(),tr=class extends qt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return tr.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)}};tr.emptyBuffer=new Uint8Array(0);var uc=class{constructor(t){this.socket=t,this._onData=new qt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,qt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),qt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),qt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),qt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},lc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),qt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),qt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),qt.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()}},Mb=new TextEncoder,wd=Object.freeze({messageBuffer:Object.freeze({create:e=>new tr(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(Mb.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 uc(e),asWritableStream:e=>new lc(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 wd}(function(e){function t(){qt.RAL.install(wd)}e.install=t})(dc||(dc={}));fc.default=dc});var kn=A(it=>{"use strict";var jb=it&&it.__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]}),Lb=it&&it.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jb(t,e,n)};Object.defineProperty(it,"__esModule",{value:!0});it.createMessageConnection=it.BrowserMessageWriter=it.BrowserMessageReader=void 0;var Ib=kd();Ib.default.install();var nr=no();Lb(no(),it);var pc=class extends nr.AbstractMessageReader{constructor(t){super(),this._onData=new nr.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)}};it.BrowserMessageReader=pc;var gc=class extends nr.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(){}};it.BrowserMessageWriter=gc;function Fb(e,t,n,r){return n===void 0&&(n=nr.NullLogger),nr.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,nr.createMessageConnection)(e,t,n,r)}it.createMessageConnection=Fb});var mc=A((qD,Ad)=>{"use strict";Ad.exports=kn()});var io=A((qd,ro)=>{(function(e){if(typeof ro=="object"&&typeof ro.exports=="object"){var t=e(iu,qd);t!==void 0&&(ro.exports=t)}else typeof define=="function"&&define.amd&&define(["require","exports"],e)})(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocument=t.EOL=t.WorkspaceFolder=t.InlayHint=t.InlayHintLabelPart=t.InlayHintKind=t.InlineValueContext=t.InlineValueEvaluatableExpression=t.InlineValueVariableLookup=t.InlineValueText=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionTriggerKind=t.CodeActionKind=t.DocumentSymbol=t.WorkspaceSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.CompletionItemLabelDetails=t.InsertTextMode=t.InsertReplaceEdit=t.CompletionItemTag=t.InsertTextFormat=t.CompletionItemKind=t.MarkupContent=t.MarkupKind=t.TextDocumentItem=t.OptionalVersionedTextDocumentIdentifier=t.VersionedTextDocumentIdentifier=t.TextDocumentIdentifier=t.WorkspaceChange=t.WorkspaceEdit=t.DeleteFile=t.RenameFile=t.CreateFile=t.TextDocumentEdit=t.AnnotatedTextEdit=t.ChangeAnnotationIdentifier=t.ChangeAnnotation=t.TextEdit=t.Command=t.Diagnostic=t.CodeDescription=t.DiagnosticTag=t.DiagnosticSeverity=t.DiagnosticRelatedInformation=t.FoldingRange=t.FoldingRangeKind=t.ColorPresentation=t.ColorInformation=t.Color=t.LocationLink=t.Location=t.Range=t.Position=t.uinteger=t.integer=t.URI=t.DocumentUri=void 0;var n;(function(l){function h(y){return typeof y=="string"}l.is=h})(n=t.DocumentUri||(t.DocumentUri={}));var r;(function(l){function h(y){return typeof y=="string"}l.is=h})(r=t.URI||(t.URI={}));var i;(function(l){l.MIN_VALUE=-2147483648,l.MAX_VALUE=2147483647;function h(y){return typeof y=="number"&&l.MIN_VALUE<=y&&y<=l.MAX_VALUE}l.is=h})(i=t.integer||(t.integer={}));var o;(function(l){l.MIN_VALUE=0,l.MAX_VALUE=2147483647;function h(y){return typeof y=="number"&&l.MIN_VALUE<=y&&y<=l.MAX_VALUE}l.is=h})(o=t.uinteger||(t.uinteger={}));var s;(function(l){function h(f,a){return f===Number.MAX_VALUE&&(f=o.MAX_VALUE),a===Number.MAX_VALUE&&(a=o.MAX_VALUE),{line:f,character:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.uinteger(a.line)&&C.uinteger(a.character)}l.is=y})(s=t.Position||(t.Position={}));var u;(function(l){function h(f,a,P,k){if(C.uinteger(f)&&C.uinteger(a)&&C.uinteger(P)&&C.uinteger(k))return{start:s.create(f,a),end:s.create(P,k)};if(s.is(f)&&s.is(a))return{start:f,end:a};throw new Error("Range#create called with invalid arguments[".concat(f,", ").concat(a,", ").concat(P,", ").concat(k,"]"))}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&s.is(a.start)&&s.is(a.end)}l.is=y})(u=t.Range||(t.Range={}));var c;(function(l){function h(f,a){return{uri:f,range:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.range)&&(C.string(a.uri)||C.undefined(a.uri))}l.is=y})(c=t.Location||(t.Location={}));var p;(function(l){function h(f,a,P,k){return{targetUri:f,targetRange:a,targetSelectionRange:P,originSelectionRange:k}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.targetRange)&&C.string(a.targetUri)&&u.is(a.targetSelectionRange)&&(u.is(a.originSelectionRange)||C.undefined(a.originSelectionRange))}l.is=y})(p=t.LocationLink||(t.LocationLink={}));var g;(function(l){function h(f,a,P,k){return{red:f,green:a,blue:P,alpha:k}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.numberRange(a.red,0,1)&&C.numberRange(a.green,0,1)&&C.numberRange(a.blue,0,1)&&C.numberRange(a.alpha,0,1)}l.is=y})(g=t.Color||(t.Color={}));var b;(function(l){function h(f,a){return{range:f,color:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.range)&&g.is(a.color)}l.is=y})(b=t.ColorInformation||(t.ColorInformation={}));var R;(function(l){function h(f,a,P){return{label:f,textEdit:a,additionalTextEdits:P}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.string(a.label)&&(C.undefined(a.textEdit)||z.is(a))&&(C.undefined(a.additionalTextEdits)||C.typedArray(a.additionalTextEdits,z.is))}l.is=y})(R=t.ColorPresentation||(t.ColorPresentation={}));var D;(function(l){l.Comment="comment",l.Imports="imports",l.Region="region"})(D=t.FoldingRangeKind||(t.FoldingRangeKind={}));var T;(function(l){function h(f,a,P,k,Q,_e){var fe={startLine:f,endLine:a};return C.defined(P)&&(fe.startCharacter=P),C.defined(k)&&(fe.endCharacter=k),C.defined(Q)&&(fe.kind=Q),C.defined(_e)&&(fe.collapsedText=_e),fe}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.uinteger(a.startLine)&&C.uinteger(a.startLine)&&(C.undefined(a.startCharacter)||C.uinteger(a.startCharacter))&&(C.undefined(a.endCharacter)||C.uinteger(a.endCharacter))&&(C.undefined(a.kind)||C.string(a.kind))}l.is=y})(T=t.FoldingRange||(t.FoldingRange={}));var q;(function(l){function h(f,a){return{location:f,message:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&c.is(a.location)&&C.string(a.message)}l.is=y})(q=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var B;(function(l){l.Error=1,l.Warning=2,l.Information=3,l.Hint=4})(B=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var j;(function(l){l.Unnecessary=1,l.Deprecated=2})(j=t.DiagnosticTag||(t.DiagnosticTag={}));var _;(function(l){function h(y){var f=y;return C.objectLiteral(f)&&C.string(f.href)}l.is=h})(_=t.CodeDescription||(t.CodeDescription={}));var v;(function(l){function h(f,a,P,k,Q,_e){var fe={range:f,message:a};return C.defined(P)&&(fe.severity=P),C.defined(k)&&(fe.code=k),C.defined(Q)&&(fe.source=Q),C.defined(_e)&&(fe.relatedInformation=_e),fe}l.create=h;function y(f){var a,P=f;return C.defined(P)&&u.is(P.range)&&C.string(P.message)&&(C.number(P.severity)||C.undefined(P.severity))&&(C.integer(P.code)||C.string(P.code)||C.undefined(P.code))&&(C.undefined(P.codeDescription)||C.string((a=P.codeDescription)===null||a===void 0?void 0:a.href))&&(C.string(P.source)||C.undefined(P.source))&&(C.undefined(P.relatedInformation)||C.typedArray(P.relatedInformation,q.is))}l.is=y})(v=t.Diagnostic||(t.Diagnostic={}));var N;(function(l){function h(f,a){for(var P=[],k=2;k<arguments.length;k++)P[k-2]=arguments[k];var Q={title:f,command:a};return C.defined(P)&&P.length>0&&(Q.arguments=P),Q}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.title)&&C.string(a.command)}l.is=y})(N=t.Command||(t.Command={}));var z;(function(l){function h(P,k){return{range:P,newText:k}}l.replace=h;function y(P,k){return{range:{start:P,end:P},newText:k}}l.insert=y;function f(P){return{range:P,newText:""}}l.del=f;function a(P){var k=P;return C.objectLiteral(k)&&C.string(k.newText)&&u.is(k.range)}l.is=a})(z=t.TextEdit||(t.TextEdit={}));var Z;(function(l){function h(f,a,P){var k={label:f};return a!==void 0&&(k.needsConfirmation=a),P!==void 0&&(k.description=P),k}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.string(a.label)&&(C.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(C.string(a.description)||a.description===void 0)}l.is=y})(Z=t.ChangeAnnotation||(t.ChangeAnnotation={}));var ue;(function(l){function h(y){var f=y;return C.string(f)}l.is=h})(ue=t.ChangeAnnotationIdentifier||(t.ChangeAnnotationIdentifier={}));var $e;(function(l){function h(P,k,Q){return{range:P,newText:k,annotationId:Q}}l.replace=h;function y(P,k,Q){return{range:{start:P,end:P},newText:k,annotationId:Q}}l.insert=y;function f(P,k){return{range:P,newText:"",annotationId:k}}l.del=f;function a(P){var k=P;return z.is(k)&&(Z.is(k.annotationId)||ue.is(k.annotationId))}l.is=a})($e=t.AnnotatedTextEdit||(t.AnnotatedTextEdit={}));var ft;(function(l){function h(f,a){return{textDocument:f,edits:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&Ae.is(a.textDocument)&&Array.isArray(a.edits)}l.is=y})(ft=t.TextDocumentEdit||(t.TextDocumentEdit={}));var pt;(function(l){function h(f,a,P){var k={kind:"create",uri:f};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(k.options=a),P!==void 0&&(k.annotationId=P),k}l.create=h;function y(f){var a=f;return a&&a.kind==="create"&&C.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||C.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||C.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||ue.is(a.annotationId))}l.is=y})(pt=t.CreateFile||(t.CreateFile={}));var L;(function(l){function h(f,a,P,k){var Q={kind:"rename",oldUri:f,newUri:a};return P!==void 0&&(P.overwrite!==void 0||P.ignoreIfExists!==void 0)&&(Q.options=P),k!==void 0&&(Q.annotationId=k),Q}l.create=h;function y(f){var a=f;return a&&a.kind==="rename"&&C.string(a.oldUri)&&C.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||C.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||C.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||ue.is(a.annotationId))}l.is=y})(L=t.RenameFile||(t.RenameFile={}));var x;(function(l){function h(f,a,P){var k={kind:"delete",uri:f};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(k.options=a),P!==void 0&&(k.annotationId=P),k}l.create=h;function y(f){var a=f;return a&&a.kind==="delete"&&C.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||C.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||C.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||ue.is(a.annotationId))}l.is=y})(x=t.DeleteFile||(t.DeleteFile={}));var H;(function(l){function h(y){var f=y;return f&&(f.changes!==void 0||f.documentChanges!==void 0)&&(f.documentChanges===void 0||f.documentChanges.every(function(a){return C.string(a.kind)?pt.is(a)||L.is(a)||x.is(a):ft.is(a)}))}l.is=h})(H=t.WorkspaceEdit||(t.WorkspaceEdit={}));var I=function(){function l(h,y){this.edits=h,this.changeAnnotations=y}return l.prototype.insert=function(h,y,f){var a,P;if(f===void 0?a=z.insert(h,y):ue.is(f)?(P=f,a=$e.insert(h,y,f)):(this.assertChangeAnnotations(this.changeAnnotations),P=this.changeAnnotations.manage(f),a=$e.insert(h,y,P)),this.edits.push(a),P!==void 0)return P},l.prototype.replace=function(h,y,f){var a,P;if(f===void 0?a=z.replace(h,y):ue.is(f)?(P=f,a=$e.replace(h,y,f)):(this.assertChangeAnnotations(this.changeAnnotations),P=this.changeAnnotations.manage(f),a=$e.replace(h,y,P)),this.edits.push(a),P!==void 0)return P},l.prototype.delete=function(h,y){var f,a;if(y===void 0?f=z.del(h):ue.is(y)?(a=y,f=$e.del(h,y)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(y),f=$e.del(h,a)),this.edits.push(f),a!==void 0)return a},l.prototype.add=function(h){this.edits.push(h)},l.prototype.all=function(){return this.edits},l.prototype.clear=function(){this.edits.splice(0,this.edits.length)},l.prototype.assertChangeAnnotations=function(h){if(h===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},l}(),ie=function(){function l(h){this._annotations=h===void 0?Object.create(null):h,this._counter=0,this._size=0}return l.prototype.all=function(){return this._annotations},Object.defineProperty(l.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),l.prototype.manage=function(h,y){var f;if(ue.is(h)?f=h:(f=this.nextId(),y=h),this._annotations[f]!==void 0)throw new Error("Id ".concat(f," is already in use."));if(y===void 0)throw new Error("No annotation provided for id ".concat(f));return this._annotations[f]=y,this._size++,f},l.prototype.nextId=function(){return this._counter++,this._counter.toString()},l}(),X=function(){function l(h){var y=this;this._textEditChanges=Object.create(null),h!==void 0?(this._workspaceEdit=h,h.documentChanges?(this._changeAnnotations=new ie(h.changeAnnotations),h.changeAnnotations=this._changeAnnotations.all(),h.documentChanges.forEach(function(f){if(ft.is(f)){var a=new I(f.edits,y._changeAnnotations);y._textEditChanges[f.textDocument.uri]=a}})):h.changes&&Object.keys(h.changes).forEach(function(f){var a=new I(h.changes[f]);y._textEditChanges[f]=a})):this._workspaceEdit={}}return Object.defineProperty(l.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),l.prototype.getTextEditChange=function(h){if(Ae.is(h)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var y={uri:h.uri,version:h.version},f=this._textEditChanges[y.uri];if(!f){var a=[],P={textDocument:y,edits:a};this._workspaceEdit.documentChanges.push(P),f=new I(a,this._changeAnnotations),this._textEditChanges[y.uri]=f}return f}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var f=this._textEditChanges[h];if(!f){var a=[];this._workspaceEdit.changes[h]=a,f=new I(a),this._textEditChanges[h]=f}return f}},l.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},l.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},l.prototype.createFile=function(h,y,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Z.is(y)||ue.is(y)?a=y:f=y;var P,k;if(a===void 0?P=pt.create(h,f):(k=ue.is(a)?a:this._changeAnnotations.manage(a),P=pt.create(h,f,k)),this._workspaceEdit.documentChanges.push(P),k!==void 0)return k},l.prototype.renameFile=function(h,y,f,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var P;Z.is(f)||ue.is(f)?P=f:a=f;var k,Q;if(P===void 0?k=L.create(h,y,a):(Q=ue.is(P)?P:this._changeAnnotations.manage(P),k=L.create(h,y,a,Q)),this._workspaceEdit.documentChanges.push(k),Q!==void 0)return Q},l.prototype.deleteFile=function(h,y,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Z.is(y)||ue.is(y)?a=y:f=y;var P,k;if(a===void 0?P=x.create(h,f):(k=ue.is(a)?a:this._changeAnnotations.manage(a),P=x.create(h,f,k)),this._workspaceEdit.documentChanges.push(P),k!==void 0)return k},l}();t.WorkspaceChange=X;var K;(function(l){function h(f){return{uri:f}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)}l.is=y})(K=t.TextDocumentIdentifier||(t.TextDocumentIdentifier={}));var Ve;(function(l){function h(f,a){return{uri:f,version:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)&&C.integer(a.version)}l.is=y})(Ve=t.VersionedTextDocumentIdentifier||(t.VersionedTextDocumentIdentifier={}));var Ae;(function(l){function h(f,a){return{uri:f,version:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)&&(a.version===null||C.integer(a.version))}l.is=y})(Ae=t.OptionalVersionedTextDocumentIdentifier||(t.OptionalVersionedTextDocumentIdentifier={}));var ce;(function(l){function h(f,a,P,k){return{uri:f,languageId:a,version:P,text:k}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)&&C.string(a.languageId)&&C.integer(a.version)&&C.string(a.text)}l.is=y})(ce=t.TextDocumentItem||(t.TextDocumentItem={}));var Tt;(function(l){l.PlainText="plaintext",l.Markdown="markdown";function h(y){var f=y;return f===l.PlainText||f===l.Markdown}l.is=h})(Tt=t.MarkupKind||(t.MarkupKind={}));var On;(function(l){function h(y){var f=y;return C.objectLiteral(y)&&Tt.is(f.kind)&&C.string(f.value)}l.is=h})(On=t.MarkupContent||(t.MarkupContent={}));var G;(function(l){l.Text=1,l.Method=2,l.Function=3,l.Constructor=4,l.Field=5,l.Variable=6,l.Class=7,l.Interface=8,l.Module=9,l.Property=10,l.Unit=11,l.Value=12,l.Enum=13,l.Keyword=14,l.Snippet=15,l.Color=16,l.File=17,l.Reference=18,l.Folder=19,l.EnumMember=20,l.Constant=21,l.Struct=22,l.Event=23,l.Operator=24,l.TypeParameter=25})(G=t.CompletionItemKind||(t.CompletionItemKind={}));var ei;(function(l){l.PlainText=1,l.Snippet=2})(ei=t.InsertTextFormat||(t.InsertTextFormat={}));var ti;(function(l){l.Deprecated=1})(ti=t.CompletionItemTag||(t.CompletionItemTag={}));var Jo;(function(l){function h(f,a,P){return{newText:f,insert:a,replace:P}}l.create=h;function y(f){var a=f;return a&&C.string(a.newText)&&u.is(a.insert)&&u.is(a.replace)}l.is=y})(Jo=t.InsertReplaceEdit||(t.InsertReplaceEdit={}));var Xo;(function(l){l.asIs=1,l.adjustIndentation=2})(Xo=t.InsertTextMode||(t.InsertTextMode={}));var Zo;(function(l){function h(y){var f=y;return f&&(C.string(f.detail)||f.detail===void 0)&&(C.string(f.description)||f.description===void 0)}l.is=h})(Zo=t.CompletionItemLabelDetails||(t.CompletionItemLabelDetails={}));var es;(function(l){function h(y){return{label:y}}l.create=h})(es=t.CompletionItem||(t.CompletionItem={}));var ts;(function(l){function h(y,f){return{items:y||[],isIncomplete:!!f}}l.create=h})(ts=t.CompletionList||(t.CompletionList={}));var gr;(function(l){function h(f){return f.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}l.fromPlainText=h;function y(f){var a=f;return C.string(a)||C.objectLiteral(a)&&C.string(a.language)&&C.string(a.value)}l.is=y})(gr=t.MarkedString||(t.MarkedString={}));var xt;(function(l){function h(y){var f=y;return!!f&&C.objectLiteral(f)&&(On.is(f.contents)||gr.is(f.contents)||C.typedArray(f.contents,gr.is))&&(y.range===void 0||u.is(y.range))}l.is=h})(xt=t.Hover||(t.Hover={}));var ns;(function(l){function h(y,f){return f?{label:y,documentation:f}:{label:y}}l.create=h})(ns=t.ParameterInformation||(t.ParameterInformation={}));var rs;(function(l){function h(y,f){for(var a=[],P=2;P<arguments.length;P++)a[P-2]=arguments[P];var k={label:y};return C.defined(f)&&(k.documentation=f),C.defined(a)?k.parameters=a:k.parameters=[],k}l.create=h})(rs=t.SignatureInformation||(t.SignatureInformation={}));var En;(function(l){l.Text=1,l.Read=2,l.Write=3})(En=t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var is;(function(l){function h(y,f){var a={range:y};return C.number(f)&&(a.kind=f),a}l.create=h})(is=t.DocumentHighlight||(t.DocumentHighlight={}));var mr;(function(l){l.File=1,l.Module=2,l.Namespace=3,l.Package=4,l.Class=5,l.Method=6,l.Property=7,l.Field=8,l.Constructor=9,l.Enum=10,l.Interface=11,l.Function=12,l.Variable=13,l.Constant=14,l.String=15,l.Number=16,l.Boolean=17,l.Array=18,l.Object=19,l.Key=20,l.Null=21,l.EnumMember=22,l.Struct=23,l.Event=24,l.Operator=25,l.TypeParameter=26})(mr=t.SymbolKind||(t.SymbolKind={}));var os;(function(l){l.Deprecated=1})(os=t.SymbolTag||(t.SymbolTag={}));var Gt;(function(l){function h(y,f,a,P,k){var Q={name:y,kind:f,location:{uri:P,range:a}};return k&&(Q.containerName=k),Q}l.create=h})(Gt=t.SymbolInformation||(t.SymbolInformation={}));var hn;(function(l){function h(y,f,a,P){return P!==void 0?{name:y,kind:f,location:{uri:a,range:P}}:{name:y,kind:f,location:{uri:a}}}l.create=h})(hn=t.WorkspaceSymbol||(t.WorkspaceSymbol={}));var ss;(function(l){function h(f,a,P,k,Q,_e){var fe={name:f,detail:a,kind:P,range:k,selectionRange:Q};return _e!==void 0&&(fe.children=_e),fe}l.create=h;function y(f){var a=f;return a&&C.string(a.name)&&C.number(a.kind)&&u.is(a.range)&&u.is(a.selectionRange)&&(a.detail===void 0||C.string(a.detail))&&(a.deprecated===void 0||C.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}l.is=y})(ss=t.DocumentSymbol||(t.DocumentSymbol={}));var as;(function(l){l.Empty="",l.QuickFix="quickfix",l.Refactor="refactor",l.RefactorExtract="refactor.extract",l.RefactorInline="refactor.inline",l.RefactorRewrite="refactor.rewrite",l.Source="source",l.SourceOrganizeImports="source.organizeImports",l.SourceFixAll="source.fixAll"})(as=t.CodeActionKind||(t.CodeActionKind={}));var It;(function(l){l.Invoked=1,l.Automatic=2})(It=t.CodeActionTriggerKind||(t.CodeActionTriggerKind={}));var ni;(function(l){function h(f,a,P){var k={diagnostics:f};return a!=null&&(k.only=a),P!=null&&(k.triggerKind=P),k}l.create=h;function y(f){var a=f;return C.defined(a)&&C.typedArray(a.diagnostics,v.is)&&(a.only===void 0||C.typedArray(a.only,C.string))&&(a.triggerKind===void 0||a.triggerKind===It.Invoked||a.triggerKind===It.Automatic)}l.is=y})(ni=t.CodeActionContext||(t.CodeActionContext={}));var ri;(function(l){function h(f,a,P){var k={title:f},Q=!0;return typeof a=="string"?(Q=!1,k.kind=a):N.is(a)?k.command=a:k.edit=a,Q&&P!==void 0&&(k.kind=P),k}l.create=h;function y(f){var a=f;return a&&C.string(a.title)&&(a.diagnostics===void 0||C.typedArray(a.diagnostics,v.is))&&(a.kind===void 0||C.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||N.is(a.command))&&(a.isPreferred===void 0||C.boolean(a.isPreferred))&&(a.edit===void 0||H.is(a.edit))}l.is=y})(ri=t.CodeAction||(t.CodeAction={}));var hr;(function(l){function h(f,a){var P={range:f};return C.defined(a)&&(P.data=a),P}l.create=h;function y(f){var a=f;return C.defined(a)&&u.is(a.range)&&(C.undefined(a.command)||N.is(a.command))}l.is=y})(hr=t.CodeLens||(t.CodeLens={}));var ii;(function(l){function h(f,a){return{tabSize:f,insertSpaces:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.uinteger(a.tabSize)&&C.boolean(a.insertSpaces)}l.is=y})(ii=t.FormattingOptions||(t.FormattingOptions={}));var Qt;(function(l){function h(f,a,P){return{range:f,target:a,data:P}}l.create=h;function y(f){var a=f;return C.defined(a)&&u.is(a.range)&&(C.undefined(a.target)||C.string(a.target))}l.is=y})(Qt=t.DocumentLink||(t.DocumentLink={}));var m;(function(l){function h(f,a){return{range:f,parent:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.range)&&(a.parent===void 0||l.is(a.parent))}l.is=y})(m=t.SelectionRange||(t.SelectionRange={}));var w;(function(l){l.namespace="namespace",l.type="type",l.class="class",l.enum="enum",l.interface="interface",l.struct="struct",l.typeParameter="typeParameter",l.parameter="parameter",l.variable="variable",l.property="property",l.enumMember="enumMember",l.event="event",l.function="function",l.method="method",l.macro="macro",l.keyword="keyword",l.modifier="modifier",l.comment="comment",l.string="string",l.number="number",l.regexp="regexp",l.operator="operator",l.decorator="decorator"})(w=t.SemanticTokenTypes||(t.SemanticTokenTypes={}));var E;(function(l){l.declaration="declaration",l.definition="definition",l.readonly="readonly",l.static="static",l.deprecated="deprecated",l.abstract="abstract",l.async="async",l.modification="modification",l.documentation="documentation",l.defaultLibrary="defaultLibrary"})(E=t.SemanticTokenModifiers||(t.SemanticTokenModifiers={}));var F;(function(l){function h(y){var f=y;return C.objectLiteral(f)&&(f.resultId===void 0||typeof f.resultId=="string")&&Array.isArray(f.data)&&(f.data.length===0||typeof f.data[0]=="number")}l.is=h})(F=t.SemanticTokens||(t.SemanticTokens={}));var le;(function(l){function h(f,a){return{range:f,text:a}}l.create=h;function y(f){var a=f;return a!=null&&u.is(a.range)&&C.string(a.text)}l.is=y})(le=t.InlineValueText||(t.InlineValueText={}));var se;(function(l){function h(f,a,P){return{range:f,variableName:a,caseSensitiveLookup:P}}l.create=h;function y(f){var a=f;return a!=null&&u.is(a.range)&&C.boolean(a.caseSensitiveLookup)&&(C.string(a.variableName)||a.variableName===void 0)}l.is=y})(se=t.InlineValueVariableLookup||(t.InlineValueVariableLookup={}));var he;(function(l){function h(f,a){return{range:f,expression:a}}l.create=h;function y(f){var a=f;return a!=null&&u.is(a.range)&&(C.string(a.expression)||a.expression===void 0)}l.is=y})(he=t.InlineValueEvaluatableExpression||(t.InlineValueEvaluatableExpression={}));var ye;(function(l){function h(f,a){return{frameId:f,stoppedLocation:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&u.is(f.stoppedLocation)}l.is=y})(ye=t.InlineValueContext||(t.InlineValueContext={}));var ee;(function(l){l.Type=1,l.Parameter=2;function h(y){return y===1||y===2}l.is=h})(ee=t.InlayHintKind||(t.InlayHintKind={}));var de;(function(l){function h(f){return{value:f}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&(a.tooltip===void 0||C.string(a.tooltip)||On.is(a.tooltip))&&(a.location===void 0||c.is(a.location))&&(a.command===void 0||N.is(a.command))}l.is=y})(de=t.InlayHintLabelPart||(t.InlayHintLabelPart={}));var oe;(function(l){function h(f,a,P){var k={position:f,label:a};return P!==void 0&&(k.kind=P),k}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&s.is(a.position)&&(C.string(a.label)||C.typedArray(a.label,de.is))&&(a.kind===void 0||ee.is(a.kind))&&a.textEdits===void 0||C.typedArray(a.textEdits,z.is)&&(a.tooltip===void 0||C.string(a.tooltip)||On.is(a.tooltip))&&(a.paddingLeft===void 0||C.boolean(a.paddingLeft))&&(a.paddingRight===void 0||C.boolean(a.paddingRight))}l.is=y})(oe=t.InlayHint||(t.InlayHint={}));var De;(function(l){function h(y){var f=y;return C.objectLiteral(f)&&r.is(f.uri)&&C.string(f.name)}l.is=h})(De=t.WorkspaceFolder||(t.WorkspaceFolder={})),t.EOL=[`
63
+ `)),w){let F=m.error?` Request failed: ${m.error.message} (${m.error.code}).`:"";z.log(`Received response '${w.method} - (${m.id})' in ${Date.now()-w.timerStart}ms.${F}`,E)}else z.log(`Received response ${m.id} without active response promise.`,E)}else Gt("receive-response",m)}function Gt(m,w){if(!z||v===ae.Off)return;let E={isLSPMessage:!0,type:m,message:w,timestamp:Date.now()};z.log(E)}function hn(){if(Ae())throw new rn(to.Closed,"Connection is closed.");if(ce())throw new rn(to.Disposed,"Connection is disposed.")}function ss(){if(Ve())throw new rn(to.AlreadyListening,"Connection is already listening")}function as(){if(!Ve())throw new Error("Call listen() first.")}function Ft(m){return m===void 0?null:m}function ni(m){if(m!==null)return m}function ri(m){return m!=null&&!Array.isArray(m)&&typeof m=="object"}function hr(m,w){switch(m){case $.ParameterStructures.auto:return ri(w)?ni(w):[Ft(w)];case $.ParameterStructures.byName:if(!ri(w))throw new Error("Received parameters by name but param is not an object literal.");return ni(w);case $.ParameterStructures.byPosition:return[Ft(w)];default:throw new Error(`Unknown parameter structure ${m.toString()}`)}}function ii(m,w){let E,F=m.numberOfParams;switch(F){case 0:E=void 0;break;case 1:E=hr(m.parameterStructures,w[0]);break;default:E=[];for(let le=0;le<w.length&&le<F;le++)E.push(Ft(w[le]));if(w.length<F)for(let le=w.length;le<F;le++)E.push(null);break}return E}let Qt={sendNotification:(m,...w)=>{hn();let E,F;if(ve.string(m)){E=m;let se=w[0],he=0,ye=$.ParameterStructures.auto;$.ParameterStructures.is(se)&&(he=1,ye=se);let ee=w.length,de=ee-he;switch(de){case 0:F=void 0;break;case 1:F=hr(ye,w[he]);break;default:if(ye===$.ParameterStructures.byName)throw new Error(`Received ${de} parameters for 'by Name' notification parameter structure.`);F=w.slice(he,ee).map(oe=>Ft(oe));break}}else{let se=w;E=m.method,F=ii(m,se)}let le={jsonrpc:c,method:E,params:F};return rs(le),t.write(le).catch(se=>{throw i.error("Sending notification failed."),se})},onNotification:(m,w)=>{hn();let E;return ve.func(m)?b=m:w&&(ve.string(m)?(E=m,D.set(m,{type:void 0,handler:w})):(E=m.method,D.set(m.method,{type:m,handler:w}))),{dispose:()=>{E!==void 0?D.delete(E):b=void 0}}},onProgress:(m,w,E)=>{if(R.has(w))throw new Error(`Progress handler for token ${w} already registered`);return R.set(w,E),{dispose:()=>{R.delete(w)}}},sendProgress:(m,w,E)=>Qt.sendNotification(Nr.type,{token:w,value:E}),onUnhandledProgress:gt.event,sendRequest:(m,...w)=>{hn(),as();let E,F,le;if(ve.string(m)){E=m;let ee=w[0],de=w[w.length-1],oe=0,Re=$.ParameterStructures.auto;$.ParameterStructures.is(ee)&&(oe=1,Re=ee);let Le=w.length;Ja.CancellationToken.is(de)&&(Le=Le-1,le=de);let st=Le-oe;switch(st){case 0:F=void 0;break;case 1:F=hr(Re,w[oe]);break;default:if(Re===$.ParameterStructures.byName)throw new Error(`Received ${st} parameters for 'by Name' request parameter structure.`);F=w.slice(oe,Le).map(C=>Ft(C));break}}else{let ee=w;E=m.method,F=ii(m,ee);let de=m.numberOfParams;le=Ja.CancellationToken.is(ee[de])?ee[de]:void 0}let se=o++,he;le&&(he=le.onCancellationRequested(()=>{let ee=x.sender.sendCancellation(Qt,se);return ee===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${se}`),Promise.resolve()):ee.catch(()=>{i.log(`Sending cancellation messages for id ${se} failed`)})}));let ye={jsonrpc:c,id:se,method:E,params:F};return ns(ye),typeof x.sender.enableCancellation=="function"&&x.sender.enableCancellation(ye),new Promise(async(ee,de)=>{let oe=st=>{ee(st),x.sender.cleanup(se),he?.dispose()},Re=st=>{de(st),x.sender.cleanup(se),he?.dispose()},Le={method:E,timerStart:Date.now(),resolve:oe,reject:Re};try{await t.write(ye),B.set(se,Le)}catch(st){throw i.error("Sending request failed."),Le.reject(new $.ResponseError($.ErrorCodes.MessageWriteError,st.message?st.message:"Unknown reason")),st}})},onRequest:(m,w)=>{hn();let E=null;return Za.is(m)?(E=void 0,p=m):ve.string(m)?(E=null,w!==void 0&&(E=m,g.set(m,{handler:w,type:void 0}))):w!==void 0&&(E=m.method,g.set(m.method,{type:m,handler:w})),{dispose:()=>{E!==null&&(E!==void 0?g.delete(E):p=void 0)}}},hasPendingResponse:()=>B.size>0,trace:async(m,w,E)=>{let F=!1,le=bt.Text;E!==void 0&&(ve.boolean(E)?F=E:(F=E.sendNotification||!1,le=E.traceFormat||bt.Text)),v=m,N=le,v===ae.Off?z=void 0:z=w,F&&!Ae()&&!ce()&&await Qt.sendNotification(_d.type,{value:ae.toString(m)})},onError:ue.event,onClose:$e.event,onUnhandledNotification:pt.event,onDispose:L.event,end:()=>{t.end()},dispose:()=>{if(ce())return;Z=vt.Disposed,L.fire(void 0);let m=new $.ResponseError($.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let w of B.values())w.reject(m);B=new Map,_=new Map,j=new Set,q=new Cd.LinkedMap,ve.func(t.dispose)&&t.dispose(),ve.func(e.dispose)&&e.dispose()},listen:()=>{hn(),ss(),Z=vt.Listening,e.listen(Xo)},inspect:()=>{(0,vd.default)().console.log("inspect")}};return Qt.onNotification(ec.type,m=>{if(v===ae.Off||!z)return;let w=v===ae.Verbose||v===ae.Compact;z.log(m.message,w?m.verbose:void 0)}),Qt.onNotification(Nr.type,m=>{let w=R.get(m.token);w?w(m.value):gt.fire(m)}),Qt}W.createMessageConnection=qb});var no=A(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.ProgressType=S.ProgressToken=S.createMessageConnection=S.NullLogger=S.ConnectionOptions=S.ConnectionStrategy=S.AbstractMessageBuffer=S.WriteableStreamMessageWriter=S.AbstractMessageWriter=S.MessageWriter=S.ReadableStreamMessageReader=S.AbstractMessageReader=S.MessageReader=S.SharedArrayReceiverStrategy=S.SharedArraySenderStrategy=S.CancellationToken=S.CancellationTokenSource=S.Emitter=S.Event=S.Disposable=S.LRUCache=S.Touch=S.LinkedMap=S.ParameterStructures=S.NotificationType9=S.NotificationType8=S.NotificationType7=S.NotificationType6=S.NotificationType5=S.NotificationType4=S.NotificationType3=S.NotificationType2=S.NotificationType1=S.NotificationType0=S.NotificationType=S.ErrorCodes=S.ResponseError=S.RequestType9=S.RequestType8=S.RequestType7=S.RequestType6=S.RequestType5=S.RequestType4=S.RequestType3=S.RequestType2=S.RequestType1=S.RequestType0=S.RequestType=S.Message=S.RAL=void 0;S.MessageStrategy=S.CancellationStrategy=S.CancellationSenderStrategy=S.CancellationReceiverStrategy=S.ConnectionError=S.ConnectionErrors=S.LogTraceNotification=S.SetTraceNotification=S.TraceFormat=S.TraceValues=S.Trace=void 0;var ge=wa();Object.defineProperty(S,"Message",{enumerable:!0,get:function(){return ge.Message}});Object.defineProperty(S,"RequestType",{enumerable:!0,get:function(){return ge.RequestType}});Object.defineProperty(S,"RequestType0",{enumerable:!0,get:function(){return ge.RequestType0}});Object.defineProperty(S,"RequestType1",{enumerable:!0,get:function(){return ge.RequestType1}});Object.defineProperty(S,"RequestType2",{enumerable:!0,get:function(){return ge.RequestType2}});Object.defineProperty(S,"RequestType3",{enumerable:!0,get:function(){return ge.RequestType3}});Object.defineProperty(S,"RequestType4",{enumerable:!0,get:function(){return ge.RequestType4}});Object.defineProperty(S,"RequestType5",{enumerable:!0,get:function(){return ge.RequestType5}});Object.defineProperty(S,"RequestType6",{enumerable:!0,get:function(){return ge.RequestType6}});Object.defineProperty(S,"RequestType7",{enumerable:!0,get:function(){return ge.RequestType7}});Object.defineProperty(S,"RequestType8",{enumerable:!0,get:function(){return ge.RequestType8}});Object.defineProperty(S,"RequestType9",{enumerable:!0,get:function(){return ge.RequestType9}});Object.defineProperty(S,"ResponseError",{enumerable:!0,get:function(){return ge.ResponseError}});Object.defineProperty(S,"ErrorCodes",{enumerable:!0,get:function(){return ge.ErrorCodes}});Object.defineProperty(S,"NotificationType",{enumerable:!0,get:function(){return ge.NotificationType}});Object.defineProperty(S,"NotificationType0",{enumerable:!0,get:function(){return ge.NotificationType0}});Object.defineProperty(S,"NotificationType1",{enumerable:!0,get:function(){return ge.NotificationType1}});Object.defineProperty(S,"NotificationType2",{enumerable:!0,get:function(){return ge.NotificationType2}});Object.defineProperty(S,"NotificationType3",{enumerable:!0,get:function(){return ge.NotificationType3}});Object.defineProperty(S,"NotificationType4",{enumerable:!0,get:function(){return ge.NotificationType4}});Object.defineProperty(S,"NotificationType5",{enumerable:!0,get:function(){return ge.NotificationType5}});Object.defineProperty(S,"NotificationType6",{enumerable:!0,get:function(){return ge.NotificationType6}});Object.defineProperty(S,"NotificationType7",{enumerable:!0,get:function(){return ge.NotificationType7}});Object.defineProperty(S,"NotificationType8",{enumerable:!0,get:function(){return ge.NotificationType8}});Object.defineProperty(S,"NotificationType9",{enumerable:!0,get:function(){return ge.NotificationType9}});Object.defineProperty(S,"ParameterStructures",{enumerable:!0,get:function(){return ge.ParameterStructures}});var sc=Aa();Object.defineProperty(S,"LinkedMap",{enumerable:!0,get:function(){return sc.LinkedMap}});Object.defineProperty(S,"LRUCache",{enumerable:!0,get:function(){return sc.LRUCache}});Object.defineProperty(S,"Touch",{enumerable:!0,get:function(){return sc.Touch}});var Nb=dd();Object.defineProperty(S,"Disposable",{enumerable:!0,get:function(){return Nb.Disposable}});var Td=Xn();Object.defineProperty(S,"Event",{enumerable:!0,get:function(){return Td.Event}});Object.defineProperty(S,"Emitter",{enumerable:!0,get:function(){return Td.Emitter}});var xd=Qi();Object.defineProperty(S,"CancellationTokenSource",{enumerable:!0,get:function(){return xd.CancellationTokenSource}});Object.defineProperty(S,"CancellationToken",{enumerable:!0,get:function(){return xd.CancellationToken}});var wd=fd();Object.defineProperty(S,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return wd.SharedArraySenderStrategy}});Object.defineProperty(S,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return wd.SharedArrayReceiverStrategy}});var ac=pd();Object.defineProperty(S,"MessageReader",{enumerable:!0,get:function(){return ac.MessageReader}});Object.defineProperty(S,"AbstractMessageReader",{enumerable:!0,get:function(){return ac.AbstractMessageReader}});Object.defineProperty(S,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return ac.ReadableStreamMessageReader}});var cc=yd();Object.defineProperty(S,"MessageWriter",{enumerable:!0,get:function(){return cc.MessageWriter}});Object.defineProperty(S,"AbstractMessageWriter",{enumerable:!0,get:function(){return cc.AbstractMessageWriter}});Object.defineProperty(S,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return cc.WriteableStreamMessageWriter}});var Ob=bd();Object.defineProperty(S,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Ob.AbstractMessageBuffer}});var He=Sd();Object.defineProperty(S,"ConnectionStrategy",{enumerable:!0,get:function(){return He.ConnectionStrategy}});Object.defineProperty(S,"ConnectionOptions",{enumerable:!0,get:function(){return He.ConnectionOptions}});Object.defineProperty(S,"NullLogger",{enumerable:!0,get:function(){return He.NullLogger}});Object.defineProperty(S,"createMessageConnection",{enumerable:!0,get:function(){return He.createMessageConnection}});Object.defineProperty(S,"ProgressToken",{enumerable:!0,get:function(){return He.ProgressToken}});Object.defineProperty(S,"ProgressType",{enumerable:!0,get:function(){return He.ProgressType}});Object.defineProperty(S,"Trace",{enumerable:!0,get:function(){return He.Trace}});Object.defineProperty(S,"TraceValues",{enumerable:!0,get:function(){return He.TraceValues}});Object.defineProperty(S,"TraceFormat",{enumerable:!0,get:function(){return He.TraceFormat}});Object.defineProperty(S,"SetTraceNotification",{enumerable:!0,get:function(){return He.SetTraceNotification}});Object.defineProperty(S,"LogTraceNotification",{enumerable:!0,get:function(){return He.LogTraceNotification}});Object.defineProperty(S,"ConnectionErrors",{enumerable:!0,get:function(){return He.ConnectionErrors}});Object.defineProperty(S,"ConnectionError",{enumerable:!0,get:function(){return He.ConnectionError}});Object.defineProperty(S,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return He.CancellationReceiverStrategy}});Object.defineProperty(S,"CancellationSenderStrategy",{enumerable:!0,get:function(){return He.CancellationSenderStrategy}});Object.defineProperty(S,"CancellationStrategy",{enumerable:!0,get:function(){return He.CancellationStrategy}});Object.defineProperty(S,"MessageStrategy",{enumerable:!0,get:function(){return He.MessageStrategy}});var Eb=nn();S.RAL=Eb.default});var Ad=A(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var Nt=no(),tr=class extends Nt.AbstractMessageBuffer{constructor(t="utf-8"){super(t),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return tr.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)}};tr.emptyBuffer=new Uint8Array(0);var uc=class{constructor(t){this.socket=t,this._onData=new Nt.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,Nt.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(t){return this.socket.addEventListener("close",t),Nt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Nt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Nt.Disposable.create(()=>this.socket.removeEventListener("end",t))}onData(t){return this._onData.event(t)}},lc=class{constructor(t){this.socket=t}onClose(t){return this.socket.addEventListener("close",t),Nt.Disposable.create(()=>this.socket.removeEventListener("close",t))}onError(t){return this.socket.addEventListener("error",t),Nt.Disposable.create(()=>this.socket.removeEventListener("error",t))}onEnd(t){return this.socket.addEventListener("end",t),Nt.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()}},Mb=new TextEncoder,kd=Object.freeze({messageBuffer:Object.freeze({create:e=>new tr(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(Mb.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 uc(e),asWritableStream:e=>new lc(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 kd}(function(e){function t(){Nt.RAL.install(kd)}e.install=t})(dc||(dc={}));fc.default=dc});var kn=A(it=>{"use strict";var jb=it&&it.__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]}),Lb=it&&it.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jb(t,e,n)};Object.defineProperty(it,"__esModule",{value:!0});it.createMessageConnection=it.BrowserMessageWriter=it.BrowserMessageReader=void 0;var Ib=Ad();Ib.default.install();var nr=no();Lb(no(),it);var pc=class extends nr.AbstractMessageReader{constructor(t){super(),this._onData=new nr.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)}};it.BrowserMessageReader=pc;var gc=class extends nr.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(){}};it.BrowserMessageWriter=gc;function Fb(e,t,n,r){return n===void 0&&(n=nr.NullLogger),nr.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,nr.createMessageConnection)(e,t,n,r)}it.createMessageConnection=Fb});var mc=A((OR,qd)=>{"use strict";qd.exports=kn()});var io=A((Nd,ro)=>{(function(e){if(typeof ro=="object"&&typeof ro.exports=="object"){var t=e(ou,Nd);t!==void 0&&(ro.exports=t)}else typeof define=="function"&&define.amd&&define(["require","exports"],e)})(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocument=t.EOL=t.WorkspaceFolder=t.InlayHint=t.InlayHintLabelPart=t.InlayHintKind=t.InlineValueContext=t.InlineValueEvaluatableExpression=t.InlineValueVariableLookup=t.InlineValueText=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionTriggerKind=t.CodeActionKind=t.DocumentSymbol=t.WorkspaceSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.CompletionItemLabelDetails=t.InsertTextMode=t.InsertReplaceEdit=t.CompletionItemTag=t.InsertTextFormat=t.CompletionItemKind=t.MarkupContent=t.MarkupKind=t.TextDocumentItem=t.OptionalVersionedTextDocumentIdentifier=t.VersionedTextDocumentIdentifier=t.TextDocumentIdentifier=t.WorkspaceChange=t.WorkspaceEdit=t.DeleteFile=t.RenameFile=t.CreateFile=t.TextDocumentEdit=t.AnnotatedTextEdit=t.ChangeAnnotationIdentifier=t.ChangeAnnotation=t.TextEdit=t.Command=t.Diagnostic=t.CodeDescription=t.DiagnosticTag=t.DiagnosticSeverity=t.DiagnosticRelatedInformation=t.FoldingRange=t.FoldingRangeKind=t.ColorPresentation=t.ColorInformation=t.Color=t.LocationLink=t.Location=t.Range=t.Position=t.uinteger=t.integer=t.URI=t.DocumentUri=void 0;var n;(function(l){function h(y){return typeof y=="string"}l.is=h})(n=t.DocumentUri||(t.DocumentUri={}));var r;(function(l){function h(y){return typeof y=="string"}l.is=h})(r=t.URI||(t.URI={}));var i;(function(l){l.MIN_VALUE=-2147483648,l.MAX_VALUE=2147483647;function h(y){return typeof y=="number"&&l.MIN_VALUE<=y&&y<=l.MAX_VALUE}l.is=h})(i=t.integer||(t.integer={}));var o;(function(l){l.MIN_VALUE=0,l.MAX_VALUE=2147483647;function h(y){return typeof y=="number"&&l.MIN_VALUE<=y&&y<=l.MAX_VALUE}l.is=h})(o=t.uinteger||(t.uinteger={}));var s;(function(l){function h(f,a){return f===Number.MAX_VALUE&&(f=o.MAX_VALUE),a===Number.MAX_VALUE&&(a=o.MAX_VALUE),{line:f,character:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.uinteger(a.line)&&C.uinteger(a.character)}l.is=y})(s=t.Position||(t.Position={}));var u;(function(l){function h(f,a,P,k){if(C.uinteger(f)&&C.uinteger(a)&&C.uinteger(P)&&C.uinteger(k))return{start:s.create(f,a),end:s.create(P,k)};if(s.is(f)&&s.is(a))return{start:f,end:a};throw new Error("Range#create called with invalid arguments[".concat(f,", ").concat(a,", ").concat(P,", ").concat(k,"]"))}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&s.is(a.start)&&s.is(a.end)}l.is=y})(u=t.Range||(t.Range={}));var c;(function(l){function h(f,a){return{uri:f,range:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.range)&&(C.string(a.uri)||C.undefined(a.uri))}l.is=y})(c=t.Location||(t.Location={}));var p;(function(l){function h(f,a,P,k){return{targetUri:f,targetRange:a,targetSelectionRange:P,originSelectionRange:k}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.targetRange)&&C.string(a.targetUri)&&u.is(a.targetSelectionRange)&&(u.is(a.originSelectionRange)||C.undefined(a.originSelectionRange))}l.is=y})(p=t.LocationLink||(t.LocationLink={}));var g;(function(l){function h(f,a,P,k){return{red:f,green:a,blue:P,alpha:k}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.numberRange(a.red,0,1)&&C.numberRange(a.green,0,1)&&C.numberRange(a.blue,0,1)&&C.numberRange(a.alpha,0,1)}l.is=y})(g=t.Color||(t.Color={}));var b;(function(l){function h(f,a){return{range:f,color:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.range)&&g.is(a.color)}l.is=y})(b=t.ColorInformation||(t.ColorInformation={}));var D;(function(l){function h(f,a,P){return{label:f,textEdit:a,additionalTextEdits:P}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.string(a.label)&&(C.undefined(a.textEdit)||z.is(a))&&(C.undefined(a.additionalTextEdits)||C.typedArray(a.additionalTextEdits,z.is))}l.is=y})(D=t.ColorPresentation||(t.ColorPresentation={}));var R;(function(l){l.Comment="comment",l.Imports="imports",l.Region="region"})(R=t.FoldingRangeKind||(t.FoldingRangeKind={}));var T;(function(l){function h(f,a,P,k,Q,_e){var fe={startLine:f,endLine:a};return C.defined(P)&&(fe.startCharacter=P),C.defined(k)&&(fe.endCharacter=k),C.defined(Q)&&(fe.kind=Q),C.defined(_e)&&(fe.collapsedText=_e),fe}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.uinteger(a.startLine)&&C.uinteger(a.startLine)&&(C.undefined(a.startCharacter)||C.uinteger(a.startCharacter))&&(C.undefined(a.endCharacter)||C.uinteger(a.endCharacter))&&(C.undefined(a.kind)||C.string(a.kind))}l.is=y})(T=t.FoldingRange||(t.FoldingRange={}));var q;(function(l){function h(f,a){return{location:f,message:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&c.is(a.location)&&C.string(a.message)}l.is=y})(q=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var B;(function(l){l.Error=1,l.Warning=2,l.Information=3,l.Hint=4})(B=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var j;(function(l){l.Unnecessary=1,l.Deprecated=2})(j=t.DiagnosticTag||(t.DiagnosticTag={}));var _;(function(l){function h(y){var f=y;return C.objectLiteral(f)&&C.string(f.href)}l.is=h})(_=t.CodeDescription||(t.CodeDescription={}));var v;(function(l){function h(f,a,P,k,Q,_e){var fe={range:f,message:a};return C.defined(P)&&(fe.severity=P),C.defined(k)&&(fe.code=k),C.defined(Q)&&(fe.source=Q),C.defined(_e)&&(fe.relatedInformation=_e),fe}l.create=h;function y(f){var a,P=f;return C.defined(P)&&u.is(P.range)&&C.string(P.message)&&(C.number(P.severity)||C.undefined(P.severity))&&(C.integer(P.code)||C.string(P.code)||C.undefined(P.code))&&(C.undefined(P.codeDescription)||C.string((a=P.codeDescription)===null||a===void 0?void 0:a.href))&&(C.string(P.source)||C.undefined(P.source))&&(C.undefined(P.relatedInformation)||C.typedArray(P.relatedInformation,q.is))}l.is=y})(v=t.Diagnostic||(t.Diagnostic={}));var N;(function(l){function h(f,a){for(var P=[],k=2;k<arguments.length;k++)P[k-2]=arguments[k];var Q={title:f,command:a};return C.defined(P)&&P.length>0&&(Q.arguments=P),Q}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.title)&&C.string(a.command)}l.is=y})(N=t.Command||(t.Command={}));var z;(function(l){function h(P,k){return{range:P,newText:k}}l.replace=h;function y(P,k){return{range:{start:P,end:P},newText:k}}l.insert=y;function f(P){return{range:P,newText:""}}l.del=f;function a(P){var k=P;return C.objectLiteral(k)&&C.string(k.newText)&&u.is(k.range)}l.is=a})(z=t.TextEdit||(t.TextEdit={}));var Z;(function(l){function h(f,a,P){var k={label:f};return a!==void 0&&(k.needsConfirmation=a),P!==void 0&&(k.description=P),k}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&C.string(a.label)&&(C.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(C.string(a.description)||a.description===void 0)}l.is=y})(Z=t.ChangeAnnotation||(t.ChangeAnnotation={}));var ue;(function(l){function h(y){var f=y;return C.string(f)}l.is=h})(ue=t.ChangeAnnotationIdentifier||(t.ChangeAnnotationIdentifier={}));var $e;(function(l){function h(P,k,Q){return{range:P,newText:k,annotationId:Q}}l.replace=h;function y(P,k,Q){return{range:{start:P,end:P},newText:k,annotationId:Q}}l.insert=y;function f(P,k){return{range:P,newText:"",annotationId:k}}l.del=f;function a(P){var k=P;return z.is(k)&&(Z.is(k.annotationId)||ue.is(k.annotationId))}l.is=a})($e=t.AnnotatedTextEdit||(t.AnnotatedTextEdit={}));var pt;(function(l){function h(f,a){return{textDocument:f,edits:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&Ae.is(a.textDocument)&&Array.isArray(a.edits)}l.is=y})(pt=t.TextDocumentEdit||(t.TextDocumentEdit={}));var gt;(function(l){function h(f,a,P){var k={kind:"create",uri:f};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(k.options=a),P!==void 0&&(k.annotationId=P),k}l.create=h;function y(f){var a=f;return a&&a.kind==="create"&&C.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||C.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||C.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||ue.is(a.annotationId))}l.is=y})(gt=t.CreateFile||(t.CreateFile={}));var L;(function(l){function h(f,a,P,k){var Q={kind:"rename",oldUri:f,newUri:a};return P!==void 0&&(P.overwrite!==void 0||P.ignoreIfExists!==void 0)&&(Q.options=P),k!==void 0&&(Q.annotationId=k),Q}l.create=h;function y(f){var a=f;return a&&a.kind==="rename"&&C.string(a.oldUri)&&C.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||C.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||C.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||ue.is(a.annotationId))}l.is=y})(L=t.RenameFile||(t.RenameFile={}));var x;(function(l){function h(f,a,P){var k={kind:"delete",uri:f};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(k.options=a),P!==void 0&&(k.annotationId=P),k}l.create=h;function y(f){var a=f;return a&&a.kind==="delete"&&C.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||C.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||C.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||ue.is(a.annotationId))}l.is=y})(x=t.DeleteFile||(t.DeleteFile={}));var H;(function(l){function h(y){var f=y;return f&&(f.changes!==void 0||f.documentChanges!==void 0)&&(f.documentChanges===void 0||f.documentChanges.every(function(a){return C.string(a.kind)?gt.is(a)||L.is(a)||x.is(a):pt.is(a)}))}l.is=h})(H=t.WorkspaceEdit||(t.WorkspaceEdit={}));var I=function(){function l(h,y){this.edits=h,this.changeAnnotations=y}return l.prototype.insert=function(h,y,f){var a,P;if(f===void 0?a=z.insert(h,y):ue.is(f)?(P=f,a=$e.insert(h,y,f)):(this.assertChangeAnnotations(this.changeAnnotations),P=this.changeAnnotations.manage(f),a=$e.insert(h,y,P)),this.edits.push(a),P!==void 0)return P},l.prototype.replace=function(h,y,f){var a,P;if(f===void 0?a=z.replace(h,y):ue.is(f)?(P=f,a=$e.replace(h,y,f)):(this.assertChangeAnnotations(this.changeAnnotations),P=this.changeAnnotations.manage(f),a=$e.replace(h,y,P)),this.edits.push(a),P!==void 0)return P},l.prototype.delete=function(h,y){var f,a;if(y===void 0?f=z.del(h):ue.is(y)?(a=y,f=$e.del(h,y)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(y),f=$e.del(h,a)),this.edits.push(f),a!==void 0)return a},l.prototype.add=function(h){this.edits.push(h)},l.prototype.all=function(){return this.edits},l.prototype.clear=function(){this.edits.splice(0,this.edits.length)},l.prototype.assertChangeAnnotations=function(h){if(h===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},l}(),ie=function(){function l(h){this._annotations=h===void 0?Object.create(null):h,this._counter=0,this._size=0}return l.prototype.all=function(){return this._annotations},Object.defineProperty(l.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),l.prototype.manage=function(h,y){var f;if(ue.is(h)?f=h:(f=this.nextId(),y=h),this._annotations[f]!==void 0)throw new Error("Id ".concat(f," is already in use."));if(y===void 0)throw new Error("No annotation provided for id ".concat(f));return this._annotations[f]=y,this._size++,f},l.prototype.nextId=function(){return this._counter++,this._counter.toString()},l}(),X=function(){function l(h){var y=this;this._textEditChanges=Object.create(null),h!==void 0?(this._workspaceEdit=h,h.documentChanges?(this._changeAnnotations=new ie(h.changeAnnotations),h.changeAnnotations=this._changeAnnotations.all(),h.documentChanges.forEach(function(f){if(pt.is(f)){var a=new I(f.edits,y._changeAnnotations);y._textEditChanges[f.textDocument.uri]=a}})):h.changes&&Object.keys(h.changes).forEach(function(f){var a=new I(h.changes[f]);y._textEditChanges[f]=a})):this._workspaceEdit={}}return Object.defineProperty(l.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),l.prototype.getTextEditChange=function(h){if(Ae.is(h)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var y={uri:h.uri,version:h.version},f=this._textEditChanges[y.uri];if(!f){var a=[],P={textDocument:y,edits:a};this._workspaceEdit.documentChanges.push(P),f=new I(a,this._changeAnnotations),this._textEditChanges[y.uri]=f}return f}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var f=this._textEditChanges[h];if(!f){var a=[];this._workspaceEdit.changes[h]=a,f=new I(a),this._textEditChanges[h]=f}return f}},l.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},l.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},l.prototype.createFile=function(h,y,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Z.is(y)||ue.is(y)?a=y:f=y;var P,k;if(a===void 0?P=gt.create(h,f):(k=ue.is(a)?a:this._changeAnnotations.manage(a),P=gt.create(h,f,k)),this._workspaceEdit.documentChanges.push(P),k!==void 0)return k},l.prototype.renameFile=function(h,y,f,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var P;Z.is(f)||ue.is(f)?P=f:a=f;var k,Q;if(P===void 0?k=L.create(h,y,a):(Q=ue.is(P)?P:this._changeAnnotations.manage(P),k=L.create(h,y,a,Q)),this._workspaceEdit.documentChanges.push(k),Q!==void 0)return Q},l.prototype.deleteFile=function(h,y,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Z.is(y)||ue.is(y)?a=y:f=y;var P,k;if(a===void 0?P=x.create(h,f):(k=ue.is(a)?a:this._changeAnnotations.manage(a),P=x.create(h,f,k)),this._workspaceEdit.documentChanges.push(P),k!==void 0)return k},l}();t.WorkspaceChange=X;var K;(function(l){function h(f){return{uri:f}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)}l.is=y})(K=t.TextDocumentIdentifier||(t.TextDocumentIdentifier={}));var Ve;(function(l){function h(f,a){return{uri:f,version:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)&&C.integer(a.version)}l.is=y})(Ve=t.VersionedTextDocumentIdentifier||(t.VersionedTextDocumentIdentifier={}));var Ae;(function(l){function h(f,a){return{uri:f,version:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)&&(a.version===null||C.integer(a.version))}l.is=y})(Ae=t.OptionalVersionedTextDocumentIdentifier||(t.OptionalVersionedTextDocumentIdentifier={}));var ce;(function(l){function h(f,a,P,k){return{uri:f,languageId:a,version:P,text:k}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.string(a.uri)&&C.string(a.languageId)&&C.integer(a.version)&&C.string(a.text)}l.is=y})(ce=t.TextDocumentItem||(t.TextDocumentItem={}));var xt;(function(l){l.PlainText="plaintext",l.Markdown="markdown";function h(y){var f=y;return f===l.PlainText||f===l.Markdown}l.is=h})(xt=t.MarkupKind||(t.MarkupKind={}));var On;(function(l){function h(y){var f=y;return C.objectLiteral(y)&&xt.is(f.kind)&&C.string(f.value)}l.is=h})(On=t.MarkupContent||(t.MarkupContent={}));var G;(function(l){l.Text=1,l.Method=2,l.Function=3,l.Constructor=4,l.Field=5,l.Variable=6,l.Class=7,l.Interface=8,l.Module=9,l.Property=10,l.Unit=11,l.Value=12,l.Enum=13,l.Keyword=14,l.Snippet=15,l.Color=16,l.File=17,l.Reference=18,l.Folder=19,l.EnumMember=20,l.Constant=21,l.Struct=22,l.Event=23,l.Operator=24,l.TypeParameter=25})(G=t.CompletionItemKind||(t.CompletionItemKind={}));var ei;(function(l){l.PlainText=1,l.Snippet=2})(ei=t.InsertTextFormat||(t.InsertTextFormat={}));var ti;(function(l){l.Deprecated=1})(ti=t.CompletionItemTag||(t.CompletionItemTag={}));var Jo;(function(l){function h(f,a,P){return{newText:f,insert:a,replace:P}}l.create=h;function y(f){var a=f;return a&&C.string(a.newText)&&u.is(a.insert)&&u.is(a.replace)}l.is=y})(Jo=t.InsertReplaceEdit||(t.InsertReplaceEdit={}));var Xo;(function(l){l.asIs=1,l.adjustIndentation=2})(Xo=t.InsertTextMode||(t.InsertTextMode={}));var Zo;(function(l){function h(y){var f=y;return f&&(C.string(f.detail)||f.detail===void 0)&&(C.string(f.description)||f.description===void 0)}l.is=h})(Zo=t.CompletionItemLabelDetails||(t.CompletionItemLabelDetails={}));var es;(function(l){function h(y){return{label:y}}l.create=h})(es=t.CompletionItem||(t.CompletionItem={}));var ts;(function(l){function h(y,f){return{items:y||[],isIncomplete:!!f}}l.create=h})(ts=t.CompletionList||(t.CompletionList={}));var gr;(function(l){function h(f){return f.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}l.fromPlainText=h;function y(f){var a=f;return C.string(a)||C.objectLiteral(a)&&C.string(a.language)&&C.string(a.value)}l.is=y})(gr=t.MarkedString||(t.MarkedString={}));var wt;(function(l){function h(y){var f=y;return!!f&&C.objectLiteral(f)&&(On.is(f.contents)||gr.is(f.contents)||C.typedArray(f.contents,gr.is))&&(y.range===void 0||u.is(y.range))}l.is=h})(wt=t.Hover||(t.Hover={}));var ns;(function(l){function h(y,f){return f?{label:y,documentation:f}:{label:y}}l.create=h})(ns=t.ParameterInformation||(t.ParameterInformation={}));var rs;(function(l){function h(y,f){for(var a=[],P=2;P<arguments.length;P++)a[P-2]=arguments[P];var k={label:y};return C.defined(f)&&(k.documentation=f),C.defined(a)?k.parameters=a:k.parameters=[],k}l.create=h})(rs=t.SignatureInformation||(t.SignatureInformation={}));var En;(function(l){l.Text=1,l.Read=2,l.Write=3})(En=t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var is;(function(l){function h(y,f){var a={range:y};return C.number(f)&&(a.kind=f),a}l.create=h})(is=t.DocumentHighlight||(t.DocumentHighlight={}));var mr;(function(l){l.File=1,l.Module=2,l.Namespace=3,l.Package=4,l.Class=5,l.Method=6,l.Property=7,l.Field=8,l.Constructor=9,l.Enum=10,l.Interface=11,l.Function=12,l.Variable=13,l.Constant=14,l.String=15,l.Number=16,l.Boolean=17,l.Array=18,l.Object=19,l.Key=20,l.Null=21,l.EnumMember=22,l.Struct=23,l.Event=24,l.Operator=25,l.TypeParameter=26})(mr=t.SymbolKind||(t.SymbolKind={}));var os;(function(l){l.Deprecated=1})(os=t.SymbolTag||(t.SymbolTag={}));var Gt;(function(l){function h(y,f,a,P,k){var Q={name:y,kind:f,location:{uri:P,range:a}};return k&&(Q.containerName=k),Q}l.create=h})(Gt=t.SymbolInformation||(t.SymbolInformation={}));var hn;(function(l){function h(y,f,a,P){return P!==void 0?{name:y,kind:f,location:{uri:a,range:P}}:{name:y,kind:f,location:{uri:a}}}l.create=h})(hn=t.WorkspaceSymbol||(t.WorkspaceSymbol={}));var ss;(function(l){function h(f,a,P,k,Q,_e){var fe={name:f,detail:a,kind:P,range:k,selectionRange:Q};return _e!==void 0&&(fe.children=_e),fe}l.create=h;function y(f){var a=f;return a&&C.string(a.name)&&C.number(a.kind)&&u.is(a.range)&&u.is(a.selectionRange)&&(a.detail===void 0||C.string(a.detail))&&(a.deprecated===void 0||C.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}l.is=y})(ss=t.DocumentSymbol||(t.DocumentSymbol={}));var as;(function(l){l.Empty="",l.QuickFix="quickfix",l.Refactor="refactor",l.RefactorExtract="refactor.extract",l.RefactorInline="refactor.inline",l.RefactorRewrite="refactor.rewrite",l.Source="source",l.SourceOrganizeImports="source.organizeImports",l.SourceFixAll="source.fixAll"})(as=t.CodeActionKind||(t.CodeActionKind={}));var Ft;(function(l){l.Invoked=1,l.Automatic=2})(Ft=t.CodeActionTriggerKind||(t.CodeActionTriggerKind={}));var ni;(function(l){function h(f,a,P){var k={diagnostics:f};return a!=null&&(k.only=a),P!=null&&(k.triggerKind=P),k}l.create=h;function y(f){var a=f;return C.defined(a)&&C.typedArray(a.diagnostics,v.is)&&(a.only===void 0||C.typedArray(a.only,C.string))&&(a.triggerKind===void 0||a.triggerKind===Ft.Invoked||a.triggerKind===Ft.Automatic)}l.is=y})(ni=t.CodeActionContext||(t.CodeActionContext={}));var ri;(function(l){function h(f,a,P){var k={title:f},Q=!0;return typeof a=="string"?(Q=!1,k.kind=a):N.is(a)?k.command=a:k.edit=a,Q&&P!==void 0&&(k.kind=P),k}l.create=h;function y(f){var a=f;return a&&C.string(a.title)&&(a.diagnostics===void 0||C.typedArray(a.diagnostics,v.is))&&(a.kind===void 0||C.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||N.is(a.command))&&(a.isPreferred===void 0||C.boolean(a.isPreferred))&&(a.edit===void 0||H.is(a.edit))}l.is=y})(ri=t.CodeAction||(t.CodeAction={}));var hr;(function(l){function h(f,a){var P={range:f};return C.defined(a)&&(P.data=a),P}l.create=h;function y(f){var a=f;return C.defined(a)&&u.is(a.range)&&(C.undefined(a.command)||N.is(a.command))}l.is=y})(hr=t.CodeLens||(t.CodeLens={}));var ii;(function(l){function h(f,a){return{tabSize:f,insertSpaces:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&C.uinteger(a.tabSize)&&C.boolean(a.insertSpaces)}l.is=y})(ii=t.FormattingOptions||(t.FormattingOptions={}));var Qt;(function(l){function h(f,a,P){return{range:f,target:a,data:P}}l.create=h;function y(f){var a=f;return C.defined(a)&&u.is(a.range)&&(C.undefined(a.target)||C.string(a.target))}l.is=y})(Qt=t.DocumentLink||(t.DocumentLink={}));var m;(function(l){function h(f,a){return{range:f,parent:a}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&u.is(a.range)&&(a.parent===void 0||l.is(a.parent))}l.is=y})(m=t.SelectionRange||(t.SelectionRange={}));var w;(function(l){l.namespace="namespace",l.type="type",l.class="class",l.enum="enum",l.interface="interface",l.struct="struct",l.typeParameter="typeParameter",l.parameter="parameter",l.variable="variable",l.property="property",l.enumMember="enumMember",l.event="event",l.function="function",l.method="method",l.macro="macro",l.keyword="keyword",l.modifier="modifier",l.comment="comment",l.string="string",l.number="number",l.regexp="regexp",l.operator="operator",l.decorator="decorator"})(w=t.SemanticTokenTypes||(t.SemanticTokenTypes={}));var E;(function(l){l.declaration="declaration",l.definition="definition",l.readonly="readonly",l.static="static",l.deprecated="deprecated",l.abstract="abstract",l.async="async",l.modification="modification",l.documentation="documentation",l.defaultLibrary="defaultLibrary"})(E=t.SemanticTokenModifiers||(t.SemanticTokenModifiers={}));var F;(function(l){function h(y){var f=y;return C.objectLiteral(f)&&(f.resultId===void 0||typeof f.resultId=="string")&&Array.isArray(f.data)&&(f.data.length===0||typeof f.data[0]=="number")}l.is=h})(F=t.SemanticTokens||(t.SemanticTokens={}));var le;(function(l){function h(f,a){return{range:f,text:a}}l.create=h;function y(f){var a=f;return a!=null&&u.is(a.range)&&C.string(a.text)}l.is=y})(le=t.InlineValueText||(t.InlineValueText={}));var se;(function(l){function h(f,a,P){return{range:f,variableName:a,caseSensitiveLookup:P}}l.create=h;function y(f){var a=f;return a!=null&&u.is(a.range)&&C.boolean(a.caseSensitiveLookup)&&(C.string(a.variableName)||a.variableName===void 0)}l.is=y})(se=t.InlineValueVariableLookup||(t.InlineValueVariableLookup={}));var he;(function(l){function h(f,a){return{range:f,expression:a}}l.create=h;function y(f){var a=f;return a!=null&&u.is(a.range)&&(C.string(a.expression)||a.expression===void 0)}l.is=y})(he=t.InlineValueEvaluatableExpression||(t.InlineValueEvaluatableExpression={}));var ye;(function(l){function h(f,a){return{frameId:f,stoppedLocation:a}}l.create=h;function y(f){var a=f;return C.defined(a)&&u.is(f.stoppedLocation)}l.is=y})(ye=t.InlineValueContext||(t.InlineValueContext={}));var ee;(function(l){l.Type=1,l.Parameter=2;function h(y){return y===1||y===2}l.is=h})(ee=t.InlayHintKind||(t.InlayHintKind={}));var de;(function(l){function h(f){return{value:f}}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&(a.tooltip===void 0||C.string(a.tooltip)||On.is(a.tooltip))&&(a.location===void 0||c.is(a.location))&&(a.command===void 0||N.is(a.command))}l.is=y})(de=t.InlayHintLabelPart||(t.InlayHintLabelPart={}));var oe;(function(l){function h(f,a,P){var k={position:f,label:a};return P!==void 0&&(k.kind=P),k}l.create=h;function y(f){var a=f;return C.objectLiteral(a)&&s.is(a.position)&&(C.string(a.label)||C.typedArray(a.label,de.is))&&(a.kind===void 0||ee.is(a.kind))&&a.textEdits===void 0||C.typedArray(a.textEdits,z.is)&&(a.tooltip===void 0||C.string(a.tooltip)||On.is(a.tooltip))&&(a.paddingLeft===void 0||C.boolean(a.paddingLeft))&&(a.paddingRight===void 0||C.boolean(a.paddingRight))}l.is=y})(oe=t.InlayHint||(t.InlayHint={}));var Re;(function(l){function h(y){var f=y;return C.objectLiteral(f)&&r.is(f.uri)&&C.string(f.name)}l.is=h})(Re=t.WorkspaceFolder||(t.WorkspaceFolder={})),t.EOL=[`
64
64
  `,`\r
65
- `,"\r"];var Le;(function(l){function h(P,k,Q,_e){return new ot(P,k,Q,_e)}l.create=h;function y(P){var k=P;return!!(C.defined(k)&&C.string(k.uri)&&(C.undefined(k.languageId)||C.string(k.languageId))&&C.uinteger(k.lineCount)&&C.func(k.getText)&&C.func(k.positionAt)&&C.func(k.offsetAt))}l.is=y;function f(P,k){for(var Q=P.getText(),_e=a(k,function(Mn,oi){var ru=Mn.range.start.line-oi.range.start.line;return ru===0?Mn.range.start.character-oi.range.start.character:ru}),fe=Q.length,gt=_e.length-1;gt>=0;gt--){var mt=_e[gt],Ft=P.offsetAt(mt.range.start),te=P.offsetAt(mt.range.end);if(te<=fe)Q=Q.substring(0,Ft)+mt.newText+Q.substring(te,Q.length);else throw new Error("Overlapping edit");fe=Ft}return Q}l.applyEdits=f;function a(P,k){if(P.length<=1)return P;var Q=P.length/2|0,_e=P.slice(0,Q),fe=P.slice(Q);a(_e,k),a(fe,k);for(var gt=0,mt=0,Ft=0;gt<_e.length&&mt<fe.length;){var te=k(_e[gt],fe[mt]);te<=0?P[Ft++]=_e[gt++]:P[Ft++]=fe[mt++]}for(;gt<_e.length;)P[Ft++]=_e[gt++];for(;mt<fe.length;)P[Ft++]=fe[mt++];return P}})(Le=t.TextDocument||(t.TextDocument={}));var ot=function(){function l(h,y,f,a){this._uri=h,this._languageId=y,this._version=f,this._content=a,this._lineOffsets=void 0}return Object.defineProperty(l.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),l.prototype.getText=function(h){if(h){var y=this.offsetAt(h.start),f=this.offsetAt(h.end);return this._content.substring(y,f)}return this._content},l.prototype.update=function(h,y){this._content=h.text,this._version=y,this._lineOffsets=void 0},l.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var h=[],y=this._content,f=!0,a=0;a<y.length;a++){f&&(h.push(a),f=!1);var P=y.charAt(a);f=P==="\r"||P===`
65
+ `,"\r"];var Le;(function(l){function h(P,k,Q,_e){return new st(P,k,Q,_e)}l.create=h;function y(P){var k=P;return!!(C.defined(k)&&C.string(k.uri)&&(C.undefined(k.languageId)||C.string(k.languageId))&&C.uinteger(k.lineCount)&&C.func(k.getText)&&C.func(k.positionAt)&&C.func(k.offsetAt))}l.is=y;function f(P,k){for(var Q=P.getText(),_e=a(k,function(Mn,oi){var iu=Mn.range.start.line-oi.range.start.line;return iu===0?Mn.range.start.character-oi.range.start.character:iu}),fe=Q.length,mt=_e.length-1;mt>=0;mt--){var ht=_e[mt],Wt=P.offsetAt(ht.range.start),te=P.offsetAt(ht.range.end);if(te<=fe)Q=Q.substring(0,Wt)+ht.newText+Q.substring(te,Q.length);else throw new Error("Overlapping edit");fe=Wt}return Q}l.applyEdits=f;function a(P,k){if(P.length<=1)return P;var Q=P.length/2|0,_e=P.slice(0,Q),fe=P.slice(Q);a(_e,k),a(fe,k);for(var mt=0,ht=0,Wt=0;mt<_e.length&&ht<fe.length;){var te=k(_e[mt],fe[ht]);te<=0?P[Wt++]=_e[mt++]:P[Wt++]=fe[ht++]}for(;mt<_e.length;)P[Wt++]=_e[mt++];for(;ht<fe.length;)P[Wt++]=fe[ht++];return P}})(Le=t.TextDocument||(t.TextDocument={}));var st=function(){function l(h,y,f,a){this._uri=h,this._languageId=y,this._version=f,this._content=a,this._lineOffsets=void 0}return Object.defineProperty(l.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),l.prototype.getText=function(h){if(h){var y=this.offsetAt(h.start),f=this.offsetAt(h.end);return this._content.substring(y,f)}return this._content},l.prototype.update=function(h,y){this._content=h.text,this._version=y,this._lineOffsets=void 0},l.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var h=[],y=this._content,f=!0,a=0;a<y.length;a++){f&&(h.push(a),f=!1);var P=y.charAt(a);f=P==="\r"||P===`
66
66
  `,P==="\r"&&a+1<y.length&&y.charAt(a+1)===`
67
- `&&a++}f&&y.length>0&&h.push(y.length),this._lineOffsets=h}return this._lineOffsets},l.prototype.positionAt=function(h){h=Math.max(Math.min(h,this._content.length),0);var y=this.getLineOffsets(),f=0,a=y.length;if(a===0)return s.create(0,h);for(;f<a;){var P=Math.floor((f+a)/2);y[P]>h?a=P:f=P+1}var k=f-1;return s.create(k,h-y[k])},l.prototype.offsetAt=function(h){var y=this.getLineOffsets();if(h.line>=y.length)return this._content.length;if(h.line<0)return 0;var f=y[h.line],a=h.line+1<y.length?y[h.line+1]:this._content.length;return Math.max(Math.min(f+h.character,a),f)},Object.defineProperty(l.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),l}(),C;(function(l){var h=Object.prototype.toString;function y(te){return typeof te<"u"}l.defined=y;function f(te){return typeof te>"u"}l.undefined=f;function a(te){return te===!0||te===!1}l.boolean=a;function P(te){return h.call(te)==="[object String]"}l.string=P;function k(te){return h.call(te)==="[object Number]"}l.number=k;function Q(te,Mn,oi){return h.call(te)==="[object Number]"&&Mn<=te&&te<=oi}l.numberRange=Q;function _e(te){return h.call(te)==="[object Number]"&&-2147483648<=te&&te<=2147483647}l.integer=_e;function fe(te){return h.call(te)==="[object Number]"&&0<=te&&te<=2147483647}l.uinteger=fe;function gt(te){return h.call(te)==="[object Function]"}l.func=gt;function mt(te){return te!==null&&typeof te=="object"}l.objectLiteral=mt;function Ft(te,Mn){return Array.isArray(te)&&te.every(Mn)}l.typedArray=Ft})(C||(C={}))})});var Ce=A(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ProtocolNotificationType=Ge.ProtocolNotificationType0=Ge.ProtocolRequestType=Ge.ProtocolRequestType0=Ge.RegistrationType=Ge.MessageDirection=void 0;var rr=kn(),Wb;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Wb=Ge.MessageDirection||(Ge.MessageDirection={}));var hc=class{constructor(t){this.method=t}};Ge.RegistrationType=hc;var yc=class extends rr.RequestType0{constructor(t){super(t)}};Ge.ProtocolRequestType0=yc;var bc=class extends rr.RequestType{constructor(t){super(t,rr.ParameterStructures.byName)}};Ge.ProtocolRequestType=bc;var vc=class extends rr.NotificationType0{constructor(t){super(t)}};Ge.ProtocolNotificationType0=vc;var Cc=class extends rr.NotificationType{constructor(t){super(t,rr.ParameterStructures.byName)}};Ge.ProtocolNotificationType=Cc});var oo=A(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 Hb(e){return e===!0||e===!1}xe.boolean=Hb;function Nd(e){return typeof e=="string"||e instanceof String}xe.string=Nd;function Ub(e){return typeof e=="number"||e instanceof Number}xe.number=Ub;function Bb(e){return e instanceof Error}xe.error=Bb;function zb(e){return typeof e=="function"}xe.func=zb;function Od(e){return Array.isArray(e)}xe.array=Od;function $b(e){return Od(e)&&e.every(t=>Nd(t))}xe.stringArray=$b;function Yb(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=Yb;function Vb(e){return e!==null&&typeof e=="object"}xe.objectLiteral=Vb});var Md=A(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplementationRequest=void 0;var Ed=Ce(),Kb;(function(e){e.method="textDocument/implementation",e.messageDirection=Ed.MessageDirection.clientToServer,e.type=new Ed.ProtocolRequestType(e.method)})(Kb=Er.ImplementationRequest||(Er.ImplementationRequest={}))});var Ld=A(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.TypeDefinitionRequest=void 0;var jd=Ce(),Gb;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=jd.MessageDirection.clientToServer,e.type=new jd.ProtocolRequestType(e.method)})(Gb=Mr.TypeDefinitionRequest||(Mr.TypeDefinitionRequest={}))});var Id=A(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.DidChangeWorkspaceFoldersNotification=on.WorkspaceFoldersRequest=void 0;var so=Ce(),Qb;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=so.MessageDirection.serverToClient,e.type=new so.ProtocolRequestType0(e.method)})(Qb=on.WorkspaceFoldersRequest||(on.WorkspaceFoldersRequest={}));var Jb;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=so.MessageDirection.clientToServer,e.type=new so.ProtocolNotificationType(e.method)})(Jb=on.DidChangeWorkspaceFoldersNotification||(on.DidChangeWorkspaceFoldersNotification={}))});var Wd=A(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.ConfigurationRequest=void 0;var Fd=Ce(),Xb;(function(e){e.method="workspace/configuration",e.messageDirection=Fd.MessageDirection.serverToClient,e.type=new Fd.ProtocolRequestType(e.method)})(Xb=jr.ConfigurationRequest||(jr.ConfigurationRequest={}))});var Hd=A(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.ColorPresentationRequest=sn.DocumentColorRequest=void 0;var ao=Ce(),Zb;(function(e){e.method="textDocument/documentColor",e.messageDirection=ao.MessageDirection.clientToServer,e.type=new ao.ProtocolRequestType(e.method)})(Zb=sn.DocumentColorRequest||(sn.DocumentColorRequest={}));var ev;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=ao.MessageDirection.clientToServer,e.type=new ao.ProtocolRequestType(e.method)})(ev=sn.ColorPresentationRequest||(sn.ColorPresentationRequest={}))});var Bd=A(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.FoldingRangeRequest=void 0;var Ud=Ce(),tv;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Ud.MessageDirection.clientToServer,e.type=new Ud.ProtocolRequestType(e.method)})(tv=Lr.FoldingRangeRequest||(Lr.FoldingRangeRequest={}))});var $d=A(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.DeclarationRequest=void 0;var zd=Ce(),nv;(function(e){e.method="textDocument/declaration",e.messageDirection=zd.MessageDirection.clientToServer,e.type=new zd.ProtocolRequestType(e.method)})(nv=Ir.DeclarationRequest||(Ir.DeclarationRequest={}))});var Vd=A(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.SelectionRangeRequest=void 0;var Yd=Ce(),rv;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Yd.MessageDirection.clientToServer,e.type=new Yd.ProtocolRequestType(e.method)})(rv=Fr.SelectionRangeRequest||(Fr.SelectionRangeRequest={}))});var Kd=A(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.WorkDoneProgressCancelNotification=vt.WorkDoneProgressCreateRequest=vt.WorkDoneProgress=void 0;var iv=kn(),co=Ce(),ov;(function(e){e.type=new iv.ProgressType;function t(n){return n===e.type}e.is=t})(ov=vt.WorkDoneProgress||(vt.WorkDoneProgress={}));var sv;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=co.MessageDirection.serverToClient,e.type=new co.ProtocolRequestType(e.method)})(sv=vt.WorkDoneProgressCreateRequest||(vt.WorkDoneProgressCreateRequest={}));var av;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=co.MessageDirection.clientToServer,e.type=new co.ProtocolNotificationType(e.method)})(av=vt.WorkDoneProgressCancelNotification||(vt.WorkDoneProgressCancelNotification={}))});var Gd=A(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.CallHierarchyOutgoingCallsRequest=Ct.CallHierarchyIncomingCallsRequest=Ct.CallHierarchyPrepareRequest=void 0;var ir=Ce(),cv;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(cv=Ct.CallHierarchyPrepareRequest||(Ct.CallHierarchyPrepareRequest={}));var uv;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(uv=Ct.CallHierarchyIncomingCallsRequest||(Ct.CallHierarchyIncomingCallsRequest={}));var lv;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(lv=Ct.CallHierarchyOutgoingCallsRequest||(Ct.CallHierarchyOutgoingCallsRequest={}))});var Qd=A(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.SemanticTokensRefreshRequest=we.SemanticTokensRangeRequest=we.SemanticTokensDeltaRequest=we.SemanticTokensRequest=we.SemanticTokensRegistrationType=we.TokenFormat=void 0;var Yt=Ce(),dv;(function(e){e.Relative="relative"})(dv=we.TokenFormat||(we.TokenFormat={}));var uo;(function(e){e.method="textDocument/semanticTokens",e.type=new Yt.RegistrationType(e.method)})(uo=we.SemanticTokensRegistrationType||(we.SemanticTokensRegistrationType={}));var fv;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Yt.MessageDirection.clientToServer,e.type=new Yt.ProtocolRequestType(e.method),e.registrationMethod=uo.method})(fv=we.SemanticTokensRequest||(we.SemanticTokensRequest={}));var pv;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Yt.MessageDirection.clientToServer,e.type=new Yt.ProtocolRequestType(e.method),e.registrationMethod=uo.method})(pv=we.SemanticTokensDeltaRequest||(we.SemanticTokensDeltaRequest={}));var gv;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Yt.MessageDirection.clientToServer,e.type=new Yt.ProtocolRequestType(e.method),e.registrationMethod=uo.method})(gv=we.SemanticTokensRangeRequest||(we.SemanticTokensRangeRequest={}));var mv;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Yt.MessageDirection.serverToClient,e.type=new Yt.ProtocolRequestType0(e.method)})(mv=we.SemanticTokensRefreshRequest||(we.SemanticTokensRefreshRequest={}))});var Xd=A(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.ShowDocumentRequest=void 0;var Jd=Ce(),hv;(function(e){e.method="window/showDocument",e.messageDirection=Jd.MessageDirection.serverToClient,e.type=new Jd.ProtocolRequestType(e.method)})(hv=Wr.ShowDocumentRequest||(Wr.ShowDocumentRequest={}))});var ef=A(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.LinkedEditingRangeRequest=void 0;var Zd=Ce(),yv;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Zd.MessageDirection.clientToServer,e.type=new Zd.ProtocolRequestType(e.method)})(yv=Hr.LinkedEditingRangeRequest||(Hr.LinkedEditingRangeRequest={}))});var tf=A(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.WillDeleteFilesRequest=Pe.DidDeleteFilesNotification=Pe.DidRenameFilesNotification=Pe.WillRenameFilesRequest=Pe.DidCreateFilesNotification=Pe.WillCreateFilesRequest=Pe.FileOperationPatternKind=void 0;var ct=Ce(),bv;(function(e){e.file="file",e.folder="folder"})(bv=Pe.FileOperationPatternKind||(Pe.FileOperationPatternKind={}));var vv;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=ct.MessageDirection.clientToServer,e.type=new ct.ProtocolRequestType(e.method)})(vv=Pe.WillCreateFilesRequest||(Pe.WillCreateFilesRequest={}));var Cv;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=ct.MessageDirection.clientToServer,e.type=new ct.ProtocolNotificationType(e.method)})(Cv=Pe.DidCreateFilesNotification||(Pe.DidCreateFilesNotification={}));var Pv;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=ct.MessageDirection.clientToServer,e.type=new ct.ProtocolRequestType(e.method)})(Pv=Pe.WillRenameFilesRequest||(Pe.WillRenameFilesRequest={}));var _v;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=ct.MessageDirection.clientToServer,e.type=new ct.ProtocolNotificationType(e.method)})(_v=Pe.DidRenameFilesNotification||(Pe.DidRenameFilesNotification={}));var Rv;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=ct.MessageDirection.clientToServer,e.type=new ct.ProtocolNotificationType(e.method)})(Rv=Pe.DidDeleteFilesNotification||(Pe.DidDeleteFilesNotification={}));var Dv;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=ct.MessageDirection.clientToServer,e.type=new ct.ProtocolRequestType(e.method)})(Dv=Pe.WillDeleteFilesRequest||(Pe.WillDeleteFilesRequest={}))});var rf=A(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.MonikerRequest=Pt.MonikerKind=Pt.UniquenessLevel=void 0;var nf=Ce(),Sv;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Sv=Pt.UniquenessLevel||(Pt.UniquenessLevel={}));var Tv;(function(e){e.$import="import",e.$export="export",e.local="local"})(Tv=Pt.MonikerKind||(Pt.MonikerKind={}));var xv;(function(e){e.method="textDocument/moniker",e.messageDirection=nf.MessageDirection.clientToServer,e.type=new nf.ProtocolRequestType(e.method)})(xv=Pt.MonikerRequest||(Pt.MonikerRequest={}))});var of=A(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.TypeHierarchySubtypesRequest=_t.TypeHierarchySupertypesRequest=_t.TypeHierarchyPrepareRequest=void 0;var or=Ce(),wv;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(wv=_t.TypeHierarchyPrepareRequest||(_t.TypeHierarchyPrepareRequest={}));var kv;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(kv=_t.TypeHierarchySupertypesRequest||(_t.TypeHierarchySupertypesRequest={}));var Av;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Av=_t.TypeHierarchySubtypesRequest||(_t.TypeHierarchySubtypesRequest={}))});var sf=A(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.InlineValueRefreshRequest=an.InlineValueRequest=void 0;var lo=Ce(),qv;(function(e){e.method="textDocument/inlineValue",e.messageDirection=lo.MessageDirection.clientToServer,e.type=new lo.ProtocolRequestType(e.method)})(qv=an.InlineValueRequest||(an.InlineValueRequest={}));var Nv;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=lo.MessageDirection.serverToClient,e.type=new lo.ProtocolRequestType0(e.method)})(Nv=an.InlineValueRefreshRequest||(an.InlineValueRefreshRequest={}))});var af=A(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.InlayHintRefreshRequest=Rt.InlayHintResolveRequest=Rt.InlayHintRequest=void 0;var sr=Ce(),Ov;(function(e){e.method="textDocument/inlayHint",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(Ov=Rt.InlayHintRequest||(Rt.InlayHintRequest={}));var Ev;(function(e){e.method="inlayHint/resolve",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(Ev=Rt.InlayHintResolveRequest||(Rt.InlayHintResolveRequest={}));var Mv;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=sr.MessageDirection.serverToClient,e.type=new sr.ProtocolRequestType0(e.method)})(Mv=Rt.InlayHintRefreshRequest||(Rt.InlayHintRefreshRequest={}))});var uf=A(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.DiagnosticRefreshRequest=Ue.WorkspaceDiagnosticRequest=Ue.DocumentDiagnosticRequest=Ue.DocumentDiagnosticReportKind=Ue.DiagnosticServerCancellationData=void 0;var cf=kn(),jv=oo(),ar=Ce(),Lv;(function(e){function t(n){let r=n;return r&&jv.boolean(r.retriggerRequest)}e.is=t})(Lv=Ue.DiagnosticServerCancellationData||(Ue.DiagnosticServerCancellationData={}));var Iv;(function(e){e.Full="full",e.Unchanged="unchanged"})(Iv=Ue.DocumentDiagnosticReportKind||(Ue.DocumentDiagnosticReportKind={}));var Fv;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method),e.partialResult=new cf.ProgressType})(Fv=Ue.DocumentDiagnosticRequest||(Ue.DocumentDiagnosticRequest={}));var Wv;(function(e){e.method="workspace/diagnostic",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method),e.partialResult=new cf.ProgressType})(Wv=Ue.WorkspaceDiagnosticRequest||(Ue.WorkspaceDiagnosticRequest={}));var Hv;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(Hv=Ue.DiagnosticRefreshRequest||(Ue.DiagnosticRefreshRequest={}))});var ff=A(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.DidCloseNotebookDocumentNotification=re.DidSaveNotebookDocumentNotification=re.DidChangeNotebookDocumentNotification=re.NotebookCellArrayChange=re.DidOpenNotebookDocumentNotification=re.NotebookDocumentSyncRegistrationType=re.NotebookDocument=re.NotebookCell=re.ExecutionSummary=re.NotebookCellKind=void 0;var Ur=io(),Dt=oo(),Nt=Ce(),lf;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(lf=re.NotebookCellKind||(re.NotebookCellKind={}));var df;(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 Dt.objectLiteral(o)&&Ur.uinteger.is(o.executionOrder)&&(o.success===void 0||Dt.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})(df=re.ExecutionSummary||(re.ExecutionSummary={}));var Pc;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return Dt.objectLiteral(s)&&lf.is(s.kind)&&Ur.DocumentUri.is(s.document)&&(s.metadata===void 0||Dt.objectLiteral(s.metadata))}e.is=n;function r(o,s){let u=new Set;return o.document!==s.document&&u.add("document"),o.kind!==s.kind&&u.add("kind"),o.executionSummary!==s.executionSummary&&u.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&u.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!df.equals(o.executionSummary,s.executionSummary)&&u.add("executionSummary"),u}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 u=Array.isArray(o),c=Array.isArray(s);if(u!==c)return!1;if(u&&c){if(o.length!==s.length)return!1;for(let p=0;p<o.length;p++)if(!i(o[p],s[p]))return!1}if(Dt.objectLiteral(o)&&Dt.objectLiteral(s)){let p=Object.keys(o),g=Object.keys(s);if(p.length!==g.length||(p.sort(),g.sort(),!i(p,g)))return!1;for(let b=0;b<p.length;b++){let R=p[b];if(!i(o[R],s[R]))return!1}}return!0}})(Pc=re.NotebookCell||(re.NotebookCell={}));var Uv;(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 Dt.objectLiteral(i)&&Dt.string(i.uri)&&Ur.integer.is(i.version)&&Dt.typedArray(i.cells,Pc.is)}e.is=n})(Uv=re.NotebookDocument||(re.NotebookDocument={}));var Br;(function(e){e.method="notebookDocument/sync",e.messageDirection=Nt.MessageDirection.clientToServer,e.type=new Nt.RegistrationType(e.method)})(Br=re.NotebookDocumentSyncRegistrationType||(re.NotebookDocumentSyncRegistrationType={}));var Bv;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Nt.MessageDirection.clientToServer,e.type=new Nt.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})(Bv=re.DidOpenNotebookDocumentNotification||(re.DidOpenNotebookDocumentNotification={}));var zv;(function(e){function t(r){let i=r;return Dt.objectLiteral(i)&&Ur.uinteger.is(i.start)&&Ur.uinteger.is(i.deleteCount)&&(i.cells===void 0||Dt.typedArray(i.cells,Pc.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})(zv=re.NotebookCellArrayChange||(re.NotebookCellArrayChange={}));var $v;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Nt.MessageDirection.clientToServer,e.type=new Nt.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})($v=re.DidChangeNotebookDocumentNotification||(re.DidChangeNotebookDocumentNotification={}));var Yv;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Nt.MessageDirection.clientToServer,e.type=new Nt.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})(Yv=re.DidSaveNotebookDocumentNotification||(re.DidSaveNotebookDocumentNotification={}));var Vv;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Nt.MessageDirection.clientToServer,e.type=new Nt.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})(Vv=re.DidCloseNotebookDocumentNotification||(re.DidCloseNotebookDocumentNotification={}))});var Pf=A(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.WorkspaceSymbolRequest=d.CodeActionResolveRequest=d.CodeActionRequest=d.DocumentSymbolRequest=d.DocumentHighlightRequest=d.ReferencesRequest=d.DefinitionRequest=d.SignatureHelpRequest=d.SignatureHelpTriggerKind=d.HoverRequest=d.CompletionResolveRequest=d.CompletionRequest=d.CompletionTriggerKind=d.PublishDiagnosticsNotification=d.WatchKind=d.RelativePattern=d.FileChangeType=d.DidChangeWatchedFilesNotification=d.WillSaveTextDocumentWaitUntilRequest=d.WillSaveTextDocumentNotification=d.TextDocumentSaveReason=d.DidSaveTextDocumentNotification=d.DidCloseTextDocumentNotification=d.DidChangeTextDocumentNotification=d.TextDocumentContentChangeEvent=d.DidOpenTextDocumentNotification=d.TextDocumentSyncKind=d.TelemetryEventNotification=d.LogMessageNotification=d.ShowMessageRequest=d.ShowMessageNotification=d.MessageType=d.DidChangeConfigurationNotification=d.ExitNotification=d.ShutdownRequest=d.InitializedNotification=d.InitializeErrorCodes=d.InitializeRequest=d.WorkDoneProgressOptions=d.TextDocumentRegistrationOptions=d.StaticRegistrationOptions=d.PositionEncodingKind=d.FailureHandlingKind=d.ResourceOperationKind=d.UnregistrationRequest=d.RegistrationRequest=d.DocumentSelector=d.NotebookCellTextDocumentFilter=d.NotebookDocumentFilter=d.TextDocumentFilter=void 0;d.TypeHierarchySubtypesRequest=d.TypeHierarchyPrepareRequest=d.MonikerRequest=d.MonikerKind=d.UniquenessLevel=d.WillDeleteFilesRequest=d.DidDeleteFilesNotification=d.WillRenameFilesRequest=d.DidRenameFilesNotification=d.WillCreateFilesRequest=d.DidCreateFilesNotification=d.FileOperationPatternKind=d.LinkedEditingRangeRequest=d.ShowDocumentRequest=d.SemanticTokensRegistrationType=d.SemanticTokensRefreshRequest=d.SemanticTokensRangeRequest=d.SemanticTokensDeltaRequest=d.SemanticTokensRequest=d.TokenFormat=d.CallHierarchyPrepareRequest=d.CallHierarchyOutgoingCallsRequest=d.CallHierarchyIncomingCallsRequest=d.WorkDoneProgressCancelNotification=d.WorkDoneProgressCreateRequest=d.WorkDoneProgress=d.SelectionRangeRequest=d.DeclarationRequest=d.FoldingRangeRequest=d.ColorPresentationRequest=d.DocumentColorRequest=d.ConfigurationRequest=d.DidChangeWorkspaceFoldersNotification=d.WorkspaceFoldersRequest=d.TypeDefinitionRequest=d.ImplementationRequest=d.ApplyWorkspaceEditRequest=d.ExecuteCommandRequest=d.PrepareRenameRequest=d.RenameRequest=d.PrepareSupportDefaultBehavior=d.DocumentOnTypeFormattingRequest=d.DocumentRangeFormattingRequest=d.DocumentFormattingRequest=d.DocumentLinkResolveRequest=d.DocumentLinkRequest=d.CodeLensRefreshRequest=d.CodeLensResolveRequest=d.CodeLensRequest=d.WorkspaceSymbolResolveRequest=void 0;d.DidCloseNotebookDocumentNotification=d.DidSaveNotebookDocumentNotification=d.DidChangeNotebookDocumentNotification=d.NotebookCellArrayChange=d.DidOpenNotebookDocumentNotification=d.NotebookDocumentSyncRegistrationType=d.NotebookDocument=d.NotebookCell=d.ExecutionSummary=d.NotebookCellKind=d.DiagnosticRefreshRequest=d.WorkspaceDiagnosticRequest=d.DocumentDiagnosticRequest=d.DocumentDiagnosticReportKind=d.DiagnosticServerCancellationData=d.InlayHintRefreshRequest=d.InlayHintResolveRequest=d.InlayHintRequest=d.InlineValueRefreshRequest=d.InlineValueRequest=d.TypeHierarchySupertypesRequest=void 0;var O=Ce(),pf=io(),Be=oo(),Kv=Md();Object.defineProperty(d,"ImplementationRequest",{enumerable:!0,get:function(){return Kv.ImplementationRequest}});var Gv=Ld();Object.defineProperty(d,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Gv.TypeDefinitionRequest}});var gf=Id();Object.defineProperty(d,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return gf.WorkspaceFoldersRequest}});Object.defineProperty(d,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return gf.DidChangeWorkspaceFoldersNotification}});var Qv=Wd();Object.defineProperty(d,"ConfigurationRequest",{enumerable:!0,get:function(){return Qv.ConfigurationRequest}});var mf=Hd();Object.defineProperty(d,"DocumentColorRequest",{enumerable:!0,get:function(){return mf.DocumentColorRequest}});Object.defineProperty(d,"ColorPresentationRequest",{enumerable:!0,get:function(){return mf.ColorPresentationRequest}});var Jv=Bd();Object.defineProperty(d,"FoldingRangeRequest",{enumerable:!0,get:function(){return Jv.FoldingRangeRequest}});var Xv=$d();Object.defineProperty(d,"DeclarationRequest",{enumerable:!0,get:function(){return Xv.DeclarationRequest}});var Zv=Vd();Object.defineProperty(d,"SelectionRangeRequest",{enumerable:!0,get:function(){return Zv.SelectionRangeRequest}});var _c=Kd();Object.defineProperty(d,"WorkDoneProgress",{enumerable:!0,get:function(){return _c.WorkDoneProgress}});Object.defineProperty(d,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return _c.WorkDoneProgressCreateRequest}});Object.defineProperty(d,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return _c.WorkDoneProgressCancelNotification}});var Rc=Gd();Object.defineProperty(d,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Rc.CallHierarchyIncomingCallsRequest}});Object.defineProperty(d,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Rc.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(d,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Rc.CallHierarchyPrepareRequest}});var cr=Qd();Object.defineProperty(d,"TokenFormat",{enumerable:!0,get:function(){return cr.TokenFormat}});Object.defineProperty(d,"SemanticTokensRequest",{enumerable:!0,get:function(){return cr.SemanticTokensRequest}});Object.defineProperty(d,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return cr.SemanticTokensDeltaRequest}});Object.defineProperty(d,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return cr.SemanticTokensRangeRequest}});Object.defineProperty(d,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return cr.SemanticTokensRefreshRequest}});Object.defineProperty(d,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return cr.SemanticTokensRegistrationType}});var eC=Xd();Object.defineProperty(d,"ShowDocumentRequest",{enumerable:!0,get:function(){return eC.ShowDocumentRequest}});var tC=ef();Object.defineProperty(d,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return tC.LinkedEditingRangeRequest}});var An=tf();Object.defineProperty(d,"FileOperationPatternKind",{enumerable:!0,get:function(){return An.FileOperationPatternKind}});Object.defineProperty(d,"DidCreateFilesNotification",{enumerable:!0,get:function(){return An.DidCreateFilesNotification}});Object.defineProperty(d,"WillCreateFilesRequest",{enumerable:!0,get:function(){return An.WillCreateFilesRequest}});Object.defineProperty(d,"DidRenameFilesNotification",{enumerable:!0,get:function(){return An.DidRenameFilesNotification}});Object.defineProperty(d,"WillRenameFilesRequest",{enumerable:!0,get:function(){return An.WillRenameFilesRequest}});Object.defineProperty(d,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return An.DidDeleteFilesNotification}});Object.defineProperty(d,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return An.WillDeleteFilesRequest}});var Dc=rf();Object.defineProperty(d,"UniquenessLevel",{enumerable:!0,get:function(){return Dc.UniquenessLevel}});Object.defineProperty(d,"MonikerKind",{enumerable:!0,get:function(){return Dc.MonikerKind}});Object.defineProperty(d,"MonikerRequest",{enumerable:!0,get:function(){return Dc.MonikerRequest}});var Sc=of();Object.defineProperty(d,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Sc.TypeHierarchyPrepareRequest}});Object.defineProperty(d,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Sc.TypeHierarchySubtypesRequest}});Object.defineProperty(d,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Sc.TypeHierarchySupertypesRequest}});var hf=sf();Object.defineProperty(d,"InlineValueRequest",{enumerable:!0,get:function(){return hf.InlineValueRequest}});Object.defineProperty(d,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return hf.InlineValueRefreshRequest}});var Tc=af();Object.defineProperty(d,"InlayHintRequest",{enumerable:!0,get:function(){return Tc.InlayHintRequest}});Object.defineProperty(d,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Tc.InlayHintResolveRequest}});Object.defineProperty(d,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Tc.InlayHintRefreshRequest}});var zr=uf();Object.defineProperty(d,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return zr.DiagnosticServerCancellationData}});Object.defineProperty(d,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return zr.DocumentDiagnosticReportKind}});Object.defineProperty(d,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return zr.DocumentDiagnosticRequest}});Object.defineProperty(d,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return zr.WorkspaceDiagnosticRequest}});Object.defineProperty(d,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return zr.DiagnosticRefreshRequest}});var Ot=ff();Object.defineProperty(d,"NotebookCellKind",{enumerable:!0,get:function(){return Ot.NotebookCellKind}});Object.defineProperty(d,"ExecutionSummary",{enumerable:!0,get:function(){return Ot.ExecutionSummary}});Object.defineProperty(d,"NotebookCell",{enumerable:!0,get:function(){return Ot.NotebookCell}});Object.defineProperty(d,"NotebookDocument",{enumerable:!0,get:function(){return Ot.NotebookDocument}});Object.defineProperty(d,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Ot.NotebookDocumentSyncRegistrationType}});Object.defineProperty(d,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Ot.DidOpenNotebookDocumentNotification}});Object.defineProperty(d,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Ot.NotebookCellArrayChange}});Object.defineProperty(d,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Ot.DidChangeNotebookDocumentNotification}});Object.defineProperty(d,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Ot.DidSaveNotebookDocumentNotification}});Object.defineProperty(d,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Ot.DidCloseNotebookDocumentNotification}});var yf;(function(e){function t(n){let r=n;return Be.string(r.language)||Be.string(r.scheme)||Be.string(r.pattern)}e.is=t})(yf=d.TextDocumentFilter||(d.TextDocumentFilter={}));var bf;(function(e){function t(n){let r=n;return Be.objectLiteral(r)&&(Be.string(r.notebookType)||Be.string(r.scheme)||Be.string(r.pattern))}e.is=t})(bf=d.NotebookDocumentFilter||(d.NotebookDocumentFilter={}));var vf;(function(e){function t(n){let r=n;return Be.objectLiteral(r)&&(Be.string(r.notebook)||bf.is(r.notebook))&&(r.language===void 0||Be.string(r.language))}e.is=t})(vf=d.NotebookCellTextDocumentFilter||(d.NotebookCellTextDocumentFilter={}));var Cf;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Be.string(r)&&!yf.is(r)&&!vf.is(r))return!1;return!0}e.is=t})(Cf=d.DocumentSelector||(d.DocumentSelector={}));var nC;(function(e){e.method="client/registerCapability",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType(e.method)})(nC=d.RegistrationRequest||(d.RegistrationRequest={}));var rC;(function(e){e.method="client/unregisterCapability",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType(e.method)})(rC=d.UnregistrationRequest||(d.UnregistrationRequest={}));var iC;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(iC=d.ResourceOperationKind||(d.ResourceOperationKind={}));var oC;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(oC=d.FailureHandlingKind||(d.FailureHandlingKind={}));var sC;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(sC=d.PositionEncodingKind||(d.PositionEncodingKind={}));var aC;(function(e){function t(n){let r=n;return r&&Be.string(r.id)&&r.id.length>0}e.hasId=t})(aC=d.StaticRegistrationOptions||(d.StaticRegistrationOptions={}));var cC;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Cf.is(r.documentSelector))}e.is=t})(cC=d.TextDocumentRegistrationOptions||(d.TextDocumentRegistrationOptions={}));var uC;(function(e){function t(r){let i=r;return Be.objectLiteral(i)&&(i.workDoneProgress===void 0||Be.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Be.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(uC=d.WorkDoneProgressOptions||(d.WorkDoneProgressOptions={}));var lC;(function(e){e.method="initialize",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(lC=d.InitializeRequest||(d.InitializeRequest={}));var dC;(function(e){e.unknownProtocolVersion=1})(dC=d.InitializeErrorCodes||(d.InitializeErrorCodes={}));var fC;(function(e){e.method="initialized",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(fC=d.InitializedNotification||(d.InitializedNotification={}));var pC;(function(e){e.method="shutdown",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType0(e.method)})(pC=d.ShutdownRequest||(d.ShutdownRequest={}));var gC;(function(e){e.method="exit",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType0(e.method)})(gC=d.ExitNotification||(d.ExitNotification={}));var mC;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(mC=d.DidChangeConfigurationNotification||(d.DidChangeConfigurationNotification={}));var hC;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4})(hC=d.MessageType||(d.MessageType={}));var yC;(function(e){e.method="window/showMessage",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(yC=d.ShowMessageNotification||(d.ShowMessageNotification={}));var bC;(function(e){e.method="window/showMessageRequest",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType(e.method)})(bC=d.ShowMessageRequest||(d.ShowMessageRequest={}));var vC;(function(e){e.method="window/logMessage",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(vC=d.LogMessageNotification||(d.LogMessageNotification={}));var CC;(function(e){e.method="telemetry/event",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(CC=d.TelemetryEventNotification||(d.TelemetryEventNotification={}));var PC;(function(e){e.None=0,e.Full=1,e.Incremental=2})(PC=d.TextDocumentSyncKind||(d.TextDocumentSyncKind={}));var _C;(function(e){e.method="textDocument/didOpen",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(_C=d.DidOpenTextDocumentNotification||(d.DidOpenTextDocumentNotification={}));var RC;(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})(RC=d.TextDocumentContentChangeEvent||(d.TextDocumentContentChangeEvent={}));var DC;(function(e){e.method="textDocument/didChange",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(DC=d.DidChangeTextDocumentNotification||(d.DidChangeTextDocumentNotification={}));var SC;(function(e){e.method="textDocument/didClose",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(SC=d.DidCloseTextDocumentNotification||(d.DidCloseTextDocumentNotification={}));var TC;(function(e){e.method="textDocument/didSave",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(TC=d.DidSaveTextDocumentNotification||(d.DidSaveTextDocumentNotification={}));var xC;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(xC=d.TextDocumentSaveReason||(d.TextDocumentSaveReason={}));var wC;(function(e){e.method="textDocument/willSave",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(wC=d.WillSaveTextDocumentNotification||(d.WillSaveTextDocumentNotification={}));var kC;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(kC=d.WillSaveTextDocumentWaitUntilRequest||(d.WillSaveTextDocumentWaitUntilRequest={}));var AC;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(AC=d.DidChangeWatchedFilesNotification||(d.DidChangeWatchedFilesNotification={}));var qC;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(qC=d.FileChangeType||(d.FileChangeType={}));var NC;(function(e){function t(n){let r=n;return Be.objectLiteral(r)&&(pf.URI.is(r.baseUri)||pf.WorkspaceFolder.is(r.baseUri))&&Be.string(r.pattern)}e.is=t})(NC=d.RelativePattern||(d.RelativePattern={}));var OC;(function(e){e.Create=1,e.Change=2,e.Delete=4})(OC=d.WatchKind||(d.WatchKind={}));var EC;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(EC=d.PublishDiagnosticsNotification||(d.PublishDiagnosticsNotification={}));var MC;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(MC=d.CompletionTriggerKind||(d.CompletionTriggerKind={}));var jC;(function(e){e.method="textDocument/completion",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(jC=d.CompletionRequest||(d.CompletionRequest={}));var LC;(function(e){e.method="completionItem/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(LC=d.CompletionResolveRequest||(d.CompletionResolveRequest={}));var IC;(function(e){e.method="textDocument/hover",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(IC=d.HoverRequest||(d.HoverRequest={}));var FC;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(FC=d.SignatureHelpTriggerKind||(d.SignatureHelpTriggerKind={}));var WC;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(WC=d.SignatureHelpRequest||(d.SignatureHelpRequest={}));var HC;(function(e){e.method="textDocument/definition",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(HC=d.DefinitionRequest||(d.DefinitionRequest={}));var UC;(function(e){e.method="textDocument/references",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(UC=d.ReferencesRequest||(d.ReferencesRequest={}));var BC;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(BC=d.DocumentHighlightRequest||(d.DocumentHighlightRequest={}));var zC;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(zC=d.DocumentSymbolRequest||(d.DocumentSymbolRequest={}));var $C;(function(e){e.method="textDocument/codeAction",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})($C=d.CodeActionRequest||(d.CodeActionRequest={}));var YC;(function(e){e.method="codeAction/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(YC=d.CodeActionResolveRequest||(d.CodeActionResolveRequest={}));var VC;(function(e){e.method="workspace/symbol",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(VC=d.WorkspaceSymbolRequest||(d.WorkspaceSymbolRequest={}));var KC;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(KC=d.WorkspaceSymbolResolveRequest||(d.WorkspaceSymbolResolveRequest={}));var GC;(function(e){e.method="textDocument/codeLens",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(GC=d.CodeLensRequest||(d.CodeLensRequest={}));var QC;(function(e){e.method="codeLens/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(QC=d.CodeLensResolveRequest||(d.CodeLensResolveRequest={}));var JC;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType0(e.method)})(JC=d.CodeLensRefreshRequest||(d.CodeLensRefreshRequest={}));var XC;(function(e){e.method="textDocument/documentLink",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(XC=d.DocumentLinkRequest||(d.DocumentLinkRequest={}));var ZC;(function(e){e.method="documentLink/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(ZC=d.DocumentLinkResolveRequest||(d.DocumentLinkResolveRequest={}));var eP;(function(e){e.method="textDocument/formatting",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(eP=d.DocumentFormattingRequest||(d.DocumentFormattingRequest={}));var tP;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(tP=d.DocumentRangeFormattingRequest||(d.DocumentRangeFormattingRequest={}));var nP;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(nP=d.DocumentOnTypeFormattingRequest||(d.DocumentOnTypeFormattingRequest={}));var rP;(function(e){e.Identifier=1})(rP=d.PrepareSupportDefaultBehavior||(d.PrepareSupportDefaultBehavior={}));var iP;(function(e){e.method="textDocument/rename",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(iP=d.RenameRequest||(d.RenameRequest={}));var oP;(function(e){e.method="textDocument/prepareRename",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(oP=d.PrepareRenameRequest||(d.PrepareRenameRequest={}));var sP;(function(e){e.method="workspace/executeCommand",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(sP=d.ExecuteCommandRequest||(d.ExecuteCommandRequest={}));var aP;(function(e){e.method="workspace/applyEdit",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType("workspace/applyEdit")})(aP=d.ApplyWorkspaceEditRequest||(d.ApplyWorkspaceEditRequest={}))});var Rf=A(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.createProtocolConnection=void 0;var _f=kn();function cP(e,t,n,r){return _f.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,_f.createMessageConnection)(e,t,n,r)}fo.createProtocolConnection=cP});var Df=A(Qe=>{"use strict";var uP=Qe&&Qe.__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]}),po=Qe&&Qe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uP(t,e,n)};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.LSPErrorCodes=Qe.createProtocolConnection=void 0;po(kn(),Qe);po(io(),Qe);po(Ce(),Qe);po(Pf(),Qe);var lP=Rf();Object.defineProperty(Qe,"createProtocolConnection",{enumerable:!0,get:function(){return lP.createProtocolConnection}});var dP;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(dP=Qe.LSPErrorCodes||(Qe.LSPErrorCodes={}))});var qe=A(Et=>{"use strict";var fP=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]}),Sf=Et&&Et.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fP(t,e,n)};Object.defineProperty(Et,"__esModule",{value:!0});Et.createProtocolConnection=void 0;var pP=mc();Sf(mc(),Et);Sf(Df(),Et);function gP(e,t,n,r){return(0,pP.createMessageConnection)(e,t,n,r)}Et.createProtocolConnection=gP});var wc=A(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.SemanticTokensBuilder=cn.SemanticTokensDiff=cn.SemanticTokensFeature=void 0;var go=qe(),mP=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(go.SemanticTokensRefreshRequest.type),on:t=>{let n=go.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=go.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=go.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};cn.SemanticTokensFeature=mP;var mo=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,u=this.modifiedSequence.slice(r,o+1);return u.length===1&&u[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:u}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};cn.SemanticTokensDiff=mo;var xc=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,u=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(u-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=u,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 mo(this._prevData,this._data).computeDiff()}:this.build()}};cn.SemanticTokensBuilder=xc});var Ac=A(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.TextDocuments=void 0;var qn=qe(),kc=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new qn.Emitter,this._onDidOpen=new qn.Emitter,this._onDidClose=new qn.Emitter,this._onDidSave=new qn.Emitter,this._onWillSave=new qn.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=qn.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 u=this._syncedDocuments.get(i.uri);u!==void 0&&(u=this._configuration.update(u,o,s),this._syncedDocuments.set(i.uri,u),this._onDidChangeContent.fire(Object.freeze({document:u})))})),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}))})),qn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ho.TextDocuments=kc});var Nc=A(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.NotebookDocuments=ur.NotebookSyncFeature=void 0;var ut=qe(),Tf=Ac(),hP=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(ut.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(ut.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(ut.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(ut.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ur.NotebookSyncFeature=hP;var un=class{onDidOpenTextDocument(t){return this.openHandler=t,ut.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,ut.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,ut.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return un.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return un.NULL_DISPOSE}onDidSaveTextDocument(){return un.NULL_DISPOSE}};un.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var qc=class{constructor(t){t instanceof Tf.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new Tf.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new ut.Emitter,this._onDidChange=new ut.Emitter,this._onDidSave=new ut.Emitter,this._onDidClose=new ut.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 un,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,u=!1,c=i.change;c.metadata!==void 0&&(u=!0,o.metadata=c.metadata);let p=[],g=[],b=[],R=[];if(c.cells!==void 0){let j=c.cells;if(j.structure!==void 0){let _=j.structure.array;if(o.cells.splice(_.start,_.deleteCount,..._.cells!==void 0?_.cells:[]),j.structure.didOpen!==void 0)for(let v of j.structure.didOpen)n.openTextDocument({textDocument:v}),p.push(v.uri);if(j.structure.didClose)for(let v of j.structure.didClose)n.closeTextDocument({textDocument:v}),g.push(v.uri)}if(j.data!==void 0){let _=new Map(j.data.map(v=>[v.document,v]));for(let v=0;v<=o.cells.length;v++){let N=_.get(o.cells[v].document);if(N!==void 0){let z=o.cells.splice(v,1,N);if(b.push({old:z[0],new:N}),_.delete(N.document),_.size===0)break}}}if(j.textContent!==void 0)for(let _ of j.textContent)n.changeTextDocument({textDocument:_.document,contentChanges:_.changes}),R.push(_.document.uri)}this.updateCellMap(o);let D={notebookDocument:o};u&&(D.metadata={old:s,new:o.metadata});let T=[];for(let j of p)T.push(this.getNotebookCell(j));let q=[];for(let j of g)q.push(this.getNotebookCell(j));let B=[];for(let j of R)B.push(this.getNotebookCell(j));(T.length>0||q.length>0||b.length>0||B.length>0)&&(D.cells={added:T,removed:q,changed:{data:b,textContent:B}}),(D.metadata!==void 0||D.cells!==void 0)&&this._onDidChange.fire(D)})),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)}})),ut.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ur.NotebookDocuments=qc});var Oc=A(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.thenable=ke.typedArray=ke.stringArray=ke.array=ke.func=ke.error=ke.number=ke.string=ke.boolean=void 0;function yP(e){return e===!0||e===!1}ke.boolean=yP;function xf(e){return typeof e=="string"||e instanceof String}ke.string=xf;function bP(e){return typeof e=="number"||e instanceof Number}ke.number=bP;function vP(e){return e instanceof Error}ke.error=vP;function wf(e){return typeof e=="function"}ke.func=wf;function kf(e){return Array.isArray(e)}ke.array=kf;function CP(e){return kf(e)&&e.every(t=>xf(t))}ke.stringArray=CP;function PP(e,t){return Array.isArray(e)&&e.every(t)}ke.typedArray=PP;function _P(e){return e&&wf(e.then)}ke.thenable=_P});var Ec=A(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.generateUuid=lt.parse=lt.isUUID=lt.v4=lt.empty=void 0;var $r=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},J=class extends $r{constructor(){super([J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),"-",J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),"-","4",J._randomHex(),J._randomHex(),J._randomHex(),"-",J._oneOf(J._timeHighBits),J._randomHex(),J._randomHex(),J._randomHex(),"-",J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex()].join(""))}static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return J._oneOf(J._chars)}};J._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];J._timeHighBits=["8","9","a","b"];lt.empty=new $r("00000000-0000-0000-0000-000000000000");function Af(){return new J}lt.v4=Af;var RP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function qf(e){return RP.test(e)}lt.isUUID=qf;function DP(e){if(!qf(e))throw new Error("invalid uuid");return new $r(e)}lt.parse=DP;function SP(){return Af().asHex()}lt.generateUuid=SP});var Nf=A(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.attachPartialResult=dn.ProgressFeature=dn.attachWorkDone=void 0;var ln=qe(),TP=Ec(),Mt=class{constructor(t,n){this._connection=t,this._token=n,Mt.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(ln.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(ln.WorkDoneProgress.type,this._token,r)}done(){Mt.Instances.delete(this._token),this._connection.sendProgress(ln.WorkDoneProgress.type,this._token,{kind:"end"})}};Mt.Instances=new Map;var yo=class extends Mt{constructor(t,n){super(t,n),this._source=new ln.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Yr=class{constructor(){}begin(){}report(){}done(){}},bo=class extends Yr{constructor(){super(),this._source=new ln.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function xP(e,t){if(t===void 0||t.workDoneToken===void 0)return new Yr;let n=t.workDoneToken;return delete t.workDoneToken,new Mt(e,n)}dn.attachWorkDone=xP;var wP=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(ln.WorkDoneProgressCancelNotification.type,n=>{let r=Mt.Instances.get(n.token);(r instanceof yo||r instanceof bo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Yr:new Mt(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,TP.generateUuid)();return this.connection.sendRequest(ln.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new yo(this.connection,t))}else return Promise.resolve(new bo)}};dn.ProgressFeature=wP;var Mc;(function(e){e.type=new ln.ProgressType})(Mc||(Mc={}));var jc=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Mc.type,this._token,t)}};function kP(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new jc(e,n)}dn.attachPartialResult=kP});var Of=A(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ConfigurationFeature=void 0;var AP=qe(),qP=Oc(),NP=e=>class extends e{getConfiguration(t){return t?qP.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(AP.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};vo.ConfigurationFeature=NP});var Ef=A(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.WorkspaceFoldersFeature=void 0;var Co=qe(),OP=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Co.Emitter,this.connection.onNotification(Co.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(Co.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(Co.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Po.WorkspaceFoldersFeature=OP});var Mf=A(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.CallHierarchyFeature=void 0;var Lc=qe(),EP=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Lc.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Lc.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Lc.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};_o.CallHierarchyFeature=EP});var jf=A(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.ShowDocumentFeature=void 0;var MP=qe(),jP=e=>class extends e{showDocument(t){return this.connection.sendRequest(MP.ShowDocumentRequest.type,t)}};Ro.ShowDocumentFeature=jP});var Lf=A(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.FileOperationsFeature=void 0;var lr=qe(),LP=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(lr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(lr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(lr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(lr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(lr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(lr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Do.FileOperationsFeature=LP});var If=A(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.LinkedEditingRangeFeature=void 0;var IP=qe(),FP=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(IP.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};So.LinkedEditingRangeFeature=FP});var Ff=A(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.TypeHierarchyFeature=void 0;var Ic=qe(),WP=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Ic.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Ic.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Ic.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};To.TypeHierarchyFeature=WP});var Hf=A(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.InlineValueFeature=void 0;var Wf=qe(),HP=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Wf.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Wf.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};xo.InlineValueFeature=HP});var Uf=A(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.InlayHintFeature=void 0;var Fc=qe(),UP=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Fc.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(Fc.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(Fc.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};wo.InlayHintFeature=UP});var Bf=A(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DiagnosticFeature=void 0;var Vr=qe(),BP=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Vr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Vr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Vr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Vr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Vr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ko.DiagnosticFeature=BP});var zf=A(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.MonikerFeature=void 0;var zP=qe(),$P=e=>class extends e{get moniker(){return{on:t=>{let n=zP.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ao.MonikerFeature=$P});var rp=A(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.createConnection=ne.combineFeatures=ne.combineNotebooksFeatures=ne.combineLanguagesFeatures=ne.combineWorkspaceFeatures=ne.combineWindowFeatures=ne.combineClientFeatures=ne.combineTracerFeatures=ne.combineTelemetryFeatures=ne.combineConsoleFeatures=ne._NotebooksImpl=ne._LanguagesImpl=ne.BulkUnregistration=ne.BulkRegistration=ne.ErrorMessageTracker=void 0;var M=qe(),dt=Oc(),Hc=Ec(),V=Nf(),YP=Of(),VP=Ef(),KP=Mf(),GP=wc(),QP=jf(),JP=Lf(),XP=If(),ZP=Ff(),e_=Hf(),t_=Uf(),n_=Bf(),r_=Nc(),i_=zf();function Wc(e){if(e!==null)return e}var Uc=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)})}};ne.ErrorMessageTracker=Uc;var qo=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(M.MessageType.Error,t)}warn(t){this.send(M.MessageType.Warning,t)}info(t){this.send(M.MessageType.Info,t)}log(t){this.send(M.MessageType.Log,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(M.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,M.RAL)().console.error("Sending log message failed")})}},Bc=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:M.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(M.ShowMessageRequest.type,r).then(Wc)}showWarningMessage(t,...n){let r={type:M.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(M.ShowMessageRequest.type,r).then(Wc)}showInformationMessage(t,...n){let r={type:M.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(M.ShowMessageRequest.type,r).then(Wc)}},$f=(0,QP.ShowDocumentFeature)((0,V.ProgressFeature)(Bc)),o_;(function(e){function t(){return new No}e.create=t})(o_=ne.BulkRegistration||(ne.BulkRegistration={}));var No=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=dt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Hc.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},s_;(function(e){function t(){return new Kr(void 0,[])}e.create=t})(s_=ne.BulkUnregistration||(ne.BulkUnregistration={}));var Kr=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(M.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=dt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(M.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Oo=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 No?this.registerMany(t):t instanceof Kr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=dt.string(n)?n:n.method,o=Hc.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(M.RegistrationRequest.type,s).then(u=>(t.add({id:o,method:i}),t),u=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(u)))}registerSingle2(t,n){let r=dt.string(t)?t:t.method,i=Hc.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(M.RegistrationRequest.type,o).then(s=>M.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(M.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(M.RegistrationRequest.type,n).then(()=>new Kr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},zc=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(M.ApplyWorkspaceEditRequest.type,r)}},Yf=(0,JP.FileOperationsFeature)((0,VP.WorkspaceFoldersFeature)((0,YP.ConfigurationFeature)(zc))),Eo=class{constructor(){this._trace=M.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!==M.Trace.Off&&this.connection.sendNotification(M.LogTraceNotification.type,{message:t,verbose:this._trace===M.Trace.Verbose?n:void 0}).catch(()=>{})}},Mo=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(M.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},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){}attachWorkDoneProgress(t){return(0,V.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,V.attachPartialResult)(this.connection,n)}};ne._LanguagesImpl=jo;var Vf=(0,i_.MonikerFeature)((0,n_.DiagnosticFeature)((0,t_.InlayHintFeature)((0,e_.InlineValueFeature)((0,ZP.TypeHierarchyFeature)((0,XP.LinkedEditingRangeFeature)((0,GP.SemanticTokensFeature)((0,KP.CallHierarchyFeature)(jo)))))))),Lo=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,V.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,V.attachPartialResult)(this.connection,n)}};ne._NotebooksImpl=Lo;var Kf=(0,r_.NotebookSyncFeature)(Lo);function Gf(e,t){return function(n){return t(e(n))}}ne.combineConsoleFeatures=Gf;function Qf(e,t){return function(n){return t(e(n))}}ne.combineTelemetryFeatures=Qf;function Jf(e,t){return function(n){return t(e(n))}}ne.combineTracerFeatures=Jf;function Xf(e,t){return function(n){return t(e(n))}}ne.combineClientFeatures=Xf;function Zf(e,t){return function(n){return t(e(n))}}ne.combineWindowFeatures=Zf;function ep(e,t){return function(n){return t(e(n))}}ne.combineWorkspaceFeatures=ep;function tp(e,t){return function(n){return t(e(n))}}ne.combineLanguagesFeatures=tp;function np(e,t){return function(n){return t(e(n))}}ne.combineNotebooksFeatures=np;function a_(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Gf),tracer:n(e.tracer,t.tracer,Jf),telemetry:n(e.telemetry,t.telemetry,Qf),client:n(e.client,t.client,Xf),window:n(e.window,t.window,Zf),workspace:n(e.workspace,t.workspace,ep),languages:n(e.languages,t.languages,tp),notebooks:n(e.notebooks,t.notebooks,np)}}ne.combineFeatures=a_;function c_(e,t,n){let r=n&&n.console?new(n.console(qo)):new qo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Eo)):new Eo,s=n&&n.telemetry?new(n.telemetry(Mo)):new Mo,u=n&&n.client?new(n.client(Oo)):new Oo,c=n&&n.window?new(n.window($f)):new $f,p=n&&n.workspace?new(n.workspace(Yf)):new Yf,g=n&&n.languages?new(n.languages(Vf)):new Vf,b=n&&n.notebooks?new(n.notebooks(Kf)):new Kf,R=[r,o,s,u,c,p,g,b];function D(_){return _ instanceof Promise?_:dt.thenable(_)?new Promise((v,N)=>{_.then(z=>v(z),z=>N(z))}):Promise.resolve(_)}let T,q,B,j={listen:()=>i.listen(),sendRequest:(_,...v)=>i.sendRequest(dt.string(_)?_:_.method,...v),onRequest:(_,v)=>i.onRequest(_,v),sendNotification:(_,v)=>{let N=dt.string(_)?_:_.method;return arguments.length===1?i.sendNotification(N):i.sendNotification(N,v)},onNotification:(_,v)=>i.onNotification(_,v),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:_=>(q=_,{dispose:()=>{q=void 0}}),onInitialized:_=>i.onNotification(M.InitializedNotification.type,_),onShutdown:_=>(T=_,{dispose:()=>{T=void 0}}),onExit:_=>(B=_,{dispose:()=>{B=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return u},get window(){return c},get workspace(){return p},get languages(){return g},get notebooks(){return b},onDidChangeConfiguration:_=>i.onNotification(M.DidChangeConfigurationNotification.type,_),onDidChangeWatchedFiles:_=>i.onNotification(M.DidChangeWatchedFilesNotification.type,_),__textDocumentSync:void 0,onDidOpenTextDocument:_=>i.onNotification(M.DidOpenTextDocumentNotification.type,_),onDidChangeTextDocument:_=>i.onNotification(M.DidChangeTextDocumentNotification.type,_),onDidCloseTextDocument:_=>i.onNotification(M.DidCloseTextDocumentNotification.type,_),onWillSaveTextDocument:_=>i.onNotification(M.WillSaveTextDocumentNotification.type,_),onWillSaveTextDocumentWaitUntil:_=>i.onRequest(M.WillSaveTextDocumentWaitUntilRequest.type,_),onDidSaveTextDocument:_=>i.onNotification(M.DidSaveTextDocumentNotification.type,_),sendDiagnostics:_=>i.sendNotification(M.PublishDiagnosticsNotification.type,_),onHover:_=>i.onRequest(M.HoverRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onCompletion:_=>i.onRequest(M.CompletionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onCompletionResolve:_=>i.onRequest(M.CompletionResolveRequest.type,_),onSignatureHelp:_=>i.onRequest(M.SignatureHelpRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onDeclaration:_=>i.onRequest(M.DeclarationRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDefinition:_=>i.onRequest(M.DefinitionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onTypeDefinition:_=>i.onRequest(M.TypeDefinitionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onImplementation:_=>i.onRequest(M.ImplementationRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onReferences:_=>i.onRequest(M.ReferencesRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDocumentHighlight:_=>i.onRequest(M.DocumentHighlightRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDocumentSymbol:_=>i.onRequest(M.DocumentSymbolRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onWorkspaceSymbol:_=>i.onRequest(M.WorkspaceSymbolRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onWorkspaceSymbolResolve:_=>i.onRequest(M.WorkspaceSymbolResolveRequest.type,_),onCodeAction:_=>i.onRequest(M.CodeActionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onCodeActionResolve:_=>i.onRequest(M.CodeActionResolveRequest.type,(v,N)=>_(v,N)),onCodeLens:_=>i.onRequest(M.CodeLensRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onCodeLensResolve:_=>i.onRequest(M.CodeLensResolveRequest.type,(v,N)=>_(v,N)),onDocumentFormatting:_=>i.onRequest(M.DocumentFormattingRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onDocumentRangeFormatting:_=>i.onRequest(M.DocumentRangeFormattingRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onDocumentOnTypeFormatting:_=>i.onRequest(M.DocumentOnTypeFormattingRequest.type,(v,N)=>_(v,N)),onRenameRequest:_=>i.onRequest(M.RenameRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onPrepareRename:_=>i.onRequest(M.PrepareRenameRequest.type,(v,N)=>_(v,N)),onDocumentLinks:_=>i.onRequest(M.DocumentLinkRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDocumentLinkResolve:_=>i.onRequest(M.DocumentLinkResolveRequest.type,(v,N)=>_(v,N)),onDocumentColor:_=>i.onRequest(M.DocumentColorRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onColorPresentation:_=>i.onRequest(M.ColorPresentationRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onFoldingRanges:_=>i.onRequest(M.FoldingRangeRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onSelectionRanges:_=>i.onRequest(M.SelectionRangeRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onExecuteCommand:_=>i.onRequest(M.ExecuteCommandRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),dispose:()=>i.dispose()};for(let _ of R)_.attach(j);return i.onRequest(M.InitializeRequest.type,_=>{t.initialize(_),dt.string(_.trace)&&(o.trace=M.Trace.fromString(_.trace));for(let v of R)v.initialize(_.capabilities);if(q){let v=q(_,new M.CancellationTokenSource().token,(0,V.attachWorkDone)(i,_),void 0);return D(v).then(N=>{if(N instanceof M.ResponseError)return N;let z=N;z||(z={capabilities:{}});let Z=z.capabilities;Z||(Z={},z.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=dt.number(j.__textDocumentSync)?j.__textDocumentSync:M.TextDocumentSyncKind.None:!dt.number(Z.textDocumentSync)&&!dt.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=dt.number(j.__textDocumentSync)?j.__textDocumentSync:M.TextDocumentSyncKind.None);for(let ue of R)ue.fillServerCapabilities(Z);return z})}else{let v={capabilities:{textDocumentSync:M.TextDocumentSyncKind.None}};for(let N of R)N.fillServerCapabilities(v.capabilities);return v}}),i.onRequest(M.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,T)return T(new M.CancellationTokenSource().token)}),i.onNotification(M.ExitNotification.type,()=>{try{B&&B()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(M.SetTraceNotification.type,_=>{o.trace=M.Trace.fromString(_.value)}),j}ne.createConnection=c_});var $c=A(ze=>{"use strict";var u_=ze&&ze.__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]}),ip=ze&&ze.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&u_(t,e,n)};Object.defineProperty(ze,"__esModule",{value:!0});ze.ProposedFeatures=ze.NotebookDocuments=ze.TextDocuments=ze.SemanticTokensBuilder=void 0;var l_=wc();Object.defineProperty(ze,"SemanticTokensBuilder",{enumerable:!0,get:function(){return l_.SemanticTokensBuilder}});ip(qe(),ze);var d_=Ac();Object.defineProperty(ze,"TextDocuments",{enumerable:!0,get:function(){return d_.TextDocuments}});var f_=Nc();Object.defineProperty(ze,"NotebookDocuments",{enumerable:!0,get:function(){return f_.NotebookDocuments}});ip(rp(),ze);var p_;(function(e){e.all={__brand:"features"}})(p_=ze.ProposedFeatures||(ze.ProposedFeatures={}))});var sp=A((IS,op)=>{"use strict";op.exports=qe()});var Yc=A(jt=>{"use strict";var g_=jt&&jt.__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]}),cp=jt&&jt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&g_(t,e,n)};Object.defineProperty(jt,"__esModule",{value:!0});jt.createConnection=void 0;var Io=$c();cp(sp(),jt);cp($c(),jt);var ap=!1,m_={initialize:e=>{},get shutdownReceived(){return ap},set shutdownReceived(e){ap=e},exit:e=>{}};function h_(e,t,n,r){let i,o,s,u;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Io.ConnectionStrategy.is(e)||Io.ConnectionOptions.is(e)?u=e:(o=e,s=t,u=n);let c=p=>(0,Io.createProtocolConnection)(o,s,p,u);return(0,Io.createConnection)(c,m_,i)}jt.createConnection=h_});var fn=A((WS,up)=>{"use strict";up.exports=Yc()});var nu=A((MT,_p)=>{"use strict";function Lt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Pp(e,t){for(var n="",r=0,i=-1,o=0,s,u=0;u<=e.length;++u){if(u<e.length)s=e.charCodeAt(u);else{if(s===47)break;s=47}if(s===47){if(!(i===u-1||o===1))if(i!==u-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=u,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=u,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,u):n=e.slice(i+1,u),r=u-i-1;i=u,o=0}else s===46&&o!==-1?++o:o=-1}return n}function J_(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 pr={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),Lt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Pp(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Lt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Pp(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Lt(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];Lt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":pr.normalize(t)},relative:function(t,n){if(Lt(t),Lt(n),t===n||(t=pr.resolve(t),n=pr.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 u=n.length,c=u-s,p=o<c?o:c,g=-1,b=0;b<=p;++b){if(b===p){if(c>p){if(n.charCodeAt(s+b)===47)return n.slice(s+b+1);if(b===0)return n.slice(s+b)}else o>p&&(t.charCodeAt(r+b)===47?g=b:b===0&&(g=0));break}var R=t.charCodeAt(r+b),D=n.charCodeAt(s+b);if(R!==D)break;R===47&&(g=b)}var T="";for(b=r+g+1;b<=i;++b)(b===i||t.charCodeAt(b)===47)&&(T.length===0?T+="..":T+="/..");return T.length>0?T+n.slice(s+g):(s+=g,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Lt(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');Lt(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 u=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var p=t.charCodeAt(s);if(p===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),u>=0&&(p===n.charCodeAt(u)?--u===-1&&(i=s):(u=-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){Lt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,u=t.length-1;u>=0;--u){var c=t.charCodeAt(u);if(c===47){if(!o){r=u+1;break}continue}i===-1&&(o=!1,i=u+1),c===46?n===-1?n=u: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 J_("/",t)},parse:function(t){Lt(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,u=0,c=-1,p=!0,g=t.length-1,b=0;g>=o;--g){if(r=t.charCodeAt(g),r===47){if(!p){u=g+1;break}continue}c===-1&&(p=!1,c=g+1),r===46?s===-1?s=g:b!==1&&(b=1):s!==-1&&(b=-1)}return s===-1||c===-1||b===0||b===1&&s===c-1&&s===u+1?c!==-1&&(u===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(u,c)):(u===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(u,s),n.base=t.slice(u,c)),n.ext=t.slice(s,c)),u>0?n.dir=t.slice(0,u-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};pr.posix=pr;_p.exports=pr});import{CONFIG_FILE_NAMES as Ks,loadConfig as Ah}from"@redocly/openapi-core";var su;(()=>{"use strict";var e={470:i=>{function o(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function s(c,p){for(var g,b="",R=0,D=-1,T=0,q=0;q<=c.length;++q){if(q<c.length)g=c.charCodeAt(q);else{if(g===47)break;g=47}if(g===47){if(!(D===q-1||T===1))if(D!==q-1&&T===2){if(b.length<2||R!==2||b.charCodeAt(b.length-1)!==46||b.charCodeAt(b.length-2)!==46){if(b.length>2){var B=b.lastIndexOf("/");if(B!==b.length-1){B===-1?(b="",R=0):R=(b=b.slice(0,B)).length-1-b.lastIndexOf("/"),D=q,T=0;continue}}else if(b.length===2||b.length===1){b="",R=0,D=q,T=0;continue}}p&&(b.length>0?b+="/..":b="..",R=2)}else b.length>0?b+="/"+c.slice(D+1,q):b=c.slice(D+1,q),R=q-D-1;D=q,T=0}else g===46&&T!==-1?++T:T=-1}return b}var u={resolve:function(){for(var c,p="",g=!1,b=arguments.length-1;b>=-1&&!g;b--){var R;b>=0?R=arguments[b]:(c===void 0&&(c=process.cwd()),R=c),o(R),R.length!==0&&(p=R+"/"+p,g=R.charCodeAt(0)===47)}return p=s(p,!g),g?p.length>0?"/"+p:"/":p.length>0?p:"."},normalize:function(c){if(o(c),c.length===0)return".";var p=c.charCodeAt(0)===47,g=c.charCodeAt(c.length-1)===47;return(c=s(c,!p)).length!==0||p||(c="."),c.length>0&&g&&(c+="/"),p?"/"+c:c},isAbsolute:function(c){return o(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,p=0;p<arguments.length;++p){var g=arguments[p];o(g),g.length>0&&(c===void 0?c=g:c+="/"+g)}return c===void 0?".":u.normalize(c)},relative:function(c,p){if(o(c),o(p),c===p||(c=u.resolve(c))===(p=u.resolve(p)))return"";for(var g=1;g<c.length&&c.charCodeAt(g)===47;++g);for(var b=c.length,R=b-g,D=1;D<p.length&&p.charCodeAt(D)===47;++D);for(var T=p.length-D,q=R<T?R:T,B=-1,j=0;j<=q;++j){if(j===q){if(T>q){if(p.charCodeAt(D+j)===47)return p.slice(D+j+1);if(j===0)return p.slice(D+j)}else R>q&&(c.charCodeAt(g+j)===47?B=j:j===0&&(B=0));break}var _=c.charCodeAt(g+j);if(_!==p.charCodeAt(D+j))break;_===47&&(B=j)}var v="";for(j=g+B+1;j<=b;++j)j!==b&&c.charCodeAt(j)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+p.slice(D+B):(D+=B,p.charCodeAt(D)===47&&++D,p.slice(D))},_makeLong:function(c){return c},dirname:function(c){if(o(c),c.length===0)return".";for(var p=c.charCodeAt(0),g=p===47,b=-1,R=!0,D=c.length-1;D>=1;--D)if((p=c.charCodeAt(D))===47){if(!R){b=D;break}}else R=!1;return b===-1?g?"/":".":g&&b===1?"//":c.slice(0,b)},basename:function(c,p){if(p!==void 0&&typeof p!="string")throw new TypeError('"ext" argument must be a string');o(c);var g,b=0,R=-1,D=!0;if(p!==void 0&&p.length>0&&p.length<=c.length){if(p.length===c.length&&p===c)return"";var T=p.length-1,q=-1;for(g=c.length-1;g>=0;--g){var B=c.charCodeAt(g);if(B===47){if(!D){b=g+1;break}}else q===-1&&(D=!1,q=g+1),T>=0&&(B===p.charCodeAt(T)?--T==-1&&(R=g):(T=-1,R=q))}return b===R?R=q:R===-1&&(R=c.length),c.slice(b,R)}for(g=c.length-1;g>=0;--g)if(c.charCodeAt(g)===47){if(!D){b=g+1;break}}else R===-1&&(D=!1,R=g+1);return R===-1?"":c.slice(b,R)},extname:function(c){o(c);for(var p=-1,g=0,b=-1,R=!0,D=0,T=c.length-1;T>=0;--T){var q=c.charCodeAt(T);if(q!==47)b===-1&&(R=!1,b=T+1),q===46?p===-1?p=T:D!==1&&(D=1):p!==-1&&(D=-1);else if(!R){g=T+1;break}}return p===-1||b===-1||D===0||D===1&&p===b-1&&p===g+1?"":c.slice(p,b)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return function(p,g){var b=g.dir||g.root,R=g.base||(g.name||"")+(g.ext||"");return b?b===g.root?b+R:b+"/"+R:R}(0,c)},parse:function(c){o(c);var p={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return p;var g,b=c.charCodeAt(0),R=b===47;R?(p.root="/",g=1):g=0;for(var D=-1,T=0,q=-1,B=!0,j=c.length-1,_=0;j>=g;--j)if((b=c.charCodeAt(j))!==47)q===-1&&(B=!1,q=j+1),b===46?D===-1?D=j:_!==1&&(_=1):D!==-1&&(_=-1);else if(!B){T=j+1;break}return D===-1||q===-1||_===0||_===1&&D===q-1&&D===T+1?q!==-1&&(p.base=p.name=T===0&&R?c.slice(1,q):c.slice(T,q)):(T===0&&R?(p.name=c.slice(1,D),p.base=c.slice(1,q)):(p.name=c.slice(T,D),p.base=c.slice(T,q)),p.ext=c.slice(D,q)),T>0?p.dir=c.slice(0,T-1):R&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};u.posix=u,i.exports=u}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(i,o)=>{for(var s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>R,Utils:()=>pt}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,u=/^\/\//;function c(L,x){if(!L.scheme&&x)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${L.authority}", path: "${L.path}", query: "${L.query}", fragment: "${L.fragment}"}`);if(L.scheme&&!o.test(L.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(L.path){if(L.authority){if(!s.test(L.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(u.test(L.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let p="",g="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class R{static isUri(x){return x instanceof R||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"}scheme;authority;path;query;fragment;constructor(x,H,I,ie,X,K=!1){typeof x=="object"?(this.scheme=x.scheme||p,this.authority=x.authority||p,this.path=x.path||p,this.query=x.query||p,this.fragment=x.fragment||p):(this.scheme=function(Ve,Ae){return Ve||Ae?Ve:"file"}(x,K),this.authority=H||p,this.path=function(Ve,Ae){switch(Ve){case"https":case"http":case"file":Ae?Ae[0]!==g&&(Ae=g+Ae):Ae=g}return Ae}(this.scheme,I||p),this.query=ie||p,this.fragment=X||p,c(this,K))}get fsPath(){return _(this,!1)}with(x){if(!x)return this;let{scheme:H,authority:I,path:ie,query:X,fragment:K}=x;return H===void 0?H=this.scheme:H===null&&(H=p),I===void 0?I=this.authority:I===null&&(I=p),ie===void 0?ie=this.path:ie===null&&(ie=p),X===void 0?X=this.query:X===null&&(X=p),K===void 0?K=this.fragment:K===null&&(K=p),H===this.scheme&&I===this.authority&&ie===this.path&&X===this.query&&K===this.fragment?this:new T(H,I,ie,X,K)}static parse(x,H=!1){let I=b.exec(x);return I?new T(I[2]||p,Z(I[4]||p),Z(I[5]||p),Z(I[7]||p),Z(I[9]||p),H):new T(p,p,p,p,p)}static file(x){let H=p;if(i&&(x=x.replace(/\\/g,g)),x[0]===g&&x[1]===g){let I=x.indexOf(g,2);I===-1?(H=x.substring(2),x=g):(H=x.substring(2,I),x=x.substring(I)||g)}return new T("file",H,x,p,p)}static from(x){let H=new T(x.scheme,x.authority,x.path,x.query,x.fragment);return c(H,!0),H}toString(x=!1){return v(this,x)}toJSON(){return this}static revive(x){if(x){if(x instanceof R)return x;{let H=new T(x);return H._formatted=x.external,H._fsPath=x._sep===D?x.fsPath:null,H}}return x}}let D=i?1:void 0;class T extends R{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(x=!1){return x?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){let x={$mid:1};return this._fsPath&&(x.fsPath=this._fsPath,x._sep=D),this._formatted&&(x.external=this._formatted),this.path&&(x.path=this.path),this.scheme&&(x.scheme=this.scheme),this.authority&&(x.authority=this.authority),this.query&&(x.query=this.query),this.fragment&&(x.fragment=this.fragment),x}}let q={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 B(L,x,H){let I,ie=-1;for(let X=0;X<L.length;X++){let K=L.charCodeAt(X);if(K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===45||K===46||K===95||K===126||x&&K===47||H&&K===91||H&&K===93||H&&K===58)ie!==-1&&(I+=encodeURIComponent(L.substring(ie,X)),ie=-1),I!==void 0&&(I+=L.charAt(X));else{I===void 0&&(I=L.substr(0,X));let Ve=q[K];Ve!==void 0?(ie!==-1&&(I+=encodeURIComponent(L.substring(ie,X)),ie=-1),I+=Ve):ie===-1&&(ie=X)}}return ie!==-1&&(I+=encodeURIComponent(L.substring(ie))),I!==void 0?I:L}function j(L){let x;for(let H=0;H<L.length;H++){let I=L.charCodeAt(H);I===35||I===63?(x===void 0&&(x=L.substr(0,H)),x+=q[I]):x!==void 0&&(x+=L[H])}return x!==void 0?x:L}function _(L,x){let H;return H=L.authority&&L.path.length>1&&L.scheme==="file"?`//${L.authority}${L.path}`:L.path.charCodeAt(0)===47&&(L.path.charCodeAt(1)>=65&&L.path.charCodeAt(1)<=90||L.path.charCodeAt(1)>=97&&L.path.charCodeAt(1)<=122)&&L.path.charCodeAt(2)===58?x?L.path.substr(1):L.path[1].toLowerCase()+L.path.substr(2):L.path,i&&(H=H.replace(/\//g,"\\")),H}function v(L,x){let H=x?j:B,I="",{scheme:ie,authority:X,path:K,query:Ve,fragment:Ae}=L;if(ie&&(I+=ie,I+=":"),(X||ie==="file")&&(I+=g,I+=g),X){let ce=X.indexOf("@");if(ce!==-1){let Tt=X.substr(0,ce);X=X.substr(ce+1),ce=Tt.lastIndexOf(":"),ce===-1?I+=H(Tt,!1,!1):(I+=H(Tt.substr(0,ce),!1,!1),I+=":",I+=H(Tt.substr(ce+1),!1,!0)),I+="@"}X=X.toLowerCase(),ce=X.lastIndexOf(":"),ce===-1?I+=H(X,!1,!0):(I+=H(X.substr(0,ce),!1,!0),I+=X.substr(ce))}if(K){if(K.length>=3&&K.charCodeAt(0)===47&&K.charCodeAt(2)===58){let ce=K.charCodeAt(1);ce>=65&&ce<=90&&(K=`/${String.fromCharCode(ce+32)}:${K.substr(3)}`)}else if(K.length>=2&&K.charCodeAt(1)===58){let ce=K.charCodeAt(0);ce>=65&&ce<=90&&(K=`${String.fromCharCode(ce+32)}:${K.substr(2)}`)}I+=H(K,!0,!1)}return Ve&&(I+="?",I+=H(Ve,!1,!1)),Ae&&(I+="#",I+=x?Ae:B(Ae,!1,!1)),I}function N(L){try{return decodeURIComponent(L)}catch{return L.length>3?L.substr(0,3)+N(L.substr(3)):L}}let z=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Z(L){return L.match(z)?L.replace(z,x=>N(x)):L}var ue=n(470);let $e=ue.posix||ue,ft="/";var pt;(function(L){L.joinPath=function(x,...H){return x.with({path:$e.join(x.path,...H)})},L.resolvePath=function(x,...H){let I=x.path,ie=!1;I[0]!==ft&&(I=ft+I,ie=!0);let X=$e.resolve(I,...H);return ie&&X[0]===ft&&!x.authority&&(X=X.substring(1)),x.with({path:X})},L.dirname=function(x){if(x.path.length===0||x.path===ft)return x;let H=$e.dirname(x.path);return H.length===1&&H.charCodeAt(0)===46&&(H=""),x.with({path:H})},L.basename=function(x){return $e.basename(x.path)},L.extname=function(x){return $e.extname(x.path)}})(pt||(pt={}))})(),su=r})();var{URI:Jt,Utils:pe}=su;import{CONFIG_FILE_NAMES as Bp}from"@redocly/openapi-core";var ls={languageId:"yaml",filePattern:/\.ya?ml$/i},ds={languageId:"json",filePattern:/\.json$/i},us=class{constructor(){this.supportedLanguages=[ls,ds];this.registerConfigFinder(async t=>{if(!this._fs)return;let n=[];for(let r of Bp)try{let i=pe.resolvePath(pe.dirname(Oe(t)),r);await this._fs.exists(i)&&n.push(i.toString())}catch{continue}if(n.length>1)throw new Error(`
67
+ `&&a++}f&&y.length>0&&h.push(y.length),this._lineOffsets=h}return this._lineOffsets},l.prototype.positionAt=function(h){h=Math.max(Math.min(h,this._content.length),0);var y=this.getLineOffsets(),f=0,a=y.length;if(a===0)return s.create(0,h);for(;f<a;){var P=Math.floor((f+a)/2);y[P]>h?a=P:f=P+1}var k=f-1;return s.create(k,h-y[k])},l.prototype.offsetAt=function(h){var y=this.getLineOffsets();if(h.line>=y.length)return this._content.length;if(h.line<0)return 0;var f=y[h.line],a=h.line+1<y.length?y[h.line+1]:this._content.length;return Math.max(Math.min(f+h.character,a),f)},Object.defineProperty(l.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),l}(),C;(function(l){var h=Object.prototype.toString;function y(te){return typeof te<"u"}l.defined=y;function f(te){return typeof te>"u"}l.undefined=f;function a(te){return te===!0||te===!1}l.boolean=a;function P(te){return h.call(te)==="[object String]"}l.string=P;function k(te){return h.call(te)==="[object Number]"}l.number=k;function Q(te,Mn,oi){return h.call(te)==="[object Number]"&&Mn<=te&&te<=oi}l.numberRange=Q;function _e(te){return h.call(te)==="[object Number]"&&-2147483648<=te&&te<=2147483647}l.integer=_e;function fe(te){return h.call(te)==="[object Number]"&&0<=te&&te<=2147483647}l.uinteger=fe;function mt(te){return h.call(te)==="[object Function]"}l.func=mt;function ht(te){return te!==null&&typeof te=="object"}l.objectLiteral=ht;function Wt(te,Mn){return Array.isArray(te)&&te.every(Mn)}l.typedArray=Wt})(C||(C={}))})});var Ce=A(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ProtocolNotificationType=Ge.ProtocolNotificationType0=Ge.ProtocolRequestType=Ge.ProtocolRequestType0=Ge.RegistrationType=Ge.MessageDirection=void 0;var rr=kn(),Wb;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Wb=Ge.MessageDirection||(Ge.MessageDirection={}));var hc=class{constructor(t){this.method=t}};Ge.RegistrationType=hc;var yc=class extends rr.RequestType0{constructor(t){super(t)}};Ge.ProtocolRequestType0=yc;var bc=class extends rr.RequestType{constructor(t){super(t,rr.ParameterStructures.byName)}};Ge.ProtocolRequestType=bc;var vc=class extends rr.NotificationType0{constructor(t){super(t)}};Ge.ProtocolNotificationType0=vc;var Cc=class extends rr.NotificationType{constructor(t){super(t,rr.ParameterStructures.byName)}};Ge.ProtocolNotificationType=Cc});var oo=A(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 Hb(e){return e===!0||e===!1}xe.boolean=Hb;function Od(e){return typeof e=="string"||e instanceof String}xe.string=Od;function Ub(e){return typeof e=="number"||e instanceof Number}xe.number=Ub;function Bb(e){return e instanceof Error}xe.error=Bb;function zb(e){return typeof e=="function"}xe.func=zb;function Ed(e){return Array.isArray(e)}xe.array=Ed;function $b(e){return Ed(e)&&e.every(t=>Od(t))}xe.stringArray=$b;function Yb(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=Yb;function Vb(e){return e!==null&&typeof e=="object"}xe.objectLiteral=Vb});var jd=A(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplementationRequest=void 0;var Md=Ce(),Kb;(function(e){e.method="textDocument/implementation",e.messageDirection=Md.MessageDirection.clientToServer,e.type=new Md.ProtocolRequestType(e.method)})(Kb=Er.ImplementationRequest||(Er.ImplementationRequest={}))});var Id=A(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.TypeDefinitionRequest=void 0;var Ld=Ce(),Gb;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Ld.MessageDirection.clientToServer,e.type=new Ld.ProtocolRequestType(e.method)})(Gb=Mr.TypeDefinitionRequest||(Mr.TypeDefinitionRequest={}))});var Fd=A(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.DidChangeWorkspaceFoldersNotification=on.WorkspaceFoldersRequest=void 0;var so=Ce(),Qb;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=so.MessageDirection.serverToClient,e.type=new so.ProtocolRequestType0(e.method)})(Qb=on.WorkspaceFoldersRequest||(on.WorkspaceFoldersRequest={}));var Jb;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=so.MessageDirection.clientToServer,e.type=new so.ProtocolNotificationType(e.method)})(Jb=on.DidChangeWorkspaceFoldersNotification||(on.DidChangeWorkspaceFoldersNotification={}))});var Hd=A(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.ConfigurationRequest=void 0;var Wd=Ce(),Xb;(function(e){e.method="workspace/configuration",e.messageDirection=Wd.MessageDirection.serverToClient,e.type=new Wd.ProtocolRequestType(e.method)})(Xb=jr.ConfigurationRequest||(jr.ConfigurationRequest={}))});var Ud=A(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.ColorPresentationRequest=sn.DocumentColorRequest=void 0;var ao=Ce(),Zb;(function(e){e.method="textDocument/documentColor",e.messageDirection=ao.MessageDirection.clientToServer,e.type=new ao.ProtocolRequestType(e.method)})(Zb=sn.DocumentColorRequest||(sn.DocumentColorRequest={}));var ev;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=ao.MessageDirection.clientToServer,e.type=new ao.ProtocolRequestType(e.method)})(ev=sn.ColorPresentationRequest||(sn.ColorPresentationRequest={}))});var zd=A(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.FoldingRangeRequest=void 0;var Bd=Ce(),tv;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Bd.MessageDirection.clientToServer,e.type=new Bd.ProtocolRequestType(e.method)})(tv=Lr.FoldingRangeRequest||(Lr.FoldingRangeRequest={}))});var Yd=A(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.DeclarationRequest=void 0;var $d=Ce(),nv;(function(e){e.method="textDocument/declaration",e.messageDirection=$d.MessageDirection.clientToServer,e.type=new $d.ProtocolRequestType(e.method)})(nv=Ir.DeclarationRequest||(Ir.DeclarationRequest={}))});var Kd=A(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.SelectionRangeRequest=void 0;var Vd=Ce(),rv;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Vd.MessageDirection.clientToServer,e.type=new Vd.ProtocolRequestType(e.method)})(rv=Fr.SelectionRangeRequest||(Fr.SelectionRangeRequest={}))});var Gd=A(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.WorkDoneProgressCancelNotification=Ct.WorkDoneProgressCreateRequest=Ct.WorkDoneProgress=void 0;var iv=kn(),co=Ce(),ov;(function(e){e.type=new iv.ProgressType;function t(n){return n===e.type}e.is=t})(ov=Ct.WorkDoneProgress||(Ct.WorkDoneProgress={}));var sv;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=co.MessageDirection.serverToClient,e.type=new co.ProtocolRequestType(e.method)})(sv=Ct.WorkDoneProgressCreateRequest||(Ct.WorkDoneProgressCreateRequest={}));var av;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=co.MessageDirection.clientToServer,e.type=new co.ProtocolNotificationType(e.method)})(av=Ct.WorkDoneProgressCancelNotification||(Ct.WorkDoneProgressCancelNotification={}))});var Qd=A(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.CallHierarchyOutgoingCallsRequest=Pt.CallHierarchyIncomingCallsRequest=Pt.CallHierarchyPrepareRequest=void 0;var ir=Ce(),cv;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(cv=Pt.CallHierarchyPrepareRequest||(Pt.CallHierarchyPrepareRequest={}));var uv;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(uv=Pt.CallHierarchyIncomingCallsRequest||(Pt.CallHierarchyIncomingCallsRequest={}));var lv;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(lv=Pt.CallHierarchyOutgoingCallsRequest||(Pt.CallHierarchyOutgoingCallsRequest={}))});var Jd=A(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.SemanticTokensRefreshRequest=we.SemanticTokensRangeRequest=we.SemanticTokensDeltaRequest=we.SemanticTokensRequest=we.SemanticTokensRegistrationType=we.TokenFormat=void 0;var Vt=Ce(),dv;(function(e){e.Relative="relative"})(dv=we.TokenFormat||(we.TokenFormat={}));var uo;(function(e){e.method="textDocument/semanticTokens",e.type=new Vt.RegistrationType(e.method)})(uo=we.SemanticTokensRegistrationType||(we.SemanticTokensRegistrationType={}));var fv;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Vt.MessageDirection.clientToServer,e.type=new Vt.ProtocolRequestType(e.method),e.registrationMethod=uo.method})(fv=we.SemanticTokensRequest||(we.SemanticTokensRequest={}));var pv;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Vt.MessageDirection.clientToServer,e.type=new Vt.ProtocolRequestType(e.method),e.registrationMethod=uo.method})(pv=we.SemanticTokensDeltaRequest||(we.SemanticTokensDeltaRequest={}));var gv;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Vt.MessageDirection.clientToServer,e.type=new Vt.ProtocolRequestType(e.method),e.registrationMethod=uo.method})(gv=we.SemanticTokensRangeRequest||(we.SemanticTokensRangeRequest={}));var mv;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Vt.MessageDirection.serverToClient,e.type=new Vt.ProtocolRequestType0(e.method)})(mv=we.SemanticTokensRefreshRequest||(we.SemanticTokensRefreshRequest={}))});var Zd=A(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.ShowDocumentRequest=void 0;var Xd=Ce(),hv;(function(e){e.method="window/showDocument",e.messageDirection=Xd.MessageDirection.serverToClient,e.type=new Xd.ProtocolRequestType(e.method)})(hv=Wr.ShowDocumentRequest||(Wr.ShowDocumentRequest={}))});var tf=A(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.LinkedEditingRangeRequest=void 0;var ef=Ce(),yv;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=ef.MessageDirection.clientToServer,e.type=new ef.ProtocolRequestType(e.method)})(yv=Hr.LinkedEditingRangeRequest||(Hr.LinkedEditingRangeRequest={}))});var nf=A(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.WillDeleteFilesRequest=Pe.DidDeleteFilesNotification=Pe.DidRenameFilesNotification=Pe.WillRenameFilesRequest=Pe.DidCreateFilesNotification=Pe.WillCreateFilesRequest=Pe.FileOperationPatternKind=void 0;var ut=Ce(),bv;(function(e){e.file="file",e.folder="folder"})(bv=Pe.FileOperationPatternKind||(Pe.FileOperationPatternKind={}));var vv;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=ut.MessageDirection.clientToServer,e.type=new ut.ProtocolRequestType(e.method)})(vv=Pe.WillCreateFilesRequest||(Pe.WillCreateFilesRequest={}));var Cv;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=ut.MessageDirection.clientToServer,e.type=new ut.ProtocolNotificationType(e.method)})(Cv=Pe.DidCreateFilesNotification||(Pe.DidCreateFilesNotification={}));var Pv;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=ut.MessageDirection.clientToServer,e.type=new ut.ProtocolRequestType(e.method)})(Pv=Pe.WillRenameFilesRequest||(Pe.WillRenameFilesRequest={}));var _v;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=ut.MessageDirection.clientToServer,e.type=new ut.ProtocolNotificationType(e.method)})(_v=Pe.DidRenameFilesNotification||(Pe.DidRenameFilesNotification={}));var Dv;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=ut.MessageDirection.clientToServer,e.type=new ut.ProtocolNotificationType(e.method)})(Dv=Pe.DidDeleteFilesNotification||(Pe.DidDeleteFilesNotification={}));var Rv;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=ut.MessageDirection.clientToServer,e.type=new ut.ProtocolRequestType(e.method)})(Rv=Pe.WillDeleteFilesRequest||(Pe.WillDeleteFilesRequest={}))});var of=A(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.MonikerRequest=_t.MonikerKind=_t.UniquenessLevel=void 0;var rf=Ce(),Sv;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Sv=_t.UniquenessLevel||(_t.UniquenessLevel={}));var Tv;(function(e){e.$import="import",e.$export="export",e.local="local"})(Tv=_t.MonikerKind||(_t.MonikerKind={}));var xv;(function(e){e.method="textDocument/moniker",e.messageDirection=rf.MessageDirection.clientToServer,e.type=new rf.ProtocolRequestType(e.method)})(xv=_t.MonikerRequest||(_t.MonikerRequest={}))});var sf=A(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.TypeHierarchySubtypesRequest=Dt.TypeHierarchySupertypesRequest=Dt.TypeHierarchyPrepareRequest=void 0;var or=Ce(),wv;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(wv=Dt.TypeHierarchyPrepareRequest||(Dt.TypeHierarchyPrepareRequest={}));var kv;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(kv=Dt.TypeHierarchySupertypesRequest||(Dt.TypeHierarchySupertypesRequest={}));var Av;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Av=Dt.TypeHierarchySubtypesRequest||(Dt.TypeHierarchySubtypesRequest={}))});var af=A(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.InlineValueRefreshRequest=an.InlineValueRequest=void 0;var lo=Ce(),qv;(function(e){e.method="textDocument/inlineValue",e.messageDirection=lo.MessageDirection.clientToServer,e.type=new lo.ProtocolRequestType(e.method)})(qv=an.InlineValueRequest||(an.InlineValueRequest={}));var Nv;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=lo.MessageDirection.serverToClient,e.type=new lo.ProtocolRequestType0(e.method)})(Nv=an.InlineValueRefreshRequest||(an.InlineValueRefreshRequest={}))});var cf=A(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.InlayHintRefreshRequest=Rt.InlayHintResolveRequest=Rt.InlayHintRequest=void 0;var sr=Ce(),Ov;(function(e){e.method="textDocument/inlayHint",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(Ov=Rt.InlayHintRequest||(Rt.InlayHintRequest={}));var Ev;(function(e){e.method="inlayHint/resolve",e.messageDirection=sr.MessageDirection.clientToServer,e.type=new sr.ProtocolRequestType(e.method)})(Ev=Rt.InlayHintResolveRequest||(Rt.InlayHintResolveRequest={}));var Mv;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=sr.MessageDirection.serverToClient,e.type=new sr.ProtocolRequestType0(e.method)})(Mv=Rt.InlayHintRefreshRequest||(Rt.InlayHintRefreshRequest={}))});var lf=A(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.DiagnosticRefreshRequest=Ue.WorkspaceDiagnosticRequest=Ue.DocumentDiagnosticRequest=Ue.DocumentDiagnosticReportKind=Ue.DiagnosticServerCancellationData=void 0;var uf=kn(),jv=oo(),ar=Ce(),Lv;(function(e){function t(n){let r=n;return r&&jv.boolean(r.retriggerRequest)}e.is=t})(Lv=Ue.DiagnosticServerCancellationData||(Ue.DiagnosticServerCancellationData={}));var Iv;(function(e){e.Full="full",e.Unchanged="unchanged"})(Iv=Ue.DocumentDiagnosticReportKind||(Ue.DocumentDiagnosticReportKind={}));var Fv;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method),e.partialResult=new uf.ProgressType})(Fv=Ue.DocumentDiagnosticRequest||(Ue.DocumentDiagnosticRequest={}));var Wv;(function(e){e.method="workspace/diagnostic",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method),e.partialResult=new uf.ProgressType})(Wv=Ue.WorkspaceDiagnosticRequest||(Ue.WorkspaceDiagnosticRequest={}));var Hv;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(Hv=Ue.DiagnosticRefreshRequest||(Ue.DiagnosticRefreshRequest={}))});var pf=A(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.DidCloseNotebookDocumentNotification=re.DidSaveNotebookDocumentNotification=re.DidChangeNotebookDocumentNotification=re.NotebookCellArrayChange=re.DidOpenNotebookDocumentNotification=re.NotebookDocumentSyncRegistrationType=re.NotebookDocument=re.NotebookCell=re.ExecutionSummary=re.NotebookCellKind=void 0;var Ur=io(),St=oo(),Ot=Ce(),df;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(df=re.NotebookCellKind||(re.NotebookCellKind={}));var ff;(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 St.objectLiteral(o)&&Ur.uinteger.is(o.executionOrder)&&(o.success===void 0||St.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})(ff=re.ExecutionSummary||(re.ExecutionSummary={}));var Pc;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return St.objectLiteral(s)&&df.is(s.kind)&&Ur.DocumentUri.is(s.document)&&(s.metadata===void 0||St.objectLiteral(s.metadata))}e.is=n;function r(o,s){let u=new Set;return o.document!==s.document&&u.add("document"),o.kind!==s.kind&&u.add("kind"),o.executionSummary!==s.executionSummary&&u.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&u.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!ff.equals(o.executionSummary,s.executionSummary)&&u.add("executionSummary"),u}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 u=Array.isArray(o),c=Array.isArray(s);if(u!==c)return!1;if(u&&c){if(o.length!==s.length)return!1;for(let p=0;p<o.length;p++)if(!i(o[p],s[p]))return!1}if(St.objectLiteral(o)&&St.objectLiteral(s)){let p=Object.keys(o),g=Object.keys(s);if(p.length!==g.length||(p.sort(),g.sort(),!i(p,g)))return!1;for(let b=0;b<p.length;b++){let D=p[b];if(!i(o[D],s[D]))return!1}}return!0}})(Pc=re.NotebookCell||(re.NotebookCell={}));var Uv;(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 St.objectLiteral(i)&&St.string(i.uri)&&Ur.integer.is(i.version)&&St.typedArray(i.cells,Pc.is)}e.is=n})(Uv=re.NotebookDocument||(re.NotebookDocument={}));var Br;(function(e){e.method="notebookDocument/sync",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.RegistrationType(e.method)})(Br=re.NotebookDocumentSyncRegistrationType||(re.NotebookDocumentSyncRegistrationType={}));var Bv;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})(Bv=re.DidOpenNotebookDocumentNotification||(re.DidOpenNotebookDocumentNotification={}));var zv;(function(e){function t(r){let i=r;return St.objectLiteral(i)&&Ur.uinteger.is(i.start)&&Ur.uinteger.is(i.deleteCount)&&(i.cells===void 0||St.typedArray(i.cells,Pc.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})(zv=re.NotebookCellArrayChange||(re.NotebookCellArrayChange={}));var $v;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})($v=re.DidChangeNotebookDocumentNotification||(re.DidChangeNotebookDocumentNotification={}));var Yv;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})(Yv=re.DidSaveNotebookDocumentNotification||(re.DidSaveNotebookDocumentNotification={}));var Vv;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolNotificationType(e.method),e.registrationMethod=Br.method})(Vv=re.DidCloseNotebookDocumentNotification||(re.DidCloseNotebookDocumentNotification={}))});var _f=A(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.WorkspaceSymbolRequest=d.CodeActionResolveRequest=d.CodeActionRequest=d.DocumentSymbolRequest=d.DocumentHighlightRequest=d.ReferencesRequest=d.DefinitionRequest=d.SignatureHelpRequest=d.SignatureHelpTriggerKind=d.HoverRequest=d.CompletionResolveRequest=d.CompletionRequest=d.CompletionTriggerKind=d.PublishDiagnosticsNotification=d.WatchKind=d.RelativePattern=d.FileChangeType=d.DidChangeWatchedFilesNotification=d.WillSaveTextDocumentWaitUntilRequest=d.WillSaveTextDocumentNotification=d.TextDocumentSaveReason=d.DidSaveTextDocumentNotification=d.DidCloseTextDocumentNotification=d.DidChangeTextDocumentNotification=d.TextDocumentContentChangeEvent=d.DidOpenTextDocumentNotification=d.TextDocumentSyncKind=d.TelemetryEventNotification=d.LogMessageNotification=d.ShowMessageRequest=d.ShowMessageNotification=d.MessageType=d.DidChangeConfigurationNotification=d.ExitNotification=d.ShutdownRequest=d.InitializedNotification=d.InitializeErrorCodes=d.InitializeRequest=d.WorkDoneProgressOptions=d.TextDocumentRegistrationOptions=d.StaticRegistrationOptions=d.PositionEncodingKind=d.FailureHandlingKind=d.ResourceOperationKind=d.UnregistrationRequest=d.RegistrationRequest=d.DocumentSelector=d.NotebookCellTextDocumentFilter=d.NotebookDocumentFilter=d.TextDocumentFilter=void 0;d.TypeHierarchySubtypesRequest=d.TypeHierarchyPrepareRequest=d.MonikerRequest=d.MonikerKind=d.UniquenessLevel=d.WillDeleteFilesRequest=d.DidDeleteFilesNotification=d.WillRenameFilesRequest=d.DidRenameFilesNotification=d.WillCreateFilesRequest=d.DidCreateFilesNotification=d.FileOperationPatternKind=d.LinkedEditingRangeRequest=d.ShowDocumentRequest=d.SemanticTokensRegistrationType=d.SemanticTokensRefreshRequest=d.SemanticTokensRangeRequest=d.SemanticTokensDeltaRequest=d.SemanticTokensRequest=d.TokenFormat=d.CallHierarchyPrepareRequest=d.CallHierarchyOutgoingCallsRequest=d.CallHierarchyIncomingCallsRequest=d.WorkDoneProgressCancelNotification=d.WorkDoneProgressCreateRequest=d.WorkDoneProgress=d.SelectionRangeRequest=d.DeclarationRequest=d.FoldingRangeRequest=d.ColorPresentationRequest=d.DocumentColorRequest=d.ConfigurationRequest=d.DidChangeWorkspaceFoldersNotification=d.WorkspaceFoldersRequest=d.TypeDefinitionRequest=d.ImplementationRequest=d.ApplyWorkspaceEditRequest=d.ExecuteCommandRequest=d.PrepareRenameRequest=d.RenameRequest=d.PrepareSupportDefaultBehavior=d.DocumentOnTypeFormattingRequest=d.DocumentRangeFormattingRequest=d.DocumentFormattingRequest=d.DocumentLinkResolveRequest=d.DocumentLinkRequest=d.CodeLensRefreshRequest=d.CodeLensResolveRequest=d.CodeLensRequest=d.WorkspaceSymbolResolveRequest=void 0;d.DidCloseNotebookDocumentNotification=d.DidSaveNotebookDocumentNotification=d.DidChangeNotebookDocumentNotification=d.NotebookCellArrayChange=d.DidOpenNotebookDocumentNotification=d.NotebookDocumentSyncRegistrationType=d.NotebookDocument=d.NotebookCell=d.ExecutionSummary=d.NotebookCellKind=d.DiagnosticRefreshRequest=d.WorkspaceDiagnosticRequest=d.DocumentDiagnosticRequest=d.DocumentDiagnosticReportKind=d.DiagnosticServerCancellationData=d.InlayHintRefreshRequest=d.InlayHintResolveRequest=d.InlayHintRequest=d.InlineValueRefreshRequest=d.InlineValueRequest=d.TypeHierarchySupertypesRequest=void 0;var O=Ce(),gf=io(),Be=oo(),Kv=jd();Object.defineProperty(d,"ImplementationRequest",{enumerable:!0,get:function(){return Kv.ImplementationRequest}});var Gv=Id();Object.defineProperty(d,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Gv.TypeDefinitionRequest}});var mf=Fd();Object.defineProperty(d,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return mf.WorkspaceFoldersRequest}});Object.defineProperty(d,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return mf.DidChangeWorkspaceFoldersNotification}});var Qv=Hd();Object.defineProperty(d,"ConfigurationRequest",{enumerable:!0,get:function(){return Qv.ConfigurationRequest}});var hf=Ud();Object.defineProperty(d,"DocumentColorRequest",{enumerable:!0,get:function(){return hf.DocumentColorRequest}});Object.defineProperty(d,"ColorPresentationRequest",{enumerable:!0,get:function(){return hf.ColorPresentationRequest}});var Jv=zd();Object.defineProperty(d,"FoldingRangeRequest",{enumerable:!0,get:function(){return Jv.FoldingRangeRequest}});var Xv=Yd();Object.defineProperty(d,"DeclarationRequest",{enumerable:!0,get:function(){return Xv.DeclarationRequest}});var Zv=Kd();Object.defineProperty(d,"SelectionRangeRequest",{enumerable:!0,get:function(){return Zv.SelectionRangeRequest}});var _c=Gd();Object.defineProperty(d,"WorkDoneProgress",{enumerable:!0,get:function(){return _c.WorkDoneProgress}});Object.defineProperty(d,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return _c.WorkDoneProgressCreateRequest}});Object.defineProperty(d,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return _c.WorkDoneProgressCancelNotification}});var Dc=Qd();Object.defineProperty(d,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Dc.CallHierarchyIncomingCallsRequest}});Object.defineProperty(d,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Dc.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(d,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Dc.CallHierarchyPrepareRequest}});var cr=Jd();Object.defineProperty(d,"TokenFormat",{enumerable:!0,get:function(){return cr.TokenFormat}});Object.defineProperty(d,"SemanticTokensRequest",{enumerable:!0,get:function(){return cr.SemanticTokensRequest}});Object.defineProperty(d,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return cr.SemanticTokensDeltaRequest}});Object.defineProperty(d,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return cr.SemanticTokensRangeRequest}});Object.defineProperty(d,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return cr.SemanticTokensRefreshRequest}});Object.defineProperty(d,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return cr.SemanticTokensRegistrationType}});var eC=Zd();Object.defineProperty(d,"ShowDocumentRequest",{enumerable:!0,get:function(){return eC.ShowDocumentRequest}});var tC=tf();Object.defineProperty(d,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return tC.LinkedEditingRangeRequest}});var An=nf();Object.defineProperty(d,"FileOperationPatternKind",{enumerable:!0,get:function(){return An.FileOperationPatternKind}});Object.defineProperty(d,"DidCreateFilesNotification",{enumerable:!0,get:function(){return An.DidCreateFilesNotification}});Object.defineProperty(d,"WillCreateFilesRequest",{enumerable:!0,get:function(){return An.WillCreateFilesRequest}});Object.defineProperty(d,"DidRenameFilesNotification",{enumerable:!0,get:function(){return An.DidRenameFilesNotification}});Object.defineProperty(d,"WillRenameFilesRequest",{enumerable:!0,get:function(){return An.WillRenameFilesRequest}});Object.defineProperty(d,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return An.DidDeleteFilesNotification}});Object.defineProperty(d,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return An.WillDeleteFilesRequest}});var Rc=of();Object.defineProperty(d,"UniquenessLevel",{enumerable:!0,get:function(){return Rc.UniquenessLevel}});Object.defineProperty(d,"MonikerKind",{enumerable:!0,get:function(){return Rc.MonikerKind}});Object.defineProperty(d,"MonikerRequest",{enumerable:!0,get:function(){return Rc.MonikerRequest}});var Sc=sf();Object.defineProperty(d,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Sc.TypeHierarchyPrepareRequest}});Object.defineProperty(d,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Sc.TypeHierarchySubtypesRequest}});Object.defineProperty(d,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Sc.TypeHierarchySupertypesRequest}});var yf=af();Object.defineProperty(d,"InlineValueRequest",{enumerable:!0,get:function(){return yf.InlineValueRequest}});Object.defineProperty(d,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return yf.InlineValueRefreshRequest}});var Tc=cf();Object.defineProperty(d,"InlayHintRequest",{enumerable:!0,get:function(){return Tc.InlayHintRequest}});Object.defineProperty(d,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Tc.InlayHintResolveRequest}});Object.defineProperty(d,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Tc.InlayHintRefreshRequest}});var zr=lf();Object.defineProperty(d,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return zr.DiagnosticServerCancellationData}});Object.defineProperty(d,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return zr.DocumentDiagnosticReportKind}});Object.defineProperty(d,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return zr.DocumentDiagnosticRequest}});Object.defineProperty(d,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return zr.WorkspaceDiagnosticRequest}});Object.defineProperty(d,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return zr.DiagnosticRefreshRequest}});var Et=pf();Object.defineProperty(d,"NotebookCellKind",{enumerable:!0,get:function(){return Et.NotebookCellKind}});Object.defineProperty(d,"ExecutionSummary",{enumerable:!0,get:function(){return Et.ExecutionSummary}});Object.defineProperty(d,"NotebookCell",{enumerable:!0,get:function(){return Et.NotebookCell}});Object.defineProperty(d,"NotebookDocument",{enumerable:!0,get:function(){return Et.NotebookDocument}});Object.defineProperty(d,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Et.NotebookDocumentSyncRegistrationType}});Object.defineProperty(d,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Et.DidOpenNotebookDocumentNotification}});Object.defineProperty(d,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Et.NotebookCellArrayChange}});Object.defineProperty(d,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Et.DidChangeNotebookDocumentNotification}});Object.defineProperty(d,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Et.DidSaveNotebookDocumentNotification}});Object.defineProperty(d,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Et.DidCloseNotebookDocumentNotification}});var bf;(function(e){function t(n){let r=n;return Be.string(r.language)||Be.string(r.scheme)||Be.string(r.pattern)}e.is=t})(bf=d.TextDocumentFilter||(d.TextDocumentFilter={}));var vf;(function(e){function t(n){let r=n;return Be.objectLiteral(r)&&(Be.string(r.notebookType)||Be.string(r.scheme)||Be.string(r.pattern))}e.is=t})(vf=d.NotebookDocumentFilter||(d.NotebookDocumentFilter={}));var Cf;(function(e){function t(n){let r=n;return Be.objectLiteral(r)&&(Be.string(r.notebook)||vf.is(r.notebook))&&(r.language===void 0||Be.string(r.language))}e.is=t})(Cf=d.NotebookCellTextDocumentFilter||(d.NotebookCellTextDocumentFilter={}));var Pf;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Be.string(r)&&!bf.is(r)&&!Cf.is(r))return!1;return!0}e.is=t})(Pf=d.DocumentSelector||(d.DocumentSelector={}));var nC;(function(e){e.method="client/registerCapability",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType(e.method)})(nC=d.RegistrationRequest||(d.RegistrationRequest={}));var rC;(function(e){e.method="client/unregisterCapability",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType(e.method)})(rC=d.UnregistrationRequest||(d.UnregistrationRequest={}));var iC;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(iC=d.ResourceOperationKind||(d.ResourceOperationKind={}));var oC;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(oC=d.FailureHandlingKind||(d.FailureHandlingKind={}));var sC;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(sC=d.PositionEncodingKind||(d.PositionEncodingKind={}));var aC;(function(e){function t(n){let r=n;return r&&Be.string(r.id)&&r.id.length>0}e.hasId=t})(aC=d.StaticRegistrationOptions||(d.StaticRegistrationOptions={}));var cC;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Pf.is(r.documentSelector))}e.is=t})(cC=d.TextDocumentRegistrationOptions||(d.TextDocumentRegistrationOptions={}));var uC;(function(e){function t(r){let i=r;return Be.objectLiteral(i)&&(i.workDoneProgress===void 0||Be.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Be.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(uC=d.WorkDoneProgressOptions||(d.WorkDoneProgressOptions={}));var lC;(function(e){e.method="initialize",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(lC=d.InitializeRequest||(d.InitializeRequest={}));var dC;(function(e){e.unknownProtocolVersion=1})(dC=d.InitializeErrorCodes||(d.InitializeErrorCodes={}));var fC;(function(e){e.method="initialized",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(fC=d.InitializedNotification||(d.InitializedNotification={}));var pC;(function(e){e.method="shutdown",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType0(e.method)})(pC=d.ShutdownRequest||(d.ShutdownRequest={}));var gC;(function(e){e.method="exit",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType0(e.method)})(gC=d.ExitNotification||(d.ExitNotification={}));var mC;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(mC=d.DidChangeConfigurationNotification||(d.DidChangeConfigurationNotification={}));var hC;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4})(hC=d.MessageType||(d.MessageType={}));var yC;(function(e){e.method="window/showMessage",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(yC=d.ShowMessageNotification||(d.ShowMessageNotification={}));var bC;(function(e){e.method="window/showMessageRequest",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType(e.method)})(bC=d.ShowMessageRequest||(d.ShowMessageRequest={}));var vC;(function(e){e.method="window/logMessage",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(vC=d.LogMessageNotification||(d.LogMessageNotification={}));var CC;(function(e){e.method="telemetry/event",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(CC=d.TelemetryEventNotification||(d.TelemetryEventNotification={}));var PC;(function(e){e.None=0,e.Full=1,e.Incremental=2})(PC=d.TextDocumentSyncKind||(d.TextDocumentSyncKind={}));var _C;(function(e){e.method="textDocument/didOpen",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(_C=d.DidOpenTextDocumentNotification||(d.DidOpenTextDocumentNotification={}));var DC;(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})(DC=d.TextDocumentContentChangeEvent||(d.TextDocumentContentChangeEvent={}));var RC;(function(e){e.method="textDocument/didChange",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(RC=d.DidChangeTextDocumentNotification||(d.DidChangeTextDocumentNotification={}));var SC;(function(e){e.method="textDocument/didClose",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(SC=d.DidCloseTextDocumentNotification||(d.DidCloseTextDocumentNotification={}));var TC;(function(e){e.method="textDocument/didSave",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(TC=d.DidSaveTextDocumentNotification||(d.DidSaveTextDocumentNotification={}));var xC;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(xC=d.TextDocumentSaveReason||(d.TextDocumentSaveReason={}));var wC;(function(e){e.method="textDocument/willSave",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(wC=d.WillSaveTextDocumentNotification||(d.WillSaveTextDocumentNotification={}));var kC;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(kC=d.WillSaveTextDocumentWaitUntilRequest||(d.WillSaveTextDocumentWaitUntilRequest={}));var AC;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolNotificationType(e.method)})(AC=d.DidChangeWatchedFilesNotification||(d.DidChangeWatchedFilesNotification={}));var qC;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(qC=d.FileChangeType||(d.FileChangeType={}));var NC;(function(e){function t(n){let r=n;return Be.objectLiteral(r)&&(gf.URI.is(r.baseUri)||gf.WorkspaceFolder.is(r.baseUri))&&Be.string(r.pattern)}e.is=t})(NC=d.RelativePattern||(d.RelativePattern={}));var OC;(function(e){e.Create=1,e.Change=2,e.Delete=4})(OC=d.WatchKind||(d.WatchKind={}));var EC;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolNotificationType(e.method)})(EC=d.PublishDiagnosticsNotification||(d.PublishDiagnosticsNotification={}));var MC;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(MC=d.CompletionTriggerKind||(d.CompletionTriggerKind={}));var jC;(function(e){e.method="textDocument/completion",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(jC=d.CompletionRequest||(d.CompletionRequest={}));var LC;(function(e){e.method="completionItem/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(LC=d.CompletionResolveRequest||(d.CompletionResolveRequest={}));var IC;(function(e){e.method="textDocument/hover",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(IC=d.HoverRequest||(d.HoverRequest={}));var FC;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(FC=d.SignatureHelpTriggerKind||(d.SignatureHelpTriggerKind={}));var WC;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(WC=d.SignatureHelpRequest||(d.SignatureHelpRequest={}));var HC;(function(e){e.method="textDocument/definition",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(HC=d.DefinitionRequest||(d.DefinitionRequest={}));var UC;(function(e){e.method="textDocument/references",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(UC=d.ReferencesRequest||(d.ReferencesRequest={}));var BC;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(BC=d.DocumentHighlightRequest||(d.DocumentHighlightRequest={}));var zC;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(zC=d.DocumentSymbolRequest||(d.DocumentSymbolRequest={}));var $C;(function(e){e.method="textDocument/codeAction",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})($C=d.CodeActionRequest||(d.CodeActionRequest={}));var YC;(function(e){e.method="codeAction/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(YC=d.CodeActionResolveRequest||(d.CodeActionResolveRequest={}));var VC;(function(e){e.method="workspace/symbol",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(VC=d.WorkspaceSymbolRequest||(d.WorkspaceSymbolRequest={}));var KC;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(KC=d.WorkspaceSymbolResolveRequest||(d.WorkspaceSymbolResolveRequest={}));var GC;(function(e){e.method="textDocument/codeLens",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(GC=d.CodeLensRequest||(d.CodeLensRequest={}));var QC;(function(e){e.method="codeLens/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(QC=d.CodeLensResolveRequest||(d.CodeLensResolveRequest={}));var JC;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType0(e.method)})(JC=d.CodeLensRefreshRequest||(d.CodeLensRefreshRequest={}));var XC;(function(e){e.method="textDocument/documentLink",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(XC=d.DocumentLinkRequest||(d.DocumentLinkRequest={}));var ZC;(function(e){e.method="documentLink/resolve",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(ZC=d.DocumentLinkResolveRequest||(d.DocumentLinkResolveRequest={}));var eP;(function(e){e.method="textDocument/formatting",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(eP=d.DocumentFormattingRequest||(d.DocumentFormattingRequest={}));var tP;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(tP=d.DocumentRangeFormattingRequest||(d.DocumentRangeFormattingRequest={}));var nP;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(nP=d.DocumentOnTypeFormattingRequest||(d.DocumentOnTypeFormattingRequest={}));var rP;(function(e){e.Identifier=1})(rP=d.PrepareSupportDefaultBehavior||(d.PrepareSupportDefaultBehavior={}));var iP;(function(e){e.method="textDocument/rename",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(iP=d.RenameRequest||(d.RenameRequest={}));var oP;(function(e){e.method="textDocument/prepareRename",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(oP=d.PrepareRenameRequest||(d.PrepareRenameRequest={}));var sP;(function(e){e.method="workspace/executeCommand",e.messageDirection=O.MessageDirection.clientToServer,e.type=new O.ProtocolRequestType(e.method)})(sP=d.ExecuteCommandRequest||(d.ExecuteCommandRequest={}));var aP;(function(e){e.method="workspace/applyEdit",e.messageDirection=O.MessageDirection.serverToClient,e.type=new O.ProtocolRequestType("workspace/applyEdit")})(aP=d.ApplyWorkspaceEditRequest||(d.ApplyWorkspaceEditRequest={}))});var Rf=A(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.createProtocolConnection=void 0;var Df=kn();function cP(e,t,n,r){return Df.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Df.createMessageConnection)(e,t,n,r)}fo.createProtocolConnection=cP});var Sf=A(Qe=>{"use strict";var uP=Qe&&Qe.__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]}),po=Qe&&Qe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uP(t,e,n)};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.LSPErrorCodes=Qe.createProtocolConnection=void 0;po(kn(),Qe);po(io(),Qe);po(Ce(),Qe);po(_f(),Qe);var lP=Rf();Object.defineProperty(Qe,"createProtocolConnection",{enumerable:!0,get:function(){return lP.createProtocolConnection}});var dP;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(dP=Qe.LSPErrorCodes||(Qe.LSPErrorCodes={}))});var qe=A(Mt=>{"use strict";var fP=Mt&&Mt.__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]}),Tf=Mt&&Mt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fP(t,e,n)};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.createProtocolConnection=void 0;var pP=mc();Tf(mc(),Mt);Tf(Sf(),Mt);function gP(e,t,n,r){return(0,pP.createMessageConnection)(e,t,n,r)}Mt.createProtocolConnection=gP});var wc=A(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.SemanticTokensBuilder=cn.SemanticTokensDiff=cn.SemanticTokensFeature=void 0;var go=qe(),mP=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(go.SemanticTokensRefreshRequest.type),on:t=>{let n=go.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=go.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=go.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};cn.SemanticTokensFeature=mP;var mo=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,u=this.modifiedSequence.slice(r,o+1);return u.length===1&&u[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:u}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};cn.SemanticTokensDiff=mo;var xc=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,u=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(u-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=u,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 mo(this._prevData,this._data).computeDiff()}:this.build()}};cn.SemanticTokensBuilder=xc});var Ac=A(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.TextDocuments=void 0;var qn=qe(),kc=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new qn.Emitter,this._onDidOpen=new qn.Emitter,this._onDidClose=new qn.Emitter,this._onDidSave=new qn.Emitter,this._onWillSave=new qn.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=qn.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 u=this._syncedDocuments.get(i.uri);u!==void 0&&(u=this._configuration.update(u,o,s),this._syncedDocuments.set(i.uri,u),this._onDidChangeContent.fire(Object.freeze({document:u})))})),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}))})),qn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ho.TextDocuments=kc});var Nc=A(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.NotebookDocuments=ur.NotebookSyncFeature=void 0;var lt=qe(),xf=Ac(),hP=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(lt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(lt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(lt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(lt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ur.NotebookSyncFeature=hP;var un=class{onDidOpenTextDocument(t){return this.openHandler=t,lt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,lt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,lt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return un.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return un.NULL_DISPOSE}onDidSaveTextDocument(){return un.NULL_DISPOSE}};un.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var qc=class{constructor(t){t instanceof xf.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new xf.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new lt.Emitter,this._onDidChange=new lt.Emitter,this._onDidSave=new lt.Emitter,this._onDidClose=new lt.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 un,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,u=!1,c=i.change;c.metadata!==void 0&&(u=!0,o.metadata=c.metadata);let p=[],g=[],b=[],D=[];if(c.cells!==void 0){let j=c.cells;if(j.structure!==void 0){let _=j.structure.array;if(o.cells.splice(_.start,_.deleteCount,..._.cells!==void 0?_.cells:[]),j.structure.didOpen!==void 0)for(let v of j.structure.didOpen)n.openTextDocument({textDocument:v}),p.push(v.uri);if(j.structure.didClose)for(let v of j.structure.didClose)n.closeTextDocument({textDocument:v}),g.push(v.uri)}if(j.data!==void 0){let _=new Map(j.data.map(v=>[v.document,v]));for(let v=0;v<=o.cells.length;v++){let N=_.get(o.cells[v].document);if(N!==void 0){let z=o.cells.splice(v,1,N);if(b.push({old:z[0],new:N}),_.delete(N.document),_.size===0)break}}}if(j.textContent!==void 0)for(let _ of j.textContent)n.changeTextDocument({textDocument:_.document,contentChanges:_.changes}),D.push(_.document.uri)}this.updateCellMap(o);let R={notebookDocument:o};u&&(R.metadata={old:s,new:o.metadata});let T=[];for(let j of p)T.push(this.getNotebookCell(j));let q=[];for(let j of g)q.push(this.getNotebookCell(j));let B=[];for(let j of D)B.push(this.getNotebookCell(j));(T.length>0||q.length>0||b.length>0||B.length>0)&&(R.cells={added:T,removed:q,changed:{data:b,textContent:B}}),(R.metadata!==void 0||R.cells!==void 0)&&this._onDidChange.fire(R)})),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)}})),lt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ur.NotebookDocuments=qc});var Oc=A(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.thenable=ke.typedArray=ke.stringArray=ke.array=ke.func=ke.error=ke.number=ke.string=ke.boolean=void 0;function yP(e){return e===!0||e===!1}ke.boolean=yP;function wf(e){return typeof e=="string"||e instanceof String}ke.string=wf;function bP(e){return typeof e=="number"||e instanceof Number}ke.number=bP;function vP(e){return e instanceof Error}ke.error=vP;function kf(e){return typeof e=="function"}ke.func=kf;function Af(e){return Array.isArray(e)}ke.array=Af;function CP(e){return Af(e)&&e.every(t=>wf(t))}ke.stringArray=CP;function PP(e,t){return Array.isArray(e)&&e.every(t)}ke.typedArray=PP;function _P(e){return e&&kf(e.then)}ke.thenable=_P});var Ec=A(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.generateUuid=dt.parse=dt.isUUID=dt.v4=dt.empty=void 0;var $r=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},J=class extends $r{constructor(){super([J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),"-",J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),"-","4",J._randomHex(),J._randomHex(),J._randomHex(),"-",J._oneOf(J._timeHighBits),J._randomHex(),J._randomHex(),J._randomHex(),"-",J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex(),J._randomHex()].join(""))}static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return J._oneOf(J._chars)}};J._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];J._timeHighBits=["8","9","a","b"];dt.empty=new $r("00000000-0000-0000-0000-000000000000");function qf(){return new J}dt.v4=qf;var DP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Nf(e){return DP.test(e)}dt.isUUID=Nf;function RP(e){if(!Nf(e))throw new Error("invalid uuid");return new $r(e)}dt.parse=RP;function SP(){return qf().asHex()}dt.generateUuid=SP});var Of=A(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.attachPartialResult=dn.ProgressFeature=dn.attachWorkDone=void 0;var ln=qe(),TP=Ec(),jt=class{constructor(t,n){this._connection=t,this._token=n,jt.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(ln.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(ln.WorkDoneProgress.type,this._token,r)}done(){jt.Instances.delete(this._token),this._connection.sendProgress(ln.WorkDoneProgress.type,this._token,{kind:"end"})}};jt.Instances=new Map;var yo=class extends jt{constructor(t,n){super(t,n),this._source=new ln.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Yr=class{constructor(){}begin(){}report(){}done(){}},bo=class extends Yr{constructor(){super(),this._source=new ln.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function xP(e,t){if(t===void 0||t.workDoneToken===void 0)return new Yr;let n=t.workDoneToken;return delete t.workDoneToken,new jt(e,n)}dn.attachWorkDone=xP;var wP=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(ln.WorkDoneProgressCancelNotification.type,n=>{let r=jt.Instances.get(n.token);(r instanceof yo||r instanceof bo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Yr:new jt(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,TP.generateUuid)();return this.connection.sendRequest(ln.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new yo(this.connection,t))}else return Promise.resolve(new bo)}};dn.ProgressFeature=wP;var Mc;(function(e){e.type=new ln.ProgressType})(Mc||(Mc={}));var jc=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Mc.type,this._token,t)}};function kP(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new jc(e,n)}dn.attachPartialResult=kP});var Ef=A(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ConfigurationFeature=void 0;var AP=qe(),qP=Oc(),NP=e=>class extends e{getConfiguration(t){return t?qP.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(AP.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};vo.ConfigurationFeature=NP});var Mf=A(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.WorkspaceFoldersFeature=void 0;var Co=qe(),OP=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Co.Emitter,this.connection.onNotification(Co.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(Co.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(Co.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Po.WorkspaceFoldersFeature=OP});var jf=A(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.CallHierarchyFeature=void 0;var Lc=qe(),EP=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Lc.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Lc.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Lc.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};_o.CallHierarchyFeature=EP});var Lf=A(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ShowDocumentFeature=void 0;var MP=qe(),jP=e=>class extends e{showDocument(t){return this.connection.sendRequest(MP.ShowDocumentRequest.type,t)}};Do.ShowDocumentFeature=jP});var If=A(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.FileOperationsFeature=void 0;var lr=qe(),LP=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(lr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(lr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(lr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(lr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(lr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(lr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Ro.FileOperationsFeature=LP});var Ff=A(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.LinkedEditingRangeFeature=void 0;var IP=qe(),FP=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(IP.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};So.LinkedEditingRangeFeature=FP});var Wf=A(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.TypeHierarchyFeature=void 0;var Ic=qe(),WP=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Ic.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Ic.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Ic.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};To.TypeHierarchyFeature=WP});var Uf=A(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.InlineValueFeature=void 0;var Hf=qe(),HP=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Hf.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Hf.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};xo.InlineValueFeature=HP});var Bf=A(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.InlayHintFeature=void 0;var Fc=qe(),UP=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Fc.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(Fc.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(Fc.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};wo.InlayHintFeature=UP});var zf=A(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DiagnosticFeature=void 0;var Vr=qe(),BP=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Vr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Vr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Vr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Vr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Vr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ko.DiagnosticFeature=BP});var $f=A(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.MonikerFeature=void 0;var zP=qe(),$P=e=>class extends e{get moniker(){return{on:t=>{let n=zP.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ao.MonikerFeature=$P});var ip=A(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.createConnection=ne.combineFeatures=ne.combineNotebooksFeatures=ne.combineLanguagesFeatures=ne.combineWorkspaceFeatures=ne.combineWindowFeatures=ne.combineClientFeatures=ne.combineTracerFeatures=ne.combineTelemetryFeatures=ne.combineConsoleFeatures=ne._NotebooksImpl=ne._LanguagesImpl=ne.BulkUnregistration=ne.BulkRegistration=ne.ErrorMessageTracker=void 0;var M=qe(),ft=Oc(),Hc=Ec(),V=Of(),YP=Ef(),VP=Mf(),KP=jf(),GP=wc(),QP=Lf(),JP=If(),XP=Ff(),ZP=Wf(),e_=Uf(),t_=Bf(),n_=zf(),r_=Nc(),i_=$f();function Wc(e){if(e!==null)return e}var Uc=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)})}};ne.ErrorMessageTracker=Uc;var qo=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(M.MessageType.Error,t)}warn(t){this.send(M.MessageType.Warning,t)}info(t){this.send(M.MessageType.Info,t)}log(t){this.send(M.MessageType.Log,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(M.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,M.RAL)().console.error("Sending log message failed")})}},Bc=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:M.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(M.ShowMessageRequest.type,r).then(Wc)}showWarningMessage(t,...n){let r={type:M.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(M.ShowMessageRequest.type,r).then(Wc)}showInformationMessage(t,...n){let r={type:M.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(M.ShowMessageRequest.type,r).then(Wc)}},Yf=(0,QP.ShowDocumentFeature)((0,V.ProgressFeature)(Bc)),o_;(function(e){function t(){return new No}e.create=t})(o_=ne.BulkRegistration||(ne.BulkRegistration={}));var No=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=ft.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Hc.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},s_;(function(e){function t(){return new Kr(void 0,[])}e.create=t})(s_=ne.BulkUnregistration||(ne.BulkUnregistration={}));var Kr=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(M.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=ft.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(M.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Oo=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 No?this.registerMany(t):t instanceof Kr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ft.string(n)?n:n.method,o=Hc.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(M.RegistrationRequest.type,s).then(u=>(t.add({id:o,method:i}),t),u=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(u)))}registerSingle2(t,n){let r=ft.string(t)?t:t.method,i=Hc.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(M.RegistrationRequest.type,o).then(s=>M.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(M.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(M.RegistrationRequest.type,n).then(()=>new Kr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},zc=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(M.ApplyWorkspaceEditRequest.type,r)}},Vf=(0,JP.FileOperationsFeature)((0,VP.WorkspaceFoldersFeature)((0,YP.ConfigurationFeature)(zc))),Eo=class{constructor(){this._trace=M.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!==M.Trace.Off&&this.connection.sendNotification(M.LogTraceNotification.type,{message:t,verbose:this._trace===M.Trace.Verbose?n:void 0}).catch(()=>{})}},Mo=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(M.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},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){}attachWorkDoneProgress(t){return(0,V.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,V.attachPartialResult)(this.connection,n)}};ne._LanguagesImpl=jo;var Kf=(0,i_.MonikerFeature)((0,n_.DiagnosticFeature)((0,t_.InlayHintFeature)((0,e_.InlineValueFeature)((0,ZP.TypeHierarchyFeature)((0,XP.LinkedEditingRangeFeature)((0,GP.SemanticTokensFeature)((0,KP.CallHierarchyFeature)(jo)))))))),Lo=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,V.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,V.attachPartialResult)(this.connection,n)}};ne._NotebooksImpl=Lo;var Gf=(0,r_.NotebookSyncFeature)(Lo);function Qf(e,t){return function(n){return t(e(n))}}ne.combineConsoleFeatures=Qf;function Jf(e,t){return function(n){return t(e(n))}}ne.combineTelemetryFeatures=Jf;function Xf(e,t){return function(n){return t(e(n))}}ne.combineTracerFeatures=Xf;function Zf(e,t){return function(n){return t(e(n))}}ne.combineClientFeatures=Zf;function ep(e,t){return function(n){return t(e(n))}}ne.combineWindowFeatures=ep;function tp(e,t){return function(n){return t(e(n))}}ne.combineWorkspaceFeatures=tp;function np(e,t){return function(n){return t(e(n))}}ne.combineLanguagesFeatures=np;function rp(e,t){return function(n){return t(e(n))}}ne.combineNotebooksFeatures=rp;function a_(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Qf),tracer:n(e.tracer,t.tracer,Xf),telemetry:n(e.telemetry,t.telemetry,Jf),client:n(e.client,t.client,Zf),window:n(e.window,t.window,ep),workspace:n(e.workspace,t.workspace,tp),languages:n(e.languages,t.languages,np),notebooks:n(e.notebooks,t.notebooks,rp)}}ne.combineFeatures=a_;function c_(e,t,n){let r=n&&n.console?new(n.console(qo)):new qo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Eo)):new Eo,s=n&&n.telemetry?new(n.telemetry(Mo)):new Mo,u=n&&n.client?new(n.client(Oo)):new Oo,c=n&&n.window?new(n.window(Yf)):new Yf,p=n&&n.workspace?new(n.workspace(Vf)):new Vf,g=n&&n.languages?new(n.languages(Kf)):new Kf,b=n&&n.notebooks?new(n.notebooks(Gf)):new Gf,D=[r,o,s,u,c,p,g,b];function R(_){return _ instanceof Promise?_:ft.thenable(_)?new Promise((v,N)=>{_.then(z=>v(z),z=>N(z))}):Promise.resolve(_)}let T,q,B,j={listen:()=>i.listen(),sendRequest:(_,...v)=>i.sendRequest(ft.string(_)?_:_.method,...v),onRequest:(_,v)=>i.onRequest(_,v),sendNotification:(_,v)=>{let N=ft.string(_)?_:_.method;return arguments.length===1?i.sendNotification(N):i.sendNotification(N,v)},onNotification:(_,v)=>i.onNotification(_,v),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:_=>(q=_,{dispose:()=>{q=void 0}}),onInitialized:_=>i.onNotification(M.InitializedNotification.type,_),onShutdown:_=>(T=_,{dispose:()=>{T=void 0}}),onExit:_=>(B=_,{dispose:()=>{B=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return u},get window(){return c},get workspace(){return p},get languages(){return g},get notebooks(){return b},onDidChangeConfiguration:_=>i.onNotification(M.DidChangeConfigurationNotification.type,_),onDidChangeWatchedFiles:_=>i.onNotification(M.DidChangeWatchedFilesNotification.type,_),__textDocumentSync:void 0,onDidOpenTextDocument:_=>i.onNotification(M.DidOpenTextDocumentNotification.type,_),onDidChangeTextDocument:_=>i.onNotification(M.DidChangeTextDocumentNotification.type,_),onDidCloseTextDocument:_=>i.onNotification(M.DidCloseTextDocumentNotification.type,_),onWillSaveTextDocument:_=>i.onNotification(M.WillSaveTextDocumentNotification.type,_),onWillSaveTextDocumentWaitUntil:_=>i.onRequest(M.WillSaveTextDocumentWaitUntilRequest.type,_),onDidSaveTextDocument:_=>i.onNotification(M.DidSaveTextDocumentNotification.type,_),sendDiagnostics:_=>i.sendNotification(M.PublishDiagnosticsNotification.type,_),onHover:_=>i.onRequest(M.HoverRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onCompletion:_=>i.onRequest(M.CompletionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onCompletionResolve:_=>i.onRequest(M.CompletionResolveRequest.type,_),onSignatureHelp:_=>i.onRequest(M.SignatureHelpRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onDeclaration:_=>i.onRequest(M.DeclarationRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDefinition:_=>i.onRequest(M.DefinitionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onTypeDefinition:_=>i.onRequest(M.TypeDefinitionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onImplementation:_=>i.onRequest(M.ImplementationRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onReferences:_=>i.onRequest(M.ReferencesRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDocumentHighlight:_=>i.onRequest(M.DocumentHighlightRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDocumentSymbol:_=>i.onRequest(M.DocumentSymbolRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onWorkspaceSymbol:_=>i.onRequest(M.WorkspaceSymbolRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onWorkspaceSymbolResolve:_=>i.onRequest(M.WorkspaceSymbolResolveRequest.type,_),onCodeAction:_=>i.onRequest(M.CodeActionRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onCodeActionResolve:_=>i.onRequest(M.CodeActionResolveRequest.type,(v,N)=>_(v,N)),onCodeLens:_=>i.onRequest(M.CodeLensRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onCodeLensResolve:_=>i.onRequest(M.CodeLensResolveRequest.type,(v,N)=>_(v,N)),onDocumentFormatting:_=>i.onRequest(M.DocumentFormattingRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onDocumentRangeFormatting:_=>i.onRequest(M.DocumentRangeFormattingRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onDocumentOnTypeFormatting:_=>i.onRequest(M.DocumentOnTypeFormattingRequest.type,(v,N)=>_(v,N)),onRenameRequest:_=>i.onRequest(M.RenameRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),onPrepareRename:_=>i.onRequest(M.PrepareRenameRequest.type,(v,N)=>_(v,N)),onDocumentLinks:_=>i.onRequest(M.DocumentLinkRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onDocumentLinkResolve:_=>i.onRequest(M.DocumentLinkResolveRequest.type,(v,N)=>_(v,N)),onDocumentColor:_=>i.onRequest(M.DocumentColorRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onColorPresentation:_=>i.onRequest(M.ColorPresentationRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onFoldingRanges:_=>i.onRequest(M.FoldingRangeRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onSelectionRanges:_=>i.onRequest(M.SelectionRangeRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),(0,V.attachPartialResult)(i,v))),onExecuteCommand:_=>i.onRequest(M.ExecuteCommandRequest.type,(v,N)=>_(v,N,(0,V.attachWorkDone)(i,v),void 0)),dispose:()=>i.dispose()};for(let _ of D)_.attach(j);return i.onRequest(M.InitializeRequest.type,_=>{t.initialize(_),ft.string(_.trace)&&(o.trace=M.Trace.fromString(_.trace));for(let v of D)v.initialize(_.capabilities);if(q){let v=q(_,new M.CancellationTokenSource().token,(0,V.attachWorkDone)(i,_),void 0);return R(v).then(N=>{if(N instanceof M.ResponseError)return N;let z=N;z||(z={capabilities:{}});let Z=z.capabilities;Z||(Z={},z.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=ft.number(j.__textDocumentSync)?j.__textDocumentSync:M.TextDocumentSyncKind.None:!ft.number(Z.textDocumentSync)&&!ft.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=ft.number(j.__textDocumentSync)?j.__textDocumentSync:M.TextDocumentSyncKind.None);for(let ue of D)ue.fillServerCapabilities(Z);return z})}else{let v={capabilities:{textDocumentSync:M.TextDocumentSyncKind.None}};for(let N of D)N.fillServerCapabilities(v.capabilities);return v}}),i.onRequest(M.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,T)return T(new M.CancellationTokenSource().token)}),i.onNotification(M.ExitNotification.type,()=>{try{B&&B()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(M.SetTraceNotification.type,_=>{o.trace=M.Trace.fromString(_.value)}),j}ne.createConnection=c_});var $c=A(ze=>{"use strict";var u_=ze&&ze.__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]}),op=ze&&ze.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&u_(t,e,n)};Object.defineProperty(ze,"__esModule",{value:!0});ze.ProposedFeatures=ze.NotebookDocuments=ze.TextDocuments=ze.SemanticTokensBuilder=void 0;var l_=wc();Object.defineProperty(ze,"SemanticTokensBuilder",{enumerable:!0,get:function(){return l_.SemanticTokensBuilder}});op(qe(),ze);var d_=Ac();Object.defineProperty(ze,"TextDocuments",{enumerable:!0,get:function(){return d_.TextDocuments}});var f_=Nc();Object.defineProperty(ze,"NotebookDocuments",{enumerable:!0,get:function(){return f_.NotebookDocuments}});op(ip(),ze);var p_;(function(e){e.all={__brand:"features"}})(p_=ze.ProposedFeatures||(ze.ProposedFeatures={}))});var ap=A((WS,sp)=>{"use strict";sp.exports=qe()});var Yc=A(Lt=>{"use strict";var g_=Lt&&Lt.__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]}),up=Lt&&Lt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&g_(t,e,n)};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.createConnection=void 0;var Io=$c();up(ap(),Lt);up($c(),Lt);var cp=!1,m_={initialize:e=>{},get shutdownReceived(){return cp},set shutdownReceived(e){cp=e},exit:e=>{}};function h_(e,t,n,r){let i,o,s,u;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Io.ConnectionStrategy.is(e)||Io.ConnectionOptions.is(e)?u=e:(o=e,s=t,u=n);let c=p=>(0,Io.createProtocolConnection)(o,s,p,u);return(0,Io.createConnection)(c,m_,i)}Lt.createConnection=h_});var fn=A((US,lp)=>{"use strict";lp.exports=Yc()});var ru=A((LT,_p)=>{"use strict";function It(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Pp(e,t){for(var n="",r=0,i=-1,o=0,s,u=0;u<=e.length;++u){if(u<e.length)s=e.charCodeAt(u);else{if(s===47)break;s=47}if(s===47){if(!(i===u-1||o===1))if(i!==u-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=u,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=u,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,u):n=e.slice(i+1,u),r=u-i-1;i=u,o=0}else s===46&&o!==-1?++o:o=-1}return n}function Z_(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 pr={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),It(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=Pp(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(It(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Pp(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return It(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];It(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":pr.normalize(t)},relative:function(t,n){if(It(t),It(n),t===n||(t=pr.resolve(t),n=pr.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 u=n.length,c=u-s,p=o<c?o:c,g=-1,b=0;b<=p;++b){if(b===p){if(c>p){if(n.charCodeAt(s+b)===47)return n.slice(s+b+1);if(b===0)return n.slice(s+b)}else o>p&&(t.charCodeAt(r+b)===47?g=b:b===0&&(g=0));break}var D=t.charCodeAt(r+b),R=n.charCodeAt(s+b);if(D!==R)break;D===47&&(g=b)}var T="";for(b=r+g+1;b<=i;++b)(b===i||t.charCodeAt(b)===47)&&(T.length===0?T+="..":T+="/..");return T.length>0?T+n.slice(s+g):(s+=g,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(It(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');It(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 u=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var p=t.charCodeAt(s);if(p===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),u>=0&&(p===n.charCodeAt(u)?--u===-1&&(i=s):(u=-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){It(t);for(var n=-1,r=0,i=-1,o=!0,s=0,u=t.length-1;u>=0;--u){var c=t.charCodeAt(u);if(c===47){if(!o){r=u+1;break}continue}i===-1&&(o=!1,i=u+1),c===46?n===-1?n=u: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 Z_("/",t)},parse:function(t){It(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,u=0,c=-1,p=!0,g=t.length-1,b=0;g>=o;--g){if(r=t.charCodeAt(g),r===47){if(!p){u=g+1;break}continue}c===-1&&(p=!1,c=g+1),r===46?s===-1?s=g:b!==1&&(b=1):s!==-1&&(b=-1)}return s===-1||c===-1||b===0||b===1&&s===c-1&&s===u+1?c!==-1&&(u===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(u,c)):(u===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(u,s),n.base=t.slice(u,c)),n.ext=t.slice(s,c)),u>0?n.dir=t.slice(0,u-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};pr.posix=pr;_p.exports=pr});import{CONFIG_FILE_NAMES as Ks,loadConfig as Ah}from"@redocly/openapi-core";var au;(()=>{"use strict";var e={470:i=>{function o(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function s(c,p){for(var g,b="",D=0,R=-1,T=0,q=0;q<=c.length;++q){if(q<c.length)g=c.charCodeAt(q);else{if(g===47)break;g=47}if(g===47){if(!(R===q-1||T===1))if(R!==q-1&&T===2){if(b.length<2||D!==2||b.charCodeAt(b.length-1)!==46||b.charCodeAt(b.length-2)!==46){if(b.length>2){var B=b.lastIndexOf("/");if(B!==b.length-1){B===-1?(b="",D=0):D=(b=b.slice(0,B)).length-1-b.lastIndexOf("/"),R=q,T=0;continue}}else if(b.length===2||b.length===1){b="",D=0,R=q,T=0;continue}}p&&(b.length>0?b+="/..":b="..",D=2)}else b.length>0?b+="/"+c.slice(R+1,q):b=c.slice(R+1,q),D=q-R-1;R=q,T=0}else g===46&&T!==-1?++T:T=-1}return b}var u={resolve:function(){for(var c,p="",g=!1,b=arguments.length-1;b>=-1&&!g;b--){var D;b>=0?D=arguments[b]:(c===void 0&&(c=process.cwd()),D=c),o(D),D.length!==0&&(p=D+"/"+p,g=D.charCodeAt(0)===47)}return p=s(p,!g),g?p.length>0?"/"+p:"/":p.length>0?p:"."},normalize:function(c){if(o(c),c.length===0)return".";var p=c.charCodeAt(0)===47,g=c.charCodeAt(c.length-1)===47;return(c=s(c,!p)).length!==0||p||(c="."),c.length>0&&g&&(c+="/"),p?"/"+c:c},isAbsolute:function(c){return o(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,p=0;p<arguments.length;++p){var g=arguments[p];o(g),g.length>0&&(c===void 0?c=g:c+="/"+g)}return c===void 0?".":u.normalize(c)},relative:function(c,p){if(o(c),o(p),c===p||(c=u.resolve(c))===(p=u.resolve(p)))return"";for(var g=1;g<c.length&&c.charCodeAt(g)===47;++g);for(var b=c.length,D=b-g,R=1;R<p.length&&p.charCodeAt(R)===47;++R);for(var T=p.length-R,q=D<T?D:T,B=-1,j=0;j<=q;++j){if(j===q){if(T>q){if(p.charCodeAt(R+j)===47)return p.slice(R+j+1);if(j===0)return p.slice(R+j)}else D>q&&(c.charCodeAt(g+j)===47?B=j:j===0&&(B=0));break}var _=c.charCodeAt(g+j);if(_!==p.charCodeAt(R+j))break;_===47&&(B=j)}var v="";for(j=g+B+1;j<=b;++j)j!==b&&c.charCodeAt(j)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+p.slice(R+B):(R+=B,p.charCodeAt(R)===47&&++R,p.slice(R))},_makeLong:function(c){return c},dirname:function(c){if(o(c),c.length===0)return".";for(var p=c.charCodeAt(0),g=p===47,b=-1,D=!0,R=c.length-1;R>=1;--R)if((p=c.charCodeAt(R))===47){if(!D){b=R;break}}else D=!1;return b===-1?g?"/":".":g&&b===1?"//":c.slice(0,b)},basename:function(c,p){if(p!==void 0&&typeof p!="string")throw new TypeError('"ext" argument must be a string');o(c);var g,b=0,D=-1,R=!0;if(p!==void 0&&p.length>0&&p.length<=c.length){if(p.length===c.length&&p===c)return"";var T=p.length-1,q=-1;for(g=c.length-1;g>=0;--g){var B=c.charCodeAt(g);if(B===47){if(!R){b=g+1;break}}else q===-1&&(R=!1,q=g+1),T>=0&&(B===p.charCodeAt(T)?--T==-1&&(D=g):(T=-1,D=q))}return b===D?D=q:D===-1&&(D=c.length),c.slice(b,D)}for(g=c.length-1;g>=0;--g)if(c.charCodeAt(g)===47){if(!R){b=g+1;break}}else D===-1&&(R=!1,D=g+1);return D===-1?"":c.slice(b,D)},extname:function(c){o(c);for(var p=-1,g=0,b=-1,D=!0,R=0,T=c.length-1;T>=0;--T){var q=c.charCodeAt(T);if(q!==47)b===-1&&(D=!1,b=T+1),q===46?p===-1?p=T:R!==1&&(R=1):p!==-1&&(R=-1);else if(!D){g=T+1;break}}return p===-1||b===-1||R===0||R===1&&p===b-1&&p===g+1?"":c.slice(p,b)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return function(p,g){var b=g.dir||g.root,D=g.base||(g.name||"")+(g.ext||"");return b?b===g.root?b+D:b+"/"+D:D}(0,c)},parse:function(c){o(c);var p={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return p;var g,b=c.charCodeAt(0),D=b===47;D?(p.root="/",g=1):g=0;for(var R=-1,T=0,q=-1,B=!0,j=c.length-1,_=0;j>=g;--j)if((b=c.charCodeAt(j))!==47)q===-1&&(B=!1,q=j+1),b===46?R===-1?R=j:_!==1&&(_=1):R!==-1&&(_=-1);else if(!B){T=j+1;break}return R===-1||q===-1||_===0||_===1&&R===q-1&&R===T+1?q!==-1&&(p.base=p.name=T===0&&D?c.slice(1,q):c.slice(T,q)):(T===0&&D?(p.name=c.slice(1,R),p.base=c.slice(1,q)):(p.name=c.slice(T,R),p.base=c.slice(T,q)),p.ext=c.slice(R,q)),T>0?p.dir=c.slice(0,T-1):D&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};u.posix=u,i.exports=u}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(i,o)=>{for(var s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>D,Utils:()=>gt}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,u=/^\/\//;function c(L,x){if(!L.scheme&&x)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${L.authority}", path: "${L.path}", query: "${L.query}", fragment: "${L.fragment}"}`);if(L.scheme&&!o.test(L.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(L.path){if(L.authority){if(!s.test(L.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(u.test(L.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let p="",g="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class D{static isUri(x){return x instanceof D||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"}scheme;authority;path;query;fragment;constructor(x,H,I,ie,X,K=!1){typeof x=="object"?(this.scheme=x.scheme||p,this.authority=x.authority||p,this.path=x.path||p,this.query=x.query||p,this.fragment=x.fragment||p):(this.scheme=function(Ve,Ae){return Ve||Ae?Ve:"file"}(x,K),this.authority=H||p,this.path=function(Ve,Ae){switch(Ve){case"https":case"http":case"file":Ae?Ae[0]!==g&&(Ae=g+Ae):Ae=g}return Ae}(this.scheme,I||p),this.query=ie||p,this.fragment=X||p,c(this,K))}get fsPath(){return _(this,!1)}with(x){if(!x)return this;let{scheme:H,authority:I,path:ie,query:X,fragment:K}=x;return H===void 0?H=this.scheme:H===null&&(H=p),I===void 0?I=this.authority:I===null&&(I=p),ie===void 0?ie=this.path:ie===null&&(ie=p),X===void 0?X=this.query:X===null&&(X=p),K===void 0?K=this.fragment:K===null&&(K=p),H===this.scheme&&I===this.authority&&ie===this.path&&X===this.query&&K===this.fragment?this:new T(H,I,ie,X,K)}static parse(x,H=!1){let I=b.exec(x);return I?new T(I[2]||p,Z(I[4]||p),Z(I[5]||p),Z(I[7]||p),Z(I[9]||p),H):new T(p,p,p,p,p)}static file(x){let H=p;if(i&&(x=x.replace(/\\/g,g)),x[0]===g&&x[1]===g){let I=x.indexOf(g,2);I===-1?(H=x.substring(2),x=g):(H=x.substring(2,I),x=x.substring(I)||g)}return new T("file",H,x,p,p)}static from(x){let H=new T(x.scheme,x.authority,x.path,x.query,x.fragment);return c(H,!0),H}toString(x=!1){return v(this,x)}toJSON(){return this}static revive(x){if(x){if(x instanceof D)return x;{let H=new T(x);return H._formatted=x.external,H._fsPath=x._sep===R?x.fsPath:null,H}}return x}}let R=i?1:void 0;class T extends D{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(x=!1){return x?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){let x={$mid:1};return this._fsPath&&(x.fsPath=this._fsPath,x._sep=R),this._formatted&&(x.external=this._formatted),this.path&&(x.path=this.path),this.scheme&&(x.scheme=this.scheme),this.authority&&(x.authority=this.authority),this.query&&(x.query=this.query),this.fragment&&(x.fragment=this.fragment),x}}let q={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 B(L,x,H){let I,ie=-1;for(let X=0;X<L.length;X++){let K=L.charCodeAt(X);if(K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===45||K===46||K===95||K===126||x&&K===47||H&&K===91||H&&K===93||H&&K===58)ie!==-1&&(I+=encodeURIComponent(L.substring(ie,X)),ie=-1),I!==void 0&&(I+=L.charAt(X));else{I===void 0&&(I=L.substr(0,X));let Ve=q[K];Ve!==void 0?(ie!==-1&&(I+=encodeURIComponent(L.substring(ie,X)),ie=-1),I+=Ve):ie===-1&&(ie=X)}}return ie!==-1&&(I+=encodeURIComponent(L.substring(ie))),I!==void 0?I:L}function j(L){let x;for(let H=0;H<L.length;H++){let I=L.charCodeAt(H);I===35||I===63?(x===void 0&&(x=L.substr(0,H)),x+=q[I]):x!==void 0&&(x+=L[H])}return x!==void 0?x:L}function _(L,x){let H;return H=L.authority&&L.path.length>1&&L.scheme==="file"?`//${L.authority}${L.path}`:L.path.charCodeAt(0)===47&&(L.path.charCodeAt(1)>=65&&L.path.charCodeAt(1)<=90||L.path.charCodeAt(1)>=97&&L.path.charCodeAt(1)<=122)&&L.path.charCodeAt(2)===58?x?L.path.substr(1):L.path[1].toLowerCase()+L.path.substr(2):L.path,i&&(H=H.replace(/\//g,"\\")),H}function v(L,x){let H=x?j:B,I="",{scheme:ie,authority:X,path:K,query:Ve,fragment:Ae}=L;if(ie&&(I+=ie,I+=":"),(X||ie==="file")&&(I+=g,I+=g),X){let ce=X.indexOf("@");if(ce!==-1){let xt=X.substr(0,ce);X=X.substr(ce+1),ce=xt.lastIndexOf(":"),ce===-1?I+=H(xt,!1,!1):(I+=H(xt.substr(0,ce),!1,!1),I+=":",I+=H(xt.substr(ce+1),!1,!0)),I+="@"}X=X.toLowerCase(),ce=X.lastIndexOf(":"),ce===-1?I+=H(X,!1,!0):(I+=H(X.substr(0,ce),!1,!0),I+=X.substr(ce))}if(K){if(K.length>=3&&K.charCodeAt(0)===47&&K.charCodeAt(2)===58){let ce=K.charCodeAt(1);ce>=65&&ce<=90&&(K=`/${String.fromCharCode(ce+32)}:${K.substr(3)}`)}else if(K.length>=2&&K.charCodeAt(1)===58){let ce=K.charCodeAt(0);ce>=65&&ce<=90&&(K=`${String.fromCharCode(ce+32)}:${K.substr(2)}`)}I+=H(K,!0,!1)}return Ve&&(I+="?",I+=H(Ve,!1,!1)),Ae&&(I+="#",I+=x?Ae:B(Ae,!1,!1)),I}function N(L){try{return decodeURIComponent(L)}catch{return L.length>3?L.substr(0,3)+N(L.substr(3)):L}}let z=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Z(L){return L.match(z)?L.replace(z,x=>N(x)):L}var ue=n(470);let $e=ue.posix||ue,pt="/";var gt;(function(L){L.joinPath=function(x,...H){return x.with({path:$e.join(x.path,...H)})},L.resolvePath=function(x,...H){let I=x.path,ie=!1;I[0]!==pt&&(I=pt+I,ie=!0);let X=$e.resolve(I,...H);return ie&&X[0]===pt&&!x.authority&&(X=X.substring(1)),x.with({path:X})},L.dirname=function(x){if(x.path.length===0||x.path===pt)return x;let H=$e.dirname(x.path);return H.length===1&&H.charCodeAt(0)===46&&(H=""),x.with({path:H})},L.basename=function(x){return $e.basename(x.path)},L.extname=function(x){return $e.extname(x.path)}})(gt||(gt={}))})(),au=r})();var{URI:Jt,Utils:pe}=au;import{CONFIG_FILE_NAMES as Bp}from"@redocly/openapi-core";var ls={languageId:"yaml",filePattern:/\.ya?ml$/i},ds={languageId:"json",filePattern:/\.json$/i},us=class{constructor(){this.supportedLanguages=[ls,ds];this.registerConfigFinder(async t=>{if(!this._fs)return;let n=[];for(let r of Bp)try{let i=pe.resolvePath(pe.dirname(Oe(t)),r);await this._fs.exists(i)&&n.push(i.toString())}catch{continue}if(n.length>1)throw new Error(`
68
68
  Multiple configuration files are not allowed.
69
69
  Found the following files: ${n.join(", ")}.
70
70
  Please use 'redocly.yaml' instead.
71
- `);return n[0]}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}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(){return this._findConfig}get getRootWorkspaceFolderURI(){return this._getRootWorkspaceFolderURI}},Ie=new us;function au(e,t){return pe.resolvePath(Oe(e)).toString()===pe.resolvePath(Oe(t)).toString()}function Oe(e){return Jt.parse(e)}function jn(e){return Jt.parse(e).fsPath}function yr(e){let t=["https","http"],{scheme:n}=Jt.parse(e);return t.includes(n)}function Ln(e){return pe.basename(Oe(e))}async function cu(e,t="/"){let n=pe.resolvePath(Oe(t));for(;e.path!=="/";)try{(await Ie.fs.stat(pe.resolvePath(n,e.path))).isDirectory()||(e=pe.dirname(e));break}catch{e=pe.dirname(e)}return e}import{BaseResolver as wh,Source as zl,readFileFromUrl as kh}from"@redocly/openapi-core";var bi=Xe(_r(),1);import{isAbsoluteUrl as Sh}from"@redocly/openapi-core";function El(e,t=100,n=!1){let r=new Map,i=new Map;function o(u,c,p){let g=i.get(u.uri),b=Date.now()-g;try{b<t&&b>=0?r.set(u.uri,setTimeout(()=>o(u,c,p),t-b)):(r.delete(u.uri),i.delete(u.uri),n||c(e(u)))}catch(R){p(R)}}function s(u){let c=r.get(u.uri),p=n&&!c;return i.set(u.uri,Date.now()),new Promise((g,b)=>{c||r.set(u.uri,setTimeout(()=>o(u,g,b),t)),p&&g(e(u))})}return s}function Fs(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 Ml(e){return e==="$ref"}async function Ws(e,t){let n=Jt.parse(t);return pe.joinPath(n,e).toString()}async function jl(e,t,n){for(let[r,{root:i}]of Object.entries(e))if(await Ws(i,n)===t)return r}function Ll(e){return typeof e=="string"}function vi(e){return typeof e=="function"}function Il(e){return e?.kind===bi.Kind.MAP}function Hs(e){return e?.kind===bi.Kind.MAPPING}function Us(e){return e?.kind===bi.Kind.SEQ}function Rr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function Bs(e){return Sh(e)||e.startsWith("file://")}var Rn=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){for(let r of t)if(Rn.isIncremental(r)){let i=Wl(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 u=Math.max(i.start.line,0),c=Math.max(i.end.line,0),p=this._lineOffsets,g=Fl(r.text,!1,o);if(c-u===g.length)for(let R=0,D=g.length;R<D;R++)p[R+u+1]=g[R];else g.length<1e4?p.splice(u+1,c-u,...g):this._lineOffsets=p=p.slice(0,u+1).concat(g,p.slice(c+1));let b=r.text.length-(s-o);if(b!==0)for(let R=u+1+g.length,D=p.length;R<D;R++)p[R]=p[R]+b}else if(Rn.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=Fl(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{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],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}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}},Ci;(function(e){function t(i,o,s,u){return new Rn(i,o,s,u)}e.create=t;function n(i,o,s){if(i instanceof Rn)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(),u=zs(o.map(Th),(g,b)=>{let R=g.range.start.line-b.range.start.line;return R===0?g.range.start.character-b.range.start.character:R}),c=0,p=[];for(let g of u){let b=i.offsetAt(g.range.start);if(b<c)throw new Error("Overlapping edit");b>c&&p.push(s.substring(c,b)),g.newText.length&&p.push(g.newText),c=i.offsetAt(g.range.end)}return p.push(s.substr(c)),p.join("")}e.applyEdits=r})(Ci||(Ci={}));function zs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);zs(r,t),zs(i,t);let o=0,s=0,u=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[u++]=r[o++]:e[u++]=i[s++];for(;o<r.length;)e[u++]=r[o++];for(;s<i.length;)e[u++]=i[s++];return e}function Fl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);(o===13||o===10)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Wl(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 Th(e){let t=Wl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Hl=new Map;function Ul(e,t){return Hl.set(e,t)}function Bl(e){let t=[];for(let[n,r]of Hl.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function at(e){let t=Ie.documents.get(e);if(t)return t;let n=await Ie.fs.readFile(Oe(e),"utf-8");return Ci.create(e,"yaml",1,n)}function $s(e){return ds.filePattern.test(e)}function xh(e){return ls.filePattern.test(e)}var Ut=class extends wh{resolveExternalRef(t,n){return Bs(n)?n:t&&Bs(t)?new URL(n,t).href:pe.resolvePath(pe.dirname(Oe(t)),n).toString()}async loadExternalRef(t){if(yr(t)){let{body:n,mimeType:r}=await kh(t,{...this.config.http,customFetch:fetch});return new zl(t,n,r)}return new zl(t,(await at(t)).getText())}};var Dr,Pi,Ys,$l;async function Vs(e){let t=new Ut,n=await Ie.findConfig(e);return Dr=await Ah({configPath:n,externalRefResolver:t,processRawConfig:async({document:r,resolvedRefMap:i})=>{Ys=i,$l=r}}),Dr}async function Bn(){return Dr||await Vs(),{config:Dr,configPath:Pi,rootConfigDocument:$l}}async function Yl(e,t){try{return Pi=await Ie.findConfig(e),Pi?await Vs(Pi):Dr}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),Vs("")}}function Sr(e){return Gs(e)?!0:!!Ys&&[...Ys.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>au(Ln(e),n))}function Gs(e){return Ks.includes(Ln(e))}var Vl={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Tr={type:"object",properties:Vl,additionalProperties:!1},qh={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},tn={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},Vl),{like:Tr,dislike:Tr,satisfied:Tr,neutral:Tr,dissatisfied:Tr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:qh},additionalProperties:!1}},additionalProperties:!1};var zn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Nh={type:"object",properties:{name:{type:"string"},items:zn,queries:zn,mutations:zn,subscriptions:zn,types:zn,directives:zn},required:["name"],additionalProperties:!1},Oh={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Nh},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},$n={type:"object",properties:{hidePaginationButtons:{type:"boolean"},menu:{type:"object",properties:Object.assign({},Oh.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},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"},feedback:tn},additionalProperties:!1};var Eh={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",enum:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},required:["languages"],additionalProperties:!1},Mh={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},_i={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:tn,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Mh,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:Eh,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1};var jh={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Lh={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"}}},Kl={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Ih={type:"object",properties:{beforeInfo:{type:"array",items:Kl},end:{type:"array",items:Kl}}},Dn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ri={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Fh={type:"object",properties:xi(Dn.properties,["light","dark"])},Wh={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"}}},Hh={type:"object",properties:{error:Ri,info:Ri,redirect:Ri,success:Ri}},Uh={type:"object",properties:Yn(Dn.properties,["dark"])},Bh={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},zh={type:"object",properties:{accent:Dn,border:Fh,error:Dn,http:Wh,primary:Dn,responses:Hh,secondary:Uh,success:Dn,text:Bh,tonalOffset:{type:"number"},warning:Dn}},Di={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},$h={type:"object",properties:{small:Di,medium:Di,large:Di,xlarge:Di}},At={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Yh={type:"object",properties:Object.assign(Object.assign({},Yn(At.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:$h})},Gl={type:"object",properties:xi(At.properties,["fontSize","lineHeight"])},Vh={type:"object",properties:{medium:Gl,small:Gl}},Kh={type:"object",properties:Object.assign(Object.assign({},Yn(At.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Vh})},Gh={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Qh={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Ql={type:"object",properties:{fullWidth:{type:"boolean"}}},Jh={type:"object",properties:{buttons:Yh,httpBadges:Kh,layoutControls:Gh,panels:Qh,tryItButton:Ql,tryItSendButton:Ql}},Ti={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Xh={type:"object",properties:{maxWidth:Ti}},Zh={type:"object",properties:{maxWidth:Ti,middlePanelMaxWidth:Ti}},ey={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Xh,"three-panel":Zh}},Jl={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},ty={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Jl,defaultDetailsWidth:{type:"string"},examples:Jl,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Zl={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ny={type:"object",properties:xi(Zl.properties,["textTransform"])},ry={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},iy={type:"object",properties:Object.assign(Object.assign({},Yn(At.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:Zl,level1items:ny,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:ry,textColor:{type:"string"},width:{type:"string"}})},Si={type:"object",properties:Object.assign(Object.assign({},At.properties),{color:{type:"string"},transform:{type:"string"}})},oy={type:"object",properties:Object.assign(Object.assign({},At.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"}})},sy={type:"object",properties:Yn(At.properties,["fontSize"])},ay={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},cy={type:"object",properties:Object.assign(Object.assign({code:oy,fieldName:At},xi(At.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Si,heading2:Si,heading3:Si,headings:sy,lineHeight:{type:"string"},links:ay,optimizeSpeed:{type:"boolean"},rightPanelHeading:Si,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},uy={type:"object",properties:Object.assign({color:{type:"string"}},Yn(At.properties,["fontWeight"]))},ly={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:uy}},dy={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},fy={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Xl={type:"object",properties:{custom:{type:"string"}}},py={type:"object",properties:{DownloadButton:Xl,NextSectionButton:Xl}},gy={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},my={type:"object",properties:{borderRadius:{type:"string"}}},hy={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},yy={type:"object",properties:{breakpoints:Ti,codeBlock:ly,colors:zh,components:Jh,layout:ey,logo:dy,fab:fy,overrides:py,rightPanel:gy,schema:ty,shape:my,sidebar:iy,spacing:hy,typography:cy,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},by={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:jh}},required:["languages"]},ed={type:"object",properties:{theme:yy,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:by,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:Lh,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},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:Ih,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 xi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Yn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var We={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},td={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},Qs={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}}}},Js={type:"array",items:Object.assign(Object.assign({},Qs),{properties:Object.assign(Object.assign({},Qs.properties),{items:{type:"array",items:Qs}})})},vy={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Cy={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Py={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}},_y={type:"object",properties:Object.assign({facets:Py},We.properties),additionalProperties:!1},Ry={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},wi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},ki={type:"object",properties:Object.assign({items:Js},We.properties),additionalProperties:!1},Ai={type:"object",additionalProperties:vy},qi={type:"object",properties:Object.assign({items:Js,copyrightText:{type:"string"},logo:We},We.properties),additionalProperties:!1},Ni={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},We.properties),additionalProperties:!1},Oi={type:"object",properties:{head:{type:"array",items:td},body:{type:"array",items:td}},additionalProperties:!1},Ei={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}},Mi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Cy,filters:_y,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["/"]},suggestedPages:{type:"array",items:Ry}},We.properties),additionalProperties:!1},ji={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},We.properties),additionalProperties:!1},Li={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Next page"}},We.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Previous page"}},We.properties),additionalProperties:!1,default:{}}},additionalProperties:!1},Ii={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},We.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},We.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},We.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},We.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Fi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},We.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},We.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},We.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Vn=Object.assign(Object.assign({},_i),{properties:Object.assign(Object.assign({},_i.properties),ed.properties)}),Dy={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Sy={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"]},Ty={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},xy={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},wy={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"]},ky={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Ay={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Xs={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"]},qy={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:Xs}},additionalProperties:!1,required:["trackingId"]},Wi={type:"object",properties:{adobe:Dy,amplitude:Sy,fullstory:Ty,heap:xy,rudderstack:wy,segment:ky,gtm:Ay,ga:qy}},Hi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},We.properties),additionalProperties:!1},Ui={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Bi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},Ny={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},Oy={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:Ny},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Js,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},zi={type:"object",patternProperties:{".*":Oy}},$i={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:{type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}}},additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}}}};var rt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:wi,navbar:ki,products:Ai,footer:qi,sidebar:Ni,scripts:Oi,links:Ei,feedback:tn,search:Mi,colorMode:ji,navigation:Li,codeSnippet:Ii,markdown:Fi,openapi:Vn,graphql:$n,analytics:Wi,userMenu:Hi,versionPicker:Ui,breadcrumbs:Bi,catalog:zi,scorecard:$i},additionalProperties:!0},WR=Object.assign(Object.assign({},rt),{additionalProperties:!1});var ea="https://redocly.com/sso/teams",Kn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Kn||(Kn={}));var Gn;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Gn||(Gn={}));var Zs;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Zs||(Zs={}));function Yi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Yi(i,t):i)]:[n,Yi(r,t)]}).filter(Boolean))}var Ey={type:"object",additionalProperties:{type:"string"}},My={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Vi={type:"string",enum:["error","warn","off"]},jy={type:"object",additionalProperties:!1,properties:{schemaCheck:Vi,statusCodeCheck:Vi,contentTypeCheck:Vi,successCriteriaCheck:Vi}},Ly={type:"object",additionalProperties:!1,properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",pattern:"^[1-9]\\d*[mhdw]$"}},required:["event"]},nd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:Ly,inputs:Ey,servers:My,severity:jy},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var Iy={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},Fy={type:"object",properties:{type:{type:"string",const:Kn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:Iy,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},Wy={type:"object",properties:{type:{type:"string",const:Kn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ea},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},Hy={oneOf:[Fy,Wy],discriminator:{propertyName:"type"}},Uy={type:"object",additionalProperties:Hy},By={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},zy={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},$y={type:"object",additionalProperties:zy,default:{}},id={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},ra={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Vn,graphql:$n,theme:{type:"object",properties:{openapi:Vn,graphql:$n},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},rules:id,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0}},required:["root"]},Yy={type:"object",additionalProperties:!0},Vy={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Ky={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}}},additionalProperties:!1},Gy={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Sn={type:"object",additionalProperties:{type:"string"}},od={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Sn,cms:Sn,reunite:Sn,features:{type:"object",properties:{aiSearch:Sn},additionalProperties:!1},content:{type:"object",properties:{"**":Sn},additionalProperties:Sn}},additionalProperties:Sn},Qy={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Jy={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Xy={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[Qy,Jy]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Zy={type:"object",properties:{type:{type:"string",const:Gn.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},eb={type:"object",properties:{type:{type:"string",const:Gn.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ta={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[Zy,eb],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},tb=Object.assign(Object.assign({},ta),{properties:Object.assign(Object.assign({},ta.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),nb={type:"object",oneOf:[ta,tb,Xy],discriminator:{propertyName:"type"}},rb={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:nb}}},rd={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"]},ib={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},na={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:$y,seo:Ky,rbac:od,apiFunctions:Gy,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:ib}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ra},rules:id,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0},ssoDirect:Uy,sso:By,residency:{type:"string"},developerOnboarding:rb,removeAttribution:{type:"boolean"},i18n:rd,l10n:rd,metadata:Yy,metadataGlobs:Vy,ignore:{type:"array",items:{type:"string"}},theme:rt,reunite:nd,logo:wi,navbar:ki,products:Ai,footer:qi,sidebar:Ni,scripts:Oi,links:Ei,feedback:tn,search:Mi,colorMode:ji,navigation:Li,codeSnippet:Ii,markdown:Fi,openapi:Vn,graphql:$n,analytics:Wi,userMenu:Hi,versionPicker:Ui,breadcrumbs:Bi,catalog:zi,scorecard:$i},default:{redirects:{}},additionalProperties:!0},ob=Object.assign(Object.assign({},Yi(na,"default")),{additionalProperties:!1}),ia=Object.assign(Object.assign({$id:"root-redocly-config"},na),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},na.properties),{env:{type:"object",additionalProperties:ob}}),default:{},additionalProperties:!1});var oa={type:"object",properties:{logo:rt.properties.logo,navbar:rt.properties.navbar,footer:rt.properties.footer,sidebar:rt.properties.sidebar,search:rt.properties.search,codeSnippet:rt.properties.codeSnippet,breadcrumbs:rt.properties.breadcrumbs,openapi:rt.properties.openapi,feedback:rt.properties.feedback,analytics:{type:"object",properties:{ga:Xs}}},additionalProperties:!0,default:{}},sb={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},oa.properties),{apis:{type:"object",additionalProperties:ra},theme:oa}),additionalProperties:!1};var Je=Xe(fn(),1);import{getLineColLocation as P_,lintDocument as __,makeDocumentFromString as Gc,lintConfig as R_,detectSpec as D_,getMergedConfig as S_}from"@redocly/openapi-core";import{createConfigTypes as T_}from"@redocly/openapi-core/lib/types/redocly-yaml";import{bundleDocument as y_,makeDocumentFromString as b_}from"@redocly/openapi-core";var lp=new Map,Fo=new Map;function v_(e){return e?Array.from(e).map(([t,n])=>[t,Fs(n)]):[]}async function Vc(e,t){let{config:n}=await Bn(),r=new Ut(n.resolve),i=b_(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:u,rootType:c,refTypes:p}=await y_({document:i,config:n.styleguide,externalRefResolver:r}),g=v_(p);p&&(Fo=new Map([...Fo,...p])),lp.set(e.uri,{uri:e.uri,name:Ln(e.uri),definition:o.parsed,rootType:c,refTypes:g,errors:t})}function C_(){return Array.from(lp).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:Ln(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Kc(e){return Fo.has(e)?Fo.get(e):null}var x_=800,w_=5,Jc=El(q_,x_);async function k_(e){let t=e.map(({documentPath:i})=>Oe(i).toString()),{config:n}=await Bn(),r=await Ie.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.apis)){let o=await Ws(i,r);if(t.includes(o))return o}return t[0]}var Qc;function A_(e){try{return D_(e),!0}catch{return!1}}async function q_(e){let t=e.uri,{config:n,rootConfigDocument:r,configPath:i}=await Bn();if(Sr(jn(t))){let o=Gs(t)?Gc(e.getText(),t):Gc(r.source.body,r.source.absoluteRef),s=new Ut,u=await R_({document:o,externalRefResolver:s,config:n,externalConfigTypes:T_(ia,n)}),c=[{uri:e.uri,diagnostics:[]}];return dp(u,c),c}else{let o=Bl(t),s=await k_(o||[]);s&&(e=await at(s),t=s);let u;try{u=Gc(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!A_(u.parsed))return[{uri:e.uri,diagnostics:[]}];let c=[];try{let p=new Ut(n.resolve);Qc=e.uri;let g=await Ie.getRootWorkspaceFolderURI(),b=await jl(n.apis,Qc,g),R=Date.now(),D=(await __({document:u,config:S_(n,b).styleguide,externalRefResolver:p})).filter(({ignored:j})=>!j);Qc=null;let T=E_(D);Vc(e,T);let q=Date.now()-R;c=[...new Set([e.uri,...[...p.getFiles()].map(j=>Oe(j).toString())])].map(j=>({uri:j,diagnostics:[]})),Ul(t,{dependencyPaths:p.getFiles(),durationMS:q}),dp(D,c)}catch(p){N_(e.uri,p,c)}return c}}function Wo(){return Ie.documents.all().map(Jc)}function N_(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Oe(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,u=Je.Position.create(o,s),c=Je.Diagnostic.create(Je.Range.create(u,u),t.message,Je.DiagnosticSeverity.Error);fp(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function fp(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 O_(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
+ `);return n[0]}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}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(){return this._findConfig}get getRootWorkspaceFolderURI(){return this._getRootWorkspaceFolderURI}},Ie=new us;function cu(e,t){return pe.resolvePath(Oe(e)).toString()===pe.resolvePath(Oe(t)).toString()}function Oe(e){return Jt.parse(e)}function jn(e){return Jt.parse(e).fsPath}function yr(e){let t=["https","http"],{scheme:n}=Jt.parse(e);return t.includes(n)}function Ln(e){return pe.basename(Oe(e))}async function uu(e,t="/"){let n=pe.resolvePath(Oe(t));for(;e.path!=="/";)try{(await Ie.fs.stat(pe.resolvePath(n,e.path))).isDirectory()||(e=pe.dirname(e));break}catch{e=pe.dirname(e)}return e}import{BaseResolver as wh,Source as $l,readFileFromUrl as kh}from"@redocly/openapi-core";var bi=Xe(_r(),1);import{isAbsoluteUrl as Sh}from"@redocly/openapi-core";function Ml(e,t=100,n=!1){let r=new Map,i=new Map;function o(u,c,p){let g=i.get(u.uri),b=Date.now()-g;try{b<t&&b>=0?r.set(u.uri,setTimeout(()=>o(u,c,p),t-b)):(r.delete(u.uri),i.delete(u.uri),n||c(e(u)))}catch(D){p(D)}}function s(u){let c=r.get(u.uri),p=n&&!c;return i.set(u.uri,Date.now()),new Promise((g,b)=>{c||r.set(u.uri,setTimeout(()=>o(u,g,b),t)),p&&g(e(u))})}return s}function Fs(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 jl(e){return e==="$ref"}async function Ws(e,t){let n=Jt.parse(t);return pe.joinPath(n,e).toString()}async function Ll(e,t,n){for(let[r,{root:i}]of Object.entries(e))if(await Ws(i,n)===t)return r}function Il(e){return typeof e=="string"}function vi(e){return typeof e=="function"}function Fl(e){return e?.kind===bi.Kind.MAP}function Hs(e){return e?.kind===bi.Kind.MAPPING}function Us(e){return e?.kind===bi.Kind.SEQ}function Dr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function Bs(e){return Sh(e)||e.startsWith("file://")}var Dn=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){for(let r of t)if(Dn.isIncremental(r)){let i=Hl(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 u=Math.max(i.start.line,0),c=Math.max(i.end.line,0),p=this._lineOffsets,g=Wl(r.text,!1,o);if(c-u===g.length)for(let D=0,R=g.length;D<R;D++)p[D+u+1]=g[D];else g.length<1e4?p.splice(u+1,c-u,...g):this._lineOffsets=p=p.slice(0,u+1).concat(g,p.slice(c+1));let b=r.text.length-(s-o);if(b!==0)for(let D=u+1+g.length,R=p.length;D<R;D++)p[D]=p[D]+b}else if(Dn.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=Wl(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{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],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}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}},Ci;(function(e){function t(i,o,s,u){return new Dn(i,o,s,u)}e.create=t;function n(i,o,s){if(i instanceof Dn)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(),u=zs(o.map(Th),(g,b)=>{let D=g.range.start.line-b.range.start.line;return D===0?g.range.start.character-b.range.start.character:D}),c=0,p=[];for(let g of u){let b=i.offsetAt(g.range.start);if(b<c)throw new Error("Overlapping edit");b>c&&p.push(s.substring(c,b)),g.newText.length&&p.push(g.newText),c=i.offsetAt(g.range.end)}return p.push(s.substr(c)),p.join("")}e.applyEdits=r})(Ci||(Ci={}));function zs(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);zs(r,t),zs(i,t);let o=0,s=0,u=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[u++]=r[o++]:e[u++]=i[s++];for(;o<r.length;)e[u++]=r[o++];for(;s<i.length;)e[u++]=i[s++];return e}function Wl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);(o===13||o===10)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Hl(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 Th(e){let t=Hl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ul=new Map;function Bl(e,t){return Ul.set(e,t)}function zl(e){let t=[];for(let[n,r]of Ul.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function ct(e){let t=Ie.documents.get(e);if(t)return t;let n=await Ie.fs.readFile(Oe(e),"utf-8");return Ci.create(e,"yaml",1,n)}function $s(e){return ds.filePattern.test(e)}function xh(e){return ls.filePattern.test(e)}var Bt=class extends wh{resolveExternalRef(t,n){return Bs(n)?n:t&&Bs(t)?new URL(n,t).href:pe.resolvePath(pe.dirname(Oe(t)),n).toString()}async loadExternalRef(t){if(yr(t)){let{body:n,mimeType:r}=await kh(t,{...this.config.http,customFetch:fetch});return new $l(t,n,r)}return new $l(t,(await ct(t)).getText())}};var Rr,Pi,Ys,Yl;async function Vs(e){let t=new Bt,n=await Ie.findConfig(e);return Rr=await Ah({configPath:n,externalRefResolver:t,processRawConfig:async({document:r,resolvedRefMap:i})=>{Ys=i,Yl=r}}),Rr}async function Bn(){return Rr||await Vs(),{config:Rr,configPath:Pi,rootConfigDocument:Yl}}async function Vl(e,t){try{return Pi=await Ie.findConfig(e),Pi?await Vs(Pi):Rr}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),Vs("")}}function Sr(e){return Gs(e)?!0:!!Ys&&[...Ys.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>cu(Ln(e),n))}function Gs(e){return Ks.includes(Ln(e))}var Kl={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Tr={type:"object",properties:Kl,additionalProperties:!1},qh={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},tn={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},Kl),{like:Tr,dislike:Tr,satisfied:Tr,neutral:Tr,dissatisfied:Tr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:qh},additionalProperties:!1}},additionalProperties:!1};var zn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Nh={type:"object",properties:{name:{type:"string"},items:zn,queries:zn,mutations:zn,subscriptions:zn,types:zn,directives:zn},required:["name"],additionalProperties:!1},Oh={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Nh},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},$n={type:"object",properties:{hidePaginationButtons:{type:"boolean"},menu:{type:"object",properties:Object.assign({},Oh.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},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"},feedback:tn},additionalProperties:!1};var Eh={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",enum:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},required:["languages"],additionalProperties:!1},Mh={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},_i={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:tn,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Mh,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:Eh,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1};var jh={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Lh={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"}}},Gl={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Ih={type:"object",properties:{beforeInfo:{type:"array",items:Gl},end:{type:"array",items:Gl}}},Rn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Di={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Fh={type:"object",properties:xi(Rn.properties,["light","dark"])},Wh={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"}}},Hh={type:"object",properties:{error:Di,info:Di,redirect:Di,success:Di}},Uh={type:"object",properties:Yn(Rn.properties,["dark"])},Bh={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},zh={type:"object",properties:{accent:Rn,border:Fh,error:Rn,http:Wh,primary:Rn,responses:Hh,secondary:Uh,success:Rn,text:Bh,tonalOffset:{type:"number"},warning:Rn}},Ri={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},$h={type:"object",properties:{small:Ri,medium:Ri,large:Ri,xlarge:Ri}},qt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Yh={type:"object",properties:Object.assign(Object.assign({},Yn(qt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:$h})},Ql={type:"object",properties:xi(qt.properties,["fontSize","lineHeight"])},Vh={type:"object",properties:{medium:Ql,small:Ql}},Kh={type:"object",properties:Object.assign(Object.assign({},Yn(qt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Vh})},Gh={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Qh={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Jl={type:"object",properties:{fullWidth:{type:"boolean"}}},Jh={type:"object",properties:{buttons:Yh,httpBadges:Kh,layoutControls:Gh,panels:Qh,tryItButton:Jl,tryItSendButton:Jl}},Ti={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Xh={type:"object",properties:{maxWidth:Ti}},Zh={type:"object",properties:{maxWidth:Ti,middlePanelMaxWidth:Ti}},ey={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Xh,"three-panel":Zh}},Xl={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},ty={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Xl,defaultDetailsWidth:{type:"string"},examples:Xl,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ed={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ny={type:"object",properties:xi(ed.properties,["textTransform"])},ry={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},iy={type:"object",properties:Object.assign(Object.assign({},Yn(qt.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:ed,level1items:ny,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:ry,textColor:{type:"string"},width:{type:"string"}})},Si={type:"object",properties:Object.assign(Object.assign({},qt.properties),{color:{type:"string"},transform:{type:"string"}})},oy={type:"object",properties:Object.assign(Object.assign({},qt.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"}})},sy={type:"object",properties:Yn(qt.properties,["fontSize"])},ay={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},cy={type:"object",properties:Object.assign(Object.assign({code:oy,fieldName:qt},xi(qt.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Si,heading2:Si,heading3:Si,headings:sy,lineHeight:{type:"string"},links:ay,optimizeSpeed:{type:"boolean"},rightPanelHeading:Si,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},uy={type:"object",properties:Object.assign({color:{type:"string"}},Yn(qt.properties,["fontWeight"]))},ly={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:uy}},dy={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},fy={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Zl={type:"object",properties:{custom:{type:"string"}}},py={type:"object",properties:{DownloadButton:Zl,NextSectionButton:Zl}},gy={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},my={type:"object",properties:{borderRadius:{type:"string"}}},hy={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},yy={type:"object",properties:{breakpoints:Ti,codeBlock:ly,colors:zh,components:Jh,layout:ey,logo:dy,fab:fy,overrides:py,rightPanel:gy,schema:ty,shape:my,sidebar:iy,spacing:hy,typography:cy,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},by={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:jh}},required:["languages"]},td={type:"object",properties:{theme:yy,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:by,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:Lh,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},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:Ih,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 xi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Yn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var We={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},nd={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},Qs={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}}}},Js={type:"array",items:Object.assign(Object.assign({},Qs),{properties:Object.assign(Object.assign({},Qs.properties),{items:{type:"array",items:Qs}})})},vy={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Cy={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Py={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}},_y={type:"object",properties:Object.assign({facets:Py},We.properties),additionalProperties:!1},Dy={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},wi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},ki={type:"object",properties:Object.assign({items:Js},We.properties),additionalProperties:!1},Ai={type:"object",additionalProperties:vy},qi={type:"object",properties:Object.assign({items:Js,copyrightText:{type:"string"},logo:We},We.properties),additionalProperties:!1},Ni={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},We.properties),additionalProperties:!1},Oi={type:"object",properties:{head:{type:"array",items:nd},body:{type:"array",items:nd}},additionalProperties:!1},Ei={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}},Mi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:Cy,filters:_y,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["/"]},suggestedPages:{type:"array",items:Dy}},We.properties),additionalProperties:!1},ji={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},We.properties),additionalProperties:!1},Li={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Next page"}},We.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Previous page"}},We.properties),additionalProperties:!1,default:{}}},additionalProperties:!1},Ii={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},We.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},We.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},We.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},We.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Fi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},We.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},We.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},We.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Vn=Object.assign(Object.assign({},_i),{properties:Object.assign(Object.assign({},_i.properties),td.properties)}),Ry={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Sy={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"]},Ty={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},xy={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},wy={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"]},ky={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Ay={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Xs={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"]},qy={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:Xs}},additionalProperties:!1,required:["trackingId"]},Wi={type:"object",properties:{adobe:Ry,amplitude:Sy,fullstory:Ty,heap:xy,rudderstack:wy,segment:ky,gtm:Ay,ga:qy}},Hi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},We.properties),additionalProperties:!1},Ui={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Bi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},Ny={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},Oy={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:Ny},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Js,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},zi={type:"object",patternProperties:{".*":Oy}},$i={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:{type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}}},additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}}}};var rt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:wi,navbar:ki,products:Ai,footer:qi,sidebar:Ni,scripts:Oi,links:Ei,feedback:tn,search:Mi,colorMode:ji,navigation:Li,codeSnippet:Ii,markdown:Fi,openapi:Vn,graphql:$n,analytics:Wi,userMenu:Hi,versionPicker:Ui,breadcrumbs:Bi,catalog:zi,scorecard:$i},additionalProperties:!0},UD=Object.assign(Object.assign({},rt),{additionalProperties:!1});var ea="https://redocly.com/sso/teams",Kn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Kn||(Kn={}));var Gn;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Gn||(Gn={}));var Zs;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Zs||(Zs={}));function Yi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Yi(i,t):i)]:[n,Yi(r,t)]}).filter(Boolean))}var Ey={type:"object",additionalProperties:{type:"string"}},My={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Vi={type:"string",enum:["error","warn","off"]},jy={type:"object",additionalProperties:!1,properties:{schemaCheck:Vi,statusCodeCheck:Vi,contentTypeCheck:Vi,successCriteriaCheck:Vi}},Ly={type:"object",additionalProperties:!1,properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",pattern:"^[1-9]\\d*[mhdw]$"}},required:["event"]},rd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:Ly,inputs:Ey,servers:My,severity:jy},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var Iy={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},Fy={type:"object",properties:{type:{type:"string",const:Kn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:Iy,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},Wy={type:"object",properties:{type:{type:"string",const:Kn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ea},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},Hy={oneOf:[Fy,Wy],discriminator:{propertyName:"type"}},Uy={type:"object",additionalProperties:Hy},By={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},zy={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},$y={type:"object",additionalProperties:zy,default:{}},od={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},ra={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Vn,graphql:$n,theme:{type:"object",properties:{openapi:Vn,graphql:$n},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},rules:od,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0}},required:["root"]},Yy={type:"object",additionalProperties:!0},Vy={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Ky={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}}},additionalProperties:!1},Gy={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Sn={type:"object",additionalProperties:{type:"string"}},sd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Sn,cms:Sn,reunite:Sn,features:{type:"object",properties:{aiSearch:Sn},additionalProperties:!1},content:{type:"object",properties:{"**":Sn},additionalProperties:Sn}},additionalProperties:Sn},Qy={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Jy={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Xy={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[Qy,Jy]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Zy={type:"object",properties:{type:{type:"string",const:Gn.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},eb={type:"object",properties:{type:{type:"string",const:Gn.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ta={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[Zy,eb],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},tb=Object.assign(Object.assign({},ta),{properties:Object.assign(Object.assign({},ta.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),nb={type:"object",oneOf:[ta,tb,Xy],discriminator:{propertyName:"type"}},rb={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:nb}}},id={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"]},ib={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},na={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:$y,seo:Ky,rbac:sd,apiFunctions:Gy,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:ib}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ra},rules:od,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0},ssoDirect:Uy,sso:By,residency:{type:"string"},developerOnboarding:rb,removeAttribution:{type:"boolean"},i18n:id,l10n:id,metadata:Yy,metadataGlobs:Vy,ignore:{type:"array",items:{type:"string"}},theme:rt,reunite:rd,logo:wi,navbar:ki,products:Ai,footer:qi,sidebar:Ni,scripts:Oi,links:Ei,feedback:tn,search:Mi,colorMode:ji,navigation:Li,codeSnippet:Ii,markdown:Fi,openapi:Vn,graphql:$n,analytics:Wi,userMenu:Hi,versionPicker:Ui,breadcrumbs:Bi,catalog:zi,scorecard:$i},default:{redirects:{}},additionalProperties:!0},ob=Object.assign(Object.assign({},Yi(na,"default")),{additionalProperties:!1}),ia=Object.assign(Object.assign({$id:"root-redocly-config"},na),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},na.properties),{env:{type:"object",additionalProperties:ob}}),default:{},additionalProperties:!1});var oa={type:"object",properties:{logo:rt.properties.logo,navbar:rt.properties.navbar,footer:rt.properties.footer,sidebar:rt.properties.sidebar,search:rt.properties.search,codeSnippet:rt.properties.codeSnippet,breadcrumbs:rt.properties.breadcrumbs,openapi:rt.properties.openapi,feedback:rt.properties.feedback,analytics:{type:"object",properties:{ga:Xs}}},additionalProperties:!0,default:{}},sb={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},oa.properties),{apis:{type:"object",additionalProperties:ra},theme:oa}),additionalProperties:!1};var Je=Xe(fn(),1);import{getLineColLocation as P_,lintDocument as __,makeDocumentFromString as Gc,lintConfig as D_,detectSpec as R_,getMergedConfig as S_}from"@redocly/openapi-core";import{createConfigTypes as T_}from"@redocly/openapi-core/lib/types/redocly-yaml";import{bundleDocument as y_,makeDocumentFromString as b_}from"@redocly/openapi-core";var dp=new Map,Fo=new Map;function v_(e){return e?Array.from(e).map(([t,n])=>[t,Fs(n)]):[]}async function Vc(e,t){let{config:n}=await Bn(),r=new Bt(n.resolve),i=b_(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:u,rootType:c,refTypes:p}=await y_({document:i,config:n.styleguide,externalRefResolver:r}),g=v_(p);p&&(Fo=new Map([...Fo,...p])),dp.set(e.uri,{uri:e.uri,name:Ln(e.uri),definition:o.parsed,rootType:c,refTypes:g,errors:t})}function C_(){return Array.from(dp).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:Ln(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Kc(e){return Fo.has(e)?Fo.get(e):null}var x_=800,w_=5,Jc=Ml(q_,x_);async function k_(e){let t=e.map(({documentPath:i})=>Oe(i).toString()),{config:n}=await Bn(),r=await Ie.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.apis)){let o=await Ws(i,r);if(t.includes(o))return o}return t[0]}var Qc;function A_(e){try{return R_(e),!0}catch{return!1}}async function q_(e){let t=e.uri,{config:n,rootConfigDocument:r,configPath:i}=await Bn();if(Sr(jn(t))){let o=Gs(t)?Gc(e.getText(),t):Gc(r.source.body,r.source.absoluteRef),s=new Bt,u=await D_({document:o,externalRefResolver:s,config:n,externalConfigTypes:T_(ia,n)}),c=[{uri:e.uri,diagnostics:[]}];return fp(u,c),c}else{let o=zl(t),s=await k_(o||[]);s&&(e=await ct(s),t=s);let u;try{u=Gc(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!A_(u.parsed))return[{uri:e.uri,diagnostics:[]}];let c=[];try{let p=new Bt(n.resolve);Qc=e.uri;let g=await Ie.getRootWorkspaceFolderURI(),b=await Ll(n.apis,Qc,g),D=Date.now(),R=(await __({document:u,config:S_(n,b).styleguide,externalRefResolver:p})).filter(({ignored:j})=>!j);Qc=null;let T=E_(R);Vc(e,T);let q=Date.now()-D;c=[...new Set([e.uri,...[...p.getFiles()].map(j=>Oe(j).toString())])].map(j=>({uri:j,diagnostics:[]})),Bl(t,{dependencyPaths:p.getFiles(),durationMS:q}),fp(R,c)}catch(p){N_(e.uri,p,c)}return c}}function Wo(){return Ie.documents.all().map(Jc)}function N_(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Oe(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,u=Je.Position.create(o,s),c=Je.Diagnostic.create(Je.Range.create(u,u),t.message,Je.DiagnosticSeverity.Error);pp(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function pp(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 O_(e){return e.suggest.length===0?"":e.suggest.length===1?`
72
72
  Did you mean: ${e.suggest[0]} ?`:`
73
73
  Did you mean:
74
74
  - ${e.suggest.slice(0,w_).join(`
75
- - `)}`}function dp(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Je.DiagnosticSeverity.Error;break;case"warn":r=Je.DiagnosticSeverity.Warning;break;default:r=Je.DiagnosticSeverity.Warning}let i=P_(n.location[0]),o=Oe(i.source.absoluteRef).toString(),s=Je.Position.create(i.start.line-1,i.start.col-1),u=i.end?Je.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+O_(n),p=Je.Diagnostic.create(Je.Range.create(s,u),c,r,void 0,"Redocly OpenAPI");fp(o,p,t)})}function E_(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var Qo=Xe(fn(),1);var Re=Xe(fn(),1);function Ne(e,t){return e?t?Ho[e+"_"+t]||t:Ho[e]||Ho[Gr.Default]:Ho[Gr.Default]}var Gr=(G=>(G.FileCompletion="FileCompletion",G.FolderCompletion="FolderCompletion",G.LocalComponentCompletion="LocalComponentCompletion",G.NewLine="newLine",G.PropertyName="propertyName",G.NewItem="newItem",G.PathMap="PathMap",G.MediaTypeMap="MediaTypeMap",G.Root="Root",G.RootOpenapi="Root_openapi",G.RootInfo="Root_info",G.RootJsonSchemaDialect="Root_jsonSchemaDialect",G.RootServers="Root_servers",G.RootPaths="Root_paths",G.RootWebhooks="Root_webhooks",G.RootComponents="Root_components",G.RootSecurity="Root_security",G.RootTags="Root_tags",G.RootExternalDocs="Root_externalDocs",G.Info="Info",G.InfoTitle="Info_title",G.InfoSummary="Info_summary",G.InfoDescription="Info_description",G.InfoTermsOfService="Info_termsOfService",G.InfoContact="Info_contact",G.ContactName="Contact_name",G.ContactUrl="Contact_url",G.ContactEmail="Contact_email",G.InfoLicense="Info_license",G.LicenseName="License_name",G.LicenseIdentifier="License_identifier",G.LicenseUrl="License_url",G.InfoVersion="Info_version",G.jsonSchemaDialect="jsonSchemaDialect",G.ServerList="Server_List",G.ServerUrl="Server_url",G.ServerDescription="Server_description",G.ServerVariables="Server_variables",G.Default="Default",G))(Gr||{}),M_=["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"],Ho=M_.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var pn="newItem",Qr="propertyName",dr="newLine";function Uo(e){return!!(e?.name&&pp[e.name])}function Xc(e){return pp[e]||[]}var pp={[dr]:[{label:"newLine",kind:Re.CompletionItemKind.Constructor,data:{},sortText:Ne(dr)}],[Qr]:[{label:Qr,kind:Re.CompletionItemKind.Constructor,data:{properties:{}},sortText:Ne(Qr)}],ServerVariable_Map:[{label:"newVariableName",kind:Re.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:Re.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:Re.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:Re.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:Re.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/json",kind:Re.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/octet-stream",kind:Re.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"multipart/form-data",kind:Re.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:Re.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/xml",kind:Re.CompletionItemKind.Property,data:[],sortText:Ne("MediaTypeMap")}]};var gn=Xe(_r(),1);import{normalizeTypes as mp,Oas3Types as j_,Oas2Types as L_,Oas3_1Types as gp,AsyncApi2Types as I_,SpecVersion as Vt,ConfigTypes as F_,getMajorSpecVersion as W_}from"@redocly/openapi-core";var Zc=new Map;async function H_(e,t){let n=await at(e),r=n.getText(),i=gn.safeLoad(r,{filename:e.toString()}),{nodePath:o}=Bo({node:i,nodePath:[]},t,n,!0),s=eu(i,e),{currentType:u,parentType:c,endPath:p}=zo(s,o),g=Jr(i),b=u?.name?u:c;return{nodePath:o,endPath:p,type:b,existingValues:g,types:s}}function hp(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,Us(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(Il(n)){let o=$o(n);for(let s of o)if(Hs(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function U_(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 Bo(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),u=$o(i);if(u.length===0||B_(i)||!r&&z_(i,n,t))return e;let c=$_(u,s);return Bo({nodePath:Y_(o,i,u[c],c),node:u[c]},t,n,r)}function B_(e){return e?.kind===gn.Kind.MAPPING&&!e?.value}function z_(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=V_(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function $_(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 Y_(e,t,n,r){return Us(t)?[...e,r]:Hs(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function V_(e,t){let n=e?.startPosition??0,r=U_(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function zo(e,t){let n=e,r=null,i=new Array(t.length).fill(null);t.forEach((s,u)=>{let c;if(e?.name&&e?.name!==n?.name&&(n=e,r=s),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items?.properties)c=e.items;else if(e?.properties&&e.properties[s])c=e.properties[s],vi(c)&&(c=c(null,s));else if(e?.additionalProperties&&!vi(e?.additionalProperties))c=e.additionalProperties;else if(vi(e?.additionalProperties)&&s){let p=e.additionalProperties(null,s);p&&(c=p)}c&&(e=c,i[u]=c)}),e?.name&&n?.name&&e?.name!==n?.name&&(r=null);let o=i.every(s=>!!s);return{currentType:o||t[0]==="openapi"||t.length===0?e:null,parentType:o?n:null,endPath:r}}function eu(e,t){if(Sr(t))return mp(F_).ConfigRoot;let{types:n,isDefault:r}=G_(e);if(!e)return n;let i=r?Kc(t):n;return r&&!Kc(t)&&e?null:i||n}function K_(e){if(Zc.has(e))return Zc.get(e);let t=mp(Q_(e)).Root;return Zc.set(e,t),t}function yp(e){let t,n=!1;if(e?.kind===gn.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.1")){t=Vt.OAS3_1;break}if(i==="openapi"&&o.startsWith("3.0")){t=Vt.OAS3_0;break}if(i==="swagger"&&o==="2.0"){t=Vt.OAS2;break}if(i==="asyncapi")return{version:Vt.Async2,isDefault:!1}}return t||(t=Vt.OAS3_1,n=!0),{version:t,isDefault:n}}function bp(e){let{version:t,isDefault:n}=yp(e);return{version:W_(t),isDefault:n}}function G_(e){let{version:t,isDefault:n}=yp(e);return{types:K_(t),isDefault:n}}function $o(e){switch(e?.kind){case gn.Kind.MAPPING:return[e.key,e.value];case gn.Kind.MAP:return e.mappings;case gn.Kind.SEQ:return e?.items;default:return[]}}function Q_(e){switch(e){case Vt.OAS3_1:return gp;case Vt.OAS3_0:return j_;case Vt.OAS2:return L_;case Vt.Async2:return I_;default:return gp}}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:Ll(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 vp}from"@redocly/openapi-core";var tu={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 Cp(e){let t=tu[e.name];return t&&t.forEach(n=>{e.properties[n.name]=n.value}),e}var Yo=Xe(fn(),1),St=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:u}){this.kind=t||Yo.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:p,position:g}=u;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c.value==null?void 0:this.getTextEdit(c,g,p))}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return Yo.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var fr=Xe(fn(),1),Nn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:u}){this.insertTextFormat=i||n.includes("$")?fr.InsertTextFormat.PlainText:fr.InsertTextFormat.Snippet,this.kind=t||fr.CompletionItemKind.Property,this.label=n,this.data=u||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===fr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:null}};var Xr={example:"example",default:"default",enum:"enum",ref:"$ref"},Vo=[Xr.default,Xr.example];var Dp=Xe(_r(),1);var je={};ou(je,{default:()=>Rp.default});cs(je,Xe(nu()));var Rp=Xe(nu());function X_(e,t){let n=t.slice(0,t.length-1),{currentType:r}=zo(e,n);if(r?.name){let[i]=tu[r.name]||[];return i?.value}return null}function Z_(e,t){let n=t[t.length-1];if(Ml(n))return X_(e,t);let{currentType:r}=zo(e,t);return Uo(r)?r:r?r?.name&&(r?.name.includes("Map")||r?.name.includes("Named"))?{name:Qr,properties:{}}:r:null}async function Sp(e,t){let n=await at(e),r=n.getText(),i=(0,Dp.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=Bo({node:i,nodePath:[]},t,n),u=eu(i,e),c=Z_(u,s),p=n._lineOffsets[t.line],g=n.getText({start:n.positionAt(p),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:g,lineOffset:p,openApiType:c}}async function Tp(e,t){let n=pe.resolvePath(Oe(e)),r=pe.dirname(n),i=await cu(pe.joinPath(r,t),r.path),o=pe.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t&&(0,je.isAbsolute)(t),docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var xp=Xe(fn(),1);var Ko=class extends St{constructor(n){super(n);this.kind=xp.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var wp=Xe(fn(),1);var Go=class extends St{constructor(t){super(t),this.kind=wp.CompletionItemKind.File}};var e0=Ie.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function t0(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,je.resolve)(n.path,t,".."),s=r?o:(0,je.relative)(n.path,o),u=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Ne("FolderCompletion"),value:`${s}${u}`}}async function n0(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let u=pe.resolvePath(i,s),c=await Ie.fs.stat(u);c.isFile()&&u.path!==o.path&&t.supportedFiles.some(p=>p.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function kp(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,u=[];return i.path!==o&&u.push(t0(t)),u.concat(e.map(({name:c,type:p})=>{let g=(0,je.resolve)(i.path,c),b=(0,je.relative)(n.path,g),R=s.includes(je.sep)?s.slice(0,s.lastIndexOf(je.sep)+1):s+je.sep,D=r?g:b;if(p===0)return{type:p,name:c,value:D,sortBy:`${Ne("FileCompletion")}${c}`,matchBy:`${R}${c}`};let T=`${c}/`;return{type:p,name:T,value:`${D}${b?"/":""}`,sortBy:`${Ne("FolderCompletion")}${c}`,matchBy:`${R}${c}`}}))}function Ap(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:u,matchBy:c,sortBy:p,type:g}=o,b={label:s,filterText:Rr(c,n),sortText:p,value:u,data:{lineOffset:r,position:i,node:n}};return g===1?new Ko(b):new Go(b)})}async function qp(e,t){let{node:n}=t,r=n.value??"",i=await Tp(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await Ie.fs.readDir(o)}catch{return Ap(kp([],i),t)}let u=await n0(s,{supportedFiles:e0},i);return Ap(kp(u,i),t)}import{isEmptyObject as r0}from"@redocly/openapi-core/lib/utils";function Np(e,t){if(t?.items)return"- "+Np(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
76
- `);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function i0(e,t,n,r){if(e===pn)return"";if(r?.items||r?.required){let i=`
75
+ - `)}`}function fp(e,t){e.forEach(n=>{let r;switch(n.severity){case"error":r=Je.DiagnosticSeverity.Error;break;case"warn":r=Je.DiagnosticSeverity.Warning;break;default:r=Je.DiagnosticSeverity.Warning}let i=P_(n.location[0]),o=Oe(i.source.absoluteRef).toString(),s=Je.Position.create(i.start.line-1,i.start.col-1),u=i.end?Je.Position.create(i.end.line-1,i.end.col-1):s,c=n.message+O_(n),p=Je.Diagnostic.create(Je.Range.create(s,u),c,r,void 0,"Redocly OpenAPI");pp(o,p,t)})}function E_(e){return e.filter(({severity:t})=>t==="error").map(t=>({...t,location:t.location.map(n=>({...n,source:{...n.source,_ast:null}}))}))}var Qo=Xe(fn(),1);var De=Xe(fn(),1);function Ne(e,t){return e?t?Ho[e+"_"+t]||t:Ho[e]||Ho[Gr.Default]:Ho[Gr.Default]}var Gr=(G=>(G.FileCompletion="FileCompletion",G.FolderCompletion="FolderCompletion",G.LocalComponentCompletion="LocalComponentCompletion",G.NewLine="newLine",G.PropertyName="propertyName",G.NewItem="newItem",G.PathMap="PathMap",G.MediaTypeMap="MediaTypeMap",G.Root="Root",G.RootOpenapi="Root_openapi",G.RootInfo="Root_info",G.RootJsonSchemaDialect="Root_jsonSchemaDialect",G.RootServers="Root_servers",G.RootPaths="Root_paths",G.RootWebhooks="Root_webhooks",G.RootComponents="Root_components",G.RootSecurity="Root_security",G.RootTags="Root_tags",G.RootExternalDocs="Root_externalDocs",G.Info="Info",G.InfoTitle="Info_title",G.InfoSummary="Info_summary",G.InfoDescription="Info_description",G.InfoTermsOfService="Info_termsOfService",G.InfoContact="Info_contact",G.ContactName="Contact_name",G.ContactUrl="Contact_url",G.ContactEmail="Contact_email",G.InfoLicense="Info_license",G.LicenseName="License_name",G.LicenseIdentifier="License_identifier",G.LicenseUrl="License_url",G.InfoVersion="Info_version",G.jsonSchemaDialect="jsonSchemaDialect",G.ServerList="Server_List",G.ServerUrl="Server_url",G.ServerDescription="Server_description",G.ServerVariables="Server_variables",G.Default="Default",G))(Gr||{}),M_=["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"],Ho=M_.reduce((e,t,n)=>(e[t]=String.fromCharCode(n),e),{});var pn="newItem",Qr="propertyName",dr="newLine";function Uo(e){return!!(e?.name&&gp[e.name])}function Xc(e){return gp[e]||[]}var gp={[dr]:[{label:"newLine",kind:De.CompletionItemKind.Constructor,data:{},sortText:Ne(dr)}],[Qr]:[{label:Qr,kind:De.CompletionItemKind.Constructor,data:{properties:{}},sortText:Ne(Qr)}],ServerVariable_Map:[{label:"newVariableName",kind:De.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("ServerVariable_Map")}],ResponsesMap:[{label:"200",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"201",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"204",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"301",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"303",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"400",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"401",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"403",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"404",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"500",kind:De.CompletionItemKind.Property,data:{properties:{}}},{label:"503",kind:De.CompletionItemKind.Property,data:{properties:{}}}],PathMap:[{label:"/newPath",kind:De.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("PathMap")}],MediaTypeMap:[{label:"mime/type",kind:De.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/json",kind:De.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/octet-stream",kind:De.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"multipart/form-data",kind:De.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/x-www-form-urlencoded",kind:De.CompletionItemKind.Property,data:{properties:{}},sortText:Ne("MediaTypeMap")},{label:"application/xml",kind:De.CompletionItemKind.Property,data:[],sortText:Ne("MediaTypeMap")}]};var gn=Xe(_r(),1);import{normalizeTypes as hp,Oas3Types as j_,Oas2Types as L_,Oas3_1Types as mp,AsyncApi2Types as I_,SpecVersion as ot,ConfigTypes as F_,getMajorSpecVersion as W_,Arazzo1Types as H_,AsyncApi3Types as U_}from"@redocly/openapi-core";var Zc=new Map;async function B_(e,t){let n=await ct(e),r=n.getText(),i=gn.safeLoad(r,{filename:e.toString()}),{nodePath:o}=Bo({node:i,nodePath:[]},t,n,!0),s=eu(i,e),{version:u}=tu(i),{currentType:c,parentType:p,endPath:g}=zo(s,o),b=Jr(i),D=c?.name?c:p;return{nodePath:o,endPath:g,type:D,existingValues:b,types:s,descriptionVersion:u}}function yp(e,t){if(!e)return null;let n=e,r=!0;return t.forEach(i=>{if(r=!1,Us(n)&&n.items&&n.items[i])n=n.items[i],r=!0;else if(Fl(n)){let o=$o(n);for(let s of o)if(Hs(s)&&s.key?.value===i){n=s?.value,r=!0;break}}}),r?n:(console.warn("Cannot find node by path",t),null)}function z_(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 Bo(e,t,n,r=!1){let{node:i,nodePath:o=[]}=e,s=n.offsetAt(t),u=$o(i);if(u.length===0||$_(i)||!r&&Y_(i,n,t))return e;let c=V_(u,s);return Bo({nodePath:K_(o,i,u[c],c),node:u[c]},t,n,r)}function $_(e){return e?.kind===gn.Kind.MAPPING&&!e?.value}function Y_(e,t,n){let r=t.getText({start:t.positionAt(t._lineOffsets[n.line]),end:n}),i=G_(e,t),o=r?.match(/^\s+/)?.[0]?.length||0;return(/^\s*[\w\-\$\/\{\}]+$/.test(r)?o:n.character)===i}function V_(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 K_(e,t,n,r){return Us(t)?[...e,r]:Hs(n)&&n?.key?.value&&typeof n.key.value=="string"?[...e,n.key.value]:e}function G_(e,t){let n=e?.startPosition??0,r=z_(n,t._lineOffsets);if(r>=0){let i=t._lineOffsets[r];return n-i}return 0}function zo(e,t){let n=e,r=null,i=new Array(t.length).fill(null);t.forEach((s,u)=>{let c;if(e?.name&&e?.name!==n?.name&&(n=e,r=s),e&&e?.properties&&!Object.keys(e?.properties).length&&e?.items?.properties)c=e.items;else if(e?.properties&&e.properties[s])c=e.properties[s],vi(c)&&(c=c(null,s));else if(e?.additionalProperties&&!vi(e?.additionalProperties))c=e.additionalProperties;else if(vi(e?.additionalProperties)&&s){let p=e.additionalProperties(null,s);p&&(c=p)}c&&(e=c,i[u]=c)}),e?.name&&n?.name&&e?.name!==n?.name&&(r=null);let o=i.every(s=>!!s);return{currentType:o||t[0]==="openapi"||t.length===0?e:null,parentType:o?n:null,endPath:r}}function eu(e,t){if(Sr(t))return hp(F_).ConfigRoot;let{types:n,isDefault:r}=J_(e);if(!e)return n;let i=r?Kc(t):n;return r&&!Kc(t)&&e?null:i||n}function Q_(e){if(Zc.has(e))return Zc.get(e);let t=hp(X_(e)).Root;return Zc.set(e,t),t}function bp(e){let t,n=!1;if(e?.kind===gn.Kind.MAP)for(let r of e.mappings){let i=r.key?.value,o=String(r?.value?.value);if(i==="openapi"&&o.startsWith("3.1")){t=ot.OAS3_1;break}if(i==="openapi"&&o.startsWith("3.0")){t=ot.OAS3_0;break}if(i==="swagger"&&o==="2.0"){t=ot.OAS2;break}if(i==="asyncapi"&&o.startsWith("2."))return{version:ot.Async2,isDefault:!1};if(i==="asyncapi"&&o.startsWith("3."))return{version:ot.Async3,isDefault:!1};if(i==="arazzo")return{version:ot.Arazzo1,isDefault:!1}}return t||(t=ot.OAS3_1,n=!0),{version:t,isDefault:n}}function tu(e){let{version:t,isDefault:n}=bp(e);return{version:W_(t),isDefault:n}}function J_(e){let{version:t,isDefault:n}=bp(e);return{types:Q_(t),isDefault:n}}function $o(e){switch(e?.kind){case gn.Kind.MAPPING:return[e.key,e.value];case gn.Kind.MAP:return e.mappings;case gn.Kind.SEQ:return e?.items;default:return[]}}function X_(e){switch(e){case ot.OAS3_1:return mp;case ot.OAS3_0:return j_;case ot.OAS2:return L_;case ot.Async2:return I_;case ot.Async3:return U_;case ot.Arazzo1:return H_;default:return mp}}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:Il(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 vp}from"@redocly/openapi-core";var nu={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 Cp(e){let t=nu[e.name];return t&&t.forEach(n=>{e.properties[n.name]=n.value}),e}var Yo=Xe(fn(),1),Tt=class{constructor({kind:t,label:n,value:r,textEdit:i,filterText:o,sortText:s,data:u}){this.kind=t||Yo.CompletionItemKind.Value,this.label=n;let{node:c,lineOffset:p,position:g}=u;this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.textEdit=i||(c.value==null?void 0:this.getTextEdit(c,g,p))}getTextEdit(t,n,r){let i=t.startPosition-r,o=t.singleQuoted||t.doubleQuoted?2:0,s=i+t.value.length+o;return Yo.TextEdit.replace({start:{line:n.line,character:i},end:{line:n.line,character:s}},this.insertText)}};var fr=Xe(fn(),1),Nn=class{constructor({kind:t,label:n,insertText:r,insertTextFormat:i,filterText:o,sortText:s,data:u}){this.insertTextFormat=i||n.includes("$")?fr.InsertTextFormat.PlainText:fr.InsertTextFormat.Snippet,this.kind=t||fr.CompletionItemKind.Property,this.label=n,this.data=u||{},this.insertText=r??n,this.filterText=o||this.insertText,this.sortText=s,this.command=this.kind===fr.CompletionItemKind.Property?{title:"Suggested values",command:"editor.action.triggerSuggest"}:null}};var Xr={example:"example",default:"default",enum:"enum",ref:"$ref"},Vo=[Xr.default,Xr.example];var Rp=Xe(_r(),1);var je={};su(je,{default:()=>Dp.default});cs(je,Xe(ru()));var Dp=Xe(ru());function e0(e,t){let n=t.slice(0,t.length-1),{currentType:r}=zo(e,n);if(r?.name){let[i]=nu[r.name]||[];return i?.value}return null}function t0(e,t){let n=t[t.length-1];if(jl(n))return e0(e,t);let{currentType:r}=zo(e,t);return Uo(r)?r:r?r?.name&&(r?.name.includes("Map")||r?.name.includes("Named"))?{name:Qr,properties:{}}:r:null}async function Sp(e,t){let n=await ct(e),r=n.getText(),i=(0,Rp.safeLoad)(r,{filename:e}),{node:o,nodePath:s}=Bo({node:i,nodePath:[]},t,n),u=eu(i,e),c=t0(u,s),p=n._lineOffsets[t.line],g=n.getText({start:n.positionAt(p),end:t});return{currentAst:i,node:o,nodePath:s,position:t,lineText:g,lineOffset:p,openApiType:c}}async function Tp(e,t){let n=pe.resolvePath(Oe(e)),r=pe.dirname(n),i=await uu(pe.joinPath(r,t),r.path),o=pe.resolvePath(r,i.path);return{refPath:t,refDirPath:i,refDirAbsolutePath:o,isAbsolutePath:t&&(0,je.isAbsolute)(t),docAbsolutePath:n,docAbsoluteDirPath:r,root:"/"}}var xp=Xe(fn(),1);var Ko=class extends Tt{constructor(n){super(n);this.kind=xp.CompletionItemKind.Folder,this.command={title:"Complete path",command:"editor.action.triggerSuggest",arguments:[]}}};var wp=Xe(fn(),1);var Go=class extends Tt{constructor(t){super(t),this.kind=wp.CompletionItemKind.File}};var n0=Ie.supportedLanguages.concat({languageId:"markdown",filePattern:/\.md$/});function r0(e){let{refPath:t,docAbsoluteDirPath:n,isAbsolutePath:r,root:i}=e,o=(0,je.resolve)(n.path,t,".."),s=r?o:(0,je.relative)(n.path,o),u=s&&s!==i?"/":"";return{name:"../",type:1,matchBy:t,sortBy:Ne("FolderCompletion"),value:`${s}${u}`}}async function i0(e,t,n){let r=[],{refDirAbsolutePath:i,docAbsolutePath:o}=n;for(let s of e)try{let u=pe.resolvePath(i,s),c=await Ie.fs.stat(u);c.isFile()&&u.path!==o.path&&t.supportedFiles.some(p=>p.filePattern.test(s))&&r.push({name:s,type:0}),c.isDirectory()&&r.push({name:s,type:1})}catch{continue}return r}function kp(e,t){let{docAbsoluteDirPath:n,isAbsolutePath:r,refDirAbsolutePath:i,root:o,refPath:s}=t,u=[];return i.path!==o&&u.push(r0(t)),u.concat(e.map(({name:c,type:p})=>{let g=(0,je.resolve)(i.path,c),b=(0,je.relative)(n.path,g),D=s.includes(je.sep)?s.slice(0,s.lastIndexOf(je.sep)+1):s+je.sep,R=r?g:b;if(p===0)return{type:p,name:c,value:R,sortBy:`${Ne("FileCompletion")}${c}`,matchBy:`${D}${c}`};let T=`${c}/`;return{type:p,name:T,value:`${R}${b?"/":""}`,sortBy:`${Ne("FolderCompletion")}${c}`,matchBy:`${D}${c}`}}))}function Ap(e,t){let{node:n,lineOffset:r,position:i}=t;return e.map(o=>{let{name:s,value:u,matchBy:c,sortBy:p,type:g}=o,b={label:s,filterText:Dr(c,n),sortText:p,value:u,data:{lineOffset:r,position:i,node:n}};return g===1?new Ko(b):new Go(b)})}async function qp(e,t){let{node:n}=t,r=n.value??"",i=await Tp(e,r),{refDirAbsolutePath:o}=i,s=[];try{s=await Ie.fs.readDir(o)}catch{return Ap(kp([],i),t)}let u=await i0(s,{supportedFiles:n0},i);return Ap(kp(u,i),t)}import{isEmptyObject as o0}from"@redocly/openapi-core/lib/utils";function Np(e,t){if(t?.items)return"- "+Np(e,t.items);if(t?.required)return Object.values(t.required).map((n,r)=>`${n}: \${${r+1}}`).join(`
76
+ `);if(e==="openapi"){let n="3.1.0",[r,i,o]=n.split(".");return`\${1:${r}}.\${2:${i}}.\${3:${o}}`}return""}function s0(e,t,n,r){if(e===pn)return"";if(r?.items||r?.required){let i=`
77
77
  `;return n.includes(`
78
78
  `)&&(i+=" "),i}return n.includes(`
79
- `)||!t?"":" "}function o0(e){return e===pn?"":": "}function s0(e){return e?.includes(":")||e?.includes(": ")?`
80
- `:e?.includes(":")&&!e?.includes(": ")?" ":""}function a0(e,t){return!t||r0(t)?"":e.includes(`
79
+ `)||!t?"":" "}function a0(e){return e===pn?"":": "}function c0(e){return e?.includes(":")||e?.includes(": ")?`
80
+ `:e?.includes(":")&&!e?.includes(": ")?" ":""}function u0(e,t){return!t||o0(t)?"":e.includes(`
81
81
  `)?`
82
82
  `:`
83
83
  `}function Zr(e,t,n=!0){if(e===dr)return`
84
- `;let r=s0(t?.lineText),i=o0(e),o=e===pn?"":e,s=Np(e,t),u=i0(e,s,r,t),c=n?a0(r,t?.properties):" ";return`${r}${o}${i}${u}${s}${c}`}function c0(e,t){let{version:n}=bp(e),r=vp(t,n);if(!r)return[];let i=hp(e,["components",r]);return i?($o(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function u0(e){let{node:t,position:n,lineOffset:r}=e,i=Vo.includes(t.key?.value)?t:Vo.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Xr.enum)?.value?.items?.map(({value:s})=>new St({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function l0(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,u=c0(i,r.name);return[...await qp(e,t),...u.map(p=>{let g=Rr(p,s);return new St({label:p,filterText:Rr(p,s),value:g,sortText:`${Ne("LocalComponentCompletion")}${p}`,data:{lineOffset:o,position:n,node:s}})})]}function d0(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t.enum.map(o=>new St({label:o,kind:Qo.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}}))}function f0(e,t){let{node:n,position:r,lineOffset:i}=t;return["true","false"].map(o=>new St({label:o,data:{node:n,position:r,lineOffset:i}}))}function p0(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=m0(t,n,r);return h0(i,s,o)}async function g0(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&&Xr.ref===o?l0(e,t):Vo.includes(o)?u0(t):i?.enum?d0(t):i?.type==="boolean"?f0(e,t):[]}async function Op(e,t){let n=await Sp(e,t);return n.openApiType?.properties?p0(n):g0(e,n)}function m0(e,t,n){if(!e)return[];let i=Jr(e);for(let u=0;u<t.length;u++)i[t[u]]&&(i=i[t[u]]);let o=i?Object.keys(i).filter(u=>i[u]&&typeof i[u]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let u=s.map(c=>c.key?.value||null);o.push(...u)}return!o.length&&n?.value&&o.push(n.value),o}function h0(e,t,n){if(!e)return[];if(Cp(e),Uo(e))return Xc(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Nn({...r,insertText:Zr(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 Nn({label:i,kind:Qo.CompletionItemKind.Property,insertText:Zr(i,o,!o?.items),sortText:Ne(e?.name,i)})});return n.endsWith(":")&&r.push(...Xc(dr).map(i=>new Nn({...i,insertText:Zr(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Nn({label:pn,kind:Qo.CompletionItemKind.Constructor,insertText:Zr(pn,{...e,lineText:n}),sortText:Ne(pn)})]:[]}var Kt=Xe(Yc(),1);var mn=Xe(_r(),1);import{getAstNodeByPointer as y0}from"@redocly/openapi-core";async function b0({position:e,textDocument:t,value:n,line:r,document:i}){let[o,s]=n.split("#/"),u=r.indexOf(n),c=u+n.length;if(e.character>=u&&u!==-1){let p=o?pe.joinPath(pe.dirname(Jt.parse(i.uri)),o).toString():t.uri,g;try{g=await at(p)}catch{return}let b=(0,mn.safeLoad)(g.getText(),{filename:jn(p)}),R=y0(b,`#/${s}`,!0),D=Kt.Range.create(g.positionAt(R?.startPosition||0),g.positionAt(R?.endPosition||0));return[Kt.LocationLink.create(p,Kt.Range.create(0,0,g.lineCount,0),D,Kt.Range.create(Kt.Position.create(e.line,u),Kt.Position.create(e.line,c)))]}}async function Ep({position:e,textDocument:t}){let n;try{n=await at(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,mn.safeLoad)(o,{filename:jn(t.uri)}),u;switch(s.kind){case mn.Kind.SCALAR:{u=s.parent||{value:{value:s?.value}};break}case mn.Kind.MAP:{u=s?.mappings?.[0];break}case mn.Kind.SEQ:{let p=s?.items?.[0];u=p?.kind===mn.Kind.MAP?p?.mappings?.[0]:{value:{value:p?.value}};break}default:u=null}let c=u?.value?.value;if(!!c&&!yr(c))return b0({position:e,textDocument:t,value:c,line:o,document:n})}var v0=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(v0||{});var Mp=class{async onCompletion(t){let{uri:n}=t.textDocument;return $s(n)?[]:Op(n,t.position)}async onCompletionResolve(t){return t}async validateOpenAPI(t){return Jc(t)}async onDidChangeWatchedFiles(t){if(t.changes.find(r=>Ks.some(i=>r.uri.endsWith(i))))return Wo()}async onDidConfigChange(t){return await Yl(t),Wo()}async onDidChangeConfiguration(){return Wo()}async onDefinition(t){let{uri:n}=t.textDocument;return $s(n)?[]:await Ep(t)||[]}};export{v0 as ContextErrorCodes,Mp as OpenapiLanguageServer,Vc as bundleOpenAPI,C_ as getBundles,Bn as getConfigData,H_ as getContextData,at as getDocumentByURI,Sr as isConfigFile,yr as isHttpPath,xh as isYamlFile,Ie as languageServerConfig,Oe as parseUri,Fs as removeCirculars,Wo as revalidateAllDocuments,Yl as updateOpenAPIConfigByURI,jn as uriToAbsFSPath};
84
+ `;let r=c0(t?.lineText),i=a0(e),o=e===pn?"":e,s=Np(e,t),u=s0(e,s,r,t),c=n?u0(r,t?.properties):" ";return`${r}${o}${i}${u}${s}${c}`}function l0(e,t){let{version:n}=tu(e),r=vp(t,n);if(!r)return[];let i=yp(e,["components",r]);return i?($o(i.value||i)||[]).map(({key:{value:s}})=>`#/components/${r}/${s}`):[]}function d0(e){let{node:t,position:n,lineOffset:r}=e,i=Vo.includes(t.key?.value)?t:Vo.includes(t.parent?.key?.value)?t.parent:null;return i?i?.parent?.mappings?.find(({key:s})=>s?.value===Xr.enum)?.value?.items?.map(({value:s})=>new Tt({label:s,data:{node:t,position:n,lineOffset:r}}))||[]:[]}async function f0(e,t){let{position:n,openApiType:r,currentAst:i,lineOffset:o,node:s}=t,u=l0(i,r.name);return[...await qp(e,t),...u.map(p=>{let g=Dr(p,s);return new Tt({label:p,filterText:Dr(p,s),value:g,sortText:`${Ne("LocalComponentCompletion")}${p}`,data:{lineOffset:o,position:n,node:s}})})]}function p0(e){let{openApiType:t,node:n,position:r,lineOffset:i}=e;return t.enum.map(o=>new Tt({label:o,kind:Qo.CompletionItemKind.EnumMember,data:{node:n,position:r,lineOffset:i}}))}function g0(e,t){let{node:n,position:r,lineOffset:i}=t;return["true","false"].map(o=>new Tt({label:o,data:{node:n,position:r,lineOffset:i}}))}function m0(e){let{currentAst:t,nodePath:n,node:r,openApiType:i,lineText:o}=e,s=y0(t,n,r);return b0(i,s,o)}async function h0(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&&Xr.ref===o?f0(e,t):Vo.includes(o)?d0(t):i?.enum?p0(t):i?.type==="boolean"?g0(e,t):[]}async function Op(e,t){let n=await Sp(e,t);return n.openApiType?.properties?m0(n):h0(e,n)}function y0(e,t,n){if(!e)return[];let i=Jr(e);for(let u=0;u<t.length;u++)i[t[u]]&&(i=i[t[u]]);let o=i?Object.keys(i).filter(u=>i[u]&&typeof i[u]=="object"):[],s=n?.value?.mappings||n?.mappings;if(s){let u=s.map(c=>c.key?.value||null);o.push(...u)}return!o.length&&n?.value&&o.push(n.value),o}function b0(e,t,n){if(!e)return[];if(Cp(e),Uo(e))return Xc(e?.name).filter(r=>!t.includes(r.label)).map(r=>new Nn({...r,insertText:Zr(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 Nn({label:i,kind:Qo.CompletionItemKind.Property,insertText:Zr(i,o,!o?.items),sortText:Ne(e?.name,i)})});return n.endsWith(":")&&r.push(...Xc(dr).map(i=>new Nn({...i,insertText:Zr(i.label,{...i.data,lineText:n})}))),r}return e.items&&Object.keys(e.items).length?[new Nn({label:pn,kind:Qo.CompletionItemKind.Constructor,insertText:Zr(pn,{...e,lineText:n}),sortText:Ne(pn)})]:[]}var Kt=Xe(Yc(),1);var mn=Xe(_r(),1);import{getAstNodeByPointer as v0}from"@redocly/openapi-core";async function C0({position:e,textDocument:t,value:n,line:r,document:i}){let[o,s]=n.split("#/"),u=r.indexOf(n),c=u+n.length;if(e.character>=u&&u!==-1){let p=o?pe.joinPath(pe.dirname(Jt.parse(i.uri)),o).toString():t.uri,g;try{g=await ct(p)}catch{return}let b=(0,mn.safeLoad)(g.getText(),{filename:jn(p)}),D=v0(b,`#/${s}`,!0),R=Kt.Range.create(g.positionAt(D?.startPosition||0),g.positionAt(D?.endPosition||0));return[Kt.LocationLink.create(p,Kt.Range.create(0,0,g.lineCount,0),R,Kt.Range.create(Kt.Position.create(e.line,u),Kt.Position.create(e.line,c)))]}}async function Ep({position:e,textDocument:t}){let n;try{n=await ct(t.uri)}catch{return}let o=n.getText().split(/\r\n|[\n\r]/g)[e.line],s=(0,mn.safeLoad)(o,{filename:jn(t.uri)}),u;switch(s.kind){case mn.Kind.SCALAR:{u=s.parent||{value:{value:s?.value}};break}case mn.Kind.MAP:{u=s?.mappings?.[0];break}case mn.Kind.SEQ:{let p=s?.items?.[0];u=p?.kind===mn.Kind.MAP?p?.mappings?.[0]:{value:{value:p?.value}};break}default:u=null}let c=u?.value?.value;if(!!c&&!yr(c))return C0({position:e,textDocument:t,value:c,line:o,document:n})}var P0=(t=>(t[t.FILE_TYPE_NOT_SUPPORTED=0]="FILE_TYPE_NOT_SUPPORTED",t))(P0||{});var Mp=class{async onCompletion(t){let{uri:n}=t.textDocument;return $s(n)?[]:Op(n,t.position)}async onCompletionResolve(t){return t}async validateOpenAPI(t){return Jc(t)}async onDidChangeWatchedFiles(t){if(t.changes.find(r=>Ks.some(i=>r.uri.endsWith(i))))return Wo()}async onDidConfigChange(t){return await Vl(t),Wo()}async onDidChangeConfiguration(){return Wo()}async onDefinition(t){let{uri:n}=t.textDocument;return $s(n)?[]:await Ep(t)||[]}};export{P0 as ContextErrorCodes,Mp as OpenapiLanguageServer,Vc as bundleOpenAPI,C_ as getBundles,Bn as getConfigData,B_ as getContextData,ct as getDocumentByURI,Sr as isConfigFile,yr as isHttpPath,xh as isYamlFile,Ie as languageServerConfig,Oe as parseUri,Fs as removeCirculars,Wo as revalidateAllDocuments,Vl as updateOpenAPIConfigByURI,jn as uriToAbsFSPath};