import{lineNumbers as e,highlightActiveLineGutter as t,highlightSpecialChars as o,drawSelection as i,dropCursor as r,rectangularSelection as s,crosshairCursor as a,highlightActiveLine as c,keymap as p}from"../../../@codemirror/view/dist/index.esm.js";import{EditorState as m}from"../../../@codemirror/state/dist/index.esm.js";import{defaultKeymap as n,historyKeymap as h,history as l}from"../../../@codemirror/commands/dist/index.esm.js";import{searchKeymap as u,highlightSelectionMatches as d}from"../../../@codemirror/search/dist/index.esm.js";import{closeBracketsKeymap as f,completionKeymap as g,closeBrackets as y,autocompletion as x}from"../../../@codemirror/autocomplete/dist/index.esm.js";import{foldKeymap as S,foldGutter as b,indentOnInput as j,syntaxHighlighting as v,bracketMatching as K,indentUnit as k,defaultHighlightStyle as w}from"../../../@codemirror/language/dist/index.esm.js";import{lintKeymap as M}from"../../../@codemirror/lint/dist/index.esm.js";var z=function(z){void 0===z&&(z={});var{crosshairCursor:B=!1}=z,C=[];!1!==z.closeBracketsKeymap&&(C=C.concat(f)),!1!==z.defaultKeymap&&(C=C.concat(n)),!1!==z.searchKeymap&&(C=C.concat(u)),!1!==z.historyKeymap&&(C=C.concat(h)),!1!==z.foldKeymap&&(C=C.concat(S)),!1!==z.completionKeymap&&(C=C.concat(g)),!1!==z.lintKeymap&&(C=C.concat(M));var A=[];return!1!==z.lineNumbers&&A.push(e()),!1!==z.highlightActiveLineGutter&&A.push(t()),!1!==z.highlightSpecialChars&&A.push(o()),!1!==z.history&&A.push(l()),!1!==z.foldGutter&&A.push(b()),!1!==z.drawSelection&&A.push(i()),!1!==z.dropCursor&&A.push(r()),!1!==z.allowMultipleSelections&&A.push(m.allowMultipleSelections.of(!0)),!1!==z.indentOnInput&&A.push(j()),!1!==z.syntaxHighlighting&&A.push(v(w,{fallback:!0})),!1!==z.bracketMatching&&A.push(K()),!1!==z.closeBrackets&&A.push(y()),!1!==z.autocompletion&&A.push(x()),!1!==z.rectangularSelection&&A.push(s()),!1!==B&&A.push(a()),!1!==z.highlightActiveLine&&A.push(c()),!1!==z.highlightSelectionMatches&&A.push(d()),z.tabSize&&"number"==typeof z.tabSize&&A.push(k.of(" ".repeat(z.tabSize))),A.concat([p.of(C.flat())]).filter(Boolean)};export{z as basicSetup};
//# sourceMappingURL=index.esm.js.map
