@aussieljk/forkbook 0.0.1-5 → 0.0.1-7

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 (314) hide show
  1. package/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2YRIFQLC.js} +1 -1
  2. package/dist/_browser-chunks/WithTooltip-4R5JMWZ7.js +196 -0
  3. package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-4EFKUJG2.js} +10 -10
  4. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  5. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-DAUHYZUB.js} +550 -1621
  6. package/dist/_browser-chunks/chunk-E47B5255.js +1149 -0
  7. package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
  8. package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
  9. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
  10. package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-HTL5ODCB.js} +1 -1
  11. package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
  12. package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
  13. package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
  14. package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
  15. package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
  16. package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
  17. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  18. package/dist/_browser-chunks/chunk-WVF42CP2.js +6027 -0
  19. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
  20. package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-WFZCCGUB.js} +29 -29
  21. package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-DHKHRZK4.js} +155 -148
  22. package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-3ZCGT6VF.js} +6 -6
  23. package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-4HGC3G6B.js} +46 -15
  24. package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-5PYQ573S.js} +7 -7
  25. package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-64JPAW3T.js} +6 -6
  26. package/dist/_node-chunks/chunk-6CB3XSQ2.js +495 -0
  27. package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-6K3ZE4HN.js} +6 -6
  28. package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-6QZ3PX5R.js} +6 -6
  29. package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-7HVDL6M3.js} +29843 -51588
  30. package/dist/_node-chunks/chunk-7PMQPS5E.js +347 -0
  31. package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-7V5AOV2J.js} +7 -7
  32. package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-7VHCAGBJ.js} +8 -8
  33. package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ATX7SHS7.js} +8 -8
  34. package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-BQC6WCUS.js} +6 -6
  35. package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-BR4WDRY6.js} +8 -8
  36. package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BRHJ4P3A.js} +6 -6
  37. package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-CBBFNVFZ.js} +7 -7
  38. package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-CDFQORVD.js} +34 -949
  39. package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-CENNLCU7.js} +6 -6
  40. package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-CNMMDQC3.js} +27 -50
  41. package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-DMDZPUHM.js} +6 -6
  42. package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-DT45EUDD.js} +60 -134
  43. package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-EAL4RVEF.js} +6 -6
  44. package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
  45. package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-ESCZ2NSB.js} +6 -6
  46. package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-ESZIQTUH.js} +7 -7
  47. package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-F3SAYS4R.js} +6 -6
  48. package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-FTUQ7T3V.js} +25 -8
  49. package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-FVFSSIGA.js} +10 -10
  50. package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-G2AANC4A.js} +6 -6
  51. package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-HUMAXGH2.js} +6 -6
  52. package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-I535GEPH.js} +7 -7
  53. package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-J3Q56GX3.js} +25 -25
  54. package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-JDKYP7FW.js} +10 -10
  55. package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-JED5F3H2.js} +6 -6
  56. package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-JMS4H7QB.js} +7 -7
  57. package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-JOSJ64KD.js} +7 -7
  58. package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-JPHSU5OI.js} +6 -6
  59. package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JQICISDD.js} +6 -6
  60. package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-JTLOSDYL.js} +9 -9
  61. package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-K5RUOW42.js} +7 -7
  62. package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-KHWCZDIW.js} +650 -9
  63. package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
  64. package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-LJTP5PAJ.js} +6 -6
  65. package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
  66. package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-M7ZVSBNU.js} +6 -6
  67. package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-MBIIJTGQ.js} +11 -10
  68. package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-MF3AT3JQ.js} +6 -6
  69. package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-MF5BYASO.js} +9 -6
  70. package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-MJFMB4WD.js} +9 -9
  71. package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-MRWBN46D.js} +8 -8
  72. package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-MZQXEAI6.js} +9 -9
  73. package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-NLPC2DDQ.js} +6 -6
  74. package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-NQAFLS5U.js} +8 -8
  75. package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-NSZGBFPR.js} +6 -6
  76. package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-NUYBFTOU.js} +7 -7
  77. package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-O7VJA7SM.js} +7 -7
  78. package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-OGJ7LDX3.js} +7 -7
  79. package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-OWT6AVWK.js} +8 -8
  80. package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-P3GOMPP3.js} +7 -7
  81. package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-PQLXHVWK.js} +6 -6
  82. package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-Q6QRFKHB.js} +8 -8
  83. package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-QSP42ZBM.js} +6 -6
  84. package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-QWDR5OWQ.js} +14 -14
  85. package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-QWRQXG2V.js} +8 -8
  86. package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-R6AKCXPH.js} +6 -6
  87. package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-RCY7TLET.js} +8 -8
  88. package/dist/_node-chunks/chunk-RKKMQA6N.js +620 -0
  89. package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-RZ7UEP4N.js} +6 -6
  90. package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-S3HB4EWT.js} +6 -6
  91. package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-SHH7JROR.js} +6 -6
  92. package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-SWHTDOB4.js} +7 -7
  93. package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-SZYMLCHF.js} +6 -6
  94. package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-TOGDRW2W.js} +6 -6
  95. package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-U3E7E4Q2.js} +10 -10
  96. package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-U6DHF3RM.js} +7 -7
  97. package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-UAG3XK32.js} +31 -30
  98. package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-UF6Q6L5C.js} +22 -20
  99. package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
  100. package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-UNCBLHIP.js} +8 -8
  101. package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
  102. package/dist/_node-chunks/chunk-UVV24PG4.js +69 -0
  103. package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-WBB4NQ6H.js} +6 -6
  104. package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-WHOF2BJB.js} +7 -7
  105. package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-WME5NEJA.js} +6 -6
  106. package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-X63YMAHP.js} +7 -7
  107. package/dist/_node-chunks/chunk-Y2GHAOKI.js +25 -0
  108. package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-Y6G64J5S.js} +7 -15
  109. package/dist/_node-chunks/chunk-YVIPYJ53.js +2609 -0
  110. package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-YZWUD7I5.js} +16 -13
  111. package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-ZIDIYSJQ.js} +7 -7
  112. package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
  113. package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
  114. package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
  115. package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-UN5QK2SE.js} +20 -20
  116. package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-6M6CMNL3.js} +2263 -130
  117. package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-253VKW4B.js} +11 -11
  118. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
  119. package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
  120. package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-CCCJRMSL.js} +9 -9
  121. package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
  122. package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js} +9 -9
  123. package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-KQI7ULEZ.js} +9 -9
  124. package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-MUE2NI7S.js} +11 -11
  125. package/dist/_node-chunks/{run-65LLGSVR.js → run-PGZMPNMS.js} +246 -13
  126. package/dist/_node-chunks/{run-BQQLK454.js → run-SYLR25HA.js} +17 -17
  127. package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
  128. package/dist/_node-chunks/{setup-NEO7XX66.js → setup-XZWSUYPG.js} +8 -8
  129. package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-T25YYRGV.js} +7 -7
  130. package/dist/actions/decorator.js +2 -1
  131. package/dist/actions/index.js +2 -1
  132. package/dist/addon-a11y/index.js +2 -1
  133. package/dist/addon-a11y/manager.js +6 -5
  134. package/dist/addon-a11y/preset.js +7 -7
  135. package/dist/addon-a11y/preview.js +2 -1
  136. package/dist/addon-docs/blocks.js +28 -14
  137. package/dist/addon-docs/manager.js +2 -2
  138. package/dist/addon-docs/preset.js +10 -10
  139. package/dist/addon-links/index.js +3 -2
  140. package/dist/addon-links/preview.d.ts +1 -1
  141. package/dist/addon-links/preview.js +3 -2
  142. package/dist/addon-links/react/index.js +2 -1
  143. package/dist/addon-mcp/preset.js +8 -8
  144. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +21 -44
  145. package/dist/addon-ondevice-actions/index.js +5 -1
  146. package/dist/addon-ondevice-actions/register.js +5 -1
  147. package/dist/addon-themes/postinstall.js +7 -7
  148. package/dist/addon-vitest/constants.js +8 -8
  149. package/dist/addon-vitest/manager.js +2 -2
  150. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  151. package/dist/addon-vitest/node/vitest.js +16 -16
  152. package/dist/addon-vitest/postinstall.js +10 -10
  153. package/dist/addon-vitest/preset.js +15 -16
  154. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  155. package/dist/addon-vitest/vitest-plugin/index.js +17 -17
  156. package/dist/babel/index.d.ts +91 -842
  157. package/dist/babel/index.js +13 -19
  158. package/dist/bin/core.js +61 -60
  159. package/dist/bin/dispatcher.js +16 -11
  160. package/dist/bin/loader.js +16 -15
  161. package/dist/builder-vite/index.js +15 -15
  162. package/dist/builder-vite/preset.js +13 -13
  163. package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
  164. package/dist/{chunk-Ce6uhJuR.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
  165. package/dist/{chunk-CZHsX9Zo.d.ts → chunk-CMaYrou5.d.ts} +1 -1
  166. package/dist/chunk-CV4-Z2pn.d.ts +30 -0
  167. package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
  168. package/dist/{chunk-DpljNJTz.d.ts → chunk-LrH1y9J2.d.ts} +39 -0
  169. package/dist/cli/index.d.ts +13 -866
  170. package/dist/cli/index.js +42 -4952
  171. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  172. package/dist/cli/tools/sdk/child-host.js +17 -17
  173. package/dist/cli/tools/sdk/index.d.ts +1 -1
  174. package/dist/cli/tools/sdk/index.js +18 -18
  175. package/dist/cli-commands/bin/index.js +7 -7
  176. package/dist/client-logger/index.js +3 -1
  177. package/dist/common/index.d.ts +5 -4
  178. package/dist/common/index.js +35 -37
  179. package/dist/components/index.d.ts +14 -231
  180. package/dist/components/index.js +2512 -8359
  181. package/dist/core-events/index.d.ts +3 -2
  182. package/dist/core-events/index.js +3 -1
  183. package/dist/core-server/index.d.ts +2 -2
  184. package/dist/core-server/index.js +450 -147
  185. package/dist/core-server/presets/common-manager.js +62 -866
  186. package/dist/core-server/presets/common-override-preset.js +12 -10
  187. package/dist/core-server/presets/common-preset.js +39 -40
  188. package/dist/create/bin/index.js +7 -7
  189. package/dist/create/index.js +15 -15
  190. package/dist/csf/index.d.ts +1 -1
  191. package/dist/csf/index.js +27 -93
  192. package/dist/csf-tools/index.d.ts +14 -12
  193. package/dist/csf-tools/index.js +14 -14
  194. package/dist/instrumenter/index.js +3 -1
  195. package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-4fCHtNC6.js} +1 -1
  196. package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js} +410 -379
  197. package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-BMIT8BJb.js} +1 -1
  198. package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-BO0pfoqL.js} +4 -4
  199. package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-BZKYJxYC.js} +1 -1
  200. package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-Bpc_ftuT.js} +1252 -539
  201. package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
  202. package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-CI-C7ncS.js} +10 -10
  203. package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-CI_p54Ha.js} +59 -60
  204. package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-CTyYXvUm.js} +1 -1
  205. package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-CoCzM1V_.js} +93 -2146
  206. package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-CzEhVGVp.js} +141 -54
  207. package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-D82vqOGq.js} +2 -1
  208. package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-DB8fVA5g.js} +2 -145
  209. package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DMq1Phbl.js} +153 -141
  210. package/dist/manager/_manager-chunks/globals-runtime-DOPUchia.js +5282 -0
  211. package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-Dbt08xWQ.js} +1 -1
  212. package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-kmPSyf3j.js} +637 -1730
  213. package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
  214. package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-B4U0u9p4.js} +5 -147
  215. package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-BM30BmeT.js} +503 -44
  216. package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
  217. package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-Cf0p9DUx.js} +5 -531
  218. package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-D-nYLsdk.js} +57 -34
  219. package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
  220. package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-DvrwKw7z.js} +92 -303
  221. package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DzxaTqVN.js} +10 -29
  222. package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
  223. package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-ecY5qnmo.js} +193 -184
  224. package/dist/manager/globals-runtime.js +1 -1
  225. package/dist/manager/runtime.js +1 -1
  226. package/dist/manager-api/index.d.ts +1 -1
  227. package/dist/manager-api/index.js +22 -28
  228. package/dist/manager-errors.d.ts +1 -1
  229. package/dist/mcp/index.js +8 -8
  230. package/dist/mocking-utils/index.js +16 -11
  231. package/dist/nextjs-vite/index.js +3 -2
  232. package/dist/nextjs-vite/node/index.js +7 -7
  233. package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
  234. package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
  235. package/dist/nextjs-vite/preset.js +93 -14
  236. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  237. package/dist/nextjs-vite-plugin/index.d.ts +1 -2
  238. package/dist/nextjs-vite-plugin/index.js +12 -27
  239. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  240. package/dist/node-logger/index.d.ts +65 -72
  241. package/dist/node-logger/index.js +11 -12
  242. package/dist/oxc-parser/index.js +11 -13
  243. package/dist/oxc-parser/worker.js +10 -10
  244. package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
  245. package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
  246. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
  247. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
  248. package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
  249. package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
  250. package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
  251. package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
  252. package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
  253. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
  254. package/dist/preview/runtime.js +1 -1
  255. package/dist/preview-api/index.d.ts +1 -1
  256. package/dist/preview-api/index.js +2 -1
  257. package/dist/preview-errors.d.ts +1 -1
  258. package/dist/react/docgen/docgen-worker.js +11 -12
  259. package/dist/react/entry-preview.js +2 -1
  260. package/dist/react/index.js +6 -4
  261. package/dist/react/preset.js +13 -14
  262. package/dist/react/preview.js +3 -2
  263. package/dist/react-native/bin/get-stories.js +8 -8
  264. package/dist/react-native/index.js +25 -211
  265. package/dist/react-native/metro/node.js +10 -9
  266. package/dist/react-native/metro/withStorybook.js +11 -10
  267. package/dist/react-native/scripts/generate.js +8 -8
  268. package/dist/react-vite/node/index.js +7 -7
  269. package/dist/react-vite/preset.js +7 -7
  270. package/dist/router/index.js +3 -1
  271. package/dist/server-errors.d.ts +1 -1
  272. package/dist/server-errors.js +9 -9
  273. package/dist/shared/open-service/index.d.ts +1 -1
  274. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  275. package/dist/telemetry/index.js +43 -45
  276. package/dist/test/index.js +808 -573
  277. package/dist/theming/create.js +2 -1
  278. package/dist/theming/index.js +22 -1
  279. package/dist/types/index.d.ts +1 -1
  280. package/package.json +21 -44
  281. package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
  282. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  283. package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
  284. package/dist/_node-chunks/chunk-6QQTZT3Z.js +0 -19
  285. package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
  286. package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
  287. package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
  288. package/dist/_node-chunks/chunk-MCZZMBPA.js +0 -20
  289. package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
  290. package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
  291. package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
  292. package/dist/_node-chunks/chunk-UW35FCXF.js +0 -20
  293. package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
  294. package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
  295. package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
  296. package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
  297. package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
  298. package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
  299. package/dist/_node-chunks/chunk-ZZNBVMBU.js +0 -25
  300. package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
  301. package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
  302. package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
  303. package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
  304. package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
  305. package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
  306. package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
  307. package/dist/chunk-BfBzpgct.d.ts +0 -916
  308. package/dist/core-server/presets/common-manager.css +0 -170
  309. package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
  310. package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
  311. package/dist/manager/_manager-chunks/runtime-CuJiHYCp.js +0 -22
  312. package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +0 -456
  313. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  314. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
@@ -1,1877 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- __commonJS,
14
- __require
15
- } from "./chunk-TZ2TZW2K.js";
16
-
17
- // ../../node_modules/braces/lib/utils.js
18
- var require_utils = __commonJS({
19
- "../../node_modules/braces/lib/utils.js"(exports) {
20
- "use strict";
21
- exports.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1;
22
- exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
23
- exports.exceedsLimit = (min, max, step = 1, limit) => limit === !1 || !exports.isInteger(min) || !exports.isInteger(max) ? !1 : (Number(max) - Number(min)) / Number(step) >= limit;
24
- exports.escapeNode = (block, n = 0, type) => {
25
- let node = block.nodes[n];
26
- node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
27
- };
28
- exports.encloseBrace = (node) => node.type !== "brace" ? !1 : node.commas >> 0 + node.ranges >> 0 === 0 ? (node.invalid = !0, !0) : !1;
29
- exports.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : block.commas >> 0 + block.ranges >> 0 === 0 || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1;
30
- exports.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0;
31
- exports.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []);
32
- exports.flatten = (...args) => {
33
- let result = [], flat = (arr) => {
34
- for (let i = 0; i < arr.length; i++) {
35
- let ele = arr[i];
36
- if (Array.isArray(ele)) {
37
- flat(ele);
38
- continue;
39
- }
40
- ele !== void 0 && result.push(ele);
41
- }
42
- return result;
43
- };
44
- return flat(args), result;
45
- };
46
- }
47
- });
48
-
49
- // ../../node_modules/braces/lib/stringify.js
50
- var require_stringify = __commonJS({
51
- "../../node_modules/braces/lib/stringify.js"(exports, module) {
52
- "use strict";
53
- var utils = require_utils();
54
- module.exports = (ast, options = {}) => {
55
- let stringify = (node, parent = {}) => {
56
- let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, output = "";
57
- if (node.value)
58
- return (invalidBlock || invalidNode) && utils.isOpenOrClose(node) ? "\\" + node.value : node.value;
59
- if (node.value)
60
- return node.value;
61
- if (node.nodes)
62
- for (let child of node.nodes)
63
- output += stringify(child);
64
- return output;
65
- };
66
- return stringify(ast);
67
- };
68
- }
69
- });
70
-
71
- // ../../node_modules/is-number/index.js
72
- var require_is_number = __commonJS({
73
- "../../node_modules/is-number/index.js"(exports, module) {
74
- "use strict";
75
- module.exports = function(num) {
76
- return typeof num == "number" ? num - num === 0 : typeof num == "string" && num.trim() !== "" ? Number.isFinite ? Number.isFinite(+num) : isFinite(+num) : !1;
77
- };
78
- }
79
- });
80
-
81
- // ../../node_modules/to-regex-range/index.js
82
- var require_to_regex_range = __commonJS({
83
- "../../node_modules/to-regex-range/index.js"(exports, module) {
84
- "use strict";
85
- var isNumber = require_is_number(), toRegexRange = (min, max, options) => {
86
- if (isNumber(min) === !1)
87
- throw new TypeError("toRegexRange: expected the first argument to be a number");
88
- if (max === void 0 || min === max)
89
- return String(min);
90
- if (isNumber(max) === !1)
91
- throw new TypeError("toRegexRange: expected the second argument to be a number.");
92
- let opts = { relaxZeros: !0, ...options };
93
- typeof opts.strictZeros == "boolean" && (opts.relaxZeros = opts.strictZeros === !1);
94
- let relax = String(opts.relaxZeros), shorthand = String(opts.shorthand), capture = String(opts.capture), wrap = String(opts.wrap), cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
95
- if (toRegexRange.cache.hasOwnProperty(cacheKey))
96
- return toRegexRange.cache[cacheKey].result;
97
- let a = Math.min(min, max), b = Math.max(min, max);
98
- if (Math.abs(a - b) === 1) {
99
- let result = min + "|" + max;
100
- return opts.capture ? `(${result})` : opts.wrap === !1 ? result : `(?:${result})`;
101
- }
102
- let isPadded = hasPadding(min) || hasPadding(max), state = { min, max, a, b }, positives = [], negatives = [];
103
- if (isPadded && (state.isPadded = isPadded, state.maxLen = String(state.max).length), a < 0) {
104
- let newMin = b < 0 ? Math.abs(b) : 1;
105
- negatives = splitToPatterns(newMin, Math.abs(a), state, opts), a = state.a = 0;
106
- }
107
- return b >= 0 && (positives = splitToPatterns(a, b, state, opts)), state.negatives = negatives, state.positives = positives, state.result = collatePatterns(negatives, positives, opts), opts.capture === !0 ? state.result = `(${state.result})` : opts.wrap !== !1 && positives.length + negatives.length > 1 && (state.result = `(?:${state.result})`), toRegexRange.cache[cacheKey] = state, state.result;
108
- };
109
- function collatePatterns(neg, pos, options) {
110
- let onlyNegative = filterPatterns(neg, pos, "-", !1, options) || [], onlyPositive = filterPatterns(pos, neg, "", !1, options) || [], intersected = filterPatterns(neg, pos, "-?", !0, options) || [];
111
- return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
112
- }
113
- function splitToRanges(min, max) {
114
- let nines = 1, zeros = 1, stop = countNines(min, nines), stops = /* @__PURE__ */ new Set([max]);
115
- for (; min <= stop && stop <= max; )
116
- stops.add(stop), nines += 1, stop = countNines(min, nines);
117
- for (stop = countZeros(max + 1, zeros) - 1; min < stop && stop <= max; )
118
- stops.add(stop), zeros += 1, stop = countZeros(max + 1, zeros) - 1;
119
- return stops = [...stops], stops.sort(compare), stops;
120
- }
121
- function rangeToPattern(start, stop, options) {
122
- if (start === stop)
123
- return { pattern: start, count: [], digits: 0 };
124
- let zipped = zip(start, stop), digits = zipped.length, pattern = "", count = 0;
125
- for (let i = 0; i < digits; i++) {
126
- let [startDigit, stopDigit] = zipped[i];
127
- startDigit === stopDigit ? pattern += startDigit : startDigit !== "0" || stopDigit !== "9" ? pattern += toCharacterClass(startDigit, stopDigit, options) : count++;
128
- }
129
- return count && (pattern += options.shorthand === !0 ? "\\d" : "[0-9]"), { pattern, count: [count], digits };
130
- }
131
- function splitToPatterns(min, max, tok, options) {
132
- let ranges = splitToRanges(min, max), tokens = [], start = min, prev;
133
- for (let i = 0; i < ranges.length; i++) {
134
- let max2 = ranges[i], obj = rangeToPattern(String(start), String(max2), options), zeros = "";
135
- if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
136
- prev.count.length > 1 && prev.count.pop(), prev.count.push(obj.count[0]), prev.string = prev.pattern + toQuantifier(prev.count), start = max2 + 1;
137
- continue;
138
- }
139
- tok.isPadded && (zeros = padZeros(max2, tok, options)), obj.string = zeros + obj.pattern + toQuantifier(obj.count), tokens.push(obj), start = max2 + 1, prev = obj;
140
- }
141
- return tokens;
142
- }
143
- function filterPatterns(arr, comparison, prefix, intersection, options) {
144
- let result = [];
145
- for (let ele of arr) {
146
- let { string } = ele;
147
- !intersection && !contains(comparison, "string", string) && result.push(prefix + string), intersection && contains(comparison, "string", string) && result.push(prefix + string);
148
- }
149
- return result;
150
- }
151
- function zip(a, b) {
152
- let arr = [];
153
- for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
154
- return arr;
155
- }
156
- function compare(a, b) {
157
- return a > b ? 1 : b > a ? -1 : 0;
158
- }
159
- function contains(arr, key, val) {
160
- return arr.some((ele) => ele[key] === val);
161
- }
162
- function countNines(min, len) {
163
- return Number(String(min).slice(0, -len) + "9".repeat(len));
164
- }
165
- function countZeros(integer, zeros) {
166
- return integer - integer % Math.pow(10, zeros);
167
- }
168
- function toQuantifier(digits) {
169
- let [start = 0, stop = ""] = digits;
170
- return stop || start > 1 ? `{${start + (stop ? "," + stop : "")}}` : "";
171
- }
172
- function toCharacterClass(a, b, options) {
173
- return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
174
- }
175
- function hasPadding(str) {
176
- return /^-?(0+)\d/.test(str);
177
- }
178
- function padZeros(value, tok, options) {
179
- if (!tok.isPadded)
180
- return value;
181
- let diff = Math.abs(tok.maxLen - String(value).length), relax = options.relaxZeros !== !1;
182
- switch (diff) {
183
- case 0:
184
- return "";
185
- case 1:
186
- return relax ? "0?" : "0";
187
- case 2:
188
- return relax ? "0{0,2}" : "00";
189
- default:
190
- return relax ? `0{0,${diff}}` : `0{${diff}}`;
191
- }
192
- }
193
- toRegexRange.cache = {};
194
- toRegexRange.clearCache = () => toRegexRange.cache = {};
195
- module.exports = toRegexRange;
196
- }
197
- });
198
-
199
- // ../../node_modules/fill-range/index.js
200
- var require_fill_range = __commonJS({
201
- "../../node_modules/fill-range/index.js"(exports, module) {
202
- "use strict";
203
- var util = __require("util"), toRegexRange = require_to_regex_range(), isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val), transform = (toNumber) => (value) => toNumber === !0 ? Number(value) : String(value), isValidValue = (value) => typeof value == "number" || typeof value == "string" && value !== "", isNumber = (num) => Number.isInteger(+num), zeros = (input) => {
204
- let value = `${input}`, index = -1;
205
- if (value[0] === "-" && (value = value.slice(1)), value === "0") return !1;
206
- for (; value[++index] === "0"; ) ;
207
- return index > 0;
208
- }, stringify = (start, end, options) => typeof start == "string" || typeof end == "string" ? !0 : options.stringify === !0, pad = (input, maxLength, toNumber) => {
209
- if (maxLength > 0) {
210
- let dash = input[0] === "-" ? "-" : "";
211
- dash && (input = input.slice(1)), input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
212
- }
213
- return toNumber === !1 ? String(input) : input;
214
- }, toMaxLen = (input, maxLength) => {
215
- let negative = input[0] === "-" ? "-" : "";
216
- for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; ) input = "0" + input;
217
- return negative ? "-" + input : input;
218
- }, toSequence = (parts, options, maxLen) => {
219
- parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
220
- let prefix = options.capture ? "" : "?:", positives = "", negatives = "", result;
221
- return parts.positives.length && (positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|")), parts.negatives.length && (negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`), positives && negatives ? result = `${positives}|${negatives}` : result = positives || negatives, options.wrap ? `(${prefix}${result})` : result;
222
- }, toRange = (a, b, isNumbers, options) => {
223
- if (isNumbers)
224
- return toRegexRange(a, b, { wrap: !1, ...options });
225
- let start = String.fromCharCode(a);
226
- if (a === b) return start;
227
- let stop = String.fromCharCode(b);
228
- return `[${start}-${stop}]`;
229
- }, toRegex = (start, end, options) => {
230
- if (Array.isArray(start)) {
231
- let wrap = options.wrap === !0, prefix = options.capture ? "" : "?:";
232
- return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
233
- }
234
- return toRegexRange(start, end, options);
235
- }, rangeError = (...args) => new RangeError("Invalid range arguments: " + util.inspect(...args)), invalidRange = (start, end, options) => {
236
- if (options.strictRanges === !0) throw rangeError([start, end]);
237
- return [];
238
- }, invalidStep = (step, options) => {
239
- if (options.strictRanges === !0)
240
- throw new TypeError(`Expected step "${step}" to be a number`);
241
- return [];
242
- }, fillNumbers = (start, end, step = 1, options = {}) => {
243
- let a = Number(start), b = Number(end);
244
- if (!Number.isInteger(a) || !Number.isInteger(b)) {
245
- if (options.strictRanges === !0) throw rangeError([start, end]);
246
- return [];
247
- }
248
- a === 0 && (a = 0), b === 0 && (b = 0);
249
- let descending = a > b, startString = String(start), endString = String(end), stepString = String(step);
250
- step = Math.max(Math.abs(step), 1);
251
- let padded = zeros(startString) || zeros(endString) || zeros(stepString), maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0, toNumber = padded === !1 && stringify(start, end, options) === !1, format = options.transform || transform(toNumber);
252
- if (options.toRegex && step === 1)
253
- return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), !0, options);
254
- let parts = { negatives: [], positives: [] }, push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)), range = [], index = 0;
255
- for (; descending ? a >= b : a <= b; )
256
- options.toRegex === !0 && step > 1 ? push(a) : range.push(pad(format(a, index), maxLen, toNumber)), a = descending ? a - step : a + step, index++;
257
- return options.toRegex === !0 ? step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: !1, ...options }) : range;
258
- }, fillLetters = (start, end, step = 1, options = {}) => {
259
- if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1)
260
- return invalidRange(start, end, options);
261
- let format = options.transform || ((val) => String.fromCharCode(val)), a = `${start}`.charCodeAt(0), b = `${end}`.charCodeAt(0), descending = a > b, min = Math.min(a, b), max = Math.max(a, b);
262
- if (options.toRegex && step === 1)
263
- return toRange(min, max, !1, options);
264
- let range = [], index = 0;
265
- for (; descending ? a >= b : a <= b; )
266
- range.push(format(a, index)), a = descending ? a - step : a + step, index++;
267
- return options.toRegex === !0 ? toRegex(range, null, { wrap: !1, options }) : range;
268
- }, fill = (start, end, step, options = {}) => {
269
- if (end == null && isValidValue(start))
270
- return [start];
271
- if (!isValidValue(start) || !isValidValue(end))
272
- return invalidRange(start, end, options);
273
- if (typeof step == "function")
274
- return fill(start, end, 1, { transform: step });
275
- if (isObject(step))
276
- return fill(start, end, 0, step);
277
- let opts = { ...options };
278
- return opts.capture === !0 && (opts.wrap = !0), step = step || opts.step || 1, isNumber(step) ? isNumber(start) && isNumber(end) ? fillNumbers(start, end, step, opts) : fillLetters(start, end, Math.max(Math.abs(step), 1), opts) : step != null && !isObject(step) ? invalidStep(step, opts) : fill(start, end, 1, step);
279
- };
280
- module.exports = fill;
281
- }
282
- });
283
-
284
- // ../../node_modules/braces/lib/compile.js
285
- var require_compile = __commonJS({
286
- "../../node_modules/braces/lib/compile.js"(exports, module) {
287
- "use strict";
288
- var fill = require_fill_range(), utils = require_utils(), compile = (ast, options = {}) => {
289
- let walk = (node, parent = {}) => {
290
- let invalidBlock = utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, invalid = invalidBlock === !0 || invalidNode === !0, prefix = options.escapeInvalid === !0 ? "\\" : "", output = "";
291
- if (node.isOpen === !0)
292
- return prefix + node.value;
293
- if (node.isClose === !0)
294
- return console.log("node.isClose", prefix, node.value), prefix + node.value;
295
- if (node.type === "open")
296
- return invalid ? prefix + node.value : "(";
297
- if (node.type === "close")
298
- return invalid ? prefix + node.value : ")";
299
- if (node.type === "comma")
300
- return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
301
- if (node.value)
302
- return node.value;
303
- if (node.nodes && node.ranges > 0) {
304
- let args = utils.reduce(node.nodes), range = fill(...args, { ...options, wrap: !1, toRegex: !0, strictZeros: !0 });
305
- if (range.length !== 0)
306
- return args.length > 1 && range.length > 1 ? `(${range})` : range;
307
- }
308
- if (node.nodes)
309
- for (let child of node.nodes)
310
- output += walk(child, node);
311
- return output;
312
- };
313
- return walk(ast);
314
- };
315
- module.exports = compile;
316
- }
317
- });
318
-
319
- // ../../node_modules/braces/lib/expand.js
320
- var require_expand = __commonJS({
321
- "../../node_modules/braces/lib/expand.js"(exports, module) {
322
- "use strict";
323
- var fill = require_fill_range(), stringify = require_stringify(), utils = require_utils(), append = (queue = "", stash = "", enclose = !1) => {
324
- let result = [];
325
- if (queue = [].concat(queue), stash = [].concat(stash), !stash.length) return queue;
326
- if (!queue.length)
327
- return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
328
- for (let item of queue)
329
- if (Array.isArray(item))
330
- for (let value of item)
331
- result.push(append(value, stash, enclose));
332
- else
333
- for (let ele of stash)
334
- enclose === !0 && typeof ele == "string" && (ele = `{${ele}}`), result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
335
- return utils.flatten(result);
336
- }, expand = (ast, options = {}) => {
337
- let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit, walk = (node, parent = {}) => {
338
- node.queue = [];
339
- let p = parent, q = parent.queue;
340
- for (; p.type !== "brace" && p.type !== "root" && p.parent; )
341
- p = p.parent, q = p.queue;
342
- if (node.invalid || node.dollar) {
343
- q.push(append(q.pop(), stringify(node, options)));
344
- return;
345
- }
346
- if (node.type === "brace" && node.invalid !== !0 && node.nodes.length === 2) {
347
- q.push(append(q.pop(), ["{}"]));
348
- return;
349
- }
350
- if (node.nodes && node.ranges > 0) {
351
- let args = utils.reduce(node.nodes);
352
- if (utils.exceedsLimit(...args, options.step, rangeLimit))
353
- throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
354
- let range = fill(...args, options);
355
- range.length === 0 && (range = stringify(node, options)), q.push(append(q.pop(), range)), node.nodes = [];
356
- return;
357
- }
358
- let enclose = utils.encloseBrace(node), queue = node.queue, block = node;
359
- for (; block.type !== "brace" && block.type !== "root" && block.parent; )
360
- block = block.parent, queue = block.queue;
361
- for (let i = 0; i < node.nodes.length; i++) {
362
- let child = node.nodes[i];
363
- if (child.type === "comma" && node.type === "brace") {
364
- i === 1 && queue.push(""), queue.push("");
365
- continue;
366
- }
367
- if (child.type === "close") {
368
- q.push(append(q.pop(), queue, enclose));
369
- continue;
370
- }
371
- if (child.value && child.type !== "open") {
372
- queue.push(append(queue.pop(), child.value));
373
- continue;
374
- }
375
- child.nodes && walk(child, node);
376
- }
377
- return queue;
378
- };
379
- return utils.flatten(walk(ast));
380
- };
381
- module.exports = expand;
382
- }
383
- });
384
-
385
- // ../../node_modules/braces/lib/constants.js
386
- var require_constants = __commonJS({
387
- "../../node_modules/braces/lib/constants.js"(exports, module) {
388
- "use strict";
389
- module.exports = {
390
- MAX_LENGTH: 1e4,
391
- // Digits
392
- CHAR_0: "0",
393
- /* 0 */
394
- CHAR_9: "9",
395
- /* 9 */
396
- // Alphabet chars.
397
- CHAR_UPPERCASE_A: "A",
398
- /* A */
399
- CHAR_LOWERCASE_A: "a",
400
- /* a */
401
- CHAR_UPPERCASE_Z: "Z",
402
- /* Z */
403
- CHAR_LOWERCASE_Z: "z",
404
- /* z */
405
- CHAR_LEFT_PARENTHESES: "(",
406
- /* ( */
407
- CHAR_RIGHT_PARENTHESES: ")",
408
- /* ) */
409
- CHAR_ASTERISK: "*",
410
- /* * */
411
- // Non-alphabetic chars.
412
- CHAR_AMPERSAND: "&",
413
- /* & */
414
- CHAR_AT: "@",
415
- /* @ */
416
- CHAR_BACKSLASH: "\\",
417
- /* \ */
418
- CHAR_BACKTICK: "`",
419
- /* ` */
420
- CHAR_CARRIAGE_RETURN: "\r",
421
- /* \r */
422
- CHAR_CIRCUMFLEX_ACCENT: "^",
423
- /* ^ */
424
- CHAR_COLON: ":",
425
- /* : */
426
- CHAR_COMMA: ",",
427
- /* , */
428
- CHAR_DOLLAR: "$",
429
- /* . */
430
- CHAR_DOT: ".",
431
- /* . */
432
- CHAR_DOUBLE_QUOTE: '"',
433
- /* " */
434
- CHAR_EQUAL: "=",
435
- /* = */
436
- CHAR_EXCLAMATION_MARK: "!",
437
- /* ! */
438
- CHAR_FORM_FEED: "\f",
439
- /* \f */
440
- CHAR_FORWARD_SLASH: "/",
441
- /* / */
442
- CHAR_HASH: "#",
443
- /* # */
444
- CHAR_HYPHEN_MINUS: "-",
445
- /* - */
446
- CHAR_LEFT_ANGLE_BRACKET: "<",
447
- /* < */
448
- CHAR_LEFT_CURLY_BRACE: "{",
449
- /* { */
450
- CHAR_LEFT_SQUARE_BRACKET: "[",
451
- /* [ */
452
- CHAR_LINE_FEED: `
453
- `,
454
- /* \n */
455
- CHAR_NO_BREAK_SPACE: "\xA0",
456
- /* \u00A0 */
457
- CHAR_PERCENT: "%",
458
- /* % */
459
- CHAR_PLUS: "+",
460
- /* + */
461
- CHAR_QUESTION_MARK: "?",
462
- /* ? */
463
- CHAR_RIGHT_ANGLE_BRACKET: ">",
464
- /* > */
465
- CHAR_RIGHT_CURLY_BRACE: "}",
466
- /* } */
467
- CHAR_RIGHT_SQUARE_BRACKET: "]",
468
- /* ] */
469
- CHAR_SEMICOLON: ";",
470
- /* ; */
471
- CHAR_SINGLE_QUOTE: "'",
472
- /* ' */
473
- CHAR_SPACE: " ",
474
- /* */
475
- CHAR_TAB: " ",
476
- /* \t */
477
- CHAR_UNDERSCORE: "_",
478
- /* _ */
479
- CHAR_VERTICAL_LINE: "|",
480
- /* | */
481
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
482
- /* \uFEFF */
483
- };
484
- }
485
- });
486
-
487
- // ../../node_modules/braces/lib/parse.js
488
- var require_parse = __commonJS({
489
- "../../node_modules/braces/lib/parse.js"(exports, module) {
490
- "use strict";
491
- var stringify = require_stringify(), {
492
- MAX_LENGTH,
493
- CHAR_BACKSLASH,
494
- /* \ */
495
- CHAR_BACKTICK,
496
- /* ` */
497
- CHAR_COMMA,
498
- /* , */
499
- CHAR_DOT,
500
- /* . */
501
- CHAR_LEFT_PARENTHESES,
502
- /* ( */
503
- CHAR_RIGHT_PARENTHESES,
504
- /* ) */
505
- CHAR_LEFT_CURLY_BRACE,
506
- /* { */
507
- CHAR_RIGHT_CURLY_BRACE,
508
- /* } */
509
- CHAR_LEFT_SQUARE_BRACKET,
510
- /* [ */
511
- CHAR_RIGHT_SQUARE_BRACKET,
512
- /* ] */
513
- CHAR_DOUBLE_QUOTE,
514
- /* " */
515
- CHAR_SINGLE_QUOTE,
516
- /* ' */
517
- CHAR_NO_BREAK_SPACE,
518
- CHAR_ZERO_WIDTH_NOBREAK_SPACE
519
- } = require_constants(), parse = (input, options = {}) => {
520
- if (typeof input != "string")
521
- throw new TypeError("Expected a string");
522
- let opts = options || {}, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
523
- if (input.length > max)
524
- throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
525
- let ast = { type: "root", input, nodes: [] }, stack = [ast], block = ast, prev = ast, brackets = 0, length = input.length, index = 0, depth = 0, value, advance = () => input[index++], push = (node) => {
526
- if (node.type === "text" && prev.type === "dot" && (prev.type = "text"), prev && prev.type === "text" && node.type === "text") {
527
- prev.value += node.value;
528
- return;
529
- }
530
- return block.nodes.push(node), node.parent = block, node.prev = prev, prev = node, node;
531
- };
532
- for (push({ type: "bos" }); index < length; )
533
- if (block = stack[stack.length - 1], value = advance(), !(value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE)) {
534
- if (value === CHAR_BACKSLASH) {
535
- push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
536
- continue;
537
- }
538
- if (value === CHAR_RIGHT_SQUARE_BRACKET) {
539
- push({ type: "text", value: "\\" + value });
540
- continue;
541
- }
542
- if (value === CHAR_LEFT_SQUARE_BRACKET) {
543
- brackets++;
544
- let next;
545
- for (; index < length && (next = advance()); ) {
546
- if (value += next, next === CHAR_LEFT_SQUARE_BRACKET) {
547
- brackets++;
548
- continue;
549
- }
550
- if (next === CHAR_BACKSLASH) {
551
- value += advance();
552
- continue;
553
- }
554
- if (next === CHAR_RIGHT_SQUARE_BRACKET && (brackets--, brackets === 0))
555
- break;
556
- }
557
- push({ type: "text", value });
558
- continue;
559
- }
560
- if (value === CHAR_LEFT_PARENTHESES) {
561
- block = push({ type: "paren", nodes: [] }), stack.push(block), push({ type: "text", value });
562
- continue;
563
- }
564
- if (value === CHAR_RIGHT_PARENTHESES) {
565
- if (block.type !== "paren") {
566
- push({ type: "text", value });
567
- continue;
568
- }
569
- block = stack.pop(), push({ type: "text", value }), block = stack[stack.length - 1];
570
- continue;
571
- }
572
- if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
573
- let open = value, next;
574
- for (options.keepQuotes !== !0 && (value = ""); index < length && (next = advance()); ) {
575
- if (next === CHAR_BACKSLASH) {
576
- value += next + advance();
577
- continue;
578
- }
579
- if (next === open) {
580
- options.keepQuotes === !0 && (value += next);
581
- break;
582
- }
583
- value += next;
584
- }
585
- push({ type: "text", value });
586
- continue;
587
- }
588
- if (value === CHAR_LEFT_CURLY_BRACE) {
589
- depth++;
590
- let brace = {
591
- type: "brace",
592
- open: !0,
593
- close: !1,
594
- dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === !0,
595
- depth,
596
- commas: 0,
597
- ranges: 0,
598
- nodes: []
599
- };
600
- block = push(brace), stack.push(block), push({ type: "open", value });
601
- continue;
602
- }
603
- if (value === CHAR_RIGHT_CURLY_BRACE) {
604
- if (block.type !== "brace") {
605
- push({ type: "text", value });
606
- continue;
607
- }
608
- let type = "close";
609
- block = stack.pop(), block.close = !0, push({ type, value }), depth--, block = stack[stack.length - 1];
610
- continue;
611
- }
612
- if (value === CHAR_COMMA && depth > 0) {
613
- if (block.ranges > 0) {
614
- block.ranges = 0;
615
- let open = block.nodes.shift();
616
- block.nodes = [open, { type: "text", value: stringify(block) }];
617
- }
618
- push({ type: "comma", value }), block.commas++;
619
- continue;
620
- }
621
- if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
622
- let siblings = block.nodes;
623
- if (depth === 0 || siblings.length === 0) {
624
- push({ type: "text", value });
625
- continue;
626
- }
627
- if (prev.type === "dot") {
628
- if (block.range = [], prev.value += value, prev.type = "range", block.nodes.length !== 3 && block.nodes.length !== 5) {
629
- block.invalid = !0, block.ranges = 0, prev.type = "text";
630
- continue;
631
- }
632
- block.ranges++, block.args = [];
633
- continue;
634
- }
635
- if (prev.type === "range") {
636
- siblings.pop();
637
- let before = siblings[siblings.length - 1];
638
- before.value += prev.value + value, prev = before, block.ranges--;
639
- continue;
640
- }
641
- push({ type: "dot", value });
642
- continue;
643
- }
644
- push({ type: "text", value });
645
- }
646
- do
647
- if (block = stack.pop(), block.type !== "root") {
648
- block.nodes.forEach((node) => {
649
- node.nodes || (node.type === "open" && (node.isOpen = !0), node.type === "close" && (node.isClose = !0), node.nodes || (node.type = "text"), node.invalid = !0);
650
- });
651
- let parent = stack[stack.length - 1], index2 = parent.nodes.indexOf(block);
652
- parent.nodes.splice(index2, 1, ...block.nodes);
653
- }
654
- while (stack.length > 0);
655
- return push({ type: "eos" }), ast;
656
- };
657
- module.exports = parse;
658
- }
659
- });
660
-
661
- // ../../node_modules/braces/index.js
662
- var require_braces = __commonJS({
663
- "../../node_modules/braces/index.js"(exports, module) {
664
- "use strict";
665
- var stringify = require_stringify(), compile = require_compile(), expand = require_expand(), parse = require_parse(), braces = (input, options = {}) => {
666
- let output = [];
667
- if (Array.isArray(input))
668
- for (let pattern of input) {
669
- let result = braces.create(pattern, options);
670
- Array.isArray(result) ? output.push(...result) : output.push(result);
671
- }
672
- else
673
- output = [].concat(braces.create(input, options));
674
- return options && options.expand === !0 && options.nodupes === !0 && (output = [...new Set(output)]), output;
675
- };
676
- braces.parse = (input, options = {}) => parse(input, options);
677
- braces.stringify = (input, options = {}) => stringify(typeof input == "string" ? braces.parse(input, options) : input, options);
678
- braces.compile = (input, options = {}) => (typeof input == "string" && (input = braces.parse(input, options)), compile(input, options));
679
- braces.expand = (input, options = {}) => {
680
- typeof input == "string" && (input = braces.parse(input, options));
681
- let result = expand(input, options);
682
- return options.noempty === !0 && (result = result.filter(Boolean)), options.nodupes === !0 && (result = [...new Set(result)]), result;
683
- };
684
- braces.create = (input, options = {}) => input === "" || input.length < 3 ? [input] : options.expand !== !0 ? braces.compile(input, options) : braces.expand(input, options);
685
- module.exports = braces;
686
- }
687
- });
688
-
689
- // ../../node_modules/micromatch/node_modules/picomatch/lib/constants.js
690
- var require_constants2 = __commonJS({
691
- "../../node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports, module) {
692
- "use strict";
693
- var path = __require("path"), WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DEFAULT_MAX_EXTGLOB_RECURSION = 0, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
694
- DOT_LITERAL,
695
- PLUS_LITERAL,
696
- QMARK_LITERAL,
697
- SLASH_LITERAL,
698
- ONE_CHAR,
699
- QMARK,
700
- END_ANCHOR,
701
- DOTS_SLASH,
702
- NO_DOT,
703
- NO_DOTS,
704
- NO_DOT_SLASH,
705
- NO_DOTS_SLASH,
706
- QMARK_NO_DOT,
707
- STAR,
708
- START_ANCHOR
709
- }, WINDOWS_CHARS = {
710
- ...POSIX_CHARS,
711
- SLASH_LITERAL: `[${WIN_SLASH}]`,
712
- QMARK: WIN_NO_SLASH,
713
- STAR: `${WIN_NO_SLASH}*?`,
714
- DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
715
- NO_DOT: `(?!${DOT_LITERAL})`,
716
- NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
717
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
718
- NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
719
- QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
720
- START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
721
- END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
722
- }, POSIX_REGEX_SOURCE = {
723
- __proto__: null,
724
- alnum: "a-zA-Z0-9",
725
- alpha: "a-zA-Z",
726
- ascii: "\\x00-\\x7F",
727
- blank: " \\t",
728
- cntrl: "\\x00-\\x1F\\x7F",
729
- digit: "0-9",
730
- graph: "\\x21-\\x7E",
731
- lower: "a-z",
732
- print: "\\x20-\\x7E ",
733
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
734
- space: " \\t\\r\\n\\v\\f",
735
- upper: "A-Z",
736
- word: "A-Za-z0-9_",
737
- xdigit: "A-Fa-f0-9"
738
- };
739
- module.exports = {
740
- DEFAULT_MAX_EXTGLOB_RECURSION,
741
- MAX_LENGTH: 1024 * 64,
742
- POSIX_REGEX_SOURCE,
743
- // regular expressions
744
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
745
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
746
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
747
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
748
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
749
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
750
- // Replace globs with equivalent patterns to reduce parsing time.
751
- REPLACEMENTS: {
752
- __proto__: null,
753
- "***": "*",
754
- "**/**": "**",
755
- "**/**/**": "**"
756
- },
757
- // Digits
758
- CHAR_0: 48,
759
- /* 0 */
760
- CHAR_9: 57,
761
- /* 9 */
762
- // Alphabet chars.
763
- CHAR_UPPERCASE_A: 65,
764
- /* A */
765
- CHAR_LOWERCASE_A: 97,
766
- /* a */
767
- CHAR_UPPERCASE_Z: 90,
768
- /* Z */
769
- CHAR_LOWERCASE_Z: 122,
770
- /* z */
771
- CHAR_LEFT_PARENTHESES: 40,
772
- /* ( */
773
- CHAR_RIGHT_PARENTHESES: 41,
774
- /* ) */
775
- CHAR_ASTERISK: 42,
776
- /* * */
777
- // Non-alphabetic chars.
778
- CHAR_AMPERSAND: 38,
779
- /* & */
780
- CHAR_AT: 64,
781
- /* @ */
782
- CHAR_BACKWARD_SLASH: 92,
783
- /* \ */
784
- CHAR_CARRIAGE_RETURN: 13,
785
- /* \r */
786
- CHAR_CIRCUMFLEX_ACCENT: 94,
787
- /* ^ */
788
- CHAR_COLON: 58,
789
- /* : */
790
- CHAR_COMMA: 44,
791
- /* , */
792
- CHAR_DOT: 46,
793
- /* . */
794
- CHAR_DOUBLE_QUOTE: 34,
795
- /* " */
796
- CHAR_EQUAL: 61,
797
- /* = */
798
- CHAR_EXCLAMATION_MARK: 33,
799
- /* ! */
800
- CHAR_FORM_FEED: 12,
801
- /* \f */
802
- CHAR_FORWARD_SLASH: 47,
803
- /* / */
804
- CHAR_GRAVE_ACCENT: 96,
805
- /* ` */
806
- CHAR_HASH: 35,
807
- /* # */
808
- CHAR_HYPHEN_MINUS: 45,
809
- /* - */
810
- CHAR_LEFT_ANGLE_BRACKET: 60,
811
- /* < */
812
- CHAR_LEFT_CURLY_BRACE: 123,
813
- /* { */
814
- CHAR_LEFT_SQUARE_BRACKET: 91,
815
- /* [ */
816
- CHAR_LINE_FEED: 10,
817
- /* \n */
818
- CHAR_NO_BREAK_SPACE: 160,
819
- /* \u00A0 */
820
- CHAR_PERCENT: 37,
821
- /* % */
822
- CHAR_PLUS: 43,
823
- /* + */
824
- CHAR_QUESTION_MARK: 63,
825
- /* ? */
826
- CHAR_RIGHT_ANGLE_BRACKET: 62,
827
- /* > */
828
- CHAR_RIGHT_CURLY_BRACE: 125,
829
- /* } */
830
- CHAR_RIGHT_SQUARE_BRACKET: 93,
831
- /* ] */
832
- CHAR_SEMICOLON: 59,
833
- /* ; */
834
- CHAR_SINGLE_QUOTE: 39,
835
- /* ' */
836
- CHAR_SPACE: 32,
837
- /* */
838
- CHAR_TAB: 9,
839
- /* \t */
840
- CHAR_UNDERSCORE: 95,
841
- /* _ */
842
- CHAR_VERTICAL_LINE: 124,
843
- /* | */
844
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
845
- /* \uFEFF */
846
- SEP: path.sep,
847
- /**
848
- * Create EXTGLOB_CHARS
849
- */
850
- extglobChars(chars) {
851
- return {
852
- "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
853
- "?": { type: "qmark", open: "(?:", close: ")?" },
854
- "+": { type: "plus", open: "(?:", close: ")+" },
855
- "*": { type: "star", open: "(?:", close: ")*" },
856
- "@": { type: "at", open: "(?:", close: ")" }
857
- };
858
- },
859
- /**
860
- * Create GLOB_CHARS
861
- */
862
- globChars(win32) {
863
- return win32 === !0 ? WINDOWS_CHARS : POSIX_CHARS;
864
- }
865
- };
866
- }
867
- });
868
-
869
- // ../../node_modules/micromatch/node_modules/picomatch/lib/utils.js
870
- var require_utils2 = __commonJS({
871
- "../../node_modules/micromatch/node_modules/picomatch/lib/utils.js"(exports) {
872
- "use strict";
873
- var path = __require("path"), win32 = process.platform === "win32", {
874
- REGEX_BACKSLASH,
875
- REGEX_REMOVE_BACKSLASH,
876
- REGEX_SPECIAL_CHARS,
877
- REGEX_SPECIAL_CHARS_GLOBAL
878
- } = require_constants2();
879
- exports.isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val);
880
- exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
881
- exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
882
- exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
883
- exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
884
- exports.removeBackslashes = (str) => str.replace(REGEX_REMOVE_BACKSLASH, (match) => match === "\\" ? "" : match);
885
- exports.supportsLookbehinds = () => {
886
- let segs = process.version.slice(1).split(".").map(Number);
887
- return segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10;
888
- };
889
- exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 || path.sep === "\\";
890
- exports.escapeLast = (input, char, lastIdx) => {
891
- let idx = input.lastIndexOf(char, lastIdx);
892
- return idx === -1 ? input : input[idx - 1] === "\\" ? exports.escapeLast(input, char, idx - 1) : `${input.slice(0, idx)}\\${input.slice(idx)}`;
893
- };
894
- exports.removePrefix = (input, state = {}) => {
895
- let output = input;
896
- return output.startsWith("./") && (output = output.slice(2), state.prefix = "./"), output;
897
- };
898
- exports.wrapOutput = (input, state = {}, options = {}) => {
899
- let prepend = options.contains ? "" : "^", append = options.contains ? "" : "$", output = `${prepend}(?:${input})${append}`;
900
- return state.negated === !0 && (output = `(?:^(?!${output}).*$)`), output;
901
- };
902
- }
903
- });
904
-
905
- // ../../node_modules/micromatch/node_modules/picomatch/lib/scan.js
906
- var require_scan = __commonJS({
907
- "../../node_modules/micromatch/node_modules/picomatch/lib/scan.js"(exports, module) {
908
- "use strict";
909
- var utils = require_utils2(), {
910
- CHAR_ASTERISK,
911
- /* * */
912
- CHAR_AT,
913
- /* @ */
914
- CHAR_BACKWARD_SLASH,
915
- /* \ */
916
- CHAR_COMMA,
917
- /* , */
918
- CHAR_DOT,
919
- /* . */
920
- CHAR_EXCLAMATION_MARK,
921
- /* ! */
922
- CHAR_FORWARD_SLASH,
923
- /* / */
924
- CHAR_LEFT_CURLY_BRACE,
925
- /* { */
926
- CHAR_LEFT_PARENTHESES,
927
- /* ( */
928
- CHAR_LEFT_SQUARE_BRACKET,
929
- /* [ */
930
- CHAR_PLUS,
931
- /* + */
932
- CHAR_QUESTION_MARK,
933
- /* ? */
934
- CHAR_RIGHT_CURLY_BRACE,
935
- /* } */
936
- CHAR_RIGHT_PARENTHESES,
937
- /* ) */
938
- CHAR_RIGHT_SQUARE_BRACKET
939
- /* ] */
940
- } = require_constants2(), isPathSeparator = (code) => code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH, depth = (token) => {
941
- token.isPrefix !== !0 && (token.depth = token.isGlobstar ? 1 / 0 : 1);
942
- }, scan = (input, options) => {
943
- let opts = options || {}, length = input.length - 1, scanToEnd = opts.parts === !0 || opts.scanToEnd === !0, slashes = [], tokens = [], parts = [], str = input, index = -1, start = 0, lastIndex = 0, isBrace = !1, isBracket = !1, isGlob = !1, isExtglob = !1, isGlobstar = !1, braceEscaped = !1, backslashes = !1, negated = !1, negatedExtglob = !1, finished = !1, braces = 0, prev, code, token = { value: "", depth: 0, isGlob: !1 }, eos = () => index >= length, peek = () => str.charCodeAt(index + 1), advance = () => (prev = code, str.charCodeAt(++index));
944
- for (; index < length; ) {
945
- code = advance();
946
- let next;
947
- if (code === CHAR_BACKWARD_SLASH) {
948
- backslashes = token.backslashes = !0, code = advance(), code === CHAR_LEFT_CURLY_BRACE && (braceEscaped = !0);
949
- continue;
950
- }
951
- if (braceEscaped === !0 || code === CHAR_LEFT_CURLY_BRACE) {
952
- for (braces++; eos() !== !0 && (code = advance()); ) {
953
- if (code === CHAR_BACKWARD_SLASH) {
954
- backslashes = token.backslashes = !0, advance();
955
- continue;
956
- }
957
- if (code === CHAR_LEFT_CURLY_BRACE) {
958
- braces++;
959
- continue;
960
- }
961
- if (braceEscaped !== !0 && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
962
- if (isBrace = token.isBrace = !0, isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
963
- continue;
964
- break;
965
- }
966
- if (braceEscaped !== !0 && code === CHAR_COMMA) {
967
- if (isBrace = token.isBrace = !0, isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
968
- continue;
969
- break;
970
- }
971
- if (code === CHAR_RIGHT_CURLY_BRACE && (braces--, braces === 0)) {
972
- braceEscaped = !1, isBrace = token.isBrace = !0, finished = !0;
973
- break;
974
- }
975
- }
976
- if (scanToEnd === !0)
977
- continue;
978
- break;
979
- }
980
- if (code === CHAR_FORWARD_SLASH) {
981
- if (slashes.push(index), tokens.push(token), token = { value: "", depth: 0, isGlob: !1 }, finished === !0) continue;
982
- if (prev === CHAR_DOT && index === start + 1) {
983
- start += 2;
984
- continue;
985
- }
986
- lastIndex = index + 1;
987
- continue;
988
- }
989
- if (opts.noext !== !0 && (code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === !0 && peek() === CHAR_LEFT_PARENTHESES) {
990
- if (isGlob = token.isGlob = !0, isExtglob = token.isExtglob = !0, finished = !0, code === CHAR_EXCLAMATION_MARK && index === start && (negatedExtglob = !0), scanToEnd === !0) {
991
- for (; eos() !== !0 && (code = advance()); ) {
992
- if (code === CHAR_BACKWARD_SLASH) {
993
- backslashes = token.backslashes = !0, code = advance();
994
- continue;
995
- }
996
- if (code === CHAR_RIGHT_PARENTHESES) {
997
- isGlob = token.isGlob = !0, finished = !0;
998
- break;
999
- }
1000
- }
1001
- continue;
1002
- }
1003
- break;
1004
- }
1005
- if (code === CHAR_ASTERISK) {
1006
- if (prev === CHAR_ASTERISK && (isGlobstar = token.isGlobstar = !0), isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
1007
- continue;
1008
- break;
1009
- }
1010
- if (code === CHAR_QUESTION_MARK) {
1011
- if (isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
1012
- continue;
1013
- break;
1014
- }
1015
- if (code === CHAR_LEFT_SQUARE_BRACKET) {
1016
- for (; eos() !== !0 && (next = advance()); ) {
1017
- if (next === CHAR_BACKWARD_SLASH) {
1018
- backslashes = token.backslashes = !0, advance();
1019
- continue;
1020
- }
1021
- if (next === CHAR_RIGHT_SQUARE_BRACKET) {
1022
- isBracket = token.isBracket = !0, isGlob = token.isGlob = !0, finished = !0;
1023
- break;
1024
- }
1025
- }
1026
- if (scanToEnd === !0)
1027
- continue;
1028
- break;
1029
- }
1030
- if (opts.nonegate !== !0 && code === CHAR_EXCLAMATION_MARK && index === start) {
1031
- negated = token.negated = !0, start++;
1032
- continue;
1033
- }
1034
- if (opts.noparen !== !0 && code === CHAR_LEFT_PARENTHESES) {
1035
- if (isGlob = token.isGlob = !0, scanToEnd === !0) {
1036
- for (; eos() !== !0 && (code = advance()); ) {
1037
- if (code === CHAR_LEFT_PARENTHESES) {
1038
- backslashes = token.backslashes = !0, code = advance();
1039
- continue;
1040
- }
1041
- if (code === CHAR_RIGHT_PARENTHESES) {
1042
- finished = !0;
1043
- break;
1044
- }
1045
- }
1046
- continue;
1047
- }
1048
- break;
1049
- }
1050
- if (isGlob === !0) {
1051
- if (finished = !0, scanToEnd === !0)
1052
- continue;
1053
- break;
1054
- }
1055
- }
1056
- opts.noext === !0 && (isExtglob = !1, isGlob = !1);
1057
- let base = str, prefix = "", glob = "";
1058
- start > 0 && (prefix = str.slice(0, start), str = str.slice(start), lastIndex -= start), base && isGlob === !0 && lastIndex > 0 ? (base = str.slice(0, lastIndex), glob = str.slice(lastIndex)) : isGlob === !0 ? (base = "", glob = str) : base = str, base && base !== "" && base !== "/" && base !== str && isPathSeparator(base.charCodeAt(base.length - 1)) && (base = base.slice(0, -1)), opts.unescape === !0 && (glob && (glob = utils.removeBackslashes(glob)), base && backslashes === !0 && (base = utils.removeBackslashes(base)));
1059
- let state = {
1060
- prefix,
1061
- input,
1062
- start,
1063
- base,
1064
- glob,
1065
- isBrace,
1066
- isBracket,
1067
- isGlob,
1068
- isExtglob,
1069
- isGlobstar,
1070
- negated,
1071
- negatedExtglob
1072
- };
1073
- if (opts.tokens === !0 && (state.maxDepth = 0, isPathSeparator(code) || tokens.push(token), state.tokens = tokens), opts.parts === !0 || opts.tokens === !0) {
1074
- let prevIndex;
1075
- for (let idx = 0; idx < slashes.length; idx++) {
1076
- let n = prevIndex ? prevIndex + 1 : start, i = slashes[idx], value = input.slice(n, i);
1077
- opts.tokens && (idx === 0 && start !== 0 ? (tokens[idx].isPrefix = !0, tokens[idx].value = prefix) : tokens[idx].value = value, depth(tokens[idx]), state.maxDepth += tokens[idx].depth), (idx !== 0 || value !== "") && parts.push(value), prevIndex = i;
1078
- }
1079
- if (prevIndex && prevIndex + 1 < input.length) {
1080
- let value = input.slice(prevIndex + 1);
1081
- parts.push(value), opts.tokens && (tokens[tokens.length - 1].value = value, depth(tokens[tokens.length - 1]), state.maxDepth += tokens[tokens.length - 1].depth);
1082
- }
1083
- state.slashes = slashes, state.parts = parts;
1084
- }
1085
- return state;
1086
- };
1087
- module.exports = scan;
1088
- }
1089
- });
1090
-
1091
- // ../../node_modules/micromatch/node_modules/picomatch/lib/parse.js
1092
- var require_parse2 = __commonJS({
1093
- "../../node_modules/micromatch/node_modules/picomatch/lib/parse.js"(exports, module) {
1094
- "use strict";
1095
- var constants = require_constants2(), utils = require_utils2(), {
1096
- MAX_LENGTH,
1097
- POSIX_REGEX_SOURCE,
1098
- REGEX_NON_SPECIAL_CHARS,
1099
- REGEX_SPECIAL_CHARS_BACKREF,
1100
- REPLACEMENTS
1101
- } = constants, expandRange = (args, options) => {
1102
- if (typeof options.expandRange == "function")
1103
- return options.expandRange(...args, options);
1104
- args.sort();
1105
- let value = `[${args.join("-")}]`;
1106
- try {
1107
- new RegExp(value);
1108
- } catch {
1109
- return args.map((v) => utils.escapeRegex(v)).join("..");
1110
- }
1111
- return value;
1112
- }, syntaxError = (type, char) => `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`, splitTopLevel = (input) => {
1113
- let parts = [], bracket = 0, paren = 0, quote = 0, value = "", escaped = !1;
1114
- for (let ch of input) {
1115
- if (escaped === !0) {
1116
- value += ch, escaped = !1;
1117
- continue;
1118
- }
1119
- if (ch === "\\") {
1120
- value += ch, escaped = !0;
1121
- continue;
1122
- }
1123
- if (ch === '"') {
1124
- quote = quote === 1 ? 0 : 1, value += ch;
1125
- continue;
1126
- }
1127
- if (quote === 0) {
1128
- if (ch === "[")
1129
- bracket++;
1130
- else if (ch === "]" && bracket > 0)
1131
- bracket--;
1132
- else if (bracket === 0) {
1133
- if (ch === "(")
1134
- paren++;
1135
- else if (ch === ")" && paren > 0)
1136
- paren--;
1137
- else if (ch === "|" && paren === 0) {
1138
- parts.push(value), value = "";
1139
- continue;
1140
- }
1141
- }
1142
- }
1143
- value += ch;
1144
- }
1145
- return parts.push(value), parts;
1146
- }, isPlainBranch = (branch) => {
1147
- let escaped = !1;
1148
- for (let ch of branch) {
1149
- if (escaped === !0) {
1150
- escaped = !1;
1151
- continue;
1152
- }
1153
- if (ch === "\\") {
1154
- escaped = !0;
1155
- continue;
1156
- }
1157
- if (/[?*+@!()[\]{}]/.test(ch))
1158
- return !1;
1159
- }
1160
- return !0;
1161
- }, normalizeSimpleBranch = (branch) => {
1162
- let value = branch.trim(), changed = !0;
1163
- for (; changed === !0; )
1164
- changed = !1, /^@\([^\\()[\]{}|]+\)$/.test(value) && (value = value.slice(2, -1), changed = !0);
1165
- if (isPlainBranch(value))
1166
- return value.replace(/\\(.)/g, "$1");
1167
- }, hasRepeatedCharPrefixOverlap = (branches) => {
1168
- let values = branches.map(normalizeSimpleBranch).filter(Boolean);
1169
- for (let i = 0; i < values.length; i++)
1170
- for (let j = i + 1; j < values.length; j++) {
1171
- let a = values[i], b = values[j], char = a[0];
1172
- if (!(!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) && (a === b || a.startsWith(b) || b.startsWith(a)))
1173
- return !0;
1174
- }
1175
- return !1;
1176
- }, parseRepeatedExtglob = (pattern, requireEnd = !0) => {
1177
- if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(")
1178
- return;
1179
- let bracket = 0, paren = 0, quote = 0, escaped = !1;
1180
- for (let i = 1; i < pattern.length; i++) {
1181
- let ch = pattern[i];
1182
- if (escaped === !0) {
1183
- escaped = !1;
1184
- continue;
1185
- }
1186
- if (ch === "\\") {
1187
- escaped = !0;
1188
- continue;
1189
- }
1190
- if (ch === '"') {
1191
- quote = quote === 1 ? 0 : 1;
1192
- continue;
1193
- }
1194
- if (quote !== 1) {
1195
- if (ch === "[") {
1196
- bracket++;
1197
- continue;
1198
- }
1199
- if (ch === "]" && bracket > 0) {
1200
- bracket--;
1201
- continue;
1202
- }
1203
- if (!(bracket > 0)) {
1204
- if (ch === "(") {
1205
- paren++;
1206
- continue;
1207
- }
1208
- if (ch === ")" && (paren--, paren === 0))
1209
- return requireEnd === !0 && i !== pattern.length - 1 ? void 0 : {
1210
- type: pattern[0],
1211
- body: pattern.slice(2, i),
1212
- end: i
1213
- };
1214
- }
1215
- }
1216
- }
1217
- }, getStarExtglobSequenceOutput = (pattern) => {
1218
- let index = 0, chars = [];
1219
- for (; index < pattern.length; ) {
1220
- let match = parseRepeatedExtglob(pattern.slice(index), !1);
1221
- if (!match || match.type !== "*")
1222
- return;
1223
- let branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
1224
- if (branches.length !== 1)
1225
- return;
1226
- let branch = normalizeSimpleBranch(branches[0]);
1227
- if (!branch || branch.length !== 1)
1228
- return;
1229
- chars.push(branch), index += match.end + 1;
1230
- }
1231
- return chars.length < 1 ? void 0 : `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
1232
- }, repeatedExtglobRecursion = (pattern) => {
1233
- let depth = 0, value = pattern.trim(), match = parseRepeatedExtglob(value);
1234
- for (; match; )
1235
- depth++, value = match.body.trim(), match = parseRepeatedExtglob(value);
1236
- return depth;
1237
- }, analyzeRepeatedExtglob = (body, options) => {
1238
- if (options.maxExtglobRecursion === !1)
1239
- return { risky: !1 };
1240
- let max = typeof options.maxExtglobRecursion == "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION, branches = splitTopLevel(body).map((branch) => branch.trim());
1241
- if (branches.length > 1 && (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)))
1242
- return { risky: !0 };
1243
- for (let branch of branches) {
1244
- let safeOutput = getStarExtglobSequenceOutput(branch);
1245
- if (safeOutput)
1246
- return { risky: !0, safeOutput };
1247
- if (repeatedExtglobRecursion(branch) > max)
1248
- return { risky: !0 };
1249
- }
1250
- return { risky: !1 };
1251
- }, parse = (input, options) => {
1252
- if (typeof input != "string")
1253
- throw new TypeError("Expected a string");
1254
- input = REPLACEMENTS[input] || input;
1255
- let opts = { ...options }, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH, len = input.length;
1256
- if (len > max)
1257
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1258
- let bos = { type: "bos", value: "", output: opts.prepend || "" }, tokens = [bos], capture = opts.capture ? "" : "?:", win32 = utils.isWindows(options), PLATFORM_CHARS = constants.globChars(win32), EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS), {
1259
- DOT_LITERAL,
1260
- PLUS_LITERAL,
1261
- SLASH_LITERAL,
1262
- ONE_CHAR,
1263
- DOTS_SLASH,
1264
- NO_DOT,
1265
- NO_DOT_SLASH,
1266
- NO_DOTS_SLASH,
1267
- QMARK,
1268
- QMARK_NO_DOT,
1269
- STAR,
1270
- START_ANCHOR
1271
- } = PLATFORM_CHARS, globstar = (opts2) => `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`, nodot = opts.dot ? "" : NO_DOT, qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT, star = opts.bash === !0 ? globstar(opts) : STAR;
1272
- opts.capture && (star = `(${star})`), typeof opts.noext == "boolean" && (opts.noextglob = opts.noext);
1273
- let state = {
1274
- input,
1275
- index: -1,
1276
- start: 0,
1277
- dot: opts.dot === !0,
1278
- consumed: "",
1279
- output: "",
1280
- prefix: "",
1281
- backtrack: !1,
1282
- negated: !1,
1283
- brackets: 0,
1284
- braces: 0,
1285
- parens: 0,
1286
- quotes: 0,
1287
- globstar: !1,
1288
- tokens
1289
- };
1290
- input = utils.removePrefix(input, state), len = input.length;
1291
- let extglobs = [], braces = [], stack = [], prev = bos, value, eos = () => state.index === len - 1, peek = state.peek = (n = 1) => input[state.index + n], advance = state.advance = () => input[++state.index] || "", remaining = () => input.slice(state.index + 1), consume = (value2 = "", num = 0) => {
1292
- state.consumed += value2, state.index += num;
1293
- }, append = (token) => {
1294
- state.output += token.output != null ? token.output : token.value, consume(token.value);
1295
- }, negate = () => {
1296
- let count = 1;
1297
- for (; peek() === "!" && (peek(2) !== "(" || peek(3) === "?"); )
1298
- advance(), state.start++, count++;
1299
- return count % 2 === 0 ? !1 : (state.negated = !0, state.start++, !0);
1300
- }, increment = (type) => {
1301
- state[type]++, stack.push(type);
1302
- }, decrement = (type) => {
1303
- state[type]--, stack.pop();
1304
- }, push = (tok) => {
1305
- if (prev.type === "globstar") {
1306
- let isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"), isExtglob = tok.extglob === !0 || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
1307
- tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob && (state.output = state.output.slice(0, -prev.output.length), prev.type = "star", prev.value = "*", prev.output = star, state.output += prev.output);
1308
- }
1309
- if (extglobs.length && tok.type !== "paren" && (extglobs[extglobs.length - 1].inner += tok.value), (tok.value || tok.output) && append(tok), prev && prev.type === "text" && tok.type === "text") {
1310
- prev.value += tok.value, prev.output = (prev.output || "") + tok.value;
1311
- return;
1312
- }
1313
- tok.prev = prev, tokens.push(tok), prev = tok;
1314
- }, extglobOpen = (type, value2) => {
1315
- let token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
1316
- token.prev = prev, token.parens = state.parens, token.output = state.output, token.startIndex = state.index, token.tokensIndex = tokens.length;
1317
- let output = (opts.capture ? "(" : "") + token.open;
1318
- increment("parens"), push({ type, value: value2, output: state.output ? "" : ONE_CHAR }), push({ type: "paren", extglob: !0, value: advance(), output }), extglobs.push(token);
1319
- }, extglobClose = (token) => {
1320
- let literal = input.slice(token.startIndex, state.index + 1), body = input.slice(token.startIndex + 2, state.index), analysis = analyzeRepeatedExtglob(body, opts);
1321
- if ((token.type === "plus" || token.type === "star") && analysis.risky) {
1322
- let safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0, open = tokens[token.tokensIndex];
1323
- open.type = "text", open.value = literal, open.output = safeOutput || utils.escapeRegex(literal);
1324
- for (let i = token.tokensIndex + 1; i < tokens.length; i++)
1325
- tokens[i].value = "", tokens[i].output = "", delete tokens[i].suffix;
1326
- state.output = token.output + open.output, state.backtrack = !0, push({ type: "paren", extglob: !0, value, output: "" }), decrement("parens");
1327
- return;
1328
- }
1329
- let output = token.close + (opts.capture ? ")" : ""), rest;
1330
- if (token.type === "negate") {
1331
- let extglobStar = star;
1332
- if (token.inner && token.inner.length > 1 && token.inner.includes("/") && (extglobStar = globstar(opts)), (extglobStar !== star || eos() || /^\)+$/.test(remaining())) && (output = token.close = `)$))${extglobStar}`), token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
1333
- let expression = parse(rest, { ...options, fastpaths: !1 }).output;
1334
- output = token.close = `)${expression})${extglobStar})`;
1335
- }
1336
- token.prev.type === "bos" && (state.negatedExtglob = !0);
1337
- }
1338
- push({ type: "paren", extglob: !0, value, output }), decrement("parens");
1339
- };
1340
- if (opts.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(input)) {
1341
- let backslashes = !1, output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => first === "\\" ? (backslashes = !0, m) : first === "?" ? esc ? esc + first + (rest ? QMARK.repeat(rest.length) : "") : index === 0 ? qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "") : QMARK.repeat(chars.length) : first === "." ? DOT_LITERAL.repeat(chars.length) : first === "*" ? esc ? esc + first + (rest ? star : "") : star : esc ? m : `\\${m}`);
1342
- return backslashes === !0 && (opts.unescape === !0 ? output = output.replace(/\\/g, "") : output = output.replace(/\\+/g, (m) => m.length % 2 === 0 ? "\\\\" : m ? "\\" : "")), output === input && opts.contains === !0 ? (state.output = input, state) : (state.output = utils.wrapOutput(output, state, options), state);
1343
- }
1344
- for (; !eos(); ) {
1345
- if (value = advance(), value === "\0")
1346
- continue;
1347
- if (value === "\\") {
1348
- let next = peek();
1349
- if (next === "/" && opts.bash !== !0 || next === "." || next === ";")
1350
- continue;
1351
- if (!next) {
1352
- value += "\\", push({ type: "text", value });
1353
- continue;
1354
- }
1355
- let match = /^\\+/.exec(remaining()), slashes = 0;
1356
- if (match && match[0].length > 2 && (slashes = match[0].length, state.index += slashes, slashes % 2 !== 0 && (value += "\\")), opts.unescape === !0 ? value = advance() : value += advance(), state.brackets === 0) {
1357
- push({ type: "text", value });
1358
- continue;
1359
- }
1360
- }
1361
- if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) {
1362
- if (opts.posix !== !1 && value === ":") {
1363
- let inner = prev.value.slice(1);
1364
- if (inner.includes("[") && (prev.posix = !0, inner.includes(":"))) {
1365
- let idx = prev.value.lastIndexOf("["), pre = prev.value.slice(0, idx), rest2 = prev.value.slice(idx + 2), posix = POSIX_REGEX_SOURCE[rest2];
1366
- if (posix) {
1367
- prev.value = pre + posix, state.backtrack = !0, advance(), !bos.output && tokens.indexOf(prev) === 1 && (bos.output = ONE_CHAR);
1368
- continue;
1369
- }
1370
- }
1371
- }
1372
- (value === "[" && peek() !== ":" || value === "-" && peek() === "]") && (value = `\\${value}`), value === "]" && (prev.value === "[" || prev.value === "[^") && (value = `\\${value}`), opts.posix === !0 && value === "!" && prev.value === "[" && (value = "^"), prev.value += value, append({ value });
1373
- continue;
1374
- }
1375
- if (state.quotes === 1 && value !== '"') {
1376
- value = utils.escapeRegex(value), prev.value += value, append({ value });
1377
- continue;
1378
- }
1379
- if (value === '"') {
1380
- state.quotes = state.quotes === 1 ? 0 : 1, opts.keepQuotes === !0 && push({ type: "text", value });
1381
- continue;
1382
- }
1383
- if (value === "(") {
1384
- increment("parens"), push({ type: "paren", value });
1385
- continue;
1386
- }
1387
- if (value === ")") {
1388
- if (state.parens === 0 && opts.strictBrackets === !0)
1389
- throw new SyntaxError(syntaxError("opening", "("));
1390
- let extglob = extglobs[extglobs.length - 1];
1391
- if (extglob && state.parens === extglob.parens + 1) {
1392
- extglobClose(extglobs.pop());
1393
- continue;
1394
- }
1395
- push({ type: "paren", value, output: state.parens ? ")" : "\\)" }), decrement("parens");
1396
- continue;
1397
- }
1398
- if (value === "[") {
1399
- if (opts.nobracket === !0 || !remaining().includes("]")) {
1400
- if (opts.nobracket !== !0 && opts.strictBrackets === !0)
1401
- throw new SyntaxError(syntaxError("closing", "]"));
1402
- value = `\\${value}`;
1403
- } else
1404
- increment("brackets");
1405
- push({ type: "bracket", value });
1406
- continue;
1407
- }
1408
- if (value === "]") {
1409
- if (opts.nobracket === !0 || prev && prev.type === "bracket" && prev.value.length === 1) {
1410
- push({ type: "text", value, output: `\\${value}` });
1411
- continue;
1412
- }
1413
- if (state.brackets === 0) {
1414
- if (opts.strictBrackets === !0)
1415
- throw new SyntaxError(syntaxError("opening", "["));
1416
- push({ type: "text", value, output: `\\${value}` });
1417
- continue;
1418
- }
1419
- decrement("brackets");
1420
- let prevValue = prev.value.slice(1);
1421
- if (prev.posix !== !0 && prevValue[0] === "^" && !prevValue.includes("/") && (value = `/${value}`), prev.value += value, append({ value }), opts.literalBrackets === !1 || utils.hasRegexChars(prevValue))
1422
- continue;
1423
- let escaped = utils.escapeRegex(prev.value);
1424
- if (state.output = state.output.slice(0, -prev.value.length), opts.literalBrackets === !0) {
1425
- state.output += escaped, prev.value = escaped;
1426
- continue;
1427
- }
1428
- prev.value = `(${capture}${escaped}|${prev.value})`, state.output += prev.value;
1429
- continue;
1430
- }
1431
- if (value === "{" && opts.nobrace !== !0) {
1432
- increment("braces");
1433
- let open = {
1434
- type: "brace",
1435
- value,
1436
- output: "(",
1437
- outputIndex: state.output.length,
1438
- tokensIndex: state.tokens.length
1439
- };
1440
- braces.push(open), push(open);
1441
- continue;
1442
- }
1443
- if (value === "}") {
1444
- let brace = braces[braces.length - 1];
1445
- if (opts.nobrace === !0 || !brace) {
1446
- push({ type: "text", value, output: value });
1447
- continue;
1448
- }
1449
- let output = ")";
1450
- if (brace.dots === !0) {
1451
- let arr = tokens.slice(), range = [];
1452
- for (let i = arr.length - 1; i >= 0 && (tokens.pop(), arr[i].type !== "brace"); i--)
1453
- arr[i].type !== "dots" && range.unshift(arr[i].value);
1454
- output = expandRange(range, opts), state.backtrack = !0;
1455
- }
1456
- if (brace.comma !== !0 && brace.dots !== !0) {
1457
- let out = state.output.slice(0, brace.outputIndex), toks = state.tokens.slice(brace.tokensIndex);
1458
- brace.value = brace.output = "\\{", value = output = "\\}", state.output = out;
1459
- for (let t of toks)
1460
- state.output += t.output || t.value;
1461
- }
1462
- push({ type: "brace", value, output }), decrement("braces"), braces.pop();
1463
- continue;
1464
- }
1465
- if (value === "|") {
1466
- extglobs.length > 0 && extglobs[extglobs.length - 1].conditions++, push({ type: "text", value });
1467
- continue;
1468
- }
1469
- if (value === ",") {
1470
- let output = value, brace = braces[braces.length - 1];
1471
- brace && stack[stack.length - 1] === "braces" && (brace.comma = !0, output = "|"), push({ type: "comma", value, output });
1472
- continue;
1473
- }
1474
- if (value === "/") {
1475
- if (prev.type === "dot" && state.index === state.start + 1) {
1476
- state.start = state.index + 1, state.consumed = "", state.output = "", tokens.pop(), prev = bos;
1477
- continue;
1478
- }
1479
- push({ type: "slash", value, output: SLASH_LITERAL });
1480
- continue;
1481
- }
1482
- if (value === ".") {
1483
- if (state.braces > 0 && prev.type === "dot") {
1484
- prev.value === "." && (prev.output = DOT_LITERAL);
1485
- let brace = braces[braces.length - 1];
1486
- prev.type = "dots", prev.output += value, prev.value += value, brace.dots = !0;
1487
- continue;
1488
- }
1489
- if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
1490
- push({ type: "text", value, output: DOT_LITERAL });
1491
- continue;
1492
- }
1493
- push({ type: "dot", value, output: DOT_LITERAL });
1494
- continue;
1495
- }
1496
- if (value === "?") {
1497
- if (!(prev && prev.value === "(") && opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
1498
- extglobOpen("qmark", value);
1499
- continue;
1500
- }
1501
- if (prev && prev.type === "paren") {
1502
- let next = peek(), output = value;
1503
- if (next === "<" && !utils.supportsLookbehinds())
1504
- throw new Error("Node.js v10 or higher is required for regex lookbehinds");
1505
- (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) && (output = `\\${value}`), push({ type: "text", value, output });
1506
- continue;
1507
- }
1508
- if (opts.dot !== !0 && (prev.type === "slash" || prev.type === "bos")) {
1509
- push({ type: "qmark", value, output: QMARK_NO_DOT });
1510
- continue;
1511
- }
1512
- push({ type: "qmark", value, output: QMARK });
1513
- continue;
1514
- }
1515
- if (value === "!") {
1516
- if (opts.noextglob !== !0 && peek() === "(" && (peek(2) !== "?" || !/[!=<:]/.test(peek(3)))) {
1517
- extglobOpen("negate", value);
1518
- continue;
1519
- }
1520
- if (opts.nonegate !== !0 && state.index === 0) {
1521
- negate();
1522
- continue;
1523
- }
1524
- }
1525
- if (value === "+") {
1526
- if (opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
1527
- extglobOpen("plus", value);
1528
- continue;
1529
- }
1530
- if (prev && prev.value === "(" || opts.regex === !1) {
1531
- push({ type: "plus", value, output: PLUS_LITERAL });
1532
- continue;
1533
- }
1534
- if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) {
1535
- push({ type: "plus", value });
1536
- continue;
1537
- }
1538
- push({ type: "plus", value: PLUS_LITERAL });
1539
- continue;
1540
- }
1541
- if (value === "@") {
1542
- if (opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
1543
- push({ type: "at", extglob: !0, value, output: "" });
1544
- continue;
1545
- }
1546
- push({ type: "text", value });
1547
- continue;
1548
- }
1549
- if (value !== "*") {
1550
- (value === "$" || value === "^") && (value = `\\${value}`);
1551
- let match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
1552
- match && (value += match[0], state.index += match[0].length), push({ type: "text", value });
1553
- continue;
1554
- }
1555
- if (prev && (prev.type === "globstar" || prev.star === !0)) {
1556
- prev.type = "star", prev.star = !0, prev.value += value, prev.output = star, state.backtrack = !0, state.globstar = !0, consume(value);
1557
- continue;
1558
- }
1559
- let rest = remaining();
1560
- if (opts.noextglob !== !0 && /^\([^?]/.test(rest)) {
1561
- extglobOpen("star", value);
1562
- continue;
1563
- }
1564
- if (prev.type === "star") {
1565
- if (opts.noglobstar === !0) {
1566
- consume(value);
1567
- continue;
1568
- }
1569
- let prior = prev.prev, before = prior.prev, isStart = prior.type === "slash" || prior.type === "bos", afterStar = before && (before.type === "star" || before.type === "globstar");
1570
- if (opts.bash === !0 && (!isStart || rest[0] && rest[0] !== "/")) {
1571
- push({ type: "star", value, output: "" });
1572
- continue;
1573
- }
1574
- let isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"), isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
1575
- if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
1576
- push({ type: "star", value, output: "" });
1577
- continue;
1578
- }
1579
- for (; rest.slice(0, 3) === "/**"; ) {
1580
- let after = input[state.index + 4];
1581
- if (after && after !== "/")
1582
- break;
1583
- rest = rest.slice(3), consume("/**", 3);
1584
- }
1585
- if (prior.type === "bos" && eos()) {
1586
- prev.type = "globstar", prev.value += value, prev.output = globstar(opts), state.output = prev.output, state.globstar = !0, consume(value);
1587
- continue;
1588
- }
1589
- if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
1590
- state.output = state.output.slice(0, -(prior.output + prev.output).length), prior.output = `(?:${prior.output}`, prev.type = "globstar", prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"), prev.value += value, state.globstar = !0, state.output += prior.output + prev.output, consume(value);
1591
- continue;
1592
- }
1593
- if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
1594
- let end = rest[1] !== void 0 ? "|$" : "";
1595
- state.output = state.output.slice(0, -(prior.output + prev.output).length), prior.output = `(?:${prior.output}`, prev.type = "globstar", prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`, prev.value += value, state.output += prior.output + prev.output, state.globstar = !0, consume(value + advance()), push({ type: "slash", value: "/", output: "" });
1596
- continue;
1597
- }
1598
- if (prior.type === "bos" && rest[0] === "/") {
1599
- prev.type = "globstar", prev.value += value, prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`, state.output = prev.output, state.globstar = !0, consume(value + advance()), push({ type: "slash", value: "/", output: "" });
1600
- continue;
1601
- }
1602
- state.output = state.output.slice(0, -prev.output.length), prev.type = "globstar", prev.output = globstar(opts), prev.value += value, state.output += prev.output, state.globstar = !0, consume(value);
1603
- continue;
1604
- }
1605
- let token = { type: "star", value, output: star };
1606
- if (opts.bash === !0) {
1607
- token.output = ".*?", (prev.type === "bos" || prev.type === "slash") && (token.output = nodot + token.output), push(token);
1608
- continue;
1609
- }
1610
- if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === !0) {
1611
- token.output = value, push(token);
1612
- continue;
1613
- }
1614
- (state.index === state.start || prev.type === "slash" || prev.type === "dot") && (prev.type === "dot" ? (state.output += NO_DOT_SLASH, prev.output += NO_DOT_SLASH) : opts.dot === !0 ? (state.output += NO_DOTS_SLASH, prev.output += NO_DOTS_SLASH) : (state.output += nodot, prev.output += nodot), peek() !== "*" && (state.output += ONE_CHAR, prev.output += ONE_CHAR)), push(token);
1615
- }
1616
- for (; state.brackets > 0; ) {
1617
- if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", "]"));
1618
- state.output = utils.escapeLast(state.output, "["), decrement("brackets");
1619
- }
1620
- for (; state.parens > 0; ) {
1621
- if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", ")"));
1622
- state.output = utils.escapeLast(state.output, "("), decrement("parens");
1623
- }
1624
- for (; state.braces > 0; ) {
1625
- if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", "}"));
1626
- state.output = utils.escapeLast(state.output, "{"), decrement("braces");
1627
- }
1628
- if (opts.strictSlashes !== !0 && (prev.type === "star" || prev.type === "bracket") && push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }), state.backtrack === !0) {
1629
- state.output = "";
1630
- for (let token of state.tokens)
1631
- state.output += token.output != null ? token.output : token.value, token.suffix && (state.output += token.suffix);
1632
- }
1633
- return state;
1634
- };
1635
- parse.fastpaths = (input, options) => {
1636
- let opts = { ...options }, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH, len = input.length;
1637
- if (len > max)
1638
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1639
- input = REPLACEMENTS[input] || input;
1640
- let win32 = utils.isWindows(options), {
1641
- DOT_LITERAL,
1642
- SLASH_LITERAL,
1643
- ONE_CHAR,
1644
- DOTS_SLASH,
1645
- NO_DOT,
1646
- NO_DOTS,
1647
- NO_DOTS_SLASH,
1648
- STAR,
1649
- START_ANCHOR
1650
- } = constants.globChars(win32), nodot = opts.dot ? NO_DOTS : NO_DOT, slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT, capture = opts.capture ? "" : "?:", state = { negated: !1, prefix: "" }, star = opts.bash === !0 ? ".*?" : STAR;
1651
- opts.capture && (star = `(${star})`);
1652
- let globstar = (opts2) => opts2.noglobstar === !0 ? star : `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`, create = (str) => {
1653
- switch (str) {
1654
- case "*":
1655
- return `${nodot}${ONE_CHAR}${star}`;
1656
- case ".*":
1657
- return `${DOT_LITERAL}${ONE_CHAR}${star}`;
1658
- case "*.*":
1659
- return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
1660
- case "*/*":
1661
- return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
1662
- case "**":
1663
- return nodot + globstar(opts);
1664
- case "**/*":
1665
- return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
1666
- case "**/*.*":
1667
- return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
1668
- case "**/.*":
1669
- return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
1670
- default: {
1671
- let match = /^(.*?)\.(\w+)$/.exec(str);
1672
- if (!match) return;
1673
- let source2 = create(match[1]);
1674
- return source2 ? source2 + DOT_LITERAL + match[2] : void 0;
1675
- }
1676
- }
1677
- }, output = utils.removePrefix(input, state), source = create(output);
1678
- return source && opts.strictSlashes !== !0 && (source += `${SLASH_LITERAL}?`), source;
1679
- };
1680
- module.exports = parse;
1681
- }
1682
- });
1683
-
1684
- // ../../node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
1685
- var require_picomatch = __commonJS({
1686
- "../../node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(exports, module) {
1687
- "use strict";
1688
- var path = __require("path"), scan = require_scan(), parse = require_parse2(), utils = require_utils2(), constants = require_constants2(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
1689
- if (Array.isArray(glob)) {
1690
- let fns = glob.map((input) => picomatch(input, options, returnState));
1691
- return (str) => {
1692
- for (let isMatch of fns) {
1693
- let state2 = isMatch(str);
1694
- if (state2) return state2;
1695
- }
1696
- return !1;
1697
- };
1698
- }
1699
- let isState = isObject(glob) && glob.tokens && glob.input;
1700
- if (glob === "" || typeof glob != "string" && !isState)
1701
- throw new TypeError("Expected pattern to be a non-empty string");
1702
- let opts = options || {}, posix = utils.isWindows(options), regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, !1, !0), state = regex.state;
1703
- delete regex.state;
1704
- let isIgnored = () => !1;
1705
- if (opts.ignore) {
1706
- let ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
1707
- isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
1708
- }
1709
- let matcher = (input, returnObject = !1) => {
1710
- let { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix }), result = { glob, state, regex, posix, input, output, match, isMatch };
1711
- return typeof opts.onResult == "function" && opts.onResult(result), isMatch === !1 ? (result.isMatch = !1, returnObject ? result : !1) : isIgnored(input) ? (typeof opts.onIgnore == "function" && opts.onIgnore(result), result.isMatch = !1, returnObject ? result : !1) : (typeof opts.onMatch == "function" && opts.onMatch(result), returnObject ? result : !0);
1712
- };
1713
- return returnState && (matcher.state = state), matcher;
1714
- };
1715
- picomatch.test = (input, regex, options, { glob, posix } = {}) => {
1716
- if (typeof input != "string")
1717
- throw new TypeError("Expected input to be a string");
1718
- if (input === "")
1719
- return { isMatch: !1, output: "" };
1720
- let opts = options || {}, format = opts.format || (posix ? utils.toPosixSlashes : null), match = input === glob, output = match && format ? format(input) : input;
1721
- return match === !1 && (output = format ? format(input) : input, match = output === glob), (match === !1 || opts.capture === !0) && (opts.matchBase === !0 || opts.basename === !0 ? match = picomatch.matchBase(input, regex, options, posix) : match = regex.exec(output)), { isMatch: !!match, match, output };
1722
- };
1723
- picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path.basename(input));
1724
- picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
1725
- picomatch.parse = (pattern, options) => Array.isArray(pattern) ? pattern.map((p) => picomatch.parse(p, options)) : parse(pattern, { ...options, fastpaths: !1 });
1726
- picomatch.scan = (input, options) => scan(input, options);
1727
- picomatch.compileRe = (state, options, returnOutput = !1, returnState = !1) => {
1728
- if (returnOutput === !0)
1729
- return state.output;
1730
- let opts = options || {}, prepend = opts.contains ? "" : "^", append = opts.contains ? "" : "$", source = `${prepend}(?:${state.output})${append}`;
1731
- state && state.negated === !0 && (source = `^(?!${source}).*$`);
1732
- let regex = picomatch.toRegex(source, options);
1733
- return returnState === !0 && (regex.state = state), regex;
1734
- };
1735
- picomatch.makeRe = (input, options = {}, returnOutput = !1, returnState = !1) => {
1736
- if (!input || typeof input != "string")
1737
- throw new TypeError("Expected a non-empty string");
1738
- let parsed = { negated: !1, fastpaths: !0 };
1739
- return options.fastpaths !== !1 && (input[0] === "." || input[0] === "*") && (parsed.output = parse.fastpaths(input, options)), parsed.output || (parsed = parse(input, options)), picomatch.compileRe(parsed, options, returnOutput, returnState);
1740
- };
1741
- picomatch.toRegex = (source, options) => {
1742
- try {
1743
- let opts = options || {};
1744
- return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
1745
- } catch (err) {
1746
- if (options && options.debug === !0) throw err;
1747
- return /$^/;
1748
- }
1749
- };
1750
- picomatch.constants = constants;
1751
- module.exports = picomatch;
1752
- }
1753
- });
1754
-
1755
- // ../../node_modules/micromatch/node_modules/picomatch/index.js
1756
- var require_picomatch2 = __commonJS({
1757
- "../../node_modules/micromatch/node_modules/picomatch/index.js"(exports, module) {
1758
- "use strict";
1759
- module.exports = require_picomatch();
1760
- }
1761
- });
1762
-
1763
- // ../../node_modules/micromatch/index.js
1764
- var require_micromatch = __commonJS({
1765
- "../../node_modules/micromatch/index.js"(exports, module) {
1766
- "use strict";
1767
- var util = __require("util"), braces = require_braces(), picomatch = require_picomatch2(), utils = require_utils2(), isEmptyString = (v) => v === "" || v === "./", hasBraces = (v) => {
1768
- let index = v.indexOf("{");
1769
- return index > -1 && v.indexOf("}", index) > -1;
1770
- }, micromatch = (list, patterns, options) => {
1771
- patterns = [].concat(patterns), list = [].concat(list);
1772
- let omit = /* @__PURE__ */ new Set(), keep = /* @__PURE__ */ new Set(), items = /* @__PURE__ */ new Set(), negatives = 0, onResult = (state) => {
1773
- items.add(state.output), options && options.onResult && options.onResult(state);
1774
- };
1775
- for (let i = 0; i < patterns.length; i++) {
1776
- let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, !0), negated = isMatch.state.negated || isMatch.state.negatedExtglob;
1777
- negated && negatives++;
1778
- for (let item of list) {
1779
- let matched = isMatch(item, !0);
1780
- (negated ? !matched.isMatch : matched.isMatch) && (negated ? omit.add(matched.output) : (omit.delete(matched.output), keep.add(matched.output)));
1781
- }
1782
- }
1783
- let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
1784
- if (options && matches.length === 0) {
1785
- if (options.failglob === !0)
1786
- throw new Error(`No matches found for "${patterns.join(", ")}"`);
1787
- if (options.nonull === !0 || options.nullglob === !0)
1788
- return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
1789
- }
1790
- return matches;
1791
- };
1792
- micromatch.match = micromatch;
1793
- micromatch.matcher = (pattern, options) => picomatch(pattern, options);
1794
- micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
1795
- micromatch.any = micromatch.isMatch;
1796
- micromatch.not = (list, patterns, options = {}) => {
1797
- patterns = [].concat(patterns).map(String);
1798
- let result = /* @__PURE__ */ new Set(), items = [], onResult = (state) => {
1799
- options.onResult && options.onResult(state), items.push(state.output);
1800
- }, matches = new Set(micromatch(list, patterns, { ...options, onResult }));
1801
- for (let item of items)
1802
- matches.has(item) || result.add(item);
1803
- return [...result];
1804
- };
1805
- micromatch.contains = (str, pattern, options) => {
1806
- if (typeof str != "string")
1807
- throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
1808
- if (Array.isArray(pattern))
1809
- return pattern.some((p) => micromatch.contains(str, p, options));
1810
- if (typeof pattern == "string") {
1811
- if (isEmptyString(str) || isEmptyString(pattern))
1812
- return !1;
1813
- if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern))
1814
- return !0;
1815
- }
1816
- return micromatch.isMatch(str, pattern, { ...options, contains: !0 });
1817
- };
1818
- micromatch.matchKeys = (obj, patterns, options) => {
1819
- if (!utils.isObject(obj))
1820
- throw new TypeError("Expected the first argument to be an object");
1821
- let keys = micromatch(Object.keys(obj), patterns, options), res = {};
1822
- for (let key of keys) res[key] = obj[key];
1823
- return res;
1824
- };
1825
- micromatch.some = (list, patterns, options) => {
1826
- let items = [].concat(list);
1827
- for (let pattern of [].concat(patterns)) {
1828
- let isMatch = picomatch(String(pattern), options);
1829
- if (items.some((item) => isMatch(item)))
1830
- return !0;
1831
- }
1832
- return !1;
1833
- };
1834
- micromatch.every = (list, patterns, options) => {
1835
- let items = [].concat(list);
1836
- for (let pattern of [].concat(patterns)) {
1837
- let isMatch = picomatch(String(pattern), options);
1838
- if (!items.every((item) => isMatch(item)))
1839
- return !1;
1840
- }
1841
- return !0;
1842
- };
1843
- micromatch.all = (str, patterns, options) => {
1844
- if (typeof str != "string")
1845
- throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
1846
- return [].concat(patterns).every((p) => picomatch(p, options)(str));
1847
- };
1848
- micromatch.capture = (glob, input, options) => {
1849
- let posix = utils.isWindows(options), match = picomatch.makeRe(String(glob), { ...options, capture: !0 }).exec(posix ? utils.toPosixSlashes(input) : input);
1850
- if (match)
1851
- return match.slice(1).map((v) => v === void 0 ? "" : v);
1852
- };
1853
- micromatch.makeRe = (...args) => picomatch.makeRe(...args);
1854
- micromatch.scan = (...args) => picomatch.scan(...args);
1855
- micromatch.parse = (patterns, options) => {
1856
- let res = [];
1857
- for (let pattern of [].concat(patterns || []))
1858
- for (let str of braces(String(pattern), options))
1859
- res.push(picomatch.parse(str, options));
1860
- return res;
1861
- };
1862
- micromatch.braces = (pattern, options) => {
1863
- if (typeof pattern != "string") throw new TypeError("Expected a string");
1864
- return options && options.nobrace === !0 || !hasBraces(pattern) ? [pattern] : braces(pattern, options);
1865
- };
1866
- micromatch.braceExpand = (pattern, options) => {
1867
- if (typeof pattern != "string") throw new TypeError("Expected a string");
1868
- return micromatch.braces(pattern, { ...options, expand: !0 });
1869
- };
1870
- micromatch.hasBraces = hasBraces;
1871
- module.exports = micromatch;
1872
- }
1873
- });
1874
-
1875
- export {
1876
- require_micromatch
1877
- };