text: (()=>{var un=Object.create,Je=Object.defineProperty,fn=Object.getPrototypeOf,cn=Object.prototype.hasOwnProperty,ln=Object.getOwnPropertyNames,pn=Object.getOwnPropertyDescriptor,Kt=e=>Je(e,"__esModule",{value:!0}),qt=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports),hn=(e,t)=>{Kt(e);for(var n in t)Je(e,n,{get:t[n],enumerable:!0})},lt=(e,t,n)=>{if(Kt(e),t&&typeof t=="object"||typeof t=="function")for(let r of ln(t))!cn.call(e,r)&&r!=="default"&&Je(e,r,{get:()=>t[r],enumerable:!(n=pn(t,r))||n.enumerable});return e},Ce=e=>e&&e.__esModule?e:lt(Je(e!=null?un(fn(e)):{},"default",{value:e,enumerable:!0}),e),Ee=qt(gn=>{lt(gn,Ce(require("monaco-editor-core")))}),nn=qt(di=>{hn(di,{setupMode:()=>vi});var ae=Ce(Ee());function vi(e){var t=[],n=[],r=new Ht(e);t.push(r);var i=function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return r.getLanguageServiceWorker.apply(r,u)};function a(){var u=e.languageId,s=e.modeConfiguration;rn(n),s.documentFormattingEdits&&n.push(ae.languages.registerDocumentFormattingEditProvider(u,new Br(i))),s.documentRangeFormattingEdits&&n.push(ae.languages.registerDocumentRangeFormattingEditProvider(u,new Hr(i))),s.completionItems&&n.push(ae.languages.registerCompletionItemProvider(u,new Ur(i))),s.hovers&&n.push(ae.languages.registerHoverProvider(u,new Jr(i))),s.documentSymbols&&n.push(ae.languages.registerDocumentSymbolProvider(u,new Kr(i))),s.tokens&&n.push(ae.languages.setTokensProvider(u,Qr(!0))),s.colors&&n.push(ae.languages.registerColorProvider(u,new zr(i))),s.foldingRanges&&n.push(ae.languages.registerFoldingRangeProvider(u,new Gr(i))),s.diagnostics&&n.push(new $r(u,i,e)),s.selectionRanges&&n.push(ae.languages.registerSelectionRangeProvider(u,new Zr(i)))}a(),t.push(ae.languages.setLanguageConfiguration(e.languageId,mi));var o=e.modeConfiguration;return e.onDidChange(function(u){u.modeConfiguration!==o&&(o=u.modeConfiguration,a())}),t.push(tn(n)),tn(t)}function tn(e){return{dispose:function(){return rn(e)}}}function rn(e){for(;e.length;)e.pop().dispose()}var mi={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}),Oe=Ce(Ee()),yi=function(){function e(t,n,r){this._onDidChange=new Oe.Emitter,this._languageId=t,this.setDiagnosticsOptions(n),this.setModeConfiguration(r)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),e.prototype.setDiagnosticsOptions=function(t){this._diagnosticsOptions=t||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(this)},e}(),bi={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},Si={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},an=new yi("json",bi,Si);Oe.languages.json={jsonDefaults:an};var Bt=Ce(Ee()),dn=2*60*1e3,Ht=function(){function e(t){var n=this;this._defaults=t,this._worker=null,this._idleCheckInterval=setInterval(function(){return n._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return n._stopWorker()})}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){if(!this._worker)return;var t=Date.now()-this._lastUsedTime;t>dn&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Bt.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i;return this._getClient().then(function(a){i=a}).then(function(a){return t._worker.withSyncedResources(n)}).then(function(a){return i})},e}(),$=Ce(Ee());"use strict";function Te(e,t){t===void 0&&(t=!1);var n=e.length,r=0,i="",a=0,o=16,u=0,s=0,l=0,c=0,f=0;function p(g,k){for(var w=0,C=0;w<g||!k;){var A=e.charCodeAt(r);if(A>=48&&A<=57)C=C*16+A-48;else if(A>=65&&A<=70)C=C*16+A-65+10;else if(A>=97&&A<=102)C=C*16+A-97+10;else break;r++,w++}return w<g&&(C=-1),C}function d(g){r=g,i="",a=0,o=16,f=0}function m(){var g=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&we(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&we(e.charCodeAt(r)))for(r++;r<e.length&&we(e.charCodeAt(r));)r++;else return f=3,e.substring(g,r);var k=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&we(e.charCodeAt(r))){for(r++;r<e.length&&we(e.charCodeAt(r));)r++;k=r}else f=3;return e.substring(g,k)}function b(){for(var g="",k=r;;){if(r>=n){g+=e.substring(k,r),f=2;break}var w=e.charCodeAt(r);if(w===34){g+=e.substring(k,r),r++;break}if(w===92){if(g+=e.substring(k,r),r++,r>=n){f=2;break}var C=e.charCodeAt(r++);switch(C){case 34:g+='"';break;case 92:g+="\\";break;case 47:g+="/";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+=`
  `;break;case 114:g+="\r";break;case 116:g+="	";break;case 117:var A=p(4,!0);A>=0?g+=String.fromCharCode(A):f=4;break;default:f=5}k=r;continue}if(w>=0&&w<=31)if(Pe(w)){g+=e.substring(k,r),f=2;break}else f=6;r++}return g}function v(){if(i="",f=0,a=r,s=u,c=l,r>=n)return a=n,o=17;var g=e.charCodeAt(r);if(pt(g)){do r++,i+=String.fromCharCode(g),g=e.charCodeAt(r);while(pt(g));return o=15}if(Pe(g))return r++,i+=String.fromCharCode(g),g===13&&e.charCodeAt(r)===10&&(r++,i+=`
  `),u++,l=r,o=14;switch(g){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=b(),o=10;case 47:var k=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Pe(e.charCodeAt(r));)r++;return i=e.substring(k,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;for(var w=n-1,C=!1;r<w;){var A=e.charCodeAt(r);if(A===42&&e.charCodeAt(r+1)===47){r+=2,C=!0;break}r++,Pe(A)&&(A===13&&e.charCodeAt(r)===10&&r++,u++,l=r)}return C||(r++,f=1),i=e.substring(k,r),o=13}return i+=String.fromCharCode(g),r++,o=16;case 45:if(i+=String.fromCharCode(g),r++,r===n||!we(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=m(),o=11;default:for(;r<n&&S(g);)r++,g=e.charCodeAt(r);if(a!==r){i=e.substring(a,r);switch(i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(g),r++,o=16}}function S(g){if(pt(g)||Pe(g))return!1;switch(g){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function y(){var g;do g=v();while(g>=12&&g<=15);return g}return{setPosition:d,getPosition:function(){return r},scan:t?y:v,getToken:function(){return o},getTokenValue:function(){return i},getTokenOffset:function(){return a},getTokenLength:function(){return r-a},getTokenStartLine:function(){return s},getTokenStartCharacter:function(){return a-c},getTokenError:function(){return f}}}function pt(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Pe(e){return e===10||e===13||e===8232||e===8233}function we(e){return e>=48&&e<=57}"use strict";"use strict";var Ne;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ne||(Ne={}));function Gt(e,t){var n=[],r=new Object,i=void 0,a={value:{},offset:0,length:0,type:"object",parent:void 0},o=!1;function u(s,l,c,f){a.value=s,a.offset=l,a.length=c,a.type=f,a.colonOffset=void 0,i=a}try{Me(e,{onObjectBegin:function(s,l){if(t<=s)throw r;i=void 0,o=t>s,n.push("")},onObjectProperty:function(s,l,c){if(t<l)throw r;if(u(s,l,c,"property"),n[n.length-1]=s,t<=l+c)throw r},onObjectEnd:function(s,l){if(t<=s)throw r;i=void 0,n.pop()},onArrayBegin:function(s,l){if(t<=s)throw r;i=void 0,n.push(0)},onArrayEnd:function(s,l){if(t<=s)throw r;i=void 0,n.pop()},onLiteralValue:function(s,l,c){if(t<l)throw r;if(u(s,l,c,zt(s)),t<=l+c)throw r},onSeparator:function(s,l,c){if(t<=l)throw r;if(s===":"&&i&&i.type==="property")i.colonOffset=l,o=!1,i=void 0;else if(s===","){var f=n[n.length-1];typeof f=="number"?n[n.length-1]=f+1:(o=!0,n[n.length-1]=""),i=void 0}}})}catch(s){if(s!==r)throw s}return{path:n,previousNode:i,isAtPropertyKey:o,matches:function(s){for(var l=0,c=0;l<s.length&&c<n.length;c++)if(s[l]===n[c]||s[l]==="*")l++;else if(s[l]!=="**")return!1;return l===s.length}}}function Zt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=Ne.DEFAULT);var r=null,i=[],a=[];function o(s){Array.isArray(i)?i.push(s):r!==null&&(i[r]=s)}var u={onObjectBegin:function(){var s={};o(s),a.push(i),i=s,r=null},onObjectProperty:function(s){r=s},onObjectEnd:function(){i=a.pop()},onArrayBegin:function(){var s=[];o(s),a.push(i),i=s,r=null},onArrayEnd:function(){i=a.pop()},onLiteralValue:o,onError:function(s,l,c){t.push({error:s,offset:l,length:c})}};return Me(e,u,n),i[0]}function ht(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=Ne.DEFAULT);var r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(s){r.type==="property"&&(r.length=s-r.offset,r=r.parent)}function a(s){return r.children.push(s),s}var o={onObjectBegin:function(s){r=a({type:"object",offset:s,length:-1,parent:r,children:[]})},onObjectProperty:function(s,l,c){r=a({type:"property",offset:l,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:s,offset:l,length:c,parent:r})},onObjectEnd:function(s,l){i(s+l),r.length=s+l-r.offset,r=r.parent,i(s+l)},onArrayBegin:function(s,l){r=a({type:"array",offset:s,length:-1,parent:r,children:[]})},onArrayEnd:function(s,l){r.length=s+l-r.offset,r=r.parent,i(s+l)},onLiteralValue:function(s,l,c){a({type:zt(s),offset:l,length:c,parent:r,value:s}),i(l+c)},onSeparator:function(s,l,c){r.type==="property"&&(s===":"?r.colonOffset=l:s===","&&i(l))},onError:function(s,l,c){t.push({error:s,offset:l,length:c})}};Me(e,o,n);var u=r.children[0];return u&&delete u.parent,u}function gt(e,t){if(!e)return;for(var n=e,r=0,i=t;r<i.length;r++){var a=i[r];if(typeof a=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var o=!1,u=0,s=n.children;u<s.length;u++){var l=s[u];if(Array.isArray(l.children)&&l.children[0].value===a){n=l.children[1],o=!0;break}}if(!o)return}else{var c=a;if(n.type!=="array"||c<0||!Array.isArray(n.children)||c>=n.children.length)return;n=n.children[c]}}return n}function dt(e){if(!e.parent||!e.parent.children)return[];var t=dt(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;t.push(n)}else if(e.parent.type==="array"){var r=e.parent.children.indexOf(e);r!==-1&&t.push(r)}return t}function Ke(e){switch(e.type){case"array":return e.children.map(Ke);case"object":for(var t=Object.create(null),n=0,r=e.children;n<r.length;n++){var i=r[n],a=i.children[1];a&&(t[i.children[0].value]=Ke(a))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function mn(e,t,n){return n===void 0&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function mt(e,t,n){if(n===void 0&&(n=!1),mn(e,t,n)){var r=e.children;if(Array.isArray(r))for(var i=0;i<r.length&&r[i].offset<=t;i++){var a=mt(r[i],t,n);if(a)return a}return e}}function Me(e,t,n){n===void 0&&(n=Ne.DEFAULT);var r=Te(e,!1);function i(x){return x?function(){return x(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function a(x){return x?function(T){return x(T,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var o=i(t.onObjectBegin),u=a(t.onObjectProperty),s=i(t.onObjectEnd),l=i(t.onArrayBegin),c=i(t.onArrayEnd),f=a(t.onLiteralValue),p=a(t.onSeparator),d=i(t.onComment),m=a(t.onError),b=n&&n.disallowComments,v=n&&n.allowTrailingComma;function S(){for(;;){var x=r.scan();switch(r.getTokenError()){case 4:y(14);break;case 5:y(15);break;case 3:y(13);break;case 1:b||y(11);break;case 2:y(12);break;case 6:y(16);break}switch(x){case 12:case 13:b?y(10):d();break;case 16:y(1);break;case 15:case 14:break;default:return x}}}function y(x,T,j){if(T===void 0&&(T=[]),j===void 0&&(j=[]),m(x),T.length+j.length>0)for(var I=r.getToken();I!==17;){if(T.indexOf(I)!==-1){S();break}else if(j.indexOf(I)!==-1)break;I=S()}}function g(x){var T=r.getTokenValue();return x?f(T):u(T),S(),!0}function k(){switch(r.getToken()){case 11:var x=0;try{x=JSON.parse(r.getTokenValue()),typeof x!="number"&&(y(2),x=0)}catch(T){y(2)}f(x);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return S(),!0}function w(){return r.getToken()!==10?(y(3,[],[2,5]),!1):(g(!1),r.getToken()===6?(p(":"),S(),F()||y(4,[],[2,5])):y(5,[],[2,5]),!0)}function C(){o(),S();for(var x=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(x||y(4,[],[]),p(","),S(),r.getToken()===2&&v)break}else x&&y(6,[],[]);w()||y(4,[],[2,5]),x=!0}return s(),r.getToken()!==2?y(7,[2],[]):S(),!0}function A(){l(),S();for(var x=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(x||y(4,[],[]),p(","),S(),r.getToken()===4&&v)break}else x&&y(6,[],[]);F()||y(4,[],[4,5]),x=!0}return c(),r.getToken()!==4?y(8,[4],[]):S(),!0}function F(){switch(r.getToken()){case 3:return A();case 1:return C();case 10:return g(!0);default:return k()}}return S(),r.getToken()===17?n.allowEmptyContent?!0:(y(4,[],[]),!1):F()?(r.getToken()!==17&&y(9,[],[]),!0):(y(4,[],[]),!1)}function Xt(e,t){var n=Te(e),r=[],i,a=0,o;do{o=n.getPosition(),i=n.scan();switch(i){case 12:case 13:case 17:a!==o&&r.push(e.substring(a,o)),t!==void 0&&r.push(n.getTokenValue().replace(/[^\r\n]/g,t)),a=n.getPosition();break}}while(i!==17);return r.join("")}function zt(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}"use strict";"use strict";var ue=Te,_i=Gt,Qt=Zt,Ji=ht,Ki=gt,Yt=mt,er=dt,tr=Ke,qi=Me,Bi=Xt;function Ae(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0)return!1;if(typeof e!==typeof t)return!1;if(typeof e!="object")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;n<e.length;n++)if(!Ae(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var a=[];for(r in t)a.push(r);if(a.sort(),!Ae(i,a))return!1;for(n=0;n<i.length;n++)if(!Ae(e[i[n]],t[i[n]]))return!1}return!0}function G(e){return typeof e=="number"}function Y(e){return typeof e!="undefined"}function X(e){return typeof e=="boolean"}function rr(e){return typeof e=="string"}"use strict";var Q;(function(e){function t(r,i){return{line:r,character:i}}e.create=t;function n(r){var i=r;return h.objectLiteral(i)&&h.number(i.line)&&h.number(i.character)}e.is=n})(Q||(Q={}));var V;(function(e){function t(r,i,a,o){if(h.number(r)&&h.number(i)&&h.number(a)&&h.number(o))return{start:Q.create(r,i),end:Q.create(a,o)};if(Q.is(r)&&Q.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+a+", "+o+"]")}e.create=t;function n(r){var i=r;return h.objectLiteral(i)&&Q.is(i.start)&&Q.is(i.end)}e.is=n})(V||(V={}));var be;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){var i=r;return h.defined(i)&&V.is(i.range)&&(h.string(i.uri)||h.undefined(i.uri))}e.is=n})(be||(be={}));var nr;(function(e){function t(r,i,a,o){return{targetUri:r,targetRange:i,targetSelectionRange:a,originSelectionRange:o}}e.create=t;function n(r){var i=r;return h.defined(i)&&V.is(i.targetRange)&&h.string(i.targetUri)&&(V.is(i.targetSelectionRange)||h.undefined(i.targetSelectionRange))&&(V.is(i.originSelectionRange)||h.undefined(i.originSelectionRange))}e.is=n})(nr||(nr={}));var qe;(function(e){function t(r,i,a,o){return{red:r,green:i,blue:a,alpha:o}}e.create=t;function n(r){var i=r;return h.number(i.red)&&h.number(i.green)&&h.number(i.blue)&&h.number(i.alpha)}e.is=n})(qe||(qe={}));var vt;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){var i=r;return V.is(i.range)&&qe.is(i.color)}e.is=n})(vt||(vt={}));var yt;(function(e){function t(r,i,a){return{label:r,textEdit:i,additionalTextEdits:a}}e.create=t;function n(r){var i=r;return h.string(i.label)&&(h.undefined(i.textEdit)||Z.is(i))&&(h.undefined(i.additionalTextEdits)||h.typedArray(i.additionalTextEdits,Z.is))}e.is=n})(yt||(yt={}));var le;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(le||(le={}));var bt;(function(e){function t(r,i,a,o,u){var s={startLine:r,endLine:i};return h.defined(a)&&(s.startCharacter=a),h.defined(o)&&(s.endCharacter=o),h.defined(u)&&(s.kind=u),s}e.create=t;function n(r){var i=r;return h.number(i.startLine)&&h.number(i.startLine)&&(h.undefined(i.startCharacter)||h.number(i.startCharacter))&&(h.undefined(i.endCharacter)||h.number(i.endCharacter))&&(h.undefined(i.kind)||h.string(i.kind))}e.is=n})(bt||(bt={}));var St;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){var i=r;return h.defined(i)&&be.is(i.location)&&h.string(i.message)}e.is=n})(St||(St={}));var E;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(E||(E={}));var ir;(function(e){e.Unnecessary=1,e.Deprecated=2})(ir||(ir={}));var ee;(function(e){function t(r,i,a,o,u,s){var l={range:r,message:i};return h.defined(a)&&(l.severity=a),h.defined(o)&&(l.code=o),h.defined(u)&&(l.source=u),h.defined(s)&&(l.relatedInformation=s),l}e.create=t;function n(r){var i=r;return h.defined(i)&&V.is(i.range)&&h.string(i.message)&&(h.number(i.severity)||h.undefined(i.severity))&&(h.number(i.code)||h.string(i.code)||h.undefined(i.code))&&(h.string(i.source)||h.undefined(i.source))&&(h.undefined(i.relatedInformation)||h.typedArray(i.relatedInformation,St.is))}e.is=n})(ee||(ee={}));var Fe;(function(e){function t(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var u={title:r,command:i};return h.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=t;function n(r){var i=r;return h.defined(i)&&h.string(i.title)&&h.string(i.command)}e.is=n})(Fe||(Fe={}));var Z;(function(e){function t(a,o){return{range:a,newText:o}}e.replace=t;function n(a,o){return{range:{start:a,end:a},newText:o}}e.insert=n;function r(a){return{range:a,newText:""}}e.del=r;function i(a){var o=a;return h.objectLiteral(o)&&h.string(o.newText)&&V.is(o.range)}e.is=i})(Z||(Z={}));var Be;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){var i=r;return h.defined(i)&&He.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Be||(Be={}));var ze;(function(e){function t(r,i){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),a}e.create=t;function n(r){var i=r;return i&&i.kind==="create"&&h.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||h.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||h.boolean(i.options.ignoreIfExists)))}e.is=n})(ze||(ze={}));var Ge;(function(e){function t(r,i,a){var o={kind:"rename",oldUri:r,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),o}e.create=t;function n(r){var i=r;return i&&i.kind==="rename"&&h.string(i.oldUri)&&h.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||h.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||h.boolean(i.options.ignoreIfExists)))}e.is=n})(Ge||(Ge={}));var Ze;(function(e){function t(r,i){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),a}e.create=t;function n(r){var i=r;return i&&i.kind==="delete"&&h.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||h.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||h.boolean(i.options.ignoreIfNotExists)))}e.is=n})(Ze||(Ze={}));var xt;(function(e){function t(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return h.string(i.kind)?ze.is(i)||Ge.is(i)||Ze.is(i):Be.is(i)}))}e.is=t})(xt||(xt={}));var Xe=function(){function e(t){this.edits=t}return e.prototype.insert=function(t,n){this.edits.push(Z.insert(t,n))},e.prototype.replace=function(t,n){this.edits.push(Z.replace(t,n))},e.prototype.delete=function(t){this.edits.push(Z.del(t))},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}(),Gi=function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t&&(this._workspaceEdit=t,t.documentChanges?t.documentChanges.forEach(function(r){if(Be.is(r)){var i=new Xe(r.edits);n._textEditChanges[r.textDocument.uri]=i}}):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new Xe(t.changes[r]);n._textEditChanges[r]=i}))}return Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(t){if(He.is(t)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n=t,r=this._textEditChanges[n.uri];if(!r){var i=[],a={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(a),r=new Xe(i),this._textEditChanges[n.uri]=r}return r}else{if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var i=[];this._workspaceEdit.changes[t]=i,r=new Xe(i),this._textEditChanges[t]=r}return r}},e.prototype.createFile=function(t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(ze.create(t,n))},e.prototype.renameFile=function(t,n,r){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Ge.create(t,n,r))},e.prototype.deleteFile=function(t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Ze.create(t,n))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")},e}(),ar;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){var i=r;return h.defined(i)&&h.string(i.uri)}e.is=n})(ar||(ar={}));var He;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return h.defined(i)&&h.string(i.uri)&&(i.version===null||h.number(i.version))}e.is=n})(He||(He={}));var or;(function(e){function t(r,i,a,o){return{uri:r,languageId:i,version:a,text:o}}e.create=t;function n(r){var i=r;return h.defined(i)&&h.string(i.uri)&&h.string(i.languageId)&&h.number(i.version)&&h.string(i.text)}e.is=n})(or||(or={}));var te;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(te||(te={}));(function(e){function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(te||(te={}));var Qe;(function(e){function t(n){var r=n;return h.objectLiteral(n)&&te.is(r.kind)&&h.string(r.value)}e.is=t})(Qe||(Qe={}));var M;(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})(M||(M={}));var U;(function(e){e.PlainText=1,e.Snippet=2})(U||(U={}));var sr;(function(e){e.Deprecated=1})(sr||(sr={}));var Le;(function(e){function t(n){return{label:n}}e.create=t})(Le||(Le={}));var kt;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(kt||(kt={}));var Ve;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){var i=r;return h.string(i)||h.objectLiteral(i)&&h.string(i.language)&&h.string(i.value)}e.is=n})(Ve||(Ve={}));var Ct;(function(e){function t(n){var r=n;return!!r&&h.objectLiteral(r)&&(Qe.is(r.contents)||Ve.is(r.contents)||h.typedArray(r.contents,Ve.is))&&(n.range===void 0||V.is(n.range))}e.is=t})(Ct||(Ct={}));var ur;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(ur||(ur={}));var fr;(function(e){function t(n,r){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o={label:n};return h.defined(r)&&(o.documentation=r),h.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(fr||(fr={}));var cr;(function(e){e.Text=1,e.Read=2,e.Write=3})(cr||(cr={}));var lr;(function(e){function t(n,r){var i={range:n};return h.number(r)&&(i.kind=r),i}e.create=t})(lr||(lr={}));var D;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(D||(D={}));var pr;(function(e){e.Deprecated=1})(pr||(pr={}));var wt;(function(e){function t(n,r,i,a,o){var u={name:n,kind:r,location:{uri:a,range:i}};return o&&(u.containerName=o),u}e.create=t})(wt||(wt={}));var Tt;(function(e){function t(r,i,a,o,u,s){var l={name:r,detail:i,kind:a,range:o,selectionRange:u};return s!==void 0&&(l.children=s),l}e.create=t;function n(r){var i=r;return i&&h.string(i.name)&&h.number(i.kind)&&V.is(i.range)&&V.is(i.selectionRange)&&(i.detail===void 0||h.string(i.detail))&&(i.deprecated===void 0||h.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))}e.is=n})(Tt||(Tt={}));var hr;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(hr||(hr={}));var gr;(function(e){function t(r,i){var a={diagnostics:r};return i!=null&&(a.only=i),a}e.create=t;function n(r){var i=r;return h.defined(i)&&h.typedArray(i.diagnostics,ee.is)&&(i.only===void 0||h.typedArray(i.only,h.string))}e.is=n})(gr||(gr={}));var dr;(function(e){function t(r,i,a){var o={title:r};return Fe.is(i)?o.command=i:o.edit=i,a!==void 0&&(o.kind=a),o}e.create=t;function n(r){var i=r;return i&&h.string(i.title)&&(i.diagnostics===void 0||h.typedArray(i.diagnostics,ee.is))&&(i.kind===void 0||h.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Fe.is(i.command))&&(i.isPreferred===void 0||h.boolean(i.isPreferred))&&(i.edit===void 0||xt.is(i.edit))}e.is=n})(dr||(dr={}));var mr;(function(e){function t(r,i){var a={range:r};return h.defined(i)&&(a.data=i),a}e.create=t;function n(r){var i=r;return h.defined(i)&&V.is(i.range)&&(h.undefined(i.command)||Fe.is(i.command))}e.is=n})(mr||(mr={}));var At;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){var i=r;return h.defined(i)&&h.number(i.tabSize)&&h.boolean(i.insertSpaces)}e.is=n})(At||(At={}));var vr;(function(e){function t(r,i,a){return{range:r,target:i,data:a}}e.create=t;function n(r){var i=r;return h.defined(i)&&V.is(i.range)&&(h.undefined(i.target)||h.string(i.target))}e.is=n})(vr||(vr={}));var Ye;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){var i=r;return i!==void 0&&V.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Ye||(Ye={}));var yr;(function(e){function t(a,o,u,s){return new yn(a,o,u,s)}e.create=t;function n(a){var o=a;return!!(h.defined(o)&&h.string(o.uri)&&(h.undefined(o.languageId)||h.string(o.languageId))&&h.number(o.lineCount)&&h.func(o.getText)&&h.func(o.positionAt)&&h.func(o.offsetAt))}e.is=n;function r(a,o){for(var u=a.getText(),s=i(o,function(m,b){var v=m.range.start.line-b.range.start.line;return v===0?m.range.start.character-b.range.start.character:v}),l=u.length,c=s.length-1;c>=0;c--){var f=s[c],p=a.offsetAt(f.range.start),d=a.offsetAt(f.range.end);if(d<=l)u=u.substring(0,p)+f.newText+u.substring(d,u.length);else throw new Error("Overlapping edit");l=p}return u}e.applyEdits=r;function i(a,o){if(a.length<=1)return a;var u=a.length/2|0,s=a.slice(0,u),l=a.slice(u);i(s,o),i(l,o);for(var c=0,f=0,p=0;c<s.length&&f<l.length;){var d=o(s[c],l[f]);d<=0?a[p++]=s[c++]:a[p++]=l[f++]}for(;c<s.length;)a[p++]=s[c++];for(;f<l.length;)a[p++]=l[f++];return a}})(yr||(yr={}));var yn=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var t=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(t.push(i),r=!1);var a=n.charAt(i);r=a==="\r"||a===`
  `,a==="\r"&&i+1<n.length&&n.charAt(i+1)===`
  `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Q.create(0,t);for(;r<i;){var a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}var o=r-1;return Q.create(o,t-n[o])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}(),h;(function(e){var t=Object.prototype.toString;function n(c){return typeof c!="undefined"}e.defined=n;function r(c){return typeof c=="undefined"}e.undefined=r;function i(c){return c===!0||c===!1}e.boolean=i;function a(c){return t.call(c)==="[object String]"}e.string=a;function o(c){return t.call(c)==="[object Number]"}e.number=o;function u(c){return t.call(c)==="[object Function]"}e.func=u;function s(c){return c!==null&&typeof c=="object"}e.objectLiteral=s;function l(c,f){return Array.isArray(c)&&c.every(f)}e.typedArray=l})(h||(h={}));"use strict";var xr=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){for(var r=0,i=t;r<i.length;r++){var a=i[r];if(e.isIncremental(a)){var o=Sr(a.range),u=this.offsetAt(o.start),s=this.offsetAt(o.end);this._content=this._content.substring(0,u)+a.text+this._content.substring(s,this._content.length);var l=Math.max(o.start.line,0),c=Math.max(o.end.line,0),f=this._lineOffsets,p=br(a.text,!1,u);if(c-l===p.length)for(var d=0,m=p.length;d<m;d++)f[d+l+1]=p[d];else p.length<1e4?f.splice.apply(f,[l+1,c-l].concat(p)):this._lineOffsets=f=f.slice(0,l+1).concat(p,f.slice(c+1));var b=a.text.length-(s-u);if(b!==0)for(var d=l+1+p.length,m=f.length;d<m;d++)f[d]=f[d]+b}else if(e.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=br(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){var a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}var o=r-1;return{line:o,character:t-n[o]}},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e.isIncremental=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},e.isFull=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},e}(),jt;(function(e){function t(i,a,o,u){return new xr(i,a,o,u)}e.create=t;function n(i,a,o){if(i instanceof xr)return i.update(a,o),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,a){for(var o=i.getText(),u=Ot(a.map(bn),function(m,b){var v=m.range.start.line-b.range.start.line;return v===0?m.range.start.character-b.range.start.character:v}),s=0,l=[],c=0,f=u;c<f.length;c++){var p=f[c],d=i.offsetAt(p.range.start);if(d<s)throw new Error("Overlapping edit");d>s&&l.push(o.substring(s,d)),p.newText.length&&l.push(p.newText),s=i.offsetAt(p.range.end)}return l.push(o.substr(s)),l.join("")}e.applyEdits=r})(jt||(jt={}));function Ot(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Ot(r,t),Ot(i,t);for(var a=0,o=0,u=0;a<r.length&&o<i.length;){var s=t(r[a],i[o]);s<=0?e[u++]=r[a++]:e[u++]=i[o++]}for(;a<r.length;)e[u++]=r[a++];for(;o<i.length;)e[u++]=i[o++];return e}function br(e,t,n){n===void 0&&(n=0);for(var r=t?[n]:[],i=0;i<e.length;i++){var a=e.charCodeAt(i);(a===13||a===10)&&(a===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Sr(e){var t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function bn(e){var t=Sr(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var re;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",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"})(re||(re={}));var kr;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[te.Markdown,te.PlainText],commitCharactersSupport:!0}}}}})(kr||(kr={}));function Sn(e,t){var n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,function(r,i){var a=i[0];return typeof t[a]!="undefined"?t[a]:r}),n}function xn(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Sn(t,n)}function oe(e){return xn}var Se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=oe(),kn={"color-hex":{errorMessage:N("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:N("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:N("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:N("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:N("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,}))$/}},xe=function(){function e(t,n,r){r===void 0&&(r=0),this.offset=n,this.length=r,this.parent=t}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}(),oa=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="null",i.value=null,i}return t}(xe),sa=function(e){Se(t,e);function t(n,r,i){var a=e.call(this,n,i)||this;return a.type="boolean",a.value=r,a}return t}(xe),ua=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(xe),fa=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}(xe),ca=function(e){Se(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return a.type="string",a.value="",a}return t}(xe),la=function(e){Se(t,e);function t(n,r,i){var a=e.call(this,n,r)||this;return a.type="property",a.colonOffset=-1,a.keyNode=i,a}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(xe),pa=function(e){Se(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(xe);function B(e){return X(e)?e?{}:{not:{}}:e}var Cr;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Cr||(Cr={}));var Cn=function(){function e(t,n){t===void 0&&(t=-1),this.focusOffset=t,this.exclude=n,this.schemas=[]}return e.prototype.add=function(t){this.schemas.push(t)},e.prototype.merge=function(t){Array.prototype.push.apply(this.schemas,t.schemas)},e.prototype.include=function(t){return(this.focusOffset===-1||It(t,this.focusOffset))&&t!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Et=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),H=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(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];this.merge(i)}},e.prototype.merge=function(t){this.problems=this.problems.concat(t.problems)},e.prototype.mergeEnumValues=function(t){if(!this.enumValueMatch&&!t.enumValueMatch&&this.enumValues&&t.enumValues){this.enumValues=this.enumValues.concat(t.enumValues);for(var n=0,r=this.problems;n<r.length;n++){var i=r[n];i.code===re.EnumValueMismatch&&(i.message=N("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map(function(a){return JSON.stringify(a)}).join(", ")))}}},e.prototype.mergePropertyMatch=function(t){this.merge(t),this.propertiesMatches++,(t.enumValueMatch||!t.hasProblems()&&t.propertiesMatches)&&this.propertiesValueMatches++,t.enumValueMatch&&t.enumValues&&t.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(t){var n=this.hasProblems();return n!==t.hasProblems()?n?-1:1:this.enumValueMatch!==t.enumValueMatch?t.enumValueMatch?-1:1:this.primaryValueMatches!==t.primaryValueMatches?this.primaryValueMatches-t.primaryValueMatches:this.propertiesValueMatches!==t.propertiesValueMatches?this.propertiesValueMatches-t.propertiesValueMatches:this.propertiesMatches-t.propertiesMatches},e}();function ne(e){return tr(e)}function De(e){return er(e)}function It(e,t,n){return n===void 0&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var ha=function(){function e(t,n,r){n===void 0&&(n=[]),r===void 0&&(r=[]),this.root=t,this.syntaxErrors=n,this.comments=r}return e.prototype.getNodeFromOffset=function(t,n){return n===void 0&&(n=!1),this.root?Yt(this.root,t,n):void 0},e.prototype.visit=function(t){if(this.root){var n=function(r){var i=t(r),a=r.children;if(Array.isArray(a))for(var o=0;o<a.length&&i;o++)i=n(a[o]);return i};n(this.root)}},e.prototype.validate=function(t,n){if(this.root&&n){var r=new H;return q(this.root,n,r,Et.instance),r.problems.map(function(i){var a=V.create(t.positionAt(i.location.offset),t.positionAt(i.location.offset+i.location.length));return ee.create(a,i.message,i.severity,i.code)})}},e.prototype.getMatchingSchemas=function(t,n,r){n===void 0&&(n=-1);var i=new Cn(n,r);return this.root&&t&&q(this.root,t,new H,i),i.schemas},e}();function q(e,t,n,r){if(!e||!r.include(e))return;var i=e;switch(i.type){case"object":l(i,t,n,r);break;case"array":s(i,t,n,r);break;case"string":u(i,t,n,r);break;case"number":o(i,t,n,r);break;case"property":return q(i.valueNode,t,n,r)}a(),r.add({node:i,schema:t});function a(){function c(P){return i.type===P||P==="integer"&&i.type==="number"&&i.isInteger}if(Array.isArray(t.type)?t.type.some(c)||n.problems.push({location:{offset:i.offset,length:i.length},severity:E.Warning,message:t.errorMessage||N("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(c(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},severity:E.Warning,message:t.errorMessage||N("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var f=0,p=t.allOf;f<p.length;f++){var d=p[f];q(i,B(d),n,r)}var m=B(t.not);if(m){var b=new H,v=r.newSub();q(i,m,b,v),b.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},severity:E.Warning,message:N("notSchemaWarning","Matches a schema that is not allowed.")});for(var S=0,y=v.schemas;S<y.length;S++){var g=y[S];g.inverted=!g.inverted,r.add(g)}}var k=function(P,L){for(var K=[],W=void 0,se=0,ve=P;se<ve.length;se++){var Ie=ve[se],ye=B(Ie),z=new H,ce=r.newSub();if(q(i,ye,z,ce),z.hasProblems()||K.push(ye),!W)W={schema:ye,validationResult:z,matchingSchemas:ce};else if(!L&&!z.hasProblems()&&!W.validationResult.hasProblems())W.matchingSchemas.merge(ce),W.validationResult.propertiesMatches+=z.propertiesMatches,W.validationResult.propertiesValueMatches+=z.propertiesValueMatches;else{var ke=z.compare(W.validationResult);ke>0?W={schema:ye,validationResult:z,matchingSchemas:ce}:ke===0&&(W.matchingSchemas.merge(ce),W.validationResult.mergeEnumValues(z))}}return K.length>1&&L&&n.problems.push({location:{offset:i.offset,length:1},severity:E.Warning,message:N("oneOfWarning","Matches multiple schemas when only one must validate.")}),W&&(n.merge(W.validationResult),n.propertiesMatches+=W.validationResult.propertiesMatches,n.propertiesValueMatches+=W.validationResult.propertiesValueMatches,r.merge(W.matchingSchemas)),K.length};Array.isArray(t.anyOf)&&k(t.anyOf,!1),Array.isArray(t.oneOf)&&k(t.oneOf,!0);var w=function(P){var L=new H,K=r.newSub();q(i,B(P),L,K),n.merge(L),n.propertiesMatches+=L.propertiesMatches,n.propertiesValueMatches+=L.propertiesValueMatches,r.merge(K)},C=function(P,L,K){var W=B(P),se=new H,ve=r.newSub();q(i,W,se,ve),r.merge(ve),se.hasProblems()?K&&w(K):L&&w(L)},A=B(t.if);if(A&&C(A,B(t.then),B(t.else)),Array.isArray(t.enum)){for(var F=ne(i),x=!1,T=0,j=t.enum;T<j.length;T++){var I=j[T];if(Ae(F,I)){x=!0;break}}n.enumValues=t.enum,n.enumValueMatch=x,x||n.problems.push({location:{offset:i.offset,length:i.length},severity:E.Warning,code:re.EnumValueMismatch,message:t.errorMessage||N("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(function(P){return JSON.stringify(P)}).join(", "))})}if(Y(t.const)){var F=ne(i);Ae(F,t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},severity:E.Warning,code:re.EnumValueMismatch,message:t.errorMessage||N("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}t.deprecationMessage&&i.parent&&n.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:E.Warning,message:t.deprecationMessage})}function o(c,f,p,d){var m=c.value;function b(T){var j,I=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(T.toString());return I&&{value:Number(I[1]+(I[2]||"")),multiplier:(((j=I[2])===null||j===void 0?void 0:j.length)||0)-(parseInt(I[3])||0)}}if(G(f.multipleOf)){var v=-1;if(Number.isInteger(f.multipleOf))v=m%f.multipleOf;else{var S=b(f.multipleOf),y=b(m);if(S&&y){var g=Math.pow(10,Math.abs(y.multiplier-S.multiplier));y.multiplier<S.multiplier?y.value*=g:S.value*=g,v=y.value%S.value}}v!==0&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("multipleOfWarning","Value is not divisible by {0}.",f.multipleOf)})}function k(T,j){return G(j)?j:X(j)&&j?T:void 0}function w(T,j){return!X(j)||!j?T:void 0}var C=k(f.minimum,f.exclusiveMinimum);G(C)&&m<=C&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",C)});var A=k(f.maximum,f.exclusiveMaximum);G(A)&&m>=A&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",A)});var F=w(f.minimum,f.exclusiveMinimum);G(F)&&m<F&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("minimumWarning","Value is below the minimum of {0}.",F)});var x=w(f.maximum,f.exclusiveMaximum);G(x)&&m>x&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("maximumWarning","Value is above the maximum of {0}.",x)})}function u(c,f,p,d){if(G(f.minLength)&&c.value.length<f.minLength&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("minLengthWarning","String is shorter than the minimum length of {0}.",f.minLength)}),G(f.maxLength)&&c.value.length>f.maxLength&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("maxLengthWarning","String is longer than the maximum length of {0}.",f.maxLength)}),rr(f.pattern)){var m=new RegExp(f.pattern);m.test(c.value)||p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:f.patternErrorMessage||f.errorMessage||N("patternWarning",'String does not match the pattern of "{0}".',f.pattern)})}if(f.format)switch(f.format){case"uri":case"uri-reference":{var b=void 0;if(!c.value)b=N("uriEmpty","URI expected.");else{var v=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(c.value);v?!v[2]&&f.format==="uri"&&(b=N("uriSchemeMissing","URI with a scheme is expected.")):b=N("uriMissing","URI is expected.")}b&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:f.patternErrorMessage||f.errorMessage||N("uriFormatWarning","String is not a URI: {0}",b)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var S=kn[f.format];(!c.value||!S.pattern.exec(c.value))&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:f.patternErrorMessage||f.errorMessage||S.errorMessage});default:}}function s(c,f,p,d){if(Array.isArray(f.items)){for(var m=f.items,b=0;b<m.length;b++){var v=m[b],S=B(v),y=new H,g=c.items[b];g?(q(g,S,y,d),p.mergePropertyMatch(y)):c.items.length>=m.length&&p.propertiesValueMatches++}if(c.items.length>m.length)if(typeof f.additionalItems=="object")for(var k=m.length;k<c.items.length;k++){var y=new H;q(c.items[k],f.additionalItems,y,d),p.mergePropertyMatch(y)}else f.additionalItems===!1&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",m.length)})}else{var w=B(f.items);if(w)for(var C=0,A=c.items;C<A.length;C++){var g=A[C],y=new H;q(g,w,y,d),p.mergePropertyMatch(y)}}var F=B(f.contains);if(F){var x=c.items.some(function(I){var P=new H;return q(I,F,P,Et.instance),!P.hasProblems()});x||p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:f.errorMessage||N("requiredItemMissingWarning","Array does not contain required item.")})}if(G(f.minItems)&&c.items.length<f.minItems&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("minItemsWarning","Array has too few items. Expected {0} or more.",f.minItems)}),G(f.maxItems)&&c.items.length>f.maxItems&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("maxItemsWarning","Array has too many items. Expected {0} or fewer.",f.maxItems)}),f.uniqueItems===!0){var T=ne(c),j=T.some(function(I,P){return P!==T.lastIndexOf(I)});j&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("uniqueItemsWarning","Array has duplicate items.")})}}function l(c,f,p,d){for(var m=Object.create(null),b=[],v=0,S=c.properties;v<S.length;v++){var y=S[v],g=y.keyNode.value;m[g]=y.valueNode,b.push(g)}if(Array.isArray(f.required))for(var k=0,w=f.required;k<w.length;k++){var C=w[k];if(!m[C]){var A=c.parent&&c.parent.type==="property"&&c.parent.keyNode,F=A?{offset:A.offset,length:A.length}:{offset:c.offset,length:1};p.problems.push({location:F,severity:E.Warning,message:N("MissingRequiredPropWarning",'Missing property "{0}".',C)})}}var x=function(Jt){for(var ct=b.indexOf(Jt);ct>=0;)b.splice(ct,1),ct=b.indexOf(Jt)};if(f.properties)for(var T=0,j=Object.keys(f.properties);T<j.length;T++){var C=j[T];x(C);var I=f.properties[C],P=m[C];if(P)if(X(I))if(I)p.propertiesMatches++,p.propertiesValueMatches++;else{var y=P.parent;p.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:E.Warning,message:f.errorMessage||N("DisallowedExtraPropWarning","Property {0} is not allowed.",C)})}else{var L=new H;q(P,I,L,d),p.mergePropertyMatch(L)}}if(f.patternProperties)for(var K=0,W=Object.keys(f.patternProperties);K<W.length;K++)for(var se=W[K],ve=new RegExp(se),Ie=0,ye=b.slice(0);Ie<ye.length;Ie++){var C=ye[Ie];if(ve.test(C)){x(C);var P=m[C];if(P){var I=f.patternProperties[se];if(X(I))if(I)p.propertiesMatches++,p.propertiesValueMatches++;else{var y=P.parent;p.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:E.Warning,message:f.errorMessage||N("DisallowedExtraPropWarning","Property {0} is not allowed.",C)})}else{var L=new H;q(P,I,L,d),p.mergePropertyMatch(L)}}}}if(typeof f.additionalProperties=="object")for(var z=0,ce=b;z<ce.length;z++){var C=ce[z],P=m[C];if(P){var L=new H;q(P,f.additionalProperties,L,d),p.mergePropertyMatch(L)}}else if(f.additionalProperties===!1&&b.length>0)for(var ke=0,Dt=b;ke<Dt.length;ke++){var C=Dt[ke],P=m[C];if(P){var y=P.parent;p.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:E.Warning,message:f.errorMessage||N("DisallowedExtraPropWarning","Property {0} is not allowed.",C)})}}if(G(f.maxProperties)&&(c.properties.length>f.maxProperties&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("MaxPropWarning","Object has more properties than limit of {0}.",f.maxProperties)})),G(f.minProperties)&&(c.properties.length<f.minProperties&&p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("MinPropWarning","Object has fewer properties than the required number of {0}",f.minProperties)})),f.dependencies)for(var ot=0,Rt=Object.keys(f.dependencies);ot<Rt.length;ot++){var g=Rt[ot],on=m[g];if(on){var st=f.dependencies[g];if(Array.isArray(st))for(var ut=0,$t=st;ut<$t.length;ut++){var Wt=$t[ut];m[Wt]?p.propertiesValueMatches++:p.problems.push({location:{offset:c.offset,length:c.length},severity:E.Warning,message:N("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",Wt,g)})}else{var I=B(st);if(I){var L=new H;q(c,I,L,d),p.mergePropertyMatch(L)}}}}var Ut=B(f.propertyNames);if(Ut)for(var ft=0,_t=c.properties;ft<_t.length;ft++){var sn=_t[ft],g=sn.keyNode;g&&q(g,Ut,p,Et.instance)}}}function et(e,t,n){if(e!==null&&typeof e=="object"){var r=t+"	";if(Array.isArray(e)){if(e.length===0)return"[]";for(var i=`[
  `,a=0;a<e.length;a++)i+=r+et(e[a],r,n),a<e.length-1&&(i+=","),i+=`
  `;return i+=t+"]",i}else{var o=Object.keys(e);if(o.length===0)return"{}";for(var i=`{
  `,a=0;a<o.length;a++){var u=o[a];i+=r+JSON.stringify(u)+": "+et(e[u],r,n),a<o.length-1&&(i+=","),i+=`
  `}return i+=t+"}",i}}return n(e)}function wr(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function pe(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Tr(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}var Pt=oe(),wn=[",","}","]"],Tn=[":"],An=function(){function e(t,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=Promise),i===void 0&&(i={}),this.schemaService=t,this.contributions=n,this.promiseConstructor=r,this.clientCapabilities=i}return e.prototype.doResolve=function(t){for(var n=this.contributions.length-1;n>=0;n--){var r=this.contributions[n].resolveCompletion;if(r){var i=r(t);if(i)return i}}return this.promiseConstructor.resolve(t)},e.prototype.doComplete=function(t,n,r){var i=this,a={items:[],isIncomplete:!1},o=t.getText(),u=t.offsetAt(n),s=r.getNodeFromOffset(u,!0);if(this.isInComment(t,s?s.offset:0,u))return Promise.resolve(a);if(s&&u===s.offset+s.length&&u>0){var l=o[u-1];(s.type==="object"&&l==="}"||s.type==="array"&&l==="]")&&(s=s.parent)}var c=this.getCurrentWord(t,u),f;if(s&&(s.type==="string"||s.type==="number"||s.type==="boolean"||s.type==="null"))f=V.create(t.positionAt(s.offset),t.positionAt(s.offset+s.length));else{var p=u-c.length;p>0&&o[p-1]==='"'&&p--,f=V.create(t.positionAt(p),n)}var d=!1,m={},b={add:function(v){var S=v.label,y=m[S];if(y)y.documentation||(y.documentation=v.documentation);else{if(S=S.replace(/[\n]/g,"\u21B5"),S.length>60){var g=S.substr(0,57).trim()+"...";m[g]||(S=g)}f&&v.insertText!==void 0&&(v.textEdit=Z.replace(f,v.insertText)),d&&(v.commitCharacters=v.kind===M.Property?Tn:wn),v.label=S,m[S]=v,a.items.push(v)}},setAsIncomplete:function(){a.isIncomplete=!0},error:function(v){console.error(v)},log:function(v){console.log(v)},getNumberOfProposals:function(){return a.items.length}};return this.schemaService.getSchemaForResource(t.uri,r).then(function(v){var S=[],y=!0,g="",k=void 0;if(s&&s.type==="string"){var w=s.parent;w&&w.type==="property"&&w.keyNode===s&&(y=!w.valueNode,k=w,g=o.substr(s.offset+1,s.length-2),w&&(s=w.parent))}if(s&&s.type==="object"){if(s.offset===u)return a;var C=s.properties;C.forEach(function(T){(!k||k!==T)&&(m[T.keyNode.value]=Le.create("__"))});var A="";y&&(A=i.evaluateSeparatorAfter(t,t.offsetAt(f.end))),v?i.getPropertyCompletions(v,r,s,y,A,b):i.getSchemaLessPropertyCompletions(r,s,g,b);var F=De(s);i.contributions.forEach(function(T){var j=T.collectPropertyCompletions(t.uri,F,c,y,A==="",b);j&&S.push(j)}),!v&&c.length>0&&o.charAt(u-c.length-1)!=='"'&&(b.add({kind:M.Property,label:i.getLabelForValue(c),insertText:i.getInsertTextForProperty(c,void 0,!1,A),insertTextFormat:U.Snippet,documentation:""}),b.setAsIncomplete())}var x={};return v?i.getValueCompletions(v,r,s,u,t,b,x):i.getSchemaLessValueCompletions(r,s,u,t,b),i.contributions.length>0&&i.getContributedValueCompletions(r,s,u,t,b,S),i.promiseConstructor.all(S).then(function(){if(b.getNumberOfProposals()===0){var T=u;s&&(s.type==="string"||s.type==="number"||s.type==="boolean"||s.type==="null")&&(T=s.offset+s.length);var j=i.evaluateSeparatorAfter(t,T);i.addFillerValueCompletions(x,j,b)}return a})})},e.prototype.getPropertyCompletions=function(t,n,r,i,a,o){var u=this,s=n.getMatchingSchemas(t.schema,r.offset);s.forEach(function(l){if(l.node===r&&!l.inverted){var c=l.schema.properties;c&&Object.keys(c).forEach(function(b){var v=c[b];if(typeof v=="object"&&!v.deprecationMessage&&!v.doNotSuggest){var S={kind:M.Property,label:b,insertText:u.getInsertTextForProperty(b,v,i,a),insertTextFormat:U.Snippet,filterText:u.getFilterTextForValue(b),documentation:u.fromMarkup(v.markdownDescription)||v.description||""};v.suggestSortText!==void 0&&(S.sortText=v.suggestSortText),S.insertText&&pe(S.insertText,"$1"+a)&&(S.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(S)}});var f=l.schema.propertyNames;if(typeof f=="object"&&!f.deprecationMessage&&!f.doNotSuggest){var p=function(b,v){v===void 0&&(v=void 0);var S={kind:M.Property,label:b,insertText:u.getInsertTextForProperty(b,void 0,i,a),insertTextFormat:U.Snippet,filterText:u.getFilterTextForValue(b),documentation:v||u.fromMarkup(f.markdownDescription)||f.description||""};f.suggestSortText!==void 0&&(S.sortText=f.suggestSortText),S.insertText&&pe(S.insertText,"$1"+a)&&(S.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(S)};if(f.enum)for(var d=0;d<f.enum.length;d++){var m=void 0;f.markdownEnumDescriptions&&d<f.markdownEnumDescriptions.length?m=u.fromMarkup(f.markdownEnumDescriptions[d]):f.enumDescriptions&&d<f.enumDescriptions.length&&(m=f.enumDescriptions[d]),p(f.enum[d],m)}f.const&&p(f.const)}}})},e.prototype.getSchemaLessPropertyCompletions=function(t,n,r,i){var a=this,o=function(s){s.properties.forEach(function(l){var c=l.keyNode.value;i.add({kind:M.Property,label:c,insertText:a.getInsertTextForValue(c,""),insertTextFormat:U.Snippet,filterText:a.getFilterTextForValue(c),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var u=n.parent.keyNode.value;t.visit(function(s){return s.type==="property"&&s!==n.parent&&s.keyNode.value===u&&s.valueNode&&s.valueNode.type==="object"&&o(s.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(s){s.type==="object"&&s!==n&&o(s)});else n.type==="object"&&i.add({kind:M.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:U.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(t,n,r,i,a){var o=this,u=r;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(u=n.offset+n.length,n=n.parent),!n){a.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:U.Snippet,documentation:""}),a.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:U.Snippet,documentation:""});return}var s=this.evaluateSeparatorAfter(i,u),l=function(d){d.parent&&!It(d.parent,r,!0)&&a.add({kind:o.getSuggestionKind(d.type),label:o.getLabelTextForMatchingNode(d,i),insertText:o.getInsertTextForMatchingNode(d,i,s),insertTextFormat:U.Snippet,documentation:""}),d.type==="boolean"&&o.addBooleanValueCompletion(!d.value,s,a)};if(n.type==="property"&&r>(n.colonOffset||0)){var c=n.valueNode;if(c&&(r>c.offset+c.length||c.type==="object"||c.type==="array"))return;var f=n.keyNode.value;t.visit(function(d){return d.type==="property"&&d.keyNode.value===f&&d.valueNode&&l(d.valueNode),!0}),f==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(s,a)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var p=n.parent.keyNode.value;t.visit(function(d){return d.type==="property"&&d.keyNode.value===p&&d.valueNode&&d.valueNode.type==="array"&&d.valueNode.items.forEach(l),!0})}else n.items.forEach(l)},e.prototype.getValueCompletions=function(t,n,r,i,a,o,u){var s=i,l=void 0,c=void 0;if(r&&(r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(s=r.offset+r.length,c=r,r=r.parent),!r){this.addSchemaValueCompletions(t.schema,"",o,u);return}if(r.type==="property"&&i>(r.colonOffset||0)){var f=r.valueNode;if(f&&i>f.offset+f.length)return;l=r.keyNode.value,r=r.parent}if(r&&(l!==void 0||r.type==="array")){for(var p=this.evaluateSeparatorAfter(a,s),d=n.getMatchingSchemas(t.schema,r.offset,c),m=0,b=d;m<b.length;m++){var v=b[m];if(v.node===r&&!v.inverted&&v.schema){if(r.type==="array"&&v.schema.items)if(Array.isArray(v.schema.items)){var S=this.findItemAtOffset(r,a,i);S<v.schema.items.length&&this.addSchemaValueCompletions(v.schema.items[S],p,o,u)}else this.addSchemaValueCompletions(v.schema.items,p,o,u);if(l!==void 0){var y=!1;if(v.schema.properties){var g=v.schema.properties[l];g&&(y=!0,this.addSchemaValueCompletions(g,p,o,u))}if(v.schema.patternProperties&&!y)for(var k=0,w=Object.keys(v.schema.patternProperties);k<w.length;k++){var C=w[k],A=new RegExp(C);if(A.test(l)){y=!0;var g=v.schema.patternProperties[C];this.addSchemaValueCompletions(g,p,o,u)}}if(v.schema.additionalProperties&&!y){var g=v.schema.additionalProperties;this.addSchemaValueCompletions(g,p,o,u)}}}}l==="$schema"&&!r.parent&&this.addDollarSchemaCompletions(p,o),u.boolean&&(this.addBooleanValueCompletion(!0,p,o),this.addBooleanValueCompletion(!1,p,o)),u.null&&this.addNullValueCompletion(p,o)}},e.prototype.getContributedValueCompletions=function(t,n,r,i,a,o){if(!n)this.contributions.forEach(function(c){var f=c.collectDefaultCompletions(i.uri,a);f&&o.push(f)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n&&n.type==="property"&&r>(n.colonOffset||0)){var u=n.keyNode.value,s=n.valueNode;if((!s||r<=s.offset+s.length)&&n.parent){var l=De(n.parent);this.contributions.forEach(function(c){var f=c.collectValueCompletions(i.uri,l,u,a);f&&o.push(f)})}}},e.prototype.addSchemaValueCompletions=function(t,n,r,i){var a=this;typeof t=="object"&&(this.addEnumValueCompletions(t,n,r),this.addDefaultValueCompletions(t,n,r),this.collectTypes(t,i),Array.isArray(t.allOf)&&t.allOf.forEach(function(o){return a.addSchemaValueCompletions(o,n,r,i)}),Array.isArray(t.anyOf)&&t.anyOf.forEach(function(o){return a.addSchemaValueCompletions(o,n,r,i)}),Array.isArray(t.oneOf)&&t.oneOf.forEach(function(o){return a.addSchemaValueCompletions(o,n,r,i)}))},e.prototype.addDefaultValueCompletions=function(t,n,r,i){var a=this;i===void 0&&(i=0);var o=!1;if(Y(t.default)){for(var u=t.type,s=t.default,l=i;l>0;l--)s=[s],u="array";r.add({kind:this.getSuggestionKind(u),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,n),insertTextFormat:U.Snippet,detail:Pt("json.suggest.default","Default value")}),o=!0}Array.isArray(t.examples)&&t.examples.forEach(function(c){for(var f=t.type,p=c,d=i;d>0;d--)p=[p],f="array";r.add({kind:a.getSuggestionKind(f),label:a.getLabelForValue(p),insertText:a.getInsertTextForValue(p,n),insertTextFormat:U.Snippet}),o=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(function(c){var f=t.type,p=c.body,d=c.label,m,b;if(Y(p)){for(var v=t.type,S=i;S>0;S--)p=[p],v="array";m=a.getInsertTextForSnippetValue(p,n),b=a.getFilterTextForSnippetValue(p),d=d||a.getLabelForSnippetValue(p)}else if(typeof c.bodyText=="string"){for(var y="",g="",k="",S=i;S>0;S--)y=y+k+`[
  `,g=g+`
  `+k+"]",k+="	",f="array";m=y+k+c.bodyText.split(`
  `).join(`
  `+k)+g+n,d=d||m,b=m.replace(/[\n]/g,"")}else return;r.add({kind:a.getSuggestionKind(f),label:d,documentation:a.fromMarkup(c.markdownDescription)||c.description,insertText:m,insertTextFormat:U.Snippet,filterText:b}),o=!0}),!o&&typeof t.items=="object"&&!Array.isArray(t.items)&&i<5&&this.addDefaultValueCompletions(t.items,n,r,i+1)},e.prototype.addEnumValueCompletions=function(t,n,r){if(Y(t.const)&&r.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,n),insertTextFormat:U.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(var i=0,a=t.enum.length;i<a;i++){var o=t.enum[i],u=this.fromMarkup(t.markdownDescription)||t.description;t.markdownEnumDescriptions&&i<t.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?u=this.fromMarkup(t.markdownEnumDescriptions[i]):t.enumDescriptions&&i<t.enumDescriptions.length&&(u=t.enumDescriptions[i]),r.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,n),insertTextFormat:U.Snippet,documentation:u})}},e.prototype.collectTypes=function(t,n){if(Array.isArray(t.enum)||Y(t.const))return;var r=t.type;Array.isArray(r)?r.forEach(function(i){return n[i]=!0}):r&&(n[r]=!0)},e.prototype.addFillerValueCompletions=function(t,n,r){t.object&&r.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:U.Snippet,detail:Pt("defaults.object","New object"),documentation:""}),t.array&&r.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:U.Snippet,detail:Pt("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(t,n,r){r.add({kind:this.getSuggestionKind("boolean"),label:t?"true":"false",insertText:this.getInsertTextForValue(t,n),insertTextFormat:U.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(t,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+t,insertTextFormat:U.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(t,n){var r=this,i=this.schemaService.getRegisteredSchemaIds(function(a){return a==="http"||a==="https"});i.forEach(function(a){return n.add({kind:M.Module,label:r.getLabelForValue(a),filterText:r.getFilterTextForValue(a),insertText:r.getInsertTextForValue(a,t),insertTextFormat:U.Snippet,documentation:""})})},e.prototype.getLabelForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForSnippetValue=function(t){return JSON.stringify(t).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(t){var n=JSON.stringify(t);return n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(t){return t.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(t,n){var r=JSON.stringify(t,null,"	");return r==="{}"?"{$1}"+n:r==="[]"?"[$1]"+n:this.getInsertTextForPlainText(r+n)},e.prototype.getInsertTextForSnippetValue=function(t,n){var r=function(i){return typeof i=="string"&&i[0]==="^"?i.substr(1):JSON.stringify(i)};return et(t,"",r)+n},e.prototype.getInsertTextForGuessedValue=function(t,n){switch(typeof t){case"object":return t===null?"${1:null}"+n:this.getInsertTextForValue(t,n);case"string":var r=JSON.stringify(t);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),'"${1:'+r+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(t)+"}"+n}return this.getInsertTextForValue(t,n)},e.prototype.getSuggestionKind=function(t){if(Array.isArray(t)){var n=t;t=n.length>0?n[0]:void 0}if(!t)return M.Value;switch(t){case"string":return M.Value;case"object":return M.Module;case"property":return M.Property;default:return M.Value}},e.prototype.getLabelTextForMatchingNode=function(t,n){switch(t.type){case"array":return"[]";case"object":return"{}";default:var r=n.getText().substr(t.offset,t.length);return r}},e.prototype.getInsertTextForMatchingNode=function(t,n,r){switch(t.type){case"array":return this.getInsertTextForValue([],r);case"object":return this.getInsertTextForValue({},r);default:var i=n.getText().substr(t.offset,t.length)+r;return this.getInsertTextForPlainText(i)}},e.prototype.getInsertTextForProperty=function(t,n,r,i){var a=this.getInsertTextForValue(t,"");if(!r)return a;var o=a+": ",u,s=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var l=n.defaultSnippets[0].body;Y(l)&&(u=this.getInsertTextForSnippetValue(l,""))}s+=n.defaultSnippets.length}if(n.enum&&(!u&&n.enum.length===1&&(u=this.getInsertTextForGuessedValue(n.enum[0],"")),s+=n.enum.length),Y(n.default)&&(u||(u=this.getInsertTextForGuessedValue(n.default,"")),s++),Array.isArray(n.examples)&&n.examples.length&&(u||(u=this.getInsertTextForGuessedValue(n.examples[0],"")),s+=n.examples.length),s===0){var c=Array.isArray(n.type)?n.type[0]:n.type;c||(n.properties?c="object":n.items&&(c="array"));switch(c){case"boolean":u="$1";break;case"string":u='"$1"';break;case"object":u="{$1}";break;case"array":u="[$1]";break;case"number":case"integer":u="${1:0}";break;case"null":u="${1:null}";break;default:return a}}}return(!u||s>1)&&(u="$1"),o+u+i},e.prototype.getCurrentWord=function(t,n){for(var r=n-1,i=t.getText();r>=0&&` 	
  \r\v":{[,]}`.indexOf(i.charAt(r))===-1;)r--;return i.substring(r+1,n)},e.prototype.evaluateSeparatorAfter=function(t,n){var r=ue(t.getText(),!0);r.setPosition(n);var i=r.scan();switch(i){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(t,n,r){for(var i=ue(n.getText(),!0),a=t.items,o=a.length-1;o>=0;o--){var u=a[o];if(r>u.offset+u.length){i.setPosition(u.offset+u.length);var s=i.scan();return s===5&&r>=i.getTokenOffset()+i.getTokenLength()?o+1:o}else if(r>=u.offset)return o}return 0},e.prototype.isInComment=function(t,n,r){var i=ue(t.getText(),!1);i.setPosition(n);for(var a=i.scan();a!==17&&i.getTokenOffset()+i.getTokenLength()<r;)a=i.scan();return(a===12||a===13)&&i.getTokenOffset()<=r},e.prototype.fromMarkup=function(t){return t&&this.doesSupportMarkdown()?{kind:te.Markdown,value:t}:void 0},e.prototype.doesSupportMarkdown=function(){if(!Y(this.supportsMarkdown)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=t&&t.completionItem&&Array.isArray(t.completionItem.documentationFormat)&&t.completionItem.documentationFormat.indexOf(te.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Y(this.supportsCommitCharacters)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=t&&t.completionItem&&!!t.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),On=function(){function e(t,n,r){n===void 0&&(n=[]),this.schemaService=t,this.contributions=n,this.promise=r||Promise}return e.prototype.doHover=function(t,n,r){var i=t.offsetAt(n),a=r.getNodeFromOffset(i);if(!a||(a.type==="object"||a.type==="array")&&i>a.offset+1&&i<a.offset+a.length-1)return this.promise.resolve(null);var o=a;if(a.type==="string"){var u=a.parent;if(u&&u.type==="property"&&u.keyNode===a&&(a=u.valueNode,!a))return this.promise.resolve(null)}for(var s=V.create(t.positionAt(o.offset),t.positionAt(o.offset+o.length)),l=function(m){var b={contents:m,range:s};return b},c=De(a),f=this.contributions.length-1;f>=0;f--){var p=this.contributions[f],d=p.getInfoContribution(t.uri,c);if(d)return d.then(function(m){return l(m)})}return this.schemaService.getSchemaForResource(t.uri,r).then(function(m){if(m&&a){var b=r.getMatchingSchemas(m.schema,a.offset),v=void 0,S=void 0,y=void 0,g=void 0;b.every(function(w){if(w.node===a&&!w.inverted&&w.schema&&(v=v||w.schema.title,S=S||w.schema.markdownDescription||Nt(w.schema.description),w.schema.enum)){var C=w.schema.enum.indexOf(ne(a));w.schema.markdownEnumDescriptions?y=w.schema.markdownEnumDescriptions[C]:w.schema.enumDescriptions&&(y=Nt(w.schema.enumDescriptions[C])),y&&(g=w.schema.enum[C],typeof g!="string"&&(g=JSON.stringify(g)))}return!0});var k="";return v&&(k=Nt(v)),S&&(k.length>0&&(k+=`
  
  `),k+=S),y&&(k.length>0&&(k+=`
  
  `),k+="`"+jn(g)+"`: "+y),l([k])}return null})},e}();function Nt(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
  
  $3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function jn(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}"use strict";var In=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_,Re;typeof process=="object"?Re=process.platform==="win32":typeof navigator=="object"&&(Ar=navigator.userAgent,Re=Ar.indexOf("Windows")>=0);var Ar,En=/^\w[\w\d+.-]*$/,Pn=/^\//,Nn=/^\/\//;function Mn(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!En.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Pn.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(Nn.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 ("//")')}}function Fn(e,t){return!e&&!t?"file":e}function Ln(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ie&&(t=ie+t):t=ie;break}return t}var R="",ie="/",Vn=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,$e=function(){function e(t,n,r,i,a,o){o===void 0&&(o=!1),typeof t=="object"?(this.scheme=t.scheme||R,this.authority=t.authority||R,this.path=t.path||R,this.query=t.query||R,this.fragment=t.fragment||R):(this.scheme=Fn(t,o),this.authority=n||R,this.path=Ln(this.scheme,r||R),this.query=i||R,this.fragment=a||R,Mn(this,o))}return e.isUri=function(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="function"&&typeof t.with=="function"&&typeof t.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return Or(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(t){if(!t)return this;var n=t.scheme,r=t.authority,i=t.path,a=t.query,o=t.fragment;return n===void 0?n=this.scheme:n===null&&(n=R),r===void 0?r=this.authority:r===null&&(r=R),i===void 0?i=this.path:i===null&&(i=R),a===void 0?a=this.query:a===null&&(a=R),o===void 0?o=this.fragment:o===null&&(o=R),n===this.scheme&&r===this.authority&&i===this.path&&a===this.query&&o===this.fragment?this:new je(n,r,i,a,o)},e.parse=function(t,n){n===void 0&&(n=!1);var r=Vn.exec(t);return r?new je(r[2]||R,tt(r[4]||R),tt(r[5]||R),tt(r[7]||R),tt(r[9]||R),n):new je(R,R,R,R,R)},e.file=function(t){var n=R;if(Re&&(t=t.replace(/\\/g,ie)),t[0]===ie&&t[1]===ie){var r=t.indexOf(ie,2);r===-1?(n=t.substring(2),t=ie):(n=t.substring(2,r),t=t.substring(r)||ie)}return new je("file",n,t,R,R)},e.from=function(t){return new je(t.scheme,t.authority,t.path,t.query,t.fragment)},e.prototype.toString=function(t){return t===void 0&&(t=!1),Mt(this,t)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new je(t);return n._formatted=t.external,n._fsPath=t._sep===jr?t.fsPath:null,n}else return t},e}(),jr=Re?1:void 0,je=function(e){In(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Or(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(n){return n===void 0&&(n=!1),n?Mt(this,!0):(this._formatted||(this._formatted=Mt(this,!1)),this._formatted)},t.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=jr),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},t}($e),Ir=(_={},_[58]="%3A",_[47]="%2F",_[63]="%3F",_[35]="%23",_[91]="%5B",_[93]="%5D",_[64]="%40",_[33]="%21",_[36]="%24",_[38]="%26",_[39]="%27",_[40]="%28",_[41]="%29",_[42]="%2A",_[43]="%2B",_[44]="%2C",_[59]="%3B",_[61]="%3D",_[32]="%20",_);function Er(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47)r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n!==void 0&&(n+=e.charAt(i));else{n===void 0&&(n=e.substr(0,i));var o=Ir[a];o!==void 0?(r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=o):r===-1&&(r=i)}}return r!==-1&&(n+=encodeURIComponent(e.substring(r))),n!==void 0?n:e}function Dn(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Ir[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Or(e,t){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Re&&(n=n.replace(/\//g,"\\")),n}function Mt(e,t){var n=t?Dn:Er,r="",i=e.scheme,a=e.authority,o=e.path,u=e.query,s=e.fragment;if(i&&(r+=i,r+=":"),(a||i==="file")&&(r+=ie,r+=ie),a){var l=a.indexOf("@");if(l!==-1){var c=a.substr(0,l);a=a.substr(l+1),l=c.indexOf(":"),l===-1?r+=n(c,!1):(r+=n(c.substr(0,l),!1),r+=":",r+=n(c.substr(l+1),!1)),r+="@"}a=a.toLowerCase(),l=a.indexOf(":"),l===-1?r+=n(a,!1):(r+=n(a.substr(0,l),!1),r+=a.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){var f=o.charCodeAt(1);f>=65&&f<=90&&(o="/"+String.fromCharCode(f+32)+":"+o.substr(3))}else if(o.length>=2&&o.charCodeAt(1)===58){var f=o.charCodeAt(0);f>=65&&f<=90&&(o=String.fromCharCode(f+32)+":"+o.substr(2))}r+=n(o,!0)}return u&&(r+="?",r+=n(u,!1)),s&&(r+="#",r+=t?s:Er(s,!1)),r}function Pr(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Pr(e.substr(3)):e}}var Nr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function tt(e){return e.match(Nr)?e.replace(Nr,function(t){return Pr(t)}):e}var he=oe(),Rn=function(){function e(t,n){this.patternRegExps=[],this.isInclude=[];try{for(var r=0,i=t;r<i.length;r++){var a=i[r],o=a[0]!=="!";o||(a=a.substring(1)),this.patternRegExps.push(new RegExp(Tr(a)+"$")),this.isInclude.push(o)}this.uris=n}catch(u){this.patternRegExps.length=0,this.isInclude.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0;r<this.patternRegExps.length;r++){var i=this.patternRegExps[r];i.test(t)&&(n=this.isInclude[r])}return n},e.prototype.getURIs=function(){return this.uris},e}(),$n=function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new ge(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),ge=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),Mr=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);return n?B(n):void 0},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var i=0,a=Object.keys(n.patternProperties);i<a.length;i++){var o=a[i],u=new RegExp(o);if(u.test(r))return this.getSectionRecursive(t,n.patternProperties[o])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var s=parseInt(r,10);if(!isNaN(s)&&n.items[s])return this.getSectionRecursive(t,n.items[s])}else if(n.items)return this.getSectionRecursive(t,n.items)}}},e}(),Un=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=$e.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this,r=!1;t=de(t);for(var i=[t],a=Object.keys(this.schemasById).map(function(l){return n.schemasById[l]});i.length;)for(var o=i.pop(),u=0;u<a.length;u++){var s=a[u];s&&(s.url===o||s.dependencies[o])&&(s.url!==o&&i.push(s.url),s.clearSchema(),a[u]=void 0,r=!0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var i=de(r);this.contributionSchemas[i]=this.addSchemaHandle(i,n[r])}}if(Array.isArray(t.schemaAssociations))for(var a=t.schemaAssociations,o=0,u=a;o<u.length;o++){var s=u[o],l=s.uris.map(de),c=this.addFilePatternAssociation(s.pattern,l);this.contributionAssociations.push(c)}},e.prototype.addSchemaHandle=function(t,n){var r=new $n(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new Rn(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=de(t);return this.registeredSchemasIds[i]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[t]),r?this.addSchemaHandle(i,r):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var i=r[n];this.filePatternAssociations.push(i)}},e.prototype.getResolvedSchema=function(t){var n=de(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=he("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",rt(t));return this.promise.resolve(new ge({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=he("json.schema.nocontent","Unable to load schema from '{0}': No content.",rt(t));return new ge({},[i])}var a={},o=[];a=Qt(r,o);var u=o.length?[he("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",rt(t),o[0].offset)]:[];return new ge(a,u)},function(r){var i=r.toString(),a=r.toString().split("Error: ");return a.length>1&&(i=a[1]),pe(i,".")&&(i=i.substr(0,i.length-1)),new ge({},[he("json.schema.nocontent","Unable to load schema from '{0}': {1}.",rt(t),i)])})},e.prototype.resolveSchemaContent=function(t,n,r){var i=this,a=t.errors.slice(0),o=t.schema;if(o.$schema){var u=de(o.$schema);if(u==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Mr({},[he("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));u==="https://json-schema.org/draft/2019-09/schema"&&a.push(he("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var s=this.contextService,l=function(d,m){if(!m)return d;var b=d;return m[0]==="/"&&(m=m.substr(1)),m.split("/").some(function(v){return b=b[v],!b}),b},c=function(d,m,b,v){var S=v?decodeURIComponent(v):void 0,y=l(m,S);if(y)for(var g in y)y.hasOwnProperty(g)&&!d.hasOwnProperty(g)&&(d[g]=y[g]);else a.push(he("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",S,b))},f=function(d,m,b,v,S){s&&!/^\w+:\/\/.*/.test(m)&&(m=s.resolveRelativePath(m,v)),m=de(m);var y=i.getOrAddSchemaHandle(m);return y.getUnresolvedSchema().then(function(g){if(S[m]=!0,g.errors.length){var k=b?m+"#"+b:m;a.push(he("json.schema.problemloadingref","Problems loading reference '{0}': {1}",k,g.errors[0]))}return c(d,g.schema,m,b),p(d,g.schema,m,y.dependencies)})},p=function(d,m,b,v){if(!d||typeof d!="object")return Promise.resolve(null);for(var S=[d],y=[],g=[],k=function(){for(var x=[],T=0;T<arguments.length;T++)x[T]=arguments[T];for(var j=0,I=x;j<I.length;j++){var P=I[j];typeof P=="object"&&S.push(P)}},w=function(){for(var x=[],T=0;T<arguments.length;T++)x[T]=arguments[T];for(var j=0,I=x;j<I.length;j++){var P=I[j];if(typeof P=="object")for(var L in P){var K=L,W=P[K];typeof W=="object"&&S.push(W)}}},C=function(){for(var x=[],T=0;T<arguments.length;T++)x[T]=arguments[T];for(var j=0,I=x;j<I.length;j++){var P=I[j];if(Array.isArray(P))for(var L=0,K=P;L<K.length;L++){var W=K[L];typeof W=="object"&&S.push(W)}}},A=function(x){for(var T=[];x.$ref;){var j=x.$ref,I=j.split("#",2);if(delete x.$ref,I[0].length>0){g.push(f(x,I[0],I[1],b,v));return}else T.indexOf(j)===-1&&(c(x,m,b,I[1]),T.push(j))}k(x.items,x.additionalItems,x.additionalProperties,x.not,x.contains,x.propertyNames,x.if,x.then,x.else),w(x.definitions,x.properties,x.patternProperties,x.dependencies),C(x.anyOf,x.allOf,x.oneOf,x.items)};S.length;){var F=S.pop();if(y.indexOf(F)>=0)continue;y.push(F),A(F)}return i.promise.all(g)};return p(o,o,n,r).then(function(d){return new Mr(o,a)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(v){return v.keyNode.value==="$schema"&&v.valueNode&&v.valueNode.type==="string"});if(r.length>0){var i=r[0].valueNode;if(i&&i.type==="string"){var a=ne(i);if(a&&wr(a,".")&&this.contextService&&(a=this.contextService.resolveRelativePath(a,t)),a){var o=de(a);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;for(var u=Object.create(null),s=[],l=0,c=this.filePatternAssociations;l<c.length;l++){var f=c[l];if(f.matchesPattern(t))for(var p=0,d=f.getURIs();p<d.length;p++){var m=d[p];u[m]||(s.push(m),u[m]=!0)}}var b=s.length>0?this.createCombinedSchema(t,s).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:b},b},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:n.map(function(a){return{$ref:a}})};return this.addSchemaHandle(r,i)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var i=r.id||"schemaservice://untitled/matchingSchemas/"+Wn++;return this.resolveSchemaContent(new ge(r),i,{}).then(function(a){return n.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(a){return a?n.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted}):[]})},e}(),Wn=0;function de(e){try{return $e.parse(e).toString()}catch(t){return e}}function rt(e){try{var t=$e.parse(e);if(t.scheme==="file")return t.fsPath}catch(n){}return e}var _n=oe(),Kn=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate,this.commentSeverity=t.allowComments?void 0:E.Error)},e.prototype.doValidation=function(t,n,r,i){var a=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],u={},s=function(f){var p=f.range.start.line+" "+f.range.start.character+" "+f.message;u[p]||(u[p]=!0,o.push(f))},l=function(f){var p=r?Vr(r.trailingCommas):E.Error,d=r?Vr(r.comments):a.commentSeverity;if(f){if(f.errors.length&&n.root){var m=n.root,b=m.type==="object"?m.properties[0]:void 0;if(b&&b.keyNode.value==="$schema"){var v=b.valueNode||b,S=V.create(t.positionAt(v.offset),t.positionAt(v.offset+v.length));s(ee.create(S,f.errors[0],E.Warning,re.SchemaResolveError))}else{var S=V.create(t.positionAt(m.offset),t.positionAt(m.offset+1));s(ee.create(S,f.errors[0],E.Warning,re.SchemaResolveError))}}else{var y=n.validate(t,f.schema);y&&y.forEach(s)}Fr(f.schema)&&(d=void 0),Lr(f.schema)&&(p=void 0)}for(var g=0,k=n.syntaxErrors;g<k.length;g++){var w=k[g];if(w.code===re.TrailingComma){if(typeof p!="number")continue;w.severity=p}s(w)}if(typeof d=="number"){var C=_n("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(A){s(ee.create(A,C,d,re.CommentNotPermitted))})}return o};if(i){var c=i.id||"schemaservice://untitled/"+Jn++;return this.jsonSchemaService.resolveSchemaContent(new ge(i),c,{}).then(function(f){return l(f)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(f){return l(f)})},e}(),Jn=0;function Fr(e){if(e&&typeof e=="object"){if(X(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=Fr(r);if(X(i))return i}}}function Lr(e){if(e&&typeof e=="object"){if(X(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(X(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=r[n],a=Lr(i);if(X(a))return a}}}function Vr(e){switch(e){case"error":return E.Error;case"warning":return E.Warning;case"ignore":return}}var Dr=48,qn=57,Bn=65,nt=97,Hn=102;function J(e){return e<Dr?0:e<=qn?e-Dr:(e<nt&&(e+=nt-Bn),e>=nt&&e<=Hn?e-nt+10:0)}function Rr(e){if(e[0]!=="#")return;switch(e.length){case 4:return{red:J(e.charCodeAt(1))*17/255,green:J(e.charCodeAt(2))*17/255,blue:J(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:J(e.charCodeAt(1))*17/255,green:J(e.charCodeAt(2))*17/255,blue:J(e.charCodeAt(3))*17/255,alpha:J(e.charCodeAt(4))*17/255};case 7:return{red:(J(e.charCodeAt(1))*16+J(e.charCodeAt(2)))/255,green:(J(e.charCodeAt(3))*16+J(e.charCodeAt(4)))/255,blue:(J(e.charCodeAt(5))*16+J(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(J(e.charCodeAt(1))*16+J(e.charCodeAt(2)))/255,green:(J(e.charCodeAt(3))*16+J(e.charCodeAt(4)))/255,blue:(J(e.charCodeAt(5))*16+J(e.charCodeAt(6)))/255,alpha:(J(e.charCodeAt(7))*16+J(e.charCodeAt(8)))/255}}}var zn=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var a=n.root;if(!a)return[];var o=r.resultLimit||Number.MAX_VALUE,u=t.uri;if((u==="vscode://defaultsettings/keybindings.json"||pe(u.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var s=[],l=0,c=a.items;l<c.length;l++){var f=c[l];if(f.type==="object")for(var p=0,d=f.properties;p<d.length;p++){var m=d[p];if(m.keyNode.value==="key"&&m.valueNode){var b=be.create(t.uri,me(t,f));if(s.push({name:ne(m.valueNode),kind:D.Function,location:b}),o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),s}}}return s}for(var v=[{node:a,containerName:""}],S=0,y=!1,g=[],k=function(C,A){C.type==="array"?C.items.forEach(function(F){F&&v.push({node:F,containerName:A})}):C.type==="object"&&C.properties.forEach(function(F){var x=F.valueNode;if(x)if(o>0){o--;var T=be.create(t.uri,me(t,F)),j=A?A+"."+F.keyNode.value:F.keyNode.value;g.push({name:i.getKeyLabel(F),kind:i.getSymbolKind(x.type),location:T,containerName:A}),v.push({node:x,containerName:j})}else y=!0})};S<v.length;){var w=v[S++];k(w.node,w.containerName)}return y&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),g},e.prototype.findDocumentSymbols2=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var a=n.root;if(!a)return[];var o=r.resultLimit||Number.MAX_VALUE,u=t.uri;if((u==="vscode://defaultsettings/keybindings.json"||pe(u.toLowerCase(),"/user/keybindings.json"))&&a.type==="array"){for(var s=[],l=0,c=a.items;l<c.length;l++){var f=c[l];if(f.type==="object")for(var p=0,d=f.properties;p<d.length;p++){var m=d[p];if(m.keyNode.value==="key"&&m.valueNode){var b=me(t,f),v=me(t,m.keyNode);if(s.push({name:ne(m.valueNode),kind:D.Function,range:b,selectionRange:v}),o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),s}}}return s}for(var S=[],y=[{node:a,result:S}],g=0,k=!1,w=function(A,F){A.type==="array"?A.items.forEach(function(x,T){if(x)if(o>0){o--;var j=me(t,x),I=j,P=String(T),L={name:P,kind:i.getSymbolKind(x.type),range:j,selectionRange:I,children:[]};F.push(L),y.push({result:L.children,node:x})}else k=!0}):A.type==="object"&&A.properties.forEach(function(x){var T=x.valueNode;if(T)if(o>0){o--;var j=me(t,x),I=me(t,x.keyNode),P={name:i.getKeyLabel(x),kind:i.getSymbolKind(T.type),range:j,selectionRange:I,children:[]};F.push(P),y.push({result:P.children,node:T})}else k=!0})};g<y.length;){var C=y[g++];w(C.node,C.result)}return k&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(u),S},e.prototype.getSymbolKind=function(t){switch(t){case"object":return D.Module;case"string":return D.String;case"number":return D.Number;case"array":return D.Array;case"boolean":return D.Boolean;default:return D.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(i){var a=[];if(i)for(var o=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,u=n.getMatchingSchemas(i.schema),s={},l=0,c=u;l<c.length;l++){var f=c[l];if(!f.inverted&&f.schema&&(f.schema.format==="color"||f.schema.format==="color-hex")&&f.node&&f.node.type==="string"){var p=String(f.node.offset);if(!s[p]){var d=Rr(ne(f.node));if(d){var m=me(t,f.node);a.push({color:d,range:m})}if(s[p]=!0,o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),a}}}return a})},e.prototype.getColorPresentations=function(t,n,r,i){var a=[],o=Math.round(r.red*255),u=Math.round(r.green*255),s=Math.round(r.blue*255);function l(f){var p=f.toString(16);return p.length!==2?"0"+p:p}var c;return r.alpha===1?c="#"+l(o)+l(u)+l(s):c="#"+l(o)+l(u)+l(s)+l(Math.round(r.alpha*255)),a.push({label:c,textEdit:Z.replace(i,JSON.stringify(c))}),a},e}();function me(e,t){return V.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var O=oe(),Ft={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{title:O("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{title:O("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),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:!0,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:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},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:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},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:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},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:!0}}},Gn={id:O("schema.json.id","A unique identifier for the schema."),$schema:O("schema.json.$schema","The schema to verify this document against."),title:O("schema.json.title","A descriptive title of the element."),description:O("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:O("schema.json.default","A default value. Used by suggestions."),multipleOf:O("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:O("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:O("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:O("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:O("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:O("schema.json.maxLength","The maximum length of a string."),minLength:O("schema.json.minLength","The minimum length of a string."),pattern:O("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:O("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:O("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:O("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:O("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:O("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:O("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:O("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:O("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:O("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:O("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:O("schema.json.properties","A map of property names to schemas for each property."),patternProperties:O("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:O("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:O("schema.json.enum","The set of literal values that are valid."),type:O("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:O("schema.json.format","Describes the format expected for the value."),allOf:O("schema.json.allOf","An array of schemas, all of which must match."),anyOf:O("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:O("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:O("schema.json.not","A schema which must not match."),$id:O("schema.json.$id","A unique identifier for the schema."),$ref:O("schema.json.$ref","Reference a definition hosted on any location."),$comment:O("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:O("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:O("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:O("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:O("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:O("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:O("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:O("schema.json.contentEncoding","Describes the content encoding of a string property."),if:O("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:O("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:O("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var Zn in Ft.schemas){it=Ft.schemas[Zn];for(var We in it.properties)at=it.properties[We],typeof at=="boolean"&&(at=it.properties[We]={}),Lt=Gn[We],Lt?at.description=Lt:console.log(We+": localize('schema.json."+We+`', "")`)}var it,at,Lt;var $r=function(){function e(t,n,r){var i=this;this._languageId=t,this._worker=n,this._disposables=[],this._listener=Object.create(null);var a=function(u){var s=u.getModeId();if(s!==i._languageId)return;var l;i._listener[u.uri.toString()]=u.onDidChangeContent(function(){clearTimeout(l),l=setTimeout(function(){return i._doValidate(u.uri,s)},500)}),i._doValidate(u.uri,s)},o=function(u){$.editor.setModelMarkers(u,i._languageId,[]);var s=u.uri.toString(),l=i._listener[s];l&&(l.dispose(),delete i._listener[s])};this._disposables.push($.editor.onDidCreateModel(a)),this._disposables.push($.editor.onWillDisposeModel(function(u){o(u),i._resetSchema(u.uri)})),this._disposables.push($.editor.onDidChangeModelLanguage(function(u){o(u.model),a(u.model),i._resetSchema(u.model.uri)})),this._disposables.push(r.onDidChange(function(u){$.editor.getModels().forEach(function(s){s.getModeId()===i._languageId&&(o(s),a(s))})})),this._disposables.push({dispose:function(){$.editor.getModels().forEach(o);for(var u in i._listener)i._listener[u].dispose()}}),$.editor.getModels().forEach(a)}return e.prototype.dispose=function(){this._disposables.forEach(function(t){return t&&t.dispose()}),this._disposables=[]},e.prototype._resetSchema=function(t){this._worker().then(function(n){n.resetSchema(t.toString())})},e.prototype._doValidate=function(t,n){this._worker(t).then(function(r){return r.doValidation(t.toString()).then(function(i){var a=i.map(function(u){return Xn(t,u)}),o=$.editor.getModel(t);o&&o.getModeId()===n&&$.editor.setModelMarkers(o,n,a)})}).then(void 0,function(r){console.error(r)})},e}();function Qn(e){switch(e){case E.Error:return $.MarkerSeverity.Error;case E.Warning:return $.MarkerSeverity.Warning;case E.Information:return $.MarkerSeverity.Info;case E.Hint:return $.MarkerSeverity.Hint;default:return $.MarkerSeverity.Info}}function Xn(e,t){var n=typeof t.code=="number"?String(t.code):t.code;return{severity:Qn(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}function Vt(e){return e?{character:e.column-1,line:e.lineNumber-1}:void 0}function Wr(e){return e?{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}:void 0}function fe(e){return e?new $.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1):void 0}function Yn(e){return typeof e.insert!="undefined"&&typeof e.replace!="undefined"}function ei(e){var t=$.languages.CompletionItemKind;switch(e){case M.Text:return t.Text;case M.Method:return t.Method;case M.Function:return t.Function;case M.Constructor:return t.Constructor;case M.Field:return t.Field;case M.Variable:return t.Variable;case M.Class:return t.Class;case M.Interface:return t.Interface;case M.Module:return t.Module;case M.Property:return t.Property;case M.Unit:return t.Unit;case M.Value:return t.Value;case M.Enum:return t.Enum;case M.Keyword:return t.Keyword;case M.Snippet:return t.Snippet;case M.Color:return t.Color;case M.File:return t.File;case M.Reference:return t.Reference}return t.Property}function Ue(e){return e?{range:fe(e.range),text:e.newText}:void 0}var Ur=function(){function e(t){this._worker=t}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!1,configurable:!0}),e.prototype.provideCompletionItems=function(t,n,r,i){var a=t.uri;return this._worker(a).then(function(o){return o.doComplete(a.toString(),Vt(n))}).then(function(o){if(!o)return;var u=t.getWordUntilPosition(n),s=new $.Range(n.lineNumber,u.startColumn,n.lineNumber,u.endColumn),l=o.items.map(function(c){var f={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,range:s,kind:ei(c.kind)};return c.textEdit&&(Yn(c.textEdit)?f.range={insert:fe(c.textEdit.insert),replace:fe(c.textEdit.replace)}:f.range=fe(c.textEdit.range),f.insertText=c.textEdit.newText),c.additionalTextEdits&&(f.additionalTextEdits=c.additionalTextEdits.map(Ue)),c.insertTextFormat===U.Snippet&&(f.insertTextRules=$.languages.CompletionItemInsertTextRule.InsertAsSnippet),f});return{isIncomplete:o.isIncomplete,suggestions:l}})},e}();function ti(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function _r(e){return typeof e=="string"?{value:e}:ti(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
  `+e.value+"\n```\n"}}function ri(e){return e?Array.isArray(e)?e.map(_r):[_r(e)]:void 0}var Jr=function(){function e(t){this._worker=t}return e.prototype.provideHover=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.doHover(i.toString(),Vt(n))}).then(function(a){return a?{range:fe(a.range),contents:ri(a.contents)}:void 0})},e}();function ni(e){var t=$.languages.SymbolKind;switch(e){case D.File:return t.Array;case D.Module:return t.Module;case D.Namespace:return t.Namespace;case D.Package:return t.Package;case D.Class:return t.Class;case D.Method:return t.Method;case D.Property:return t.Property;case D.Field:return t.Field;case D.Constructor:return t.Constructor;case D.Enum:return t.Enum;case D.Interface:return t.Interface;case D.Function:return t.Function;case D.Variable:return t.Variable;case D.Constant:return t.Constant;case D.String:return t.String;case D.Number:return t.Number;case D.Boolean:return t.Boolean;case D.Array:return t.Array}return t.Function}var Kr=function(){function e(t){this._worker=t}return e.prototype.provideDocumentSymbols=function(t,n){var r=t.uri;return this._worker(r).then(function(i){return i.findDocumentSymbols(r.toString())}).then(function(i){return i?i.map(function(a){return{name:a.name,detail:"",containerName:a.containerName,kind:ni(a.kind),range:fe(a.location.range),selectionRange:fe(a.location.range),tags:[]}}):void 0})},e}();function qr(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Br=function(){function e(t){this._worker=t}return e.prototype.provideDocumentFormattingEdits=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.format(i.toString(),null,qr(n)).then(function(o){return!o||o.length===0?void 0:o.map(Ue)})})},e}(),Hr=function(){function e(t){this._worker=t}return e.prototype.provideDocumentRangeFormattingEdits=function(t,n,r,i){var a=t.uri;return this._worker(a).then(function(o){return o.format(a.toString(),Wr(n),qr(r)).then(function(u){return!u||u.length===0?void 0:u.map(Ue)})})},e}(),zr=function(){function e(t){this._worker=t}return e.prototype.provideDocumentColors=function(t,n){var r=t.uri;return this._worker(r).then(function(i){return i.findDocumentColors(r.toString())}).then(function(i){return i?i.map(function(a){return{color:a.color,range:fe(a.range)}}):void 0})},e.prototype.provideColorPresentations=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.getColorPresentations(i.toString(),n.color,Wr(n.range))}).then(function(a){return a?a.map(function(o){var u={label:o.label};return o.textEdit&&(u.textEdit=Ue(o.textEdit)),o.additionalTextEdits&&(u.additionalTextEdits=o.additionalTextEdits.map(Ue)),u}):void 0})},e}(),Gr=function(){function e(t){this._worker=t}return e.prototype.provideFoldingRanges=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.getFoldingRanges(i.toString(),n)}).then(function(a){return a?a.map(function(o){var u={start:o.startLine+1,end:o.endLine+1};return typeof o.kind!="undefined"&&(u.kind=ii(o.kind)),u}):void 0})},e}();function ii(e){switch(e){case le.Comment:return $.languages.FoldingRangeKind.Comment;case le.Imports:return $.languages.FoldingRangeKind.Imports;case le.Region:return $.languages.FoldingRangeKind.Region}}var Zr=function(){function e(t){this._worker=t}return e.prototype.provideSelectionRanges=function(t,n,r){var i=t.uri;return this._worker(i).then(function(a){return a.getSelectionRanges(i.toString(),n.map(Vt))}).then(function(a){return a?a.map(function(o){for(var u=[];o;)u.push({range:fe(o.range)}),o=o.parent;return u}):void 0})},e}();function Qr(e){return{getInitialState:function(){return new Xr(null,null,!1,null)},tokenize:function(t,n,r,i){return ai(e,t,n,r,i)}}}var Yr="delimiter.bracket.json",en="delimiter.array.json",oi="delimiter.colon.json",si="delimiter.comma.json",ui="keyword.json",fi="keyword.json",ci="string.value.json",li="number.json",pi="string.key.json",hi="comment.block.json",gi="comment.line.json",_e=function(){function e(t,n){this.parent=t,this.type=n}return e.pop=function(t){return t?t.parent:null},e.push=function(t,n){return new e(t,n)},e.equals=function(t,n){if(!t&&!n)return!0;if(!t||!n)return!1;for(;t&&n;){if(t===n)return!0;if(t.type!==n.type)return!1;t=t.parent,n=n.parent}return!0},e}(),Xr=function(){function e(t,n,r,i){this._state=t,this.scanError=n,this.lastWasColon=r,this.parents=i}return e.prototype.clone=function(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)},e.prototype.equals=function(t){return t===this?!0:!t||!(t instanceof e)?!1:this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&_e.equals(this.parents,t.parents)},e.prototype.getStateData=function(){return this._state},e.prototype.setStateData=function(t){this._state=t},e}();function ai(e,t,n,r,i){r===void 0&&(r=0);var a=0,o=!1;switch(n.scanError){case 2:t='"'+t,a=1;break;case 1:t="/*"+t,a=2;break}for(var u=ue(t),s=n.lastWasColon,l=n.parents,c={tokens:[],endState:n.clone()};;){var f=r+u.getPosition(),p="",d=u.scan();if(d===17)break;if(f===r+u.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(u.getPosition(),3));o&&(f-=a),o=a>0;switch(d){case 1:l=_e.push(l,0),p=Yr,s=!1;break;case 2:l=_e.pop(l),p=Yr,s=!1;break;case 3:l=_e.push(l,1),p=en,s=!1;break;case 4:l=_e.pop(l),p=en,s=!1;break;case 6:p=oi,s=!0;break;case 5:p=si,s=!1;break;case 8:case 9:p=ui,s=!1;break;case 7:p=fi,s=!1;break;case 10:var m=l?l.type:0,b=m===1;p=s||b?ci:pi,s=!1;break;case 11:p=li,s=!1;break}if(e)switch(d){case 12:p=gi;break;case 13:p=hi;break}c.endState=new Xr(n.getStateData(),u.getTokenError(),s,l),c.tokens.push({startIndex:f,scopes:p})}return c}function xi(){return Promise.resolve().then(()=>Ce(nn()))}Oe.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Oe.languages.onLanguage("json",function(){xi().then(function(e){return e.setupMode(an)})});})();
  