amis.define("d1bec86",function(e,n){"use strict";function t(e){var n=e.promiseConstructor||Promise,t=new f.JSONSchemaService(e.schemaRequestService,e.workspaceContext,n);t.setSchemaContributions(u.schemaContributions);var o=new r.JSONCompletion(t,e.contributions,n,e.clientCapabilities),g=new a.JSONHover(t,e.contributions,n),b=new c.JSONDocumentSymbols(t),p=new s.JSONValidation(t,n);return{configure:function(e){t.clearExternalSchemas(),e.schemas&&e.schemas.forEach(function(e){t.registerExternalSchema(e.uri,e.fileMatch,e.schema)}),p.configure(e)},resetSchema:function(e){return t.onResourceChange(e)},doValidation:p.doValidation.bind(p),parseJSONDocument:function(e){return m.parse(e,{collectComments:!0})},newJSONDocument:function(e,n){return m.newJSONDocument(e,n)},doResolve:o.doResolve.bind(o),doComplete:o.doComplete.bind(o),findDocumentSymbols:b.findDocumentSymbols.bind(b),findDocumentSymbols2:b.findDocumentSymbols2.bind(b),findColorSymbols:function(e,n){return b.findDocumentColors(e,n).then(function(e){return e.map(function(e){return e.range})})},findDocumentColors:b.findDocumentColors.bind(b),getColorPresentations:b.getColorPresentations.bind(b),doHover:g.doHover.bind(g),getFoldingRanges:l.getFoldingRanges,getSelectionRanges:d.getSelectionRanges,format:function(e,n,t){var o=void 0;if(n){var r=e.offsetAt(n.start),a=e.offsetAt(n.end)-r;o={offset:r,length:a}}var s={tabSize:t?t.tabSize:4,insertSpaces:t?t.insertSpaces:!0,eol:"\n"};return S.format(e.getText(),o,s).map(function(n){return i.TextEdit.replace(i.Range.create(e.positionAt(n.offset),e.positionAt(n.offset+n.length)),n.content)})}}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("11ed2ab"),i=e("737c70e");n.TextDocument=i.TextDocument,n.Position=i.Position,n.CompletionItem=i.CompletionItem,n.CompletionList=i.CompletionList,n.Hover=i.Hover,n.Range=i.Range,n.SymbolInformation=i.SymbolInformation,n.Diagnostic=i.Diagnostic,n.TextEdit=i.TextEdit,n.FormattingOptions=i.FormattingOptions,n.MarkedString=i.MarkedString;var r=e("bc93086"),a=e("f9e39b3"),s=e("1519ff4"),c=e("8a165f8"),m=e("8408640"),u=e("4cc3293"),f=e("a1f43d9"),l=e("576a913"),d=e("08f16e5"),S=e("26128d7");o.__exportStar(e("683e3e1"),n),n.getLanguageService=t});