/*! For license information please see languageserver.js.LICENSE.txt */ (()=>{var e={64063:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},60516:(e,t,n)=>{"use strict";function r(e,t=!1){const n=e.length;let r=0,a="",c=0,l=16,u=0,f=0,d=0,h=0,p=0;function m(t,n){let o=0,i=0;for(;o=48&&t<=57)i=16*i+t-48;else if(t>=65&&t<=70)i=16*i+t-65+10;else{if(!(t>=97&&t<=102))break;i=16*i+t-97+10}r++,o++}return o=n)return c=n,l=17;let t=e.charCodeAt(r);if(o(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(o(t));return l=15}if(i(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),u++,d=r,l=14;switch(t){case 123:return r++,l=1;case 125:return r++,l=2;case 91:return r++,l=3;case 93:return r++,l=4;case 58:return r++,l=6;case 44:return r++,l=5;case 34:return r++,a=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),p=2;break}const s=e.charCodeAt(r);if(34===s){t+=e.substring(o,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(i(s)){t+=e.substring(o,r),p=2;break}p=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=m(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}o=r}}return t}(),l=10;case 47:const o=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;rr,scan:t?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>l,getTokenValue:()=>a,getTokenOffset:()=>c,getTokenLength:()=>r-c,getTokenStartLine:()=>f,getTokenStartCharacter:()=>c-h,getTokenError:()=>p}}function o(e){return 32===e||9===e}function i(e){return 10===e||13===e}function s(e){return e>=48&&e<=57}var a,c;function l(e,t,n){let o,i,s,a,c;if(t){for(a=t.offset,c=a+t.length,s=a;s>0&&!f(e,s-1);)s--;let r=c;for(;r1?u(l,h)+u(d,o+p):l+u(d,o+p)}function v(){let e=m.scan();for(h=0;15===e||14===e;)14===e&&n.keepLines?h+=1:14===e&&(h=1),e=m.scan();return g=16===e||0!==m.getTokenError(),e}const b=[];function S(n,r,o){g||t&&!(ra)||e.substring(r,o)===n||b.push({offset:r,length:o-r,content:n})}let w=v();if(n.keepLines&&h>0&&S(u(l,h),0,0),17!==w){let e=m.getTokenOffset()+s;S(u(d,o),s,e)}for(;17!==w;){let e=m.getTokenOffset()+m.getTokenLength()+s,t=v(),r="",o=!1;for(;0===h&&(12===t||13===t);)S(" ",e,m.getTokenOffset()+s),e=m.getTokenOffset()+m.getTokenLength()+s,o=12===t,r=o?y():"",t=v();if(2===t)1!==w&&p--,n.keepLines&&h>0||!n.keepLines&&1!==w?r=y():n.keepLines&&(r=" ");else if(4===t)3!==w&&p--,n.keepLines&&h>0||!n.keepLines&&3!==w?r=y():n.keepLines&&(r=" ");else{switch(w){case 3:case 1:p++,r=n.keepLines&&h>0||!n.keepLines?y():" ";break;case 5:r=n.keepLines&&h>0||!n.keepLines?y():" ";break;case 12:r=y();break;case 13:h>0?r=y():o||(r=" ");break;case 6:n.keepLines&&h>0?r=y():o||(r=" ");break;case 10:n.keepLines&&h>0?r=y():6!==t||o||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&h>0?r=y():12!==t&&13!==t||o?5!==t&&17!==t&&(g=!0):r=" ";break;case 16:g=!0}h>0&&(12===t||13===t)&&(r=y())}17===t&&(r=n.keepLines&&h>0?y():n.insertFinalNewline?l:""),S(r,e,m.getTokenOffset()+s),w=t}return b}function u(e,t){let n="";for(let r=0;r{r=i({type:"object",offset:e,length:-1,parent:r,children:[]})},onObjectProperty:(e,t,n)=>{r=i({type:"property",offset:t,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:e,offset:t,length:n,parent:r})},onObjectEnd:(e,t)=>{o(e+t),r.length=e+t-r.offset,r=r.parent,o(e+t)},onArrayBegin:(e,t)=>{r=i({type:"array",offset:e,length:-1,parent:r,children:[]})},onArrayEnd:(e,t)=>{r.length=e+t-r.offset,r=r.parent,o(e+t)},onLiteralValue:(e,t,n)=>{i({type:m(e),offset:t,length:n,parent:r,value:e}),o(t+n)},onSeparator:(e,t,n)=>{"property"===r.type&&(":"===e?r.colonOffset=t:","===e&&o(t))},onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n);const s=r.children[0];return s&&delete s.parent,s}function h(e,t){if(!e)return;let n=e;for(let e of t)if("string"==typeof e){if("object"!==n.type||!Array.isArray(n.children))return;let t=!1;for(const r of n.children)if(Array.isArray(r.children)&&r.children[0].value===e&&2===r.children.length){n=r.children[1],t=!0;break}if(!t)return}else{const t=e;if("array"!==n.type||t<0||!Array.isArray(n.children)||t>=n.children.length)return;n=n.children[t]}return n}function p(e,t,n=c.DEFAULT){const o=r(e,!1),i=[];function s(e){return e?()=>e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}function a(e){return e?()=>e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),(()=>i.slice())):()=>!0}function l(e){return e?t=>e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}function u(e){return e?t=>e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),(()=>i.slice())):()=>!0}const f=a(t.onObjectBegin),d=u(t.onObjectProperty),h=s(t.onObjectEnd),p=a(t.onArrayBegin),m=s(t.onArrayEnd),g=u(t.onLiteralValue),y=l(t.onSeparator),v=s(t.onComment),b=l(t.onError),S=n&&n.disallowComments,w=n&&n.allowTrailingComma;function _(){for(;;){const e=o.scan();switch(o.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:S||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:S?k(10):v();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(b(e),t.length+n.length>0){let e=o.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){_();break}if(-1!==n.indexOf(e))break;e=_()}}}function E(e){const t=o.getTokenValue();return e?g(t):(d(t),i.push(t)),_(),!0}return _(),17===o.getToken()?!!n.allowEmptyContent||(k(4,[],[]),!1):function e(){switch(o.getToken()){case 3:return function(){p(),_();let t=!0,n=!1;for(;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(n||k(4,[],[]),y(","),_(),4===o.getToken()&&w)break}else n&&k(6,[],[]);t?(i.push(0),t=!1):i[i.length-1]++,e()||k(4,[],[4,5]),n=!0}return m(),t||i.pop(),4!==o.getToken()?k(8,[4],[]):_(),!0}();case 1:return function(){f(),_();let t=!1;for(;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||k(4,[],[]),y(","),_(),2===o.getToken()&&w)break}else t&&k(6,[],[]);(10!==o.getToken()?(k(3,[],[2,5]),0):(E(!1),6===o.getToken()?(y(":"),_(),e()||k(4,[],[2,5])):k(5,[],[2,5]),i.pop(),1))||k(4,[],[2,5]),t=!0}return h(),2!==o.getToken()?k(7,[2],[]):_(),!0}();case 10:return E(!0);default:return function(){switch(o.getToken()){case 11:const e=o.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),g(t);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return _(),!0}()}}()?(17!==o.getToken()&&k(9,[],[]),!0):(k(4,[],[]),!1)}function m(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":return e?Array.isArray(e)?"array":"object":"null";default:return"null"}}function g(e,t,n){if(!n.formattingOptions)return[t];let r=y(e,t),o=t.offset,i=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;o>0&&!f(r,o-1);)o--;for(;i=0;e--){const t=s[e];r=y(r,t),o=Math.min(o,t.offset),i=Math.max(i,t.offset+t.length),i+=t.content.length-t.length}return[{offset:o,length:e.length-(r.length-i)-o,content:r.substring(o,i)}]}function y(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}n.r(t),n.d(t,{ParseErrorCode:()=>P,ScanError:()=>b,SyntaxKind:()=>S,applyEdits:()=>I,createScanner:()=>v,findNodeAtLocation:()=>E,findNodeAtOffset:()=>x,format:()=>R,getLocation:()=>w,getNodePath:()=>C,getNodeValue:()=>T,modify:()=>M,parse:()=>_,parseTree:()=>k,printParseErrorCode:()=>N,stripComments:()=>A,visit:()=>O}),function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(a||(a={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(c||(c={}));const v=r;var b,S;!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(b||(b={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(S||(S={}));const w=function(e,t){const n=[],r=new Object;let o;const i={value:{},offset:0,length:0,type:"object",parent:void 0};let s=!1;function a(e,t,n,r){i.value=e,i.offset=t,i.length=n,i.type=r,i.colonOffset=void 0,o=i}try{p(e,{onObjectBegin:(e,i)=>{if(t<=e)throw r;o=void 0,s=t>e,n.push("")},onObjectProperty:(e,o,i)=>{if(t{if(t<=e)throw r;o=void 0,n.pop()},onArrayBegin:(e,i)=>{if(t<=e)throw r;o=void 0,n.push(0)},onArrayEnd:(e,i)=>{if(t<=e)throw r;o=void 0,n.pop()},onLiteralValue:(e,n,o)=>{if(t{if(t<=i)throw r;if(":"===e&&o&&"property"===o.type)o.colonOffset=i,s=!1,o=void 0;else if(","===e){const e=n[n.length-1];"number"==typeof e?n[n.length-1]=e+1:(s=!0,n[n.length-1]=""),o=void 0}}})}catch(e){if(e!==r)throw e}return{path:n,previousNode:o,isAtPropertyKey:s,matches:e=>{let t=0;for(let r=0;t{const e={};s(e),i.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{const e=[];s(e),i.push(o),o=e,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),o[0]},k=d,E=h,x=function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t"}function R(e,t,n){return l(e,t,n)}function M(e,t,n,r){return function(e,t,n,r){const o=t.slice(),i=d(e,[]);let s,a;for(;o.length>0&&(a=o.pop(),s=h(i,o),void 0===s&&void 0!==n);)n="string"==typeof a?{[a]:n}:[n];if(s){if("object"===s.type&&"string"==typeof a&&Array.isArray(s.children)){const t=h(s,[a]);if(void 0!==t){if(void 0===n){if(!t.parent)throw new Error("Malformed AST");const n=s.children.indexOf(t.parent);let o,i=t.parent.offset+t.parent.length;if(n>0){let e=s.children[n-1];o=e.offset+e.length}else o=s.offset+1,s.children.length>1&&(i=s.children[1].offset);return g(e,{offset:o,length:i-o,content:""},r)}return g(e,{offset:t.offset,length:t.length,content:JSON.stringify(n)},r)}{if(void 0===n)return[];const t=`${JSON.stringify(a)}: ${JSON.stringify(n)}`,o=r.getInsertionIndex?r.getInsertionIndex(s.children.map((e=>e.children[0].value))):s.children.length;let i;if(o>0){let e=s.children[o-1];i={offset:e.offset+e.length,length:0,content:","+t}}else i=0===s.children.length?{offset:s.offset+1,length:0,content:t}:{offset:s.offset+1,length:0,content:t+","};return g(e,i,r)}}if("array"===s.type&&"number"==typeof a&&Array.isArray(s.children)){const t=a;if(-1===t){const t=`${JSON.stringify(n)}`;let o;if(0===s.children.length)o={offset:s.offset+1,length:0,content:t};else{const e=s.children[s.children.length-1];o={offset:e.offset+e.length,length:0,content:","+t}}return g(e,o,r)}if(void 0===n&&s.children.length>=0){const t=a,n=s.children[t];let o;if(1===s.children.length)o={offset:s.offset+1,length:s.length-2,content:""};else if(s.children.length-1===t){let e=s.children[t-1],n=e.offset+e.length;o={offset:n,length:s.offset+s.length-2-n,content:""}}else o={offset:n.offset,length:s.children[t+1].offset-n.offset,content:""};return g(e,o,r)}if(void 0!==n){let t;const o=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&s.children.length>a){const e=s.children[a];t={offset:e.offset,length:e.length,content:o}}else if(0===s.children.length||0===a)t={offset:s.offset+1,length:0,content:0===s.children.length?o:o+","};else{const e=a>s.children.length?s.children.length:a,n=s.children[e-1];t={offset:n.offset+n.length,length:0,content:","+o}}return g(e,t,r)}throw new Error(`Can not ${void 0===n?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${t} as length is not sufficient`)}throw new Error(`Can not add ${"number"!=typeof a?"index":"property"} to parent of type ${s.type}`)}if(void 0===n)throw new Error("Can not delete in empty document");return g(e,{offset:i?i.offset:0,length:i?i.length:0,content:JSON.stringify(n)},r)}(e,t,n,r)}function I(e,t){let n=t.slice(0).sort(((e,t)=>{const n=e.offset-t.offset;return 0===n?e.length-t.length:n})),r=e.length;for(let t=n.length-1;t>=0;t--){let o=n[t];if(!(o.offset+o.length<=r))throw new Error("Overlapping edit");e=y(e,o),r=o.offset}return e}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(P||(P={}))},96486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,l=128,u=1/0,f=9007199254740991,d=NaN,h=4294967295,p=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",b="[object Error]",S="[object Function]",w="[object GeneratorFunction]",_="[object Map]",k="[object Number]",E="[object Object]",x="[object Promise]",C="[object RegExp]",T="[object Set]",O="[object String]",A="[object Symbol]",P="[object WeakMap]",N="[object ArrayBuffer]",R="[object DataView]",M="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",V="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,Y=RegExp(K.source),z=RegExp(H.source),J=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="["+we+"]",Ae="["+Te+"]",Pe="["+_e+"]",Ne="\\d+",Re="["+ke+"]",Me="["+Ee+"]",Ie="[^"+we+Te+Ne+ke+Ee+xe+"]",je="\\ud83c[\\udffb-\\udfff]",$e="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+xe+"]",qe="\\u200d",Ve="(?:"+Me+"|"+Ie+")",Ue="(?:"+Fe+"|"+Ie+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Be="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+je+")?",He="["+Ce+"]?",Ye=He+Ke+"(?:"+qe+"(?:"+[$e,De,Le].join("|")+")"+He+Ke+")*",ze="(?:"+[Re,De,Le].join("|")+")"+Ye,Je="(?:"+[$e+Pe+"?",Pe,De,Le,Oe].join("|")+")",Ge=RegExp("['’]","g"),Qe=RegExp(Pe,"g"),Xe=RegExp(je+"(?="+je+")|"+Je+Ye,"g"),Ze=RegExp([Fe+"?"+Me+"+"+We+"(?="+[Ae,Fe,"$"].join("|")+")",Ue+"+"+Be+"(?="+[Ae,Fe+Ve,"$"].join("|")+")",Fe+"?"+Ve+"+"+We,Fe+"+"+Be,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,ze].join("|"),"g"),et=RegExp("["+qe+we+_e+Ce+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[M]=ot[I]=ot[j]=ot[$]=ot[D]=ot[L]=ot[F]=ot[q]=ot[V]=!0,ot[m]=ot[g]=ot[N]=ot[y]=ot[R]=ot[v]=ot[b]=ot[S]=ot[_]=ot[k]=ot[E]=ot[C]=ot[T]=ot[O]=ot[P]=!1;var it={};it[m]=it[g]=it[N]=it[R]=it[y]=it[v]=it[M]=it[I]=it[j]=it[$]=it[D]=it[_]=it[k]=it[E]=it[C]=it[T]=it[O]=it[A]=it[L]=it[F]=it[q]=it[V]=!0,it[b]=it[S]=it[P]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ct=parseInt,lt="object"==typeof global&&global&&global.Object===Object&&global,ut="object"==typeof self&&self&&self.Object===Object&&self,ft=lt||ut||Function("return this")(),dt=t&&!t.nodeType&&t,ht=dt&&e&&!e.nodeType&&e,pt=ht&&ht.exports===dt,mt=pt&<.process,gt=function(){try{return ht&&ht.require&&ht.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&>.isArrayBuffer,vt=gt&>.isDate,bt=gt&>.isMap,St=gt&>.isRegExp,wt=gt&>.isSet,_t=gt&>.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Pt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Zt(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var en=Bt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Bt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?ft:pn.defaults(ft.Object(),t,pn.pick(ft,nt))).Array,oe=t.Date,we=t.Error,_e=t.Function,ke=t.Math,Ee=t.Object,xe=t.RegExp,Ce=t.String,Te=t.TypeError,Oe=r.prototype,Ae=_e.prototype,Pe=Ee.prototype,Ne=t["__core-js_shared__"],Re=Ae.toString,Me=Pe.hasOwnProperty,Ie=0,je=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=Pe.toString,De=Re.call(Ee),Le=ft._,Fe=xe("^"+Re.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=pt?t.Buffer:o,Ve=t.Symbol,Ue=t.Uint8Array,We=qe?qe.allocUnsafe:o,Be=sn(Ee.getPrototypeOf,Ee),Ke=Ee.create,He=Pe.propertyIsEnumerable,Ye=Oe.splice,ze=Ve?Ve.isConcatSpreadable:o,Je=Ve?Ve.iterator:o,Xe=Ve?Ve.toStringTag:o,et=function(){try{var e=li(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=oe&&oe.now!==ft.Date.now&&oe.now,ut=t.setTimeout!==ft.setTimeout&&t.setTimeout,dt=ke.ceil,ht=ke.floor,mt=Ee.getOwnPropertySymbols,gt=qe?qe.isBuffer:o,$t=t.isFinite,Bt=Oe.join,mn=sn(Ee.keys,Ee),gn=ke.max,yn=ke.min,vn=oe.now,bn=t.parseInt,Sn=ke.random,wn=Oe.reverse,_n=li(t,"DataView"),kn=li(t,"Map"),En=li(t,"Promise"),xn=li(t,"Set"),Cn=li(t,"WeakMap"),Tn=li(Ee,"create"),On=Cn&&new Cn,An={},Pn=Di(_n),Nn=Di(kn),Rn=Di(En),Mn=Di(xn),In=Di(Cn),jn=Ve?Ve.prototype:o,$n=jn?jn.valueOf:o,Dn=jn?jn.toString:o;function Ln(e){if(ea(e)&&!Ws(e)&&!(e instanceof Un)){if(e instanceof Vn)return e;if(Me.call(e,"__wrapped__"))return Li(e)}return new Vn(e)}var Fn=function(){function e(){}return function(t){if(!Zs(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function qn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function sr(e,t,n,r,i,s){var a,c=1&t,l=2&t,u=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!Zs(e))return e;var f=Ws(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return To(e,a)}else{var d=di(e),h=d==S||d==w;if(Ys(e))return wo(e,c);if(d==E||d==m||h&&!i){if(a=l||h?{}:pi(e),!c)return l?function(e,t){return Oo(e,fi(e),t)}(e,function(e,t){return e&&Oo(t,Na(t),e)}(a,e)):function(e,t){return Oo(e,ui(e),t)}(e,nr(a,e))}else{if(!it[d])return i?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case N:return _o(e);case y:case v:return new o(+e);case R:return function(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case I:case j:case $:case D:case L:case F:case q:case V:return ko(e,n);case _:return new o;case k:case O:return new o(e);case C:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new o;case A:return r=e,$n?Ee($n.call(r)):{}}}(e,d,c)}}s||(s=new Yn);var p=s.get(e);if(p)return p;s.set(e,a),ia(e)?e.forEach((function(r){a.add(sr(r,t,n,r,e,s))})):ta(e)&&e.forEach((function(r,o){a.set(o,sr(r,t,n,o,e,s))}));var g=f?o:(u?l?ni:ti:l?Na:Pa)(e);return xt(g||e,(function(r,o){g&&(r=e[o=r]),Zn(a,o,sr(r,t,n,o,e,s))})),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Te(i);return Oi((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=At,s=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=Nt(t,Jt(n))),r?(i=Pt,s=!1):t.length>=200&&(i=Qt,s=!1,t=new Hn(t));e:for(;++o-1},Bn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(kn||Bn),string:new Wn}},Kn.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ai(this,e).get(e)},Kn.prototype.has=function(e){return ai(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,s),this},Hn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Bn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Bn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var ur=No(vr),fr=No(br,!0);function dr(e,t){var n=!0;return ur(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r0&&n(a)?t>1?mr(a,t-1,n,r,o):Rt(o,a):r||(o[o.length]=a)}return o}var gr=Ro(),yr=Ro(!0);function vr(e,t){return e&&gr(e,t,Pa)}function br(e,t){return e&&yr(e,t,Pa)}function Sr(e,t){return Ot(t,(function(t){return Gs(e[t])}))}function wr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&nt}function xr(e,t){return null!=e&&Me.call(e,t)}function Cr(e,t){return null!=e&&t in Ee(e)}function Tr(e,t,n){for(var i=n?Pt:At,s=e[0].length,a=e.length,c=a,l=r(a),u=1/0,f=[];c--;){var d=e[c];c&&t&&(d=Nt(d,Jt(t))),u=yn(d.length,u),l[c]=!n&&(t||s>=120&&d.length>=120)?new Hn(c&&d):o}d=e[0];var h=-1,p=l[0];e:for(;++h=a?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Ur(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)a!==e&&Ye.call(a,c,1),Ye.call(e,c,1);return e}function Br(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?Ye.call(e,o,1):co(e,o)}}return e}function Kr(e,t){return e+ht(Sn()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Ai(Ei(e,t,nc),e+"")}function zr(e){return Jn(Fa(e))}function Jr(e,t){var n=Fa(e);return Ri(n,ir(t,0,n.length))}function Gr(e,t,n,r){if(!Zs(e))return e;for(var i=-1,s=(t=yo(t,e)).length,a=s-1,c=e;null!=c&&++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o>>1,s=e[i];null!==s&&!aa(s)&&(n?s<=t:s=200){var l=t?null:Yo(e);if(l)return cn(l);s=!1,o=Qt,c=new Hn}else c=t?[]:a;e:for(;++r=r?e:eo(e,t,n)}var So=st||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _o(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ko(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=aa(e),a=t!==o,c=null===t,l=t==t,u=aa(t);if(!c&&!u&&!s&&e>t||s&&a&&l&&!c&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!s&&!u&&e1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&yi(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Ee(t);++r-1?i[s?t[a]:a]:o}}function Do(e){return ei((function(t){var n=t.length,r=n,s=Vn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Te(i);if(s&&!c&&"wrapper"==oi(a))var c=new Vn([],!0)}for(r=c?r:n;++r1&&S.reverse(),h&&fc))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,p=2&n?new Hn:o;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return xt(p,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Ni(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,os(e,n)}));function fs(e){var t=Ln(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var hs=ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ds,args:[i],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ps=Ao((function(e,t,n){Me.call(e,n)?++e[n]:rr(e,n,1)})),ms=$o(Ui),gs=$o(Wi);function ys(e,t){return(Ws(e)?xt:ur)(e,si(t,3))}function vs(e,t){return(Ws(e)?Ct:fr)(e,si(t,3))}var bs=Ao((function(e,t,n){Me.call(e,n)?e[n].push(t):rr(e,n,[t])})),Ss=Yr((function(e,t,n){var o=-1,i="function"==typeof t,s=Ks(e)?r(e.length):[];return ur(e,(function(e){s[++o]=i?kt(t,e,n):Or(e,t,n)})),s})),ws=Ao((function(e,t,n){rr(e,n,t)}));function _s(e,t){return(Ws(e)?Nt:$r)(e,si(t,3))}var ks=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Es=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,mr(t,1),[])})),xs=lt||function(){return ft.Date.now()};function Cs(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,l,o,o,o,o,t)}function Ts(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=ha(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Os=Yr((function(e,t,n){var r=1;if(n.length){var o=an(n,ii(Os));r|=c}return Jo(e,r,t,n,o)})),As=Yr((function(e,t,n){var r=3;if(n.length){var o=an(n,ii(As));r|=c}return Jo(t,r,e,n,o)}));function Ps(e,t,n){var r,s,a,c,l,u,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Te(i);function m(t){var n=r,i=s;return r=s=o,f=t,c=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||h&&e-f>=a}function y(){var e=xs();if(g(e))return v(e);l=Oi(y,function(e){var n=t-(e-u);return h?yn(n,a-(e-f)):n}(e))}function v(e){return l=o,p&&r?m(e):(r=s=o,c)}function b(){var e=xs(),n=g(e);if(r=arguments,s=this,u=e,n){if(l===o)return function(e){return f=e,l=Oi(y,t),d?m(e):c}(u);if(h)return So(l),l=Oi(y,t),m(u)}return l===o&&(l=Oi(y,t)),c}return t=ma(t)||0,Zs(n)&&(d=!!n.leading,a=(h="maxWait"in n)?gn(ma(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){l!==o&&So(l),f=0,r=u=s=l=o},b.flush=function(){return l===o?c:v(xs())},b}var Ns=Yr((function(e,t){return cr(e,1,t)})),Rs=Yr((function(e,t,n){return cr(e,ma(t)||0,n)}));function Ms(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ms.Cache||Kn),n}function Is(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ms.Cache=Kn;var js=vo((function(e,t){var n=(t=1==t.length&&Ws(t[0])?Nt(t[0],Jt(si())):Nt(mr(t,1),Jt(si()))).length;return Yr((function(r){for(var o=-1,i=yn(r.length,n);++o=t})),Us=Ar(function(){return arguments}())?Ar:function(e){return ea(e)&&Me.call(e,"callee")&&!He.call(e,"callee")},Ws=r.isArray,Bs=yt?Jt(yt):function(e){return ea(e)&&kr(e)==N};function Ks(e){return null!=e&&Xs(e.length)&&!Gs(e)}function Hs(e){return ea(e)&&Ks(e)}var Ys=gt||mc,zs=vt?Jt(vt):function(e){return ea(e)&&kr(e)==v};function Js(e){if(!ea(e))return!1;var t=kr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Gs(e){if(!Zs(e))return!1;var t=kr(e);return t==S||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==ha(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Zs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Jt(bt):function(e){return ea(e)&&di(e)==_};function na(e){return"number"==typeof e||ea(e)&&kr(e)==k}function ra(e){if(!ea(e)||kr(e)!=E)return!1;var t=Be(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==De}var oa=St?Jt(St):function(e){return ea(e)&&kr(e)==C},ia=wt?Jt(wt):function(e){return ea(e)&&di(e)==T};function sa(e){return"string"==typeof e||!Ws(e)&&ea(e)&&kr(e)==O}function aa(e){return"symbol"==typeof e||ea(e)&&kr(e)==A}var ca=_t?Jt(_t):function(e){return ea(e)&&Xs(e.length)&&!!ot[kr(e)]},la=Bo(jr),ua=Bo((function(e,t){return e<=t}));function fa(e){if(!e)return[];if(Ks(e))return sa(e)?fn(e):To(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=di(e);return(t==_?on:t==T?cn:Fa)(e)}function da(e){return e?(e=ma(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ha(e){var t=da(e),n=t%1;return t==t?n?t-n:t:0}function pa(e){return e?ir(ha(e),0,h):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return d;if(Zs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zt(e);var n=pe.test(e);return n||ge.test(e)?ct(e.slice(2),n?2:8):he.test(e)?d:+e}function ga(e){return Oo(e,Na(e))}function ya(e){return null==e?"":so(e)}var va=Po((function(e,t){if(wi(t)||Ks(t))Oo(t,Pa(t),e);else for(var n in t)Me.call(t,n)&&Zn(e,n,t[n])})),ba=Po((function(e,t){Oo(t,Na(t),e)})),Sa=Po((function(e,t,n,r){Oo(t,Na(t),e,r)})),wa=Po((function(e,t,n,r){Oo(t,Pa(t),e,r)})),_a=ei(or),ka=Yr((function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n1),t})),Oo(e,ni(e),n),r&&(n=sr(n,7,Xo));for(var o=t.length;o--;)co(n,t[o]);return n})),ja=ei((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Ca(e,n)}))}(e,t)}));function $a(e,t){if(null==e)return{};var n=Nt(ni(e),(function(e){return[e]}));return t=si(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Da=zo(Pa),La=zo(Na);function Fa(e){return null==e?[]:Gt(e,Pa(e))}var qa=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return Ja(ya(e).toLowerCase())}function Ua(e){return(e=ya(e))&&e.replace(ve,en).replace(Qe,"")}var Wa=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ba=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ka=Mo("toLowerCase"),Ha=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ya=Io((function(e,t,n){return e+(n?" ":"")+Ja(t)})),za=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ja=Mo("toUpperCase");function Ga(e,t,n){return e=ya(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Qa=Yr((function(e,t){try{return kt(e,o,t)}catch(e){return Js(e)?e:new we(e)}})),Xa=ei((function(e,t){return xt(t,(function(t){t=$i(t),rr(e,t,Os(e[t],e))})),e}));function Za(e){return function(){return e}}var ec=Do(),tc=Do(!0);function nc(e){return e}function rc(e){return Mr("function"==typeof e?e:sr(e,1))}var oc=Yr((function(e,t){return function(n){return Or(n,e,t)}})),ic=Yr((function(e,t){return function(n){return Or(e,n,t)}}));function sc(e,t,n){var r=Pa(t),o=Sr(t,r);null!=n||Zs(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Sr(t,Pa(t)));var i=!(Zs(n)&&"chain"in n&&!n.chain),s=Gs(e);return xt(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function ac(){}var cc=Vo(Nt),lc=Vo(Tt),uc=Vo(jt);function fc(e){return vi(e)?Wt($i(e)):function(e){return function(t){return wr(t,e)}}(e)}var dc=Wo(),hc=Wo(!0);function pc(){return[]}function mc(){return!1}var gc,yc=qo((function(e,t){return e+t}),0),vc=Ho("ceil"),bc=qo((function(e,t){return e/t}),1),Sc=Ho("floor"),wc=qo((function(e,t){return e*t}),1),_c=Ho("round"),kc=qo((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=ha(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=Cs,Ln.assign=va,Ln.assignIn=ba,Ln.assignInWith=Sa,Ln.assignWith=wa,Ln.at=_a,Ln.before=Ts,Ln.bind=Os,Ln.bindAll=Xa,Ln.bindKey=As,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},Ln.chain=fs,Ln.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:gn(ha(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,c=r(dt(i/t));si?0:i+n),(r=r===o||r>i?i:ha(r))<0&&(r+=i),r=n>r?0:pa(r);n>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=so(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:gn(ha(t),0),Yr((function(n){var r=n[t],o=bo(n,0,t);return r&&Rt(o,r),kt(e,this,o)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:ha(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:ha(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?uo(e,si(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?uo(e,si(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return Zs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ps(e,t,{leading:r,maxWait:t,trailing:o})},Ln.thru=ds,Ln.toArray=fa,Ln.toPairs=Da,Ln.toPairsIn=La,Ln.toPath=function(e){return Ws(e)?Nt(e,$i):aa(e)?[e]:To(ji(ya(e)))},Ln.toPlainObject=ga,Ln.transform=function(e,t,n){var r=Ws(e),o=r||Ys(e)||ca(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Zs(e)&&Gs(i)?Fn(Be(e)):{}}return(o?xt:vr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Ln.unary=function(e){return Cs(e,1)},Ln.union=es,Ln.unionBy=ts,Ln.unionWith=ns,Ln.uniq=function(e){return e&&e.length?ao(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?ao(e,si(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Ln.unset=function(e,t){return null==e||co(e,t)},Ln.unzip=rs,Ln.unzipWith=os,Ln.update=function(e,t,n){return null==e?e:lo(e,t,go(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,go(n),r)},Ln.values=Fa,Ln.valuesIn=function(e){return null==e?[]:Gt(e,Na(e))},Ln.without=is,Ln.words=Ga,Ln.wrap=function(e,t){return $s(go(t),e)},Ln.xor=ss,Ln.xorBy=as,Ln.xorWith=cs,Ln.zip=ls,Ln.zipObject=function(e,t){return po(e||[],t||[],Zn)},Ln.zipObjectDeep=function(e,t){return po(e||[],t||[],Gr)},Ln.zipWith=us,Ln.entries=Da,Ln.entriesIn=La,Ln.extend=ba,Ln.extendWith=Sa,sc(Ln,Ln),Ln.add=yc,Ln.attempt=Qa,Ln.camelCase=qa,Ln.capitalize=Va,Ln.ceil=vc,Ln.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ma(n))==n?n:0),t!==o&&(t=(t=ma(t))==t?t:0),ir(ma(e),t,n)},Ln.clone=function(e){return sr(e,4)},Ln.cloneDeep=function(e){return sr(e,5)},Ln.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Ln.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Ln.conformsTo=function(e,t){return null==t||ar(e,t,Pa(t))},Ln.deburr=Ua,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=bc,Ln.endsWith=function(e,t,n){e=ya(e),t=so(t);var r=e.length,i=n=n===o?r:ir(ha(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Ln.eq=Fs,Ln.escape=function(e){return(e=ya(e))&&z.test(e)?e.replace(H,tn):e},Ln.escapeRegExp=function(e){return(e=ya(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=Ws(e)?Tt:dr;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Ln.find=ms,Ln.findIndex=Ui,Ln.findKey=function(e,t){return Dt(e,si(t,3),vr)},Ln.findLast=gs,Ln.findLastIndex=Wi,Ln.findLastKey=function(e,t){return Dt(e,si(t,3),br)},Ln.floor=Sc,Ln.forEach=ys,Ln.forEachRight=vs,Ln.forIn=function(e,t){return null==e?e:gr(e,si(t,3),Na)},Ln.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Na)},Ln.forOwn=function(e,t){return e&&vr(e,si(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,si(t,3))},Ln.get=xa,Ln.gt=qs,Ln.gte=Vs,Ln.has=function(e,t){return null!=e&&hi(e,t,xr)},Ln.hasIn=Ca,Ln.head=Ki,Ln.identity=nc,Ln.includes=function(e,t,n,r){e=Ks(e)?e:Fa(e),n=n&&!r?ha(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),sa(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ha(n);return o<0&&(o=gn(r+o,0)),Ft(e,t,o)},Ln.inRange=function(e,t,n){return t=da(t),n===o?(n=t,t=0):n=da(n),function(e,t,n){return e>=yn(t,n)&&e=-9007199254740991&&e<=f},Ln.isSet=ia,Ln.isString=sa,Ln.isSymbol=aa,Ln.isTypedArray=ca,Ln.isUndefined=function(e){return e===o},Ln.isWeakMap=function(e){return ea(e)&&di(e)==P},Ln.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==kr(e)},Ln.join=function(e,t){return null==e?"":Bt.call(e,t)},Ln.kebabCase=Wa,Ln.last=Ji,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ha(n))<0?gn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Lt(e,Vt,i,!0)},Ln.lowerCase=Ba,Ln.lowerFirst=Ka,Ln.lt=la,Ln.lte=ua,Ln.max=function(e){return e&&e.length?hr(e,nc,Er):o},Ln.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),Er):o},Ln.mean=function(e){return Ut(e,nc)},Ln.meanBy=function(e,t){return Ut(e,si(t,2))},Ln.min=function(e){return e&&e.length?hr(e,nc,jr):o},Ln.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),jr):o},Ln.stubArray=pc,Ln.stubFalse=mc,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=wc,Ln.nth=function(e,t){return e&&e.length?qr(e,ha(t)):o},Ln.noConflict=function(){return ft._===this&&(ft._=Le),this},Ln.noop=ac,Ln.now=xs,Ln.pad=function(e,t,n){e=ya(e);var r=(t=ha(t))?un(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(ht(o),n)+e+Uo(dt(o),n)},Ln.padEnd=function(e,t,n){e=ya(e);var r=(t=ha(t))?un(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Sn();return yn(e+i*(t-e+at("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Ln.reduce=function(e,t,n){var r=Ws(e)?Mt:Kt,o=arguments.length<3;return r(e,si(t,4),n,o,ur)},Ln.reduceRight=function(e,t,n){var r=Ws(e)?It:Kt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Ln.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ha(t),Hr(ya(e),t)},Ln.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++rf)return[];var n=h,r=yn(e,h);t=si(t),e-=h;for(var o=Yt(r,t);++n=s)return e;var c=n-un(r);if(c<1)return r;var l=a?bo(a,0,c).join(""):e.slice(0,c);if(i===o)return l+r;if(a&&(c+=l.length-c),oa(i)){if(e.slice(c).search(i)){var u,f=l;for(i.global||(i=xe(i.source,ya(de.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var d=u.index;l=l.slice(0,d===o?c:d)}}else if(e.indexOf(so(i),c)!=c){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r},Ln.unescape=function(e){return(e=ya(e))&&Y.test(e)?e.replace(K,hn):e},Ln.uniqueId=function(e){var t=++Ie;return ya(e)+t},Ln.upperCase=za,Ln.upperFirst=Ja,Ln.each=ys,Ln.eachRight=vs,Ln.first=Ki,sc(Ln,(gc={},vr(Ln,(function(e,t){Me.call(Ln.prototype,t)||(gc[t]=e)})),gc),{chain:!1}),Ln.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),xt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:gn(ha(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(nc)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Or(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Is(si(e)))},Un.prototype.slice=function(e,t){e=ha(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ha(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(h)},vr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Ln[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Ln.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Un,l=a[0],u=c||Ws(t),f=function(e){var t=i.apply(Ln,Rt([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,h=!!this.__actions__.length,p=s&&!d,m=c&&!h;if(!s&&u){t=m?t:new Un(this);var g=e.apply(t,a);return g.__actions__.push({func:ds,args:[f],thisArg:o}),new Vn(g,d)}return p&&m?e.apply(this,a):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ws(o)?o:[],e)}return this[n]((function(n){return t.apply(Ws(n)?n:[],e)}))}})),vr(Un.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";Me.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Lo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Li(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ds,args:[Zi],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(Zi)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,Je&&(Ln.prototype[Je]=function(){return this}),Ln}();ft._=pn,(r=function(){return pn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},42775:(e,t,n)=>{(()=>{var e={46:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,{signal:n}={}){return new Promise(((r,o)=>{function i(){null==n||n.removeEventListener("abort",i),e.removeListener(t,s),e.removeListener("error",a)}function s(...e){i(),r(e)}function a(e){i(),o(e)}null==n||n.addEventListener("abort",i),e.on(t,s),e.on("error",a)}))}},54:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=n(361),i=r(n(374)),s=r(n(304)),a=i.default("agent-base");function c(){const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some((e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:")))}function l(e,t){return new l.Agent(e,t)}!function(e){class t extends o.EventEmitter{constructor(e,t){super();let n=t;"function"==typeof e?this.callback=e:e&&(n=e),this.timeout=null,n&&"number"==typeof n.timeout&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:c()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:c()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);"boolean"!=typeof n.secureEndpoint&&(n.secureEndpoint=c()),null==n.host&&(n.host="localhost"),null==n.port&&(n.port=n.secureEndpoint?443:80),null==n.protocol&&(n.protocol=n.secureEndpoint?"https:":"http:"),n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,o=null;const i=n.timeout||this.timeout,l=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},u=()=>{o=null,r=!0;const e=new Error(`A "socket" was not created for HTTP request before ${i}ms`);e.code="ETIMEOUT",l(e)},f=e=>{r||(null!==o&&(clearTimeout(o),o=null),l(e))},d=t=>{if(r)return;if(null!=o&&(clearTimeout(o),o=null),i=t,Boolean(i)&&"function"==typeof i.addRequest)return a("Callback returned another Agent instance %o",t.constructor.name),void t.addRequest(e,n);var i;if(t)return t.once("free",(()=>{this.freeSocket(t,n)})),void e.onSocket(t);const s=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);l(s)};if("function"==typeof this.callback){this.promisifiedCallback||(this.callback.length>=3?(a("Converting legacy callback function to promise"),this.promisifiedCallback=s.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof i&&i>0&&(o=setTimeout(u,i)),"port"in n&&"number"!=typeof n.port&&(n.port=Number(n.port));try{a("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(d,f)}catch(e){Promise.reject(e).catch(f)}}else l(new Error("`callback` is not defined"))}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype}(l||(l={})),e.exports=l},304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){return new Promise(((r,o)=>{e.call(this,t,n,((e,t)=>{e?o(e):r(t)}))}))}}},370:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(n(808)),s=o(n(404)),a=o(n(310)),c=o(n(374)),l=o(n(46)),u=n(54),f=(0,c.default)("http-proxy-agent");class d extends u.Agent{constructor(e){let t;if(t="string"==typeof e?a.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");f("Creating new HttpProxyAgent instance: %o",t),super(t);const n=Object.assign({},t);var r;this.secureProxy=t.secureProxy||"string"==typeof(r=n.protocol)&&/^https:?$/i.test(r),n.host=n.hostname||n.host,"string"==typeof n.port&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,t){return r(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:r}=this,o=a.default.parse(e.path);let c;if(o.protocol||(o.protocol="http:"),o.hostname||(o.hostname=t.hostname||t.host||null),null==o.port&&(t.port,1)&&(o.port=String(t.port)),"80"===o.port&&(o.port=""),e.path=a.default.format(o),n.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(n.auth).toString("base64")}`),r?(f("Creating `tls.Socket`: %o",n),c=s.default.connect(n)):(f("Creating `net.Socket`: %o",n),c=i.default.connect(n)),e._header){let t,n;f("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(f("Patching connection write() output buffer with updated header"),t=e.output[0],n=t.indexOf("\r\n\r\n")+4,e.output[0]=e._header+t.substring(n),f("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(f("Patching connection write() output buffer with updated header"),t=e.outputData[0].data,n=t.indexOf("\r\n\r\n")+4,e.outputData[0].data=e._header+t.substring(n),f("Output buffer: %o",e.outputData[0].data))}return yield(0,l.default)(c,"connect"),c}))}}t.default=d},201:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(370));function o(e){return new r.default(e)}!function(e){e.HttpProxyAgent=r.default,e.prototype=r.default.prototype}(o||(o={})),e.exports=o},146:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(n(808)),s=o(n(404)),a=o(n(310)),c=o(n(491)),l=o(n(374)),u=n(54),f=o(n(829)),d=l.default("https-proxy-agent:agent");class h extends u.Agent{constructor(e){let t;if(t="string"==typeof e?a.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");d("creating new HttpsProxyAgent instance: %o",t),super(t);const n=Object.assign({},t);var r;this.secureProxy=t.secureProxy||"string"==typeof(r=n.protocol)&&/^https:?$/i.test(r),n.host=n.hostname||n.host,"string"==typeof n.port&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,t){return r(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:r}=this;let o;r?(d("Creating `tls.Socket`: %o",n),o=s.default.connect(n)):(d("Creating `net.Socket`: %o",n),o=i.default.connect(n));const a=Object.assign({},n.headers);let l=`CONNECT ${t.host}:${t.port} HTTP/1.1\r\n`;n.auth&&(a["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:u,port:h,secureEndpoint:m}=t;(function(e,t){return Boolean(!t&&80===e||t&&443===e)})(h,m)||(u+=`:${h}`),a.Host=u,a.Connection="close";for(const e of Object.keys(a))l+=`${e}: ${a[e]}\r\n`;const g=f.default(o);o.write(`${l}\r\n`);const{statusCode:y,buffered:v}=yield g;if(200===y){if(e.once("socket",p),t.secureEndpoint){const e=t.servername||t.host;if(!e)throw new Error('Could not determine "servername"');return d("Upgrading socket connection to TLS"),s.default.connect(Object.assign(Object.assign({},function(e,...t){const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}(t,"host","hostname","path","port")),{socket:o,servername:e}))}return o}o.destroy();const b=new i.default.Socket;return b.readable=!0,e.once("socket",(e=>{d("replaying proxy buffer for failed request"),c.default(e.listenerCount("data")>0),e.push(v),e.push(null)})),b}))}}function p(e){e.resume()}t.default=h},18:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(146));function o(e){return new r.default(e)}!function(e){e.HttpsProxyAgent=r.default,e.prototype=r.default.prototype}(o||(o={})),e.exports=o},829:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(374)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise(((t,n)=>{let r=0;const i=[];function s(){const n=e.read();n?function(e){i.push(e),r+=e.length;const n=Buffer.concat(i,r);if(-1===n.indexOf("\r\n\r\n"))return o("have not received end of HTTP headers yet..."),void s();const a=n.toString("ascii",0,n.indexOf("\r\n")),c=+a.split(" ")[1];o("got proxy server response: %o",a),t({statusCode:c,buffered:n})}(n):e.once("readable",s)}function a(e){o("onclose had error %o",e)}function c(){o("onend")}e.on("error",(function t(r){e.removeListener("end",c),e.removeListener("error",t),e.removeListener("close",a),e.removeListener("readable",s),o("onerror %o",r),n(r)})),e.on("close",a),e.on("end",c),s()}))}},539:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=300&&r.statusCode<400&&e.followRedirects&&e.followRedirects>0&&r.headers.location){var i=r.headers.location;i.startsWith("/")&&(i=(0,o.format)({protocol:a.protocol,hostname:a.hostname,port:a.port,pathname:i})),n(m(function(e){for(var t=[],n=1;n=100&&c<200||204===c||304===c))){var p={flush:a.constants.Z_SYNC_FLUSH,finishFlush:a.constants.Z_SYNC_FLUSH};if("gzip"===h){var m=a.createGunzip(p);l.pipe(m),u=m}else if("deflate"===h){var g=a.createInflate(p);l.pipe(g),u=g}}var y=[];u.on("data",(function(e){return y.push(e)})),u.on("end",(function(){if(!f){if(f=!0,e.followRedirects>0&&(l.statusCode>=300&&l.statusCode<=303||307===l.statusCode)){var n=l.headers.location;if(n.startsWith("/")){var s=(0,o.parse)(e.url);n=(0,o.format)({protocol:s.protocol,hostname:s.hostname,port:s.port,pathname:n})}if(n){var a={type:e.type,url:n,user:e.user,password:e.password,headers:e.headers,timeout:e.timeout,followRedirects:e.followRedirects-1,data:e.data};return void(0,t.xhr)(a).then(r,i)}}var c=Buffer.concat(y),u={responseText:c.toString(),body:c,status:l.statusCode,headers:l.headers||{}};l.statusCode>=200&&l.statusCode<300||1223===l.statusCode?r(u):i(u)}})),u.on("error",(function(t){var n={responseText:d("error","Unable to access {0}. Error: {1}",e.url,t.message),body:Buffer.concat(y),status:500,headers:{}};f=!0,i(n)}))}))}),(function(t){var n;return n=e.agent?d("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",e.url,t.message):d("error.cannot.connect","Unable to connect to {0}. Error: {1}",e.url,t.message),Promise.reject({responseText:n,body:Buffer.concat([]),status:404,headers:{}})}))},t.getErrorStatusDescription=function(e){if(!(e<400))switch(e){case 400:return d("status.400","Bad request. The request cannot be fulfilled due to bad syntax.");case 401:return d("status.401","Unauthorized. The server is refusing to respond.");case 403:return d("status.403","Forbidden. The server is refusing to respond.");case 404:return d("status.404","Not Found. The requested location could not be found.");case 405:return d("status.405","Method not allowed. A request was made using a request method not supported by that location.");case 406:return d("status.406","Not Acceptable. The server can only generate a response that is not accepted by the client.");case 407:return d("status.407","Proxy Authentication Required. The client must first authenticate itself with the proxy.");case 408:return d("status.408","Request Timeout. The server timed out waiting for the request.");case 409:return d("status.409","Conflict. The request could not be completed because of a conflict in the request.");case 410:return d("status.410","Gone. The requested page is no longer available.");case 411:return d("status.411",'Length Required. The "Content-Length" is not defined.');case 412:return d("status.412","Precondition Failed. The precondition given in the request evaluated to false by the server.");case 413:return d("status.413","Request Entity Too Large. The server will not accept the request, because the request entity is too large.");case 414:return d("status.414","Request-URI Too Long. The server will not accept the request, because the URL is too long.");case 415:return d("status.415","Unsupported Media Type. The server will not accept the request, because the media type is not supported.");case 500:return d("status.500","Internal Server Error.");case 501:return d("status.501","Not Implemented. The server either does not recognize the request method, or it lacks the ability to fulfill the request.");case 503:return d("status.503","Service Unavailable. The server is currently unavailable (overloaded or down).");default:return d("status.416","HTTP status code {0}",e)}}},800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var r,o,i,s=n(926);function a(e){return void 0!==e}function c(e,n){return t.isPseudo&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var r=t[0],o=n[r],i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}))}(i=t.MessageFormat||(t.MessageFormat={})).file="file",i.bundle="bundle",i.both="both",(o=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",o.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&a(t.key)&&a(t.comment)}}(r||(r={})),t.isDefined=a,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var n=[],r=2;r{"use strict";var n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=void 0;var r=n(17),o=n(147),i=n(926),s=n(800),a=n(800);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}});var c,l,u=Object.prototype.toString;function f(e){return"[object String]"===u.call(e)}function d(e){return JSON.parse(o.readFileSync(e,"utf8"))}function h(e){return function(t,n){for(var r=[],o=2;o=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):s.format(e[t],r):f(n)?(console.warn("Message "+n+" didn't get externalized correctly."),s.format(n,r)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function p(e,t){return c[e]=t,t}function m(e){try{return function(e){var t=d(r.join(e,"nls.metadata.json")),n=Object.create(null);for(var o in t){var i=t[o];n[o]=i.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function g(e,t){var n;if(!0===l.languagePackSupport&&void 0!==l.cacheRoot&&void 0!==l.languagePackId&&void 0!==l.translationsConfigFile&&void 0!==l.translationsConfig)try{n=function(e,t){var n,i,s,a=r.join(l.cacheRoot,e.id+"-"+e.hash+".json"),c=!1,u=!1;try{return n=JSON.parse(o.readFileSync(a,{encoding:"utf8",flag:"r"})),i=a,s=new Date,o.utimes(i,s,s,(function(){})),n}catch(e){if("ENOENT"===e.code)u=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),o.unlink(a,(function(e){e&&console.error("Deleting corrupted bundle "+a+" failed.")})),c=!0}}if(n=function(e,t){var n=l.translationsConfig[e.id];if(n){var o=d(n).contents,i=d(r.join(t,"nls.metadata.json")),s=Object.create(null);for(var a in i){var c=i[a],u=o[e.outDir+"/"+a];if(u){for(var h=[],p=0;p0?t.substring(0,i):void 0}if(void 0===t&&(n=r.join(e,"nls.bundle.json"),o.existsSync(n)))return n}(t);if(i)try{return d(i)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=m(t)}return n}function y(e){if(!e)return s.localize;var t=r.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),l.messageFormat===s.MessageFormat.both||l.messageFormat===s.MessageFormat.bundle){var n=function(e){for(var t,n=r.dirname(e);t=r.join(n,"nls.metadata.header.json"),!o.existsSync(t);){var i=r.dirname(n);if(i===n){t=void 0;break}n=i}return t}(e);if(n){var i=r.dirname(n),a=c[i];if(void 0===a)try{var u=JSON.parse(o.readFileSync(n,"utf8"));try{var f=g(u,i);a=p(i,f?{header:u,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),a=p(i,null)}}catch(e){console.error("Failed to read header file",e),a=p(i,null)}if(a){var m=e.substr(i.length+1).replace(/\\/g,"/"),y=a.nlsBundle[m];return void 0===y?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):h(y)}}}if(l.messageFormat===s.MessageFormat.both||l.messageFormat===s.MessageFormat.file)try{var v=d(function(e){var t;if(l.cacheLanguageResolution&&t);else{if(s.isPseudo||!l.language)t=".nls.json";else for(var n=l.language;n;){var r=".nls."+n+".json";if(o.existsSync(e+r)){t=r;break}var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(t=".nls.json",n=null)}l.cacheLanguageResolution}return e+t}(e));return Array.isArray(v)?h(v):s.isDefined(v.messages)&&s.isDefined(v.keys)?h(v.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}function v(e){return e&&(f(e.locale)&&(l.locale=e.locale.toLowerCase(),l.language=l.locale,c=Object.create(null)),void 0!==e.messageFormat&&(l.messageFormat=e.messageFormat),e.bundleFormat===s.BundleFormat.standalone&&!0===l.languagePackSupport&&(l.languagePackSupport=!1)),s.setPseudo("pseudo"===l.locale),y}!function(){if(l={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:s.MessageFormat.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];f(n)&&(t=n)}if(f(e.locale)&&(l.locale=e.locale.toLowerCase()),void 0===t?l.language=l.locale:"en"!==t&&(l.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(l.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(l.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(l.languagePackId=e._languagePackId),f(e._translationsConfigFile)){l.translationsConfigFile=e._translationsConfigFile;try{l.translationsConfig=d(l.translationsConfigFile)}catch(t){if(e._corruptedFile){var i=r.dirname(e._corruptedFile);o.exists(i,(function(t){t&&o.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}s.setPseudo("pseudo"===l.locale),c=Object.create(null)}(),t.loadMessageBundle=y,t.config=v,i.default.install(Object.freeze({loadMessageBundle:y,config:v}))},374:(e,t)=>{function n(){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n}},491:e=>{"use strict";e.exports=n(39491)},361:e=>{"use strict";e.exports=n(82361)},147:e=>{"use strict";e.exports=n(57147)},685:e=>{"use strict";e.exports=n(13685)},687:e=>{"use strict";e.exports=n(95687)},808:e=>{"use strict";e.exports=n(41808)},17:e=>{"use strict";e.exports=n(71017)},404:e=>{"use strict";e.exports=n(24404)},310:e=>{"use strict";e.exports=n(57310)},796:e=>{"use strict";e.exports=n(59796)}},r={},o=function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n].call(i.exports,i,i.exports,t),i.exports}(539),i=t;for(var s in o)i[s]=o[s];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})()},34049:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ClientCapabilities:()=>d,CodeAction:()=>h.CodeAction,CodeActionContext:()=>h.CodeActionContext,CodeActionKind:()=>h.CodeActionKind,Color:()=>h.Color,ColorInformation:()=>h.ColorInformation,ColorPresentation:()=>h.ColorPresentation,Command:()=>h.Command,CompletionItem:()=>h.CompletionItem,CompletionItemKind:()=>h.CompletionItemKind,CompletionItemTag:()=>h.CompletionItemTag,CompletionList:()=>h.CompletionList,Diagnostic:()=>h.Diagnostic,DiagnosticSeverity:()=>h.DiagnosticSeverity,DocumentHighlight:()=>h.DocumentHighlight,DocumentHighlightKind:()=>h.DocumentHighlightKind,DocumentLink:()=>h.DocumentLink,DocumentSymbol:()=>h.DocumentSymbol,ErrorCode:()=>f,FoldingRange:()=>h.FoldingRange,FoldingRangeKind:()=>h.FoldingRangeKind,Hover:()=>h.Hover,InsertTextFormat:()=>h.InsertTextFormat,Location:()=>h.Location,MarkedString:()=>h.MarkedString,MarkupContent:()=>h.MarkupContent,MarkupKind:()=>h.MarkupKind,Position:()=>h.Position,Range:()=>h.Range,SelectionRange:()=>h.SelectionRange,SymbolInformation:()=>h.SymbolInformation,SymbolKind:()=>h.SymbolKind,TextDocument:()=>p.TextDocument,TextDocumentEdit:()=>h.TextDocumentEdit,TextEdit:()=>h.TextEdit,VersionedTextDocumentIdentifier:()=>h.VersionedTextDocumentIdentifier,WorkspaceEdit:()=>h.WorkspaceEdit,getLanguageService:()=>Ae});var r=n(60516);function o(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n0?e.lastIndexOf(t)===n:0===n&&e===t}function u(e){return c(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}var f,d,h=n(91674),p=n(31040);!function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"}(f||(f={})),function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[h.MarkupKind.Markdown,h.MarkupKind.PlainText],commitCharactersSupport:!0}}}}}(d||(d={}));var m,g,y=n(8796),v=(m=function(e,t){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},m(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=y.loadMessageBundle(),S={"color-hex":{errorMessage:b("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:b("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:b("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:b("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:b("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},w=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),_=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="null",r.value=null,r}return v(t,e),t}(w),k=function(e){function t(t,n,r){var o=e.call(this,t,r)||this;return o.type="boolean",o.value=n,o}return v(t,e),t}(w),E=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}return v(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(w),x=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}return v(t,e),t}(w),C=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type="string",o.value="",o}return v(t,e),t}(w),T=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.type="property",o.colonOffset=-1,o.keyNode=r,o}return v(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(w),O=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}return v(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(w);function A(e){return a(e)?e?{}:{not:{}}:e}!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(g||(g={}));var P=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||j(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),N=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),R=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t=e.offset&&t=0;)s.splice(t,1),t=s.indexOf(e)};if(t.properties)for(var g=0,y=Object.keys(t.properties);g0)for(var I=0,j=s;It.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:b("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),i(t.minProperties)&&e.properties.length=o.length&&n.propertiesValueMatches++}if(e.items.length>o.length)if("object"==typeof t.additionalItems)for(var l=o.length;lt.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:b("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var g=M(e),y=g.some((function(e,t){return t!==g.lastIndexOf(e)}));y&&n.problems.push({location:{offset:e.offset,length:e.length},message:b("uniqueItemsWarning","Array has duplicate items.")})}}(c,t,n,r);break;case"string":!function(e,t,n,r){if(i(t.minLength)&&e.value.lengtht.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:b("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),"string"==typeof t.pattern&&(u(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||b("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);s?s[2]||"uri"!==t.format||(o=b("uriSchemeMissing","URI with a scheme is expected.")):o=b("uriMissing","URI is expected.")}else o=b("uriEmpty","URI expected.");o&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||b("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var a=S[t.format];e.value&&a.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||a.errorMessage})}}(c,t,n);break;case"number":!function(e,t,n,r){var o=e.value;function s(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(i(t.multipleOf)){var c=-1;if(Number.isInteger(t.multipleOf))c=o%t.multipleOf;else{var l=s(t.multipleOf),u=s(o);if(l&&u){var f=Math.pow(10,Math.abs(u.multiplier-l.multiplier));u.multiplier=m&&n.problems.push({location:{offset:e.offset,length:e.length},message:b("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",m)});var g=h(t.minimum,t.exclusiveMinimum);i(g)&&oy&&n.problems.push({location:{offset:e.offset,length:e.length},message:b("maximumWarning","Value is above the maximum of {0}.",y)})}(c,t,n);break;case"property":return D(c.valueNode,t,n,r)}!function(){function e(e){return c.type===e||"integer"===e&&"number"===c.type&&c.isInteger}if(Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:c.offset,length:c.length},message:t.errorMessage||b("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:c.offset,length:c.length},message:t.errorMessage||b("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var i=0,a=t.allOf;i0?i={schema:l,validationResult:u,matchingSchemas:f}:0===d&&(i.matchingSchemas.merge(f),i.validationResult.mergeEnumValues(u))}else i.matchingSchemas.merge(f),i.validationResult.propertiesMatches+=u.propertiesMatches,i.validationResult.propertiesValueMatches+=u.propertiesValueMatches;else i={schema:l,validationResult:u,matchingSchemas:f}}return o.length>1&&t&&n.problems.push({location:{offset:c.offset,length:1},message:b("oneOfWarning","Matches multiple schemas when only one must validate.")}),i&&(n.merge(i.validationResult),n.propertiesMatches+=i.validationResult.propertiesMatches,n.propertiesValueMatches+=i.validationResult.propertiesValueMatches,r.merge(i.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&v(t.anyOf,!1),Array.isArray(t.oneOf)&&v(t.oneOf,!0);var S=function(e){var t=new R,o=r.newSub();D(c,A(e),t,o),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(o)},w=A(t.if);if(w&&function(e,t,n){var o=A(e),i=new R,s=r.newSub();D(c,o,i,s),r.merge(s),i.hasProblems()?n&&S(n):t&&S(t)}(w,A(t.then),A(t.else)),Array.isArray(t.enum)){for(var _=M(c),k=!1,E=0,x=t.enum;E=0;t--){var n=this.contributions[t].resolveCompletion;if(n){var r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,n){var r=this,o={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t),a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(o);if(a&&s===a.offset+a.length&&s>0){var c=i[s-1];("object"===a.type&&"}"===c||"array"===a.type&&"]"===c)&&(a=a.parent)}var l,u=this.getCurrentWord(e,s);if(!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type){var f=s-u.length;f>0&&'"'===i[f-1]&&f--,l=h.Range.create(e.positionAt(f),t)}else l=h.Range.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));var d={},p={add:function(e){var t=e.label,n=d[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var r=t.substr(0,57).trim()+"...";d[r]||(t=r)}l&&void 0!==e.insertText&&(e.textEdit=h.TextEdit.replace(l,e.insertText)),e.label=t,d[t]=e,o.items.push(e)}},setAsIncomplete:function(){o.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return o.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var c=[],f=!0,m="",g=void 0;if(a&&"string"===a.type){var y=a.parent;y&&"property"===y.type&&y.keyNode===a&&(f=!y.valueNode,g=y,m=i.substr(a.offset+1,a.length-2),y&&(a=y.parent))}if(a&&"object"===a.type){if(a.offset===s)return o;a.properties.forEach((function(e){g&&g===e||(d[e.keyNode.value]=h.CompletionItem.create("__"))}));var v="";f&&(v=r.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?r.getPropertyCompletions(t,n,a,f,v,p):r.getSchemaLessPropertyCompletions(n,a,m,p);var b=I(a);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,b,u,f,""===v,p);n&&c.push(n)})),!t&&u.length>0&&'"'!==i.charAt(s-u.length-1)&&(p.add({kind:h.CompletionItemKind.Property,label:r.getLabelForValue(u),insertText:r.getInsertTextForProperty(u,void 0,!1,v),insertTextFormat:h.InsertTextFormat.Snippet,documentation:""}),p.setAsIncomplete())}var S={};return t?r.getValueCompletions(t,n,a,s,e,p,S):r.getSchemaLessValueCompletions(n,a,s,e,p),r.contributions.length>0&&r.getContributedValueCompletions(n,a,s,e,p,c),r.promiseConstructor.all(c).then((function(){if(0===p.getNumberOfProposals()){var t=s;!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type||(t=a.offset+a.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(S,n,p)}return o}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,o,i){var s=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var n=t[e];if("object"==typeof n&&!n.deprecationMessage&&!n.doNotSuggest){var a={kind:h.CompletionItemKind.Property,label:e,insertText:s.getInsertTextForProperty(e,n,r,o),insertTextFormat:h.InsertTextFormat.Snippet,filterText:s.getFilterTextForValue(e),documentation:s.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(a.sortText=n.suggestSortText),a.insertText&&l(a.insertText,"$1"+o)&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"}),i.add(a)}}));var a=e.schema.propertyNames;if("object"==typeof a&&!a.deprecationMessage&&!a.doNotSuggest){var c=function(e,t){void 0===t&&(t=void 0);var n={kind:h.CompletionItemKind.Property,label:e,insertText:s.getInsertTextForProperty(e,void 0,r,o),insertTextFormat:h.InsertTextFormat.Snippet,filterText:s.getFilterTextForValue(e),documentation:t||s.fromMarkup(a.markdownDescription)||a.description||""};void 0!==a.suggestSortText&&(n.sortText=a.suggestSortText),n.insertText&&l(n.insertText,"$1"+o)&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),i.add(n)};if(a.enum)for(var u=0;u(t.colonOffset||0)){var l=t.valueNode;if(l&&(n>l.offset+l.length||"object"===l.type||"array"===l.type))return;var u=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===u&&e.valueNode&&c(e.valueNode),!0})),"$schema"===u&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,o)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var f=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===f&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(c),!0}))}else t.items.forEach(c)},e.prototype.getValueCompletions=function(e,t,n,r,o,i,s){var a=r,c=void 0,l=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,l=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var f=n.valueNode;if(f&&r>f.offset+f.length)return;c=n.keyNode.value,n=n.parent}if(n&&(void 0!==c||"array"===n.type)){for(var d=this.evaluateSeparatorAfter(o,a),h=0,p=t.getMatchingSchemas(e.schema,n.offset,l);h(t.colonOffset||0)){var s=t.keyNode.value,a=t.valueNode;if((!a||n<=a.offset+a.length)&&t.parent){var c=I(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,c,s,o);t&&i.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,o);t&&i.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var o=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return o.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return o.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return o.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var o=this;void 0===r&&(r=0);var i=!1;if(s(e.default)){for(var a=e.type,c=e.default,l=r;l>0;l--)c=[c],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,t),insertTextFormat:h.InsertTextFormat.Snippet,detail:F("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((function(s){for(var a=e.type,c=s,l=r;l>0;l--)c=[c],a="array";n.add({kind:o.getSuggestionKind(a),label:o.getLabelForValue(c),insertText:o.getInsertTextForValue(c,t),insertTextFormat:h.InsertTextFormat.Snippet}),i=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(a){var c,l,u=e.type,f=a.body,d=a.label;if(s(f)){e.type;for(var p=r;p>0;p--)f=[f];c=o.getInsertTextForSnippetValue(f,t),l=o.getFilterTextForSnippetValue(f),d=d||o.getLabelForSnippetValue(f)}else{if("string"!=typeof a.bodyText)return;var m="",g="",y="";for(p=r;p>0;p--)m=m+y+"[\n",g=g+"\n"+y+"]",y+="\t",u="array";c=m+y+a.bodyText.split("\n").join("\n"+y)+g+t,d=d||c,l=c.replace(/[\n]/g,"")}n.add({kind:o.getSuggestionKind(u),label:d,documentation:o.fromMarkup(a.markdownDescription)||a.description,insertText:c,insertTextFormat:h.InsertTextFormat.Snippet,filterText:l}),i=!0})),!i&&"object"==typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},e.prototype.addEnumValueCompletions=function(e,t,n){if(s(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:h.InsertTextFormat.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,o=e.enum.length;r0?t[0]:void 0}if(!e)return h.CompletionItemKind.Value;switch(e){case"string":default:return h.CompletionItemKind.Value;case"object":return h.CompletionItemKind.Module;case"property":return h.CompletionItemKind.Property}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},e.prototype.getInsertTextForProperty=function(e,t,n,r){var o=this.getInsertTextForValue(e,"");if(!n)return o;var i,a=o+": ",c=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var l=t.defaultSnippets[0].body;s(l)&&(i=this.getInsertTextForSnippetValue(l,""))}c+=t.defaultSnippets.length}if(t.enum&&(i||1!==t.enum.length||(i=this.getInsertTextForGuessedValue(t.enum[0],"")),c+=t.enum.length),s(t.default)&&(i||(i=this.getInsertTextForGuessedValue(t.default,"")),c++),Array.isArray(t.examples)&&t.examples.length&&(i||(i=this.getInsertTextForGuessedValue(t.examples[0],"")),c+=t.examples.length),0===c){var u=Array.isArray(t.type)?t.type[0]:t.type;switch(u||(t.properties?u="object":t.items&&(u="array")),u){case"boolean":i="$1";break;case"string":i='"$1"';break;case"object":i="{$1}";break;case"array":i="[$1]";break;case"number":case"integer":i="${1:0}";break;case"null":i="${1:null}";break;default:return o}}}return(!i||c>1)&&(i="$1"),a+i+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=r.createScanner(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,n){for(var o=r.createScanner(t.getText(),!0),i=e.items,s=i.length-1;s>=0;s--){var a=i[s];if(n>a.offset+a.length)return o.setPosition(a.offset+a.length),5===o.scan()&&n>=o.getTokenOffset()+o.getTokenLength()?s+1:s;if(n>=a.offset)return s}return 0},e.prototype.isInComment=function(e,t,n){var o=r.createScanner(e.getText(),!1);o.setPosition(t);for(var i=o.scan();17!==i&&o.getTokenOffset()+o.getTokenLength()o.offset+1&&r=0;u--){var f=this.contributions[u].getInfoContribution(e.uri,l);if(f)return f.then((function(e){return c(e)}))}return this.schemaService.getSchemaForResource(e.uri,n).then((function(e){if(e&&o){var t=n.getMatchingSchemas(e.schema,o.offset),r=void 0,i=void 0,s=void 0,a=void 0;t.every((function(e){if(e.node===o&&!e.inverted&&e.schema&&(r=r||e.schema.title,i=i||e.schema.markdownDescription||U(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(M(o));e.schema.markdownEnumDescriptions?s=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(s=U(e.schema.enumDescriptions[t])),s&&"string"!=typeof(a=e.schema.enum[t])&&(a=JSON.stringify(a))}return!0}));var l="";return r&&(l=U(r)),i&&(l.length>0&&(l+="\n\n"),l+=i),s&&(l.length>0&&(l+="\n\n"),l+="`"+((-1!==(u=a).indexOf("`")?"`` "+u+" ``":u)+"`: ")+s),c([l])}var u;return null}))},e}();function U(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var W=n(33350);function B(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),o="",i=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,u=r.length;l1)||"/"!==f&&void 0!==f&&"{"!==f&&","!==f||"/"!==h&&void 0!==h&&","!==h&&"}"!==h?o+="([^/]*)":("/"===h?l++:"/"===f&&o.endsWith("\\/")&&(o=o.substr(0,o.length-2)),o+="((?:[^/]*(?:/|$))*)"):o+=".*";break;default:o+=n}return c&&~c.indexOf("g")||(o="^"+o+"$"),new RegExp(o,c)}var K=y.loadMessageBundle(),H=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n0&&("/"===o[0]&&(o=o.substring(1)),this.globWrappers.push({regexp:B("**/"+o,{extended:!0,globstar:!0}),include:i}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=X(e)],o=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var i=r.pop(),s=0;s1&&(n=r[1]),l(n,".")&&(n=n.substr(0,n.length-1)),new z({},[K("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Z(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,o=e.errors.slice(0),i=e.schema;if(i.$schema){var s=X(i.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new J({},[K("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&o.push(K("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,c=function(e,t,n,r){var i=r?decodeURIComponent(r):void 0,s=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,i);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else o.push(K("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,n))},l=function(e,t,n,i,s){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,i)),t=X(t);var l=r.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((function(r){if(s[t]=!0,r.errors.length){var i=n?t+"#"+n:t;o.push(K("json.schema.problemloadingref","Problems loading reference '{0}': {1}",i,r.errors[0]))}return c(e,r.schema,t,n),u(e,r.schema,t,l.dependencies)}))},u=function(e,t,n,o){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var i=[e],s=[],a=[],u=function(e){for(var r=[];e.$ref;){var s=e.$ref,u=s.split("#",2);if(delete e.$ref,u[0].length>0)return void a.push(l(e,u[0],u[1],n,o));-1===r.indexOf(s)&&(c(e,t,n,u[1]),r.push(s))}!function(){for(var e=[],t=0;t=0||(s.push(f),u(f))}return r.promise.all(a)};return u(i,i,t,n).then((function(e){return new J(i,o)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var o=M(r);if(o&&c(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,e)),o){var i=X(o);return this.getOrAddSchemaHandle(i).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),a=[],l=function(e){try{return W.URI.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),u=0,f=this.filePatternAssociations;u0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:g},g},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+Q++;return this.resolveSchemaContent(new z(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),Q=0;function X(e){try{return W.URI.parse(e).toString()}catch(t){return e}}function Z(e){try{var t=W.URI.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var ee=y.loadMessageBundle(),te=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:h.DiagnosticSeverity.Error)},e.prototype.doValidation=function(e,t,n,r){var o=this;if(!this.validationEnabled)return this.promise.resolve([]);var i=[],s={},a=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;s[t]||(s[t]=!0,i.push(e))},c=function(r){var s=(null==n?void 0:n.trailingCommas)?ie(n.trailingCommas):h.DiagnosticSeverity.Error,c=(null==n?void 0:n.comments)?ie(n.comments):o.commentSeverity,l=(null==n?void 0:n.schemaValidation)?ie(n.schemaValidation):h.DiagnosticSeverity.Warning,u=(null==n?void 0:n.schemaRequest)?ie(n.schemaRequest):h.DiagnosticSeverity.Warning;if(r){if(r.errors.length&&t.root&&u){var d=t.root,p="object"===d.type?d.properties[0]:void 0;if(p&&"$schema"===p.keyNode.value){var m=p.valueNode||p,g=h.Range.create(e.positionAt(m.offset),e.positionAt(m.offset+m.length));a(h.Diagnostic.create(g,r.errors[0],u,f.SchemaResolveError))}else g=h.Range.create(e.positionAt(d.offset),e.positionAt(d.offset+1)),a(h.Diagnostic.create(g,r.errors[0],u,f.SchemaResolveError))}else if(l){var y=t.validate(e,r.schema,l);y&&y.forEach(a)}re(r.schema)&&(c=void 0),oe(r.schema)&&(s=void 0)}for(var v=0,b=t.syntaxErrors;v=le&&e<=ue?e-le+10:0)}function de(e){if("#"===e[0])switch(e.length){case 4:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:17*fe(e.charCodeAt(4))/255};case 7:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:(16*fe(e.charCodeAt(7))+fe(e.charCodeAt(8)))/255}}}var he=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var o=t.root;if(!o)return[];var i=n.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||l(s.toLowerCase(),"/user/keybindings.json"))&&"array"===o.type){for(var a=[],c=0,u=o.items;c0){i--;var s=h.Location.create(e.uri,pe(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;S.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(o.type),location:s,containerName:n}),y.push({node:o,containerName:a})}else b=!0}))};v0){i--;var s=pe(e,t),a=s,c={name:String(o),kind:r.getSymbolKind(t.type),range:s,selectionRange:a,children:[]};n.push(c),b.push({result:c.children,node:t})}else w=!0})):"object"===t.type&&t.properties.forEach((function(t){var o=t.valueNode;if(o)if(i>0){i--;var s=pe(e,t),a=pe(e,t.keyNode),c=[],l={name:r.getKeyLabel(t),kind:r.getSymbolKind(o.type),range:s,selectionRange:a,children:c,detail:r.getDetail(o)};n.push(l),b.push({result:c,node:o})}else w=!0}))};S0&&i[i.length-1].kind===f){u=i.pop();var d=e.positionAt(a.getTokenOffset()).line;u&&d>u.startLine+1&&s!==u.startLine&&(u.endLine=d-1,l(u),s=u.startLine)}break;case 13:var p=e.positionAt(a.getTokenOffset()).line,m=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;1===a.getTokenError()&&p+1=0&&i[y].kind!==h.FoldingRangeKind.Region;)y--;y>=0&&(u=i[y],i.length=y,d>u.startLine&&s!==u.startLine&&(u.endLine=d,l(u),s=u.startLine))}}c=a.scan()}var v=t&&t.rangeLimit;if("number"!=typeof v||n.length<=v)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var b=[],S=0,w=o;Sv){k=y;break}_+=E}}var x=[];for(y=0;y=c&&r<=l&&a.push(o(c,l)),a.push(o(i.offset,i.offset+i.length));break;case"number":case"boolean":case"null":case"property":a.push(o(i.offset,i.offset+i.length))}if("property"===i.type||i.parent&&"array"===i.parent.type){var u=s(i.offset+i.length,5);-1!==u&&a.push(o(i.offset,u))}i=i.parent}for(var f=void 0,d=a.length-1;d>=0;d--)f=h.SelectionRange.create(a[d],f);return f||(f=h.SelectionRange.create(h.Range.create(t,t))),f}))}function xe(e,t){var n=[];return t.visit((function(r){var o;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(o=r.valueNode)||void 0===o?void 0:o.type)){var i=r.valueNode.value,s=function(e,t){var n=function(e){return"#"===e?[]:"#"!==e[0]||"/"!==e[1]?null:e.substring(2).split(/\//).map(Oe)}(t);return n?Te(n,e.root):null}(t,i);if(s){var a=e.positionAt(s.offset);n.push({target:e.uri+"#"+(a.line+1)+","+(a.character+1),range:Ce(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function Ce(e,t){return h.Range.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function Te(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?Te(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var o=Number.parseInt(n),i=t.items[o];return i?Te(e,i):null}return null}function Oe(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ae(e){var t=e.promiseConstructor||Promise,n=new G(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(ge);var o=new q(n,e.contributions,t,e.clientCapabilities),s=new V(n,e.contributions,t),a=new he(n),c=new te(n,t);return{configure:function(e){n.clearExternalSchemas(),e.schemas&&e.schemas.forEach((function(e){n.registerExternalSchema(e.uri,e.fileMatch,e.schema)})),c.configure(e)},resetSchema:function(e){return n.onResourceChange(e)},doValidation:c.doValidation.bind(c),parseJSONDocument:function(e){return function(e,t){var n=[],o=-1,s=e.getText(),a=r.createScanner(s,!1),c=t&&t.collectComments?[]:void 0;function l(){for(;;){var t=a.scan();switch(p(),t){case 12:case 13:Array.isArray(c)&&c.push(h.Range.create(e.positionAt(a.getTokenOffset()),e.positionAt(a.getTokenOffset()+a.getTokenLength())));break;case 15:case 14:break;default:return t}}}function u(t,r,i,s,a){if(void 0===a&&(a=h.DiagnosticSeverity.Error),0===n.length||i!==o){var c=h.Range.create(e.positionAt(i),e.positionAt(s));n.push(h.Diagnostic.create(c,t,a,r,e.languageId)),o=i}}function d(e,t,n,r,o){void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===o&&(o=[]);var i=a.getTokenOffset(),c=a.getTokenOffset()+a.getTokenLength();if(i===c&&i>0){for(i--;i>0&&/\s/.test(s.charAt(i));)i--;c=i+1}if(u(e,t,i,c),n&&m(n,!1),r.length+o.length>0)for(var f=a.getToken();17!==f;){if(-1!==r.indexOf(f)){l();break}if(-1!==o.indexOf(f))break;f=l()}return n}function p(){switch(a.getTokenError()){case 4:return d(b("InvalidUnicode","Invalid unicode sequence in string."),f.InvalidUnicode),!0;case 5:return d(b("InvalidEscapeCharacter","Invalid escape character in string."),f.InvalidEscapeCharacter),!0;case 3:return d(b("UnexpectedEndOfNumber","Unexpected end of number."),f.UnexpectedEndOfNumber),!0;case 1:return d(b("UnexpectedEndOfComment","Unexpected end of comment."),f.UnexpectedEndOfComment),!0;case 2:return d(b("UnexpectedEndOfString","Unexpected end of string."),f.UnexpectedEndOfString),!0;case 6:return d(b("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),f.InvalidCharacter),!0}return!1}function m(e,t){return e.length=a.getTokenOffset()+a.getTokenLength()-e.offset,t&&l(),e}var g=new C(void 0,0,0);function y(t,n){var r=new T(t,a.getTokenOffset(),g),o=v(r);if(!o){if(16!==a.getToken())return;d(b("DoubleQuotesExpected","Property keys must be doublequoted"),f.Undefined);var i=new C(r,a.getTokenOffset(),a.getTokenLength());i.value=a.getTokenValue(),o=i,l()}r.keyNode=o;var s=n[o.value];if(s?(u(b("DuplicateKeyWarning","Duplicate object key"),f.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,h.DiagnosticSeverity.Warning),"object"==typeof s&&u(b("DuplicateKeyWarning","Duplicate object key"),f.DuplicateKey,s.keyNode.offset,s.keyNode.offset+s.keyNode.length,h.DiagnosticSeverity.Warning),n[o.value]=!0):n[o.value]=r,6===a.getToken())r.colonOffset=a.getTokenOffset(),l();else if(d(b("ColonExpected","Colon expected"),f.ColonExpected),10===a.getToken()&&e.positionAt(o.offset+o.length).line{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientCapabilities=t.ErrorCode=t.DocumentHighlightKind=t.VersionedTextDocumentIdentifier=t.TextDocumentEdit=t.CodeActionKind=t.TextEdit=t.WorkspaceEdit=t.DocumentLink=t.DocumentHighlight=t.CodeAction=t.Command=t.CodeActionContext=t.MarkedString=t.Hover=t.Location=t.DocumentSymbol=t.SymbolKind=t.SymbolInformation=t.InsertTextFormat=t.CompletionItemTag=t.CompletionList=t.CompletionItemKind=t.CompletionItem=t.DiagnosticSeverity=t.Diagnostic=t.SelectionRange=t.FoldingRangeKind=t.FoldingRange=t.ColorPresentation=t.ColorInformation=t.Color=t.MarkupKind=t.MarkupContent=t.Position=t.Range=t.TextDocument=void 0;var r=n(91674);Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return r.Range}}),Object.defineProperty(t,"Position",{enumerable:!0,get:function(){return r.Position}}),Object.defineProperty(t,"MarkupContent",{enumerable:!0,get:function(){return r.MarkupContent}}),Object.defineProperty(t,"MarkupKind",{enumerable:!0,get:function(){return r.MarkupKind}}),Object.defineProperty(t,"Color",{enumerable:!0,get:function(){return r.Color}}),Object.defineProperty(t,"ColorInformation",{enumerable:!0,get:function(){return r.ColorInformation}}),Object.defineProperty(t,"ColorPresentation",{enumerable:!0,get:function(){return r.ColorPresentation}}),Object.defineProperty(t,"FoldingRange",{enumerable:!0,get:function(){return r.FoldingRange}}),Object.defineProperty(t,"FoldingRangeKind",{enumerable:!0,get:function(){return r.FoldingRangeKind}}),Object.defineProperty(t,"SelectionRange",{enumerable:!0,get:function(){return r.SelectionRange}}),Object.defineProperty(t,"Diagnostic",{enumerable:!0,get:function(){return r.Diagnostic}}),Object.defineProperty(t,"DiagnosticSeverity",{enumerable:!0,get:function(){return r.DiagnosticSeverity}}),Object.defineProperty(t,"CompletionItem",{enumerable:!0,get:function(){return r.CompletionItem}}),Object.defineProperty(t,"CompletionItemKind",{enumerable:!0,get:function(){return r.CompletionItemKind}}),Object.defineProperty(t,"CompletionList",{enumerable:!0,get:function(){return r.CompletionList}}),Object.defineProperty(t,"CompletionItemTag",{enumerable:!0,get:function(){return r.CompletionItemTag}}),Object.defineProperty(t,"InsertTextFormat",{enumerable:!0,get:function(){return r.InsertTextFormat}}),Object.defineProperty(t,"SymbolInformation",{enumerable:!0,get:function(){return r.SymbolInformation}}),Object.defineProperty(t,"SymbolKind",{enumerable:!0,get:function(){return r.SymbolKind}}),Object.defineProperty(t,"DocumentSymbol",{enumerable:!0,get:function(){return r.DocumentSymbol}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return r.Location}}),Object.defineProperty(t,"Hover",{enumerable:!0,get:function(){return r.Hover}}),Object.defineProperty(t,"MarkedString",{enumerable:!0,get:function(){return r.MarkedString}}),Object.defineProperty(t,"CodeActionContext",{enumerable:!0,get:function(){return r.CodeActionContext}}),Object.defineProperty(t,"Command",{enumerable:!0,get:function(){return r.Command}}),Object.defineProperty(t,"CodeAction",{enumerable:!0,get:function(){return r.CodeAction}}),Object.defineProperty(t,"DocumentHighlight",{enumerable:!0,get:function(){return r.DocumentHighlight}}),Object.defineProperty(t,"DocumentLink",{enumerable:!0,get:function(){return r.DocumentLink}}),Object.defineProperty(t,"WorkspaceEdit",{enumerable:!0,get:function(){return r.WorkspaceEdit}}),Object.defineProperty(t,"TextEdit",{enumerable:!0,get:function(){return r.TextEdit}}),Object.defineProperty(t,"CodeActionKind",{enumerable:!0,get:function(){return r.CodeActionKind}}),Object.defineProperty(t,"TextDocumentEdit",{enumerable:!0,get:function(){return r.TextDocumentEdit}}),Object.defineProperty(t,"VersionedTextDocumentIdentifier",{enumerable:!0,get:function(){return r.VersionedTextDocumentIdentifier}}),Object.defineProperty(t,"DocumentHighlightKind",{enumerable:!0,get:function(){return r.DocumentHighlightKind}});var o,i=n(31040);Object.defineProperty(t,"TextDocument",{enumerable:!0,get:function(){return i.TextDocument}}),(o=t.ErrorCode||(t.ErrorCode={}))[o.Undefined=0]="Undefined",o[o.EnumValueMismatch=1]="EnumValueMismatch",o[o.Deprecated=2]="Deprecated",o[o.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=258]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",o[o.InvalidUnicode=260]="InvalidUnicode",o[o.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",o[o.InvalidCharacter=262]="InvalidCharacter",o[o.PropertyExpected=513]="PropertyExpected",o[o.CommaExpected=514]="CommaExpected",o[o.ColonExpected=515]="ColonExpected",o[o.ValueExpected=516]="ValueExpected",o[o.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",o[o.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",o[o.TrailingComma=519]="TrailingComma",o[o.DuplicateKey=520]="DuplicateKey",o[o.CommentNotPermitted=521]="CommentNotPermitted",o[o.SchemaResolveError=768]="SchemaResolveError",(t.ClientCapabilities||(t.ClientCapabilities={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[r.MarkupKind.Markdown,r.MarkupKind.PlainText],commitCharactersSupport:!0}}}}},32131:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.JSONDocument=t.contains=t.getNodePath=t.getNodeValue=t.newJSONDocument=t.ValidationResult=t.EnumMatch=t.asSchema=t.ObjectASTNodeImpl=t.PropertyASTNodeImpl=t.StringASTNodeImpl=t.NumberASTNodeImpl=t.ArrayASTNodeImpl=t.BooleanASTNodeImpl=t.NullASTNodeImpl=t.ASTNodeImpl=void 0;var i=n(60516),s=n(33245),a=n(54271),c=n(7733),l=n(8796).loadMessageBundle(),u={"color-hex":{errorMessage:l("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:l("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:l("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:l("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:l("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},f=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();t.ASTNodeImpl=f;var d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="null",r.value=null,r}return o(t,e),t}(f);t.NullASTNodeImpl=d;var h=function(e){function t(t,n,r){var o=e.call(this,t,r)||this;return o.type="boolean",o.value=n,o}return o(t,e),t}(f);t.BooleanASTNodeImpl=h;var p=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}return o(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(f);t.ArrayASTNodeImpl=p;var m=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}return o(t,e),t}(f);t.NumberASTNodeImpl=m;var g=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type="string",o.value="",o}return o(t,e),t}(f);t.StringASTNodeImpl=g;var y=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.type="property",o.colonOffset=-1,o.keyNode=r,o}return o(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(f);t.PropertyASTNodeImpl=y;var v,b=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}return o(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(f);function S(e){return s.isBoolean(e)?e?{}:{not:{}}:e}t.ObjectASTNodeImpl=b,t.asSchema=S,(v=t.EnumMatch||(t.EnumMatch={}))[v.Key=0]="Key",v[v.Enum=1]="Enum";var w=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||x(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),_=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),k=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t=e.offset&&t=0;)i.splice(t,1),t=i.indexOf(e)};if(t.properties)for(var g=0,y=Object.keys(t.properties);g0)for(var I=0,j=i;It.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:l("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),s.isNumber(t.minProperties)&&e.properties.length=o.length&&n.propertiesValueMatches++}if(e.items.length>o.length)if("object"==typeof t.additionalItems)for(var u=o.length;ut.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:l("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var y=E(e),v=y.some((function(e,t){return t!==y.lastIndexOf(e)}));v&&n.problems.push({location:{offset:e.offset,length:e.length},message:l("uniqueItemsWarning","Array has duplicate items.")})}}(o,t,n,r);break;case"string":!function(e,t,n,r){if(s.isNumber(t.minLength)&&e.value.lengtht.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:l("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),s.isString(t.pattern)&&(a.extendedRegExp(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||l("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);i?i[2]||"uri"!==t.format||(o=l("uriSchemeMissing","URI with a scheme is expected.")):o=l("uriMissing","URI is expected.")}else o=l("uriEmpty","URI expected.");o&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||l("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var c=u[t.format];e.value&&c.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||c.errorMessage})}}(o,t,n);break;case"number":!function(e,t,n,r){var o=e.value;function i(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(s.isNumber(t.multipleOf)){var a=-1;if(Number.isInteger(t.multipleOf))a=o%t.multipleOf;else{var c=i(t.multipleOf),u=i(o);if(c&&u){var f=Math.pow(10,Math.abs(u.multiplier-c.multiplier));u.multiplier=m&&n.problems.push({location:{offset:e.offset,length:e.length},message:l("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",m)});var g=h(t.minimum,t.exclusiveMinimum);s.isNumber(g)&&oy&&n.problems.push({location:{offset:e.offset,length:e.length},message:l("maximumWarning","Value is above the maximum of {0}.",y)})}(o,t,n);break;case"property":return T(o.valueNode,t,n,r)}!function(){function e(e){return o.type===e||"integer"===e&&"number"===o.type&&o.isInteger}if(Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:o.offset,length:o.length},message:t.errorMessage||l("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:o.offset,length:o.length},message:t.errorMessage||l("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var i=0,a=t.allOf;i0?s={schema:u,validationResult:f,matchingSchemas:d}:0===h&&(s.matchingSchemas.merge(d),s.validationResult.mergeEnumValues(f))}else s.matchingSchemas.merge(d),s.validationResult.propertiesMatches+=f.propertiesMatches,s.validationResult.propertiesValueMatches+=f.propertiesValueMatches;else s={schema:u,validationResult:f,matchingSchemas:d}}return i.length>1&&t&&n.problems.push({location:{offset:o.offset,length:1},message:l("oneOfWarning","Matches multiple schemas when only one must validate.")}),s&&(n.merge(s.validationResult),n.propertiesMatches+=s.validationResult.propertiesMatches,n.propertiesValueMatches+=s.validationResult.propertiesValueMatches,r.merge(s.matchingSchemas)),i.length};Array.isArray(t.anyOf)&&y(t.anyOf,!1),Array.isArray(t.oneOf)&&y(t.oneOf,!0);var v=function(e){var t=new k,i=r.newSub();T(o,S(e),t,i),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(i)},b=S(t.if);if(b&&function(e,t,n){var i=S(e),s=new k,a=r.newSub();T(o,i,s,a),r.merge(a),s.hasProblems()?n&&v(n):t&&v(t)}(b,S(t.then),S(t.else)),Array.isArray(t.enum)){for(var w=E(o),_=!1,x=0,C=t.enum;x0){for(s--;s>0&&/\s/.test(o.charAt(s));)s--;c=s+1}if(v(e,t,s,c),n&&_(n,!1),r.length+i.length>0)for(var l=a.getToken();17!==l;){if(-1!==r.indexOf(l)){f();break}if(-1!==i.indexOf(l))break;l=f()}return n}function w(){switch(a.getTokenError()){case 4:return S(l("InvalidUnicode","Invalid unicode sequence in string."),c.ErrorCode.InvalidUnicode),!0;case 5:return S(l("InvalidEscapeCharacter","Invalid escape character in string."),c.ErrorCode.InvalidEscapeCharacter),!0;case 3:return S(l("UnexpectedEndOfNumber","Unexpected end of number."),c.ErrorCode.UnexpectedEndOfNumber),!0;case 1:return S(l("UnexpectedEndOfComment","Unexpected end of comment."),c.ErrorCode.UnexpectedEndOfComment),!0;case 2:return S(l("UnexpectedEndOfString","Unexpected end of string."),c.ErrorCode.UnexpectedEndOfString),!0;case 6:return S(l("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),c.ErrorCode.InvalidCharacter),!0}return!1}function _(e,t){return e.length=a.getTokenOffset()+a.getTokenLength()-e.offset,t&&f(),e}var k=new g(void 0,0,0);function E(t,n){var r=new y(t,a.getTokenOffset(),k),o=x(r);if(!o){if(16!==a.getToken())return;S(l("DoubleQuotesExpected","Property keys must be doublequoted"),c.ErrorCode.Undefined);var i=new g(r,a.getTokenOffset(),a.getTokenLength());i.value=a.getTokenValue(),o=i,f()}r.keyNode=o;var s=n[o.value];if(s?(v(l("DuplicateKeyWarning","Duplicate object key"),c.ErrorCode.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,c.DiagnosticSeverity.Warning),"object"==typeof s&&v(l("DuplicateKeyWarning","Duplicate object key"),c.ErrorCode.DuplicateKey,s.keyNode.offset,s.keyNode.offset+s.keyNode.length,c.DiagnosticSeverity.Warning),n[o.value]=!0):n[o.value]=r,6===a.getToken())r.colonOffset=a.getTokenOffset(),f();else if(S(l("ColonExpected","Colon expected"),c.ErrorCode.ColonExpected),10===a.getToken()&&e.positionAt(o.offset+o.length).line{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONDocumentSymbols=void 0;var r=n(32131),o=n(54271),i=n(99111),s=n(7733),a=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var i=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var a=t.root;if(!a)return[];var l=n.resultLimit||Number.MAX_VALUE,u=e.uri;if(("vscode://defaultsettings/keybindings.json"===u||o.endsWith(u.toLowerCase(),"/user/keybindings.json"))&&"array"===a.type){for(var f=[],d=0,h=a.items;d0){l--;var o=s.Location.create(e.uri,c(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;_.push({name:i.getKeyLabel(t),kind:i.getSymbolKind(r.type),location:o,containerName:n}),b.push({node:r,containerName:a})}else w=!0}))};S0){l--;var o=c(e,t),s=o,a={name:String(r),kind:i.getSymbolKind(t.type),range:o,selectionRange:s,children:[]};n.push(a),w.push({result:a.children,node:t})}else k=!0})):"object"===t.type&&t.properties.forEach((function(t){var r=t.valueNode;if(r)if(l>0){l--;var o=c(e,t),s=c(e,t.keyNode),a=[],u={name:i.getKeyLabel(t),kind:i.getSymbolKind(r.type),range:o,selectionRange:s,children:a,detail:i.getDetail(r)};n.push(u),w.push({result:a,node:r})}else k=!0}))};_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findLinks=void 0;var r=n(7733);function o(e,t){return r.Range.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function i(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?i(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var o=Number.parseInt(n),s=t.items[o];return s?i(e,s):null}return null}function s(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.findLinks=function(e,t){var n=[];return t.visit((function(r){var a;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(a=r.valueNode)||void 0===a?void 0:a.type)){var c=r.valueNode.value,l=function(e,t){var n=function(e){return"#"===e?[]:"#"!==e[0]||"/"!==e[1]?null:e.substring(2).split(/\//).map(s)}(t);return n?i(n,e.root):null}(t,c);if(l){var u=e.positionAt(l.offset);n.push({target:e.uri+"#"+(u.line+1)+","+(u.character+1),range:o(e,r.valueNode)})}}return!0})),Promise.resolve(n)}},4209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONSchemaService=t.ResolvedSchema=t.UnresolvedSchema=void 0;var r=n(60516),o=n(33350),i=n(54271),s=n(32131),a=n(8796),c=n(11638),l=a.loadMessageBundle(),u=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n0&&("/"===o[0]&&(o=o.substring(1)),this.globWrappers.push({regexp:c.createRegex("**/"+o,{extended:!0,globstar:!0}),include:i}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=g(e)],o=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var i=r.pop(),s=0;s1&&(n=r[1]),i.endsWith(n,".")&&(n=n.substr(0,n.length-1)),new d({},[l("json.schema.nocontent","Unable to load schema from '{0}': {1}.",y(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,o=e.errors.slice(0),i=e.schema;if(i.$schema){var s=g(i.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new h({},[l("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&o.push(l("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,c=function(e,t,n,r){var i=r?decodeURIComponent(r):void 0,s=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,i);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else o.push(l("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,n))},u=function(e,t,n,i,s){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,i)),t=g(t);var u=r.getOrAddSchemaHandle(t);return u.getUnresolvedSchema().then((function(r){if(s[t]=!0,r.errors.length){var i=n?t+"#"+n:t;o.push(l("json.schema.problemloadingref","Problems loading reference '{0}': {1}",i,r.errors[0]))}return c(e,r.schema,t,n),f(e,r.schema,t,u.dependencies)}))},f=function(e,t,n,o){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var i=[e],s=[],a=[],l=function(e){for(var r=[];e.$ref;){var s=e.$ref,l=s.split("#",2);if(delete e.$ref,l[0].length>0)return void a.push(u(e,l[0],l[1],n,o));-1===r.indexOf(s)&&(c(e,t,n,l[1]),r.push(s))}!function(){for(var e=[],t=0;t=0||(s.push(f),l(f))}return r.promise.all(a)};return f(i,i,t,n).then((function(e){return new h(i,o)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var a=s.getNodeValue(r);if(a&&i.startsWith(a,".")&&this.contextService&&(a=this.contextService.resolveRelativePath(a,e)),a){var c=g(a);return this.getOrAddSchemaHandle(c).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var l=Object.create(null),u=[],f=function(e){try{return o.URI.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),d=0,h=this.filePatternAssociations;d0?this.createCombinedSchema(e,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:b},b},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+m++;return this.resolveSchemaContent(new d(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}();t.JSONSchemaService=p;var m=0;function g(e){try{return o.URI.parse(e).toString()}catch(t){return e}}function y(e){try{var t=o.URI.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}},93020:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONValidation=void 0;var r=n(4209),o=n(7733),i=n(8796),s=n(33245),a=i.loadMessageBundle(),c=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:o.DiagnosticSeverity.Error)},e.prototype.doValidation=function(e,t,n,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var c=[],h={},p=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;h[t]||(h[t]=!0,c.push(e))},m=function(r){var i=(null==n?void 0:n.trailingCommas)?d(n.trailingCommas):o.DiagnosticSeverity.Error,l=(null==n?void 0:n.comments)?d(n.comments):s.commentSeverity,h=(null==n?void 0:n.schemaValidation)?d(n.schemaValidation):o.DiagnosticSeverity.Warning,m=(null==n?void 0:n.schemaRequest)?d(n.schemaRequest):o.DiagnosticSeverity.Warning;if(r){if(r.errors.length&&t.root&&m){var g=t.root,y="object"===g.type?g.properties[0]:void 0;if(y&&"$schema"===y.keyNode.value){var v=y.valueNode||y,b=o.Range.create(e.positionAt(v.offset),e.positionAt(v.offset+v.length));p(o.Diagnostic.create(b,r.errors[0],m,o.ErrorCode.SchemaResolveError))}else b=o.Range.create(e.positionAt(g.offset),e.positionAt(g.offset+1)),p(o.Diagnostic.create(b,r.errors[0],m,o.ErrorCode.SchemaResolveError))}else if(h){var S=t.validate(e,r.schema,h);S&&S.forEach(p)}u(r.schema)&&(l=void 0),f(r.schema)&&(i=void 0)}for(var w=0,_=t.syntaxErrors;w<_.length;w++){var k=_[w];if(k.code===o.ErrorCode.TrailingComma){if("number"!=typeof i)continue;k.severity=i}p(k)}if("number"==typeof l){var E=a("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){p(o.Diagnostic.create(e,E,l,o.ErrorCode.CommentNotPermitted))}))}return c};if(i){var g=i.id||"schemaservice://untitled/"+l++;return this.jsonSchemaService.resolveSchemaContent(new r.UnresolvedSchema(i),g,{}).then((function(e){return m(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return m(e)}))},e}();t.JSONValidation=c;var l=0;function u(e){if(e&&"object"==typeof e){if(s.isBoolean(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorFrom256RGB=t.colorFromHex=t.hexDigit=void 0;var n=48,r=57,o=65,i=97,s=102;function a(e){return e=i&&e<=s?e-i+10:0)}t.hexDigit=a,t.colorFromHex=function(e){if("#"===e[0])switch(e.length){case 4:return{red:17*a(e.charCodeAt(1))/255,green:17*a(e.charCodeAt(2))/255,blue:17*a(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*a(e.charCodeAt(1))/255,green:17*a(e.charCodeAt(2))/255,blue:17*a(e.charCodeAt(3))/255,alpha:17*a(e.charCodeAt(4))/255};case 7:return{red:(16*a(e.charCodeAt(1))+a(e.charCodeAt(2)))/255,green:(16*a(e.charCodeAt(3))+a(e.charCodeAt(4)))/255,blue:(16*a(e.charCodeAt(5))+a(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*a(e.charCodeAt(1))+a(e.charCodeAt(2)))/255,green:(16*a(e.charCodeAt(3))+a(e.charCodeAt(4)))/255,blue:(16*a(e.charCodeAt(5))+a(e.charCodeAt(6)))/255,alpha:(16*a(e.charCodeAt(7))+a(e.charCodeAt(8)))/255}}},t.colorFrom256RGB=function(e,t,n,r){return void 0===r&&(r=1),{red:e/255,green:t/255,blue:n/255,alpha:r}}},11638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRegex=void 0,t.createRegex=function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),o="",i=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,u=r.length;l1)||"/"!==f&&void 0!==f&&"{"!==f&&","!==f||"/"!==h&&void 0!==h&&","!==h&&"}"!==h?o+="([^/]*)":("/"===h?l++:"/"===f&&o.endsWith("\\/")&&(o=o.substr(0,o.length-2)),o+="((?:[^/]*(?:/|$))*)"):o+=".*";break;default:o+=n}return c&&~c.indexOf("g")||(o="^"+o+"$"),new RegExp(o,c)}},33245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=t.isBoolean=t.isDefined=t.isNumber=t.equals=void 0,t.equals=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(typeof t!=typeof n)return!1;if("object"!=typeof t)return!1;if(Array.isArray(t)!==Array.isArray(n))return!1;var r,o;if(Array.isArray(t)){if(t.length!==n.length)return!1;for(r=0;r{"use strict";function n(e,t){if(e.length0?e.lastIndexOf(t)===n:0===n&&e===t},t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.repeat=function(e,t){for(var n="";t>0;)1==(1&t)&&(n+=e),e+=e,t>>>=1;return n},t.extendedRegExp=function(e){return n(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}},30069:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var r,o,i,s=n(88298);function a(e){return void 0!==e}function c(e,n){return t.isPseudo&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var r=t[0],o=n[r],i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}))}(i=t.MessageFormat||(t.MessageFormat={})).file="file",i.bundle="bundle",i.both="both",(o=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",o.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&a(t.key)&&a(t.comment)}}(r||(r={})),t.isDefined=a,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var n=[],r=2;r{"use strict";var n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},8796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.BundleFormat=t.MessageFormat=void 0;var r=n(71017),o=n(57147),i=n(88298),s=n(30069),a=n(30069);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}});var c,l,u=Object.prototype.toString;function f(e){return"[object String]"===u.call(e)}function d(e){return JSON.parse(o.readFileSync(e,"utf8"))}function h(e){return function(t,n){for(var r,o=[],i=2;i=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: ".concat(new Error("").stack)):(0,s.format)(e[t],o):f(n)?(console.warn("Message ".concat(n," didn't get externalized correctly.")),(0,s.format)(n,o)):void console.error("Broken localize call found. Stacktrace is\n: ".concat(new Error("").stack))}}function p(e,t){return c[e]=t,t}function m(e){try{return function(e){var t=d(r.join(e,"nls.metadata.json")),n=Object.create(null);for(var o in t){var i=t[o];n[o]=i.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function g(e,t){var n;if(!0===l.languagePackSupport&&void 0!==l.cacheRoot&&void 0!==l.languagePackId&&void 0!==l.translationsConfigFile&&void 0!==l.translationsConfig)try{n=function(e,t){var n,i,s,a=r.join(l.cacheRoot,"".concat(e.id,"-").concat(e.hash,".json")),c=!1,u=!1;try{return n=JSON.parse(o.readFileSync(a,{encoding:"utf8",flag:"r"})),i=a,s=new Date,o.utimes(i,s,s,(function(){})),n}catch(e){if("ENOENT"===e.code)u=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: ".concat(e.message,".")),o.unlink(a,(function(e){e&&console.error("Deleting corrupted bundle ".concat(a," failed."))})),c=!0}}if(n=function(e,t){var n=l.translationsConfig[e.id];if(n){var o=d(n).contents,i=d(r.join(t,"nls.metadata.json")),s=Object.create(null);for(var a in i){var c=i[a],u=o["".concat(e.outDir,"/").concat(a)];if(u){for(var h=[],p=0;p0?t.substring(0,i):void 0}if(void 0===t&&(n=r.join(e,"nls.bundle.json"),o.existsSync(n)))return n}(t);if(i)try{return d(i)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=m(t)}return n}function y(e){if(!e)return s.localize;var t=r.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),l.messageFormat===s.MessageFormat.both||l.messageFormat===s.MessageFormat.bundle){var n=function(e){for(var t,n=r.dirname(e);t=r.join(n,"nls.metadata.header.json"),!o.existsSync(t);){var i=r.dirname(n);if(i===n){t=void 0;break}n=i}return t}(e);if(n){var i=r.dirname(n),a=c[i];if(void 0===a)try{var u=JSON.parse(o.readFileSync(n,"utf8"));try{var f=g(u,i);a=p(i,f?{header:u,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),a=p(i,null)}}catch(e){console.error("Failed to read header file",e),a=p(i,null)}if(a){var m=e.substr(i.length+1).replace(/\\/g,"/"),y=a.nlsBundle[m];return void 0===y?(console.error("Messages for file ".concat(e," not found. See console for details.")),function(){return"Messages not found."}):h(y)}}}if(l.messageFormat===s.MessageFormat.both||l.messageFormat===s.MessageFormat.file)try{var v=d(function(e){var t;if(l.cacheLanguageResolution&&t);else{if(s.isPseudo||!l.language)t=".nls.json";else for(var n=l.language;n;){var r=".nls."+n+".json";if(o.existsSync(e+r)){t=r;break}var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(t=".nls.json",n=null)}l.cacheLanguageResolution}return e+t}(e));return Array.isArray(v)?h(v):(0,s.isDefined)(v.messages)&&(0,s.isDefined)(v.keys)?h(v.messages):(console.error("String bundle '".concat(e,"' uses an unsupported format.")),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file ".concat(e)),function(){return"Failed to load message bundle. See console for details."}}function v(e){return e&&(f(e.locale)&&(l.locale=e.locale.toLowerCase(),l.language=l.locale,c=Object.create(null)),void 0!==e.messageFormat&&(l.messageFormat=e.messageFormat),e.bundleFormat===s.BundleFormat.standalone&&!0===l.languagePackSupport&&(l.languagePackSupport=!1)),(0,s.setPseudo)("pseudo"===l.locale),y}!function(){if(l={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:s.MessageFormat.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];f(n)&&(t=n)}if(f(e.locale)&&(l.locale=e.locale.toLowerCase()),void 0===t?l.language=l.locale:"en"!==t&&(l.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(l.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(l.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(l.languagePackId=e._languagePackId),f(e._translationsConfigFile)){l.translationsConfigFile=e._translationsConfigFile;try{l.translationsConfig=d(l.translationsConfigFile)}catch(t){if(e._corruptedFile){var i=r.dirname(e._corruptedFile);o.exists(i,(function(t){t&&o.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}(0,s.setPseudo)("pseudo"===l.locale),c=Object.create(null)}(),t.loadMessageBundle=y,t.config=v,i.default.install(Object.freeze({loadMessageBundle:y,config:v}))},33350:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{URI:()=>o,Utils:()=>i}),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",o=0):o=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,o=47===s.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;ol){if(47===n.charCodeAt(a+f))return n.slice(a+f+1);if(0===f)return n.slice(a+f)}else s>l&&(47===e.charCodeAt(o+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(o+f);if(d!==n.charCodeAt(a+f))break;47===d&&(u=f)}var h="";for(f=o+u+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+u):(a+=u,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!s){o=r+1;break}}else-1===c&&(s=!1,c=r+1),a>=0&&(l===n.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=c))}return o===i?i=c:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){o=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===o&&(i=!1,o=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!i){r=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var s=-1,a=0,c=-1,l=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(o=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===o?-1===s?s=u:1!==f&&(f=1):-1!==s&&(f=-1);else if(!l){a=u+1;break}return-1===s||-1===c||0===f||1===f&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&i?e.slice(1,c):e.slice(a,c)):(0===a&&i?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{var e;if(n.r(o),n.d(o,{URI:()=>p,Utils:()=>x}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){var t=navigator.userAgent;e=t.indexOf("Windows")>=0}var r,i,s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//;function u(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.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(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var f="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=function(){function t(e,t,n,r,o,i){void 0===i&&(i=!1),"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||f),this.query=r||f,this.fragment=o||f,u(this,i))}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return S(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,o=e.query,i=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===o?o=this.query:null===o&&(o=f),void 0===i?i=this.fragment:null===i&&(i=f),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new g(t,n,r,o,i)},t.parse=function(e,t){void 0===t&&(t=!1);var n=h.exec(e);return n?new g(n[2]||f,E(n[4]||f),E(n[5]||f),E(n[7]||f),E(n[9]||f),t):new g(f,f,f,f,f)},t.file=function(t){var n=f;if(e&&(t=t.replace(/\\/g,d)),t[0]===d&&t[1]===d){var r=t.indexOf(d,2);-1===r?(n=t.substring(2),t=d):(n=t.substring(2,r),t=t.substring(r)||d)}return new g("file",n,t,f,f)},t.from=function(e){var t=new g(e.scheme,e.authority,e.path,e.query,e.fragment);return u(t,!0),t},t.prototype.toString=function(e){return void 0===e&&(e=!1),w(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var n=new g(e);return n._formatted=e.external,n._fsPath=e._sep===m?e.fsPath:null,n}return e},t}(),m=e?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=S(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(p),y=((i={})[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function v(e,t,n){for(var r=void 0,o=-1,i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));var a=y[s];void 0!==a?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=a):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function b(e){for(var t=void 0,n=0;n1&&"file"===t.scheme?"//".concat(t.authority).concat(t.path):47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function w(e,t){var n=t?b:v,r="",o=e.scheme,i=e.authority,s=e.path,a=e.query,c=e.fragment;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=d,r+=d),i){var l=i.indexOf("@");if(-1!==l){var u=i.substr(0,l);i=i.substr(l+1),-1===(l=u.lastIndexOf(":"))?r+=n(u,!1,!1):(r+=n(u.substr(0,l),!1,!1),r+=":",r+=n(u.substr(l+1),!1,!0)),r+="@"}-1===(l=(i=i.toLowerCase()).lastIndexOf(":"))?r+=n(i,!1,!0):(r+=n(i.substr(0,l),!1,!0),r+=i.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/".concat(String.fromCharCode(f+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s="".concat(String.fromCharCode(f+32),":").concat(s.substr(2)))}r+=n(s,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:v(c,!1,!1)),r}function _(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+_(e.substr(3)):e}}var k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(k)?e.replace(k,(function(e){return _(e)})):e}var x,C=n(470),T=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(p[e])}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(h,".")).split("."),t).join(".")}function b(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n>1,e+=m(e/t);e>455;r+=u)e=m(e/35);return m(r+36*e/(e+38))},_=function(e){var t,n=[],r=e.length,o=0,i=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c=128&&y("not-basic"),n.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f=r&&y("invalid-input");var g=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(g>=u||g>m((l-o)/h))&&y("overflow"),o+=g*h;var v=p<=s?1:p>=s+26?26:p-s;if(gm(l/b)&&y("overflow"),h*=b}var S=n.length+1;s=w(o-d,S,0==d),m(o/S)>l-i&&y("overflow"),i+=m(o/S),o%=S,n.splice(o++,0,i)}return String.fromCodePoint.apply(String,n)},k=function(e){var t=[],n=(e=b(e)).length,r=128,o=0,i=72,s=!0,a=!1,c=void 0;try{for(var f,d=e[Symbol.iterator]();!(s=(f=d.next()).done);s=!0){var h=f.value;h<128&&t.push(g(h))}}catch(e){a=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(a)throw c}}var p=t.length,v=p;for(p&&t.push("-");v=r&&O<_&&(_=O)}}catch(e){E=!0,x=e}finally{try{!k&&T.return&&T.return()}finally{if(E)throw x}}var A=v+1;_-r>m((l-o)/A)&&y("overflow"),o+=(_-r)*A,r=_;var P=!0,N=!1,R=void 0;try{for(var M,I=e[Symbol.iterator]();!(P=(M=I.next()).done);P=!0){var j=M.value;if(jl&&y("overflow"),j==r){for(var $=o,D=u;;D+=u){var L=D<=i?1:D>=i+26?26:D-i;if($>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function T(e){for(var t="",n=0,r=e.length;n=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var s=parseInt(e.substr(n+4,2),16),a=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&a)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function O(e,t){function n(e){var n=T(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,C).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,C).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,C).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,C).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,C).replace(t.PCT_ENCODED,o)),e}function A(e){return e.replace(/^0*(.*)/,"$1")||"0"}function P(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=c(n,2)[1];return r?r.split(".").map(A).join("."):e}function N(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=c(n,3),o=r[1],i=r[2];if(o){for(var s=o.toLowerCase().split("::").reverse(),a=c(s,2),l=a[0],u=a[1],f=u?u.split(":").map(A):[],d=l.split(":").map(A),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,m=d.length-p,g=Array(p),y=0;y1){var S=g.slice(0,v.index),w=g.slice(v.index+v.length);b=S.join(":")+"::"+w.join(":")}else b=g.join(":");return i&&(b+="%"+i),b}return e}var R=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,M=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?a:s;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(R);if(o){M?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=N(P(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=x[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)O(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=E.toASCII(n.host.replace(r.PCT_ENCODED,T).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}O(n,s)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var j=/^\.\.?\//,$=/^\/\.(\/|$)/,D=/^\/\.\.(\/|$)/,L=/^\/?(?:.|\n)*?(?=\/|$)/;function F(e){for(var t=[];e.length;)if(e.match(j))e=e.replace(j,"");else if(e.match($))e=e.replace($,"/");else if(e.match(D))e=e.replace(D,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(L);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?a:s,r=[],o=x[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?E.toUnicode(e.host):E.toASCII(e.host.replace(n.PCT_ENCODED,T).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}O(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?a:s,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(N(P(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||o&&o.absolutePath||(c=F(c)),void 0===i&&(c=c.replace(/^\/\//,"/%2F")),r.push(c)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=I(q(e,n),n),t=I(q(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=F(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=F(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=F(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=F(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function U(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:s.PCT_ENCODED,T)}var W={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},B={scheme:"https",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize};function K(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var H={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=K(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(K(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=c(n,2),o=r[0],i=r[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},Y={scheme:"wss",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize},z={},J="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",G="[0-9A-Fa-f]",Q=n(n("%[EFef]"+G+"%"+G+G+"%"+G+G)+"|"+n("%[89A-Fa-f]"+G+"%"+G+G)+"|"+n("%"+G+G)),X=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Z=new RegExp(J,"g"),ee=new RegExp(Q,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',X),"g"),ne=new RegExp(t("[^]",J,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),re=ne;function oe(e){var t=T(e);return t.match(Z)?t:e}var ie={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},s=n.query.split("&"),a=0,c=s.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.Trace=t.ProgressType=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.RAL=void 0,t.CancellationStrategy=void 0;const r=n(20839);Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return r.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return r.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return r.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return r.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return r.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return r.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return r.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return r.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return r.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return r.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return r.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return r.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return r.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return r.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return r.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return r.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return r.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return r.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return r.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return r.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return r.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return r.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return r.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return r.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return r.ParameterStructures}});const o=n(83911);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return o.Disposable}});const i=n(27135);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return i.Emitter}});const s=n(13881);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const a=n(56525);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=n(96654);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const l=n(61343);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return l.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return l.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return l.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return l.createMessageConnection}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return l.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return l.Trace}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return l.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return l.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return l.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return l.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return l.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return l.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return l.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return l.CancellationStrategy}});const u=n(30147);t.RAL=u.default},13881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const r=n(30147),o=n(67574),i=n(27135);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||o.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(s=t.CancellationToken||(t.CancellationToken={}));const a=Object.freeze((function(e,t){const n=r.default().timer.setTimeout(e.bind(t),0);return{dispose(){r.default().timer.clearTimeout(n)}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new i.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None}}},61343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.Trace=t.NullLogger=t.ProgressType=void 0;const r=n(30147),o=n(67574),i=n(20839),s=n(96184),a=n(27135),c=n(13881);var l,u,f,d,h,p,m,g,y,v,b,S,w;!function(e){e.type=new i.NotificationType("$/cancelRequest")}(l||(l={})),function(e){e.type=new i.NotificationType("$/progress")}(u||(u={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return o.func(e)}}(f||(f={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Verbose=2]="Verbose"}(d=t.Trace||(t.Trace={})),function(e){e.fromString=function(t){if(!o.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Verbose:return"verbose";default:return"off"}}}(d=t.Trace||(t.Trace={})),function(e){e.Text="text",e.JSON="json"}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(h=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new i.NotificationType("$/setTrace")}(p=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new i.NotificationType("$/logTrace")}(m=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(g=t.ConnectionErrors||(t.ConnectionErrors={}));class _ extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,_.prototype)}}t.ConnectionError=_,function(e){e.is=function(e){const t=e;return t&&o.func(t.cancelUndispatched)}}(y=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){const t=e;return t&&o.func(t.createCancellationTokenSource)}}(v=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation(e,t){e.sendNotification(l.type,{id:t})},cleanup(e){}}),e.is=function(e){const t=e;return t&&o.func(t.sendCancellation)&&o.func(t.cleanup)}}(b=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:v.Message,sender:b.Message}),e.is=function(e){const t=e;return t&&v.is(t.receiver)&&b.is(t.sender)}}(S=t.CancellationStrategy||(t.CancellationStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(S.is(t.cancellationStrategy)||y.is(t.connectionStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(w||(w={})),t.createMessageConnection=function(e,n,y,v){const b=void 0!==y?y:t.NullLogger;let k=0,E=0,x=0;const C="2.0";let T;const O=Object.create(null);let A;const P=Object.create(null),N=new Map;let R,M,I=new s.LinkedMap,j=Object.create(null),$=Object.create(null),D=d.Off,L=h.Text,F=w.New;const q=new a.Emitter,V=new a.Emitter,U=new a.Emitter,W=new a.Emitter,B=new a.Emitter,K=v&&v.cancellationStrategy?v.cancellationStrategy:S.Message;function H(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function Y(e){}function z(){return F===w.Listening}function J(){return F===w.Closed}function G(){return F===w.Disposed}function Q(){F!==w.New&&F!==w.Listening||(F=w.Closed,V.fire(void 0))}function X(){R||0===I.size||(R=r.default().timer.setImmediate((()=>{R=void 0,function(){if(0===I.size)return;const e=I.shift();try{i.isRequestMessage(e)?function(e){if(G())return;function t(t,r,o){const s={jsonrpc:C,id:e.id};t instanceof i.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,ee(s,r,o),n.write(s)}function r(t,r,o){const i={jsonrpc:C,id:e.id,error:t.toJson()};ee(i,r,o),n.write(i)}!function(e){if(D!==d.Off&&M)if(L===h.Text){let t;D===d.Verbose&&e.params&&(t=`Params: ${JSON.stringify(e.params,null,4)}\n\n`),M.log(`Received request '${e.method} - (${e.id})'.`,t)}else te("receive-request",e)}(e);const s=O[e.method];let a,c;s&&(a=s.type,c=s.handler);const l=Date.now();if(c||T){const s=String(e.id),u=K.receiver.createCancellationTokenSource(s);$[s]=u;try{let f;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void r(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but recevied none.`),e.method,l);f=c(u.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===i.ParameterStructures.byName)return void r(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,l);f=c(...e.params,u.token)}else{if(void 0!==a&&a.parameterStructures===i.ParameterStructures.byPosition)return void r(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,l);f=c(e.params,u.token)}else T&&(f=T(e.method,e.params,u.token));const d=f;f?d.then?d.then((n=>{delete $[s],t(n,e.method,l)}),(t=>{delete $[s],t instanceof i.ResponseError?r(t,e.method,l):t&&o.string(t.message)?r(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):r(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)})):(delete $[s],t(f,e.method,l)):(delete $[s],function(t,r,o){void 0===t&&(t=null);const i={jsonrpc:C,id:e.id,result:t};ee(i,r,o),n.write(i)}(f,e.method,l))}catch(n){delete $[s],n instanceof i.ResponseError?t(n,e.method,l):n&&o.string(n.message)?r(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,l):r(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}}else r(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,l)}(e):i.isNotificationMessage(e)?function(e){if(G())return;let t,n;if(e.method===l.type.method)n=e=>{const t=e.id,n=$[String(t)];n&&n.cancel()};else{const r=P[e.method];r&&(n=r.handler,t=r.type)}if(n||A)try{!function(e){if(D!==d.Off&&M&&e.method!==m.type.method)if(L===h.Text){let t;D===d.Verbose&&(t=e.params?`Params: ${JSON.stringify(e.params,null,4)}\n\n`:"No parameters provided.\n\n"),M.log(`Received notification '${e.method}'.`,t)}else te("receive-notification",e)}(e),n?void 0===e.params?(void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==i.ParameterStructures.byName&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but recevied none.`),n()):Array.isArray(e.params)?(void 0!==t&&(t.parameterStructures===i.ParameterStructures.byName&&b.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${e.params.length} argumennts`)),n(...e.params)):(void 0!==t&&t.parameterStructures===i.ParameterStructures.byPosition&&b.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params)):A&&A(e.method,e.params)}catch(t){t.message?b.error(`Notification handler '${e.method}' failed with message: ${t.message}`):b.error(`Notification handler '${e.method}' failed unexpectedly.`)}else U.fire(e)}(e):i.isResponseMessage(e)?function(e){if(!G())if(null===e.id)e.error?b.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):b.error("Received response message without id. No further error information provided.");else{const t=String(e.id),n=j[t];if(function(e,t){if(D!==d.Off&&M)if(L===h.Text){let n;if(D===d.Verbose&&(e.error&&e.error.data?n=`Error data: ${JSON.stringify(e.error.data,null,4)}\n\n`:e.result?n=`Result: ${JSON.stringify(e.result,null,4)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";M.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else M.log(`Received response ${e.id} without active response promise.`,n)}else te("receive-response",e)}(e,n),n){delete j[t];try{if(e.error){const t=e.error;n.reject(new i.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?b.error(`Response handler '${n.method}' failed with message: ${e.message}`):b.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void b.error("Received empty message.");b.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(o.string(t.id)||o.number(t.id)){const e=String(t.id),n=j[e];n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}finally{X()}}()})))}e.onClose(Q),e.onError((function(e){q.fire([e,void 0,void 0])})),n.onClose(Q),n.onError((function(e){q.fire(e)}));const Z=e=>{try{if(i.isNotificationMessage(e)&&e.method===l.type.method){const t=H(e.params.id),r=I.get(t);if(i.isRequestMessage(r)){const o=null==v?void 0:v.connectionStrategy,i=o&&o.cancelUndispatched?o.cancelUndispatched(r,Y):void 0;if(i&&(void 0!==i.error||void 0!==i.result))return I.delete(t),i.id=r.id,ee(i,e.method,Date.now()),void n.write(i)}}!function(e,t){var n;i.isRequestMessage(t)?e.set(H(t.id),t):i.isResponseMessage(t)?e.set(null===(n=t.id)?"res-unknown-"+(++x).toString():"res-"+n.toString(),t):e.set("not-"+(++E).toString(),t)}(I,e)}finally{X()}};function ee(e,t,n){if(D!==d.Off&&M)if(L===h.Text){let r;D===d.Verbose&&(e.error&&e.error.data?r=`Error data: ${JSON.stringify(e.error.data,null,4)}\n\n`:e.result?r=`Result: ${JSON.stringify(e.result,null,4)}\n\n`:void 0===e.error&&(r="No result returned.\n\n")),M.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else te("send-response",e)}function te(e,t){if(!M||D===d.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};M.log(n)}function ne(){if(J())throw new _(g.Closed,"Connection is closed.");if(G())throw new _(g.Disposed,"Connection is disposed.")}function re(e){return void 0===e?null:e}function oe(e){return null===e?void 0:e}function ie(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function se(e,t){switch(e){case i.ParameterStructures.auto:return ie(t)?oe(t):[re(t)];case i.ParameterStructures.byName:if(!ie(t))throw new Error("Recevied parameters by name but param is not an object literal.");return oe(t);case i.ParameterStructures.byPosition:return[re(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ae(e,t){let n;const r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=se(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{let r,s;if(ne(),o.string(e)){r=e;const n=t[0];let o=0,a=i.ParameterStructures.auto;i.ParameterStructures.is(n)&&(o=1,a=n);let c=t.length;const l=c-o;switch(l){case 0:s=void 0;break;case 1:s=se(a,t[o]);break;default:if(a===i.ParameterStructures.byName)throw new Error(`Recevied ${l} parameters for 'by Name' notification parameter structure.`);s=t.slice(o,c).map((e=>re(e)))}}else{const n=t;r=e.method,s=ae(e,n)}const a={jsonrpc:C,method:r,params:s};!function(e){if(D!==d.Off&&M)if(L===h.Text){let t;D===d.Verbose&&(t=e.params?`Params: ${JSON.stringify(e.params,null,4)}\n\n`:"No parameters provided.\n\n"),M.log(`Sending notification '${e.method}'.`,t)}else te("send-notification",e)}(a),n.write(a)},onNotification:(e,t)=>{let n;return ne(),o.func(e)?A=e:t&&(o.string(e)?(n=e,P[e]={type:void 0,handler:t}):(n=e.method,P[e.method]={type:e,handler:t})),{dispose:()=>{void 0!==n?delete P[n]:A=void 0}}},onProgress:(e,t,n)=>{if(N.has(t))throw new Error(`Progress handler for token ${t} already registered`);return N.set(t,n),{dispose:()=>{N.delete(t)}}},sendProgress:(e,t,n)=>{ce.sendNotification(u.type,{token:t,value:n})},onUnhandledProgress:W.event,sendRequest:(e,...t)=>{let r,s,a;if(ne(),function(){if(!z())throw new Error("Call listen() first.")}(),o.string(e)){r=e;const n=t[0],o=t[t.length-1];let l=0,u=i.ParameterStructures.auto;i.ParameterStructures.is(n)&&(l=1,u=n);let f=t.length;c.CancellationToken.is(o)&&(f-=1,a=o);const d=f-l;switch(d){case 0:s=void 0;break;case 1:s=se(u,t[l]);break;default:if(u===i.ParameterStructures.byName)throw new Error(`Recevied ${d} parameters for 'by Name' request parameter structure.`);s=t.slice(l,f).map((e=>re(e)))}}else{const n=t;r=e.method,s=ae(e,n);const o=e.numberOfParams;a=c.CancellationToken.is(n[o])?n[o]:void 0}const l=k++;let u;return a&&(u=a.onCancellationRequested((()=>{K.sender.sendCancellation(ce,l)}))),new Promise(((e,t)=>{const o={jsonrpc:C,id:l,method:r,params:s};let a={method:r,timerStart:Date.now(),resolve:t=>{e(t),K.sender.cleanup(l),null==u||u.dispose()},reject:e=>{t(e),K.sender.cleanup(l),null==u||u.dispose()}};!function(e){if(D!==d.Off&&M)if(L===h.Text){let t;D===d.Verbose&&e.params&&(t=`Params: ${JSON.stringify(e.params,null,4)}\n\n`),M.log(`Sending request '${e.method} - (${e.id})'.`,t)}else te("send-request",e)}(o);try{n.write(o)}catch(e){a.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),a=null}a&&(j[String(l)]=a)}))},onRequest:(e,t)=>{ne();let n=null;return f.is(e)?(n=void 0,T=e):o.string(e)?(n=null,void 0!==t&&(n=e,O[e]={handler:t,type:void 0})):void 0!==t&&(n=e.method,O[e.method]={type:e,handler:t}),{dispose:()=>{null!==n&&(void 0!==n?delete O[n]:T=void 0)}}},trace:(e,t,n)=>{let r=!1,i=h.Text;void 0!==n&&(o.boolean(n)?r=n:(r=n.sendNotification||!1,i=n.traceFormat||h.Text)),D=e,L=i,M=D===d.Off?void 0:t,!r||J()||G()||ce.sendNotification(p.type,{value:d.toString(e)})},onError:q.event,onClose:V.event,onUnhandledNotification:U.event,onDispose:B.event,end:()=>{n.end()},dispose:()=>{if(G())return;F=w.Disposed,B.fire(void 0);const t=new Error("Connection got disposed.");Object.keys(j).forEach((e=>{j[e].reject(t)})),j=Object.create(null),$=Object.create(null),I=new s.LinkedMap,o.func(n.dispose)&&n.dispose(),o.func(e.dispose)&&e.dispose()},listen:()=>{ne(),function(){if(z())throw new _(g.AlreadyListening,"Connection is already listening")}(),F=w.Listening,e.listen(Z)},inspect:()=>{r.default().console.log("inspect")}};return ce.onNotification(m.type,(e=>{D!==d.Off&&M&&M.log(e.message,D===d.Verbose?e.verbose:void 0)})),ce.onNotification(u.type,(e=>{const t=N.get(e.token);t?t(e.value):W.fire(e)})),ce}},83911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return{dispose:e}}},27135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const r=n(30147);!function(e){const t={dispose(){}};e.None=function(){return t}}(t.Event||(t.Event={}));class o{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,o=this._callbacks.length;r{this._callbacks||(this._callbacks=new o),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),r.dispose=i._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=i,i._noop=function(){}},67574:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))}},96184:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n=t.Touch||(t.Touch={}));class r{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=n.None){const r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let o=this._map.get(e);if(o)o.value=t,r!==n.None&&this.touch(o,r);else{switch(o={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(o);break;case n.First:this.addItemFirst(o);break;case n.Last:default:this.addItemLast(o)}this._map.set(e,o),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=r,t.LRUCache=class extends r{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},75530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(0===this._chunks.length)return;let e=0,t=0,n=0,r=0;e:for(;tthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const r=this._chunks[0];if(r.byteLength>e){const o=r.slice(0,e);t.set(o,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}},56525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const r=n(30147),o=n(67574),i=n(27135);var s;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&o.func(t.listen)&&o.func(t.dispose)&&o.func(t.onError)&&o.func(t.onClose)&&o.func(t.onPartialMessage)};class a{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter,this.partialMessageEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${o.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=a,function(e){e.fromOptions=function(e){var t;let n,o;const i=new Map;let s;const a=new Map;if(void 0===e||"string"==typeof e)n=null!=e?e:"utf-8";else{if(n=null!==(t=e.charset)&&void 0!==t?t:"utf-8",void 0!==e.contentDecoder&&(o=e.contentDecoder,i.set(o.name,o)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(s=e.contentTypeDecoder,a.set(s.name,s)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)a.set(t.name,t)}return void 0===s&&(s=r.default().applicationJson.decoder,a.set(s.name,s)),{charset:n,contentDecoder:o,contentDecoders:i,contentTypeDecoder:s,contentTypeDecoders:a}}}(s||(s={})),t.ReadableStreamMessageReader=class extends a{constructor(e,t){super(),this.readable=e,this.options=s.fromOptions(t),this.buffer=r.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders();if(!e)return;const t=e.get("Content-Length");if(!t)throw new Error("Header must provide a Content-Length property.");const n=parseInt(t);if(isNaN(n))throw new Error("Content-Length value must be a number.");this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();let t;this.clearPartialMessageTimer(),this.nextMessageLength=-1,t=void 0!==this.options.contentDecoder?this.options.contentDecoder.decode(e):Promise.resolve(e),t.then((e=>{this.options.contentTypeDecoder.decode(e,this.options).then((e=>{this.callback(e)}),(e=>{this.fireError(e)}))}),(e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(r.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=r.default().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},96654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const r=n(30147),o=n(67574),i=n(80142),s=n(27135);var a;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&o.func(t.dispose)&&o.func(t.onClose)&&o.func(t.onError)&&o.func(t.write)};class c{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${o.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=c,function(e){e.fromOptions=function(e){var t,n;return void 0===e||"string"==typeof e?{charset:null!=e?e:"utf-8",contentTypeEncoder:r.default().applicationJson.encoder}:{charset:null!==(t=e.charset)&&void 0!==t?t:"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:null!==(n=e.contentTypeEncoder)&&void 0!==n?n:r.default().applicationJson.encoder}}}(a||(a={})),t.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=a.fromOptions(t),this.errorCount=0,this.writeSemaphore=new i.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},20839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isResponseMessage=t.isNotificationMessage=t.isRequestMessage=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const r=n(67574);var o;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=e.jsonrpcReservedErrorRangeStart,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=e.jsonrpcReservedErrorRangeEnd}(o=t.ErrorCodes||(t.ErrorCodes={}));class i extends Error{constructor(e,t,n){super(t),this.code=r.number(e)?e:o.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,i.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}}t.ResponseError=i;class s{constructor(e){this.kind=e}static is(e){return e===s.auto||e===s.byName||e===s.byPosition}toString(){return this.kind}}t.ParameterStructures=s,s.auto=new s("auto"),s.byPosition=new s("byPosition"),s.byName=new s("byName");class a{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return s.auto}}t.AbstractMessageSignature=a,t.RequestType0=class extends a{constructor(e){super(e,0)}},t.RequestType=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends a{constructor(e){super(e,2)}},t.RequestType3=class extends a{constructor(e){super(e,3)}},t.RequestType4=class extends a{constructor(e){super(e,4)}},t.RequestType5=class extends a{constructor(e){super(e,5)}},t.RequestType6=class extends a{constructor(e){super(e,6)}},t.RequestType7=class extends a{constructor(e){super(e,7)}},t.RequestType8=class extends a{constructor(e){super(e,8)}},t.RequestType9=class extends a{constructor(e){super(e,9)}},t.NotificationType=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends a{constructor(e){super(e,0)}},t.NotificationType1=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends a{constructor(e){super(e,2)}},t.NotificationType3=class extends a{constructor(e){super(e,3)}},t.NotificationType4=class extends a{constructor(e){super(e,4)}},t.NotificationType5=class extends a{constructor(e){super(e,5)}},t.NotificationType6=class extends a{constructor(e){super(e,6)}},t.NotificationType7=class extends a{constructor(e){super(e,7)}},t.NotificationType8=class extends a{constructor(e){super(e,8)}},t.NotificationType9=class extends a{constructor(e){super(e,9)}},t.isRequestMessage=function(e){const t=e;return t&&r.string(t.method)&&(r.string(t.id)||r.number(t.id))},t.isNotificationMessage=function(e){const t=e;return t&&r.string(t.method)&&void 0===e.id},t.isResponseMessage=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(r.string(t.id)||r.number(t.id)||null===t.id)}},30147:(e,t)=>{"use strict";let n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},80142:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const r=n(30147);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&r.default().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},74389:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const i=n(23034);i.default.install();const s=n(23870),a=n(71017),c=n(22037),l=n(6113),u=n(41808);o(n(23870),t);class f extends s.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),s.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=f;class d extends s.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=d;class h extends s.ReadableStreamMessageReader{constructor(e,t="utf-8"){super(i.default().stream.asReadableStream(e),t)}}t.SocketMessageReader=h;class p extends s.WriteableStreamMessageWriter{constructor(e,t){super(i.default().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=p;class m extends s.ReadableStreamMessageReader{constructor(e,t){super(i.default().stream.asReadableStream(e),t)}}t.StreamMessageReader=m;class g extends s.WriteableStreamMessageWriter{constructor(e,t){super(i.default().stream.asWritableStream(e),t)}}t.StreamMessageWriter=g;const y=process.env.XDG_RUNTIME_DIR,v=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){const e=l.randomBytes(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=y?a.join(y,`vscode-ipc-${e}.sock`):a.join(c.tmpdir(),`vscode-${e}.sock`);const n=v.get(process.platform);return void 0!==n&&t.length>=n&&i.default().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t},t.createClientPipeTransport=function(e,t="utf-8"){let n;const r=new Promise(((e,t)=>{n=e}));return new Promise(((o,i)=>{let s=u.createServer((e=>{s.close(),n([new h(e,t),new p(e,t)])}));s.on("error",i),s.listen(e,(()=>{s.removeListener("error",i),o({onConnected:()=>r})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=u.createConnection(e);return[new h(n,t),new p(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const r=new Promise(((e,t)=>{n=e}));return new Promise(((o,i)=>{const s=u.createServer((e=>{s.close(),n([new h(e,t),new p(e,t)])}));s.on("error",i),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",i),o({onConnected:()=>r})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=u.createConnection(e,"127.0.0.1");return[new h(n,t),new p(n,t)]},t.createMessageConnection=function(e,t,n,r){n||(n=s.NullLogger);const o=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new m(e):e,i=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new g(t):t;return s.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),s.createMessageConnection(o,i,n,r)}},23034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30147),o=n(73837),i=n(83911),s=n(75530);class a extends s.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return a.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new o.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}a.emptyBuffer=Buffer.allocUnsafe(0);class c{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),i.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),i.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),i.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),i.Disposable.create((()=>this.stream.off("data",e)))}}class l{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),i.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),i.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),i.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,r)=>{const o=e=>{null==e?n():r(e)};"string"==typeof e?this.stream.write(e,t,o):this.stream.write(e,o)}))}end(){this.stream.end()}}const u=Object.freeze({messageBuffer:Object.freeze({create:e=>new a(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new o.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new c(e),asWritableStream:e=>new l(e)}),console,timer:Object.freeze({setTimeout:(e,t,...n)=>setTimeout(e,t,...n),clearTimeout(e){clearTimeout(e)},setImmediate:(e,...t)=>setImmediate(e,...t),clearImmediate(e){clearImmediate(e)}})});function f(){return u}!function(e){e.install=function(){r.default.install(u)}}(f||(f={})),t.default=f},95028:(e,t,n)=>{"use strict";e.exports=n(74389)},51661:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,o(n(74389),t),o(n(65882),t),o(n(66140),t),o(n(10542),t);var i,s=n(73767);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),(i=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,i.ContentModified=-32801,i.RequestCancelled=-32800,i.lspReservedErrorRangeEnd=-32800},73767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const r=n(74389);t.createProtocolConnection=function(e,t,n,o){return r.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),r.createMessageConnection(e,t,n,o)}},66140:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=void 0;const r=n(74389);t.RegistrationType=class{constructor(e){this.method=e}};class o extends r.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=o;class i extends r.RequestType{constructor(e){super(e,r.ParameterStructures.byName)}}t.ProtocolRequestType=i;class s extends r.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=s;class a extends r.NotificationType{constructor(e){super(e,r.ParameterStructures.byName)}}t.ProtocolNotificationType=a},82918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const r=n(66140);var o,i,s;(s=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",s.type=new r.ProtocolRequestType(s.method),(i=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",i.type=new r.ProtocolRequestType(i.method),(o=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",o.type=new r.ProtocolRequestType(o.method)},79891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const r=n(66140);var o;(o=t.DocumentColorRequest||(t.DocumentColorRequest={})).method="textDocument/documentColor",o.type=new r.ProtocolRequestType(o.method),(t.ColorPresentationRequest||(t.ColorPresentationRequest={})).type=new r.ProtocolRequestType("textDocument/colorPresentation")},85934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const r=n(66140);(t.ConfigurationRequest||(t.ConfigurationRequest={})).type=new r.ProtocolRequestType("workspace/configuration")},40764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const r=n(66140);var o;(o=t.DeclarationRequest||(t.DeclarationRequest={})).method="textDocument/declaration",o.type=new r.ProtocolRequestType(o.method)},37846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const r=n(66140);var o,i,s,a,c,l,u;(u=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file="file",u.folder="folder",(l=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method="workspace/willCreateFiles",l.type=new r.ProtocolRequestType(l.method),(c=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method="workspace/didCreateFiles",c.type=new r.ProtocolNotificationType(c.method),(a=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method="workspace/willRenameFiles",a.type=new r.ProtocolRequestType(a.method),(s=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method="workspace/didRenameFiles",s.type=new r.ProtocolNotificationType(s.method),(i=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",i.type=new r.ProtocolNotificationType(i.method),(o=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",o.type=new r.ProtocolRequestType(o.method)},13394:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRequest=t.FoldingRangeKind=void 0;const r=n(66140);var o,i;(i=t.FoldingRangeKind||(t.FoldingRangeKind={})).Comment="comment",i.Imports="imports",i.Region="region",(o=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method="textDocument/foldingRange",o.type=new r.ProtocolRequestType(o.method)},82122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const r=n(66140);var o;(o=t.ImplementationRequest||(t.ImplementationRequest={})).method="textDocument/implementation",o.type=new r.ProtocolRequestType(o.method)},10542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeError=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.DocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=void 0;const r=n(69533),o=n(66140),i=n(82122);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return i.ImplementationRequest}});const s=n(71589);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const a=n(79795);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return a.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return a.DidChangeWorkspaceFoldersNotification}});const c=n(85934);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return c.ConfigurationRequest}});const l=n(79891);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return l.ColorPresentationRequest}});const u=n(13394);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return u.FoldingRangeRequest}});const f=n(40764);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const d=n(5206);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return d.SelectionRangeRequest}});const h=n(21862);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return h.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return h.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return h.WorkDoneProgressCancelNotification}});const p=n(82918);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return p.CallHierarchyPrepareRequest}});const m=n(39434);Object.defineProperty(t,"SemanticTokenTypes",{enumerable:!0,get:function(){return m.SemanticTokenTypes}}),Object.defineProperty(t,"SemanticTokenModifiers",{enumerable:!0,get:function(){return m.SemanticTokenModifiers}}),Object.defineProperty(t,"SemanticTokens",{enumerable:!0,get:function(){return m.SemanticTokens}}),Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return m.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return m.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return m.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return m.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return m.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return m.SemanticTokensRegistrationType}});const g=n(75726);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return g.ShowDocumentRequest}});const y=n(26305);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return y.LinkedEditingRangeRequest}});const v=n(37846);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return v.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return v.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return v.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return v.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return v.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return v.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return v.WillDeleteFilesRequest}});const b=n(73443);var S,w,_,k,E,x,C,T,O,A,P,N,R,M,I,j,$,D,L,F,q,V,U,W,B,K,H,Y,z,J,G,Q,X,Z,ee,te,ne,re,oe,ie;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return b.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return b.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return b.MonikerRequest}}),function(e){e.is=function(e){const t=e;return r.string(t.language)||r.string(t.scheme)||r.string(t.pattern)}}(S=t.DocumentFilter||(t.DocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!r.string(t)&&!S.is(t))return!1;return!0}}(w=t.DocumentSelector||(t.DocumentSelector={})),(t.RegistrationRequest||(t.RegistrationRequest={})).type=new o.ProtocolRequestType("client/registerCapability"),(t.UnregistrationRequest||(t.UnregistrationRequest={})).type=new o.ProtocolRequestType("client/unregisterCapability"),(ie=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create="create",ie.Rename="rename",ie.Delete="delete",(oe=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort="abort",oe.Transactional="transactional",oe.TextOnlyTransactional="textOnlyTransactional",oe.Undo="undo",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&r.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||w.is(t.documentSelector))},(re=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return r.objectLiteral(t)&&(void 0===t.workDoneProgress||r.boolean(t.workDoneProgress))},re.hasWorkDoneProgress=function(e){const t=e;return t&&r.boolean(t.workDoneProgress)},(t.InitializeRequest||(t.InitializeRequest={})).type=new o.ProtocolRequestType("initialize"),(t.InitializeError||(t.InitializeError={})).unknownProtocolVersion=1,(t.InitializedNotification||(t.InitializedNotification={})).type=new o.ProtocolNotificationType("initialized"),(t.ShutdownRequest||(t.ShutdownRequest={})).type=new o.ProtocolRequestType0("shutdown"),(t.ExitNotification||(t.ExitNotification={})).type=new o.ProtocolNotificationType0("exit"),(t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).type=new o.ProtocolNotificationType("workspace/didChangeConfiguration"),(ne=t.MessageType||(t.MessageType={})).Error=1,ne.Warning=2,ne.Info=3,ne.Log=4,(t.ShowMessageNotification||(t.ShowMessageNotification={})).type=new o.ProtocolNotificationType("window/showMessage"),(t.ShowMessageRequest||(t.ShowMessageRequest={})).type=new o.ProtocolRequestType("window/showMessageRequest"),(t.LogMessageNotification||(t.LogMessageNotification={})).type=new o.ProtocolNotificationType("window/logMessage"),(t.TelemetryEventNotification||(t.TelemetryEventNotification={})).type=new o.ProtocolNotificationType("telemetry/event"),(te=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,te.Full=1,te.Incremental=2,(ee=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",ee.type=new o.ProtocolNotificationType(ee.method),(Z=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},Z.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(X=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method="textDocument/didChange",X.type=new o.ProtocolNotificationType(X.method),(Q=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method="textDocument/didClose",Q.type=new o.ProtocolNotificationType(Q.method),(G=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method="textDocument/didSave",G.type=new o.ProtocolNotificationType(G.method),(J=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,J.AfterDelay=2,J.FocusOut=3,(z=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method="textDocument/willSave",z.type=new o.ProtocolNotificationType(z.method),(Y=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",Y.type=new o.ProtocolRequestType(Y.method),(t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).type=new o.ProtocolNotificationType("workspace/didChangeWatchedFiles"),(H=t.FileChangeType||(t.FileChangeType={})).Created=1,H.Changed=2,H.Deleted=3,(K=t.WatchKind||(t.WatchKind={})).Create=1,K.Change=2,K.Delete=4,(t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).type=new o.ProtocolNotificationType("textDocument/publishDiagnostics"),(B=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,B.TriggerCharacter=2,B.TriggerForIncompleteCompletions=3,(W=t.CompletionRequest||(t.CompletionRequest={})).method="textDocument/completion",W.type=new o.ProtocolRequestType(W.method),(U=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method="completionItem/resolve",U.type=new o.ProtocolRequestType(U.method),(V=t.HoverRequest||(t.HoverRequest={})).method="textDocument/hover",V.type=new o.ProtocolRequestType(V.method),(q=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,q.TriggerCharacter=2,q.ContentChange=3,(F=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method="textDocument/signatureHelp",F.type=new o.ProtocolRequestType(F.method),(L=t.DefinitionRequest||(t.DefinitionRequest={})).method="textDocument/definition",L.type=new o.ProtocolRequestType(L.method),(D=t.ReferencesRequest||(t.ReferencesRequest={})).method="textDocument/references",D.type=new o.ProtocolRequestType(D.method),($=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method="textDocument/documentHighlight",$.type=new o.ProtocolRequestType($.method),(j=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method="textDocument/documentSymbol",j.type=new o.ProtocolRequestType(j.method),(I=t.CodeActionRequest||(t.CodeActionRequest={})).method="textDocument/codeAction",I.type=new o.ProtocolRequestType(I.method),(M=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method="codeAction/resolve",M.type=new o.ProtocolRequestType(M.method),(R=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method="workspace/symbol",R.type=new o.ProtocolRequestType(R.method),(N=t.CodeLensRequest||(t.CodeLensRequest={})).method="textDocument/codeLens",N.type=new o.ProtocolRequestType(N.method),(P=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method="codeLens/resolve",P.type=new o.ProtocolRequestType(P.method),(A=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",A.type=new o.ProtocolRequestType0(A.method),(O=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method="textDocument/documentLink",O.type=new o.ProtocolRequestType(O.method),(T=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method="documentLink/resolve",T.type=new o.ProtocolRequestType(T.method),(C=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method="textDocument/formatting",C.type=new o.ProtocolRequestType(C.method),(x=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",x.type=new o.ProtocolRequestType(x.method),(E=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",E.type=new o.ProtocolRequestType(E.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(k=t.RenameRequest||(t.RenameRequest={})).method="textDocument/rename",k.type=new o.ProtocolRequestType(k.method),(_=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method="textDocument/prepareRename",_.type=new o.ProtocolRequestType(_.method),(t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).type=new o.ProtocolRequestType("workspace/executeCommand"),(t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).type=new o.ProtocolRequestType("workspace/applyEdit")},26305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const r=n(66140);var o;(o=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",o.type=new r.ProtocolRequestType(o.method)},73443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const r=n(66140);var o,i,s;(s=t.UniquenessLevel||(t.UniquenessLevel={})).document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global",(i=t.MonikerKind||(t.MonikerKind={})).import="import",i.export="export",i.local="local",(o=t.MonikerRequest||(t.MonikerRequest={})).method="textDocument/moniker",o.type=new r.ProtocolRequestType(o.method)},21862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const r=n(74389),o=n(66140);var i;(i=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new r.ProgressType,i.is=function(e){return e===i.type},(t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).type=new o.ProtocolRequestType("window/workDoneProgress/create"),(t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).type=new o.ProtocolNotificationType("window/workDoneProgress/cancel")},5206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const r=n(66140);var o;(o=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method="textDocument/selectionRange",o.type=new r.ProtocolRequestType(o.method)},39434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=void 0;const r=n(66140);var o,i,s,a,c,l,u;(u=t.SemanticTokenTypes||(t.SemanticTokenTypes={})).namespace="namespace",u.type="type",u.class="class",u.enum="enum",u.interface="interface",u.struct="struct",u.typeParameter="typeParameter",u.parameter="parameter",u.variable="variable",u.property="property",u.enumMember="enumMember",u.event="event",u.function="function",u.method="method",u.macro="macro",u.keyword="keyword",u.modifier="modifier",u.comment="comment",u.string="string",u.number="number",u.regexp="regexp",u.operator="operator",(l=t.SemanticTokenModifiers||(t.SemanticTokenModifiers={})).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",(t.SemanticTokens||(t.SemanticTokens={})).is=function(e){const t=e;return void 0!==t&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])},(t.TokenFormat||(t.TokenFormat={})).Relative="relative",(c=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})).method="textDocument/semanticTokens",c.type=new r.RegistrationType(c.method),(a=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",a.type=new r.ProtocolRequestType(a.method),(s=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",s.type=new r.ProtocolRequestType(s.method),(i=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",i.type=new r.ProtocolRequestType(i.method),(o=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",o.type=new r.ProtocolRequestType0(o.method)},75726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const r=n(66140);var o;(o=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method="window/showDocument",o.type=new r.ProtocolRequestType(o.method)},71589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const r=n(66140);var o;(o=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method="textDocument/typeDefinition",o.type=new r.ProtocolRequestType(o.method)},79795:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const r=n(66140);(t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).type=new r.ProtocolRequestType0("workspace/workspaceFolders"),(t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).type=new r.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")},69533:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},40273:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const i=n(95028);o(n(95028),t),o(n(51661),t),t.createProtocolConnection=function(e,t,n,r){return i.createMessageConnection(e,t,n,r)}},96560:(e,t,n)=>{"use strict";e.exports=n(40273)},65882:(e,t,n)=>{"use strict";var r,o,i,s,a,c,l,u,f,d,h,p,m,g,y,v,b,S,w,_,k,E,x,C,T,O;n.r(t),n.d(t,{AnnotatedTextEdit:()=>k,ChangeAnnotation:()=>w,ChangeAnnotationIdentifier:()=>_,CodeAction:()=>ee,CodeActionContext:()=>Z,CodeActionKind:()=>X,CodeDescription:()=>y,CodeLens:()=>te,Color:()=>l,ColorInformation:()=>u,ColorPresentation:()=>f,Command:()=>b,CompletionItem:()=>q,CompletionItemKind:()=>j,CompletionItemTag:()=>D,CompletionList:()=>V,CreateFile:()=>x,DeleteFile:()=>T,Diagnostic:()=>v,DiagnosticRelatedInformation:()=>p,DiagnosticSeverity:()=>m,DiagnosticTag:()=>g,DocumentHighlight:()=>Y,DocumentHighlightKind:()=>H,DocumentLink:()=>re,DocumentSymbol:()=>Q,EOL:()=>le,FoldingRange:()=>h,FoldingRangeKind:()=>d,FormattingOptions:()=>ne,Hover:()=>W,InsertReplaceEdit:()=>L,InsertTextFormat:()=>$,InsertTextMode:()=>F,Location:()=>a,LocationLink:()=>c,MarkedString:()=>U,MarkupContent:()=>I,MarkupKind:()=>M,OptionalVersionedTextDocumentIdentifier:()=>N,ParameterInformation:()=>B,Position:()=>i,Range:()=>s,RenameFile:()=>C,SelectionRange:()=>oe,SignatureInformation:()=>K,SymbolInformation:()=>G,SymbolKind:()=>z,SymbolTag:()=>J,TextDocument:()=>ce,TextDocumentEdit:()=>E,TextDocumentIdentifier:()=>A,TextDocumentItem:()=>R,TextEdit:()=>S,VersionedTextDocumentIdentifier:()=>P,WorkspaceChange:()=>ae,WorkspaceEdit:()=>O,integer:()=>r,uinteger:()=>o}),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(o||(o={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=o.MAX_VALUE),t===Number.MAX_VALUE&&(t=o.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return ue.objectLiteral(t)&&ue.uinteger(t.line)&&ue.uinteger(t.character)}}(i||(i={})),function(e){e.create=function(e,t,n,r){if(ue.uinteger(e)&&ue.uinteger(t)&&ue.uinteger(n)&&ue.uinteger(r))return{start:i.create(e,t),end:i.create(n,r)};if(i.is(e)&&i.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return ue.objectLiteral(t)&&i.is(t.start)&&i.is(t.end)}}(s||(s={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ue.defined(t)&&s.is(t.range)&&(ue.string(t.uri)||ue.undefined(t.uri))}}(a||(a={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return ue.defined(t)&&s.is(t.targetRange)&&ue.string(t.targetUri)&&(s.is(t.targetSelectionRange)||ue.undefined(t.targetSelectionRange))&&(s.is(t.originSelectionRange)||ue.undefined(t.originSelectionRange))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return ue.numberRange(t.red,0,1)&&ue.numberRange(t.green,0,1)&&ue.numberRange(t.blue,0,1)&&ue.numberRange(t.alpha,0,1)}}(l||(l={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return s.is(t.range)&&l.is(t.color)}}(u||(u={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return ue.string(t.label)&&(ue.undefined(t.textEdit)||S.is(t))&&(ue.undefined(t.additionalTextEdits)||ue.typedArray(t.additionalTextEdits,S.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(d||(d={})),function(e){e.create=function(e,t,n,r,o){var i={startLine:e,endLine:t};return ue.defined(n)&&(i.startCharacter=n),ue.defined(r)&&(i.endCharacter=r),ue.defined(o)&&(i.kind=o),i},e.is=function(e){var t=e;return ue.uinteger(t.startLine)&&ue.uinteger(t.startLine)&&(ue.undefined(t.startCharacter)||ue.uinteger(t.startCharacter))&&(ue.undefined(t.endCharacter)||ue.uinteger(t.endCharacter))&&(ue.undefined(t.kind)||ue.string(t.kind))}}(h||(h={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ue.defined(t)&&a.is(t.location)&&ue.string(t.message)}}(p||(p={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(m||(m={})),function(e){e.Unnecessary=1,e.Deprecated=2}(g||(g={})),function(e){e.is=function(e){var t=e;return null!=t&&ue.string(t.href)}}(y||(y={})),function(e){e.create=function(e,t,n,r,o,i){var s={range:e,message:t};return ue.defined(n)&&(s.severity=n),ue.defined(r)&&(s.code=r),ue.defined(o)&&(s.source=o),ue.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t,n=e;return ue.defined(n)&&s.is(n.range)&&ue.string(n.message)&&(ue.number(n.severity)||ue.undefined(n.severity))&&(ue.integer(n.code)||ue.string(n.code)||ue.undefined(n.code))&&(ue.undefined(n.codeDescription)||ue.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ue.string(n.source)||ue.undefined(n.source))&&(ue.undefined(n.relatedInformation)||ue.typedArray(n.relatedInformation,p.is))}}(v||(v={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(o.arguments=n),o},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.title)&&ue.string(t.command)}}(b||(b={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return ue.objectLiteral(t)&&ue.string(t.newText)&&s.is(t.range)}}(S||(S={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&ue.objectLiteral(t)&&ue.string(t.label)&&(ue.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ue.string(t.description)||void 0===t.description)}}(w||(w={})),function(e){e.is=function(e){return"string"==typeof e}}(_||(_={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return S.is(t)&&(w.is(t.annotationId)||_.is(t.annotationId))}}(k||(k={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ue.defined(t)&&N.is(t.textDocument)&&Array.isArray(t.edits)}}(E||(E={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&ue.string(t.oldUri)&&ue.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ue.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ue.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}(C||(C={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&ue.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ue.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ue.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}(T||(T={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ue.string(e.kind)?x.is(e)||C.is(e)||T.is(e):E.is(e)})))}}(O||(O={}));var A,P,N,R,M,I,j,$,D,L,F,q,V,U,W,B,K,H,Y,z,J,G,Q,X,Z,ee,te,ne,re,oe,ie=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=S.insert(e,t):_.is(n)?(o=n,r=k.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=k.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=S.replace(e,t):_.is(n)?(o=n,r=k.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=k.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=S.del(e):_.is(t)?(r=t,n=k.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=k.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),se=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(_.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),ae=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new se(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(E.is(e)){var n=new ie(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ie(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(N.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new ie(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new ie(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new se,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(w.is(t)||_.is(t)?r=t:n=t,void 0===r?o=x.create(e,n):(i=_.is(r)?r:this._changeAnnotations.manage(r),o=x.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,s;if(w.is(n)||_.is(n)?o=n:r=n,void 0===o?i=C.create(e,t,r):(s=_.is(o)?o:this._changeAnnotations.manage(o),i=C.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(w.is(t)||_.is(t)?r=t:n=t,void 0===r?o=T.create(e,n):(i=_.is(r)?r:this._changeAnnotations.manage(r),o=T.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)}}(A||(A={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&ue.integer(t.version)}}(P||(P={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&(null===t.version||ue.integer(t.version))}}(N||(N={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return ue.defined(t)&&ue.string(t.uri)&&ue.string(t.languageId)&&ue.integer(t.version)&&ue.string(t.text)}}(R||(R={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(M||(M={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(M||(M={})),function(e){e.is=function(e){var t=e;return ue.objectLiteral(e)&&M.is(t.kind)&&ue.string(t.value)}}(I||(I={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(j||(j={})),function(e){e.PlainText=1,e.Snippet=2}($||($={})),function(e){e.Deprecated=1}(D||(D={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&ue.string(t.newText)&&s.is(t.insert)&&s.is(t.replace)}}(L||(L={})),function(e){e.asIs=1,e.adjustIndentation=2}(F||(F={})),function(e){e.create=function(e){return{label:e}}}(q||(q={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(V||(V={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return ue.string(t)||ue.objectLiteral(t)&&ue.string(t.language)&&ue.string(t.value)}}(U||(U={})),function(e){e.is=function(e){var t=e;return!!t&&ue.objectLiteral(t)&&(I.is(t.contents)||U.is(t.contents)||ue.typedArray(t.contents,U.is))&&(void 0===e.range||s.is(e.range))}}(W||(W={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(B||(B={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;s--){var a=o[s],c=e.offsetAt(a.range.start),l=e.offsetAt(a.range.end);if(!(l<=i))throw new Error("Overlapping edit");r=r.substring(0,c)+a.newText+r.substring(l,r.length),i=c}return r}}(ce||(ce={}));var ue,fe=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return i.create(0,e);for(;ne?r=o:n=o+1}var s=n-1;return i.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{"use strict";n.r(t),n.d(t,{TextDocument:()=>r});var r,o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;oe?r=o:n=o+1}var i=n-1;return{line:i,character:e-t[i]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function l(e){var t=c(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,r){return new i(e,t,n,r)},e.update=function(e,t,n){if(e instanceof i)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var n=e.getText(),r=0,o=[],i=0,a=s(t.map(l),(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));ir&&o.push(n.substring(r,u)),c.newText.length&&o.push(c.newText),r=e.offsetAt(c.range.end)}return o.push(n.substr(r)),o.join("")}}(r||(r={}))},91674:(e,t,n)=>{"use strict";var r,o,i,s,a,c,l,u,f,d,h,p,m,g,y,v,b,S,w,_,k,E,x,C,T,O,A,P;n.r(t),n.d(t,{AnnotatedTextEdit:()=>x,ChangeAnnotation:()=>k,ChangeAnnotationIdentifier:()=>E,CodeAction:()=>ie,CodeActionContext:()=>oe,CodeActionKind:()=>ne,CodeActionTriggerKind:()=>re,CodeDescription:()=>b,CodeLens:()=>se,Color:()=>f,ColorInformation:()=>d,ColorPresentation:()=>h,Command:()=>w,CompletionItem:()=>W,CompletionItemKind:()=>D,CompletionItemLabelDetails:()=>U,CompletionItemTag:()=>F,CompletionList:()=>B,CreateFile:()=>T,DeleteFile:()=>A,Diagnostic:()=>S,DiagnosticRelatedInformation:()=>g,DiagnosticSeverity:()=>y,DiagnosticTag:()=>v,DocumentHighlight:()=>G,DocumentHighlightKind:()=>J,DocumentLink:()=>ce,DocumentSymbol:()=>te,DocumentUri:()=>r,EOL:()=>xe,FoldingRange:()=>m,FoldingRangeKind:()=>p,FormattingOptions:()=>ae,Hover:()=>H,InlayHint:()=>be,InlayHintKind:()=>ye,InlayHintLabelPart:()=>ve,InlineValueContext:()=>ge,InlineValueEvaluatableExpression:()=>me,InlineValueText:()=>he,InlineValueVariableLookup:()=>pe,InsertReplaceEdit:()=>q,InsertTextFormat:()=>L,InsertTextMode:()=>V,Location:()=>l,LocationLink:()=>u,MarkedString:()=>K,MarkupContent:()=>$,MarkupKind:()=>j,OptionalVersionedTextDocumentIdentifier:()=>M,ParameterInformation:()=>Y,Position:()=>a,Range:()=>c,RenameFile:()=>O,SelectionRange:()=>le,SemanticTokenModifiers:()=>fe,SemanticTokenTypes:()=>ue,SemanticTokens:()=>de,SignatureInformation:()=>z,SymbolInformation:()=>Z,SymbolKind:()=>Q,SymbolTag:()=>X,TextDocument:()=>Ee,TextDocumentEdit:()=>C,TextDocumentIdentifier:()=>N,TextDocumentItem:()=>I,TextEdit:()=>_,URI:()=>o,VersionedTextDocumentIdentifier:()=>R,WorkspaceChange:()=>ke,WorkspaceEdit:()=>P,WorkspaceFolder:()=>Se,WorkspaceSymbol:()=>ee,integer:()=>i,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(i||(i={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.uinteger(t.line)&&Ce.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,r){if(Ce.uinteger(e)&&Ce.uinteger(t)&&Ce.uinteger(n)&&Ce.uinteger(r))return{start:a.create(e,t),end:a.create(n,r)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&c.is(t.range)&&(Ce.string(t.uri)||Ce.undefined(t.uri))}}(l||(l={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&c.is(t.targetRange)&&Ce.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Ce.undefined(t.originSelectionRange))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.numberRange(t.red,0,1)&&Ce.numberRange(t.green,0,1)&&Ce.numberRange(t.blue,0,1)&&Ce.numberRange(t.alpha,0,1)}}(f||(f={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&c.is(t.range)&&f.is(t.color)}}(d||(d={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.string(t.label)&&(Ce.undefined(t.textEdit)||_.is(t))&&(Ce.undefined(t.additionalTextEdits)||Ce.typedArray(t.additionalTextEdits,_.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(p||(p={})),function(e){e.create=function(e,t,n,r,o,i){var s={startLine:e,endLine:t};return Ce.defined(n)&&(s.startCharacter=n),Ce.defined(r)&&(s.endCharacter=r),Ce.defined(o)&&(s.kind=o),Ce.defined(i)&&(s.collapsedText=i),s},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.uinteger(t.startLine)&&Ce.uinteger(t.startLine)&&(Ce.undefined(t.startCharacter)||Ce.uinteger(t.startCharacter))&&(Ce.undefined(t.endCharacter)||Ce.uinteger(t.endCharacter))&&(Ce.undefined(t.kind)||Ce.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Ce.defined(t)&&l.is(t.location)&&Ce.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,o,i){var s={range:e,message:t};return Ce.defined(n)&&(s.severity=n),Ce.defined(r)&&(s.code=r),Ce.defined(o)&&(s.source=o),Ce.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t,n=e;return Ce.defined(n)&&c.is(n.range)&&Ce.string(n.message)&&(Ce.number(n.severity)||Ce.undefined(n.severity))&&(Ce.integer(n.code)||Ce.string(n.code)||Ce.undefined(n.code))&&(Ce.undefined(n.codeDescription)||Ce.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ce.string(n.source)||Ce.undefined(n.source))&&(Ce.undefined(n.relatedInformation)||Ce.typedArray(n.relatedInformation,g.is))}}(S||(S={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(o.arguments=n),o},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.title)&&Ce.string(t.command)}}(w||(w={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.string(t.newText)&&c.is(t.range)}}(_||(_={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return Ce.objectLiteral(t)&&Ce.string(t.label)&&(Ce.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ce.string(t.description)||void 0===t.description)}}(k||(k={})),function(e){e.is=function(e){var t=e;return Ce.string(t)}}(E||(E={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return _.is(t)&&(k.is(t.annotationId)||E.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Ce.defined(t)&&M.is(t.textDocument)&&Array.isArray(t.edits)}}(C||(C={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||E.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Ce.string(t.oldUri)&&Ce.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||E.is(t.annotationId))}}(O||(O={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ce.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ce.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||E.is(t.annotationId))}}(A||(A={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Ce.string(e.kind)?T.is(e)||O.is(e)||A.is(e):C.is(e)})))}}(P||(P={}));var N,R,M,I,j,$,D,L,F,q,V,U,W,B,K,H,Y,z,J,G,Q,X,Z,ee,te,ne,re,oe,ie,se,ae,ce,le,ue,fe,de,he,pe,me,ge,ye,ve,be,Se,we=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=_.insert(e,t):E.is(n)?(o=n,r=x.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=x.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=_.replace(e,t):E.is(n)?(o=n,r=x.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=x.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=_.del(e):E.is(t)?(r=t,n=x.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=x.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),_e=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(E.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),ke=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new _e(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(C.is(e)){var n=new we(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new we(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(M.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new we(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new we(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new _e,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(k.is(t)||E.is(t)?r=t:n=t,void 0===r?o=T.create(e,n):(i=E.is(r)?r:this._changeAnnotations.manage(r),o=T.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,s;if(k.is(n)||E.is(n)?o=n:r=n,void 0===o?i=O.create(e,t,r):(s=E.is(o)?o:this._changeAnnotations.manage(o),i=O.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(k.is(t)||E.is(t)?r=t:n=t,void 0===r?o=A.create(e,n):(i=E.is(r)?r:this._changeAnnotations.manage(r),o=A.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)&&Ce.integer(t.version)}}(R||(R={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)&&(null===t.version||Ce.integer(t.version))}}(M||(M={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Ce.defined(t)&&Ce.string(t.uri)&&Ce.string(t.languageId)&&Ce.integer(t.version)&&Ce.string(t.text)}}(I||(I={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(j||(j={})),function(e){e.is=function(e){var t=e;return Ce.objectLiteral(e)&&j.is(t.kind)&&Ce.string(t.value)}}($||($={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(D||(D={})),function(e){e.PlainText=1,e.Snippet=2}(L||(L={})),function(e){e.Deprecated=1}(F||(F={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Ce.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(q||(q={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.is=function(e){var t=e;return t&&(Ce.string(t.detail)||void 0===t.detail)&&(Ce.string(t.description)||void 0===t.description)}}(U||(U={})),function(e){e.create=function(e){return{label:e}}}(W||(W={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(B||(B={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Ce.string(t)||Ce.objectLiteral(t)&&Ce.string(t.language)&&Ce.string(t.value)}}(K||(K={})),function(e){e.is=function(e){var t=e;return!!t&&Ce.objectLiteral(t)&&($.is(t.contents)||K.is(t.contents)||Ce.typedArray(t.contents,K.is))&&(void 0===e.range||c.is(e.range))}}(H||(H={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Y||(Y={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;s--){var a=o[s],c=e.offsetAt(a.range.start),l=e.offsetAt(a.range.end);if(!(l<=i))throw new Error("Overlapping edit");r=r.substring(0,c)+a.newText+r.substring(l,r.length),i=c}return r}}(Ee||(Ee={}));var Ce,Te=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return a.create(0,e);for(;ne?r=o:n=o+1}var i=n-1;return a.create(i,e-t[i])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const r=n(40273);t.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>{this.connection.onRequest(r.CallHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))},onIncomingCalls:e=>{const t=r.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onOutgoingCalls:e=>{const t=r.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},52507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFeature=void 0;const r=n(40273),o=n(40289);t.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?o.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(r.ConfigurationRequest.type,t).then((t=>Array.isArray(e)?t:t[0]))}}},50828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileOperationsFeature=void 0;const r=n(40273);t.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){this.connection.onNotification(r.DidCreateFilesNotification.type,(t=>{e(t)}))}onDidRenameFiles(e){this.connection.onNotification(r.DidRenameFilesNotification.type,(t=>{e(t)}))}onDidDeleteFiles(e){this.connection.onNotification(r.DidDeleteFilesNotification.type,(t=>{e(t)}))}onWillCreateFiles(e){return this.connection.onRequest(r.WillCreateFilesRequest.type,((t,n)=>e(t,n)))}onWillRenameFiles(e){return this.connection.onRequest(r.WillRenameFilesRequest.type,((t,n)=>e(t,n)))}onWillDeleteFiles(e){return this.connection.onRequest(r.WillDeleteFilesRequest.type,((t,n)=>e(t,n)))}}},22776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeFeature=void 0;const r=n(40273);t.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){this.connection.onRequest(r.LinkedEditingRangeRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))}}},8120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerFeature=void 0;const r=n(40273);t.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=r.MonikerRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},42731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attachPartialResult=t.ProgressFeature=t.attachWorkDone=void 0;const r=n(40273),o=n(37560);class i{constructor(e,t){this._connection=e,this._token=t,i.Instances.set(this._token,this)}begin(e,t,n,o){let i={kind:"begin",title:e,percentage:t,message:n,cancellable:o};this._connection.sendProgress(r.WorkDoneProgress.type,this._token,i)}report(e,t){let n={kind:"report"};"number"==typeof e?(n.percentage=e,void 0!==t&&(n.message=t)):n.message=e,this._connection.sendProgress(r.WorkDoneProgress.type,this._token,n)}done(){i.Instances.delete(this._token),this._connection.sendProgress(r.WorkDoneProgress.type,this._token,{kind:"end"})}}i.Instances=new Map;class s extends i{constructor(e,t){super(e,t),this._source=new r.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class a{constructor(){}begin(){}report(){}done(){}}class c extends a{constructor(){super(),this._source=new r.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var l;t.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new a;const n=t.workDoneToken;return delete t.workDoneToken,new i(e,n)},t.ProgressFeature=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(e){var t;!0===(null===(t=null==e?void 0:e.window)||void 0===t?void 0:t.workDoneProgress)&&(this._progressSupported=!0,this.connection.onNotification(r.WorkDoneProgressCancelNotification.type,(e=>{let t=i.Instances.get(e.token);(t instanceof s||t instanceof c)&&t.cancel()})))}attachWorkDoneProgress(e){return void 0===e?new a:new i(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=o.generateUuid();return this.connection.sendRequest(r.WorkDoneProgressCreateRequest.type,{token:e}).then((()=>new s(this.connection,e)))}return Promise.resolve(new c)}},function(e){e.type=new r.ProgressType}(l||(l={}));class u{constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(l.type,this._token,e)}}t.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const n=t.partialResultToken;return delete t.partialResultToken,new u(e,n)}},59817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensBuilder=t.SemanticTokensFeature=void 0;const r=n(40273);t.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{on:e=>{const t=r.SemanticTokensRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onDelta:e=>{const t=r.SemanticTokensDeltaRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onRange:e=>{const t=r.SemanticTokensRangeRequest.type;this.connection.onRequest(t,((n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}},t.SemanticTokensBuilder=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(e,t,n,r,o){let i=e,s=t;this._dataLen>0&&(i-=this._prevLine,0===i&&(s-=this._prevChar)),this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._data[this._dataLen++]=n,this._data[this._dataLen++]=r,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){if(void 0!==this._prevData){const e=this._prevData.length,t=this._data.length;let n=0;for(;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.combineFeatures=t.combineLanguagesFeatures=t.combineWorkspaceFeatures=t.combineWindowFeatures=t.combineClientFeatures=t.combineTracerFeatures=t.combineTelemetryFeatures=t.combineConsoleFeatures=t._LanguagesImpl=t.BulkUnregistration=t.BulkRegistration=t.ErrorMessageTracker=t.TextDocuments=void 0;const r=n(40273),o=n(40289),i=n(37560),s=n(42731),a=n(52507),c=n(28634),l=n(47985),u=n(59817),f=n(85421),d=n(50828),h=n(22776),p=n(8120);function m(e){if(null!==e)return e}t.TextDocuments=class{constructor(e){this._documents=Object.create(null),this._configuration=e,this._onDidChangeContent=new r.Emitter,this._onDidOpen=new r.Emitter,this._onDidClose=new r.Emitter,this._onDidSave=new r.Emitter,this._onWillSave=new r.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._documents[e]}all(){return Object.keys(this._documents).map((e=>this._documents[e]))}keys(){return Object.keys(this._documents)}listen(e){e.__textDocumentSync=r.TextDocumentSyncKind.Full,e.onDidOpenTextDocument((e=>{let t=e.textDocument,n=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._documents[t.uri]=n;let r=Object.freeze({document:n});this._onDidOpen.fire(r),this._onDidChangeContent.fire(r)})),e.onDidChangeTextDocument((e=>{let t=e.textDocument,n=e.contentChanges;if(0===n.length)return;let r=this._documents[t.uri];const{version:o}=t;if(null==o)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);r=this._configuration.update(r,n,o),this._documents[t.uri]=r,this._onDidChangeContent.fire(Object.freeze({document:r}))})),e.onDidCloseTextDocument((e=>{let t=this._documents[e.textDocument.uri];t&&(delete this._documents[e.textDocument.uri],this._onDidClose.fire(Object.freeze({document:t})))})),e.onWillSaveTextDocument((e=>{let t=this._documents[e.textDocument.uri];t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))})),e.onWillSaveTextDocumentWaitUntil(((e,t)=>{let n=this._documents[e.textDocument.uri];return n&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:n,reason:e.reason}),t):[]})),e.onDidSaveTextDocument((e=>{let t=this._documents[e.textDocument.uri];t&&this._onDidSave.fire(Object.freeze({document:t}))}))}},t.ErrorMessageTracker=class{constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach((t=>{e.window.showErrorMessage(t)}))}};class g{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(r.MessageType.Error,e)}warn(e){this.send(r.MessageType.Warning,e)}info(e){this.send(r.MessageType.Info,e)}log(e){this.send(r.MessageType.Log,e)}send(e,t){this._rawConnection&&this._rawConnection.sendNotification(r.LogMessageNotification.type,{type:e,message:t})}}const y=f.ShowDocumentFeature(s.ProgressFeature(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...t){let n={type:r.MessageType.Error,message:e,actions:t};return this.connection.sendRequest(r.ShowMessageRequest.type,n).then(m)}showWarningMessage(e,...t){let n={type:r.MessageType.Warning,message:e,actions:t};return this.connection.sendRequest(r.ShowMessageRequest.type,n).then(m)}showInformationMessage(e,...t){let n={type:r.MessageType.Info,message:e,actions:t};return this.connection.sendRequest(r.ShowMessageRequest.type,n).then(m)}}));(t.BulkRegistration||(t.BulkRegistration={})).create=function(){return new v};class v{constructor(){this._registrations=[],this._registered=new Set}add(e,t){const n=o.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);const r=i.generateUuid();this._registrations.push({id:r,method:n,registerOptions:t||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}}(t.BulkUnregistration||(t.BulkUnregistration={})).create=function(){return new b(void 0,[])};class b{constructor(e,t){this._connection=e,this._unregistrations=new Map,t.forEach((e=>{this._unregistrations.set(e.method,e)}))}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let t of this._unregistrations.values())e.push(t);let t={unregisterations:e};this._connection.sendRequest(r.UnregistrationRequest.type,t).then(void 0,(e=>{this._connection.console.info("Bulk unregistration failed.")}))}disposeSingle(e){const t=o.string(e)?e:e.method,n=this._unregistrations.get(t);if(!n)return!1;let i={unregisterations:[n]};return this._connection.sendRequest(r.UnregistrationRequest.type,i).then((()=>{this._unregistrations.delete(t)}),(e=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)})),!0}}class S{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,n){return e instanceof v?this.registerMany(e):e instanceof b?this.registerSingle1(e,t,n):this.registerSingle2(e,t)}registerSingle1(e,t,n){const s=o.string(t)?t:t.method,a=i.generateUuid();let c={registrations:[{id:a,method:s,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(r.RegistrationRequest.type,c).then((t=>(e.add({id:a,method:s}),e)),(e=>(this.connection.console.info(`Registering request handler for ${s} failed.`),Promise.reject(e))))}registerSingle2(e,t){const n=o.string(e)?e:e.method,s=i.generateUuid();let a={registrations:[{id:s,method:n,registerOptions:t||{}}]};return this.connection.sendRequest(r.RegistrationRequest.type,a).then((e=>r.Disposable.create((()=>{this.unregisterSingle(s,n)}))),(e=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(e))))}unregisterSingle(e,t){let n={unregisterations:[{id:e,method:t}]};return this.connection.sendRequest(r.UnregistrationRequest.type,n).then(void 0,(t=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)}))}registerMany(e){let t=e.asRegistrationParams();return this.connection.sendRequest(r.RegistrationRequest.type,t).then((()=>new b(this._connection,t.registrations.map((e=>({id:e.id,method:e.method}))))),(e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e))))}}const w=d.FileOperationsFeature(c.WorkspaceFoldersFeature(a.ConfigurationFeature(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){let t=(n=e)&&n.edit?e:{edit:e};var n;return this.connection.sendRequest(r.ApplyWorkspaceEditRequest.type,t)}})));class _{constructor(){this._trace=r.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,t){this._trace!==r.Trace.Off&&this.connection.sendNotification(r.LogTraceNotification.type,{message:e,verbose:this._trace===r.Trace.Verbose?t:void 0})}}class k{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(r.TelemetryEventNotification.type,e)}}class E{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return s.attachWorkDone(this.connection,e)}attachPartialResultProgress(e,t){return s.attachPartialResult(this.connection,t)}}t._LanguagesImpl=E;const x=p.MonikerFeature(h.LinkedEditingRangeFeature(u.SemanticTokensFeature(l.CallHierarchyFeature(E))));function C(e,t){return function(n){return t(e(n))}}function T(e,t){return function(n){return t(e(n))}}function O(e,t){return function(n){return t(e(n))}}function A(e,t){return function(n){return t(e(n))}}function P(e,t){return function(n){return t(e(n))}}function N(e,t){return function(n){return t(e(n))}}t.combineConsoleFeatures=C,t.combineTelemetryFeatures=T,t.combineTracerFeatures=O,t.combineClientFeatures=A,t.combineWindowFeatures=P,t.combineWorkspaceFeatures=N,t.combineLanguagesFeatures=function(e,t){return function(n){return t(e(n))}},t.combineFeatures=function(e,t){function n(e,t,n){return e&&t?n(e,t):e||t}return{__brand:"features",console:n(e.console,t.console,C),tracer:n(e.tracer,t.tracer,O),telemetry:n(e.telemetry,t.telemetry,T),client:n(e.client,t.client,A),window:n(e.window,t.window,P),workspace:n(e.workspace,t.workspace,N)}},t.createConnection=function(e,t,n){const i=n&&n.console?new(n.console(g)):new g,a=e(i);i.rawAttach(a);const c=n&&n.tracer?new(n.tracer(_)):new _,l=n&&n.telemetry?new(n.telemetry(k)):new k,u=n&&n.client?new(n.client(S)):new S,f=n&&n.window?new(n.window(y)):new y,d=n&&n.workspace?new(n.workspace(w)):new w,h=n&&n.languages?new(n.languages(x)):new x,p=[i,c,l,u,f,d,h];let m,v,b,E={listen:()=>a.listen(),sendRequest:(e,...t)=>a.sendRequest(o.string(e)?e:e.method,...t),onRequest:(e,t)=>a.onRequest(e,t),sendNotification:(e,t)=>{const n=o.string(e)?e:e.method;1===arguments.length?a.sendNotification(n):a.sendNotification(n,t)},onNotification:(e,t)=>a.onNotification(e,t),onProgress:a.onProgress,sendProgress:a.sendProgress,onInitialize:e=>v=e,onInitialized:e=>a.onNotification(r.InitializedNotification.type,e),onShutdown:e=>m=e,onExit:e=>b=e,get console(){return i},get telemetry(){return l},get tracer(){return c},get client(){return u},get window(){return f},get workspace(){return d},get languages(){return h},onDidChangeConfiguration:e=>a.onNotification(r.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>a.onNotification(r.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>a.onNotification(r.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>a.onNotification(r.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>a.onNotification(r.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>a.onNotification(r.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>a.onRequest(r.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>a.onNotification(r.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>a.sendNotification(r.PublishDiagnosticsNotification.type,e),onHover:e=>a.onRequest(r.HoverRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onCompletion:e=>a.onRequest(r.CompletionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCompletionResolve:e=>a.onRequest(r.CompletionResolveRequest.type,e),onSignatureHelp:e=>a.onRequest(r.SignatureHelpRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onDeclaration:e=>a.onRequest(r.DeclarationRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDefinition:e=>a.onRequest(r.DefinitionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onTypeDefinition:e=>a.onRequest(r.TypeDefinitionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onImplementation:e=>a.onRequest(r.ImplementationRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onReferences:e=>a.onRequest(r.ReferencesRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDocumentHighlight:e=>a.onRequest(r.DocumentHighlightRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDocumentSymbol:e=>a.onRequest(r.DocumentSymbolRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onWorkspaceSymbol:e=>a.onRequest(r.WorkspaceSymbolRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCodeAction:e=>a.onRequest(r.CodeActionRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCodeActionResolve:e=>a.onRequest(r.CodeActionResolveRequest.type,((t,n)=>e(t,n))),onCodeLens:e=>a.onRequest(r.CodeLensRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onCodeLensResolve:e=>a.onRequest(r.CodeLensResolveRequest.type,((t,n)=>e(t,n))),onDocumentFormatting:e=>a.onRequest(r.DocumentFormattingRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onDocumentRangeFormatting:e=>a.onRequest(r.DocumentRangeFormattingRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onDocumentOnTypeFormatting:e=>a.onRequest(r.DocumentOnTypeFormattingRequest.type,((t,n)=>e(t,n))),onRenameRequest:e=>a.onRequest(r.RenameRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),onPrepareRename:e=>a.onRequest(r.PrepareRenameRequest.type,((t,n)=>e(t,n))),onDocumentLinks:e=>a.onRequest(r.DocumentLinkRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onDocumentLinkResolve:e=>a.onRequest(r.DocumentLinkResolveRequest.type,((t,n)=>e(t,n))),onDocumentColor:e=>a.onRequest(r.DocumentColorRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onColorPresentation:e=>a.onRequest(r.ColorPresentationRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onFoldingRanges:e=>a.onRequest(r.FoldingRangeRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onSelectionRanges:e=>a.onRequest(r.SelectionRangeRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),s.attachPartialResult(a,t)))),onExecuteCommand:e=>a.onRequest(r.ExecuteCommandRequest.type,((t,n)=>e(t,n,s.attachWorkDone(a,t),void 0))),dispose:()=>a.dispose()};for(let e of p)e.attach(E);return a.onRequest(r.InitializeRequest.type,(e=>{t.initialize(e),o.string(e.trace)&&(c.trace=r.Trace.fromString(e.trace));for(let t of p)t.initialize(e.capabilities);if(v){let t=v(e,(new r.CancellationTokenSource).token,s.attachWorkDone(a,e),void 0);return(n=t,n instanceof Promise?n:o.thenable(n)?new Promise(((e,t)=>{n.then((t=>e(t)),(e=>t(e)))})):Promise.resolve(n)).then((e=>{if(e instanceof r.ResponseError)return e;let t=e;t||(t={capabilities:{}});let n=t.capabilities;n||(n={},t.capabilities=n),void 0===n.textDocumentSync||null===n.textDocumentSync?n.textDocumentSync=o.number(E.__textDocumentSync)?E.__textDocumentSync:r.TextDocumentSyncKind.None:o.number(n.textDocumentSync)||o.number(n.textDocumentSync.change)||(n.textDocumentSync.change=o.number(E.__textDocumentSync)?E.__textDocumentSync:r.TextDocumentSyncKind.None);for(let e of p)e.fillServerCapabilities(n);return t}))}{let e={capabilities:{textDocumentSync:r.TextDocumentSyncKind.None}};for(let t of p)t.fillServerCapabilities(e.capabilities);return e}var n})),a.onRequest(r.ShutdownRequest.type,(()=>(t.shutdownReceived=!0,m?m((new r.CancellationTokenSource).token):void 0))),a.onNotification(r.ExitNotification.type,(()=>{try{b&&b()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}})),a.onNotification(r.SetTraceNotification.type,(e=>{c.trace=r.Trace.fromString(e.value)})),E}},85421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentFeature=void 0;const r=n(40273);t.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(r.ShowDocumentRequest.type,e)}}},40289:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return"function"==typeof e}function o(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=r,t.array=o,t.stringArray=function(e){return o(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=function(e){return e&&r(e.then)}},37560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class r extends n{constructor(){super([r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),"-",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),"-","4",r._randomHex(),r._randomHex(),r._randomHex(),"-",r._oneOf(r._timeHighBits),r._randomHex(),r._randomHex(),r._randomHex(),"-",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return r._oneOf(r._chars)}}function o(){return new r}r._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],r._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=o;const i=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return i.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return o().asHex()}},28634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=void 0;const r=n(40273);t.WorkspaceFoldersFeature=e=>class extends e{initialize(e){let t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new r.Emitter,this.connection.onNotification(r.DidChangeWorkspaceFoldersNotification.type,(e=>{this._onDidChangeWorkspaceFolders.fire(e.event)})))}getWorkspaceFolders(){return this.connection.sendRequest(r.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._unregistration||(this._unregistration=this.connection.client.register(r.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}}},87613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveModulePath=t.FileSystem=t.resolveGlobalYarnPath=t.resolveGlobalNodePath=t.resolve=t.uriToFilePath=void 0;const r=n(57310),o=n(71017),i=n(57147),s=n(32081);function a(){return"win32"===process.platform}function c(e,t,n,r){const a="NODE_PATH",c=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((l,u)=>{let f=process.env,d=Object.create(null);Object.keys(f).forEach((e=>d[e]=f[e])),t&&i.existsSync(t)&&(d[a]?d[a]=t+o.delimiter+d[a]:d[a]=t,r&&r(`NODE_PATH value is: ${d[a]}`)),d.ELECTRON_RUN_AS_NODE="1";try{let t=s.fork("",[],{cwd:n,env:d,execArgv:["-e",c]});if(void 0===t.pid)return void u(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",(e=>{u(e)})),t.on("message",(n=>{"r"===n.c&&(t.send({c:"e"}),n.s?l(n.r):u(new Error(`Failed to resolve module: ${e}`)))}));let r={c:"rs",a:e};t.send(r)}catch(e){u(e)}}))}function l(e){let t="npm";const n=Object.create(null);Object.keys(process.env).forEach((e=>n[e]=process.env[e])),n.NO_UPDATE_NOTIFIER="true";const r={encoding:"utf8",env:n};a()&&(t="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let n=s.spawnSync(t,["config","get","prefix"],r).stdout;if(!n)return void(e&&e("'npm config get prefix' didn't return a value."));let c=n.trim();return e&&e(`'npm config get prefix' value is: ${c}`),c.length>0?a()?o.join(c,"node_modules"):o.join(c,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",i)}}var u;t.uriToFilePath=function(e){let t=r.parse(e);if("file:"!==t.protocol||!t.path)return;let n=t.path.split("/");for(var i=0,s=n.length;i1){let e=n[0],t=n[1];0===e.length&&t.length>1&&":"===t[1]&&n.shift()}return o.normalize(n.join("/"))},t.resolve=c,t.resolveGlobalNodePath=l,t.resolveGlobalYarnPath=function(e){let t="yarn",n={encoding:"utf8"};a()&&(t="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=s.spawnSync(t,["global","dir","--json"],n),a=i.stdout;if(!a)return void(e&&(e("'yarn global dir' didn't return a value."),i.stderr&&e(i.stderr)));let c=a.trim().split(/\r?\n/);for(let e of c)try{let t=JSON.parse(e);if("log"===t.type)return o.join(t.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",r)}},function(e){let t;function n(){return void 0!==t||(t=!("win32"===process.platform||i.existsSync(__filename.toUpperCase())&&i.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=n,e.isParent=function(e,t){return n()?0===o.normalize(t).indexOf(o.normalize(e)):0===o.normalize(t).toLowerCase().indexOf(o.normalize(e).toLowerCase())}}(u=t.FileSystem||(t.FileSystem={})),t.resolveModulePath=function(e,t,n,r){return n?(o.isAbsolute(n)||(n=o.join(e,n)),c(t,n,n,r).then((e=>u.isParent(n,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0,(n=>c(t,l(r),e,r)))):c(t,l(r),e,r)}},35809:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.Files=void 0;const i=n(40289),s=n(49891),a=n(87613),c=n(96560);var l;o(n(96560),t),o(n(76265),t),(l=t.Files||(t.Files={})).uriToFilePath=a.uriToFilePath,l.resolveGlobalNodePath=a.resolveGlobalNodePath,l.resolveGlobalYarnPath=a.resolveGlobalYarnPath,l.resolve=a.resolve,l.resolveModulePath=a.resolveModulePath;let u,f=!1;!function(){const e="--clientProcessId";function t(e){try{let t=parseInt(e);isNaN(t)||(u=setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(f?0:1)}}),3e3))}catch(e){}}for(let n=2;n{const t=e.processId;i.number(t)&&void 0===u&&setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(f?0:1)}}),3e3)},get shutdownReceived(){return f},set shutdownReceived(e){f=e},exit:e=>{process.exit(e)}};t.createConnection=function(e,t,n,r){let o,a,l,u;return void 0!==e&&"features"===e.__brand&&(o=e,e=t,t=n,n=r),c.ConnectionStrategy.is(e)||c.ConnectionOptions.is(e)?u=e:(a=e,l=t,u=n),function(e,t,n,r){if(!e&&!t&&process.argv.length>2){let n,r,i=process.argv.slice(2);for(let s=0;s{process.exit(f?0:1)})),t.on("close",(()=>{process.exit(f?0:1)}))}return s.createConnection((r=>c.createProtocolConnection(e,t,r,n)),d,r)}(a,l,u,o)}},68212:(e,t,n)=>{"use strict";e.exports=n(35809)},80585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(54108),o=n(41378),i=n(4415),s=n(12365),a=["/properties"],c="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=n(74351);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=n(9186);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var d=n(85551);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=n(77642);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},47293:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class o extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function i(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(47293),o=n(32117);var i=n(47293);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var s=n(32117);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?o.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class l extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=N(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class f extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class h extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=N(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||(R(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>A(e,t.names)),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends m{}class v extends g{}v.kind="else";class b extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(M(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=N(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&A(e,this.else.names),e}}b.kind="if";class S extends g{}S.kind="for";class w extends S{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=N(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class _ extends S{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?o.varKinds.var:this.varKind,{name:n,from:r,to:i}=this;return`for(${t} ${n}=${r}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class k extends S{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=N(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class E extends g{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}E.kind="func";class x extends m{render(e){return"return "+super.render(e)}}x.kind="return";class C extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class T extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}T.kind="catch";class O extends g{render(e){return"finally"+super.render(e)}}function A(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?A(e,t.names):e}function N(e,t,n){return e instanceof r.Name?i(e):(o=e)instanceof r._Code&&o._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=i(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function i(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function R(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function M(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new o.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new c(e,o,n)),o}const(e,t,n){return this._def(o.varKinds.const,e,t,n)}let(e,t,n){return this._def(o.varKinds.let,e,t,n)}var(e,t,n){return this._def(o.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new l(e,t,n))}add(e,n){return this._leafNode(new u(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new p(e)),this}object(...e){const t=["{"];for(const[n,o]of e)t.length>1&&t.push(","),t.push(n),(n!==o||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,o));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,n,r,i=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const s=this._scope.toName(e);return this._for(new _(i,s,t,n),(()=>r(s)))}forOf(e,t,n,i=o.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(s,r._`${e}[${t}]`),n(s)}))}return this._for(new k("of",i,s,t),(()=>n(s)))}forIn(e,t,n,i=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const s=this._scope.toName(e);return this._for(new k("in",i,s,t),(()=>n(s)))}endFor(){return this._endBlockNode(S)}label(e){return this._leafNode(new f(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new x;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new C;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(T,O)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,o){return this._blockNode(new E(e,t,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=M;const I=$(t.operators.AND);t.and=function(...e){return e.reduce(I)};const j=$(t.operators.OR);function $(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(j)}},32117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(47293);class o extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var i;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(i=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=r._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:o}=r,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[o];if(s){const e=s.get(i);if(e)return e}else s=this._values[o]=new Map;s.set(i,r);const a=this._scope[o]||(this._scope[o]=[]),c=a.length;return a[c]=t.ref,r.setValue(t,{property:o,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,s={},a){let c=r.nil;for(const l in e){const u=e[l];if(!u)continue;const f=s[l]=s[l]||new Map;u.forEach((e=>{if(f.has(e))return;f.set(e,i.Started);let s=n(e);if(s){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new o(e);c=r._`${c}${s}${this.opts._n}`}f.set(e,i.Completed)}))}return c}}},97377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(9186),o=n(31799),i=n(54224);function s(e,t){const n=e.const("err",t);e.if(r._`${i.default.vErrors} === null`,(()=>e.assign(i.default.vErrors,r._`[${n}]`)),r._`${i.default.vErrors}.push(${n})`),e.code(r._`${i.default.errors}++`)}function a(e,t){const{gen:n,validateName:o,schemaEnv:i}=e;i.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${o}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,o,i){const{it:c}=e,{gen:u,compositeRule:f,allErrors:d}=c,h=l(e,n,o);(null!=i?i:f||d)?s(u,h):a(c,r._`[${h}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:o}=e,{gen:c,compositeRule:u,allErrors:f}=o;s(c,l(e,n,r)),u||f||a(o,i.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(i.default.errors,t),e.if(r._`${i.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${i.default.vErrors}.length`,t)),(()=>e.assign(i.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:o,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,i.default.errors,(s=>{e.const(c,r._`${i.default.vErrors}[${s}]`),e.if(r._`${c}.instancePath === undefined`,(()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(i.default.instancePath,a.errorPath)))),e.assign(r._`${c}.schemaPath`,r.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,o))}))};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function l(e,t,n){const{createErrors:o}=e.it;return!1===o?r._`{}`:function(e,t,n={}){const{gen:o,it:s}=e,a=[u(s,n),f(e,n)];return function(e,{params:t,message:n},o){const{keyword:s,data:a,schemaValue:l,it:u}=e,{opts:f,propertyName:d,topSchemaRef:h,schemaPath:p}=u;o.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||r._`{}`]),f.messages&&o.push([c.message,"function"==typeof n?n(e):n]),f.verbose&&o.push([c.schema,l],[c.parentSchema,r._`${h}${p}`],[i.default.data,a]),d&&o.push([c.propertyName,d])}(e,t,a),o.object(...a)}(e,t,n)}function u({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,o.getErrorPath)(t,o.Type.Str)}`:e;return[i.default.instancePath,(0,r.strConcat)(i.default.instancePath,n)]}function f({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:i}){let s=i?t:r.str`${t}/${e}`;return n&&(s=r.str`${s}${(0,o.getErrorPath)(n,o.Type.Str)}`),[c.schemaPath,s]}},96258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(9186),o=n(85551),i=n(54224),s=n(15571),a=n(31799),c=n(74351);class l{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function u(e){const t=d.call(this,e);if(t)return t;const n=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:l}=this.opts.code,{ownProperties:u}=this.opts,f=new r.CodeGen(this.scope,{es5:a,lines:l,ownProperties:u});let h;e.$async&&(h=f.scopeValue("Error",{ref:o.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const p=f.scopeName("validate");e.validateName=p;const m={gen:f,allErrors:this.opts.allErrors,data:i.default.data,parentData:i.default.parentData,parentDataProperty:i.default.parentDataProperty,dataNames:[i.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:h,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),f.optimize(this.opts.code.optimize);const t=f.toString();g=`${f.scopeRefs(i.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const n=new Function(`${i.default.self}`,`${i.default.scope}`,g)(this,this.scope.get());if(this.scope.value(p,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:p,validateCode:t,scopeValues:f._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function f(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function d(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function h(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||p.call(this,e,t)}function p(e,t){const n=this.opts.uriResolver.parse(t),r=(0,s._getFullPath)(this.opts.uriResolver,n);let o=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return g.call(this,n,e);const i=(0,s.normalizeId)(r),a=this.refs[i]||this.schemas[i];if("string"==typeof a){const t=p.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||u.call(this,a),i===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(o=(0,s.resolveUrl)(this.opts.uriResolver,o,r)),new l({schema:t,schemaId:n,root:e,baseId:o})}return g.call(this,n,a)}}t.SchemaEnv=l,t.compileSchema=u,t.resolveRef=function(e,t,n){var r;n=(0,s.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let i=h.call(this,e,n);if(void 0===i){const o=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:s}=this.opts;o&&(i=new l({schema:o,schemaId:s,root:e,baseId:t}))}return void 0!==i?e.refs[n]=f.call(this,i):void 0},t.getCompilingSchema=d,t.resolveSchema=p;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:n,root:r}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const o="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&o&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,o))}let i;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,n.$ref);i=p.call(this,r,e)}const{schemaId:c}=this.opts;return i=i||new l({schema:n,schemaId:c,root:r,baseId:t}),i.schema!==i.root.schema?i:void 0}},54224:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=o},77642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15571);class o extends Error{constructor(e,t,n,o){super(o||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=o},15571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(31799),o=n(64063),i=n(48304),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&l(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function l(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=l(e))),t===1/0))return 1/0}return t}function u(e,t="",n){!1!==n&&(t=h(t));const r=e.parse(t);return f(e,r)}function f(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=f;const d=/#\/?$/;function h(e){return e?e.replace(d,""):""}t.normalizeId=h,t.resolveUrl=function(e,t,n){return n=h(n),e.resolve(t,n)};const p=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,s=h(e[n]||t),a={"":s},c=u(r,s,!1),l={},f=new Set;return i(e,{allKeys:!0},((e,t,r,o)=>{if(void 0===o)return;const i=c+t;let s=a[o];function u(t){const n=this.opts.uriResolver.resolve;if(t=h(s?n(s,t):t),f.has(t))throw m(t);f.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?d(e,r.schema,t):t!==h(i)&&("#"===t[0]?(d(e,l[t],t),l[t]=e):this.refs[t]=i),t}function g(e){if("string"==typeof e){if(!p.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=u.call(this,e[n])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),a[t]=s})),l;function d(e,t,n){if(void 0!==t&&!o(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},76865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},31799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(9186),o=n(47293);function i(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const n in t)o[n]||p(e,`unknown keyword: "${n}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(i,s,a,c)=>{const l=void 0===a?s:a instanceof r.Name?(s instanceof r.Name?e(i,s,a):t(i,s,a),a):s instanceof r.Name?(t(i,a,s),s):n(s,a);return c!==r.Name||l instanceof r.Name?l:o(i,l)}}function u(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&f(e,n,t),n}function f(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(i(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,o,i){if(!i){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(o)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),f(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:l({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=f;const d={};var h;function p(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(h=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const o=t===h.Num;return n?o?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:o?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=p},42528:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const o=t.RULES.types[r];return o&&!0!==o&&n(e,o)},t.shouldUseGroup=n,t.shouldUseRule=r},8590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(97377),o=n(9186),i=n(54224),s={message:"boolean schema is false"};function a(e,t){const{gen:n,data:o}=e,i={gen:n,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(i,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(i.default.data):(t.assign(o._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}},79653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(76865),o=n(42528),i=n(97377),s=n(9186),a=n(31799);var c;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:i}=e,a=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,i.coerceTypes),l=t.length>0&&!(0===a.length&&1===t.length&&(0,o.schemaHasRulesForType)(e,t[0]));if(l){const o=d(t,r,i.strictNumbers,c.Wrong);n.if(o,(()=>{a.length?function(e,t,n){const{gen:r,data:o,opts:i}=e,a=r.let("dataType",s._`typeof ${o}`),c=r.let("coerced",s._`undefined`);"array"===i.coerceTypes&&r.if(s._`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>r.assign(o,s._`${o}[0]`).assign(a,s._`typeof ${o}`).if(d(t,o,i.strictNumbers),(()=>r.assign(c,o))))),r.if(s._`${c} !== undefined`);for(const e of n)(u.has(e)||"array"===e&&"array"===i.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${o}`).elseIf(s._`${o} === null`).assign(c,s._`""`);case"number":return void r.elseIf(s._`${a} == "boolean" || ${o} === null || (${a} == "string" && ${o} && ${o} == +${o})`).assign(c,s._`+${o}`);case"integer":return void r.elseIf(s._`${a} === "boolean" || ${o} === null || (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,s._`+${o}`);case"boolean":return void r.elseIf(s._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf(s._`${o} === "true" || ${o} === 1`).assign(c,!0);case"null":return r.elseIf(s._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(c,null);case"array":r.elseIf(s._`${a} === "string" || ${a} === "number" || ${a} === "boolean" || ${o} === null`).assign(c,s._`[${o}]`)}}r.else(),p(e),r.endIf(),r.if(s._`${c} !== undefined`,(()=>{r.assign(o,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${n}]`,r)))}(e,c)}))}(e,t,a):p(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function f(e,t,n,r=c.Correct){const o=r===c.Correct?s.operators.EQ:s.operators.NEQ;let i;switch(e){case"null":return s._`${t} ${o} null`;case"array":i=s._`Array.isArray(${t})`;break;case"object":i=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return s._`typeof ${t} ${o} ${e}`}return r===c.Correct?i:(0,s.not)(i);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,n?s._`isFinite(${t})`:s.nil)}}function d(e,t,n,r){if(1===e.length)return f(e[0],t,n,r);let o;const i=(0,a.toHash)(e);if(i.array&&i.object){const e=s._`typeof ${t} != "object"`;o=i.null?e:s._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else o=s.nil;i.number&&delete i.integer;for(const e in i)o=(0,s.and)(o,f(e,t,n,r));return o}t.checkDataType=f,t.checkDataTypes=d;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:n,schema:r}=e,o=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}(e);(0,i.reportError)(t,h)}t.reportTypeError=p},59217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(9186),o=n(31799);function i(e,t,n){const{gen:i,compositeRule:s,data:a,opts:c}=e;if(void 0===n)return;const l=r._`${a}${(0,r.getProperty)(t)}`;if(s)return void(0,o.checkStrictMode)(e,`default is ignored for: ${l}`);let u=r._`${l} === undefined`;"empty"===c.useDefaults&&(u=r._`${u} || ${l} === null || ${l} === ""`),i.if(u,r._`${l} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)i(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>i(e,n,t.default)))}},74351:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(8590),o=n(79653),i=n(42528),s=n(79653),a=n(59217),c=n(33092),l=n(43237),u=n(9186),f=n(54224),d=n(15571),h=n(31799),p=n(97377);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},i){o.code.es5?e.func(t,u._`${f.default.data}, ${f.default.valCxt}`,r.$async,(()=>{e.code(u._`"use strict"; ${g(n,o)}`),function(e,t){e.if(f.default.valCxt,(()=>{e.var(f.default.instancePath,u._`${f.default.valCxt}.${f.default.instancePath}`),e.var(f.default.parentData,u._`${f.default.valCxt}.${f.default.parentData}`),e.var(f.default.parentDataProperty,u._`${f.default.valCxt}.${f.default.parentDataProperty}`),e.var(f.default.rootData,u._`${f.default.valCxt}.${f.default.rootData}`),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`${f.default.valCxt}.${f.default.dynamicAnchors}`)}),(()=>{e.var(f.default.instancePath,u._`""`),e.var(f.default.parentData,u._`undefined`),e.var(f.default.parentDataProperty,u._`undefined`),e.var(f.default.rootData,f.default.data),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`{}`)}))}(e,o),e.code(i)})):e.func(t,u._`${f.default.data}, ${function(e){return u._`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${e.dynamicRef?u._`, ${f.default.dynamicAnchors}={}`:u.nil}}={}`}(o)}`,r.$async,(()=>e.code(g(n,o)).code(i)))}function g(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function S(e,t){if(e.opts.jtd)return _(e,[],!1,t);const n=(0,o.getSchemaTypes)(e.schema);_(e,n,!(0,o.coerceAndCheckDataType)(e,n),t)}function w({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const i=n.$comment;if(!0===o.$comment)e.code(u._`${f.default.self}.logger.log(${i})`);else if("function"==typeof o.$comment){const n=u.str`${r}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(u._`${f.default.self}.opts.$comment(${i}, ${n}, ${o}.schema)`)}}function _(e,t,n,r){const{gen:o,schema:a,data:c,allErrors:l,opts:d,self:p}=e,{RULES:m}=p;function g(h){(0,i.shouldUseGroup)(a,h)&&(h.type?(o.if((0,s.checkDataType)(h.type,c,d.strictNumbers)),k(e,h),1===t.length&&t[0]===h.type&&n&&(o.else(),(0,s.reportTypeError)(e)),o.endIf()):k(e,h),l||o.if(u._`${f.default.errors} === ${r||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(a,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{E(e.dataTypes,t)||x(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)E(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&x(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if("object"==typeof o&&(0,i.shouldUseRule)(e.schema,o)){const{type:n}=o.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&x(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),o.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):o.block((()=>T(e,"$ref",m.all.$ref.definition)))}function k(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,i.shouldUseRule)(r,n)&&T(e,n.keyword,n.definition,t.type)}))}function E(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function x(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),y(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(f.default.vErrors,null),r.let(f.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",u._`${n}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),S(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:i}=e;n.$async?t.if(u._`${f.default.errors} === 0`,(()=>t.return(f.default.data)),(()=>t.throw(u._`new ${o}(${f.default.vErrors})`))):(t.assign(u._`${r}.errors`,f.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof u.Name&&e.assign(u._`${t}.props`,n),r instanceof u.Name&&e.assign(u._`${t}.items`,r)}(e),t.return(u._`${f.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class C{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",P(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",f.default.errors))}result(e,t,n){this.failResult((0,u.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=u.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:o,def:i}=this;n.if((0,u.or)(u._`${r} === undefined`,t)),e!==u.nil&&n.assign(e,!0),(o.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:o}=this;return(0,u.or)(function(){if(n.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return u._`${(0,s.checkDataTypes)(e,t,o.opts.strictNumbers,s.DataType.Wrong)}`}return u.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return u._`!${n}(${t})`}return u.nil}())}subschema(e,t){const n=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(n,this.it,e),(0,l.extendSubschemaMode)(n,e);const o={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),y(e))?function(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&w(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=r.const("_errs",f.default.errors);S(e,i),r.var(t,u._`${i} === ${f.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(o,t),o}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=h.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=h.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function T(e,t,n,r){const o=new C(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,c.funcKeywordCode)(o,n):"macro"in n?(0,c.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(o,n)}t.KeywordCxt=C;const O=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,i;if(""===e)return f.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=f.default.rootData}else{const s=A.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(o=s[2],"#"===o){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(i=n[t-a],!o)return i}let s=i;const a=o.split("/");for(const e of a)e&&(i=u._`${i}${(0,u.getProperty)((0,h.unescapeJsonPointer)(e))}`,s=u._`${s} && ${i}`);return s;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=P},33092:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(9186),o=n(54224),i=n(31239),s=n(97377);function a(e){const{gen:t,data:n,it:o}=e;t.if(o.parentData,(()=>t.assign(n,r._`${o.parentData}[${o.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:o,schema:i,parentSchema:s,it:a}=e,l=t.macro.call(a.self,i,s,a),u=c(n,o,l);!1!==a.opts.validateSchema&&a.self.validateSchema(l,!0);const f=n.name("valid");e.subschema({schema:l,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:l,keyword:u,schema:f,parentSchema:d,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,t);const m=!h&&t.compile?t.compile.call(p.self,f,d,p):t.validate,g=c(l,u,m),y=l.let("valid");function v(n=(t.async?r._`await `:r.nil)){const s=p.opts.passContext?o.default.this:o.default.self,a=!("compile"in t&&!h||!1===t.schema);l.assign(y,r._`${n}${(0,i.callValidateCode)(e,g,s,a)}`,t.modifying)}function b(e){var n;l.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const n=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>v(r._`await `)),(t=>l.assign(y,!1).if(r._`${t} instanceof ${p.ValidationError}`,(()=>l.assign(e,r._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=r._`${g}.errors`;return l.assign(e,null),v(r.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(o.default.vErrors,r._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,r._`${o.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");const s=o.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},43237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(9186),o=n(31799);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:i,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const i=e.schema[t];return void 0===n?{schema:i,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,o.escapeFragment)(n)}`}}if(void 0!==i){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:i,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==n){const{errorPath:s,dataPathArr:a,opts:c}=t;u(l.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${s}${(0,o.getErrorPath)(n,i,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==s&&(u(s instanceof r.Name?s:l.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:i}){void 0!==r&&(e.compositeRule=r),void 0!==o&&(e.createErrors=o),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n}},54108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(74351);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var o=n(9186);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const i=n(85551),s=n(77642),a=n(76865),c=n(96258),l=n(9186),u=n(15571),f=n(79653),d=n(31799),h=n(3164),p=n(6327),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},S=200;function w(e){var t,n,r,o,i,s,a,c,l,u,f,d,h,g,y,v,b,w,_,k,E,x,C,T,O;const A=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,N=!0===P||void 0===P?1:P||0,R=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:m,M=null!==(o=e.uriResolver)&&void 0!==o?o:p.default;return{strictSchema:null===(s=null!==(i=e.strictSchema)&&void 0!==i?i:A)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:A)||void 0===c||c,strictTypes:null!==(u=null!==(l=e.strictTypes)&&void 0!==l?l:A)&&void 0!==u?u:"log",strictTuples:null!==(d=null!==(f=e.strictTuples)&&void 0!==f?f:A)&&void 0!==d?d:"log",strictRequired:null!==(g=null!==(h=e.strictRequired)&&void 0!==h?h:A)&&void 0!==g&&g,code:e.code?{...e.code,optimize:N,regExp:R}:{optimize:N,regExp:R},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:S,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:S,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(k=e.schemaId)&&void 0!==k?k:"$id",addUsedSchema:null===(E=e.addUsedSchema)||void 0===E||E,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(C=e.validateFormats)||void 0===C||C,unicodeRegExp:null===(T=e.unicodeRegExp)||void 0===T||T,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:M}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:y,es5:t,lines:n}),this.logger=function(e){if(!1===e)return A;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),k.call(this,v,e,"NOT SUPPORTED"),k.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&T.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=h;"id"===n&&(r={...h},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await o.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||i.call(this,n)}async function o(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof s.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),i.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await l.call(this,e);this.refs[e]||await o.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=E.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new c.SchemaEnv({schema:{},schemaId:n});if(t=c.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=E.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(N.call(this,n,t),!t)return(0,d.eachItem)(n,(e=>R.call(this,e))),this;I.call(this,t);const r={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(n,0===r.type.length?e=>R.call(this,e,r):e=>r.type.forEach((t=>R.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,i=o[e];r&&i&&(o[e]=$(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,o=this.opts.addUsedSchema){let i;const{schemaId:s}=this.opts;if("object"==typeof e)i=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,u.normalizeId)(i||n);const l=u.getSchemaRefs.call(this,e,n);return a=new c.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:l}),this._cache.set(a.schema,a),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function k(e,t,n,r="error"){for(const o in e){const i=o;i in t&&this.logger[r](`${n}: option ${o}. ${e[i]}`)}}function E(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function C(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function T(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function O(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=_,_.ValidationError=i.default,_.MissingRefError=s.default;const A={log(){},warn(){},error(){}},P=/^[a-z_$][a-z0-9_$:-]*$/i;function N(e,t){const{RULES:n}=this;if((0,d.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!P.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function R(e,t,n){var r;const o=null==t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let s=o?i.post:i.rules.find((({type:e})=>e===n));if(s||(s={type:n,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?M.call(this,s,a,t.before):s.rules.push(a),i.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=$(t)),e.validateSchema=this.compile(t,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function $(e){return{anyOf:[e,j]}}},52377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},88991:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,o=0;for(;o=55296&&n<=56319&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(33735);r.code='require("ajv/dist/runtime/uri").default',t.default=r},85551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},77979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(9186),o=n(31799),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?s(e,r):(0,o.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:n,schema:i,data:s,keyword:a,it:c}=e;c.items=!0;const l=n.const("len",r._`${s}.length`);if(!1===i)e.setParams({len:t.length}),e.pass(r._`${l} <= ${t.length}`);else if("object"==typeof i&&!(0,o.alwaysValidSchema)(c,i)){const i=n.var("valid",r._`${l} <= ${t.length}`);n.if((0,r.not)(i),(()=>function(i){n.forRange("i",t.length,l,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:o.Type.Num},i),c.allErrors||n.if((0,r.not)(i),(()=>n.break()))}))}(i))),e.ok(i)}}t.validateAdditionalItems=s,t.default=i},93353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31239),o=n(9186),i=n(54224),s=n(31799),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>o._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=u;if(u.props=!0,"all"!==d.removeAdditional&&(0,s.alwaysValidSchema)(u,n))return;const h=(0,r.allSchemaProperties)(a.properties),p=(0,r.allSchemaProperties)(a.patternProperties);function m(e){t.code(o._`delete ${c}[${e}]`)}function g(r){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(f||t.break());if("object"==typeof n&&!(0,s.alwaysValidSchema)(u,n)){const n=t.name("valid");"failing"===d.removeAdditional?(y(r,n,!1),t.if((0,o.not)(n),(()=>{e.reset(),m(r)}))):(y(r,n),f||t.if((0,o.not)(n),(()=>t.break())))}}}function y(t,n,r){const o={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,n)}t.forIn("key",c,(n=>{h.length||p.length?t.if(function(n){let i;if(h.length>8){const e=(0,s.schemaRefOrVal)(u,a.properties,"properties");i=(0,r.isOwnProperty)(t,e,n)}else i=h.length?(0,o.or)(...h.map((e=>o._`${n} === ${e}`))):o.nil;return p.length&&(i=(0,o.or)(i,...p.map((t=>o._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,o.not)(i)}(n),(()=>g(n))):g(n)})),e.ok(o._`${l} === ${i.default.errors}`)}};t.default=a},6092:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31799),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(o,t))return;const s=e.subschema({keyword:"allOf",schemaProp:n},i);e.ok(i),e.mergeEvaluated(s)}))}};t.default=o},39546:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(31239).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},90774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:i,data:s,it:a}=e;let c,l;const{minContains:u,maxContains:f}=i;a.opts.next?(c=void 0===u?1:u,l=f):c=1;const d=t.const("len",r._`${s}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,o.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,o.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,o.alwaysValidSchema)(a,n)){let t=r._`${d} >= ${c}`;return void 0!==l&&(t=r._`${t} && ${d} <= ${l}`),void e.pass(t)}a.items=!0;const h=t.name("valid");function p(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===l?t.if(r._`${e} >= ${c}`,(()=>t.assign(h,!0).break())):(t.if(r._`${e} > ${l}`,(()=>t.assign(h,!1).break())),1===c?t.assign(h,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(h,!0))))}(n)))))}function m(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:o.Type.Num,compositeRule:!0},n),r()}))}void 0===l&&1===c?m(h,(()=>t.if(h,(()=>t.break())))):0===c?(t.let(h,!0),void 0!==l&&t.if(r._`${s}.length > 0`,p)):(t.let(h,!1),p()),e.result(h,(()=>e.reset()))}};t.default=i},11109:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(9186),o=n(31799),i=n(31239);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const o=1===t?"property":"properties";return r.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:o}})=>r._`{property: ${e}, missingProperty: ${o}, depsCount: ${t}, deps: ${n}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:o,it:s}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,i.propertyInData)(n,o,c,s.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),s.allErrors?n.if(u,(()=>{for(const t of l)(0,i.checkReportMissingProp)(e,t)})):(n.if(r._`${u} && (${(0,i.checkMissingProp)(e,l,a)})`),(0,i.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:s,it:a}=e,c=n.name("valid");for(const l in t)(0,o.alwaysValidSchema)(a,t[l])||(n.if((0,i.propertyInData)(n,r,l,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},4489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:i}=e;void 0===n.then&&void 0===n.else&&(0,o.checkStrictMode)(i,'"if" without "then" and "else" is ignored');const a=s(i,"then"),c=s(i,"else");if(!a&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,f("then",n),f("else",n))}else a?t.if(u,f("then")):t.if((0,r.not)(u),f("else"));function f(n,o){return()=>{const i=e.subschema({keyword:n},u);t.assign(l,u),e.mergeValidEvaluated(i,l),o?t.assign(o,r._`${n}`):e.setParams({ifClause:n})}}e.pass(l,(()=>e.error(!0)))}};function s(e,t){const n=e.schema[t];return void 0!==n&&!(0,o.alwaysValidSchema)(e,n)}t.default=i},29386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(77979),o=n(9444),i=n(76204),s=n(19478),a=n(90774),c=n(11109),l=n(83242),u=n(93353),f=n(45531),d=n(87645),h=n(98510),p=n(39546),m=n(43992),g=n(6092),y=n(4489),v=n(55868);t.default=function(e=!1){const t=[h.default,p.default,m.default,g.default,y.default,v.default,l.default,u.default,c.default,f.default,d.default];return e?t.push(o.default,s.default):t.push(r.default,i.default),t.push(a.default),t}},76204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(9186),o=n(31799),i=n(31239),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,o.alwaysValidSchema)(n,t)||e.ok((0,i.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:i,parentSchema:s,data:a,keyword:c,it:l}=e;!function(e){const{opts:r,errSchemaPath:i}=l,s=n.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;(0,o.checkStrictMode)(l,e,r.strictTuples)}}(s),l.opts.unevaluated&&n.length&&!0!==l.items&&(l.items=o.mergeEvaluated.items(i,n.length,l.items));const u=i.name("valid"),f=i.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,o.alwaysValidSchema)(l,t)||(i.if(r._`${f} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=a,t.default=s},19478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i=n(31239),s=n(77979),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,o.alwaysValidSchema)(r,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,i.validateArray)(e)))}};t.default=a},98510:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31799),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if((0,r.alwaysValidSchema)(o,n))return void e.fail();const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},43992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:i,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&i.discriminator)return;const a=n,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){a.forEach(((n,i)=>{let a;(0,o.alwaysValidSchema)(s,n)?t.var(u,!0):a=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},u),i>0&&t.if(r._`${u} && ${c}`).assign(c,!1).assign(l,r._`[${l}, ${i}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,i),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=i},87645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31239),o=n(9186),i=n(31799),s=n(31799),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:l}=e,{opts:u}=l,f=(0,r.allSchemaProperties)(n),d=f.filter((e=>(0,i.alwaysValidSchema)(l,n[e])));if(0===f.length||d.length===f.length&&(!l.opts.unevaluated||!0===l.props))return;const h=u.strictSchema&&!u.allowMatchingProperties&&c.properties,p=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=(0,s.evaluatedPropsToName)(t,l.props));const{props:m}=l;function g(e){for(const t in h)new RegExp(e).test(t)&&(0,i.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){t.forIn("key",a,(i=>{t.if(o._`${(0,r.usePattern)(e,n)}.test(${i})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:i,dataPropType:s.Type.Str},p),l.opts.unevaluated&&!0!==m?t.assign(o._`${m}[${i}]`,!0):r||l.allErrors||t.if((0,o.not)(p),(()=>t.break()))}))}))}!function(){for(const e of f)h&&g(e),l.allErrors?y(e):(t.var(p,!0),y(e),t.if(p))}()}};t.default=a},9444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(76204),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=o},45531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(74351),o=n(31239),i=n(31799),s=n(93353),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new r.KeywordCxt(l,s.default,"additionalProperties"));const u=(0,o.allSchemaProperties)(n);for(const e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=i.mergeEvaluated.props(t,(0,i.toHash)(u),l.props));const f=u.filter((e=>!(0,i.alwaysValidSchema)(l,n[e])));if(0===f.length)return;const d=t.name("valid");for(const n of f)h(n)?p(n):(t.if((0,o.propertyInData)(t,c,n,l.opts.ownProperties)),p(n),l.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function h(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==n[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},83242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:i,it:s}=e;if((0,o.alwaysValidSchema)(s,n))return;const a=t.name("valid");t.forIn("key",i,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=i},55868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31799),o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=o},31239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(9186),o=n(31799),i=n(54224),s=n(31799);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function l(e,t,n,o){const i=r._`${t}${(0,r.getProperty)(n)} === undefined`;return o?(0,r.or)(i,(0,r.not)(c(e,t,n))):i}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:o,it:i}=e;n.if(l(n,o,t,i.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},o,i){return(0,r.or)(...o.map((o=>(0,r.and)(l(e,t,o,n.ownProperties),r._`${i} = ${o}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,o){const i=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return o?r._`${i} && ${c(e,t,n)}`:i},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((n=>!(0,o.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:o,schemaPath:s,errorPath:a},it:c},l,u,f){const d=f?r._`${e}, ${t}, ${o}${s}`:t,h=[[i.default.instancePath,(0,r.strConcat)(i.default.instancePath,a)],[i.default.parentData,c.parentData],[i.default.parentDataProperty,c.parentDataProperty],[i.default.rootData,i.default.rootData]];c.opts.dynamicRef&&h.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);const p=r._`${d}, ${n.object(...h)}`;return u!==r.nil?r._`${l}.call(${u}, ${p})`:r._`${l}(${p})`};const f=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const o=t.unicodeRegExp?"u":"",{regExp:i}=t.code,a=i(n,o);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===i.code?f:(0,s.useFunc)(e,i)}(${n}, ${o})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:i,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:i,dataProp:n,dataPropType:o.Type.Num},a),t.if((0,r.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:i,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,o.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,o)=>{const s=e.subschema({keyword:i,schemaProp:o,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},59922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},97197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(59922),o=n(35660),i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,o.default];t.default=i},35660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(77642),o=n(31239),i=n(9186),s=n(54224),a=n(96258),c=n(31799),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:o}=e,{baseId:s,schemaEnv:c,validateName:l,opts:d,self:h}=o,{root:p}=c;if(("#"===n||"#/"===n)&&s===p.baseId)return function(){if(c===p)return f(e,l,c,c.$async);const n=t.scopeValue("root",{ref:p});return f(e,i._`${n}.validate`,p,p.$async)}();const m=a.resolveRef.call(h,p,s,n);if(void 0===m)throw new r.default(o.opts.uriResolver,s,n);return m instanceof a.SchemaEnv?function(t){const n=u(e,t);f(e,n,t,t.$async)}(m):function(r){const o=t.scopeValue("schema",!0===d.code.source?{ref:r,code:(0,i.stringify)(r)}:{ref:r}),s=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:i.nil,topSchemaRef:o,errSchemaPath:n},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):i._`${n.scopeValue("wrapper",{ref:t})}.validate`}function f(e,t,n,r){const{gen:a,it:l}=e,{allErrors:u,schemaEnv:f,opts:d}=l,h=d.passContext?s.default.this:i.nil;function p(e){const t=i._`${e}.errors`;a.assign(s.default.vErrors,i._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,i._`${s.default.vErrors}.length`)}function m(e){var t;if(!l.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(r&&!r.dynamicProps)void 0!==r.props&&(l.props=c.mergeEvaluated.props(a,r.props,l.props));else{const t=a.var("props",i._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(a,t,l.props,i.Name)}if(!0!==l.items)if(r&&!r.dynamicItems)void 0!==r.items&&(l.items=c.mergeEvaluated.items(a,r.items,l.items));else{const t=a.var("items",i._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(a,t,l.items,i.Name)}}r?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(i._`await ${(0,o.callValidateCode)(e,t,h)}`),m(t),u||a.assign(n,!0)}),(e=>{a.if(i._`!(${e} instanceof ${l.ValidationError})`,(()=>a.throw(e))),p(e),u||a.assign(n,!1)})),e.ok(n)}():e.result((0,o.callValidateCode)(e,t,h),(()=>m(t)),(()=>p(t)))}t.getValidate=u,t.callRef=f,t.default=l},4415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(40265),i=n(96258),s=n(31799),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===o.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:l}=e,{oneOf:u}=c;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=a.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),h=t.const("tag",r._`${n}${(0,r.getProperty)(f)}`);function p(n){const o=t.name("valid"),i=e.subschema({keyword:"oneOf",schemaProp:n},o);return e.mergeEvaluated(i,r.Name),o}t.if(r._`typeof ${h} == "string"`,(()=>function(){const n=function(){var e;const t={},n=o(c);let r=!0;for(let t=0;te.error(!1,{discrError:o.DiscrError.Tag,tag:h,tagName:f}))),e.ok(d)}};t.default=a},40265:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},41378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97197),o=n(50116),i=n(29386),s=n(85627),a=n(78384),c=[r.default,o.default,(0,i.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},42024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:o,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:f,self:d}=c;l.validateFormats&&(i?function(){const i=n.scopeValue("formats",{ref:d.formats,code:l.code.formats}),s=n.const("fDef",r._`${i}[${a}]`),c=n.let("fType"),u=n.let("format");n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>n.assign(c,r._`${s}.type || "string"`).assign(u,r._`${s}.validate`)),(()=>n.assign(c,r._`"string"`).assign(u,s))),e.fail$data((0,r.or)(!1===l.strictSchema?r.nil:r._`${a} && !${u}`,function(){const e=f.$async?r._`(${s}.async ? await ${u}(${o}) : ${u}(${o}))`:r._`${u}(${o})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${o}))`;return r._`${u} && ${u} !== true && ${c} === ${t} && !${n}`}()))}():function(){const i=d.formats[s];if(!i)return void function(){if(!1!==l.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${u}"`}d.logger.warn(e())}();if(!0===i)return;const[a,c,h]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):l.code.formats?r._`${l.code.formats}${(0,r.getProperty)(s)}`:void 0,o=n.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,o]:[e.type||"string",e.validate,r._`${o}.validate`]}(i);a===t&&e.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!f.$async)throw new Error("async format in sync schema");return r._`await ${h}(${o})`}return"function"==typeof c?r._`${h}(${o})`:r._`${h}.test(${o})`}())}())}};t.default=o},85627:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(42024).default];t.default=r},78384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},98470:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i=n(52377),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(r._`!${(0,o.useFunc)(t,i.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=s},6860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i=n(52377),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:l}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const u=a.length>=l.opts.loopEnum;let f;const d=()=>null!=f?f:f=(0,o.useFunc)(t,i.default);let h;if(u||s)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",c,(e=>t.if(r._`${d()}(${n}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,r.or)(...a.map(((t,o)=>function(e,t){const o=a[t];return"object"==typeof o&&null!==o?r._`${d()}(${n}, ${e}[${t}])`:r._`${n} === ${o}`}(e,o))))}e.pass(h)}};t.default=s},50116:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42679),o=n(25006),i=n(75337),s=n(51403),a=n(41173),c=n(34346),l=n(89656),u=n(76526),f=n(98470),d=n(6860),h=[r.default,o.default,i.default,s.default,a.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,d.default];t.default=h},89656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o}=e,i="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${i} ${o}`)}};t.default=o},75337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=n(31799),i=n(88991),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,l=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,o.useFunc)(e.gen,i.default)}(${n})`;e.fail$data(r._`${l} ${c} ${s}`)}};t.default=s},42679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o=r.operators,i={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},s={message:({keyword:e,schemaCode:t})=>r.str`must be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${i[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(i),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data(r._`${n} ${i[t].fail} ${o} || isNaN(${n})`)}};t.default=a},41173:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o}=e,i="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${i} ${o}`)}};t.default=o},25006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9186),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:o,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${o} === 0 || (${a} = ${n}/${o}, ${c}))`)}};t.default=o},51403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31239),o=n(9186),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:i,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",l=n?o._`(new RegExp(${s}, ${c}))`:(0,r.usePattern)(e,i);e.fail$data(o._`!${l}.test(${t})`)}};t.default=i},34346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31239),o=n(9186),i=n(31799),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>o.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>o._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:s,data:a,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===n.length)return;const f=n.length>=u.loopRequired;if(l.allErrors?function(){if(f||c)e.block$data(o.nil,d);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(f||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,i){e.setParams({missingProperty:n}),t.forOf(n,s,(()=>{t.assign(i,(0,r.propertyInData)(t,a,n,u.ownProperties)),t.if((0,o.not)(i),(()=>{e.error(),t.break()}))}),o.nil)}(i,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,i)),(0,r.reportMissingProp)(e,i),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,i.checkStrictMode)(l,t,l.opts.strictRequired)}}function d(){t.forOf("prop",s,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,u.ownProperties),(()=>e.error()))}))}}};t.default=s},76526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(79653),o=n(9186),i=n(31799),s=n(52377),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>o._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:l,schemaCode:u,it:f}=e;if(!a&&!c)return;const d=t.let("valid"),h=l.items?(0,r.getSchemaTypes)(l.items):[];function p(i,s){const a=t.name("item"),c=(0,r.checkDataTypes)(h,a,f.opts.strictNumbers,r.DataType.Wrong),l=t.const("indices",o._`{}`);t.for(o._`;${i}--;`,(()=>{t.let(a,o._`${n}[${i}]`),t.if(c,o._`continue`),h.length>1&&t.if(o._`typeof ${a} == "string"`,o._`${a} += "_"`),t.if(o._`typeof ${l}[${a}] == "number"`,(()=>{t.assign(s,o._`${l}[${a}]`),e.error(),t.assign(d,!1).break()})).code(o._`${l}[${a}] = ${i}`)}))}function m(r,a){const c=(0,i.useFunc)(t,s.default),l=t.name("outer");t.label(l).for(o._`;${r}--;`,(()=>t.for(o._`${a} = ${r}; ${a}--;`,(()=>t.if(o._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(l)}))))))}e.block$data(d,(function(){const r=t.let("i",o._`${n}.length`),i=t.let("j");e.setParams({i:r,j:i}),t.assign(d,!0),t.if(o._`${r} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?p:m)(r,i)))}),o._`${u} === false`),e.ok(d)}};t.default=a},48304:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,o,i,s,a,c,l,u,f){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var d in r(i,s,a,c,l,u,f),i){var h=i[d];if(Array.isArray(h)){if(d in t.arrayKeywords)for(var p=0;p{e.exports=function(){"use strict";var e,t,n=(e=(e,t)=>{var n,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},c=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},l=e=>((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of i(t))!s.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e})(r({},"__esModule",{value:!0}),e),u=a({""(){n={env:{},argv:[]}}}),f=c({"src/common/parser-create-error.js"(e,t){u(),t.exports=function(e,t){let n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}}}),d=c({"src/language-yaml/pragma.js"(e,t){u(),t.exports={isPragma:function(e){return/^\s*@(?:prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)},insertPragma:function(e){return`# @format\n\n${e}`}}}}),h=c({"src/language-yaml/loc.js"(e,t){u(),t.exports={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}}}}),p={};function m(e,t){function n(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function g(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function v(e,t){return function(n,r){t(n,r,e)}}function b(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function S(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function w(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function C(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{!function(e){e.value instanceof O?Promise.resolve(e.value.v).then(c,l):u(i[0][2],e)}(o[e](t))}catch(e){u(i[0][3],e)}}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function P(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:O(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function N(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=E(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function R(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function I(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function $(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(p,{__assign:()=>L,__asyncDelegator:()=>P,__asyncGenerator:()=>A,__asyncValues:()=>N,__await:()=>O,__awaiter:()=>S,__classPrivateFieldGet:()=>j,__classPrivateFieldSet:()=>$,__createBinding:()=>_,__decorate:()=>y,__exportStar:()=>k,__extends:()=>m,__generator:()=>w,__importDefault:()=>I,__importStar:()=>M,__makeTemplateObject:()=>R,__metadata:()=>b,__param:()=>v,__read:()=>x,__rest:()=>g,__spread:()=>C,__spreadArrays:()=>T,__values:()=>E});var D,L,F=a({"node_modules/tslib/tslib.es6.js"(){u(),D=function(e,t){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.LinesAndColumns=n,e.default=n}}),V=c({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(e){u(),e.__esModule=!0,e.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})}}}),U=c({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(e){u(),e.__esModule=!0,e.getPointText=function(e){return e.line+":"+e.column}}}),W=c({"node_modules/yaml-unist-parser/lib/attach.js"(e){u(),e.__esModule=!0;var t=V(),n=U();function r(e,t){if(t.position.start.offset!==t.position.end.offset){if("leadingComments"in t){var n=t.position.start,o=e[n.line-1].leadingAttachableNode;(!o||n.column1&&"document"!==t.type&&"documentHead"!==t.type){var i=t.position.end,s=e[i.line-1].trailingAttachableNode;(!s||i.column>=s.position.end.column)&&(e[i.line-1].trailingAttachableNode=t)}if("root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type)for(var a=t.position,c=(n=a.start,0),l=[(i=a.end).line].concat(n.line===i.line?[]:n.line);c=f.position.end.column)&&(e[u-1].trailingNode=t)}"children"in t&&t.children.forEach((function(t){r(e,t)}))}}function o(e,t){if(e.position.start.offsett.position.end.offset)switch(e.type){case"flowMapping":case"flowSequence":return 0===e.children.length||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offsete.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type)&&("mappingValue"===e.type||i(e));default:return!1}}function i(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}e.attachComments=function(e){t.defineParents(e);var s=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,o=e.comments;n1&&e.position.start.line>a[0].position.end.line;)a.shift();!function(e,r,s){var a=e.position.start.line,c=r[a-1].trailingAttachableNode;if(c){if(c.trailingComment)throw new Error("Unexpected multiple trailing comment at "+n.getPointText(e.position.start));return t.defineParents(e,c),void(c.trailingComment=e)}for(var l=a;l>=s.position.start.line;l--){var u=r[l-1].trailingNode,f=void 0;if(u)f=u;else{if(l===a||!r[l-1].comment)continue;f=r[l-1].comment._parent}if(("sequence"===f.type||"mapping"===f.type)&&(f=f.children[0]),"mappingItem"===f.type){var d=f.children,h=d[0],p=d[1];f=i(h)?h:p}for(;;){if(o(f,e))return t.defineParents(e,f),void f.endComments.push(e);if(!f._parent)break;f=f._parent}break}for(l=a+1;l<=s.position.end.line;l++){var m=r[l-1].leadingAttachableNode;if(m)return t.defineParents(e,m),void m.leadingComments.push(e)}var g=s.children[1];t.defineParents(e,g),g.endComments.push(e)}(e,s,a[0])}))}}}),B=c({"node_modules/yaml-unist-parser/lib/factories/node.js"(e){u(),e.__esModule=!0,e.createNode=function(e,t){return{type:e,position:t}}}}),K=c({"node_modules/yaml-unist-parser/lib/factories/root.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=B();e.createRoot=function(e,r,o){return t.__assign(t.__assign({},n.createNode("root",e)),{children:r,comments:o})}}}),H=c({"node_modules/yaml-unist-parser/lib/preprocess.js"(e){u(),e.__esModule=!0,e.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}}}}),Y=c({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(e){u(),e.__esModule=!0,e.createLeadingCommentAttachable=function(){return{leadingComments:[]}}}}),z=c({"node_modules/yaml-unist-parser/lib/factories/trailing-comment-attachable.js"(e){u(),e.__esModule=!0,e.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}}}}),J=c({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=Y(),r=z();e.createCommentAttachable=function(){return t.__assign(t.__assign({},n.createLeadingCommentAttachable()),r.createTrailingCommentAttachable())}}}),G=c({"node_modules/yaml-unist-parser/lib/factories/alias.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=J(),r=B();e.createAlias=function(e,o,i){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("alias",e)),n.createCommentAttachable()),o),{value:i})}}}),Q=c({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(e){u(),e.__esModule=!0;var t=G();e.transformAlias=function(e,n){var r=e.cstNode;return t.createAlias(n.transformRange({origStart:r.valueRange.origStart-1,origEnd:r.valueRange.origEnd}),n.transformContent(e),r.rawValue)}}}),X=c({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(e){u(),e.__esModule=!0;var t=(F(),l(p));e.createBlockFolded=function(e){return t.__assign(t.__assign({},e),{type:"blockFolded"})}}}),Z=c({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=Y(),r=B();e.createBlockValue=function(e,o,i,s,a,c){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("blockValue",e)),n.createLeadingCommentAttachable()),o),{chomping:i,indent:s,value:a,indicatorComment:c})}}}),ee=c({"node_modules/yaml-unist-parser/lib/constants.js"(e){var t;u(),e.__esModule=!0,(t=e.PropLeadingCharacter||(e.PropLeadingCharacter={})).Tag="!",t.Anchor="&",t.Comment="#"}}),te=c({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=B();e.createAnchor=function(e,r){return t.__assign(t.__assign({},n.createNode("anchor",e)),{value:r})}}}),ne=c({"node_modules/yaml-unist-parser/lib/factories/comment.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=B();e.createComment=function(e,r){return t.__assign(t.__assign({},n.createNode("comment",e)),{value:r})}}}),re=c({"node_modules/yaml-unist-parser/lib/factories/content.js"(e){u(),e.__esModule=!0,e.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}}}}),oe=c({"node_modules/yaml-unist-parser/lib/factories/tag.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=B();e.createTag=function(e,r){return t.__assign(t.__assign({},n.createNode("tag",e)),{value:r})}}}),ie=c({"node_modules/yaml-unist-parser/lib/transforms/content.js"(e){u(),e.__esModule=!0;var t=ee(),n=te(),r=ne(),o=re(),i=oe();e.transformContent=function(e,s,a){void 0===a&&(a=function(){return!1});for(var c=e.cstNode,l=[],u=null,f=null,d=null,h=0,p=c.props;h=0;u--){var f=e.contents[u];if("COMMENT"===f.type){var d=t.transformNode(f);n&&n.line===d.position.start.line?c.unshift(d):l?o.unshift(d):d.position.start.offset>=e.valueRange.origEnd?a.unshift(d):o.unshift(d)}else l=!0}if(a.length>1)throw new Error("Unexpected multiple document trailing comments at "+i.getPointText(a[1].position.start));if(c.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+i.getPointText(c[1].position.start));return{comments:o,endComments:s,documentTrailingComment:r.getLast(a)||null,documentHeadTrailingComment:r.getLast(c)||null}}(l,s,a),f=u.comments,d=u.endComments,h=u.documentTrailingComment,p=u.documentHeadTrailingComment,m=s.transformNode(e.contents),g=function(e,t,n){var r=o.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),i=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[i-1]&&i--;var s=n.transformRange({origStart:null!==t?t.position.start.offset:i,origEnd:i});return{position:s,documentEndPoint:-1===r?s.end:n.transformOffset(e.valueRange.origEnd+3)}}(l,m,s),y=g.position,v=g.documentEndPoint;return(c=s.comments).push.apply(c,t.__spreadArrays(f,d)),{documentBody:n.createDocumentBody(y,m,d),documentEndPoint:v,documentTrailingComment:h,documentHeadTrailingComment:p}}}}),we=c({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=ge(),r=B(),o=z();e.createDocumentHead=function(e,i,s,a){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("documentHead",e)),n.createEndCommentAttachable(s)),o.createTrailingCommentAttachable(a)),{children:i})}}}),_e=c({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=we(),r=be();e.transformDocumentHead=function(e,o){var i,s=e.cstNode,a=function(e,t){for(var n=[],r=[],o=[],i=!1,s=e.directives.length-1;s>=0;s--){var a=t.transformNode(e.directives[s]);"comment"===a.type?i?r.unshift(a):o.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:o}}(s,o),c=a.directives,l=a.comments,u=a.endComments,f=function(e,t,n){var o=r.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/);o>0&&!/[\r\n]/.test(n.text[o-1])&&(o=-1);var i=-1===o?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:o,origEnd:o+3};return 0!==t.length&&(i.origStart=t[0].position.start.offset),{position:n.transformRange(i),endMarkerPoint:-1===o?null:n.transformOffset(o)}}(s,c,o),d=f.position,h=f.endMarkerPoint;return(i=o.comments).push.apply(i,t.__spreadArrays(l,u)),{createDocumentHeadWithTrailingComment:function(e){return e&&o.comments.push(e),n.createDocumentHead(d,c,u,e)},documentHeadEndMarkerPoint:h}}}}),ke=c({"node_modules/yaml-unist-parser/lib/transforms/document.js"(e){u(),e.__esModule=!0;var t=pe(),n=me(),r=Se(),o=_e();e.transformDocument=function(e,i){var s=o.transformDocumentHead(e,i),a=s.createDocumentHeadWithTrailingComment,c=s.documentHeadEndMarkerPoint,l=r.transformDocumentBody(e,i,c),u=l.documentBody,f=l.documentEndPoint,d=l.documentTrailingComment,h=a(l.documentHeadTrailingComment);return d&&i.comments.push(d),t.createDocument(n.createPosition(h.position.start,f),h,u,d)}}}),Ee=c({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=J(),r=ge(),o=B();e.createFlowCollection=function(e,i,s){return t.__assign(t.__assign(t.__assign(t.__assign(t.__assign({},o.createNode("flowCollection",e)),n.createCommentAttachable()),r.createEndCommentAttachable()),i),{children:s})}}}),xe=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=Ee();e.createFlowMapping=function(e,r,o){return t.__assign(t.__assign({},n.createFlowCollection(e,r,o)),{type:"flowMapping"})}}}),Ce=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=Y(),r=B();e.createFlowMappingItem=function(e,o,i){return t.__assign(t.__assign(t.__assign({},r.createNode("flowMappingItem",e)),n.createLeadingCommentAttachable()),{children:[o,i]})}}}),Te=c({"node_modules/yaml-unist-parser/lib/utils/extract-comments.js"(e){u(),e.__esModule=!0,e.extractComments=function(e,t){for(var n=[],r=0,o=e;r=0;r--)if(n.test(e[r]))return r;return-1}}}),We=c({"node_modules/yaml-unist-parser/lib/transforms/plain.js"(e){u(),e.__esModule=!0;var t=Ve(),n=Ue();e.transformPlain=function(e,r){var o=e.cstNode;return t.createPlain(r.transformRange({origStart:o.valueRange.origStart,origEnd:n.findLastCharIndex(r.text,o.valueRange.origEnd-1,/\S/)+1}),r.transformContent(e),o.strValue)}}}),Be=c({"node_modules/yaml-unist-parser/lib/factories/quote-double.js"(e){u(),e.__esModule=!0;var t=(F(),l(p));e.createQuoteDouble=function(e){return t.__assign(t.__assign({},e),{type:"quoteDouble"})}}}),Ke=c({"node_modules/yaml-unist-parser/lib/factories/quote-value.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=J(),r=B();e.createQuoteValue=function(e,o,i){return t.__assign(t.__assign(t.__assign(t.__assign({},r.createNode("quoteValue",e)),o),n.createCommentAttachable()),{value:i})}}}),He=c({"node_modules/yaml-unist-parser/lib/transforms/quote-value.js"(e){u(),e.__esModule=!0;var t=Ke();e.transformAstQuoteValue=function(e,n){var r=e.cstNode;return t.createQuoteValue(n.transformRange(r.valueRange),n.transformContent(e),r.strValue)}}}),Ye=c({"node_modules/yaml-unist-parser/lib/transforms/quote-double.js"(e){u(),e.__esModule=!0;var t=Be(),n=He();e.transformQuoteDouble=function(e,r){return t.createQuoteDouble(n.transformAstQuoteValue(e,r))}}}),ze=c({"node_modules/yaml-unist-parser/lib/factories/quote-single.js"(e){u(),e.__esModule=!0;var t=(F(),l(p));e.createQuoteSingle=function(e){return t.__assign(t.__assign({},e),{type:"quoteSingle"})}}}),Je=c({"node_modules/yaml-unist-parser/lib/transforms/quote-single.js"(e){u(),e.__esModule=!0;var t=ze(),n=He();e.transformQuoteSingle=function(e,r){return t.createQuoteSingle(n.transformAstQuoteValue(e,r))}}}),Ge=c({"node_modules/yaml-unist-parser/lib/factories/sequence.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=ge(),r=Y(),o=B();e.createSequence=function(e,i,s){return t.__assign(t.__assign(t.__assign(t.__assign(t.__assign({},o.createNode("sequence",e)),r.createLeadingCommentAttachable()),n.createEndCommentAttachable()),i),{children:s})}}}),Qe=c({"node_modules/yaml-unist-parser/lib/factories/sequence-item.js"(e){u(),e.__esModule=!0;var t=(F(),l(p)),n=J(),r=ge(),o=B();e.createSequenceItem=function(e,i){return t.__assign(t.__assign(t.__assign(t.__assign({},o.createNode("sequenceItem",e)),n.createCommentAttachable()),r.createEndCommentAttachable()),{children:i?[i]:[]})}}}),Xe=c({"node_modules/yaml-unist-parser/lib/transforms/seq.js"(e){u(),e.__esModule=!0;var t=me(),n=Ge(),r=Qe(),o=Te(),i=de(),s=ve();e.transformSeq=function(e,a){var c=o.extractComments(e.cstNode.items,a).map((function(n,o){i.extractPropComments(n,a);var s=a.transformNode(e.items[o]);return r.createSequenceItem(t.createPosition(a.transformOffset(n.valueRange.origStart),null===s?a.transformOffset(n.valueRange.origStart+1):s.position.end),s)}));return n.createSequence(t.createPosition(c[0].position.start,s.getLast(c).position.end),a.transformContent(e),c)}}}),Ze=c({"node_modules/yaml-unist-parser/lib/transform.js"(e){u(),e.__esModule=!0;var t=Q(),n=ae(),r=le(),o=ue(),i=he(),s=ke(),a=Ie(),c=De(),l=qe(),f=We(),d=Ye(),h=Je(),p=Xe();e.transformNode=function(e,u){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return t.transformAlias(e,u);case"BLOCK_FOLDED":return n.transformBlockFolded(e,u);case"BLOCK_LITERAL":return r.transformBlockLiteral(e,u);case"COMMENT":return o.transformComment(e,u);case"DIRECTIVE":return i.transformDirective(e,u);case"DOCUMENT":return s.transformDocument(e,u);case"FLOW_MAP":return a.transformFlowMap(e,u);case"FLOW_SEQ":return c.transformFlowSeq(e,u);case"MAP":return l.transformMap(e,u);case"PLAIN":return f.transformPlain(e,u);case"QUOTE_DOUBLE":return d.transformQuoteDouble(e,u);case"QUOTE_SINGLE":return h.transformQuoteSingle(e,u);case"SEQ":return p.transformSeq(e,u);default:throw new Error("Unexpected node type "+e.type)}}}}),et=c({"node_modules/yaml-unist-parser/lib/factories/error.js"(e){u(),e.__esModule=!0,e.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}}}),tt=c({"node_modules/yaml-unist-parser/lib/transforms/error.js"(e){u(),e.__esModule=!0;var t=et();e.transformError=function(e,n){var r=e.source.range||e.source.valueRange;return t.createError(e.message,n.text,n.transformRange(r))}}}),nt=c({"node_modules/yaml-unist-parser/lib/factories/point.js"(e){u(),e.__esModule=!0,e.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}}}),rt=c({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(e){u(),e.__esModule=!0;var t=nt();e.transformOffset=function(e,n){e<0?e=0:e>n.text.length&&(e=n.text.length);var r=n.locator.locationForIndex(e);return t.createPoint(e,r.line+1,r.column+1)}}}),ot=c({"node_modules/yaml-unist-parser/lib/transforms/range.js"(e){u(),e.__esModule=!0;var t=me();e.transformRange=function(e,n){return t.createPosition(n.transformOffset(e.origStart),n.transformOffset(e.origEnd))}}}),it=c({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(e){u(),e.__esModule=!0;var t=!0;function n(e,r){if(e&&"object"==typeof e&&r(e)!==t)for(var o=0,i=Object.keys(e);oe.offset}e.updatePositions=function e(l){if(null!==l&&"children"in l){var u=l.children;if(u.forEach(e),"document"===l.type){var f=l.children,d=f[0],h=f[1];d.position.start.offset===d.position.end.offset?d.position.start=d.position.end=h.position.start:h.position.start.offset===h.position.end.offset&&(h.position.start=h.position.end=d.position.end)}var p=t.createUpdater(l.position,r,o,a),m=t.createUpdater(l.position,i,s,c);"endComments"in l&&0!==l.endComments.length&&(p(l.endComments[0].position.start),m(n.getLast(l.endComments).position.end));var g=u.filter((function(e){return null!==e}));if(0!==g.length){var y=g[0],v=n.getLast(g);p(y.position.start),m(v.position.end),"leadingComments"in y&&0!==y.leadingComments.length&&p(y.leadingComments[0].position.start),"tag"in y&&y.tag&&p(y.tag.position.start),"anchor"in y&&y.anchor&&p(y.anchor.position.start),"trailingComment"in v&&v.trailingComment&&m(v.trailingComment.position.end)}}}}}),lt=c({"node_modules/yaml/dist/PlainValue-ec8e588e.js"(e){u();var t={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function r(e){let t=[0],n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function o(e){let t,n;return"string"==typeof e?(t=r(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=r(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function i(e,t){if("number"!=typeof e||e<0)return null;let{lineStarts:n,src:r}=o(t);if(!n||!r||e>r.length)return null;for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:80,s=function(e,t){let{lineStarts:n,src:r}=o(t);if(!n||!(e>=1)||e>n.length)return null;let i=n[e-1],s=n[e];for(;s&&s>i&&"\n"===r[s-1];)--s;return r.slice(i,s)}(n.line,t);if(!s)return null;let{col:a}=n;if(s.length>i)if(a<=i-10)s=s.substr(0,i-1)+"…";else{let e=Math.round(i/2);s.length>a+e&&(s=s.substr(0,a+e-1)+"…"),a-=s.length-i,s="…"+s.substr(1-i)}let c=1,l="";return r&&(r.line===n.line&&a+(r.col-n.col)<=i+1?c=r.col-n.col:(c=Math.min(s.length+1,i)-a,l="…")),`${s}\n${a>1?" ".repeat(a-1):""}${"^".repeat(c)}${l}`}var a=class{static copy(e){return new a(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){let{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;on);)++o;this.origStart=n+o;let i=o;for(;o=r);)++o;return this.origEnd=r+o,i}},c=class{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;let r=c.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,n,r){let o=e[n];if(!o)return!0;let i=e[n-1];if(i&&"\n"!==i)return!1;if(r){if(o!==r)return!1}else if(o!==t.DIRECTIVES_END&&o!==t.DOCUMENT_END)return!1;let s=e[n+1],a=e[n+2];if(s!==o||a!==o)return!1;let c=e[n+3];return!c||"\n"===c||"\t"===c||" "===c}static endOfIdentifier(e,t){let n=e[t],r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){let r=c.endOfIndent(e,n);if(r>n+t)return r;{let t=c.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){let r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){let n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:c.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,o=!1,i="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(o=!0),t=c.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return i||(i=" "),s&&r<=n&&(o=!0),{fold:i,offset:t,error:o}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;let{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){let{src:t}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:n}=this.valueRange;return e!==n||c.atBlank(t,n-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;nn.setOrigRange(e,t))),t}toString(){let{context:{src:e},range:t,value:n}=this;if(null!=n)return n;let r=e.slice(t.start,t.end);return c.addStringTerminator(e,t.end,r)}},l=class extends Error{constructor(e,t,n){if(!(n&&t instanceof c))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new a(this.offset,this.offset+1);let t=e&&i(this.offset,e);if(t){let e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;let r=e&&s(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}},f=class extends l{constructor(e,t){super("YAMLSemanticError",e,t)}},d=class extends c{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){let t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t)||(" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange,{src:n}=this.context,r=n[t-1];for(;ei?n.slice(i,r+1):e)}else o+=e}let i=n[e];switch(i){case"\t":return{errors:[new f(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":return{errors:[new f(this,`Plain value cannot start with reserved character ${i}`)],str:o};default:return o}}parseBlockValue(e){let{indent:t,inFlow:n,src:r}=this.context,o=e,i=e;for(let e=r[o];"\n"===e&&!c.atDocumentBoundary(r,o+1);e=r[o]){let e=c.endOfBlockIndent(r,t,o+1);if(null===e||"#"===r[e])break;"\n"===r[e]?o=e:(i=d.endOfLine(r,e,n),o=i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=i,i}parse(e,t){this.context=e;let{inFlow:n,src:r}=e,o=t,i=r[o];return i&&"#"!==i&&"\n"!==i&&(o=d.endOfLine(r,t,n)),this.valueRange=new a(t,o),o=c.endOfWhiteSpace(r,o),o=this.parseComment(o),(!this.hasComment||this.valueRange.isEmpty())&&(o=this.parseBlockValue(o)),o}};e.Char=t,e.Node=c,e.PlainValue=d,e.Range=a,e.Type=n,e.YAMLError=l,e.YAMLReferenceError=class extends l{constructor(e,t){super("YAMLReferenceError",e,t)}},e.YAMLSemanticError=f,e.YAMLSyntaxError=class extends l{constructor(e,t){super("YAMLSyntaxError",e,t)}},e.YAMLWarning=class extends l{constructor(e,t){super("YAMLWarning",e,t)}},e._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.defaultTagPrefix="tag:yaml.org,2002:",e.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}}}),ut=c({"node_modules/yaml/dist/parse-cst.js"(e){u();var t=lt(),n=class extends t.Node{constructor(){super(t.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new t.Range(n,n+1),n+1}},r=class extends t.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,r){this.context=e;let{parseNode:o,src:i}=e,{atLineStart:s,lineStart:a}=e;!s&&this.type===t.Type.SEQ_ITEM&&(this.error=new t.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let c=s?r-a:e.indent,l=t.Node.endOfWhiteSpace(i,r+1),u=i[l],f="#"===u,d=[],h=null;for(;"\n"===u||"#"===u;){if("#"===u){let e=t.Node.endOfLine(i,l+1);d.push(new t.Range(l,e)),l=e}else s=!0,a=l+1,"\n"===i[t.Node.endOfWhiteSpace(i,a)]&&0===d.length&&(h=new n,a=h.parse({src:i},a)),l=t.Node.endOfIndent(i,a);u=i[l]}if(t.Node.nextNodeIsIndented(u,l-(a+c),this.type!==t.Type.SEQ_ITEM)?this.node=o({atLineStart:s,inCollection:!1,indent:c,lineStart:a,parent:this},l):u&&a>r+1&&(l=a-1),this.node){if(h){let t=e.parent.items||e.parent.contents;t&&t.push(h)}d.length&&Array.prototype.push.apply(this.props,d),l=this.node.range.end}else if(f){let e=d[0];this.props.push(e),l=e.end}else l=t.Node.endOfLine(i,r+1);let p=this.node?this.node.valueRange.end:l;return this.valueRange=new t.Range(r,p),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){let{context:{src:e},node:n,range:r,value:o}=this;if(null!=o)return o;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return t.Node.addStringTerminator(e,r.end,i)}},o=class extends t.Node{constructor(){super(t.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new t.Range(n,r),r}};function i(e){let n=e;for(;n instanceof r;)n=n.node;if(!(n instanceof s))return null;let o=n.items.length,i=-1;for(let e=o-1;e>=0;--e){let r=n.items[e];if(r.type===t.Type.COMMENT){let{indent:t,lineStart:n}=r.context;if(t>0&&r.range.start>=n+t)break;i=e}else{if(r.type!==t.Type.BLANK_LINE)break;i=e}}if(-1===i)return null;let a=n.items.splice(i,o-i),c=a[0].range.start;for(;n.range.end=c,n.valueRange&&n.valueRange.end>c&&(n.valueRange.end=c),n!==e;)n=n.context.parent;return a}var s=class extends t.Node{static nextContentHasIndent(e,n,r){let o=t.Node.endOfLine(e,n)+1,i=e[n=t.Node.endOfWhiteSpace(e,o)];return!!i&&(n>=o+r||("#"===i||"\n"===i)&&s.nextContentHasIndent(e,n,r))}constructor(e){super(e.type===t.Type.SEQ_ITEM?t.Type.SEQ:t.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start0}parse(e,r){this.context=e;let{parseNode:a,src:c}=e,l=t.Node.startOfLine(c,r),u=this.items[0];u.context.parent=this,this.valueRange=t.Range.copy(u.valueRange);let f=u.range.start-u.context.lineStart,d=r;d=t.Node.normalizeOffset(c,d);let h=c[d],p=t.Node.endOfWhiteSpace(c,l)===d,m=!1;for(;h;){for(;"\n"===h||"#"===h;){if(p&&"\n"===h&&!m){let e=new n;if(d=e.parse({src:c},d),this.valueRange.end=d,d>=c.length){h=null;break}this.items.push(e),d-=1}else if("#"===h){if(d=c.length){h=null;break}}if(l=d+1,d=t.Node.endOfIndent(c,l),t.Node.atBlank(c,d)){let e=t.Node.endOfWhiteSpace(c,d),n=c[e];(!n||"\n"===n||"#"===n)&&(d=e)}h=c[d],p=!0}if(!h)break;if(d!==l+f&&(p||":"!==h)){if(dr&&(d=l);break}if(!this.error){let e="All collection items must start at the same column";this.error=new t.YAMLSyntaxError(this,e)}}if(u.type===t.Type.SEQ_ITEM){if("-"!==h){l>r&&(d=l);break}}else if("-"===h&&!this.error){let e=c[d+1];if(!e||"\n"===e||"\t"===e||" "===e){let e="A collection cannot be both a mapping and a sequence";this.error=new t.YAMLSyntaxError(this,e)}}let e=a({atLineStart:p,inCollection:!0,indent:f,lineStart:l,parent:this},d);if(!e)return d;if(this.items.push(e),this.valueRange.end=e.valueRange.end,d=t.Node.normalizeOffset(c,e.range.end),h=c[d],p=!1,m=e.includesTrailingLines,h){let e=d-1,t=c[e];for(;" "===t||"\t"===t;)t=c[--e];"\n"===t&&(l=e+1,p=!0)}let g=i(e);g&&Array.prototype.push.apply(this.items,g)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){let{context:{src:e},items:n,range:r,value:o}=this;if(null!=o)return o;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e0&&(this.contents=this.directives,this.directives=[]),l}return r[l]?(this.directivesEndMarker=new t.Range(l,l+3),l+3):(s?this.error=new t.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}parseContents(e){let{parseNode:r,src:s}=this.context;this.contents||(this.contents=[]);let a=e;for(;"-"===s[a-1];)a-=1;let l=t.Node.endOfWhiteSpace(s,e),u=a===e;for(this.valueRange=new t.Range(l);!t.Node.atDocumentBoundary(s,l,t.Char.DOCUMENT_END);){switch(s[l]){case"\n":if(u){let e=new n;l=e.parse({src:s},l),l{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){let{contents:e,directives:n,value:r}=this;if(null!=r)return r;let o=n.join("");return e.length>0&&((n.length>0||e[0].type===t.Type.COMMENT)&&(o+="---\n"),o+=e.join("")),"\n"!==o[o.length-1]&&(o+="\n"),o}},l=class extends t.Node{parse(e,n){this.context=e;let{src:r}=e,o=t.Node.endOfIdentifier(r,n+1);return this.valueRange=new t.Range(n+1,o),o=t.Node.endOfWhiteSpace(r,o),o=this.parseComment(o),o}},f="CLIP",d="KEEP",h="STRIP",p=class extends t.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=f,this.header=null}get includesTrailingLines(){return this.chomping===d}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:o}=this.context;if(this.valueRange.isEmpty())return"";let i=null,s=o[n-1];for(;"\n"===s||"\t"===s||" "===s;){if(n-=1,n<=e){if(this.chomping===d)break;return""}"\n"===s&&(i=n),s=o[n-1]}let a=n+1;i&&(this.chomping===d?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===t.Type.BLOCK_FOLDED,u=!0,f="",p="",m=!1;for(let r=e;ra&&(a=l);i="\n"===r[e]?e:s=t.Node.endOfLine(r,e)}return this.chomping!==d&&(i=r[s]?s+1:s),this.valueRange=new t.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,o=this.parseBlockHeader(n);return o=t.Node.endOfWhiteSpace(r,o),o=this.parseComment(o),o=this.parseBlockValue(o),o}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}},m=class extends t.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,n=this.items[e-1];return!!n&&(n.jsonLike||n.type===t.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,r){this.context=e;let{parseNode:i,src:s}=e,{indent:a,lineStart:c}=e,l=s[r];this.items=[{char:l,offset:r}];let u=t.Node.endOfWhiteSpace(s,r+1);for(l=s[u];l&&"]"!==l&&"}"!==l;){switch(l){case"\n":if(c=u+1,"\n"===s[t.Node.endOfWhiteSpace(s,c)]){let e=new n;c=e.parse({src:s},c),this.items.push(e)}if(u=t.Node.endOfIndent(s,c),u<=c+a&&(l=s[u],u{if(r instanceof t.Node)n=r.setOrigRanges(e,n);else if(0===e.length)r.origOffset=r.offset;else{let t=n;for(;tr.offset);)++t;r.origOffset=r.offset+t,n=t}})),n}toString(){let{context:{src:e},items:n,range:r,value:o}=this;if(null!=o)return o;let i=n.filter((e=>e instanceof t.Node)),s="",a=r.start;return i.forEach((t=>{let n=e.slice(a,t.range.start);a=t.range.end,s+=n+String(t),"\n"===s[s.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),s+=e.slice(a,r.end),t.Node.addStringTerminator(e,r.end,s)}},g=class extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:o,src:i}=this.context;'"'!==i[r-1]&&e.push(new t.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let a=n+1;ae?i.slice(e,a+1):n)}else s+=n}return e.length>0?{errors:e,str:s}:s}parseCharCode(e,n,r){let{src:o}=this.context,i=o.substr(e,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(s)?(r.push(new t.YAMLSyntaxError(this,`Invalid escape sequence ${o.substr(e-2,n+2)}`)),o.substr(e-2,n+2)):String.fromCodePoint(s)}parse(e,n){this.context=e;let{src:r}=e,o=g.endOfQuote(r,n+1);return this.valueRange=new t.Range(n,o),o=t.Node.endOfWhiteSpace(r,o),o=this.parseComment(o),o}},y=class extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:o,src:i}=this.context;"'"!==i[r-1]&&e.push(new t.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let a=n+1;ae?i.slice(e,a+1):n)}else s+=n}return e.length>0?{errors:e,str:s}:s}parse(e,n){this.context=e;let{src:r}=e,o=y.endOfQuote(r,n+1);return this.valueRange=new t.Range(n,o),o=t.Node.endOfWhiteSpace(r,o),o=this.parseComment(o),o}},v=class{static parseType(e,n,r){switch(e[n]){case"*":return t.Type.ALIAS;case">":return t.Type.BLOCK_FOLDED;case"|":return t.Type.BLOCK_LITERAL;case"{":return t.Type.FLOW_MAP;case"[":return t.Type.FLOW_SEQ;case"?":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_KEY:t.Type.PLAIN;case":":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_VALUE:t.Type.PLAIN;case"-":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.SEQ_ITEM:t.Type.PLAIN;case'"':return t.Type.QUOTE_DOUBLE;case"'":return t.Type.QUOTE_SINGLE;default:return t.Type.PLAIN}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{atLineStart:n,inCollection:o,inFlow:i,indent:a,lineStart:c,parent:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t._defineProperty(this,"parseNode",((e,n)=>{if(t.Node.atDocumentBoundary(this.src,n))return null;let o=new v(this,e),{props:i,type:a,valueStart:c}=o.parseProps(n),u=function(e,n){switch(e){case t.Type.ALIAS:return new l(e,n);case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return new p(e,n);case t.Type.FLOW_MAP:case t.Type.FLOW_SEQ:return new m(e,n);case t.Type.MAP_KEY:case t.Type.MAP_VALUE:case t.Type.SEQ_ITEM:return new r(e,n);case t.Type.COMMENT:case t.Type.PLAIN:return new t.PlainValue(e,n);case t.Type.QUOTE_DOUBLE:return new g(e,n);case t.Type.QUOTE_SINGLE:return new y(e,n);default:return null}}(a,i),f=u.parse(o,c);if(u.range=new t.Range(n,f),f<=n&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=f,u.error.source=u,u.range.end=n+1),o.nodeStartsCollection(u)){!u.error&&!o.atLineStart&&o.parent.type===t.Type.DOCUMENT&&(u.error=new t.YAMLSyntaxError(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let e=new s(u);return f=e.parse(new v(o),f),e.range=new t.Range(n,f),e}return u})),this.atLineStart=null!=n?n:e.atLineStart||!1,this.inCollection=null!=o?o:e.inCollection||!1,this.inFlow=null!=i?i:e.inFlow||!1,this.indent=null!=a?a:e.indent,this.lineStart=null!=c?c:e.lineStart,this.parent=null!=u?u:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:o,src:i}=this;if(n||o)return!1;if(e instanceof r)return!0;let s=e.range.end;return"\n"!==i[s]&&"\n"!==i[s-1]&&(s=t.Node.endOfWhiteSpace(i,s),":"===i[s])}parseProps(e){let{inFlow:n,parent:r,src:o}=this,i=[],s=!1,a=o[e=this.atLineStart?t.Node.endOfIndent(o,e):t.Node.endOfWhiteSpace(o,e)];for(;a===t.Char.ANCHOR||a===t.Char.COMMENT||a===t.Char.TAG||"\n"===a;){if("\n"===a){let n,i=e;do{n=i+1,i=t.Node.endOfIndent(o,n)}while("\n"===o[i]);let a=i-(n+this.indent),c=r.type===t.Type.SEQ_ITEM&&r.context.atLineStart;if("#"!==o[i]&&!t.Node.nextNodeIsIndented(o[i],a,!c))break;this.atLineStart=!0,this.lineStart=n,s=!1,e=i}else if(a===t.Char.COMMENT){let n=t.Node.endOfLine(o,e+1);i.push(new t.Range(e,n)),e=n}else{let n=t.Node.endOfIdentifier(o,e+1);a===t.Char.TAG&&","===o[n]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(e+1,n+13))&&(n=t.Node.endOfIdentifier(o,n+5)),i.push(new t.Range(e,n)),s=!0,e=t.Node.endOfWhiteSpace(o,n)}a=o[e]}return s&&":"===a&&t.Node.atBlank(o,e+1,!0)&&(e-=1),{props:i,type:v.parseType(o,e,n),valueStart:e}}};e.parse=function(e){let t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));let n=[],r=0;do{let t=new c,o=new v({src:e});r=t.parse(o,r),n.push(t)}while(r{if(0===t.length)return!1;for(let e=1;en.join("...\n"),n}}}),ft=c({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(e){u();var t=lt();function n(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}var r=class{};function o(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>o(e,String(t),n)));if(e&&"function"==typeof e.toJSON){let r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});let o=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(o),o}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var i=class extends r{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:o(this.value,e,t)}toString(){return String(this.value)}};function s(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else{let e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}var a=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done,c=class extends r{constructor(e){super(),t._defineProperty(this,"items",[]),this.schema=e}addIn(e,t){if(a(e))this.add(t);else{let[n,...r]=e,o=this.get(n,!0);if(o instanceof c)o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,s(this.schema,r,t))}}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(r instanceof c)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,o=this.get(n,!0);return 0===r.length?!t&&o instanceof i?o.value:o:o instanceof c?o.getIn(r,t):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;let t=e.value;return null==t||t instanceof i&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return r instanceof c&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(e instanceof c)e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,s(this.schema,r,t))}}}toJSON(){return null}toString(e,r,o,i){let{blockItem:s,flowChars:a,isMap:l,itemIndent:u}=r,{indent:f,indentStep:d,stringify:h}=e,p=this.type===t.Type.FLOW_MAP||this.type===t.Type.FLOW_SEQ||e.inFlow;p&&(u+=d);let m=l&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:m,indent:u,inFlow:p,type:null});let g,y=!1,v=!1,b=this.items.reduce(((t,r,o)=>{let i;r&&(!y&&r.spaceBefore&&t.push({type:"comment",str:""}),r.commentBefore&&r.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})})),r.comment&&(i=r.comment),p&&(!y&&r.spaceBefore||r.commentBefore||r.comment||r.key&&(r.key.commentBefore||r.key.comment)||r.value&&(r.value.commentBefore||r.value.comment))&&(v=!0)),y=!1;let s=h(r,e,(()=>i=null),(()=>y=!0));return p&&!v&&s.includes("\n")&&(v=!0),p&&oe.str));if(v||n.reduce(((e,t)=>e+t.length+2),2)>c.maxFlowStringSingleLineLength){g=e;for(let e of n)g+=e?`\n${d}${f}${e}`:"\n";g+=`\n${f}${t}`}else g=`${e} ${n.join(" ")} ${t}`}else{let e=b.map(s);g=e.shift();for(let t of e)g+=t?`\n${f}${t}`:"\n"}return this.comment?(g+="\n"+this.comment.replace(/^/gm,`${f}#`),o&&o()):y&&i&&i(),g}};function l(e){let t=e instanceof i?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}t._defineProperty(c,"maxFlowStringSingleLineLength",60);var f=class extends c{add(e){this.items.push(e)}delete(e){let t=l(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=l(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&r instanceof i?r.value:r}has(e){let t=l(e);return"number"==typeof t&&t"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}},d=class extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(),this.key=e,this.value=t,this.type=d.Type.PAIR}get commentBefore(){return this.key instanceof r?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new i(null)),!(this.key instanceof r))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}addToJSMap(e,t){let n=o(this.key,"",e);if(t instanceof Map){let r=o(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{let i=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof r&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),s=o(this.value,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}return t}toJSON(e,t){let n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,o,s){if(!e||!e.doc)return JSON.stringify(this);let{indent:a,indentSeq:l,simpleKeys:u}=e.doc.options,{key:d,value:h}=this,p=d instanceof r&&d.comment;if(u){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof c)throw new Error("With simple keys, collection cannot be used as a key value")}let m=!u&&(!d||p||(d instanceof r?d instanceof c||d.type===t.Type.BLOCK_FOLDED||d.type===t.Type.BLOCK_LITERAL:"object"==typeof d)),{doc:g,indent:y,indentStep:v,stringify:b}=e;e=Object.assign({},e,{implicitKey:!m,indent:y+v});let S=!1,w=b(d,e,(()=>p=null),(()=>S=!0));if(w=n(w,e.indent,p),!m&&w.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(e.allNullValues&&!u)return this.comment?(w=n(w,e.indent,this.comment),o&&o()):S&&!p&&s&&s(),e.inFlow&&!m?w:`? ${w}`;w=m?`? ${w}\n${y}:`:`${w}:`,this.comment&&(w=n(w,e.indent,this.comment),o&&o());let _="",k=null;h instanceof r?(h.spaceBefore&&(_="\n"),h.commentBefore&&(_+=`\n${h.commentBefore.replace(/^/gm,`${e.indent}#`)}`),k=h.comment):h&&"object"==typeof h&&(h=g.schema.createNode(h,!0)),e.implicitKey=!1,!m&&!this.comment&&h instanceof i&&(e.indentAtStart=w.length+1),S=!1,!l&&a>=2&&!e.inFlow&&!m&&h instanceof f&&h.type!==t.Type.FLOW_SEQ&&!h.tag&&!g.anchors.getName(h)&&(e.indent=e.indent.substr(2));let E=b(h,e,(()=>k=null),(()=>S=!0)),x=" ";return _||this.comment?x=`${_}\n${e.indent}`:!m&&h instanceof c?(!("["===E[0]||"{"===E[0])||E.includes("\n"))&&(x=`\n${e.indent}`):"\n"===E[0]&&(x=""),S&&!k&&s&&s(),n(w+x+E,e.indent,k)}};t._defineProperty(d,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var h=(e,t)=>{if(e instanceof p){let n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof c){let n=0;for(let r of e.items){let e=h(r,t);e>n&&(n=e)}return n}if(e instanceof d){let n=h(e.key,t),r=h(e.value,t);return Math.max(n,r)}return 1},p=class extends r{static stringify(e,t){let{range:n,source:r}=e,{anchors:o,doc:i,implicitKey:s,inStringifyKey:a}=t,c=Object.keys(o).find((e=>o[e]===r));if(!c&&a&&(c=i.anchors.getName(r)||i.anchors.newName()),c)return`*${c}${s?" ":""}`;let l=i.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${l} [${n}]`)}constructor(e){super(),this.source=e,this.type=t.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return o(this.source,e,n);let{anchors:r,maxAliasCount:i}=n,s=r.get(this.source);if(!s||void 0===s.res){let e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=h(this.source,r)),s.count*s.aliasCount>i)){let e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return s.res}toString(e){return p.stringify(this,e)}};function m(e,t){let n=t instanceof i?t.value:t;for(let r of e)if(r instanceof d&&(r.key===t||r.key===n||r.key&&r.key.value===n))return r}t._defineProperty(p,"default",!0);var g=class extends c{add(e,t){e?e instanceof d||(e=new d(e.key||e,e.value)):e=new d(e);let n=m(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){let t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){let t=m(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=m(this.items,e),r=n&&n.value;return!t&&r instanceof i?r.value:r}has(e){return!!m(this.items,e)}set(e,t){this.add(new d(e,t),!0)}toJSON(e,t,n){let r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(let e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!(e instanceof d))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}},y="<<",v=class extends d{constructor(e){if(e instanceof d){let t=e.value;t instanceof f||(t=new f,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new i(y),new f);this.type=d.Type.MERGE_PAIR}addToJSMap(e,t){for(let{source:n}of this.value.items){if(!(n instanceof g))throw new Error("Merge sources must be maps");let r=n.toJSON(null,e,Map);for(let[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){let n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];let r=super.toString(e,t);return this.value=n,r}},b={defaultType:t.Type.BLOCK_LITERAL,lineWidth:76},S={defaultType:t.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function w(e,t,n){for(let{format:n,test:r,resolve:o}of t)if(r){let t=e.match(r);if(t){let e=o.apply(null,t);return e instanceof i||(e=new i(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new i(e)}var _="flow",k="block",E="quoted",x=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function C(e,t,n,r){let{indentAtStart:o,lineWidth:i=80,minContentWidth:s=20,onFold:a,onOverflow:c}=r;if(!i||i<0)return e;let l=Math.max(1+s,1+i-t.length);if(e.length<=l)return e;let u=[],f={},d=i-t.length;"number"==typeof o&&(o>i-Math.max(2,s)?u.push(0):d=i-o);let h,p,m=!1,g=-1,y=-1,v=-1;n===k&&(g=x(e,g),-1!==g&&(d=g+l));for(let t;t=e[g+=1];){if(n===E&&"\\"===t){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}v=g}if("\n"===t)n===k&&(g=x(e,g)),d=g+l,h=void 0;else{if(" "===t&&p&&" "!==p&&"\n"!==p&&"\t"!==p){let t=e[g+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(h=g)}if(g>=d)if(h)u.push(h),d=h+l,h=void 0;else if(n===E){for(;" "===p||"\t"===p;)p=t,t=e[g+=1],m=!0;let n=g>v+1?g-2:y-1;if(f[n])return e;u.push(n),f[n]=!0,d=n+l,h=void 0}else m=!0}p=t}if(m&&c&&c(),0===u.length)return e;a&&a();let b=e.slice(0,u[0]);for(let r=0;r{let{indentAtStart:t}=e;return t?Object.assign({indentAtStart:t},S.fold):S.fold},O=e=>/^(%|---|\.\.\.)/m.test(e);function A(e,t){let{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:o}=S.doubleQuoted,i=JSON.stringify(e);if(r)return i;let s=t.indent||(O(e)?" ":""),a="",c=0;for(let e=0,t=i[e];t;t=i[++e])if(" "===t&&"\\"===i[e+1]&&"n"===i[e+2]&&(a+=i.slice(c,e)+"\\ ",e+=1,c=e,t="\\"),"\\"===t)switch(i[e+1]){case"u":{a+=i.slice(c,e);let t=i.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=i.substr(e,6)}e+=5,c=e+1}break;case"n":if(n||'"'===i[e+2]||i.lengthr)return!0;if(n=t+1,o-n<=r)return!1}return!0}(a,S.fold.lineWidth,c.length)),f=u?"|":">";if(!a)return f+"\n";let d="",h="";if(a=a.replace(/[\n\t ]*$/,(e=>{let t=e.indexOf("\n");return-1===t?f+="-":(a===e||t!==e.length-1)&&(f+="+",o&&o()),h=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(f+=l);let t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")})),h&&(h=h.replace(/\n+(?!\n|$)/g,`$&${c}`)),d&&(d=d.replace(/\n+/g,`$&${c}`)),i&&(f+=" #"+i.replace(/ ?[\r\n]+/g," "),r&&r()),!a)return`${f}${l}\n${c}${h}`;if(u)return a=a.replace(/\n+/g,`$&${c}`),`${f}\n${c}${d}${a}${h}`;a=a.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let p=C(`${d}${a}${h}`,c,k,S.fold);return`${f}\n${c}${p}`}function R(e,n){let r,o,i;switch(n.type){case t.Type.FLOW_MAP:r="}",o="flow map";break;case t.Type.FLOW_SEQ:r="]",o="flow sequence";break;default:return void e.push(new t.YAMLSemanticError(n,"Not a flow collection!?"))}for(let e=n.items.length-1;e>=0;--e){let r=n.items[e];if(!r||r.type!==t.Type.COMMENT){i=r;break}}if(i&&i.char!==r){let s,a=`Expected ${o} to end with ${r}`;"number"==typeof i.offset?(s=new t.YAMLSemanticError(n,a),s.offset=i.offset+1):(s=new t.YAMLSemanticError(i,a),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),e.push(s)}}function M(e,n){let r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}}function I(e,n){let r=String(n),o=r.substr(0,8)+"..."+r.substr(-8);return new t.YAMLSemanticError(e,`The "${o}" key is too long`)}function j(e,t){for(let{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?(n||!t.commentBefore)&&(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}function $(e,t){let n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function D(e,n){let{tag:r,type:o}=n,i=!1;if(r){let{handle:o,suffix:s,verbatim:a}=r;if(a){if("!"!==a&&"!!"!==a)return a;let r=`Verbatim tags aren't resolved, so ${a} is invalid.`;e.errors.push(new t.YAMLSemanticError(n,r))}else if("!"!==o||s)try{return function(e,n){let{handle:r,suffix:o}=n.tag,i=e.tagPrefixes.find((e=>e.handle===r));if(!i){let o=e.getDefaults().tagPrefixes;if(o&&(i=o.find((e=>e.handle===r))),!i)throw new t.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!o)throw new t.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if("!"===r&&"1.0"===(e.version||e.options.version)){if("^"===o[0])return e.warnings.push(new t.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),o;if(/[:/]/.test(o)){let e=o.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${o}`}}return i.prefix+decodeURIComponent(o)}(e,n)}catch(t){e.errors.push(t)}else i=!0}switch(o){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:case t.Type.QUOTE_DOUBLE:case t.Type.QUOTE_SINGLE:return t.defaultTags.STR;case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;case t.Type.PLAIN:return i?t.defaultTags.STR:null;default:return null}}function L(e,t,n){let{tags:r}=e.schema,o=[];for(let s of r)if(s.tag===n){if(!s.test){let n=s.resolve(e,t);return n instanceof c?n:new i(n)}o.push(s)}let s=$(e,t);return"string"==typeof s&&o.length>0?w(s,o,r.scalarFallback):null}function F(e,n,r){try{let t=L(e,n,r);if(t)return r&&n.tag&&(t.tag=r),t}catch(t){return t.source||(t.source=n),e.errors.push(t),null}try{let o=function(e){let{type:n}=e;switch(n){case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;default:return t.defaultTags.STR}}(n);if(!o)throw new Error(`The tag ${r} is unavailable`);let i=`The tag ${r} is unavailable, falling back to ${o}`;e.warnings.push(new t.YAMLWarning(n,i));let s=L(e,n,o);return s.tag=r,s}catch(r){let o=new t.YAMLReferenceError(n,r.message);return o.stack=r.stack,e.errors.push(o),null}}var q=e=>{if(!e)return!1;let{type:n}=e;return n===t.Type.MAP_KEY||n===t.Type.MAP_VALUE||n===t.Type.SEQ_ITEM};function V(e,n){if(!n)return null;n.error&&e.errors.push(n.error);let{comments:r,hasAnchor:o,hasTag:i}=function(e,n){let r={before:[],after:[]},o=!1,i=!1,s=q(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(let{start:a,end:c}of s)switch(n.context.src[a]){case t.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(a)){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}let{header:o,valueRange:i}=n;(i&&(a>i.start||o&&a>o.start)?r.after:r.before).push(n.context.src.slice(a+1,c));break}case t.Char.ANCHOR:if(o){let r="A node can have at most one anchor";e.push(new t.YAMLSemanticError(n,r))}o=!0;break;case t.Char.TAG:if(i){let r="A node can have at most one tag";e.push(new t.YAMLSemanticError(n,r))}i=!0}return{comments:r,hasAnchor:o,hasTag:i}}(e.errors,n);if(o){let{anchors:t}=e,r=n.anchor,o=t.getNode(r);o&&(t.map[t.newName(r)]=o),t.map[r]=n}if(n.type===t.Type.ALIAS&&(o||i)){let r="An alias node must not specify any properties";e.errors.push(new t.YAMLSemanticError(n,r))}let s=function(e,n){let{anchors:r,errors:o,schema:i}=e;if(n.type===t.Type.ALIAS){let e=n.rawValue,i=r.getNode(e);if(!i){let r=`Aliased anchor not found: ${e}`;return o.push(new t.YAMLReferenceError(n,r)),null}let s=new p(i);return r._cstAliases.push(s),s}let s=D(e,n);if(s)return F(e,n,s);if(n.type!==t.Type.PLAIN){let e=`Failed to resolve ${n.type} node here`;return o.push(new t.YAMLSyntaxError(n,e)),null}try{return w($(e,n),i.tags,i.tags.scalarFallback)}catch(e){return e.source||(e.source=n),o.push(e),null}}(e,n);if(s){s.range=[n.range.start,n.range.end],e.options.keepCstNodes&&(s.cstNode=n),e.options.keepNodeTypes&&(s.type=n.type);let t=r.before.join("\n");t&&(s.commentBefore=s.commentBefore?`${s.commentBefore}\n${t}`:t);let o=r.after.join("\n");o&&(s.comment=s.comment?`${s.comment}\n${o}`:o)}return n.resolved=s}var U=e=>{let{context:{lineStart:n,node:r,src:o},props:i}=e;if(0===i.length)return!1;let{start:s}=i[0];if(r&&s>r.valueRange.start||o[s]!==t.Char.COMMENT)return!1;for(let e=n;e0){o=new t.PlainValue(t.Type.PLAIN,[]),o.context={parent:c,src:c.context.src};let e=c.range.start+1;if(o.range={start:e,end:e},o.valueRange={start:e,end:e},"number"==typeof c.range.origStart){let e=c.range.origStart+1;o.range.origStart=o.range.origEnd=e,o.valueRange.origStart=o.valueRange.origEnd=e}}let a=new d(r,V(e,o));W(c,a),i.push(a),r&&"number"==typeof s&&c.range.start>s+1024&&e.errors.push(I(n,r)),r=void 0,s=null}break;default:void 0!==r&&i.push(new d(r)),r=V(e,c),s=c.range.start,c.error&&e.errors.push(c.error);e:for(let r=a+1;;++r){let o=n.items[r];switch(o&&o.type){case t.Type.BLANK_LINE:case t.Type.COMMENT:continue e;case t.Type.MAP_VALUE:break e;default:{let n="Implicit map keys need to be followed by map values";e.errors.push(new t.YAMLSemanticError(c,n));break e}}}if(c.valueRangeContainsNewline){let n="Implicit map keys need to be on a single line";e.errors.push(new t.YAMLSemanticError(c,n))}}}return void 0!==r&&i.push(new d(r)),{comments:o,items:i}}(e,n),i=new g;i.items=o,j(i,r);let s=!1;for(let r=0;r{if(e instanceof p){let{type:n}=e.source;return n!==t.Type.MAP&&n!==t.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&e.errors.push(new t.YAMLSemanticError(n,s))}else for(let s=r+1;sa+1024&&e.errors.push(I(n,r));let{src:i}=l.context;for(let n=a;ne instanceof d&&e.key instanceof c))){let r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new t.YAMLWarning(n,r))}return n.resolved=i,i},e.resolveString=$,e.strOptions=S,e.stringifyNumber=function(e){let{format:t,minFractionDigits:n,tag:r,value:o}=e;if("bigint"==typeof o)return String(o);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(o);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let t=n-(i.length-e-1);for(;t-- >0;)i+="0"}return i},e.stringifyString=function(e,n,r,o){let{defaultType:i}=S,{implicitKey:s,inFlow:a}=n,{type:c,value:l}=e;"string"!=typeof l&&(l=String(l),e=Object.assign({},e,{value:l}));let u=i=>{switch(i){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return N(e,n,r,o);case t.Type.QUOTE_DOUBLE:return A(l,n);case t.Type.QUOTE_SINGLE:return P(l,n);case t.Type.PLAIN:return function(e,n,r,o){let{comment:i,type:s,value:a}=e,{actualString:c,implicitKey:l,indent:u,inFlow:f}=n;if(l&&/[\n[\]{},]/.test(a)||f&&/[[\]{},]/.test(a))return A(a,n);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||f||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?P(a,n):A(a,n):N(e,n,r,o);if(!l&&!f&&s!==t.Type.PLAIN&&-1!==a.indexOf("\n"))return N(e,n,r,o);if(""===u&&O(a))return n.forceBlockIndent=!0,N(e,n,r,o);let d=a.replace(/\n+/g,`$&\n${u}`);if(c){let{tags:e}=n.doc.schema;if("string"!=typeof w(d,e,e.scalarFallback).value)return A(a,n)}let h=l?d:C(d,u,_,T(n));return!i||f||-1===h.indexOf("\n")&&-1===i.indexOf("\n")?h:(r&&r(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(h,u,i))}(e,n,r,o);default:return null}};(c!==t.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)||(s||a)&&(c===t.Type.BLOCK_FOLDED||c===t.Type.BLOCK_LITERAL))&&(c=t.Type.QUOTE_DOUBLE);let f=u(c);if(null===f&&(f=u(i),null===f))throw new Error(`Unsupported default string type ${i}`);return f},e.toJSON=o}}),dt=c({"node_modules/yaml/dist/warnings-1000a372.js"(e){u();var t=lt(),r=ft(),o={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,n)=>{let o=r.resolveString(e,n);if("function"==typeof Buffer)return Buffer.from(o,"base64");if("function"==typeof atob){let e=atob(o.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n{let s,{comment:a,type:c,value:l}=e;if("function"==typeof Buffer)s=l instanceof Buffer?l.toString("base64"):Buffer.from(l.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t1){let e="Each pair must have its own sequence indicator";throw new t.YAMLSemanticError(n,e)}let e=i.items[0]||new r.Pair;i.commentBefore&&(e.commentBefore=e.commentBefore?`${i.commentBefore}\n${e.commentBefore}`:i.commentBefore),i.comment&&(e.comment=e.comment?`${i.comment}\n${e.comment}`:i.comment),i=e}o.items[e]=i instanceof r.Pair?i:new r.Pair(i)}}return o}function s(e,t,n){let o=new r.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";for(let r of t){let t,i;if(Array.isArray(r)){if(2!==r.length)throw new TypeError(`Expected [key, value] tuple: ${r}`);t=r[0],i=r[1]}else if(r&&r instanceof Object){let e=Object.keys(r);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${r}`);t=e[0],i=r[t]}else t=r;let s=e.createPair(t,i,n);o.items.push(s)}return o}var a={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:i,createNode:s},c=class extends r.YAMLSeq{constructor(){super(),t._defineProperty(this,"add",r.YAMLMap.prototype.add.bind(this)),t._defineProperty(this,"delete",r.YAMLMap.prototype.delete.bind(this)),t._defineProperty(this,"get",r.YAMLMap.prototype.get.bind(this)),t._defineProperty(this,"has",r.YAMLMap.prototype.has.bind(this)),t._defineProperty(this,"set",r.YAMLMap.prototype.set.bind(this)),this.tag=c.tag}toJSON(e,t){let n=new Map;t&&t.onCreate&&t.onCreate(n);for(let e of this.items){let o,i;if(e instanceof r.Pair?(o=r.toJSON(e.key,"",t),i=r.toJSON(e.value,o,t)):o=r.toJSON(e,"",t),n.has(o))throw new Error("Ordered maps must not include duplicate keys");n.set(o,i)}return n}};t._defineProperty(c,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,n){let o=i(e,n),s=[];for(let{key:e}of o.items)if(e instanceof r.Scalar){if(s.includes(e.value)){let e="Ordered maps must not include duplicate keys";throw new t.YAMLSemanticError(n,e)}s.push(e.value)}return Object.assign(new c,o)},createNode:function(e,t,n){let r=s(e,t,n),o=new c;return o.items=r.items,o}},f=class extends r.YAMLMap{constructor(){super(),this.tag=f.tag}add(e){let t=e instanceof r.Pair?e:new r.Pair(e);r.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let n=r.findPair(this.items,e);return!t&&n instanceof r.Pair?n.key instanceof r.Scalar?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);let n=r.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new r.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}};t._defineProperty(f,"tag","tag:yaml.org,2002:set");var d={identify:e=>e instanceof Set,nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,n){let o=r.resolveMap(e,n);if(!o.hasAllNullValues())throw new t.YAMLSemanticError(n,"Set items must all have null values");return Object.assign(new f,o)},createNode:function(e,t,n){let r=new f;for(let o of t)r.items.push(e.createPair(o,null,n));return r}},h=(e,t)=>{let n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},p=e=>{let{value:t}=e;if(isNaN(t)||!isFinite(t))return r.stringifyNumber(t);let n="";t<0&&(n="-",t=Math.abs(t));let o=[t%60];return t<60?o.unshift(0):(t=Math.round((t-o[0])/60),o.unshift(t%60),t>=60&&(t=Math.round((t-o[0])/60),o.unshift(t))),n+o.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>h(t,n.replace(/_/g,"")),stringify:p},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>h(t,n.replace(/_/g,"")),stringify:p},y={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,o,i,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(t,n-1,r,o||0,i||0,s||0,a||0);if(c&&"Z"!==c){let e=h(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:e=>{let{value:t}=e;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function v(e){let t=typeof n<"u"&&n.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function b(e,t){if(v(!1)){let r=typeof n<"u"&&n.emitWarning;r?r(e,t):console.warn(t?`${t}: ${e}`:e)}}var S={};e.binary=o,e.floatTime=g,e.intTime=m,e.omap=l,e.pairs=a,e.set=d,e.timestamp=y,e.warn=b,e.warnFileDeprecation=function(e){v(!0)&&b(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")},e.warnOptionDeprecation=function(e,t){if(!S[e]&&v(!0)){S[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",b(n,"DeprecationWarning")}}}}),ht=c({"node_modules/yaml/dist/Schema-88e323a7.js"(e){u();var t=lt(),n=ft(),r=dt(),o={createNode:function(e,t,r){let o=new n.YAMLMap(e);if(t instanceof Map)for(let[n,i]of t)o.items.push(e.createPair(n,i,r));else if(t&&"object"==typeof t)for(let n of Object.keys(t))o.items.push(e.createPair(n,t[n],r));return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o},default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:n.resolveMap},i={createNode:function(e,t,r){let o=new n.YAMLSeq(e);if(t&&t[Symbol.iterator])for(let n of t){let t=e.createNode(n,r.wrapScalars,null,r);o.items.push(t)}return o},default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:n.resolveSeq},s={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:(e,t,r,o)=>(t=Object.assign({actualString:!0},t),n.stringifyString(e,t,r,o)),options:n.strOptions},a=[o,i,s],c=e=>"bigint"==typeof e||Number.isInteger(e),l=(e,t,r)=>n.intOptions.asBigInt?BigInt(e):parseInt(t,r);function f(e,t,r){let{value:o}=e;return c(o)&&o>=0?r+o.toString(t):n.stringifyNumber(e)}var d={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},h={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:n.boolOptions,stringify:e=>{let{value:t}=e;return t?n.boolOptions.trueStr:n.boolOptions.falseStr}},p={identify:e=>c(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>l(e,t,8),options:n.intOptions,stringify:e=>f(e,8,"0o")},m={identify:c,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>l(e,e,10),options:n.intOptions,stringify:n.stringifyNumber},g={identify:e=>c(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>l(e,t,16),options:n.intOptions,stringify:e=>f(e,16,"0x")},y={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},v={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:e=>{let{value:t}=e;return Number(t).toExponential()}},b={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,r){let o=t||r,i=new n.Scalar(parseFloat(e));return o&&"0"===o[o.length-1]&&(i.minFractionDigits=o.length),i},stringify:n.stringifyNumber},S=a.concat([d,h,p,m,g,y,v,b]),w=e=>"bigint"==typeof e||Number.isInteger(e),_=e=>{let{value:t}=e;return JSON.stringify(t)},k=[o,i,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:_},{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:_},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:_},{identify:w,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>n.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:e=>{let{value:t}=e;return w(t)?t.toString():JSON.stringify(t)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:_}];k.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};var E=e=>{let{value:t}=e;return t?n.boolOptions.trueStr:n.boolOptions.falseStr},x=e=>"bigint"==typeof e||Number.isInteger(e);function C(e,t,r){let o=t.replace(/_/g,"");if(n.intOptions.asBigInt){switch(r){case 2:o=`0b${o}`;break;case 8:o=`0o${o}`;break;case 16:o=`0x${o}`}let t=BigInt(o);return"-"===e?BigInt(-1)*t:t}let i=parseInt(o,r);return"-"===e?-1*i:i}function T(e,t,r){let{value:o}=e;if(x(o)){let e=o.toString(t);return o<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}var O=a.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:n.boolOptions,stringify:E},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:n.boolOptions,stringify:E},{identify:x,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>C(t,n,2),stringify:e=>T(e,2,"0b")},{identify:x,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>C(t,n,8),stringify:e=>T(e,8,"0")},{identify:x,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>C(t,n,10),stringify:n.stringifyNumber},{identify:x,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>C(t,n,16),stringify:e=>T(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:e=>{let{value:t}=e;return Number(t).toExponential()}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){let r=new n.Scalar(parseFloat(e.replace(/_/g,"")));if(t){let e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:n.stringifyNumber}],r.binary,r.omap,r.pairs,r.set,r.intTime,r.floatTime,r.timestamp),A={core:S,failsafe:a,json:k,yaml11:O},P={binary:r.binary,bool:h,float:b,floatExp:v,floatNaN:y,floatTime:r.floatTime,int:m,intHex:g,intOct:p,intTime:r.intTime,map:o,null:d,omap:r.omap,pairs:r.pairs,seq:i,set:r.set,timestamp:r.timestamp};function N(e,t,r){if(e instanceof n.Node)return e;let{defaultPrefix:s,onTagObj:a,prevObjects:c,schema:l,wrapScalars:u}=r;t&&t.startsWith("!!")&&(t=s+t.slice(2));let f=function(e,t,n){if(t){let e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,t,l.tags);if(!f){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return u?new n.Scalar(e):e;f=e instanceof Map?o:e[Symbol.iterator]?i:o}a&&(a(f),delete r.onTagObj);let d={value:void 0,node:void 0};if(e&&"object"==typeof e&&c){let t=c.get(e);if(t){let e=new n.Alias(t);return r.aliasNodes.push(e),e}d.value=e,c.set(e,d)}return d.node=f.createNode?f.createNode(r.schema,e,r):u?new n.Scalar(e):e,t&&d.node instanceof n.Node&&(d.node.tag=t),d.node}var R=(e,t)=>e.keyt.key?1:0,M=class{constructor(e){let{customTags:t,merge:n,schema:o,sortMapEntries:i,tags:s}=e;this.merge=!!n,this.name=o,this.sortMapEntries=!0===i?R:i||null,!t&&s&&r.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let o=e[r.replace(/\W/g,"")];if(!o){let t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(let e of n)o=o.concat(e);else"function"==typeof n&&(o=n(o.slice()));for(let e=0;eJSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}o[e]=r}}return o}(A,P,t||s,o)}createNode(e,t,n,r){let o={defaultPrefix:M.defaultPrefix,schema:this,wrapScalars:t};return N(e,n,r?Object.assign(r,o):o)}createPair(e,t,r){r||(r={wrapScalars:!0});let o=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(t,r.wrapScalars,null,r);return new n.Pair(o,i)}};t._defineProperty(M,"defaultPrefix",t.defaultTagPrefix),t._defineProperty(M,"defaultTags",t.defaultTags),e.Schema=M}}),pt=c({"node_modules/yaml/dist/Document-9b4560a1.js"(e){u();var t=lt(),n=ft(),r=ht(),o={get binary(){return n.binaryOptions},set binary(e){Object.assign(n.binaryOptions,e)},get bool(){return n.boolOptions},set bool(e){Object.assign(n.boolOptions,e)},get int(){return n.intOptions},set int(e){Object.assign(n.intOptions,e)},get null(){return n.nullOptions},set null(e){Object.assign(n.nullOptions,e)},get str(){return n.strOptions},set str(e){Object.assign(n.strOptions,e)}},i={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:t.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]}};function s(e,t){if("1.0"===(e.version||e.options.version)){let e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];let n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){let r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;let r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function a(e,t,r,o){let i,{anchors:a,schema:c}=t.doc;if(!(e instanceof n.Node)){let t={aliasNodes:[],onTagObj:e=>i=e,prevObjects:new Map};e=c.createNode(e,!0,null,t);for(let e of t.aliasNodes){e.source=e.source.node;let t=a.getName(e.source);t||(t=a.newName(),a.map[t]=e.source)}}if(e instanceof n.Pair)return e.toString(t,r,o);i||(i=function(e,t){if(t instanceof n.Alias)return n.Alias;if(t.tag){let n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let r,o;if(t instanceof n.Scalar){o=t.value;let n=e.filter((e=>e.identify&&e.identify(o)||e.class&&o instanceof e.class));r=n.find((e=>e.format===t.format))||n.find((e=>!e.format))}else o=t,r=e.find((e=>e.nodeClass&&o instanceof e.nodeClass));if(!r){let e=o&&o.constructor?o.constructor.name:typeof o;throw new Error(`Tag not resolved for ${e} value`)}return r}(c.tags,e));let l=function(e,t,n){let{anchors:r,doc:o}=n,i=[],a=o.anchors.getName(e);return a&&(r[a]=e,i.push(`&${a}`)),e.tag?i.push(s(o,e.tag)):t.default||i.push(s(o,t.tag)),i.join(" ")}(e,i,t);l.length>0&&(t.indentAtStart=(t.indentAtStart||0)+l.length+1);let u="function"==typeof i.stringify?i.stringify(e,t,r,o):e instanceof n.Scalar?n.stringifyString(e,t,r,o):e.toString(t,r,o);return l?e instanceof n.Scalar||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${t.indent}${u}`:u}var c=class{static validAnchorNode(e){return e instanceof n.Scalar||e instanceof n.YAMLSeq||e instanceof n.YAMLMap}constructor(e){t._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.Alias(e)}createMergePair(){let e=new n.Merge;for(var t=arguments.length,r=new Array(t),o=0;o{if(e instanceof n.Alias){if(e.source instanceof n.YAMLMap)return e}else if(e instanceof n.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),e}getName(e){let{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let t=Object.keys(this.map);for(let n=1;;++n){let r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){let{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!c.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");let{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}},l=(e,t)=>{if(e&&"object"==typeof e){let{tag:r}=e;e instanceof n.Collection?(r&&(t[r]=!0),e.items.forEach((e=>l(e,t)))):e instanceof n.Pair?(l(e.key,t),l(e.value,t)):e instanceof n.Scalar&&r&&(t[r]=!0)}return t};function f(e,n){let{tagPrefixes:r}=e,[o,i]=n.parameters;if(!o||!i){let e="Insufficient parameters given for %TAG directive";throw new t.YAMLSemanticError(n,e)}if(r.some((e=>e.handle===o))){let e="The %TAG directive must only be given at most once per handle in the same document.";throw new t.YAMLSemanticError(n,e)}return{handle:o,prefix:i}}function d(e,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){let e="Insufficient parameters given for %YAML directive";throw new t.YAMLSemanticError(n,e)}if(!i[r]){let o=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${r}`;e.warnings.push(new t.YAMLWarning(n,o))}return r}function h(e){if(e instanceof n.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var p=class{constructor(e){this.anchors=new c(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return h(this.contents),this.contents.add(e)}addIn(e,t){h(this.contents),this.contents.addIn(e,t)}delete(e){return h(this.contents),this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(h(this.contents),this.contents.deleteIn(e))}getDefaults(){return p.defaults[this.version]||p.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof n.Collection?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof n.Collection&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof n.Collection&&this.contents.hasIn(e)}set(e,t){h(this.contents),this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:(h(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);let n=Object.assign({},this.getDefaults(),this.options);this.schema=new r.Schema(n)}parse(e,r){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:o=[],contents:i=[],directivesEndMarker:s,error:a,valueRange:c}=e;if(a&&(a.source||(a.source=this),this.errors.push(a)),function(e,n,r){let o=[],i=!1;for(let r of n){let{comment:n,name:s}=r;switch(s){case"TAG":try{e.tagPrefixes.push(f(e,r))}catch(t){e.errors.push(t)}i=!0;break;case"YAML":case"YAML:1.0":if(e.version){let n="The %YAML directive must only be given at most once per document.";e.errors.push(new t.YAMLSemanticError(r,n))}try{e.version=d(e,r)}catch(t){e.errors.push(t)}i=!0;break;default:if(s){let n=`YAML only supports %TAG and %YAML directives, and not %${s}`;e.warnings.push(new t.YAMLWarning(r,n))}}n&&o.push(n)}if(r&&!i&&"1.1"===(e.version||r.version||e.options.version)){let t=e=>{let{handle:t,prefix:n}=e;return{handle:t,prefix:n}};e.tagPrefixes=r.tagPrefixes.map(t),e.version=r.version}e.commentBefore=o.join("\n")||null}(this,o,r),s&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,r){let o,i={before:[],after:[]},s=!1;for(let a of r)if(a.valueRange){if(void 0!==o){let n="Document contains trailing content not separated by a ... or --- line";e.errors.push(new t.YAMLSyntaxError(a,n));break}let r=n.resolveNode(e,a);s&&(r.spaceBefore=!0,s=!1),o=r}else null!==a.comment?(void 0===o?i.before:i.after).push(a.comment):a.type===t.Type.BLANK_LINE&&(s=!0,void 0===o&&i.before.length>0&&!e.commentBefore&&(e.commentBefore=i.before.join("\n"),i.before=[]));if(e.contents=o||null,o){let t=i.before.join("\n");if(t){let e=o instanceof n.Collection&&o.items[0]?o.items[0]:o;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=i.after.join("\n")||null}else e.comment=i.before.concat(i.after).join("\n")||null}(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){for(let e of this.errors)e instanceof t.YAMLError&&e.makePretty();for(let e of this.warnings)e instanceof t.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=this.contents,Object.keys(l(e,{}))).filter((e=>0!==e.indexOf(r.Schema.defaultPrefix)));var e}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){let n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){let{keepBlobsInJSON:r,mapAsMap:o,maxAliasCount:i}=this.options,s=r&&("string"!=typeof e||!(this.contents instanceof n.Scalar)),c={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!o,maxAliasCount:i,stringify:a},l=Object.keys(this.anchors.map);l.length>0&&(c.anchors=new Map(l.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));let u=n.toJSON(this.contents,e,c);if("function"==typeof t&&c.anchors)for(let{count:e,res:n}of c.anchors.values())t(n,e);return u}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();let t=[],r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),r=!0}let o=this.listNonDefaultTags();this.tagPrefixes.forEach((e=>{let{handle:n,prefix:i}=e;o.some((e=>0===e.indexOf(i)))&&(t.push(`%TAG ${n} ${i}`),r=!0)})),(r||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:a},s=!1,c=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,c=this.contents.comment);let e=c?null:()=>s=!0,o=a(this.contents,i,(()=>c=null),e);t.push(n.addComment(o,"",c))}else void 0!==this.contents&&t.push(a(this.contents,i));return this.comment&&((!s||c)&&""!==t[t.length-1]&&t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}};t._defineProperty(p,"defaults",i),e.Document=p,e.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},e.scalarOptions=o}}),mt=c({"node_modules/yaml/dist/index.js"(e){u();var t=ut(),n=pt(),r=ht(),o=lt(),i=dt();ft();var s=class extends n.Document{constructor(e){super(Object.assign({},n.defaultOptions,e))}};function a(e,n){let r=t.parse(e),i=new s(n).parse(r[0]);if(r.length>1){let e="Source contains multiple documents; please use YAML.parseAllDocuments()";i.errors.unshift(new o.YAMLSemanticError(r[1],e))}return i}var c={createNode:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2?arguments[2]:void 0;void 0===o&&"string"==typeof t&&(o=t,t=!0);let i=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new r.Schema(i).createNode(e,t,o)},defaultOptions:n.defaultOptions,Document:s,parse:function(e,t){let n=a(e,t);if(n.warnings.forEach((e=>i.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,n){let r,o=[];for(let i of t.parse(e)){let e=new s(n);e.parse(i,r),o.push(e),r=e}return o},parseCST:t.parse,parseDocument:a,scalarOptions:n.scalarOptions,stringify:function(e,t){let n=new s(t);return n.contents=e,String(n)}};e.YAML=c}}),gt=c({"node_modules/yaml/index.js"(e,t){u(),t.exports=mt().YAML}}),yt=c({"node_modules/yaml/dist/util.js"(e){u();var t=ft(),n=lt();e.findPair=t.findPair,e.parseMap=t.resolveMap,e.parseSeq=t.resolveSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.toJSON=t.toJSON,e.Type=n.Type,e.YAMLError=n.YAMLError,e.YAMLReferenceError=n.YAMLReferenceError,e.YAMLSemanticError=n.YAMLSemanticError,e.YAMLSyntaxError=n.YAMLSyntaxError,e.YAMLWarning=n.YAMLWarning}}),vt=c({"node_modules/yaml/util.js"(e){u();var t=yt();e.findPair=t.findPair,e.toJSON=t.toJSON,e.parseMap=t.parseMap,e.parseSeq=t.parseSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.Type=t.Type,e.YAMLError=t.YAMLError,e.YAMLReferenceError=t.YAMLReferenceError,e.YAMLSemanticError=t.YAMLSemanticError,e.YAMLSyntaxError=t.YAMLSyntaxError,e.YAMLWarning=t.YAMLWarning}}),bt=c({"node_modules/yaml-unist-parser/lib/yaml.js"(e){u(),e.__esModule=!0;var t=gt();e.Document=t.Document;var n=gt();e.parseCST=n.parseCST;var r=vt();e.YAMLError=r.YAMLError,e.YAMLSyntaxError=r.YAMLSyntaxError,e.YAMLSemanticError=r.YAMLSemanticError}}),St=c({"node_modules/yaml-unist-parser/lib/parse.js"(e){u(),e.__esModule=!0;var t=q(),n=W(),r=K(),o=H(),i=Ze(),s=ie(),a=tt(),c=rt(),l=ot(),f=it(),d=st(),h=ct(),p=bt();e.parse=function(e){var u=p.parseCST(e);f.addOrigRange(u);for(var m=u.map((function(e){return new p.Document({merge:!1,keepCstNodes:!0}).parse(e)})),g=[],y={text:e,locator:new t.default(e),comments:g,transformOffset:function(e){return c.transformOffset(e,y)},transformRange:function(e){return l.transformRange(e,y)},transformNode:function(e){return i.transformNode(e,y)},transformContent:function(e){return s.transformContent(e,y)}},v=0,b=m;v(t||e((t={exports:{}}).exports,t),t.exports));return n()}()},29369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var r,o,i,s=n(54574);function a(e){return void 0!==e}function c(e,n){return t.isPseudo&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var r=t[0],o=n[r],i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}))}(i=t.MessageFormat||(t.MessageFormat={})).file="file",i.bundle="bundle",i.both="both",(o=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",o.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&a(t.key)&&a(t.comment)}}(r||(r={})),t.isDefined=a,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var n=[],r=2;r{"use strict";var n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},77176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.BundleFormat=t.MessageFormat=void 0;var r=n(71017),o=n(57147),i=n(54574),s=n(29369),a=n(29369);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}});var c,l,u=Object.prototype.toString;function f(e){return"[object String]"===u.call(e)}function d(e){return JSON.parse(o.readFileSync(e,"utf8"))}function h(e){return function(t,n){for(var r,o=[],i=2;i=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: ".concat(new Error("").stack)):(0,s.format)(e[t],o):f(n)?(console.warn("Message ".concat(n," didn't get externalized correctly.")),(0,s.format)(n,o)):void console.error("Broken localize call found. Stacktrace is\n: ".concat(new Error("").stack))}}function p(e,t){return c[e]=t,t}function m(e){try{return function(e){var t=d(r.join(e,"nls.metadata.json")),n=Object.create(null);for(var o in t){var i=t[o];n[o]=i.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function g(e,t){var n;if(!0===l.languagePackSupport&&void 0!==l.cacheRoot&&void 0!==l.languagePackId&&void 0!==l.translationsConfigFile&&void 0!==l.translationsConfig)try{n=function(e,t){var n,i,s,a=r.join(l.cacheRoot,"".concat(e.id,"-").concat(e.hash,".json")),c=!1,u=!1;try{return n=JSON.parse(o.readFileSync(a,{encoding:"utf8",flag:"r"})),i=a,s=new Date,o.utimes(i,s,s,(function(){})),n}catch(e){if("ENOENT"===e.code)u=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: ".concat(e.message,".")),o.unlink(a,(function(e){e&&console.error("Deleting corrupted bundle ".concat(a," failed."))})),c=!0}}if(n=function(e,t){var n=l.translationsConfig[e.id];if(n){var o=d(n).contents,i=d(r.join(t,"nls.metadata.json")),s=Object.create(null);for(var a in i){var c=i[a],u=o["".concat(e.outDir,"/").concat(a)];if(u){for(var h=[],p=0;p0?t.substring(0,i):void 0}if(void 0===t&&(n=r.join(e,"nls.bundle.json"),o.existsSync(n)))return n}(t);if(i)try{return d(i)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=m(t)}return n}function y(e){if(!e)return s.localize;var t=r.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),l.messageFormat===s.MessageFormat.both||l.messageFormat===s.MessageFormat.bundle){var n=function(e){for(var t,n=r.dirname(e);t=r.join(n,"nls.metadata.header.json"),!o.existsSync(t);){var i=r.dirname(n);if(i===n){t=void 0;break}n=i}return t}(e);if(n){var i=r.dirname(n),a=c[i];if(void 0===a)try{var u=JSON.parse(o.readFileSync(n,"utf8"));try{var f=g(u,i);a=p(i,f?{header:u,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),a=p(i,null)}}catch(e){console.error("Failed to read header file",e),a=p(i,null)}if(a){var m=e.substr(i.length+1).replace(/\\/g,"/"),y=a.nlsBundle[m];return void 0===y?(console.error("Messages for file ".concat(e," not found. See console for details.")),function(){return"Messages not found."}):h(y)}}}if(l.messageFormat===s.MessageFormat.both||l.messageFormat===s.MessageFormat.file)try{var v=d(function(e){var t;if(l.cacheLanguageResolution&&t);else{if(s.isPseudo||!l.language)t=".nls.json";else for(var n=l.language;n;){var r=".nls."+n+".json";if(o.existsSync(e+r)){t=r;break}var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(t=".nls.json",n=null)}l.cacheLanguageResolution}return e+t}(e));return Array.isArray(v)?h(v):(0,s.isDefined)(v.messages)&&(0,s.isDefined)(v.keys)?h(v.messages):(console.error("String bundle '".concat(e,"' uses an unsupported format.")),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file ".concat(e)),function(){return"Failed to load message bundle. See console for details."}}function v(e){return e&&(f(e.locale)&&(l.locale=e.locale.toLowerCase(),l.language=l.locale,c=Object.create(null)),void 0!==e.messageFormat&&(l.messageFormat=e.messageFormat),e.bundleFormat===s.BundleFormat.standalone&&!0===l.languagePackSupport&&(l.languagePackSupport=!1)),(0,s.setPseudo)("pseudo"===l.locale),y}!function(){if(l={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:s.MessageFormat.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];f(n)&&(t=n)}if(f(e.locale)&&(l.locale=e.locale.toLowerCase()),void 0===t?l.language=l.locale:"en"!==t&&(l.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(l.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(l.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(l.languagePackId=e._languagePackId),f(e._translationsConfigFile)){l.translationsConfigFile=e._translationsConfigFile;try{l.translationsConfig=d(l.translationsConfigFile)}catch(t){if(e._corruptedFile){var i=r.dirname(e._corruptedFile);o.exists(i,(function(t){t&&o.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}(0,s.setPseudo)("pseudo"===l.locale),c=Object.create(null)}(),t.loadMessageBundle=y,t.config=v,i.default.install(Object.freeze({loadMessageBundle:y,config:v}))},99879:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{URI:()=>o,Utils:()=>i}),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",o=0):o=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,o=47===s.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;ol){if(47===n.charCodeAt(a+f))return n.slice(a+f+1);if(0===f)return n.slice(a+f)}else s>l&&(47===e.charCodeAt(o+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(o+f);if(d!==n.charCodeAt(a+f))break;47===d&&(u=f)}var h="";for(f=o+u+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+u):(a+=u,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!s){o=r+1;break}}else-1===c&&(s=!1,c=r+1),a>=0&&(l===n.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=c))}return o===i?i=c:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){o=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===o&&(i=!1,o=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!i){r=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var s=-1,a=0,c=-1,l=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(o=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===o?-1===s?s=u:1!==f&&(f=1):-1!==s&&(f=-1);else if(!l){a=u+1;break}return-1===s||-1===c||0===f||1===f&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&i?e.slice(1,c):e.slice(a,c)):(0===a&&i?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{var e;if(n.r(o),n.d(o,{URI:()=>p,Utils:()=>x}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){var t=navigator.userAgent;e=t.indexOf("Windows")>=0}var r,i,s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//;function u(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.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(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var f="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=function(){function t(e,t,n,r,o,i){void 0===i&&(i=!1),"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||f),this.query=r||f,this.fragment=o||f,u(this,i))}return t.isUri=function(e){return e instanceof t||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return S(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,o=e.query,i=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===o?o=this.query:null===o&&(o=f),void 0===i?i=this.fragment:null===i&&(i=f),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new g(t,n,r,o,i)},t.parse=function(e,t){void 0===t&&(t=!1);var n=h.exec(e);return n?new g(n[2]||f,E(n[4]||f),E(n[5]||f),E(n[7]||f),E(n[9]||f),t):new g(f,f,f,f,f)},t.file=function(t){var n=f;if(e&&(t=t.replace(/\\/g,d)),t[0]===d&&t[1]===d){var r=t.indexOf(d,2);-1===r?(n=t.substring(2),t=d):(n=t.substring(2,r),t=t.substring(r)||d)}return new g("file",n,t,f,f)},t.from=function(e){var t=new g(e.scheme,e.authority,e.path,e.query,e.fragment);return u(t,!0),t},t.prototype.toString=function(e){return void 0===e&&(e=!1),w(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var n=new g(e);return n._formatted=e.external,n._fsPath=e._sep===m?e.fsPath:null,n}return e},t}(),m=e?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=S(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(p),y=((i={})[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function v(e,t,n){for(var r=void 0,o=-1,i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));var a=y[s];void 0!==a?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=a):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function b(e){for(var t=void 0,n=0;n1&&"file"===t.scheme?"//".concat(t.authority).concat(t.path):47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function w(e,t){var n=t?b:v,r="",o=e.scheme,i=e.authority,s=e.path,a=e.query,c=e.fragment;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=d,r+=d),i){var l=i.indexOf("@");if(-1!==l){var u=i.substr(0,l);i=i.substr(l+1),-1===(l=u.lastIndexOf(":"))?r+=n(u,!1,!1):(r+=n(u.substr(0,l),!1,!1),r+=":",r+=n(u.substr(l+1),!1,!0)),r+="@"}-1===(l=(i=i.toLowerCase()).lastIndexOf(":"))?r+=n(i,!1,!0):(r+=n(i.substr(0,l),!1,!0),r+=i.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/".concat(String.fromCharCode(f+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s="".concat(String.fromCharCode(f+32),":").concat(s.substr(2)))}r+=n(s,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:v(c,!1,!1)),r}function _(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+_(e.substr(3)):e}}var k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(k)?e.replace(k,(function(e){return _(e)})):e}var x,C=n(470),T=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YamlCommands=void 0,(t.YamlCommands||(t.YamlCommands={})).JUMP_TO_SCHEMA="jumpToSchema"},45988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandExecutor=t.CommandExecutor=void 0;class n{constructor(){this.commands=new Map}executeCommand(e){if(this.commands.has(e.command))return this.commands.get(e.command)(...e.arguments);throw new Error(`Command '${e.command}' not found`)}registerCommand(e,t){this.commands.set(e,t)}}t.CommandExecutor=n,t.commandExecutor=new n},61161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageHandlers=void 0;const r=n(25944),o=n(59640),i=n(71017);t.LanguageHandlers=class{constructor(e,t,n,r){this.connection=e,this.languageService=t,this.yamlSettings=n,this.validationHandler=r,this.pendingLimitExceededWarnings={}}registerHandlers(){this.connection.onDocumentLinks((e=>this.documentLinkHandler(e))),this.connection.onDocumentSymbol((e=>this.documentSymbolHandler(e))),this.connection.onDocumentFormatting((e=>this.formatterHandler(e))),this.connection.onHover((e=>this.hoverHandler(e))),this.connection.onCompletion((e=>this.completionHandler(e))),this.connection.onDidChangeWatchedFiles((e=>this.watchedFilesHandler(e))),this.connection.onFoldingRanges((e=>this.foldingRangeHandler(e))),this.connection.onSelectionRanges((e=>this.selectionRangeHandler(e))),this.connection.onCodeAction((e=>this.codeActionHandler(e))),this.connection.onDocumentOnTypeFormatting((e=>this.formatOnTypeHandler(e))),this.connection.onCodeLens((e=>this.codeLensHandler(e))),this.connection.onCodeLensResolve((e=>this.codeLensResolveHandler(e))),this.connection.onDefinition((e=>this.definitionHandler(e))),this.yamlSettings.documents.onDidChangeContent((e=>this.cancelLimitExceededWarnings(e.document.uri))),this.yamlSettings.documents.onDidClose((e=>this.cancelLimitExceededWarnings(e.document.uri)))}documentLinkHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);return t?this.languageService.findLinks(t):Promise.resolve([])}documentSymbolHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(!t)return;const n=this.onResultLimitExceeded(t.uri,this.yamlSettings.maxItemsComputed,"document symbols"),r={resultLimit:this.yamlSettings.maxItemsComputed,onResultLimitExceeded:n};return this.yamlSettings.hierarchicalDocumentSymbolSupport?this.languageService.findDocumentSymbols2(t,r):this.languageService.findDocumentSymbols(t,r)}formatterHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(!t)return;const n={tabWidth:e.options.tabSize,...this.yamlSettings.yamlFormatterSettings};return this.languageService.doFormat(t,n)}formatOnTypeHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(t)return this.languageService.doDocumentOnTypeFormatting(t,e)}hoverHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);return t?this.languageService.doHover(t,e.position):Promise.resolve(void 0)}completionHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);return t?this.languageService.doComplete(t,e.position,(0,r.isKubernetesAssociatedDocument)(t,this.yamlSettings.specificValidatorPaths)):Promise.resolve({items:[],isIncomplete:!1})}watchedFilesHandler(e){let t=!1;e.changes.forEach((e=>{this.languageService.resetSchema(e.uri)&&(t=!0)})),t&&this.yamlSettings.documents.all().forEach((e=>this.validationHandler.validate(e)))}foldingRangeHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(!t)return;const n=this.yamlSettings.capabilities.textDocument.foldingRange,r=this.yamlSettings.maxItemsComputed||n.rangeLimit,o={rangeLimit:r,onRangeLimitExceeded:this.onResultLimitExceeded(t.uri,r,"folding ranges"),lineFoldingOnly:n.lineFoldingOnly};return this.languageService.getFoldingRanges(t,o)}selectionRangeHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(t)return this.languageService.getSelectionRanges(t,e.positions)}codeActionHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(t)return this.languageService.getCodeAction(t,e)}codeLensHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(t)return this.languageService.getCodeLens(t)}codeLensResolveHandler(e){return this.languageService.resolveCodeLens(e)}definitionHandler(e){const t=this.yamlSettings.documents.get(e.textDocument.uri);if(t)return this.languageService.doDefinition(t,e)}cancelLimitExceededWarnings(e){const t=this.pendingLimitExceededWarnings[e];t&&t.timeout&&(clearTimeout(t.timeout),delete this.pendingLimitExceededWarnings[e])}onResultLimitExceeded(e,t,n){return()=>{let r=this.pendingLimitExceededWarnings[e];if(r){if(!r.timeout)return;r.features[n]=n,r.timeout.refresh()}else r={features:{[n]:n}},r.timeout=setTimeout((()=>{this.connection.sendNotification(o.ResultLimitReachedNotification.type,`${i.basename(e)}: For performance reasons, ${Object.keys(r.features).join(" and ")} have been limited to ${t} items.`),r.timeout=void 0}),2e3),this.pendingLimitExceededWarnings[e]=r}}}},51285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationHandlers=void 0;const r=n(59640);t.NotificationHandlers=class{constructor(e,t,n,r){this.connection=e,this.languageService=t,this.yamlSettings=n,this.settingsHandler=r}registerHandlers(){this.connection.onNotification(r.SchemaAssociationNotification.type,(e=>this.schemaAssociationNotificationHandler(e))),this.connection.onNotification(r.DynamicCustomSchemaRequestRegistration.type,(()=>this.dynamicSchemaRequestHandler())),this.connection.onNotification(r.VSCodeContentRequestRegistration.type,(()=>this.vscodeContentRequestHandler())),this.connection.onNotification(r.SchemaSelectionRequests.type,(()=>this.schemaSelectionRequestHandler()))}schemaAssociationNotificationHandler(e){this.yamlSettings.schemaAssociations=e,this.yamlSettings.specificValidatorPaths=[],this.settingsHandler.pullConfiguration().catch((e=>console.log(e)))}dynamicSchemaRequestHandler(){this.languageService.registerCustomSchemaProvider((e=>this.connection.sendRequest(r.CustomSchemaRequest.type,e)))}vscodeContentRequestHandler(){this.yamlSettings.useVSCodeContentRequest=!0}schemaSelectionRequestHandler(){this.yamlSettings.useSchemaSelectionRequests=!0}}},9721:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestHandlers=void 0;const r=n(39031),o=n(59640);t.RequestHandlers=class{constructor(e,t){this.connection=e,this.languageService=t}registerHandlers(){this.connection.onRequest(o.SchemaModificationNotification.type,(e=>this.registerSchemaModificationNotificationHandler(e)))}registerSchemaModificationNotificationHandler(e){e.action===r.MODIFICATION_ACTIONS.add?this.languageService.modifySchemaContent(e):e.action===r.MODIFICATION_ACTIONS.delete?this.languageService.deleteSchemaContent(e):e.action===r.MODIFICATION_ACTIONS.deleteAll&&this.languageService.deleteSchemasWhole(e)}}},4701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONSchemaSelection=void 0;const r=n(92297),o=n(90318),i=n(59640);t.JSONSchemaSelection=class{constructor(e,t,n){this.schemaService=e,this.yamlSettings=t,this.connection=n,this.connection?.onRequest(i.SchemaSelectionRequests.getSchema,(e=>this.getSchemas(e))),this.connection?.onRequest(i.SchemaSelectionRequests.getAllSchemas,(e=>this.getAllSchemas(e)))}async getSchemas(e){const t=await this.getSchemasForFile(e);return Array.from(t).map((e=>({name:e[1].title,uri:e[0],description:e[1].description,versions:e[1].versions})))}async getSchemasForFile(e){const t=this.yamlSettings?.documents.get(e),n=new Map;if(!t)return n;const i=r.yamlDocumentsCache.getYamlDocument(t);for(const e of i.documents){const r=await this.schemaService.getSchemaForResource(t.uri,e);if(r?.schema){const e=(0,o.getSchemaUrls)(r?.schema);if(0===e.size)continue;for(const t of e)n.set(t[0],t[1])}}return n}async getAllSchemas(e){const t=await this.getSchemasForFile(e),n=Array.from(t.entries()).map((e=>({uri:e[0],fromStore:!1,usedForCurrentFile:!0,name:e[1].title,description:e[1].description,versions:e[1].versions}))),r=[];let o=this.schemaService.getAllSchemas();return o=o.filter((e=>!t.has(e.uri))),r.push(...n),r.push(...o),r}}},69758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsHandler=void 0;const r=n(42775),o=n(35809),i=n(51970),s=n(91010),a=n(90318),c=n(72671),l=n(59640);t.SettingsHandler=class{constructor(e,t,n,r,o){this.connection=e,this.languageService=t,this.yamlSettings=n,this.validationHandler=r,this.telemetry=o}async registerHandlers(){if(this.yamlSettings.hasConfigurationCapability&&this.yamlSettings.clientDynamicRegisterSupport)try{await this.connection.client.register(o.DidChangeConfigurationNotification.type)}catch(e){this.telemetry.sendError("yaml.settings.error",{error:(0,i.convertErrorToTelemetryMsg)(e)})}this.connection.onDidChangeConfiguration((()=>this.pullConfiguration()))}async pullConfiguration(){const e=await this.connection.workspace.getConfiguration([{section:"yaml"},{section:"http"},{section:"[yaml]"},{section:"editor"},{section:"files"}]),t={yaml:e[0],http:{proxy:e[1]?.proxy??"",proxyStrictSSL:e[1]?.proxyStrictSSL??!1},yamlEditor:e[2],vscodeEditor:e[3],files:e[4]};await this.setConfiguration(t)}async setConfiguration(e){if((0,r.configure)(e.http&&e.http.proxy,e.http&&e.http.proxyStrictSSL),this.yamlSettings.specificValidatorPaths=[],e.yaml){if(Object.prototype.hasOwnProperty.call(e.yaml,"schemas")&&(this.yamlSettings.yamlConfigurationSettings=e.yaml.schemas),Object.prototype.hasOwnProperty.call(e.yaml,"validate")&&(this.yamlSettings.yamlShouldValidate=e.yaml.validate),Object.prototype.hasOwnProperty.call(e.yaml,"hover")&&(this.yamlSettings.yamlShouldHover=e.yaml.hover),Object.prototype.hasOwnProperty.call(e.yaml,"completion")&&(this.yamlSettings.yamlShouldCompletion=e.yaml.completion),this.yamlSettings.customTags=e.yaml.customTags?e.yaml.customTags:[],this.yamlSettings.maxItemsComputed=Math.trunc(Math.max(0,Number(e.yaml.maxItemsComputed)))||5e3,e.yaml.schemaStore&&(this.yamlSettings.schemaStoreEnabled=e.yaml.schemaStore.enable,0!==e.yaml.schemaStore.url?.length&&(this.yamlSettings.schemaStoreUrl=e.yaml.schemaStore.url)),e.files?.associations)for(const[t,n]of Object.entries(e.files.associations))"yaml"===n&&this.yamlSettings.fileExtensions.push(t);this.yamlSettings.yamlVersion=e.yaml.yamlVersion??"1.2",e.yaml.format&&(this.yamlSettings.yamlFormatterSettings={proseWrap:e.yaml.format.proseWrap||"preserve",printWidth:e.yaml.format.printWidth||80},void 0!==e.yaml.format.singleQuote&&(this.yamlSettings.yamlFormatterSettings.singleQuote=e.yaml.format.singleQuote),void 0!==e.yaml.format.bracketSpacing&&(this.yamlSettings.yamlFormatterSettings.bracketSpacing=e.yaml.format.bracketSpacing),void 0!==e.yaml.format.enable&&(this.yamlSettings.yamlFormatterSettings.enable=e.yaml.format.enable)),this.yamlSettings.disableAdditionalProperties=e.yaml.disableAdditionalProperties,this.yamlSettings.disableDefaultProperties=e.yaml.disableDefaultProperties,e.yaml.suggest&&(this.yamlSettings.suggest.parentSkeletonSelectedFirst=e.yaml.suggest.parentSkeletonSelectedFirst),this.yamlSettings.style={flowMapping:e.yaml.style?.flowMapping??"allow",flowSequence:e.yaml.style?.flowSequence??"allow"},this.yamlSettings.keyOrdering=e.yaml.keyOrdering??!1}this.yamlSettings.schemaConfigurationSettings=[];let t=2;e.vscodeEditor&&(t=!e.vscodeEditor.detectIndentation&&e.yamlEditor?e.yamlEditor["editor.tabSize"]:t),e.yamlEditor&&e.yamlEditor["editor.tabSize"]&&(this.yamlSettings.indentation=" ".repeat(t));for(const e in this.yamlSettings.yamlConfigurationSettings){const t=this.yamlSettings.yamlConfigurationSettings[e],n={fileMatch:Array.isArray(t)?t:[t],uri:(0,a.checkSchemaURI)(this.yamlSettings.workspaceFolders,this.yamlSettings.workspaceRoot,e,this.telemetry)};this.yamlSettings.schemaConfigurationSettings.push(n)}await this.setSchemaStoreSettingsIfNotSet(),this.updateConfiguration(),this.yamlSettings.useSchemaSelectionRequests&&this.connection.sendNotification(l.SchemaSelectionRequests.schemaStoreInitialized,{}),this.yamlSettings.clientDynamicRegisterSupport&&(e&&e.yaml&&e.yaml.format&&e.yaml.format.enable?this.yamlSettings.formatterRegistration||(this.yamlSettings.formatterRegistration=this.connection.client.register(o.DocumentFormattingRequest.type,{documentSelector:[{language:"yaml"}]})):this.yamlSettings.formatterRegistration&&(this.yamlSettings.formatterRegistration.then((e=>e.dispose())),this.yamlSettings.formatterRegistration=null))}async setSchemaStoreSettingsIfNotSet(){const e=0!==this.yamlSettings.schemaStoreSettings.length;let t="";if(t=0!==this.yamlSettings.schemaStoreUrl?.length?this.yamlSettings.schemaStoreUrl:a.JSON_SCHEMASTORE_URL,this.yamlSettings.schemaStoreEnabled&&!e)try{const e=await this.getSchemaStoreMatchingSchemas(t);this.yamlSettings.schemaStoreSettings=e.schemas}catch(e){}else this.yamlSettings.schemaStoreEnabled||(this.yamlSettings.schemaStoreSettings=[])}async getSchemaStoreMatchingSchemas(e){const t=await(0,r.xhr)({url:e}),n={schemas:[]},o=JSON.parse(t.responseText);for(const e in o.schemas){const t=o.schemas[e];if(t&&t.fileMatch)for(const e in t.fileMatch){const r=t.fileMatch[e];this.yamlSettings.fileExtensions.findIndex((e=>r.indexOf(e)>-1))>-1&&n.schemas.push({uri:t.url,fileMatch:[r],priority:c.SchemaPriority.SchemaStore,name:t.name,description:t.description,versions:t.versions})}}return n}updateConfiguration(){let e={validate:this.yamlSettings.yamlShouldValidate,hover:this.yamlSettings.yamlShouldHover,completion:this.yamlSettings.yamlShouldCompletion,schemas:[],customTags:this.yamlSettings.customTags,format:this.yamlSettings.yamlFormatterSettings.enable,indentation:this.yamlSettings.indentation,disableAdditionalProperties:this.yamlSettings.disableAdditionalProperties,disableDefaultProperties:this.yamlSettings.disableDefaultProperties,parentSkeletonSelectedFirst:this.yamlSettings.suggest.parentSkeletonSelectedFirst,flowMapping:this.yamlSettings.style?.flowMapping,flowSequence:this.yamlSettings.style?.flowSequence,yamlVersion:this.yamlSettings.yamlVersion,keyOrdering:this.yamlSettings.keyOrdering};if(this.yamlSettings.schemaAssociations)if(Array.isArray(this.yamlSettings.schemaAssociations))this.yamlSettings.schemaAssociations.forEach((t=>{e=this.configureSchemas(t.uri,t.fileMatch,t.schema,e,c.SchemaPriority.SchemaAssociation)}));else for(const t in this.yamlSettings.schemaAssociations){const n=this.yamlSettings.schemaAssociations[t];e=this.configureSchemas(t,n,null,e,c.SchemaPriority.SchemaAssociation)}this.yamlSettings.schemaConfigurationSettings&&this.yamlSettings.schemaConfigurationSettings.forEach((t=>{let n=t.uri;!n&&t.schema&&(n=t.schema.id),!n&&t.fileMatch&&(n="vscode://schemas/custom/"+encodeURIComponent(t.fileMatch.join("&"))),n&&((0,s.isRelativePath)(n)&&(n=(0,s.relativeToAbsolutePath)(this.yamlSettings.workspaceFolders,this.yamlSettings.workspaceRoot,n)),e=this.configureSchemas(n,t.fileMatch,t.schema,e,c.SchemaPriority.Settings))})),this.yamlSettings.schemaStoreSettings&&(e.schemas=e.schemas.concat(this.yamlSettings.schemaStoreSettings)),this.languageService.configure(e),this.yamlSettings.documents.all().forEach((e=>this.validationHandler.validate(e)))}configureSchemas(e,t,n,r,o){return e=(0,a.checkSchemaURI)(this.yamlSettings.workspaceFolders,this.yamlSettings.workspaceRoot,e,this.telemetry),null===n?r.schemas.push({uri:e,fileMatch:t,priority:o}):r.schemas.push({uri:e,fileMatch:t,schema:n,priority:o}),t.constructor===Array&&e===a.KUBERNETES_SCHEMA_URL?t.forEach((e=>{this.yamlSettings.specificValidatorPaths.push(e)})):e===a.KUBERNETES_SCHEMA_URL&&this.yamlSettings.specificValidatorPaths.push(t),r}}},40779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationHandler=void 0;const r=n(25944),o=n(18132);t.ValidationHandler=class{constructor(e,t,n){this.connection=e,this.languageService=t,this.yamlSettings=n,this.yamlSettings.documents.onDidChangeContent((e=>{this.validate(e.document)})),this.yamlSettings.documents.onDidClose((e=>{this.cleanPendingValidation(e.document),this.connection.sendDiagnostics({uri:e.document.uri,diagnostics:[]})}))}validate(e){this.cleanPendingValidation(e),this.yamlSettings.pendingValidationRequests[e.uri]=setTimeout((()=>{delete this.yamlSettings.pendingValidationRequests[e.uri],this.validateTextDocument(e)}),this.yamlSettings.validationDelayMs)}cleanPendingValidation(e){const t=this.yamlSettings.pendingValidationRequests[e.uri];t&&(clearTimeout(t),delete this.yamlSettings.pendingValidationRequests[e.uri])}validateTextDocument(e){if(e)return this.languageService.doValidation(e,(0,r.isKubernetesAssociatedDocument)(e,this.yamlSettings.specificValidatorPaths)).then((t=>{const n=[];for(const e of t)2===e.severity&&(e.severity=1),n.push(e);const r=(0,o.removeDuplicatesObj)(n);return this.connection.sendDiagnostics({uri:e.uri,diagnostics:r}),r}))}}},22052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceHandlers=void 0,t.WorkspaceHandlers=class{constructor(e,t){this.connection=e,this.commandExecutor=t}registerHandlers(){this.connection.onExecuteCommand((e=>this.executeCommand(e)))}executeCommand(e){return this.commandExecutor.executeCommand(e)}}},14600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryImpl=void 0,t.TelemetryImpl=class{constructor(e){this.connection=e}send(e){this.connection.telemetry.logEvent(e)}sendError(e,t){this.send({name:e,type:"track",properties:t})}sendTrack(e,t){this.send({name:e,type:"track",properties:t})}}},83985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toOffsetLength=t.convertAST=void 0;const r=n(93419),o=n(85839),i=1e3;let s=0;const a=new Set;function c(e){return[e[0],e[1]-e[0]]}function l(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),o=[e[0],e[1]-e[0]];return n.line===r.line||t.lineStarts.length===r.line&&1!==r.col||o[1]--,o}t.convertAST=function e(t,n,u,f){if(t||(s=0),!n)return null;if((0,r.isMap)(n))return function(t,n,i,s){let a;a=t.flow&&!t.range?function(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const o of e.items)(0,r.isPair)(o)&&((0,r.isNode)(o.key)&&o.key.range&&o.key.range[0]<=t&&(t=o.key.range[0]),(0,r.isNode)(o.value)&&o.value.range&&o.value.range[2]>=n&&(n=o.value.range[2]));return[t,n,n]}(t):t.range;const c=new o.ObjectASTNodeImpl(n,t,...l(a,s));for(const n of t.items)(0,r.isPair)(n)&&c.properties.push(e(c,n,i,s));return c}(n,t,u,f);if((0,r.isPair)(n))return function(t,n,i,s){const a=t.key,u=t.value,f=a.range[0];let d=a.range[1],h=a.range[2];u&&(d=u.range[1],h=u.range[2]);const p=new o.PropertyASTNodeImpl(n,t,...l([f,d,h],s));if((0,r.isAlias)(a)){const e=new o.StringASTNodeImpl(n,a,...c(a.range));e.value=a.source,p.keyNode=e}else p.keyNode=e(p,a,i,s);return p.valueNode=e(p,u,i,s),p}(n,t,u,f);if((0,r.isSeq)(n))return function(t,n,i,s){const a=new o.ArrayASTNodeImpl(n,t,...c(t.range));for(const n of t.items)if((0,r.isNode)(n)){const t=e(a,n,i,s);t&&a.children.push(t)}return a}(n,t,u,f);if((0,r.isScalar)(n))return function(e,t){if(null===e.value)return new o.NullASTNodeImpl(t,e,...c(e.range));switch(typeof e.value){case"string":{const n=new o.StringASTNodeImpl(t,e,...c(e.range));return n.value=e.value,n}case"boolean":return new o.BooleanASTNodeImpl(t,e,e.value,...c(e.range));case"number":{const n=new o.NumberASTNodeImpl(t,e,...c(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new o.StringASTNodeImpl(t,e,...c(e.range));return n.value=e.source,n}}}(n,t);if((0,r.isAlias)(n)&&!a.has(n)&&s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomTags=void 0;const r=n(93419),o=n(18132);class i{constructor(e,t){this.tag=e,this.type=t}get collection(){return"mapping"===this.type?"map":"sequence"===this.type?"seq":void 0}resolve(e){return(0,r.isMap)(e)&&"mapping"===this.type||(0,r.isSeq)(e)&&"sequence"===this.type||"string"==typeof e&&"scalar"===this.type?e:void 0}}class s{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}}t.getCustomTags=function(e){const t=[],n=(0,o.filterInvalidCustomTags)(e);for(const e of n){const n=e.split(" "),r=n[0],o=n[1]&&n[1].toLowerCase()||"scalar";t.push(new i(r,o))}return t.push(new s),t}},25944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKubernetesAssociatedDocument=t.setKubernetesParserOption=void 0;const r=n(39031);t.setKubernetesParserOption=function(e,t){for(const n of e)n.isKubernetes=t},t.isKubernetesAssociatedDocument=function(e,t){for(const n in t){const o=t[n];if(new r.FilePatternAssociation(o).matchesPattern(e.uri))return!0}return!1}},85839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONDocument=t.findNodeAtOffset=t.contains=t.getNodeValue=t.newJSONDocument=t.ValidationResult=t.EnumMatch=t.asSchema=t.ObjectASTNodeImpl=t.PropertyASTNodeImpl=t.StringASTNodeImpl=t.NumberASTNodeImpl=t.ArrayASTNodeImpl=t.BooleanASTNodeImpl=t.NullASTNodeImpl=t.ASTNodeImpl=t.ProblemTypeMessages=t.ProblemType=t.YAML_SOURCE=t.formats=void 0;const r=n(51970),o=n(22266),i=n(34049),s=n(77176),a=n(99879),c=n(91674),l=n(18132),u=n(67953),f=n(39031),d=s.loadMessageBundle(),h="Property {0} is not allowed.";t.formats={"color-hex":{errorMessage:d("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:d("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:d("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:d("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:d("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},ipv4:{errorMessage:d("ipv4FormatWarning","String does not match IPv4 format."),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:d("ipv6FormatWarning","String does not match IPv6 format."),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},t.YAML_SOURCE="YAML";const p="yaml-schema: ";var m,g;!function(e){e.missingRequiredPropWarning="missingRequiredPropWarning",e.typeMismatchWarning="typeMismatchWarning",e.constWarning="constWarning"}(m=t.ProblemType||(t.ProblemType={})),t.ProblemTypeMessages={[m.missingRequiredPropWarning]:'Missing property "{0}".',[m.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[m.constWarning]:"Value must be {0}."};class y{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=r=>{if(e>=r.offset&&e<=r.offset+r.length){const o=r.children;for(let r=0;rJSON.stringify(e))).join(", ")))}}mergeWarningGeneric(e,t){if(this.problems?.length)for(const n of t){const t=this.problems.filter((e=>e.problemType===n));for(const r of t){const t=e.problems?.find((e=>e.problemType===n&&r.location.offset===e.location.offset&&(n!==m.missingRequiredPropWarning||(0,l.isArrayEqual)(e.problemArgs,r.problemArgs))));t&&(t.problemArgs?.length&&(t.problemArgs.filter((e=>!r.problemArgs.includes(e))).forEach((e=>r.problemArgs.push(e))),r.message=A(r.problemType,r.problemArgs)),this.mergeSources(t,r))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace(p,"");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}}function _(e){switch(e.type){case"array":return e.children.map(_);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function E(e,t,n){if(void 0===n&&(n=!1),k(e,t,n)){const r=e.children;if(Array.isArray(r))for(let e=0;e{let r=e(n);const o=n.children;if(Array.isArray(o))for(let e=0;e{const n=c.Range.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),r=c.Diagnostic.create(n,t.message,t.severity,t.code?t.code:i.ErrorCode.Undefined,t.source);return r.data={schemaUri:t.schemaUri,...t.data},r}))}return null}getMatchingSchemas(e,t=-1,n=null,r){const o=new b(t,n);return this.root&&e&&C(this.root,e,e,new w(this.isKubernetes),o,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r}),o.schemas}}function C(e,n,s,l,p,g){const{isKubernetes:y,callFromAutoComplete:b}=g;if(e&&"object"==typeof n){switch(n.url||(n.url=s.url),n.closestTitle=n.title||s.closestTitle,e.type){case"object":!function(e,t,n,o){const i=Object.create(null),a=[],l=[...e.properties];for(;l.length>0;){const e=l.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":l.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach((e=>{e&&(0,r.isIterable)(e.properties)&&l.push(...e.properties)}))}else i[t]=e.valueNode,a.push(t)}if(Array.isArray(t.required))for(const r of t.required)if(void 0===i[r]){const o=e.parent&&"property"===e.parent.type&&e.parent.keyNode,i=o?{offset:o.offset,length:o.length}:{offset:e.offset,length:1};n.problems.push({location:i,severity:c.DiagnosticSeverity.Warning,message:A(m.missingRequiredPropWarning,[r]),source:T(t,s),schemaUri:O(t,s),problemArgs:[r],problemType:m.missingRequiredPropWarning})}const f=e=>{let t=a.indexOf(e);for(;t>=0;)a.splice(t,1),t=a.indexOf(e)};if(t.properties)for(const e of Object.keys(t.properties)){f(e);const a=t.properties[e],l=i[e];if(l)if((0,r.isBoolean)(a))if(a)n.propertiesMatches++,n.propertiesValueMatches++;else{const r=l.parent;n.problems.push({location:{offset:r.keyNode.offset,length:r.keyNode.length},severity:c.DiagnosticSeverity.Warning,message:t.errorMessage||d("DisallowedExtraPropWarning",h,e),source:T(t,s),schemaUri:O(t,s)})}else{a.url=t.url??s.url;const e=new w(y);C(l,a,t,e,o,g),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const l=(0,u.safeCreateUnicodeRegExp)(e);for(const u of a.slice(0))if(l.test(u)){f(u);const a=i[u];if(a){const i=t.patternProperties[e];if((0,r.isBoolean)(i))if(i)n.propertiesMatches++,n.propertiesValueMatches++;else{const e=a.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:c.DiagnosticSeverity.Warning,message:t.errorMessage||d("DisallowedExtraPropWarning",h,u),source:T(t,s),schemaUri:O(t,s)})}else{const e=new w(y);C(a,i,t,e,o,g),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}}}if("object"==typeof t.additionalProperties)for(const e of a){const r=i[e];if(r){const e=new w(y);C(r,t.additionalProperties,t,e,o,g),n.mergePropertyMatch(e),n.mergeEnumValues(e)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===g.disableAdditionalProperties)&&a.length>0){const e=t.properties&&Object.keys(t.properties).filter((e=>!i[e]));for(const r of a){const o=i[r];if(o){let i=null;"property"!==o.type?(i=o.parent,"object"===i.type&&(i=i.properties[0])):i=o;const a={location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:c.DiagnosticSeverity.Warning,message:t.errorMessage||d("DisallowedExtraPropWarning",h,r),source:T(t,s),schemaUri:O(t,s)};e?.length&&(a.data={properties:e}),n.problems.push(a)}}}if((0,r.isNumber)(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:T(t,s),schemaUri:O(t,s)}),(0,r.isNumber)(t.minProperties)&&e.properties.length=r.length&&n.propertiesValueMatches++}if(e.items.length>r.length)if("object"==typeof t.additionalItems)for(let i=r.length;i{if(r.oneOf&&1===r.oneOf.length){const s={...v(r.oneOf[0])};s.title=t.title,s.closestTitle=t.closestTitle,C(e,s,t,i,o,g),n.mergePropertyMatch(i),n.mergeEnumValues(i)}else C(e,r,t,i,o,g),n.mergePropertyMatch(i),n.mergeEnumValues(i)}))}}const i=v(t.contains);if(i&&(e.items.some((e=>{const n=new w(y);return C(e,i,t,n,S.instance,g),!n.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:t.errorMessage||d("requiredItemMissingWarning","Array does not contain required item."),source:T(t,s),schemaUri:O(t,s)})),(0,r.isNumber)(t.minItems)&&e.items.lengtht.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:T(t,s),schemaUri:O(t,s)}),!0===t.uniqueItems){const r=_(e);r.some(((e,t)=>t!==r.lastIndexOf(e)))&&n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("uniqueItemsWarning","Array has duplicate items."),source:T(t,s),schemaUri:O(t,s)})}}(e,n,l,p);break;case"string":!function(e,n,o){if((0,r.isNumber)(n.minLength)&&e.value.lengthn.maxLength&&o.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("maxLengthWarning","String is longer than the maximum length of {0}.",n.maxLength),source:T(n,s),schemaUri:O(n,s)}),(0,r.isString)(n.pattern)&&((0,u.safeCreateUnicodeRegExp)(n.pattern).test(e.value)||o.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:n.patternErrorMessage||n.errorMessage||d("patternWarning",'String does not match the pattern of "{0}".',n.pattern),source:T(n,s),schemaUri:O(n,s)})),n.format)switch(n.format){case"uri":case"uri-reference":{let t;if(e.value)try{a.URI.parse(e.value).scheme||"uri"!==n.format||(t=d("uriSchemeMissing","URI with a scheme is expected."))}catch(e){t=e.message}else t=d("uriEmpty","URI expected.");t&&o.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:n.patternErrorMessage||n.errorMessage||d("uriFormatWarning","String is not a URI: {0}",t),source:T(n,s),schemaUri:O(n,s)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"ipv4":case"ipv6":{const r=t.formats[n.format];e.value&&r.pattern.test(e.value)||o.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:n.patternErrorMessage||n.errorMessage||r.errorMessage,source:T(n,s),schemaUri:O(n,s)})}}}(e,n,l);break;case"number":!function(e,t,n){const o=e.value;function i(e,t){return(0,r.isNumber)(t)?t:(0,r.isBoolean)(t)&&t?e:void 0}function a(e,t){if(!(0,r.isBoolean)(t)||!t)return e}(0,r.isNumber)(t.multipleOf)&&o%t.multipleOf!=0&&n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:T(t,s),schemaUri:O(t,s)});const l=i(t.minimum,t.exclusiveMinimum);(0,r.isNumber)(l)&&o<=l&&n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",l),source:T(t,s),schemaUri:O(t,s)});const u=i(t.maximum,t.exclusiveMaximum);(0,r.isNumber)(u)&&o>=u&&n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",u),source:T(t,s),schemaUri:O(t,s)});const f=a(t.minimum,t.exclusiveMinimum);(0,r.isNumber)(f)&&oh&&n.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("maximumWarning","Value is above the maximum of {0}.",h),source:T(t,s),schemaUri:O(t,s)})}(e,n,l);break;case"property":return C(e.valueNode,n,n,l,p,g)}!function(){function t(t){return e.type===t||"integer"===t&&"number"===e.type&&e.isInteger}if(Array.isArray(n.type))n.type.some(t)||l.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:n.errorMessage||d("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",n.type.join(", ")),source:T(n,s),schemaUri:O(n,s)});else if(n.type&&!t(n.type)){const t="object"===n.type?(0,o.getSchemaTypeName)(n):n.type;l.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:n.errorMessage||A(m.typeMismatchWarning,[t]),source:T(n,s),schemaUri:O(n,s),problemType:m.typeMismatchWarning,problemArgs:[t]})}if(Array.isArray(n.allOf))for(const t of n.allOf)C(e,v(t),n,l,p,g);const a=v(n.not);if(a){const t=new w(y),r=p.newSub();C(e,a,n,t,r,g),t.hasProblems()||l.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("notSchemaWarning","Matches a schema that is not allowed."),source:T(n,s),schemaUri:O(n,s)});for(const e of r.schemas)e.inverted=!e.inverted,p.add(e)}const u=(t,r)=>{const o=[],i=[],a=[];let u=null;for(const s of t){const t={...v(s)},c=new w(y),l=p.newSub();C(e,t,n,c,l,g),c.hasProblems()&&!b||(o.push(t),i.push(t),0===c.propertiesMatches&&a.push(t),t.format&&i.pop()),u=u?y?k(c,u,t,l):E(e,r,c,u,t,l):{schema:t,validationResult:c,matchingSchemas:l}}return i.length>1&&(i.length>1||0===a.length)&&r&&l.problems.push({location:{offset:e.offset,length:1},severity:c.DiagnosticSeverity.Warning,message:d("oneOfWarning","Matches multiple schemas when only one must validate."),source:T(n,s),schemaUri:O(n,s)}),null!==u&&(l.merge(u.validationResult),l.propertiesMatches+=u.validationResult.propertiesMatches,l.propertiesValueMatches+=u.validationResult.propertiesValueMatches,l.enumValueMatch=l.enumValueMatch||u.validationResult.enumValueMatch,u.validationResult.enumValues?.length&&(l.enumValues=(l.enumValues||[]).concat(u.validationResult.enumValues)),p.merge(u.matchingSchemas)),o.length};Array.isArray(n.anyOf)&&u(n.anyOf,!1),Array.isArray(n.oneOf)&&u(n.oneOf,!0);const h=(t,n)=>{const r=new w(y),o=p.newSub();C(e,v(t),n,r,o,g),l.merge(r),l.propertiesMatches+=r.propertiesMatches,l.propertiesValueMatches+=r.propertiesValueMatches,p.merge(o)},S=v(n.if);if(S&&((t,r,o,i)=>{const s=v(t),a=new w(y),l=p.newSub();C(e,s,r,a,l,g),p.merge(l);const{filePatternAssociation:u}=s;u&&(new f.FilePatternAssociation(u).matchesPattern(g.uri)||a.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,message:d("ifFilePatternAssociation",`filePatternAssociation '${u}' does not match with doc uri '${g.uri}'.`),source:T(n,r),schemaUri:O(n,r)})),a.hasProblems()?i&&h(i,r):o&&h(o,r)})(S,n,v(n.then),v(n.else)),Array.isArray(n.enum)){const t=_(e);let o=!1;for(const e of n.enum)if((0,r.equals)(t,e)||b&&(0,r.isString)(t)&&(0,r.isString)(e)&&t&&e.startsWith(t)){o=!0;break}l.enumValues=n.enum,l.enumValueMatch=o,o||l.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,code:i.ErrorCode.EnumValueMismatch,message:n.errorMessage||d("enumWarning","Value is not accepted. Valid values: {0}.",n.enum.map((e=>JSON.stringify(e))).join(", ")),source:T(n,s),schemaUri:O(n,s)})}if((0,r.isDefined)(n.const)){const t=_(e);(0,r.equals)(t,n.const)||b&&(0,r.isString)(t)&&(0,r.isString)(n.const)&&n.const.startsWith(t)?l.enumValueMatch=!0:(l.problems.push({location:{offset:e.offset,length:e.length},severity:c.DiagnosticSeverity.Warning,code:i.ErrorCode.EnumValueMismatch,problemType:m.constWarning,message:n.errorMessage||A(m.constWarning,[JSON.stringify(n.const)]),source:T(n,s),schemaUri:O(n,s),problemArgs:[JSON.stringify(n.const)]}),l.enumValueMatch=!1),l.enumValues=[n.const]}n.deprecationMessage&&e.parent&&l.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:c.DiagnosticSeverity.Warning,message:n.deprecationMessage,source:T(n,s),schemaUri:O(n,s)})}(),p.add({node:e,schema:n})}function k(e,t,n,r){const o=e.compareKubernetes(t.validationResult);return o>0?t={schema:n,validationResult:e,matchingSchemas:r}:0===o&&(t.matchingSchemas.merge(r),t.validationResult.mergeEnumValues(e)),t}function E(e,t,n,r,o,i){if(t||n.hasProblems()||r.validationResult.hasProblems()&&!b){const s=n.compareGeneric(r.validationResult);s>0||0===s&&t&&"object"===r.schema.type&&"null"!==e.type&&e.type!==r.schema.type?r={schema:o,validationResult:n,matchingSchemas:i}:0===s&&(r.matchingSchemas.merge(i),r.validationResult.mergeEnumValues(n),r.validationResult.mergeWarningGeneric(n,[m.missingRequiredPropWarning,m.typeMismatchWarning,m.constWarning]))}else r.matchingSchemas.merge(i),r.validationResult.propertiesMatches+=n.propertiesMatches,r.validationResult.propertiesValueMatches+=n.propertiesValueMatches;return r}}function T(e,n){if(e){let t;if(e.title)t=e.title;else if(e.closestTitle)t=e.closestTitle;else if(n.closestTitle)t=n.closestTitle;else{const r=e.url??n.url;if(r){const e=a.URI.parse(r);"file"===e.scheme&&(t=e.fsPath),t=e.toString()}}if(t)return`${p}${t}`}return t.YAML_SOURCE}function O(e,t){const n=e.url??t.url;return n?[n]:[]}function A(e,n){return d(e,t.ProblemTypeMessages[e],n.join(" | "))}t.JSONDocument=x},92297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yamlDocumentsCache=t.YamlDocuments=t.YAMLDocument=t.SingleYAMLDocument=void 0;const r=n(85839),o=n(93419),i=n(31316),s=n(34049),a=n(83985),c=n(18132),l=n(25791),u=n(67953);class f extends r.JSONDocument{constructor(e){super(null,[]),this.lineCounter=e}clone(){const e=new f(this.lineCounter);return e.isKubernetes=this.isKubernetes,e.disableAdditionalProperties=this.disableAdditionalProperties,e.uri=this.uri,e.currentDocIndex=this.currentDocIndex,e._lineComments=this.lineComments.slice(),e.internalDocument=this._internalDocument.clone(),e}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split("\n").forEach((e=>this._lineComments.push(`#${e}`))),(0,o.visit)(this.internalDocument,((e,t)=>{if(t?.commentBefore){const e=t?.commentBefore.split("\n");e.forEach((e=>this._lineComments.push(`#${e}`)))}t?.comment&&this._lineComments.push(`#${t.comment}`)})),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}updateFromInternalDocument(){this.root=(0,a.convertAST)(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(e){this._internalDocument=e,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(p)}get warnings(){return this.internalDocument.warnings.map(p)}getNodeFromPosition(e,t,n){const r=t.getPosition(e),i=t.getLineContent(r.line);if(0===i.trim().length)return[this.findClosestNode(e,t,n),!0];const s=i.substring(r.character).match(/^([ ]+)\n?$/),a=!!s,c=s?.[1].length;let l;return(0,o.visit)(this.internalDocument,((t,n)=>{if(!n)return;const r=n.range;return r?r[0]<=e&&r[1]>=e||a&&e+c===r[2]&&(0,o.isScalar)(n)&&null===n.value?void(l=n):o.visit.SKIP:void 0})),[l,!1]}findClosestNode(e,t,n){let r,i=this.internalDocument.range[2],s=this.internalDocument.range[0];(0,o.visit)(this.internalDocument,((t,n)=>{if(!n)return;const o=n.range;if(!o)return;const a=o[1]-e;s<=o[0]&&a<=0&&Math.abs(a)<=i&&(i=Math.abs(a),s=o[0],r=n)}));const a=t.getPosition(e),c=t.getLineContent(a.line),l=(0,u.getIndentation)(c,a.character);return(0,o.isScalar)(r)&&null===r.value||l===a.character&&(r=this.getProperParentByIndentation(l,r,t,"",n)),r}getProperParentByIndentation(e,t,n,r,i,s){if(!t)return this.internalDocument.contents;if(i=i||2,(0,o.isNode)(t)&&t.range){const a=n.getPosition(t.range[0]),c=n.getLineContent(a.line);if((r=""===r?c.trim():r).startsWith("-")&&e===i&&r===c.trim()&&(a.character+=e),a.character>e&&a.character>0){const o=this.getParent(t);if(o)return this.getProperParentByIndentation(e,o,n,r,i,s)}else{if(!(a.character{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.defaultOptions=t.SingleYAMLDocument=t.YAMLDocument=void 0;const r=n(93419),o=n(92297);Object.defineProperty(t,"YAMLDocument",{enumerable:!0,get:function(){return o.YAMLDocument}}),Object.defineProperty(t,"SingleYAMLDocument",{enumerable:!0,get:function(){return o.SingleYAMLDocument}});const i=n(8252),s=n(92778);t.defaultOptions={customTags:[],yamlVersion:"1.2"},t.parse=function(e,n=t.defaultOptions,a){const c={strict:!1,customTags:(0,i.getCustomTags)(n.customTags),version:n.yamlVersion??t.defaultOptions.yamlVersion,keepSourceTokens:!0},l=new r.Composer(c),u=new r.LineCounter;let f=!1;if(a){const t=new s.TextBuffer(a),n=t.getPosition(e.length);f=0===t.getLineContent(n.line).trim().length}const d=(f?new r.Parser:new r.Parser(u.addNewLine)).parse(e),h=Array.from(d),p=l.compose(h,!0,e.length),m=Array.from(p,(e=>function(e,t){const n=new o.SingleYAMLDocument(t);return n.internalDocument=e,n}(e,u)));return new o.YAMLDocument(m,h)}},83176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLDocumentSymbols=void 0;const r=n(1093),o=n(92297),i=n(93419),s=n(51970);t.YAMLDocumentSymbols=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new r.JSONDocumentSymbols(e),this.jsonDocumentSymbols.getKeyLabel=e=>{const t=e.keyNode.internalNode;let n="";return n=(0,i.isMap)(t)?"{}":(0,i.isSeq)(t)?"[]":t.source,n}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=o.yamlDocumentsCache.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const o of r.documents)o.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,o,t)))}catch(e){this.telemetry?.sendError("yaml.documentSymbols.error",{error:(0,s.convertErrorToTelemetryMsg)(e)})}return n}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=o.yamlDocumentsCache.getYamlDocument(e);if(!r||0===r.documents.length)return null;for(const o of r.documents)o.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,o,t)))}catch(e){this.telemetry?.sendError("yaml.hierarchicalDocumentSymbols.error",{error:(0,s.convertErrorToTelemetryMsg)(e)})}return n}}},99644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isModeline=t.getSchemaFromModeline=void 0;const r=n(31316);function o(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length}t.getSchemaFromModeline=function(e){if(e instanceof r.SingleYAMLDocument){const t=e.lineComments.find((e=>o(e)));if(null!=t){const e=t.match(/\$schema=\S+/g);if(null!==e&&e.length>=1)return e.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),e[0].substring("$schema=".length)}}},t.isModeline=o},99208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.workspaceContext=t.schemaRequestHandler=void 0;const r=n(99879),o=n(42775),i=n(57310),s=n(59640),a=n(91010);t.schemaRequestHandler=(e,t,n,i,c,l)=>{if(!t)return Promise.reject("No schema specified");(0,a.isRelativePath)(t)&&(t=(0,a.relativeToAbsolutePath)(n,i,t));let u=r.URI.parse(t).scheme.toLowerCase();if(/^[a-z]:[\\/]/i.test(t)){const e=r.URI.file(t);u=e.scheme.toLowerCase(),t=e.toString()}if("file"===u){const e=r.URI.parse(t).fsPath;return l.readFile(e,"UTF-8").catch((()=>""))}if("http"===u||"https"===u){if(c)return e.sendRequest(s.VSCodeContentRequest.type,t).then((e=>e),(e=>Promise.reject(e.message)));const n={"Accept-Encoding":"gzip, deflate"};return(0,o.xhr)({url:t,followRedirects:5,headers:n}).then((e=>e.responseText),(e=>Promise.reject(e.responseText||(0,o.getErrorStatusDescription)(e.status)||e.toString())))}return e.sendRequest(s.CustomSchemaContentRequest.type,t)},t.workspaceContext={resolveRelativePath:(e,t)=>i.resolve(t,e)}},65751:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapKeyOrderValidator=void 0;const r=n(91674),o=n(93419);function i(e,t){const n=t?.srcToken.start[0]?.offset??t?.srcToken?.key.offset??t?.srcToken?.sep[0]?.offset,o=t?.srcToken?.value.offset||t?.srcToken?.sep[0]?.offset||t?.srcToken?.key.offset||t?.srcToken.start[t.srcToken.start.length-1]?.offset;return r.Range.create(e.positionAt(n),e.positionAt(o))}function s(e,t){const n=String(t.key);return String(e.key).localeCompare(n)}t.MapKeyOrderValidator=class{validate(e,t){const n=[];return(0,o.visit)(t.internalDocument,((t,a)=>{if((0,o.isMap)(a))for(let t=1;t0){const o=i(e,a.items[t-1]);n.push(r.Diagnostic.create(o,`Wrong ordering of key "${a.items[t-1].key}" in mapping`,r.DiagnosticSeverity.Error,"mapKeyOrder"))}})),n}}},50893:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnusedAnchorsValidator=void 0;const r=n(91674),o=n(93419),i=n(25791);function s(e){for(const t of e.start)if("anchor"===t.type)return t;if(e.sep&&Array.isArray(e.sep))for(const t of e.sep)if("anchor"===t.type)return t}t.UnusedAnchorsValidator=class{validate(e,t){const n=[],i=new Set,s=new Set,a=new Map;(0,o.visit)(t.internalDocument,((e,n,r)=>{(0,o.isNode)(n)&&(((0,o.isCollection)(n)||(0,o.isScalar)(n))&&n.anchor&&(i.add(n),a.set(n,r[r.length-1])),(0,o.isAlias)(n)&&s.add(n.resolve(t.internalDocument)))}));for(const t of i)if(!s.has(t)){const o=this.getAnchorNode(a.get(t),t);if(o){const t=r.Range.create(e.positionAt(o.offset),e.positionAt(o.offset+o.source.length)),i=r.Diagnostic.create(t,`Unused anchor "${o.source}"`,r.DiagnosticSeverity.Hint,0);i.tags=[r.DiagnosticTag.Unnecessary],n.push(i)}}return n}getAnchorNode(e,t){if(e&&e.srcToken){const n=e.srcToken;if((0,i.isCollectionItem)(n))return s(n);if(o.CST.isCollection(n))for(const e of n.items){if(t.srcToken!==e.value)continue;const n=s(e);if(n)return n}}}}},31950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLStyleValidator=void 0;const r=n(91674),o=n(93419);t.YAMLStyleValidator=class{constructor(e){this.forbidMapping="forbid"===e.flowMapping,this.forbidSequence="forbid"===e.flowSequence}validate(e,t){const n=[];return(0,o.visit)(t.internalDocument,((t,i)=>{this.forbidMapping&&(0,o.isMap)(i)&&"flow-collection"===i.srcToken?.type&&n.push(r.Diagnostic.create(this.getRangeOf(e,i.srcToken),"Flow style mapping is forbidden",r.DiagnosticSeverity.Error,"flowMap")),this.forbidSequence&&(0,o.isSeq)(i)&&"flow-collection"===i.srcToken?.type&&n.push(r.Diagnostic.create(this.getRangeOf(e,i.srcToken),"Flow style sequence is forbidden",r.DiagnosticSeverity.Error,"flowSeq"))})),n}getRangeOf(e,t){return r.Range.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}}},30211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YamlCodeActions=void 0;const r=n(91674),o=n(14065),i=n(71017),s=n(92778),a=n(85839),c=n(67953),l=n(18132),u=n(93419),f=n(92297),d=n(78059),h=n(96486);function p(e,t){const n=f.yamlDocumentsCache.getYamlDocument(e),r=e.offsetAt(t.range.start);return(0,l.matchOffsetToDocument)(r,n).getNodeFromOffset(r)}function m(e,t){const n={};return n[e]=t,{changes:n}}t.YamlCodeActions=class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n.push(...this.getConvertToBlockStyleActions(t.context.diagnostics,e)),n.push(...this.getKeyOrderActions(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){if(!this.clientCapabilities?.window?.showDocument?.support)return[];const t=new Map;for(const n of e){const e=n.data?.schemaUri||[];for(const r of e)r&&(t.has(r)||t.set(r,[]),t.get(r).push(n))}const n=[];for(const e of t.keys()){const s=r.CodeAction.create(`Jump to schema location (${i.basename(e)})`,r.Command.create("JumpToSchema",o.YamlCommands.JUMP_TO_SCHEMA,e));s.diagnostics=t.get(e),n.push(s)}return n}getTabToSpaceConverting(e,t){const n=[],o=new s.TextBuffer(t),i=[];for(const s of e)if("Using tabs can lead to unpredictable results"===s.message){if(i.includes(s.range.start.line))continue;const e=o.getLineContent(s.range.start.line);let a=0,c="";for(let t=s.range.start.character;t<=s.range.end.character&&"\t"===e.charAt(t);t++)a++,c+=this.indentation;i.push(s.range.start.line);let l=s.range;a!==s.range.end.character-s.range.start.character&&(l=r.Range.create(s.range.start,r.Position.create(s.range.end.line,s.range.start.character+a))),n.push(r.CodeAction.create("Convert Tab to Spaces",m(t.uri,[r.TextEdit.replace(l,c)]),r.CodeActionKind.QuickFix))}if(0!==n.length){const e=[];for(let t=0;t<=o.getLineCount();t++){const n=o.getLineContent(t);let i=0,s="";for(let o=0;o0&&n.push(r.CodeAction.create("Convert all Tabs to Spaces",m(t.uri,e),r.CodeActionKind.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],o=new s.TextBuffer(t);for(const i of e)if(i.message.startsWith("Unused anchor")&&i.source===a.YAML_SOURCE){const e=r.Range.create(i.range.start,i.range.end),s=o.getText(e),a=o.getLineContent(e.end.line),l=(0,c.getFirstNonWhitespaceCharacterAfterOffset)(a,e.end.character);e.end.character=l;const u=r.CodeAction.create(`Delete unused anchor: ${s}`,m(t.uri,[r.TextEdit.del(e)]),r.CodeActionKind.QuickFix);u.diagnostics=[i],n.push(u)}return n}getConvertToBooleanActions(e,t){const n=[];for(const o of e)if('Incorrect type. Expected "boolean".'===o.message){const e=t.getText(o.range).toLocaleLowerCase();if('"true"'===e||'"false"'===e||"'true'"===e||"'false'"===e){const i=e.includes("true")?"true":"false";n.push(r.CodeAction.create("Convert to boolean",m(t.uri,[r.TextEdit.replace(o.range,i)]),r.CodeActionKind.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const o of e)if("flowMap"===o.code||"flowSeq"===o.code){const e=p(t,o);if((0,u.isMap)(e.internalNode)||(0,u.isSeq)(e.internalNode)){const i=(0,u.isMap)(e.internalNode)?"map":"sequence",s=new d.FlowStyleRewriter(this.indentation);n.push(r.CodeAction.create(`Convert to block style ${i}`,m(t.uri,[r.TextEdit.replace(o.range,s.write(e))]),r.CodeActionKind.QuickFix))}}return n}getKeyOrderActions(e,t){const n=[];for(const o of e)if("mapKeyOrder"===o?.code){let e=p(t,o);for(;e&&"object"!==e.type;)e=e.parent;if(e&&(0,u.isMap)(e.internalNode)){const o=h.cloneDeep(e.internalNode);if(!("block-map"!==o.srcToken.type&&"flow-collection"!==o.srcToken.type||"block-map"!==e.internalNode.srcToken.type&&"flow-collection"!==e.internalNode.srcToken.type)){o.srcToken.items.sort(((e,t)=>e.key&&t.key&&u.CST.isScalar(e.key)&&u.CST.isScalar(t.key)?e.key.source.localeCompare(t.key.source):!e.key&&t.key?-1:e.key&&!t.key?1:e.key||t.key?void 0:0));for(let t=0;t"newline"===e.type))??-1;let t=null;"block-scalar"===r.value?.type?t=r.value?.props?.find((e=>"newline"===e.type)):u.CST.isScalar(r.value)&&(t=r.value?.end?.find((e=>"newline"===e.type))),t&&e<0&&(n.value.end=n.value.end??[],n.value.end.push(t)),!t&&e>-1&&n.value.end.splice(e,1)}else"block-scalar"===n.value?.type&&(n.value.props.find((e=>"newline"===e.type))||n.value.props.push({type:"newline",indent:0,offset:n.value.offset,source:"\n"}))}}const i=r.Range.create(t.positionAt(e.offset),t.positionAt(e.offset+e.length));n.push(r.CodeAction.create("Fix key order for this map",m(t.uri,[r.TextEdit.replace(i,u.CST.stringify(o.srcToken))]),r.CodeActionKind.QuickFix))}}return n}}},26696:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YamlCodeLens=void 0;const r=n(91674),o=n(14065),i=n(92297),s=n(90318),a=n(51970),c=n(22266);t.YamlCodeLens=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){const t=[];try{const n=i.yamlDocumentsCache.getYamlDocument(e);let a=new Map;for(const t of n.documents){const n=await this.schemaService.getSchemaForResource(e.uri,t);n?.schema&&(a=new Map([...(0,s.getSchemaUrls)(n?.schema),...a]))}for(const e of a){const n=r.CodeLens.create(r.Range.create(0,0,0,0));n.command={title:(0,c.getSchemaTitle)(e[1],e[0]),command:o.YamlCommands.JUMP_TO_SCHEMA,arguments:[e[0]]},t.push(n)}}catch(e){this.telemetry?.sendError("yaml.codeLens.error",{error:(0,a.convertErrorToTelemetryMsg)(e)})}return t}resolveCodeLens(e){return e}}},13170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerCommands=void 0;const r=n(14065),o=n(99879);t.registerCommands=function(e,t){e.registerCommand(r.YamlCommands.JUMP_TO_SCHEMA,(async e=>{if(e){if(!e.startsWith("file")&&!/^[a-z]:[\\/]/i.test(e)){const t=o.URI.parse(e);e=o.URI.from({scheme:"json-schema",authority:t.authority,path:t.path.endsWith(".json")?t.path:t.path+".json",fragment:e}).toString()}/^[a-z]:[\\/]/i.test(e)&&(e=o.URI.file(e).toString()),await t.window.showDocument({uri:e,external:!1,takeFocus:!0})||t.window.showErrorMessage(`Cannot open ${e}`)}}))}},77115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YamlCompletion=void 0;const r=n(91674),o=n(93419),i=n(18132),s=n(3380),a=n(92778),c=n(93204),l=n(51970),u=n(77176),f=n(25944),d=n(85839),h=n(25791),p=n(99644),m=n(22266),g=u.loadMessageBundle(),y=/[\\]+"/g,v=r.CompletionItemKind.Class,b="__";t.YamlCompletion=class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation=""}configure(e){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t,n=!1,c=!0){const u=r.CompletionList.create([],!1);if(!this.completionEnabled)return u;const d=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),g=new a.TextBuffer(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const e=(0,s.guessIndentation)(g,2,!0);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}(0,f.setKubernetesParserOption)(d.documents,n);for(const t of d.documents)t.uri=e.uri;const y=e.offsetAt(t),S=e.getText();if(":"===S.charAt(y-1))return Promise.resolve(u);let w=(0,i.matchOffsetToDocument)(y,d);if(null===w)return Promise.resolve(u);w=w.clone();let[_,k]=w.getNodeFromPosition(y,g,this.indentation.length);const E=this.getCurrentWord(e,y);let x=g.getLineContent(t.line);const C=x.substring(t.character),T=/^[ ]+\n?$/.test(C);this.arrayPrefixIndentation="";let O=null;if(T){O=r.Range.create(t,r.Position.create(t.line,x.length));const e=0===x.trim().length,n=x.match(/^\s*(-)\s*$/);if(_&&(0,o.isScalar)(_)&&!e&&!n){const e=x.substring(0,t.character),n=e.match(/^[\s-]*([^:]+)?$/)||e.match(/:[ \t]((?!:[ \t]).*)$/);n?.[1]&&(O=r.Range.create(r.Position.create(t.line,t.character-n[1].length),r.Position.create(t.line,x.length)))}}else if(_&&(0,o.isScalar)(_)&&"null"===_.value){const t=e.positionAt(_.range[0]);t.character+=1;const n=e.positionAt(_.range[2]);n.character+=1,O=r.Range.create(t,n)}else if(_&&(0,o.isScalar)(_)&&_.value){const t=e.positionAt(_.range[0]);O=r.Range.create(t,e.positionAt(_.range[1]))}else if(_&&(0,o.isScalar)(_)&&null===_.value&&"-"===E)O=r.Range.create(t,t),this.arrayPrefixIndentation=" ";else{let n=y-E.length;n>0&&'"'===S[n-1]&&n--,O=r.Range.create(e.positionAt(n),t)}const A={},P={add:(e,t)=>{const n=!!e.parent;let o=e.label;if(!o)return void console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(e)}`);if((0,l.isString)(o)||(o=String(o)),o=o.replace(/[\n]/g,"↵"),o.length>60){const e=o.substr(0,57).trim()+"...";A[e]||(o=e)}if(e.insertText.endsWith("$1")&&!n&&(e.insertText=e.insertText.substr(0,e.insertText.length-2)),O&&O.start.line===O.end.line&&(e.textEdit=r.TextEdit.replace(O,e.insertText)),e.label=o,n)return void function(e){if(A[e.label]?.label===b)return;const t=e.parent.schema,n=(0,m.getSchemaTypeName)(t),r=t.markdownDescription||t.description;let o=u.items.find((e=>e.parent?.schema===t&&e.kind===v));o&&o.parent.insertTexts.includes(e.insertText)||(o?o.parent.insertTexts.push(e.insertText):(o={...e,label:n,documentation:r,sortText:"_"+n,kind:v},o.label=o.label||e.label,o.parent.insertTexts=[e.insertText],u.items.push(o)))}(e);this.arrayPrefixIndentation&&this.updateCompletionText(e,this.arrayPrefixIndentation+e.insertText);const i=A[o],s=i?.label!==b&&i?.insertText!==e.insertText;if(i){if(s){const n=this.mergeSimpleInsertTexts(o,i.insertText,e.insertText,t);n?this.updateCompletionText(i,n):(A[o]=e,u.items.push(e))}}else A[o]=e,u.items.push(e);i&&!i.documentation&&e.documentation&&(i.documentation=e.documentation)},error:e=>{this.telemetry?.sendError("yaml.completion.error",{error:(0,l.convertErrorToTelemetryMsg)(e)})},log:e=>{console.log(e)},getNumberOfProposals:()=>u.items.length,result:u,proposed:A};this.customTags&&this.customTags.length>0&&this.getCustomTagValueCompletions(P),x.endsWith("\n")&&(x=x.substr(0,x.length-1));try{const n=await this.schemaService.getSchemaForResource(e.uri,w);if((!n||n.errors.length)&&0===t.line&&0===t.character&&!(0,p.isModeline)(x)){const e={kind:r.CompletionItemKind.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:r.InsertTextFormat.PlainText};u.items.push(e)}if((0,p.isModeline)(x)||(0,h.isInComment)(d.tokens,y)){const e=x.indexOf("$schema=");return-1!==e&&e+"$schema=".length<=t.character&&this.schemaService.getAllSchemas().forEach((e=>{const t={kind:r.CompletionItemKind.Constant,label:e.name??e.uri,detail:e.description,insertText:e.uri,insertTextFormat:r.InsertTextFormat.PlainText,insertTextMode:r.InsertTextMode.asIs};u.items.push(t)})),u}if(!n||n.errors.length)return u;let i=null;if(!_)if(!w.internalDocument.contents||(0,o.isScalar)(w.internalDocument.contents)){const e=w.internalDocument.createNode({});e.range=[y,y+1,y+1],w.internalDocument.contents=e,w.updateFromInternalDocument(),_=e}else _=w.findClosestNode(y,g),k=!0;const s=_;if(_)if(0===x.length)_=w.internalDocument.contents;else{const n=w.getParent(_);if(n){if((0,o.isScalar)(_)){if(_.value){if((0,o.isPair)(n)){if(n.value===_){if(x.trim().length>0&&x.indexOf(":")<0){const e=this.createTempObjNode(E,_,w),t=w.getParent(n);if((0,o.isSeq)(w.internalDocument.contents)){const t=(0,h.indexOf)(w.internalDocument.contents,n);"number"==typeof t&&(w.internalDocument.set(t,e),w.updateFromInternalDocument())}else t&&((0,o.isMap)(t)||(0,o.isSeq)(t))?(t.set(n.key,e),w.updateFromInternalDocument()):(w.internalDocument.set(n.key,e),w.updateFromInternalDocument());i=e.items[0],_=e}else if(0===x.trim().length){const e=w.getParent(n);e&&(_=e)}}else if(n.key===_){const e=w.getParent(n);i=n,e&&(_=e)}}else if((0,o.isSeq)(n))if(x.trim().length>0){const e=this.createTempObjNode(E,_,w);n.delete(_),n.add(e),w.updateFromInternalDocument(),_=e}else _=n}else if(null===_.value)if((0,o.isPair)(n)){if(n.key===_)_=n;else if((0,o.isNode)(n.key)&&n.key.range){const r=w.getParent(n);if(k&&r&&(0,o.isMap)(r)&&(0,h.isMapContainsEmptyPair)(r))_=r;else{const s=e.positionAt(n.key.range[0]);if(t.character>s.character&&t.line!==s.line){const e=this.createTempObjNode(E,_,w);r&&((0,o.isMap)(r)||(0,o.isSeq)(r))?(r.set(n.key,e),w.updateFromInternalDocument()):(w.internalDocument.set(n.key,e),w.updateFromInternalDocument()),i=e.items[0],_=e}else s.character===t.character&&r&&(_=r)}}}else if((0,o.isSeq)(n))if("-"!==x.charAt(t.character-1)){const e=this.createTempObjNode(E,_,w);n.delete(_),n.add(e),w.updateFromInternalDocument(),_=e}else if("-"===x.charAt(t.character-1)){const e=this.createTempObjNode("",_,w);n.delete(_),n.add(e),w.updateFromInternalDocument(),_=e}else _=n}else if((0,o.isMap)(_)&&!k&&0===x.trim().length&&(0,o.isSeq)(n)){const e=g.getLineContent(t.line+1);g.getLineCount()!==t.line+1&&0!==e.trim().length||(_=n)}}else if((0,o.isScalar)(_)){const e=this.createTempObjNode(E,_,w);w.internalDocument.contents=e,w.updateFromInternalDocument(),i=e.items[0],_=e}else if((0,o.isMap)(_))for(const e of _.items)(0,o.isNode)(e.value)&&e.value.range&&e.value.range[0]===y+1&&(_=e.value);else if((0,o.isSeq)(_)&&"-"!==x.charAt(t.character-1)){const e=this.createTempObjNode(E,_,w);e.items=[],w.updateFromInternalDocument();for(const t of _.items)(0,o.isMap)(t)&&t.items.forEach((t=>{e.items.push(t)}));_=e}}if(_&&(0,o.isMap)(_)){const e=_.items;for(const t of e)i&&i===t||(0,o.isScalar)(t.key)&&(A[t.key.value+""]=r.CompletionItem.create(b));this.addPropertyCompletions(n,w,_,s,"",P,g,O,c),!n&&E.length>0&&'"'!==S.charAt(y-E.length-1)&&P.add({kind:r.CompletionItemKind.Property,label:E,insertText:this.getInsertTextForProperty(E,null,""),insertTextFormat:r.InsertTextFormat.Snippet})}const a={};this.getValueCompletions(n,w,_,y,e,P,a,c)}catch(e){this.telemetry?.sendError("yaml.completion.error",{error:(0,l.convertErrorToTelemetryMsg)(e)})}this.finalizeParentCompletion(u);const N=u.items.filter(((e,t,n)=>t===n.findIndex((t=>t.label===e.label&&t.insertText===e.insertText&&t.kind===e.kind))));return N?.length>0&&(u.items=N),u}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const o=e=>e.includes("\n"),i=e=>{const t=e.indexOf("\n");return t>0&&0===e.substring(t,e.length).trim().length};if(o(t)||o(n))return r&&i(t)&&!i(n)&&!n.startsWith("\n")?n:void 0;const s=this.getValuesFromInsertText(t),a=this.getValuesFromInsertText(n),c=Array.prototype.concat(s,a);return c.length?1===c.length?`${e}: \${1:${c[0]}}`:`${e}: \${1|${c.join(",")}|}`:void 0}getValuesFromInsertText(e){const t=e.substring(e.indexOf(":")+1).trim();if(!t)return[];const n=t.match(/^\${1[|:]([^|]*)+\|?}$/);return n?n[1].split(","):[t]}finalizeParentCompletion(e){e.items.forEach((e=>{if("parent"in e){const t=e.parent.indent||"";let n=(e=>{let t=0;return e.map((e=>{const n=e.match(/\$([0-9]+)|\${[0-9]+:/g);if(!n)return e;const r=n.map((e=>+e.replace(/\${([0-9]+)[:|]/g,"$1").replace("$",""))).reduce(((e,t)=>t>e?t:e),0),o=e.replace(/\$([0-9]+)/g,((e,n)=>"$"+(+n+t))).replace(/\${([0-9]+)[:|]/g,((e,n)=>"${"+(+n+t)+":"));return t+=r,o}))})(e.parent.insertTexts).join(`\n${t}`);n.endsWith("$1")&&(n=n.substring(0,n.length-2)),e.insertText=this.arrayPrefixIndentation+n,e.textEdit&&(e.textEdit.newText=e.insertText);const o=n.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),i=e.documentation?[e.documentation,"","----",""]:[];e.documentation={kind:r.MarkupKind.Markdown,value:[...i,"```yaml",t+o,"```"].join("\n")},delete e.parent}}))}createTempObjNode(e,t,n){const r={};r[e]=null;const o=n.internalDocument.createNode(r);return o.range=t.range,o.items[0].key.range=t.range,o.items[0].value.range=t.range,o}addPropertyCompletions(e,t,n,i,s,a,c,l,u){const f=t.getMatchingSchemas(e.schema,-1,null,u),h=c.getText(l),p=c.getLineContent(l.start.line),g=0===p.trim().length,y=-1!==p.indexOf(":"),v=0===p.trimLeft().indexOf("-"),b=t.getParent(n),S=f.find((e=>e.node.internalNode===i&&e.schema.properties)),w=f.filter((e=>e.schema.oneOf)).map((e=>e.schema.oneOf))[0];let _=!1;w?.length{f[t]?.schema.oneOf||f[t]?.schema.properties!==e.properties||(_=!0)}));for(const e of f){if((e.node.internalNode===n&&!S||e.node.internalNode===i&&!y||e.node.parent?.internalNode===i&&!y)&&!e.inverted){this.collectDefaultSnippets(e.schema,s,a,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:v});const t=e.schema.properties;if(t){const u=e.schema.maxProperties;if(void 0===u||void 0===n.items||n.items.length=0){const r=l.end.character-l.start.character;d=" "+e.slice(t+1,n.range[1]-r)}}d+=this.arrayPrefixIndentation,"array"===f.type&&(t=n.items.find((e=>(0,o.isScalar)(e.key)&&e.key.range&&e.key.value===u&&(0,o.isScalar)(e.value)&&!e.value.value&&c.getPosition(e.key.range[2]).line===l.end.line-1)))&&t&&(Array.isArray(f.items)?this.addSchemaValueCompletions(f.items[0],s,a,{},"property"):"object"==typeof f.items&&"object"===f.items.type&&this.addArrayItemValueCompletion(f.items,s,a));let p=u;u.startsWith(h)&&y||(p=this.getInsertTextForProperty(u,f,s,d+this.indentation));const m=(0,o.isScalar)(i)&&null===i.value||(0,o.isMap)(i)&&0===i.items.length,v=e.schema.required?.length>0;this.parentSkeletonSelectedFirst&&m&&v||a.add({kind:r.CompletionItemKind.Property,label:u,insertText:p,insertTextFormat:r.InsertTextFormat.Snippet,documentation:this.fromMarkup(f.markdownDescription)||f.description||""},_),e.schema.required?.includes(u)&&a.add({label:u,insertText:this.getInsertTextForProperty(u,f,s,d+this.indentation),insertTextFormat:r.InsertTextFormat.Snippet,documentation:this.fromMarkup(f.markdownDescription)||f.description||"",parent:{schema:e.schema,indent:d}})}}}if(b&&(0,o.isSeq)(b)&&(0,m.isPrimitiveType)(e.schema)&&this.addSchemaValueCompletions(e.schema,s,a,{},"property",Array.isArray(b.items)),e.schema.propertyNames&&e.schema.additionalProperties&&"object"===e.schema.type){const t=(0,d.asSchema)(e.schema.propertyNames),n=t.title||"property";a.add({kind:r.CompletionItemKind.Property,label:n,insertText:`\${1:${n}}: `,insertTextFormat:r.InsertTextFormat.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description||""})}}b&&e.node.internalNode===b&&e.schema.defaultSnippets&&(1===n.items.length?this.collectDefaultSnippets(e.schema,s,a,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,s,a,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,i,s,a,c){let l=null;if(n&&(0,o.isScalar)(n)&&(n=t.getParent(n)),n){if((0,o.isPair)(n)){const e=n.value;if(e&&e.range&&r>e.range[0]+e.range[2])return;l=(0,o.isScalar)(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(null!==l||(0,o.isSeq)(n))){const u="",f=t.getMatchingSchemas(e.schema,-1,null,c);for(const e of f)if(e.node.internalNode===n&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,u,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),(0,o.isSeq)(n)&&n.items))if(Array.isArray(e.schema.items)){const t=this.findItemAtOffset(n,i,r);t1)&&(s=" $1"),i+s+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let o="";return e.properties?(Object.keys(e.properties).forEach((i=>{const s=e.properties[i];let a=Array.isArray(s.type)?s.type[0]:s.type;if(a||(s.anyOf&&(a="anyOf"),s.properties&&(a="object"),s.items&&(a="array")),e.required&&e.required.indexOf(i)>-1)switch(a){case"boolean":case"string":case"number":case"integer":case"anyOf":{let e=s.default||s.const;e?("string"===a&&(e=w(e)),o+=`${n}${i}: \${${r++}:${e}}\n`):o+=`${n}${i}: $${r++}\n`;break}case"array":{const e=this.getInsertTextForArray(s.items,t,r++,n),a=e.insertText.split("\n");let c=e.insertText;if(a.length>1){for(let e=1;ethis.addSchemaValueCompletions(e,t,n,r,o,i))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,o,i))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,o,i))))}collectTypes(e,t){if(Array.isArray(e.enum)||(0,l.isDefined)(e.const))return;const n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,o=0){let i=!1;if((0,l.isDefined)(e.default)){let s,a=e.type,c=e.default;for(let e=o;e>0;e--)c=[c],a="array";s="object"==typeof c?"Default value":c.toString().replace(y,'"'),n.add({kind:this.getSuggestionKind(a),label:s,insertText:this.getInsertTextForValue(c,t,a),insertTextFormat:r.InsertTextFormat.Snippet,detail:g("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((s=>{let a=e.type,c=s;for(let e=o;e>0;e--)c=[c],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,t,a),insertTextFormat:r.InsertTextFormat.Snippet}),i=!0})),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),i||"object"!=typeof e.items||Array.isArray(e.items)||this.addDefaultValueCompletions(e.items,t,n,o+1)}addEnumValueCompletions(e,t,n,o){if((0,l.isDefined)(e.const)&&!o&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:r.InsertTextFormat.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let o=0,i=e.enum.length;o{0!==n||t.startsWith("-")?e[` ${t}`]=f[t]:e[`- ${t}`]=f[t]})),f=e}const c=Object.keys(n.proposed).filter((e=>n.proposed[e].label===b));if(a=this.getInsertTextForSnippetValue(f,t,o,c),""===a&&f)continue;d=d||this.getLabelForSnippetValue(f)}else if("string"==typeof s.bodyText){let e="",n="",r="";for(let t=i;t>0;t--)e=e+r+"[\n",n=n+"\n"+r+"]",r+=this.indentation,u="array";a=e+r+s.bodyText.split("\n").join("\n"+r)+n+t,d=d||a,c=a.replace(/[\n]/g,"")}n.add({kind:s.suggestionKind||this.getSuggestionKind(u),label:d,sortText:s.sortText||s.label,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:a,insertTextFormat:r.InsertTextFormat.Snippet,filterText:c})}}getInsertTextForSnippetValue(e,t,n,r,o){return(0,c.stringifyObject)(e,"",(e=>{if("string"==typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return`"${e}"`}return e}),{...n,indentation:this.indentation,existingProps:r},o)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:r.InsertTextFormat.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:r.InsertTextFormat.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){(0,i.filterInvalidCustomTags)(this.customTags).forEach((t=>{const n=t.split(" ")[0];this.addCustomTagValueCompletion(e," ",n)}))}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:r.InsertTextFormat.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),n=this.fromMarkup(`${e}\n \`\`\`\n${t}\n\`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return r.CompletionItemKind.Value;switch(e){case"string":default:return r.CompletionItemKind.Value;case"object":return r.CompletionItemKind.Module;case"property":return r.CompletionItemKind.Property}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:r.MarkupKind.Markdown,value:e}}doesSupportMarkdown(){if(void 0===this.supportsMarkdown){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(r.MarkupKind.Markdown)}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let t=e.items.length-1;t>=0;t--){const r=e.items[t];if((0,o.isNode)(r)&&r.range){if(n>r.range[1])return t;if(n>=r.range[0])return t}}return 0}};const S=/^\d+$/;function w(e){let t;if(t="string"==typeof e?e:""+e,0===t.length)return t;if("true"===t||"false"===t||"null"===t||S.test(t))return`"${t}"`;-1!==t.indexOf('"')&&(t=t.replace(y,'"'));let n=!isNaN(parseInt(t))||"@"===t.charAt(0);if(!n){let e=t.indexOf(":",0);for(;e>0&&e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YamlDefinition=void 0;const r=n(91674),o=n(93419),i=n(92297),s=n(18132),a=n(51970),c=n(92778);t.YamlDefinition=class{constructor(e){this.telemetry=e}getDefinition(e,t){try{const n=i.yamlDocumentsCache.getYamlDocument(e),a=e.offsetAt(t.position),l=(0,s.matchOffsetToDocument)(a,n);if(l){const[t]=l.getNodeFromPosition(a,new c.TextBuffer(e));if(t&&(0,o.isAlias)(t)){const n=t.resolve(l.internalDocument);if(n&&n.range){const t=r.Range.create(e.positionAt(n.range[0]),e.positionAt(n.range[2])),o=r.Range.create(e.positionAt(n.range[0]),e.positionAt(n.range[1]));return[r.LocationLink.create(e.uri,t,o)]}}}}catch(e){this.telemetry?.sendError("yaml.definition.error",{error:(0,a.convertErrorToTelemetryMsg)(e)})}}}},80259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFoldingRanges=void 0;const r=n(91674),o=n(92297);function i(e,t){const n=e.positionAt(t.offset);let o=e.positionAt(t.offset+t.length);const i=e.getText(r.Range.create(n,o)),s=i.length-i.trimRight().length;return s>0&&(o=e.positionAt(t.offset+t.length-s)),r.FoldingRange.create(n.line,o.line,n.character,o.character)}t.getFoldingRanges=function(e,t){if(!e)return;const n=[],r=o.yamlDocumentsCache.getYamlDocument(e);for(const t of r.documents)r.documents.length>1&&n.push(i(e,t.root)),t.visit((t=>{if("object"===t.type&&"array"===t.parent?.type&&n.push(i(e,t)),"property"===t.type&&t.valueNode)switch(t.valueNode.type){case"array":case"object":n.push(i(e,t));break;case"string":{const r=e.positionAt(t.offset),o=e.positionAt(t.valueNode.offset+t.valueNode.length);r.line!==o.line&&n.push(i(e,t));break}default:return!0}return!0}));const s=t&&t.rangeLimit;return"number"!=typeof s||n.length<=s?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}},90152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLFormatter=void 0;const r=n(91674),o=n(63920),i=n(84949);t.YAMLFormatter=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t={}){if(!this.formatterEnabled)return[];try{const n=e.getText(),s={parser:"yaml",plugins:[i],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:"always"===t.proseWrap?"always":"never"===t.proseWrap?"never":"preserve",printWidth:t.printWidth},a=o.format(n,s);return[r.TextEdit.replace(r.Range.create(r.Position.create(0,0),e.positionAt(n.length)),a)]}catch(e){return[]}}}},85929:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLHover=void 0;const r=n(91674),o=n(18132),i=n(25944),s=n(92297),a=n(99879),c=n(71017),l=n(51970),u=n(93419);function f(e){return 0===e.length?e:(e.endsWith("\n")||(e+="\n"),e+"\n")}function d(e){return-1!==e.indexOf("`")?"`` "+e+" ``":e}t.YAMLHover=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover,this.indentation=e.indentation)}doHover(e,t,n=!1){try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const r=s.yamlDocumentsCache.getYamlDocument(e),a=e.offsetAt(t),c=(0,o.matchOffsetToDocument)(a,r);if(null===c)return Promise.resolve(void 0);(0,i.setKubernetesParserOption)(r.documents,n);const l=r.documents.indexOf(c);return c.currentDocIndex=l,this.getHover(e,t,c)}catch(e){this.telemetry?.sendError("yaml.hover.error",{error:(0,l.convertErrorToTelemetryMsg)(e)})}}getHover(e,t,n){const o=e.offsetAt(t);let i=n.getNodeFromOffset(o);if(!i||("object"===i.type||"array"===i.type)&&o>i.offset+1&&oe.replace(/\|\|\s*$/,"");return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&i&&!e.errors.length){const o=n.getMatchingSchemas(e.schema,i.offset);let s,p,m=[];const g=[],y=[];o.every((e=>((e.node===i||"property"===i.type&&i.valueNode===e.node)&&!e.inverted&&e.schema&&(s=s||e.schema.title||e.schema.closestTitle,p=p||e.schema.markdownDescription||this.toMarkdown(e.schema.description),e.schema.enum&&(m=e.schema.markdownEnumDescriptions?e.schema.markdownEnumDescriptions:e.schema.enumDescriptions?e.schema.enumDescriptions.map(this.toMarkdown,this):[],e.schema.enum.forEach(((e,t)=>{"string"!=typeof e&&(e=JSON.stringify(e)),y.push({value:e,description:m[t]})}))),e.schema.anyOf&&function(e,t,n){let r=0;for(const o of t)e===o.node&&o.schema!==n&&n.anyOf.forEach((e=>{o.schema.title===e.title&&o.schema.description===e.description&&o.schema.properties===e.properties&&r++}));return r===n.anyOf.length}(i,o,e.schema)&&(s="",p="",e.schema.anyOf.forEach(((t,n)=>{s+=t.title||e.schema.closestTitle||"",p+=t.markdownDescription||this.toMarkdown(t.description)||"",n!==e.schema.anyOf.length-1&&(s+=" || ",p+=" || ")})),s=h(s),p=h(p)),e.schema.examples&&e.schema.examples.forEach((e=>{g.push((0,u.stringify)(e,null,2))}))),!0)));let v="";return s&&(v="#### "+this.toMarkdown(s)),p&&(v=f(v),v+=p),0!==y.length&&(v=f(v),v+="Allowed Values:\n\n",y.forEach((e=>{e.description?v+=`* \`${d(e.value)}\`: ${e.description}\n`:v+=`* \`${d(e.value)}\`\n`}))),0!==g.length&&g.forEach((e=>{v=f(v),v+="Example:\n\n",v+=`\`\`\`yaml\n${e}\`\`\`\n`})),v.length>0&&e.schema.url&&(v=f(v),v+=`Source: [${function(e){let t="JSON Schema";const n=e.url;if(n){const e=a.URI.parse(n);t=c.basename(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema)}](${e.schema.url})`),t=v,{contents:{kind:r.MarkupKind.Markdown,value:t},range:l}}var t;return null}))}toMarkdown(e){if(e){let t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3");if(t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),void 0!==this.indentation){const e=new RegExp(` {${this.indentation.length}}`,"g");t=t.replace(e," ")}return t}}}},95450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YamlLinks=void 0;const r=n(67975),o=n(92297),i=n(51970);t.YamlLinks=class{constructor(e){this.telemetry=e}findLinks(e){try{const t=o.yamlDocumentsCache.getYamlDocument(e),n=[];for(const o of t.documents)n.push((0,r.findLinks)(e,o));return Promise.all(n).then((e=>[].concat(...e)))}catch(e){this.telemetry?.sendError("yaml.documentLink.error",{error:(0,i.convertErrorToTelemetryMsg)(e)})}}}},4056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doDocumentOnTypeFormatting=void 0;const r=n(91674),o=n(92778);t.doDocumentOnTypeFormatting=function(e,t){const{position:n}=t,i=new o.TextBuffer(e);if("\n"===t.ch){const e=i.getLineContent(n.line-1);if(e.trimRight().endsWith(":")){const o=i.getLineContent(n.line),s=o.substring(n.character,o.length),a=-1!==e.indexOf(" - ");if(0===s.trimRight().length){const i=n.character-(e.length-e.trimLeft().length);if(i===t.options.tabSize&&!a)return;const s=[];return o.length>0&&s.push(r.TextEdit.del(r.Range.create(n,r.Position.create(n.line,o.length-1)))),s.push(r.TextEdit.insert(n," ".repeat(t.options.tabSize+(a?2-i:0)))),s}if(a)return[r.TextEdit.insert(n," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[r.TextEdit.insert(n," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[r.TextEdit.insert(n,"- ")];if(e.includes(" - ")&&e.includes(": "))return[r.TextEdit.insert(n," ")]}}},39031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLSchemaService=t.FilePatternAssociation=t.MODIFICATION_ACTIONS=void 0;const r=n(72671),o=n(4209),i=n(99879),s=n(77176),a=n(67953),c=n(93419),l=n(71017),u=n(99644),f=n(80585),d=n(22266),h=s.loadMessageBundle(),p=new f.default,m=n(12365),g=p.compile(m);var y;(y=t.MODIFICATION_ACTIONS||(t.MODIFICATION_ACTIONS={}))[y.delete=0]="delete",y[y.add=1]="add",y[y.deleteAll=2]="deleteAll",t.FilePatternAssociation=class{constructor(e){try{this.patternRegExp=new RegExp((0,a.convertSimple2RegExpPattern)(e)+"$")}catch(e){this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}};class v extends o.JSONSchemaService{constructor(e,t,n){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const n of this.filePatternAssociations){const r=n.uris[0];if(t.has(r))continue;t.add(r);const o={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:e,description:t,versions:n}=this.schemaUriToNameAndDescription.get(r);o.name=e,o.description=t,o.fromStore=!0,o.versions=n}e.push(o)}return e}async resolveSchemaContent(e,t,n){const r=e.errors.slice(0);let i=e.schema;const s=this.contextService;if(!g(i)){const n=[];for(const e of g.errors)n.push(`${e.instancePath} : ${e.message}`);r.push(`Schema '${(0,d.getSchemaTitle)(e.schema,t)}' is not valid:\n${n.join("\n")}`)}const a=(e,t,n,o)=>{const i=((e,t)=>{if(!t)return e;let n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((e=>(n=n[e],!n))),n})(t,o);if(i)for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=i[t]);else r.push(h("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,n))},c=(e,t,n,o,i)=>{s&&!/^\w+:\/\/.*/.test(t)&&(t=s.resolveRelativePath(t,o)),t=this.normalizeId(t);const c=this.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((o=>{if(i[t]=!0,o.errors.length){const e=n?t+"#"+n:t;r.push(h("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,o.errors[0]))}return a(e,o.schema,t,n),e.url=t,l(e,o.schema,t,c.dependencies)}))},l=async(e,t,n,r)=>{if(!e||"object"!=typeof e)return null;const o=[e],s=new Set,l=[],u=e=>{const i=new Set;for(;e.$ref;){const o=e.$ref,s=o.split("#",2);if(e._$ref=e.$ref,delete e.$ref,s[0].length>0)return void l.push(c(e,s[0],s[1],n,r));i.has(o)||(a(e,t,n,s[1]),i.add(o))}((...e)=>{for(const t of e)"object"==typeof t&&o.push(t)})(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),((...e)=>{for(const t of e)if("object"==typeof t)for(const e in t){const n=t[e];"object"==typeof n&&o.push(n)}})(e.definitions,e.properties,e.patternProperties,e.dependencies),((...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)"object"==typeof e&&o.push(e)})(e.anyOf,e.allOf,e.oneOf,e.items,e.schemaSequence)};if(n.indexOf("#")>0){const e=n.split("#",2);if(e[0].length>0&&e[1].length>0){const t={};await c(t,e[0],e[1],n,r);for(const e in i)"required"!==e&&Object.prototype.hasOwnProperty.call(i,e)&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);i=t}}for(;o.length;){const e=o.pop();s.has(e)||(s.add(e),u(e))}return Promise.all(l)};return await l(i,i,t,n),new o.ResolvedSchema(i,r)}getSchemaForResource(e,t){const n=n=>{const r=super.createCombinedSchema(e,n);return r.getResolvedSchema().then((e=>(e.schema&&"object"==typeof e.schema&&(e.schema.url=r.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new o.ResolvedSchema(e.schema.schemaSequence[t.currentDocIndex]):e)))},r=()=>{const t=Object.create(null),r=[];for(const n of this.filePatternAssociations)if(n.matchesPattern(e))for(const e of n.getURIs())t[e]||(r.push(e),t[e]=!0);if(r.length>0){const e=this.highestPrioritySchemas(r);return n(e)}return Promise.resolve(null)},s=(()=>{let n=(0,u.getSchemaFromModeline)(t);if(void 0!==n){if(!n.startsWith("file:")&&!n.startsWith("http")){let t="";if(n.indexOf("#")>0){const e=n.split("#",2);n=e[0],t=e[1]}if(l.isAbsolute(n))n=i.URI.file(n).toString();else{const t=i.URI.parse(e);n=i.URI.file(l.resolve(l.parse(t.fsPath).dir,n)).toString()}t.length>0&&(n+="#"+t)}return n}})();return s?n([s]):this.customSchemaProvider?this.customSchemaProvider(e).then((e=>Array.isArray(e)?0===e.length?r():Promise.all(e.map((e=>this.resolveCustomSchema(e,t)))).then((e=>({errors:[],schema:{allOf:e.map((e=>e.schema))}})),(()=>r())):e?this.resolveCustomSchema(e,t):r())).then((e=>e),(()=>r())):r()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,(new Set).add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach((e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach((r=>{r>t&&(t=r);let o=n.get(r);o?(o=o.concat(e),n.set(r,o)):n.set(r,[e])}))})),n.get(t)||[]}async resolveCustomSchema(e,t){const n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return r.schema&&"object"==typeof r.schema&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new o.ResolvedSchema(r.schema.schemaSequence[t.currentDocIndex],r.errors):r}async saveSchema(e,t){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,(new Set).add(r.SchemaPriority.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach((e=>{this.deleteSchema(e)})),Promise.resolve(void 0)}async deleteSchema(e){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}async addContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&(n[e.key]=e.content),await this.saveSchema(e.schema,t.schema)}}async deleteContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);"object"==typeof n&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const e of n)""!==e&&(this.resolveNext(r,e),r=r[e]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if("object"==typeof e&&"string"!=typeof t)throw new Error("Expected a string after the object")}normalizeId(e){try{return i.URI.parse(e).toString()}catch(t){return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then((n=>{if(n.errors&&void 0===n.schema)return t(e).then((t=>{if(!t){const t=h("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",b(e),n.errors);return new o.UnresolvedSchema({},[t])}try{const e=(0,c.parse)(t);return new o.UnresolvedSchema(e,[])}catch(t){const n=h("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",b(e),t);return new o.UnresolvedSchema({},[n])}}),(e=>{let t=e.toString();const n=e.toString().split("Error: ");return n.length>1&&(t=n[1]),new o.UnresolvedSchema({},[t])}));if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:t,description:r,versions:o}=this.schemaUriToNameAndDescription.get(e);n.schema.title=t??n.schema.title,n.schema.description=r??n.schema.description,n.schema.versions=o??n.schema.versions}return n}))}registerExternalSchema(e,t,n,r,o,i){return(r||o)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:o,versions:i}),super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}}function b(e){try{const t=i.URI.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}t.YAMLSchemaService=v},66423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectionRanges=void 0;const r=n(91674),o=n(92297);t.getSelectionRanges=function(e,t){const n=o.yamlDocumentsCache.getYamlDocument(e);return t.map((t=>{const o=function(t){const r=e.offsetAt(t),o=[];for(const c of n.documents){let n,l;for(c.visit((e=>{const o=e.offset+e.length;if(or){const n=i(e,t);if(!n||n>r)return!0;a=n}return(!n||a>=n.offset)&&(n=e,l=a),!0}));n;){const t=l??n.offset,i=n.offset+n.length,s={start:e.positionAt(t),end:e.positionAt(i)},c=(a=e.getText(s)).endsWith("\r\n")?a.substring(0,a.length-2):a.endsWith("\n")?a.substring(0,a.length-1):a,u=t+c.length;u>=r&&(s.end=e.positionAt(u));const f=(e,t)=>c.startsWith(e)&&c.endsWith(t||e);("string"===n.type&&(f("'")||f('"'))||"object"===n.type&&f("{","}")||"array"===n.type&&f("[","]"))&&o.push({start:e.positionAt(t+1),end:e.positionAt(i-1)}),o.push(s),n=n.parent,l=void 0}if(o.length>0)break}var a;return o.reverse()}(t);let a;for(const e of o)a=r.SelectionRange.create(e,a);return a??r.SelectionRange.create({start:t,end:t})}));function i(t,n){const r=e.positionAt(t.offset);if(r.line===n.line){if("array"===t.parent?.type&&"- "===s(t.offset-2,t.offset))return t.offset-2;if("array"===t.type||"object"===t.type){const t={line:r.line,character:0};if(0===e.getText({start:t,end:r}).trim().length)return e.offsetAt(t)}}}function s(t,n){return e.getText({start:e.positionAt(t),end:e.positionAt(n)})}}},66553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLValidation=t.yamlDiagToLSDiag=void 0;const r=n(91674),o=n(93020),i=n(85839),s=n(92778),a=n(92297),c=n(51970),l=n(50893),u=n(31950),f=n(65751);t.yamlDiagToLSDiag=(e,t)=>{const n=t.positionAt(e.location.start),o={start:n,end:e.location.toLineEnd?r.Position.create(n.line,new s.TextBuffer(t).getLineLength(n.line)):t.positionAt(e.location.end)};return r.Diagnostic.create(o,e.message,e.severity,e.code,i.YAML_SOURCE)},t.YAMLValidation=class{constructor(e,t){this.telemetry=t,this.validators=[],this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new o.JSONValidation(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,"forbid"!==e.flowMapping&&"forbid"!==e.flowSequence||this.validators.push(new u.YAMLStyleValidator(e)),e.keyOrdering&&this.validators.push(new f.MapKeyOrderValidator)),this.validators.push(new l.UnusedAnchorsValidator)}async doValidation(e,n=!1){if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const t=a.yamlDocumentsCache.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let o=0;for(const i of t.documents){i.isKubernetes=n,i.currentDocIndex=o,i.disableAdditionalProperties=this.disableAdditionalProperties,i.uri=e.uri;const t=await this.jsonValidation.doValidation(e,i),s=i;s.errors.length>0&&r.push(...s.errors),s.warnings.length>0&&r.push(...s.warnings),r.push(...t),r.push(...this.runAdditionalValidators(e,i)),o++}}catch(e){this.telemetry?.sendError("yaml.validation.error",{error:(0,c.convertErrorToTelemetryMsg)(e)})}let o;const s=new Set,l=[];for(let a of r){if(n&&a.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(a,"location")&&(a=(0,t.yamlDiagToLSDiag)(a,e)),a.source||(a.source=i.YAML_SOURCE),o&&o.message===a.message&&o.range.end.line===a.range.start.line&&Math.abs(o.range.end.character-a.range.end.character)>=1){o.range.end=a.range.end;continue}o=a;const r=a.range.start.line+" "+a.range.start.character+" "+a.message;s.has(r)||(l.push(a),s.add(r))}return l}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}}},18132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayEqual=t.filterInvalidCustomTags=t.matchOffsetToDocument=t.removeDuplicatesObj=t.getLineOffsets=void 0,t.getLineOffsets=function(e){const t=[],n=e;let r=!0;for(let e=0;e0&&t.push(n.length),t},t.removeDuplicatesObj=function(e){const t=new Set,n=[];for(const r in e){const o=e[r],i=JSON.stringify(o);t.has(i)||(n.push(o),t.add(i))}return n},t.matchOffsetToDocument=function(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return 1===t.documents.length?t.documents[0]:null},t.filterInvalidCustomTags=function(e){const t=["mapping","scalar","sequence"];return e?e.filter((e=>{if("string"==typeof e){const n=e.split(" "),r=n[1]&&n[1].toLowerCase()||"scalar";return"map"!==r&&-1!==t.indexOf(r)}return!1})):[]},t.isArrayEqual=function(e,t){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}},25791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCollectionItem=t.isInComment=t.indexOf=t.isMapContainsEmptyPair=t.getParent=void 0;const r=n(93419);function o(e){return void 0!==e.start}function i(e,t,n){let o=n(t,e);if("symbol"==typeof o)return o;for(const s of["key","value"]){const a=t[s];if(a&&"items"in a){for(let t=0;t{if(o===t)return n=i[i.length-1],r.visit.BREAK})),!(0,r.isDocument)(n))return n},t.isMapContainsEmptyPair=function(e){if(e.items.length>1)return!1;const t=e.items[0];return(0,r.isScalar)(t.key)&&(0,r.isScalar)(t.value)&&""===t.key.value&&!t.value.value},t.indexOf=function(e,t){for(const[n,r]of e.items.entries())if(t===r)return n},t.isInComment=function(e,t){let n=!1;for(const s of e){if("document"===s.type)i([],s,(e=>{if(o(e)&&"comment"===e.value?.type){if(s.offset<=t&&e.value.source.length+e.value.offset>=t)return n=!0,r.visit.BREAK}else if("comment"===e.type&&e.offset<=t&&e.offset+e.source.length>=t)return n=!0,r.visit.BREAK}));else if("comment"===s.type&&s.offset<=t&&s.source.length+s.offset>=t)return!0;if(n)break}return n},t.isCollectionItem=o},78059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlowStyleRewriter=void 0;const r=n(93419);t.FlowStyleRewriter=class{constructor(e){this.indentation=e}write(e){if("flow-collection"!==e.internalNode.srcToken.type)return null;const t=e.internalNode.srcToken,n="flow-map-start"===t.start.type?"block-map":"block-seq",o=e.parent.type,i={type:n,offset:t.offset,indent:t.indent,items:[]};for(const e of t.items)r.CST.visit(e,(({key:e,sep:t,value:s})=>{if("block-map"===n){const n=[{type:"space",indent:0,offset:e.offset,source:this.indentation}];"property"===o&&n.unshift({type:"newline",indent:0,offset:e.offset,source:"\n"}),i.items.push({start:n,key:e,sep:t,value:s})}else"block-seq"===n&&i.items.push({start:[{type:"newline",indent:0,offset:s.offset,source:"\n"},{type:"space",indent:0,offset:s.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:s.offset,source:"-"},{type:"space",indent:0,offset:s.offset,source:" "}],value:s});if("flow-collection"===s.type)return r.visit.SKIP}));return r.CST.stringify(i)}}},3380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guessIndentation=void 0;class n{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function r(e,t,n,r,o){let i;for(o.spacesDiff=0,o.looksLikeAlignment=!1,i=0;i0&&a>0)return;if(c>0&&l>0)return;const u=Math.abs(a-l),f=Math.abs(s-c);if(0===u)return o.spacesDiff=f,void(f>0&&0<=c-1&&c-10?s++:g>1&&a++,r(c,l,u,m,d),d.looksLikeAlignment&&(!o||t!==d.spacesDiff))continue;const v=d.spacesDiff;v<=8&&f[v]++,c=u,l=m}let h=o;s!==a&&(h=s{const n=f[t];n>e&&(e=n,p=t)})),4===p&&f[4]>0&&f[2]>0&&f[2]>=f[4]/2&&(p=2)}return{insertSpaces:h,tabSize:p}}},93204:(e,t)=>{"use strict";function n(e,t){const n={};for(let r=0;r0?r+i.indentation:"";if(Array.isArray(t)){if(a+=1,0===t.length)return"";let l="";for(let u=0;u0?"\n":"",l=!0;for(let u=0;u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertErrorToTelemetryMsg=t.isIterable=t.isString=t.isBoolean=t.isDefined=t.isNumber=t.equals=void 0,t.equals=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(typeof t!=typeof n)return!1;if("object"!=typeof t)return!1;if(Array.isArray(t)!==Array.isArray(n))return!1;let r,o;if(Array.isArray(t)){if(t.length!==n.length)return!1;for(r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.workspaceFoldersChanged=t.relativeToAbsolutePath=t.isRelativePath=void 0;const r=n(71017),o=n(99879);t.isRelativePath=e=>/^(((\.\.?)|([\w-@. ]+))(\/|\\\\?))*[\w-. ]*\.[\w-]+$/i.test(e),t.relativeToAbsolutePath=(e,t,n)=>{for(const t of e)if(n.startsWith(t.name)){const e=o.URI.parse(t.uri).fsPath,i=n.split(r.sep);return i.shift(),o.URI.file((0,r.join)(e,i.join())).toString()}return t?o.URI.file((0,r.join)(t.fsPath,n)).toString():(0,r.normalize)(n)},t.workspaceFoldersChanged=(e,t)=>(e=e.filter((e=>!t.removed.some((t=>t.uri===e.uri))))).filter((e=>!t.added.some((t=>t.uri===e.uri)))).concat(t.added)},90318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaUrls=t.checkSchemaURI=t.JSON_SCHEMASTORE_URL=t.KUBERNETES_SCHEMA_URL=void 0;const r=n(51970),o=n(91010);function i(e,t){e.allOf&&s(e.allOf,t),e.anyOf&&s(e.anyOf,t),e.oneOf&&s(e.oneOf,t)}function s(e,t){for(const n of e)(0,r.isBoolean)(n)||!n.url||t.has(n.url)||t.set(n.url,n)}t.KUBERNETES_SCHEMA_URL="https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json",t.JSON_SCHEMASTORE_URL="https://www.schemastore.org/api/json/catalog.json",t.checkSchemaURI=function(e,n,r,i){return"kubernetes"===r.trim().toLowerCase()?(i.send({name:"yaml.schema.configured",properties:{kubernetes:!0}}),t.KUBERNETES_SCHEMA_URL):(0,o.isRelativePath)(r)?(0,o.relativeToAbsolutePath)(e,n,r):r},t.getSchemaUrls=function(e){const t=new Map;return e?(e.url?e.url.startsWith("schemaservice://combinedSchema/")?i(e,t):t.set(e.url,e):i(e,t),t):t}},22266:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAnyOfAllOfOneOfType=t.isPrimitiveType=t.getSchemaTitle=t.getSchemaRefTypeTitle=t.getSchemaTypeName=void 0;const r=n(99879),o=n(71017);function i(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error(`$ref (${e}) not parsed properly`)),n}function s(e){return!!(e.anyOf||e.allOf||e.oneOf)}t.getSchemaTypeName=function(e){const t=e.type&&e.closestTitle;return e.title?e.title:e.$id?i(e.$id):e.$ref||e._$ref?i(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(" | "):t?e.type.concat("(",e.closestTitle,")"):e.type||e.closestTitle},t.getSchemaRefTypeTitle=i,t.getSchemaTitle=function(e,t){const n=r.URI.parse(t);let i=o.basename(n.fsPath);return o.extname(n.fsPath)||(i+=".json"),Object.getOwnPropertyDescriptor(e,"name")?Object.getOwnPropertyDescriptor(e,"name").value+` (${i})`:e.title?e.description?e.title+" - "+e.description+` (${i})`:e.title+` (${i})`:i},t.isPrimitiveType=function(e){return"object"!==e.type&&!s(e)},t.isAnyOfAllOfOneOfType=s},67953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstNonWhitespaceCharacterAfterOffset=t.safeCreateUnicodeRegExp=t.getIndentation=t.convertSimple2RegExpPattern=t.convertSimple2RegExp=t.endsWith=t.startsWith=void 0,t.startsWith=function(e,t){if(e.length0?e.lastIndexOf(t)===n:0===n&&e===t},t.convertSimple2RegExp=function(e){const t=e.match(new RegExp("^/(.*?)/([gimy]*)$"));return t?function(e,t){return new RegExp(e,t)}(t[1],t[2]):function(e){return new RegExp(e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")+"$")}(e)},t.convertSimple2RegExpPattern=function(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")},t.getIndentation=function(e,t){if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextBuffer=void 0;const r=n(91674);t.TextBuffer=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1=t.length)return this.doc.getText();if(e<0)return"";const n=e+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguageService=t.SchemaPriority=void 0;const r=n(39031),o=n(83176),i=n(85929),s=n(66553),a=n(90152),c=n(95450),l=n(80259),u=n(30211),f=n(4056),d=n(26696),h=n(77115),p=n(92297),m=n(4701),g=n(57028),y=n(66423);var v;(v=t.SchemaPriority||(t.SchemaPriority={}))[v.SchemaStore=1]="SchemaStore",v[v.SchemaAssociation=2]="SchemaAssociation",v[v.Settings=3]="Settings",t.getLanguageService=function(e){const t=new r.YAMLSchemaService(e.schemaRequestService,e.workspaceContext),n=new h.YamlCompletion(t,e.clientCapabilities,p.yamlDocumentsCache,e.telemetry),v=new i.YAMLHover(t,e.telemetry),b=new o.YAMLDocumentSymbols(t,e.telemetry),S=new s.YAMLValidation(t,e.telemetry),w=new a.YAMLFormatter,_=new u.YamlCodeActions(e.clientCapabilities),k=new d.YamlCodeLens(t,e.telemetry),E=new c.YamlLinks(e.telemetry),x=new g.YamlDefinition(e.telemetry);return new m.JSONSchemaSelection(t,e.yamlSettings,e.connection),{configure:e=>{t.clearExternalSchemas(),e.schemas&&(t.schemaPriorityMapping=new Map,e.schemas.forEach((e=>{const n=e.priority?e.priority:0;t.addSchemaPriority(e.uri,n),t.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description,e.versions)}))),S.configure(e),v.configure(e),n.configure(e),w.configure(e),_.configure(e)},registerCustomSchemaProvider:e=>{t.registerCustomSchemaProvider(e)},findLinks:E.findLinks.bind(E),doComplete:n.doComplete.bind(n),doValidation:S.doValidation.bind(S),doHover:v.doHover.bind(v),findDocumentSymbols:b.findDocumentSymbols.bind(b),findDocumentSymbols2:b.findHierarchicalDocumentSymbols.bind(b),doDefinition:x.getDefinition.bind(x),resetSchema:e=>t.onResourceChange(e),doFormat:w.format.bind(w),doDocumentOnTypeFormatting:f.doDocumentOnTypeFormatting,addSchema:(e,n)=>t.saveSchema(e,n),deleteSchema:e=>t.deleteSchema(e),modifySchemaContent:e=>t.addContent(e),deleteSchemaContent:e=>t.deleteContent(e),deleteSchemasWhole:e=>t.deleteSchemas(e),getFoldingRanges:l.getFoldingRanges,getSelectionRanges:y.getSelectionRanges,getCodeAction:(e,t)=>_.getCodeAction(e,t),getCodeLens:e=>k.getCodeLens(e),resolveCodeLens:e=>k.resolveCodeLens(e)}}},59640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaSelectionRequests=t.SchemaModificationNotification=t.ColorSymbolRequest=t.CustomSchemaRequest=t.CustomSchemaContentRequest=t.VSCodeContentRequest=t.ResultLimitReachedNotification=t.VSCodeContentRequestRegistration=t.DynamicCustomSchemaRequestRegistration=t.SchemaAssociationNotification=void 0;const r=n(35809);var o;(t.SchemaAssociationNotification||(t.SchemaAssociationNotification={})).type=new r.NotificationType("json/schemaAssociations"),(t.DynamicCustomSchemaRequestRegistration||(t.DynamicCustomSchemaRequestRegistration={})).type=new r.NotificationType("yaml/registerCustomSchemaRequest"),(t.VSCodeContentRequestRegistration||(t.VSCodeContentRequestRegistration={})).type=new r.NotificationType("yaml/registerContentRequest"),(t.ResultLimitReachedNotification||(t.ResultLimitReachedNotification={})).type=new r.NotificationType("yaml/resultLimitReached"),(t.VSCodeContentRequest||(t.VSCodeContentRequest={})).type=new r.RequestType("vscode/content"),(t.CustomSchemaContentRequest||(t.CustomSchemaContentRequest={})).type=new r.RequestType("custom/schema/content"),(t.CustomSchemaRequest||(t.CustomSchemaRequest={})).type=new r.RequestType("custom/schema/request"),(t.ColorSymbolRequest||(t.ColorSymbolRequest={})).type=new r.RequestType("json/colorSymbols"),(t.SchemaModificationNotification||(t.SchemaModificationNotification={})).type=new r.RequestType("json/schema/modify"),(o=t.SchemaSelectionRequests||(t.SchemaSelectionRequests={})).type=new r.NotificationType("yaml/supportSchemaSelection"),o.getSchema=new r.RequestType("yaml/get/jsonSchema"),o.getAllSchemas=new r.RequestType("yaml/get/all/jsonSchemas"),o.schemaStoreInitialized=new r.NotificationType("yaml/schema/store/initialized")},73139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(68212),o=n(77176),i=n(99208),s=n(73924),a=n(29981),c=n(57147),l=n(51970),u=n(14600);o.config(process.env.VSCODE_NLS_CONFIG);let f=null;f=-1===process.argv.indexOf("--stdio")?(0,r.createConnection)(r.ProposedFeatures.all):(0,r.createConnection)(),process.on("uncaughtException",(e=>{f.console.error((0,l.convertErrorToTelemetryMsg)(e))})),console.log=f.console.log.bind(f.console),console.error=f.console.error.bind(f.console),console.error=e=>{null===e?f.console.info(e):f.console.error(e)};const d=new a.SettingsState,h={readFile:async(e,t)=>(await c.promises.readFile(e,t)).toString()},p=((e,t)=>(0,i.schemaRequestHandler)(e,t,d.workspaceFolders,d.workspaceRoot,d.useVSCodeContentRequest,h)).bind(this,f),m=new u.TelemetryImpl(f);new s.YAMLServerInit(f,d,i.workspaceContext,p,m).start()},73924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLServerInit=void 0;const r=n(35809),o=n(72671),i=n(91010),s=n(99879),a=n(61161),c=n(51285),l=n(9721),u=n(40779),f=n(69758),d=n(14065),h=n(22052),p=n(45988),m=n(13170);t.YAMLServerInit=class{constructor(e,t,n,r,o){this.connection=e,this.yamlSettings=t,this.workspaceContext=n,this.schemaRequestService=r,this.telemetry=o,this.yamlSettings.documents.listen(this.connection),this.connection.onInitialize((e=>this.connectionInitialized(e))),this.connection.onInitialized((()=>{this.yamlSettings.hasWsChangeWatchedFileDynamicRegistration&&this.connection.workspace.onDidChangeWorkspaceFolders((e=>{this.yamlSettings.workspaceFolders=(0,i.workspaceFoldersChanged)(this.yamlSettings.workspaceFolders,e)})),this.settingsHandler.registerHandlers(),this.settingsHandler.pullConfiguration()}))}connectionInitialized(e){return this.yamlSettings.capabilities=e.capabilities,this.languageService=(0,o.getLanguageService)({schemaRequestService:this.schemaRequestService,workspaceContext:this.workspaceContext,connection:this.connection,yamlSettings:this.yamlSettings,telemetry:this.telemetry,clientCapabilities:e.capabilities}),e.rootUri&&(this.yamlSettings.workspaceRoot=s.URI.parse(e.rootUri)),this.yamlSettings.workspaceFolders=e.workspaceFolders||[],this.yamlSettings.hierarchicalDocumentSymbolSupport=!!(this.yamlSettings.capabilities.textDocument&&this.yamlSettings.capabilities.textDocument.documentSymbol&&this.yamlSettings.capabilities.textDocument.documentSymbol.hierarchicalDocumentSymbolSupport),this.yamlSettings.clientDynamicRegisterSupport=!!(this.yamlSettings.capabilities.textDocument&&this.yamlSettings.capabilities.textDocument.rangeFormatting&&this.yamlSettings.capabilities.textDocument.rangeFormatting.dynamicRegistration),this.yamlSettings.hasWorkspaceFolderCapability=this.yamlSettings.capabilities.workspace&&!!this.yamlSettings.capabilities.workspace.workspaceFolders,this.yamlSettings.hasConfigurationCapability=!(!this.yamlSettings.capabilities.workspace||!this.yamlSettings.capabilities.workspace.configuration),this.yamlSettings.hasWsChangeWatchedFileDynamicRegistration=!!(this.yamlSettings.capabilities.workspace&&this.yamlSettings.capabilities.workspace.didChangeWatchedFiles&&this.yamlSettings.capabilities.workspace.didChangeWatchedFiles.dynamicRegistration),this.registerHandlers(),(0,m.registerCommands)(p.commandExecutor,this.connection),{capabilities:{textDocumentSync:r.TextDocumentSyncKind.Incremental,completionProvider:{resolveProvider:!1},hoverProvider:!0,documentSymbolProvider:!0,documentFormattingProvider:!1,documentOnTypeFormattingProvider:{firstTriggerCharacter:"\n"},documentRangeFormattingProvider:!1,definitionProvider:!0,documentLinkProvider:{},foldingRangeProvider:!0,selectionRangeProvider:!0,codeActionProvider:!0,codeLensProvider:{resolveProvider:!1},executeCommandProvider:{commands:Object.keys(d.YamlCommands).map((e=>d.YamlCommands[e]))},workspace:{workspaceFolders:{changeNotifications:!0,supported:!0}}}}}registerHandlers(){this.validationHandler=new u.ValidationHandler(this.connection,this.languageService,this.yamlSettings),this.settingsHandler=new f.SettingsHandler(this.connection,this.languageService,this.yamlSettings,this.validationHandler,this.telemetry),this.languageHandler=new a.LanguageHandlers(this.connection,this.languageService,this.yamlSettings,this.validationHandler),this.languageHandler.registerHandlers(),new c.NotificationHandlers(this.connection,this.languageService,this.yamlSettings,this.settingsHandler).registerHandlers(),new l.RequestHandlers(this.connection,this.languageService).registerHandlers(),new h.WorkspaceHandlers(this.connection,p.commandExecutor).registerHandlers()}start(){this.connection.listen()}}},29981:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocumentTestManager=t.SettingsState=void 0;const r=n(35809),o=n(31040),i=n(90318);t.SettingsState=class{constructor(){this.yamlConfigurationSettings=void 0,this.schemaAssociations=void 0,this.formatterRegistration=null,this.specificValidatorPaths=[],this.schemaConfigurationSettings=[],this.yamlShouldValidate=!0,this.yamlFormatterSettings={singleQuote:!1,bracketSpacing:!0,proseWrap:"preserve",printWidth:80,enable:!0},this.yamlShouldHover=!0,this.yamlShouldCompletion=!0,this.schemaStoreSettings=[],this.customTags=[],this.schemaStoreEnabled=!0,this.schemaStoreUrl=i.JSON_SCHEMASTORE_URL,this.indentation=void 0,this.disableAdditionalProperties=!1,this.disableDefaultProperties=!1,this.suggest={parentSkeletonSelectedFirst:!1},this.keyOrdering=!1,this.maxItemsComputed=5e3,this.pendingValidationRequests={},this.validationDelayMs=200,this.documents=new r.TextDocuments(o.TextDocument),this.workspaceRoot=null,this.workspaceFolders=[],this.clientDynamicRegisterSupport=!1,this.hierarchicalDocumentSymbolSupport=!1,this.hasWorkspaceFolderCapability=!1,this.hasConfigurationCapability=!1,this.useVSCodeContentRequest=!1,this.yamlVersion="1.2",this.useSchemaSelectionRequests=!1,this.hasWsChangeWatchedFileDynamicRegistration=!1,this.fileExtensions=[".yml",".yaml"]}};class s extends r.TextDocuments{constructor(){super(o.TextDocument),this.testTextDocuments=new Map}get(e){return this.testTextDocuments.get(e)}set(e){this.testTextDocuments.set(e.uri,e)}}t.TextDocumentTestManager=s},63920:e=>{"use strict";e.exports=require("prettier")},39491:e=>{"use strict";e.exports=require("assert")},32081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},95687:e=>{"use strict";e.exports=require("https")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},24404:e=>{"use strict";e.exports=require("tls")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},59796:e=>{"use strict";e.exports=require("zlib")},85775:(e,t,n)=>{"use strict";var r=n(10466),o=n(58844),i=n(76933),s=n(83179),a=n(94658);t.composeCollection=function(e,t,n,c,l){let u;switch(n.type){case"block-map":u=i.resolveBlockMap(e,t,n,l);break;case"block-seq":u=s.resolveBlockSeq(e,t,n,l);break;case"flow-collection":u=a.resolveFlowCollection(e,t,n,l)}if(!c)return u;const f=t.directives.tagName(c.source,(e=>l(c,"TAG_RESOLVE_FAILED",e)));if(!f)return u;const d=u.constructor;if("!"===f||f===d.tagName)return u.tag=d.tagName,u;const h=r.isMap(u)?"map":"seq";let p=t.schema.tags.find((e=>e.collection===h&&e.tag===f));if(!p){const e=t.schema.knownTags[f];if(!e||e.collection!==h)return l(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,!0),u.tag=f,u;t.schema.tags.push(Object.assign({},e,{default:!1})),p=e}const m=p.resolve(u,(e=>l(c,"TAG_RESOLVE_FAILED",e)),t.options),g=r.isNode(m)?m:new o.Scalar(m);return g.range=u.range,g.tag=f,p?.format&&(g.format=p.format),g}},83138:(e,t,n)=>{"use strict";var r=n(86068),o=n(90081),i=n(7655),s=n(5920);t.composeDoc=function(e,t,{offset:n,start:a,value:c,end:l},u){const f=Object.assign({_directives:t},e),d=new r.Document(void 0,f),h={atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},p=s.resolveProps(a,{indicator:"doc-start",next:c??l?.[0],offset:n,onError:u,startOnNewline:!0});p.found&&(d.directives.docStart=!0,!c||"block-map"!==c.type&&"block-seq"!==c.type||p.hasNewline||u(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=c?o.composeNode(h,c,p,u):o.composeEmptyNode(h,p.end,a,null,p,u);const m=d.contents.range[2],g=i.resolveEnd(l,m,!1,u);return g.comment&&(d.comment=g.comment),d.range=[n,m,g.offset],d}},90081:(e,t,n)=>{"use strict";var r=n(12055),o=n(85775),i=n(76548),s=n(7655),a=n(7154);const c={composeNode:l,composeEmptyNode:u};function l(e,t,n,a){const{spaceBefore:l,comment:f,anchor:d,tag:h}=n;let p,m=!0;switch(t.type){case"alias":p=function({options:e},{offset:t,source:n,end:o},i){const a=new r.Alias(n.substring(1));""===a.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+n.length,l=s.resolveEnd(o,c,e.strict,i);return a.range=[t,c,l.offset],l.comment&&(a.comment=l.comment),a}(e,t,a),(d||h)&&a(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=i.composeScalar(e,t,h,a),d&&(p.anchor=d.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=o.composeCollection(c,e,t,h,a),d&&(p.anchor=d.source.substring(1));break;default:a(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),p=u(e,t.offset,void 0,null,n,a),m=!1}return d&&""===p.anchor&&a(d,"BAD_ALIAS","Anchor cannot be an empty string"),l&&(p.spaceBefore=!0),f&&("scalar"===t.type&&""===t.source?p.comment=f:p.commentBefore=f),e.options.keepSourceTokens&&m&&(p.srcToken=t),p}function u(e,t,n,r,{spaceBefore:o,comment:s,anchor:c,tag:l,end:u},f){const d={type:"scalar",offset:a.emptyScalarPosition(t,n,r),indent:-1,source:""},h=i.composeScalar(e,d,l,f);return c&&(h.anchor=c.source.substring(1),""===h.anchor&&f(c,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),s&&(h.comment=s,h.range[2]=u),h}t.composeEmptyNode=u,t.composeNode=l},76548:(e,t,n)=>{"use strict";var r=n(10466),o=n(58844),i=n(51328),s=n(7876);t.composeScalar=function(e,t,n,a){const{value:c,type:l,comment:u,range:f}="block-scalar"===t.type?i.resolveBlockScalar(t,e.options.strict,a):s.resolveFlowScalar(t,e.options.strict,a),d=n?e.directives.tagName(n.source,(e=>a(n,"TAG_RESOLVE_FAILED",e))):null,h=n&&d?function(e,t,n,o,i){if("!"===n)return e[r.SCALAR];const s=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;s.push(t)}for(const e of s)if(e.test?.test(t))return e;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[r.SCALAR])}(e.schema,c,d,n,a):"scalar"===t.type?function({directives:e,schema:t},n,o,i){const s=t.tags.find((e=>e.default&&e.test?.test(n)))||t[r.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(n)))??t[r.SCALAR];s.tag!==a.tag&&i(o,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(s.tag)} or ${e.tagString(a.tag)}`,!0)}return s}(e,c,t,a):e.schema[r.SCALAR];let p;try{const i=h.resolve(c,(e=>a(n??t,"TAG_RESOLVE_FAILED",e)),e.options);p=r.isScalar(i)?i:new o.Scalar(i)}catch(e){const r=e instanceof Error?e.message:String(e);a(n??t,"TAG_RESOLVE_FAILED",r),p=new o.Scalar(c)}return p.range=f,p.source=c,l&&(p.type=l),d&&(p.tag=d),h.format&&(p.format=h.format),u&&(p.comment=u),p}},5281:(e,t,n)=>{"use strict";var r=n(99226),o=n(86068),i=n(2394),s=n(10466),a=n(83138),c=n(7655);function l(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function u(e){let t="",n=!1,r=!1;for(let o=0;o{const o=l(e);r?this.warnings.push(new i.YAMLWarning(o,t,n)):this.errors.push(new i.YAMLParseError(o,t,n))},this.directives=new r.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=u(this.prelude);if(n){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!o)e.commentBefore=n;else if(s.isCollection(o)&&!o.flow&&o.items.length>0){let e=o.items[0];s.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=o.commentBefore;o.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:u(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const o=l(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(l(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),n=new o.Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}},76933:(e,t,n)=>{"use strict";var r=n(10394),o=n(56575),i=n(5920),s=n(93094),a=n(72566),c=n(96493);const l="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},n,u,f){const d=new o.YAMLMap(n.schema);n.atRoot&&(n.atRoot=!1);let h=u.offset,p=null;for(const o of u.items){const{start:m,key:g,sep:y,value:v}=o,b=i.resolveProps(m,{indicator:"explicit-key-ind",next:g??y?.[0],offset:h,onError:f,startOnNewline:!0}),S=!b.found;if(S){if(g&&("block-seq"===g.type?f(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==u.indent&&f(h,"BAD_INDENT",l)),!b.anchor&&!b.tag&&!y){p=b.end,b.comment&&(d.comment?d.comment+="\n"+b.comment:d.comment=b.comment);continue}(b.hasNewlineAfterProp||s.containsNewline(g))&&f(g??m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else b.found?.indent!==u.indent&&f(h,"BAD_INDENT",l);const w=b.end,_=g?e(n,g,b,f):t(n,w,m,null,b,f);n.schema.compat&&a.flowIndentCheck(u.indent,g,f),c.mapIncludes(n,d.items,_)&&f(w,"DUPLICATE_KEY","Map keys must be unique");const k=i.resolveProps(y??[],{indicator:"map-value-ind",next:v,offset:_.range[2],onError:f,startOnNewline:!g||"block-scalar"===g.type});if(h=k.end,k.found){S&&("block-map"!==v?.type||k.hasNewline||f(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start{"use strict";var r=n(58844);t.resolveBlockScalar=function(e,t,n){const o=e.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",c=-1;for(let t=1;t=0;--e){const t=a[e][1];if(""!==t&&"\r"!==t)break;c=e}if(0===c){const t="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let n=o+i.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:i.comment,range:[o,n,n]}}let l=e.indent+i.indent,u=e.offset+i.length,f=0;for(let e=0;el&&(l=t.length),u+=t.length+r.length+1}for(let e=a.length-1;e>=c;--e)a[e][0].length>l&&(c=e+1);let d="",h="",p=!1;for(let e=0;el||"\t"===o[0]?(" "===h?h="\n":p||"\n"!==h||(h="\n\n"),d+=h+t.slice(l)+o,h="\n",p=!0):""===o?"\n"===h?d+="\n":h="\n":(d+=h+o,h=" ",p=!1)}switch(i.chomp){case"-":break;case"+":for(let e=c;e{"use strict";var r=n(13798),o=n(5920),i=n(72566);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},n,s,a){const c=new r.YAMLSeq(n.schema);n.atRoot&&(n.atRoot=!1);let l=s.offset,u=null;for(const{start:r,value:f}of s.items){const d=o.resolveProps(r,{indicator:"seq-item-ind",next:f,offset:l,onError:a,startOnNewline:!0});if(!d.found){if(!(d.anchor||d.tag||f)){u=d.end,d.comment&&(c.comment=d.comment);continue}f&&"block-seq"===f.type?a(d.end,"BAD_INDENT","All sequence items must start at the same column"):a(l,"MISSING_CHAR","Sequence item without - indicator")}const h=f?e(n,f,d,a):t(n,d.end,r,null,d,a);n.schema.compat&&i.flowIndentCheck(s.indent,f,a),l=h.range[2],c.items.push(h)}return c.range=[s.offset,l,u??l],c}},7655:(e,t)=>{"use strict";t.resolveEnd=function(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";o?o+=s+t:o=t,s="";break}case"newline":o&&(s+=e),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:o,offset:t}}},94658:(e,t,n)=>{"use strict";var r=n(10466),o=n(10394),i=n(56575),s=n(13798),a=n(7655),c=n(5920),l=n(93094),u=n(96493);const f="Block collections are not allowed within flow collections",d=e=>e&&("block-map"===e.type||"block-seq"===e.type);t.resolveFlowCollection=function({composeNode:e,composeEmptyNode:t},n,h,p){const m="{"===h.start.source,g=m?"flow map":"flow sequence",y=m?new i.YAMLMap(n.schema):new s.YAMLSeq(n.schema);y.flow=!0;const v=n.atRoot;v&&(n.atRoot=!1);let b=h.offset+h.start.source.length;for(let s=0;s0){const e=a.resolveEnd(_,k,n.options.strict,p);e.comment&&(y.comment?y.comment+="\n"+e.comment:y.comment=e.comment),y.range=[h.offset,k,e.offset]}else y.range=[h.offset,k,k];return y}},7876:(e,t,n)=>{"use strict";var r=n(58844),o=n(7655);function i(e){let t,n;try{t=new RegExp("(.*?)(?n(l+e,t,r);switch(u){case"scalar":h=r.Scalar.PLAIN,p=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),i(e)}(f,m);break;case"single-quoted-scalar":h=r.Scalar.QUOTE_SINGLE,p=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),i(e.slice(1,-1)).replace(/''/g,"'")}(f,m);break;case"double-quoted-scalar":h=r.Scalar.QUOTE_DOUBLE,p=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):o)}else n+=o}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(f,m);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${u}`),{value:"",type:null,comment:"",range:[l,l+f.length,l+f.length]}}const g=l+f.length,y=o.resolveEnd(d,g,t,n);return{value:p,type:h,comment:y.comment,range:[l,g,y.offset]}}},5920:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,l=s,u="",f="",d=!1,h=!1,p=!1,m=null,g=null,y=null,v=null,b=null;for(const r of e)switch(p&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),r.type){case"space":!t&&c&&"doc-start"!==n&&"\t"===r.source[0]&&i(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";u?u+=f+e:u=e,f="",c=!1;break}case"newline":c?u?u+=r.source:a=!0:f+=r.source,c=!0,d=!0,(m||g)&&(h=!0),l=!0;break;case"anchor":m&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===b&&(b=r.offset),c=!1,l=!1,p=!0;break;case"tag":g&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===b&&(b=r.offset),c=!1,l=!1,p=!0;break;case n:(m||g)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),v&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),v=r,c=!1,l=!1;break;case"comma":if(t){y&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=r,c=!1,l=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),c=!1,l=!1}const S=e[e.length-1],w=S?S.offset+S.source.length:o;return p&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:v,spaceBefore:a,comment:u,hasNewline:d,hasNewlineAfterProp:h,anchor:m,tag:g,end:w,start:b??w}}},93094:(e,t)=>{"use strict";t.containsNewline=function e(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end)for(const e of t.end)if("newline"===e.type)return!0;return!1;case"flow-collection":for(const n of t.items){for(const e of n.start)if("newline"===e.type)return!0;if(n.sep)for(const e of n.sep)if("newline"===e.type)return!0;if(e(n.key)||e(n.value))return!0}return!1;default:return!0}}},7154:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}},72566:(e,t,n)=>{"use strict";var r=n(93094);t.flowIndentCheck=function(e,t,n){if("flow-collection"===t?.type){const o=t.end[0];o.indent!==e||"]"!==o.source&&"}"!==o.source||!r.containsNewline(t)||n(o,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}},96493:(e,t,n)=>{"use strict";var r=n(10466);t.mapIncludes=function(e,t,n){const{uniqueKeys:o}=e.options;if(!1===o)return!1;const i="function"==typeof o?o:(t,n)=>t===n||r.isScalar(t)&&r.isScalar(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}},86068:(e,t,n)=>{"use strict";var r=n(12055),o=n(43365),i=n(10466),s=n(10394),a=n(93257),c=n(23673),l=n(20611),u=n(89957),f=n(21903),d=n(33085),h=n(87581),p=n(99226);class m{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:s}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new p.Directives({version:s}),this.setSchema(s,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(m.prototype,{[i.NODE_TYPE]:{value:i.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){g(this.contents)&&this.contents.add(e)}addIn(e,t){g(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=f.anchorNames(this);e.anchor=!t||n.has(t)?f.findNewAnchor(t||"a",n):t}return new r.Alias(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:l,tag:u}=n??{},{onAnchor:d,setAnchors:p,sourceObjects:m}=f.createNodeAnchors(this,s||"a"),g={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:m},y=h.createNode(e,u,g);return a&&i.isCollection(y)&&(y.flow=!0),p(),y}createPair(e,t,n={}){const r=this.createNode(e,null,n),o=this.createNode(t,null,n);return new s.Pair(r,o)}delete(e){return!!g(this.contents)&&this.contents.delete(e)}deleteIn(e){return o.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!g(this.contents)&&this.contents.deleteIn(e)}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return o.isEmptyPath(e)?!t&&i.isScalar(this.contents)?this.contents.value:this.contents:i.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!i.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return o.isEmptyPath(e)?void 0!==this.contents:!!i.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=o.collectionFromPath(this.schema,[e],t):g(this.contents)&&this.contents.set(e,t)}setIn(e,t){o.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=o.collectionFromPath(this.schema,Array.from(e),t):g(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new p.Directives({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new p.Directives({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new c.Schema(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){const s={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:l.stringify},c=a.toJS(this.contents,t??"",s);if("function"==typeof o)for(const{count:e,res:t}of s.anchors.values())o(t,e);return"function"==typeof i?d.applyReviver(i,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function g(e){if(i.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=m},21903:(e,t,n)=>{"use strict";var r=n(10466),o=n(81381);function i(e){const t=new Set;return o.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function s(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}t.anchorIsValid=function(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0},t.anchorNames=i,t.createNodeAnchors=function(e,t){const n=[],o=new Map;let a=null;return{onAnchor:r=>{n.push(r),a||(a=i(e));const o=s(t,a);return a.add(o),o},setAnchors:()=>{for(const e of n){const t=o.get(e);if("object"!=typeof t||!t.anchor||!r.isScalar(t.node)&&!r.isCollection(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:o}},t.findNewAnchor=s},33085:(e,t)=>{"use strict";t.applyReviver=function e(t,n,r,o){if(o&&"object"==typeof o)if(Array.isArray(o))for(let n=0,r=o.length;n{"use strict";var r=n(12055),o=n(10466),i=n(58844);t.createNode=function(e,t,n){if(o.isDocument(e)&&(e=e.contents),o.isNode(e))return e;if(o.isPair(e)){const t=n.schema[o.MAP].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:s,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=n;let f;if(s&&e&&"object"==typeof e){if(f=u.get(e),f)return f.anchor||(f.anchor=a(e)),new r.Alias(f.anchor);f={anchor:null,node:null},u.set(e,f)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,l.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new i.Scalar(e);return f&&(f.node=t),t}d=e instanceof Map?l[o.MAP]:Symbol.iterator in Object(e)?l[o.SEQ]:l[o.MAP]}c&&(c(d),delete n.onTagObj);const h=d?.createNode?d.createNode(n.schema,e,n):new i.Scalar(e);return t&&(h.tag=t),f&&(f.node=h),h}},99226:(e,t,n)=>{"use strict";var r=n(10466),o=n(81381);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){const e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const o=this.tags[n];return o?o+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>i[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let i;if(e&&n.length>0&&r.isNode(e.contents)){const t={};o.visit(e.contents,((e,n)=>{r.isNode(n)&&n.tag&&(t[n.tag]=!0)})),i=Object.keys(t)}else i=[];for(const[r,o]of n)"!!"===r&&"tag:yaml.org,2002:"===o||e&&!i.some((e=>e.startsWith(o)))||t.push(`%TAG ${r} ${o}`);return t.join("\n")}}s.defaultYaml={explicit:!1,version:"1.2"},s.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=s},2394:(e,t)=>{"use strict";class n extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}t.YAMLError=n,t.YAMLParseError=class extends n{constructor(e,t,n){super("YAMLParseError",e,t,n)}},t.YAMLWarning=class extends n{constructor(e,t,n){super("YAMLWarning",e,t,n)}},t.prettifyError=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const e=Math.min(i-39,s.length-79);s="…"+s.substring(e),i-=e-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),s=n+s}if(/[^ ]/.test(s)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>o&&(e=Math.max(1,Math.min(t.col-o,80-i)));const a=" ".repeat(i)+"^".repeat(e);n.message+=`:\n\n${s}\n${a}\n`}}},93419:(e,t,n)=>{"use strict";var r=n(5281),o=n(86068),i=n(23673),s=n(2394),a=n(12055),c=n(10466),l=n(10394),u=n(58844),f=n(56575),d=n(13798),h=n(75208),p=n(87135),m=n(94708),g=n(69369),y=n(68011),v=n(81381);t.Composer=r.Composer,t.Document=o.Document,t.Schema=i.Schema,t.YAMLError=s.YAMLError,t.YAMLParseError=s.YAMLParseError,t.YAMLWarning=s.YAMLWarning,t.Alias=a.Alias,t.isAlias=c.isAlias,t.isCollection=c.isCollection,t.isDocument=c.isDocument,t.isMap=c.isMap,t.isNode=c.isNode,t.isPair=c.isPair,t.isScalar=c.isScalar,t.isSeq=c.isSeq,t.Pair=l.Pair,t.Scalar=u.Scalar,t.YAMLMap=f.YAMLMap,t.YAMLSeq=d.YAMLSeq,t.CST=h,t.Lexer=p.Lexer,t.LineCounter=m.LineCounter,t.Parser=g.Parser,t.parse=y.parse,t.parseAllDocuments=y.parseAllDocuments,t.parseDocument=y.parseDocument,t.stringify=y.stringify,t.visit=v.visit,t.visitAsync=v.visitAsync},95441:(e,t)=>{"use strict";t.debug=function(e,...t){"debug"===e&&console.log(...t)},t.warn=function(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}},12055:(e,t,n)=>{"use strict";var r=n(21903),o=n(81381),i=n(10466);class s extends i.NodeBase{constructor(e){super(i.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return o.visit(e,{Node:(e,n)=>{if(n===this)return o.visit.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:o}=t,i=this.resolve(r);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const s=n.get(i);if(!s||void 0===s.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=a(r,i,n)),s.count*s.aliasCount>o))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return s.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(r.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${o} `}return o}}function a(e,t,n){if(i.isAlias(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}if(i.isCollection(t)){let r=0;for(const o of t.items){const t=a(e,o,n);t>r&&(r=t)}return r}if(i.isPair(t)){const r=a(e,t.key,n),o=a(e,t.value,n);return Math.max(r,o)}return 1}t.Alias=s},43365:(e,t,n)=>{"use strict";var r=n(87581),o=n(10466);function i(e,t,n){let o=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=o,o=e}else o=new Map([[n,o]])}return r.createNode(o,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const s=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class a extends o.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>o.isNode(t)||o.isPair(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(s(e))this.add(t);else{const[n,...r]=e,s=this.get(n,!0);if(o.isCollection(s))s.addIn(r,t);else{if(void 0!==s||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(o.isCollection(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&o.isScalar(i)?i.value:i:o.isCollection(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!o.isPair(t))return!1;const n=t.value;return null==n||e&&o.isScalar(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!o.isCollection(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(o.isCollection(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}}a.maxFlowStringSingleLineLength=60,t.Collection=a,t.collectionFromPath=i,t.isEmptyPath=s},10466:(e,t)=>{"use strict";const n=Symbol.for("yaml.alias"),r=Symbol.for("yaml.document"),o=Symbol.for("yaml.map"),i=Symbol.for("yaml.pair"),s=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),l=e=>!!e&&"object"==typeof e&&e[c]===s;function u(e){if(e&&"object"==typeof e)switch(e[c]){case o:case a:return!0}return!1}t.ALIAS=n,t.DOC=r,t.MAP=o,t.NODE_TYPE=c,t.NodeBase=class{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}},t.PAIR=i,t.SCALAR=s,t.SEQ=a,t.hasAnchor=e=>(l(e)||u(e))&&!!e.anchor,t.isAlias=e=>!!e&&"object"==typeof e&&e[c]===n,t.isCollection=u,t.isDocument=e=>!!e&&"object"==typeof e&&e[c]===r,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===o,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case n:case o:case s:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===i,t.isScalar=l,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},10394:(e,t,n)=>{"use strict";var r=n(87581),o=n(38843),i=n(13567),s=n(10466);class a{constructor(e,t=null){Object.defineProperty(this,s.NODE_TYPE,{value:s.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return s.isNode(t)&&(t=t.clone(e)),s.isNode(n)&&(n=n.clone(e)),new a(t,n)}toJSON(e,t){const n=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?o.stringifyPair(this,e,t,n):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,n){const o=r.createNode(e,void 0,n),i=r.createNode(t,void 0,n);return new a(o,i)}},58844:(e,t,n)=>{"use strict";var r=n(10466),o=n(93257);class i extends r.NodeBase{constructor(e){super(r.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}i.BLOCK_FOLDED="BLOCK_FOLDED",i.BLOCK_LITERAL="BLOCK_LITERAL",i.PLAIN="PLAIN",i.QUOTE_DOUBLE="QUOTE_DOUBLE",i.QUOTE_SINGLE="QUOTE_SINGLE",t.Scalar=i,t.isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e},56575:(e,t,n)=>{"use strict";var r=n(40240),o=n(13567),i=n(43365),s=n(10466),a=n(10394),c=n(58844);function l(e,t){const n=s.isScalar(t)?t.value:t;for(const r of e)if(s.isPair(r)){if(r.key===t||r.key===n)return r;if(s.isScalar(r.key)&&r.key.value===n)return r}}class u extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(s.MAP,e),this.items=[]}add(e,t){let n;n=s.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const r=l(this.items,n.key),o=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);s.isScalar(r.value)&&c.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(o){const e=this.items.findIndex((e=>o(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=l(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=l(this.items,e),r=n?.value;return(!t&&s.isScalar(r)?r.value:r)??void 0}has(e){return!!l(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)o.addPairToJSMap(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!s.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),r.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}t.YAMLMap=u,t.findPair=l},13798:(e,t,n)=>{"use strict";var r=n(40240),o=n(43365),i=n(10466),s=n(58844),a=n(93257);class c extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=l(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=l(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){const t=l(e);return"number"==typeof t&&t=0?t:null}t.YAMLSeq=c},13567:(e,t,n)=>{"use strict";var r=n(95441),o=n(20611),i=n(10466),s=n(58844),a=n(93257);function c(e,t,n){const r=e&&i.isAlias(n)?n.resolve(e.doc):n;if(!i.isMap(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[e,n]of o)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}t.addPairToJSMap=function(e,t,{key:n,value:l}){if(e?.doc.schema.merge&&(e=>"<<"===e||i.isScalar(e)&&"<<"===e.value&&(!e.type||e.type===s.Scalar.PLAIN))(n))if(l=i.isAlias(l)?l.resolve(e.doc):l,i.isSeq(l))for(const n of l.items)c(e,t,n);else if(Array.isArray(l))for(const n of l)c(e,t,n);else c(e,t,l);else{const s=a.toJS(n,"",e);if(t instanceof Map)t.set(s,a.toJS(l,s,e));else if(t instanceof Set)t.add(s);else{const c=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(i.isNode(e)&&n&&n.doc){const t=o.createStringifyContext(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const i=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+'..."'),r.warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}(n,s,e),u=a.toJS(l,c,e);c in t?Object.defineProperty(t,c,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[c]=u}}return t}},93257:(e,t,n)=>{"use strict";var r=n(10466);t.toJS=function e(t,n,o){if(Array.isArray(t))return t.map(((t,n)=>e(t,String(n),o)));if(t&&"function"==typeof t.toJSON){if(!o||!r.hasAnchor(t))return t.toJSON(n,o);const e={aliasCount:0,count:1,res:void 0};o.anchors.set(t,e),o.onCreate=t=>{e.res=t,delete o.onCreate};const i=t.toJSON(n,o);return o.onCreate&&o.onCreate(i),i}return"bigint"!=typeof t||o?.keep?t:Number(t)}},47084:(e,t,n)=>{"use strict";var r=n(51328),o=n(7876),i=n(2394),s=n(98431);function a(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function c(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;"block-scalar-header"===e.props[0].type&&(o-=e.props[0].source.length);for(const e of r)e.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}t.createScalarToken=function(e,t){const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:c="PLAIN"}=t,l=s.stringifyString({type:c,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(l[0]){case"|":case">":{const e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",o=[{type:"block-scalar-header",offset:i,indent:r,source:t}];return a(o,u)||o.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:i,indent:r,props:o,source:n}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:l,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:l,end:u};default:return{type:"scalar",offset:i,indent:r,source:l,end:u}}},t.resolveAsScalar=function(e,t=!0,n){if(e){const s=(e,t,r)=>{const o="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new i.YAMLParseError([o,o+1],t,r);n(o,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return o.resolveFlowScalar(e,t,s);case"block-scalar":return r.resolveBlockScalar(e,t,s)}}return null},t.setScalarValue=function(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:l}=n,u="indent"in e?e.indent:null;if(r&&"number"==typeof u&&(u+=2),!l)switch(e.type){case"single-quoted-scalar":l="QUOTE_SINGLE";break;case"double-quoted-scalar":l="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");l=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:l="PLAIN"}const f=s.stringifyString({type:l,value:t},{implicitKey:o||null===u,indent:null!==u&&u>0?" ".repeat(u):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(f[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),r=t.substring(0,n),o=t.substring(n+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=r,e.source=o}else{const{offset:t}=e,n="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:t,indent:n,source:r}];a(i,"end"in e?e.end:void 0)||i.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:i,source:o})}}(e,f);break;case'"':c(e,f,"double-quoted-scalar");break;case"'":c(e,f,"single-quoted-scalar");break;default:c(e,f,"scalar")}}},84453:(e,t)=>{"use strict";function n(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=n(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=r(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=r(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=r(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:o}){let i="";for(const t of e)i+=t.source;if(t&&(i+=n(t)),r)for(const e of r)i+=e.source;return o&&(i+=n(o)),i}t.stringify=e=>"type"in e?n(e):r(e)},28318:(e,t)=>{"use strict";const n=Symbol("break visit"),r=Symbol("skip children"),o=Symbol("remove item");function i(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),s(Object.freeze([]),e,t)}function s(e,t,r){let i=r(t,e);if("symbol"==typeof i)return i;for(const a of["key","value"]){const c=t[a];if(c&&"items"in c){for(let t=0;t{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},i.parentCollection=(e,t)=>{const n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n?.[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")},t.visit=i},75208:(e,t,n)=>{"use strict";var r=n(47084),o=n(84453),i=n(28318);t.createScalarToken=r.createScalarToken,t.resolveAsScalar=r.resolveAsScalar,t.setScalarValue=r.setScalarValue,t.stringify=o.stringify,t.visit=i.visit,t.BOM="\ufeff",t.DOCUMENT="",t.FLOW_END="",t.SCALAR="",t.isCollection=e=>!!e&&"items"in e,t.isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),t.prettyToken=function(e){switch(e){case"\ufeff":return"";case"":return"";case"":return"";case"":return"";default:return JSON.stringify(e)}},t.tokenType=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},87135:(e,t,n)=>{"use strict";var r=n(75208);function o(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const i="0123456789ABCDEFabcdef".split(""),s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),a=",[]{}".split(""),c=" ,[]{}\n\r\t".split(""),l=e=>!e||c.includes(e);t.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&o(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!o(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&o(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(l),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const i=this.getLine();if(null===i)return this.setNext("flow");if((-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>o(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const o=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>o))break;t=e}return yield r.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,i=this.pos-1;for(;t=this.buffer[++i];)if(":"===t){const t=this.buffer[i+1];if(o(t)||e&&","===t)break;n=i}else if(o(t)){let r=this.buffer[i+1];if("\r"===t&&("\n"===r?(i+=1,t="\n",r=this.buffer[i+1]):n=i),"#"===r||e&&a.includes(r))break;if("\n"===t){const e=this.continueScalar(i+1);if(-1===e)break;i=Math.max(i,e-2)}}else{if(e&&a.includes(t))break;n=i}return t||this.atEnd?(yield r.SCALAR,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(l))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(o(t)||e&&a.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!o(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(s.includes(t))t=this.buffer[++e];else{if("%"!==t||!i.includes(this.buffer[e+1])||!i.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},94708:(e,t)=>{"use strict";t.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{"use strict";var r=n(75208),o=n(87135);function i(e,t){for(let n=0;n=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function u(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||i(t.start,"explicit-key-ind")||i(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,a(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}t.Parser=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new o.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",r.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=r.tokenType(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&u(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!i(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===s(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep;let r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||i(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(i(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(a(t.key)&&!i(t.sep,"newline")){const e=l(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(i(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=l(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):i(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0))}default:{const o=this.startBlockValue(e);if(o)return n&&"block-seq"!==o.type&&i(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(o)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||i(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=l(c(t));u(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=l(c(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=l(c(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}},68011:(e,t,n)=>{"use strict";var r=n(5281),o=n(86068),i=n(2394),s=n(95441),a=n(94708),c=n(69369);function l(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new a.LineCounter||null,prettyErrors:t}}function u(e,t={}){const{lineCounter:n,prettyErrors:o}=l(t),s=new c.Parser(n?.addNewLine),a=new r.Composer(t);let u=null;for(const t of a.compose(s.parse(e),!0,e.length))if(u){if("silent"!==u.options.logLevel){u.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else u=t;return o&&n&&(u.errors.forEach(i.prettifyError(e,n)),u.warnings.forEach(i.prettifyError(e,n))),u}t.parse=function(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const o=u(e,n);if(!o)return null;if(o.warnings.forEach((e=>s.warn(o.options.logLevel,e))),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))},t.parseAllDocuments=function(e,t={}){const{lineCounter:n,prettyErrors:o}=l(t),s=new c.Parser(n?.addNewLine),a=new r.Composer(t),u=Array.from(a.compose(s.parse(e)));if(o&&n)for(const t of u)t.errors.forEach(i.prettifyError(e,n)),t.warnings.forEach(i.prettifyError(e,n));return u.length>0?u:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=u,t.stringify=function(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return new o.Document(e,r,n).toString(n)}},23673:(e,t,n)=>{"use strict";var r=n(10466),o=n(92744),i=n(52360),s=n(73042),a=n(76524);const c=(e,t)=>e.keyt.key?1:0;class l{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:l,schema:u,sortMapEntries:f,toStringDefaults:d}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null,this.merge=!!n,this.name="string"==typeof u&&u||"core",this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(t,this.name),this.toStringOptions=d??null,Object.defineProperty(this,r.MAP,{value:o.map}),Object.defineProperty(this,r.SCALAR,{value:s.string}),Object.defineProperty(this,r.SEQ,{value:i.seq}),this.sortMapEntries="function"==typeof f?f:!0===f?c:null}clone(){const e=Object.create(l.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}t.Schema=l},92744:(e,t,n)=>{"use strict";var r=n(10466),o=n(10394),i=n(56575);const s={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:s}=n,a=new i.YAMLMap(e),c=(e,i)=>{if("function"==typeof s)i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;(void 0!==i||r)&&a.items.push(o.createPair(e,i,n))};if(t instanceof Map)for(const[e,n]of t)c(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))c(e,t[e]);return"function"==typeof e.sortMapEntries&&a.items.sort(e.sortMapEntries),a},default:!0,nodeClass:i.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(r.isMap(e)||t("Expected a mapping for this tag"),e)};t.map=s},25397:(e,t,n)=>{"use strict";var r=n(58844);const o={identify:e=>null==e,createNode:()=>new r.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new r.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&o.test.test(e)?e:t.options.nullStr};t.nullTag=o},52360:(e,t,n)=>{"use strict";var r=n(87581),o=n(10466),i=n(13798);const s={collection:"seq",createNode:function(e,t,n){const{replacer:o}=n,s=new i.YAMLSeq(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof o){const n=t instanceof Set?i:String(e++);i=o.call(t,n,i)}s.items.push(r.createNode(i,void 0,n))}}return s},default:!0,nodeClass:i.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(o.isSeq(e)||t("Expected a sequence for this tag"),e)};t.seq=s},73042:(e,t,n)=>{"use strict";var r=n(98431);const o={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,o)=>(t=Object.assign({actualString:!0},t),r.stringifyString(e,t,n,o))};t.string=o},50976:(e,t,n)=>{"use strict";var r=n(58844);const o={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new r.Scalar("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&o.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};t.boolTag=o},13398:(e,t,n)=>{"use strict";var r=n(58844),o=n(15260);const i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:o.stringifyNumber},s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():o.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new r.Scalar(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:o.stringifyNumber};t.float=a,t.floatExp=s,t.floatNaN=i},64723:(e,t,n)=>{"use strict";var r=n(15260);const o=e=>"bigint"==typeof e||Number.isInteger(e),i=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function s(e,t,n){const{value:i}=e;return o(i)&&i>=0?n+i.toString(t):r.stringifyNumber(e)}const a={identify:e=>o(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>i(e,2,8,n),stringify:e=>s(e,8,"0o")},c={identify:o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>i(e,0,10,n),stringify:r.stringifyNumber},l={identify:e=>o(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>i(e,2,16,n),stringify:e=>s(e,16,"0x")};t.int=c,t.intHex=l,t.intOct=a},63305:(e,t,n)=>{"use strict";var r=n(92744),o=n(25397),i=n(52360),s=n(73042),a=n(50976),c=n(13398),l=n(64723);const u=[r.map,i.seq,s.string,o.nullTag,a.boolTag,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float];t.schema=u},27854:(e,t,n)=>{"use strict";var r=n(58844),o=n(92744),i=n(52360);function s(e){return"bigint"==typeof e||Number.isInteger(e)}const a=({value:e})=>JSON.stringify(e),c=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:a},{identify:e=>null==e,createNode:()=>new r.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:a},{identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>s(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}],l={default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)},u=[o.map,i.seq].concat(c,l);t.schema=u},76524:(e,t,n)=>{"use strict";var r=n(92744),o=n(25397),i=n(52360),s=n(73042),a=n(50976),c=n(13398),l=n(64723),u=n(63305),f=n(27854),d=n(38798),h=n(71367),p=n(63879),m=n(10163),g=n(87559),y=n(67714);const v=new Map([["core",u.schema],["failsafe",[r.map,i.seq,s.string]],["json",f.schema],["yaml11",m.schema],["yaml-1.1",m.schema]]),b={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:y.floatTime,int:l.int,intHex:l.intHex,intOct:l.intOct,intTime:y.intTime,map:r.map,null:o.nullTag,omap:h.omap,pairs:p.pairs,seq:i.seq,set:g.set,timestamp:y.timestamp},S={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":h.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":g.set,"tag:yaml.org,2002:timestamp":y.timestamp};t.coreKnownTags=S,t.getTags=function(e,t){let n=v.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(v.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=b[e];if(t)return t;const n=Object.keys(b).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}},38798:(e,t,n)=>{"use strict";var r=n(58844),o=n(98431);const i={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e{"use strict";var r=n(58844);function o({value:e,source:t},n){return t&&(e?i:s).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const i={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new r.Scalar(!0),stringify:o},s={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new r.Scalar(!1),stringify:o};t.falseTag=s,t.trueTag=i},13922:(e,t,n)=>{"use strict";var r=n(58844),o=n(15260);const i={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:o.stringifyNumber},s={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():o.stringifyNumber(e)}},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new r.Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:o.stringifyNumber};t.float=a,t.floatExp=s,t.floatNaN=i},5563:(e,t,n)=>{"use strict";var r=n(15260);const o=e=>"bigint"==typeof e||Number.isInteger(e);function i(e,t,n,{intAsBigInt:r}){const o=e[0];if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const i=parseInt(e,n);return"-"===o?-1*i:i}function s(e,t,n){const{value:i}=e;if(o(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return r.stringifyNumber(e)}const a={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>i(e,2,2,n),stringify:e=>s(e,2,"0b")},c={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>i(e,1,8,n),stringify:e=>s(e,8,"0")},l={identify:o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>i(e,0,10,n),stringify:r.stringifyNumber},u={identify:o,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>i(e,2,16,n),stringify:e=>s(e,16,"0x")};t.int=l,t.intBin=a,t.intHex=u,t.intOct=c},71367:(e,t,n)=>{"use strict";var r=n(13798),o=n(93257),i=n(10466),s=n(56575),a=n(63879);class c extends r.YAMLSeq{constructor(){super(),this.add=s.YAMLMap.prototype.add.bind(this),this.delete=s.YAMLMap.prototype.delete.bind(this),this.get=s.YAMLMap.prototype.get.bind(this),this.has=s.YAMLMap.prototype.has.bind(this),this.set=s.YAMLMap.prototype.set.bind(this),this.tag=c.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let r,s;if(i.isPair(e)?(r=o.toJS(e.key,"",t),s=o.toJS(e.value,r,t)):r=o.toJS(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,s)}return n}}c.tag="tag:yaml.org,2002:omap";const l={collection:"seq",identify:e=>e instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=a.resolvePairs(e,t),r=[];for(const{key:e}of n.items)i.isScalar(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new c,n)},createNode(e,t,n){const r=a.createPairs(e,t,n),o=new c;return o.items=r.items,o}};t.YAMLOMap=c,t.omap=l},63879:(e,t,n)=>{"use strict";var r=n(10466),o=n(10394),i=n(58844),s=n(13798);function a(e,t){if(r.isSeq(e))for(let n=0;n1&&t("Each pair must have its own sequence indicator");const e=s.items[0]||new o.Pair(new i.Scalar(null));if(s.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${s.commentBefore}\n${e.key.commentBefore}`:s.commentBefore),s.comment){const t=e.value??e.key;t.comment=t.comment?`${s.comment}\n${t.comment}`:s.comment}s=e}e.items[n]=r.isPair(s)?s:new o.Pair(s)}}else t("Expected a sequence for this tag");return e}function c(e,t,n){const{replacer:r}=n,i=new s.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let s,c;if("function"==typeof r&&(e=r.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);s=e[0],c=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);s=t[0],c=e[s]}else s=e;i.items.push(o.createPair(s,c,n))}return i}const l={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:c};t.createPairs=c,t.pairs=l,t.resolvePairs=a},10163:(e,t,n)=>{"use strict";var r=n(92744),o=n(25397),i=n(52360),s=n(73042),a=n(38798),c=n(69466),l=n(13922),u=n(5563),f=n(71367),d=n(63879),h=n(87559),p=n(67714);const m=[r.map,i.seq,s.string,o.nullTag,c.trueTag,c.falseTag,u.intBin,u.intOct,u.int,u.intHex,l.floatNaN,l.floatExp,l.float,a.binary,f.omap,d.pairs,h.set,p.intTime,p.floatTime,p.timestamp];t.schema=m},87559:(e,t,n)=>{"use strict";var r=n(10466),o=n(10394),i=n(56575);class s extends i.YAMLMap{constructor(e){super(e),this.tag=s.tag}add(e){let t;t=r.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new o.Pair(e.key,null):new o.Pair(e,null),i.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=i.findPair(this.items,e);return!t&&r.isPair(n)?r.isScalar(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=i.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new o.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}}s.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:s,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(r.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new s,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,i=new s(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(o.createPair(e,null,n));return i}};t.YAMLSet=s,t.set=a},67714:(e,t,n)=>{"use strict";var r=n(15260);function o(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0));return"-"===n?o(-1)*i:i}function i(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return r.stringifyNumber(e);let o="";t<0&&(o="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),o+s.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>o(e,n),stringify:i},a={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>o(e,!1),stringify:i},c={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(c.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,a,l]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,r-1,i,s||0,a||0,l||0,u);const d=t[8];if(d&&"Z"!==d){let e=o(d,!1);Math.abs(e)<30&&(e*=60),f-=6e4*e}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=a,t.intTime=s,t.timestamp=c},94112:(e,t)=>{"use strict";const n="block",r="quoted";function o(e,t){let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t}t.FOLD_BLOCK=n,t.FOLD_FLOW="flow",t.FOLD_QUOTED=r,t.foldFlowLines=function(e,t,i="flow",{indentAtStart:s,lineWidth:a=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!a||a<0)return e;const f=Math.max(1+c,1+a-t.length);if(e.length<=f)return e;const d=[],h={};let p,m,g=a-t.length;"number"==typeof s&&(s>a-Math.max(2,c)?d.push(0):g=a-s);let y=!1,v=-1,b=-1,S=-1;i===n&&(v=o(e,v),-1!==v&&(g=v+f));for(let t;t=e[v+=1];){if(i===r&&"\\"===t){switch(b=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}S=v}if("\n"===t)i===n&&(v=o(e,v)),g=v+f,p=void 0;else{if(" "===t&&m&&" "!==m&&"\n"!==m&&"\t"!==m){const t=e[v+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(p=v)}if(v>=g)if(p)d.push(p),g=p+f,p=void 0;else if(i===r){for(;" "===m||"\t"===m;)m=t,t=e[v+=1],y=!0;const n=v>S+1?v-2:b-1;if(h[n])return e;d.push(n),h[n]=!0,g=n+f,p=void 0}else y=!0}m=t}if(y&&u&&u(),0===d.length)return e;l&&l();let w=e.slice(0,d[0]);for(let n=0;n{"use strict";var r=n(21903),o=n(10466),i=n(28463),s=n(98431);t.createStringifyContext=function(e,t){const n=Object.assign({blockQuote:!0,commentString:i.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}},t.stringify=function(e,t,n,i){if(o.isPair(e))return e.toString(t,n,i);if(o.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let a;const c=o.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>a=e});a||(a=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,r;if(o.isScalar(t)){r=t.value;const o=e.filter((e=>e.identify?.(r)));n=o.find((e=>e.format===t.format))??o.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,c));const l=function(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const s=[],a=(o.isScalar(e)||o.isCollection(e))&&e.anchor;a&&r.anchorIsValid(a)&&(n.add(a),s.push(`&${a}`));const c=e.tag?e.tag:t.default?null:t.tag;return c&&s.push(i.directives.tagString(c)),s.join(" ")}(c,a,t);l.length>0&&(t.indentAtStart=(t.indentAtStart??0)+l.length+1);const u="function"==typeof a.stringify?a.stringify(c,t,n,i):o.isScalar(c)?s.stringifyString(c,t,n,i):c.toString(t,n,i);return l?o.isScalar(c)||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${t.indent}${u}`:u}},40240:(e,t,n)=>{"use strict";var r=n(43365),o=n(10466),i=n(20611),s=n(28463);function a({comment:e,items:t},n,{blockItemPrefix:r,flowChars:a,itemIndent:c,onChompKeep:u,onComment:f}){const{indent:d,options:{commentString:h}}=n,p=Object.assign({},n,{indent:c,type:null});let m=!1;const g=[];for(let e=0;eu=null),(()=>m=!0));u&&(f+=s.lineComment(f,c,h(u))),m&&u&&(m=!1),g.push(r+f)}let y;if(0===g.length)y=a.start+a.end;else{y=g[0];for(let e=1;ea=null));ey||u.includes("\n"))&&(g=!0),v.push(u),y=v.length}let b;const{start:S,end:w}=a;if(0===v.length)b=S+w;else if(g||(g=v.reduce(((e,t)=>e+t.length+2),2)>r.Collection.maxFlowStringSingleLineLength),g){b=S;for(const e of v)b+=e?`\n${d}${f}${e}`:"\n";b+=`\n${f}${w}`}else b=`${S}${h}${v.join(" ")}${h}${w}`;return e&&(b+=s.lineComment(b,f,p(e)),u&&u()),b}function l({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const o=s.indentComment(t(r),e);n.push(o.trimStart())}}t.stringifyCollection=function(e,t,n){return(t.inFlow??e.flow?c:a)(e,t,n)}},28463:(e,t)=>{"use strict";function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=n,t.lineComment=(e,t,r)=>e.endsWith("\n")?n(r,t):r.includes("\n")?"\n"+n(r,t):(e.endsWith(" ")?"":" ")+r,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},89957:(e,t,n)=>{"use strict";var r=n(10466),o=n(20611),i=n(28463);t.stringifyDocument=function(e,t){const n=[];let s=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");const a=o.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=c(e.commentBefore);n.unshift(i.indentComment(t,""))}let l=!1,u=null;if(e.contents){if(r.isNode(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);n.push(i.indentComment(t,""))}a.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>l=!0;let f=o.stringify(e.contents,a,(()=>u=null),t);u&&(f+=i.lineComment(f,"",c(u))),"|"!==f[0]&&">"!==f[0]||"---"!==n[n.length-1]?n.push(f):n[n.length-1]=`--- ${f}`}else n.push(o.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(n.push("..."),n.push(i.indentComment(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,"")),t&&(l&&!u||""===n[n.length-1]||n.push(""),n.push(i.indentComment(c(t),"")))}return n.join("\n")+"\n"}},15260:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}},38843:(e,t,n)=>{"use strict";var r=n(10466),o=n(58844),i=n(20611),s=n(28463);t.stringifyPair=function({key:e,value:t},n,a,c){const{allNullValues:l,doc:u,indent:f,indentStep:d,options:{commentString:h,indentSeq:p,simpleKeys:m}}=n;let g=r.isNode(e)&&e.comment||null;if(m){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(r.isCollection(e))throw new Error("With simple keys, collection cannot be used as a key value")}let y=!m&&(!e||g&&null==t&&!n.inFlow||r.isCollection(e)||(r.isScalar(e)?e.type===o.Scalar.BLOCK_FOLDED||e.type===o.Scalar.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(m||!l),indent:f+d});let v,b,S,w=!1,_=!1,k=i.stringify(e,n,(()=>w=!0),(()=>_=!0));if(!y&&!n.inFlow&&k.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(n.inFlow){if(l||null==t)return w&&a&&a(),""===k?"?":y?`? ${k}`:k}else if(l&&!m||null==t&&y)return k=`? ${k}`,g&&!w?k+=s.lineComment(k,n.indent,h(g)):_&&c&&c(),k;w&&(g=null),y?(g&&(k+=s.lineComment(k,n.indent,h(g))),k=`? ${k}\n${f}:`):(k=`${k}:`,g&&(k+=s.lineComment(k,n.indent,h(g)))),r.isNode(t)?(v=!!t.spaceBefore,b=t.commentBefore,S=t.comment):(v=!1,b=null,S=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,y||g||!r.isScalar(t)||(n.indentAtStart=k.length+1),_=!1,p||!(d.length>=2)||n.inFlow||y||!r.isSeq(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let E=!1;const x=i.stringify(t,n,(()=>E=!0),(()=>_=!0));let C=" ";if(g||v||b){if(C=v?"\n":"",b){const e=h(b);C+=`\n${s.indentComment(e,n.indent)}`}""!==x||n.inFlow?C+=`\n${n.indent}`:"\n"===C&&(C="\n\n")}else if(!y&&r.isCollection(t)){const e=x[0],r=x.indexOf("\n"),o=-1!==r,i=n.inFlow??t.flow??0===t.items.length;if(o||!i){let t=!1;if(o&&("&"===e||"!"===e)){let n=x.indexOf(" ");"&"===e&&-1!==n&&n{"use strict";var r=n(58844),o=n(94112);const i=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),s=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(s(e)?" ":"");let l="",u=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(l+=n.slice(u,e)+"\\ ",e+=1,u=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{l+=n.slice(u,e);const t=n.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===t.substr(0,2)?l+="\\x"+t.substr(2):l+=n.substr(e,6)}e+=5,u=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,h,p.length));if(!n)return m?"|\n":">\n";let g,y;for(y=n.length;y>0;--y){const e=n[y-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=n.substring(y);const b=v.indexOf("\n");-1===b?g="-":n===v||b!==v.length-1?(g="+",u&&u()):g="",v&&(n=n.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${p}`));let S,w=!1,_=-1;for(S=0;S")+(w?p?"2":"1":"")+g;return e&&(E+=" "+d(e.replace(/ ?[\r\n]+/g," ")),c&&c()),m?`${E}\n${p}${k}${n=n.replace(/\n+/g,`$&${p}`)}${v}`:(n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),`${E}\n${p}${o.foldFlowLines(`${k}${n}${v}`,p,o.FOLD_BLOCK,i(a,!0))}`)}t.stringifyString=function(e,t,n,f){const{implicitKey:d,inFlow:h}=t,p="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==r.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(p.value)&&(m=r.Scalar.QUOTE_DOUBLE);const g=e=>{switch(e){case r.Scalar.BLOCK_FOLDED:case r.Scalar.BLOCK_LITERAL:return d||h?l(p.value,t):u(p,t,n,f);case r.Scalar.QUOTE_DOUBLE:return a(p.value,t);case r.Scalar.QUOTE_SINGLE:return c(p.value,t);case r.Scalar.PLAIN:return function(e,t,n,a){const{type:c,value:f}=e,{actualString:d,implicitKey:h,indent:p,indentStep:m,inFlow:g}=t;if(h&&/[\n[\]{},]/.test(f)||g&&/[[\]{},]/.test(f))return l(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return h||g||!f.includes("\n")?l(f,t):u(e,t,n,a);if(!h&&!g&&c!==r.Scalar.PLAIN&&f.includes("\n"))return u(e,t,n,a);if(s(f)){if(""===p)return t.forceBlockIndent=!0,u(e,t,n,a);if(h&&p===m)return l(f,t)}const y=f.replace(/\n+/g,`$&\n${p}`);if(d){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(y),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return l(f,t)}return h?y:o.foldFlowLines(y,p,o.FOLD_FLOW,i(t,!1))}(p,t,n,f);default:return null}};let y=g(m);if(null===y){const{defaultKeyType:e,defaultStringType:n}=t.options,r=d&&e||n;if(y=g(r),null===y)throw new Error(`Unsupported default string type ${r}`)}return y}},81381:(e,t,n)=>{"use strict";var r=n(10466);const o=Symbol("break visit"),i=Symbol("skip children"),s=Symbol("remove node");function a(e,t){const n=f(t);r.isDocument(e)?c(null,e.contents,n,Object.freeze([e]))===s&&(e.contents=null):c(null,e,n,Object.freeze([]))}function c(e,t,n,i){const a=d(e,t,n,i);if(r.isNode(a)||r.isPair(a))return h(e,i,a),c(e,a,n,i);if("symbol"!=typeof a)if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},12365:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(73139);module.exports=r})(); //# sourceMappingURL=languageserver.js.map