const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./jsonMode-eLVpJsAT.js","./editor.api-DOT7PsKA.js","./index-3qPz-n32.js","./editorContextKeys-DnUTgpav.js","./replaceCommand-Ji8VzLIs.js","./stableEditorScroll-B1_zLgg8.js"])))=>i.map(i=>d[i]);
import{f as e}from"./index-3qPz-n32.js";import{t}from"./editor.api-DOT7PsKA.js";var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},s=(e,t,n)=>(o(e,t,`default`),n&&o(n,t,`default`)),c={};s(c,t);var l=new class{constructor(e,t,n){this._onDidChange=new c.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0}),u=()=>d().then(e=>e.getWorker());c.languages.json={jsonDefaults:l,getWorker:u};function d(){return e(()=>import(`./jsonMode-eLVpJsAT.js`),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)}c.languages.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),c.languages.onLanguage(`json`,()=>{d().then(e=>e.setupMode(l))});export{u as getWorker,l as jsonDefaults};