@shopify/cli 3.68.1 → 3.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/graphiql/style.css +58 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +19 -0
- package/dist/assets/hydrogen/starter/app/components/Aside.tsx +24 -1
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +13 -6
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +5 -3
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +10 -25
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +3 -1
- package/dist/assets/hydrogen/starter/package.json +4 -4
- package/dist/{chokidar-4TKDAB27.js → chokidar-OESTCX4H.js} +571 -8
- package/dist/{chunk-BFQFJ7IZ.js → chunk-27ILOE3X.js} +93 -5
- package/dist/{chunk-X4VIZNM7.js → chunk-4P6VDKXH.js} +2 -2
- package/dist/{chunk-6RT7XCLB.js → chunk-4UO6LFBD.js} +5 -5
- package/dist/{chunk-SFSTMK3J.js → chunk-5W3WRWHE.js} +3 -3
- package/dist/{chunk-MS2XBA2O.js → chunk-7SCNBKRX.js} +7 -7
- package/dist/{chunk-LAPJDMM4.js → chunk-A3JXD7N7.js} +2 -2
- package/dist/{chunk-N2B5M33U.js → chunk-CH6PR2VT.js} +3 -3
- package/dist/{chunk-SARPUMOJ.js → chunk-DQISYPN6.js} +4 -4
- package/dist/{chunk-3Q52FLVU.js → chunk-DYVC757D.js} +3 -3
- package/dist/{chunk-EPBXQ43B.js → chunk-E4FPHMGU.js} +8 -8
- package/dist/{chunk-JEUAVIWO.js → chunk-EFRDEP5S.js} +76 -77
- package/dist/{chunk-QNE3KDXA.js → chunk-EL4JXI6O.js} +2 -2
- package/dist/{chunk-CLB5CEKJ.js → chunk-ERVB6ERU.js} +3 -3
- package/dist/{chunk-NPVFC3AI.js → chunk-ITNHP733.js} +4 -4
- package/dist/{chunk-O2TXYCMU.js → chunk-JECUABVU.js} +3 -3
- package/dist/{chunk-S3KCQ67R.js → chunk-K55EL7HQ.js} +11 -11
- package/dist/{chunk-6H3CV7RL.js → chunk-KIVJKHH4.js} +3 -3
- package/dist/{chunk-V54N7BU5.js → chunk-KOQHK34U.js} +3 -3
- package/dist/{chunk-6MAEOVS3.js → chunk-KWVMII6E.js} +3 -3
- package/dist/{chunk-XPDRDFSD.js → chunk-KXCAVMHA.js} +3 -3
- package/dist/{chunk-6ZDQFSSJ.js → chunk-LQ7IL4AX.js} +142 -860
- package/dist/{chunk-M7RWRKXK.js → chunk-LSXK7YFC.js} +4 -4
- package/dist/{chunk-YESRKQ2L.js → chunk-LXEX6UNB.js} +2 -2
- package/dist/{chunk-F27QYMO7.js → chunk-MX4RJDBM.js} +591 -20
- package/dist/{chunk-ZFVK6EQX.js → chunk-NB4NLOEJ.js} +142 -703
- package/dist/{chunk-RUY5HVC5.js → chunk-OA6RDR4W.js} +2 -2
- package/dist/{chunk-QAP5YFY6.js → chunk-OFSGLPHJ.js} +2 -2
- package/dist/{chunk-NZDBLGNM.js → chunk-P7JUHQKL.js} +1 -2
- package/dist/{chunk-3M35CLHM.js → chunk-PZSU4QTH.js} +2 -2
- package/dist/{chunk-GLV27A4V.js → chunk-SS3JYL5S.js} +2 -2
- package/dist/{chunk-HWFFJANJ.js → chunk-SSVHNTMB.js} +3 -3
- package/dist/{chunk-7MDO7W7X.js → chunk-TM426SS3.js} +3 -3
- package/dist/{chunk-NOB736ZC.js → chunk-TODOEE5F.js} +3 -3
- package/dist/{chunk-7S76TS4X.js → chunk-TRFLZOJU.js} +5 -5
- package/dist/{chunk-72AFLINH.js → chunk-VSXWSKVK.js} +4 -4
- package/dist/{chunk-YGWIVVUL.js → chunk-VUQJSBXL.js} +161 -39
- package/dist/{chunk-GKSNOFYA.js → chunk-WOBGT6C6.js} +2 -2
- package/dist/{chunk-BZ2F2UZZ.js → chunk-YEITDZ7O.js} +4 -4
- package/dist/{chunk-JF3XJON5.js → chunk-YV6SWFDE.js} +5 -5
- package/dist/{chunk-43SYBNY3.js → chunk-ZKXBLV2V.js} +4 -4
- package/dist/cli/commands/auth/logout.js +15 -17
- package/dist/cli/commands/auth/logout.test.js +16 -18
- package/dist/cli/commands/debug/command-flags.js +14 -16
- package/dist/cli/commands/demo/catalog.js +15 -17
- package/dist/cli/commands/demo/generate-file.js +15 -17
- package/dist/cli/commands/demo/index.js +15 -17
- package/dist/cli/commands/demo/print-ai-prompt.js +15 -17
- package/dist/cli/commands/docs/generate.js +14 -16
- package/dist/cli/commands/docs/generate.test.js +14 -16
- package/dist/cli/commands/help.js +14 -16
- package/dist/cli/commands/kitchen-sink/async.js +15 -17
- package/dist/cli/commands/kitchen-sink/async.test.js +15 -17
- package/dist/cli/commands/kitchen-sink/index.js +17 -19
- package/dist/cli/commands/kitchen-sink/index.test.js +17 -19
- package/dist/cli/commands/kitchen-sink/prompts.js +15 -17
- package/dist/cli/commands/kitchen-sink/prompts.test.js +15 -17
- package/dist/cli/commands/kitchen-sink/static.js +15 -17
- package/dist/cli/commands/kitchen-sink/static.test.js +15 -17
- package/dist/cli/commands/search.js +15 -17
- package/dist/cli/commands/upgrade.js +15 -17
- package/dist/cli/commands/version.js +15 -17
- package/dist/cli/commands/version.test.js +15 -17
- package/dist/cli/services/commands/search.js +7 -9
- package/dist/cli/services/commands/search.test.js +7 -9
- package/dist/cli/services/commands/version.js +8 -10
- package/dist/cli/services/commands/version.test.js +9 -11
- package/dist/cli/services/demo.js +7 -9
- package/dist/cli/services/demo.test.js +7 -9
- package/dist/cli/services/kitchen-sink/async.js +7 -9
- package/dist/cli/services/kitchen-sink/prompts.js +7 -9
- package/dist/cli/services/kitchen-sink/static.js +7 -9
- package/dist/cli/services/upgrade.js +8 -10
- package/dist/cli/services/upgrade.test.js +10 -12
- package/dist/{constants-TR6ABVLJ.js → constants-T7JXE5K7.js} +2 -2
- package/dist/{custom-oclif-loader-KLQXTO4F.js → custom-oclif-loader-ETQSAFQG.js} +9 -11
- package/dist/{del-EL3PLWCY.js → del-7ZS2Z64N.js} +4 -4
- package/dist/{error-handler-5FD7IHCB.js → error-handler-ITARI4R7.js} +13 -15
- package/dist/hooks/postrun.js +14 -15
- package/dist/hooks/prerun.js +12 -14
- package/dist/index.js +4496 -3687
- package/dist/{lib-4WCTNKJK.js → lib-JHUCJTHS.js} +5 -6
- package/dist/{local-LNHYBD2A.js → local-JOQLVNNB.js} +7 -11
- package/dist/{morph-WDFBUXWF.js → morph-QZYXTRWT.js} +11 -11
- package/dist/{node-Y6VIULWD.js → node-XBEXHDBO.js} +18 -20
- package/dist/{node-package-manager-6CQ6226U.js → node-package-manager-EQM2DXHD.js} +8 -10
- package/dist/out-ZDSLKX4N.js +7 -0
- package/dist/{system-LDMV4BPS.js → system-VHEQK233.js} +7 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-PA5ER7II.js → ui-SWA4K4YR.js} +7 -9
- package/dist/{workerd-APENUASI.js → workerd-QAI4NP7E.js} +17 -19
- package/oclif.manifest.json +30 -49
- package/package.json +19 -8
- package/dist/assets/auth-error.html +0 -23
- package/dist/assets/empty-url.html +0 -23
- package/dist/assets/favicon.svg +0 -26
- package/dist/assets/missing-code.html +0 -23
- package/dist/assets/missing-state.html +0 -23
- package/dist/assets/style.css +0 -58
- package/dist/assets/success.html +0 -20
- package/dist/chunk-2AW6NZQ5.js +0 -101
- package/dist/chunk-QETDXAFX.js +0 -106
- package/dist/lib-H3ZZGS7I.js +0 -1322
- package/dist/out-66YUO4CT.js +0 -7
- package/dist/templates/theme-extension/assets/thumbs-up.png +0 -0
- package/dist/templates/theme-extension/blocks/star_rating.liquid.raw +0 -21
- package/dist/templates/theme-extension/locales/en.default.json +0 -10
- package/dist/templates/theme-extension/shopify.extension.toml.liquid +0 -3
- package/dist/templates/theme-extension/snippets/stars.liquid.raw +0 -10
- package/dist/templates/ui-extensions/projects/product_subscription/package.json.liquid +0 -25
- package/dist/templates/ui-extensions/projects/product_subscription/shopify.extension.toml.liquid +0 -3
- package/dist/templates/ui-extensions/projects/product_subscription/src/index.liquid +0 -46
- package/dist/templates/ui-extensions/projects/web_pixel_extension/README.md +0 -23
- package/dist/templates/ui-extensions/projects/web_pixel_extension/package.json.liquid +0 -9
- package/dist/templates/ui-extensions/projects/web_pixel_extension/shopify.extension.toml.liquid +0 -16
- package/dist/templates/ui-extensions/projects/web_pixel_extension/src/index.liquid +0 -10
|
@@ -94,692 +94,8 @@ var require_glob_parent = __commonJS({
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
// ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js
|
|
98
|
-
var require_utils = __commonJS({
|
|
99
|
-
"../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js"(exports) {
|
|
100
|
-
"use strict";
|
|
101
|
-
init_cjs_shims();
|
|
102
|
-
exports.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1;
|
|
103
|
-
exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
|
|
104
|
-
exports.exceedsLimit = (min, max, step = 1, limit) => limit === !1 || !exports.isInteger(min) || !exports.isInteger(max) ? !1 : (Number(max) - Number(min)) / Number(step) >= limit;
|
|
105
|
-
exports.escapeNode = (block, n = 0, type) => {
|
|
106
|
-
let node = block.nodes[n];
|
|
107
|
-
node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
|
|
108
|
-
};
|
|
109
|
-
exports.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0);
|
|
110
|
-
exports.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : !(block.commas >> 0 + block.ranges >> 0) || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1;
|
|
111
|
-
exports.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0;
|
|
112
|
-
exports.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []);
|
|
113
|
-
exports.flatten = (...args) => {
|
|
114
|
-
let result = [], flat = (arr) => {
|
|
115
|
-
for (let i = 0; i < arr.length; i++) {
|
|
116
|
-
let ele = arr[i];
|
|
117
|
-
Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele);
|
|
118
|
-
}
|
|
119
|
-
return result;
|
|
120
|
-
};
|
|
121
|
-
return flat(args), result;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
// ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js
|
|
127
|
-
var require_stringify = __commonJS({
|
|
128
|
-
"../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
129
|
-
"use strict";
|
|
130
|
-
init_cjs_shims();
|
|
131
|
-
var utils = require_utils();
|
|
132
|
-
module.exports = (ast, options = {}) => {
|
|
133
|
-
let stringify = (node, parent = {}) => {
|
|
134
|
-
let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, output = "";
|
|
135
|
-
if (node.value)
|
|
136
|
-
return (invalidBlock || invalidNode) && utils.isOpenOrClose(node) ? "\\" + node.value : node.value;
|
|
137
|
-
if (node.value)
|
|
138
|
-
return node.value;
|
|
139
|
-
if (node.nodes)
|
|
140
|
-
for (let child of node.nodes)
|
|
141
|
-
output += stringify(child);
|
|
142
|
-
return output;
|
|
143
|
-
};
|
|
144
|
-
return stringify(ast);
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
// ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
150
|
-
var require_is_number = __commonJS({
|
|
151
|
-
"../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
152
|
-
"use strict";
|
|
153
|
-
init_cjs_shims();
|
|
154
|
-
module.exports = function(num) {
|
|
155
|
-
return typeof num == "number" ? num - num === 0 : typeof num == "string" && num.trim() !== "" ? Number.isFinite ? Number.isFinite(+num) : isFinite(+num) : !1;
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
// ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
161
|
-
var require_to_regex_range = __commonJS({
|
|
162
|
-
"../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
163
|
-
"use strict";
|
|
164
|
-
init_cjs_shims();
|
|
165
|
-
var isNumber = require_is_number(), toRegexRange = (min, max, options) => {
|
|
166
|
-
if (isNumber(min) === !1)
|
|
167
|
-
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
168
|
-
if (max === void 0 || min === max)
|
|
169
|
-
return String(min);
|
|
170
|
-
if (isNumber(max) === !1)
|
|
171
|
-
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
172
|
-
let opts = { relaxZeros: !0, ...options };
|
|
173
|
-
typeof opts.strictZeros == "boolean" && (opts.relaxZeros = opts.strictZeros === !1);
|
|
174
|
-
let relax = String(opts.relaxZeros), shorthand = String(opts.shorthand), capture = String(opts.capture), wrap = String(opts.wrap), cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
|
|
175
|
-
if (toRegexRange.cache.hasOwnProperty(cacheKey))
|
|
176
|
-
return toRegexRange.cache[cacheKey].result;
|
|
177
|
-
let a = Math.min(min, max), b = Math.max(min, max);
|
|
178
|
-
if (Math.abs(a - b) === 1) {
|
|
179
|
-
let result = min + "|" + max;
|
|
180
|
-
return opts.capture ? `(${result})` : opts.wrap === !1 ? result : `(?:${result})`;
|
|
181
|
-
}
|
|
182
|
-
let isPadded = hasPadding(min) || hasPadding(max), state = { min, max, a, b }, positives = [], negatives = [];
|
|
183
|
-
if (isPadded && (state.isPadded = isPadded, state.maxLen = String(state.max).length), a < 0) {
|
|
184
|
-
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
185
|
-
negatives = splitToPatterns(newMin, Math.abs(a), state, opts), a = state.a = 0;
|
|
186
|
-
}
|
|
187
|
-
return b >= 0 && (positives = splitToPatterns(a, b, state, opts)), state.negatives = negatives, state.positives = positives, state.result = collatePatterns(negatives, positives, opts), opts.capture === !0 ? state.result = `(${state.result})` : opts.wrap !== !1 && positives.length + negatives.length > 1 && (state.result = `(?:${state.result})`), toRegexRange.cache[cacheKey] = state, state.result;
|
|
188
|
-
};
|
|
189
|
-
function collatePatterns(neg, pos, options) {
|
|
190
|
-
let onlyNegative = filterPatterns(neg, pos, "-", !1, options) || [], onlyPositive = filterPatterns(pos, neg, "", !1, options) || [], intersected = filterPatterns(neg, pos, "-?", !0, options) || [];
|
|
191
|
-
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
192
|
-
}
|
|
193
|
-
function splitToRanges(min, max) {
|
|
194
|
-
let nines = 1, zeros = 1, stop = countNines(min, nines), stops = /* @__PURE__ */ new Set([max]);
|
|
195
|
-
for (; min <= stop && stop <= max; )
|
|
196
|
-
stops.add(stop), nines += 1, stop = countNines(min, nines);
|
|
197
|
-
for (stop = countZeros(max + 1, zeros) - 1; min < stop && stop <= max; )
|
|
198
|
-
stops.add(stop), zeros += 1, stop = countZeros(max + 1, zeros) - 1;
|
|
199
|
-
return stops = [...stops], stops.sort(compare), stops;
|
|
200
|
-
}
|
|
201
|
-
function rangeToPattern(start, stop, options) {
|
|
202
|
-
if (start === stop)
|
|
203
|
-
return { pattern: start, count: [], digits: 0 };
|
|
204
|
-
let zipped = zip(start, stop), digits = zipped.length, pattern = "", count = 0;
|
|
205
|
-
for (let i = 0; i < digits; i++) {
|
|
206
|
-
let [startDigit, stopDigit] = zipped[i];
|
|
207
|
-
startDigit === stopDigit ? pattern += startDigit : startDigit !== "0" || stopDigit !== "9" ? pattern += toCharacterClass(startDigit, stopDigit, options) : count++;
|
|
208
|
-
}
|
|
209
|
-
return count && (pattern += options.shorthand === !0 ? "\\d" : "[0-9]"), { pattern, count: [count], digits };
|
|
210
|
-
}
|
|
211
|
-
function splitToPatterns(min, max, tok, options) {
|
|
212
|
-
let ranges = splitToRanges(min, max), tokens = [], start = min, prev;
|
|
213
|
-
for (let i = 0; i < ranges.length; i++) {
|
|
214
|
-
let max2 = ranges[i], obj = rangeToPattern(String(start), String(max2), options), zeros = "";
|
|
215
|
-
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
216
|
-
prev.count.length > 1 && prev.count.pop(), prev.count.push(obj.count[0]), prev.string = prev.pattern + toQuantifier(prev.count), start = max2 + 1;
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
tok.isPadded && (zeros = padZeros(max2, tok, options)), obj.string = zeros + obj.pattern + toQuantifier(obj.count), tokens.push(obj), start = max2 + 1, prev = obj;
|
|
220
|
-
}
|
|
221
|
-
return tokens;
|
|
222
|
-
}
|
|
223
|
-
function filterPatterns(arr, comparison, prefix, intersection, options) {
|
|
224
|
-
let result = [];
|
|
225
|
-
for (let ele of arr) {
|
|
226
|
-
let { string } = ele;
|
|
227
|
-
!intersection && !contains(comparison, "string", string) && result.push(prefix + string), intersection && contains(comparison, "string", string) && result.push(prefix + string);
|
|
228
|
-
}
|
|
229
|
-
return result;
|
|
230
|
-
}
|
|
231
|
-
function zip(a, b) {
|
|
232
|
-
let arr = [];
|
|
233
|
-
for (let i = 0; i < a.length; i++)
|
|
234
|
-
arr.push([a[i], b[i]]);
|
|
235
|
-
return arr;
|
|
236
|
-
}
|
|
237
|
-
function compare(a, b) {
|
|
238
|
-
return a > b ? 1 : b > a ? -1 : 0;
|
|
239
|
-
}
|
|
240
|
-
function contains(arr, key, val) {
|
|
241
|
-
return arr.some((ele) => ele[key] === val);
|
|
242
|
-
}
|
|
243
|
-
function countNines(min, len) {
|
|
244
|
-
return Number(String(min).slice(0, -len) + "9".repeat(len));
|
|
245
|
-
}
|
|
246
|
-
function countZeros(integer, zeros) {
|
|
247
|
-
return integer - integer % Math.pow(10, zeros);
|
|
248
|
-
}
|
|
249
|
-
function toQuantifier(digits) {
|
|
250
|
-
let [start = 0, stop = ""] = digits;
|
|
251
|
-
return stop || start > 1 ? `{${start + (stop ? "," + stop : "")}}` : "";
|
|
252
|
-
}
|
|
253
|
-
function toCharacterClass(a, b, options) {
|
|
254
|
-
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
255
|
-
}
|
|
256
|
-
function hasPadding(str) {
|
|
257
|
-
return /^-?(0+)\d/.test(str);
|
|
258
|
-
}
|
|
259
|
-
function padZeros(value, tok, options) {
|
|
260
|
-
if (!tok.isPadded)
|
|
261
|
-
return value;
|
|
262
|
-
let diff = Math.abs(tok.maxLen - String(value).length), relax = options.relaxZeros !== !1;
|
|
263
|
-
switch (diff) {
|
|
264
|
-
case 0:
|
|
265
|
-
return "";
|
|
266
|
-
case 1:
|
|
267
|
-
return relax ? "0?" : "0";
|
|
268
|
-
case 2:
|
|
269
|
-
return relax ? "0{0,2}" : "00";
|
|
270
|
-
default:
|
|
271
|
-
return relax ? `0{0,${diff}}` : `0{${diff}}`;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
toRegexRange.cache = {};
|
|
275
|
-
toRegexRange.clearCache = () => toRegexRange.cache = {};
|
|
276
|
-
module.exports = toRegexRange;
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
|
|
280
|
-
// ../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js
|
|
281
|
-
var require_fill_range = __commonJS({
|
|
282
|
-
"../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js"(exports, module) {
|
|
283
|
-
"use strict";
|
|
284
|
-
init_cjs_shims();
|
|
285
|
-
var util = __require("util"), toRegexRange = require_to_regex_range(), isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val), transform = (toNumber) => (value) => toNumber === !0 ? Number(value) : String(value), isValidValue = (value) => typeof value == "number" || typeof value == "string" && value !== "", isNumber = (num) => Number.isInteger(+num), zeros = (input) => {
|
|
286
|
-
let value = `${input}`, index = -1;
|
|
287
|
-
if (value[0] === "-" && (value = value.slice(1)), value === "0")
|
|
288
|
-
return !1;
|
|
289
|
-
for (; value[++index] === "0"; )
|
|
290
|
-
;
|
|
291
|
-
return index > 0;
|
|
292
|
-
}, stringify = (start, end, options) => typeof start == "string" || typeof end == "string" ? !0 : options.stringify === !0, pad = (input, maxLength, toNumber) => {
|
|
293
|
-
if (maxLength > 0) {
|
|
294
|
-
let dash = input[0] === "-" ? "-" : "";
|
|
295
|
-
dash && (input = input.slice(1)), input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
|
|
296
|
-
}
|
|
297
|
-
return toNumber === !1 ? String(input) : input;
|
|
298
|
-
}, toMaxLen = (input, maxLength) => {
|
|
299
|
-
let negative = input[0] === "-" ? "-" : "";
|
|
300
|
-
for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; )
|
|
301
|
-
input = "0" + input;
|
|
302
|
-
return negative ? "-" + input : input;
|
|
303
|
-
}, toSequence = (parts, options) => {
|
|
304
|
-
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
305
|
-
let prefix = options.capture ? "" : "?:", positives = "", negatives = "", result;
|
|
306
|
-
return parts.positives.length && (positives = parts.positives.join("|")), parts.negatives.length && (negatives = `-(${prefix}${parts.negatives.join("|")})`), positives && negatives ? result = `${positives}|${negatives}` : result = positives || negatives, options.wrap ? `(${prefix}${result})` : result;
|
|
307
|
-
}, toRange = (a, b, isNumbers, options) => {
|
|
308
|
-
if (isNumbers)
|
|
309
|
-
return toRegexRange(a, b, { wrap: !1, ...options });
|
|
310
|
-
let start = String.fromCharCode(a);
|
|
311
|
-
if (a === b)
|
|
312
|
-
return start;
|
|
313
|
-
let stop = String.fromCharCode(b);
|
|
314
|
-
return `[${start}-${stop}]`;
|
|
315
|
-
}, toRegex = (start, end, options) => {
|
|
316
|
-
if (Array.isArray(start)) {
|
|
317
|
-
let wrap = options.wrap === !0, prefix = options.capture ? "" : "?:";
|
|
318
|
-
return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
|
|
319
|
-
}
|
|
320
|
-
return toRegexRange(start, end, options);
|
|
321
|
-
}, rangeError = (...args) => new RangeError("Invalid range arguments: " + util.inspect(...args)), invalidRange = (start, end, options) => {
|
|
322
|
-
if (options.strictRanges === !0)
|
|
323
|
-
throw rangeError([start, end]);
|
|
324
|
-
return [];
|
|
325
|
-
}, invalidStep = (step, options) => {
|
|
326
|
-
if (options.strictRanges === !0)
|
|
327
|
-
throw new TypeError(`Expected step "${step}" to be a number`);
|
|
328
|
-
return [];
|
|
329
|
-
}, fillNumbers = (start, end, step = 1, options = {}) => {
|
|
330
|
-
let a = Number(start), b = Number(end);
|
|
331
|
-
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
332
|
-
if (options.strictRanges === !0)
|
|
333
|
-
throw rangeError([start, end]);
|
|
334
|
-
return [];
|
|
335
|
-
}
|
|
336
|
-
a === 0 && (a = 0), b === 0 && (b = 0);
|
|
337
|
-
let descending = a > b, startString = String(start), endString = String(end), stepString = String(step);
|
|
338
|
-
step = Math.max(Math.abs(step), 1);
|
|
339
|
-
let padded = zeros(startString) || zeros(endString) || zeros(stepString), maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0, toNumber = padded === !1 && stringify(start, end, options) === !1, format = options.transform || transform(toNumber);
|
|
340
|
-
if (options.toRegex && step === 1)
|
|
341
|
-
return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), !0, options);
|
|
342
|
-
let parts = { negatives: [], positives: [] }, push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)), range = [], index = 0;
|
|
343
|
-
for (; descending ? a >= b : a <= b; )
|
|
344
|
-
options.toRegex === !0 && step > 1 ? push(a) : range.push(pad(format(a, index), maxLen, toNumber)), a = descending ? a - step : a + step, index++;
|
|
345
|
-
return options.toRegex === !0 ? step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: !1, ...options }) : range;
|
|
346
|
-
}, fillLetters = (start, end, step = 1, options = {}) => {
|
|
347
|
-
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1)
|
|
348
|
-
return invalidRange(start, end, options);
|
|
349
|
-
let format = options.transform || ((val) => String.fromCharCode(val)), a = `${start}`.charCodeAt(0), b = `${end}`.charCodeAt(0), descending = a > b, min = Math.min(a, b), max = Math.max(a, b);
|
|
350
|
-
if (options.toRegex && step === 1)
|
|
351
|
-
return toRange(min, max, !1, options);
|
|
352
|
-
let range = [], index = 0;
|
|
353
|
-
for (; descending ? a >= b : a <= b; )
|
|
354
|
-
range.push(format(a, index)), a = descending ? a - step : a + step, index++;
|
|
355
|
-
return options.toRegex === !0 ? toRegex(range, null, { wrap: !1, options }) : range;
|
|
356
|
-
}, fill = (start, end, step, options = {}) => {
|
|
357
|
-
if (end == null && isValidValue(start))
|
|
358
|
-
return [start];
|
|
359
|
-
if (!isValidValue(start) || !isValidValue(end))
|
|
360
|
-
return invalidRange(start, end, options);
|
|
361
|
-
if (typeof step == "function")
|
|
362
|
-
return fill(start, end, 1, { transform: step });
|
|
363
|
-
if (isObject(step))
|
|
364
|
-
return fill(start, end, 0, step);
|
|
365
|
-
let opts = { ...options };
|
|
366
|
-
return opts.capture === !0 && (opts.wrap = !0), step = step || opts.step || 1, isNumber(step) ? isNumber(start) && isNumber(end) ? fillNumbers(start, end, step, opts) : fillLetters(start, end, Math.max(Math.abs(step), 1), opts) : step != null && !isObject(step) ? invalidStep(step, opts) : fill(start, end, 1, step);
|
|
367
|
-
};
|
|
368
|
-
module.exports = fill;
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
|
|
372
|
-
// ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js
|
|
373
|
-
var require_compile = __commonJS({
|
|
374
|
-
"../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js"(exports, module) {
|
|
375
|
-
"use strict";
|
|
376
|
-
init_cjs_shims();
|
|
377
|
-
var fill = require_fill_range(), utils = require_utils(), compile = (ast, options = {}) => {
|
|
378
|
-
let walk = (node, parent = {}) => {
|
|
379
|
-
let invalidBlock = utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, invalid = invalidBlock === !0 || invalidNode === !0, prefix = options.escapeInvalid === !0 ? "\\" : "", output = "";
|
|
380
|
-
if (node.isOpen === !0 || node.isClose === !0)
|
|
381
|
-
return prefix + node.value;
|
|
382
|
-
if (node.type === "open")
|
|
383
|
-
return invalid ? prefix + node.value : "(";
|
|
384
|
-
if (node.type === "close")
|
|
385
|
-
return invalid ? prefix + node.value : ")";
|
|
386
|
-
if (node.type === "comma")
|
|
387
|
-
return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
388
|
-
if (node.value)
|
|
389
|
-
return node.value;
|
|
390
|
-
if (node.nodes && node.ranges > 0) {
|
|
391
|
-
let args = utils.reduce(node.nodes), range = fill(...args, { ...options, wrap: !1, toRegex: !0 });
|
|
392
|
-
if (range.length !== 0)
|
|
393
|
-
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
394
|
-
}
|
|
395
|
-
if (node.nodes)
|
|
396
|
-
for (let child of node.nodes)
|
|
397
|
-
output += walk(child, node);
|
|
398
|
-
return output;
|
|
399
|
-
};
|
|
400
|
-
return walk(ast);
|
|
401
|
-
};
|
|
402
|
-
module.exports = compile;
|
|
403
|
-
}
|
|
404
|
-
});
|
|
405
|
-
|
|
406
|
-
// ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js
|
|
407
|
-
var require_expand = __commonJS({
|
|
408
|
-
"../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js"(exports, module) {
|
|
409
|
-
"use strict";
|
|
410
|
-
init_cjs_shims();
|
|
411
|
-
var fill = require_fill_range(), stringify = require_stringify(), utils = require_utils(), append = (queue = "", stash = "", enclose = !1) => {
|
|
412
|
-
let result = [];
|
|
413
|
-
if (queue = [].concat(queue), stash = [].concat(stash), !stash.length)
|
|
414
|
-
return queue;
|
|
415
|
-
if (!queue.length)
|
|
416
|
-
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
417
|
-
for (let item of queue)
|
|
418
|
-
if (Array.isArray(item))
|
|
419
|
-
for (let value of item)
|
|
420
|
-
result.push(append(value, stash, enclose));
|
|
421
|
-
else
|
|
422
|
-
for (let ele of stash)
|
|
423
|
-
enclose === !0 && typeof ele == "string" && (ele = `{${ele}}`), result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
424
|
-
return utils.flatten(result);
|
|
425
|
-
}, expand = (ast, options = {}) => {
|
|
426
|
-
let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit, walk = (node, parent = {}) => {
|
|
427
|
-
node.queue = [];
|
|
428
|
-
let p = parent, q = parent.queue;
|
|
429
|
-
for (; p.type !== "brace" && p.type !== "root" && p.parent; )
|
|
430
|
-
p = p.parent, q = p.queue;
|
|
431
|
-
if (node.invalid || node.dollar) {
|
|
432
|
-
q.push(append(q.pop(), stringify(node, options)));
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
if (node.type === "brace" && node.invalid !== !0 && node.nodes.length === 2) {
|
|
436
|
-
q.push(append(q.pop(), ["{}"]));
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
if (node.nodes && node.ranges > 0) {
|
|
440
|
-
let args = utils.reduce(node.nodes);
|
|
441
|
-
if (utils.exceedsLimit(...args, options.step, rangeLimit))
|
|
442
|
-
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
443
|
-
let range = fill(...args, options);
|
|
444
|
-
range.length === 0 && (range = stringify(node, options)), q.push(append(q.pop(), range)), node.nodes = [];
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
let enclose = utils.encloseBrace(node), queue = node.queue, block = node;
|
|
448
|
-
for (; block.type !== "brace" && block.type !== "root" && block.parent; )
|
|
449
|
-
block = block.parent, queue = block.queue;
|
|
450
|
-
for (let i = 0; i < node.nodes.length; i++) {
|
|
451
|
-
let child = node.nodes[i];
|
|
452
|
-
if (child.type === "comma" && node.type === "brace") {
|
|
453
|
-
i === 1 && queue.push(""), queue.push("");
|
|
454
|
-
continue;
|
|
455
|
-
}
|
|
456
|
-
if (child.type === "close") {
|
|
457
|
-
q.push(append(q.pop(), queue, enclose));
|
|
458
|
-
continue;
|
|
459
|
-
}
|
|
460
|
-
if (child.value && child.type !== "open") {
|
|
461
|
-
queue.push(append(queue.pop(), child.value));
|
|
462
|
-
continue;
|
|
463
|
-
}
|
|
464
|
-
child.nodes && walk(child, node);
|
|
465
|
-
}
|
|
466
|
-
return queue;
|
|
467
|
-
};
|
|
468
|
-
return utils.flatten(walk(ast));
|
|
469
|
-
};
|
|
470
|
-
module.exports = expand;
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
|
|
474
|
-
// ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js
|
|
475
|
-
var require_constants = __commonJS({
|
|
476
|
-
"../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js"(exports, module) {
|
|
477
|
-
"use strict";
|
|
478
|
-
init_cjs_shims();
|
|
479
|
-
module.exports = {
|
|
480
|
-
MAX_LENGTH: 1024 * 64,
|
|
481
|
-
// Digits
|
|
482
|
-
CHAR_0: "0",
|
|
483
|
-
/* 0 */
|
|
484
|
-
CHAR_9: "9",
|
|
485
|
-
/* 9 */
|
|
486
|
-
// Alphabet chars.
|
|
487
|
-
CHAR_UPPERCASE_A: "A",
|
|
488
|
-
/* A */
|
|
489
|
-
CHAR_LOWERCASE_A: "a",
|
|
490
|
-
/* a */
|
|
491
|
-
CHAR_UPPERCASE_Z: "Z",
|
|
492
|
-
/* Z */
|
|
493
|
-
CHAR_LOWERCASE_Z: "z",
|
|
494
|
-
/* z */
|
|
495
|
-
CHAR_LEFT_PARENTHESES: "(",
|
|
496
|
-
/* ( */
|
|
497
|
-
CHAR_RIGHT_PARENTHESES: ")",
|
|
498
|
-
/* ) */
|
|
499
|
-
CHAR_ASTERISK: "*",
|
|
500
|
-
/* * */
|
|
501
|
-
// Non-alphabetic chars.
|
|
502
|
-
CHAR_AMPERSAND: "&",
|
|
503
|
-
/* & */
|
|
504
|
-
CHAR_AT: "@",
|
|
505
|
-
/* @ */
|
|
506
|
-
CHAR_BACKSLASH: "\\",
|
|
507
|
-
/* \ */
|
|
508
|
-
CHAR_BACKTICK: "`",
|
|
509
|
-
/* ` */
|
|
510
|
-
CHAR_CARRIAGE_RETURN: "\r",
|
|
511
|
-
/* \r */
|
|
512
|
-
CHAR_CIRCUMFLEX_ACCENT: "^",
|
|
513
|
-
/* ^ */
|
|
514
|
-
CHAR_COLON: ":",
|
|
515
|
-
/* : */
|
|
516
|
-
CHAR_COMMA: ",",
|
|
517
|
-
/* , */
|
|
518
|
-
CHAR_DOLLAR: "$",
|
|
519
|
-
/* . */
|
|
520
|
-
CHAR_DOT: ".",
|
|
521
|
-
/* . */
|
|
522
|
-
CHAR_DOUBLE_QUOTE: '"',
|
|
523
|
-
/* " */
|
|
524
|
-
CHAR_EQUAL: "=",
|
|
525
|
-
/* = */
|
|
526
|
-
CHAR_EXCLAMATION_MARK: "!",
|
|
527
|
-
/* ! */
|
|
528
|
-
CHAR_FORM_FEED: "\f",
|
|
529
|
-
/* \f */
|
|
530
|
-
CHAR_FORWARD_SLASH: "/",
|
|
531
|
-
/* / */
|
|
532
|
-
CHAR_HASH: "#",
|
|
533
|
-
/* # */
|
|
534
|
-
CHAR_HYPHEN_MINUS: "-",
|
|
535
|
-
/* - */
|
|
536
|
-
CHAR_LEFT_ANGLE_BRACKET: "<",
|
|
537
|
-
/* < */
|
|
538
|
-
CHAR_LEFT_CURLY_BRACE: "{",
|
|
539
|
-
/* { */
|
|
540
|
-
CHAR_LEFT_SQUARE_BRACKET: "[",
|
|
541
|
-
/* [ */
|
|
542
|
-
CHAR_LINE_FEED: `
|
|
543
|
-
`,
|
|
544
|
-
/* \n */
|
|
545
|
-
CHAR_NO_BREAK_SPACE: "\xA0",
|
|
546
|
-
/* \u00A0 */
|
|
547
|
-
CHAR_PERCENT: "%",
|
|
548
|
-
/* % */
|
|
549
|
-
CHAR_PLUS: "+",
|
|
550
|
-
/* + */
|
|
551
|
-
CHAR_QUESTION_MARK: "?",
|
|
552
|
-
/* ? */
|
|
553
|
-
CHAR_RIGHT_ANGLE_BRACKET: ">",
|
|
554
|
-
/* > */
|
|
555
|
-
CHAR_RIGHT_CURLY_BRACE: "}",
|
|
556
|
-
/* } */
|
|
557
|
-
CHAR_RIGHT_SQUARE_BRACKET: "]",
|
|
558
|
-
/* ] */
|
|
559
|
-
CHAR_SEMICOLON: ";",
|
|
560
|
-
/* ; */
|
|
561
|
-
CHAR_SINGLE_QUOTE: "'",
|
|
562
|
-
/* ' */
|
|
563
|
-
CHAR_SPACE: " ",
|
|
564
|
-
/* */
|
|
565
|
-
CHAR_TAB: " ",
|
|
566
|
-
/* \t */
|
|
567
|
-
CHAR_UNDERSCORE: "_",
|
|
568
|
-
/* _ */
|
|
569
|
-
CHAR_VERTICAL_LINE: "|",
|
|
570
|
-
/* | */
|
|
571
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
|
|
572
|
-
/* \uFEFF */
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
|
|
577
|
-
// ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js
|
|
578
|
-
var require_parse = __commonJS({
|
|
579
|
-
"../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js"(exports, module) {
|
|
580
|
-
"use strict";
|
|
581
|
-
init_cjs_shims();
|
|
582
|
-
var stringify = require_stringify(), {
|
|
583
|
-
MAX_LENGTH,
|
|
584
|
-
CHAR_BACKSLASH,
|
|
585
|
-
/* \ */
|
|
586
|
-
CHAR_BACKTICK,
|
|
587
|
-
/* ` */
|
|
588
|
-
CHAR_COMMA,
|
|
589
|
-
/* , */
|
|
590
|
-
CHAR_DOT,
|
|
591
|
-
/* . */
|
|
592
|
-
CHAR_LEFT_PARENTHESES,
|
|
593
|
-
/* ( */
|
|
594
|
-
CHAR_RIGHT_PARENTHESES,
|
|
595
|
-
/* ) */
|
|
596
|
-
CHAR_LEFT_CURLY_BRACE,
|
|
597
|
-
/* { */
|
|
598
|
-
CHAR_RIGHT_CURLY_BRACE,
|
|
599
|
-
/* } */
|
|
600
|
-
CHAR_LEFT_SQUARE_BRACKET,
|
|
601
|
-
/* [ */
|
|
602
|
-
CHAR_RIGHT_SQUARE_BRACKET,
|
|
603
|
-
/* ] */
|
|
604
|
-
CHAR_DOUBLE_QUOTE,
|
|
605
|
-
/* " */
|
|
606
|
-
CHAR_SINGLE_QUOTE,
|
|
607
|
-
/* ' */
|
|
608
|
-
CHAR_NO_BREAK_SPACE,
|
|
609
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
610
|
-
} = require_constants(), parse = (input, options = {}) => {
|
|
611
|
-
if (typeof input != "string")
|
|
612
|
-
throw new TypeError("Expected a string");
|
|
613
|
-
let opts = options || {}, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
614
|
-
if (input.length > max)
|
|
615
|
-
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
616
|
-
let ast = { type: "root", input, nodes: [] }, stack = [ast], block = ast, prev = ast, brackets = 0, length = input.length, index = 0, depth = 0, value, memo = {}, advance = () => input[index++], push = (node) => {
|
|
617
|
-
if (node.type === "text" && prev.type === "dot" && (prev.type = "text"), prev && prev.type === "text" && node.type === "text") {
|
|
618
|
-
prev.value += node.value;
|
|
619
|
-
return;
|
|
620
|
-
}
|
|
621
|
-
return block.nodes.push(node), node.parent = block, node.prev = prev, prev = node, node;
|
|
622
|
-
};
|
|
623
|
-
for (push({ type: "bos" }); index < length; )
|
|
624
|
-
if (block = stack[stack.length - 1], value = advance(), !(value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE)) {
|
|
625
|
-
if (value === CHAR_BACKSLASH) {
|
|
626
|
-
push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
|
|
627
|
-
continue;
|
|
628
|
-
}
|
|
629
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
630
|
-
push({ type: "text", value: "\\" + value });
|
|
631
|
-
continue;
|
|
632
|
-
}
|
|
633
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
634
|
-
brackets++;
|
|
635
|
-
let closed = !0, next;
|
|
636
|
-
for (; index < length && (next = advance()); ) {
|
|
637
|
-
if (value += next, next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
638
|
-
brackets++;
|
|
639
|
-
continue;
|
|
640
|
-
}
|
|
641
|
-
if (next === CHAR_BACKSLASH) {
|
|
642
|
-
value += advance();
|
|
643
|
-
continue;
|
|
644
|
-
}
|
|
645
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET && (brackets--, brackets === 0))
|
|
646
|
-
break;
|
|
647
|
-
}
|
|
648
|
-
push({ type: "text", value });
|
|
649
|
-
continue;
|
|
650
|
-
}
|
|
651
|
-
if (value === CHAR_LEFT_PARENTHESES) {
|
|
652
|
-
block = push({ type: "paren", nodes: [] }), stack.push(block), push({ type: "text", value });
|
|
653
|
-
continue;
|
|
654
|
-
}
|
|
655
|
-
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
656
|
-
if (block.type !== "paren") {
|
|
657
|
-
push({ type: "text", value });
|
|
658
|
-
continue;
|
|
659
|
-
}
|
|
660
|
-
block = stack.pop(), push({ type: "text", value }), block = stack[stack.length - 1];
|
|
661
|
-
continue;
|
|
662
|
-
}
|
|
663
|
-
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
664
|
-
let open = value, next;
|
|
665
|
-
for (options.keepQuotes !== !0 && (value = ""); index < length && (next = advance()); ) {
|
|
666
|
-
if (next === CHAR_BACKSLASH) {
|
|
667
|
-
value += next + advance();
|
|
668
|
-
continue;
|
|
669
|
-
}
|
|
670
|
-
if (next === open) {
|
|
671
|
-
options.keepQuotes === !0 && (value += next);
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
|
-
value += next;
|
|
675
|
-
}
|
|
676
|
-
push({ type: "text", value });
|
|
677
|
-
continue;
|
|
678
|
-
}
|
|
679
|
-
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
680
|
-
depth++;
|
|
681
|
-
let brace = {
|
|
682
|
-
type: "brace",
|
|
683
|
-
open: !0,
|
|
684
|
-
close: !1,
|
|
685
|
-
dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === !0,
|
|
686
|
-
depth,
|
|
687
|
-
commas: 0,
|
|
688
|
-
ranges: 0,
|
|
689
|
-
nodes: []
|
|
690
|
-
};
|
|
691
|
-
block = push(brace), stack.push(block), push({ type: "open", value });
|
|
692
|
-
continue;
|
|
693
|
-
}
|
|
694
|
-
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
695
|
-
if (block.type !== "brace") {
|
|
696
|
-
push({ type: "text", value });
|
|
697
|
-
continue;
|
|
698
|
-
}
|
|
699
|
-
let type = "close";
|
|
700
|
-
block = stack.pop(), block.close = !0, push({ type, value }), depth--, block = stack[stack.length - 1];
|
|
701
|
-
continue;
|
|
702
|
-
}
|
|
703
|
-
if (value === CHAR_COMMA && depth > 0) {
|
|
704
|
-
if (block.ranges > 0) {
|
|
705
|
-
block.ranges = 0;
|
|
706
|
-
let open = block.nodes.shift();
|
|
707
|
-
block.nodes = [open, { type: "text", value: stringify(block) }];
|
|
708
|
-
}
|
|
709
|
-
push({ type: "comma", value }), block.commas++;
|
|
710
|
-
continue;
|
|
711
|
-
}
|
|
712
|
-
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
713
|
-
let siblings = block.nodes;
|
|
714
|
-
if (depth === 0 || siblings.length === 0) {
|
|
715
|
-
push({ type: "text", value });
|
|
716
|
-
continue;
|
|
717
|
-
}
|
|
718
|
-
if (prev.type === "dot") {
|
|
719
|
-
if (block.range = [], prev.value += value, prev.type = "range", block.nodes.length !== 3 && block.nodes.length !== 5) {
|
|
720
|
-
block.invalid = !0, block.ranges = 0, prev.type = "text";
|
|
721
|
-
continue;
|
|
722
|
-
}
|
|
723
|
-
block.ranges++, block.args = [];
|
|
724
|
-
continue;
|
|
725
|
-
}
|
|
726
|
-
if (prev.type === "range") {
|
|
727
|
-
siblings.pop();
|
|
728
|
-
let before = siblings[siblings.length - 1];
|
|
729
|
-
before.value += prev.value + value, prev = before, block.ranges--;
|
|
730
|
-
continue;
|
|
731
|
-
}
|
|
732
|
-
push({ type: "dot", value });
|
|
733
|
-
continue;
|
|
734
|
-
}
|
|
735
|
-
push({ type: "text", value });
|
|
736
|
-
}
|
|
737
|
-
do
|
|
738
|
-
if (block = stack.pop(), block.type !== "root") {
|
|
739
|
-
block.nodes.forEach((node) => {
|
|
740
|
-
node.nodes || (node.type === "open" && (node.isOpen = !0), node.type === "close" && (node.isClose = !0), node.nodes || (node.type = "text"), node.invalid = !0);
|
|
741
|
-
});
|
|
742
|
-
let parent = stack[stack.length - 1], index2 = parent.nodes.indexOf(block);
|
|
743
|
-
parent.nodes.splice(index2, 1, ...block.nodes);
|
|
744
|
-
}
|
|
745
|
-
while (stack.length > 0);
|
|
746
|
-
return push({ type: "eos" }), ast;
|
|
747
|
-
};
|
|
748
|
-
module.exports = parse;
|
|
749
|
-
}
|
|
750
|
-
});
|
|
751
|
-
|
|
752
|
-
// ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js
|
|
753
|
-
var require_braces = __commonJS({
|
|
754
|
-
"../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js"(exports, module) {
|
|
755
|
-
"use strict";
|
|
756
|
-
init_cjs_shims();
|
|
757
|
-
var stringify = require_stringify(), compile = require_compile(), expand = require_expand(), parse = require_parse(), braces = (input, options = {}) => {
|
|
758
|
-
let output = [];
|
|
759
|
-
if (Array.isArray(input))
|
|
760
|
-
for (let pattern of input) {
|
|
761
|
-
let result = braces.create(pattern, options);
|
|
762
|
-
Array.isArray(result) ? output.push(...result) : output.push(result);
|
|
763
|
-
}
|
|
764
|
-
else
|
|
765
|
-
output = [].concat(braces.create(input, options));
|
|
766
|
-
return options && options.expand === !0 && options.nodupes === !0 && (output = [...new Set(output)]), output;
|
|
767
|
-
};
|
|
768
|
-
braces.parse = (input, options = {}) => parse(input, options);
|
|
769
|
-
braces.stringify = (input, options = {}) => stringify(typeof input == "string" ? braces.parse(input, options) : input, options);
|
|
770
|
-
braces.compile = (input, options = {}) => (typeof input == "string" && (input = braces.parse(input, options)), compile(input, options));
|
|
771
|
-
braces.expand = (input, options = {}) => {
|
|
772
|
-
typeof input == "string" && (input = braces.parse(input, options));
|
|
773
|
-
let result = expand(input, options);
|
|
774
|
-
return options.noempty === !0 && (result = result.filter(Boolean)), options.nodupes === !0 && (result = [...new Set(result)]), result;
|
|
775
|
-
};
|
|
776
|
-
braces.create = (input, options = {}) => input === "" || input.length < 3 ? [input] : options.expand !== !0 ? braces.compile(input, options) : braces.expand(input, options);
|
|
777
|
-
module.exports = braces;
|
|
778
|
-
}
|
|
779
|
-
});
|
|
780
|
-
|
|
781
97
|
// ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
782
|
-
var
|
|
98
|
+
var require_constants = __commonJS({
|
|
783
99
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
784
100
|
"use strict";
|
|
785
101
|
init_cjs_shims();
|
|
@@ -957,7 +273,7 @@ var require_constants2 = __commonJS({
|
|
|
957
273
|
});
|
|
958
274
|
|
|
959
275
|
// ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
960
|
-
var
|
|
276
|
+
var require_utils = __commonJS({
|
|
961
277
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
962
278
|
"use strict";
|
|
963
279
|
init_cjs_shims();
|
|
@@ -966,7 +282,7 @@ var require_utils2 = __commonJS({
|
|
|
966
282
|
REGEX_REMOVE_BACKSLASH,
|
|
967
283
|
REGEX_SPECIAL_CHARS,
|
|
968
284
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
969
|
-
} =
|
|
285
|
+
} = require_constants();
|
|
970
286
|
exports.isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val);
|
|
971
287
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
972
288
|
exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
|
|
@@ -998,7 +314,7 @@ var require_scan = __commonJS({
|
|
|
998
314
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
999
315
|
"use strict";
|
|
1000
316
|
init_cjs_shims();
|
|
1001
|
-
var utils =
|
|
317
|
+
var utils = require_utils(), {
|
|
1002
318
|
CHAR_ASTERISK,
|
|
1003
319
|
/* * */
|
|
1004
320
|
CHAR_AT,
|
|
@@ -1029,7 +345,7 @@ var require_scan = __commonJS({
|
|
|
1029
345
|
/* ) */
|
|
1030
346
|
CHAR_RIGHT_SQUARE_BRACKET
|
|
1031
347
|
/* ] */
|
|
1032
|
-
} =
|
|
348
|
+
} = require_constants(), isPathSeparator = (code) => code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH, depth = (token) => {
|
|
1033
349
|
token.isPrefix !== !0 && (token.depth = token.isGlobstar ? 1 / 0 : 1);
|
|
1034
350
|
}, scan = (input, options) => {
|
|
1035
351
|
let opts = options || {}, length = input.length - 1, scanToEnd = opts.parts === !0 || opts.scanToEnd === !0, slashes = [], tokens = [], parts = [], str = input, index = -1, start = 0, lastIndex = 0, isBrace = !1, isBracket = !1, isGlob = !1, isExtglob = !1, isGlobstar = !1, braceEscaped = !1, backslashes = !1, negated = !1, negatedExtglob = !1, finished = !1, braces = 0, prev, code, token = { value: "", depth: 0, isGlob: !1 }, eos = () => index >= length, peek = () => str.charCodeAt(index + 1), advance = () => (prev = code, str.charCodeAt(++index));
|
|
@@ -1182,11 +498,11 @@ var require_scan = __commonJS({
|
|
|
1182
498
|
});
|
|
1183
499
|
|
|
1184
500
|
// ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
1185
|
-
var
|
|
501
|
+
var require_parse = __commonJS({
|
|
1186
502
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
1187
503
|
"use strict";
|
|
1188
504
|
init_cjs_shims();
|
|
1189
|
-
var constants =
|
|
505
|
+
var constants = require_constants(), utils = require_utils(), {
|
|
1190
506
|
MAX_LENGTH,
|
|
1191
507
|
POSIX_REGEX_SOURCE,
|
|
1192
508
|
REGEX_NON_SPECIAL_CHARS,
|
|
@@ -1636,7 +952,7 @@ var require_picomatch = __commonJS({
|
|
|
1636
952
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
1637
953
|
"use strict";
|
|
1638
954
|
init_cjs_shims();
|
|
1639
|
-
var path = __require("path"), scan = require_scan(), parse =
|
|
955
|
+
var path = __require("path"), scan = require_scan(), parse = require_parse(), utils = require_utils(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
|
|
1640
956
|
if (Array.isArray(glob)) {
|
|
1641
957
|
let fns = glob.map((input) => picomatch(input, options, returnState));
|
|
1642
958
|
return (str) => {
|
|
@@ -1714,11 +1030,142 @@ var require_picomatch2 = __commonJS({
|
|
|
1714
1030
|
}
|
|
1715
1031
|
});
|
|
1716
1032
|
|
|
1033
|
+
// ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
1034
|
+
var require_is_number = __commonJS({
|
|
1035
|
+
"../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
|
|
1036
|
+
"use strict";
|
|
1037
|
+
init_cjs_shims();
|
|
1038
|
+
module.exports = function(num) {
|
|
1039
|
+
return typeof num == "number" ? num - num === 0 : typeof num == "string" && num.trim() !== "" ? Number.isFinite ? Number.isFinite(+num) : isFinite(+num) : !1;
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
|
|
1044
|
+
// ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
1045
|
+
var require_to_regex_range = __commonJS({
|
|
1046
|
+
"../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
|
|
1047
|
+
"use strict";
|
|
1048
|
+
init_cjs_shims();
|
|
1049
|
+
var isNumber = require_is_number(), toRegexRange = (min, max, options) => {
|
|
1050
|
+
if (isNumber(min) === !1)
|
|
1051
|
+
throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
1052
|
+
if (max === void 0 || min === max)
|
|
1053
|
+
return String(min);
|
|
1054
|
+
if (isNumber(max) === !1)
|
|
1055
|
+
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
1056
|
+
let opts = { relaxZeros: !0, ...options };
|
|
1057
|
+
typeof opts.strictZeros == "boolean" && (opts.relaxZeros = opts.strictZeros === !1);
|
|
1058
|
+
let relax = String(opts.relaxZeros), shorthand = String(opts.shorthand), capture = String(opts.capture), wrap = String(opts.wrap), cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
|
|
1059
|
+
if (toRegexRange.cache.hasOwnProperty(cacheKey))
|
|
1060
|
+
return toRegexRange.cache[cacheKey].result;
|
|
1061
|
+
let a = Math.min(min, max), b = Math.max(min, max);
|
|
1062
|
+
if (Math.abs(a - b) === 1) {
|
|
1063
|
+
let result = min + "|" + max;
|
|
1064
|
+
return opts.capture ? `(${result})` : opts.wrap === !1 ? result : `(?:${result})`;
|
|
1065
|
+
}
|
|
1066
|
+
let isPadded = hasPadding(min) || hasPadding(max), state = { min, max, a, b }, positives = [], negatives = [];
|
|
1067
|
+
if (isPadded && (state.isPadded = isPadded, state.maxLen = String(state.max).length), a < 0) {
|
|
1068
|
+
let newMin = b < 0 ? Math.abs(b) : 1;
|
|
1069
|
+
negatives = splitToPatterns(newMin, Math.abs(a), state, opts), a = state.a = 0;
|
|
1070
|
+
}
|
|
1071
|
+
return b >= 0 && (positives = splitToPatterns(a, b, state, opts)), state.negatives = negatives, state.positives = positives, state.result = collatePatterns(negatives, positives, opts), opts.capture === !0 ? state.result = `(${state.result})` : opts.wrap !== !1 && positives.length + negatives.length > 1 && (state.result = `(?:${state.result})`), toRegexRange.cache[cacheKey] = state, state.result;
|
|
1072
|
+
};
|
|
1073
|
+
function collatePatterns(neg, pos, options) {
|
|
1074
|
+
let onlyNegative = filterPatterns(neg, pos, "-", !1, options) || [], onlyPositive = filterPatterns(pos, neg, "", !1, options) || [], intersected = filterPatterns(neg, pos, "-?", !0, options) || [];
|
|
1075
|
+
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
1076
|
+
}
|
|
1077
|
+
function splitToRanges(min, max) {
|
|
1078
|
+
let nines = 1, zeros = 1, stop = countNines(min, nines), stops = /* @__PURE__ */ new Set([max]);
|
|
1079
|
+
for (; min <= stop && stop <= max; )
|
|
1080
|
+
stops.add(stop), nines += 1, stop = countNines(min, nines);
|
|
1081
|
+
for (stop = countZeros(max + 1, zeros) - 1; min < stop && stop <= max; )
|
|
1082
|
+
stops.add(stop), zeros += 1, stop = countZeros(max + 1, zeros) - 1;
|
|
1083
|
+
return stops = [...stops], stops.sort(compare), stops;
|
|
1084
|
+
}
|
|
1085
|
+
function rangeToPattern(start, stop, options) {
|
|
1086
|
+
if (start === stop)
|
|
1087
|
+
return { pattern: start, count: [], digits: 0 };
|
|
1088
|
+
let zipped = zip(start, stop), digits = zipped.length, pattern = "", count = 0;
|
|
1089
|
+
for (let i = 0; i < digits; i++) {
|
|
1090
|
+
let [startDigit, stopDigit] = zipped[i];
|
|
1091
|
+
startDigit === stopDigit ? pattern += startDigit : startDigit !== "0" || stopDigit !== "9" ? pattern += toCharacterClass(startDigit, stopDigit, options) : count++;
|
|
1092
|
+
}
|
|
1093
|
+
return count && (pattern += options.shorthand === !0 ? "\\d" : "[0-9]"), { pattern, count: [count], digits };
|
|
1094
|
+
}
|
|
1095
|
+
function splitToPatterns(min, max, tok, options) {
|
|
1096
|
+
let ranges = splitToRanges(min, max), tokens = [], start = min, prev;
|
|
1097
|
+
for (let i = 0; i < ranges.length; i++) {
|
|
1098
|
+
let max2 = ranges[i], obj = rangeToPattern(String(start), String(max2), options), zeros = "";
|
|
1099
|
+
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
1100
|
+
prev.count.length > 1 && prev.count.pop(), prev.count.push(obj.count[0]), prev.string = prev.pattern + toQuantifier(prev.count), start = max2 + 1;
|
|
1101
|
+
continue;
|
|
1102
|
+
}
|
|
1103
|
+
tok.isPadded && (zeros = padZeros(max2, tok, options)), obj.string = zeros + obj.pattern + toQuantifier(obj.count), tokens.push(obj), start = max2 + 1, prev = obj;
|
|
1104
|
+
}
|
|
1105
|
+
return tokens;
|
|
1106
|
+
}
|
|
1107
|
+
function filterPatterns(arr, comparison, prefix, intersection, options) {
|
|
1108
|
+
let result = [];
|
|
1109
|
+
for (let ele of arr) {
|
|
1110
|
+
let { string } = ele;
|
|
1111
|
+
!intersection && !contains(comparison, "string", string) && result.push(prefix + string), intersection && contains(comparison, "string", string) && result.push(prefix + string);
|
|
1112
|
+
}
|
|
1113
|
+
return result;
|
|
1114
|
+
}
|
|
1115
|
+
function zip(a, b) {
|
|
1116
|
+
let arr = [];
|
|
1117
|
+
for (let i = 0; i < a.length; i++)
|
|
1118
|
+
arr.push([a[i], b[i]]);
|
|
1119
|
+
return arr;
|
|
1120
|
+
}
|
|
1121
|
+
function compare(a, b) {
|
|
1122
|
+
return a > b ? 1 : b > a ? -1 : 0;
|
|
1123
|
+
}
|
|
1124
|
+
function contains(arr, key, val) {
|
|
1125
|
+
return arr.some((ele) => ele[key] === val);
|
|
1126
|
+
}
|
|
1127
|
+
function countNines(min, len) {
|
|
1128
|
+
return Number(String(min).slice(0, -len) + "9".repeat(len));
|
|
1129
|
+
}
|
|
1130
|
+
function countZeros(integer, zeros) {
|
|
1131
|
+
return integer - integer % Math.pow(10, zeros);
|
|
1132
|
+
}
|
|
1133
|
+
function toQuantifier(digits) {
|
|
1134
|
+
let [start = 0, stop = ""] = digits;
|
|
1135
|
+
return stop || start > 1 ? `{${start + (stop ? "," + stop : "")}}` : "";
|
|
1136
|
+
}
|
|
1137
|
+
function toCharacterClass(a, b, options) {
|
|
1138
|
+
return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
|
|
1139
|
+
}
|
|
1140
|
+
function hasPadding(str) {
|
|
1141
|
+
return /^-?(0+)\d/.test(str);
|
|
1142
|
+
}
|
|
1143
|
+
function padZeros(value, tok, options) {
|
|
1144
|
+
if (!tok.isPadded)
|
|
1145
|
+
return value;
|
|
1146
|
+
let diff = Math.abs(tok.maxLen - String(value).length), relax = options.relaxZeros !== !1;
|
|
1147
|
+
switch (diff) {
|
|
1148
|
+
case 0:
|
|
1149
|
+
return "";
|
|
1150
|
+
case 1:
|
|
1151
|
+
return relax ? "0?" : "0";
|
|
1152
|
+
case 2:
|
|
1153
|
+
return relax ? "0{0,2}" : "00";
|
|
1154
|
+
default:
|
|
1155
|
+
return relax ? `0{0,${diff}}` : `0{${diff}}`;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
toRegexRange.cache = {};
|
|
1159
|
+
toRegexRange.clearCache = () => toRegexRange.cache = {};
|
|
1160
|
+
module.exports = toRegexRange;
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
|
|
1717
1164
|
export {
|
|
1718
1165
|
require_is_glob,
|
|
1719
1166
|
require_glob_parent,
|
|
1720
|
-
|
|
1721
|
-
|
|
1167
|
+
require_to_regex_range,
|
|
1168
|
+
require_utils,
|
|
1722
1169
|
require_picomatch2 as require_picomatch
|
|
1723
1170
|
};
|
|
1724
1171
|
/*! Bundled license information:
|
|
@@ -1754,13 +1201,5 @@ to-regex-range/index.js:
|
|
|
1754
1201
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
1755
1202
|
* Released under the MIT License.
|
|
1756
1203
|
*)
|
|
1757
|
-
|
|
1758
|
-
fill-range/index.js:
|
|
1759
|
-
(*!
|
|
1760
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
1761
|
-
*
|
|
1762
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
1763
|
-
* Licensed under the MIT License.
|
|
1764
|
-
*)
|
|
1765
1204
|
*/
|
|
1766
|
-
//# sourceMappingURL=chunk-
|
|
1205
|
+
//# sourceMappingURL=chunk-NB4NLOEJ.js.map
|