@ohos-ports/rsbuild-core 1.7.2-beta.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.
Files changed (279) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +27 -0
  3. package/bin/rsbuild.js +20 -0
  4. package/compiled/@jridgewell/remapping/index.d.ts +1 -0
  5. package/compiled/@jridgewell/remapping/index.js +1222 -0
  6. package/compiled/@jridgewell/remapping/license +19 -0
  7. package/compiled/@jridgewell/remapping/package.json +1 -0
  8. package/compiled/@jridgewell/trace-mapping/index.d.ts +194 -0
  9. package/compiled/@jridgewell/trace-mapping/index.js +1408 -0
  10. package/compiled/@jridgewell/trace-mapping/license +19 -0
  11. package/compiled/@jridgewell/trace-mapping/package.json +1 -0
  12. package/compiled/chokidar/index.d.ts +384 -0
  13. package/compiled/chokidar/index.js +1793 -0
  14. package/compiled/chokidar/license +21 -0
  15. package/compiled/chokidar/package.json +1 -0
  16. package/compiled/connect/index.d.ts +90 -0
  17. package/compiled/connect/index.js +1240 -0
  18. package/compiled/connect/license +25 -0
  19. package/compiled/connect/package.json +1 -0
  20. package/compiled/cors/index.d.ts +56 -0
  21. package/compiled/cors/index.js +371 -0
  22. package/compiled/cors/license +22 -0
  23. package/compiled/cors/package.json +1 -0
  24. package/compiled/css-loader/api.js +85 -0
  25. package/compiled/css-loader/getUrl.js +26 -0
  26. package/compiled/css-loader/index.d.ts +1 -0
  27. package/compiled/css-loader/index.js +2 -0
  28. package/compiled/css-loader/license +20 -0
  29. package/compiled/css-loader/noSourceMaps.js +5 -0
  30. package/compiled/css-loader/package.json +1 -0
  31. package/compiled/css-loader/sourceMaps.js +16 -0
  32. package/compiled/html-rspack-plugin/default_index.ejs +9 -0
  33. package/compiled/html-rspack-plugin/index.d.ts +290 -0
  34. package/compiled/html-rspack-plugin/index.js +1602 -0
  35. package/compiled/html-rspack-plugin/license +20 -0
  36. package/compiled/html-rspack-plugin/loader.js +166 -0
  37. package/compiled/html-rspack-plugin/package.json +1 -0
  38. package/compiled/http-proxy-middleware/index.d.ts +319 -0
  39. package/compiled/http-proxy-middleware/index.js +5284 -0
  40. package/compiled/http-proxy-middleware/license +22 -0
  41. package/compiled/http-proxy-middleware/package.json +1 -0
  42. package/compiled/launch-editor-middleware/index.d.ts +1 -0
  43. package/compiled/launch-editor-middleware/index.js +719 -0
  44. package/compiled/launch-editor-middleware/license +21 -0
  45. package/compiled/launch-editor-middleware/package.json +1 -0
  46. package/compiled/memfs/index.d.ts +1462 -0
  47. package/compiled/memfs/index.js +1 -0
  48. package/compiled/memfs/license +201 -0
  49. package/compiled/memfs/package.json +1 -0
  50. package/compiled/mrmime/index.d.ts +4 -0
  51. package/compiled/mrmime/index.js +456 -0
  52. package/compiled/mrmime/package.json +1 -0
  53. package/compiled/picocolors/index.d.ts +55 -0
  54. package/compiled/picocolors/index.js +108 -0
  55. package/compiled/picocolors/license +15 -0
  56. package/compiled/picocolors/package.json +1 -0
  57. package/compiled/postcss/index.js +1 -0
  58. package/compiled/postcss/lib/at-rule.d.ts +140 -0
  59. package/compiled/postcss/lib/comment.d.ts +68 -0
  60. package/compiled/postcss/lib/container.d.ts +483 -0
  61. package/compiled/postcss/lib/css-syntax-error.d.ts +248 -0
  62. package/compiled/postcss/lib/declaration.d.ts +151 -0
  63. package/compiled/postcss/lib/document.d.ts +69 -0
  64. package/compiled/postcss/lib/fromJSON.d.ts +9 -0
  65. package/compiled/postcss/lib/input.d.ts +227 -0
  66. package/compiled/postcss/lib/lazy-result.d.ts +190 -0
  67. package/compiled/postcss/lib/list.d.ts +60 -0
  68. package/compiled/postcss/lib/no-work-result.d.ts +46 -0
  69. package/compiled/postcss/lib/node.d.ts +556 -0
  70. package/compiled/postcss/lib/parse.d.ts +9 -0
  71. package/compiled/postcss/lib/postcss.d.ts +458 -0
  72. package/compiled/postcss/lib/previous-map.d.ts +81 -0
  73. package/compiled/postcss/lib/processor.d.ts +115 -0
  74. package/compiled/postcss/lib/result.d.ts +205 -0
  75. package/compiled/postcss/lib/root.d.ts +87 -0
  76. package/compiled/postcss/lib/rule.d.ts +126 -0
  77. package/compiled/postcss/lib/source-map-js.d.ts +4 -0
  78. package/compiled/postcss/lib/stringifier.d.ts +46 -0
  79. package/compiled/postcss/lib/stringify.d.ts +9 -0
  80. package/compiled/postcss/lib/warning.d.ts +147 -0
  81. package/compiled/postcss/license +20 -0
  82. package/compiled/postcss/package.json +1 -0
  83. package/compiled/postcss-loader/index.d.ts +1 -0
  84. package/compiled/postcss-loader/index.js +720 -0
  85. package/compiled/postcss-loader/license +20 -0
  86. package/compiled/postcss-loader/package.json +1 -0
  87. package/compiled/rslog/index.d.ts +67 -0
  88. package/compiled/rslog/license +21 -0
  89. package/compiled/rslog/package.json +1 -0
  90. package/compiled/rspack-chain/license +22 -0
  91. package/compiled/rspack-chain/package.json +1 -0
  92. package/compiled/rspack-chain/types/index.d.ts +545 -0
  93. package/compiled/rspack-manifest-plugin/index.d.ts +48 -0
  94. package/compiled/rspack-manifest-plugin/index.js +409 -0
  95. package/compiled/rspack-manifest-plugin/license +21 -0
  96. package/compiled/rspack-manifest-plugin/package.json +1 -0
  97. package/compiled/sirv/index.d.ts +1 -0
  98. package/compiled/sirv/index.js +274 -0
  99. package/compiled/sirv/package.json +1 -0
  100. package/compiled/style-loader/index.d.ts +1 -0
  101. package/compiled/style-loader/index.js +427 -0
  102. package/compiled/style-loader/license +20 -0
  103. package/compiled/style-loader/package.json +1 -0
  104. package/compiled/style-loader/runtime/injectStylesIntoLinkTag.js +29 -0
  105. package/compiled/style-loader/runtime/injectStylesIntoStyleTag.js +84 -0
  106. package/compiled/style-loader/runtime/insertBySelector.js +34 -0
  107. package/compiled/style-loader/runtime/insertStyleElement.js +10 -0
  108. package/compiled/style-loader/runtime/isEqualLocals.js +28 -0
  109. package/compiled/style-loader/runtime/isOldIE.js +17 -0
  110. package/compiled/style-loader/runtime/setAttributesWithAttributes.js +13 -0
  111. package/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js +9 -0
  112. package/compiled/style-loader/runtime/setAttributesWithoutAttributes.js +10 -0
  113. package/compiled/style-loader/runtime/singletonStyleDomAPI.js +86 -0
  114. package/compiled/style-loader/runtime/styleDomAPI.js +61 -0
  115. package/compiled/style-loader/runtime/styleTagTransform.js +14 -0
  116. package/compiled/tinyglobby/index.d.ts +46 -0
  117. package/compiled/tinyglobby/index.js +2664 -0
  118. package/compiled/tinyglobby/license +21 -0
  119. package/compiled/tinyglobby/package.json +1 -0
  120. package/compiled/webpack-bundle-analyzer/index.d.ts +160 -0
  121. package/compiled/webpack-bundle-analyzer/index.js +23 -0
  122. package/compiled/webpack-bundle-analyzer/license +20 -0
  123. package/compiled/webpack-bundle-analyzer/package.json +1 -0
  124. package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
  125. package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
  126. package/compiled/webpack-merge/index.d.ts +31 -0
  127. package/compiled/webpack-merge/index.js +1200 -0
  128. package/compiled/webpack-merge/license +20 -0
  129. package/compiled/webpack-merge/package.json +1 -0
  130. package/compiled/ws/index.d.ts +437 -0
  131. package/compiled/ws/index.js +3161 -0
  132. package/compiled/ws/license +20 -0
  133. package/compiled/ws/package.json +1 -0
  134. package/dist/0~open.js +427 -0
  135. package/dist/0~range-parser.js +49 -0
  136. package/dist/0~range-parser.js.LICENSE.txt +6 -0
  137. package/dist/131.js +9305 -0
  138. package/dist/131.js.LICENSE.txt +26 -0
  139. package/dist/136.mjs +42 -0
  140. package/dist/2~open.cjs +436 -0
  141. package/dist/2~range-parser.cjs +52 -0
  142. package/dist/2~range-parser.cjs.LICENSE.txt +6 -0
  143. package/dist/client/59.js +22 -0
  144. package/dist/client/hmr.js +206 -0
  145. package/dist/client/overlay.js +203 -0
  146. package/dist/ignoreCssLoader.mjs +3 -0
  147. package/dist/index.cjs +9456 -0
  148. package/dist/index.cjs.LICENSE.txt +26 -0
  149. package/dist/index.js +1 -0
  150. package/dist/rslib-runtime.js +44 -0
  151. package/dist/transformLoader.mjs +1 -0
  152. package/dist/transformRawLoader.mjs +4 -0
  153. package/dist-types/cli/commands.d.ts +28 -0
  154. package/dist-types/cli/index.d.ts +1 -0
  155. package/dist-types/cli/init.d.ts +7 -0
  156. package/dist-types/client/hmr.d.ts +3 -0
  157. package/dist-types/client/log.d.ts +13 -0
  158. package/dist-types/client/overlay.d.ts +1 -0
  159. package/dist-types/configChain.d.ts +154 -0
  160. package/dist-types/constants.d.ts +52 -0
  161. package/dist-types/createContext.d.ts +11 -0
  162. package/dist-types/createRsbuild.d.ts +5 -0
  163. package/dist-types/defaultConfig.d.ts +25 -0
  164. package/dist-types/helpers/compiler.d.ts +5 -0
  165. package/dist-types/helpers/exitHook.d.ts +3 -0
  166. package/dist-types/helpers/format.d.ts +2 -0
  167. package/dist-types/helpers/fs.d.ts +17 -0
  168. package/dist-types/helpers/index.d.ts +29 -0
  169. package/dist-types/helpers/path.d.ts +26 -0
  170. package/dist-types/helpers/stats.d.ts +18 -0
  171. package/dist-types/helpers/url.d.ts +11 -0
  172. package/dist-types/helpers/vendors.d.ts +29 -0
  173. package/dist-types/helpers/version.d.ts +7 -0
  174. package/dist-types/hooks.d.ts +44 -0
  175. package/dist-types/index.d.ts +22 -0
  176. package/dist-types/initPlugins.d.ts +6 -0
  177. package/dist-types/inspectConfig.d.ts +35 -0
  178. package/dist-types/loadConfig.d.ts +60 -0
  179. package/dist-types/loadEnv.d.ts +63 -0
  180. package/dist-types/loader/ignoreCssLoader.d.ts +3 -0
  181. package/dist-types/loader/transformLoader.d.ts +8 -0
  182. package/dist-types/loader/transformRawLoader.d.ts +3 -0
  183. package/dist-types/logger.d.ts +19 -0
  184. package/dist-types/mergeConfig.d.ts +2 -0
  185. package/dist-types/package.json +1 -0
  186. package/dist-types/pluginHelper.d.ts +12 -0
  187. package/dist-types/pluginManager.d.ts +21 -0
  188. package/dist-types/plugins/appIcon.d.ts +2 -0
  189. package/dist-types/plugins/asset.d.ts +3 -0
  190. package/dist-types/plugins/basic.d.ts +5 -0
  191. package/dist-types/plugins/bundleAnalyzer.d.ts +2 -0
  192. package/dist-types/plugins/cache.d.ts +2 -0
  193. package/dist-types/plugins/cleanOutput.d.ts +2 -0
  194. package/dist-types/plugins/css.d.ts +4 -0
  195. package/dist-types/plugins/define.d.ts +2 -0
  196. package/dist-types/plugins/entry.d.ts +2 -0
  197. package/dist-types/plugins/esm.d.ts +2 -0
  198. package/dist-types/plugins/externals.d.ts +2 -0
  199. package/dist-types/plugins/fileSize.d.ts +6 -0
  200. package/dist-types/plugins/html.d.ts +9 -0
  201. package/dist-types/plugins/inlineChunk.d.ts +6 -0
  202. package/dist-types/plugins/lazyCompilation.d.ts +2 -0
  203. package/dist-types/plugins/manifest.d.ts +2 -0
  204. package/dist-types/plugins/minimize.d.ts +10 -0
  205. package/dist-types/plugins/moduleFederation.d.ts +2 -0
  206. package/dist-types/plugins/moment.d.ts +2 -0
  207. package/dist-types/plugins/nodeAddons.d.ts +2 -0
  208. package/dist-types/plugins/nonce.d.ts +2 -0
  209. package/dist-types/plugins/output.d.ts +2 -0
  210. package/dist-types/plugins/performance.d.ts +5 -0
  211. package/dist-types/plugins/progress.d.ts +2 -0
  212. package/dist-types/plugins/resolve.d.ts +2 -0
  213. package/dist-types/plugins/resourceHints.d.ts +2 -0
  214. package/dist-types/plugins/rsdoctor.d.ts +2 -0
  215. package/dist-types/plugins/rspackProfile.d.ts +2 -0
  216. package/dist-types/plugins/server.d.ts +2 -0
  217. package/dist-types/plugins/sourceMap.d.ts +2 -0
  218. package/dist-types/plugins/splitChunks.d.ts +4 -0
  219. package/dist-types/plugins/sri.d.ts +2 -0
  220. package/dist-types/plugins/swc.d.ts +5 -0
  221. package/dist-types/plugins/target.d.ts +2 -0
  222. package/dist-types/plugins/wasm.d.ts +2 -0
  223. package/dist-types/provider/build.d.ts +4 -0
  224. package/dist-types/provider/createCompiler.d.ts +6 -0
  225. package/dist-types/provider/helpers.d.ts +12 -0
  226. package/dist-types/provider/initConfigs.d.ts +19 -0
  227. package/dist-types/provider/provider.d.ts +2 -0
  228. package/dist-types/provider/rspackConfig.d.ts +8 -0
  229. package/dist-types/restart.d.ts +18 -0
  230. package/dist-types/rspack-plugins/RsbuildHtmlPlugin.d.ts +38 -0
  231. package/dist-types/rspack-plugins/resource-hints/HtmlResourceHintsPlugin.d.ts +32 -0
  232. package/dist-types/rspack-plugins/resource-hints/doesChunkBelongToHtml.d.ts +28 -0
  233. package/dist-types/rspack-plugins/resource-hints/extractChunks.d.ts +23 -0
  234. package/dist-types/rspack-plugins/resource-hints/getResourceType.d.ts +22 -0
  235. package/dist-types/rspack.d.ts +2 -0
  236. package/dist-types/server/ansiHTML.d.ts +4 -0
  237. package/dist-types/server/assets-middleware/getFileFromUrl.d.ts +12 -0
  238. package/dist-types/server/assets-middleware/index.d.ts +37 -0
  239. package/dist-types/server/assets-middleware/middleware.d.ts +2 -0
  240. package/dist-types/server/assets-middleware/parseTokenList.d.ts +1 -0
  241. package/dist-types/server/assets-middleware/setupOutputFileSystem.d.ts +3 -0
  242. package/dist-types/server/assets-middleware/setupWriteToDisk.d.ts +15 -0
  243. package/dist-types/server/browserLogs.d.ts +9 -0
  244. package/dist-types/server/buildManager.d.ts +33 -0
  245. package/dist-types/server/cliShortcuts.d.ts +10 -0
  246. package/dist-types/server/devMiddlewares.d.ts +21 -0
  247. package/dist-types/server/devServer.d.ts +79 -0
  248. package/dist-types/server/environment.d.ts +8 -0
  249. package/dist-types/server/gracefulShutdown.d.ts +10 -0
  250. package/dist-types/server/gzipMiddleware.d.ts +2 -0
  251. package/dist-types/server/helper.d.ts +91 -0
  252. package/dist-types/server/historyApiFallback.d.ts +2 -0
  253. package/dist-types/server/hmrFallback.d.ts +1 -0
  254. package/dist-types/server/httpServer.d.ts +7 -0
  255. package/dist-types/server/middlewares.d.ts +33 -0
  256. package/dist-types/server/open.d.ts +10 -0
  257. package/dist-types/server/overlay.d.ts +3 -0
  258. package/dist-types/server/prodServer.d.ts +24 -0
  259. package/dist-types/server/proxy.d.ts +6 -0
  260. package/dist-types/server/runner/asModule.d.ts +2 -0
  261. package/dist-types/server/runner/basic.d.ts +29 -0
  262. package/dist-types/server/runner/cjs.d.ts +10 -0
  263. package/dist-types/server/runner/esm.d.ts +6 -0
  264. package/dist-types/server/runner/index.d.ts +4 -0
  265. package/dist-types/server/runner/type.d.ts +42 -0
  266. package/dist-types/server/socketServer.d.ts +81 -0
  267. package/dist-types/server/watchFiles.d.ts +14 -0
  268. package/dist-types/types/config.d.ts +1882 -0
  269. package/dist-types/types/context.d.ts +110 -0
  270. package/dist-types/types/hooks.d.ts +275 -0
  271. package/dist-types/types/index.d.ts +8 -0
  272. package/dist-types/types/plugin.d.ts +585 -0
  273. package/dist-types/types/rsbuild.d.ts +286 -0
  274. package/dist-types/types/rspack.d.ts +16 -0
  275. package/dist-types/types/thirdParty.d.ts +186 -0
  276. package/dist-types/types/utils.d.ts +19 -0
  277. package/package.json +114 -0
  278. package/static/openChrome.applescript +95 -0
  279. package/types.d.ts +349 -0
@@ -0,0 +1,719 @@
1
+ (() => {
2
+ var __webpack_modules__ = {
3
+ 172: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
+ const path = __nccwpck_require__(928);
5
+ const launch = __nccwpck_require__(902);
6
+ module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
7
+ if (typeof specifiedEditor === "function") {
8
+ onErrorCallback = specifiedEditor;
9
+ specifiedEditor = undefined;
10
+ }
11
+ if (typeof srcRoot === "function") {
12
+ onErrorCallback = srcRoot;
13
+ srcRoot = undefined;
14
+ }
15
+ srcRoot = srcRoot || process.cwd();
16
+ return function launchEditorMiddleware(req, res) {
17
+ let url;
18
+ try {
19
+ const fullUrl = req.url.startsWith("http")
20
+ ? req.url
21
+ : `http://localhost${req.url}`;
22
+ url = new URL(fullUrl);
23
+ } catch (_err) {
24
+ res.statusCode = 500;
25
+ res.end(`launch-editor-middleware: invalid URL.`);
26
+ return;
27
+ }
28
+ const file = url.searchParams.get("file");
29
+ if (!file) {
30
+ res.statusCode = 500;
31
+ res.end(
32
+ `launch-editor-middleware: required query param "file" is missing.`,
33
+ );
34
+ } else {
35
+ const resolved = file.startsWith("file://")
36
+ ? file
37
+ : path.resolve(srcRoot, file);
38
+ launch(resolved, specifiedEditor, onErrorCallback);
39
+ res.end();
40
+ }
41
+ };
42
+ };
43
+ },
44
+ 355: (module) => {
45
+ module.exports = {
46
+ atom: "atom",
47
+ Brackets: "brackets",
48
+ "code-insiders": "code-insiders",
49
+ code: "code",
50
+ vscodium: "vscodium",
51
+ codium: "codium",
52
+ cursor: "cursor",
53
+ trae: "trae",
54
+ emacs: "emacs",
55
+ gvim: "gvim",
56
+ idea: "idea",
57
+ "idea.sh": "idea",
58
+ phpstorm: "phpstorm",
59
+ "phpstorm.sh": "phpstorm",
60
+ pycharm: "pycharm",
61
+ "pycharm.sh": "pycharm",
62
+ rubymine: "rubymine",
63
+ "rubymine.sh": "rubymine",
64
+ sublime_text: "subl",
65
+ vim: "vim",
66
+ webstorm: "webstorm",
67
+ "webstorm.sh": "webstorm",
68
+ goland: "goland",
69
+ "goland.sh": "goland",
70
+ rider: "rider",
71
+ "rider.sh": "rider",
72
+ zed: "zed",
73
+ };
74
+ },
75
+ 515: (module) => {
76
+ module.exports = {
77
+ "/Applications/Atom.app/Contents/MacOS/Atom": "atom",
78
+ "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":
79
+ "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta",
80
+ "/Applications/Brackets.app/Contents/MacOS/Brackets": "brackets",
81
+ "/Applications/Sublime Text.app/Contents/MacOS/Sublime Text":
82
+ "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl",
83
+ "/Applications/Sublime Text.app/Contents/MacOS/sublime_text":
84
+ "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl",
85
+ "/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2":
86
+ "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl",
87
+ "/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text":
88
+ "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl",
89
+ "/Applications/Visual Studio Code.app/Contents/MacOS/Electron": "code",
90
+ "/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron":
91
+ "code-insiders",
92
+ "/Applications/VSCodium.app/Contents/MacOS/Electron": "codium",
93
+ "/Applications/Cursor.app/Contents/MacOS/Cursor": "cursor",
94
+ "/Applications/Trae.app/Contents/MacOS/Electron": "trae",
95
+ "/Applications/AppCode.app/Contents/MacOS/appcode":
96
+ "/Applications/AppCode.app/Contents/MacOS/appcode",
97
+ "/Applications/CLion.app/Contents/MacOS/clion":
98
+ "/Applications/CLion.app/Contents/MacOS/clion",
99
+ "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea":
100
+ "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea",
101
+ "/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea":
102
+ "/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea",
103
+ "/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea":
104
+ "/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea",
105
+ "/Applications/PhpStorm.app/Contents/MacOS/phpstorm":
106
+ "/Applications/PhpStorm.app/Contents/MacOS/phpstorm",
107
+ "/Applications/PyCharm.app/Contents/MacOS/pycharm":
108
+ "/Applications/PyCharm.app/Contents/MacOS/pycharm",
109
+ "/Applications/PyCharm CE.app/Contents/MacOS/pycharm":
110
+ "/Applications/PyCharm CE.app/Contents/MacOS/pycharm",
111
+ "/Applications/RubyMine.app/Contents/MacOS/rubymine":
112
+ "/Applications/RubyMine.app/Contents/MacOS/rubymine",
113
+ "/Applications/WebStorm.app/Contents/MacOS/webstorm":
114
+ "/Applications/WebStorm.app/Contents/MacOS/webstorm",
115
+ "/Applications/MacVim.app/Contents/MacOS/MacVim": "mvim",
116
+ "/Applications/GoLand.app/Contents/MacOS/goland":
117
+ "/Applications/GoLand.app/Contents/MacOS/goland",
118
+ "/Applications/Rider.app/Contents/MacOS/rider":
119
+ "/Applications/Rider.app/Contents/MacOS/rider",
120
+ "/Applications/Zed.app/Contents/MacOS/zed": "zed",
121
+ };
122
+ },
123
+ 224: (module) => {
124
+ module.exports = [
125
+ "Brackets.exe",
126
+ "Code.exe",
127
+ "Code - Insiders.exe",
128
+ "VSCodium.exe",
129
+ "Cursor.exe",
130
+ "atom.exe",
131
+ "sublime_text.exe",
132
+ "notepad++.exe",
133
+ "clion.exe",
134
+ "clion64.exe",
135
+ "idea.exe",
136
+ "idea64.exe",
137
+ "phpstorm.exe",
138
+ "phpstorm64.exe",
139
+ "pycharm.exe",
140
+ "pycharm64.exe",
141
+ "rubymine.exe",
142
+ "rubymine64.exe",
143
+ "webstorm.exe",
144
+ "webstorm64.exe",
145
+ "goland.exe",
146
+ "goland64.exe",
147
+ "rider.exe",
148
+ "rider64.exe",
149
+ "trae.exe",
150
+ ];
151
+ },
152
+ 746: (module, __unused_webpack_exports, __nccwpck_require__) => {
153
+ const path = __nccwpck_require__(928);
154
+ module.exports = function getArgumentsForPosition(
155
+ editor,
156
+ fileName,
157
+ lineNumber,
158
+ columnNumber = 1,
159
+ ) {
160
+ const editorBasename = path
161
+ .basename(editor)
162
+ .replace(/\.(exe|cmd|bat)$/i, "");
163
+ switch (editorBasename) {
164
+ case "atom":
165
+ case "Atom":
166
+ case "Atom Beta":
167
+ case "subl":
168
+ case "sublime":
169
+ case "sublime_text":
170
+ case "wstorm":
171
+ case "charm":
172
+ case "zed":
173
+ return [`${fileName}:${lineNumber}:${columnNumber}`];
174
+ case "notepad++":
175
+ return ["-n" + lineNumber, "-c" + columnNumber, fileName];
176
+ case "vim":
177
+ case "mvim":
178
+ return [`+call cursor(${lineNumber}, ${columnNumber})`, fileName];
179
+ case "joe":
180
+ case "gvim":
181
+ return ["+" + `${lineNumber}`, fileName];
182
+ case "emacs":
183
+ case "emacsclient":
184
+ return [`+${lineNumber}:${columnNumber}`, fileName];
185
+ case "rmate":
186
+ case "mate":
187
+ case "mine":
188
+ return ["--line", lineNumber, fileName];
189
+ case "code":
190
+ case "Code":
191
+ case "code-insiders":
192
+ case "Code - Insiders":
193
+ case "codium":
194
+ case "trae":
195
+ case "cursor":
196
+ case "vscodium":
197
+ case "VSCodium":
198
+ return ["-r", "-g", `${fileName}:${lineNumber}:${columnNumber}`];
199
+ case "appcode":
200
+ case "clion":
201
+ case "clion64":
202
+ case "idea":
203
+ case "idea64":
204
+ case "phpstorm":
205
+ case "phpstorm64":
206
+ case "pycharm":
207
+ case "pycharm64":
208
+ case "rubymine":
209
+ case "rubymine64":
210
+ case "webstorm":
211
+ case "webstorm64":
212
+ case "goland":
213
+ case "goland64":
214
+ case "rider":
215
+ case "rider64":
216
+ return ["--line", lineNumber, "--column", columnNumber, fileName];
217
+ }
218
+ if (process.env.LAUNCH_EDITOR) {
219
+ return [fileName, lineNumber, columnNumber];
220
+ }
221
+ return [fileName];
222
+ };
223
+ },
224
+ 795: (module, __unused_webpack_exports, __nccwpck_require__) => {
225
+ const path = __nccwpck_require__(928);
226
+ const shellQuote = __nccwpck_require__(383);
227
+ const childProcess = __nccwpck_require__(317);
228
+ const COMMON_EDITORS_MACOS = __nccwpck_require__(515);
229
+ const COMMON_EDITORS_LINUX = __nccwpck_require__(355);
230
+ const COMMON_EDITORS_WIN = __nccwpck_require__(224);
231
+ module.exports = function guessEditor(specifiedEditor) {
232
+ if (specifiedEditor) {
233
+ return shellQuote.parse(specifiedEditor);
234
+ }
235
+ if (process.env.LAUNCH_EDITOR) {
236
+ return [process.env.LAUNCH_EDITOR];
237
+ }
238
+ if (process.versions.webcontainer) {
239
+ return [process.env.EDITOR || "code"];
240
+ }
241
+ try {
242
+ if (process.platform === "darwin") {
243
+ const output = childProcess
244
+ .execSync("ps x -o comm=", { stdio: ["pipe", "pipe", "ignore"] })
245
+ .toString();
246
+ const processNames = Object.keys(COMMON_EDITORS_MACOS);
247
+ const processList = output.split("\n");
248
+ for (let i = 0; i < processNames.length; i++) {
249
+ const processName = processNames[i];
250
+ if (processList.includes(processName)) {
251
+ return [COMMON_EDITORS_MACOS[processName]];
252
+ }
253
+ const processNameWithoutApplications = processName.replace(
254
+ "/Applications",
255
+ "",
256
+ );
257
+ if (output.indexOf(processNameWithoutApplications) !== -1) {
258
+ if (processName !== COMMON_EDITORS_MACOS[processName]) {
259
+ return [COMMON_EDITORS_MACOS[processName]];
260
+ }
261
+ const runningProcess = processList.find((procName) =>
262
+ procName.endsWith(processNameWithoutApplications),
263
+ );
264
+ if (runningProcess !== undefined) {
265
+ return [runningProcess];
266
+ }
267
+ }
268
+ }
269
+ } else if (process.platform === "win32") {
270
+ const output = childProcess
271
+ .execSync(
272
+ 'powershell -NoProfile -Command "' +
273
+ "[Console]::OutputEncoding=[Text.Encoding]::UTF8;" +
274
+ 'Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }' +
275
+ '"',
276
+ { stdio: ["pipe", "pipe", "ignore"] },
277
+ )
278
+ .toString();
279
+ const runningProcesses = output.split("\r\n");
280
+ for (let i = 0; i < runningProcesses.length; i++) {
281
+ const fullProcessPath = runningProcesses[i].trim();
282
+ const shortProcessName = path.basename(fullProcessPath);
283
+ if (COMMON_EDITORS_WIN.indexOf(shortProcessName) !== -1) {
284
+ return [fullProcessPath];
285
+ }
286
+ }
287
+ } else if (process.platform === "linux") {
288
+ const output = childProcess
289
+ .execSync("ps x --no-heading -o comm --sort=comm", {
290
+ stdio: ["pipe", "pipe", "ignore"],
291
+ })
292
+ .toString();
293
+ const processNames = Object.keys(COMMON_EDITORS_LINUX);
294
+ for (let i = 0; i < processNames.length; i++) {
295
+ const processName = processNames[i];
296
+ if (output.indexOf(processName) !== -1) {
297
+ return [COMMON_EDITORS_LINUX[processName]];
298
+ }
299
+ }
300
+ }
301
+ } catch (ignoreError) {}
302
+ if (process.env.VISUAL) {
303
+ return [process.env.VISUAL];
304
+ } else if (process.env.EDITOR) {
305
+ return [process.env.EDITOR];
306
+ }
307
+ return [null];
308
+ };
309
+ },
310
+ 902: (module, __unused_webpack_exports, __nccwpck_require__) => {
311
+ const fs = __nccwpck_require__(896);
312
+ const os = __nccwpck_require__(857);
313
+ const path = __nccwpck_require__(928);
314
+ const colors = __nccwpck_require__(31);
315
+ const childProcess = __nccwpck_require__(317);
316
+ const guessEditor = __nccwpck_require__(795);
317
+ const getArgumentsForPosition = __nccwpck_require__(746);
318
+ function wrapErrorCallback(cb) {
319
+ return (fileName, errorMessage) => {
320
+ console.log();
321
+ console.log(
322
+ colors.red(
323
+ "Could not open " + path.basename(fileName) + " in the editor.",
324
+ ),
325
+ );
326
+ if (errorMessage) {
327
+ if (errorMessage[errorMessage.length - 1] !== ".") {
328
+ errorMessage += ".";
329
+ }
330
+ console.log(
331
+ colors.red(
332
+ "The editor process exited with an error: " + errorMessage,
333
+ ),
334
+ );
335
+ }
336
+ console.log();
337
+ if (cb) cb(fileName, errorMessage);
338
+ };
339
+ }
340
+ function isTerminalEditor(editor) {
341
+ switch (editor) {
342
+ case "vim":
343
+ case "emacs":
344
+ case "nano":
345
+ return true;
346
+ }
347
+ return false;
348
+ }
349
+ const positionRE = /:(\d+)(:(\d+))?$/;
350
+ function parseFile(file) {
351
+ if (file.startsWith("file://")) {
352
+ file = __nccwpck_require__(16).fileURLToPath(file);
353
+ }
354
+ const fileName = file.replace(positionRE, "");
355
+ const match = file.match(positionRE);
356
+ const lineNumber = match && match[1];
357
+ const columnNumber = match && match[3];
358
+ return { fileName, lineNumber, columnNumber };
359
+ }
360
+ let _childProcess = null;
361
+ function launchEditor(file, specifiedEditor, onErrorCallback) {
362
+ const parsed = parseFile(file);
363
+ let { fileName } = parsed;
364
+ const { lineNumber, columnNumber } = parsed;
365
+ if (!fs.existsSync(fileName)) {
366
+ return;
367
+ }
368
+ if (typeof specifiedEditor === "function") {
369
+ onErrorCallback = specifiedEditor;
370
+ specifiedEditor = undefined;
371
+ }
372
+ onErrorCallback = wrapErrorCallback(onErrorCallback);
373
+ const [editor, ...args] = guessEditor(specifiedEditor);
374
+ if (!editor) {
375
+ onErrorCallback(fileName, null);
376
+ return;
377
+ }
378
+ if (
379
+ process.platform === "linux" &&
380
+ fileName.startsWith("/mnt/") &&
381
+ /Microsoft/i.test(os.release())
382
+ ) {
383
+ fileName = path.relative("", fileName);
384
+ }
385
+ if (lineNumber) {
386
+ const extraArgs = getArgumentsForPosition(
387
+ editor,
388
+ fileName,
389
+ lineNumber,
390
+ columnNumber,
391
+ );
392
+ args.push.apply(args, extraArgs);
393
+ } else {
394
+ args.push(fileName);
395
+ }
396
+ if (_childProcess && isTerminalEditor(editor)) {
397
+ _childProcess.kill("SIGKILL");
398
+ }
399
+ if (process.platform === "win32") {
400
+ function escapeCmdArgs(cmdArgs) {
401
+ return cmdArgs.replace(/([&|<>,;=^])/g, "^$1");
402
+ }
403
+ function doubleQuoteIfNeeded(str) {
404
+ if (str.includes("^")) {
405
+ return `^"${str}^"`;
406
+ } else if (str.includes(" ")) {
407
+ return `"${str}"`;
408
+ }
409
+ return str;
410
+ }
411
+ const launchCommand = [editor, ...args.map(escapeCmdArgs)]
412
+ .map(doubleQuoteIfNeeded)
413
+ .join(" ");
414
+ _childProcess = childProcess.exec(launchCommand, {
415
+ stdio: "inherit",
416
+ shell: true,
417
+ });
418
+ } else {
419
+ _childProcess = childProcess.spawn(editor, args, {
420
+ stdio: "inherit",
421
+ });
422
+ }
423
+ _childProcess.on("exit", function (errorCode) {
424
+ _childProcess = null;
425
+ if (errorCode) {
426
+ onErrorCallback(fileName, "(code " + errorCode + ")");
427
+ }
428
+ });
429
+ _childProcess.on("error", function (error) {
430
+ let { code, message } = error;
431
+ if ("ENOENT" === code) {
432
+ message = `${message} ('${editor}' command does not exist in 'PATH')`;
433
+ }
434
+ onErrorCallback(fileName, message);
435
+ });
436
+ }
437
+ module.exports = launchEditor;
438
+ },
439
+ 383: (__unused_webpack_module, exports, __nccwpck_require__) => {
440
+ "use strict";
441
+ exports.quote = __nccwpck_require__(87);
442
+ exports.parse = __nccwpck_require__(368);
443
+ },
444
+ 368: (module) => {
445
+ "use strict";
446
+ var CONTROL =
447
+ "(?:" +
448
+ [
449
+ "\\|\\|",
450
+ "\\&\\&",
451
+ ";;",
452
+ "\\|\\&",
453
+ "\\<\\(",
454
+ "\\<\\<\\<",
455
+ ">>",
456
+ ">\\&",
457
+ "<\\&",
458
+ "[&;()|<>]",
459
+ ].join("|") +
460
+ ")";
461
+ var controlRE = new RegExp("^" + CONTROL + "$");
462
+ var META = "|&;()<> \\t";
463
+ var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
464
+ var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
465
+ var hash = /^#$/;
466
+ var SQ = "'";
467
+ var DQ = '"';
468
+ var DS = "$";
469
+ var TOKEN = "";
470
+ var mult = 4294967296;
471
+ for (var i = 0; i < 4; i++) {
472
+ TOKEN += (mult * Math.random()).toString(16);
473
+ }
474
+ var startsWithToken = new RegExp("^" + TOKEN);
475
+ function matchAll(s, r) {
476
+ var origIndex = r.lastIndex;
477
+ var matches = [];
478
+ var matchObj;
479
+ while ((matchObj = r.exec(s))) {
480
+ matches.push(matchObj);
481
+ if (r.lastIndex === matchObj.index) {
482
+ r.lastIndex += 1;
483
+ }
484
+ }
485
+ r.lastIndex = origIndex;
486
+ return matches;
487
+ }
488
+ function getVar(env, pre, key) {
489
+ var r = typeof env === "function" ? env(key) : env[key];
490
+ if (typeof r === "undefined" && key != "") {
491
+ r = "";
492
+ } else if (typeof r === "undefined") {
493
+ r = "$";
494
+ }
495
+ if (typeof r === "object") {
496
+ return pre + TOKEN + JSON.stringify(r) + TOKEN;
497
+ }
498
+ return pre + r;
499
+ }
500
+ function parseInternal(string, env, opts) {
501
+ if (!opts) {
502
+ opts = {};
503
+ }
504
+ var BS = opts.escape || "\\";
505
+ var BAREWORD = "(\\" + BS + "['\"" + META + "]|[^\\s'\"" + META + "])+";
506
+ var chunker = new RegExp(
507
+ [
508
+ "(" + CONTROL + ")",
509
+ "(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+",
510
+ ].join("|"),
511
+ "g",
512
+ );
513
+ var matches = matchAll(string, chunker);
514
+ if (matches.length === 0) {
515
+ return [];
516
+ }
517
+ if (!env) {
518
+ env = {};
519
+ }
520
+ var commented = false;
521
+ return matches
522
+ .map(function (match) {
523
+ var s = match[0];
524
+ if (!s || commented) {
525
+ return void undefined;
526
+ }
527
+ if (controlRE.test(s)) {
528
+ return { op: s };
529
+ }
530
+ var quote = false;
531
+ var esc = false;
532
+ var out = "";
533
+ var isGlob = false;
534
+ var i;
535
+ function parseEnvVar() {
536
+ i += 1;
537
+ var varend;
538
+ var varname;
539
+ var char = s.charAt(i);
540
+ if (char === "{") {
541
+ i += 1;
542
+ if (s.charAt(i) === "}") {
543
+ throw new Error("Bad substitution: " + s.slice(i - 2, i + 1));
544
+ }
545
+ varend = s.indexOf("}", i);
546
+ if (varend < 0) {
547
+ throw new Error("Bad substitution: " + s.slice(i));
548
+ }
549
+ varname = s.slice(i, varend);
550
+ i = varend;
551
+ } else if (/[*@#?$!_-]/.test(char)) {
552
+ varname = char;
553
+ i += 1;
554
+ } else {
555
+ var slicedFromI = s.slice(i);
556
+ varend = slicedFromI.match(/[^\w\d_]/);
557
+ if (!varend) {
558
+ varname = slicedFromI;
559
+ i = s.length;
560
+ } else {
561
+ varname = slicedFromI.slice(0, varend.index);
562
+ i += varend.index - 1;
563
+ }
564
+ }
565
+ return getVar(env, "", varname);
566
+ }
567
+ for (i = 0; i < s.length; i++) {
568
+ var c = s.charAt(i);
569
+ isGlob = isGlob || (!quote && (c === "*" || c === "?"));
570
+ if (esc) {
571
+ out += c;
572
+ esc = false;
573
+ } else if (quote) {
574
+ if (c === quote) {
575
+ quote = false;
576
+ } else if (quote == SQ) {
577
+ out += c;
578
+ } else {
579
+ if (c === BS) {
580
+ i += 1;
581
+ c = s.charAt(i);
582
+ if (c === DQ || c === BS || c === DS) {
583
+ out += c;
584
+ } else {
585
+ out += BS + c;
586
+ }
587
+ } else if (c === DS) {
588
+ out += parseEnvVar();
589
+ } else {
590
+ out += c;
591
+ }
592
+ }
593
+ } else if (c === DQ || c === SQ) {
594
+ quote = c;
595
+ } else if (controlRE.test(c)) {
596
+ return { op: s };
597
+ } else if (hash.test(c)) {
598
+ commented = true;
599
+ var commentObj = { comment: string.slice(match.index + i + 1) };
600
+ if (out.length) {
601
+ return [out, commentObj];
602
+ }
603
+ return [commentObj];
604
+ } else if (c === BS) {
605
+ esc = true;
606
+ } else if (c === DS) {
607
+ out += parseEnvVar();
608
+ } else {
609
+ out += c;
610
+ }
611
+ }
612
+ if (isGlob) {
613
+ return { op: "glob", pattern: out };
614
+ }
615
+ return out;
616
+ })
617
+ .reduce(function (prev, arg) {
618
+ return typeof arg === "undefined" ? prev : prev.concat(arg);
619
+ }, []);
620
+ }
621
+ module.exports = function parse(s, env, opts) {
622
+ var mapped = parseInternal(s, env, opts);
623
+ if (typeof env !== "function") {
624
+ return mapped;
625
+ }
626
+ return mapped.reduce(function (acc, s) {
627
+ if (typeof s === "object") {
628
+ return acc.concat(s);
629
+ }
630
+ var xs = s.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
631
+ if (xs.length === 1) {
632
+ return acc.concat(xs[0]);
633
+ }
634
+ return acc.concat(
635
+ xs.filter(Boolean).map(function (x) {
636
+ if (startsWithToken.test(x)) {
637
+ return JSON.parse(x.split(TOKEN)[1]);
638
+ }
639
+ return x;
640
+ }),
641
+ );
642
+ }, []);
643
+ };
644
+ },
645
+ 87: (module) => {
646
+ "use strict";
647
+ module.exports = function quote(xs) {
648
+ return xs
649
+ .map(function (s) {
650
+ if (s === "") {
651
+ return "''";
652
+ }
653
+ if (s && typeof s === "object") {
654
+ return s.op.replace(/(.)/g, "\\$1");
655
+ }
656
+ if (/["\s\\]/.test(s) && !/'/.test(s)) {
657
+ return "'" + s.replace(/(['])/g, "\\$1") + "'";
658
+ }
659
+ if (/["'\s]/.test(s)) {
660
+ return '"' + s.replace(/(["\\$`!])/g, "\\$1") + '"';
661
+ }
662
+ return String(s).replace(
663
+ /([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,
664
+ "$1\\$2",
665
+ );
666
+ })
667
+ .join(" ");
668
+ };
669
+ },
670
+ 31: (module) => {
671
+ "use strict";
672
+ module.exports = require("../picocolors/index.js");
673
+ },
674
+ 317: (module) => {
675
+ "use strict";
676
+ module.exports = require("child_process");
677
+ },
678
+ 896: (module) => {
679
+ "use strict";
680
+ module.exports = require("fs");
681
+ },
682
+ 857: (module) => {
683
+ "use strict";
684
+ module.exports = require("os");
685
+ },
686
+ 928: (module) => {
687
+ "use strict";
688
+ module.exports = require("path");
689
+ },
690
+ 16: (module) => {
691
+ "use strict";
692
+ module.exports = require("url");
693
+ },
694
+ };
695
+ var __webpack_module_cache__ = {};
696
+ function __nccwpck_require__(moduleId) {
697
+ var cachedModule = __webpack_module_cache__[moduleId];
698
+ if (cachedModule !== undefined) {
699
+ return cachedModule.exports;
700
+ }
701
+ var module = (__webpack_module_cache__[moduleId] = { exports: {} });
702
+ var threw = true;
703
+ try {
704
+ __webpack_modules__[moduleId](
705
+ module,
706
+ module.exports,
707
+ __nccwpck_require__,
708
+ );
709
+ threw = false;
710
+ } finally {
711
+ if (threw) delete __webpack_module_cache__[moduleId];
712
+ }
713
+ return module.exports;
714
+ }
715
+ if (typeof __nccwpck_require__ !== "undefined")
716
+ __nccwpck_require__.ab = __dirname + "/";
717
+ var __webpack_exports__ = __nccwpck_require__(172);
718
+ module.exports = __webpack_exports__;
719
+ })();