"use strict";var me=Object.defineProperty;var fe=(t,e,n)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var j=(t,e,n)=>(fe(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),f=require("react"),P=require("@monaco-editor/react"),W=require("@ws-ui/shared"),Ae=require("monaco-languageclient"),U=require("monaco-languageclient/vscode/services"),Q=require("@codingame/monaco-vscode-configuration-service-override"),be=require("@codingame/monaco-vscode-languages-service-override"),pe=require("@codingame/monaco-vscode-textmate-service-override");require("@codingame/monaco-vscode-theme-defaults-default-extension");const he=require("@codingame/monaco-vscode-editor-service-override"),ve=require("@codingame/monaco-vscode-theme-service-override"),x=require("monaco-editor"),ye=require("monaco-languageclient/tools"),H=require("vscode-languageclient"),Y=require("vscode-ws-jsonrpc"),X=require("vscode-languageserver-protocol"),$=require("vscode/services"),V=require("vscode/monaco");require("@codingame/monaco-vscode-standalone-languages");require("@codingame/monaco-vscode-standalone-html-language-features");require("@codingame/monaco-vscode-standalone-css-language-features");require("@codingame/monaco-vscode-standalone-json-language-features");require("@codingame/monaco-vscode-standalone-typescript-language-features");require("@codingame/monaco-vscode-css-default-extension");require("@codingame/monaco-vscode-json-default-extension");require("@codingame/monaco-vscode-html-default-extension");require("@codingame/monaco-vscode-javascript-default-extension");const Se=require("vscode/extensions");function xe(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=xe(x),Ne=()=>Q(),we=()=>he(()=>Promise.resolve(void 0)),Re=()=>{const t=ve(),e=t.themeService.ctor.prototype;return e.defineTheme=()=>{},t},Le=`{
  "workbench.colorTheme": "Default Dark+",
  "workbench.iconTheme": "vs-seti",
  "editor.autoClosingBrackets": "languageDefined",
  "editor.autoClosingQuotes": "languageDefined",
  "editor.scrollBeyondLastLine": true,
  "editor.mouseWheelZoom": true,
  "editor.wordBasedSuggestions": false,
  "editor.acceptSuggestionOnEnter": "on",
  "editor.foldingHighlight": false,
  "editor.bracketPairColorization.enabled": false,
  "editor.fontSize": 12,
  "files.autoSave": "off",
  "editor.experimental.asyncTokenization": true,
  "editor.semanticHighlighting.enabled": true,
  "workbench.colorCustomizations": {
    "editor.background": "#313131"
  },
  "editor.semanticTokenColorCustomizations": {
    "[Default Light+]": {
      "enabled": true,
      "rules": {
        "*:4d": {
          "foreground": "#000000",
          "bold": false,
          "italic": false,
          "underline": false,
          "strikethrough": false
        },
        "method:4d": { "foreground": "#000088", "bold": true, "italic": true },
        "method.defaultLibrary:4d": {
          "foreground": "#068c00",
          "italic": false
        },
        "method.plugin:4d": { "foreground": "#000000" },
        "property:4d": { "foreground": "#a0806b" },
        "function:4d": { "foreground": "#5f8e5e", "italic": true },
        "parameter:4d": { "foreground": "#000b76", "bold": true },
        "variable.interprocess:4d": { "foreground": "#ff0088" },
        "variable.process:4d": { "foreground": "#0000ff" },
        "variable.local:4d": { "foreground": "#0031ff" },
        "keyword:4d": { "foreground": "#034d00", "bold": true },
        "table:4d": { "foreground": "#532300" },
        "field:4d": { "foreground": "#323232" },
        "comment:4d": { "foreground": "#535353" },
        "type:4d": { "foreground": "#068c00", "bold": true },
        "constant:4d": { "foreground": "#4d004d", "underline": true },
        "string:4d": { "foreground": "#000000" },
        "error:4d": { "foreground": "#ff0000", "bold": true, "italic": true }
      }
    },
    "[Default Dark+]": {
      "enabled": true,
      "rules": {
        "*:4d": {
          "foreground": "#FFFFFF",
          "bold": false,
          "italic": false,
          "underline": false,
          "strikethrough": false
        },
        "method:4d": { "foreground": "#1B79F3", "bold": true, "italic": true },
        "method.defaultLibrary:4d": {
          "foreground": "#59BB00",
          "italic": false
        },
        "method.plugin:4d": { "foreground": "#BFBFBF" },
        "property:4d": { "foreground": "#A0806B" },
        "function:4d": { "foreground": "#4EC36E", "italic": true },
        "parameter:4d": { "foreground": "#0C70FF", "bold": true },
        "variable.interprocess:4d": { "foreground": "#FF0088" },
        "variable.process:4d": { "foreground": "#53B0EB" },
        "variable.local:4d": { "foreground": "#18B3F1" },
        "keyword:4d": { "foreground": "#D0D0D0", "bold": true },
        "table:4d": { "foreground": "#CF5600" },
        "field:4d": { "foreground": "#9C6765" },
        "comment:4d": { "foreground": "#8F8F8F" },
        "type:4d": { "foreground": "#068C00", "bold": true },
        "constant:4d": { "foreground": "#FA647F", "underline": true },
        "string:4d": { "foreground": "#FFFFFF" },
        "error:4d": { "foreground": "#ff0000", "bold": true, "italic": true }
      }
    }
  }
}
`,ee=()=>Q.initUserConfiguration(Le),ne=async t=>{var r;const e=t.serviceConfig??{};e.debugLogging=((r=t.logger)==null?void 0:r.isEnabled())===!0&&(e.debugLogging===!0||t.logger.isDebugEnabled()===!0),await ee(),e.userServices=e.userServices??{};const n=e.userServices.configurationService??void 0,i=e.workspaceConfig??void 0;if(n===void 0){if(i)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const a={...Ne(),...Re(),...pe(),...be(),...we()};U.mergeServices(a,e.userServices)}return i||(e.workspaceConfig={workspaceProvider:{trusted:!0,workspace:{workspaceUri:o.Uri.file("/workspace")},async open(){return!1}}}),e};class je extends Y.WebSocketMessageReader{constructor(n,i){super(n);j(this,"onMessage");this.onMessage=i}readMessage(n){this.onMessage&&this.onMessage();const[,i]=n.split(`\r
\r
`);if(this.state==="initial")this.events.splice(0,0,{message:i});else if(this.state==="listening"){const r=JSON.parse(i);this.callback(r)}}}class We extends Y.WebSocketMessageWriter{constructor(n,i){super(n);j(this,"onSend");this.onSend=i}async write(n){try{const i=JSON.stringify(n);this.socket.send(i),this.onSend&&this.onSend()}catch(i){this.errorCount++,this.fireError(i,n,this.errorCount)}}}function Z(t,e=!0){const n=`/PACKAGE/Project/Sources/${t}`;return e?`file://${n}`:n}function M(t,e=0){setTimeout(t,e)}function te(t,e){const n=new x.Selection(e.startLineNumber,e.startColumn,e.endLineNumber||e.startLineNumber,e.endColumn||e.startColumn);M(()=>{t.setSelection(n),t.revealRangeInCenter(n),t.focus()})}function ie(t,e,n=0){n>0&&(e=n+e),M(()=>{t.setPosition({lineNumber:e,column:1}),t.revealLineInCenter(e),t.focus()})}function Fe(t,e,n){const r=t.getModel();if(r&&e){const a=r.getLineCount();for(let g=1;g<=a;g++){const C=r.getLineContent(g);if(new RegExp(`(?:Function|function) ${n}`).test(C))return g}}return 0}const Ke={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"While",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["While(${1:expression})","	${2:body}","End while"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Case of",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Case of","	:(${1:boolean_expression})","		${2:body}","End case"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Else",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Else","	"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"If",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["If (${1:expression})","	${5:body}","End if"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"For",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["For(${1:counter};${2:start};${3:end}${4:;increment})","	${5:body}","End for"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Function",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}","	${5:body}"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},Ze={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"while",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["while(${1:expression})","	${2:body}","end"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"switch",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["switch","	:(${1:boolean_expression})","		${2:body}","end"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"else",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["else","	"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"if",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["if (${1:expression})","	${5:body}","end"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"for",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["for(${1:counter},${2:start},${3:end}${4:,increment})","	${5:body}","end"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"function",kind:o.languages.CompletionItemKind.Snippet,range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}","	${5:body}"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},Ee=[{keybinding:x.KeyMod.CtrlCmd|x.KeyCode.NumpadAdd,command:"editor.action.fontZoomIn"},{keybinding:x.KeyMod.CtrlCmd|x.KeyCode.Equal,command:"editor.action.fontZoomIn"},{keybinding:x.KeyMod.CtrlCmd|x.KeyCode.NumpadSubtract,command:"editor.action.fontZoomOut"},{keybinding:x.KeyMod.CtrlCmd|x.KeyCode.Minus,command:"editor.action.fontZoomOut"},{keybinding:x.KeyMod.CtrlCmd|x.KeyCode.Numpad0,command:"editor.action.fontZoomReset"},{keybinding:x.KeyMod.CtrlCmd|x.KeyCode.Digit0,command:"editor.action.fontZoomReset"}],Xe=({defaultZoom:t})=>(f.useEffect(()=>{t!==void 0&&x.editor.EditorZoom.setZoomLevel(t)},[]),null);({}).VITE_DISABLE_MONACO_LOADER||P.loader.config({monaco:o});const oe=f.createContext(void 0),ke=({children:t,url:e,qodly:n,defaultZoom:i,openHandler:r,language:a="4d",defaultInited:g=!1})=>{const C=P.useMonaco(),[m,y]=f.useState(g),[E,N]=f.useState(null),A=f.useRef(),v=f.useRef(0);f.useEffect(()=>{e&&C&&S()},[e,C]);const S=async()=>{if(!C)return;const c=new ye.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),u=await ne({logger:c});await U.initServices({caller:"Qodly Code Editor",logger:c,serviceConfig:u}),r&&$.StandaloneServices.get($.ICodeEditorService).registerCodeEditorOpenHandler(r),C.languages.registerCompletionItemProvider(a,n?Ze:Ke);const d=V.KeybindingsRegistry.getDefaultKeybindings.bind(V.KeybindingsRegistry);V.KeybindingsRegistry.getDefaultKeybindings=()=>d().filter(T=>!["workbench.action.files.saveAs","workbench.action.files.save"].includes(T.command)),x.editor.addKeybindingRules(Ee),h()},h=()=>{N(null);let c;try{c=new WebSocket(localStorage.LSP_SERVER||e)}catch{N(new Event("INVALID_URL"));return}c.onopen=w,c.onclose=b,c.onerror=I,v.current=0},w=async function(){const c=Y.toSocket(this),u=new je(c),d=new We(c),L=new Ae.MonacoLanguageClient({name:"4D Language Client",clientOptions:{workspaceFolder:{uri:x.Uri.parse("file:///PACKAGE")},documentSelector:[{scheme:"file",language:a}],errorHandler:{error:()=>({action:H.ErrorAction.Continue}),closed:()=>({action:H.CloseAction.DoNotRestart})}},connectionProvider:{get:()=>Promise.resolve({reader:u,writer:d})}});A.current=L;const T=L.sendRequest.bind(L);A.current.sendRequest=function(D,q,Ce){return typeof D=="object"&&D.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(q.textDocument.uri)?Promise.resolve():T(D,q,Ce)},u.onClose(()=>{L.stop(),v.current<3?setTimeout(()=>{v.current++,h()},1e3):N(new Event("WEBSOCKET_CLOSED"))}),L.needsStart()&&await L.start(),y(!0)},b=()=>{},I=c=>{N(c)};f.useEffect(()=>{const c=W.lspSubject.subscribe(({action:u,payload:d})=>{switch(u){case W.LspActions.WILL_SAVE:l(d.filePath);break;case W.LspActions.DID_SAVE:R(d.filePath,d.content);break;case W.LspActions.WILL_CREATE:F(d.filePath);break;case W.LspActions.DID_CREATE:ue(d.filePath);break;case W.LspActions.WILL_RENAME:B(d.oldPath,d.newPath);break;case W.LspActions.DID_RENAME:de(d.oldPath,d.newPath);break;case W.LspActions.WILL_DELETE:K(d.filePath);break;case W.LspActions.DID_DELETE:Ie(d.filePath);break;case W.LspActions.DIAGNOSTIC_REFRESH:s(d.filePath);break}});return()=>c.unsubscribe()},[]);const O=c=>{var u,d;return(d=(u=A.current)==null?void 0:u._features)==null?void 0:d.find(L=>{var T;return((T=L._registrationType)==null?void 0:T.method)===c})},s=c=>{if(A.current){const u=O(X.DocumentDiagnosticRequest.method);if(u)for(const[d,L]of u._registrations)L.provider&&L.provider.onDidChangeDiagnosticsEmitter.fire()}},l=(c,u=X.TextDocumentSaveReason.Manual)=>{var d;(d=A.current)==null||d.sendNotification(X.WillSaveTextDocumentNotification.type,{textDocument:{uri:Z(c)},reason:u})},R=(c,u)=>{var d;(d=A.current)==null||d.sendNotification(X.DidSaveTextDocumentNotification.type,{textDocument:{uri:Z(c)},text:u})},F=c=>{var u;(u=A.current)==null||u.sendRequest(X.WillCreateFilesRequest.type,{files:[{uri:Z(c)}]})},B=(c,u)=>{var d;(d=A.current)==null||d.sendRequest(X.WillRenameFilesRequest.type,{files:[{oldUri:Z(c),newUri:Z(u)}]})},K=c=>{var u;(u=A.current)==null||u.sendRequest(X.WillDeleteFilesRequest.type,{files:[{uri:Z(c)}]})},ue=c=>{var u;(u=A.current)==null||u.sendNotification(X.DidCreateFilesNotification.type,{files:[{uri:Z(c)}]})},de=(c,u)=>{var d;(d=A.current)==null||d.sendNotification(X.DidRenameFilesNotification.type,{files:[{oldUri:Z(c),newUri:Z(u)}]})},Ie=c=>{var u;(u=A.current)==null||u.sendNotification(X.DidDeleteFilesNotification.type,{files:[{uri:Z(c)}]})};return p.jsxs(oe.Provider,{value:{inited:m||!!E,clientRef:A,lastError:E,reload:h},children:[t,p.jsx(Xe,{defaultZoom:i})]})};function Oe(){const t=f.useContext(oe);if(t===void 0)throw new Error("useLSP must be used within an LSPContext");return t}const re=f.createContext(void 0),Be=f.memo(({children:t})=>{const[e,n]=f.useState(null);return p.jsx(re.Provider,{value:{editor:e,setEditor:n},children:t})});function se(){const t=f.useContext(re),e=f.useState(null);if(t===void 0){const[n,i]=e;return{editor:n,setEditor:i}}return t}var le={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},z=f.createContext&&f.createContext(le),k=globalThis&&globalThis.__assign||function(){return k=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},k.apply(this,arguments)},Te=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};function ae(t){return t&&t.map(function(e,n){return f.createElement(e.tag,k({key:n},e.attr),ae(e.child))})}function ge(t){return function(e){return f.createElement(Ge,k({attr:k({},t.attr)},e),ae(t.child))}}function Ge(t){var e=function(n){var i=t.attr,r=t.size,a=t.title,g=Te(t,["attr","size","title"]),C=r||n.size||"1em",m;return n.className&&(m=n.className),t.className&&(m=(m?m+" ":"")+t.className),f.createElement("svg",k({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,g,{className:m,style:k(k({color:t.color||n.color},n.style),t.style),height:C,width:C,xmlns:"http://www.w3.org/2000/svg"}),a&&f.createElement("title",null,a),t.children)};return z!==void 0?f.createElement(z.Consumer,null,function(n){return e(n)}):e(le)}function Je(t){return ge({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}}]})(t)}function De(t){return ge({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(t)}const ce=({lspProps:{lastError:t,reload:e}})=>{const[n,i]=f.useState(!1),r=()=>{e()},a=()=>{i(!1)};return f.useEffect(()=>{i(!!t)},[t]),n?p.jsxs("div",{className:"flex items-center border-b border-fd-gray-darker bg-grey-800 px-2 py-1.5 text-xs text-grey-50",children:[p.jsxs("span",{className:"flex flex-1 justify-center gap-1",children:[p.jsx(De,{className:"h-4 w-4 text-yellow-600"}),p.jsxs("span",{children:["LSP not loaded."," ",p.jsx("button",{className:"text-primary-dark underline",onClick:r,children:"Reload?"})]})]}),p.jsx("button",{className:"focus:outline-none",children:p.jsx(Je,{className:"h-4 w-4 text-white",onClick:a})})]}):null},Ve={provideCompletionItems:(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"device:xs",kind:o.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new o.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {","  self {","    ${2:background-color}:${3:red};","  }","}"].join(`
`),insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},Pe="#/definitions/Condition",Ye={Base:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id"]},Condition:{oneOf:[{$ref:"#/definitions/Datasource"},{$ref:"#/definitions/Privilege"},{$ref:"#/definitions/Combination"},{$ref:"#/definitions/CurrentState"},{$ref:"#/definitions/ParentState"},{$ref:"#/definitions/Reference"}]},Datasource:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"datasource"},path:{type:"string"},value:{type:["number","string","boolean","object","array","null"]},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex","in","nin","gt","gte","lt","lte"]}},required:["name","type","path","value","op"]},Privilege:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"privilege"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Combination:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"combination"},op:{enum:["and","or"]},conditions:{type:"array",items:{$ref:"#/definitions/Condition"}}},required:["type","conditions","op"]},CurrentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"currentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},ParentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"parentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Reference:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"reference"},ref:{type:"string"}},required:["type","ref"]}},Me={$ref:Pe,definitions:Ye};function qe(t,e){const n=document.createElement("style");n.dataset.id=e,n.textContent=t,document.head.append(n)}function He(t){return Array.from(document.styleSheets).find(e=>e.ownerNode.getAttribute("data-id")===t)}function $e(t,e){const n=[];let i=[];const r=[],a=(s,l,R,F)=>{n.push({startLineNumber:s,endLineNumber:R,startColumn:l,endColumn:F}),y(),m()},g=s=>{r.indexOf(s)<0&&r.push(s)},C=s=>{const l=r.indexOf(s);l<0||r.splice(l,1)},m=()=>{for(const s of r)try{s(i)}catch(l){console.error(l)}},y=()=>{const s=t.getModel();s&&(i=_e(n.map(l=>[s.getOffsetAt({lineNumber:l.startLineNumber,column:l.startColumn}),s.getOffsetAt({lineNumber:l.endLineNumber,column:l.endColumn})]),!0),i.length>0&&(i[0][0]<=0&&(i[0][0]=Number.NEGATIVE_INFINITY),i[i.length-1][1]>=s.getValueLength()&&(i[i.length-1][1]=Number.POSITIVE_INFINITY)))},E=s=>{const l={isDeletion:!1,isAddition:!1,isReplacement:!1};return s.text===""?l.isDeletion=!0:s.range.startLineNumber===s.range.endLineNumber&&s.range.startColumn===s.range.endColumn?l.isAddition=!0:l.isReplacement=!0,l},N=t.onDidChangeModel(s=>{y(),I()}),A=t.onDidChangeModelContent(s=>{if(!s.isUndoing)for(const l of s.changes){const R=E(l);if(R.isReplacement||R.isDeletion||R.isAddition){const F=n.some(K=>l.range.startLineNumber>=K.startLineNumber&&l.range.endLineNumber<=K.endLineNumber&&l.range.startColumn>=K.startColumn&&l.range.endColumn<=K.endColumn),B=!F&&e&&l.range.startLineNumber===1&&l.range.startColumn===1&&!W.hasAttributesString(l.text);if(F||B){const K=t.getModel();if(K){K.undo();return}}}}}),v=()=>{N.dispose(),A.dispose()};let S=[],h=`
    .idoc-readonly-mark {
      cursor: not-allowed;
      z-index: 1;
    }
  `;if(h){const s="monaco-read-only";He(s)||qe(h,s),h=null}const w=()=>{g(I),I()},b=()=>{C(I),S=t.deltaDecorations(S,[])},I=()=>{const s=t.getModel();s&&(S=t.deltaDecorations(S,i.map(O(s))))},O=s=>l=>{const R=s.getPositionAt(l[0]),F=s.getPositionAt(l[1]);return{range:new o.Range(R.lineNumber,R.column,F.lineNumber,F.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return i},exclude:a,attach:g,detach:C,dispose:v,show:w,hide:b}}function ze(t,e,n){let i=!1;const r=b=>b[1]<b[0]?(i=!0,[[b[1],b[0]]]):[[...b]],a=b=>i?b.map(I=>I[1]>I[0]?C(I):I).reverse():b;let g;const C=b=>(g=b[1],b[1]=b[0],b[0]=g,b),m=r(t);let y,E,N,A,v,S,h,w;N=m[0];for(E of e)for(h=E[0],w=E[1],A=0;A<m.length;A++){if(N=m[A],v=N[0],S=N[1],v<h)S<h?y=[N]:S<=w?y=[[v,h-1]]:y=[[v,h-1],[w+1,S]];else if(v<=w)if(h===Number.NEGATIVE_INFINITY){const b=w+1;y=n===0?[]:[[b,S>b?S:b]]}else w===Number.POSITIVE_INFINITY?y=n===0?[]:[[h-1,h-1]]:S<=w?y=n<0?[[h-1,h-1]]:n>0?[[w+1,w+1]]:[]:y=[[w+1,S]];else y=[N];if(m.splice(A,1,...y),m.length===1&&m[0][1]<h)return a(m)}return a(m)}function _e(t,e){if(t.length<2)return t;const n=[];let i=null,r,a;t=t.map(g=>(g[1]<g[0]&&(r=g[1],g[1]=g[0],g[1]=r),g)).sort((g,C)=>g[0]-C[0]),n.push(t[0]);for(let g=1;g<t.length;g++)i=n[n.length-1],a=t[g],i[1]===a[0]&&!e?n.push(a):i[1]===a[0]-1&&e?(i[1]=a[1],n.splice(n.length-1,1,i)):i[1]<a[0]?n.push(a):i[1]<a[1]&&(i[1]=a[1],n.splice(n.length-1,1,i));return n}function G(t,e){return e.bind(t)}class Ue{constructor(e,n){j(this,"editor");j(this,"intervals");j(this,"disposables",[]);j(this,"prefer",1);j(this,"lastPrefer",1);j(this,"onCursor",G(this,function(e){if(e.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}));j(this,"onRectangleSelectionStart",G(this,function({event:e}){e.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}));j(this,"onRectangleSelectionStop",G(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}));j(this,"onKey",G(this,function(e){const n=e.keyCode,i=o.KeyCode;if(e.altKey||i.F1<=n&&n<=i.F19||e.ctrlKey&&n!==i.Backspace)return;if(n===i.UpArrow||n===i.LeftArrow||n===i.Home||n===i.PageUp){this.prefer=-1;return}if(n===i.DownArrow||n===i.RightArrow||n===i.End||n===i.PageDown){this.prefer=1;return}const r=this.getSelections(),a=this.intervals.buffer;let g;if(n===i.Delete)g=C=>C[0]===C[1]&&a.find(m=>C[1]+1===m[0])!=null;else if(n===i.Backspace)g=C=>C[0]===C[1]&&a.find(m=>m[1]+1===C[0])!=null;else return;r.findIndex(g)!==-1&&(e.stopPropagation(),e.preventDefault())}));j(this,"getOffsetAt",G(this,function(e){let n;for(let i=0;i<this.intervals.buffer.length;i++)if(n=this.intervals.buffer[i],e<=n[1])return n[0]-e<e-n[1]?n[0]:n[1]}));var i;this.editor=e,this.intervals=$e(e,n),(i=this.editor.getModel())==null||i.setEOL(o.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const e of this.disposables)e.dispose();this.disposables.splice(0)}exclude(e,n,i,r){arguments.length===1?this.intervals.exclude(e,0,e,Number.MAX_SAFE_INTEGER):this.intervals.exclude(e,n,i,r)}getApprovedSelections(){const e=this.editor.getModel();return this.getSelections().map(i=>ze(i,this.intervals.buffer,this.prefer)).flat().map(i=>{const r=e.getPositionAt(i[0]),a=e.getPositionAt(i[1]);return new o.Selection(r.lineNumber,r.column,a.lineNumber,a.column)})}getSelections(){const e=this.editor.getModel();return(this.editor.getSelections()||[]).map(n=>[e.getOffsetAt({lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn}),e.getOffsetAt({lineNumber:n.positionLineNumber,column:n.positionColumn})])}}const Qe=new RegExp("^[	s]+(exposed|Function)","i"),_=()=>p.jsx("div",{className:"absolute inset-0 animate-pulse",children:p.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:p.jsxs("div",{className:"space-y-2",children:[p.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),p.jsx("div",{className:"h-3 rounded bg-grey-200"}),p.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),p.jsx("div",{className:"h-3 rounded bg-grey-200"}),p.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),en=({path:t,initialValue:e,theme:n="fd-dark",type:i,language:r,onChange:a,options:g={},extra:C={},showAlerts:m=!1,lspProps:y,...E})=>{const{initialLineInfo:N,initialSelectionInfo:A}=C,{editor:v,setEditor:S}=se(),{inited:h}=y;function w(I){r==="css"&&I.languages.registerCompletionItemProvider("css",Ve),r==="json"&&I.languages.json&&I.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:Me}]})}function b(I,O){S(I);const s=I.getModel();if(s&&(s.updateOptions({insertSpaces:!1}),I.onKeyUp(()=>{var R;const l=(R=I.getPosition())==null?void 0:R.lineNumber;if(l){const F=s.getLineFirstNonWhitespaceColumn(l),B=s.getLineLength(l),K=s.getLineContent(l);Qe.test(K)&&I.executeEdits("edit-handler",[{range:new O.Range(l,0,l,B),text:K.substr(F-1,B-F)}])}})),i===W.FileFolderType.METHOD&&W.hasAttributesString(e)){const l=new Ue(I,!0);l.exclude(1,1,1,Number.POSITIVE_INFINITY),l.enable()}}return f.useEffect(()=>{if(!v)return;const{line:I,offset:O}=N||{};I&&ie(v,I,O)},[N,v]),f.useEffect(()=>{if(!v)return;const{selection:I}=A||{};I&&te(v,I)},[A,v]),h?p.jsxs(p.Fragment,{children:[m?p.jsx(ce,{lspProps:y}):null,p.jsx(P.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},...g},path:Z(t),value:e,theme:"fd-dark",onChange:I=>a&&a(I||""),language:r,beforeMount:w,onMount:b,loading:p.jsx(_,{}),...E})]}):p.jsx(_,{})},nn={name:"4d",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",engines:{vscode:"0.10.x"},categories:["Programming Languages"],contributes:{languages:[{id:"4d",aliases:["4D","4d"],extensions:[".4dm",".4qs"],configuration:"./language-configuration.json"}],grammars:[{language:"4d",scopeName:"source.4dm",path:"./syntaxes/4d.tmLanguage.json"}]}},{registerFileUrl:J,whenReady:on}=Se.registerExtension(nn,void 0,{system:!0});J("./syntaxes/4d.tmLanguage.json",new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=",self.location).toString(),{mimeType:"application/json",size:1592});J("./language-configuration.json",new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==",self.location).toString(),{mimeType:"application/json",size:1723});J("package.json",new URL("data:application/json;base64,ewogICAgIm5hbWUiOiAiNGQiLAogICAgImRpc3BsYXlOYW1lIjogIiVkaXNwbGF5TmFtZSUiLAogICAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICAgInZlcnNpb24iOiAiMS4wLjAiLAogICAgInB1Ymxpc2hlciI6ICJ2c2NvZGUiLAogICAgImxpY2Vuc2UiOiAiTUlUIiwKICAgICJlbmdpbmVzIjogewogICAgICAgICJ2c2NvZGUiOiAiMC4xMC54IgogICAgfSwKICAgICJzY3JpcHRzIjogewogICAgICAgICJ1cGRhdGUtZ3JhbW1hciI6ICJub2RlIC4uL25vZGVfbW9kdWxlcy92c2NvZGUtZ3JhbW1hci11cGRhdGVyL2JpbiBtaWNyb3NvZnQvdnNjb2RlLTRkIGdyYW1tYXJzLzRkLmNzb24gLi9zeW50YXhlcy80ZC50bUxhbmd1YWdlLmpzb24iCiAgICB9LAogICAgImNhdGVnb3JpZXMiOiBbCiAgICAgICAgIlByb2dyYW1taW5nIExhbmd1YWdlcyIKICAgIF0sCiAgICAiY29udHJpYnV0ZXMiOiB7CiAgICAgICAgImxhbmd1YWdlcyI6IFsKICAgICAgICAgICAgewogICAgICAgICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgICAgICAgImFsaWFzZXMiOiBbIjREIiwgIjRkIl0sCiAgICAgICAgICAgICAgImV4dGVuc2lvbnMiOiBbIi40ZG0iLCAiLjRxcyJdLAogICAgICAgICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdLAogICAgICAgICAgImdyYW1tYXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdCiAgICB9LAogICAgInJlcG9zaXRvcnkiOiB7CiAgICAgICAgInR5cGUiOiAiZ2l0IiwKICAgICAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICAgIH0KfQ==",self.location).toString(),{mimeType:"application/json",size:1006});J("package.nls.json",new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K",self.location).toString(),{mimeType:"application/json",size:135});exports.Alerts=ce;exports.CodeEditor=en;exports.CodeEditorProvider=Be;exports.LSPProvider=ke;exports._await=M;exports.configureServices=ne;exports.getFileSystemPath=Z;exports.getFunctionOffset=Fe;exports.initMonacoUserConfiguration=ee;exports.jumpToLine=ie;exports.jumpToSelection=te;exports.useCodeEditor=se;exports.useLSP=Oe;
//# sourceMappingURL=index.cjs.js.map
