@baic/yolk-cli 2.1.0-alpha.11 → 2.1.0-alpha.114

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 (556) hide show
  1. package/compiled/commander/index.d.ts +430 -0
  2. package/compiled/commander/index.js +1970 -0
  3. package/compiled/commander/package.json +1 -0
  4. package/compiled/glob/index.d.ts +101 -0
  5. package/compiled/glob/index.js +2222 -0
  6. package/compiled/glob/package.json +1 -0
  7. package/compiled/minimatch/index.d.ts +312 -0
  8. package/compiled/minimatch/index.js +1292 -0
  9. package/compiled/minimatch/package.json +1 -0
  10. package/compiled/mkdirp/index.d.ts +114 -0
  11. package/compiled/mkdirp/index.js +348 -0
  12. package/compiled/mkdirp/package.json +1 -0
  13. package/compiled/mustache/index.d.ts +423 -0
  14. package/compiled/mustache/index.js +828 -0
  15. package/compiled/mustache/package.json +1 -0
  16. package/compiled/prettier/index.d.ts +904 -0
  17. package/compiled/prettier/index.js +49577 -0
  18. package/compiled/prettier/package.json +1 -0
  19. package/compiled/rimraf/index.d.ts +48 -0
  20. package/compiled/rimraf/index.js +449 -0
  21. package/compiled/rimraf/package.json +1 -0
  22. package/compiled/staged-git-files/index.js +267 -0
  23. package/compiled/staged-git-files/package.json +1 -0
  24. package/es/.prettierrc.js +15 -0
  25. package/es/index.d.ts +1 -0
  26. package/es/index.js +1 -1
  27. package/es/yolk.d.ts +5 -1
  28. package/es/yolk.js +1 -1
  29. package/lib/.prettierrc.js +15 -0
  30. package/lib/index.d.ts +1 -0
  31. package/lib/index.js +1 -1
  32. package/lib/yolk.d.ts +5 -1
  33. package/lib/yolk.js +1 -1
  34. package/package.json +39 -26
  35. package/templates/miniprogram/.eslintrc +1 -1
  36. package/templates/miniprogram/.gitignore.tpl +13 -11
  37. package/templates/miniprogram/.npmrc.tpl +2 -0
  38. package/templates/miniprogram/.prettierignore +5 -1
  39. package/templates/miniprogram/.prettierrc.js +1 -0
  40. package/templates/miniprogram/README.md.tpl +2 -2
  41. package/templates/miniprogram/global.d.ts +1 -33
  42. package/templates/miniprogram/package.json.tpl +5 -0
  43. package/templates/miniprogram/project.config.json.tpl +2 -2
  44. package/templates/miniprogram/src/app.scss +0 -1
  45. package/templates/miniprogram/src/app.tsx +4 -6
  46. package/templates/miniprogram/src/pages/demo/examples/Input.tsx +11 -2
  47. package/templates/miniprogram/src/pages/demo/examples/Textarea.tsx +13 -2
  48. package/templates/miniprogram/src/pages/index/index.tsx +3 -1
  49. package/templates/miniprogram/src/types/user.d.ts +4 -2
  50. package/templates/umi-mobile/.eslintrc +1 -1
  51. package/templates/umi-mobile/.gitignore.tpl +8 -5
  52. package/templates/umi-mobile/.npmrc.tpl +2 -0
  53. package/templates/umi-mobile/.prettierignore +6 -2
  54. package/templates/umi-mobile/.prettierrc.js +1 -0
  55. package/templates/umi-mobile/.umirc.ts.tpl +2 -2
  56. package/templates/umi-mobile/README.md.tpl +2 -2
  57. package/templates/umi-mobile/package.json.tpl +5 -0
  58. package/templates/{umi-web-screen/src/.umi-production → umi-mobile/src/.umi}/core/EmptyRoute.tsx +3 -2
  59. package/templates/umi-mobile/src/.umi/core/defineApp.ts +21 -0
  60. package/templates/{umi-web-screen → umi-mobile}/src/.umi/core/history.ts +26 -9
  61. package/templates/umi-mobile/src/.umi/core/historyIntelli.ts +132 -0
  62. package/templates/umi-mobile/src/.umi/core/plugin.ts +83 -0
  63. package/templates/umi-mobile/src/.umi/core/pluginConfig.d.ts +295 -0
  64. package/templates/umi-mobile/src/.umi/core/polyfill.ts +191 -0
  65. package/templates/umi-mobile/src/.umi/core/route.tsx +267 -0
  66. package/templates/umi-mobile/src/.umi/core/routeProps.js +3 -0
  67. package/templates/{umi-web-screen/src/.umi/core/EmptyRoute.tsx → umi-mobile/src/.umi/core/routeProps.ts} +1 -4
  68. package/templates/umi-mobile/src/.umi/core/terminal.ts +62 -0
  69. package/templates/umi-mobile/src/.umi/exports.ts +51 -0
  70. package/templates/umi-mobile/src/.umi/plugin-clickToComponent/runtime.tsx +19 -0
  71. package/templates/umi-mobile/src/.umi/plugin-errorBoundary/runtime.tsx +67 -0
  72. package/templates/umi-mobile/src/.umi/plugin-hd/runtime.tsx +57 -0
  73. package/templates/umi-mobile/src/.umi/testBrowser.tsx +91 -0
  74. package/templates/{umi-web-screen → umi-mobile}/src/.umi/tsconfig.json +11 -14
  75. package/templates/umi-mobile/src/.umi/typings.d.ts +138 -0
  76. package/templates/umi-mobile/src/.umi/umi.ts +76 -0
  77. package/templates/umi-mobile/src/app.tsx +2 -2
  78. package/templates/umi-mobile/src/pages/404.tsx +0 -1
  79. package/templates/umi-mobile/src/pages/demo/examples/BarCode.tsx +0 -1
  80. package/templates/umi-mobile/src/pages/demo/examples/Iconfont.tsx +1 -2
  81. package/templates/umi-mobile/src/pages/demo/examples/Input.tsx +1 -3
  82. package/templates/umi-mobile/src/pages/demo/examples/List/1.tsx +1 -2
  83. package/templates/umi-mobile/src/pages/demo/examples/List/2.tsx +1 -1
  84. package/templates/umi-mobile/src/pages/demo/examples/List/3.tsx +1 -1
  85. package/templates/umi-mobile/src/pages/demo/examples/List/4.tsx +9 -10
  86. package/templates/umi-mobile/src/pages/demo/examples/Loading.tsx +0 -1
  87. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -3
  88. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -3
  89. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -3
  90. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -3
  91. package/templates/umi-mobile/src/pages/demo/examples/PagingList/1.tsx +1 -2
  92. package/templates/umi-mobile/src/pages/demo/examples/QrCode.tsx +0 -1
  93. package/templates/umi-mobile/src/pages/demo/examples/Required.tsx +0 -1
  94. package/templates/umi-mobile/src/pages/demo/examples/TimerButton.tsx +0 -1
  95. package/templates/umi-mobile/src/pages/demo/examples/usePreload.tsx +1 -1
  96. package/templates/umi-mobile/src/pages/demo/index.tsx +8 -8
  97. package/templates/umi-mobile/src/pages/index.tsx +0 -2
  98. package/templates/umi-mobile/src/types/user.d.ts +2 -2
  99. package/templates/umi-mobile-h5+app/.eslintrc +1 -1
  100. package/templates/umi-mobile-h5+app/.gitignore.tpl +8 -5
  101. package/templates/umi-mobile-h5+app/.npmrc.tpl +2 -0
  102. package/templates/umi-mobile-h5+app/.prettierignore +6 -2
  103. package/templates/umi-mobile-h5+app/.prettierrc.js +1 -0
  104. package/templates/umi-mobile-h5+app/.umirc.ts.tpl +2 -2
  105. package/templates/umi-mobile-h5+app/README.md.tpl +2 -2
  106. package/templates/umi-mobile-h5+app/package.json.tpl +5 -0
  107. package/templates/umi-mobile-h5+app/src/pages/demo/examples/Input.tsx +1 -2
  108. package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/4.tsx +2 -2
  109. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  110. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  111. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  112. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  113. package/templates/umi-mobile-h5+app/src/types/user.d.ts +2 -2
  114. package/templates/umi-mobile-native/.eslintrc +1 -1
  115. package/templates/umi-mobile-native/.gitignore.tpl +14 -6
  116. package/templates/umi-mobile-native/.npmrc.tpl +2 -0
  117. package/templates/umi-mobile-native/.prettierignore +6 -2
  118. package/templates/umi-mobile-native/.prettierrc.js +1 -0
  119. package/templates/umi-mobile-native/.umirc.ts.tpl +2 -2
  120. package/templates/umi-mobile-native/README.md.tpl +2 -2
  121. package/templates/umi-mobile-native/package.json.tpl +5 -0
  122. package/templates/umi-mobile-native/src/common/Xprinter.ts +4 -4
  123. package/templates/umi-mobile-native/src/common/bluetooth.ts +2 -2
  124. package/templates/umi-mobile-native/src/pages/demo/examples/Input.tsx +1 -2
  125. package/templates/umi-mobile-native/src/pages/demo/examples/List/4.tsx +2 -2
  126. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  127. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  128. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  129. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  130. package/templates/umi-mobile-native/src/types/user.d.ts +2 -2
  131. package/templates/umi-web/.eslintrc +1 -1
  132. package/templates/umi-web/.gitignore.tpl +8 -5
  133. package/templates/umi-web/.npmrc.tpl +2 -0
  134. package/templates/umi-web/.prettierignore +6 -2
  135. package/templates/umi-web/.prettierrc.js +1 -0
  136. package/templates/umi-web/.umirc.ts.tpl +1 -2
  137. package/templates/umi-web/README.md.tpl +1 -1
  138. package/templates/umi-web/package.json.tpl +5 -0
  139. package/templates/umi-web/src/pages/404.tsx +2 -3
  140. package/templates/umi-web/src/pages/demo/examples/BankInput.tsx +1 -2
  141. package/templates/umi-web/src/pages/demo/examples/Grid/5.tsx +1 -2
  142. package/templates/umi-web/src/pages/demo/examples/Input/2.tsx +2 -1
  143. package/templates/umi-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
  144. package/templates/umi-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
  145. package/templates/umi-web/src/pages/demo/index.tsx +3 -2
  146. package/templates/umi-web/src/pages/index.tsx +0 -2
  147. package/templates/umi-web/src/types/user.d.ts +2 -2
  148. package/templates/umi-web-screen/.eslintrc +1 -1
  149. package/templates/umi-web-screen/.gitignore.tpl +8 -5
  150. package/templates/umi-web-screen/.npmrc.tpl +2 -0
  151. package/templates/umi-web-screen/.prettierignore +6 -2
  152. package/templates/umi-web-screen/.prettierrc.js +1 -0
  153. package/templates/umi-web-screen/.umirc.ts.tpl +3 -2
  154. package/templates/umi-web-screen/README.md.tpl +1 -1
  155. package/templates/umi-web-screen/package.json.tpl +5 -0
  156. package/templates/umi-web-screen/src/components/resize-container/index.tsx +14 -14
  157. package/templates/umi-web-screen/src/layouts/controller/index.tsx +5 -9
  158. package/templates/umi-web-screen/src/pages/404.tsx +2 -3
  159. package/templates/umi-web-screen/src/pages/template/components/charts/demo-line/index.tsx +2 -3
  160. package/templates/umi-web-screen/src/pages/template/controller/index.tsx +11 -12
  161. package/templates/umi-web-screen/src/types/user.d.ts +2 -2
  162. package/templates/ice-mobile/.eslintrc +0 -6
  163. package/templates/ice-mobile/.gitignore.tpl +0 -30
  164. package/templates/ice-mobile/.icerc.ts +0 -3
  165. package/templates/ice-mobile/.prettierignore +0 -9
  166. package/templates/ice-mobile/.prettierrc +0 -11
  167. package/templates/ice-mobile/.stylelintrc +0 -3
  168. package/templates/ice-mobile/README.md.tpl +0 -34
  169. package/templates/ice-mobile/package.json.tpl +0 -11
  170. package/templates/ice-mobile/public/favicon.ico +0 -0
  171. package/templates/ice-mobile/public/index.html +0 -15
  172. package/templates/ice-mobile/src/app.tsx +0 -5
  173. package/templates/ice-mobile/src/common/request.ts +0 -3
  174. package/templates/ice-mobile/src/common/util.ts +0 -7
  175. package/templates/ice-mobile/src/components/index.ts +0 -0
  176. package/templates/ice-mobile/src/global.less +0 -3
  177. package/templates/ice-mobile/src/layouts/index.tsx +0 -5
  178. package/templates/ice-mobile/src/pages/404.tsx +0 -10
  179. package/templates/ice-mobile/src/pages/demo/examples/BarCode.tsx +0 -4
  180. package/templates/ice-mobile/src/pages/demo/examples/Iconfont.tsx +0 -18
  181. package/templates/ice-mobile/src/pages/demo/examples/Input.tsx +0 -17
  182. package/templates/ice-mobile/src/pages/demo/examples/List/1.tsx +0 -12
  183. package/templates/ice-mobile/src/pages/demo/examples/List/2.tsx +0 -29
  184. package/templates/ice-mobile/src/pages/demo/examples/List/3.tsx +0 -29
  185. package/templates/ice-mobile/src/pages/demo/examples/List/4.tsx +0 -55
  186. package/templates/ice-mobile/src/pages/demo/examples/List/mock.ts +0 -30
  187. package/templates/ice-mobile/src/pages/demo/examples/Loading.tsx +0 -12
  188. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  189. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  190. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  191. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  192. package/templates/ice-mobile/src/pages/demo/examples/PagingList/1.tsx +0 -6
  193. package/templates/ice-mobile/src/pages/demo/examples/QrCode.tsx +0 -4
  194. package/templates/ice-mobile/src/pages/demo/examples/Required.tsx +0 -4
  195. package/templates/ice-mobile/src/pages/demo/examples/TimerButton.tsx +0 -4
  196. package/templates/ice-mobile/src/pages/demo/examples/usePreload.tsx +0 -9
  197. package/templates/ice-mobile/src/pages/demo/index.tsx +0 -87
  198. package/templates/ice-mobile/src/pages/index.tsx +0 -3
  199. package/templates/ice-mobile/src/routes.ts +0 -29
  200. package/templates/ice-mobile/src/types/user.d.ts +0 -3
  201. package/templates/ice-mobile/tsconfig.json +0 -3
  202. package/templates/ice-mobile/typings.d.ts +0 -1
  203. package/templates/ice-mobile-h5+app/.eslintrc +0 -6
  204. package/templates/ice-mobile-h5+app/.gitignore.tpl +0 -30
  205. package/templates/ice-mobile-h5+app/.icerc.ts +0 -5
  206. package/templates/ice-mobile-h5+app/.prettierignore +0 -9
  207. package/templates/ice-mobile-h5+app/.prettierrc +0 -11
  208. package/templates/ice-mobile-h5+app/.stylelintrc +0 -3
  209. package/templates/ice-mobile-h5+app/README.md.tpl +0 -34
  210. package/templates/ice-mobile-h5+app/h5+app/manifest.json +0 -87
  211. package/templates/ice-mobile-h5+app/package.json.tpl +0 -11
  212. package/templates/ice-mobile-h5+app/public/favicon.ico +0 -0
  213. package/templates/ice-mobile-h5+app/public/index.html +0 -15
  214. package/templates/ice-mobile-h5+app/src/app.tsx +0 -5
  215. package/templates/ice-mobile-h5+app/src/common/request.ts +0 -3
  216. package/templates/ice-mobile-h5+app/src/common/util.ts +0 -7
  217. package/templates/ice-mobile-h5+app/src/components/index.ts +0 -0
  218. package/templates/ice-mobile-h5+app/src/global.less +0 -3
  219. package/templates/ice-mobile-h5+app/src/layouts/index.tsx +0 -5
  220. package/templates/ice-mobile-h5+app/src/pages/404.tsx +0 -10
  221. package/templates/ice-mobile-h5+app/src/pages/demo/examples/BarCode.tsx +0 -4
  222. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +0 -18
  223. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Input.tsx +0 -17
  224. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/1.tsx +0 -12
  225. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/2.tsx +0 -29
  226. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/3.tsx +0 -29
  227. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/4.tsx +0 -55
  228. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/mock.ts +0 -30
  229. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Loading.tsx +0 -12
  230. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  231. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  232. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  233. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  234. package/templates/ice-mobile-h5+app/src/pages/demo/examples/PagingList/1.tsx +0 -6
  235. package/templates/ice-mobile-h5+app/src/pages/demo/examples/QrCode.tsx +0 -4
  236. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Required.tsx +0 -4
  237. package/templates/ice-mobile-h5+app/src/pages/demo/examples/TimerButton.tsx +0 -4
  238. package/templates/ice-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +0 -9
  239. package/templates/ice-mobile-h5+app/src/pages/demo/index.tsx +0 -87
  240. package/templates/ice-mobile-h5+app/src/pages/index.tsx +0 -3
  241. package/templates/ice-mobile-h5+app/src/routes.ts +0 -29
  242. package/templates/ice-mobile-h5+app/src/types/user.d.ts +0 -3
  243. package/templates/ice-mobile-h5+app/tsconfig.json +0 -3
  244. package/templates/ice-mobile-h5+app/typings.d.ts +0 -1
  245. package/templates/ice-mobile-native/.eslintrc +0 -6
  246. package/templates/ice-mobile-native/.gitignore.tpl +0 -30
  247. package/templates/ice-mobile-native/.icerc.ts +0 -7
  248. package/templates/ice-mobile-native/.prettierignore +0 -9
  249. package/templates/ice-mobile-native/.prettierrc +0 -11
  250. package/templates/ice-mobile-native/.stylelintrc +0 -3
  251. package/templates/ice-mobile-native/README.md.tpl +0 -34
  252. package/templates/ice-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
  253. package/templates/ice-mobile-native/android/app/build.gradle +0 -66
  254. package/templates/ice-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
  255. package/templates/ice-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
  256. package/templates/ice-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
  257. package/templates/ice-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
  258. package/templates/ice-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
  259. package/templates/ice-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
  260. package/templates/ice-mobile-native/android/app/proguard-rules.pro +0 -303
  261. package/templates/ice-mobile-native/android/app/src/main/AndroidManifest.xml +0 -98
  262. package/templates/ice-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +0 -89
  263. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +0 -6
  264. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_error.html +0 -92
  265. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +0 -19
  266. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +0 -119
  267. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +0 -17
  268. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +0 -17
  269. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +0 -26
  270. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +0 -265
  271. package/templates/ice-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
  272. package/templates/ice-mobile-native/android/app/src/main/res/values/colors.xml +0 -5
  273. package/templates/ice-mobile-native/android/app/src/main/res/values/strings.xml +0 -3
  274. package/templates/ice-mobile-native/android/build.gradle +0 -9
  275. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  276. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  277. package/templates/ice-mobile-native/android/gradle.properties +0 -22
  278. package/templates/ice-mobile-native/android/gradlew +0 -185
  279. package/templates/ice-mobile-native/android/gradlew.bat +0 -89
  280. package/templates/ice-mobile-native/android/settings.gradle +0 -16
  281. package/templates/ice-mobile-native/ios/HBuilder/HBuilder.entitlements +0 -5
  282. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
  283. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
  284. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
  285. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
  286. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
  287. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
  288. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
  289. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
  290. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
  291. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +0 -62
  292. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +0 -6
  293. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +0 -20
  294. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
  295. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
  296. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
  297. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +0 -26
  298. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +0 -21
  299. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
  300. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +0 -22
  301. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
  302. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
  303. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +0 -22
  304. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
  305. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
  306. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +0 -22
  307. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
  308. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
  309. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +0 -21
  310. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
  311. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +0 -22
  312. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
  313. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
  314. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +0 -22
  315. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
  316. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
  317. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +0 -23
  318. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
  319. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
  320. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
  321. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +0 -23
  322. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
  323. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
  324. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
  325. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +0 -23
  326. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
  327. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
  328. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
  329. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +0 -23
  330. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
  331. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
  332. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
  333. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +0 -22
  334. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
  335. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
  336. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +0 -22
  337. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
  338. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
  339. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +0 -22
  340. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
  341. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
  342. package/templates/ice-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
  343. package/templates/ice-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
  344. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.h +0 -16
  345. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.m +0 -225
  346. package/templates/ice-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +0 -65
  347. package/templates/ice-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +0 -13
  348. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +0 -486
  349. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +0 -16
  350. package/templates/ice-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +0 -67
  351. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +0 -79
  352. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
  353. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
  354. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
  355. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
  356. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
  357. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
  358. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
  359. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
  360. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
  361. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
  362. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
  363. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
  364. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
  365. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
  366. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
  367. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
  368. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
  369. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.h +0 -19
  370. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.m +0 -161
  371. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.h +0 -19
  372. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.m +0 -235
  373. package/templates/ice-mobile-native/ios/HBuilder-Hello/control.xml +0 -107
  374. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +0 -4
  375. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +0 -12
  376. package/templates/ice-mobile-native/ios/HBuilder-Hello/main.m +0 -18
  377. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +0 -4
  378. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +0 -3
  379. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +0 -13
  380. package/templates/ice-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +0 -1607
  381. package/templates/ice-mobile-native/package.json.tpl +0 -11
  382. package/templates/ice-mobile-native/public/favicon.ico +0 -0
  383. package/templates/ice-mobile-native/public/index.html +0 -15
  384. package/templates/ice-mobile-native/src/app.tsx +0 -5
  385. package/templates/ice-mobile-native/src/common/Xprinter.ts +0 -58
  386. package/templates/ice-mobile-native/src/common/bluetooth.ts +0 -354
  387. package/templates/ice-mobile-native/src/common/bridge.ts +0 -59
  388. package/templates/ice-mobile-native/src/common/request.ts +0 -3
  389. package/templates/ice-mobile-native/src/common/util.ts +0 -7
  390. package/templates/ice-mobile-native/src/components/index.ts +0 -0
  391. package/templates/ice-mobile-native/src/global.less +0 -3
  392. package/templates/ice-mobile-native/src/layouts/index.tsx +0 -5
  393. package/templates/ice-mobile-native/src/pages/404.tsx +0 -10
  394. package/templates/ice-mobile-native/src/pages/demo/examples/BarCode.tsx +0 -4
  395. package/templates/ice-mobile-native/src/pages/demo/examples/Iconfont.tsx +0 -18
  396. package/templates/ice-mobile-native/src/pages/demo/examples/Input.tsx +0 -17
  397. package/templates/ice-mobile-native/src/pages/demo/examples/List/1.tsx +0 -12
  398. package/templates/ice-mobile-native/src/pages/demo/examples/List/2.tsx +0 -29
  399. package/templates/ice-mobile-native/src/pages/demo/examples/List/3.tsx +0 -29
  400. package/templates/ice-mobile-native/src/pages/demo/examples/List/4.tsx +0 -55
  401. package/templates/ice-mobile-native/src/pages/demo/examples/List/mock.ts +0 -30
  402. package/templates/ice-mobile-native/src/pages/demo/examples/Loading.tsx +0 -12
  403. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  404. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  405. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  406. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  407. package/templates/ice-mobile-native/src/pages/demo/examples/PagingList/1.tsx +0 -6
  408. package/templates/ice-mobile-native/src/pages/demo/examples/QrCode.tsx +0 -4
  409. package/templates/ice-mobile-native/src/pages/demo/examples/Required.tsx +0 -4
  410. package/templates/ice-mobile-native/src/pages/demo/examples/TimerButton.tsx +0 -4
  411. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +0 -64
  412. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/style.less +0 -16
  413. package/templates/ice-mobile-native/src/pages/demo/examples/usePreload.tsx +0 -9
  414. package/templates/ice-mobile-native/src/pages/demo/index.tsx +0 -89
  415. package/templates/ice-mobile-native/src/pages/index.tsx +0 -3
  416. package/templates/ice-mobile-native/src/routes.ts +0 -29
  417. package/templates/ice-mobile-native/src/types/user.d.ts +0 -3
  418. package/templates/ice-mobile-native/tsconfig.json +0 -3
  419. package/templates/ice-mobile-native/typings.d.ts +0 -1
  420. package/templates/ice-web/.eslintcache +0 -1
  421. package/templates/ice-web/.eslintrc +0 -6
  422. package/templates/ice-web/.gitignore.tpl +0 -30
  423. package/templates/ice-web/.icerc.ts +0 -3
  424. package/templates/ice-web/.prettierignore +0 -9
  425. package/templates/ice-web/.prettierrc +0 -11
  426. package/templates/ice-web/.stylelintrc +0 -3
  427. package/templates/ice-web/README.md.tpl +0 -34
  428. package/templates/ice-web/package.json.tpl +0 -11
  429. package/templates/ice-web/public/favicon.ico +0 -0
  430. package/templates/ice-web/public/index.html +0 -15
  431. package/templates/ice-web/src/app.tsx +0 -5
  432. package/templates/ice-web/src/common/request.ts +0 -3
  433. package/templates/ice-web/src/common/util.ts +0 -7
  434. package/templates/ice-web/src/components/index.ts +0 -0
  435. package/templates/ice-web/src/global.less +0 -5
  436. package/templates/ice-web/src/layouts/index.tsx +0 -5
  437. package/templates/ice-web/src/pages/404.tsx +0 -17
  438. package/templates/ice-web/src/pages/demo/examples/BankInput.tsx +0 -13
  439. package/templates/ice-web/src/pages/demo/examples/BarCode.tsx +0 -4
  440. package/templates/ice-web/src/pages/demo/examples/Collapse.tsx +0 -4
  441. package/templates/ice-web/src/pages/demo/examples/DatePicker.tsx +0 -4
  442. package/templates/ice-web/src/pages/demo/examples/Flex.tsx +0 -10
  443. package/templates/ice-web/src/pages/demo/examples/Grid/1.tsx +0 -25
  444. package/templates/ice-web/src/pages/demo/examples/Grid/2.tsx +0 -26
  445. package/templates/ice-web/src/pages/demo/examples/Grid/3.tsx +0 -37
  446. package/templates/ice-web/src/pages/demo/examples/Grid/4.tsx +0 -43
  447. package/templates/ice-web/src/pages/demo/examples/Grid/5.tsx +0 -36
  448. package/templates/ice-web/src/pages/demo/examples/Grid/6.tsx +0 -28
  449. package/templates/ice-web/src/pages/demo/examples/Iconfont.tsx +0 -18
  450. package/templates/ice-web/src/pages/demo/examples/ImagePreview.tsx +0 -20
  451. package/templates/ice-web/src/pages/demo/examples/Input/1.tsx +0 -4
  452. package/templates/ice-web/src/pages/demo/examples/Input/2.tsx +0 -80
  453. package/templates/ice-web/src/pages/demo/examples/LinkButton/1.tsx +0 -4
  454. package/templates/ice-web/src/pages/demo/examples/LinkButton/2.tsx +0 -9
  455. package/templates/ice-web/src/pages/demo/examples/LinkButton/3.tsx +0 -12
  456. package/templates/ice-web/src/pages/demo/examples/Loading.tsx +0 -12
  457. package/templates/ice-web/src/pages/demo/examples/MobileInput.tsx +0 -4
  458. package/templates/ice-web/src/pages/demo/examples/NumberInput.tsx +0 -4
  459. package/templates/ice-web/src/pages/demo/examples/PagingTable.tsx +0 -21
  460. package/templates/ice-web/src/pages/demo/examples/QrCode.tsx +0 -4
  461. package/templates/ice-web/src/pages/demo/examples/RangeNumber/1.tsx +0 -4
  462. package/templates/ice-web/src/pages/demo/examples/RangeNumber/2.tsx +0 -15
  463. package/templates/ice-web/src/pages/demo/examples/Required.tsx +0 -4
  464. package/templates/ice-web/src/pages/demo/examples/SearchLayout.tsx +0 -46
  465. package/templates/ice-web/src/pages/demo/examples/Table/1.tsx +0 -64
  466. package/templates/ice-web/src/pages/demo/examples/Table/2.tsx +0 -29
  467. package/templates/ice-web/src/pages/demo/examples/Table/3.tsx +0 -39
  468. package/templates/ice-web/src/pages/demo/examples/Table/4.tsx +0 -42
  469. package/templates/ice-web/src/pages/demo/examples/TimerButton.tsx +0 -4
  470. package/templates/ice-web/src/pages/demo/examples/Title/1.tsx +0 -4
  471. package/templates/ice-web/src/pages/demo/examples/Title/2.tsx +0 -5
  472. package/templates/ice-web/src/pages/demo/examples/WaterMark.tsx +0 -8
  473. package/templates/ice-web/src/pages/demo/examples/Wrapper.tsx +0 -40
  474. package/templates/ice-web/src/pages/demo/examples/usePreload.tsx +0 -9
  475. package/templates/ice-web/src/pages/demo/index.tsx +0 -135
  476. package/templates/ice-web/src/pages/index.tsx +0 -3
  477. package/templates/ice-web/src/routes.ts +0 -29
  478. package/templates/ice-web/src/types/user.d.ts +0 -3
  479. package/templates/ice-web/tsconfig.json +0 -3
  480. package/templates/ice-web/typings.d.ts +0 -1
  481. package/templates/ice-web-screen/.eslintcache +0 -1
  482. package/templates/ice-web-screen/.eslintrc +0 -6
  483. package/templates/ice-web-screen/.gitignore.tpl +0 -30
  484. package/templates/ice-web-screen/.icerc.ts +0 -3
  485. package/templates/ice-web-screen/.prettierignore +0 -9
  486. package/templates/ice-web-screen/.prettierrc +0 -11
  487. package/templates/ice-web-screen/.stylelintrc +0 -3
  488. package/templates/ice-web-screen/README.md.tpl +0 -34
  489. package/templates/ice-web-screen/package.json.tpl +0 -12
  490. package/templates/ice-web-screen/public/favicon.ico +0 -0
  491. package/templates/ice-web-screen/public/index.html +0 -15
  492. package/templates/ice-web-screen/src/app.tsx +0 -5
  493. package/templates/ice-web-screen/src/common/request.ts +0 -3
  494. package/templates/ice-web-screen/src/common/util.ts +0 -15
  495. package/templates/ice-web-screen/src/components/index.ts +0 -1
  496. package/templates/ice-web-screen/src/components/resize-container/index.tsx +0 -95
  497. package/templates/ice-web-screen/src/components/resize-container/style.module.less +0 -3
  498. package/templates/ice-web-screen/src/constants.ts +0 -7
  499. package/templates/ice-web-screen/src/global.less +0 -31
  500. package/templates/ice-web-screen/src/hooks/use-size.ts +0 -18
  501. package/templates/ice-web-screen/src/layouts/16_9/fixed.less +0 -18
  502. package/templates/ice-web-screen/src/layouts/16_9/index.less.d.ts +0 -8
  503. package/templates/ice-web-screen/src/layouts/16_9/index.tsx +0 -34
  504. package/templates/ice-web-screen/src/layouts/16_9/style.less.d.ts +0 -10
  505. package/templates/ice-web-screen/src/layouts/16_9/style.module.less +0 -19
  506. package/templates/ice-web-screen/src/layouts/components/index.ts +0 -0
  507. package/templates/ice-web-screen/src/layouts/controller/index.tsx +0 -79
  508. package/templates/ice-web-screen/src/layouts/index.tsx +0 -11
  509. package/templates/ice-web-screen/src/pages/404.tsx +0 -17
  510. package/templates/ice-web-screen/src/pages/index.tsx +0 -3
  511. package/templates/ice-web-screen/src/pages/template/16_9/index.tsx +0 -13
  512. package/templates/ice-web-screen/src/pages/template/16_9/style.module.less +0 -7
  513. package/templates/ice-web-screen/src/pages/template/components/charts/demo-line/index.tsx +0 -274
  514. package/templates/ice-web-screen/src/pages/template/components/charts/index.ts +0 -1
  515. package/templates/ice-web-screen/src/pages/template/components/index.ts +0 -1
  516. package/templates/ice-web-screen/src/pages/template/controller/index.tsx +0 -85
  517. package/templates/ice-web-screen/src/pages/template/index.tsx +0 -15
  518. package/templates/ice-web-screen/src/pages/template/style.module.less +0 -3
  519. package/templates/ice-web-screen/src/routes.ts +0 -29
  520. package/templates/ice-web-screen/src/styles/vars.less +0 -5
  521. package/templates/ice-web-screen/src/types/user.d.ts +0 -3
  522. package/templates/ice-web-screen/tsconfig.json +0 -3
  523. package/templates/ice-web-screen/typings.d.ts +0 -1
  524. package/templates/miniprogram/.editorconfig +0 -12
  525. package/templates/miniprogram/.prettierrc +0 -12
  526. package/templates/miniprogram/src/pages/demo/index.module.scss.d.ts +0 -5
  527. package/templates/miniprogram/src/pages/index/index.module.scss.d.ts +0 -5
  528. package/templates/umi-mobile/.prettierrc +0 -11
  529. package/templates/umi-mobile-h5+app/.prettierrc +0 -11
  530. package/templates/umi-mobile-native/.prettierrc +0 -11
  531. package/templates/umi-web/.prettierrc +0 -11
  532. package/templates/umi-web-screen/.prettierrc +0 -11
  533. package/templates/umi-web-screen/src/.umi/core/plugin.ts +0 -31
  534. package/templates/umi-web-screen/src/.umi/core/pluginConfig.d.ts +0 -239
  535. package/templates/umi-web-screen/src/.umi/core/polyfill.ts +0 -358
  536. package/templates/umi-web-screen/src/.umi/core/route.tsx +0 -21
  537. package/templates/umi-web-screen/src/.umi/core/terminal.ts +0 -38
  538. package/templates/umi-web-screen/src/.umi/exports.ts +0 -11
  539. package/templates/umi-web-screen/src/.umi/plugin-moment2dayjs/runtime.tsx +0 -29
  540. package/templates/umi-web-screen/src/.umi/typings.d.ts +0 -131
  541. package/templates/umi-web-screen/src/.umi/umi.ts +0 -59
  542. package/templates/umi-web-screen/src/.umi-production/core/history.ts +0 -53
  543. package/templates/umi-web-screen/src/.umi-production/core/plugin.ts +0 -31
  544. package/templates/umi-web-screen/src/.umi-production/core/pluginConfig.d.ts +0 -239
  545. package/templates/umi-web-screen/src/.umi-production/core/polyfill.ts +0 -358
  546. package/templates/umi-web-screen/src/.umi-production/core/route.tsx +0 -53
  547. package/templates/umi-web-screen/src/.umi-production/core/terminal.ts +0 -38
  548. package/templates/umi-web-screen/src/.umi-production/exports.ts +0 -11
  549. package/templates/umi-web-screen/src/.umi-production/plugin-moment2dayjs/runtime.tsx +0 -29
  550. package/templates/umi-web-screen/src/.umi-production/tsconfig.json +0 -32
  551. package/templates/umi-web-screen/src/.umi-production/typings.d.ts +0 -131
  552. package/templates/umi-web-screen/src/.umi-production/umi.ts +0 -59
  553. package/templates/umi-web-screen/src/layouts/16_9/index.less.d.ts +0 -8
  554. package/templates/umi-web-screen/src/layouts/16_9/style.less.d.ts +0 -10
  555. /package/templates/miniprogram/src/pages/demo/{index.module.scss → style.scss} +0 -0
  556. /package/templates/miniprogram/src/pages/index/{index.module.scss → style.scss} +0 -0
@@ -0,0 +1,2222 @@
1
+ /******/ (function() { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ({
3
+
4
+ /***/ 945:
5
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
6
+
7
+ module.exports = realpath
8
+ realpath.realpath = realpath
9
+ realpath.sync = realpathSync
10
+ realpath.realpathSync = realpathSync
11
+ realpath.monkeypatch = monkeypatch
12
+ realpath.unmonkeypatch = unmonkeypatch
13
+
14
+ var fs = __nccwpck_require__(147)
15
+ var origRealpath = fs.realpath
16
+ var origRealpathSync = fs.realpathSync
17
+
18
+ var version = process.version
19
+ var ok = /^v[0-5]\./.test(version)
20
+ var old = __nccwpck_require__(403)
21
+
22
+ function newError (er) {
23
+ return er && er.syscall === 'realpath' && (
24
+ er.code === 'ELOOP' ||
25
+ er.code === 'ENOMEM' ||
26
+ er.code === 'ENAMETOOLONG'
27
+ )
28
+ }
29
+
30
+ function realpath (p, cache, cb) {
31
+ if (ok) {
32
+ return origRealpath(p, cache, cb)
33
+ }
34
+
35
+ if (typeof cache === 'function') {
36
+ cb = cache
37
+ cache = null
38
+ }
39
+ origRealpath(p, cache, function (er, result) {
40
+ if (newError(er)) {
41
+ old.realpath(p, cache, cb)
42
+ } else {
43
+ cb(er, result)
44
+ }
45
+ })
46
+ }
47
+
48
+ function realpathSync (p, cache) {
49
+ if (ok) {
50
+ return origRealpathSync(p, cache)
51
+ }
52
+
53
+ try {
54
+ return origRealpathSync(p, cache)
55
+ } catch (er) {
56
+ if (newError(er)) {
57
+ return old.realpathSync(p, cache)
58
+ } else {
59
+ throw er
60
+ }
61
+ }
62
+ }
63
+
64
+ function monkeypatch () {
65
+ fs.realpath = realpath
66
+ fs.realpathSync = realpathSync
67
+ }
68
+
69
+ function unmonkeypatch () {
70
+ fs.realpath = origRealpath
71
+ fs.realpathSync = origRealpathSync
72
+ }
73
+
74
+
75
+ /***/ }),
76
+
77
+ /***/ 403:
78
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
79
+
80
+ // Copyright Joyent, Inc. and other Node contributors.
81
+ //
82
+ // Permission is hereby granted, free of charge, to any person obtaining a
83
+ // copy of this software and associated documentation files (the
84
+ // "Software"), to deal in the Software without restriction, including
85
+ // without limitation the rights to use, copy, modify, merge, publish,
86
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
87
+ // persons to whom the Software is furnished to do so, subject to the
88
+ // following conditions:
89
+ //
90
+ // The above copyright notice and this permission notice shall be included
91
+ // in all copies or substantial portions of the Software.
92
+ //
93
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
94
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
95
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
96
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
97
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
98
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
99
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
100
+
101
+ var pathModule = __nccwpck_require__(17);
102
+ var isWindows = process.platform === 'win32';
103
+ var fs = __nccwpck_require__(147);
104
+
105
+ // JavaScript implementation of realpath, ported from node pre-v6
106
+
107
+ var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
108
+
109
+ function rethrow() {
110
+ // Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and
111
+ // is fairly slow to generate.
112
+ var callback;
113
+ if (DEBUG) {
114
+ var backtrace = new Error;
115
+ callback = debugCallback;
116
+ } else
117
+ callback = missingCallback;
118
+
119
+ return callback;
120
+
121
+ function debugCallback(err) {
122
+ if (err) {
123
+ backtrace.message = err.message;
124
+ err = backtrace;
125
+ missingCallback(err);
126
+ }
127
+ }
128
+
129
+ function missingCallback(err) {
130
+ if (err) {
131
+ if (process.throwDeprecation)
132
+ throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
133
+ else if (!process.noDeprecation) {
134
+ var msg = 'fs: missing callback ' + (err.stack || err.message);
135
+ if (process.traceDeprecation)
136
+ console.trace(msg);
137
+ else
138
+ console.error(msg);
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ function maybeCallback(cb) {
145
+ return typeof cb === 'function' ? cb : rethrow();
146
+ }
147
+
148
+ var normalize = pathModule.normalize;
149
+
150
+ // Regexp that finds the next partion of a (partial) path
151
+ // result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
152
+ if (isWindows) {
153
+ var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
154
+ } else {
155
+ var nextPartRe = /(.*?)(?:[\/]+|$)/g;
156
+ }
157
+
158
+ // Regex to find the device root, including trailing slash. E.g. 'c:\\'.
159
+ if (isWindows) {
160
+ var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
161
+ } else {
162
+ var splitRootRe = /^[\/]*/;
163
+ }
164
+
165
+ exports.realpathSync = function realpathSync(p, cache) {
166
+ // make p is absolute
167
+ p = pathModule.resolve(p);
168
+
169
+ if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
170
+ return cache[p];
171
+ }
172
+
173
+ var original = p,
174
+ seenLinks = {},
175
+ knownHard = {};
176
+
177
+ // current character position in p
178
+ var pos;
179
+ // the partial path so far, including a trailing slash if any
180
+ var current;
181
+ // the partial path without a trailing slash (except when pointing at a root)
182
+ var base;
183
+ // the partial path scanned in the previous round, with slash
184
+ var previous;
185
+
186
+ start();
187
+
188
+ function start() {
189
+ // Skip over roots
190
+ var m = splitRootRe.exec(p);
191
+ pos = m[0].length;
192
+ current = m[0];
193
+ base = m[0];
194
+ previous = '';
195
+
196
+ // On windows, check that the root exists. On unix there is no need.
197
+ if (isWindows && !knownHard[base]) {
198
+ fs.lstatSync(base);
199
+ knownHard[base] = true;
200
+ }
201
+ }
202
+
203
+ // walk down the path, swapping out linked pathparts for their real
204
+ // values
205
+ // NB: p.length changes.
206
+ while (pos < p.length) {
207
+ // find the next part
208
+ nextPartRe.lastIndex = pos;
209
+ var result = nextPartRe.exec(p);
210
+ previous = current;
211
+ current += result[0];
212
+ base = previous + result[1];
213
+ pos = nextPartRe.lastIndex;
214
+
215
+ // continue if not a symlink
216
+ if (knownHard[base] || (cache && cache[base] === base)) {
217
+ continue;
218
+ }
219
+
220
+ var resolvedLink;
221
+ if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
222
+ // some known symbolic link. no need to stat again.
223
+ resolvedLink = cache[base];
224
+ } else {
225
+ var stat = fs.lstatSync(base);
226
+ if (!stat.isSymbolicLink()) {
227
+ knownHard[base] = true;
228
+ if (cache) cache[base] = base;
229
+ continue;
230
+ }
231
+
232
+ // read the link if it wasn't read before
233
+ // dev/ino always return 0 on windows, so skip the check.
234
+ var linkTarget = null;
235
+ if (!isWindows) {
236
+ var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
237
+ if (seenLinks.hasOwnProperty(id)) {
238
+ linkTarget = seenLinks[id];
239
+ }
240
+ }
241
+ if (linkTarget === null) {
242
+ fs.statSync(base);
243
+ linkTarget = fs.readlinkSync(base);
244
+ }
245
+ resolvedLink = pathModule.resolve(previous, linkTarget);
246
+ // track this, if given a cache.
247
+ if (cache) cache[base] = resolvedLink;
248
+ if (!isWindows) seenLinks[id] = linkTarget;
249
+ }
250
+
251
+ // resolve the link, then start over
252
+ p = pathModule.resolve(resolvedLink, p.slice(pos));
253
+ start();
254
+ }
255
+
256
+ if (cache) cache[original] = p;
257
+
258
+ return p;
259
+ };
260
+
261
+
262
+ exports.realpath = function realpath(p, cache, cb) {
263
+ if (typeof cb !== 'function') {
264
+ cb = maybeCallback(cache);
265
+ cache = null;
266
+ }
267
+
268
+ // make p is absolute
269
+ p = pathModule.resolve(p);
270
+
271
+ if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
272
+ return process.nextTick(cb.bind(null, null, cache[p]));
273
+ }
274
+
275
+ var original = p,
276
+ seenLinks = {},
277
+ knownHard = {};
278
+
279
+ // current character position in p
280
+ var pos;
281
+ // the partial path so far, including a trailing slash if any
282
+ var current;
283
+ // the partial path without a trailing slash (except when pointing at a root)
284
+ var base;
285
+ // the partial path scanned in the previous round, with slash
286
+ var previous;
287
+
288
+ start();
289
+
290
+ function start() {
291
+ // Skip over roots
292
+ var m = splitRootRe.exec(p);
293
+ pos = m[0].length;
294
+ current = m[0];
295
+ base = m[0];
296
+ previous = '';
297
+
298
+ // On windows, check that the root exists. On unix there is no need.
299
+ if (isWindows && !knownHard[base]) {
300
+ fs.lstat(base, function(err) {
301
+ if (err) return cb(err);
302
+ knownHard[base] = true;
303
+ LOOP();
304
+ });
305
+ } else {
306
+ process.nextTick(LOOP);
307
+ }
308
+ }
309
+
310
+ // walk down the path, swapping out linked pathparts for their real
311
+ // values
312
+ function LOOP() {
313
+ // stop if scanned past end of path
314
+ if (pos >= p.length) {
315
+ if (cache) cache[original] = p;
316
+ return cb(null, p);
317
+ }
318
+
319
+ // find the next part
320
+ nextPartRe.lastIndex = pos;
321
+ var result = nextPartRe.exec(p);
322
+ previous = current;
323
+ current += result[0];
324
+ base = previous + result[1];
325
+ pos = nextPartRe.lastIndex;
326
+
327
+ // continue if not a symlink
328
+ if (knownHard[base] || (cache && cache[base] === base)) {
329
+ return process.nextTick(LOOP);
330
+ }
331
+
332
+ if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
333
+ // known symbolic link. no need to stat again.
334
+ return gotResolvedLink(cache[base]);
335
+ }
336
+
337
+ return fs.lstat(base, gotStat);
338
+ }
339
+
340
+ function gotStat(err, stat) {
341
+ if (err) return cb(err);
342
+
343
+ // if not a symlink, skip to the next path part
344
+ if (!stat.isSymbolicLink()) {
345
+ knownHard[base] = true;
346
+ if (cache) cache[base] = base;
347
+ return process.nextTick(LOOP);
348
+ }
349
+
350
+ // stat & read the link if not read before
351
+ // call gotTarget as soon as the link target is known
352
+ // dev/ino always return 0 on windows, so skip the check.
353
+ if (!isWindows) {
354
+ var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
355
+ if (seenLinks.hasOwnProperty(id)) {
356
+ return gotTarget(null, seenLinks[id], base);
357
+ }
358
+ }
359
+ fs.stat(base, function(err) {
360
+ if (err) return cb(err);
361
+
362
+ fs.readlink(base, function(err, target) {
363
+ if (!isWindows) seenLinks[id] = target;
364
+ gotTarget(err, target);
365
+ });
366
+ });
367
+ }
368
+
369
+ function gotTarget(err, target, base) {
370
+ if (err) return cb(err);
371
+
372
+ var resolvedLink = pathModule.resolve(previous, target);
373
+ if (cache) cache[base] = resolvedLink;
374
+ gotResolvedLink(resolvedLink);
375
+ }
376
+
377
+ function gotResolvedLink(resolvedLink) {
378
+ // resolve the link, then start over
379
+ p = pathModule.resolve(resolvedLink, p.slice(pos));
380
+ start();
381
+ }
382
+ };
383
+
384
+
385
+ /***/ }),
386
+
387
+ /***/ 442:
388
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
389
+
390
+ var wrappy = __nccwpck_require__(586)
391
+ var reqs = Object.create(null)
392
+ var once = __nccwpck_require__(197)
393
+
394
+ module.exports = wrappy(inflight)
395
+
396
+ function inflight (key, cb) {
397
+ if (reqs[key]) {
398
+ reqs[key].push(cb)
399
+ return null
400
+ } else {
401
+ reqs[key] = [cb]
402
+ return makeres(key)
403
+ }
404
+ }
405
+
406
+ function makeres (key) {
407
+ return once(function RES () {
408
+ var cbs = reqs[key]
409
+ var len = cbs.length
410
+ var args = slice(arguments)
411
+
412
+ // XXX It's somewhat ambiguous whether a new callback added in this
413
+ // pass should be queued for later execution if something in the
414
+ // list of callbacks throws, or if it should just be discarded.
415
+ // However, it's such an edge case that it hardly matters, and either
416
+ // choice is likely as surprising as the other.
417
+ // As it happens, we do go ahead and schedule it for later execution.
418
+ try {
419
+ for (var i = 0; i < len; i++) {
420
+ cbs[i].apply(null, args)
421
+ }
422
+ } finally {
423
+ if (cbs.length > len) {
424
+ // added more in the interim.
425
+ // de-zalgo, just in case, but don't call again.
426
+ cbs.splice(0, len)
427
+ process.nextTick(function () {
428
+ RES.apply(null, args)
429
+ })
430
+ } else {
431
+ delete reqs[key]
432
+ }
433
+ }
434
+ })
435
+ }
436
+
437
+ function slice (args) {
438
+ var length = args.length
439
+ var array = []
440
+
441
+ for (var i = 0; i < length; i++) array[i] = args[i]
442
+ return array
443
+ }
444
+
445
+
446
+ /***/ }),
447
+
448
+ /***/ 919:
449
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
450
+
451
+ try {
452
+ var util = __nccwpck_require__(837);
453
+ /* istanbul ignore next */
454
+ if (typeof util.inherits !== 'function') throw '';
455
+ module.exports = util.inherits;
456
+ } catch (e) {
457
+ /* istanbul ignore next */
458
+ module.exports = __nccwpck_require__(526);
459
+ }
460
+
461
+
462
+ /***/ }),
463
+
464
+ /***/ 526:
465
+ /***/ (function(module) {
466
+
467
+ if (typeof Object.create === 'function') {
468
+ // implementation from standard node.js 'util' module
469
+ module.exports = function inherits(ctor, superCtor) {
470
+ if (superCtor) {
471
+ ctor.super_ = superCtor
472
+ ctor.prototype = Object.create(superCtor.prototype, {
473
+ constructor: {
474
+ value: ctor,
475
+ enumerable: false,
476
+ writable: true,
477
+ configurable: true
478
+ }
479
+ })
480
+ }
481
+ };
482
+ } else {
483
+ // old school shim for old browsers
484
+ module.exports = function inherits(ctor, superCtor) {
485
+ if (superCtor) {
486
+ ctor.super_ = superCtor
487
+ var TempCtor = function () {}
488
+ TempCtor.prototype = superCtor.prototype
489
+ ctor.prototype = new TempCtor()
490
+ ctor.prototype.constructor = ctor
491
+ }
492
+ }
493
+ }
494
+
495
+
496
+ /***/ }),
497
+
498
+ /***/ 197:
499
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
500
+
501
+ var wrappy = __nccwpck_require__(586)
502
+ module.exports = wrappy(once)
503
+ module.exports.strict = wrappy(onceStrict)
504
+
505
+ once.proto = once(function () {
506
+ Object.defineProperty(Function.prototype, 'once', {
507
+ value: function () {
508
+ return once(this)
509
+ },
510
+ configurable: true
511
+ })
512
+
513
+ Object.defineProperty(Function.prototype, 'onceStrict', {
514
+ value: function () {
515
+ return onceStrict(this)
516
+ },
517
+ configurable: true
518
+ })
519
+ })
520
+
521
+ function once (fn) {
522
+ var f = function () {
523
+ if (f.called) return f.value
524
+ f.called = true
525
+ return f.value = fn.apply(this, arguments)
526
+ }
527
+ f.called = false
528
+ return f
529
+ }
530
+
531
+ function onceStrict (fn) {
532
+ var f = function () {
533
+ if (f.called)
534
+ throw new Error(f.onceError)
535
+ f.called = true
536
+ return f.value = fn.apply(this, arguments)
537
+ }
538
+ var name = fn.name || 'Function wrapped with `once`'
539
+ f.onceError = name + " shouldn't be called more than once"
540
+ f.called = false
541
+ return f
542
+ }
543
+
544
+
545
+ /***/ }),
546
+
547
+ /***/ 586:
548
+ /***/ (function(module) {
549
+
550
+ // Returns a wrapper function that returns a wrapped callback
551
+ // The wrapper function should do some stuff, and return a
552
+ // presumably different callback function.
553
+ // This makes sure that own properties are retained, so that
554
+ // decorations and such are not lost along the way.
555
+ module.exports = wrappy
556
+ function wrappy (fn, cb) {
557
+ if (fn && cb) return wrappy(fn)(cb)
558
+
559
+ if (typeof fn !== 'function')
560
+ throw new TypeError('need wrapper function')
561
+
562
+ Object.keys(fn).forEach(function (k) {
563
+ wrapper[k] = fn[k]
564
+ })
565
+
566
+ return wrapper
567
+
568
+ function wrapper() {
569
+ var args = new Array(arguments.length)
570
+ for (var i = 0; i < args.length; i++) {
571
+ args[i] = arguments[i]
572
+ }
573
+ var ret = fn.apply(this, args)
574
+ var cb = args[args.length-1]
575
+ if (typeof ret === 'function' && ret !== cb) {
576
+ Object.keys(cb).forEach(function (k) {
577
+ ret[k] = cb[k]
578
+ })
579
+ }
580
+ return ret
581
+ }
582
+ }
583
+
584
+
585
+ /***/ }),
586
+
587
+ /***/ 686:
588
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
589
+
590
+ exports.setopts = setopts
591
+ exports.ownProp = ownProp
592
+ exports.makeAbs = makeAbs
593
+ exports.finish = finish
594
+ exports.mark = mark
595
+ exports.isIgnored = isIgnored
596
+ exports.childrenIgnored = childrenIgnored
597
+
598
+ function ownProp (obj, field) {
599
+ return Object.prototype.hasOwnProperty.call(obj, field)
600
+ }
601
+
602
+ var fs = __nccwpck_require__(147)
603
+ var path = __nccwpck_require__(17)
604
+ var minimatch = __nccwpck_require__(480)
605
+ var isAbsolute = (__nccwpck_require__(17).isAbsolute)
606
+ var Minimatch = minimatch.Minimatch
607
+
608
+ function alphasort (a, b) {
609
+ return a.localeCompare(b, 'en')
610
+ }
611
+
612
+ function setupIgnores (self, options) {
613
+ self.ignore = options.ignore || []
614
+
615
+ if (!Array.isArray(self.ignore))
616
+ self.ignore = [self.ignore]
617
+
618
+ if (self.ignore.length) {
619
+ self.ignore = self.ignore.map(ignoreMap)
620
+ }
621
+ }
622
+
623
+ // ignore patterns are always in dot:true mode.
624
+ function ignoreMap (pattern) {
625
+ var gmatcher = null
626
+ if (pattern.slice(-3) === '/**') {
627
+ var gpattern = pattern.replace(/(\/\*\*)+$/, '')
628
+ gmatcher = new Minimatch(gpattern, { dot: true })
629
+ }
630
+
631
+ return {
632
+ matcher: new Minimatch(pattern, { dot: true }),
633
+ gmatcher: gmatcher
634
+ }
635
+ }
636
+
637
+ function setopts (self, pattern, options) {
638
+ if (!options)
639
+ options = {}
640
+
641
+ // base-matching: just use globstar for that.
642
+ if (options.matchBase && -1 === pattern.indexOf("/")) {
643
+ if (options.noglobstar) {
644
+ throw new Error("base matching requires globstar")
645
+ }
646
+ pattern = "**/" + pattern
647
+ }
648
+
649
+ self.windowsPathsNoEscape = !!options.windowsPathsNoEscape ||
650
+ options.allowWindowsEscape === false
651
+ if (self.windowsPathsNoEscape) {
652
+ pattern = pattern.replace(/\\/g, '/')
653
+ }
654
+
655
+ self.silent = !!options.silent
656
+ self.pattern = pattern
657
+ self.strict = options.strict !== false
658
+ self.realpath = !!options.realpath
659
+ self.realpathCache = options.realpathCache || Object.create(null)
660
+ self.follow = !!options.follow
661
+ self.dot = !!options.dot
662
+ self.mark = !!options.mark
663
+ self.nodir = !!options.nodir
664
+ if (self.nodir)
665
+ self.mark = true
666
+ self.sync = !!options.sync
667
+ self.nounique = !!options.nounique
668
+ self.nonull = !!options.nonull
669
+ self.nosort = !!options.nosort
670
+ self.nocase = !!options.nocase
671
+ self.stat = !!options.stat
672
+ self.noprocess = !!options.noprocess
673
+ self.absolute = !!options.absolute
674
+ self.fs = options.fs || fs
675
+
676
+ self.maxLength = options.maxLength || Infinity
677
+ self.cache = options.cache || Object.create(null)
678
+ self.statCache = options.statCache || Object.create(null)
679
+ self.symlinks = options.symlinks || Object.create(null)
680
+
681
+ setupIgnores(self, options)
682
+
683
+ self.changedCwd = false
684
+ var cwd = process.cwd()
685
+ if (!ownProp(options, "cwd"))
686
+ self.cwd = path.resolve(cwd)
687
+ else {
688
+ self.cwd = path.resolve(options.cwd)
689
+ self.changedCwd = self.cwd !== cwd
690
+ }
691
+
692
+ self.root = options.root || path.resolve(self.cwd, "/")
693
+ self.root = path.resolve(self.root)
694
+
695
+ // TODO: is an absolute `cwd` supposed to be resolved against `root`?
696
+ // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
697
+ self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
698
+ self.nomount = !!options.nomount
699
+
700
+ if (process.platform === "win32") {
701
+ self.root = self.root.replace(/\\/g, "/")
702
+ self.cwd = self.cwd.replace(/\\/g, "/")
703
+ self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
704
+ }
705
+
706
+ // disable comments and negation in Minimatch.
707
+ // Note that they are not supported in Glob itself anyway.
708
+ options.nonegate = true
709
+ options.nocomment = true
710
+
711
+ self.minimatch = new Minimatch(pattern, options)
712
+ self.options = self.minimatch.options
713
+ }
714
+
715
+ function finish (self) {
716
+ var nou = self.nounique
717
+ var all = nou ? [] : Object.create(null)
718
+
719
+ for (var i = 0, l = self.matches.length; i < l; i ++) {
720
+ var matches = self.matches[i]
721
+ if (!matches || Object.keys(matches).length === 0) {
722
+ if (self.nonull) {
723
+ // do like the shell, and spit out the literal glob
724
+ var literal = self.minimatch.globSet[i]
725
+ if (nou)
726
+ all.push(literal)
727
+ else
728
+ all[literal] = true
729
+ }
730
+ } else {
731
+ // had matches
732
+ var m = Object.keys(matches)
733
+ if (nou)
734
+ all.push.apply(all, m)
735
+ else
736
+ m.forEach(function (m) {
737
+ all[m] = true
738
+ })
739
+ }
740
+ }
741
+
742
+ if (!nou)
743
+ all = Object.keys(all)
744
+
745
+ if (!self.nosort)
746
+ all = all.sort(alphasort)
747
+
748
+ // at *some* point we statted all of these
749
+ if (self.mark) {
750
+ for (var i = 0; i < all.length; i++) {
751
+ all[i] = self._mark(all[i])
752
+ }
753
+ if (self.nodir) {
754
+ all = all.filter(function (e) {
755
+ var notDir = !(/\/$/.test(e))
756
+ var c = self.cache[e] || self.cache[makeAbs(self, e)]
757
+ if (notDir && c)
758
+ notDir = c !== 'DIR' && !Array.isArray(c)
759
+ return notDir
760
+ })
761
+ }
762
+ }
763
+
764
+ if (self.ignore.length)
765
+ all = all.filter(function(m) {
766
+ return !isIgnored(self, m)
767
+ })
768
+
769
+ self.found = all
770
+ }
771
+
772
+ function mark (self, p) {
773
+ var abs = makeAbs(self, p)
774
+ var c = self.cache[abs]
775
+ var m = p
776
+ if (c) {
777
+ var isDir = c === 'DIR' || Array.isArray(c)
778
+ var slash = p.slice(-1) === '/'
779
+
780
+ if (isDir && !slash)
781
+ m += '/'
782
+ else if (!isDir && slash)
783
+ m = m.slice(0, -1)
784
+
785
+ if (m !== p) {
786
+ var mabs = makeAbs(self, m)
787
+ self.statCache[mabs] = self.statCache[abs]
788
+ self.cache[mabs] = self.cache[abs]
789
+ }
790
+ }
791
+
792
+ return m
793
+ }
794
+
795
+ // lotta situps...
796
+ function makeAbs (self, f) {
797
+ var abs = f
798
+ if (f.charAt(0) === '/') {
799
+ abs = path.join(self.root, f)
800
+ } else if (isAbsolute(f) || f === '') {
801
+ abs = f
802
+ } else if (self.changedCwd) {
803
+ abs = path.resolve(self.cwd, f)
804
+ } else {
805
+ abs = path.resolve(f)
806
+ }
807
+
808
+ if (process.platform === 'win32')
809
+ abs = abs.replace(/\\/g, '/')
810
+
811
+ return abs
812
+ }
813
+
814
+
815
+ // Return true, if pattern ends with globstar '**', for the accompanying parent directory.
816
+ // Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents
817
+ function isIgnored (self, path) {
818
+ if (!self.ignore.length)
819
+ return false
820
+
821
+ return self.ignore.some(function(item) {
822
+ return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
823
+ })
824
+ }
825
+
826
+ function childrenIgnored (self, path) {
827
+ if (!self.ignore.length)
828
+ return false
829
+
830
+ return self.ignore.some(function(item) {
831
+ return !!(item.gmatcher && item.gmatcher.match(path))
832
+ })
833
+ }
834
+
835
+
836
+ /***/ }),
837
+
838
+ /***/ 104:
839
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
840
+
841
+ // Approach:
842
+ //
843
+ // 1. Get the minimatch set
844
+ // 2. For each pattern in the set, PROCESS(pattern, false)
845
+ // 3. Store matches per-set, then uniq them
846
+ //
847
+ // PROCESS(pattern, inGlobStar)
848
+ // Get the first [n] items from pattern that are all strings
849
+ // Join these together. This is PREFIX.
850
+ // If there is no more remaining, then stat(PREFIX) and
851
+ // add to matches if it succeeds. END.
852
+ //
853
+ // If inGlobStar and PREFIX is symlink and points to dir
854
+ // set ENTRIES = []
855
+ // else readdir(PREFIX) as ENTRIES
856
+ // If fail, END
857
+ //
858
+ // with ENTRIES
859
+ // If pattern[n] is GLOBSTAR
860
+ // // handle the case where the globstar match is empty
861
+ // // by pruning it out, and testing the resulting pattern
862
+ // PROCESS(pattern[0..n] + pattern[n+1 .. $], false)
863
+ // // handle other cases.
864
+ // for ENTRY in ENTRIES (not dotfiles)
865
+ // // attach globstar + tail onto the entry
866
+ // // Mark that this entry is a globstar match
867
+ // PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)
868
+ //
869
+ // else // not globstar
870
+ // for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)
871
+ // Test ENTRY against pattern[n]
872
+ // If fails, continue
873
+ // If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
874
+ //
875
+ // Caveat:
876
+ // Cache all stats and readdirs results to minimize syscall. Since all
877
+ // we ever care about is existence and directory-ness, we can just keep
878
+ // `true` for files, and [children,...] for directories, or `false` for
879
+ // things that don't exist.
880
+
881
+ module.exports = glob
882
+
883
+ var rp = __nccwpck_require__(945)
884
+ var minimatch = __nccwpck_require__(480)
885
+ var Minimatch = minimatch.Minimatch
886
+ var inherits = __nccwpck_require__(919)
887
+ var EE = (__nccwpck_require__(361).EventEmitter)
888
+ var path = __nccwpck_require__(17)
889
+ var assert = __nccwpck_require__(491)
890
+ var isAbsolute = (__nccwpck_require__(17).isAbsolute)
891
+ var globSync = __nccwpck_require__(231)
892
+ var common = __nccwpck_require__(686)
893
+ var setopts = common.setopts
894
+ var ownProp = common.ownProp
895
+ var inflight = __nccwpck_require__(442)
896
+ var util = __nccwpck_require__(837)
897
+ var childrenIgnored = common.childrenIgnored
898
+ var isIgnored = common.isIgnored
899
+
900
+ var once = __nccwpck_require__(197)
901
+
902
+ function glob (pattern, options, cb) {
903
+ if (typeof options === 'function') cb = options, options = {}
904
+ if (!options) options = {}
905
+
906
+ if (options.sync) {
907
+ if (cb)
908
+ throw new TypeError('callback provided to sync glob')
909
+ return globSync(pattern, options)
910
+ }
911
+
912
+ return new Glob(pattern, options, cb)
913
+ }
914
+
915
+ glob.sync = globSync
916
+ var GlobSync = glob.GlobSync = globSync.GlobSync
917
+
918
+ // old api surface
919
+ glob.glob = glob
920
+
921
+ function extend (origin, add) {
922
+ if (add === null || typeof add !== 'object') {
923
+ return origin
924
+ }
925
+
926
+ var keys = Object.keys(add)
927
+ var i = keys.length
928
+ while (i--) {
929
+ origin[keys[i]] = add[keys[i]]
930
+ }
931
+ return origin
932
+ }
933
+
934
+ glob.hasMagic = function (pattern, options_) {
935
+ var options = extend({}, options_)
936
+ options.noprocess = true
937
+
938
+ var g = new Glob(pattern, options)
939
+ var set = g.minimatch.set
940
+
941
+ if (!pattern)
942
+ return false
943
+
944
+ if (set.length > 1)
945
+ return true
946
+
947
+ for (var j = 0; j < set[0].length; j++) {
948
+ if (typeof set[0][j] !== 'string')
949
+ return true
950
+ }
951
+
952
+ return false
953
+ }
954
+
955
+ glob.Glob = Glob
956
+ inherits(Glob, EE)
957
+ function Glob (pattern, options, cb) {
958
+ if (typeof options === 'function') {
959
+ cb = options
960
+ options = null
961
+ }
962
+
963
+ if (options && options.sync) {
964
+ if (cb)
965
+ throw new TypeError('callback provided to sync glob')
966
+ return new GlobSync(pattern, options)
967
+ }
968
+
969
+ if (!(this instanceof Glob))
970
+ return new Glob(pattern, options, cb)
971
+
972
+ setopts(this, pattern, options)
973
+ this._didRealPath = false
974
+
975
+ // process each pattern in the minimatch set
976
+ var n = this.minimatch.set.length
977
+
978
+ // The matches are stored as {<filename>: true,...} so that
979
+ // duplicates are automagically pruned.
980
+ // Later, we do an Object.keys() on these.
981
+ // Keep them as a list so we can fill in when nonull is set.
982
+ this.matches = new Array(n)
983
+
984
+ if (typeof cb === 'function') {
985
+ cb = once(cb)
986
+ this.on('error', cb)
987
+ this.on('end', function (matches) {
988
+ cb(null, matches)
989
+ })
990
+ }
991
+
992
+ var self = this
993
+ this._processing = 0
994
+
995
+ this._emitQueue = []
996
+ this._processQueue = []
997
+ this.paused = false
998
+
999
+ if (this.noprocess)
1000
+ return this
1001
+
1002
+ if (n === 0)
1003
+ return done()
1004
+
1005
+ var sync = true
1006
+ for (var i = 0; i < n; i ++) {
1007
+ this._process(this.minimatch.set[i], i, false, done)
1008
+ }
1009
+ sync = false
1010
+
1011
+ function done () {
1012
+ --self._processing
1013
+ if (self._processing <= 0) {
1014
+ if (sync) {
1015
+ process.nextTick(function () {
1016
+ self._finish()
1017
+ })
1018
+ } else {
1019
+ self._finish()
1020
+ }
1021
+ }
1022
+ }
1023
+ }
1024
+
1025
+ Glob.prototype._finish = function () {
1026
+ assert(this instanceof Glob)
1027
+ if (this.aborted)
1028
+ return
1029
+
1030
+ if (this.realpath && !this._didRealpath)
1031
+ return this._realpath()
1032
+
1033
+ common.finish(this)
1034
+ this.emit('end', this.found)
1035
+ }
1036
+
1037
+ Glob.prototype._realpath = function () {
1038
+ if (this._didRealpath)
1039
+ return
1040
+
1041
+ this._didRealpath = true
1042
+
1043
+ var n = this.matches.length
1044
+ if (n === 0)
1045
+ return this._finish()
1046
+
1047
+ var self = this
1048
+ for (var i = 0; i < this.matches.length; i++)
1049
+ this._realpathSet(i, next)
1050
+
1051
+ function next () {
1052
+ if (--n === 0)
1053
+ self._finish()
1054
+ }
1055
+ }
1056
+
1057
+ Glob.prototype._realpathSet = function (index, cb) {
1058
+ var matchset = this.matches[index]
1059
+ if (!matchset)
1060
+ return cb()
1061
+
1062
+ var found = Object.keys(matchset)
1063
+ var self = this
1064
+ var n = found.length
1065
+
1066
+ if (n === 0)
1067
+ return cb()
1068
+
1069
+ var set = this.matches[index] = Object.create(null)
1070
+ found.forEach(function (p, i) {
1071
+ // If there's a problem with the stat, then it means that
1072
+ // one or more of the links in the realpath couldn't be
1073
+ // resolved. just return the abs value in that case.
1074
+ p = self._makeAbs(p)
1075
+ rp.realpath(p, self.realpathCache, function (er, real) {
1076
+ if (!er)
1077
+ set[real] = true
1078
+ else if (er.syscall === 'stat')
1079
+ set[p] = true
1080
+ else
1081
+ self.emit('error', er) // srsly wtf right here
1082
+
1083
+ if (--n === 0) {
1084
+ self.matches[index] = set
1085
+ cb()
1086
+ }
1087
+ })
1088
+ })
1089
+ }
1090
+
1091
+ Glob.prototype._mark = function (p) {
1092
+ return common.mark(this, p)
1093
+ }
1094
+
1095
+ Glob.prototype._makeAbs = function (f) {
1096
+ return common.makeAbs(this, f)
1097
+ }
1098
+
1099
+ Glob.prototype.abort = function () {
1100
+ this.aborted = true
1101
+ this.emit('abort')
1102
+ }
1103
+
1104
+ Glob.prototype.pause = function () {
1105
+ if (!this.paused) {
1106
+ this.paused = true
1107
+ this.emit('pause')
1108
+ }
1109
+ }
1110
+
1111
+ Glob.prototype.resume = function () {
1112
+ if (this.paused) {
1113
+ this.emit('resume')
1114
+ this.paused = false
1115
+ if (this._emitQueue.length) {
1116
+ var eq = this._emitQueue.slice(0)
1117
+ this._emitQueue.length = 0
1118
+ for (var i = 0; i < eq.length; i ++) {
1119
+ var e = eq[i]
1120
+ this._emitMatch(e[0], e[1])
1121
+ }
1122
+ }
1123
+ if (this._processQueue.length) {
1124
+ var pq = this._processQueue.slice(0)
1125
+ this._processQueue.length = 0
1126
+ for (var i = 0; i < pq.length; i ++) {
1127
+ var p = pq[i]
1128
+ this._processing--
1129
+ this._process(p[0], p[1], p[2], p[3])
1130
+ }
1131
+ }
1132
+ }
1133
+ }
1134
+
1135
+ Glob.prototype._process = function (pattern, index, inGlobStar, cb) {
1136
+ assert(this instanceof Glob)
1137
+ assert(typeof cb === 'function')
1138
+
1139
+ if (this.aborted)
1140
+ return
1141
+
1142
+ this._processing++
1143
+ if (this.paused) {
1144
+ this._processQueue.push([pattern, index, inGlobStar, cb])
1145
+ return
1146
+ }
1147
+
1148
+ //console.error('PROCESS %d', this._processing, pattern)
1149
+
1150
+ // Get the first [n] parts of pattern that are all strings.
1151
+ var n = 0
1152
+ while (typeof pattern[n] === 'string') {
1153
+ n ++
1154
+ }
1155
+ // now n is the index of the first one that is *not* a string.
1156
+
1157
+ // see if there's anything else
1158
+ var prefix
1159
+ switch (n) {
1160
+ // if not, then this is rather simple
1161
+ case pattern.length:
1162
+ this._processSimple(pattern.join('/'), index, cb)
1163
+ return
1164
+
1165
+ case 0:
1166
+ // pattern *starts* with some non-trivial item.
1167
+ // going to readdir(cwd), but not include the prefix in matches.
1168
+ prefix = null
1169
+ break
1170
+
1171
+ default:
1172
+ // pattern has some string bits in the front.
1173
+ // whatever it starts with, whether that's 'absolute' like /foo/bar,
1174
+ // or 'relative' like '../baz'
1175
+ prefix = pattern.slice(0, n).join('/')
1176
+ break
1177
+ }
1178
+
1179
+ var remain = pattern.slice(n)
1180
+
1181
+ // get the list of entries.
1182
+ var read
1183
+ if (prefix === null)
1184
+ read = '.'
1185
+ else if (isAbsolute(prefix) ||
1186
+ isAbsolute(pattern.map(function (p) {
1187
+ return typeof p === 'string' ? p : '[*]'
1188
+ }).join('/'))) {
1189
+ if (!prefix || !isAbsolute(prefix))
1190
+ prefix = '/' + prefix
1191
+ read = prefix
1192
+ } else
1193
+ read = prefix
1194
+
1195
+ var abs = this._makeAbs(read)
1196
+
1197
+ //if ignored, skip _processing
1198
+ if (childrenIgnored(this, read))
1199
+ return cb()
1200
+
1201
+ var isGlobStar = remain[0] === minimatch.GLOBSTAR
1202
+ if (isGlobStar)
1203
+ this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)
1204
+ else
1205
+ this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)
1206
+ }
1207
+
1208
+ Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {
1209
+ var self = this
1210
+ this._readdir(abs, inGlobStar, function (er, entries) {
1211
+ return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
1212
+ })
1213
+ }
1214
+
1215
+ Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
1216
+
1217
+ // if the abs isn't a dir, then nothing can match!
1218
+ if (!entries)
1219
+ return cb()
1220
+
1221
+ // It will only match dot entries if it starts with a dot, or if
1222
+ // dot is set. Stuff like @(.foo|.bar) isn't allowed.
1223
+ var pn = remain[0]
1224
+ var negate = !!this.minimatch.negate
1225
+ var rawGlob = pn._glob
1226
+ var dotOk = this.dot || rawGlob.charAt(0) === '.'
1227
+
1228
+ var matchedEntries = []
1229
+ for (var i = 0; i < entries.length; i++) {
1230
+ var e = entries[i]
1231
+ if (e.charAt(0) !== '.' || dotOk) {
1232
+ var m
1233
+ if (negate && !prefix) {
1234
+ m = !e.match(pn)
1235
+ } else {
1236
+ m = e.match(pn)
1237
+ }
1238
+ if (m)
1239
+ matchedEntries.push(e)
1240
+ }
1241
+ }
1242
+
1243
+ //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)
1244
+
1245
+ var len = matchedEntries.length
1246
+ // If there are no matched entries, then nothing matches.
1247
+ if (len === 0)
1248
+ return cb()
1249
+
1250
+ // if this is the last remaining pattern bit, then no need for
1251
+ // an additional stat *unless* the user has specified mark or
1252
+ // stat explicitly. We know they exist, since readdir returned
1253
+ // them.
1254
+
1255
+ if (remain.length === 1 && !this.mark && !this.stat) {
1256
+ if (!this.matches[index])
1257
+ this.matches[index] = Object.create(null)
1258
+
1259
+ for (var i = 0; i < len; i ++) {
1260
+ var e = matchedEntries[i]
1261
+ if (prefix) {
1262
+ if (prefix !== '/')
1263
+ e = prefix + '/' + e
1264
+ else
1265
+ e = prefix + e
1266
+ }
1267
+
1268
+ if (e.charAt(0) === '/' && !this.nomount) {
1269
+ e = path.join(this.root, e)
1270
+ }
1271
+ this._emitMatch(index, e)
1272
+ }
1273
+ // This was the last one, and no stats were needed
1274
+ return cb()
1275
+ }
1276
+
1277
+ // now test all matched entries as stand-ins for that part
1278
+ // of the pattern.
1279
+ remain.shift()
1280
+ for (var i = 0; i < len; i ++) {
1281
+ var e = matchedEntries[i]
1282
+ var newPattern
1283
+ if (prefix) {
1284
+ if (prefix !== '/')
1285
+ e = prefix + '/' + e
1286
+ else
1287
+ e = prefix + e
1288
+ }
1289
+ this._process([e].concat(remain), index, inGlobStar, cb)
1290
+ }
1291
+ cb()
1292
+ }
1293
+
1294
+ Glob.prototype._emitMatch = function (index, e) {
1295
+ if (this.aborted)
1296
+ return
1297
+
1298
+ if (isIgnored(this, e))
1299
+ return
1300
+
1301
+ if (this.paused) {
1302
+ this._emitQueue.push([index, e])
1303
+ return
1304
+ }
1305
+
1306
+ var abs = isAbsolute(e) ? e : this._makeAbs(e)
1307
+
1308
+ if (this.mark)
1309
+ e = this._mark(e)
1310
+
1311
+ if (this.absolute)
1312
+ e = abs
1313
+
1314
+ if (this.matches[index][e])
1315
+ return
1316
+
1317
+ if (this.nodir) {
1318
+ var c = this.cache[abs]
1319
+ if (c === 'DIR' || Array.isArray(c))
1320
+ return
1321
+ }
1322
+
1323
+ this.matches[index][e] = true
1324
+
1325
+ var st = this.statCache[abs]
1326
+ if (st)
1327
+ this.emit('stat', e, st)
1328
+
1329
+ this.emit('match', e)
1330
+ }
1331
+
1332
+ Glob.prototype._readdirInGlobStar = function (abs, cb) {
1333
+ if (this.aborted)
1334
+ return
1335
+
1336
+ // follow all symlinked directories forever
1337
+ // just proceed as if this is a non-globstar situation
1338
+ if (this.follow)
1339
+ return this._readdir(abs, false, cb)
1340
+
1341
+ var lstatkey = 'lstat\0' + abs
1342
+ var self = this
1343
+ var lstatcb = inflight(lstatkey, lstatcb_)
1344
+
1345
+ if (lstatcb)
1346
+ self.fs.lstat(abs, lstatcb)
1347
+
1348
+ function lstatcb_ (er, lstat) {
1349
+ if (er && er.code === 'ENOENT')
1350
+ return cb()
1351
+
1352
+ var isSym = lstat && lstat.isSymbolicLink()
1353
+ self.symlinks[abs] = isSym
1354
+
1355
+ // If it's not a symlink or a dir, then it's definitely a regular file.
1356
+ // don't bother doing a readdir in that case.
1357
+ if (!isSym && lstat && !lstat.isDirectory()) {
1358
+ self.cache[abs] = 'FILE'
1359
+ cb()
1360
+ } else
1361
+ self._readdir(abs, false, cb)
1362
+ }
1363
+ }
1364
+
1365
+ Glob.prototype._readdir = function (abs, inGlobStar, cb) {
1366
+ if (this.aborted)
1367
+ return
1368
+
1369
+ cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb)
1370
+ if (!cb)
1371
+ return
1372
+
1373
+ //console.error('RD %j %j', +inGlobStar, abs)
1374
+ if (inGlobStar && !ownProp(this.symlinks, abs))
1375
+ return this._readdirInGlobStar(abs, cb)
1376
+
1377
+ if (ownProp(this.cache, abs)) {
1378
+ var c = this.cache[abs]
1379
+ if (!c || c === 'FILE')
1380
+ return cb()
1381
+
1382
+ if (Array.isArray(c))
1383
+ return cb(null, c)
1384
+ }
1385
+
1386
+ var self = this
1387
+ self.fs.readdir(abs, readdirCb(this, abs, cb))
1388
+ }
1389
+
1390
+ function readdirCb (self, abs, cb) {
1391
+ return function (er, entries) {
1392
+ if (er)
1393
+ self._readdirError(abs, er, cb)
1394
+ else
1395
+ self._readdirEntries(abs, entries, cb)
1396
+ }
1397
+ }
1398
+
1399
+ Glob.prototype._readdirEntries = function (abs, entries, cb) {
1400
+ if (this.aborted)
1401
+ return
1402
+
1403
+ // if we haven't asked to stat everything, then just
1404
+ // assume that everything in there exists, so we can avoid
1405
+ // having to stat it a second time.
1406
+ if (!this.mark && !this.stat) {
1407
+ for (var i = 0; i < entries.length; i ++) {
1408
+ var e = entries[i]
1409
+ if (abs === '/')
1410
+ e = abs + e
1411
+ else
1412
+ e = abs + '/' + e
1413
+ this.cache[e] = true
1414
+ }
1415
+ }
1416
+
1417
+ this.cache[abs] = entries
1418
+ return cb(null, entries)
1419
+ }
1420
+
1421
+ Glob.prototype._readdirError = function (f, er, cb) {
1422
+ if (this.aborted)
1423
+ return
1424
+
1425
+ // handle errors, and cache the information
1426
+ switch (er.code) {
1427
+ case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
1428
+ case 'ENOTDIR': // totally normal. means it *does* exist.
1429
+ var abs = this._makeAbs(f)
1430
+ this.cache[abs] = 'FILE'
1431
+ if (abs === this.cwdAbs) {
1432
+ var error = new Error(er.code + ' invalid cwd ' + this.cwd)
1433
+ error.path = this.cwd
1434
+ error.code = er.code
1435
+ this.emit('error', error)
1436
+ this.abort()
1437
+ }
1438
+ break
1439
+
1440
+ case 'ENOENT': // not terribly unusual
1441
+ case 'ELOOP':
1442
+ case 'ENAMETOOLONG':
1443
+ case 'UNKNOWN':
1444
+ this.cache[this._makeAbs(f)] = false
1445
+ break
1446
+
1447
+ default: // some unusual error. Treat as failure.
1448
+ this.cache[this._makeAbs(f)] = false
1449
+ if (this.strict) {
1450
+ this.emit('error', er)
1451
+ // If the error is handled, then we abort
1452
+ // if not, we threw out of here
1453
+ this.abort()
1454
+ }
1455
+ if (!this.silent)
1456
+ console.error('glob error', er)
1457
+ break
1458
+ }
1459
+
1460
+ return cb()
1461
+ }
1462
+
1463
+ Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {
1464
+ var self = this
1465
+ this._readdir(abs, inGlobStar, function (er, entries) {
1466
+ self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
1467
+ })
1468
+ }
1469
+
1470
+
1471
+ Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
1472
+ //console.error('pgs2', prefix, remain[0], entries)
1473
+
1474
+ // no entries means not a dir, so it can never have matches
1475
+ // foo.txt/** doesn't match foo.txt
1476
+ if (!entries)
1477
+ return cb()
1478
+
1479
+ // test without the globstar, and with every child both below
1480
+ // and replacing the globstar.
1481
+ var remainWithoutGlobStar = remain.slice(1)
1482
+ var gspref = prefix ? [ prefix ] : []
1483
+ var noGlobStar = gspref.concat(remainWithoutGlobStar)
1484
+
1485
+ // the noGlobStar pattern exits the inGlobStar state
1486
+ this._process(noGlobStar, index, false, cb)
1487
+
1488
+ var isSym = this.symlinks[abs]
1489
+ var len = entries.length
1490
+
1491
+ // If it's a symlink, and we're in a globstar, then stop
1492
+ if (isSym && inGlobStar)
1493
+ return cb()
1494
+
1495
+ for (var i = 0; i < len; i++) {
1496
+ var e = entries[i]
1497
+ if (e.charAt(0) === '.' && !this.dot)
1498
+ continue
1499
+
1500
+ // these two cases enter the inGlobStar state
1501
+ var instead = gspref.concat(entries[i], remainWithoutGlobStar)
1502
+ this._process(instead, index, true, cb)
1503
+
1504
+ var below = gspref.concat(entries[i], remain)
1505
+ this._process(below, index, true, cb)
1506
+ }
1507
+
1508
+ cb()
1509
+ }
1510
+
1511
+ Glob.prototype._processSimple = function (prefix, index, cb) {
1512
+ // XXX review this. Shouldn't it be doing the mounting etc
1513
+ // before doing stat? kinda weird?
1514
+ var self = this
1515
+ this._stat(prefix, function (er, exists) {
1516
+ self._processSimple2(prefix, index, er, exists, cb)
1517
+ })
1518
+ }
1519
+ Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
1520
+
1521
+ //console.error('ps2', prefix, exists)
1522
+
1523
+ if (!this.matches[index])
1524
+ this.matches[index] = Object.create(null)
1525
+
1526
+ // If it doesn't exist, then just mark the lack of results
1527
+ if (!exists)
1528
+ return cb()
1529
+
1530
+ if (prefix && isAbsolute(prefix) && !this.nomount) {
1531
+ var trail = /[\/\\]$/.test(prefix)
1532
+ if (prefix.charAt(0) === '/') {
1533
+ prefix = path.join(this.root, prefix)
1534
+ } else {
1535
+ prefix = path.resolve(this.root, prefix)
1536
+ if (trail)
1537
+ prefix += '/'
1538
+ }
1539
+ }
1540
+
1541
+ if (process.platform === 'win32')
1542
+ prefix = prefix.replace(/\\/g, '/')
1543
+
1544
+ // Mark this as a match
1545
+ this._emitMatch(index, prefix)
1546
+ cb()
1547
+ }
1548
+
1549
+ // Returns either 'DIR', 'FILE', or false
1550
+ Glob.prototype._stat = function (f, cb) {
1551
+ var abs = this._makeAbs(f)
1552
+ var needDir = f.slice(-1) === '/'
1553
+
1554
+ if (f.length > this.maxLength)
1555
+ return cb()
1556
+
1557
+ if (!this.stat && ownProp(this.cache, abs)) {
1558
+ var c = this.cache[abs]
1559
+
1560
+ if (Array.isArray(c))
1561
+ c = 'DIR'
1562
+
1563
+ // It exists, but maybe not how we need it
1564
+ if (!needDir || c === 'DIR')
1565
+ return cb(null, c)
1566
+
1567
+ if (needDir && c === 'FILE')
1568
+ return cb()
1569
+
1570
+ // otherwise we have to stat, because maybe c=true
1571
+ // if we know it exists, but not what it is.
1572
+ }
1573
+
1574
+ var exists
1575
+ var stat = this.statCache[abs]
1576
+ if (stat !== undefined) {
1577
+ if (stat === false)
1578
+ return cb(null, stat)
1579
+ else {
1580
+ var type = stat.isDirectory() ? 'DIR' : 'FILE'
1581
+ if (needDir && type === 'FILE')
1582
+ return cb()
1583
+ else
1584
+ return cb(null, type, stat)
1585
+ }
1586
+ }
1587
+
1588
+ var self = this
1589
+ var statcb = inflight('stat\0' + abs, lstatcb_)
1590
+ if (statcb)
1591
+ self.fs.lstat(abs, statcb)
1592
+
1593
+ function lstatcb_ (er, lstat) {
1594
+ if (lstat && lstat.isSymbolicLink()) {
1595
+ // If it's a symlink, then treat it as the target, unless
1596
+ // the target does not exist, then treat it as a file.
1597
+ return self.fs.stat(abs, function (er, stat) {
1598
+ if (er)
1599
+ self._stat2(f, abs, null, lstat, cb)
1600
+ else
1601
+ self._stat2(f, abs, er, stat, cb)
1602
+ })
1603
+ } else {
1604
+ self._stat2(f, abs, er, lstat, cb)
1605
+ }
1606
+ }
1607
+ }
1608
+
1609
+ Glob.prototype._stat2 = function (f, abs, er, stat, cb) {
1610
+ if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
1611
+ this.statCache[abs] = false
1612
+ return cb()
1613
+ }
1614
+
1615
+ var needDir = f.slice(-1) === '/'
1616
+ this.statCache[abs] = stat
1617
+
1618
+ if (abs.slice(-1) === '/' && stat && !stat.isDirectory())
1619
+ return cb(null, false, stat)
1620
+
1621
+ var c = true
1622
+ if (stat)
1623
+ c = stat.isDirectory() ? 'DIR' : 'FILE'
1624
+ this.cache[abs] = this.cache[abs] || c
1625
+
1626
+ if (needDir && c === 'FILE')
1627
+ return cb()
1628
+
1629
+ return cb(null, c, stat)
1630
+ }
1631
+
1632
+
1633
+ /***/ }),
1634
+
1635
+ /***/ 231:
1636
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
1637
+
1638
+ module.exports = globSync
1639
+ globSync.GlobSync = GlobSync
1640
+
1641
+ var rp = __nccwpck_require__(945)
1642
+ var minimatch = __nccwpck_require__(480)
1643
+ var Minimatch = minimatch.Minimatch
1644
+ var Glob = (__nccwpck_require__(104).Glob)
1645
+ var util = __nccwpck_require__(837)
1646
+ var path = __nccwpck_require__(17)
1647
+ var assert = __nccwpck_require__(491)
1648
+ var isAbsolute = (__nccwpck_require__(17).isAbsolute)
1649
+ var common = __nccwpck_require__(686)
1650
+ var setopts = common.setopts
1651
+ var ownProp = common.ownProp
1652
+ var childrenIgnored = common.childrenIgnored
1653
+ var isIgnored = common.isIgnored
1654
+
1655
+ function globSync (pattern, options) {
1656
+ if (typeof options === 'function' || arguments.length === 3)
1657
+ throw new TypeError('callback provided to sync glob\n'+
1658
+ 'See: https://github.com/isaacs/node-glob/issues/167')
1659
+
1660
+ return new GlobSync(pattern, options).found
1661
+ }
1662
+
1663
+ function GlobSync (pattern, options) {
1664
+ if (!pattern)
1665
+ throw new Error('must provide pattern')
1666
+
1667
+ if (typeof options === 'function' || arguments.length === 3)
1668
+ throw new TypeError('callback provided to sync glob\n'+
1669
+ 'See: https://github.com/isaacs/node-glob/issues/167')
1670
+
1671
+ if (!(this instanceof GlobSync))
1672
+ return new GlobSync(pattern, options)
1673
+
1674
+ setopts(this, pattern, options)
1675
+
1676
+ if (this.noprocess)
1677
+ return this
1678
+
1679
+ var n = this.minimatch.set.length
1680
+ this.matches = new Array(n)
1681
+ for (var i = 0; i < n; i ++) {
1682
+ this._process(this.minimatch.set[i], i, false)
1683
+ }
1684
+ this._finish()
1685
+ }
1686
+
1687
+ GlobSync.prototype._finish = function () {
1688
+ assert.ok(this instanceof GlobSync)
1689
+ if (this.realpath) {
1690
+ var self = this
1691
+ this.matches.forEach(function (matchset, index) {
1692
+ var set = self.matches[index] = Object.create(null)
1693
+ for (var p in matchset) {
1694
+ try {
1695
+ p = self._makeAbs(p)
1696
+ var real = rp.realpathSync(p, self.realpathCache)
1697
+ set[real] = true
1698
+ } catch (er) {
1699
+ if (er.syscall === 'stat')
1700
+ set[self._makeAbs(p)] = true
1701
+ else
1702
+ throw er
1703
+ }
1704
+ }
1705
+ })
1706
+ }
1707
+ common.finish(this)
1708
+ }
1709
+
1710
+
1711
+ GlobSync.prototype._process = function (pattern, index, inGlobStar) {
1712
+ assert.ok(this instanceof GlobSync)
1713
+
1714
+ // Get the first [n] parts of pattern that are all strings.
1715
+ var n = 0
1716
+ while (typeof pattern[n] === 'string') {
1717
+ n ++
1718
+ }
1719
+ // now n is the index of the first one that is *not* a string.
1720
+
1721
+ // See if there's anything else
1722
+ var prefix
1723
+ switch (n) {
1724
+ // if not, then this is rather simple
1725
+ case pattern.length:
1726
+ this._processSimple(pattern.join('/'), index)
1727
+ return
1728
+
1729
+ case 0:
1730
+ // pattern *starts* with some non-trivial item.
1731
+ // going to readdir(cwd), but not include the prefix in matches.
1732
+ prefix = null
1733
+ break
1734
+
1735
+ default:
1736
+ // pattern has some string bits in the front.
1737
+ // whatever it starts with, whether that's 'absolute' like /foo/bar,
1738
+ // or 'relative' like '../baz'
1739
+ prefix = pattern.slice(0, n).join('/')
1740
+ break
1741
+ }
1742
+
1743
+ var remain = pattern.slice(n)
1744
+
1745
+ // get the list of entries.
1746
+ var read
1747
+ if (prefix === null)
1748
+ read = '.'
1749
+ else if (isAbsolute(prefix) ||
1750
+ isAbsolute(pattern.map(function (p) {
1751
+ return typeof p === 'string' ? p : '[*]'
1752
+ }).join('/'))) {
1753
+ if (!prefix || !isAbsolute(prefix))
1754
+ prefix = '/' + prefix
1755
+ read = prefix
1756
+ } else
1757
+ read = prefix
1758
+
1759
+ var abs = this._makeAbs(read)
1760
+
1761
+ //if ignored, skip processing
1762
+ if (childrenIgnored(this, read))
1763
+ return
1764
+
1765
+ var isGlobStar = remain[0] === minimatch.GLOBSTAR
1766
+ if (isGlobStar)
1767
+ this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
1768
+ else
1769
+ this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
1770
+ }
1771
+
1772
+
1773
+ GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
1774
+ var entries = this._readdir(abs, inGlobStar)
1775
+
1776
+ // if the abs isn't a dir, then nothing can match!
1777
+ if (!entries)
1778
+ return
1779
+
1780
+ // It will only match dot entries if it starts with a dot, or if
1781
+ // dot is set. Stuff like @(.foo|.bar) isn't allowed.
1782
+ var pn = remain[0]
1783
+ var negate = !!this.minimatch.negate
1784
+ var rawGlob = pn._glob
1785
+ var dotOk = this.dot || rawGlob.charAt(0) === '.'
1786
+
1787
+ var matchedEntries = []
1788
+ for (var i = 0; i < entries.length; i++) {
1789
+ var e = entries[i]
1790
+ if (e.charAt(0) !== '.' || dotOk) {
1791
+ var m
1792
+ if (negate && !prefix) {
1793
+ m = !e.match(pn)
1794
+ } else {
1795
+ m = e.match(pn)
1796
+ }
1797
+ if (m)
1798
+ matchedEntries.push(e)
1799
+ }
1800
+ }
1801
+
1802
+ var len = matchedEntries.length
1803
+ // If there are no matched entries, then nothing matches.
1804
+ if (len === 0)
1805
+ return
1806
+
1807
+ // if this is the last remaining pattern bit, then no need for
1808
+ // an additional stat *unless* the user has specified mark or
1809
+ // stat explicitly. We know they exist, since readdir returned
1810
+ // them.
1811
+
1812
+ if (remain.length === 1 && !this.mark && !this.stat) {
1813
+ if (!this.matches[index])
1814
+ this.matches[index] = Object.create(null)
1815
+
1816
+ for (var i = 0; i < len; i ++) {
1817
+ var e = matchedEntries[i]
1818
+ if (prefix) {
1819
+ if (prefix.slice(-1) !== '/')
1820
+ e = prefix + '/' + e
1821
+ else
1822
+ e = prefix + e
1823
+ }
1824
+
1825
+ if (e.charAt(0) === '/' && !this.nomount) {
1826
+ e = path.join(this.root, e)
1827
+ }
1828
+ this._emitMatch(index, e)
1829
+ }
1830
+ // This was the last one, and no stats were needed
1831
+ return
1832
+ }
1833
+
1834
+ // now test all matched entries as stand-ins for that part
1835
+ // of the pattern.
1836
+ remain.shift()
1837
+ for (var i = 0; i < len; i ++) {
1838
+ var e = matchedEntries[i]
1839
+ var newPattern
1840
+ if (prefix)
1841
+ newPattern = [prefix, e]
1842
+ else
1843
+ newPattern = [e]
1844
+ this._process(newPattern.concat(remain), index, inGlobStar)
1845
+ }
1846
+ }
1847
+
1848
+
1849
+ GlobSync.prototype._emitMatch = function (index, e) {
1850
+ if (isIgnored(this, e))
1851
+ return
1852
+
1853
+ var abs = this._makeAbs(e)
1854
+
1855
+ if (this.mark)
1856
+ e = this._mark(e)
1857
+
1858
+ if (this.absolute) {
1859
+ e = abs
1860
+ }
1861
+
1862
+ if (this.matches[index][e])
1863
+ return
1864
+
1865
+ if (this.nodir) {
1866
+ var c = this.cache[abs]
1867
+ if (c === 'DIR' || Array.isArray(c))
1868
+ return
1869
+ }
1870
+
1871
+ this.matches[index][e] = true
1872
+
1873
+ if (this.stat)
1874
+ this._stat(e)
1875
+ }
1876
+
1877
+
1878
+ GlobSync.prototype._readdirInGlobStar = function (abs) {
1879
+ // follow all symlinked directories forever
1880
+ // just proceed as if this is a non-globstar situation
1881
+ if (this.follow)
1882
+ return this._readdir(abs, false)
1883
+
1884
+ var entries
1885
+ var lstat
1886
+ var stat
1887
+ try {
1888
+ lstat = this.fs.lstatSync(abs)
1889
+ } catch (er) {
1890
+ if (er.code === 'ENOENT') {
1891
+ // lstat failed, doesn't exist
1892
+ return null
1893
+ }
1894
+ }
1895
+
1896
+ var isSym = lstat && lstat.isSymbolicLink()
1897
+ this.symlinks[abs] = isSym
1898
+
1899
+ // If it's not a symlink or a dir, then it's definitely a regular file.
1900
+ // don't bother doing a readdir in that case.
1901
+ if (!isSym && lstat && !lstat.isDirectory())
1902
+ this.cache[abs] = 'FILE'
1903
+ else
1904
+ entries = this._readdir(abs, false)
1905
+
1906
+ return entries
1907
+ }
1908
+
1909
+ GlobSync.prototype._readdir = function (abs, inGlobStar) {
1910
+ var entries
1911
+
1912
+ if (inGlobStar && !ownProp(this.symlinks, abs))
1913
+ return this._readdirInGlobStar(abs)
1914
+
1915
+ if (ownProp(this.cache, abs)) {
1916
+ var c = this.cache[abs]
1917
+ if (!c || c === 'FILE')
1918
+ return null
1919
+
1920
+ if (Array.isArray(c))
1921
+ return c
1922
+ }
1923
+
1924
+ try {
1925
+ return this._readdirEntries(abs, this.fs.readdirSync(abs))
1926
+ } catch (er) {
1927
+ this._readdirError(abs, er)
1928
+ return null
1929
+ }
1930
+ }
1931
+
1932
+ GlobSync.prototype._readdirEntries = function (abs, entries) {
1933
+ // if we haven't asked to stat everything, then just
1934
+ // assume that everything in there exists, so we can avoid
1935
+ // having to stat it a second time.
1936
+ if (!this.mark && !this.stat) {
1937
+ for (var i = 0; i < entries.length; i ++) {
1938
+ var e = entries[i]
1939
+ if (abs === '/')
1940
+ e = abs + e
1941
+ else
1942
+ e = abs + '/' + e
1943
+ this.cache[e] = true
1944
+ }
1945
+ }
1946
+
1947
+ this.cache[abs] = entries
1948
+
1949
+ // mark and cache dir-ness
1950
+ return entries
1951
+ }
1952
+
1953
+ GlobSync.prototype._readdirError = function (f, er) {
1954
+ // handle errors, and cache the information
1955
+ switch (er.code) {
1956
+ case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
1957
+ case 'ENOTDIR': // totally normal. means it *does* exist.
1958
+ var abs = this._makeAbs(f)
1959
+ this.cache[abs] = 'FILE'
1960
+ if (abs === this.cwdAbs) {
1961
+ var error = new Error(er.code + ' invalid cwd ' + this.cwd)
1962
+ error.path = this.cwd
1963
+ error.code = er.code
1964
+ throw error
1965
+ }
1966
+ break
1967
+
1968
+ case 'ENOENT': // not terribly unusual
1969
+ case 'ELOOP':
1970
+ case 'ENAMETOOLONG':
1971
+ case 'UNKNOWN':
1972
+ this.cache[this._makeAbs(f)] = false
1973
+ break
1974
+
1975
+ default: // some unusual error. Treat as failure.
1976
+ this.cache[this._makeAbs(f)] = false
1977
+ if (this.strict)
1978
+ throw er
1979
+ if (!this.silent)
1980
+ console.error('glob error', er)
1981
+ break
1982
+ }
1983
+ }
1984
+
1985
+ GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
1986
+
1987
+ var entries = this._readdir(abs, inGlobStar)
1988
+
1989
+ // no entries means not a dir, so it can never have matches
1990
+ // foo.txt/** doesn't match foo.txt
1991
+ if (!entries)
1992
+ return
1993
+
1994
+ // test without the globstar, and with every child both below
1995
+ // and replacing the globstar.
1996
+ var remainWithoutGlobStar = remain.slice(1)
1997
+ var gspref = prefix ? [ prefix ] : []
1998
+ var noGlobStar = gspref.concat(remainWithoutGlobStar)
1999
+
2000
+ // the noGlobStar pattern exits the inGlobStar state
2001
+ this._process(noGlobStar, index, false)
2002
+
2003
+ var len = entries.length
2004
+ var isSym = this.symlinks[abs]
2005
+
2006
+ // If it's a symlink, and we're in a globstar, then stop
2007
+ if (isSym && inGlobStar)
2008
+ return
2009
+
2010
+ for (var i = 0; i < len; i++) {
2011
+ var e = entries[i]
2012
+ if (e.charAt(0) === '.' && !this.dot)
2013
+ continue
2014
+
2015
+ // these two cases enter the inGlobStar state
2016
+ var instead = gspref.concat(entries[i], remainWithoutGlobStar)
2017
+ this._process(instead, index, true)
2018
+
2019
+ var below = gspref.concat(entries[i], remain)
2020
+ this._process(below, index, true)
2021
+ }
2022
+ }
2023
+
2024
+ GlobSync.prototype._processSimple = function (prefix, index) {
2025
+ // XXX review this. Shouldn't it be doing the mounting etc
2026
+ // before doing stat? kinda weird?
2027
+ var exists = this._stat(prefix)
2028
+
2029
+ if (!this.matches[index])
2030
+ this.matches[index] = Object.create(null)
2031
+
2032
+ // If it doesn't exist, then just mark the lack of results
2033
+ if (!exists)
2034
+ return
2035
+
2036
+ if (prefix && isAbsolute(prefix) && !this.nomount) {
2037
+ var trail = /[\/\\]$/.test(prefix)
2038
+ if (prefix.charAt(0) === '/') {
2039
+ prefix = path.join(this.root, prefix)
2040
+ } else {
2041
+ prefix = path.resolve(this.root, prefix)
2042
+ if (trail)
2043
+ prefix += '/'
2044
+ }
2045
+ }
2046
+
2047
+ if (process.platform === 'win32')
2048
+ prefix = prefix.replace(/\\/g, '/')
2049
+
2050
+ // Mark this as a match
2051
+ this._emitMatch(index, prefix)
2052
+ }
2053
+
2054
+ // Returns either 'DIR', 'FILE', or false
2055
+ GlobSync.prototype._stat = function (f) {
2056
+ var abs = this._makeAbs(f)
2057
+ var needDir = f.slice(-1) === '/'
2058
+
2059
+ if (f.length > this.maxLength)
2060
+ return false
2061
+
2062
+ if (!this.stat && ownProp(this.cache, abs)) {
2063
+ var c = this.cache[abs]
2064
+
2065
+ if (Array.isArray(c))
2066
+ c = 'DIR'
2067
+
2068
+ // It exists, but maybe not how we need it
2069
+ if (!needDir || c === 'DIR')
2070
+ return c
2071
+
2072
+ if (needDir && c === 'FILE')
2073
+ return false
2074
+
2075
+ // otherwise we have to stat, because maybe c=true
2076
+ // if we know it exists, but not what it is.
2077
+ }
2078
+
2079
+ var exists
2080
+ var stat = this.statCache[abs]
2081
+ if (!stat) {
2082
+ var lstat
2083
+ try {
2084
+ lstat = this.fs.lstatSync(abs)
2085
+ } catch (er) {
2086
+ if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
2087
+ this.statCache[abs] = false
2088
+ return false
2089
+ }
2090
+ }
2091
+
2092
+ if (lstat && lstat.isSymbolicLink()) {
2093
+ try {
2094
+ stat = this.fs.statSync(abs)
2095
+ } catch (er) {
2096
+ stat = lstat
2097
+ }
2098
+ } else {
2099
+ stat = lstat
2100
+ }
2101
+ }
2102
+
2103
+ this.statCache[abs] = stat
2104
+
2105
+ var c = true
2106
+ if (stat)
2107
+ c = stat.isDirectory() ? 'DIR' : 'FILE'
2108
+
2109
+ this.cache[abs] = this.cache[abs] || c
2110
+
2111
+ if (needDir && c === 'FILE')
2112
+ return false
2113
+
2114
+ return c
2115
+ }
2116
+
2117
+ GlobSync.prototype._mark = function (p) {
2118
+ return common.mark(this, p)
2119
+ }
2120
+
2121
+ GlobSync.prototype._makeAbs = function (f) {
2122
+ return common.makeAbs(this, f)
2123
+ }
2124
+
2125
+
2126
+ /***/ }),
2127
+
2128
+ /***/ 480:
2129
+ /***/ (function(module) {
2130
+
2131
+ "use strict";
2132
+ module.exports = require("../minimatch");
2133
+
2134
+ /***/ }),
2135
+
2136
+ /***/ 491:
2137
+ /***/ (function(module) {
2138
+
2139
+ "use strict";
2140
+ module.exports = require("assert");
2141
+
2142
+ /***/ }),
2143
+
2144
+ /***/ 361:
2145
+ /***/ (function(module) {
2146
+
2147
+ "use strict";
2148
+ module.exports = require("events");
2149
+
2150
+ /***/ }),
2151
+
2152
+ /***/ 147:
2153
+ /***/ (function(module) {
2154
+
2155
+ "use strict";
2156
+ module.exports = require("fs");
2157
+
2158
+ /***/ }),
2159
+
2160
+ /***/ 17:
2161
+ /***/ (function(module) {
2162
+
2163
+ "use strict";
2164
+ module.exports = require("path");
2165
+
2166
+ /***/ }),
2167
+
2168
+ /***/ 837:
2169
+ /***/ (function(module) {
2170
+
2171
+ "use strict";
2172
+ module.exports = require("util");
2173
+
2174
+ /***/ })
2175
+
2176
+ /******/ });
2177
+ /************************************************************************/
2178
+ /******/ // The module cache
2179
+ /******/ var __webpack_module_cache__ = {};
2180
+ /******/
2181
+ /******/ // The require function
2182
+ /******/ function __nccwpck_require__(moduleId) {
2183
+ /******/ // Check if module is in cache
2184
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
2185
+ /******/ if (cachedModule !== undefined) {
2186
+ /******/ return cachedModule.exports;
2187
+ /******/ }
2188
+ /******/ // Create a new module (and put it into the cache)
2189
+ /******/ var module = __webpack_module_cache__[moduleId] = {
2190
+ /******/ // no module.id needed
2191
+ /******/ // no module.loaded needed
2192
+ /******/ exports: {}
2193
+ /******/ };
2194
+ /******/
2195
+ /******/ // Execute the module function
2196
+ /******/ var threw = true;
2197
+ /******/ try {
2198
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
2199
+ /******/ threw = false;
2200
+ /******/ } finally {
2201
+ /******/ if(threw) delete __webpack_module_cache__[moduleId];
2202
+ /******/ }
2203
+ /******/
2204
+ /******/ // Return the exports of the module
2205
+ /******/ return module.exports;
2206
+ /******/ }
2207
+ /******/
2208
+ /************************************************************************/
2209
+ /******/ /* webpack/runtime/compat */
2210
+ /******/
2211
+ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
2212
+ /******/
2213
+ /************************************************************************/
2214
+ /******/
2215
+ /******/ // startup
2216
+ /******/ // Load entry module and return exports
2217
+ /******/ // This entry module is referenced by other modules so it can't be inlined
2218
+ /******/ var __webpack_exports__ = __nccwpck_require__(104);
2219
+ /******/ module.exports = __webpack_exports__;
2220
+ /******/
2221
+ /******/ })()
2222
+ ;