1 line
73 KiB
JavaScript
1 line
73 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e13e4362"],{"47b9":function(e,t,n){n.r(t),n.d(t,"setupMode",(function(){return Bt}));var r,i=n("0ab8"),o=(a.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},a.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},a.prototype._checkIfIdle=function(){this._worker&&12e4<Date.now()-this._lastUsedTime&&this._stopWorker()},a.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=i.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},a.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._getClient().then((function(t){e=t})).then((function(e){return t._worker.withSyncedResources(n)})).then((function(t){return e}))},a);function a(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}function s(e,t){var n=e.length,r=0,i="",o=0,a=16,s=0,l=0,f=0,d=0,p=0;function m(){for(var t="",i=r;;){if(n<=r){t+=e.substring(i,r),p=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92===o){if(t+=e.substring(i,r),n<=++r){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=((t,n)=>{for(var i=0,o=0;i<t||!n;){var a=e.charCodeAt(r);if(48<=a&&a<=57)o=16*o+a-48;else if(65<=a&&a<=70)o=16*o+a-65+10;else{if(!(97<=a&&a<=102))break;o=16*o+a-97+10}r++,i++}return i<t?-1:o})(4,!0);0<=a?t+=String.fromCharCode(a):p=4;break;default:p=5}i=r}else{if(0<=o&&o<=31){if(u(o)){t+=e.substring(i,r),p=2;break}p=6}r++}}return t}function g(){if(i="",p=0,l=s,d=f,n<=(o=r))return o=n,a=17;var t=e.charCodeAt(r);if(c(t)){for(;r++,i+=String.fromCharCode(t),c(t=e.charCodeAt(r)););return a=15}if(u(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,f=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=m(),a=10;case 47:var g=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!u(e.charCodeAt(r));)r++;return i=e.substring(g,r),a=12}if(42!==e.charCodeAt(r+1))return i+=String.fromCharCode(t),r++,a=16;r+=2;for(var v=n-1,y=!1;r<v;){var b=e.charCodeAt(r);if(42===b&&47===e.charCodeAt(r+1)){r+=2,y=!0;break}r++,u(b)&&(13===b&&10===e.charCodeAt(r)&&r++,s++,f=r)}return y||(r++,p=1),i=e.substring(g,r),a=13;case 45:if(i+=String.fromCharCode(t),++r===n||!h(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=(()=>{var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&h(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&h(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&h(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&h(e.charCodeAt(r))){for(r++;r<e.length&&h(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)})(),a=11;default:for(;r<n&&(e=>{if(!c(e)&&!u(e)){switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return}return 1}})(t);)r++,t=e.charCodeAt(r);if(o!==r)switch(i=e.substring(o,r)){case"true":return a=8;case"false":return a=9;case"null":return a=7}else i+=String.fromCharCode(t),r++;return a=16}}return{setPosition:function(e){r=e,i="",a=16,p=o=0},getPosition:function(){return r},scan:(t=void 0!==t&&t)?function(){for(var e;12<=(e=g())&&e<=15;);return e}:g,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return p}}}function c(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function u(e){return 10===e||13===e||8232===e||8233===e}function h(e){return 48<=e&&e<=57}function l(e,t,n){void 0===n&&(n=r.DEFAULT);var i=s(e,!1);function o(e){return e?function(){return e(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function a(e){return e?function(t){return e(t,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var c=o(t.onObjectBegin),u=a(t.onObjectProperty),h=o(t.onObjectEnd),l=o(t.onArrayBegin),f=o(t.onArrayEnd),d=a(t.onLiteralValue),p=a(t.onSeparator),m=o(t.onComment),g=a(t.onError),v=n&&n.disallowComments,y=n&&n.allowTrailingComma;function b(){for(;;){var e=i.scan();switch(i.getTokenError()){case 4:w(14);break;case 5:w(15);break;case 3:w(13);break;case 1:v||w(11);break;case 2:w(12);break;case 6:w(16)}switch(e){case 12:case 13:v?w(10):m();break;case 16:w(1);break;case 15:case 14:break;default:return e}}}function w(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),g(e),0<t.length+n.length)for(var r=i.getToken();17!==r;){if(-1!==t.indexOf(r)){b();break}if(-1!==n.indexOf(r))break;r=b()}}function C(e){var t=i.getTokenValue();return(e?d:u)(t),b(),!0}function k(){c(),b();for(var e=!1;2!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(e||w(4,[],[]),p(","),b(),2===i.getToken()&&y)break}else e&&w(6,[],[]);(()=>{if(10===i.getToken())return C(!1),6===i.getToken()?(p(":"),b(),_()||w(4,[],[2,5])):w(5,[],[2,5]),1;w(3,[],[2,5])})()||w(4,[],[2,5]),e=!0}return h(),2!==i.getToken()?w(7,[2],[]):b(),!0}function _(){switch(i.getToken()){case 3:l(),b();for(var e=!1;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(e||w(4,[],[]),p(","),b(),4===i.getToken()&&y)break}else e&&w(6,[],[]);_()||w(4,[],[4,5]),e=!0}return f(),4!==i.getToken()?w(8,[4],[]):b(),1;case 1:return k();case 10:return C(!0);default:switch(i.getToken()){case 11:var t=i.getTokenValue();t=Number(t);isNaN(t)&&(w(2),t=0),d(t);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return}return b(),1}}return b(),17===i.getToken()?!!n.allowEmptyContent||(w(4,[],[]),!1):_()?(17!==i.getToken()&&w(9,[],[]),!0):(w(4,[],[]),!1)}(r=r||{}).DEFAULT={allowTrailingComma:!1};var f,d,p,m,g,v,y,b,w,C,k,_,A,x,S,I,j=s,O=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=r.DEFAULT);var i=null,o=[],a=[];function s(e){Array.isArray(o)?o.push(e):null!==i&&(o[i]=e)}return l(e,{onObjectBegin:function(){var e={};s(e),a.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=a.pop()},onArrayBegin:function(){var e=[];s(e),a.push(o),o=e,i=null},onArrayEnd:function(){o=a.pop()},onLiteralValue:s,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),o[0]},E=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var n=Object.create(null),r=0,i=t.children;r<i.length;r++){var o=i[r],a=o.children[1];a&&(n[o.children[0].value]=e(a))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function P(e){return"boolean"==typeof e}function T(e,t){if(!(e.length<t.length)){for(var n=0;n<t.length;n++)if(e[n]!==t[n])return;return 1}}function M(e,t){var n=e.length-t.length;return 0<n?e.lastIndexOf(t)===n:0==n&&e===t}function R(e){return T(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}(t=f=f||{}).MIN_VALUE=0,t.MAX_VALUE=2147483647,(t=d=d||{}).create=function(e,t){return{line:e=e===Number.MAX_VALUE?f.MAX_VALUE:e,character:t=t===Number.MAX_VALUE?f.MAX_VALUE:t}},t.is=function(e){return ee.objectLiteral(e)&&ee.uinteger(e.line)&&ee.uinteger(e.character)},(t=p=p||{}).create=function(e,t,n,r){if(ee.uinteger(e)&&ee.uinteger(t)&&ee.uinteger(n)&&ee.uinteger(r))return{start:d.create(e,t),end:d.create(n,r)};if(d.is(e)&&d.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},t.is=function(e){return ee.objectLiteral(e)&&d.is(e.start)&&d.is(e.end)},(t=m=m||{}).create=function(e,t){return{uri:e,range:t}},t.is=function(e){return ee.defined(e)&&p.is(e.range)&&(ee.string(e.uri)||ee.undefined(e.uri))},(t=X=X||{}).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},t.is=function(e){return ee.numberRange(e.red,0,1)&&ee.numberRange(e.green,0,1)&&ee.numberRange(e.blue,0,1)&&ee.numberRange(e.alpha,0,1)},(X=g=g||{}).Comment="comment",X.Imports="imports",X.Region="region",(t=v=v||{}).create=function(e,t){return{location:e,message:t}},t.is=function(e){return ee.defined(e)&&m.is(e.location)&&ee.string(e.message)},(X=y=y||{}).Error=1,X.Warning=2,X.Information=3,X.Hint=4,(te||{}).is=function(e){return null!=e&&ee.string(e.href)},(t=b=b||{}).create=function(e,t,n,r,i,o){return e={range:e,message:t},ee.defined(n)&&(e.severity=n),ee.defined(r)&&(e.code=r),ee.defined(i)&&(e.source=i),ee.defined(o)&&(e.relatedInformation=o),e},t.is=function(e){var t;return ee.defined(e)&&p.is(e.range)&&ee.string(e.message)&&(ee.number(e.severity)||ee.undefined(e.severity))&&(ee.integer(e.code)||ee.string(e.code)||ee.undefined(e.code))&&(ee.undefined(e.codeDescription)||ee.string(null==(t=e.codeDescription)?void 0:t.href))&&(ee.string(e.source)||ee.undefined(e.source))&&(ee.undefined(e.relatedInformation)||ee.typedArray(e.relatedInformation,v.is))},(X=we=we||{}).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return e={title:e,command:t},ee.defined(n)&&0<n.length&&(e.arguments=n),e},X.is=function(e){return ee.defined(e)&&ee.string(e.title)&&ee.string(e.command)},(te=w=w||{}).replace=function(e,t){return{range:e,newText:t}},te.insert=function(e,t){return{range:{start:e,end:e},newText:t}},te.del=function(e){return{range:e,newText:""}},te.is=function(e){return ee.objectLiteral(e)&&ee.string(e.newText)&&p.is(e.range)},(t=C=C||{}).create=function(e,t,n){return e={label:e},void 0!==t&&(e.needsConfirmation=t),void 0!==n&&(e.description=n),e},t.is=function(e){return void 0!==e&&ee.objectLiteral(e)&&ee.string(e.label)&&(ee.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(ee.string(e.description)||void 0===e.description)},(k||(k={})).is=function(e){return"string"==typeof e},(we=_=_||{}).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},we.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},we.del=function(e,t){return{range:e,newText:"",annotationId:t}},we.is=function(e){return w.is(e)&&(C.is(e.annotationId)||k.is(e.annotationId))},(X=A=A||{}).create=function(e,t){return{textDocument:e,edits:t}},X.is=function(e){return ee.defined(e)&&F.is(e.textDocument)&&Array.isArray(e.edits)},(te=x=x||{}).create=function(e,t,n){return e={kind:"create",uri:e},void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(e.options=t),void 0!==n&&(e.annotationId=n),e},te.is=function(e){return e&&"create"===e.kind&&ee.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||ee.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||ee.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||k.is(e.annotationId))},(t=S=S||{}).create=function(e,t,n,r){return e={kind:"rename",oldUri:e,newUri:t},void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(e.options=n),void 0!==r&&(e.annotationId=r),e},t.is=function(e){return e&&"rename"===e.kind&&ee.string(e.oldUri)&&ee.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||ee.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||ee.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||k.is(e.annotationId))},(we=I=I||{}).create=function(e,t,n){return e={kind:"delete",uri:e},void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(e.options=t),void 0!==n&&(e.annotationId=n),e},we.is=function(e){return e&&"delete"===e.kind&&ee.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||ee.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||ee.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||k.is(e.annotationId))},(Ze||(Ze={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every((function(e){return ee.string(e.kind)?x.is(e)||S.is(e)||I.is(e):A.is(e)})))},N.prototype.insert=function(e,t,n){var r;n=void 0===n?w.insert(e,t):k.is(n)?_.insert(e,t,r=n):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),_.insert(e,t,r));if(this.edits.push(n),void 0!==r)return r},N.prototype.replace=function(e,t,n){var r;n=void 0===n?w.replace(e,t):k.is(n)?_.replace(e,t,r=n):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),_.replace(e,t,r));if(this.edits.push(n),void 0!==r)return r},N.prototype.delete=function(e,t){var n;t=void 0===t?w.del(e):k.is(t)?_.del(e,n=t):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),_.del(e,n));if(this.edits.push(t),void 0!==n)return n},N.prototype.add=function(e){this.edits.push(e)},N.prototype.all=function(){return this.edits},N.prototype.clear=function(){this.edits.splice(0,this.edits.length)},N.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")};var $=N;function N(e,t){this.edits=e,this.changeAnnotations=t}oe.prototype.all=function(){return this._annotations},Object.defineProperty(oe.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),oe.prototype.manage=function(e,t){var n;if(k.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},oe.prototype.nextId=function(){return this._counter++,this._counter.toString()};var F,D,V,L,U,q,W,B,H,z,K,J,G,X,Z,Q,Y,ee,te,ne,re,ie=oe;function oe(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}function ae(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e).documentChanges?(this._changeAnnotations=new ie(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){var n;A.is(e)&&(n=new $(e.edits,t._changeAnnotations),t._textEditChanges[e.textDocument.uri]=n)}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new $(e.changes[n]);t._textEditChanges[n]=r})):this._workspaceEdit={}}function se(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}function ce(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}function ue(e,t,n){void 0===n&&(n=0);for(var r=t?[n]:[],i=0;i<e.length;i++){var o=e.charCodeAt(i);13!==o&&10!==o||(13===o&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function he(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 le(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return t=t,0===(n=r).length?t:t.replace(/\{(\d+)\}/g,(function(e,t){return t=t[0],void 0!==n[t]?n[t]:e}))}Object.defineProperty(ae.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),ae.prototype.getTextEditChange=function(e){if(F.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};(n=this._textEditChanges[t.uri])||(this._workspaceEdit.documentChanges.push({textDocument:t,edits:r=[]}),n=new $(r,this._changeAnnotations),this._textEditChanges[t.uri]=n)}else{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n,r;(n=this._textEditChanges[e])||(this._workspaceEdit.changes[e]=r=[],n=new $(r),this._textEditChanges[e]=n)}return n},ae.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},ae.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},ae.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i;if(C.is(t)||k.is(t)?r=t:n=t,t=void 0===r?x.create(e,n):(i=k.is(r)?r:this._changeAnnotations.manage(r),x.create(e,n,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},ae.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o;if(C.is(n)||k.is(n)?i=n:r=n,n=void 0===i?S.create(e,t,r):(o=k.is(i)?i:this._changeAnnotations.manage(i),S.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(n),void 0!==o)return o},ae.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i;if(C.is(t)||k.is(t)?r=t:n=t,t=void 0===r?I.create(e,n):(i=k.is(r)?r:this._changeAnnotations.manage(r),I.create(e,n,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},(X=F=F||{}).create=function(e,t){return{uri:e,version:t}},X.is=function(e){return ee.defined(e)&&ee.string(e.uri)&&(null===e.version||ee.integer(e.version))},(te=D=D||{}).PlainText="plaintext",te.Markdown="markdown",(V=D=D||{}).is=function(e){return e===V.PlainText||e===V.Markdown},(L||(L={})).is=function(e){var t=e;return ee.objectLiteral(e)&&D.is(t.kind)&&ee.string(t.value)},(t=U=U||{}).Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25,(we=q=q||{}).PlainText=1,we.Snippet=2,(W||(W={})).create=function(e){return{label:e}},(ke||{}).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ze=B=B||{}).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ze.is=function(e){return ee.string(e)||ee.objectLiteral(e)&&ee.string(e.language)&&ee.string(e.value)},(H||{}).is=function(e){var t=e;return!!t&&ee.objectLiteral(t)&&(L.is(t.contents)||B.is(t.contents)||ee.typedArray(t.contents,B.is))&&(void 0===e.range||p.is(e.range))},(z||{}).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(K||{}).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return e={label:e},ee.defined(t)&&(e.documentation=t),ee.defined(n)?e.parameters=n:e.parameters=[],e},(J||{}).create=function(e,t){return e={range:e},ee.number(t)&&(e.kind=t),e},(X=G=G||{}).File=1,X.Module=2,X.Namespace=3,X.Package=4,X.Class=5,X.Method=6,X.Property=7,X.Field=8,X.Constructor=9,X.Enum=10,X.Interface=11,X.Function=12,X.Variable=13,X.Constant=14,X.String=15,X.Number=16,X.Boolean=17,X.Array=18,X.Object=19,X.Key=20,X.Null=21,X.EnumMember=22,X.Struct=23,X.Event=24,X.Operator=25,X.TypeParameter=26,(Z||{}).create=function(e,t,n,r,i){return e={name:e,kind:t,location:{uri:r,range:n}},i&&(e.containerName=i),e},(Y=Q=Q||{}).create=function(e,t){return{range:e,parent:t}},Y.is=function(e){return void 0!==e&&p.is(e.range)&&(void 0===e.parent||Y.is(e.parent))},Object.defineProperty(se.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),se.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},se.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},se.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i;"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&0<t.length&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},se.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return d.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return d.create(o,e-t[o])},se.prototype.offsetAt=function(e){var t,n=this.getLineOffsets();return e.line>=n.length?this._content.length:e.line<0?0:(t=n[e.line],n=e.line+1<n.length?n[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,n),t))},Object.defineProperty(se.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),te=ee=ee||{},ne=Object.prototype.toString,te.defined=function(e){return void 0!==e},te.undefined=function(e){return void 0===e},te.boolean=function(e){return!0===e||!1===e},te.string=function(e){return"[object String]"===ne.call(e)},te.number=function(e){return"[object Number]"===ne.call(e)},te.numberRange=function(e,t,n){return"[object Number]"===ne.call(e)&&t<=e&&e<=n},te.integer=function(e){return"[object Number]"===ne.call(e)&&-2147483648<=e&&e<=2147483647},te.uinteger=function(e){return"[object Number]"===ne.call(e)&&0<=e&&e<=2147483647},te.func=function(e){return"[object Function]"===ne.call(e)},te.objectLiteral=function(e){return null!==e&&"object"==typeof e},te.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},Object.defineProperty(ce.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(ce.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(ce.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),ce.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},ce.prototype.update=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(ce.isIncremental(i)){var o=he(i.range),a=this.offsetAt(o.start),s=this.offsetAt(o.end),c=(this._content=this._content.substring(0,a)+i.text+this._content.substring(s,this._content.length),Math.max(o.start.line,0)),u=(o=Math.max(o.end.line,0),this._lineOffsets),h=ue(i.text,!1,a);if(o-c===h.length)for(var l=0,f=h.length;l<f;l++)u[l+c+1]=h[l];else h.length<1e4?u.splice.apply(u,[c+1,o-c].concat(h)):this._lineOffsets=u=u.slice(0,c+1).concat(h,u.slice(o+1));var d=i.text.length-(s-a);if(0!=d)for(l=c+1+h.length,f=u.length;l<f;l++)u[l]=u[l]+d}else{if(!ce.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}}this._version=t},ce.prototype.getLineOffsets=function(){return void 0===this._lineOffsets&&(this._lineOffsets=ue(this._content,!0)),this._lineOffsets},ce.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return{line:o,character:e-t[o]}},ce.prototype.offsetAt=function(e){var t,n=this.getLineOffsets();return e.line>=n.length?this._content.length:e.line<0?0:(t=n[e.line],n=e.line+1<n.length?n[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,n),t))},Object.defineProperty(ce.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),ce.isIncremental=function(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)},ce.isFull=function(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength},(t=re=re||{})[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.Deprecated=2]="Deprecated",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError",D.Markdown,D.PlainText,fe=function(e,t){return(fe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var fe,de,pe,me,ge,ve,ye,be,we=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ce=le,ke=(Ce("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),Ce("dateTimeFormatWarning","String is not a RFC3339 date-time."),Ce("dateFormatWarning","String is not a RFC3339 date."),Ce("timeFormatWarning","String is not a RFC3339 time."),Ce("emailFormatWarning","String is not an e-mail address."),Object.defineProperty(_e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),_e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},_e);function _e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}function Ae(e,t){return e=de.call(this,e,t)||this,e.type="null",e.value=null,e}function xe(e,t,n){return e=pe.call(this,e,n)||this,e.type="boolean",e.value=t,e}function Se(e,t){return e=me.call(this,e,t)||this,e.type="array",e.items=[],e}function Ie(e,t){return e=ge.call(this,e,t)||this,e.type="number",e.isInteger=!0,e.value=Number.NaN,e}function je(e,t,n){return e=ve.call(this,e,t,n)||this,e.type="string",e.value="",e}function Oe(e,t,n){return e=ye.call(this,e,t)||this,e.type="property",e.colonOffset=-1,e.keyNode=n,e}function Ee(e,t){return e=be.call(this,e,t)||this,e.type="object",e.properties=[],e}function Pe(e){return P(e)?e?{}:{not:{}}:e}we(Ae,de=ke),we(xe,pe=ke),we(Se,me=ke),Object.defineProperty(Se.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),we(Ie,ge=ke),we(je,ve=ke),we(Oe,ye=ke),Object.defineProperty(Oe.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),we(Ee,be=ke),Object.defineProperty(Ee.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),Te.prototype.add=function(e){this.schemas.push(e)},Te.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},Te.prototype.include=function(e){return(-1===this.focusOffset||Ne(e,this.focusOffset))&&e!==this.exclude},Te.prototype.newSub=function(){return new Te(-1,this.exclude)};function Te(e,t){this.focusOffset=e=void 0===e?-1:e,this.exclude=t,this.schemas=[]}Object.defineProperty(Me.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),Me.prototype.add=function(e){},Me.prototype.merge=function(e){},Me.prototype.include=function(e){return!0},Me.prototype.newSub=function(){return this},Me.instance=new Me;function Me(){}Re.prototype.hasProblems=function(){return!!this.problems.length},Re.prototype.mergeAll=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.merge(r)}},Re.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},Re.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===re.EnumValueMismatch&&(r.message=Ce("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},Re.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},Re.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches};function Re(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}function $e(e){return E(e)}function Ne(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Fe=n("c623"),De=le,Ve=(Le.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var i=r[n],o=i.regexp;i=i.include;o.test(e)&&(t=i)}return t},Le.prototype.getURIs=function(){return this.uris},Le);function Le(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],o="!"!==i[0];0<(i=o?i:i.substring(1)).length&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:((e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,a=!!t&&!!t.globstar,s=!1,c=(e=t&&"string"==typeof t.flags?t.flags:"",0),u=r.length;c<u;c++)switch(n=r[c]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(o){i+=".";break}case"[":case"]":if(o){i+=n;break}case"{":if(o){s=!0,i+="(";break}case"}":if(o){s=!1,i+=")";break}case",":i+=s?"|":"\\"+n;break;case"*":for(var h=r[c-1],l=1;"*"===r[c+1];)l++,c++;var f=r[c+1];a?!(1<l)||"/"!==h&&void 0!==h&&"{"!==h&&","!==h||"/"!==f&&void 0!==f&&","!==f&&"}"!==f?i+="([^/]*)":("/"===f?c++:"/"===h&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+=".*";break;default:i+=n}return e&&~e.indexOf("g")||(i="^"+i+"$"),new RegExp(i,e)})("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}qe.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},qe.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}))),this.resolvedSchema},qe.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}};var Ue=qe;function qe(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new We(n)))}var We=function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t},Be=(He.prototype.getSection=function(e){if(e=this.getSectionRecursive(e,this.schema),e)return Pe(e)},He.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"==typeof t||0===e.length)return t;var n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,i=Object.keys(t.patternProperties);r<i.length;r++){var o=i[r];if(R(o).test(n))return this.getSectionRecursive(e,t.patternProperties[o])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var a=parseInt(n,10);if(!isNaN(a)&&t.items[a])return this.getSectionRecursive(e,t.items[a])}else if(t.items)return this.getSectionRecursive(e,t.items)}},He);function He(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}function ze(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}ze.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){return t=Fe.a.parse(t).scheme,"schemaservice"!==t&&(!e||e(t))}))},Object.defineProperty(ze.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),ze.prototype.dispose=function(){for(;0<this.callOnDispose.length;)this.callOnDispose.pop()()},ze.prototype.onResourceChange=function(e){for(var t=this,n=!1,r=[e=Je(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var o=r.pop(),a=0;a<i.length;a++){var s=i[a];s&&(s.url===o||s.dependencies[o])&&(s.url!==o&&r.push(s.url),s.clearSchema(),n=!(i[a]=void 0))}return n},ze.prototype.setSchemaContributions=function(e){if(e.schemas){var t,n=e.schemas;for(t in n){var r=Je(t);this.contributionSchemas[r]=this.addSchemaHandle(r,n[t])}}if(Array.isArray(e.schemaAssociations))for(var i=0,o=e.schemaAssociations;i<o.length;i++){var a=o[i],s=a.uris.map(Je);a=this.addFilePatternAssociation(a.pattern,s);this.contributionAssociations.push(a)}},ze.prototype.addSchemaHandle=function(e,t){return t=new Ue(this,e,t),this.schemasById[e]=t},ze.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},ze.prototype.addFilePatternAssociation=function(e,t){return e=new Ve(e,t),this.filePatternAssociations.push(e),e},ze.prototype.registerExternalSchema=function(e,t,n){var r=Je(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},ze.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},ze.prototype.getResolvedSchema=function(e){return e=Je(e),e=this.schemasById[e],e?e.getResolvedSchema():this.promise.resolve(void 0)},ze.prototype.loadSchema=function(e){var t;return this.requestService?this.requestService(e).then((function(t){var n;return t?(n={},n=O(t,t=[]),t=t.length?[De("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Ge(e),t[0].offset)]:[],new We(n,t)):(n=De("json.schema.nocontent","Unable to load schema from '{0}': No content.",Ge(e)),new We({},[n]))}),(function(t){var n=t.toString();t=t.toString().split("Error: ");return M(n=1<t.length?t[1]:n,".")&&(n=n.substr(0,n.length-1)),new We({},[De("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Ge(e),n)])})):(t=De("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Ge(e)),this.promise.resolve(new We({},[t])))},ze.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){if(e=Je(o.$schema),"http://json-schema.org/draft-03/schema"===e)return this.promise.resolve(new Be({},[De("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===e&&i.push(De("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,s=function(e,t){var n;return t?(n=e,(t="/"===t[0]?t.substr(1):t).split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n):e},c=function(e,t,n,r){r=r?decodeURIComponent(r):void 0;var o=s(t,r);if(o)for(var a in o)o.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=o[a]);else i.push(De("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",r,n))},u=function(e,t,n,o,s){t=Je(t=a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)?a.resolveRelativePath(t,o):t);var u=r.getOrAddSchemaHandle(t);return u.getUnresolvedSchema().then((function(r){var o;return s[t]=!0,r.errors.length&&(o=n?t+"#"+n:t,i.push(De("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,r.errors[0]))),c(e,r.schema,t,n),h(e,r.schema,t,u.dependencies)}))},h=function(e,t,n,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],a=[],s=[],h=function(e){for(var r=[];e.$ref;){var a=e.$ref,h=a.split("#",2);if(delete e.$ref,0<h[0].length)return void s.push(u(e,h[0],h[1],n,i));-1===r.indexOf(a)&&(c(e,t,n,h[1]),r.push(a))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];"object"==typeof i&&o.push(i)}}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if("object"==typeof i)for(var a in i)a=i[a],"object"==typeof a&&o.push(a)}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i))for(var a=0,s=i;a<s.length;a++){var c=s[a];"object"==typeof c&&o.push(c)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};o.length;){var l=o.pop();0<=a.indexOf(l)||(a.push(l),h(l))}return r.promise.all(s)};return h(o,o,t,n).then((function(e){return new Be(o,i)}))},ze.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type&&(t=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type})),0<t.length&&(t=t[0].valueNode,t&&"string"===t.type))){t=$e(t);if(t=t&&T(t,".")&&this.contextService?this.contextService.resolveRelativePath(t,e):t)return t=Je(t),this.getOrAddSchemaHandle(t).getResolvedSchema()}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var n=Object.create(null),r=[],i=(t=>{try{return Fe.a.parse(t).with({fragment:null,query:null}).toString()}catch(e){return t}})(e),o=0,a=this.filePatternAssociations;o<a.length;o++){var s=a[o];if(s.matchesPattern(i))for(var c=0,u=s.getURIs();c<u.length;c++){var h=u[c];n[h]||(r.push(h),n[h]=!0)}}return t=0<r.length?this.createCombinedSchema(e,r).getResolvedSchema():this.promise.resolve(void 0),this.cachedSchemaForResource={resource:e,resolvedSchema:t},t},ze.prototype.createCombinedSchema=function(e,t){return 1===t.length?this.getOrAddSchemaHandle(t[0]):(e="schemaservice://combinedSchema/"+encodeURIComponent(e),t={allOf:t.map((function(e){return{$ref:e}}))},this.addSchemaHandle(e,t))},ze.prototype.getMatchingSchemas=function(e,t,n){var r;return n?(r=n.id||"schemaservice://untitled/matchingSchemas/"+Ke++,this.resolveSchemaContent(new We(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))):this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))};var Ke=0;function Je(e){try{return Fe.a.parse(e).toString()}catch(t){return e}}function Ge(e){try{var t=Fe.a.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var Xe,Ze=le,Qe={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{title:Ze("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:Ze("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}}},Ye={id:Ze("schema.json.id","A unique identifier for the schema."),$schema:Ze("schema.json.$schema","The schema to verify this document against."),title:Ze("schema.json.title","A descriptive title of the element."),description:Ze("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Ze("schema.json.default","A default value. Used by suggestions."),multipleOf:Ze("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Ze("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Ze("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Ze("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Ze("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Ze("schema.json.maxLength","The maximum length of a string."),minLength:Ze("schema.json.minLength","The minimum length of a string."),pattern:Ze("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Ze("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:Ze("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:Ze("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Ze("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Ze("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Ze("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Ze("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Ze("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Ze("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:Ze("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Ze("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Ze("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Ze("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:Ze("schema.json.enum","The set of literal values that are valid."),type:Ze("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:Ze("schema.json.format","Describes the format expected for the value."),allOf:Ze("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Ze("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Ze("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Ze("schema.json.not","A schema which must not match."),$id:Ze("schema.json.$id","A unique identifier for the schema."),$ref:Ze("schema.json.$ref","Reference a definition hosted on any location."),$comment:Ze("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Ze("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Ze("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Ze("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Ze("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:Ze("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Ze("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Ze("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Ze("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Ze("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Ze("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Xe in Qe.schemas){var et,tt=Qe.schemas[Xe];for(et in tt.properties){var nt=tt.properties[et],rt=("boolean"==typeof nt&&(nt=tt.properties[et]={}),Ye[et]);rt&&(nt.description=rt)}}ot.prototype.dispose=function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]},ot.prototype._resetSchema=function(e){this._worker().then((function(t){t.resetSchema(e.toString())}))},ot.prototype._doValidate=function(e,t){this._worker(e).then((function(n){return n.doValidation(e.toString()).then((function(n){n=n.map((function(e){return t="number"==typeof(e=e).code?String(e.code):e.code,{severity:(e=>{switch(e){case y.Error:return i.MarkerSeverity.Error;case y.Warning:return i.MarkerSeverity.Warning;case y.Information:return i.MarkerSeverity.Info;case y.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}})(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:t,source:e.source};var t}));var r=i.editor.getModel(e);r&&r.getModeId()===t&&i.editor.setModelMarkers(r,t,n)}))})).then(void 0,(function(e){}))};var it=ot;function ot(e,t,n){function r(e){var t,n=e.getModeId();n===a._languageId&&(a._listener[e.uri.toString()]=e.onDidChangeContent((function(){clearTimeout(t),t=setTimeout((function(){return a._doValidate(e.uri,n)}),500)})),a._doValidate(e.uri,n))}function o(e){i.editor.setModelMarkers(e,a._languageId,[]);e=e.uri.toString();var t=a._listener[e];t&&(t.dispose(),delete a._listener[e])}var a=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null),this._disposables.push(i.editor.onDidCreateModel(r)),this._disposables.push(i.editor.onWillDisposeModel((function(e){o(e),a._resetSchema(e.uri)}))),this._disposables.push(i.editor.onDidChangeModelLanguage((function(e){o(e.model),r(e.model),a._resetSchema(e.model.uri)}))),this._disposables.push(n.onDidChange((function(e){i.editor.getModels().forEach((function(e){e.getModeId()===a._languageId&&(o(e),r(e))}))}))),this._disposables.push({dispose:function(){for(var e in i.editor.getModels().forEach(o),a._listener)a._listener[e].dispose()}}),i.editor.getModels().forEach(r)}function at(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function st(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ct(e){if(e)return new i.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ut(e){if(e)return{range:ct(e.range),text:e.newText}}Object.defineProperty(lt.prototype,"triggerCharacters",{get:function(){return[" ",":",'"']},enumerable:!1,configurable:!0}),lt.prototype.provideCompletionItems=function(e,t,n,r){var o=e.uri;return this._worker(o).then((function(e){return e.doComplete(o.toString(),at(t))})).then((function(n){var r,o;if(n)return o=e.getWordUntilPosition(t),r=new i.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),o=n.items.map((function(e){var t,n={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command)&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0,range:r,kind:(e=>{var t=i.languages.CompletionItemKind;switch(e){case U.Text:return t.Text;case U.Method:return t.Method;case U.Function:return t.Function;case U.Constructor:return t.Constructor;case U.Field:return t.Field;case U.Variable:return t.Variable;case U.Class:return t.Class;case U.Interface:return t.Interface;case U.Module:return t.Module;case U.Property:return t.Property;case U.Unit:return t.Unit;case U.Value:return t.Value;case U.Enum:return t.Enum;case U.Keyword:return t.Keyword;case U.Snippet:return t.Snippet;case U.Color:return t.Color;case U.File:return t.File;case U.Reference:return t.Reference}return t.Property})(e.kind)};return e.textEdit&&(void 0!==(t=e.textEdit).insert&&void 0!==t.replace?n.range={insert:ct(e.textEdit.insert),replace:ct(e.textEdit.replace)}:n.range=ct(e.textEdit.range),n.insertText=e.textEdit.newText),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(ut)),e.insertTextFormat===q.Snippet&&(n.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),n})),{isIncomplete:n.isIncomplete,suggestions:o}}))};var ht=lt;function lt(e){this._worker=e}function ft(e){var t;return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"}}pt.prototype.provideHover=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.doHover(r.toString(),at(t))})).then((function(e){if(e)return{range:ct(e.range),contents:(e=>{if(e)return Array.isArray(e)?e.map(ft):[ft(e)]})(e.contents)}}))};var dt=pt;function pt(e){this._worker=e}gt.prototype.provideDocumentSymbols=function(e,t){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentSymbols(n.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:(e=>{var t=i.languages.SymbolKind;switch(e){case G.File:return t.Array;case G.Module:return t.Module;case G.Namespace:return t.Namespace;case G.Package:return t.Package;case G.Class:return t.Class;case G.Method:return t.Method;case G.Property:return t.Property;case G.Field:return t.Field;case G.Constructor:return t.Constructor;case G.Enum:return t.Enum;case G.Interface:return t.Interface;case G.Function:return t.Function;case G.Variable:return t.Variable;case G.Constant:return t.Constant;case G.String:return t.String;case G.Number:return t.Number;case G.Boolean:return t.Boolean;case G.Array:return t.Array}return t.Function})(e.kind),range:ct(e.location.range),selectionRange:ct(e.location.range),tags:[]}}))}))};var mt=gt;function gt(e){this._worker=e}function vt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}bt.prototype.provideDocumentFormattingEdits=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.format(r.toString(),null,vt(t)).then((function(e){if(e&&0!==e.length)return e.map(ut)}))}))};var yt=bt;function bt(e){this._worker=e}Ct.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,r){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),st(t),vt(n)).then((function(e){if(e&&0!==e.length)return e.map(ut)}))}))};var wt=Ct;function Ct(e){this._worker=e}_t.prototype.provideDocumentColors=function(e,t){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentColors(n.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:ct(e.range)}}))}))},_t.prototype.provideColorPresentations=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.getColorPresentations(r.toString(),t.color,st(t.range))})).then((function(e){if(e)return e.map((function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=ut(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ut)),t}))}))};var kt=_t;function _t(e){this._worker=e}xt.prototype.provideFoldingRanges=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.getFoldingRanges(r.toString(),t)})).then((function(e){if(e)return e.map((function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=(e=>{switch(e){case g.Comment:return i.languages.FoldingRangeKind.Comment;case g.Imports:return i.languages.FoldingRangeKind.Imports;case g.Region:return i.languages.FoldingRangeKind.Region}})(e.kind)),t}))}))};var At=xt;function xt(e){this._worker=e}It.prototype.provideSelectionRanges=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.getSelectionRanges(r.toString(),t.map(at))})).then((function(e){if(e)return e.map((function(e){for(var t=[];e;)t.push({range:ct(e.range)}),e=e.parent;return t}))}))};var St=It;function It(e){this._worker=e}function jt(e){return{getInitialState:function(){return new qt(null,null,!1,null)},tokenize:function(t,n,r,i){var o=e,a=t,s=n,c=r,u=(void 0===c&&(c=0),0),h=!1;switch(s.scanError){case 2:a='"'+a,u=1;break;case 1:a="/*"+a,u=2}for(var l=j(a),f=s.lastWasColon,d=s.parents,p={tokens:[],endState:s.clone()};;){var m=c+l.getPosition(),g="",v=l.scan();if(17===v)break;if(m===c+l.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+a.substr(l.getPosition(),3));switch(h&&(m-=u),h=0<u,v){case 1:d=Lt.push(d,0),g=Ot,f=!1;break;case 2:d=Lt.pop(d),g=Ot,f=!1;break;case 3:d=Lt.push(d,1),g=Et,f=!1;break;case 4:d=Lt.pop(d),g=Et,f=!1;break;case 6:g=Pt,f=!0;break;case 5:g=Tt,f=!1;break;case 8:case 9:g=Mt,f=!1;break;case 7:g=Rt,f=!1;break;case 10:var y=1===(d?d.type:0);g=f||y?$t:Ft,f=!1;break;case 11:g=Nt,f=!1}if(o)switch(v){case 12:g=Vt;break;case 13:g=Dt}p.endState=new qt(s.getStateData(),l.getTokenError(),f,d),p.tokens.push({startIndex:m,scopes:g})}return p}}}var Ot="delimiter.bracket.json",Et="delimiter.array.json",Pt="delimiter.colon.json",Tt="delimiter.comma.json",Mt="keyword.json",Rt="keyword.json",$t="string.value.json",Nt="number.json",Ft="string.key.json",Dt="comment.block.json",Vt="comment.line.json",Lt=(Ut.pop=function(e){return e?e.parent:null},Ut.push=function(e,t){return new Ut(e,t)},Ut.equals=function(e,t){if(e||t){if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}}return!0},Ut);function Ut(e,t){this.parent=e,this.type=t}Wt.prototype.clone=function(){return new Wt(this._state,this.scanError,this.lastWasColon,this.parents)},Wt.prototype.equals=function(e){return e===this||!!(e&&e instanceof Wt)&&this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&Lt.equals(this.parents,e.parents)},Wt.prototype.getStateData=function(){return this._state},Wt.prototype.setStateData=function(e){this._state=e};var qt=Wt;function Wt(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}function Bt(e){function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.getLanguageServiceWorker.apply(a,e)}var n=[],r=[],a=new o(e);function s(){var n=e.languageId,o=e.modeConfiguration;zt(r),o.documentFormattingEdits&&r.push(i.languages.registerDocumentFormattingEditProvider(n,new yt(t))),o.documentRangeFormattingEdits&&r.push(i.languages.registerDocumentRangeFormattingEditProvider(n,new wt(t))),o.completionItems&&r.push(i.languages.registerCompletionItemProvider(n,new ht(t))),o.hovers&&r.push(i.languages.registerHoverProvider(n,new dt(t))),o.documentSymbols&&r.push(i.languages.registerDocumentSymbolProvider(n,new mt(t))),o.tokens&&r.push(i.languages.setTokensProvider(n,jt(!0))),o.colors&&r.push(i.languages.registerColorProvider(n,new kt(t))),o.foldingRanges&&r.push(i.languages.registerFoldingRangeProvider(n,new At(t))),o.diagnostics&&r.push(new it(n,t,e)),o.selectionRanges&&r.push(i.languages.registerSelectionRangeProvider(n,new St(t)))}n.push(a),s(),n.push(i.languages.setLanguageConfiguration(e.languageId,Kt));var c=e.modeConfiguration;return e.onDidChange((function(e){e.modeConfiguration!==c&&(c=e.modeConfiguration,s())})),n.push(Ht(r)),Ht(n)}function Ht(e){return{dispose:function(){return zt(e)}}}function zt(e){for(;e.length;)e.pop().dispose()}var Kt={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},c623:function(e,t,n){(function(e){var r,i;function o(e){var t;return(i[e]||(t=i[e]={exports:{}},r[e](t,t.exports,o),t)).exports}n.d(t,"a",(function(){return a})),r={470:t=>{function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o!==s-1&&1!==a)if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(2<r.length){var c=r.lastIndexOf("/");if(c!==r.length-1){i=-1===c?(r="",0):(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=s,a=i=0;continue}t&&(0<r.length?r+="/..":r="..",i=2)}else 0<r.length?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;-1<=a&&!o;a--){var s=0<=a?arguments[a]:t=void 0===t?e.cwd():t;n(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=r(i,!o),o?0<i.length?"/"+i:"/":0<i.length?i:"."},normalize:function(e){var t,i;return n(e),0===e.length?".":(t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1),0<(e=0!==(e=r(e,!t)).length||t?e:".").length&&i&&(e+="/"),t?"/"+e:e)},isAbsolute:function(e){return n(e),0<e.length&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),0<r.length&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var o=e.length,a=o-r,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,u=a<c?a:c,h=-1,l=0;l<=u;++l){if(l===u){if(u<c){if(47===t.charCodeAt(s+l))return t.slice(s+l+1);if(0===l)return t.slice(s+l)}else u<a&&(47===e.charCodeAt(r+l)?h=l:0===l&&(h=0));break}var f=e.charCodeAt(r+l);if(f!==t.charCodeAt(s+l))break;47===f&&(h=l)}var d="";for(l=r+h+1;l<=o;++l)l!==o&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return 0<d.length?d+t.slice(s+h):(47===t.charCodeAt(s+=h)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=47===e.charCodeAt(0),r=-1,i=!0,o=e.length-1;1<=o;--o)if(47===e.charCodeAt(o)){if(!i){r=o;break}}else i=!1;return-1===r?t?"/":".":t&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');n(e);var r=0,i=-1,o=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";for(var a=t.length-1,s=-1,c=e.length-1;0<=c;--c){var u=e.charCodeAt(c);if(47===u){if(!o){r=c+1;break}}else-1===s&&(o=!1,s=c+1),0<=a&&(u===t.charCodeAt(a)?-1==--a&&(i=c):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(c=e.length-1;0<=c;--c)if(47===e.charCodeAt(c)){if(!o){r=c+1;break}}else-1===i&&(o=!1,i=c+1);return-1===i?"":e.slice(r,i)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;0<=s;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){r=s+1;break}}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n;var t,n},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){for(var r,i=47===e.charCodeAt(0),o=i?(t.root="/",1):0,a=-1,s=0,c=-1,u=!0,h=e.length-1,l=0;o<=h;--h)if(47!==(r=e.charCodeAt(h)))-1===c&&(u=!1,c=h+1),46===r?-1===a?a=h:1!==l&&(l=1):-1!==a&&(l=-1);else if(!u){s=h+1;break}-1===a||-1===c||0===l||1===l&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=0===s&&i?e.slice(1,c):e.slice(s,c)):(0===s&&i?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c)),t.ext=e.slice(a,c)),0<s?t.dir=e.slice(0,s-1):i&&(t.dir="/")}return t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i},447:(t,n,r)=>{var i;r.r(n),r.d(n,{URI:()=>d,Utils:()=>I}),"object"==typeof e?i="win32"===e.platform:"object"==typeof navigator&&(i=0<=navigator.userAgent.indexOf("Windows")),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var o,a,s,c=/^\w[\w\d+.-]*$/,u=/^\//,h=/^\/\//,l="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=(b.isUri=function(e){return e instanceof b||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(b.prototype,"fsPath",{get:function(){return k(this,!1)},enumerable:!1,configurable:!0}),b.prototype.with=function(e){var t,n,r,i;return e&&(void 0===(t=e.scheme)?t=this.scheme:null===t&&(t=""),void 0===(n=e.authority)?n=this.authority:null===n&&(n=""),void 0===(r=e.path)?r=this.path:null===r&&(r=""),void 0===(i=e.query)?i=this.query:null===i&&(i=""),void 0===(e=e.fragment)?e=this.fragment:null===e&&(e=""),t!==this.scheme||n!==this.authority||r!==this.path||i!==this.query||e!==this.fragment)?new m(t,n,r,i,e):this},b.parse=function(e,t){return void 0===t&&(t=!1),e=f.exec(e),e?new m(e[2]||"",x(e[4]||""),x(e[5]||""),x(e[7]||""),x(e[9]||""),t):new m("","","","","")},b.file=function(e){var t,n="";return(e=i?e.replace(/\\/g,l):e)[0]===l&&e[1]===l&&(e=-1===(t=e.indexOf(l,2))?(n=e.substring(2),l):(n=e.substring(2,t),e.substring(t)||l)),new m("file",n,e,"","")},b.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},b.prototype.toString=function(e){return _(this,e=void 0!==e&&e)},b.prototype.toJSON=function(){return this},b.revive=function(e){var t;return e&&(e instanceof b?e:((t=new m(e))._formatted=e.external,t._fsPath=e._sep===p?e.fsPath:null,t))},b),p=i?1:void 0,m=(o(s=v,n=a=d),s.prototype=null===n?Object.create(n):(y.prototype=n.prototype,new y),Object.defineProperty(v.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=k(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),v.prototype.toString=function(e){return(e=void 0!==e&&e)?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)},v.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},v),g=((n={})[58]="%3A",n[47]="%2F",n[63]="%3F",n[35]="%23",n[91]="%5B",n[93]="%5D",n[64]="%40",n[33]="%21",n[36]="%24",n[38]="%26",n[39]="%27",n[40]="%28",n[41]="%29",n[42]="%2A",n[43]="%2B",n[44]="%2C",n[59]="%3B",n[61]="%3D",n[32]="%20",n);function v(){var e=null!==a&&a.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}function y(){this.constructor=s}function b(e,t,n,r,i,o){if(void 0===o&&(o=!1),"object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{if(this.scheme=e||o?e:"file",this.authority=t||"",this.path=((e,t)=>{switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t})(this.scheme,n||""),this.query=r||"",this.fragment=i||"",e=this,t=o,!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&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.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(h.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 w(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);97<=o&&o<=122||65<=o&&o<=90||48<=o&&o<=57||45===o||46===o||95===o||126===o||t&&47===o?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i))):(void 0===n&&(n=e.substr(0,i)),void 0!==(o=g[o])?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=o):-1===r&&(r=i))}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function C(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=g[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function k(e,t){return t=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i?t.replace(/\//g,"\\"):t}function _(e,t){var n,r,i=t?C:w,o="",a=e.scheme,s=e.authority,c=e.path,u=e.query;e=e.fragment;return a&&(o=o+a+":"),!s&&"file"!==a||(o=o+l+l),s&&(-1!==(a=s.indexOf("@"))&&(n=s.substr(0,a),s=s.substr(a+1),-1===(a=n.indexOf(":"))?o+=i(n,!1):o=(o=o+i(n.substr(0,a),!1)+":")+i(n.substr(a+1),!1),o+="@"),-1===(a=(s=s.toLowerCase()).indexOf(":"))?o+=i(s,!1):o=(o+=i(s.substr(0,a),!1))+s.substr(a)),c&&(3<=c.length&&47===c.charCodeAt(0)&&58===c.charCodeAt(2)?65<=(r=c.charCodeAt(1))&&r<=90&&(c="/"+String.fromCharCode(r+32)+":"+c.substr(3)):2<=c.length&&58===c.charCodeAt(1)&&65<=(r=c.charCodeAt(0))&&r<=90&&(c=String.fromCharCode(r+32)+":"+c.substr(2)),o+=i(c,!0)),u&&(o=(o+="?")+i(u,!1)),e?(o+="#")+(t?e:w(e,!1)):o}var A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(A)?e.replace(A,(function t(n){try{return decodeURIComponent(n)}catch(e){return 3<n.length?n.substr(0,3)+t(n.substr(3)):n}})):e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}n=r(470);var I,j=n.posix||n;(r=I=I||{}).joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:j.join.apply(j,S([e.path],t))})},r.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.path||"/";return e.with({path:j.resolve.apply(j,S([r],t))})},r.dirname=function(e){var t=j.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},r.basename=function(e){return j.basename(e.path)},r.extname=function(e){return j.extname(e.path)}}},i={},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let a=o(447).URI}).call(this,n("f28c"))}}]); |