@infinilabs/discover 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/README.md +8 -0
- package/dist/abap-B988NUrV.js +122 -0
- package/dist/abap-obercqiY.cjs +1 -0
- package/dist/apex-B0_UGK1B.cjs +1 -0
- package/dist/apex-BlHPPQK-.js +168 -0
- package/dist/azcli-C7iyZFGk.js +53 -0
- package/dist/azcli-CEoytwx_.cjs +1 -0
- package/dist/bat-Buc0l0C3.js +123 -0
- package/dist/bat-D65OC-jj.cjs +1 -0
- package/dist/bicep-DvD_e5vW.cjs +2 -0
- package/dist/bicep-U66iJ-pV.js +219 -0
- package/dist/cameligo-C9Dwkdmm.js +189 -0
- package/dist/cameligo-DzMHfeEs.cjs +1 -0
- package/dist/chunk-BjqF3vbe.cjs +1 -0
- package/dist/chunk-CIp4IH9D.js +21 -0
- package/dist/classnames-BXjDNQ6Q.cjs +1 -0
- package/dist/classnames-eUba3oot.js +29 -0
- package/dist/clojure-BC7BzAFK.cjs +1 -0
- package/dist/clojure-DDWmWbSx.js +146 -0
- package/dist/coffee-7Sx2S8NH.js +260 -0
- package/dist/coffee-Ca9F0OWZ.cjs +1 -0
- package/dist/common-BeXEy5sz.cjs +18 -0
- package/dist/common-BlOHZJzI.js +64 -0
- package/dist/common-DuYIpe6b.cjs +1 -0
- package/dist/common-Tr1I-HCs.js +6725 -0
- package/dist/cpp-CHjqaSPQ.js +230 -0
- package/dist/cpp-DKy9h6xR.cjs +1 -0
- package/dist/createLucideIcon-239Z-2by.cjs +1 -0
- package/dist/createLucideIcon-BO6TDGE7.js +43 -0
- package/dist/csharp-CkbgT9vH.cjs +1 -0
- package/dist/csharp-jwStnVeK.js +260 -0
- package/dist/csp-C2qFd6iv.cjs +1 -0
- package/dist/csp-DkO8Np0h.js +46 -0
- package/dist/css-BFvwcljm.js +284 -0
- package/dist/css-DCKUCzD6.cjs +3 -0
- package/dist/cssMode-CU2AJQMM.js +1509 -0
- package/dist/cssMode-l7eR8WSG.cjs +4 -0
- package/dist/cypher-122TYSjJ.cjs +1 -0
- package/dist/cypher-DaQ7hFRL.js +212 -0
- package/dist/dart-D8p_2HKP.js +236 -0
- package/dist/dart-DshcPGU8.cjs +1 -0
- package/dist/dist-DCz_Qv0B.js +884 -0
- package/dist/dist-D_2dZQH5.cjs +11 -0
- package/dist/dockerfile-CL8dwZCe.cjs +1 -0
- package/dist/dockerfile-DKWOQrwp.js +191 -0
- package/dist/ecl-DP3PNWGB.js +226 -0
- package/dist/ecl-DVx2J_EE.cjs +1 -0
- package/dist/editor.api-CbUDOph7.js +70302 -0
- package/dist/editor.api-lY2thcaq.cjs +644 -0
- package/dist/elixir-Xgx_1krO.cjs +1 -0
- package/dist/elixir-e9tDp1p1.js +523 -0
- package/dist/filter_label-DRJC3vpe.js +58 -0
- package/dist/filter_label-DssaWGpx.cjs +1 -0
- package/dist/filter_operators-C-TaTcNc.js +70 -0
- package/dist/filter_operators-D0kyB-XI.cjs +1 -0
- package/dist/flow9-C9BjpX8h.js +176 -0
- package/dist/flow9-DR-EyjYV.cjs +1 -0
- package/dist/freemarker2-BTGUjvgA.cjs +3 -0
- package/dist/freemarker2-C6Iq5MB-.js +724 -0
- package/dist/fsharp-BWm_FISn.js +147 -0
- package/dist/fsharp-DaBEigN7.cjs +1 -0
- package/dist/go-Xyq33f0v.cjs +1 -0
- package/dist/go-cmqV0Vy_.js +165 -0
- package/dist/graphql-BkFHHVmI.js +174 -0
- package/dist/graphql-Cj7XAy25.cjs +1 -0
- package/dist/handlebars-B2b1q7PA.cjs +1 -0
- package/dist/handlebars-DGGN9u4Y.js +418 -0
- package/dist/hcl-5I-P7bYX.js +219 -0
- package/dist/hcl-C3dpBsgU.cjs +1 -0
- package/dist/html-RJa-j-qT.js +339 -0
- package/dist/html-qfcUzk8e.cjs +1 -0
- package/dist/htmlMode-CYIxo4hc.cjs +4 -0
- package/dist/htmlMode-DDZ48mdp.js +1520 -0
- package/dist/index.cjs +303 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +72895 -0
- package/dist/index_pattern_select--iGeA3sP.js +93 -0
- package/dist/index_pattern_select-BeN5049F.cjs +1 -0
- package/dist/ini-ChENqKh8.cjs +1 -0
- package/dist/ini-DSIAxBZt.js +94 -0
- package/dist/java-DGeAxsRb.js +173 -0
- package/dist/java-LZ6g7weJ.cjs +1 -0
- package/dist/javascript-CN5gTHH2.js +19 -0
- package/dist/javascript-CZ97a-BN.cjs +1 -0
- package/dist/jsonMode-BZDeJMLL.cjs +10 -0
- package/dist/jsonMode-DraOl-ka.js +1885 -0
- package/dist/julia-BeebccKw.cjs +1 -0
- package/dist/julia-CU4CtsP4.js +414 -0
- package/dist/kotlin-B8NxXJ89.js +183 -0
- package/dist/kotlin-M82nl514.cjs +1 -0
- package/dist/less-B4Q3fV9Y.cjs +2 -0
- package/dist/less-DbeQQzer.js +242 -0
- package/dist/lexon-CXQaaecE.cjs +1 -0
- package/dist/lexon-Cw9JuAKc.js +185 -0
- package/dist/lib-C9j_E-l0.js +47 -0
- package/dist/lib-Chy_6VKj.cjs +1 -0
- package/dist/liquid-BYNEOJvX.cjs +1 -0
- package/dist/liquid-DvB-d2w7.js +205 -0
- package/dist/lodash-C_2NO1eK.cjs +35 -0
- package/dist/lodash-D-qGlPRW.js +3769 -0
- package/dist/lua-CnG8Tpu2.cjs +1 -0
- package/dist/lua-yl5NzA_S.js +200 -0
- package/dist/m3-CVcm-OIn.cjs +1 -0
- package/dist/m3-CdNAqvIX.js +193 -0
- package/dist/markdown-C1h-EuiT.js +262 -0
- package/dist/markdown-DrRHDVSU.cjs +1 -0
- package/dist/mdx-BbiOYPr2.cjs +1 -0
- package/dist/mdx-Fk8VTCUK.js +335 -0
- package/dist/mips-DIWpzGF0.js +128 -0
- package/dist/mips-D_p8UYQb.cjs +1 -0
- package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
- package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
- package/dist/msdax-BiazpDQ1.js +156 -0
- package/dist/msdax-xM1_j20x.cjs +1 -0
- package/dist/mysql-DMsJkSnA.cjs +1 -0
- package/dist/mysql-DphBFJlP.js +168 -0
- package/dist/objective-c-BG02Lrht.cjs +1 -0
- package/dist/objective-c-DWZ8Qpyc.js +144 -0
- package/dist/pascal-BcvlMOdu.js +176 -0
- package/dist/pascal-CnP2Fqes.cjs +1 -0
- package/dist/pascaligo-BzDEm-l_.cjs +1 -0
- package/dist/pascaligo-DHEp4kzh.js +201 -0
- package/dist/perl-USYKPHpO.js +316 -0
- package/dist/perl-nIxw-e4R.cjs +1 -0
- package/dist/pgsql-Buk6XzVf.cjs +1 -0
- package/dist/pgsql-DzPhAh9W.js +158 -0
- package/dist/php-B3sFYUqV.cjs +1 -0
- package/dist/php-PfpSTefE.js +471 -0
- package/dist/pla-CZtnfWl6.cjs +1 -0
- package/dist/pla-DrFOZwDB.js +146 -0
- package/dist/postiats-4OGxVVUT.js +504 -0
- package/dist/postiats-CgJZf83Q.cjs +1 -0
- package/dist/powerquery-D9gzk2Dq.cjs +1 -0
- package/dist/powerquery-_h9-HEnY.js +190 -0
- package/dist/powershell-CZHaQY6z.cjs +1 -0
- package/dist/powershell-nOzcY8gy.js +211 -0
- package/dist/protobuf-DAgxhnea.js +659 -0
- package/dist/protobuf-D_C8Guej.cjs +2 -0
- package/dist/public-1PveQco4.js +1756 -0
- package/dist/public-D1K7oN7t.cjs +3 -0
- package/dist/pug-quEtG4rz.cjs +1 -0
- package/dist/pug-raGZNmZ1.js +300 -0
- package/dist/python-C45c7K7W.js +260 -0
- package/dist/python-CQX8JcT4.cjs +1 -0
- package/dist/qsharp-C2jz5tuo.js +143 -0
- package/dist/qsharp-CX1SSV_j.cjs +1 -0
- package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
- package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
- package/dist/query_bar_top_row-D6a48VTk.js +11 -0
- package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
- package/dist/query_string_input-75waAcWy.js +9 -0
- package/dist/query_string_input-CHG9w1ze.cjs +1 -0
- package/dist/query_string_input-CyPZVKif.js +366 -0
- package/dist/query_string_input-SOULY6dl.cjs +1 -0
- package/dist/r-CXkPcYYf.js +189 -0
- package/dist/r-DpVDQTST.cjs +1 -0
- package/dist/razor-BnoJmj1k.js +525 -0
- package/dist/razor-DYx4yJJn.cjs +1 -0
- package/dist/redis-DsCuCZIT.cjs +1 -0
- package/dist/redis-giKZvbbg.js +123 -0
- package/dist/redshift-qKVxBsP_.js +158 -0
- package/dist/redshift-z5_aUfdC.cjs +1 -0
- package/dist/restructuredtext-D0n4pabr.js +287 -0
- package/dist/restructuredtext-DdXoKocW.cjs +1 -0
- package/dist/ruby-BNrBlpcw.js +527 -0
- package/dist/ruby-Dj0sNBey.cjs +1 -0
- package/dist/rust-D6mpPoli.js +178 -0
- package/dist/rust-DjkW1U4M.cjs +1 -0
- package/dist/sb-BCN0JcpS.cjs +1 -0
- package/dist/sb-DhS9GhXl.js +143 -0
- package/dist/scala-BqxBEpi8.js +551 -0
- package/dist/scala-CyXWhZaJ.cjs +1 -0
- package/dist/scheme-Bh4oGAk3.js +170 -0
- package/dist/scheme-Cs9G6QEE.cjs +1 -0
- package/dist/scss-Byf08jwC.js +417 -0
- package/dist/scss-Fl7taPuq.cjs +3 -0
- package/dist/search_bar-Caqi1NVo.js +1815 -0
- package/dist/search_bar-DyO_WsC5.cjs +1 -0
- package/dist/services-9wPHk1eh.js +2350 -0
- package/dist/services-BPC3fXx4.cjs +7 -0
- package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
- package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
- package/dist/shell-Cw5yNfC4.cjs +1 -0
- package/dist/shell-UoRv_tpG.js +223 -0
- package/dist/solidity-B5t7Lkol.js +147 -0
- package/dist/solidity-BoAzg9X_.cjs +1 -0
- package/dist/sophia-BrXXWhvp.js +147 -0
- package/dist/sophia-L84Jz6Ow.cjs +1 -0
- package/dist/sparql-B8ZTY48u.js +124 -0
- package/dist/sparql-D6lnG7vO.cjs +1 -0
- package/dist/sql-D_74hUL-.js +171 -0
- package/dist/sql-VXdYzIyz.cjs +1 -0
- package/dist/src/App.d.ts +2 -0
- package/dist/src/components/ResultHeader/Info.d.ts +30 -0
- package/dist/src/components/ResultHeader/index.d.ts +13 -0
- package/dist/src/components/context.d.ts +82 -0
- package/dist/src/components/euiicons.d.ts +1 -0
- package/dist/src/components/index.d.ts +8 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/utils/request.d.ts +1 -0
- package/dist/src/utils/utils.d.ts +1 -0
- package/dist/st-CxJLwAAK.cjs +1 -0
- package/dist/st-D8Rdx9Bz.js +476 -0
- package/dist/suggestions_component-BBHwbjYT.js +1243 -0
- package/dist/suggestions_component-CF4sehth.cjs +77 -0
- package/dist/swift-ZBC6wQdc.cjs +1 -0
- package/dist/swift-s19Ivx3X.js +213 -0
- package/dist/systemverilog-DoSgAb1I.cjs +1 -0
- package/dist/systemverilog-fA72PnKj.js +298 -0
- package/dist/tcl-B8QLbcxi.js +223 -0
- package/dist/tcl-IXmy-lJ0.cjs +1 -0
- package/dist/tsMode-BrPRpJvb.js +597 -0
- package/dist/tsMode-CNvH6xuC.cjs +11 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/twig-CT2RXmm0.cjs +1 -0
- package/dist/twig-Dy7NkzKI.js +388 -0
- package/dist/typescript-BRKHcp4S.js +263 -0
- package/dist/typescript-Bbw9fxuo.cjs +1 -0
- package/dist/typescript-CQjO9XnF.js +3 -0
- package/dist/typescript-D6q4AO2z.cjs +1 -0
- package/dist/typespec-CkKpvaMv.cjs +1 -0
- package/dist/typespec-ndyv0mQx.js +234 -0
- package/dist/vb-DET0NIW-.js +260 -0
- package/dist/vb-R3Kcrzvd.cjs +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/wgsl-D5TeQchR.js +145 -0
- package/dist/wgsl-FTDBzylH.cjs +298 -0
- package/dist/xml-BZjE3dtf.js +136 -0
- package/dist/xml-CxbMIueA.cjs +1 -0
- package/dist/yaml-Di_6aXC4.js +229 -0
- package/dist/yaml-DvaGkWBl.cjs +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { m as editor_api_exports } from "./editor.api-CbUDOph7.js";
|
|
2
|
+
var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (e, o, s, c) => {
|
|
3
|
+
if (o && typeof o == "object" || typeof o == "function") for (let l of __getOwnPropNames(o)) !__hasOwnProp.call(e, l) && l !== s && __defProp(e, l, {
|
|
4
|
+
get: () => o[l],
|
|
5
|
+
enumerable: !(c = __getOwnPropDesc(o, l)) || c.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, __reExport = (e, i, a) => (__copyProps(e, i, "default"), a && __copyProps(a, i, "default")), monaco_editor_core_exports = {};
|
|
9
|
+
__reExport(monaco_editor_core_exports, editor_api_exports);
|
|
10
|
+
var conf = {
|
|
11
|
+
comments: { blockComment: ["{/*", "*/}"] },
|
|
12
|
+
brackets: [["{", "}"]],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{
|
|
15
|
+
open: "\"",
|
|
16
|
+
close: "\""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "'",
|
|
20
|
+
close: "'"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "“",
|
|
24
|
+
close: "”"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: "‘",
|
|
28
|
+
close: "’"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "`",
|
|
32
|
+
close: "`"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
open: "{",
|
|
36
|
+
close: "}"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
open: "(",
|
|
40
|
+
close: ")"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "_",
|
|
44
|
+
close: "_"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "**",
|
|
48
|
+
close: "**"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
open: "<",
|
|
52
|
+
close: ">"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
onEnterRules: [
|
|
56
|
+
{
|
|
57
|
+
beforeText: /^\s*- .+/,
|
|
58
|
+
action: {
|
|
59
|
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
|
60
|
+
appendText: "- "
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
beforeText: /^\s*\+ .+/,
|
|
65
|
+
action: {
|
|
66
|
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
|
67
|
+
appendText: "+ "
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
beforeText: /^\s*\* .+/,
|
|
72
|
+
action: {
|
|
73
|
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
|
74
|
+
appendText: "* "
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
beforeText: /^> /,
|
|
79
|
+
action: {
|
|
80
|
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
|
81
|
+
appendText: "> "
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
beforeText: /<\w+/,
|
|
86
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
beforeText: /\s+>\s*$/,
|
|
90
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
beforeText: /<\/\w+>/,
|
|
94
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Outdent }
|
|
95
|
+
},
|
|
96
|
+
...Array.from({ length: 100 }, (e, i) => ({
|
|
97
|
+
beforeText: /* @__PURE__ */ RegExp(`^${i}\\. .+`),
|
|
98
|
+
action: {
|
|
99
|
+
indentAction: monaco_editor_core_exports.languages.IndentAction.None,
|
|
100
|
+
appendText: `${i + 1}. `
|
|
101
|
+
}
|
|
102
|
+
}))
|
|
103
|
+
]
|
|
104
|
+
}, language = {
|
|
105
|
+
defaultToken: "",
|
|
106
|
+
tokenPostfix: ".mdx",
|
|
107
|
+
control: /[!#()*+.[\\\]_`{}\-]/,
|
|
108
|
+
escapes: /\\@control/,
|
|
109
|
+
tokenizer: {
|
|
110
|
+
root: [
|
|
111
|
+
[/^---$/, {
|
|
112
|
+
token: "meta.content",
|
|
113
|
+
next: "@frontmatter",
|
|
114
|
+
nextEmbedded: "yaml"
|
|
115
|
+
}],
|
|
116
|
+
[/^\s*import/, {
|
|
117
|
+
token: "keyword",
|
|
118
|
+
next: "@import",
|
|
119
|
+
nextEmbedded: "js"
|
|
120
|
+
}],
|
|
121
|
+
[/^\s*export/, {
|
|
122
|
+
token: "keyword",
|
|
123
|
+
next: "@export",
|
|
124
|
+
nextEmbedded: "js"
|
|
125
|
+
}],
|
|
126
|
+
[/<\w+/, {
|
|
127
|
+
token: "type.identifier",
|
|
128
|
+
next: "@jsx"
|
|
129
|
+
}],
|
|
130
|
+
[/<\/?\w+>/, "type.identifier"],
|
|
131
|
+
[/^(\s*)(>*\s*)(#{1,6}\s)/, [
|
|
132
|
+
{ token: "white" },
|
|
133
|
+
{ token: "comment" },
|
|
134
|
+
{
|
|
135
|
+
token: "keyword",
|
|
136
|
+
next: "@header"
|
|
137
|
+
}
|
|
138
|
+
]],
|
|
139
|
+
[/^(\s*)(>*\s*)([*+-])(\s+)/, [
|
|
140
|
+
"white",
|
|
141
|
+
"comment",
|
|
142
|
+
"keyword",
|
|
143
|
+
"white"
|
|
144
|
+
]],
|
|
145
|
+
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, [
|
|
146
|
+
"white",
|
|
147
|
+
"comment",
|
|
148
|
+
"number",
|
|
149
|
+
"white"
|
|
150
|
+
]],
|
|
151
|
+
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, [
|
|
152
|
+
"white",
|
|
153
|
+
"comment",
|
|
154
|
+
"number",
|
|
155
|
+
"white"
|
|
156
|
+
]],
|
|
157
|
+
[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, [
|
|
158
|
+
"white",
|
|
159
|
+
"comment",
|
|
160
|
+
"keyword"
|
|
161
|
+
]],
|
|
162
|
+
[/`{3,}(\s.*)?$/, {
|
|
163
|
+
token: "string",
|
|
164
|
+
next: "@codeblock_backtick"
|
|
165
|
+
}],
|
|
166
|
+
[/~{3,}(\s.*)?$/, {
|
|
167
|
+
token: "string",
|
|
168
|
+
next: "@codeblock_tilde"
|
|
169
|
+
}],
|
|
170
|
+
[/`{3,}(\S+).*$/, {
|
|
171
|
+
token: "string",
|
|
172
|
+
next: "@codeblock_highlight_backtick",
|
|
173
|
+
nextEmbedded: "$1"
|
|
174
|
+
}],
|
|
175
|
+
[/~{3,}(\S+).*$/, {
|
|
176
|
+
token: "string",
|
|
177
|
+
next: "@codeblock_highlight_tilde",
|
|
178
|
+
nextEmbedded: "$1"
|
|
179
|
+
}],
|
|
180
|
+
[/^(\s*)(-{4,})$/, ["white", "comment"]],
|
|
181
|
+
[/^(\s*)(>+)/, ["white", "comment"]],
|
|
182
|
+
{ include: "content" }
|
|
183
|
+
],
|
|
184
|
+
content: [
|
|
185
|
+
[/(\[)(.+)(]\()(.+)(\s+".*")(\))/, [
|
|
186
|
+
"",
|
|
187
|
+
"string.link",
|
|
188
|
+
"",
|
|
189
|
+
"type.identifier",
|
|
190
|
+
"string.link",
|
|
191
|
+
""
|
|
192
|
+
]],
|
|
193
|
+
[/(\[)(.+)(]\()(.+)(\))/, [
|
|
194
|
+
"",
|
|
195
|
+
"type.identifier",
|
|
196
|
+
"",
|
|
197
|
+
"string.link",
|
|
198
|
+
""
|
|
199
|
+
]],
|
|
200
|
+
[/(\[)(.+)(]\[)(.+)(])/, [
|
|
201
|
+
"",
|
|
202
|
+
"type.identifier",
|
|
203
|
+
"",
|
|
204
|
+
"type.identifier",
|
|
205
|
+
""
|
|
206
|
+
]],
|
|
207
|
+
[/(\[)(.+)(]:\s+)(\S*)/, [
|
|
208
|
+
"",
|
|
209
|
+
"type.identifier",
|
|
210
|
+
"",
|
|
211
|
+
"string.link"
|
|
212
|
+
]],
|
|
213
|
+
[/(\[)(.+)(])/, [
|
|
214
|
+
"",
|
|
215
|
+
"type.identifier",
|
|
216
|
+
""
|
|
217
|
+
]],
|
|
218
|
+
[/`.*`/, "variable.source"],
|
|
219
|
+
[/_/, {
|
|
220
|
+
token: "emphasis",
|
|
221
|
+
next: "@emphasis_underscore"
|
|
222
|
+
}],
|
|
223
|
+
[/\*(?!\*)/, {
|
|
224
|
+
token: "emphasis",
|
|
225
|
+
next: "@emphasis_asterisk"
|
|
226
|
+
}],
|
|
227
|
+
[/\*\*/, {
|
|
228
|
+
token: "strong",
|
|
229
|
+
next: "@strong"
|
|
230
|
+
}],
|
|
231
|
+
[/{/, {
|
|
232
|
+
token: "delimiter.bracket",
|
|
233
|
+
next: "@expression",
|
|
234
|
+
nextEmbedded: "js"
|
|
235
|
+
}]
|
|
236
|
+
],
|
|
237
|
+
import: [[/'\s*(;|$)/, {
|
|
238
|
+
token: "string",
|
|
239
|
+
next: "@pop",
|
|
240
|
+
nextEmbedded: "@pop"
|
|
241
|
+
}]],
|
|
242
|
+
expression: [[/{/, {
|
|
243
|
+
token: "delimiter.bracket",
|
|
244
|
+
next: "@expression"
|
|
245
|
+
}], [/}/, {
|
|
246
|
+
token: "delimiter.bracket",
|
|
247
|
+
next: "@pop",
|
|
248
|
+
nextEmbedded: "@pop"
|
|
249
|
+
}]],
|
|
250
|
+
export: [[/^\s*$/, {
|
|
251
|
+
token: "delimiter.bracket",
|
|
252
|
+
next: "@pop",
|
|
253
|
+
nextEmbedded: "@pop"
|
|
254
|
+
}]],
|
|
255
|
+
jsx: [
|
|
256
|
+
[/\s+/, ""],
|
|
257
|
+
[/(\w+)(=)("(?:[^"\\]|\\.)*")/, [
|
|
258
|
+
"attribute.name",
|
|
259
|
+
"operator",
|
|
260
|
+
"string"
|
|
261
|
+
]],
|
|
262
|
+
[/(\w+)(=)('(?:[^'\\]|\\.)*')/, [
|
|
263
|
+
"attribute.name",
|
|
264
|
+
"operator",
|
|
265
|
+
"string"
|
|
266
|
+
]],
|
|
267
|
+
[/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
|
|
268
|
+
[/={/, {
|
|
269
|
+
token: "delimiter.bracket",
|
|
270
|
+
next: "@expression",
|
|
271
|
+
nextEmbedded: "js"
|
|
272
|
+
}],
|
|
273
|
+
[/>/, {
|
|
274
|
+
token: "type.identifier",
|
|
275
|
+
next: "@pop"
|
|
276
|
+
}]
|
|
277
|
+
],
|
|
278
|
+
header: [
|
|
279
|
+
[/.$/, {
|
|
280
|
+
token: "keyword",
|
|
281
|
+
next: "@pop"
|
|
282
|
+
}],
|
|
283
|
+
{ include: "content" },
|
|
284
|
+
[/./, { token: "keyword" }]
|
|
285
|
+
],
|
|
286
|
+
strong: [
|
|
287
|
+
[/\*\*/, {
|
|
288
|
+
token: "strong",
|
|
289
|
+
next: "@pop"
|
|
290
|
+
}],
|
|
291
|
+
{ include: "content" },
|
|
292
|
+
[/./, { token: "strong" }]
|
|
293
|
+
],
|
|
294
|
+
emphasis_underscore: [
|
|
295
|
+
[/_/, {
|
|
296
|
+
token: "emphasis",
|
|
297
|
+
next: "@pop"
|
|
298
|
+
}],
|
|
299
|
+
{ include: "content" },
|
|
300
|
+
[/./, { token: "emphasis" }]
|
|
301
|
+
],
|
|
302
|
+
emphasis_asterisk: [
|
|
303
|
+
[/\*(?!\*)/, {
|
|
304
|
+
token: "emphasis",
|
|
305
|
+
next: "@pop"
|
|
306
|
+
}],
|
|
307
|
+
{ include: "content" },
|
|
308
|
+
[/./, { token: "emphasis" }]
|
|
309
|
+
],
|
|
310
|
+
frontmatter: [[/^---$/, {
|
|
311
|
+
token: "meta.content",
|
|
312
|
+
nextEmbedded: "@pop",
|
|
313
|
+
next: "@pop"
|
|
314
|
+
}]],
|
|
315
|
+
codeblock_highlight_backtick: [[/\s*`{3,}\s*$/, {
|
|
316
|
+
token: "string",
|
|
317
|
+
next: "@pop",
|
|
318
|
+
nextEmbedded: "@pop"
|
|
319
|
+
}], [/.*$/, "variable.source"]],
|
|
320
|
+
codeblock_highlight_tilde: [[/\s*~{3,}\s*$/, {
|
|
321
|
+
token: "string",
|
|
322
|
+
next: "@pop",
|
|
323
|
+
nextEmbedded: "@pop"
|
|
324
|
+
}], [/.*$/, "variable.source"]],
|
|
325
|
+
codeblock_backtick: [[/\s*`{3,}\s*$/, {
|
|
326
|
+
token: "string",
|
|
327
|
+
next: "@pop"
|
|
328
|
+
}], [/.*$/, "variable.source"]],
|
|
329
|
+
codeblock_tilde: [[/\s*~{3,}\s*$/, {
|
|
330
|
+
token: "string",
|
|
331
|
+
next: "@pop"
|
|
332
|
+
}], [/.*$/, "variable.source"]]
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
export { conf, language };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
var conf = {
|
|
2
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
3
|
+
comments: {
|
|
4
|
+
blockComment: ["###", "###"],
|
|
5
|
+
lineComment: "#"
|
|
6
|
+
},
|
|
7
|
+
folding: { markers: {
|
|
8
|
+
start: /* @__PURE__ */ RegExp("^\\s*#region\\b"),
|
|
9
|
+
end: /* @__PURE__ */ RegExp("^\\s*#endregion\\b")
|
|
10
|
+
} }
|
|
11
|
+
}, language = {
|
|
12
|
+
defaultToken: "",
|
|
13
|
+
ignoreCase: !1,
|
|
14
|
+
tokenPostfix: ".mips",
|
|
15
|
+
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
|
16
|
+
keywords: /* @__PURE__ */ ".data,.text,syscall,trap,add,addu,addi,addiu,and,andi,div,divu,mult,multu,nor,or,ori,sll,slv,sra,srav,srl,srlv,sub,subu,xor,xori,lhi,lho,lhi,llo,slt,slti,sltu,sltiu,beq,bgtz,blez,bne,j,jal,jalr,jr,lb,lbu,lh,lhu,lw,li,la,sb,sh,sw,mfhi,mflo,mthi,mtlo,move".split(","),
|
|
17
|
+
symbols: /[\.,\:]+/,
|
|
18
|
+
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
19
|
+
tokenizer: {
|
|
20
|
+
root: [
|
|
21
|
+
[/\$[a-zA-Z_]\w*/, "variable.predefined"],
|
|
22
|
+
[/[.a-zA-Z_]\w*/, { cases: {
|
|
23
|
+
this: "variable.predefined",
|
|
24
|
+
"@keywords": { token: "keyword.$0" },
|
|
25
|
+
"@default": ""
|
|
26
|
+
} }],
|
|
27
|
+
[/[ \t\r\n]+/, ""],
|
|
28
|
+
[/#.*$/, "comment"],
|
|
29
|
+
["///", {
|
|
30
|
+
token: "regexp",
|
|
31
|
+
next: "@hereregexp"
|
|
32
|
+
}],
|
|
33
|
+
[/^(\s*)(@regEx)/, ["", "regexp"]],
|
|
34
|
+
[/(\,)(\s*)(@regEx)/, [
|
|
35
|
+
"delimiter",
|
|
36
|
+
"",
|
|
37
|
+
"regexp"
|
|
38
|
+
]],
|
|
39
|
+
[/(\:)(\s*)(@regEx)/, [
|
|
40
|
+
"delimiter",
|
|
41
|
+
"",
|
|
42
|
+
"regexp"
|
|
43
|
+
]],
|
|
44
|
+
[/@symbols/, "delimiter"],
|
|
45
|
+
[/\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
46
|
+
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
47
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
48
|
+
[/0[0-7]+(?!\d)/, "number.octal"],
|
|
49
|
+
[/\d+/, "number"],
|
|
50
|
+
[/[,.]/, "delimiter"],
|
|
51
|
+
[
|
|
52
|
+
/"""/,
|
|
53
|
+
"string",
|
|
54
|
+
"@herestring.\"\"\""
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
/'''/,
|
|
58
|
+
"string",
|
|
59
|
+
"@herestring.'''"
|
|
60
|
+
],
|
|
61
|
+
[/"/, { cases: {
|
|
62
|
+
"@eos": "string",
|
|
63
|
+
"@default": {
|
|
64
|
+
token: "string",
|
|
65
|
+
next: "@string.\""
|
|
66
|
+
}
|
|
67
|
+
} }],
|
|
68
|
+
[/'/, { cases: {
|
|
69
|
+
"@eos": "string",
|
|
70
|
+
"@default": {
|
|
71
|
+
token: "string",
|
|
72
|
+
next: "@string.'"
|
|
73
|
+
}
|
|
74
|
+
} }]
|
|
75
|
+
],
|
|
76
|
+
string: [
|
|
77
|
+
[/[^"'\#\\]+/, "string"],
|
|
78
|
+
[/@escapes/, "string.escape"],
|
|
79
|
+
[/\./, "string.escape.invalid"],
|
|
80
|
+
[/\./, "string.escape.invalid"],
|
|
81
|
+
[/#{/, { cases: {
|
|
82
|
+
"$S2==\"": {
|
|
83
|
+
token: "string",
|
|
84
|
+
next: "root.interpolatedstring"
|
|
85
|
+
},
|
|
86
|
+
"@default": "string"
|
|
87
|
+
} }],
|
|
88
|
+
[/["']/, { cases: {
|
|
89
|
+
"$#==$S2": {
|
|
90
|
+
token: "string",
|
|
91
|
+
next: "@pop"
|
|
92
|
+
},
|
|
93
|
+
"@default": "string"
|
|
94
|
+
} }],
|
|
95
|
+
[/#/, "string"]
|
|
96
|
+
],
|
|
97
|
+
herestring: [
|
|
98
|
+
[/("""|''')/, { cases: {
|
|
99
|
+
"$1==$S2": {
|
|
100
|
+
token: "string",
|
|
101
|
+
next: "@pop"
|
|
102
|
+
},
|
|
103
|
+
"@default": "string"
|
|
104
|
+
} }],
|
|
105
|
+
[/[^#\\'"]+/, "string"],
|
|
106
|
+
[/['"]+/, "string"],
|
|
107
|
+
[/@escapes/, "string.escape"],
|
|
108
|
+
[/\./, "string.escape.invalid"],
|
|
109
|
+
[/#{/, {
|
|
110
|
+
token: "string.quote",
|
|
111
|
+
next: "root.interpolatedstring"
|
|
112
|
+
}],
|
|
113
|
+
[/#/, "string"]
|
|
114
|
+
],
|
|
115
|
+
comment: [[/[^#]+/, "comment"], [/#/, "comment"]],
|
|
116
|
+
hereregexp: [
|
|
117
|
+
[/[^\\\/#]+/, "regexp"],
|
|
118
|
+
[/\\./, "regexp"],
|
|
119
|
+
[/#.*$/, "comment"],
|
|
120
|
+
["///[igm]*", {
|
|
121
|
+
token: "regexp",
|
|
122
|
+
next: "@pop"
|
|
123
|
+
}],
|
|
124
|
+
[/\//, "regexp"]
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
export { conf, language };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-BjqF3vbe.cjs`);var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:[`###`,`###`],lineComment:`#`},folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},n={defaultToken:``,ignoreCase:!1,tokenPostfix:`.mips`,regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:`.data,.text,syscall,trap,add,addu,addi,addiu,and,andi,div,divu,mult,multu,nor,or,ori,sll,slv,sra,srav,srl,srlv,sub,subu,xor,xori,lhi,lho,lhi,llo,slt,slti,sltu,sltiu,beq,bgtz,blez,bne,j,jal,jalr,jr,lb,lbu,lh,lhu,lw,li,la,sb,sh,sw,mfhi,mflo,mthi,mtlo,move`.split(`,`),symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,`variable.predefined`],[/[.a-zA-Z_]\w*/,{cases:{this:`variable.predefined`,"@keywords":{token:`keyword.$0`},"@default":``}}],[/[ \t\r\n]+/,``],[/#.*$/,`comment`],[`///`,{token:`regexp`,next:`@hereregexp`}],[/^(\s*)(@regEx)/,[``,`regexp`]],[/(\,)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/(\:)(\s*)(@regEx)/,[`delimiter`,``,`regexp`]],[/@symbols/,`delimiter`],[/\d+[eE]([\-+]?\d+)?/,`number.float`],[/\d+\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F]+/,`number.hex`],[/0[0-7]+(?!\d)/,`number.octal`],[/\d+/,`number`],[/[,.]/,`delimiter`],[/"""/,`string`,`@herestring."""`],[/'''/,`string`,`@herestring.'''`],[/"/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string."`}}}],[/'/,{cases:{"@eos":`string`,"@default":{token:`string`,next:`@string.'`}}}]],string:[[/[^"'\#\\]+/,`string`],[/@escapes/,`string.escape`],[/\./,`string.escape.invalid`],[/\./,`string.escape.invalid`],[/#{/,{cases:{'$S2=="':{token:`string`,next:`root.interpolatedstring`},"@default":`string`}}],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/#/,`string`]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:`string`,next:`@pop`},"@default":`string`}}],[/[^#\\'"]+/,`string`],[/['"]+/,`string`],[/@escapes/,`string.escape`],[/\./,`string.escape.invalid`],[/#{/,{token:`string.quote`,next:`root.interpolatedstring`}],[/#/,`string`]],comment:[[/[^#]+/,`comment`],[/#/,`comment`]],hereregexp:[[/[^\\\/#]+/,`regexp`],[/\\./,`regexp`],[/#.*$/,`comment`],[`///[igm]*`,{token:`regexp`,next:`@pop`}],[/\//,`regexp`]]}};exports.conf=t,exports.language=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./editor.api-lY2thcaq.cjs`);var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of r(a))!i.call(e,c)&&c!==o&&t(e,c,{get:()=>a[c],enumerable:!(s=n(a,c))||s.enumerable});return e},o=(e,t,n)=>(a(e,t,`default`),n&&a(n,t,`default`)),s=`5.4.5`,c={};o(c,e.m);var l=(e=>(e[e.None=0]=`None`,e[e.CommonJS=1]=`CommonJS`,e[e.AMD=2]=`AMD`,e[e.UMD=3]=`UMD`,e[e.System=4]=`System`,e[e.ES2015=5]=`ES2015`,e[e.ESNext=99]=`ESNext`,e))(l||{}),u=(e=>(e[e.None=0]=`None`,e[e.Preserve=1]=`Preserve`,e[e.React=2]=`React`,e[e.ReactNative=3]=`ReactNative`,e[e.ReactJSX=4]=`ReactJSX`,e[e.ReactJSXDev=5]=`ReactJSXDev`,e))(u||{}),d=(e=>(e[e.CarriageReturnLineFeed=0]=`CarriageReturnLineFeed`,e[e.LineFeed=1]=`LineFeed`,e))(d||{}),f=(e=>(e[e.ES3=0]=`ES3`,e[e.ES5=1]=`ES5`,e[e.ES2015=2]=`ES2015`,e[e.ES2016=3]=`ES2016`,e[e.ES2017=4]=`ES2017`,e[e.ES2018=5]=`ES2018`,e[e.ES2019=6]=`ES2019`,e[e.ES2020=7]=`ES2020`,e[e.ESNext=99]=`ESNext`,e[e.JSON=100]=`JSON`,e[e.Latest=99]=`Latest`,e))(f||{}),p=(e=>(e[e.Classic=1]=`Classic`,e[e.NodeJs=2]=`NodeJs`,e))(p||{}),m=class{constructor(e,t,n,r,i){this._onDidChange=new c.Emitter,this._onDidExtraLibsChange=new c.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this.setInlayHintsOptions(r),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let n;if(n=t===void 0?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[n];e&&e.version===r&&(delete this._extraLibs[n],this._removedExtraLibs[n]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content,r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},h=s,g={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},_=new m({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},g),v=new m({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},g),y=()=>x().then(e=>e.getTypeScriptWorker()),b=()=>x().then(e=>e.getJavaScriptWorker());c.languages.typescript={ModuleKind:l,JsxEmit:u,NewLineKind:d,ScriptTarget:f,ModuleResolutionKind:p,typescriptVersion:h,typescriptDefaults:_,javascriptDefaults:v,getTypeScriptWorker:y,getJavaScriptWorker:b};function x(){return Promise.resolve().then(()=>require(`./tsMode-CNvH6xuC.cjs`))}c.languages.onLanguage(`typescript`,()=>x().then(e=>e.setupTypeScript(_))),c.languages.onLanguage(`javascript`,()=>x().then(e=>e.setupJavaScript(v))),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { m as editor_api_exports } from "./editor.api-CbUDOph7.js";
|
|
2
|
+
var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (e, v, y, b) => {
|
|
3
|
+
if (v && typeof v == "object" || typeof v == "function") for (let x of __getOwnPropNames(v)) !__hasOwnProp.call(e, x) && x !== y && __defProp(e, x, {
|
|
4
|
+
get: () => v[x],
|
|
5
|
+
enumerable: !(b = __getOwnPropDesc(v, x)) || b.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, __reExport = (e, m, h) => (__copyProps(e, m, "default"), h && __copyProps(h, m, "default")), typescriptVersion = "5.4.5", monaco_editor_core_exports = {};
|
|
9
|
+
__reExport(monaco_editor_core_exports, editor_api_exports);
|
|
10
|
+
var ModuleKind = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.CommonJS = 1] = "CommonJS", e[e.AMD = 2] = "AMD", e[e.UMD = 3] = "UMD", e[e.System = 4] = "System", e[e.ES2015 = 5] = "ES2015", e[e.ESNext = 99] = "ESNext", e))(ModuleKind || {}), JsxEmit = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Preserve = 1] = "Preserve", e[e.React = 2] = "React", e[e.ReactNative = 3] = "ReactNative", e[e.ReactJSX = 4] = "ReactJSX", e[e.ReactJSXDev = 5] = "ReactJSXDev", e))(JsxEmit || {}), NewLineKind = /* @__PURE__ */ ((e) => (e[e.CarriageReturnLineFeed = 0] = "CarriageReturnLineFeed", e[e.LineFeed = 1] = "LineFeed", e))(NewLineKind || {}), ScriptTarget = /* @__PURE__ */ ((e) => (e[e.ES3 = 0] = "ES3", e[e.ES5 = 1] = "ES5", e[e.ES2015 = 2] = "ES2015", e[e.ES2016 = 3] = "ES2016", e[e.ES2017 = 4] = "ES2017", e[e.ES2018 = 5] = "ES2018", e[e.ES2019 = 6] = "ES2019", e[e.ES2020 = 7] = "ES2020", e[e.ESNext = 99] = "ESNext", e[e.JSON = 100] = "JSON", e[e.Latest = 99] = "Latest", e))(ScriptTarget || {}), ModuleResolutionKind = /* @__PURE__ */ ((e) => (e[e.Classic = 1] = "Classic", e[e.NodeJs = 2] = "NodeJs", e))(ModuleResolutionKind || {}), LanguageServiceDefaultsImpl = class {
|
|
11
|
+
constructor(e, m, h, g, _) {
|
|
12
|
+
this._onDidChange = new monaco_editor_core_exports.Emitter(), this._onDidExtraLibsChange = new monaco_editor_core_exports.Emitter(), this._extraLibs = /* @__PURE__ */ Object.create(null), this._removedExtraLibs = /* @__PURE__ */ Object.create(null), this._eagerModelSync = !1, this.setCompilerOptions(e), this.setDiagnosticsOptions(m), this.setWorkerOptions(h), this.setInlayHintsOptions(g), this.setModeConfiguration(_), this._onDidExtraLibsChangeTimeout = -1;
|
|
13
|
+
}
|
|
14
|
+
get onDidChange() {
|
|
15
|
+
return this._onDidChange.event;
|
|
16
|
+
}
|
|
17
|
+
get onDidExtraLibsChange() {
|
|
18
|
+
return this._onDidExtraLibsChange.event;
|
|
19
|
+
}
|
|
20
|
+
get modeConfiguration() {
|
|
21
|
+
return this._modeConfiguration;
|
|
22
|
+
}
|
|
23
|
+
get workerOptions() {
|
|
24
|
+
return this._workerOptions;
|
|
25
|
+
}
|
|
26
|
+
get inlayHintsOptions() {
|
|
27
|
+
return this._inlayHintsOptions;
|
|
28
|
+
}
|
|
29
|
+
getExtraLibs() {
|
|
30
|
+
return this._extraLibs;
|
|
31
|
+
}
|
|
32
|
+
addExtraLib(e, m) {
|
|
33
|
+
let h;
|
|
34
|
+
if (h = m === void 0 ? `ts:extralib-${Math.random().toString(36).substring(2, 15)}` : m, this._extraLibs[h] && this._extraLibs[h].content === e) return { dispose: () => {} };
|
|
35
|
+
let g = 1;
|
|
36
|
+
return this._removedExtraLibs[h] && (g = this._removedExtraLibs[h] + 1), this._extraLibs[h] && (g = this._extraLibs[h].version + 1), this._extraLibs[h] = {
|
|
37
|
+
content: e,
|
|
38
|
+
version: g
|
|
39
|
+
}, this._fireOnDidExtraLibsChangeSoon(), { dispose: () => {
|
|
40
|
+
let e = this._extraLibs[h];
|
|
41
|
+
e && e.version === g && (delete this._extraLibs[h], this._removedExtraLibs[h] = g, this._fireOnDidExtraLibsChangeSoon());
|
|
42
|
+
} };
|
|
43
|
+
}
|
|
44
|
+
setExtraLibs(e) {
|
|
45
|
+
for (let e in this._extraLibs) this._removedExtraLibs[e] = this._extraLibs[e].version;
|
|
46
|
+
if (this._extraLibs = /* @__PURE__ */ Object.create(null), e && e.length > 0) for (let m of e) {
|
|
47
|
+
let e = m.filePath || `ts:extralib-${Math.random().toString(36).substring(2, 15)}`, h = m.content, g = 1;
|
|
48
|
+
this._removedExtraLibs[e] && (g = this._removedExtraLibs[e] + 1), this._extraLibs[e] = {
|
|
49
|
+
content: h,
|
|
50
|
+
version: g
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
this._fireOnDidExtraLibsChangeSoon();
|
|
54
|
+
}
|
|
55
|
+
_fireOnDidExtraLibsChangeSoon() {
|
|
56
|
+
this._onDidExtraLibsChangeTimeout === -1 && (this._onDidExtraLibsChangeTimeout = window.setTimeout(() => {
|
|
57
|
+
this._onDidExtraLibsChangeTimeout = -1, this._onDidExtraLibsChange.fire(void 0);
|
|
58
|
+
}, 0));
|
|
59
|
+
}
|
|
60
|
+
getCompilerOptions() {
|
|
61
|
+
return this._compilerOptions;
|
|
62
|
+
}
|
|
63
|
+
setCompilerOptions(e) {
|
|
64
|
+
this._compilerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
|
|
65
|
+
}
|
|
66
|
+
getDiagnosticsOptions() {
|
|
67
|
+
return this._diagnosticsOptions;
|
|
68
|
+
}
|
|
69
|
+
setDiagnosticsOptions(e) {
|
|
70
|
+
this._diagnosticsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
|
|
71
|
+
}
|
|
72
|
+
setWorkerOptions(e) {
|
|
73
|
+
this._workerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
|
|
74
|
+
}
|
|
75
|
+
setInlayHintsOptions(e) {
|
|
76
|
+
this._inlayHintsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
|
|
77
|
+
}
|
|
78
|
+
setMaximumWorkerIdleTime(e) {}
|
|
79
|
+
setEagerModelSync(e) {
|
|
80
|
+
this._eagerModelSync = e;
|
|
81
|
+
}
|
|
82
|
+
getEagerModelSync() {
|
|
83
|
+
return this._eagerModelSync;
|
|
84
|
+
}
|
|
85
|
+
setModeConfiguration(e) {
|
|
86
|
+
this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
|
|
87
|
+
}
|
|
88
|
+
}, typescriptVersion2 = typescriptVersion, modeConfigurationDefault = {
|
|
89
|
+
completionItems: !0,
|
|
90
|
+
hovers: !0,
|
|
91
|
+
documentSymbols: !0,
|
|
92
|
+
definitions: !0,
|
|
93
|
+
references: !0,
|
|
94
|
+
documentHighlights: !0,
|
|
95
|
+
rename: !0,
|
|
96
|
+
diagnostics: !0,
|
|
97
|
+
documentRangeFormattingEdits: !0,
|
|
98
|
+
signatureHelp: !0,
|
|
99
|
+
onTypeFormattingEdits: !0,
|
|
100
|
+
codeActions: !0,
|
|
101
|
+
inlayHints: !0
|
|
102
|
+
}, typescriptDefaults = new LanguageServiceDefaultsImpl({
|
|
103
|
+
allowNonTsExtensions: !0,
|
|
104
|
+
target: 99
|
|
105
|
+
}, {
|
|
106
|
+
noSemanticValidation: !1,
|
|
107
|
+
noSyntaxValidation: !1,
|
|
108
|
+
onlyVisible: !1
|
|
109
|
+
}, {}, {}, modeConfigurationDefault), javascriptDefaults = new LanguageServiceDefaultsImpl({
|
|
110
|
+
allowNonTsExtensions: !0,
|
|
111
|
+
allowJs: !0,
|
|
112
|
+
target: 99
|
|
113
|
+
}, {
|
|
114
|
+
noSemanticValidation: !0,
|
|
115
|
+
noSyntaxValidation: !1,
|
|
116
|
+
onlyVisible: !1
|
|
117
|
+
}, {}, {}, modeConfigurationDefault), getTypeScriptWorker = () => getMode().then((e) => e.getTypeScriptWorker()), getJavaScriptWorker = () => getMode().then((e) => e.getJavaScriptWorker());
|
|
118
|
+
monaco_editor_core_exports.languages.typescript = {
|
|
119
|
+
ModuleKind,
|
|
120
|
+
JsxEmit,
|
|
121
|
+
NewLineKind,
|
|
122
|
+
ScriptTarget,
|
|
123
|
+
ModuleResolutionKind,
|
|
124
|
+
typescriptVersion: typescriptVersion2,
|
|
125
|
+
typescriptDefaults,
|
|
126
|
+
javascriptDefaults,
|
|
127
|
+
getTypeScriptWorker,
|
|
128
|
+
getJavaScriptWorker
|
|
129
|
+
};
|
|
130
|
+
function getMode() {
|
|
131
|
+
return import("./tsMode-BrPRpJvb.js");
|
|
132
|
+
}
|
|
133
|
+
monaco_editor_core_exports.languages.onLanguage("typescript", () => getMode().then((e) => e.setupTypeScript(typescriptDefaults))), monaco_editor_core_exports.languages.onLanguage("javascript", () => getMode().then((e) => e.setupJavaScript(javascriptDefaults)));
|
|
134
|
+
export { typescriptDefaults as t };
|