@wix/cli 1.1.84 → 1.1.86

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 (146) hide show
  1. package/bin/wix.cjs +4 -4
  2. package/build/{DevCommand-QIKMRRK2.js → DevCommand-LK2J4SHX.js} +19 -16
  3. package/build/{DevCommand-QIKMRRK2.js.map → DevCommand-LK2J4SHX.js.map} +1 -1
  4. package/build/{DevCommand-3T55WLCX.js → DevCommand-NPY7LRXR.js} +27 -23
  5. package/build/{DevCommand-3T55WLCX.js.map → DevCommand-NPY7LRXR.js.map} +1 -1
  6. package/build/{InstallCommand-4YBBLALN.js → InstallCommand-HETKQTOF.js} +21 -18
  7. package/build/{InstallCommand-4YBBLALN.js.map → InstallCommand-HETKQTOF.js.map} +1 -1
  8. package/build/{LoginCommand-VYFNU5TA.js → LoginCommand-WCUDINVD.js} +17 -32
  9. package/build/LoginCommand-WCUDINVD.js.map +1 -0
  10. package/build/{LogoutCommand-W3YHFAZJ.js → LogoutCommand-LKLIYJ4J.js} +15 -16
  11. package/build/LogoutCommand-LKLIYJ4J.js.map +1 -0
  12. package/build/{PreviewCommand-YHAJGKV7.js → PreviewCommand-3BMR7D7L.js} +27 -24
  13. package/build/{PreviewCommand-YHAJGKV7.js.map → PreviewCommand-3BMR7D7L.js.map} +1 -1
  14. package/build/{PreviewCommand-N5QXU2FK.js → PreviewCommand-C4T25Z3E.js} +22 -19
  15. package/build/{PreviewCommand-N5QXU2FK.js.map → PreviewCommand-C4T25Z3E.js.map} +1 -1
  16. package/build/{PublishCommand-UJX7YSD7.js → PublishCommand-O5NP2HRQ.js} +24 -21
  17. package/build/{PublishCommand-UJX7YSD7.js.map → PublishCommand-O5NP2HRQ.js.map} +1 -1
  18. package/build/{UninstallCommand-WYZDNETD.js → UninstallCommand-CBFAJV2F.js} +21 -18
  19. package/build/{UninstallCommand-WYZDNETD.js.map → UninstallCommand-CBFAJV2F.js.map} +1 -1
  20. package/build/{WhoamiCommand-DXQH6HUP.js → WhoamiCommand-LPJGYXSP.js} +7 -17
  21. package/build/WhoamiCommand-LPJGYXSP.js.map +1 -0
  22. package/build/{chunk-OG7CQWH4.js → chunk-46OKYX3T.js} +3 -3
  23. package/build/{chunk-443UULTT.js → chunk-6VFQIFXS.js} +4 -4
  24. package/build/{chunk-ODUS243S.js → chunk-74KZJOZH.js} +12 -12
  25. package/build/{chunk-VTNVMBHW.js → chunk-7Y2EFSBJ.js} +6 -6
  26. package/build/{chunk-6YL4Z7HO.js → chunk-AGKBY3K2.js} +8 -7
  27. package/build/chunk-AGKBY3K2.js.map +1 -0
  28. package/build/chunk-AII5FZC2.js +2848 -0
  29. package/build/chunk-AII5FZC2.js.map +1 -0
  30. package/build/{chunk-HIY4FIRZ.js → chunk-APJVRHWV.js} +2 -2
  31. package/build/{chunk-7SBYWHZH.js → chunk-CJHPYBMK.js} +2 -2
  32. package/build/{chunk-D32EVRHZ.js → chunk-FTL2KYZQ.js} +2 -2
  33. package/build/chunk-GPEPI5XF.js +546 -0
  34. package/build/chunk-GPEPI5XF.js.map +1 -0
  35. package/build/{chunk-RTNNLCWK.js → chunk-GYIDIRSX.js} +2 -2
  36. package/build/{chunk-3TOIVPXU.js → chunk-J3OSZVAR.js} +3 -3
  37. package/build/{chunk-7HAKFVGI.js → chunk-JHHGNLIV.js} +2 -2
  38. package/build/{chunk-GMB4V5N6.js → chunk-JUZMIMAT.js} +2 -2
  39. package/build/chunk-K4AB7LGX.js +6548 -0
  40. package/build/chunk-K4AB7LGX.js.map +1 -0
  41. package/build/{chunk-EB5O7IPB.js → chunk-KT2FHEZR.js} +3 -3
  42. package/build/{chunk-D4OH4DMW.js → chunk-LUAAKCVP.js} +11 -11
  43. package/build/{chunk-ZB6FQ6GP.js → chunk-M3K72MEX.js} +6 -5
  44. package/build/{chunk-ZB6FQ6GP.js.map → chunk-M3K72MEX.js.map} +1 -1
  45. package/build/{chunk-TTMVSSSY.js → chunk-N4QBC52K.js} +3 -3
  46. package/build/{chunk-NN465VNN.js → chunk-NOH6CVSC.js} +5 -5
  47. package/build/{chunk-KUAMU72Z.js → chunk-NPVP6ZBL.js} +5 -3
  48. package/build/{chunk-KUAMU72Z.js.map → chunk-NPVP6ZBL.js.map} +1 -1
  49. package/build/{chunk-2F3TGHU3.js → chunk-O2XYQA7P.js} +4289 -6811
  50. package/build/chunk-O2XYQA7P.js.map +1 -0
  51. package/build/{chunk-PCN3DSXO.js → chunk-OVWRYWLC.js} +4 -4
  52. package/build/{chunk-VDEWNPZW.js → chunk-P5ZYMUV4.js} +4 -4
  53. package/build/{chunk-G4TMGKQZ.js → chunk-Q35JN7B7.js} +8 -6
  54. package/build/{chunk-G4TMGKQZ.js.map → chunk-Q35JN7B7.js.map} +1 -1
  55. package/build/{chunk-CZNH4NDF.js → chunk-QEBMMR2W.js} +2 -2
  56. package/build/{chunk-HJQ6N2XI.js → chunk-QQCYRUA6.js} +30 -12
  57. package/build/{chunk-HJQ6N2XI.js.map → chunk-QQCYRUA6.js.map} +1 -1
  58. package/build/{chunk-DZ6HYDXN.js → chunk-RA6PTMIG.js} +5 -5
  59. package/build/{chunk-AKNVJLMI.js → chunk-RVGOK65D.js} +11 -9
  60. package/build/{chunk-AKNVJLMI.js.map → chunk-RVGOK65D.js.map} +1 -1
  61. package/build/{chunk-LXW2RB2I.js → chunk-SO6EZMEL.js} +1 -538
  62. package/build/chunk-SO6EZMEL.js.map +1 -0
  63. package/build/{chunk-AWJBTSZB.js → chunk-T5F7W3A3.js} +7 -7
  64. package/build/{chunk-EDBFXDBA.js → chunk-UF2OSZ32.js} +10 -10
  65. package/build/{chunk-OKG3SHLM.js → chunk-UIA2B5XZ.js} +5 -5
  66. package/build/{chunk-3ESROA3O.js → chunk-UTFSE4KU.js} +3 -3
  67. package/build/{chunk-WCNBMDVW.js → chunk-XBFMXGMY.js} +2895 -9425
  68. package/build/chunk-XBFMXGMY.js.map +1 -0
  69. package/build/{chunk-LQK7FXRR.js → chunk-YMJB5UO3.js} +5 -5
  70. package/build/{chunk-YZNDZ4SI.js → chunk-Z4YQ7YWC.js} +3 -3
  71. package/build/{chunk-K5TRKVBA.js → chunk-Z7JQD6EN.js} +3 -3
  72. package/build/{dev-RGJBH6UG.js → dev-XNYFRZT2.js} +35 -32
  73. package/build/{dev-RGJBH6UG.js.map → dev-XNYFRZT2.js.map} +1 -1
  74. package/build/index.js +4461 -623
  75. package/build/index.js.map +1 -1
  76. package/build/{install-DWGSHW3J.js → install-T2VL2EW7.js} +24 -22
  77. package/build/{install-DWGSHW3J.js.map → install-T2VL2EW7.js.map} +1 -1
  78. package/build/{publish-AC7TTXOB.js → publish-X4C2MV4G.js} +29 -27
  79. package/build/{publish-AC7TTXOB.js.map → publish-X4C2MV4G.js.map} +1 -1
  80. package/build/{render-command-GUDTM4IQ.js → render-command-3IKISL4W.js} +15 -12
  81. package/build/{render-command-GUDTM4IQ.js.map → render-command-3IKISL4W.js.map} +1 -1
  82. package/build/{render-command-KGE4WNRS.js → render-command-6ZOFWK7J.js} +18 -15
  83. package/build/{render-command-KGE4WNRS.js.map → render-command-6ZOFWK7J.js.map} +1 -1
  84. package/build/{render-command-I2EZ5ZOY.js → render-command-TUP2HHMC.js} +13 -15
  85. package/build/render-command-TUP2HHMC.js.map +1 -0
  86. package/build/{render-command-IGB63PTD.js → render-command-XJNWHPDB.js} +18 -15
  87. package/build/{render-command-IGB63PTD.js.map → render-command-XJNWHPDB.js.map} +1 -1
  88. package/build/run-command-3YWR7KR7.js +21 -0
  89. package/build/src-5V4GOPPO.js +21 -0
  90. package/build/src-5V4GOPPO.js.map +1 -0
  91. package/build/{src-XY5XGVPA.js → src-BTBURERG.js} +16 -14
  92. package/build/{src-XY5XGVPA.js.map → src-BTBURERG.js.map} +1 -1
  93. package/build/{src-BAC3WGFQ.js → src-IM374B5V.js} +10 -8
  94. package/build/{src-QIYGDXHR.js → src-OISHTUJS.js} +11 -9
  95. package/build/{src-QIYGDXHR.js.map → src-OISHTUJS.js.map} +1 -1
  96. package/build/{src-PTVLFJGU.js → src-SRRWPZCM.js} +2 -2
  97. package/build/{src-NE5D32YX.js → src-WA6BLDHT.js} +4 -4
  98. package/build/{src-A6GUTLAP.js → src-XPBBV4BR.js} +19 -17
  99. package/build/{src-A6GUTLAP.js.map → src-XPBBV4BR.js.map} +1 -1
  100. package/build/sync-types-KIFWC5MO.js +32 -0
  101. package/build/{uninstall-MT6ZLKJY.js → uninstall-TTKVW5BW.js} +24 -22
  102. package/build/{uninstall-MT6ZLKJY.js.map → uninstall-TTKVW5BW.js.map} +1 -1
  103. package/package.json +5 -4
  104. package/build/LoginCommand-VYFNU5TA.js.map +0 -1
  105. package/build/LogoutCommand-W3YHFAZJ.js.map +0 -1
  106. package/build/WhoamiCommand-DXQH6HUP.js.map +0 -1
  107. package/build/chunk-2F3TGHU3.js.map +0 -1
  108. package/build/chunk-6YL4Z7HO.js.map +0 -1
  109. package/build/chunk-LXW2RB2I.js.map +0 -1
  110. package/build/chunk-WCNBMDVW.js.map +0 -1
  111. package/build/chunk-WYXNH6LH.js +0 -26
  112. package/build/chunk-WYXNH6LH.js.map +0 -1
  113. package/build/render-command-I2EZ5ZOY.js.map +0 -1
  114. package/build/run-command-TBCHFVR6.js +0 -20
  115. package/build/sync-types-KIRJNRVB.js +0 -30
  116. /package/build/{chunk-OG7CQWH4.js.map → chunk-46OKYX3T.js.map} +0 -0
  117. /package/build/{chunk-443UULTT.js.map → chunk-6VFQIFXS.js.map} +0 -0
  118. /package/build/{chunk-ODUS243S.js.map → chunk-74KZJOZH.js.map} +0 -0
  119. /package/build/{chunk-VTNVMBHW.js.map → chunk-7Y2EFSBJ.js.map} +0 -0
  120. /package/build/{chunk-HIY4FIRZ.js.map → chunk-APJVRHWV.js.map} +0 -0
  121. /package/build/{chunk-7SBYWHZH.js.map → chunk-CJHPYBMK.js.map} +0 -0
  122. /package/build/{chunk-D32EVRHZ.js.map → chunk-FTL2KYZQ.js.map} +0 -0
  123. /package/build/{chunk-RTNNLCWK.js.map → chunk-GYIDIRSX.js.map} +0 -0
  124. /package/build/{chunk-3TOIVPXU.js.map → chunk-J3OSZVAR.js.map} +0 -0
  125. /package/build/{chunk-7HAKFVGI.js.map → chunk-JHHGNLIV.js.map} +0 -0
  126. /package/build/{chunk-GMB4V5N6.js.map → chunk-JUZMIMAT.js.map} +0 -0
  127. /package/build/{chunk-EB5O7IPB.js.map → chunk-KT2FHEZR.js.map} +0 -0
  128. /package/build/{chunk-D4OH4DMW.js.map → chunk-LUAAKCVP.js.map} +0 -0
  129. /package/build/{chunk-TTMVSSSY.js.map → chunk-N4QBC52K.js.map} +0 -0
  130. /package/build/{chunk-NN465VNN.js.map → chunk-NOH6CVSC.js.map} +0 -0
  131. /package/build/{chunk-PCN3DSXO.js.map → chunk-OVWRYWLC.js.map} +0 -0
  132. /package/build/{chunk-VDEWNPZW.js.map → chunk-P5ZYMUV4.js.map} +0 -0
  133. /package/build/{chunk-CZNH4NDF.js.map → chunk-QEBMMR2W.js.map} +0 -0
  134. /package/build/{chunk-DZ6HYDXN.js.map → chunk-RA6PTMIG.js.map} +0 -0
  135. /package/build/{chunk-AWJBTSZB.js.map → chunk-T5F7W3A3.js.map} +0 -0
  136. /package/build/{chunk-EDBFXDBA.js.map → chunk-UF2OSZ32.js.map} +0 -0
  137. /package/build/{chunk-OKG3SHLM.js.map → chunk-UIA2B5XZ.js.map} +0 -0
  138. /package/build/{chunk-3ESROA3O.js.map → chunk-UTFSE4KU.js.map} +0 -0
  139. /package/build/{chunk-LQK7FXRR.js.map → chunk-YMJB5UO3.js.map} +0 -0
  140. /package/build/{chunk-YZNDZ4SI.js.map → chunk-Z4YQ7YWC.js.map} +0 -0
  141. /package/build/{chunk-K5TRKVBA.js.map → chunk-Z7JQD6EN.js.map} +0 -0
  142. /package/build/{run-command-TBCHFVR6.js.map → run-command-3YWR7KR7.js.map} +0 -0
  143. /package/build/{src-BAC3WGFQ.js.map → src-IM374B5V.js.map} +0 -0
  144. /package/build/{src-NE5D32YX.js.map → src-SRRWPZCM.js.map} +0 -0
  145. /package/build/{src-PTVLFJGU.js.map → src-WA6BLDHT.js.map} +0 -0
  146. /package/build/{sync-types-KIRJNRVB.js.map → sync-types-KIFWC5MO.js.map} +0 -0
@@ -0,0 +1,2848 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+ import {
4
+ __commonJS,
5
+ __require,
6
+ init_esm_shims
7
+ } from "./chunk-PYIAC2GK.js";
8
+
9
+ // ../../node_modules/is-extglob/index.js
10
+ var require_is_extglob = __commonJS({
11
+ "../../node_modules/is-extglob/index.js"(exports, module) {
12
+ "use strict";
13
+ init_esm_shims();
14
+ module.exports = function isExtglob(str) {
15
+ if (typeof str !== "string" || str === "") {
16
+ return false;
17
+ }
18
+ var match;
19
+ while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
20
+ if (match[2]) return true;
21
+ str = str.slice(match.index + match[0].length);
22
+ }
23
+ return false;
24
+ };
25
+ }
26
+ });
27
+
28
+ // ../../node_modules/is-glob/index.js
29
+ var require_is_glob = __commonJS({
30
+ "../../node_modules/is-glob/index.js"(exports, module) {
31
+ "use strict";
32
+ init_esm_shims();
33
+ var isExtglob = require_is_extglob();
34
+ var chars = { "{": "}", "(": ")", "[": "]" };
35
+ var strictCheck = function(str) {
36
+ if (str[0] === "!") {
37
+ return true;
38
+ }
39
+ var index = 0;
40
+ var pipeIndex = -2;
41
+ var closeSquareIndex = -2;
42
+ var closeCurlyIndex = -2;
43
+ var closeParenIndex = -2;
44
+ var backSlashIndex = -2;
45
+ while (index < str.length) {
46
+ if (str[index] === "*") {
47
+ return true;
48
+ }
49
+ if (str[index + 1] === "?" && /[\].+)]/.test(str[index])) {
50
+ return true;
51
+ }
52
+ if (closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]") {
53
+ if (closeSquareIndex < index) {
54
+ closeSquareIndex = str.indexOf("]", index);
55
+ }
56
+ if (closeSquareIndex > index) {
57
+ if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
58
+ return true;
59
+ }
60
+ backSlashIndex = str.indexOf("\\", index);
61
+ if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
62
+ return true;
63
+ }
64
+ }
65
+ }
66
+ if (closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}") {
67
+ closeCurlyIndex = str.indexOf("}", index);
68
+ if (closeCurlyIndex > index) {
69
+ backSlashIndex = str.indexOf("\\", index);
70
+ if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) {
71
+ return true;
72
+ }
73
+ }
74
+ }
75
+ if (closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")") {
76
+ closeParenIndex = str.indexOf(")", index);
77
+ if (closeParenIndex > index) {
78
+ backSlashIndex = str.indexOf("\\", index);
79
+ if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
80
+ return true;
81
+ }
82
+ }
83
+ }
84
+ if (pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|") {
85
+ if (pipeIndex < index) {
86
+ pipeIndex = str.indexOf("|", index);
87
+ }
88
+ if (pipeIndex !== -1 && str[pipeIndex + 1] !== ")") {
89
+ closeParenIndex = str.indexOf(")", pipeIndex);
90
+ if (closeParenIndex > pipeIndex) {
91
+ backSlashIndex = str.indexOf("\\", pipeIndex);
92
+ if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
93
+ return true;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ if (str[index] === "\\") {
99
+ var open = str[index + 1];
100
+ index += 2;
101
+ var close = chars[open];
102
+ if (close) {
103
+ var n = str.indexOf(close, index);
104
+ if (n !== -1) {
105
+ index = n + 1;
106
+ }
107
+ }
108
+ if (str[index] === "!") {
109
+ return true;
110
+ }
111
+ } else {
112
+ index++;
113
+ }
114
+ }
115
+ return false;
116
+ };
117
+ var relaxedCheck = function(str) {
118
+ if (str[0] === "!") {
119
+ return true;
120
+ }
121
+ var index = 0;
122
+ while (index < str.length) {
123
+ if (/[*?{}()[\]]/.test(str[index])) {
124
+ return true;
125
+ }
126
+ if (str[index] === "\\") {
127
+ var open = str[index + 1];
128
+ index += 2;
129
+ var close = chars[open];
130
+ if (close) {
131
+ var n = str.indexOf(close, index);
132
+ if (n !== -1) {
133
+ index = n + 1;
134
+ }
135
+ }
136
+ if (str[index] === "!") {
137
+ return true;
138
+ }
139
+ } else {
140
+ index++;
141
+ }
142
+ }
143
+ return false;
144
+ };
145
+ module.exports = function isGlob(str, options) {
146
+ if (typeof str !== "string" || str === "") {
147
+ return false;
148
+ }
149
+ if (isExtglob(str)) {
150
+ return true;
151
+ }
152
+ var check = strictCheck;
153
+ if (options && options.strict === false) {
154
+ check = relaxedCheck;
155
+ }
156
+ return check(str);
157
+ };
158
+ }
159
+ });
160
+
161
+ // ../../node_modules/glob-parent/index.js
162
+ var require_glob_parent = __commonJS({
163
+ "../../node_modules/glob-parent/index.js"(exports, module) {
164
+ "use strict";
165
+ init_esm_shims();
166
+ var isGlob = require_is_glob();
167
+ var pathPosixDirname = __require("path").posix.dirname;
168
+ var isWin32 = __require("os").platform() === "win32";
169
+ var slash = "/";
170
+ var backslash = /\\/g;
171
+ var enclosure = /[\{\[].*[\}\]]$/;
172
+ var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
173
+ var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
174
+ module.exports = function globParent(str, opts) {
175
+ var options = Object.assign({ flipBackslashes: true }, opts);
176
+ if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
177
+ str = str.replace(backslash, slash);
178
+ }
179
+ if (enclosure.test(str)) {
180
+ str += slash;
181
+ }
182
+ str += "a";
183
+ do {
184
+ str = pathPosixDirname(str);
185
+ } while (isGlob(str) || globby.test(str));
186
+ return str.replace(escaped, "$1");
187
+ };
188
+ }
189
+ });
190
+
191
+ // ../../node_modules/braces/lib/utils.js
192
+ var require_utils = __commonJS({
193
+ "../../node_modules/braces/lib/utils.js"(exports) {
194
+ "use strict";
195
+ init_esm_shims();
196
+ exports.isInteger = (num) => {
197
+ if (typeof num === "number") {
198
+ return Number.isInteger(num);
199
+ }
200
+ if (typeof num === "string" && num.trim() !== "") {
201
+ return Number.isInteger(Number(num));
202
+ }
203
+ return false;
204
+ };
205
+ exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
206
+ exports.exceedsLimit = (min, max, step = 1, limit) => {
207
+ if (limit === false) return false;
208
+ if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
209
+ return (Number(max) - Number(min)) / Number(step) >= limit;
210
+ };
211
+ exports.escapeNode = (block, n = 0, type) => {
212
+ const node = block.nodes[n];
213
+ if (!node) return;
214
+ if (type && node.type === type || node.type === "open" || node.type === "close") {
215
+ if (node.escaped !== true) {
216
+ node.value = "\\" + node.value;
217
+ node.escaped = true;
218
+ }
219
+ }
220
+ };
221
+ exports.encloseBrace = (node) => {
222
+ if (node.type !== "brace") return false;
223
+ if (node.commas >> 0 + node.ranges >> 0 === 0) {
224
+ node.invalid = true;
225
+ return true;
226
+ }
227
+ return false;
228
+ };
229
+ exports.isInvalidBrace = (block) => {
230
+ if (block.type !== "brace") return false;
231
+ if (block.invalid === true || block.dollar) return true;
232
+ if (block.commas >> 0 + block.ranges >> 0 === 0) {
233
+ block.invalid = true;
234
+ return true;
235
+ }
236
+ if (block.open !== true || block.close !== true) {
237
+ block.invalid = true;
238
+ return true;
239
+ }
240
+ return false;
241
+ };
242
+ exports.isOpenOrClose = (node) => {
243
+ if (node.type === "open" || node.type === "close") {
244
+ return true;
245
+ }
246
+ return node.open === true || node.close === true;
247
+ };
248
+ exports.reduce = (nodes) => nodes.reduce((acc, node) => {
249
+ if (node.type === "text") acc.push(node.value);
250
+ if (node.type === "range") node.type = "text";
251
+ return acc;
252
+ }, []);
253
+ exports.flatten = (...args) => {
254
+ const result = [];
255
+ const flat = (arr) => {
256
+ for (let i = 0; i < arr.length; i++) {
257
+ const ele = arr[i];
258
+ if (Array.isArray(ele)) {
259
+ flat(ele);
260
+ continue;
261
+ }
262
+ if (ele !== void 0) {
263
+ result.push(ele);
264
+ }
265
+ }
266
+ return result;
267
+ };
268
+ flat(args);
269
+ return result;
270
+ };
271
+ }
272
+ });
273
+
274
+ // ../../node_modules/braces/lib/stringify.js
275
+ var require_stringify = __commonJS({
276
+ "../../node_modules/braces/lib/stringify.js"(exports, module) {
277
+ "use strict";
278
+ init_esm_shims();
279
+ var utils = require_utils();
280
+ module.exports = (ast, options = {}) => {
281
+ const stringify = (node, parent = {}) => {
282
+ const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
283
+ const invalidNode = node.invalid === true && options.escapeInvalid === true;
284
+ let output = "";
285
+ if (node.value) {
286
+ if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
287
+ return "\\" + node.value;
288
+ }
289
+ return node.value;
290
+ }
291
+ if (node.value) {
292
+ return node.value;
293
+ }
294
+ if (node.nodes) {
295
+ for (const child of node.nodes) {
296
+ output += stringify(child);
297
+ }
298
+ }
299
+ return output;
300
+ };
301
+ return stringify(ast);
302
+ };
303
+ }
304
+ });
305
+
306
+ // ../../node_modules/is-number/index.js
307
+ var require_is_number = __commonJS({
308
+ "../../node_modules/is-number/index.js"(exports, module) {
309
+ "use strict";
310
+ init_esm_shims();
311
+ module.exports = function(num) {
312
+ if (typeof num === "number") {
313
+ return num - num === 0;
314
+ }
315
+ if (typeof num === "string" && num.trim() !== "") {
316
+ return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
317
+ }
318
+ return false;
319
+ };
320
+ }
321
+ });
322
+
323
+ // ../../node_modules/to-regex-range/index.js
324
+ var require_to_regex_range = __commonJS({
325
+ "../../node_modules/to-regex-range/index.js"(exports, module) {
326
+ "use strict";
327
+ init_esm_shims();
328
+ var isNumber = require_is_number();
329
+ var toRegexRange = (min, max, options) => {
330
+ if (isNumber(min) === false) {
331
+ throw new TypeError("toRegexRange: expected the first argument to be a number");
332
+ }
333
+ if (max === void 0 || min === max) {
334
+ return String(min);
335
+ }
336
+ if (isNumber(max) === false) {
337
+ throw new TypeError("toRegexRange: expected the second argument to be a number.");
338
+ }
339
+ let opts = { relaxZeros: true, ...options };
340
+ if (typeof opts.strictZeros === "boolean") {
341
+ opts.relaxZeros = opts.strictZeros === false;
342
+ }
343
+ let relax = String(opts.relaxZeros);
344
+ let shorthand = String(opts.shorthand);
345
+ let capture = String(opts.capture);
346
+ let wrap = String(opts.wrap);
347
+ let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
348
+ if (toRegexRange.cache.hasOwnProperty(cacheKey)) {
349
+ return toRegexRange.cache[cacheKey].result;
350
+ }
351
+ let a = Math.min(min, max);
352
+ let b = Math.max(min, max);
353
+ if (Math.abs(a - b) === 1) {
354
+ let result = min + "|" + max;
355
+ if (opts.capture) {
356
+ return `(${result})`;
357
+ }
358
+ if (opts.wrap === false) {
359
+ return result;
360
+ }
361
+ return `(?:${result})`;
362
+ }
363
+ let isPadded = hasPadding(min) || hasPadding(max);
364
+ let state = { min, max, a, b };
365
+ let positives = [];
366
+ let negatives = [];
367
+ if (isPadded) {
368
+ state.isPadded = isPadded;
369
+ state.maxLen = String(state.max).length;
370
+ }
371
+ if (a < 0) {
372
+ let newMin = b < 0 ? Math.abs(b) : 1;
373
+ negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
374
+ a = state.a = 0;
375
+ }
376
+ if (b >= 0) {
377
+ positives = splitToPatterns(a, b, state, opts);
378
+ }
379
+ state.negatives = negatives;
380
+ state.positives = positives;
381
+ state.result = collatePatterns(negatives, positives, opts);
382
+ if (opts.capture === true) {
383
+ state.result = `(${state.result})`;
384
+ } else if (opts.wrap !== false && positives.length + negatives.length > 1) {
385
+ state.result = `(?:${state.result})`;
386
+ }
387
+ toRegexRange.cache[cacheKey] = state;
388
+ return state.result;
389
+ };
390
+ function collatePatterns(neg, pos, options) {
391
+ let onlyNegative = filterPatterns(neg, pos, "-", false, options) || [];
392
+ let onlyPositive = filterPatterns(pos, neg, "", false, options) || [];
393
+ let intersected = filterPatterns(neg, pos, "-?", true, options) || [];
394
+ let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
395
+ return subpatterns.join("|");
396
+ }
397
+ function splitToRanges(min, max) {
398
+ let nines = 1;
399
+ let zeros = 1;
400
+ let stop = countNines(min, nines);
401
+ let stops = /* @__PURE__ */ new Set([max]);
402
+ while (min <= stop && stop <= max) {
403
+ stops.add(stop);
404
+ nines += 1;
405
+ stop = countNines(min, nines);
406
+ }
407
+ stop = countZeros(max + 1, zeros) - 1;
408
+ while (min < stop && stop <= max) {
409
+ stops.add(stop);
410
+ zeros += 1;
411
+ stop = countZeros(max + 1, zeros) - 1;
412
+ }
413
+ stops = [...stops];
414
+ stops.sort(compare);
415
+ return stops;
416
+ }
417
+ function rangeToPattern(start, stop, options) {
418
+ if (start === stop) {
419
+ return { pattern: start, count: [], digits: 0 };
420
+ }
421
+ let zipped = zip(start, stop);
422
+ let digits = zipped.length;
423
+ let pattern = "";
424
+ let count = 0;
425
+ for (let i = 0; i < digits; i++) {
426
+ let [startDigit, stopDigit] = zipped[i];
427
+ if (startDigit === stopDigit) {
428
+ pattern += startDigit;
429
+ } else if (startDigit !== "0" || stopDigit !== "9") {
430
+ pattern += toCharacterClass(startDigit, stopDigit, options);
431
+ } else {
432
+ count++;
433
+ }
434
+ }
435
+ if (count) {
436
+ pattern += options.shorthand === true ? "\\d" : "[0-9]";
437
+ }
438
+ return { pattern, count: [count], digits };
439
+ }
440
+ function splitToPatterns(min, max, tok, options) {
441
+ let ranges = splitToRanges(min, max);
442
+ let tokens = [];
443
+ let start = min;
444
+ let prev;
445
+ for (let i = 0; i < ranges.length; i++) {
446
+ let max2 = ranges[i];
447
+ let obj = rangeToPattern(String(start), String(max2), options);
448
+ let zeros = "";
449
+ if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
450
+ if (prev.count.length > 1) {
451
+ prev.count.pop();
452
+ }
453
+ prev.count.push(obj.count[0]);
454
+ prev.string = prev.pattern + toQuantifier(prev.count);
455
+ start = max2 + 1;
456
+ continue;
457
+ }
458
+ if (tok.isPadded) {
459
+ zeros = padZeros(max2, tok, options);
460
+ }
461
+ obj.string = zeros + obj.pattern + toQuantifier(obj.count);
462
+ tokens.push(obj);
463
+ start = max2 + 1;
464
+ prev = obj;
465
+ }
466
+ return tokens;
467
+ }
468
+ function filterPatterns(arr, comparison, prefix, intersection, options) {
469
+ let result = [];
470
+ for (let ele of arr) {
471
+ let { string } = ele;
472
+ if (!intersection && !contains(comparison, "string", string)) {
473
+ result.push(prefix + string);
474
+ }
475
+ if (intersection && contains(comparison, "string", string)) {
476
+ result.push(prefix + string);
477
+ }
478
+ }
479
+ return result;
480
+ }
481
+ function zip(a, b) {
482
+ let arr = [];
483
+ for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
484
+ return arr;
485
+ }
486
+ function compare(a, b) {
487
+ return a > b ? 1 : b > a ? -1 : 0;
488
+ }
489
+ function contains(arr, key, val) {
490
+ return arr.some((ele) => ele[key] === val);
491
+ }
492
+ function countNines(min, len) {
493
+ return Number(String(min).slice(0, -len) + "9".repeat(len));
494
+ }
495
+ function countZeros(integer, zeros) {
496
+ return integer - integer % Math.pow(10, zeros);
497
+ }
498
+ function toQuantifier(digits) {
499
+ let [start = 0, stop = ""] = digits;
500
+ if (stop || start > 1) {
501
+ return `{${start + (stop ? "," + stop : "")}}`;
502
+ }
503
+ return "";
504
+ }
505
+ function toCharacterClass(a, b, options) {
506
+ return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
507
+ }
508
+ function hasPadding(str) {
509
+ return /^-?(0+)\d/.test(str);
510
+ }
511
+ function padZeros(value, tok, options) {
512
+ if (!tok.isPadded) {
513
+ return value;
514
+ }
515
+ let diff = Math.abs(tok.maxLen - String(value).length);
516
+ let relax = options.relaxZeros !== false;
517
+ switch (diff) {
518
+ case 0:
519
+ return "";
520
+ case 1:
521
+ return relax ? "0?" : "0";
522
+ case 2:
523
+ return relax ? "0{0,2}" : "00";
524
+ default: {
525
+ return relax ? `0{0,${diff}}` : `0{${diff}}`;
526
+ }
527
+ }
528
+ }
529
+ toRegexRange.cache = {};
530
+ toRegexRange.clearCache = () => toRegexRange.cache = {};
531
+ module.exports = toRegexRange;
532
+ }
533
+ });
534
+
535
+ // ../../node_modules/fill-range/index.js
536
+ var require_fill_range = __commonJS({
537
+ "../../node_modules/fill-range/index.js"(exports, module) {
538
+ "use strict";
539
+ init_esm_shims();
540
+ var util = __require("util");
541
+ var toRegexRange = require_to_regex_range();
542
+ var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
543
+ var transform = (toNumber) => {
544
+ return (value) => toNumber === true ? Number(value) : String(value);
545
+ };
546
+ var isValidValue = (value) => {
547
+ return typeof value === "number" || typeof value === "string" && value !== "";
548
+ };
549
+ var isNumber = (num) => Number.isInteger(+num);
550
+ var zeros = (input) => {
551
+ let value = `${input}`;
552
+ let index = -1;
553
+ if (value[0] === "-") value = value.slice(1);
554
+ if (value === "0") return false;
555
+ while (value[++index] === "0") ;
556
+ return index > 0;
557
+ };
558
+ var stringify = (start, end, options) => {
559
+ if (typeof start === "string" || typeof end === "string") {
560
+ return true;
561
+ }
562
+ return options.stringify === true;
563
+ };
564
+ var pad = (input, maxLength, toNumber) => {
565
+ if (maxLength > 0) {
566
+ let dash = input[0] === "-" ? "-" : "";
567
+ if (dash) input = input.slice(1);
568
+ input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
569
+ }
570
+ if (toNumber === false) {
571
+ return String(input);
572
+ }
573
+ return input;
574
+ };
575
+ var toMaxLen = (input, maxLength) => {
576
+ let negative = input[0] === "-" ? "-" : "";
577
+ if (negative) {
578
+ input = input.slice(1);
579
+ maxLength--;
580
+ }
581
+ while (input.length < maxLength) input = "0" + input;
582
+ return negative ? "-" + input : input;
583
+ };
584
+ var toSequence = (parts, options, maxLen) => {
585
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
586
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
587
+ let prefix = options.capture ? "" : "?:";
588
+ let positives = "";
589
+ let negatives = "";
590
+ let result;
591
+ if (parts.positives.length) {
592
+ positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|");
593
+ }
594
+ if (parts.negatives.length) {
595
+ negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
596
+ }
597
+ if (positives && negatives) {
598
+ result = `${positives}|${negatives}`;
599
+ } else {
600
+ result = positives || negatives;
601
+ }
602
+ if (options.wrap) {
603
+ return `(${prefix}${result})`;
604
+ }
605
+ return result;
606
+ };
607
+ var toRange = (a, b, isNumbers, options) => {
608
+ if (isNumbers) {
609
+ return toRegexRange(a, b, { wrap: false, ...options });
610
+ }
611
+ let start = String.fromCharCode(a);
612
+ if (a === b) return start;
613
+ let stop = String.fromCharCode(b);
614
+ return `[${start}-${stop}]`;
615
+ };
616
+ var toRegex = (start, end, options) => {
617
+ if (Array.isArray(start)) {
618
+ let wrap = options.wrap === true;
619
+ let prefix = options.capture ? "" : "?:";
620
+ return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
621
+ }
622
+ return toRegexRange(start, end, options);
623
+ };
624
+ var rangeError = (...args) => {
625
+ return new RangeError("Invalid range arguments: " + util.inspect(...args));
626
+ };
627
+ var invalidRange = (start, end, options) => {
628
+ if (options.strictRanges === true) throw rangeError([start, end]);
629
+ return [];
630
+ };
631
+ var invalidStep = (step, options) => {
632
+ if (options.strictRanges === true) {
633
+ throw new TypeError(`Expected step "${step}" to be a number`);
634
+ }
635
+ return [];
636
+ };
637
+ var fillNumbers = (start, end, step = 1, options = {}) => {
638
+ let a = Number(start);
639
+ let b = Number(end);
640
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
641
+ if (options.strictRanges === true) throw rangeError([start, end]);
642
+ return [];
643
+ }
644
+ if (a === 0) a = 0;
645
+ if (b === 0) b = 0;
646
+ let descending = a > b;
647
+ let startString = String(start);
648
+ let endString = String(end);
649
+ let stepString = String(step);
650
+ step = Math.max(Math.abs(step), 1);
651
+ let padded = zeros(startString) || zeros(endString) || zeros(stepString);
652
+ let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
653
+ let toNumber = padded === false && stringify(start, end, options) === false;
654
+ let format = options.transform || transform(toNumber);
655
+ if (options.toRegex && step === 1) {
656
+ return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
657
+ }
658
+ let parts = { negatives: [], positives: [] };
659
+ let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
660
+ let range = [];
661
+ let index = 0;
662
+ while (descending ? a >= b : a <= b) {
663
+ if (options.toRegex === true && step > 1) {
664
+ push(a);
665
+ } else {
666
+ range.push(pad(format(a, index), maxLen, toNumber));
667
+ }
668
+ a = descending ? a - step : a + step;
669
+ index++;
670
+ }
671
+ if (options.toRegex === true) {
672
+ return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: false, ...options });
673
+ }
674
+ return range;
675
+ };
676
+ var fillLetters = (start, end, step = 1, options = {}) => {
677
+ if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) {
678
+ return invalidRange(start, end, options);
679
+ }
680
+ let format = options.transform || ((val) => String.fromCharCode(val));
681
+ let a = `${start}`.charCodeAt(0);
682
+ let b = `${end}`.charCodeAt(0);
683
+ let descending = a > b;
684
+ let min = Math.min(a, b);
685
+ let max = Math.max(a, b);
686
+ if (options.toRegex && step === 1) {
687
+ return toRange(min, max, false, options);
688
+ }
689
+ let range = [];
690
+ let index = 0;
691
+ while (descending ? a >= b : a <= b) {
692
+ range.push(format(a, index));
693
+ a = descending ? a - step : a + step;
694
+ index++;
695
+ }
696
+ if (options.toRegex === true) {
697
+ return toRegex(range, null, { wrap: false, options });
698
+ }
699
+ return range;
700
+ };
701
+ var fill = (start, end, step, options = {}) => {
702
+ if (end == null && isValidValue(start)) {
703
+ return [start];
704
+ }
705
+ if (!isValidValue(start) || !isValidValue(end)) {
706
+ return invalidRange(start, end, options);
707
+ }
708
+ if (typeof step === "function") {
709
+ return fill(start, end, 1, { transform: step });
710
+ }
711
+ if (isObject(step)) {
712
+ return fill(start, end, 0, step);
713
+ }
714
+ let opts = { ...options };
715
+ if (opts.capture === true) opts.wrap = true;
716
+ step = step || opts.step || 1;
717
+ if (!isNumber(step)) {
718
+ if (step != null && !isObject(step)) return invalidStep(step, opts);
719
+ return fill(start, end, 1, step);
720
+ }
721
+ if (isNumber(start) && isNumber(end)) {
722
+ return fillNumbers(start, end, step, opts);
723
+ }
724
+ return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
725
+ };
726
+ module.exports = fill;
727
+ }
728
+ });
729
+
730
+ // ../../node_modules/braces/lib/compile.js
731
+ var require_compile = __commonJS({
732
+ "../../node_modules/braces/lib/compile.js"(exports, module) {
733
+ "use strict";
734
+ init_esm_shims();
735
+ var fill = require_fill_range();
736
+ var utils = require_utils();
737
+ var compile = (ast, options = {}) => {
738
+ const walk = (node, parent = {}) => {
739
+ const invalidBlock = utils.isInvalidBrace(parent);
740
+ const invalidNode = node.invalid === true && options.escapeInvalid === true;
741
+ const invalid = invalidBlock === true || invalidNode === true;
742
+ const prefix = options.escapeInvalid === true ? "\\" : "";
743
+ let output = "";
744
+ if (node.isOpen === true) {
745
+ return prefix + node.value;
746
+ }
747
+ if (node.isClose === true) {
748
+ console.log("node.isClose", prefix, node.value);
749
+ return prefix + node.value;
750
+ }
751
+ if (node.type === "open") {
752
+ return invalid ? prefix + node.value : "(";
753
+ }
754
+ if (node.type === "close") {
755
+ return invalid ? prefix + node.value : ")";
756
+ }
757
+ if (node.type === "comma") {
758
+ return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
759
+ }
760
+ if (node.value) {
761
+ return node.value;
762
+ }
763
+ if (node.nodes && node.ranges > 0) {
764
+ const args = utils.reduce(node.nodes);
765
+ const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
766
+ if (range.length !== 0) {
767
+ return args.length > 1 && range.length > 1 ? `(${range})` : range;
768
+ }
769
+ }
770
+ if (node.nodes) {
771
+ for (const child of node.nodes) {
772
+ output += walk(child, node);
773
+ }
774
+ }
775
+ return output;
776
+ };
777
+ return walk(ast);
778
+ };
779
+ module.exports = compile;
780
+ }
781
+ });
782
+
783
+ // ../../node_modules/braces/lib/expand.js
784
+ var require_expand = __commonJS({
785
+ "../../node_modules/braces/lib/expand.js"(exports, module) {
786
+ "use strict";
787
+ init_esm_shims();
788
+ var fill = require_fill_range();
789
+ var stringify = require_stringify();
790
+ var utils = require_utils();
791
+ var append = (queue = "", stash = "", enclose = false) => {
792
+ const result = [];
793
+ queue = [].concat(queue);
794
+ stash = [].concat(stash);
795
+ if (!stash.length) return queue;
796
+ if (!queue.length) {
797
+ return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
798
+ }
799
+ for (const item of queue) {
800
+ if (Array.isArray(item)) {
801
+ for (const value of item) {
802
+ result.push(append(value, stash, enclose));
803
+ }
804
+ } else {
805
+ for (let ele of stash) {
806
+ if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
807
+ result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
808
+ }
809
+ }
810
+ }
811
+ return utils.flatten(result);
812
+ };
813
+ var expand = (ast, options = {}) => {
814
+ const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
815
+ const walk = (node, parent = {}) => {
816
+ node.queue = [];
817
+ let p = parent;
818
+ let q = parent.queue;
819
+ while (p.type !== "brace" && p.type !== "root" && p.parent) {
820
+ p = p.parent;
821
+ q = p.queue;
822
+ }
823
+ if (node.invalid || node.dollar) {
824
+ q.push(append(q.pop(), stringify(node, options)));
825
+ return;
826
+ }
827
+ if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
828
+ q.push(append(q.pop(), ["{}"]));
829
+ return;
830
+ }
831
+ if (node.nodes && node.ranges > 0) {
832
+ const args = utils.reduce(node.nodes);
833
+ if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
834
+ throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
835
+ }
836
+ let range = fill(...args, options);
837
+ if (range.length === 0) {
838
+ range = stringify(node, options);
839
+ }
840
+ q.push(append(q.pop(), range));
841
+ node.nodes = [];
842
+ return;
843
+ }
844
+ const enclose = utils.encloseBrace(node);
845
+ let queue = node.queue;
846
+ let block = node;
847
+ while (block.type !== "brace" && block.type !== "root" && block.parent) {
848
+ block = block.parent;
849
+ queue = block.queue;
850
+ }
851
+ for (let i = 0; i < node.nodes.length; i++) {
852
+ const child = node.nodes[i];
853
+ if (child.type === "comma" && node.type === "brace") {
854
+ if (i === 1) queue.push("");
855
+ queue.push("");
856
+ continue;
857
+ }
858
+ if (child.type === "close") {
859
+ q.push(append(q.pop(), queue, enclose));
860
+ continue;
861
+ }
862
+ if (child.value && child.type !== "open") {
863
+ queue.push(append(queue.pop(), child.value));
864
+ continue;
865
+ }
866
+ if (child.nodes) {
867
+ walk(child, node);
868
+ }
869
+ }
870
+ return queue;
871
+ };
872
+ return utils.flatten(walk(ast));
873
+ };
874
+ module.exports = expand;
875
+ }
876
+ });
877
+
878
+ // ../../node_modules/braces/lib/constants.js
879
+ var require_constants = __commonJS({
880
+ "../../node_modules/braces/lib/constants.js"(exports, module) {
881
+ "use strict";
882
+ init_esm_shims();
883
+ module.exports = {
884
+ MAX_LENGTH: 1e4,
885
+ // Digits
886
+ CHAR_0: "0",
887
+ /* 0 */
888
+ CHAR_9: "9",
889
+ /* 9 */
890
+ // Alphabet chars.
891
+ CHAR_UPPERCASE_A: "A",
892
+ /* A */
893
+ CHAR_LOWERCASE_A: "a",
894
+ /* a */
895
+ CHAR_UPPERCASE_Z: "Z",
896
+ /* Z */
897
+ CHAR_LOWERCASE_Z: "z",
898
+ /* z */
899
+ CHAR_LEFT_PARENTHESES: "(",
900
+ /* ( */
901
+ CHAR_RIGHT_PARENTHESES: ")",
902
+ /* ) */
903
+ CHAR_ASTERISK: "*",
904
+ /* * */
905
+ // Non-alphabetic chars.
906
+ CHAR_AMPERSAND: "&",
907
+ /* & */
908
+ CHAR_AT: "@",
909
+ /* @ */
910
+ CHAR_BACKSLASH: "\\",
911
+ /* \ */
912
+ CHAR_BACKTICK: "`",
913
+ /* ` */
914
+ CHAR_CARRIAGE_RETURN: "\r",
915
+ /* \r */
916
+ CHAR_CIRCUMFLEX_ACCENT: "^",
917
+ /* ^ */
918
+ CHAR_COLON: ":",
919
+ /* : */
920
+ CHAR_COMMA: ",",
921
+ /* , */
922
+ CHAR_DOLLAR: "$",
923
+ /* . */
924
+ CHAR_DOT: ".",
925
+ /* . */
926
+ CHAR_DOUBLE_QUOTE: '"',
927
+ /* " */
928
+ CHAR_EQUAL: "=",
929
+ /* = */
930
+ CHAR_EXCLAMATION_MARK: "!",
931
+ /* ! */
932
+ CHAR_FORM_FEED: "\f",
933
+ /* \f */
934
+ CHAR_FORWARD_SLASH: "/",
935
+ /* / */
936
+ CHAR_HASH: "#",
937
+ /* # */
938
+ CHAR_HYPHEN_MINUS: "-",
939
+ /* - */
940
+ CHAR_LEFT_ANGLE_BRACKET: "<",
941
+ /* < */
942
+ CHAR_LEFT_CURLY_BRACE: "{",
943
+ /* { */
944
+ CHAR_LEFT_SQUARE_BRACKET: "[",
945
+ /* [ */
946
+ CHAR_LINE_FEED: "\n",
947
+ /* \n */
948
+ CHAR_NO_BREAK_SPACE: "\xA0",
949
+ /* \u00A0 */
950
+ CHAR_PERCENT: "%",
951
+ /* % */
952
+ CHAR_PLUS: "+",
953
+ /* + */
954
+ CHAR_QUESTION_MARK: "?",
955
+ /* ? */
956
+ CHAR_RIGHT_ANGLE_BRACKET: ">",
957
+ /* > */
958
+ CHAR_RIGHT_CURLY_BRACE: "}",
959
+ /* } */
960
+ CHAR_RIGHT_SQUARE_BRACKET: "]",
961
+ /* ] */
962
+ CHAR_SEMICOLON: ";",
963
+ /* ; */
964
+ CHAR_SINGLE_QUOTE: "'",
965
+ /* ' */
966
+ CHAR_SPACE: " ",
967
+ /* */
968
+ CHAR_TAB: " ",
969
+ /* \t */
970
+ CHAR_UNDERSCORE: "_",
971
+ /* _ */
972
+ CHAR_VERTICAL_LINE: "|",
973
+ /* | */
974
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
975
+ /* \uFEFF */
976
+ };
977
+ }
978
+ });
979
+
980
+ // ../../node_modules/braces/lib/parse.js
981
+ var require_parse = __commonJS({
982
+ "../../node_modules/braces/lib/parse.js"(exports, module) {
983
+ "use strict";
984
+ init_esm_shims();
985
+ var stringify = require_stringify();
986
+ var {
987
+ MAX_LENGTH,
988
+ CHAR_BACKSLASH,
989
+ /* \ */
990
+ CHAR_BACKTICK,
991
+ /* ` */
992
+ CHAR_COMMA,
993
+ /* , */
994
+ CHAR_DOT,
995
+ /* . */
996
+ CHAR_LEFT_PARENTHESES,
997
+ /* ( */
998
+ CHAR_RIGHT_PARENTHESES,
999
+ /* ) */
1000
+ CHAR_LEFT_CURLY_BRACE,
1001
+ /* { */
1002
+ CHAR_RIGHT_CURLY_BRACE,
1003
+ /* } */
1004
+ CHAR_LEFT_SQUARE_BRACKET,
1005
+ /* [ */
1006
+ CHAR_RIGHT_SQUARE_BRACKET,
1007
+ /* ] */
1008
+ CHAR_DOUBLE_QUOTE,
1009
+ /* " */
1010
+ CHAR_SINGLE_QUOTE,
1011
+ /* ' */
1012
+ CHAR_NO_BREAK_SPACE,
1013
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE
1014
+ } = require_constants();
1015
+ var parse = (input, options = {}) => {
1016
+ if (typeof input !== "string") {
1017
+ throw new TypeError("Expected a string");
1018
+ }
1019
+ const opts = options || {};
1020
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
1021
+ if (input.length > max) {
1022
+ throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
1023
+ }
1024
+ const ast = { type: "root", input, nodes: [] };
1025
+ const stack = [ast];
1026
+ let block = ast;
1027
+ let prev = ast;
1028
+ let brackets = 0;
1029
+ const length = input.length;
1030
+ let index = 0;
1031
+ let depth = 0;
1032
+ let value;
1033
+ const advance = () => input[index++];
1034
+ const push = (node) => {
1035
+ if (node.type === "text" && prev.type === "dot") {
1036
+ prev.type = "text";
1037
+ }
1038
+ if (prev && prev.type === "text" && node.type === "text") {
1039
+ prev.value += node.value;
1040
+ return;
1041
+ }
1042
+ block.nodes.push(node);
1043
+ node.parent = block;
1044
+ node.prev = prev;
1045
+ prev = node;
1046
+ return node;
1047
+ };
1048
+ push({ type: "bos" });
1049
+ while (index < length) {
1050
+ block = stack[stack.length - 1];
1051
+ value = advance();
1052
+ if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
1053
+ continue;
1054
+ }
1055
+ if (value === CHAR_BACKSLASH) {
1056
+ push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
1057
+ continue;
1058
+ }
1059
+ if (value === CHAR_RIGHT_SQUARE_BRACKET) {
1060
+ push({ type: "text", value: "\\" + value });
1061
+ continue;
1062
+ }
1063
+ if (value === CHAR_LEFT_SQUARE_BRACKET) {
1064
+ brackets++;
1065
+ let next;
1066
+ while (index < length && (next = advance())) {
1067
+ value += next;
1068
+ if (next === CHAR_LEFT_SQUARE_BRACKET) {
1069
+ brackets++;
1070
+ continue;
1071
+ }
1072
+ if (next === CHAR_BACKSLASH) {
1073
+ value += advance();
1074
+ continue;
1075
+ }
1076
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
1077
+ brackets--;
1078
+ if (brackets === 0) {
1079
+ break;
1080
+ }
1081
+ }
1082
+ }
1083
+ push({ type: "text", value });
1084
+ continue;
1085
+ }
1086
+ if (value === CHAR_LEFT_PARENTHESES) {
1087
+ block = push({ type: "paren", nodes: [] });
1088
+ stack.push(block);
1089
+ push({ type: "text", value });
1090
+ continue;
1091
+ }
1092
+ if (value === CHAR_RIGHT_PARENTHESES) {
1093
+ if (block.type !== "paren") {
1094
+ push({ type: "text", value });
1095
+ continue;
1096
+ }
1097
+ block = stack.pop();
1098
+ push({ type: "text", value });
1099
+ block = stack[stack.length - 1];
1100
+ continue;
1101
+ }
1102
+ if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
1103
+ const open = value;
1104
+ let next;
1105
+ if (options.keepQuotes !== true) {
1106
+ value = "";
1107
+ }
1108
+ while (index < length && (next = advance())) {
1109
+ if (next === CHAR_BACKSLASH) {
1110
+ value += next + advance();
1111
+ continue;
1112
+ }
1113
+ if (next === open) {
1114
+ if (options.keepQuotes === true) value += next;
1115
+ break;
1116
+ }
1117
+ value += next;
1118
+ }
1119
+ push({ type: "text", value });
1120
+ continue;
1121
+ }
1122
+ if (value === CHAR_LEFT_CURLY_BRACE) {
1123
+ depth++;
1124
+ const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
1125
+ const brace = {
1126
+ type: "brace",
1127
+ open: true,
1128
+ close: false,
1129
+ dollar,
1130
+ depth,
1131
+ commas: 0,
1132
+ ranges: 0,
1133
+ nodes: []
1134
+ };
1135
+ block = push(brace);
1136
+ stack.push(block);
1137
+ push({ type: "open", value });
1138
+ continue;
1139
+ }
1140
+ if (value === CHAR_RIGHT_CURLY_BRACE) {
1141
+ if (block.type !== "brace") {
1142
+ push({ type: "text", value });
1143
+ continue;
1144
+ }
1145
+ const type = "close";
1146
+ block = stack.pop();
1147
+ block.close = true;
1148
+ push({ type, value });
1149
+ depth--;
1150
+ block = stack[stack.length - 1];
1151
+ continue;
1152
+ }
1153
+ if (value === CHAR_COMMA && depth > 0) {
1154
+ if (block.ranges > 0) {
1155
+ block.ranges = 0;
1156
+ const open = block.nodes.shift();
1157
+ block.nodes = [open, { type: "text", value: stringify(block) }];
1158
+ }
1159
+ push({ type: "comma", value });
1160
+ block.commas++;
1161
+ continue;
1162
+ }
1163
+ if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
1164
+ const siblings = block.nodes;
1165
+ if (depth === 0 || siblings.length === 0) {
1166
+ push({ type: "text", value });
1167
+ continue;
1168
+ }
1169
+ if (prev.type === "dot") {
1170
+ block.range = [];
1171
+ prev.value += value;
1172
+ prev.type = "range";
1173
+ if (block.nodes.length !== 3 && block.nodes.length !== 5) {
1174
+ block.invalid = true;
1175
+ block.ranges = 0;
1176
+ prev.type = "text";
1177
+ continue;
1178
+ }
1179
+ block.ranges++;
1180
+ block.args = [];
1181
+ continue;
1182
+ }
1183
+ if (prev.type === "range") {
1184
+ siblings.pop();
1185
+ const before = siblings[siblings.length - 1];
1186
+ before.value += prev.value + value;
1187
+ prev = before;
1188
+ block.ranges--;
1189
+ continue;
1190
+ }
1191
+ push({ type: "dot", value });
1192
+ continue;
1193
+ }
1194
+ push({ type: "text", value });
1195
+ }
1196
+ do {
1197
+ block = stack.pop();
1198
+ if (block.type !== "root") {
1199
+ block.nodes.forEach((node) => {
1200
+ if (!node.nodes) {
1201
+ if (node.type === "open") node.isOpen = true;
1202
+ if (node.type === "close") node.isClose = true;
1203
+ if (!node.nodes) node.type = "text";
1204
+ node.invalid = true;
1205
+ }
1206
+ });
1207
+ const parent = stack[stack.length - 1];
1208
+ const index2 = parent.nodes.indexOf(block);
1209
+ parent.nodes.splice(index2, 1, ...block.nodes);
1210
+ }
1211
+ } while (stack.length > 0);
1212
+ push({ type: "eos" });
1213
+ return ast;
1214
+ };
1215
+ module.exports = parse;
1216
+ }
1217
+ });
1218
+
1219
+ // ../../node_modules/braces/index.js
1220
+ var require_braces = __commonJS({
1221
+ "../../node_modules/braces/index.js"(exports, module) {
1222
+ "use strict";
1223
+ init_esm_shims();
1224
+ var stringify = require_stringify();
1225
+ var compile = require_compile();
1226
+ var expand = require_expand();
1227
+ var parse = require_parse();
1228
+ var braces = (input, options = {}) => {
1229
+ let output = [];
1230
+ if (Array.isArray(input)) {
1231
+ for (const pattern of input) {
1232
+ const result = braces.create(pattern, options);
1233
+ if (Array.isArray(result)) {
1234
+ output.push(...result);
1235
+ } else {
1236
+ output.push(result);
1237
+ }
1238
+ }
1239
+ } else {
1240
+ output = [].concat(braces.create(input, options));
1241
+ }
1242
+ if (options && options.expand === true && options.nodupes === true) {
1243
+ output = [...new Set(output)];
1244
+ }
1245
+ return output;
1246
+ };
1247
+ braces.parse = (input, options = {}) => parse(input, options);
1248
+ braces.stringify = (input, options = {}) => {
1249
+ if (typeof input === "string") {
1250
+ return stringify(braces.parse(input, options), options);
1251
+ }
1252
+ return stringify(input, options);
1253
+ };
1254
+ braces.compile = (input, options = {}) => {
1255
+ if (typeof input === "string") {
1256
+ input = braces.parse(input, options);
1257
+ }
1258
+ return compile(input, options);
1259
+ };
1260
+ braces.expand = (input, options = {}) => {
1261
+ if (typeof input === "string") {
1262
+ input = braces.parse(input, options);
1263
+ }
1264
+ let result = expand(input, options);
1265
+ if (options.noempty === true) {
1266
+ result = result.filter(Boolean);
1267
+ }
1268
+ if (options.nodupes === true) {
1269
+ result = [...new Set(result)];
1270
+ }
1271
+ return result;
1272
+ };
1273
+ braces.create = (input, options = {}) => {
1274
+ if (input === "" || input.length < 3) {
1275
+ return [input];
1276
+ }
1277
+ return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options);
1278
+ };
1279
+ module.exports = braces;
1280
+ }
1281
+ });
1282
+
1283
+ // ../../node_modules/picomatch/lib/constants.js
1284
+ var require_constants2 = __commonJS({
1285
+ "../../node_modules/picomatch/lib/constants.js"(exports, module) {
1286
+ "use strict";
1287
+ init_esm_shims();
1288
+ var path = __require("path");
1289
+ var WIN_SLASH = "\\\\/";
1290
+ var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
1291
+ var DOT_LITERAL = "\\.";
1292
+ var PLUS_LITERAL = "\\+";
1293
+ var QMARK_LITERAL = "\\?";
1294
+ var SLASH_LITERAL = "\\/";
1295
+ var ONE_CHAR = "(?=.)";
1296
+ var QMARK = "[^/]";
1297
+ var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
1298
+ var START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
1299
+ var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
1300
+ var NO_DOT = `(?!${DOT_LITERAL})`;
1301
+ var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
1302
+ var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
1303
+ var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
1304
+ var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
1305
+ var STAR = `${QMARK}*?`;
1306
+ var POSIX_CHARS = {
1307
+ DOT_LITERAL,
1308
+ PLUS_LITERAL,
1309
+ QMARK_LITERAL,
1310
+ SLASH_LITERAL,
1311
+ ONE_CHAR,
1312
+ QMARK,
1313
+ END_ANCHOR,
1314
+ DOTS_SLASH,
1315
+ NO_DOT,
1316
+ NO_DOTS,
1317
+ NO_DOT_SLASH,
1318
+ NO_DOTS_SLASH,
1319
+ QMARK_NO_DOT,
1320
+ STAR,
1321
+ START_ANCHOR
1322
+ };
1323
+ var WINDOWS_CHARS = {
1324
+ ...POSIX_CHARS,
1325
+ SLASH_LITERAL: `[${WIN_SLASH}]`,
1326
+ QMARK: WIN_NO_SLASH,
1327
+ STAR: `${WIN_NO_SLASH}*?`,
1328
+ DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
1329
+ NO_DOT: `(?!${DOT_LITERAL})`,
1330
+ NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
1331
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
1332
+ NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
1333
+ QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
1334
+ START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
1335
+ END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
1336
+ };
1337
+ var POSIX_REGEX_SOURCE = {
1338
+ alnum: "a-zA-Z0-9",
1339
+ alpha: "a-zA-Z",
1340
+ ascii: "\\x00-\\x7F",
1341
+ blank: " \\t",
1342
+ cntrl: "\\x00-\\x1F\\x7F",
1343
+ digit: "0-9",
1344
+ graph: "\\x21-\\x7E",
1345
+ lower: "a-z",
1346
+ print: "\\x20-\\x7E ",
1347
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
1348
+ space: " \\t\\r\\n\\v\\f",
1349
+ upper: "A-Z",
1350
+ word: "A-Za-z0-9_",
1351
+ xdigit: "A-Fa-f0-9"
1352
+ };
1353
+ module.exports = {
1354
+ MAX_LENGTH: 1024 * 64,
1355
+ POSIX_REGEX_SOURCE,
1356
+ // regular expressions
1357
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
1358
+ REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
1359
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
1360
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
1361
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
1362
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
1363
+ // Replace globs with equivalent patterns to reduce parsing time.
1364
+ REPLACEMENTS: {
1365
+ "***": "*",
1366
+ "**/**": "**",
1367
+ "**/**/**": "**"
1368
+ },
1369
+ // Digits
1370
+ CHAR_0: 48,
1371
+ /* 0 */
1372
+ CHAR_9: 57,
1373
+ /* 9 */
1374
+ // Alphabet chars.
1375
+ CHAR_UPPERCASE_A: 65,
1376
+ /* A */
1377
+ CHAR_LOWERCASE_A: 97,
1378
+ /* a */
1379
+ CHAR_UPPERCASE_Z: 90,
1380
+ /* Z */
1381
+ CHAR_LOWERCASE_Z: 122,
1382
+ /* z */
1383
+ CHAR_LEFT_PARENTHESES: 40,
1384
+ /* ( */
1385
+ CHAR_RIGHT_PARENTHESES: 41,
1386
+ /* ) */
1387
+ CHAR_ASTERISK: 42,
1388
+ /* * */
1389
+ // Non-alphabetic chars.
1390
+ CHAR_AMPERSAND: 38,
1391
+ /* & */
1392
+ CHAR_AT: 64,
1393
+ /* @ */
1394
+ CHAR_BACKWARD_SLASH: 92,
1395
+ /* \ */
1396
+ CHAR_CARRIAGE_RETURN: 13,
1397
+ /* \r */
1398
+ CHAR_CIRCUMFLEX_ACCENT: 94,
1399
+ /* ^ */
1400
+ CHAR_COLON: 58,
1401
+ /* : */
1402
+ CHAR_COMMA: 44,
1403
+ /* , */
1404
+ CHAR_DOT: 46,
1405
+ /* . */
1406
+ CHAR_DOUBLE_QUOTE: 34,
1407
+ /* " */
1408
+ CHAR_EQUAL: 61,
1409
+ /* = */
1410
+ CHAR_EXCLAMATION_MARK: 33,
1411
+ /* ! */
1412
+ CHAR_FORM_FEED: 12,
1413
+ /* \f */
1414
+ CHAR_FORWARD_SLASH: 47,
1415
+ /* / */
1416
+ CHAR_GRAVE_ACCENT: 96,
1417
+ /* ` */
1418
+ CHAR_HASH: 35,
1419
+ /* # */
1420
+ CHAR_HYPHEN_MINUS: 45,
1421
+ /* - */
1422
+ CHAR_LEFT_ANGLE_BRACKET: 60,
1423
+ /* < */
1424
+ CHAR_LEFT_CURLY_BRACE: 123,
1425
+ /* { */
1426
+ CHAR_LEFT_SQUARE_BRACKET: 91,
1427
+ /* [ */
1428
+ CHAR_LINE_FEED: 10,
1429
+ /* \n */
1430
+ CHAR_NO_BREAK_SPACE: 160,
1431
+ /* \u00A0 */
1432
+ CHAR_PERCENT: 37,
1433
+ /* % */
1434
+ CHAR_PLUS: 43,
1435
+ /* + */
1436
+ CHAR_QUESTION_MARK: 63,
1437
+ /* ? */
1438
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
1439
+ /* > */
1440
+ CHAR_RIGHT_CURLY_BRACE: 125,
1441
+ /* } */
1442
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
1443
+ /* ] */
1444
+ CHAR_SEMICOLON: 59,
1445
+ /* ; */
1446
+ CHAR_SINGLE_QUOTE: 39,
1447
+ /* ' */
1448
+ CHAR_SPACE: 32,
1449
+ /* */
1450
+ CHAR_TAB: 9,
1451
+ /* \t */
1452
+ CHAR_UNDERSCORE: 95,
1453
+ /* _ */
1454
+ CHAR_VERTICAL_LINE: 124,
1455
+ /* | */
1456
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
1457
+ /* \uFEFF */
1458
+ SEP: path.sep,
1459
+ /**
1460
+ * Create EXTGLOB_CHARS
1461
+ */
1462
+ extglobChars(chars) {
1463
+ return {
1464
+ "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
1465
+ "?": { type: "qmark", open: "(?:", close: ")?" },
1466
+ "+": { type: "plus", open: "(?:", close: ")+" },
1467
+ "*": { type: "star", open: "(?:", close: ")*" },
1468
+ "@": { type: "at", open: "(?:", close: ")" }
1469
+ };
1470
+ },
1471
+ /**
1472
+ * Create GLOB_CHARS
1473
+ */
1474
+ globChars(win32) {
1475
+ return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
1476
+ }
1477
+ };
1478
+ }
1479
+ });
1480
+
1481
+ // ../../node_modules/picomatch/lib/utils.js
1482
+ var require_utils2 = __commonJS({
1483
+ "../../node_modules/picomatch/lib/utils.js"(exports) {
1484
+ "use strict";
1485
+ init_esm_shims();
1486
+ var path = __require("path");
1487
+ var win32 = process.platform === "win32";
1488
+ var {
1489
+ REGEX_BACKSLASH,
1490
+ REGEX_REMOVE_BACKSLASH,
1491
+ REGEX_SPECIAL_CHARS,
1492
+ REGEX_SPECIAL_CHARS_GLOBAL
1493
+ } = require_constants2();
1494
+ exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
1495
+ exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
1496
+ exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
1497
+ exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
1498
+ exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
1499
+ exports.removeBackslashes = (str) => {
1500
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
1501
+ return match === "\\" ? "" : match;
1502
+ });
1503
+ };
1504
+ exports.supportsLookbehinds = () => {
1505
+ const segs = process.version.slice(1).split(".").map(Number);
1506
+ if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
1507
+ return true;
1508
+ }
1509
+ return false;
1510
+ };
1511
+ exports.isWindows = (options) => {
1512
+ if (options && typeof options.windows === "boolean") {
1513
+ return options.windows;
1514
+ }
1515
+ return win32 === true || path.sep === "\\";
1516
+ };
1517
+ exports.escapeLast = (input, char, lastIdx) => {
1518
+ const idx = input.lastIndexOf(char, lastIdx);
1519
+ if (idx === -1) return input;
1520
+ if (input[idx - 1] === "\\") return exports.escapeLast(input, char, idx - 1);
1521
+ return `${input.slice(0, idx)}\\${input.slice(idx)}`;
1522
+ };
1523
+ exports.removePrefix = (input, state = {}) => {
1524
+ let output = input;
1525
+ if (output.startsWith("./")) {
1526
+ output = output.slice(2);
1527
+ state.prefix = "./";
1528
+ }
1529
+ return output;
1530
+ };
1531
+ exports.wrapOutput = (input, state = {}, options = {}) => {
1532
+ const prepend = options.contains ? "" : "^";
1533
+ const append = options.contains ? "" : "$";
1534
+ let output = `${prepend}(?:${input})${append}`;
1535
+ if (state.negated === true) {
1536
+ output = `(?:^(?!${output}).*$)`;
1537
+ }
1538
+ return output;
1539
+ };
1540
+ }
1541
+ });
1542
+
1543
+ // ../../node_modules/picomatch/lib/scan.js
1544
+ var require_scan = __commonJS({
1545
+ "../../node_modules/picomatch/lib/scan.js"(exports, module) {
1546
+ "use strict";
1547
+ init_esm_shims();
1548
+ var utils = require_utils2();
1549
+ var {
1550
+ CHAR_ASTERISK,
1551
+ /* * */
1552
+ CHAR_AT,
1553
+ /* @ */
1554
+ CHAR_BACKWARD_SLASH,
1555
+ /* \ */
1556
+ CHAR_COMMA,
1557
+ /* , */
1558
+ CHAR_DOT,
1559
+ /* . */
1560
+ CHAR_EXCLAMATION_MARK,
1561
+ /* ! */
1562
+ CHAR_FORWARD_SLASH,
1563
+ /* / */
1564
+ CHAR_LEFT_CURLY_BRACE,
1565
+ /* { */
1566
+ CHAR_LEFT_PARENTHESES,
1567
+ /* ( */
1568
+ CHAR_LEFT_SQUARE_BRACKET,
1569
+ /* [ */
1570
+ CHAR_PLUS,
1571
+ /* + */
1572
+ CHAR_QUESTION_MARK,
1573
+ /* ? */
1574
+ CHAR_RIGHT_CURLY_BRACE,
1575
+ /* } */
1576
+ CHAR_RIGHT_PARENTHESES,
1577
+ /* ) */
1578
+ CHAR_RIGHT_SQUARE_BRACKET
1579
+ /* ] */
1580
+ } = require_constants2();
1581
+ var isPathSeparator = (code) => {
1582
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
1583
+ };
1584
+ var depth = (token) => {
1585
+ if (token.isPrefix !== true) {
1586
+ token.depth = token.isGlobstar ? Infinity : 1;
1587
+ }
1588
+ };
1589
+ var scan = (input, options) => {
1590
+ const opts = options || {};
1591
+ const length = input.length - 1;
1592
+ const scanToEnd = opts.parts === true || opts.scanToEnd === true;
1593
+ const slashes = [];
1594
+ const tokens = [];
1595
+ const parts = [];
1596
+ let str = input;
1597
+ let index = -1;
1598
+ let start = 0;
1599
+ let lastIndex = 0;
1600
+ let isBrace = false;
1601
+ let isBracket = false;
1602
+ let isGlob = false;
1603
+ let isExtglob = false;
1604
+ let isGlobstar = false;
1605
+ let braceEscaped = false;
1606
+ let backslashes = false;
1607
+ let negated = false;
1608
+ let negatedExtglob = false;
1609
+ let finished = false;
1610
+ let braces = 0;
1611
+ let prev;
1612
+ let code;
1613
+ let token = { value: "", depth: 0, isGlob: false };
1614
+ const eos = () => index >= length;
1615
+ const peek = () => str.charCodeAt(index + 1);
1616
+ const advance = () => {
1617
+ prev = code;
1618
+ return str.charCodeAt(++index);
1619
+ };
1620
+ while (index < length) {
1621
+ code = advance();
1622
+ let next;
1623
+ if (code === CHAR_BACKWARD_SLASH) {
1624
+ backslashes = token.backslashes = true;
1625
+ code = advance();
1626
+ if (code === CHAR_LEFT_CURLY_BRACE) {
1627
+ braceEscaped = true;
1628
+ }
1629
+ continue;
1630
+ }
1631
+ if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
1632
+ braces++;
1633
+ while (eos() !== true && (code = advance())) {
1634
+ if (code === CHAR_BACKWARD_SLASH) {
1635
+ backslashes = token.backslashes = true;
1636
+ advance();
1637
+ continue;
1638
+ }
1639
+ if (code === CHAR_LEFT_CURLY_BRACE) {
1640
+ braces++;
1641
+ continue;
1642
+ }
1643
+ if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
1644
+ isBrace = token.isBrace = true;
1645
+ isGlob = token.isGlob = true;
1646
+ finished = true;
1647
+ if (scanToEnd === true) {
1648
+ continue;
1649
+ }
1650
+ break;
1651
+ }
1652
+ if (braceEscaped !== true && code === CHAR_COMMA) {
1653
+ isBrace = token.isBrace = true;
1654
+ isGlob = token.isGlob = true;
1655
+ finished = true;
1656
+ if (scanToEnd === true) {
1657
+ continue;
1658
+ }
1659
+ break;
1660
+ }
1661
+ if (code === CHAR_RIGHT_CURLY_BRACE) {
1662
+ braces--;
1663
+ if (braces === 0) {
1664
+ braceEscaped = false;
1665
+ isBrace = token.isBrace = true;
1666
+ finished = true;
1667
+ break;
1668
+ }
1669
+ }
1670
+ }
1671
+ if (scanToEnd === true) {
1672
+ continue;
1673
+ }
1674
+ break;
1675
+ }
1676
+ if (code === CHAR_FORWARD_SLASH) {
1677
+ slashes.push(index);
1678
+ tokens.push(token);
1679
+ token = { value: "", depth: 0, isGlob: false };
1680
+ if (finished === true) continue;
1681
+ if (prev === CHAR_DOT && index === start + 1) {
1682
+ start += 2;
1683
+ continue;
1684
+ }
1685
+ lastIndex = index + 1;
1686
+ continue;
1687
+ }
1688
+ if (opts.noext !== true) {
1689
+ const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
1690
+ if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
1691
+ isGlob = token.isGlob = true;
1692
+ isExtglob = token.isExtglob = true;
1693
+ finished = true;
1694
+ if (code === CHAR_EXCLAMATION_MARK && index === start) {
1695
+ negatedExtglob = true;
1696
+ }
1697
+ if (scanToEnd === true) {
1698
+ while (eos() !== true && (code = advance())) {
1699
+ if (code === CHAR_BACKWARD_SLASH) {
1700
+ backslashes = token.backslashes = true;
1701
+ code = advance();
1702
+ continue;
1703
+ }
1704
+ if (code === CHAR_RIGHT_PARENTHESES) {
1705
+ isGlob = token.isGlob = true;
1706
+ finished = true;
1707
+ break;
1708
+ }
1709
+ }
1710
+ continue;
1711
+ }
1712
+ break;
1713
+ }
1714
+ }
1715
+ if (code === CHAR_ASTERISK) {
1716
+ if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
1717
+ isGlob = token.isGlob = true;
1718
+ finished = true;
1719
+ if (scanToEnd === true) {
1720
+ continue;
1721
+ }
1722
+ break;
1723
+ }
1724
+ if (code === CHAR_QUESTION_MARK) {
1725
+ isGlob = token.isGlob = true;
1726
+ finished = true;
1727
+ if (scanToEnd === true) {
1728
+ continue;
1729
+ }
1730
+ break;
1731
+ }
1732
+ if (code === CHAR_LEFT_SQUARE_BRACKET) {
1733
+ while (eos() !== true && (next = advance())) {
1734
+ if (next === CHAR_BACKWARD_SLASH) {
1735
+ backslashes = token.backslashes = true;
1736
+ advance();
1737
+ continue;
1738
+ }
1739
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
1740
+ isBracket = token.isBracket = true;
1741
+ isGlob = token.isGlob = true;
1742
+ finished = true;
1743
+ break;
1744
+ }
1745
+ }
1746
+ if (scanToEnd === true) {
1747
+ continue;
1748
+ }
1749
+ break;
1750
+ }
1751
+ if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
1752
+ negated = token.negated = true;
1753
+ start++;
1754
+ continue;
1755
+ }
1756
+ if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
1757
+ isGlob = token.isGlob = true;
1758
+ if (scanToEnd === true) {
1759
+ while (eos() !== true && (code = advance())) {
1760
+ if (code === CHAR_LEFT_PARENTHESES) {
1761
+ backslashes = token.backslashes = true;
1762
+ code = advance();
1763
+ continue;
1764
+ }
1765
+ if (code === CHAR_RIGHT_PARENTHESES) {
1766
+ finished = true;
1767
+ break;
1768
+ }
1769
+ }
1770
+ continue;
1771
+ }
1772
+ break;
1773
+ }
1774
+ if (isGlob === true) {
1775
+ finished = true;
1776
+ if (scanToEnd === true) {
1777
+ continue;
1778
+ }
1779
+ break;
1780
+ }
1781
+ }
1782
+ if (opts.noext === true) {
1783
+ isExtglob = false;
1784
+ isGlob = false;
1785
+ }
1786
+ let base = str;
1787
+ let prefix = "";
1788
+ let glob = "";
1789
+ if (start > 0) {
1790
+ prefix = str.slice(0, start);
1791
+ str = str.slice(start);
1792
+ lastIndex -= start;
1793
+ }
1794
+ if (base && isGlob === true && lastIndex > 0) {
1795
+ base = str.slice(0, lastIndex);
1796
+ glob = str.slice(lastIndex);
1797
+ } else if (isGlob === true) {
1798
+ base = "";
1799
+ glob = str;
1800
+ } else {
1801
+ base = str;
1802
+ }
1803
+ if (base && base !== "" && base !== "/" && base !== str) {
1804
+ if (isPathSeparator(base.charCodeAt(base.length - 1))) {
1805
+ base = base.slice(0, -1);
1806
+ }
1807
+ }
1808
+ if (opts.unescape === true) {
1809
+ if (glob) glob = utils.removeBackslashes(glob);
1810
+ if (base && backslashes === true) {
1811
+ base = utils.removeBackslashes(base);
1812
+ }
1813
+ }
1814
+ const state = {
1815
+ prefix,
1816
+ input,
1817
+ start,
1818
+ base,
1819
+ glob,
1820
+ isBrace,
1821
+ isBracket,
1822
+ isGlob,
1823
+ isExtglob,
1824
+ isGlobstar,
1825
+ negated,
1826
+ negatedExtglob
1827
+ };
1828
+ if (opts.tokens === true) {
1829
+ state.maxDepth = 0;
1830
+ if (!isPathSeparator(code)) {
1831
+ tokens.push(token);
1832
+ }
1833
+ state.tokens = tokens;
1834
+ }
1835
+ if (opts.parts === true || opts.tokens === true) {
1836
+ let prevIndex;
1837
+ for (let idx = 0; idx < slashes.length; idx++) {
1838
+ const n = prevIndex ? prevIndex + 1 : start;
1839
+ const i = slashes[idx];
1840
+ const value = input.slice(n, i);
1841
+ if (opts.tokens) {
1842
+ if (idx === 0 && start !== 0) {
1843
+ tokens[idx].isPrefix = true;
1844
+ tokens[idx].value = prefix;
1845
+ } else {
1846
+ tokens[idx].value = value;
1847
+ }
1848
+ depth(tokens[idx]);
1849
+ state.maxDepth += tokens[idx].depth;
1850
+ }
1851
+ if (idx !== 0 || value !== "") {
1852
+ parts.push(value);
1853
+ }
1854
+ prevIndex = i;
1855
+ }
1856
+ if (prevIndex && prevIndex + 1 < input.length) {
1857
+ const value = input.slice(prevIndex + 1);
1858
+ parts.push(value);
1859
+ if (opts.tokens) {
1860
+ tokens[tokens.length - 1].value = value;
1861
+ depth(tokens[tokens.length - 1]);
1862
+ state.maxDepth += tokens[tokens.length - 1].depth;
1863
+ }
1864
+ }
1865
+ state.slashes = slashes;
1866
+ state.parts = parts;
1867
+ }
1868
+ return state;
1869
+ };
1870
+ module.exports = scan;
1871
+ }
1872
+ });
1873
+
1874
+ // ../../node_modules/picomatch/lib/parse.js
1875
+ var require_parse2 = __commonJS({
1876
+ "../../node_modules/picomatch/lib/parse.js"(exports, module) {
1877
+ "use strict";
1878
+ init_esm_shims();
1879
+ var constants = require_constants2();
1880
+ var utils = require_utils2();
1881
+ var {
1882
+ MAX_LENGTH,
1883
+ POSIX_REGEX_SOURCE,
1884
+ REGEX_NON_SPECIAL_CHARS,
1885
+ REGEX_SPECIAL_CHARS_BACKREF,
1886
+ REPLACEMENTS
1887
+ } = constants;
1888
+ var expandRange = (args, options) => {
1889
+ if (typeof options.expandRange === "function") {
1890
+ return options.expandRange(...args, options);
1891
+ }
1892
+ args.sort();
1893
+ const value = `[${args.join("-")}]`;
1894
+ try {
1895
+ new RegExp(value);
1896
+ } catch (ex) {
1897
+ return args.map((v) => utils.escapeRegex(v)).join("..");
1898
+ }
1899
+ return value;
1900
+ };
1901
+ var syntaxError = (type, char) => {
1902
+ return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
1903
+ };
1904
+ var parse = (input, options) => {
1905
+ if (typeof input !== "string") {
1906
+ throw new TypeError("Expected a string");
1907
+ }
1908
+ input = REPLACEMENTS[input] || input;
1909
+ const opts = { ...options };
1910
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
1911
+ let len = input.length;
1912
+ if (len > max) {
1913
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1914
+ }
1915
+ const bos = { type: "bos", value: "", output: opts.prepend || "" };
1916
+ const tokens = [bos];
1917
+ const capture = opts.capture ? "" : "?:";
1918
+ const win32 = utils.isWindows(options);
1919
+ const PLATFORM_CHARS = constants.globChars(win32);
1920
+ const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
1921
+ const {
1922
+ DOT_LITERAL,
1923
+ PLUS_LITERAL,
1924
+ SLASH_LITERAL,
1925
+ ONE_CHAR,
1926
+ DOTS_SLASH,
1927
+ NO_DOT,
1928
+ NO_DOT_SLASH,
1929
+ NO_DOTS_SLASH,
1930
+ QMARK,
1931
+ QMARK_NO_DOT,
1932
+ STAR,
1933
+ START_ANCHOR
1934
+ } = PLATFORM_CHARS;
1935
+ const globstar = (opts2) => {
1936
+ return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
1937
+ };
1938
+ const nodot = opts.dot ? "" : NO_DOT;
1939
+ const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
1940
+ let star = opts.bash === true ? globstar(opts) : STAR;
1941
+ if (opts.capture) {
1942
+ star = `(${star})`;
1943
+ }
1944
+ if (typeof opts.noext === "boolean") {
1945
+ opts.noextglob = opts.noext;
1946
+ }
1947
+ const state = {
1948
+ input,
1949
+ index: -1,
1950
+ start: 0,
1951
+ dot: opts.dot === true,
1952
+ consumed: "",
1953
+ output: "",
1954
+ prefix: "",
1955
+ backtrack: false,
1956
+ negated: false,
1957
+ brackets: 0,
1958
+ braces: 0,
1959
+ parens: 0,
1960
+ quotes: 0,
1961
+ globstar: false,
1962
+ tokens
1963
+ };
1964
+ input = utils.removePrefix(input, state);
1965
+ len = input.length;
1966
+ const extglobs = [];
1967
+ const braces = [];
1968
+ const stack = [];
1969
+ let prev = bos;
1970
+ let value;
1971
+ const eos = () => state.index === len - 1;
1972
+ const peek = state.peek = (n = 1) => input[state.index + n];
1973
+ const advance = state.advance = () => input[++state.index] || "";
1974
+ const remaining = () => input.slice(state.index + 1);
1975
+ const consume = (value2 = "", num = 0) => {
1976
+ state.consumed += value2;
1977
+ state.index += num;
1978
+ };
1979
+ const append = (token) => {
1980
+ state.output += token.output != null ? token.output : token.value;
1981
+ consume(token.value);
1982
+ };
1983
+ const negate = () => {
1984
+ let count = 1;
1985
+ while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) {
1986
+ advance();
1987
+ state.start++;
1988
+ count++;
1989
+ }
1990
+ if (count % 2 === 0) {
1991
+ return false;
1992
+ }
1993
+ state.negated = true;
1994
+ state.start++;
1995
+ return true;
1996
+ };
1997
+ const increment = (type) => {
1998
+ state[type]++;
1999
+ stack.push(type);
2000
+ };
2001
+ const decrement = (type) => {
2002
+ state[type]--;
2003
+ stack.pop();
2004
+ };
2005
+ const push = (tok) => {
2006
+ if (prev.type === "globstar") {
2007
+ const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace");
2008
+ const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
2009
+ if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) {
2010
+ state.output = state.output.slice(0, -prev.output.length);
2011
+ prev.type = "star";
2012
+ prev.value = "*";
2013
+ prev.output = star;
2014
+ state.output += prev.output;
2015
+ }
2016
+ }
2017
+ if (extglobs.length && tok.type !== "paren") {
2018
+ extglobs[extglobs.length - 1].inner += tok.value;
2019
+ }
2020
+ if (tok.value || tok.output) append(tok);
2021
+ if (prev && prev.type === "text" && tok.type === "text") {
2022
+ prev.value += tok.value;
2023
+ prev.output = (prev.output || "") + tok.value;
2024
+ return;
2025
+ }
2026
+ tok.prev = prev;
2027
+ tokens.push(tok);
2028
+ prev = tok;
2029
+ };
2030
+ const extglobOpen = (type, value2) => {
2031
+ const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
2032
+ token.prev = prev;
2033
+ token.parens = state.parens;
2034
+ token.output = state.output;
2035
+ const output = (opts.capture ? "(" : "") + token.open;
2036
+ increment("parens");
2037
+ push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
2038
+ push({ type: "paren", extglob: true, value: advance(), output });
2039
+ extglobs.push(token);
2040
+ };
2041
+ const extglobClose = (token) => {
2042
+ let output = token.close + (opts.capture ? ")" : "");
2043
+ let rest;
2044
+ if (token.type === "negate") {
2045
+ let extglobStar = star;
2046
+ if (token.inner && token.inner.length > 1 && token.inner.includes("/")) {
2047
+ extglobStar = globstar(opts);
2048
+ }
2049
+ if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) {
2050
+ output = token.close = `)$))${extglobStar}`;
2051
+ }
2052
+ if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
2053
+ const expression = parse(rest, { ...options, fastpaths: false }).output;
2054
+ output = token.close = `)${expression})${extglobStar})`;
2055
+ }
2056
+ if (token.prev.type === "bos") {
2057
+ state.negatedExtglob = true;
2058
+ }
2059
+ }
2060
+ push({ type: "paren", extglob: true, value, output });
2061
+ decrement("parens");
2062
+ };
2063
+ if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
2064
+ let backslashes = false;
2065
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
2066
+ if (first === "\\") {
2067
+ backslashes = true;
2068
+ return m;
2069
+ }
2070
+ if (first === "?") {
2071
+ if (esc) {
2072
+ return esc + first + (rest ? QMARK.repeat(rest.length) : "");
2073
+ }
2074
+ if (index === 0) {
2075
+ return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
2076
+ }
2077
+ return QMARK.repeat(chars.length);
2078
+ }
2079
+ if (first === ".") {
2080
+ return DOT_LITERAL.repeat(chars.length);
2081
+ }
2082
+ if (first === "*") {
2083
+ if (esc) {
2084
+ return esc + first + (rest ? star : "");
2085
+ }
2086
+ return star;
2087
+ }
2088
+ return esc ? m : `\\${m}`;
2089
+ });
2090
+ if (backslashes === true) {
2091
+ if (opts.unescape === true) {
2092
+ output = output.replace(/\\/g, "");
2093
+ } else {
2094
+ output = output.replace(/\\+/g, (m) => {
2095
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
2096
+ });
2097
+ }
2098
+ }
2099
+ if (output === input && opts.contains === true) {
2100
+ state.output = input;
2101
+ return state;
2102
+ }
2103
+ state.output = utils.wrapOutput(output, state, options);
2104
+ return state;
2105
+ }
2106
+ while (!eos()) {
2107
+ value = advance();
2108
+ if (value === "\0") {
2109
+ continue;
2110
+ }
2111
+ if (value === "\\") {
2112
+ const next = peek();
2113
+ if (next === "/" && opts.bash !== true) {
2114
+ continue;
2115
+ }
2116
+ if (next === "." || next === ";") {
2117
+ continue;
2118
+ }
2119
+ if (!next) {
2120
+ value += "\\";
2121
+ push({ type: "text", value });
2122
+ continue;
2123
+ }
2124
+ const match = /^\\+/.exec(remaining());
2125
+ let slashes = 0;
2126
+ if (match && match[0].length > 2) {
2127
+ slashes = match[0].length;
2128
+ state.index += slashes;
2129
+ if (slashes % 2 !== 0) {
2130
+ value += "\\";
2131
+ }
2132
+ }
2133
+ if (opts.unescape === true) {
2134
+ value = advance();
2135
+ } else {
2136
+ value += advance();
2137
+ }
2138
+ if (state.brackets === 0) {
2139
+ push({ type: "text", value });
2140
+ continue;
2141
+ }
2142
+ }
2143
+ if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) {
2144
+ if (opts.posix !== false && value === ":") {
2145
+ const inner = prev.value.slice(1);
2146
+ if (inner.includes("[")) {
2147
+ prev.posix = true;
2148
+ if (inner.includes(":")) {
2149
+ const idx = prev.value.lastIndexOf("[");
2150
+ const pre = prev.value.slice(0, idx);
2151
+ const rest2 = prev.value.slice(idx + 2);
2152
+ const posix = POSIX_REGEX_SOURCE[rest2];
2153
+ if (posix) {
2154
+ prev.value = pre + posix;
2155
+ state.backtrack = true;
2156
+ advance();
2157
+ if (!bos.output && tokens.indexOf(prev) === 1) {
2158
+ bos.output = ONE_CHAR;
2159
+ }
2160
+ continue;
2161
+ }
2162
+ }
2163
+ }
2164
+ }
2165
+ if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") {
2166
+ value = `\\${value}`;
2167
+ }
2168
+ if (value === "]" && (prev.value === "[" || prev.value === "[^")) {
2169
+ value = `\\${value}`;
2170
+ }
2171
+ if (opts.posix === true && value === "!" && prev.value === "[") {
2172
+ value = "^";
2173
+ }
2174
+ prev.value += value;
2175
+ append({ value });
2176
+ continue;
2177
+ }
2178
+ if (state.quotes === 1 && value !== '"') {
2179
+ value = utils.escapeRegex(value);
2180
+ prev.value += value;
2181
+ append({ value });
2182
+ continue;
2183
+ }
2184
+ if (value === '"') {
2185
+ state.quotes = state.quotes === 1 ? 0 : 1;
2186
+ if (opts.keepQuotes === true) {
2187
+ push({ type: "text", value });
2188
+ }
2189
+ continue;
2190
+ }
2191
+ if (value === "(") {
2192
+ increment("parens");
2193
+ push({ type: "paren", value });
2194
+ continue;
2195
+ }
2196
+ if (value === ")") {
2197
+ if (state.parens === 0 && opts.strictBrackets === true) {
2198
+ throw new SyntaxError(syntaxError("opening", "("));
2199
+ }
2200
+ const extglob = extglobs[extglobs.length - 1];
2201
+ if (extglob && state.parens === extglob.parens + 1) {
2202
+ extglobClose(extglobs.pop());
2203
+ continue;
2204
+ }
2205
+ push({ type: "paren", value, output: state.parens ? ")" : "\\)" });
2206
+ decrement("parens");
2207
+ continue;
2208
+ }
2209
+ if (value === "[") {
2210
+ if (opts.nobracket === true || !remaining().includes("]")) {
2211
+ if (opts.nobracket !== true && opts.strictBrackets === true) {
2212
+ throw new SyntaxError(syntaxError("closing", "]"));
2213
+ }
2214
+ value = `\\${value}`;
2215
+ } else {
2216
+ increment("brackets");
2217
+ }
2218
+ push({ type: "bracket", value });
2219
+ continue;
2220
+ }
2221
+ if (value === "]") {
2222
+ if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) {
2223
+ push({ type: "text", value, output: `\\${value}` });
2224
+ continue;
2225
+ }
2226
+ if (state.brackets === 0) {
2227
+ if (opts.strictBrackets === true) {
2228
+ throw new SyntaxError(syntaxError("opening", "["));
2229
+ }
2230
+ push({ type: "text", value, output: `\\${value}` });
2231
+ continue;
2232
+ }
2233
+ decrement("brackets");
2234
+ const prevValue = prev.value.slice(1);
2235
+ if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) {
2236
+ value = `/${value}`;
2237
+ }
2238
+ prev.value += value;
2239
+ append({ value });
2240
+ if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) {
2241
+ continue;
2242
+ }
2243
+ const escaped = utils.escapeRegex(prev.value);
2244
+ state.output = state.output.slice(0, -prev.value.length);
2245
+ if (opts.literalBrackets === true) {
2246
+ state.output += escaped;
2247
+ prev.value = escaped;
2248
+ continue;
2249
+ }
2250
+ prev.value = `(${capture}${escaped}|${prev.value})`;
2251
+ state.output += prev.value;
2252
+ continue;
2253
+ }
2254
+ if (value === "{" && opts.nobrace !== true) {
2255
+ increment("braces");
2256
+ const open = {
2257
+ type: "brace",
2258
+ value,
2259
+ output: "(",
2260
+ outputIndex: state.output.length,
2261
+ tokensIndex: state.tokens.length
2262
+ };
2263
+ braces.push(open);
2264
+ push(open);
2265
+ continue;
2266
+ }
2267
+ if (value === "}") {
2268
+ const brace = braces[braces.length - 1];
2269
+ if (opts.nobrace === true || !brace) {
2270
+ push({ type: "text", value, output: value });
2271
+ continue;
2272
+ }
2273
+ let output = ")";
2274
+ if (brace.dots === true) {
2275
+ const arr = tokens.slice();
2276
+ const range = [];
2277
+ for (let i = arr.length - 1; i >= 0; i--) {
2278
+ tokens.pop();
2279
+ if (arr[i].type === "brace") {
2280
+ break;
2281
+ }
2282
+ if (arr[i].type !== "dots") {
2283
+ range.unshift(arr[i].value);
2284
+ }
2285
+ }
2286
+ output = expandRange(range, opts);
2287
+ state.backtrack = true;
2288
+ }
2289
+ if (brace.comma !== true && brace.dots !== true) {
2290
+ const out = state.output.slice(0, brace.outputIndex);
2291
+ const toks = state.tokens.slice(brace.tokensIndex);
2292
+ brace.value = brace.output = "\\{";
2293
+ value = output = "\\}";
2294
+ state.output = out;
2295
+ for (const t of toks) {
2296
+ state.output += t.output || t.value;
2297
+ }
2298
+ }
2299
+ push({ type: "brace", value, output });
2300
+ decrement("braces");
2301
+ braces.pop();
2302
+ continue;
2303
+ }
2304
+ if (value === "|") {
2305
+ if (extglobs.length > 0) {
2306
+ extglobs[extglobs.length - 1].conditions++;
2307
+ }
2308
+ push({ type: "text", value });
2309
+ continue;
2310
+ }
2311
+ if (value === ",") {
2312
+ let output = value;
2313
+ const brace = braces[braces.length - 1];
2314
+ if (brace && stack[stack.length - 1] === "braces") {
2315
+ brace.comma = true;
2316
+ output = "|";
2317
+ }
2318
+ push({ type: "comma", value, output });
2319
+ continue;
2320
+ }
2321
+ if (value === "/") {
2322
+ if (prev.type === "dot" && state.index === state.start + 1) {
2323
+ state.start = state.index + 1;
2324
+ state.consumed = "";
2325
+ state.output = "";
2326
+ tokens.pop();
2327
+ prev = bos;
2328
+ continue;
2329
+ }
2330
+ push({ type: "slash", value, output: SLASH_LITERAL });
2331
+ continue;
2332
+ }
2333
+ if (value === ".") {
2334
+ if (state.braces > 0 && prev.type === "dot") {
2335
+ if (prev.value === ".") prev.output = DOT_LITERAL;
2336
+ const brace = braces[braces.length - 1];
2337
+ prev.type = "dots";
2338
+ prev.output += value;
2339
+ prev.value += value;
2340
+ brace.dots = true;
2341
+ continue;
2342
+ }
2343
+ if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
2344
+ push({ type: "text", value, output: DOT_LITERAL });
2345
+ continue;
2346
+ }
2347
+ push({ type: "dot", value, output: DOT_LITERAL });
2348
+ continue;
2349
+ }
2350
+ if (value === "?") {
2351
+ const isGroup = prev && prev.value === "(";
2352
+ if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
2353
+ extglobOpen("qmark", value);
2354
+ continue;
2355
+ }
2356
+ if (prev && prev.type === "paren") {
2357
+ const next = peek();
2358
+ let output = value;
2359
+ if (next === "<" && !utils.supportsLookbehinds()) {
2360
+ throw new Error("Node.js v10 or higher is required for regex lookbehinds");
2361
+ }
2362
+ if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
2363
+ output = `\\${value}`;
2364
+ }
2365
+ push({ type: "text", value, output });
2366
+ continue;
2367
+ }
2368
+ if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) {
2369
+ push({ type: "qmark", value, output: QMARK_NO_DOT });
2370
+ continue;
2371
+ }
2372
+ push({ type: "qmark", value, output: QMARK });
2373
+ continue;
2374
+ }
2375
+ if (value === "!") {
2376
+ if (opts.noextglob !== true && peek() === "(") {
2377
+ if (peek(2) !== "?" || !/[!=<:]/.test(peek(3))) {
2378
+ extglobOpen("negate", value);
2379
+ continue;
2380
+ }
2381
+ }
2382
+ if (opts.nonegate !== true && state.index === 0) {
2383
+ negate();
2384
+ continue;
2385
+ }
2386
+ }
2387
+ if (value === "+") {
2388
+ if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
2389
+ extglobOpen("plus", value);
2390
+ continue;
2391
+ }
2392
+ if (prev && prev.value === "(" || opts.regex === false) {
2393
+ push({ type: "plus", value, output: PLUS_LITERAL });
2394
+ continue;
2395
+ }
2396
+ if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) {
2397
+ push({ type: "plus", value });
2398
+ continue;
2399
+ }
2400
+ push({ type: "plus", value: PLUS_LITERAL });
2401
+ continue;
2402
+ }
2403
+ if (value === "@") {
2404
+ if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
2405
+ push({ type: "at", extglob: true, value, output: "" });
2406
+ continue;
2407
+ }
2408
+ push({ type: "text", value });
2409
+ continue;
2410
+ }
2411
+ if (value !== "*") {
2412
+ if (value === "$" || value === "^") {
2413
+ value = `\\${value}`;
2414
+ }
2415
+ const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
2416
+ if (match) {
2417
+ value += match[0];
2418
+ state.index += match[0].length;
2419
+ }
2420
+ push({ type: "text", value });
2421
+ continue;
2422
+ }
2423
+ if (prev && (prev.type === "globstar" || prev.star === true)) {
2424
+ prev.type = "star";
2425
+ prev.star = true;
2426
+ prev.value += value;
2427
+ prev.output = star;
2428
+ state.backtrack = true;
2429
+ state.globstar = true;
2430
+ consume(value);
2431
+ continue;
2432
+ }
2433
+ let rest = remaining();
2434
+ if (opts.noextglob !== true && /^\([^?]/.test(rest)) {
2435
+ extglobOpen("star", value);
2436
+ continue;
2437
+ }
2438
+ if (prev.type === "star") {
2439
+ if (opts.noglobstar === true) {
2440
+ consume(value);
2441
+ continue;
2442
+ }
2443
+ const prior = prev.prev;
2444
+ const before = prior.prev;
2445
+ const isStart = prior.type === "slash" || prior.type === "bos";
2446
+ const afterStar = before && (before.type === "star" || before.type === "globstar");
2447
+ if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) {
2448
+ push({ type: "star", value, output: "" });
2449
+ continue;
2450
+ }
2451
+ const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace");
2452
+ const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
2453
+ if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
2454
+ push({ type: "star", value, output: "" });
2455
+ continue;
2456
+ }
2457
+ while (rest.slice(0, 3) === "/**") {
2458
+ const after = input[state.index + 4];
2459
+ if (after && after !== "/") {
2460
+ break;
2461
+ }
2462
+ rest = rest.slice(3);
2463
+ consume("/**", 3);
2464
+ }
2465
+ if (prior.type === "bos" && eos()) {
2466
+ prev.type = "globstar";
2467
+ prev.value += value;
2468
+ prev.output = globstar(opts);
2469
+ state.output = prev.output;
2470
+ state.globstar = true;
2471
+ consume(value);
2472
+ continue;
2473
+ }
2474
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
2475
+ state.output = state.output.slice(0, -(prior.output + prev.output).length);
2476
+ prior.output = `(?:${prior.output}`;
2477
+ prev.type = "globstar";
2478
+ prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)");
2479
+ prev.value += value;
2480
+ state.globstar = true;
2481
+ state.output += prior.output + prev.output;
2482
+ consume(value);
2483
+ continue;
2484
+ }
2485
+ if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
2486
+ const end = rest[1] !== void 0 ? "|$" : "";
2487
+ state.output = state.output.slice(0, -(prior.output + prev.output).length);
2488
+ prior.output = `(?:${prior.output}`;
2489
+ prev.type = "globstar";
2490
+ prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
2491
+ prev.value += value;
2492
+ state.output += prior.output + prev.output;
2493
+ state.globstar = true;
2494
+ consume(value + advance());
2495
+ push({ type: "slash", value: "/", output: "" });
2496
+ continue;
2497
+ }
2498
+ if (prior.type === "bos" && rest[0] === "/") {
2499
+ prev.type = "globstar";
2500
+ prev.value += value;
2501
+ prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
2502
+ state.output = prev.output;
2503
+ state.globstar = true;
2504
+ consume(value + advance());
2505
+ push({ type: "slash", value: "/", output: "" });
2506
+ continue;
2507
+ }
2508
+ state.output = state.output.slice(0, -prev.output.length);
2509
+ prev.type = "globstar";
2510
+ prev.output = globstar(opts);
2511
+ prev.value += value;
2512
+ state.output += prev.output;
2513
+ state.globstar = true;
2514
+ consume(value);
2515
+ continue;
2516
+ }
2517
+ const token = { type: "star", value, output: star };
2518
+ if (opts.bash === true) {
2519
+ token.output = ".*?";
2520
+ if (prev.type === "bos" || prev.type === "slash") {
2521
+ token.output = nodot + token.output;
2522
+ }
2523
+ push(token);
2524
+ continue;
2525
+ }
2526
+ if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) {
2527
+ token.output = value;
2528
+ push(token);
2529
+ continue;
2530
+ }
2531
+ if (state.index === state.start || prev.type === "slash" || prev.type === "dot") {
2532
+ if (prev.type === "dot") {
2533
+ state.output += NO_DOT_SLASH;
2534
+ prev.output += NO_DOT_SLASH;
2535
+ } else if (opts.dot === true) {
2536
+ state.output += NO_DOTS_SLASH;
2537
+ prev.output += NO_DOTS_SLASH;
2538
+ } else {
2539
+ state.output += nodot;
2540
+ prev.output += nodot;
2541
+ }
2542
+ if (peek() !== "*") {
2543
+ state.output += ONE_CHAR;
2544
+ prev.output += ONE_CHAR;
2545
+ }
2546
+ }
2547
+ push(token);
2548
+ }
2549
+ while (state.brackets > 0) {
2550
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
2551
+ state.output = utils.escapeLast(state.output, "[");
2552
+ decrement("brackets");
2553
+ }
2554
+ while (state.parens > 0) {
2555
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
2556
+ state.output = utils.escapeLast(state.output, "(");
2557
+ decrement("parens");
2558
+ }
2559
+ while (state.braces > 0) {
2560
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
2561
+ state.output = utils.escapeLast(state.output, "{");
2562
+ decrement("braces");
2563
+ }
2564
+ if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) {
2565
+ push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` });
2566
+ }
2567
+ if (state.backtrack === true) {
2568
+ state.output = "";
2569
+ for (const token of state.tokens) {
2570
+ state.output += token.output != null ? token.output : token.value;
2571
+ if (token.suffix) {
2572
+ state.output += token.suffix;
2573
+ }
2574
+ }
2575
+ }
2576
+ return state;
2577
+ };
2578
+ parse.fastpaths = (input, options) => {
2579
+ const opts = { ...options };
2580
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
2581
+ const len = input.length;
2582
+ if (len > max) {
2583
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
2584
+ }
2585
+ input = REPLACEMENTS[input] || input;
2586
+ const win32 = utils.isWindows(options);
2587
+ const {
2588
+ DOT_LITERAL,
2589
+ SLASH_LITERAL,
2590
+ ONE_CHAR,
2591
+ DOTS_SLASH,
2592
+ NO_DOT,
2593
+ NO_DOTS,
2594
+ NO_DOTS_SLASH,
2595
+ STAR,
2596
+ START_ANCHOR
2597
+ } = constants.globChars(win32);
2598
+ const nodot = opts.dot ? NO_DOTS : NO_DOT;
2599
+ const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
2600
+ const capture = opts.capture ? "" : "?:";
2601
+ const state = { negated: false, prefix: "" };
2602
+ let star = opts.bash === true ? ".*?" : STAR;
2603
+ if (opts.capture) {
2604
+ star = `(${star})`;
2605
+ }
2606
+ const globstar = (opts2) => {
2607
+ if (opts2.noglobstar === true) return star;
2608
+ return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
2609
+ };
2610
+ const create = (str) => {
2611
+ switch (str) {
2612
+ case "*":
2613
+ return `${nodot}${ONE_CHAR}${star}`;
2614
+ case ".*":
2615
+ return `${DOT_LITERAL}${ONE_CHAR}${star}`;
2616
+ case "*.*":
2617
+ return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
2618
+ case "*/*":
2619
+ return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
2620
+ case "**":
2621
+ return nodot + globstar(opts);
2622
+ case "**/*":
2623
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
2624
+ case "**/*.*":
2625
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
2626
+ case "**/.*":
2627
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
2628
+ default: {
2629
+ const match = /^(.*?)\.(\w+)$/.exec(str);
2630
+ if (!match) return;
2631
+ const source2 = create(match[1]);
2632
+ if (!source2) return;
2633
+ return source2 + DOT_LITERAL + match[2];
2634
+ }
2635
+ }
2636
+ };
2637
+ const output = utils.removePrefix(input, state);
2638
+ let source = create(output);
2639
+ if (source && opts.strictSlashes !== true) {
2640
+ source += `${SLASH_LITERAL}?`;
2641
+ }
2642
+ return source;
2643
+ };
2644
+ module.exports = parse;
2645
+ }
2646
+ });
2647
+
2648
+ // ../../node_modules/picomatch/lib/picomatch.js
2649
+ var require_picomatch = __commonJS({
2650
+ "../../node_modules/picomatch/lib/picomatch.js"(exports, module) {
2651
+ "use strict";
2652
+ init_esm_shims();
2653
+ var path = __require("path");
2654
+ var scan = require_scan();
2655
+ var parse = require_parse2();
2656
+ var utils = require_utils2();
2657
+ var constants = require_constants2();
2658
+ var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
2659
+ var picomatch = (glob, options, returnState = false) => {
2660
+ if (Array.isArray(glob)) {
2661
+ const fns = glob.map((input) => picomatch(input, options, returnState));
2662
+ const arrayMatcher = (str) => {
2663
+ for (const isMatch of fns) {
2664
+ const state2 = isMatch(str);
2665
+ if (state2) return state2;
2666
+ }
2667
+ return false;
2668
+ };
2669
+ return arrayMatcher;
2670
+ }
2671
+ const isState = isObject(glob) && glob.tokens && glob.input;
2672
+ if (glob === "" || typeof glob !== "string" && !isState) {
2673
+ throw new TypeError("Expected pattern to be a non-empty string");
2674
+ }
2675
+ const opts = options || {};
2676
+ const posix = utils.isWindows(options);
2677
+ const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
2678
+ const state = regex.state;
2679
+ delete regex.state;
2680
+ let isIgnored = () => false;
2681
+ if (opts.ignore) {
2682
+ const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
2683
+ isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
2684
+ }
2685
+ const matcher = (input, returnObject = false) => {
2686
+ const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
2687
+ const result = { glob, state, regex, posix, input, output, match, isMatch };
2688
+ if (typeof opts.onResult === "function") {
2689
+ opts.onResult(result);
2690
+ }
2691
+ if (isMatch === false) {
2692
+ result.isMatch = false;
2693
+ return returnObject ? result : false;
2694
+ }
2695
+ if (isIgnored(input)) {
2696
+ if (typeof opts.onIgnore === "function") {
2697
+ opts.onIgnore(result);
2698
+ }
2699
+ result.isMatch = false;
2700
+ return returnObject ? result : false;
2701
+ }
2702
+ if (typeof opts.onMatch === "function") {
2703
+ opts.onMatch(result);
2704
+ }
2705
+ return returnObject ? result : true;
2706
+ };
2707
+ if (returnState) {
2708
+ matcher.state = state;
2709
+ }
2710
+ return matcher;
2711
+ };
2712
+ picomatch.test = (input, regex, options, { glob, posix } = {}) => {
2713
+ if (typeof input !== "string") {
2714
+ throw new TypeError("Expected input to be a string");
2715
+ }
2716
+ if (input === "") {
2717
+ return { isMatch: false, output: "" };
2718
+ }
2719
+ const opts = options || {};
2720
+ const format = opts.format || (posix ? utils.toPosixSlashes : null);
2721
+ let match = input === glob;
2722
+ let output = match && format ? format(input) : input;
2723
+ if (match === false) {
2724
+ output = format ? format(input) : input;
2725
+ match = output === glob;
2726
+ }
2727
+ if (match === false || opts.capture === true) {
2728
+ if (opts.matchBase === true || opts.basename === true) {
2729
+ match = picomatch.matchBase(input, regex, options, posix);
2730
+ } else {
2731
+ match = regex.exec(output);
2732
+ }
2733
+ }
2734
+ return { isMatch: Boolean(match), match, output };
2735
+ };
2736
+ picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
2737
+ const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
2738
+ return regex.test(path.basename(input));
2739
+ };
2740
+ picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
2741
+ picomatch.parse = (pattern, options) => {
2742
+ if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
2743
+ return parse(pattern, { ...options, fastpaths: false });
2744
+ };
2745
+ picomatch.scan = (input, options) => scan(input, options);
2746
+ picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
2747
+ if (returnOutput === true) {
2748
+ return state.output;
2749
+ }
2750
+ const opts = options || {};
2751
+ const prepend = opts.contains ? "" : "^";
2752
+ const append = opts.contains ? "" : "$";
2753
+ let source = `${prepend}(?:${state.output})${append}`;
2754
+ if (state && state.negated === true) {
2755
+ source = `^(?!${source}).*$`;
2756
+ }
2757
+ const regex = picomatch.toRegex(source, options);
2758
+ if (returnState === true) {
2759
+ regex.state = state;
2760
+ }
2761
+ return regex;
2762
+ };
2763
+ picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
2764
+ if (!input || typeof input !== "string") {
2765
+ throw new TypeError("Expected a non-empty string");
2766
+ }
2767
+ let parsed = { negated: false, fastpaths: true };
2768
+ if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
2769
+ parsed.output = parse.fastpaths(input, options);
2770
+ }
2771
+ if (!parsed.output) {
2772
+ parsed = parse(input, options);
2773
+ }
2774
+ return picomatch.compileRe(parsed, options, returnOutput, returnState);
2775
+ };
2776
+ picomatch.toRegex = (source, options) => {
2777
+ try {
2778
+ const opts = options || {};
2779
+ return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
2780
+ } catch (err) {
2781
+ if (options && options.debug === true) throw err;
2782
+ return /$^/;
2783
+ }
2784
+ };
2785
+ picomatch.constants = constants;
2786
+ module.exports = picomatch;
2787
+ }
2788
+ });
2789
+
2790
+ // ../../node_modules/picomatch/index.js
2791
+ var require_picomatch2 = __commonJS({
2792
+ "../../node_modules/picomatch/index.js"(exports, module) {
2793
+ "use strict";
2794
+ init_esm_shims();
2795
+ module.exports = require_picomatch();
2796
+ }
2797
+ });
2798
+
2799
+ export {
2800
+ require_is_glob,
2801
+ require_glob_parent,
2802
+ require_braces,
2803
+ require_utils2 as require_utils,
2804
+ require_picomatch2 as require_picomatch
2805
+ };
2806
+ /*! Bundled license information:
2807
+
2808
+ is-extglob/index.js:
2809
+ (*!
2810
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
2811
+ *
2812
+ * Copyright (c) 2014-2016, Jon Schlinkert.
2813
+ * Licensed under the MIT License.
2814
+ *)
2815
+
2816
+ is-glob/index.js:
2817
+ (*!
2818
+ * is-glob <https://github.com/jonschlinkert/is-glob>
2819
+ *
2820
+ * Copyright (c) 2014-2017, Jon Schlinkert.
2821
+ * Released under the MIT License.
2822
+ *)
2823
+
2824
+ is-number/index.js:
2825
+ (*!
2826
+ * is-number <https://github.com/jonschlinkert/is-number>
2827
+ *
2828
+ * Copyright (c) 2014-present, Jon Schlinkert.
2829
+ * Released under the MIT License.
2830
+ *)
2831
+
2832
+ to-regex-range/index.js:
2833
+ (*!
2834
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
2835
+ *
2836
+ * Copyright (c) 2015-present, Jon Schlinkert.
2837
+ * Released under the MIT License.
2838
+ *)
2839
+
2840
+ fill-range/index.js:
2841
+ (*!
2842
+ * fill-range <https://github.com/jonschlinkert/fill-range>
2843
+ *
2844
+ * Copyright (c) 2014-present, Jon Schlinkert.
2845
+ * Licensed under the MIT License.
2846
+ *)
2847
+ */
2848
+ //# sourceMappingURL=chunk-AII5FZC2.js.map