@wix/cli-app 1.1.81 → 1.1.82

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 (89) hide show
  1. package/build/{AddPermissionCommand-SFC44F4N.js → AddPermissionCommand-SXPAYSAF.js} +2 -2
  2. package/build/{CreateVersionCommand-DMS7UHEW.js → CreateVersionCommand-CL7JTSHV.js} +3 -3
  3. package/build/{DevCommand-IMACMU76.js → DevCommand-NKKM4UEH.js} +14 -14
  4. package/build/{GenerateCommand-BXBYWPR6.js → GenerateCommand-EK35R76L.js} +1009 -868
  5. package/build/GenerateCommand-EK35R76L.js.map +1 -0
  6. package/build/{LogsCommand-DXPP2Y63.js → LogsCommand-NCV5AKYF.js} +3 -3
  7. package/build/PreviewCommand-KCCZ4ECQ.js +20 -0
  8. package/build/ReleaseCommand-FJKPKE3Y.js +29 -0
  9. package/build/{ServeCommand-2ESXE2E2.js → ServeCommand-B4GJL65A.js} +13 -13
  10. package/build/{build-5B2A76I7.js → build-VSYNDSED.js} +8 -8
  11. package/build/{chunk-R3BD56LW.js → chunk-3GSDI3OJ.js} +2 -2
  12. package/build/{chunk-D7ONS7OD.js → chunk-3LJH5WAS.js} +5 -5
  13. package/build/{chunk-LNBDMMJU.js → chunk-5LGI6O3F.js} +2 -2
  14. package/build/{chunk-ZVADFZDF.js → chunk-75BL4FR5.js} +5 -5
  15. package/build/{chunk-32DDGTGH.js → chunk-FGCBIHDS.js} +7 -7
  16. package/build/{chunk-RZHKF2FT.js → chunk-FTEVVMFS.js} +2 -2
  17. package/build/{chunk-2Y6DEXNR.js → chunk-GGQMSU4O.js} +759 -516
  18. package/build/{chunk-2Y6DEXNR.js.map → chunk-GGQMSU4O.js.map} +1 -1
  19. package/build/{chunk-PJJ6F4A3.js → chunk-HR6CTO67.js} +2 -2
  20. package/build/{chunk-42T5NHSS.js → chunk-I2PLZT4A.js} +2 -2
  21. package/build/{chunk-CYJERK24.js → chunk-IB2KM2Q7.js} +7 -7
  22. package/build/{chunk-CYJERK24.js.map → chunk-IB2KM2Q7.js.map} +1 -1
  23. package/build/{chunk-GCHPKOS2.js → chunk-K4IODCQP.js} +11 -3
  24. package/build/{chunk-GCHPKOS2.js.map → chunk-K4IODCQP.js.map} +1 -1
  25. package/build/{chunk-3BX4VLQC.js → chunk-KU4PN6UU.js} +3 -3
  26. package/build/{chunk-JYPZQDKR.js → chunk-OGO22IKX.js} +3 -3
  27. package/build/{chunk-DBASREIW.js → chunk-PGKXOCZN.js} +1079 -458
  28. package/build/chunk-PGKXOCZN.js.map +1 -0
  29. package/build/{chunk-3FL4P2SD.js → chunk-PS7R6MWD.js} +3 -3
  30. package/build/{chunk-S426UONM.js → chunk-QSLRE7OK.js} +2 -2
  31. package/build/{chunk-6GF7ZOLW.js → chunk-VARU4VGB.js} +9 -9
  32. package/build/{chunk-VV2OOBF3.js → chunk-WBXDIEUS.js} +2 -2
  33. package/build/{chunk-OPFPQV74.js → chunk-XDWVTYW3.js} +61 -4
  34. package/build/{chunk-OPFPQV74.js.map → chunk-XDWVTYW3.js.map} +1 -1
  35. package/build/cloudflare-runtime/entry.js +34 -10
  36. package/build/cloudflare-runtime/getRegisteredExtensions.js +34 -10
  37. package/build/index.js +26 -26
  38. package/build/platform-sdk/chunk-3WHQP2RD.js +2 -0
  39. package/build/platform-sdk/chunk-3WHQP2RD.js.map +1 -0
  40. package/build/platform-sdk/chunk-42XIZ4MH.js +2 -0
  41. package/build/platform-sdk/chunk-42XIZ4MH.js.map +1 -0
  42. package/build/platform-sdk/chunk-MQEY2AKT.js +2 -0
  43. package/build/platform-sdk/chunk-MQEY2AKT.js.map +1 -0
  44. package/build/platform-sdk/dashboard.js +1 -1
  45. package/build/platform-sdk/editor.js +1 -1
  46. package/build/platform-sdk/sdk-context.js +1 -1
  47. package/build/platform-sdk/sdk-context.js.map +1 -1
  48. package/build/platform-sdk/site.js +1 -1
  49. package/build/{preview-XTPTMI6C.js → preview-CLBQELU3.js} +14 -14
  50. package/build/{release-MNTPIKSG.js → release-VZ2GWJE2.js} +16 -16
  51. package/build/{render-command-HQXTOVW5.js → render-command-OT7HQRPA.js} +6 -6
  52. package/build/src-MHMTXBSY.js +1120 -0
  53. package/build/src-MHMTXBSY.js.map +1 -0
  54. package/package.json +8 -7
  55. package/build/GenerateCommand-BXBYWPR6.js.map +0 -1
  56. package/build/PreviewCommand-IKMUVCVS.js +0 -20
  57. package/build/ReleaseCommand-ZZFTWS7J.js +0 -29
  58. package/build/chunk-DBASREIW.js.map +0 -1
  59. package/build/platform-sdk/chunk-6NLQHDP6.js +0 -2
  60. package/build/platform-sdk/chunk-6NLQHDP6.js.map +0 -1
  61. package/build/platform-sdk/chunk-BGEA2LRQ.js +0 -2
  62. package/build/platform-sdk/chunk-BGEA2LRQ.js.map +0 -1
  63. package/build/platform-sdk/chunk-BGTZ3RNN.js +0 -2
  64. package/build/platform-sdk/chunk-BGTZ3RNN.js.map +0 -1
  65. /package/build/{AddPermissionCommand-SFC44F4N.js.map → AddPermissionCommand-SXPAYSAF.js.map} +0 -0
  66. /package/build/{CreateVersionCommand-DMS7UHEW.js.map → CreateVersionCommand-CL7JTSHV.js.map} +0 -0
  67. /package/build/{DevCommand-IMACMU76.js.map → DevCommand-NKKM4UEH.js.map} +0 -0
  68. /package/build/{LogsCommand-DXPP2Y63.js.map → LogsCommand-NCV5AKYF.js.map} +0 -0
  69. /package/build/{PreviewCommand-IKMUVCVS.js.map → PreviewCommand-KCCZ4ECQ.js.map} +0 -0
  70. /package/build/{ReleaseCommand-ZZFTWS7J.js.map → ReleaseCommand-FJKPKE3Y.js.map} +0 -0
  71. /package/build/{ServeCommand-2ESXE2E2.js.map → ServeCommand-B4GJL65A.js.map} +0 -0
  72. /package/build/{build-5B2A76I7.js.map → build-VSYNDSED.js.map} +0 -0
  73. /package/build/{chunk-R3BD56LW.js.map → chunk-3GSDI3OJ.js.map} +0 -0
  74. /package/build/{chunk-D7ONS7OD.js.map → chunk-3LJH5WAS.js.map} +0 -0
  75. /package/build/{chunk-LNBDMMJU.js.map → chunk-5LGI6O3F.js.map} +0 -0
  76. /package/build/{chunk-ZVADFZDF.js.map → chunk-75BL4FR5.js.map} +0 -0
  77. /package/build/{chunk-32DDGTGH.js.map → chunk-FGCBIHDS.js.map} +0 -0
  78. /package/build/{chunk-RZHKF2FT.js.map → chunk-FTEVVMFS.js.map} +0 -0
  79. /package/build/{chunk-PJJ6F4A3.js.map → chunk-HR6CTO67.js.map} +0 -0
  80. /package/build/{chunk-42T5NHSS.js.map → chunk-I2PLZT4A.js.map} +0 -0
  81. /package/build/{chunk-3BX4VLQC.js.map → chunk-KU4PN6UU.js.map} +0 -0
  82. /package/build/{chunk-JYPZQDKR.js.map → chunk-OGO22IKX.js.map} +0 -0
  83. /package/build/{chunk-3FL4P2SD.js.map → chunk-PS7R6MWD.js.map} +0 -0
  84. /package/build/{chunk-S426UONM.js.map → chunk-QSLRE7OK.js.map} +0 -0
  85. /package/build/{chunk-6GF7ZOLW.js.map → chunk-VARU4VGB.js.map} +0 -0
  86. /package/build/{chunk-VV2OOBF3.js.map → chunk-WBXDIEUS.js.map} +0 -0
  87. /package/build/{preview-XTPTMI6C.js.map → preview-CLBQELU3.js.map} +0 -0
  88. /package/build/{release-MNTPIKSG.js.map → release-VZ2GWJE2.js.map} +0 -0
  89. /package/build/{render-command-HQXTOVW5.js.map → render-command-OT7HQRPA.js.map} +0 -0
@@ -3,7 +3,7 @@ const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  getBackendEventSlug,
5
5
  require_baseUniq
6
- } from "./chunk-OPFPQV74.js";
6
+ } from "./chunk-XDWVTYW3.js";
7
7
  import {
8
8
  BLOCKS_WIDGETS_PANELS_PATTERN,
9
9
  BLOCKS_WIDGETS_PATTERN,
@@ -50,6 +50,7 @@ import {
50
50
  require_build,
51
51
  require_lib,
52
52
  require_picomatch,
53
+ require_src,
53
54
  virtualBlocksWidgetPanelScriptAssets,
54
55
  virtualBlocksWidgetScriptAssets,
55
56
  virtualCustomElementPanelHTMLAssets,
@@ -64,7 +65,7 @@ import {
64
65
  virtualPathForCustomElementPanelHTMLAsset,
65
66
  virtualPathForHTMLAsset,
66
67
  z
67
- } from "./chunk-2Y6DEXNR.js";
68
+ } from "./chunk-GGQMSU4O.js";
68
69
  import {
69
70
  __commonJS,
70
71
  __esm,
@@ -75,6 +76,233 @@ import {
75
76
  init_esm_shims
76
77
  } from "./chunk-PYIAC2GK.js";
77
78
 
79
+ // ../../node_modules/globrex/index.js
80
+ var require_globrex = __commonJS({
81
+ "../../node_modules/globrex/index.js"(exports, module) {
82
+ "use strict";
83
+ init_esm_shims();
84
+ var isWin = process.platform === "win32";
85
+ var SEP = isWin ? `\\\\+` : `\\/`;
86
+ var SEP_ESC = isWin ? `\\\\` : `/`;
87
+ var GLOBSTAR2 = `((?:[^/]*(?:/|$))*)`;
88
+ var WILDCARD = `([^/]*)`;
89
+ var GLOBSTAR_SEGMENT = `((?:[^${SEP_ESC}]*(?:${SEP_ESC}|$))*)`;
90
+ var WILDCARD_SEGMENT = `([^${SEP_ESC}]*)`;
91
+ function globrex(glob, { extended = false, globstar = false, strict = false, filepath = false, flags = "" } = {}) {
92
+ let regex = "";
93
+ let segment = "";
94
+ let path9 = { regex: "", segments: [] };
95
+ let inGroup = false;
96
+ let inRange = false;
97
+ const ext2 = [];
98
+ function add2(str, { split: split2, last, only } = {}) {
99
+ if (only !== "path") regex += str;
100
+ if (filepath && only !== "regex") {
101
+ path9.regex += str === "\\/" ? SEP : str;
102
+ if (split2) {
103
+ if (last) segment += str;
104
+ if (segment !== "") {
105
+ if (!flags.includes("g")) segment = `^${segment}$`;
106
+ path9.segments.push(new RegExp(segment, flags));
107
+ }
108
+ segment = "";
109
+ } else {
110
+ segment += str;
111
+ }
112
+ }
113
+ }
114
+ let c, n3;
115
+ for (let i = 0; i < glob.length; i++) {
116
+ c = glob[i];
117
+ n3 = glob[i + 1];
118
+ if (["\\", "$", "^", ".", "="].includes(c)) {
119
+ add2(`\\${c}`);
120
+ continue;
121
+ }
122
+ if (c === "/") {
123
+ add2(`\\${c}`, { split: true });
124
+ if (n3 === "/" && !strict) regex += "?";
125
+ continue;
126
+ }
127
+ if (c === "(") {
128
+ if (ext2.length) {
129
+ add2(c);
130
+ continue;
131
+ }
132
+ add2(`\\${c}`);
133
+ continue;
134
+ }
135
+ if (c === ")") {
136
+ if (ext2.length) {
137
+ add2(c);
138
+ let type = ext2.pop();
139
+ if (type === "@") {
140
+ add2("{1}");
141
+ } else if (type === "!") {
142
+ add2("([^/]*)");
143
+ } else {
144
+ add2(type);
145
+ }
146
+ continue;
147
+ }
148
+ add2(`\\${c}`);
149
+ continue;
150
+ }
151
+ if (c === "|") {
152
+ if (ext2.length) {
153
+ add2(c);
154
+ continue;
155
+ }
156
+ add2(`\\${c}`);
157
+ continue;
158
+ }
159
+ if (c === "+") {
160
+ if (n3 === "(" && extended) {
161
+ ext2.push(c);
162
+ continue;
163
+ }
164
+ add2(`\\${c}`);
165
+ continue;
166
+ }
167
+ if (c === "@" && extended) {
168
+ if (n3 === "(") {
169
+ ext2.push(c);
170
+ continue;
171
+ }
172
+ }
173
+ if (c === "!") {
174
+ if (extended) {
175
+ if (inRange) {
176
+ add2("^");
177
+ continue;
178
+ }
179
+ if (n3 === "(") {
180
+ ext2.push(c);
181
+ add2("(?!");
182
+ i++;
183
+ continue;
184
+ }
185
+ add2(`\\${c}`);
186
+ continue;
187
+ }
188
+ add2(`\\${c}`);
189
+ continue;
190
+ }
191
+ if (c === "?") {
192
+ if (extended) {
193
+ if (n3 === "(") {
194
+ ext2.push(c);
195
+ } else {
196
+ add2(".");
197
+ }
198
+ continue;
199
+ }
200
+ add2(`\\${c}`);
201
+ continue;
202
+ }
203
+ if (c === "[") {
204
+ if (inRange && n3 === ":") {
205
+ i++;
206
+ let value = "";
207
+ while (glob[++i] !== ":") value += glob[i];
208
+ if (value === "alnum") add2("(\\w|\\d)");
209
+ else if (value === "space") add2("\\s");
210
+ else if (value === "digit") add2("\\d");
211
+ i++;
212
+ continue;
213
+ }
214
+ if (extended) {
215
+ inRange = true;
216
+ add2(c);
217
+ continue;
218
+ }
219
+ add2(`\\${c}`);
220
+ continue;
221
+ }
222
+ if (c === "]") {
223
+ if (extended) {
224
+ inRange = false;
225
+ add2(c);
226
+ continue;
227
+ }
228
+ add2(`\\${c}`);
229
+ continue;
230
+ }
231
+ if (c === "{") {
232
+ if (extended) {
233
+ inGroup = true;
234
+ add2("(");
235
+ continue;
236
+ }
237
+ add2(`\\${c}`);
238
+ continue;
239
+ }
240
+ if (c === "}") {
241
+ if (extended) {
242
+ inGroup = false;
243
+ add2(")");
244
+ continue;
245
+ }
246
+ add2(`\\${c}`);
247
+ continue;
248
+ }
249
+ if (c === ",") {
250
+ if (inGroup) {
251
+ add2("|");
252
+ continue;
253
+ }
254
+ add2(`\\${c}`);
255
+ continue;
256
+ }
257
+ if (c === "*") {
258
+ if (n3 === "(" && extended) {
259
+ ext2.push(c);
260
+ continue;
261
+ }
262
+ let prevChar = glob[i - 1];
263
+ let starCount = 1;
264
+ while (glob[i + 1] === "*") {
265
+ starCount++;
266
+ i++;
267
+ }
268
+ let nextChar = glob[i + 1];
269
+ if (!globstar) {
270
+ add2(".*");
271
+ } else {
272
+ let isGlobstar = starCount > 1 && // multiple "*"'s
273
+ (prevChar === "/" || prevChar === void 0) && // from the start of the segment
274
+ (nextChar === "/" || nextChar === void 0);
275
+ if (isGlobstar) {
276
+ add2(GLOBSTAR2, { only: "regex" });
277
+ add2(GLOBSTAR_SEGMENT, { only: "path", last: true, split: true });
278
+ i++;
279
+ } else {
280
+ add2(WILDCARD, { only: "regex" });
281
+ add2(WILDCARD_SEGMENT, { only: "path" });
282
+ }
283
+ }
284
+ continue;
285
+ }
286
+ add2(c);
287
+ }
288
+ if (!flags.includes("g")) {
289
+ regex = `^${regex}$`;
290
+ segment = `^${segment}$`;
291
+ if (filepath) path9.regex = `^${path9.regex}$`;
292
+ }
293
+ const result = { regex: new RegExp(regex, flags) };
294
+ if (filepath) {
295
+ path9.segments.push(new RegExp(segment, flags));
296
+ path9.regex = new RegExp(path9.regex, flags);
297
+ path9.globstar = new RegExp(!flags.includes("g") ? `^${GLOBSTAR_SEGMENT}$` : GLOBSTAR_SEGMENT, flags);
298
+ result.path = path9;
299
+ }
300
+ return result;
301
+ }
302
+ module.exports = globrex;
303
+ }
304
+ });
305
+
78
306
  // ../../node_modules/picocolors/picocolors.js
79
307
  var require_picocolors = __commonJS({
80
308
  "../../node_modules/picocolors/picocolors.js"(exports, module) {
@@ -158,11 +386,11 @@ var require_universalify = __commonJS({
158
386
  return Object.defineProperty(function(...args) {
159
387
  if (typeof args[args.length - 1] === "function") fn.apply(this, args);
160
388
  else {
161
- return new Promise((resolve3, reject) => {
389
+ return new Promise((resolve6, reject) => {
162
390
  fn.call(
163
391
  this,
164
392
  ...args,
165
- (err, res) => err != null ? reject(err) : resolve3(res)
393
+ (err, res) => err != null ? reject(err) : resolve6(res)
166
394
  );
167
395
  });
168
396
  }
@@ -186,7 +414,7 @@ var require_polyfills = __commonJS({
186
414
  var constants = __require("constants");
187
415
  var origCwd = process.cwd;
188
416
  var cwd = null;
189
- var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
417
+ var platform2 = process.env.GRACEFUL_FS_PLATFORM || process.platform;
190
418
  process.cwd = function() {
191
419
  if (!cwd)
192
420
  cwd = origCwd.call(process);
@@ -206,54 +434,54 @@ var require_polyfills = __commonJS({
206
434
  }
207
435
  var chdir;
208
436
  module.exports = patch;
209
- function patch(fs2) {
437
+ function patch(fs3) {
210
438
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
211
- patchLchmod(fs2);
212
- }
213
- if (!fs2.lutimes) {
214
- patchLutimes(fs2);
215
- }
216
- fs2.chown = chownFix(fs2.chown);
217
- fs2.fchown = chownFix(fs2.fchown);
218
- fs2.lchown = chownFix(fs2.lchown);
219
- fs2.chmod = chmodFix(fs2.chmod);
220
- fs2.fchmod = chmodFix(fs2.fchmod);
221
- fs2.lchmod = chmodFix(fs2.lchmod);
222
- fs2.chownSync = chownFixSync(fs2.chownSync);
223
- fs2.fchownSync = chownFixSync(fs2.fchownSync);
224
- fs2.lchownSync = chownFixSync(fs2.lchownSync);
225
- fs2.chmodSync = chmodFixSync(fs2.chmodSync);
226
- fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
227
- fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
228
- fs2.stat = statFix(fs2.stat);
229
- fs2.fstat = statFix(fs2.fstat);
230
- fs2.lstat = statFix(fs2.lstat);
231
- fs2.statSync = statFixSync(fs2.statSync);
232
- fs2.fstatSync = statFixSync(fs2.fstatSync);
233
- fs2.lstatSync = statFixSync(fs2.lstatSync);
234
- if (fs2.chmod && !fs2.lchmod) {
235
- fs2.lchmod = function(path8, mode, cb) {
439
+ patchLchmod(fs3);
440
+ }
441
+ if (!fs3.lutimes) {
442
+ patchLutimes(fs3);
443
+ }
444
+ fs3.chown = chownFix(fs3.chown);
445
+ fs3.fchown = chownFix(fs3.fchown);
446
+ fs3.lchown = chownFix(fs3.lchown);
447
+ fs3.chmod = chmodFix(fs3.chmod);
448
+ fs3.fchmod = chmodFix(fs3.fchmod);
449
+ fs3.lchmod = chmodFix(fs3.lchmod);
450
+ fs3.chownSync = chownFixSync(fs3.chownSync);
451
+ fs3.fchownSync = chownFixSync(fs3.fchownSync);
452
+ fs3.lchownSync = chownFixSync(fs3.lchownSync);
453
+ fs3.chmodSync = chmodFixSync(fs3.chmodSync);
454
+ fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
455
+ fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
456
+ fs3.stat = statFix(fs3.stat);
457
+ fs3.fstat = statFix(fs3.fstat);
458
+ fs3.lstat = statFix(fs3.lstat);
459
+ fs3.statSync = statFixSync(fs3.statSync);
460
+ fs3.fstatSync = statFixSync(fs3.fstatSync);
461
+ fs3.lstatSync = statFixSync(fs3.lstatSync);
462
+ if (fs3.chmod && !fs3.lchmod) {
463
+ fs3.lchmod = function(path9, mode, cb) {
236
464
  if (cb) process.nextTick(cb);
237
465
  };
238
- fs2.lchmodSync = function() {
466
+ fs3.lchmodSync = function() {
239
467
  };
240
468
  }
241
- if (fs2.chown && !fs2.lchown) {
242
- fs2.lchown = function(path8, uid, gid, cb) {
469
+ if (fs3.chown && !fs3.lchown) {
470
+ fs3.lchown = function(path9, uid, gid, cb) {
243
471
  if (cb) process.nextTick(cb);
244
472
  };
245
- fs2.lchownSync = function() {
473
+ fs3.lchownSync = function() {
246
474
  };
247
475
  }
248
- if (platform === "win32") {
249
- fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
476
+ if (platform2 === "win32") {
477
+ fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
250
478
  function rename(from, to, cb) {
251
479
  var start = Date.now();
252
480
  var backoff = 0;
253
481
  fs$rename(from, to, function CB(er) {
254
482
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
255
483
  setTimeout(function() {
256
- fs2.stat(to, function(stater, st) {
484
+ fs3.stat(to, function(stater, st) {
257
485
  if (stater && stater.code === "ENOENT")
258
486
  fs$rename(from, to, CB);
259
487
  else
@@ -269,9 +497,9 @@ var require_polyfills = __commonJS({
269
497
  }
270
498
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
271
499
  return rename;
272
- }(fs2.rename);
500
+ }(fs3.rename);
273
501
  }
274
- fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
502
+ fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
275
503
  function read(fd, buffer, offset2, length3, position, callback_) {
276
504
  var callback;
277
505
  if (callback_ && typeof callback_ === "function") {
@@ -279,22 +507,22 @@ var require_polyfills = __commonJS({
279
507
  callback = function(er, _, __) {
280
508
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
281
509
  eagCounter++;
282
- return fs$read.call(fs2, fd, buffer, offset2, length3, position, callback);
510
+ return fs$read.call(fs3, fd, buffer, offset2, length3, position, callback);
283
511
  }
284
512
  callback_.apply(this, arguments);
285
513
  };
286
514
  }
287
- return fs$read.call(fs2, fd, buffer, offset2, length3, position, callback);
515
+ return fs$read.call(fs3, fd, buffer, offset2, length3, position, callback);
288
516
  }
289
517
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
290
518
  return read;
291
- }(fs2.read);
292
- fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : /* @__PURE__ */ function(fs$readSync) {
519
+ }(fs3.read);
520
+ fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
293
521
  return function(fd, buffer, offset2, length3, position) {
294
522
  var eagCounter = 0;
295
523
  while (true) {
296
524
  try {
297
- return fs$readSync.call(fs2, fd, buffer, offset2, length3, position);
525
+ return fs$readSync.call(fs3, fd, buffer, offset2, length3, position);
298
526
  } catch (er) {
299
527
  if (er.code === "EAGAIN" && eagCounter < 10) {
300
528
  eagCounter++;
@@ -304,11 +532,11 @@ var require_polyfills = __commonJS({
304
532
  }
305
533
  }
306
534
  };
307
- }(fs2.readSync);
308
- function patchLchmod(fs3) {
309
- fs3.lchmod = function(path8, mode, callback) {
310
- fs3.open(
311
- path8,
535
+ }(fs3.readSync);
536
+ function patchLchmod(fs4) {
537
+ fs4.lchmod = function(path9, mode, callback) {
538
+ fs4.open(
539
+ path9,
312
540
  constants.O_WRONLY | constants.O_SYMLINK,
313
541
  mode,
314
542
  function(err, fd) {
@@ -316,80 +544,80 @@ var require_polyfills = __commonJS({
316
544
  if (callback) callback(err);
317
545
  return;
318
546
  }
319
- fs3.fchmod(fd, mode, function(err2) {
320
- fs3.close(fd, function(err22) {
547
+ fs4.fchmod(fd, mode, function(err2) {
548
+ fs4.close(fd, function(err22) {
321
549
  if (callback) callback(err2 || err22);
322
550
  });
323
551
  });
324
552
  }
325
553
  );
326
554
  };
327
- fs3.lchmodSync = function(path8, mode) {
328
- var fd = fs3.openSync(path8, constants.O_WRONLY | constants.O_SYMLINK, mode);
555
+ fs4.lchmodSync = function(path9, mode) {
556
+ var fd = fs4.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
329
557
  var threw = true;
330
558
  var ret;
331
559
  try {
332
- ret = fs3.fchmodSync(fd, mode);
560
+ ret = fs4.fchmodSync(fd, mode);
333
561
  threw = false;
334
562
  } finally {
335
563
  if (threw) {
336
564
  try {
337
- fs3.closeSync(fd);
565
+ fs4.closeSync(fd);
338
566
  } catch (er) {
339
567
  }
340
568
  } else {
341
- fs3.closeSync(fd);
569
+ fs4.closeSync(fd);
342
570
  }
343
571
  }
344
572
  return ret;
345
573
  };
346
574
  }
347
- function patchLutimes(fs3) {
348
- if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
349
- fs3.lutimes = function(path8, at2, mt, cb) {
350
- fs3.open(path8, constants.O_SYMLINK, function(er, fd) {
575
+ function patchLutimes(fs4) {
576
+ if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
577
+ fs4.lutimes = function(path9, at2, mt, cb) {
578
+ fs4.open(path9, constants.O_SYMLINK, function(er, fd) {
351
579
  if (er) {
352
580
  if (cb) cb(er);
353
581
  return;
354
582
  }
355
- fs3.futimes(fd, at2, mt, function(er2) {
356
- fs3.close(fd, function(er22) {
583
+ fs4.futimes(fd, at2, mt, function(er2) {
584
+ fs4.close(fd, function(er22) {
357
585
  if (cb) cb(er2 || er22);
358
586
  });
359
587
  });
360
588
  });
361
589
  };
362
- fs3.lutimesSync = function(path8, at2, mt) {
363
- var fd = fs3.openSync(path8, constants.O_SYMLINK);
590
+ fs4.lutimesSync = function(path9, at2, mt) {
591
+ var fd = fs4.openSync(path9, constants.O_SYMLINK);
364
592
  var ret;
365
593
  var threw = true;
366
594
  try {
367
- ret = fs3.futimesSync(fd, at2, mt);
595
+ ret = fs4.futimesSync(fd, at2, mt);
368
596
  threw = false;
369
597
  } finally {
370
598
  if (threw) {
371
599
  try {
372
- fs3.closeSync(fd);
600
+ fs4.closeSync(fd);
373
601
  } catch (er) {
374
602
  }
375
603
  } else {
376
- fs3.closeSync(fd);
604
+ fs4.closeSync(fd);
377
605
  }
378
606
  }
379
607
  return ret;
380
608
  };
381
- } else if (fs3.futimes) {
382
- fs3.lutimes = function(_a, _b, _c, cb) {
609
+ } else if (fs4.futimes) {
610
+ fs4.lutimes = function(_a, _b, _c, cb) {
383
611
  if (cb) process.nextTick(cb);
384
612
  };
385
- fs3.lutimesSync = function() {
613
+ fs4.lutimesSync = function() {
386
614
  };
387
615
  }
388
616
  }
389
617
  function chmodFix(orig) {
390
618
  if (!orig) return orig;
391
619
  return function(target, mode, cb) {
392
- return orig.call(fs2, target, mode, function(er) {
620
+ return orig.call(fs3, target, mode, function(er) {
393
621
  if (chownErOk(er)) er = null;
394
622
  if (cb) cb.apply(this, arguments);
395
623
  });
@@ -399,7 +627,7 @@ var require_polyfills = __commonJS({
399
627
  if (!orig) return orig;
400
628
  return function(target, mode) {
401
629
  try {
402
- return orig.call(fs2, target, mode);
630
+ return orig.call(fs3, target, mode);
403
631
  } catch (er) {
404
632
  if (!chownErOk(er)) throw er;
405
633
  }
@@ -408,7 +636,7 @@ var require_polyfills = __commonJS({
408
636
  function chownFix(orig) {
409
637
  if (!orig) return orig;
410
638
  return function(target, uid, gid, cb) {
411
- return orig.call(fs2, target, uid, gid, function(er) {
639
+ return orig.call(fs3, target, uid, gid, function(er) {
412
640
  if (chownErOk(er)) er = null;
413
641
  if (cb) cb.apply(this, arguments);
414
642
  });
@@ -418,7 +646,7 @@ var require_polyfills = __commonJS({
418
646
  if (!orig) return orig;
419
647
  return function(target, uid, gid) {
420
648
  try {
421
- return orig.call(fs2, target, uid, gid);
649
+ return orig.call(fs3, target, uid, gid);
422
650
  } catch (er) {
423
651
  if (!chownErOk(er)) throw er;
424
652
  }
@@ -438,13 +666,13 @@ var require_polyfills = __commonJS({
438
666
  }
439
667
  if (cb) cb.apply(this, arguments);
440
668
  }
441
- return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
669
+ return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
442
670
  };
443
671
  }
444
672
  function statFixSync(orig) {
445
673
  if (!orig) return orig;
446
674
  return function(target, options) {
447
- var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
675
+ var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
448
676
  if (stats) {
449
677
  if (stats.uid < 0) stats.uid += 4294967296;
450
678
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -475,16 +703,16 @@ var require_legacy_streams = __commonJS({
475
703
  init_esm_shims();
476
704
  var Stream = __require("stream").Stream;
477
705
  module.exports = legacy;
478
- function legacy(fs2) {
706
+ function legacy(fs3) {
479
707
  return {
480
708
  ReadStream,
481
709
  WriteStream
482
710
  };
483
- function ReadStream(path8, options) {
484
- if (!(this instanceof ReadStream)) return new ReadStream(path8, options);
711
+ function ReadStream(path9, options) {
712
+ if (!(this instanceof ReadStream)) return new ReadStream(path9, options);
485
713
  Stream.call(this);
486
714
  var self2 = this;
487
- this.path = path8;
715
+ this.path = path9;
488
716
  this.fd = null;
489
717
  this.readable = true;
490
718
  this.paused = false;
@@ -518,7 +746,7 @@ var require_legacy_streams = __commonJS({
518
746
  });
519
747
  return;
520
748
  }
521
- fs2.open(this.path, this.flags, this.mode, function(err, fd) {
749
+ fs3.open(this.path, this.flags, this.mode, function(err, fd) {
522
750
  if (err) {
523
751
  self2.emit("error", err);
524
752
  self2.readable = false;
@@ -529,10 +757,10 @@ var require_legacy_streams = __commonJS({
529
757
  self2._read();
530
758
  });
531
759
  }
532
- function WriteStream(path8, options) {
533
- if (!(this instanceof WriteStream)) return new WriteStream(path8, options);
760
+ function WriteStream(path9, options) {
761
+ if (!(this instanceof WriteStream)) return new WriteStream(path9, options);
534
762
  Stream.call(this);
535
- this.path = path8;
763
+ this.path = path9;
536
764
  this.fd = null;
537
765
  this.writable = true;
538
766
  this.flags = "w";
@@ -557,7 +785,7 @@ var require_legacy_streams = __commonJS({
557
785
  this.busy = false;
558
786
  this._queue = [];
559
787
  if (this.fd === null) {
560
- this._open = fs2.open;
788
+ this._open = fs3.open;
561
789
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
562
790
  this.flush();
563
791
  }
@@ -595,7 +823,7 @@ var require_graceful_fs = __commonJS({
595
823
  "../../node_modules/graceful-fs/graceful-fs.js"(exports, module) {
596
824
  "use strict";
597
825
  init_esm_shims();
598
- var fs2 = __require("fs");
826
+ var fs3 = __require("fs");
599
827
  var polyfills = require_polyfills();
600
828
  var legacy = require_legacy_streams();
601
829
  var clone4 = require_clone();
@@ -618,21 +846,21 @@ var require_graceful_fs = __commonJS({
618
846
  }
619
847
  });
620
848
  }
621
- var debug = noop;
849
+ var debug2 = noop;
622
850
  if (util.debuglog)
623
- debug = util.debuglog("gfs4");
851
+ debug2 = util.debuglog("gfs4");
624
852
  else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
625
- debug = function() {
853
+ debug2 = function() {
626
854
  var m = util.format.apply(util, arguments);
627
855
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
628
856
  console.error(m);
629
857
  };
630
- if (!fs2[gracefulQueue]) {
858
+ if (!fs3[gracefulQueue]) {
631
859
  queue = global[gracefulQueue] || [];
632
- publishQueue(fs2, queue);
633
- fs2.close = function(fs$close) {
860
+ publishQueue(fs3, queue);
861
+ fs3.close = function(fs$close) {
634
862
  function close(fd, cb) {
635
- return fs$close.call(fs2, fd, function(err) {
863
+ return fs$close.call(fs3, fd, function(err) {
636
864
  if (!err) {
637
865
  resetQueue();
638
866
  }
@@ -644,48 +872,48 @@ var require_graceful_fs = __commonJS({
644
872
  value: fs$close
645
873
  });
646
874
  return close;
647
- }(fs2.close);
648
- fs2.closeSync = function(fs$closeSync) {
875
+ }(fs3.close);
876
+ fs3.closeSync = function(fs$closeSync) {
649
877
  function closeSync(fd) {
650
- fs$closeSync.apply(fs2, arguments);
878
+ fs$closeSync.apply(fs3, arguments);
651
879
  resetQueue();
652
880
  }
653
881
  Object.defineProperty(closeSync, previousSymbol, {
654
882
  value: fs$closeSync
655
883
  });
656
884
  return closeSync;
657
- }(fs2.closeSync);
885
+ }(fs3.closeSync);
658
886
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
659
887
  process.on("exit", function() {
660
- debug(fs2[gracefulQueue]);
661
- __require("assert").equal(fs2[gracefulQueue].length, 0);
888
+ debug2(fs3[gracefulQueue]);
889
+ __require("assert").equal(fs3[gracefulQueue].length, 0);
662
890
  });
663
891
  }
664
892
  }
665
893
  var queue;
666
894
  if (!global[gracefulQueue]) {
667
- publishQueue(global, fs2[gracefulQueue]);
668
- }
669
- module.exports = patch(clone4(fs2));
670
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) {
671
- module.exports = patch(fs2);
672
- fs2.__patched = true;
673
- }
674
- function patch(fs3) {
675
- polyfills(fs3);
676
- fs3.gracefulify = patch;
677
- fs3.createReadStream = createReadStream;
678
- fs3.createWriteStream = createWriteStream;
679
- var fs$readFile = fs3.readFile;
680
- fs3.readFile = readFile5;
681
- function readFile5(path8, options, cb) {
895
+ publishQueue(global, fs3[gracefulQueue]);
896
+ }
897
+ module.exports = patch(clone4(fs3));
898
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
899
+ module.exports = patch(fs3);
900
+ fs3.__patched = true;
901
+ }
902
+ function patch(fs4) {
903
+ polyfills(fs4);
904
+ fs4.gracefulify = patch;
905
+ fs4.createReadStream = createReadStream;
906
+ fs4.createWriteStream = createWriteStream;
907
+ var fs$readFile = fs4.readFile;
908
+ fs4.readFile = readFile5;
909
+ function readFile5(path9, options, cb) {
682
910
  if (typeof options === "function")
683
911
  cb = options, options = null;
684
- return go$readFile(path8, options, cb);
685
- function go$readFile(path9, options2, cb2, startTime) {
686
- return fs$readFile(path9, options2, function(err) {
912
+ return go$readFile(path9, options, cb);
913
+ function go$readFile(path10, options2, cb2, startTime) {
914
+ return fs$readFile(path10, options2, function(err) {
687
915
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
688
- enqueue([go$readFile, [path9, options2, cb2], err, startTime || Date.now(), Date.now()]);
916
+ enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
689
917
  else {
690
918
  if (typeof cb2 === "function")
691
919
  cb2.apply(this, arguments);
@@ -693,16 +921,16 @@ var require_graceful_fs = __commonJS({
693
921
  });
694
922
  }
695
923
  }
696
- var fs$writeFile = fs3.writeFile;
697
- fs3.writeFile = writeFile3;
698
- function writeFile3(path8, data2, options, cb) {
924
+ var fs$writeFile = fs4.writeFile;
925
+ fs4.writeFile = writeFile3;
926
+ function writeFile3(path9, data2, options, cb) {
699
927
  if (typeof options === "function")
700
928
  cb = options, options = null;
701
- return go$writeFile(path8, data2, options, cb);
702
- function go$writeFile(path9, data3, options2, cb2, startTime) {
703
- return fs$writeFile(path9, data3, options2, function(err) {
929
+ return go$writeFile(path9, data2, options, cb);
930
+ function go$writeFile(path10, data3, options2, cb2, startTime) {
931
+ return fs$writeFile(path10, data3, options2, function(err) {
704
932
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
705
- enqueue([go$writeFile, [path9, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
933
+ enqueue([go$writeFile, [path10, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
706
934
  else {
707
935
  if (typeof cb2 === "function")
708
936
  cb2.apply(this, arguments);
@@ -710,17 +938,17 @@ var require_graceful_fs = __commonJS({
710
938
  });
711
939
  }
712
940
  }
713
- var fs$appendFile = fs3.appendFile;
941
+ var fs$appendFile = fs4.appendFile;
714
942
  if (fs$appendFile)
715
- fs3.appendFile = appendFile;
716
- function appendFile(path8, data2, options, cb) {
943
+ fs4.appendFile = appendFile;
944
+ function appendFile(path9, data2, options, cb) {
717
945
  if (typeof options === "function")
718
946
  cb = options, options = null;
719
- return go$appendFile(path8, data2, options, cb);
720
- function go$appendFile(path9, data3, options2, cb2, startTime) {
721
- return fs$appendFile(path9, data3, options2, function(err) {
947
+ return go$appendFile(path9, data2, options, cb);
948
+ function go$appendFile(path10, data3, options2, cb2, startTime) {
949
+ return fs$appendFile(path10, data3, options2, function(err) {
722
950
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
723
- enqueue([go$appendFile, [path9, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
951
+ enqueue([go$appendFile, [path10, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
724
952
  else {
725
953
  if (typeof cb2 === "function")
726
954
  cb2.apply(this, arguments);
@@ -728,9 +956,9 @@ var require_graceful_fs = __commonJS({
728
956
  });
729
957
  }
730
958
  }
731
- var fs$copyFile = fs3.copyFile;
959
+ var fs$copyFile = fs4.copyFile;
732
960
  if (fs$copyFile)
733
- fs3.copyFile = copyFile;
961
+ fs4.copyFile = copyFile;
734
962
  function copyFile(src, dest, flags, cb) {
735
963
  if (typeof flags === "function") {
736
964
  cb = flags;
@@ -748,34 +976,34 @@ var require_graceful_fs = __commonJS({
748
976
  });
749
977
  }
750
978
  }
751
- var fs$readdir = fs3.readdir;
752
- fs3.readdir = readdir;
979
+ var fs$readdir = fs4.readdir;
980
+ fs4.readdir = readdir;
753
981
  var noReaddirOptionVersions = /^v[0-5]\./;
754
- function readdir(path8, options, cb) {
982
+ function readdir(path9, options, cb) {
755
983
  if (typeof options === "function")
756
984
  cb = options, options = null;
757
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options2, cb2, startTime) {
758
- return fs$readdir(path9, fs$readdirCallback(
759
- path9,
985
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path10, options2, cb2, startTime) {
986
+ return fs$readdir(path10, fs$readdirCallback(
987
+ path10,
760
988
  options2,
761
989
  cb2,
762
990
  startTime
763
991
  ));
764
- } : function go$readdir2(path9, options2, cb2, startTime) {
765
- return fs$readdir(path9, options2, fs$readdirCallback(
766
- path9,
992
+ } : function go$readdir2(path10, options2, cb2, startTime) {
993
+ return fs$readdir(path10, options2, fs$readdirCallback(
994
+ path10,
767
995
  options2,
768
996
  cb2,
769
997
  startTime
770
998
  ));
771
999
  };
772
- return go$readdir(path8, options, cb);
773
- function fs$readdirCallback(path9, options2, cb2, startTime) {
1000
+ return go$readdir(path9, options, cb);
1001
+ function fs$readdirCallback(path10, options2, cb2, startTime) {
774
1002
  return function(err, files) {
775
1003
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
776
1004
  enqueue([
777
1005
  go$readdir,
778
- [path9, options2, cb2],
1006
+ [path10, options2, cb2],
779
1007
  err,
780
1008
  startTime || Date.now(),
781
1009
  Date.now()
@@ -790,21 +1018,21 @@ var require_graceful_fs = __commonJS({
790
1018
  }
791
1019
  }
792
1020
  if (process.version.substr(0, 4) === "v0.8") {
793
- var legStreams = legacy(fs3);
1021
+ var legStreams = legacy(fs4);
794
1022
  ReadStream = legStreams.ReadStream;
795
1023
  WriteStream = legStreams.WriteStream;
796
1024
  }
797
- var fs$ReadStream = fs3.ReadStream;
1025
+ var fs$ReadStream = fs4.ReadStream;
798
1026
  if (fs$ReadStream) {
799
1027
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
800
1028
  ReadStream.prototype.open = ReadStream$open;
801
1029
  }
802
- var fs$WriteStream = fs3.WriteStream;
1030
+ var fs$WriteStream = fs4.WriteStream;
803
1031
  if (fs$WriteStream) {
804
1032
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
805
1033
  WriteStream.prototype.open = WriteStream$open;
806
1034
  }
807
- Object.defineProperty(fs3, "ReadStream", {
1035
+ Object.defineProperty(fs4, "ReadStream", {
808
1036
  get: function() {
809
1037
  return ReadStream;
810
1038
  },
@@ -814,7 +1042,7 @@ var require_graceful_fs = __commonJS({
814
1042
  enumerable: true,
815
1043
  configurable: true
816
1044
  });
817
- Object.defineProperty(fs3, "WriteStream", {
1045
+ Object.defineProperty(fs4, "WriteStream", {
818
1046
  get: function() {
819
1047
  return WriteStream;
820
1048
  },
@@ -825,7 +1053,7 @@ var require_graceful_fs = __commonJS({
825
1053
  configurable: true
826
1054
  });
827
1055
  var FileReadStream = ReadStream;
828
- Object.defineProperty(fs3, "FileReadStream", {
1056
+ Object.defineProperty(fs4, "FileReadStream", {
829
1057
  get: function() {
830
1058
  return FileReadStream;
831
1059
  },
@@ -836,7 +1064,7 @@ var require_graceful_fs = __commonJS({
836
1064
  configurable: true
837
1065
  });
838
1066
  var FileWriteStream = WriteStream;
839
- Object.defineProperty(fs3, "FileWriteStream", {
1067
+ Object.defineProperty(fs4, "FileWriteStream", {
840
1068
  get: function() {
841
1069
  return FileWriteStream;
842
1070
  },
@@ -846,7 +1074,7 @@ var require_graceful_fs = __commonJS({
846
1074
  enumerable: true,
847
1075
  configurable: true
848
1076
  });
849
- function ReadStream(path8, options) {
1077
+ function ReadStream(path9, options) {
850
1078
  if (this instanceof ReadStream)
851
1079
  return fs$ReadStream.apply(this, arguments), this;
852
1080
  else
@@ -866,7 +1094,7 @@ var require_graceful_fs = __commonJS({
866
1094
  }
867
1095
  });
868
1096
  }
869
- function WriteStream(path8, options) {
1097
+ function WriteStream(path9, options) {
870
1098
  if (this instanceof WriteStream)
871
1099
  return fs$WriteStream.apply(this, arguments), this;
872
1100
  else
@@ -884,22 +1112,22 @@ var require_graceful_fs = __commonJS({
884
1112
  }
885
1113
  });
886
1114
  }
887
- function createReadStream(path8, options) {
888
- return new fs3.ReadStream(path8, options);
1115
+ function createReadStream(path9, options) {
1116
+ return new fs4.ReadStream(path9, options);
889
1117
  }
890
- function createWriteStream(path8, options) {
891
- return new fs3.WriteStream(path8, options);
1118
+ function createWriteStream(path9, options) {
1119
+ return new fs4.WriteStream(path9, options);
892
1120
  }
893
- var fs$open = fs3.open;
894
- fs3.open = open;
895
- function open(path8, flags, mode, cb) {
1121
+ var fs$open = fs4.open;
1122
+ fs4.open = open;
1123
+ function open(path9, flags, mode, cb) {
896
1124
  if (typeof mode === "function")
897
1125
  cb = mode, mode = null;
898
- return go$open(path8, flags, mode, cb);
899
- function go$open(path9, flags2, mode2, cb2, startTime) {
900
- return fs$open(path9, flags2, mode2, function(err, fd) {
1126
+ return go$open(path9, flags, mode, cb);
1127
+ function go$open(path10, flags2, mode2, cb2, startTime) {
1128
+ return fs$open(path10, flags2, mode2, function(err, fd) {
901
1129
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
902
- enqueue([go$open, [path9, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1130
+ enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
903
1131
  else {
904
1132
  if (typeof cb2 === "function")
905
1133
  cb2.apply(this, arguments);
@@ -907,20 +1135,20 @@ var require_graceful_fs = __commonJS({
907
1135
  });
908
1136
  }
909
1137
  }
910
- return fs3;
1138
+ return fs4;
911
1139
  }
912
1140
  function enqueue(elem) {
913
- debug("ENQUEUE", elem[0].name, elem[1]);
914
- fs2[gracefulQueue].push(elem);
1141
+ debug2("ENQUEUE", elem[0].name, elem[1]);
1142
+ fs3[gracefulQueue].push(elem);
915
1143
  retry();
916
1144
  }
917
1145
  var retryTimer;
918
1146
  function resetQueue() {
919
1147
  var now = Date.now();
920
- for (var i = 0; i < fs2[gracefulQueue].length; ++i) {
921
- if (fs2[gracefulQueue][i].length > 2) {
922
- fs2[gracefulQueue][i][3] = now;
923
- fs2[gracefulQueue][i][4] = now;
1148
+ for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
1149
+ if (fs3[gracefulQueue][i].length > 2) {
1150
+ fs3[gracefulQueue][i][3] = now;
1151
+ fs3[gracefulQueue][i][4] = now;
924
1152
  }
925
1153
  }
926
1154
  retry();
@@ -928,19 +1156,19 @@ var require_graceful_fs = __commonJS({
928
1156
  function retry() {
929
1157
  clearTimeout(retryTimer);
930
1158
  retryTimer = void 0;
931
- if (fs2[gracefulQueue].length === 0)
1159
+ if (fs3[gracefulQueue].length === 0)
932
1160
  return;
933
- var elem = fs2[gracefulQueue].shift();
1161
+ var elem = fs3[gracefulQueue].shift();
934
1162
  var fn = elem[0];
935
1163
  var args = elem[1];
936
1164
  var err = elem[2];
937
1165
  var startTime = elem[3];
938
1166
  var lastTime = elem[4];
939
1167
  if (startTime === void 0) {
940
- debug("RETRY", fn.name, args);
1168
+ debug2("RETRY", fn.name, args);
941
1169
  fn.apply(null, args);
942
1170
  } else if (Date.now() - startTime >= 6e4) {
943
- debug("TIMEOUT", fn.name, args);
1171
+ debug2("TIMEOUT", fn.name, args);
944
1172
  var cb = args.pop();
945
1173
  if (typeof cb === "function")
946
1174
  cb.call(null, err);
@@ -949,10 +1177,10 @@ var require_graceful_fs = __commonJS({
949
1177
  var sinceStart = Math.max(lastTime - startTime, 1);
950
1178
  var desiredDelay = Math.min(sinceStart * 1.2, 100);
951
1179
  if (sinceAttempt >= desiredDelay) {
952
- debug("RETRY", fn.name, args);
1180
+ debug2("RETRY", fn.name, args);
953
1181
  fn.apply(null, args.concat([startTime]));
954
1182
  } else {
955
- fs2[gracefulQueue].push(elem);
1183
+ fs3[gracefulQueue].push(elem);
956
1184
  }
957
1185
  }
958
1186
  if (retryTimer === void 0) {
@@ -968,7 +1196,7 @@ var require_fs = __commonJS({
968
1196
  "use strict";
969
1197
  init_esm_shims();
970
1198
  var u = require_universalify().fromCallback;
971
- var fs2 = require_graceful_fs();
1199
+ var fs3 = require_graceful_fs();
972
1200
  var api = [
973
1201
  "access",
974
1202
  "appendFile",
@@ -1005,57 +1233,57 @@ var require_fs = __commonJS({
1005
1233
  "utimes",
1006
1234
  "writeFile"
1007
1235
  ].filter((key) => {
1008
- return typeof fs2[key] === "function";
1236
+ return typeof fs3[key] === "function";
1009
1237
  });
1010
- Object.assign(exports, fs2);
1238
+ Object.assign(exports, fs3);
1011
1239
  api.forEach((method) => {
1012
- exports[method] = u(fs2[method]);
1240
+ exports[method] = u(fs3[method]);
1013
1241
  });
1014
1242
  exports.exists = function(filename, callback) {
1015
1243
  if (typeof callback === "function") {
1016
- return fs2.exists(filename, callback);
1244
+ return fs3.exists(filename, callback);
1017
1245
  }
1018
- return new Promise((resolve3) => {
1019
- return fs2.exists(filename, resolve3);
1246
+ return new Promise((resolve6) => {
1247
+ return fs3.exists(filename, resolve6);
1020
1248
  });
1021
1249
  };
1022
1250
  exports.read = function(fd, buffer, offset2, length3, position, callback) {
1023
1251
  if (typeof callback === "function") {
1024
- return fs2.read(fd, buffer, offset2, length3, position, callback);
1252
+ return fs3.read(fd, buffer, offset2, length3, position, callback);
1025
1253
  }
1026
- return new Promise((resolve3, reject) => {
1027
- fs2.read(fd, buffer, offset2, length3, position, (err, bytesRead, buffer2) => {
1254
+ return new Promise((resolve6, reject) => {
1255
+ fs3.read(fd, buffer, offset2, length3, position, (err, bytesRead, buffer2) => {
1028
1256
  if (err) return reject(err);
1029
- resolve3({ bytesRead, buffer: buffer2 });
1257
+ resolve6({ bytesRead, buffer: buffer2 });
1030
1258
  });
1031
1259
  });
1032
1260
  };
1033
1261
  exports.write = function(fd, buffer, ...args) {
1034
1262
  if (typeof args[args.length - 1] === "function") {
1035
- return fs2.write(fd, buffer, ...args);
1263
+ return fs3.write(fd, buffer, ...args);
1036
1264
  }
1037
- return new Promise((resolve3, reject) => {
1038
- fs2.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
1265
+ return new Promise((resolve6, reject) => {
1266
+ fs3.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
1039
1267
  if (err) return reject(err);
1040
- resolve3({ bytesWritten, buffer: buffer2 });
1268
+ resolve6({ bytesWritten, buffer: buffer2 });
1041
1269
  });
1042
1270
  });
1043
1271
  };
1044
- if (typeof fs2.writev === "function") {
1272
+ if (typeof fs3.writev === "function") {
1045
1273
  exports.writev = function(fd, buffers, ...args) {
1046
1274
  if (typeof args[args.length - 1] === "function") {
1047
- return fs2.writev(fd, buffers, ...args);
1275
+ return fs3.writev(fd, buffers, ...args);
1048
1276
  }
1049
- return new Promise((resolve3, reject) => {
1050
- fs2.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
1277
+ return new Promise((resolve6, reject) => {
1278
+ fs3.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
1051
1279
  if (err) return reject(err);
1052
- resolve3({ bytesWritten, buffers: buffers2 });
1280
+ resolve6({ bytesWritten, buffers: buffers2 });
1053
1281
  });
1054
1282
  });
1055
1283
  };
1056
1284
  }
1057
- if (typeof fs2.realpath.native === "function") {
1058
- exports.realpath.native = u(fs2.realpath.native);
1285
+ if (typeof fs3.realpath.native === "function") {
1286
+ exports.realpath.native = u(fs3.realpath.native);
1059
1287
  } else {
1060
1288
  process.emitWarning(
1061
1289
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -1071,10 +1299,10 @@ var require_utils = __commonJS({
1071
1299
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
1072
1300
  "use strict";
1073
1301
  init_esm_shims();
1074
- var path8 = __require("path");
1302
+ var path9 = __require("path");
1075
1303
  module.exports.checkPath = function checkPath(pth) {
1076
1304
  if (process.platform === "win32") {
1077
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path8.parse(pth).root, ""));
1305
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path9.parse(pth).root, ""));
1078
1306
  if (pathHasInvalidWinCharacters) {
1079
1307
  const error = new Error(`Path contains invalid characters: ${pth}`);
1080
1308
  error.code = "EINVAL";
@@ -1090,7 +1318,7 @@ var require_make_dir = __commonJS({
1090
1318
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) {
1091
1319
  "use strict";
1092
1320
  init_esm_shims();
1093
- var fs2 = require_fs();
1321
+ var fs3 = require_fs();
1094
1322
  var { checkPath } = require_utils();
1095
1323
  var getMode = (options) => {
1096
1324
  const defaults2 = { mode: 511 };
@@ -1099,14 +1327,14 @@ var require_make_dir = __commonJS({
1099
1327
  };
1100
1328
  module.exports.makeDir = async (dir, options) => {
1101
1329
  checkPath(dir);
1102
- return fs2.mkdir(dir, {
1330
+ return fs3.mkdir(dir, {
1103
1331
  mode: getMode(options),
1104
1332
  recursive: true
1105
1333
  });
1106
1334
  };
1107
1335
  module.exports.makeDirSync = (dir, options) => {
1108
1336
  checkPath(dir);
1109
- return fs2.mkdirSync(dir, {
1337
+ return fs3.mkdirSync(dir, {
1110
1338
  mode: getMode(options),
1111
1339
  recursive: true
1112
1340
  });
@@ -1140,13 +1368,13 @@ var require_path_exists = __commonJS({
1140
1368
  "use strict";
1141
1369
  init_esm_shims();
1142
1370
  var u = require_universalify().fromPromise;
1143
- var fs2 = require_fs();
1144
- function pathExists(path8) {
1145
- return fs2.access(path8).then(() => true).catch(() => false);
1371
+ var fs3 = require_fs();
1372
+ function pathExists(path9) {
1373
+ return fs3.access(path9).then(() => true).catch(() => false);
1146
1374
  }
1147
1375
  module.exports = {
1148
1376
  pathExists: u(pathExists),
1149
- pathExistsSync: fs2.existsSync
1377
+ pathExistsSync: fs3.existsSync
1150
1378
  };
1151
1379
  }
1152
1380
  });
@@ -1156,21 +1384,21 @@ var require_utimes = __commonJS({
1156
1384
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
1157
1385
  "use strict";
1158
1386
  init_esm_shims();
1159
- var fs2 = require_graceful_fs();
1160
- function utimesMillis(path8, atime, mtime, callback) {
1161
- fs2.open(path8, "r+", (err, fd) => {
1387
+ var fs3 = require_graceful_fs();
1388
+ function utimesMillis(path9, atime, mtime, callback) {
1389
+ fs3.open(path9, "r+", (err, fd) => {
1162
1390
  if (err) return callback(err);
1163
- fs2.futimes(fd, atime, mtime, (futimesErr) => {
1164
- fs2.close(fd, (closeErr) => {
1391
+ fs3.futimes(fd, atime, mtime, (futimesErr) => {
1392
+ fs3.close(fd, (closeErr) => {
1165
1393
  if (callback) callback(futimesErr || closeErr);
1166
1394
  });
1167
1395
  });
1168
1396
  });
1169
1397
  }
1170
- function utimesMillisSync(path8, atime, mtime) {
1171
- const fd = fs2.openSync(path8, "r+");
1172
- fs2.futimesSync(fd, atime, mtime);
1173
- return fs2.closeSync(fd);
1398
+ function utimesMillisSync(path9, atime, mtime) {
1399
+ const fd = fs3.openSync(path9, "r+");
1400
+ fs3.futimesSync(fd, atime, mtime);
1401
+ return fs3.closeSync(fd);
1174
1402
  }
1175
1403
  module.exports = {
1176
1404
  utimesMillis,
@@ -1184,11 +1412,11 @@ var require_stat = __commonJS({
1184
1412
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
1185
1413
  "use strict";
1186
1414
  init_esm_shims();
1187
- var fs2 = require_fs();
1188
- var path8 = __require("path");
1415
+ var fs3 = require_fs();
1416
+ var path9 = __require("path");
1189
1417
  var util = __require("util");
1190
1418
  function getStats(src, dest, opts) {
1191
- const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
1419
+ const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
1192
1420
  return Promise.all([
1193
1421
  statFunc(src),
1194
1422
  statFunc(dest).catch((err) => {
@@ -1199,7 +1427,7 @@ var require_stat = __commonJS({
1199
1427
  }
1200
1428
  function getStatsSync(src, dest, opts) {
1201
1429
  let destStat;
1202
- const statFunc = opts.dereference ? (file) => fs2.statSync(file, { bigint: true }) : (file) => fs2.lstatSync(file, { bigint: true });
1430
+ const statFunc = opts.dereference ? (file) => fs3.statSync(file, { bigint: true }) : (file) => fs3.lstatSync(file, { bigint: true });
1203
1431
  const srcStat = statFunc(src);
1204
1432
  try {
1205
1433
  destStat = statFunc(dest);
@@ -1215,8 +1443,8 @@ var require_stat = __commonJS({
1215
1443
  const { srcStat, destStat } = stats;
1216
1444
  if (destStat) {
1217
1445
  if (areIdentical(srcStat, destStat)) {
1218
- const srcBaseName = path8.basename(src);
1219
- const destBaseName = path8.basename(dest);
1446
+ const srcBaseName = path9.basename(src);
1447
+ const destBaseName = path9.basename(dest);
1220
1448
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1221
1449
  return cb(null, { srcStat, destStat, isChangingCase: true });
1222
1450
  }
@@ -1239,8 +1467,8 @@ var require_stat = __commonJS({
1239
1467
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
1240
1468
  if (destStat) {
1241
1469
  if (areIdentical(srcStat, destStat)) {
1242
- const srcBaseName = path8.basename(src);
1243
- const destBaseName = path8.basename(dest);
1470
+ const srcBaseName = path9.basename(src);
1471
+ const destBaseName = path9.basename(dest);
1244
1472
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1245
1473
  return { srcStat, destStat, isChangingCase: true };
1246
1474
  }
@@ -1259,10 +1487,10 @@ var require_stat = __commonJS({
1259
1487
  return { srcStat, destStat };
1260
1488
  }
1261
1489
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
1262
- const srcParent = path8.resolve(path8.dirname(src));
1263
- const destParent = path8.resolve(path8.dirname(dest));
1264
- if (destParent === srcParent || destParent === path8.parse(destParent).root) return cb();
1265
- fs2.stat(destParent, { bigint: true }, (err, destStat) => {
1490
+ const srcParent = path9.resolve(path9.dirname(src));
1491
+ const destParent = path9.resolve(path9.dirname(dest));
1492
+ if (destParent === srcParent || destParent === path9.parse(destParent).root) return cb();
1493
+ fs3.stat(destParent, { bigint: true }, (err, destStat) => {
1266
1494
  if (err) {
1267
1495
  if (err.code === "ENOENT") return cb();
1268
1496
  return cb(err);
@@ -1274,12 +1502,12 @@ var require_stat = __commonJS({
1274
1502
  });
1275
1503
  }
1276
1504
  function checkParentPathsSync(src, srcStat, dest, funcName) {
1277
- const srcParent = path8.resolve(path8.dirname(src));
1278
- const destParent = path8.resolve(path8.dirname(dest));
1279
- if (destParent === srcParent || destParent === path8.parse(destParent).root) return;
1505
+ const srcParent = path9.resolve(path9.dirname(src));
1506
+ const destParent = path9.resolve(path9.dirname(dest));
1507
+ if (destParent === srcParent || destParent === path9.parse(destParent).root) return;
1280
1508
  let destStat;
1281
1509
  try {
1282
- destStat = fs2.statSync(destParent, { bigint: true });
1510
+ destStat = fs3.statSync(destParent, { bigint: true });
1283
1511
  } catch (err) {
1284
1512
  if (err.code === "ENOENT") return;
1285
1513
  throw err;
@@ -1293,8 +1521,8 @@ var require_stat = __commonJS({
1293
1521
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
1294
1522
  }
1295
1523
  function isSrcSubdir(src, dest) {
1296
- const srcArr = path8.resolve(src).split(path8.sep).filter((i) => i);
1297
- const destArr = path8.resolve(dest).split(path8.sep).filter((i) => i);
1524
+ const srcArr = path9.resolve(src).split(path9.sep).filter((i) => i);
1525
+ const destArr = path9.resolve(dest).split(path9.sep).filter((i) => i);
1298
1526
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
1299
1527
  }
1300
1528
  function errMsg(src, dest, funcName) {
@@ -1316,8 +1544,8 @@ var require_copy = __commonJS({
1316
1544
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
1317
1545
  "use strict";
1318
1546
  init_esm_shims();
1319
- var fs2 = require_graceful_fs();
1320
- var path8 = __require("path");
1547
+ var fs3 = require_graceful_fs();
1548
+ var path9 = __require("path");
1321
1549
  var mkdirs = require_mkdirs().mkdirs;
1322
1550
  var pathExists = require_path_exists().pathExists;
1323
1551
  var utimesMillis = require_utimes().utimesMillis;
@@ -1352,7 +1580,7 @@ var require_copy = __commonJS({
1352
1580
  });
1353
1581
  }
1354
1582
  function checkParentDir(destStat, src, dest, opts, cb) {
1355
- const destParent = path8.dirname(dest);
1583
+ const destParent = path9.dirname(dest);
1356
1584
  pathExists(destParent, (err, dirExists) => {
1357
1585
  if (err) return cb(err);
1358
1586
  if (dirExists) return getStats(destStat, src, dest, opts, cb);
@@ -1373,7 +1601,7 @@ var require_copy = __commonJS({
1373
1601
  return getStats(destStat, src, dest, opts, cb);
1374
1602
  }
1375
1603
  function getStats(destStat, src, dest, opts, cb) {
1376
- const stat3 = opts.dereference ? fs2.stat : fs2.lstat;
1604
+ const stat3 = opts.dereference ? fs3.stat : fs3.lstat;
1377
1605
  stat3(src, (err, srcStat) => {
1378
1606
  if (err) return cb(err);
1379
1607
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb);
@@ -1390,7 +1618,7 @@ var require_copy = __commonJS({
1390
1618
  }
1391
1619
  function mayCopyFile(srcStat, src, dest, opts, cb) {
1392
1620
  if (opts.overwrite) {
1393
- fs2.unlink(dest, (err) => {
1621
+ fs3.unlink(dest, (err) => {
1394
1622
  if (err) return cb(err);
1395
1623
  return copyFile(srcStat, src, dest, opts, cb);
1396
1624
  });
@@ -1399,7 +1627,7 @@ var require_copy = __commonJS({
1399
1627
  } else return cb();
1400
1628
  }
1401
1629
  function copyFile(srcStat, src, dest, opts, cb) {
1402
- fs2.copyFile(src, dest, (err) => {
1630
+ fs3.copyFile(src, dest, (err) => {
1403
1631
  if (err) return cb(err);
1404
1632
  if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
1405
1633
  return setDestMode(dest, srcStat.mode, cb);
@@ -1427,10 +1655,10 @@ var require_copy = __commonJS({
1427
1655
  });
1428
1656
  }
1429
1657
  function setDestMode(dest, srcMode, cb) {
1430
- return fs2.chmod(dest, srcMode, cb);
1658
+ return fs3.chmod(dest, srcMode, cb);
1431
1659
  }
1432
1660
  function setDestTimestamps(src, dest, cb) {
1433
- fs2.stat(src, (err, updatedSrcStat) => {
1661
+ fs3.stat(src, (err, updatedSrcStat) => {
1434
1662
  if (err) return cb(err);
1435
1663
  return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
1436
1664
  });
@@ -1440,7 +1668,7 @@ var require_copy = __commonJS({
1440
1668
  return copyDir(src, dest, opts, cb);
1441
1669
  }
1442
1670
  function mkDirAndCopy(srcMode, src, dest, opts, cb) {
1443
- fs2.mkdir(dest, (err) => {
1671
+ fs3.mkdir(dest, (err) => {
1444
1672
  if (err) return cb(err);
1445
1673
  copyDir(src, dest, opts, (err2) => {
1446
1674
  if (err2) return cb(err2);
@@ -1449,7 +1677,7 @@ var require_copy = __commonJS({
1449
1677
  });
1450
1678
  }
1451
1679
  function copyDir(src, dest, opts, cb) {
1452
- fs2.readdir(src, (err, items) => {
1680
+ fs3.readdir(src, (err, items) => {
1453
1681
  if (err) return cb(err);
1454
1682
  return copyDirItems(items, src, dest, opts, cb);
1455
1683
  });
@@ -1460,8 +1688,8 @@ var require_copy = __commonJS({
1460
1688
  return copyDirItem(items, item, src, dest, opts, cb);
1461
1689
  }
1462
1690
  function copyDirItem(items, item, src, dest, opts, cb) {
1463
- const srcItem = path8.join(src, item);
1464
- const destItem = path8.join(dest, item);
1691
+ const srcItem = path9.join(src, item);
1692
+ const destItem = path9.join(dest, item);
1465
1693
  stat2.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
1466
1694
  if (err) return cb(err);
1467
1695
  const { destStat } = stats;
@@ -1472,21 +1700,21 @@ var require_copy = __commonJS({
1472
1700
  });
1473
1701
  }
1474
1702
  function onLink(destStat, src, dest, opts, cb) {
1475
- fs2.readlink(src, (err, resolvedSrc) => {
1703
+ fs3.readlink(src, (err, resolvedSrc) => {
1476
1704
  if (err) return cb(err);
1477
1705
  if (opts.dereference) {
1478
- resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
1706
+ resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
1479
1707
  }
1480
1708
  if (!destStat) {
1481
- return fs2.symlink(resolvedSrc, dest, cb);
1709
+ return fs3.symlink(resolvedSrc, dest, cb);
1482
1710
  } else {
1483
- fs2.readlink(dest, (err2, resolvedDest) => {
1711
+ fs3.readlink(dest, (err2, resolvedDest) => {
1484
1712
  if (err2) {
1485
- if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs2.symlink(resolvedSrc, dest, cb);
1713
+ if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs3.symlink(resolvedSrc, dest, cb);
1486
1714
  return cb(err2);
1487
1715
  }
1488
1716
  if (opts.dereference) {
1489
- resolvedDest = path8.resolve(process.cwd(), resolvedDest);
1717
+ resolvedDest = path9.resolve(process.cwd(), resolvedDest);
1490
1718
  }
1491
1719
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
1492
1720
  return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
@@ -1500,9 +1728,9 @@ var require_copy = __commonJS({
1500
1728
  });
1501
1729
  }
1502
1730
  function copyLink(resolvedSrc, dest, cb) {
1503
- fs2.unlink(dest, (err) => {
1731
+ fs3.unlink(dest, (err) => {
1504
1732
  if (err) return cb(err);
1505
- return fs2.symlink(resolvedSrc, dest, cb);
1733
+ return fs3.symlink(resolvedSrc, dest, cb);
1506
1734
  });
1507
1735
  }
1508
1736
  module.exports = copy;
@@ -1514,8 +1742,8 @@ var require_copy_sync = __commonJS({
1514
1742
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
1515
1743
  "use strict";
1516
1744
  init_esm_shims();
1517
- var fs2 = require_graceful_fs();
1518
- var path8 = __require("path");
1745
+ var fs3 = require_graceful_fs();
1746
+ var path9 = __require("path");
1519
1747
  var mkdirsSync = require_mkdirs().mkdirsSync;
1520
1748
  var utimesMillisSync = require_utimes().utimesMillisSync;
1521
1749
  var stat2 = require_stat();
@@ -1539,8 +1767,8 @@ var require_copy_sync = __commonJS({
1539
1767
  }
1540
1768
  function handleFilterAndCopy(destStat, src, dest, opts) {
1541
1769
  if (opts.filter && !opts.filter(src, dest)) return;
1542
- const destParent = path8.dirname(dest);
1543
- if (!fs2.existsSync(destParent)) mkdirsSync(destParent);
1770
+ const destParent = path9.dirname(dest);
1771
+ if (!fs3.existsSync(destParent)) mkdirsSync(destParent);
1544
1772
  return getStats(destStat, src, dest, opts);
1545
1773
  }
1546
1774
  function startCopy(destStat, src, dest, opts) {
@@ -1548,7 +1776,7 @@ var require_copy_sync = __commonJS({
1548
1776
  return getStats(destStat, src, dest, opts);
1549
1777
  }
1550
1778
  function getStats(destStat, src, dest, opts) {
1551
- const statSync = opts.dereference ? fs2.statSync : fs2.lstatSync;
1779
+ const statSync = opts.dereference ? fs3.statSync : fs3.lstatSync;
1552
1780
  const srcStat = statSync(src);
1553
1781
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
1554
1782
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -1563,14 +1791,14 @@ var require_copy_sync = __commonJS({
1563
1791
  }
1564
1792
  function mayCopyFile(srcStat, src, dest, opts) {
1565
1793
  if (opts.overwrite) {
1566
- fs2.unlinkSync(dest);
1794
+ fs3.unlinkSync(dest);
1567
1795
  return copyFile(srcStat, src, dest, opts);
1568
1796
  } else if (opts.errorOnExist) {
1569
1797
  throw new Error(`'${dest}' already exists`);
1570
1798
  }
1571
1799
  }
1572
1800
  function copyFile(srcStat, src, dest, opts) {
1573
- fs2.copyFileSync(src, dest);
1801
+ fs3.copyFileSync(src, dest);
1574
1802
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
1575
1803
  return setDestMode(dest, srcStat.mode);
1576
1804
  }
@@ -1585,10 +1813,10 @@ var require_copy_sync = __commonJS({
1585
1813
  return setDestMode(dest, srcMode | 128);
1586
1814
  }
1587
1815
  function setDestMode(dest, srcMode) {
1588
- return fs2.chmodSync(dest, srcMode);
1816
+ return fs3.chmodSync(dest, srcMode);
1589
1817
  }
1590
1818
  function setDestTimestamps(src, dest) {
1591
- const updatedSrcStat = fs2.statSync(src);
1819
+ const updatedSrcStat = fs3.statSync(src);
1592
1820
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
1593
1821
  }
1594
1822
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -1596,49 +1824,49 @@ var require_copy_sync = __commonJS({
1596
1824
  return copyDir(src, dest, opts);
1597
1825
  }
1598
1826
  function mkDirAndCopy(srcMode, src, dest, opts) {
1599
- fs2.mkdirSync(dest);
1827
+ fs3.mkdirSync(dest);
1600
1828
  copyDir(src, dest, opts);
1601
1829
  return setDestMode(dest, srcMode);
1602
1830
  }
1603
1831
  function copyDir(src, dest, opts) {
1604
- fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
1832
+ fs3.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
1605
1833
  }
1606
1834
  function copyDirItem(item, src, dest, opts) {
1607
- const srcItem = path8.join(src, item);
1608
- const destItem = path8.join(dest, item);
1835
+ const srcItem = path9.join(src, item);
1836
+ const destItem = path9.join(dest, item);
1609
1837
  const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
1610
1838
  return startCopy(destStat, srcItem, destItem, opts);
1611
1839
  }
1612
1840
  function onLink(destStat, src, dest, opts) {
1613
- let resolvedSrc = fs2.readlinkSync(src);
1841
+ let resolvedSrc = fs3.readlinkSync(src);
1614
1842
  if (opts.dereference) {
1615
- resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
1843
+ resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
1616
1844
  }
1617
1845
  if (!destStat) {
1618
- return fs2.symlinkSync(resolvedSrc, dest);
1846
+ return fs3.symlinkSync(resolvedSrc, dest);
1619
1847
  } else {
1620
1848
  let resolvedDest;
1621
1849
  try {
1622
- resolvedDest = fs2.readlinkSync(dest);
1850
+ resolvedDest = fs3.readlinkSync(dest);
1623
1851
  } catch (err) {
1624
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs2.symlinkSync(resolvedSrc, dest);
1852
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs3.symlinkSync(resolvedSrc, dest);
1625
1853
  throw err;
1626
1854
  }
1627
1855
  if (opts.dereference) {
1628
- resolvedDest = path8.resolve(process.cwd(), resolvedDest);
1856
+ resolvedDest = path9.resolve(process.cwd(), resolvedDest);
1629
1857
  }
1630
1858
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
1631
1859
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
1632
1860
  }
1633
- if (fs2.statSync(dest).isDirectory() && stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
1861
+ if (fs3.statSync(dest).isDirectory() && stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
1634
1862
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
1635
1863
  }
1636
1864
  return copyLink(resolvedSrc, dest);
1637
1865
  }
1638
1866
  }
1639
1867
  function copyLink(resolvedSrc, dest) {
1640
- fs2.unlinkSync(dest);
1641
- return fs2.symlinkSync(resolvedSrc, dest);
1868
+ fs3.unlinkSync(dest);
1869
+ return fs3.symlinkSync(resolvedSrc, dest);
1642
1870
  }
1643
1871
  module.exports = copySync;
1644
1872
  }
@@ -1662,10 +1890,10 @@ var require_rimraf = __commonJS({
1662
1890
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module) {
1663
1891
  "use strict";
1664
1892
  init_esm_shims();
1665
- var fs2 = require_graceful_fs();
1666
- var path8 = __require("path");
1893
+ var fs3 = require_graceful_fs();
1894
+ var path9 = __require("path");
1667
1895
  var assert = __require("assert");
1668
- var isWindows = process.platform === "win32";
1896
+ var isWindows2 = process.platform === "win32";
1669
1897
  function defaults2(options) {
1670
1898
  const methods = [
1671
1899
  "unlink",
@@ -1676,9 +1904,9 @@ var require_rimraf = __commonJS({
1676
1904
  "readdir"
1677
1905
  ];
1678
1906
  methods.forEach((m) => {
1679
- options[m] = options[m] || fs2[m];
1907
+ options[m] = options[m] || fs3[m];
1680
1908
  m = m + "Sync";
1681
- options[m] = options[m] || fs2[m];
1909
+ options[m] = options[m] || fs3[m];
1682
1910
  });
1683
1911
  options.maxBusyTries = options.maxBusyTries || 3;
1684
1912
  }
@@ -1714,7 +1942,7 @@ var require_rimraf = __commonJS({
1714
1942
  if (er && er.code === "ENOENT") {
1715
1943
  return cb(null);
1716
1944
  }
1717
- if (er && er.code === "EPERM" && isWindows) {
1945
+ if (er && er.code === "EPERM" && isWindows2) {
1718
1946
  return fixWinEPERM(p, options, er, cb);
1719
1947
  }
1720
1948
  if (st && st.isDirectory()) {
@@ -1726,7 +1954,7 @@ var require_rimraf = __commonJS({
1726
1954
  return cb(null);
1727
1955
  }
1728
1956
  if (er2.code === "EPERM") {
1729
- return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
1957
+ return isWindows2 ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
1730
1958
  }
1731
1959
  if (er2.code === "EISDIR") {
1732
1960
  return rmdir(p, options, er2, cb);
@@ -1808,7 +2036,7 @@ var require_rimraf = __commonJS({
1808
2036
  let errState;
1809
2037
  if (n3 === 0) return options.rmdir(p, cb);
1810
2038
  files.forEach((f) => {
1811
- rimraf(path8.join(p, f), options, (er2) => {
2039
+ rimraf(path9.join(p, f), options, (er2) => {
1812
2040
  if (errState) {
1813
2041
  return;
1814
2042
  }
@@ -1834,7 +2062,7 @@ var require_rimraf = __commonJS({
1834
2062
  if (er.code === "ENOENT") {
1835
2063
  return;
1836
2064
  }
1837
- if (er.code === "EPERM" && isWindows) {
2065
+ if (er.code === "EPERM" && isWindows2) {
1838
2066
  fixWinEPERMSync(p, options, er);
1839
2067
  }
1840
2068
  }
@@ -1848,7 +2076,7 @@ var require_rimraf = __commonJS({
1848
2076
  if (er.code === "ENOENT") {
1849
2077
  return;
1850
2078
  } else if (er.code === "EPERM") {
1851
- return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er);
2079
+ return isWindows2 ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er);
1852
2080
  } else if (er.code !== "EISDIR") {
1853
2081
  throw er;
1854
2082
  }
@@ -1873,8 +2101,8 @@ var require_rimraf = __commonJS({
1873
2101
  function rmkidsSync(p, options) {
1874
2102
  assert(p);
1875
2103
  assert(options);
1876
- options.readdirSync(p).forEach((f) => rimrafSync(path8.join(p, f), options));
1877
- if (isWindows) {
2104
+ options.readdirSync(p).forEach((f) => rimrafSync(path9.join(p, f), options));
2105
+ if (isWindows2) {
1878
2106
  const startTime = Date.now();
1879
2107
  do {
1880
2108
  try {
@@ -1898,16 +2126,16 @@ var require_remove = __commonJS({
1898
2126
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
1899
2127
  "use strict";
1900
2128
  init_esm_shims();
1901
- var fs2 = require_graceful_fs();
2129
+ var fs3 = require_graceful_fs();
1902
2130
  var u = require_universalify().fromCallback;
1903
2131
  var rimraf = require_rimraf();
1904
- function remove2(path8, callback) {
1905
- if (fs2.rm) return fs2.rm(path8, { recursive: true, force: true }, callback);
1906
- rimraf(path8, callback);
2132
+ function remove2(path9, callback) {
2133
+ if (fs3.rm) return fs3.rm(path9, { recursive: true, force: true }, callback);
2134
+ rimraf(path9, callback);
1907
2135
  }
1908
- function removeSync(path8) {
1909
- if (fs2.rmSync) return fs2.rmSync(path8, { recursive: true, force: true });
1910
- rimraf.sync(path8);
2136
+ function removeSync(path9) {
2137
+ if (fs3.rmSync) return fs3.rmSync(path9, { recursive: true, force: true });
2138
+ rimraf.sync(path9);
1911
2139
  }
1912
2140
  module.exports = {
1913
2141
  remove: u(remove2),
@@ -1922,28 +2150,28 @@ var require_empty = __commonJS({
1922
2150
  "use strict";
1923
2151
  init_esm_shims();
1924
2152
  var u = require_universalify().fromPromise;
1925
- var fs2 = require_fs();
1926
- var path8 = __require("path");
2153
+ var fs3 = require_fs();
2154
+ var path9 = __require("path");
1927
2155
  var mkdir = require_mkdirs();
1928
2156
  var remove2 = require_remove();
1929
2157
  var emptyDir = u(async function emptyDir2(dir) {
1930
2158
  let items;
1931
2159
  try {
1932
- items = await fs2.readdir(dir);
2160
+ items = await fs3.readdir(dir);
1933
2161
  } catch {
1934
2162
  return mkdir.mkdirs(dir);
1935
2163
  }
1936
- return Promise.all(items.map((item) => remove2.remove(path8.join(dir, item))));
2164
+ return Promise.all(items.map((item) => remove2.remove(path9.join(dir, item))));
1937
2165
  });
1938
2166
  function emptyDirSync2(dir) {
1939
2167
  let items;
1940
2168
  try {
1941
- items = fs2.readdirSync(dir);
2169
+ items = fs3.readdirSync(dir);
1942
2170
  } catch {
1943
2171
  return mkdir.mkdirsSync(dir);
1944
2172
  }
1945
2173
  items.forEach((item) => {
1946
- item = path8.join(dir, item);
2174
+ item = path9.join(dir, item);
1947
2175
  remove2.removeSync(item);
1948
2176
  });
1949
2177
  }
@@ -1962,20 +2190,20 @@ var require_file = __commonJS({
1962
2190
  "use strict";
1963
2191
  init_esm_shims();
1964
2192
  var u = require_universalify().fromCallback;
1965
- var path8 = __require("path");
1966
- var fs2 = require_graceful_fs();
2193
+ var path9 = __require("path");
2194
+ var fs3 = require_graceful_fs();
1967
2195
  var mkdir = require_mkdirs();
1968
2196
  function createFile(file, callback) {
1969
2197
  function makeFile() {
1970
- fs2.writeFile(file, "", (err) => {
2198
+ fs3.writeFile(file, "", (err) => {
1971
2199
  if (err) return callback(err);
1972
2200
  callback();
1973
2201
  });
1974
2202
  }
1975
- fs2.stat(file, (err, stats) => {
2203
+ fs3.stat(file, (err, stats) => {
1976
2204
  if (!err && stats.isFile()) return callback();
1977
- const dir = path8.dirname(file);
1978
- fs2.stat(dir, (err2, stats2) => {
2205
+ const dir = path9.dirname(file);
2206
+ fs3.stat(dir, (err2, stats2) => {
1979
2207
  if (err2) {
1980
2208
  if (err2.code === "ENOENT") {
1981
2209
  return mkdir.mkdirs(dir, (err3) => {
@@ -1987,7 +2215,7 @@ var require_file = __commonJS({
1987
2215
  }
1988
2216
  if (stats2.isDirectory()) makeFile();
1989
2217
  else {
1990
- fs2.readdir(dir, (err3) => {
2218
+ fs3.readdir(dir, (err3) => {
1991
2219
  if (err3) return callback(err3);
1992
2220
  });
1993
2221
  }
@@ -1997,20 +2225,20 @@ var require_file = __commonJS({
1997
2225
  function createFileSync(file) {
1998
2226
  let stats;
1999
2227
  try {
2000
- stats = fs2.statSync(file);
2228
+ stats = fs3.statSync(file);
2001
2229
  } catch {
2002
2230
  }
2003
2231
  if (stats && stats.isFile()) return;
2004
- const dir = path8.dirname(file);
2232
+ const dir = path9.dirname(file);
2005
2233
  try {
2006
- if (!fs2.statSync(dir).isDirectory()) {
2007
- fs2.readdirSync(dir);
2234
+ if (!fs3.statSync(dir).isDirectory()) {
2235
+ fs3.readdirSync(dir);
2008
2236
  }
2009
2237
  } catch (err) {
2010
2238
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
2011
2239
  else throw err;
2012
2240
  }
2013
- fs2.writeFileSync(file, "");
2241
+ fs3.writeFileSync(file, "");
2014
2242
  }
2015
2243
  module.exports = {
2016
2244
  createFile: u(createFile),
@@ -2025,26 +2253,26 @@ var require_link = __commonJS({
2025
2253
  "use strict";
2026
2254
  init_esm_shims();
2027
2255
  var u = require_universalify().fromCallback;
2028
- var path8 = __require("path");
2029
- var fs2 = require_graceful_fs();
2256
+ var path9 = __require("path");
2257
+ var fs3 = require_graceful_fs();
2030
2258
  var mkdir = require_mkdirs();
2031
2259
  var pathExists = require_path_exists().pathExists;
2032
2260
  var { areIdentical } = require_stat();
2033
2261
  function createLink(srcpath, dstpath, callback) {
2034
2262
  function makeLink(srcpath2, dstpath2) {
2035
- fs2.link(srcpath2, dstpath2, (err) => {
2263
+ fs3.link(srcpath2, dstpath2, (err) => {
2036
2264
  if (err) return callback(err);
2037
2265
  callback(null);
2038
2266
  });
2039
2267
  }
2040
- fs2.lstat(dstpath, (_, dstStat) => {
2041
- fs2.lstat(srcpath, (err, srcStat) => {
2268
+ fs3.lstat(dstpath, (_, dstStat) => {
2269
+ fs3.lstat(srcpath, (err, srcStat) => {
2042
2270
  if (err) {
2043
2271
  err.message = err.message.replace("lstat", "ensureLink");
2044
2272
  return callback(err);
2045
2273
  }
2046
2274
  if (dstStat && areIdentical(srcStat, dstStat)) return callback(null);
2047
- const dir = path8.dirname(dstpath);
2275
+ const dir = path9.dirname(dstpath);
2048
2276
  pathExists(dir, (err2, dirExists) => {
2049
2277
  if (err2) return callback(err2);
2050
2278
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -2059,21 +2287,21 @@ var require_link = __commonJS({
2059
2287
  function createLinkSync(srcpath, dstpath) {
2060
2288
  let dstStat;
2061
2289
  try {
2062
- dstStat = fs2.lstatSync(dstpath);
2290
+ dstStat = fs3.lstatSync(dstpath);
2063
2291
  } catch {
2064
2292
  }
2065
2293
  try {
2066
- const srcStat = fs2.lstatSync(srcpath);
2294
+ const srcStat = fs3.lstatSync(srcpath);
2067
2295
  if (dstStat && areIdentical(srcStat, dstStat)) return;
2068
2296
  } catch (err) {
2069
2297
  err.message = err.message.replace("lstat", "ensureLink");
2070
2298
  throw err;
2071
2299
  }
2072
- const dir = path8.dirname(dstpath);
2073
- const dirExists = fs2.existsSync(dir);
2074
- if (dirExists) return fs2.linkSync(srcpath, dstpath);
2300
+ const dir = path9.dirname(dstpath);
2301
+ const dirExists = fs3.existsSync(dir);
2302
+ if (dirExists) return fs3.linkSync(srcpath, dstpath);
2075
2303
  mkdir.mkdirsSync(dir);
2076
- return fs2.linkSync(srcpath, dstpath);
2304
+ return fs3.linkSync(srcpath, dstpath);
2077
2305
  }
2078
2306
  module.exports = {
2079
2307
  createLink: u(createLink),
@@ -2087,12 +2315,12 @@ var require_symlink_paths = __commonJS({
2087
2315
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
2088
2316
  "use strict";
2089
2317
  init_esm_shims();
2090
- var path8 = __require("path");
2091
- var fs2 = require_graceful_fs();
2318
+ var path9 = __require("path");
2319
+ var fs3 = require_graceful_fs();
2092
2320
  var pathExists = require_path_exists().pathExists;
2093
2321
  function symlinkPaths(srcpath, dstpath, callback) {
2094
- if (path8.isAbsolute(srcpath)) {
2095
- return fs2.lstat(srcpath, (err) => {
2322
+ if (path9.isAbsolute(srcpath)) {
2323
+ return fs3.lstat(srcpath, (err) => {
2096
2324
  if (err) {
2097
2325
  err.message = err.message.replace("lstat", "ensureSymlink");
2098
2326
  return callback(err);
@@ -2103,8 +2331,8 @@ var require_symlink_paths = __commonJS({
2103
2331
  });
2104
2332
  });
2105
2333
  } else {
2106
- const dstdir = path8.dirname(dstpath);
2107
- const relativeToDst = path8.join(dstdir, srcpath);
2334
+ const dstdir = path9.dirname(dstpath);
2335
+ const relativeToDst = path9.join(dstdir, srcpath);
2108
2336
  return pathExists(relativeToDst, (err, exists) => {
2109
2337
  if (err) return callback(err);
2110
2338
  if (exists) {
@@ -2113,14 +2341,14 @@ var require_symlink_paths = __commonJS({
2113
2341
  toDst: srcpath
2114
2342
  });
2115
2343
  } else {
2116
- return fs2.lstat(srcpath, (err2) => {
2344
+ return fs3.lstat(srcpath, (err2) => {
2117
2345
  if (err2) {
2118
2346
  err2.message = err2.message.replace("lstat", "ensureSymlink");
2119
2347
  return callback(err2);
2120
2348
  }
2121
2349
  return callback(null, {
2122
2350
  toCwd: srcpath,
2123
- toDst: path8.relative(dstdir, srcpath)
2351
+ toDst: path9.relative(dstdir, srcpath)
2124
2352
  });
2125
2353
  });
2126
2354
  }
@@ -2129,28 +2357,28 @@ var require_symlink_paths = __commonJS({
2129
2357
  }
2130
2358
  function symlinkPathsSync(srcpath, dstpath) {
2131
2359
  let exists;
2132
- if (path8.isAbsolute(srcpath)) {
2133
- exists = fs2.existsSync(srcpath);
2360
+ if (path9.isAbsolute(srcpath)) {
2361
+ exists = fs3.existsSync(srcpath);
2134
2362
  if (!exists) throw new Error("absolute srcpath does not exist");
2135
2363
  return {
2136
2364
  toCwd: srcpath,
2137
2365
  toDst: srcpath
2138
2366
  };
2139
2367
  } else {
2140
- const dstdir = path8.dirname(dstpath);
2141
- const relativeToDst = path8.join(dstdir, srcpath);
2142
- exists = fs2.existsSync(relativeToDst);
2368
+ const dstdir = path9.dirname(dstpath);
2369
+ const relativeToDst = path9.join(dstdir, srcpath);
2370
+ exists = fs3.existsSync(relativeToDst);
2143
2371
  if (exists) {
2144
2372
  return {
2145
2373
  toCwd: relativeToDst,
2146
2374
  toDst: srcpath
2147
2375
  };
2148
2376
  } else {
2149
- exists = fs2.existsSync(srcpath);
2377
+ exists = fs3.existsSync(srcpath);
2150
2378
  if (!exists) throw new Error("relative srcpath does not exist");
2151
2379
  return {
2152
2380
  toCwd: srcpath,
2153
- toDst: path8.relative(dstdir, srcpath)
2381
+ toDst: path9.relative(dstdir, srcpath)
2154
2382
  };
2155
2383
  }
2156
2384
  }
@@ -2167,12 +2395,12 @@ var require_symlink_type = __commonJS({
2167
2395
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
2168
2396
  "use strict";
2169
2397
  init_esm_shims();
2170
- var fs2 = require_graceful_fs();
2398
+ var fs3 = require_graceful_fs();
2171
2399
  function symlinkType(srcpath, type, callback) {
2172
2400
  callback = typeof type === "function" ? type : callback;
2173
2401
  type = typeof type === "function" ? false : type;
2174
2402
  if (type) return callback(null, type);
2175
- fs2.lstat(srcpath, (err, stats) => {
2403
+ fs3.lstat(srcpath, (err, stats) => {
2176
2404
  if (err) return callback(null, "file");
2177
2405
  type = stats && stats.isDirectory() ? "dir" : "file";
2178
2406
  callback(null, type);
@@ -2182,7 +2410,7 @@ var require_symlink_type = __commonJS({
2182
2410
  let stats;
2183
2411
  if (type) return type;
2184
2412
  try {
2185
- stats = fs2.lstatSync(srcpath);
2413
+ stats = fs3.lstatSync(srcpath);
2186
2414
  } catch {
2187
2415
  return "file";
2188
2416
  }
@@ -2201,8 +2429,8 @@ var require_symlink = __commonJS({
2201
2429
  "use strict";
2202
2430
  init_esm_shims();
2203
2431
  var u = require_universalify().fromCallback;
2204
- var path8 = __require("path");
2205
- var fs2 = require_fs();
2432
+ var path9 = __require("path");
2433
+ var fs3 = require_fs();
2206
2434
  var _mkdirs = require_mkdirs();
2207
2435
  var mkdirs = _mkdirs.mkdirs;
2208
2436
  var mkdirsSync = _mkdirs.mkdirsSync;
@@ -2217,11 +2445,11 @@ var require_symlink = __commonJS({
2217
2445
  function createSymlink(srcpath, dstpath, type, callback) {
2218
2446
  callback = typeof type === "function" ? type : callback;
2219
2447
  type = typeof type === "function" ? false : type;
2220
- fs2.lstat(dstpath, (err, stats) => {
2448
+ fs3.lstat(dstpath, (err, stats) => {
2221
2449
  if (!err && stats.isSymbolicLink()) {
2222
2450
  Promise.all([
2223
- fs2.stat(srcpath),
2224
- fs2.stat(dstpath)
2451
+ fs3.stat(srcpath),
2452
+ fs3.stat(dstpath)
2225
2453
  ]).then(([srcStat, dstStat]) => {
2226
2454
  if (areIdentical(srcStat, dstStat)) return callback(null);
2227
2455
  _createSymlink(srcpath, dstpath, type, callback);
@@ -2230,18 +2458,18 @@ var require_symlink = __commonJS({
2230
2458
  });
2231
2459
  }
2232
2460
  function _createSymlink(srcpath, dstpath, type, callback) {
2233
- symlinkPaths(srcpath, dstpath, (err, relative) => {
2461
+ symlinkPaths(srcpath, dstpath, (err, relative2) => {
2234
2462
  if (err) return callback(err);
2235
- srcpath = relative.toDst;
2236
- symlinkType(relative.toCwd, type, (err2, type2) => {
2463
+ srcpath = relative2.toDst;
2464
+ symlinkType(relative2.toCwd, type, (err2, type2) => {
2237
2465
  if (err2) return callback(err2);
2238
- const dir = path8.dirname(dstpath);
2466
+ const dir = path9.dirname(dstpath);
2239
2467
  pathExists(dir, (err3, dirExists) => {
2240
2468
  if (err3) return callback(err3);
2241
- if (dirExists) return fs2.symlink(srcpath, dstpath, type2, callback);
2469
+ if (dirExists) return fs3.symlink(srcpath, dstpath, type2, callback);
2242
2470
  mkdirs(dir, (err4) => {
2243
2471
  if (err4) return callback(err4);
2244
- fs2.symlink(srcpath, dstpath, type2, callback);
2472
+ fs3.symlink(srcpath, dstpath, type2, callback);
2245
2473
  });
2246
2474
  });
2247
2475
  });
@@ -2250,22 +2478,22 @@ var require_symlink = __commonJS({
2250
2478
  function createSymlinkSync(srcpath, dstpath, type) {
2251
2479
  let stats;
2252
2480
  try {
2253
- stats = fs2.lstatSync(dstpath);
2481
+ stats = fs3.lstatSync(dstpath);
2254
2482
  } catch {
2255
2483
  }
2256
2484
  if (stats && stats.isSymbolicLink()) {
2257
- const srcStat = fs2.statSync(srcpath);
2258
- const dstStat = fs2.statSync(dstpath);
2485
+ const srcStat = fs3.statSync(srcpath);
2486
+ const dstStat = fs3.statSync(dstpath);
2259
2487
  if (areIdentical(srcStat, dstStat)) return;
2260
2488
  }
2261
- const relative = symlinkPathsSync(srcpath, dstpath);
2262
- srcpath = relative.toDst;
2263
- type = symlinkTypeSync(relative.toCwd, type);
2264
- const dir = path8.dirname(dstpath);
2265
- const exists = fs2.existsSync(dir);
2266
- if (exists) return fs2.symlinkSync(srcpath, dstpath, type);
2489
+ const relative2 = symlinkPathsSync(srcpath, dstpath);
2490
+ srcpath = relative2.toDst;
2491
+ type = symlinkTypeSync(relative2.toCwd, type);
2492
+ const dir = path9.dirname(dstpath);
2493
+ const exists = fs3.existsSync(dir);
2494
+ if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
2267
2495
  mkdirsSync(dir);
2268
- return fs2.symlinkSync(srcpath, dstpath, type);
2496
+ return fs3.symlinkSync(srcpath, dstpath, type);
2269
2497
  }
2270
2498
  module.exports = {
2271
2499
  createSymlink: u(createSymlink),
@@ -2337,9 +2565,9 @@ var require_jsonfile = __commonJS({
2337
2565
  if (typeof options === "string") {
2338
2566
  options = { encoding: options };
2339
2567
  }
2340
- const fs2 = options.fs || _fs;
2568
+ const fs3 = options.fs || _fs;
2341
2569
  const shouldThrow = "throws" in options ? options.throws : true;
2342
- let data2 = await universalify.fromCallback(fs2.readFile)(file, options);
2570
+ let data2 = await universalify.fromCallback(fs3.readFile)(file, options);
2343
2571
  data2 = stripBom(data2);
2344
2572
  let obj;
2345
2573
  try {
@@ -2355,14 +2583,14 @@ var require_jsonfile = __commonJS({
2355
2583
  return obj;
2356
2584
  }
2357
2585
  var readFile5 = universalify.fromPromise(_readFile);
2358
- function readFileSync(file, options = {}) {
2586
+ function readFileSync2(file, options = {}) {
2359
2587
  if (typeof options === "string") {
2360
2588
  options = { encoding: options };
2361
2589
  }
2362
- const fs2 = options.fs || _fs;
2590
+ const fs3 = options.fs || _fs;
2363
2591
  const shouldThrow = "throws" in options ? options.throws : true;
2364
2592
  try {
2365
- let content = fs2.readFileSync(file, options);
2593
+ let content = fs3.readFileSync(file, options);
2366
2594
  content = stripBom(content);
2367
2595
  return JSON.parse(content, options.reviver);
2368
2596
  } catch (err) {
@@ -2375,19 +2603,19 @@ var require_jsonfile = __commonJS({
2375
2603
  }
2376
2604
  }
2377
2605
  async function _writeFile(file, obj, options = {}) {
2378
- const fs2 = options.fs || _fs;
2606
+ const fs3 = options.fs || _fs;
2379
2607
  const str = stringify2(obj, options);
2380
- await universalify.fromCallback(fs2.writeFile)(file, str, options);
2608
+ await universalify.fromCallback(fs3.writeFile)(file, str, options);
2381
2609
  }
2382
2610
  var writeFile3 = universalify.fromPromise(_writeFile);
2383
2611
  function writeFileSync(file, obj, options = {}) {
2384
- const fs2 = options.fs || _fs;
2612
+ const fs3 = options.fs || _fs;
2385
2613
  const str = stringify2(obj, options);
2386
- return fs2.writeFileSync(file, str, options);
2614
+ return fs3.writeFileSync(file, str, options);
2387
2615
  }
2388
2616
  var jsonfile = {
2389
2617
  readFile: readFile5,
2390
- readFileSync,
2618
+ readFileSync: readFileSync2,
2391
2619
  writeFile: writeFile3,
2392
2620
  writeFileSync
2393
2621
  };
@@ -2417,8 +2645,8 @@ var require_output_file = __commonJS({
2417
2645
  "use strict";
2418
2646
  init_esm_shims();
2419
2647
  var u = require_universalify().fromCallback;
2420
- var fs2 = require_graceful_fs();
2421
- var path8 = __require("path");
2648
+ var fs3 = require_graceful_fs();
2649
+ var path9 = __require("path");
2422
2650
  var mkdir = require_mkdirs();
2423
2651
  var pathExists = require_path_exists().pathExists;
2424
2652
  function outputFile(file, data2, encoding, callback) {
@@ -2426,23 +2654,23 @@ var require_output_file = __commonJS({
2426
2654
  callback = encoding;
2427
2655
  encoding = "utf8";
2428
2656
  }
2429
- const dir = path8.dirname(file);
2657
+ const dir = path9.dirname(file);
2430
2658
  pathExists(dir, (err, itDoes) => {
2431
2659
  if (err) return callback(err);
2432
- if (itDoes) return fs2.writeFile(file, data2, encoding, callback);
2660
+ if (itDoes) return fs3.writeFile(file, data2, encoding, callback);
2433
2661
  mkdir.mkdirs(dir, (err2) => {
2434
2662
  if (err2) return callback(err2);
2435
- fs2.writeFile(file, data2, encoding, callback);
2663
+ fs3.writeFile(file, data2, encoding, callback);
2436
2664
  });
2437
2665
  });
2438
2666
  }
2439
2667
  function outputFileSync(file, ...args) {
2440
- const dir = path8.dirname(file);
2441
- if (fs2.existsSync(dir)) {
2442
- return fs2.writeFileSync(file, ...args);
2668
+ const dir = path9.dirname(file);
2669
+ if (fs3.existsSync(dir)) {
2670
+ return fs3.writeFileSync(file, ...args);
2443
2671
  }
2444
2672
  mkdir.mkdirsSync(dir);
2445
- fs2.writeFileSync(file, ...args);
2673
+ fs3.writeFileSync(file, ...args);
2446
2674
  }
2447
2675
  module.exports = {
2448
2676
  outputFile: u(outputFile),
@@ -2505,8 +2733,8 @@ var require_move = __commonJS({
2505
2733
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/move/move.js"(exports, module) {
2506
2734
  "use strict";
2507
2735
  init_esm_shims();
2508
- var fs2 = require_graceful_fs();
2509
- var path8 = __require("path");
2736
+ var fs3 = require_graceful_fs();
2737
+ var path9 = __require("path");
2510
2738
  var copy = require_copy2().copy;
2511
2739
  var remove2 = require_remove().remove;
2512
2740
  var mkdirp = require_mkdirs().mkdirp;
@@ -2525,7 +2753,7 @@ var require_move = __commonJS({
2525
2753
  stat2.checkParentPaths(src, srcStat, dest, "move", (err2) => {
2526
2754
  if (err2) return cb(err2);
2527
2755
  if (isParentRoot(dest)) return doRename(src, dest, overwrite2, isChangingCase, cb);
2528
- mkdirp(path8.dirname(dest), (err3) => {
2756
+ mkdirp(path9.dirname(dest), (err3) => {
2529
2757
  if (err3) return cb(err3);
2530
2758
  return doRename(src, dest, overwrite2, isChangingCase, cb);
2531
2759
  });
@@ -2533,8 +2761,8 @@ var require_move = __commonJS({
2533
2761
  });
2534
2762
  }
2535
2763
  function isParentRoot(dest) {
2536
- const parent = path8.dirname(dest);
2537
- const parsedPath = path8.parse(parent);
2764
+ const parent = path9.dirname(dest);
2765
+ const parsedPath = path9.parse(parent);
2538
2766
  return parsedPath.root === parent;
2539
2767
  }
2540
2768
  function doRename(src, dest, overwrite2, isChangingCase, cb) {
@@ -2552,7 +2780,7 @@ var require_move = __commonJS({
2552
2780
  });
2553
2781
  }
2554
2782
  function rename(src, dest, overwrite2, cb) {
2555
- fs2.rename(src, dest, (err) => {
2783
+ fs3.rename(src, dest, (err) => {
2556
2784
  if (!err) return cb();
2557
2785
  if (err.code !== "EXDEV") return cb(err);
2558
2786
  return moveAcrossDevice(src, dest, overwrite2, cb);
@@ -2577,8 +2805,8 @@ var require_move_sync = __commonJS({
2577
2805
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
2578
2806
  "use strict";
2579
2807
  init_esm_shims();
2580
- var fs2 = require_graceful_fs();
2581
- var path8 = __require("path");
2808
+ var fs3 = require_graceful_fs();
2809
+ var path9 = __require("path");
2582
2810
  var copySync = require_copy2().copySync;
2583
2811
  var removeSync = require_remove().removeSync;
2584
2812
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -2588,12 +2816,12 @@ var require_move_sync = __commonJS({
2588
2816
  const overwrite2 = opts.overwrite || opts.clobber || false;
2589
2817
  const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
2590
2818
  stat2.checkParentPathsSync(src, srcStat, dest, "move");
2591
- if (!isParentRoot(dest)) mkdirpSync(path8.dirname(dest));
2819
+ if (!isParentRoot(dest)) mkdirpSync(path9.dirname(dest));
2592
2820
  return doRename(src, dest, overwrite2, isChangingCase);
2593
2821
  }
2594
2822
  function isParentRoot(dest) {
2595
- const parent = path8.dirname(dest);
2596
- const parsedPath = path8.parse(parent);
2823
+ const parent = path9.dirname(dest);
2824
+ const parsedPath = path9.parse(parent);
2597
2825
  return parsedPath.root === parent;
2598
2826
  }
2599
2827
  function doRename(src, dest, overwrite2, isChangingCase) {
@@ -2602,12 +2830,12 @@ var require_move_sync = __commonJS({
2602
2830
  removeSync(dest);
2603
2831
  return rename(src, dest, overwrite2);
2604
2832
  }
2605
- if (fs2.existsSync(dest)) throw new Error("dest already exists.");
2833
+ if (fs3.existsSync(dest)) throw new Error("dest already exists.");
2606
2834
  return rename(src, dest, overwrite2);
2607
2835
  }
2608
2836
  function rename(src, dest, overwrite2) {
2609
2837
  try {
2610
- fs2.renameSync(src, dest);
2838
+ fs3.renameSync(src, dest);
2611
2839
  } catch (err) {
2612
2840
  if (err.code !== "EXDEV") throw err;
2613
2841
  return moveAcrossDevice(src, dest, overwrite2);
@@ -5252,10 +5480,10 @@ var require_helpers = __commonJS({
5252
5480
  return !arr.includes(node, i + 1);
5253
5481
  });
5254
5482
  nodes.sort(function(a, b) {
5255
- var relative = compareDocumentPosition(a, b);
5256
- if (relative & DocumentPosition.PRECEDING) {
5483
+ var relative2 = compareDocumentPosition(a, b);
5484
+ if (relative2 & DocumentPosition.PRECEDING) {
5257
5485
  return -1;
5258
- } else if (relative & DocumentPosition.FOLLOWING) {
5486
+ } else if (relative2 & DocumentPosition.FOLLOWING) {
5259
5487
  return 1;
5260
5488
  }
5261
5489
  return 0;
@@ -27134,6 +27362,383 @@ var require_rfdc = __commonJS({
27134
27362
  // src/vite/configs/backend.ts
27135
27363
  init_esm_shims();
27136
27364
 
27365
+ // ../../node_modules/vite-tsconfig-paths/dist/index.js
27366
+ init_esm_shims();
27367
+ var import_globrex = __toESM(require_globrex(), 1);
27368
+ var import_debug = __toESM(require_src(), 1);
27369
+ import * as fs from "fs";
27370
+ import { resolve as resolve3 } from "path";
27371
+ import { inspect } from "util";
27372
+ import { normalizePath as normalizePath2, searchForWorkspaceRoot } from "vite";
27373
+ import { resolve } from "path";
27374
+ import * as os from "os";
27375
+ import * as path from "path";
27376
+ import { normalizePath } from "vite";
27377
+ import { dirname } from "path";
27378
+ function resolvePathMappings(paths, base) {
27379
+ const sortedPatterns = Object.keys(paths).sort(
27380
+ (a, b) => getPrefixLength(b) - getPrefixLength(a)
27381
+ );
27382
+ const resolved = [];
27383
+ for (let pattern of sortedPatterns) {
27384
+ const relativePaths = paths[pattern];
27385
+ pattern = escapeStringRegexp(pattern).replace(/\*/g, "(.+)");
27386
+ resolved.push({
27387
+ pattern: new RegExp("^" + pattern + "$"),
27388
+ paths: relativePaths.map((relativePath) => resolve(base, relativePath))
27389
+ });
27390
+ }
27391
+ return resolved;
27392
+ }
27393
+ function getPrefixLength(pattern) {
27394
+ const prefixLength = pattern.indexOf("*");
27395
+ return pattern.substr(0, prefixLength).length;
27396
+ }
27397
+ function escapeStringRegexp(string) {
27398
+ return string.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/-/g, "\\x2d");
27399
+ }
27400
+ var isWindows = os.platform() == "win32";
27401
+ var resolve2 = isWindows ? (...paths) => normalizePath(path.win32.resolve(...paths)) : path.posix.resolve;
27402
+ var isAbsolute = isWindows ? path.win32.isAbsolute : path.posix.isAbsolute;
27403
+ var join = path.posix.join;
27404
+ var relative = path.posix.relative;
27405
+ var basename = path.posix.basename;
27406
+ var debug = (0, import_debug.default)("vite-tsconfig-paths");
27407
+ var debugResolve = (0, import_debug.default)("vite-tsconfig-paths:resolve");
27408
+ if (process.env.TEST) {
27409
+ import_debug.default.log = console.log.bind(console);
27410
+ }
27411
+ var notApplicable = [void 0, false];
27412
+ var notFound = [void 0, true];
27413
+ var src_default = (opts = {}) => {
27414
+ let resolversByDir;
27415
+ return {
27416
+ name: "vite-tsconfig-paths",
27417
+ enforce: "pre",
27418
+ async configResolved(config) {
27419
+ let projectRoot = config.root;
27420
+ let workspaceRoot;
27421
+ let { root } = opts;
27422
+ if (root) {
27423
+ root = resolve3(projectRoot, root);
27424
+ } else {
27425
+ workspaceRoot = searchForWorkspaceRoot(projectRoot);
27426
+ }
27427
+ debug("options.root ==", root);
27428
+ debug("project root ==", projectRoot);
27429
+ debug("workspace root ==", workspaceRoot);
27430
+ if (root) {
27431
+ projectRoot = root;
27432
+ workspaceRoot = root;
27433
+ }
27434
+ const tsconfck = await import("./src-MHMTXBSY.js");
27435
+ const projects = opts.projects ? opts.projects.map((file) => {
27436
+ if (!file.endsWith(".json")) {
27437
+ file = join(file, "tsconfig.json");
27438
+ }
27439
+ return resolve3(projectRoot, file);
27440
+ }) : await tsconfck.findAll(workspaceRoot, {
27441
+ configNames: opts.configNames || ["tsconfig.json", "jsconfig.json"],
27442
+ skip(dir) {
27443
+ if (dir === ".git" || dir === "node_modules") {
27444
+ return true;
27445
+ }
27446
+ if (typeof opts.skip === "function") {
27447
+ return opts.skip(dir);
27448
+ }
27449
+ return false;
27450
+ }
27451
+ });
27452
+ debug("projects:", projects);
27453
+ let hasTypeScriptDep = false;
27454
+ if (opts.parseNative) {
27455
+ try {
27456
+ const pkgJson = fs.readFileSync(
27457
+ join(workspaceRoot, "package.json"),
27458
+ "utf8"
27459
+ );
27460
+ const pkg = JSON.parse(pkgJson);
27461
+ const deps = { ...pkg.dependencies, ...pkg.devDependencies };
27462
+ hasTypeScriptDep = "typescript" in deps;
27463
+ } catch (e) {
27464
+ if (e.code != "ENOENT") {
27465
+ throw e;
27466
+ }
27467
+ }
27468
+ }
27469
+ let firstError;
27470
+ const parseOptions = {
27471
+ cache: new tsconfck.TSConfckCache()
27472
+ };
27473
+ const parsedProjects = new Set(
27474
+ await Promise.all(
27475
+ projects.map((tsconfigFile) => {
27476
+ if (tsconfigFile === null) {
27477
+ debug("tsconfig file not found:", tsconfigFile);
27478
+ return null;
27479
+ }
27480
+ return (hasTypeScriptDep ? tsconfck.parseNative(tsconfigFile, parseOptions) : tsconfck.parse(tsconfigFile, parseOptions)).catch((error) => {
27481
+ if (opts.ignoreConfigErrors) {
27482
+ debug("tsconfig file caused a parsing error:", tsconfigFile);
27483
+ } else {
27484
+ config.logger.error(
27485
+ '[tsconfig-paths] An error occurred while parsing "' + tsconfigFile + '". See below for details.' + (firstError ? "" : " To disable this message, set the `ignoreConfigErrors` option to true."),
27486
+ { error }
27487
+ );
27488
+ if (config.logger.hasErrorLogged(error)) {
27489
+ console.error(error);
27490
+ }
27491
+ firstError = error;
27492
+ }
27493
+ return null;
27494
+ });
27495
+ })
27496
+ )
27497
+ );
27498
+ resolversByDir = {};
27499
+ parsedProjects.forEach((project) => {
27500
+ if (!project) {
27501
+ return;
27502
+ }
27503
+ if (project.referenced) {
27504
+ project.referenced.forEach((projectRef) => {
27505
+ parsedProjects.add(projectRef);
27506
+ });
27507
+ parsedProjects.delete(project);
27508
+ parsedProjects.add(project);
27509
+ project.referenced = void 0;
27510
+ } else {
27511
+ const resolver = createResolver(project);
27512
+ if (resolver) {
27513
+ const projectDir = normalizePath2(dirname(project.tsconfigFile));
27514
+ const resolvers = resolversByDir[projectDir] || (resolversByDir[projectDir] = []);
27515
+ resolvers.push(resolver);
27516
+ }
27517
+ }
27518
+ });
27519
+ },
27520
+ async resolveId(id, importer, options) {
27521
+ if (debugResolve.enabled) {
27522
+ debugResolve("resolving:", { id, importer });
27523
+ }
27524
+ if (!importer) {
27525
+ debugResolve("importer is empty or undefined. skipping...");
27526
+ return;
27527
+ }
27528
+ if (relativeImportRE.test(id)) {
27529
+ debugResolve("id is a relative import. skipping...");
27530
+ return;
27531
+ }
27532
+ if (isAbsolute(id)) {
27533
+ debugResolve("id is an absolute path. skipping...");
27534
+ return;
27535
+ }
27536
+ if (id.includes("\0")) {
27537
+ debugResolve("id is a virtual module. skipping...");
27538
+ return;
27539
+ }
27540
+ const resolveOptions2 = { ...options, skipSelf: true };
27541
+ const viteResolve = async (id2, importer2) => {
27542
+ var _a;
27543
+ return (_a = await this.resolve(id2, importer2, resolveOptions2)) == null ? void 0 : _a.id;
27544
+ };
27545
+ let prevProjectDir;
27546
+ let projectDir = normalizePath2(dirname(importer));
27547
+ loop:
27548
+ while (projectDir && projectDir != prevProjectDir) {
27549
+ const resolvers = resolversByDir[projectDir];
27550
+ if (resolvers) {
27551
+ for (const resolve42 of resolvers) {
27552
+ const [resolved, matched] = await resolve42(viteResolve, id, importer);
27553
+ if (resolved) {
27554
+ return resolved;
27555
+ }
27556
+ if (matched) {
27557
+ break loop;
27558
+ }
27559
+ }
27560
+ }
27561
+ prevProjectDir = projectDir;
27562
+ projectDir = dirname(prevProjectDir);
27563
+ }
27564
+ }
27565
+ };
27566
+ function resolvePathsRootDir(project) {
27567
+ var _a, _b, _c, _d;
27568
+ if ("result" in project) {
27569
+ return (_b = (_a = project.result.options) == null ? void 0 : _a.pathsBasePath) != null ? _b : dirname(project.tsconfigFile);
27570
+ }
27571
+ const baseUrl = (_c = project.tsconfig.compilerOptions) == null ? void 0 : _c.baseUrl;
27572
+ if (baseUrl) {
27573
+ return baseUrl;
27574
+ }
27575
+ const projectWithPaths = (_d = project.extended) == null ? void 0 : _d.find(
27576
+ (p) => {
27577
+ var _a2;
27578
+ return (_a2 = p.tsconfig.compilerOptions) == null ? void 0 : _a2.paths;
27579
+ }
27580
+ );
27581
+ return dirname((projectWithPaths != null ? projectWithPaths : project).tsconfigFile);
27582
+ }
27583
+ function createResolver(project) {
27584
+ var _a, _b, _c, _d;
27585
+ const configPath = normalizePath2(project.tsconfigFile);
27586
+ const config = project.tsconfig;
27587
+ debug("config loaded:", inspect({ configPath, config }, false, 10, true));
27588
+ if (((_a = config.files) == null ? void 0 : _a.length) == 0 && !((_b = config.include) == null ? void 0 : _b.length)) {
27589
+ debug(
27590
+ `[!] skipping "${configPath}" as no files can be matched since "files" is empty and "include" is missing or empty`
27591
+ );
27592
+ return null;
27593
+ }
27594
+ const options = config.compilerOptions || {};
27595
+ const { baseUrl, paths } = options;
27596
+ if (!baseUrl && !paths) {
27597
+ debug(`[!] missing baseUrl and paths: "${configPath}"`);
27598
+ return null;
27599
+ }
27600
+ const resolveWithBaseUrl = baseUrl ? (viteResolve, id, importer) => {
27601
+ const absoluteId = join(baseUrl, id);
27602
+ debugResolve("trying with baseUrl:", absoluteId);
27603
+ return viteResolve(absoluteId, importer);
27604
+ } : void 0;
27605
+ let resolveId;
27606
+ if (paths) {
27607
+ const pathsRootDir = resolvePathsRootDir(project);
27608
+ const pathMappings = resolvePathMappings(paths, pathsRootDir);
27609
+ const resolveWithPaths = async (viteResolve, id, importer) => {
27610
+ for (const mapping of pathMappings) {
27611
+ const match5 = id.match(mapping.pattern);
27612
+ if (!match5) {
27613
+ continue;
27614
+ }
27615
+ for (let pathTemplate of mapping.paths) {
27616
+ let starCount = 0;
27617
+ const mappedId = pathTemplate.replace(/\*/g, () => {
27618
+ const matchIndex = Math.min(++starCount, match5.length - 1);
27619
+ return match5[matchIndex];
27620
+ });
27621
+ debugResolve("found match, trying to resolve:", mappedId);
27622
+ const resolved = await viteResolve(mappedId, importer);
27623
+ if (resolved) {
27624
+ return resolved;
27625
+ }
27626
+ }
27627
+ }
27628
+ };
27629
+ if (resolveWithBaseUrl) {
27630
+ resolveId = (viteResolve, id, importer) => resolveWithPaths(viteResolve, id, importer).then((resolved) => {
27631
+ return resolved != null ? resolved : resolveWithBaseUrl(viteResolve, id, importer);
27632
+ });
27633
+ } else {
27634
+ resolveId = resolveWithPaths;
27635
+ }
27636
+ } else {
27637
+ resolveId = resolveWithBaseUrl;
27638
+ }
27639
+ const configDir = dirname(configPath);
27640
+ let { outDir } = options;
27641
+ if (outDir && isAbsolute(outDir)) {
27642
+ outDir = relative(configDir, outDir);
27643
+ }
27644
+ const isIncludedRelative = getIncluder(
27645
+ (_c = config.include) == null ? void 0 : _c.map((p) => ensureRelative(configDir, p)),
27646
+ (_d = config.exclude) == null ? void 0 : _d.map((p) => ensureRelative(configDir, p)),
27647
+ outDir
27648
+ );
27649
+ const importerExtRE = opts.loose ? /./ : options.allowJs || basename(configPath).startsWith("jsconfig.") ? jsLikeRE : /\.[mc]?tsx?$/;
27650
+ const resolutionCache = /* @__PURE__ */ new Map();
27651
+ return async (viteResolve, id, importer) => {
27652
+ var _a2;
27653
+ importer = normalizePath2(importer);
27654
+ const importerFile = importer.replace(/[#?].+$/, "");
27655
+ if (!importerExtRE.test(importerFile)) {
27656
+ debugResolve("importer has unsupported extension. skipping...");
27657
+ return notApplicable;
27658
+ }
27659
+ const relativeImporterFile = relative(configDir, importerFile);
27660
+ if (!isIncludedRelative(relativeImporterFile)) {
27661
+ debugResolve("importer is not included. skipping...");
27662
+ return notApplicable;
27663
+ }
27664
+ const suffix = (_a2 = /\?.+$/.exec(id)) == null ? void 0 : _a2[0];
27665
+ if (suffix) {
27666
+ id = id.slice(0, -suffix.length);
27667
+ }
27668
+ let resolvedId = resolutionCache.get(id);
27669
+ if (!resolvedId) {
27670
+ resolvedId = await resolveId(viteResolve, id, importer);
27671
+ if (!resolvedId) {
27672
+ return notFound;
27673
+ }
27674
+ resolutionCache.set(id, resolvedId);
27675
+ if (debugResolve.enabled) {
27676
+ debugResolve("resolved without error:", {
27677
+ id,
27678
+ importer,
27679
+ resolvedId,
27680
+ configPath
27681
+ });
27682
+ }
27683
+ }
27684
+ if (suffix) {
27685
+ resolvedId += suffix;
27686
+ }
27687
+ return [resolvedId, true];
27688
+ };
27689
+ }
27690
+ };
27691
+ var jsLikeRE = /\.(vue|svelte|mdx|[mc]?[jt]sx?)$/;
27692
+ var relativeImportRE = /^\.\.?(\/|$)/;
27693
+ var defaultInclude = ["**/*"];
27694
+ var defaultExclude = [
27695
+ "**/node_modules",
27696
+ "**/bower_components",
27697
+ "**/jspm_packages"
27698
+ ];
27699
+ function getIncluder(includePaths = defaultInclude, excludePaths = defaultExclude, outDir) {
27700
+ if (outDir) {
27701
+ excludePaths = excludePaths.concat(outDir);
27702
+ }
27703
+ if (includePaths.length || excludePaths.length) {
27704
+ const includers = [];
27705
+ const excluders = [];
27706
+ includePaths.forEach(addCompiledGlob, includers);
27707
+ excludePaths.forEach(addCompiledGlob, excluders);
27708
+ debug(`compiled globs:`, { includers, excluders });
27709
+ return (path22) => {
27710
+ path22 = path22.replace(/\?.+$/, "");
27711
+ if (!relativeImportRE.test(path22)) {
27712
+ path22 = "./" + path22;
27713
+ }
27714
+ const test = (glob) => glob.test(path22);
27715
+ return includers.some(test) && !excluders.some(test);
27716
+ };
27717
+ }
27718
+ return () => true;
27719
+ }
27720
+ function addCompiledGlob(glob) {
27721
+ const endsWithGlob = glob.split("/").pop().includes("*");
27722
+ const relativeGlob = relativeImportRE.test(glob) ? glob : "./" + glob;
27723
+ if (endsWithGlob) {
27724
+ this.push(compileGlob(relativeGlob));
27725
+ } else {
27726
+ this.push(compileGlob(relativeGlob + "/**"));
27727
+ if (/\.\w+$/.test(glob)) {
27728
+ this.push(compileGlob(relativeGlob));
27729
+ }
27730
+ }
27731
+ }
27732
+ function compileGlob(glob) {
27733
+ return (0, import_globrex.default)(glob, {
27734
+ extended: true,
27735
+ globstar: true
27736
+ }).regex;
27737
+ }
27738
+ function ensureRelative(dir, path22) {
27739
+ return isAbsolute(path22) ? relative(dir, path22) : path22;
27740
+ }
27741
+
27137
27742
  // ../cli-miniflare/src/index.ts
27138
27743
  init_esm_shims();
27139
27744
 
@@ -27150,7 +27755,7 @@ import { fetchModule } from "vite";
27150
27755
  // ../../node_modules/get-port/index.js
27151
27756
  init_esm_shims();
27152
27757
  import net from "node:net";
27153
- import os from "node:os";
27758
+ import os2 from "node:os";
27154
27759
  var Locked = class extends Error {
27155
27760
  constructor(port) {
27156
27761
  super(`${port} is locked`);
@@ -27163,7 +27768,7 @@ var lockedPorts = {
27163
27768
  var releaseOldLockedPortsIntervalMs = 1e3 * 15;
27164
27769
  var timeout;
27165
27770
  var getLocalHosts = () => {
27166
- const interfaces = os.networkInterfaces();
27771
+ const interfaces = os2.networkInterfaces();
27167
27772
  const results = /* @__PURE__ */ new Set([void 0, "0.0.0.0"]);
27168
27773
  for (const _interface of Object.values(interfaces)) {
27169
27774
  for (const config of _interface) {
@@ -27172,14 +27777,14 @@ var getLocalHosts = () => {
27172
27777
  }
27173
27778
  return results;
27174
27779
  };
27175
- var checkAvailablePort = (options) => new Promise((resolve3, reject) => {
27780
+ var checkAvailablePort = (options) => new Promise((resolve6, reject) => {
27176
27781
  const server = net.createServer();
27177
27782
  server.unref();
27178
27783
  server.on("error", reject);
27179
27784
  server.listen(options, () => {
27180
27785
  const { port } = server.address();
27181
27786
  server.close(() => {
27182
- resolve3(port);
27787
+ resolve6(port);
27183
27788
  });
27184
27789
  });
27185
27790
  });
@@ -27449,8 +28054,8 @@ for (let i = 0; i < chars.length; i++) {
27449
28054
  intToChar[i] = c;
27450
28055
  charToInt[c] = i;
27451
28056
  }
27452
- function encodeInteger(builder, num, relative) {
27453
- let delta = num - relative;
28057
+ function encodeInteger(builder, num, relative2) {
28058
+ let delta = num - relative2;
27454
28059
  delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
27455
28060
  do {
27456
28061
  let clamped = delta & 31;
@@ -28543,7 +29148,7 @@ var E;
28543
29148
 
28544
29149
  // ../vite-optimize-backend-dependencies/src/utils.ts
28545
29150
  init_esm_shims();
28546
- import { join } from "node:path";
29151
+ import { join as join2 } from "node:path";
28547
29152
  import { readFile as readFile2 } from "node:fs/promises";
28548
29153
  var postfixRE = /[?#].*$/;
28549
29154
  var OPTIMIZABLE_ENTRY_RE = /\.[cm]?[jt]s$/;
@@ -28555,7 +29160,7 @@ function cleanUrl(url) {
28555
29160
  return url.replace(postfixRE, "");
28556
29161
  }
28557
29162
  function isViteOptimized(id, projectFolder) {
28558
- return id.startsWith(join(projectFolder, "node_modules/.vite/deps_ssr"));
29163
+ return id.startsWith(join2(projectFolder, "node_modules/.vite/deps_ssr"));
28559
29164
  }
28560
29165
  async function shouldOptimizeDependency(url) {
28561
29166
  return url.includes("node_modules") && OPTIMIZABLE_ENTRY_RE.test(url) && !await fileHasModuleSyntax(url);
@@ -28572,7 +29177,7 @@ async function fileHasModuleSyntax(filePath) {
28572
29177
  init_esm_shims();
28573
29178
  import esbuild from "esbuild";
28574
29179
  import { readFile as readFile3 } from "node:fs/promises";
28575
- import path, { join as join2 } from "node:path";
29180
+ import path2, { join as join3 } from "node:path";
28576
29181
  async function optimizeCjsDependency({
28577
29182
  url,
28578
29183
  projectFolder
@@ -28599,7 +29204,7 @@ async function optimizeCjsDependency({
28599
29204
  });
28600
29205
  });
28601
29206
  const [output] = Object.entries(metafile.outputs).find(
28602
- ([, output2]) => output2.entryPoint && path.resolve(projectFolder, output2.entryPoint) === url
29207
+ ([, output2]) => output2.entryPoint && path2.resolve(projectFolder, output2.entryPoint) === url
28603
29208
  ) ?? [];
28604
29209
  if (!output) {
28605
29210
  throw new CliError({
@@ -28607,7 +29212,7 @@ async function optimizeCjsDependency({
28607
29212
  cause: null
28608
29213
  });
28609
29214
  }
28610
- return readFile3(join2(projectFolder, output), "utf-8").catch(
29215
+ return readFile3(join3(projectFolder, output), "utf-8").catch(
28611
29216
  (error) => {
28612
29217
  throw new CliError({
28613
29218
  code: CliErrorCode.FailedReadingEsbuildOutputFile(),
@@ -28884,6 +29489,10 @@ async function getViteConfig(model, options, { appSecret, webhookPublicKey }) {
28884
29489
  ),
28885
29490
  customLogger: options.customLogger,
28886
29491
  invalidateGlobPatterns: [EVENTS_PATTERN, SERVICE_PLUGINS_PATTERN]
29492
+ }),
29493
+ src_default({
29494
+ ignoreConfigErrors: true,
29495
+ root: model.projectFolder
28887
29496
  })
28888
29497
  ]
28889
29498
  };
@@ -30141,7 +30750,7 @@ function isObject3(o) {
30141
30750
 
30142
30751
  // ../../node_modules/vite-plugin-externals/dist/es/src/index.js
30143
30752
  var import_fs_extra = __toESM(require_lib2());
30144
- import path2 from "path";
30753
+ import path3 from "path";
30145
30754
 
30146
30755
  // ../../node_modules/vite-plugin-externals/dist/es/src/options.js
30147
30756
  init_esm_shims();
@@ -35728,14 +36337,14 @@ var __asyncValues = function(o) {
35728
36337
  }, i);
35729
36338
  function verb(n3) {
35730
36339
  i[n3] = o[n3] && function(v) {
35731
- return new Promise(function(resolve3, reject) {
35732
- v = o[n3](v), settle(resolve3, reject, v.done, v.value);
36340
+ return new Promise(function(resolve6, reject) {
36341
+ v = o[n3](v), settle(resolve6, reject, v.done, v.value);
35733
36342
  });
35734
36343
  };
35735
36344
  }
35736
- function settle(resolve3, reject, d, v) {
36345
+ function settle(resolve6, reject, d, v) {
35737
36346
  Promise.resolve(v).then(function(v2) {
35738
- resolve3({ value: v2, done: d });
36347
+ resolve6({ value: v2, done: d });
35739
36348
  }, reject);
35740
36349
  }
35741
36350
  };
@@ -35784,13 +36393,13 @@ function viteExternalsPlugin(externals = {}, userOptions = {}) {
35784
36393
  } else if (Array.isArray(alias)) {
35785
36394
  newAlias.push(...alias);
35786
36395
  }
35787
- const cachePath = path2.join(process.cwd(), NODE_MODULES_FLAG, CACHE_DIR);
36396
+ const cachePath = path3.join(process.cwd(), NODE_MODULES_FLAG, CACHE_DIR);
35788
36397
  await (0, import_fs_extra.ensureDir)(cachePath);
35789
36398
  await (0, import_fs_extra.emptyDirSync)(cachePath);
35790
36399
  try {
35791
36400
  for (var externalsKeys_1 = __asyncValues(externalsKeys), externalsKeys_1_1; externalsKeys_1_1 = await externalsKeys_1.next(), !externalsKeys_1_1.done; ) {
35792
36401
  const externalKey = externalsKeys_1_1.value;
35793
- const externalCachePath = path2.join(cachePath, `${externalKey}.js`);
36402
+ const externalCachePath = path3.join(cachePath, `${externalKey}.js`);
35794
36403
  newAlias.push({ find: new RegExp(`^${externalKey}$`), replacement: externalCachePath });
35795
36404
  await (0, import_fs_extra.ensureFile)(externalCachePath);
35796
36405
  await (0, import_fs_extra.writeFile)(externalCachePath, `module.exports = ${transformModuleName(externals[externalKey])};`);
@@ -35880,7 +36489,7 @@ function compatSsrInOptions(options) {
35880
36489
  // src/vite/configs/build-command/browser.ts
35881
36490
  var import_monitoring_buildtime2 = __toESM(require_build(), 1);
35882
36491
  var import_variant2 = __toESM(require_lib(), 1);
35883
- import { resolve } from "node:path";
36492
+ import { resolve as resolve4 } from "node:path";
35884
36493
 
35885
36494
  // src/vite/plugins/inline-html.ts
35886
36495
  init_esm_shims();
@@ -36396,7 +37005,7 @@ var getDashboardComponentBuildTemplate = (appId, dashboardComponent) => {
36396
37005
 
36397
37006
  // src/vite/plugins/module-bundle/custom-elements.ts
36398
37007
  init_esm_shims();
36399
- var getCustomElementBaseTemplate = (path8, tagName, appId) => (
37008
+ var getCustomElementBaseTemplate = (path9, tagName, appId) => (
36400
37009
  // In UsersCustomElementClass we have class that will be registered in customElements registry
36401
37010
  // Then this class will be used to create instances for each of elements of our CustomElement
36402
37011
  // That's why we patching it's proto with accessTokenListener (in case user do not have it), so then platform could call it on each of instances
@@ -36407,7 +37016,7 @@ var getCustomElementBaseTemplate = (path8, tagName, appId) => (
36407
37016
  await import('https://unpkg.com/react@16.14.0/umd/react.production.min.js');
36408
37017
  await import('https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js');
36409
37018
  }
36410
- const { default: UsersCustomElementClass } = await import('${path8}');
37019
+ const { default: UsersCustomElementClass } = await import('${path9}');
36411
37020
 
36412
37021
  let accessTokenListenerFn = UsersCustomElementClass.prototype.accessTokenListener;
36413
37022
  if (!accessTokenListenerFn) {
@@ -36638,10 +37247,10 @@ function draftJs() {
36638
37247
  // src/vite/plugins/embedded-script-sdk-support.ts
36639
37248
  init_esm_shims();
36640
37249
  var import_variant = __toESM(require_lib(), 1);
36641
- import { join as join3 } from "node:path";
37250
+ import { join as join4 } from "node:path";
36642
37251
  var import_node_html_parser = __toESM(require_dist(), 1);
36643
37252
  function getEmbeddedScriptEntries(model) {
36644
- const entries = model.components.filter((0, import_variant.isType)(DevCenterComponent.EmbeddedScript)).map((comp) => join3(model.projectFolder, comp.relativePath));
37253
+ const entries = model.components.filter((0, import_variant.isType)(DevCenterComponent.EmbeddedScript)).map((comp) => join4(model.projectFolder, comp.relativePath));
36645
37254
  return new Set(entries);
36646
37255
  }
36647
37256
  function getEmbeddedScriptHtmlUrl(filename) {
@@ -36830,7 +37439,7 @@ function fbjsHotfixPlugin() {
36830
37439
 
36831
37440
  // src/vite/plugins/config-extensions-file-emitter.ts
36832
37441
  init_esm_shims();
36833
- import path3 from "node:path";
37442
+ import path4 from "node:path";
36834
37443
  function configExtensionsFileEmitter(model) {
36835
37444
  return {
36836
37445
  name: "config-extensions-file-emitter",
@@ -36843,7 +37452,7 @@ function configExtensionsFileEmitter(model) {
36843
37452
  const content = new Uint8Array(await readFile(resolved.id));
36844
37453
  const fileName = this.emitFile({
36845
37454
  type: "asset",
36846
- name: path3.basename(resolved.id),
37455
+ name: path4.basename(resolved.id),
36847
37456
  originalFileName: assetUrl,
36848
37457
  source: content
36849
37458
  });
@@ -36875,7 +37484,7 @@ function configExtensionsFileEmitter(model) {
36875
37484
 
36876
37485
  // src/vite/plugins/web-methods-plugin.ts
36877
37486
  init_esm_shims();
36878
- import path5 from "node:path";
37487
+ import path6 from "node:path";
36879
37488
 
36880
37489
  // ../../node_modules/minimatch/dist/esm/index.js
36881
37490
  init_esm_shims();
@@ -37556,11 +38165,11 @@ var qmarksTestNoExtDot = ([$0]) => {
37556
38165
  return (f) => f.length === len && f !== "." && f !== "..";
37557
38166
  };
37558
38167
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
37559
- var path4 = {
38168
+ var path5 = {
37560
38169
  win32: { sep: "\\" },
37561
38170
  posix: { sep: "/" }
37562
38171
  };
37563
- var sep = defaultPlatform === "win32" ? path4.win32.sep : path4.posix.sep;
38172
+ var sep = defaultPlatform === "win32" ? path5.win32.sep : path5.posix.sep;
37564
38173
  minimatch.sep = sep;
37565
38174
  var GLOBSTAR = Symbol("globstar **");
37566
38175
  minimatch.GLOBSTAR = GLOBSTAR;
@@ -38232,7 +38841,7 @@ function webMethodsPlugin({
38232
38841
  return;
38233
38842
  }
38234
38843
  const relativeId = normalizeGlobbyPattern(
38235
- path5.relative(projectFolder, id)
38844
+ path6.relative(projectFolder, id)
38236
38845
  );
38237
38846
  if (!minimatch(relativeId, normalizedWebMethodPattern)) {
38238
38847
  throw new CliError({
@@ -38249,7 +38858,7 @@ function webMethodsPlugin({
38249
38858
  export const ${method} = async (...args) => {
38250
38859
  return await callWebMethod({
38251
38860
  args,
38252
- filename: '${path5.relative(projectFolder, url)}',
38861
+ filename: '${path6.relative(projectFolder, url)}',
38253
38862
  method: '${method}',
38254
38863
  baseURL: __webMethodsBaseUrl,
38255
38864
  });
@@ -38304,7 +38913,7 @@ async function getViteConfig2(model, options, { baseBackendUrl } = {}) {
38304
38913
  const virtualDashboardScriptEntries = [
38305
38914
  ...virtualDashboardScriptAssets(model)
38306
38915
  ].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
38307
- const embeddedScriptEntries = model.components.filter((0, import_variant2.isType)(DevCenterComponent.EmbeddedScript)).map((comp) => [comp.id, resolve(model.projectFolder, comp.relativePath)]);
38916
+ const embeddedScriptEntries = model.components.filter((0, import_variant2.isType)(DevCenterComponent.EmbeddedScript)).map((comp) => [comp.id, resolve4(model.projectFolder, comp.relativePath)]);
38308
38917
  const virtualCustomElementHTMLEntries = [
38309
38918
  ...virtualCustomElementPanelHTMLAssets(model)
38310
38919
  ].map(([assetId, component]) => [`html-asset-${component.id}`, assetId]);
@@ -38396,7 +39005,11 @@ async function getViteConfig2(model, options, { baseBackendUrl } = {}) {
38396
39005
  ...options
38397
39006
  }),
38398
39007
  configExtensionsFileEmitter(model),
38399
- ...monitoringPlugins ?? []
39008
+ ...monitoringPlugins ?? [],
39009
+ src_default({
39010
+ ignoreConfigErrors: true,
39011
+ root: model.projectFolder
39012
+ })
38400
39013
  ],
38401
39014
  experimental: {
38402
39015
  /*
@@ -38477,15 +39090,15 @@ var exportsCustodian = ({
38477
39090
  if (id === EXPORTS_CUSTODIAN_ENTRY) {
38478
39091
  return [
38479
39092
  ...Array.from(virtualBlocksWidgetAssets.keys()).map(
38480
- (path8, index) => `
38481
- import { init as init${index}, api as api${index} } from '${path8}';
39093
+ (path9, index) => `
39094
+ import { init as init${index}, api as api${index} } from '${path9}';
38482
39095
  init${index}();
38483
39096
  api${index}();
38484
39097
  `
38485
39098
  ),
38486
39099
  ...Array.from(virtualBlocksWidgetPanelAssets.keys()).map(
38487
- (path8, index) => `
38488
- import { init as initPanel${index} } from '${path8}';
39100
+ (path9, index) => `
39101
+ import { init as initPanel${index} } from '${path9}';
38489
39102
  initPanel${index}();
38490
39103
  `
38491
39104
  )
@@ -38570,7 +39183,11 @@ async function getViteConfig3(model, options, { baseBackendUrl } = {}) {
38570
39183
  initialModel: model,
38571
39184
  ...options
38572
39185
  }),
38573
- ...monitoringPlugins ?? []
39186
+ ...monitoringPlugins ?? [],
39187
+ src_default({
39188
+ ignoreConfigErrors: true,
39189
+ root: model.projectFolder
39190
+ })
38574
39191
  ]
38575
39192
  };
38576
39193
  }
@@ -38582,7 +39199,7 @@ init_esm_shims();
38582
39199
  init_esm_shims();
38583
39200
  var import_monitoring_buildtime4 = __toESM(require_build(), 1);
38584
39201
  var import_variant3 = __toESM(require_lib(), 1);
38585
- import { resolve as resolve2 } from "node:path";
39202
+ import { resolve as resolve5 } from "node:path";
38586
39203
 
38587
39204
  // src/vite/plugins/ssl.ts
38588
39205
  init_esm_shims();
@@ -38591,7 +39208,7 @@ init_esm_shims();
38591
39208
  init_esm_shims();
38592
39209
  var import_selfsigned = __toESM(require_selfsigned(), 1);
38593
39210
  import { readFile as readFile4, writeFile as writeFile2, stat } from "node:fs/promises";
38594
- import path6 from "node:path";
39211
+ import path7 from "node:path";
38595
39212
  var PEM_FILENAME = "wix-cli.pem";
38596
39213
  var PEM_MAX_DAYS = 30;
38597
39214
  var attrs = [
@@ -38634,7 +39251,7 @@ var shouldRecreatePem = async (wixCliPemPath) => {
38634
39251
  };
38635
39252
  var generateHostCert = async () => {
38636
39253
  const wixDataDir = getDataDirPath();
38637
- const wixCliPemPath = path6.join(wixDataDir, PEM_FILENAME);
39254
+ const wixCliPemPath = path7.join(wixDataDir, PEM_FILENAME);
38638
39255
  const recreatePem = await shouldRecreatePem(wixCliPemPath);
38639
39256
  if (!recreatePem) {
38640
39257
  const cachedCert = await readFile4(wixCliPemPath, {
@@ -38731,15 +39348,15 @@ function autoOrigin() {
38731
39348
 
38732
39349
  // src/vite/plugins/absolute-html-url.ts
38733
39350
  init_esm_shims();
38734
- import { dirname, isAbsolute, join as join4 } from "node:path";
39351
+ import { dirname as dirname2, isAbsolute as isAbsolute2, join as join5 } from "node:path";
38735
39352
  import { URL as URL2 } from "node:url";
38736
39353
  function getAbsoluteAssetUrl(originalUrl, assetUrl, viteAddress) {
38737
39354
  let url = new URL2(assetUrl, viteAddress).href;
38738
39355
  if (assetUrl.startsWith("/@vite")) {
38739
39356
  return url;
38740
39357
  }
38741
- if (!isAbsolute(assetUrl)) {
38742
- const assetPath = join4(dirname(originalUrl), assetUrl);
39358
+ if (!isAbsolute2(assetUrl)) {
39359
+ const assetPath = join5(dirname2(originalUrl), assetUrl);
38743
39360
  url = new URL2(assetPath, viteAddress).href;
38744
39361
  }
38745
39362
  return url;
@@ -38784,7 +39401,7 @@ async function getViteConfig4(model, options, { baseBackendUrl } = {}) {
38784
39401
  const virtualDashboardScriptEntries = [
38785
39402
  ...virtualDashboardScriptAssets(model)
38786
39403
  ].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
38787
- const embeddedScriptEntries = model.components.filter((0, import_variant3.isType)(DevCenterComponent.EmbeddedScript)).map((comp) => [comp.id, resolve2(model.projectFolder, comp.relativePath)]);
39404
+ const embeddedScriptEntries = model.components.filter((0, import_variant3.isType)(DevCenterComponent.EmbeddedScript)).map((comp) => [comp.id, resolve5(model.projectFolder, comp.relativePath)]);
38788
39405
  const virtualCustomElementHTMLEntries = [
38789
39406
  ...virtualCustomElementPanelHTMLAssets(model)
38790
39407
  ].map(([assetId, component]) => [`html-asset-${component.id}`, assetId]);
@@ -38891,7 +39508,11 @@ async function getViteConfig4(model, options, { baseBackendUrl } = {}) {
38891
39508
  ...options
38892
39509
  }),
38893
39510
  configExtensionsFileEmitter(model),
38894
- ...monitoringPlugins ?? []
39511
+ ...monitoringPlugins ?? [],
39512
+ src_default({
39513
+ ignoreConfigErrors: true,
39514
+ root: model.projectFolder
39515
+ })
38895
39516
  ],
38896
39517
  experimental: {
38897
39518
  /*
@@ -39026,13 +39647,13 @@ init_esm_shims();
39026
39647
  var import_variant5 = __toESM(require_lib(), 1);
39027
39648
  var import_uniqWith = __toESM(require_uniqWith(), 1);
39028
39649
  import { randomUUID as randomUUID2 } from "node:crypto";
39029
- import { dirname as dirname2, join as join5 } from "node:path";
39650
+ import { dirname as dirname3, join as join6 } from "node:path";
39030
39651
  function isTruthy(x) {
39031
39652
  return x != null && x !== false;
39032
39653
  }
39033
39654
  function parseImageField(asset, relativePath) {
39034
39655
  if (RELATIVE_ASSET_PATH_REGEX.test(asset)) {
39035
- return join5(dirname2(`/${relativePath}`), asset);
39656
+ return join6(dirname3(`/${relativePath}`), asset);
39036
39657
  }
39037
39658
  return asset;
39038
39659
  }
@@ -39462,7 +40083,7 @@ async function createAppManifest({
39462
40083
  // src/app-manifest/component-source.ts
39463
40084
  init_esm_shims();
39464
40085
  var import_variant6 = __toESM(require_lib(), 1);
39465
- import path7, { join as join6 } from "node:path";
40086
+ import path8, { join as join7 } from "node:path";
39466
40087
  import { pathToFileURL } from "node:url";
39467
40088
 
39468
40089
  // src/app-manifest/build-output-data-extractor.ts
@@ -39548,7 +40169,7 @@ async function getEventDevSlugs(component, backendDevServerUrl) {
39548
40169
  }
39549
40170
  async function getRegisteredExtensions(model) {
39550
40171
  const backendBuildFolder = getAppBackendBuildFolder(model.projectFolder);
39551
- const outputFilepath = join6(
40172
+ const outputFilepath = join7(
39552
40173
  backendBuildFolder,
39553
40174
  "getRegisteredExtensions.mjs"
39554
40175
  );
@@ -39627,7 +40248,7 @@ var embeddedScriptBuilder = async (model, component, source) => {
39627
40248
  return {
39628
40249
  template: source.buildSource ? extractModuleBundleContent(
39629
40250
  source.buildSource.browserBuildOutput,
39630
- path7.resolve(model.projectFolder, component.relativePath)
40251
+ path8.resolve(model.projectFolder, component.relativePath)
39631
40252
  ) : await getEmbeddedScriptDevTemplate(
39632
40253
  component,
39633
40254
  source.devSource.devServerUrl
@@ -39760,7 +40381,7 @@ function getComponentBuildSourceBuilder(model, browserBuildSource, workerBuildSo
39760
40381
 
39761
40382
  // ../cli-app-manifest/build/index.js
39762
40383
  init_esm_shims();
39763
- import fs from "node:fs/promises";
40384
+ import fs2 from "node:fs/promises";
39764
40385
  var import_rfdc = __toESM(require_rfdc(), 1);
39765
40386
  var import_rfdc2 = __toESM(require_rfdc(), 1);
39766
40387
  var import_rfdc3 = __toESM(require_rfdc(), 1);
@@ -40249,7 +40870,7 @@ var appManifestSchema = z.object({
40249
40870
  });
40250
40871
  async function readAppManifest(filePath) {
40251
40872
  try {
40252
- const configData = await fs.readFile(filePath, "utf-8");
40873
+ const configData = await fs2.readFile(filePath, "utf-8");
40253
40874
  return appManifestSchema.parse(JSON.parse(configData));
40254
40875
  } catch (e) {
40255
40876
  const causeMessage = e instanceof Error ? e.toString() : JSON.stringify(e);
@@ -40260,8 +40881,8 @@ async function readAppManifest(filePath) {
40260
40881
  }
40261
40882
  var cloneDeep = (0, import_rfdc.default)();
40262
40883
  var cloneDeep2 = (0, import_rfdc2.default)();
40263
- var normalizeUrl = (url, baseUrl) => {
40264
- return new URL(url, baseUrl).href;
40884
+ var normalizeUrl = (url, normalizedBaseUrl) => {
40885
+ return new URL(url.startsWith("/") ? `.${url}` : url, normalizedBaseUrl).href;
40265
40886
  };
40266
40887
  var overrideComponentSourceWithNormalizedUrls = (componentSource, normalizedBaseUrl) => {
40267
40888
  const { scriptAsset, iframeUrl } = componentSource;
@@ -40635,4 +41256,4 @@ export {
40635
41256
  he/he.js:
40636
41257
  (*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
40637
41258
  */
40638
- //# sourceMappingURL=chunk-DBASREIW.js.map
41259
+ //# sourceMappingURL=chunk-PGKXOCZN.js.map