@absolutejs/absolute 0.17.10 → 0.17.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build.js CHANGED
@@ -503,14 +503,23 @@ var init_telemetry = __esm(() => {
503
503
  });
504
504
 
505
505
  // src/cli/telemetryEvent.ts
506
- import { readFileSync as readFileSync2 } from "fs";
506
+ import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
507
507
  import { arch, platform } from "os";
508
- import { resolve as resolve2 } from "path";
508
+ import { dirname, join as join3, parse } from "path";
509
509
  var getVersion = () => {
510
510
  try {
511
- const pkgPath = resolve2(import.meta.dir, "../../package.json");
512
- const pkg = JSON.parse(readFileSync2(pkgPath, "utf-8"));
513
- return pkg.version;
511
+ let dir = import.meta.dir;
512
+ while (dir !== parse(dir).root) {
513
+ const candidate = join3(dir, "package.json");
514
+ if (existsSync3(candidate)) {
515
+ const pkg = JSON.parse(readFileSync2(candidate, "utf-8"));
516
+ if (pkg.name === "@absolutejs/absolute") {
517
+ return pkg.version;
518
+ }
519
+ }
520
+ dir = dirname(dir);
521
+ }
522
+ return "unknown";
514
523
  } catch {
515
524
  return "unknown";
516
525
  }
@@ -588,8 +597,8 @@ var init_updateAssetPaths = __esm(() => {
588
597
  });
589
598
 
590
599
  // src/dev/buildHMRClient.ts
591
- import { existsSync as existsSync3 } from "fs";
592
- import { resolve as resolve3 } from "path";
600
+ import { existsSync as existsSync4 } from "fs";
601
+ import { resolve as resolve2 } from "path";
593
602
  var {build: bunBuild } = globalThis.Bun;
594
603
  var hmrClientPath2, buildHMRClient = async () => {
595
604
  const entryPoint = hmrClientPath2;
@@ -612,10 +621,10 @@ var hmrClientPath2, buildHMRClient = async () => {
612
621
  var init_buildHMRClient = __esm(() => {
613
622
  init_telemetryEvent();
614
623
  hmrClientPath2 = (() => {
615
- const fromSource = resolve3(import.meta.dir, "client/hmrClient.ts");
616
- if (existsSync3(fromSource))
624
+ const fromSource = resolve2(import.meta.dir, "client/hmrClient.ts");
625
+ if (existsSync4(fromSource))
617
626
  return fromSource;
618
- return resolve3(import.meta.dir, "dev/client/hmrClient.ts");
627
+ return resolve2(import.meta.dir, "dev/client/hmrClient.ts");
619
628
  })();
620
629
  });
621
630
 
@@ -18385,14 +18394,14 @@ var require_lib4 = __commonJS((exports) => {
18385
18394
  super.checkParams(node, false, true);
18386
18395
  this.scope.exit();
18387
18396
  }
18388
- forwardNoArrowParamsConversionAt(node, parse2) {
18397
+ forwardNoArrowParamsConversionAt(node, parse3) {
18389
18398
  let result;
18390
18399
  if (this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start))) {
18391
18400
  this.state.noArrowParamsConversionAt.push(this.state.start);
18392
- result = parse2();
18401
+ result = parse3();
18393
18402
  this.state.noArrowParamsConversionAt.pop();
18394
18403
  } else {
18395
- result = parse2();
18404
+ result = parse3();
18396
18405
  }
18397
18406
  return result;
18398
18407
  }
@@ -29984,7 +29993,7 @@ var require_lib4 = __commonJS((exports) => {
29984
29993
  return result;
29985
29994
  }
29986
29995
  }
29987
- function parse(input, options) {
29996
+ function parse2(input, options) {
29988
29997
  var _options;
29989
29998
  if (((_options = options) == null ? undefined : _options.sourceType) === "unambiguous") {
29990
29999
  options = Object.assign({}, options);
@@ -30069,7 +30078,7 @@ var require_lib4 = __commonJS((exports) => {
30069
30078
  }
30070
30079
  return cls;
30071
30080
  }
30072
- exports.parse = parse;
30081
+ exports.parse = parse2;
30073
30082
  exports.parseExpression = parseExpression;
30074
30083
  exports.tokTypes = tokTypes;
30075
30084
  });
@@ -34942,7 +34951,7 @@ var require_resolve_uri_umd = __commonJS((exports, module) => {
34942
34951
  }
34943
34952
  url.path = path;
34944
34953
  }
34945
- function resolve4(input, base) {
34954
+ function resolve3(input, base) {
34946
34955
  if (!input && !base)
34947
34956
  return "";
34948
34957
  const url = parseUrl(input);
@@ -34989,7 +34998,7 @@ var require_resolve_uri_umd = __commonJS((exports, module) => {
34989
34998
  return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
34990
34999
  }
34991
35000
  }
34992
- return resolve4;
35001
+ return resolve3;
34993
35002
  });
34994
35003
  });
34995
35004
 
@@ -35643,11 +35652,11 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35643
35652
  function buildNullArray() {
35644
35653
  return { __proto__: null };
35645
35654
  }
35646
- function parse(map) {
35655
+ function parse2(map) {
35647
35656
  return typeof map === "string" ? JSON.parse(map) : map;
35648
35657
  }
35649
35658
  var FlattenMap = function(map, mapUrl) {
35650
- const parsed = parse(map);
35659
+ const parsed = parse2(map);
35651
35660
  if (!("sections" in parsed)) {
35652
35661
  return new TraceMap(parsed, mapUrl);
35653
35662
  }
@@ -35687,7 +35696,7 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35687
35696
  }
35688
35697
  }
35689
35698
  function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
35690
- const parsed = parse(input);
35699
+ const parsed = parse2(input);
35691
35700
  if ("sections" in parsed)
35692
35701
  return recurse(...arguments);
35693
35702
  const map = new TraceMap(parsed, mapUrl);
@@ -35746,7 +35755,7 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35746
35755
  const isString = typeof map === "string";
35747
35756
  if (!isString && map._decodedMemo)
35748
35757
  return map;
35749
- const parsed = parse(map);
35758
+ const parsed = parse2(map);
35750
35759
  const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
35751
35760
  this.version = version;
35752
35761
  this.file = file;
@@ -35755,8 +35764,8 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35755
35764
  this.sources = sources;
35756
35765
  this.sourcesContent = sourcesContent;
35757
35766
  this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;
35758
- const resolve4 = resolver(mapUrl, sourceRoot);
35759
- this.resolvedSources = sources.map(resolve4);
35767
+ const resolve3 = resolver(mapUrl, sourceRoot);
35768
+ this.resolvedSources = sources.map(resolve3);
35760
35769
  const { mappings } = parsed;
35761
35770
  if (typeof mappings === "string") {
35762
35771
  this._encoded = mappings;
@@ -44296,7 +44305,7 @@ var require_introspection = __commonJS((exports) => {
44296
44305
  exports.isStatic = isStatic;
44297
44306
  exports.matchesPattern = matchesPattern;
44298
44307
  exports.referencesImport = referencesImport;
44299
- exports.resolve = resolve4;
44308
+ exports.resolve = resolve3;
44300
44309
  exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore;
44301
44310
  var _t = require_lib3();
44302
44311
  var {
@@ -44562,7 +44571,7 @@ var require_introspection = __commonJS((exports) => {
44562
44571
  nodeMap.set(target.node, result);
44563
44572
  return result;
44564
44573
  }
44565
- function resolve4(dangerous, resolved) {
44574
+ function resolve3(dangerous, resolved) {
44566
44575
  return _resolve.call(this, dangerous, resolved) || this;
44567
44576
  }
44568
44577
  function _resolve(dangerous, resolved) {
@@ -46084,8 +46093,8 @@ var require_semver = __commonJS((exports, module) => {
46084
46093
  }
46085
46094
  }
46086
46095
  var i;
46087
- exports.parse = parse;
46088
- function parse(version, options) {
46096
+ exports.parse = parse2;
46097
+ function parse2(version, options) {
46089
46098
  if (!options || typeof options !== "object") {
46090
46099
  options = {
46091
46100
  loose: !!options,
@@ -46113,12 +46122,12 @@ var require_semver = __commonJS((exports, module) => {
46113
46122
  }
46114
46123
  exports.valid = valid;
46115
46124
  function valid(version, options) {
46116
- var v = parse(version, options);
46125
+ var v = parse2(version, options);
46117
46126
  return v ? v.version : null;
46118
46127
  }
46119
46128
  exports.clean = clean;
46120
46129
  function clean(version, options) {
46121
- var s = parse(version.trim().replace(/^[=v]+/, ""), options);
46130
+ var s = parse2(version.trim().replace(/^[=v]+/, ""), options);
46122
46131
  return s ? s.version : null;
46123
46132
  }
46124
46133
  exports.SemVer = SemVer;
@@ -46350,8 +46359,8 @@ var require_semver = __commonJS((exports, module) => {
46350
46359
  if (eq(version1, version2)) {
46351
46360
  return null;
46352
46361
  } else {
46353
- var v1 = parse(version1);
46354
- var v2 = parse(version2);
46362
+ var v1 = parse2(version1);
46363
+ var v2 = parse2(version2);
46355
46364
  var prefix = "";
46356
46365
  if (v1.prerelease.length || v2.prerelease.length) {
46357
46366
  prefix = "pre";
@@ -47055,7 +47064,7 @@ var require_semver = __commonJS((exports, module) => {
47055
47064
  }
47056
47065
  exports.prerelease = prerelease;
47057
47066
  function prerelease(version, options) {
47058
- var parsed = parse(version, options);
47067
+ var parsed = parse2(version, options);
47059
47068
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
47060
47069
  }
47061
47070
  exports.intersects = intersects;
@@ -47092,7 +47101,7 @@ var require_semver = __commonJS((exports, module) => {
47092
47101
  if (match === null) {
47093
47102
  return null;
47094
47103
  }
47095
- return parse(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
47104
+ return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
47096
47105
  }
47097
47106
  });
47098
47107
 
@@ -49269,10 +49278,10 @@ var require_gensync = __commonJS((exports, module) => {
49269
49278
  const items = Array.from(args[0]);
49270
49279
  return items.map((item) => evaluateSync(item));
49271
49280
  },
49272
- async: function(args, resolve4, reject) {
49281
+ async: function(args, resolve3, reject) {
49273
49282
  const items = Array.from(args[0]);
49274
49283
  if (items.length === 0) {
49275
- Promise.resolve().then(() => resolve4([]));
49284
+ Promise.resolve().then(() => resolve3([]));
49276
49285
  return;
49277
49286
  }
49278
49287
  let count = 0;
@@ -49284,7 +49293,7 @@ var require_gensync = __commonJS((exports, module) => {
49284
49293
  results[i] = val;
49285
49294
  count += 1;
49286
49295
  if (count === results.length)
49287
- resolve4(results);
49296
+ resolve3(results);
49288
49297
  }, reject);
49289
49298
  });
49290
49299
  }
@@ -49299,13 +49308,13 @@ var require_gensync = __commonJS((exports, module) => {
49299
49308
  }
49300
49309
  return evaluateSync(items[0]);
49301
49310
  },
49302
- async: function(args, resolve4, reject) {
49311
+ async: function(args, resolve3, reject) {
49303
49312
  const items = Array.from(args[0]);
49304
49313
  if (items.length === 0) {
49305
49314
  throw makeError("Must race at least 1 item", GENSYNC_RACE_NONEMPTY);
49306
49315
  }
49307
49316
  for (const item of items) {
49308
- evaluateAsync(item, resolve4, reject);
49317
+ evaluateAsync(item, resolve3, reject);
49309
49318
  }
49310
49319
  }
49311
49320
  })
@@ -49316,8 +49325,8 @@ var require_gensync = __commonJS((exports, module) => {
49316
49325
  return evaluateSync(genFn.apply(this, args));
49317
49326
  },
49318
49327
  async: function(...args) {
49319
- return new Promise((resolve4, reject) => {
49320
- evaluateAsync(genFn.apply(this, args), resolve4, reject);
49328
+ return new Promise((resolve3, reject) => {
49329
+ evaluateAsync(genFn.apply(this, args), resolve3, reject);
49321
49330
  });
49322
49331
  },
49323
49332
  errback: function(...args) {
@@ -49385,18 +49394,18 @@ var require_gensync = __commonJS((exports, module) => {
49385
49394
  sync: function(args) {
49386
49395
  return sync.apply(this, args);
49387
49396
  },
49388
- async: function(args, resolve4, reject) {
49397
+ async: function(args, resolve3, reject) {
49389
49398
  if (async) {
49390
- async.apply(this, args).then(resolve4, reject);
49399
+ async.apply(this, args).then(resolve3, reject);
49391
49400
  } else if (errback) {
49392
49401
  errback.call(this, ...args, (err, value2) => {
49393
49402
  if (err == null)
49394
- resolve4(value2);
49403
+ resolve3(value2);
49395
49404
  else
49396
49405
  reject(err);
49397
49406
  });
49398
49407
  } else {
49399
- resolve4(sync.apply(this, args));
49408
+ resolve3(sync.apply(this, args));
49400
49409
  }
49401
49410
  }
49402
49411
  });
@@ -49444,7 +49453,7 @@ var require_gensync = __commonJS((exports, module) => {
49444
49453
  }
49445
49454
  return value2;
49446
49455
  }
49447
- function evaluateAsync(gen, resolve4, reject) {
49456
+ function evaluateAsync(gen, resolve3, reject) {
49448
49457
  (function step() {
49449
49458
  try {
49450
49459
  let value2;
@@ -49465,7 +49474,7 @@ var require_gensync = __commonJS((exports, module) => {
49465
49474
  return;
49466
49475
  }
49467
49476
  }
49468
- return resolve4(value2);
49477
+ return resolve3(value2);
49469
49478
  } catch (err) {
49470
49479
  return reject(err);
49471
49480
  }
@@ -49913,8 +49922,8 @@ var require_caching = __commonJS((exports) => {
49913
49922
  this.released = false;
49914
49923
  this.promise = undefined;
49915
49924
  this._resolve = undefined;
49916
- this.promise = new Promise((resolve4) => {
49917
- this._resolve = resolve4;
49925
+ this.promise = new Promise((resolve3) => {
49926
+ this._resolve = resolve3;
49918
49927
  });
49919
49928
  }
49920
49929
  release(value2) {
@@ -50166,16 +50175,16 @@ var require_package = __commonJS((exports) => {
50166
50175
  let pkg = null;
50167
50176
  const directories = [];
50168
50177
  let isPackage = true;
50169
- let dirname = _path().dirname(filepath);
50170
- while (!pkg && _path().basename(dirname) !== "node_modules") {
50171
- directories.push(dirname);
50172
- pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME));
50173
- const nextLoc = _path().dirname(dirname);
50174
- if (dirname === nextLoc) {
50178
+ let dirname2 = _path().dirname(filepath);
50179
+ while (!pkg && _path().basename(dirname2) !== "node_modules") {
50180
+ directories.push(dirname2);
50181
+ pkg = yield* readConfigPackage(_path().join(dirname2, PACKAGE_FILENAME));
50182
+ const nextLoc = _path().dirname(dirname2);
50183
+ if (dirname2 === nextLoc) {
50175
50184
  isPackage = false;
50176
50185
  break;
50177
50186
  }
50178
- dirname = nextLoc;
50187
+ dirname2 = nextLoc;
50179
50188
  }
50180
50189
  return {
50181
50190
  filepath,
@@ -50227,7 +50236,7 @@ var require_parse2 = __commonJS((exports, module) => {
50227
50236
  var token;
50228
50237
  var key;
50229
50238
  var root;
50230
- module.exports = function parse(text, reviver) {
50239
+ module.exports = function parse2(text, reviver) {
50231
50240
  source = String(text);
50232
50241
  parseState = "start";
50233
50242
  stack = [];
@@ -51291,10 +51300,10 @@ var require_stringify = __commonJS((exports, module) => {
51291
51300
 
51292
51301
  // node_modules/json5/lib/index.js
51293
51302
  var require_lib12 = __commonJS((exports, module) => {
51294
- var parse = require_parse2();
51303
+ var parse2 = require_parse2();
51295
51304
  var stringify = require_stringify();
51296
51305
  var JSON5 = {
51297
- parse,
51306
+ parse: parse2,
51298
51307
  stringify
51299
51308
  };
51300
51309
  module.exports = JSON5;
@@ -51473,9 +51482,9 @@ var require_functional = __commonJS((exports) => {
51473
51482
  };
51474
51483
  }
51475
51484
  } else {
51476
- let resolve4, reject;
51485
+ let resolve3, reject;
51477
51486
  resultP = new Promise((res, rej) => {
51478
- resolve4 = res;
51487
+ resolve3 = res;
51479
51488
  reject = rej;
51480
51489
  });
51481
51490
  try {
@@ -51485,7 +51494,7 @@ var require_functional = __commonJS((exports) => {
51485
51494
  };
51486
51495
  resultP = null;
51487
51496
  if (promiseReferenced)
51488
- resolve4(result.value);
51497
+ resolve3(result.value);
51489
51498
  } catch (error) {
51490
51499
  result = {
51491
51500
  ok: false,
@@ -52330,7 +52339,7 @@ var require_parse3 = __commonJS((exports, module) => {
52330
52339
  return false;
52331
52340
  });
52332
52341
  }
52333
- module.exports = function parse(all, queries) {
52342
+ module.exports = function parse2(all, queries) {
52334
52343
  if (!Array.isArray(queries))
52335
52344
  queries = [queries];
52336
52345
  return flatten(queries.map(function(block) {
@@ -52619,7 +52628,7 @@ var require_browserslist = __commonJS((exports, module) => {
52619
52628
  function isSupported(flags, withPartial) {
52620
52629
  return typeof flags === "string" && (flags.indexOf("y") >= 0 || withPartial && flags.indexOf("a") >= 0);
52621
52630
  }
52622
- function resolve4(queries, context) {
52631
+ function resolve3(queries, context) {
52623
52632
  return parseQueries(queries).reduce(function(result, node, index) {
52624
52633
  if (node.not && index === 0) {
52625
52634
  throw new BrowserslistError("Write any browsers query (for instance, `defaults`) " + "before `" + node.query + "`");
@@ -52710,7 +52719,7 @@ var require_browserslist = __commonJS((exports, module) => {
52710
52719
  var cacheKey = JSON.stringify([queries, context]);
52711
52720
  if (cache[cacheKey])
52712
52721
  return cache[cacheKey];
52713
- var result = uniq(resolve4(queries, context)).sort(function(name1, name2) {
52722
+ var result = uniq(resolve3(queries, context)).sort(function(name1, name2) {
52714
52723
  name1 = name1.split(" ");
52715
52724
  name2 = name2.split(" ");
52716
52725
  if (name1[0] === name2[0]) {
@@ -53327,7 +53336,7 @@ var require_browserslist = __commonJS((exports, module) => {
53327
53336
  matches: [],
53328
53337
  regexp: /^current\s+node$/i,
53329
53338
  select: function(context) {
53330
- return [env.currentNode(resolve4, context)];
53339
+ return [env.currentNode(resolve3, context)];
53331
53340
  }
53332
53341
  },
53333
53342
  maintained_node: {
@@ -53340,7 +53349,7 @@ var require_browserslist = __commonJS((exports, module) => {
53340
53349
  }).map(function(key) {
53341
53350
  return "node " + key.slice(1);
53342
53351
  });
53343
- return resolve4(queries, context);
53352
+ return resolve3(queries, context);
53344
53353
  }
53345
53354
  },
53346
53355
  phantomjs_1_9: {
@@ -53399,14 +53408,14 @@ var require_browserslist = __commonJS((exports, module) => {
53399
53408
  regexp: /^extends (.+)$/i,
53400
53409
  needsPath: true,
53401
53410
  select: function(context, node) {
53402
- return resolve4(env.loadQueries(context, node.config), context);
53411
+ return resolve3(env.loadQueries(context, node.config), context);
53403
53412
  }
53404
53413
  },
53405
53414
  defaults: {
53406
53415
  matches: [],
53407
53416
  regexp: /^defaults$/i,
53408
53417
  select: function(context) {
53409
- return resolve4(browserslist.defaults, context);
53418
+ return resolve3(browserslist.defaults, context);
53410
53419
  }
53411
53420
  },
53412
53421
  dead: {
@@ -53421,7 +53430,7 @@ var require_browserslist = __commonJS((exports, module) => {
53421
53430
  "op_mob <= 12.1",
53422
53431
  "samsung 4"
53423
53432
  ];
53424
- return resolve4(dead, context);
53433
+ return resolve3(dead, context);
53425
53434
  }
53426
53435
  },
53427
53436
  unknown: {
@@ -54348,8 +54357,8 @@ var require_semver2 = __commonJS((exports, module) => {
54348
54357
  }
54349
54358
  }
54350
54359
  var i;
54351
- exports.parse = parse;
54352
- function parse(version, options) {
54360
+ exports.parse = parse2;
54361
+ function parse2(version, options) {
54353
54362
  if (!options || typeof options !== "object") {
54354
54363
  options = {
54355
54364
  loose: !!options,
@@ -54377,12 +54386,12 @@ var require_semver2 = __commonJS((exports, module) => {
54377
54386
  }
54378
54387
  exports.valid = valid;
54379
54388
  function valid(version, options) {
54380
- var v = parse(version, options);
54389
+ var v = parse2(version, options);
54381
54390
  return v ? v.version : null;
54382
54391
  }
54383
54392
  exports.clean = clean;
54384
54393
  function clean(version, options) {
54385
- var s = parse(version.trim().replace(/^[=v]+/, ""), options);
54394
+ var s = parse2(version.trim().replace(/^[=v]+/, ""), options);
54386
54395
  return s ? s.version : null;
54387
54396
  }
54388
54397
  exports.SemVer = SemVer;
@@ -54614,8 +54623,8 @@ var require_semver2 = __commonJS((exports, module) => {
54614
54623
  if (eq(version1, version2)) {
54615
54624
  return null;
54616
54625
  } else {
54617
- var v1 = parse(version1);
54618
- var v2 = parse(version2);
54626
+ var v1 = parse2(version1);
54627
+ var v2 = parse2(version2);
54619
54628
  var prefix = "";
54620
54629
  if (v1.prerelease.length || v2.prerelease.length) {
54621
54630
  prefix = "pre";
@@ -55319,7 +55328,7 @@ var require_semver2 = __commonJS((exports, module) => {
55319
55328
  }
55320
55329
  exports.prerelease = prerelease;
55321
55330
  function prerelease(version, options) {
55322
- var parsed = parse(version, options);
55331
+ var parsed = parse2(version, options);
55323
55332
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
55324
55333
  }
55325
55334
  exports.intersects = intersects;
@@ -55356,7 +55365,7 @@ var require_semver2 = __commonJS((exports, module) => {
55356
55365
  if (match === null) {
55357
55366
  return null;
55358
55367
  }
55359
- return parse(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
55368
+ return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
55360
55369
  }
55361
55370
  });
55362
55371
 
@@ -56787,44 +56796,44 @@ var require_config_descriptors = __commonJS((exports) => {
56787
56796
  function* handlerOf(value2) {
56788
56797
  return value2;
56789
56798
  }
56790
- function optionsWithResolvedBrowserslistConfigFile(options, dirname) {
56799
+ function optionsWithResolvedBrowserslistConfigFile(options, dirname2) {
56791
56800
  if (typeof options.browserslistConfigFile === "string") {
56792
- options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname);
56801
+ options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname2);
56793
56802
  }
56794
56803
  return options;
56795
56804
  }
56796
- function createCachedDescriptors(dirname, options, alias) {
56805
+ function createCachedDescriptors(dirname2, options, alias) {
56797
56806
  const {
56798
56807
  plugins,
56799
56808
  presets,
56800
56809
  passPerPreset
56801
56810
  } = options;
56802
56811
  return {
56803
- options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
56804
- plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]),
56805
- presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([])
56812
+ options: optionsWithResolvedBrowserslistConfigFile(options, dirname2),
56813
+ plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname2)(alias) : () => handlerOf([]),
56814
+ presets: presets ? () => createCachedPresetDescriptors(presets, dirname2)(alias)(!!passPerPreset) : () => handlerOf([])
56806
56815
  };
56807
56816
  }
56808
- function createUncachedDescriptors(dirname, options, alias) {
56817
+ function createUncachedDescriptors(dirname2, options, alias) {
56809
56818
  return {
56810
- options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
56811
- plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)),
56812
- presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset))
56819
+ options: optionsWithResolvedBrowserslistConfigFile(options, dirname2),
56820
+ plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname2, alias)),
56821
+ presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname2, alias, !!options.passPerPreset))
56813
56822
  };
56814
56823
  }
56815
56824
  var PRESET_DESCRIPTOR_CACHE = new WeakMap;
56816
56825
  var createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
56817
- const dirname = cache.using((dir) => dir);
56826
+ const dirname2 = cache.using((dir) => dir);
56818
56827
  return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
56819
- const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset);
56828
+ const descriptors = yield* createPresetDescriptors(items, dirname2, alias, passPerPreset);
56820
56829
  return descriptors.map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
56821
56830
  }));
56822
56831
  });
56823
56832
  var PLUGIN_DESCRIPTOR_CACHE = new WeakMap;
56824
56833
  var createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
56825
- const dirname = cache.using((dir) => dir);
56834
+ const dirname2 = cache.using((dir) => dir);
56826
56835
  return (0, _caching.makeStrongCache)(function* (alias) {
56827
- const descriptors = yield* createPluginDescriptors(items, dirname, alias);
56836
+ const descriptors = yield* createPluginDescriptors(items, dirname2, alias);
56828
56837
  return descriptors.map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
56829
56838
  });
56830
56839
  });
@@ -56855,14 +56864,14 @@ var require_config_descriptors = __commonJS((exports) => {
56855
56864
  }
56856
56865
  return desc;
56857
56866
  }
56858
- function* createPresetDescriptors(items, dirname, alias, passPerPreset) {
56859
- return yield* createDescriptors("preset", items, dirname, alias, passPerPreset);
56867
+ function* createPresetDescriptors(items, dirname2, alias, passPerPreset) {
56868
+ return yield* createDescriptors("preset", items, dirname2, alias, passPerPreset);
56860
56869
  }
56861
- function* createPluginDescriptors(items, dirname, alias) {
56862
- return yield* createDescriptors("plugin", items, dirname, alias);
56870
+ function* createPluginDescriptors(items, dirname2, alias) {
56871
+ return yield* createDescriptors("plugin", items, dirname2, alias);
56863
56872
  }
56864
- function* createDescriptors(type, items, dirname, alias, ownPass) {
56865
- const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, {
56873
+ function* createDescriptors(type, items, dirname2, alias, ownPass) {
56874
+ const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname2, {
56866
56875
  type,
56867
56876
  alias: `${alias}$${index}`,
56868
56877
  ownPass: !!ownPass
@@ -56870,7 +56879,7 @@ var require_config_descriptors = __commonJS((exports) => {
56870
56879
  assertNoDuplicates(descriptors);
56871
56880
  return descriptors;
56872
56881
  }
56873
- function* createDescriptor(pair, dirname, {
56882
+ function* createDescriptor(pair, dirname2, {
56874
56883
  type,
56875
56884
  alias,
56876
56885
  ownPass
@@ -56900,7 +56909,7 @@ var require_config_descriptors = __commonJS((exports) => {
56900
56909
  ({
56901
56910
  filepath,
56902
56911
  value: value2
56903
- } = yield* resolver(value2, dirname));
56912
+ } = yield* resolver(value2, dirname2));
56904
56913
  file = {
56905
56914
  request,
56906
56915
  resolved: filepath
@@ -56927,7 +56936,7 @@ var require_config_descriptors = __commonJS((exports) => {
56927
56936
  alias: filepath || alias,
56928
56937
  value: value2,
56929
56938
  options,
56930
- dirname,
56939
+ dirname: dirname2,
56931
56940
  ownPass,
56932
56941
  file
56933
56942
  };
@@ -56972,10 +56981,10 @@ var require_item = __commonJS((exports) => {
56972
56981
  return new ConfigItem(desc);
56973
56982
  }
56974
56983
  function* createConfigItem(value2, {
56975
- dirname = ".",
56984
+ dirname: dirname2 = ".",
56976
56985
  type
56977
56986
  } = {}) {
56978
- const descriptor = yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname), {
56987
+ const descriptor = yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname2), {
56979
56988
  type,
56980
56989
  alias: "programmatic item"
56981
56990
  });
@@ -57591,8 +57600,8 @@ var require_pattern_to_regex = __commonJS((exports) => {
57591
57600
  function escapeRegExp(string) {
57592
57601
  return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
57593
57602
  }
57594
- function pathToPattern(pattern, dirname) {
57595
- const parts = _path().resolve(dirname, pattern).split(_path().sep);
57603
+ function pathToPattern(pattern, dirname2) {
57604
+ const parts = _path().resolve(dirname2, pattern).split(_path().sep);
57596
57605
  return new RegExp(["^", ...parts.map((part, i) => {
57597
57606
  const last = i === parts.length - 1;
57598
57607
  if (part === "**")
@@ -57941,10 +57950,10 @@ var require_config_chain = __commonJS((exports) => {
57941
57950
  });
57942
57951
  }
57943
57952
  function buildRootDescriptors({
57944
- dirname,
57953
+ dirname: dirname2,
57945
57954
  options
57946
57955
  }, alias, descriptors) {
57947
- return descriptors(dirname, options, alias);
57956
+ return descriptors(dirname2, options, alias);
57948
57957
  }
57949
57958
  function buildProgrammaticLogger(_, context, baseLogger) {
57950
57959
  var _context$caller;
@@ -57956,25 +57965,25 @@ var require_config_chain = __commonJS((exports) => {
57956
57965
  });
57957
57966
  }
57958
57967
  function buildEnvDescriptors({
57959
- dirname,
57968
+ dirname: dirname2,
57960
57969
  options
57961
57970
  }, alias, descriptors, envName) {
57962
57971
  var _options$env;
57963
57972
  const opts = (_options$env = options.env) == null ? undefined : _options$env[envName];
57964
- return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null;
57973
+ return opts ? descriptors(dirname2, opts, `${alias}.env["${envName}"]`) : null;
57965
57974
  }
57966
57975
  function buildOverrideDescriptors({
57967
- dirname,
57976
+ dirname: dirname2,
57968
57977
  options
57969
57978
  }, alias, descriptors, index) {
57970
57979
  var _options$overrides;
57971
57980
  const opts = (_options$overrides = options.overrides) == null ? undefined : _options$overrides[index];
57972
57981
  if (!opts)
57973
57982
  throw new Error("Assertion failure - missing override");
57974
- return descriptors(dirname, opts, `${alias}.overrides[${index}]`);
57983
+ return descriptors(dirname2, opts, `${alias}.overrides[${index}]`);
57975
57984
  }
57976
57985
  function buildOverrideEnvDescriptors({
57977
- dirname,
57986
+ dirname: dirname2,
57978
57987
  options
57979
57988
  }, alias, descriptors, index, envName) {
57980
57989
  var _options$overrides2, _override$env;
@@ -57982,7 +57991,7 @@ var require_config_chain = __commonJS((exports) => {
57982
57991
  if (!override)
57983
57992
  throw new Error("Assertion failure - missing override");
57984
57993
  const opts = (_override$env = override.env) == null ? undefined : _override$env[envName];
57985
- return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
57994
+ return opts ? descriptors(dirname2, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
57986
57995
  }
57987
57996
  function makeChainWalker({
57988
57997
  root,
@@ -57993,18 +58002,18 @@ var require_config_chain = __commonJS((exports) => {
57993
58002
  }) {
57994
58003
  return function* chainWalker(input, context, files = new Set, baseLogger) {
57995
58004
  const {
57996
- dirname
58005
+ dirname: dirname2
57997
58006
  } = input;
57998
58007
  const flattenedConfigs = [];
57999
58008
  const rootOpts = root(input);
58000
- if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {
58009
+ if (configIsApplicable(rootOpts, dirname2, context, input.filepath)) {
58001
58010
  flattenedConfigs.push({
58002
58011
  config: rootOpts,
58003
58012
  envName: undefined,
58004
58013
  index: undefined
58005
58014
  });
58006
58015
  const envOpts = env(input, context.envName);
58007
- if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) {
58016
+ if (envOpts && configIsApplicable(envOpts, dirname2, context, input.filepath)) {
58008
58017
  flattenedConfigs.push({
58009
58018
  config: envOpts,
58010
58019
  envName: context.envName,
@@ -58013,14 +58022,14 @@ var require_config_chain = __commonJS((exports) => {
58013
58022
  }
58014
58023
  (rootOpts.options.overrides || []).forEach((_, index) => {
58015
58024
  const overrideOps = overrides(input, index);
58016
- if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {
58025
+ if (configIsApplicable(overrideOps, dirname2, context, input.filepath)) {
58017
58026
  flattenedConfigs.push({
58018
58027
  config: overrideOps,
58019
58028
  index,
58020
58029
  envName: undefined
58021
58030
  });
58022
58031
  const overrideEnvOpts = overridesEnv(input, index, context.envName);
58023
- if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) {
58032
+ if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname2, context, input.filepath)) {
58024
58033
  flattenedConfigs.push({
58025
58034
  config: overrideEnvOpts,
58026
58035
  index,
@@ -58037,7 +58046,7 @@ var require_config_chain = __commonJS((exports) => {
58037
58046
  only
58038
58047
  }
58039
58048
  }
58040
- }) => shouldIgnore(context, ignore, only, dirname))) {
58049
+ }) => shouldIgnore(context, ignore, only, dirname2))) {
58041
58050
  return null;
58042
58051
  }
58043
58052
  const chain = emptyChain();
@@ -58047,7 +58056,7 @@ var require_config_chain = __commonJS((exports) => {
58047
58056
  index,
58048
58057
  envName
58049
58058
  } of flattenedConfigs) {
58050
- if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) {
58059
+ if (!(yield* mergeExtendsChain(chain, config.options, dirname2, context, files, baseLogger))) {
58051
58060
  return null;
58052
58061
  }
58053
58062
  logger(config, index, envName);
@@ -58056,10 +58065,10 @@ var require_config_chain = __commonJS((exports) => {
58056
58065
  return chain;
58057
58066
  };
58058
58067
  }
58059
- function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) {
58068
+ function* mergeExtendsChain(chain, opts, dirname2, context, files, baseLogger) {
58060
58069
  if (opts.extends === undefined)
58061
58070
  return true;
58062
- const file = yield* (0, _index.loadConfig)(opts.extends, dirname, context.envName, context.caller);
58071
+ const file = yield* (0, _index.loadConfig)(opts.extends, dirname2, context.envName, context.caller);
58063
58072
  if (files.has(file)) {
58064
58073
  throw new Error(`Configuration cycle detected loading ${file.filepath}.
58065
58074
  ` + `File already loaded following the config chain:
@@ -58155,12 +58164,12 @@ var require_config_chain = __commonJS((exports) => {
58155
58164
  }
58156
58165
  function configIsApplicable({
58157
58166
  options
58158
- }, dirname, context, configName) {
58159
- return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName));
58167
+ }, dirname2, context, configName) {
58168
+ return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname2, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname2, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname2, configName));
58160
58169
  }
58161
- function configFieldIsApplicable(context, test, dirname, configName) {
58170
+ function configFieldIsApplicable(context, test, dirname2, configName) {
58162
58171
  const patterns = Array.isArray(test) ? test : [test];
58163
- return matchesPatterns(context, patterns, dirname, configName);
58172
+ return matchesPatterns(context, patterns, dirname2, configName);
58164
58173
  }
58165
58174
  function ignoreListReplacer(_key, value2) {
58166
58175
  if (value2 instanceof RegExp) {
@@ -58168,19 +58177,19 @@ var require_config_chain = __commonJS((exports) => {
58168
58177
  }
58169
58178
  return value2;
58170
58179
  }
58171
- function shouldIgnore(context, ignore, only, dirname) {
58172
- if (ignore && matchesPatterns(context, ignore, dirname)) {
58180
+ function shouldIgnore(context, ignore, only, dirname2) {
58181
+ if (ignore && matchesPatterns(context, ignore, dirname2)) {
58173
58182
  var _context$filename;
58174
- const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`;
58183
+ const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname2}"`;
58175
58184
  debug(message);
58176
58185
  if (context.showConfig) {
58177
58186
  console.log(message);
58178
58187
  }
58179
58188
  return true;
58180
58189
  }
58181
- if (only && !matchesPatterns(context, only, dirname)) {
58190
+ if (only && !matchesPatterns(context, only, dirname2)) {
58182
58191
  var _context$filename2;
58183
- const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`;
58192
+ const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname2}"`;
58184
58193
  debug(message);
58185
58194
  if (context.showConfig) {
58186
58195
  console.log(message);
@@ -58189,13 +58198,13 @@ var require_config_chain = __commonJS((exports) => {
58189
58198
  }
58190
58199
  return false;
58191
58200
  }
58192
- function matchesPatterns(context, patterns, dirname, configName) {
58193
- return patterns.some((pattern) => matchPattern(pattern, dirname, context.filename, context, configName));
58201
+ function matchesPatterns(context, patterns, dirname2, configName) {
58202
+ return patterns.some((pattern) => matchPattern(pattern, dirname2, context.filename, context, configName));
58194
58203
  }
58195
- function matchPattern(pattern, dirname, pathToTest, context, configName) {
58204
+ function matchPattern(pattern, dirname2, pathToTest, context, configName) {
58196
58205
  if (typeof pattern === "function") {
58197
58206
  return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, {
58198
- dirname,
58207
+ dirname: dirname2,
58199
58208
  envName: context.envName,
58200
58209
  caller: context.caller
58201
58210
  });
@@ -58204,7 +58213,7 @@ var require_config_chain = __commonJS((exports) => {
58204
58213
  throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName);
58205
58214
  }
58206
58215
  if (typeof pattern === "string") {
58207
- pattern = (0, _patternToRegex.default)(pattern, dirname);
58216
+ pattern = (0, _patternToRegex.default)(pattern, dirname2);
58208
58217
  }
58209
58218
  return pattern.test(pathToTest);
58210
58219
  }
@@ -58628,7 +58637,7 @@ var require_full = __commonJS((exports) => {
58628
58637
  var makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({
58629
58638
  value: value2,
58630
58639
  options,
58631
- dirname,
58640
+ dirname: dirname2,
58632
58641
  alias
58633
58642
  }, cache) {
58634
58643
  if (options === false)
@@ -58640,7 +58649,7 @@ var require_full = __commonJS((exports) => {
58640
58649
  const factory = (0, _async.maybeAsync)(value2, `You appear to be using an async plugin/preset, but Babel has been called synchronously`);
58641
58650
  const api = Object.assign({}, context, apiFactory(cache, externalDependencies));
58642
58651
  try {
58643
- item = yield* factory(api, options, dirname);
58652
+ item = yield* factory(api, options, dirname2);
58644
58653
  } catch (e) {
58645
58654
  if (alias) {
58646
58655
  e.message += ` (While processing: ${JSON.stringify(alias)})`;
@@ -58669,7 +58678,7 @@ var require_full = __commonJS((exports) => {
58669
58678
  return {
58670
58679
  value: item,
58671
58680
  options,
58672
- dirname,
58681
+ dirname: dirname2,
58673
58682
  alias,
58674
58683
  externalDependencies: (0, _deepArray.finalize)(externalDependencies)
58675
58684
  };
@@ -58679,7 +58688,7 @@ var require_full = __commonJS((exports) => {
58679
58688
  var instantiatePlugin = (0, _caching.makeWeakCache)(function* ({
58680
58689
  value: value2,
58681
58690
  options,
58682
- dirname,
58691
+ dirname: dirname2,
58683
58692
  alias,
58684
58693
  externalDependencies
58685
58694
  }, cache) {
@@ -58694,7 +58703,7 @@ var require_full = __commonJS((exports) => {
58694
58703
  alias: `${alias}$inherits`,
58695
58704
  value: plugin.inherits,
58696
58705
  options,
58697
- dirname
58706
+ dirname: dirname2
58698
58707
  };
58699
58708
  const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run) => {
58700
58709
  return cache.invalidate((data) => run(inheritsDescriptor, data));
@@ -58742,14 +58751,14 @@ var require_full = __commonJS((exports) => {
58742
58751
  };
58743
58752
  var instantiatePreset = (0, _caching.makeWeakCacheSync)(({
58744
58753
  value: value2,
58745
- dirname,
58754
+ dirname: dirname2,
58746
58755
  alias,
58747
58756
  externalDependencies
58748
58757
  }) => {
58749
58758
  return {
58750
58759
  options: (0, _options.validate)("preset", value2),
58751
58760
  alias,
58752
- dirname,
58761
+ dirname: dirname2,
58753
58762
  externalDependencies
58754
58763
  };
58755
58764
  });
@@ -60370,7 +60379,7 @@ var require_lib15 = __commonJS((exports) => {
60370
60379
  addExternalDependency: () => () => {}
60371
60380
  });
60372
60381
  function declare(builder) {
60373
- return (api, options, dirname) => {
60382
+ return (api, options, dirname2) => {
60374
60383
  let clonedApi;
60375
60384
  for (const name of Object.keys(apiPolyfills)) {
60376
60385
  if (api[name])
@@ -60378,7 +60387,7 @@ var require_lib15 = __commonJS((exports) => {
60378
60387
  clonedApi != null || (clonedApi = copyApiObject(api));
60379
60388
  clonedApi[name] = apiPolyfills[name](clonedApi);
60380
60389
  }
60381
- return builder(clonedApi != null ? clonedApi : api, options || {}, dirname);
60390
+ return builder(clonedApi != null ? clonedApi : api, options || {}, dirname2);
60382
60391
  };
60383
60392
  }
60384
60393
  var declarePreset = exports.declarePreset = declare;
@@ -60606,8 +60615,8 @@ var require_semver3 = __commonJS((exports, module) => {
60606
60615
  }
60607
60616
  }
60608
60617
  var i;
60609
- exports.parse = parse;
60610
- function parse(version, options) {
60618
+ exports.parse = parse2;
60619
+ function parse2(version, options) {
60611
60620
  if (!options || typeof options !== "object") {
60612
60621
  options = {
60613
60622
  loose: !!options,
@@ -60635,12 +60644,12 @@ var require_semver3 = __commonJS((exports, module) => {
60635
60644
  }
60636
60645
  exports.valid = valid;
60637
60646
  function valid(version, options) {
60638
- var v = parse(version, options);
60647
+ var v = parse2(version, options);
60639
60648
  return v ? v.version : null;
60640
60649
  }
60641
60650
  exports.clean = clean;
60642
60651
  function clean(version, options) {
60643
- var s = parse(version.trim().replace(/^[=v]+/, ""), options);
60652
+ var s = parse2(version.trim().replace(/^[=v]+/, ""), options);
60644
60653
  return s ? s.version : null;
60645
60654
  }
60646
60655
  exports.SemVer = SemVer;
@@ -60872,8 +60881,8 @@ var require_semver3 = __commonJS((exports, module) => {
60872
60881
  if (eq(version1, version2)) {
60873
60882
  return null;
60874
60883
  } else {
60875
- var v1 = parse(version1);
60876
- var v2 = parse(version2);
60884
+ var v1 = parse2(version1);
60885
+ var v2 = parse2(version2);
60877
60886
  var prefix = "";
60878
60887
  if (v1.prerelease.length || v2.prerelease.length) {
60879
60888
  prefix = "pre";
@@ -61577,7 +61586,7 @@ var require_semver3 = __commonJS((exports, module) => {
61577
61586
  }
61578
61587
  exports.prerelease = prerelease;
61579
61588
  function prerelease(version, options) {
61580
- var parsed = parse(version, options);
61589
+ var parsed = parse2(version, options);
61581
61590
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
61582
61591
  }
61583
61592
  exports.intersects = intersects;
@@ -61614,7 +61623,7 @@ var require_semver3 = __commonJS((exports, module) => {
61614
61623
  if (match === null) {
61615
61624
  return null;
61616
61625
  }
61617
- return parse(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
61626
+ return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
61618
61627
  }
61619
61628
  });
61620
61629
 
@@ -67476,24 +67485,24 @@ var require_configuration = __commonJS((exports) => {
67476
67485
  };
67477
67486
  });
67478
67487
  function findConfigUpwards(rootDir) {
67479
- let dirname = rootDir;
67488
+ let dirname2 = rootDir;
67480
67489
  for (;; ) {
67481
67490
  for (const filename of ROOT_CONFIG_FILENAMES) {
67482
- if (_fs().existsSync(_path().join(dirname, filename))) {
67483
- return dirname;
67491
+ if (_fs().existsSync(_path().join(dirname2, filename))) {
67492
+ return dirname2;
67484
67493
  }
67485
67494
  }
67486
- const nextDir = _path().dirname(dirname);
67487
- if (dirname === nextDir)
67495
+ const nextDir = _path().dirname(dirname2);
67496
+ if (dirname2 === nextDir)
67488
67497
  break;
67489
- dirname = nextDir;
67498
+ dirname2 = nextDir;
67490
67499
  }
67491
67500
  return null;
67492
67501
  }
67493
67502
  function* findRelativeConfig(packageData, envName, caller) {
67494
67503
  let config = null;
67495
67504
  let ignore = null;
67496
- const dirname = _path().dirname(packageData.filepath);
67505
+ const dirname2 = _path().dirname(packageData.filepath);
67497
67506
  for (const loc of packageData.directories) {
67498
67507
  if (!config) {
67499
67508
  var _packageData$pkg;
@@ -67503,7 +67512,7 @@ var require_configuration = __commonJS((exports) => {
67503
67512
  const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
67504
67513
  ignore = yield* readIgnoreConfig(ignoreLoc);
67505
67514
  if (ignore) {
67506
- debug("Found ignore %o from %o.", ignore.filepath, dirname);
67515
+ debug("Found ignore %o from %o.", ignore.filepath, dirname2);
67507
67516
  }
67508
67517
  }
67509
67518
  }
@@ -67512,26 +67521,26 @@ var require_configuration = __commonJS((exports) => {
67512
67521
  ignore
67513
67522
  };
67514
67523
  }
67515
- function findRootConfig(dirname, envName, caller) {
67516
- return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);
67524
+ function findRootConfig(dirname2, envName, caller) {
67525
+ return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname2, envName, caller);
67517
67526
  }
67518
- function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) {
67519
- const configs = yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname, filename), envName, caller)));
67527
+ function* loadOneConfig(names, dirname2, envName, caller, previousConfig = null) {
67528
+ const configs = yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname2, filename), envName, caller)));
67520
67529
  const config = configs.reduce((previousConfig2, config2) => {
67521
67530
  if (config2 && previousConfig2) {
67522
67531
  throw new _configError.default(`Multiple configuration files found. Please remove one:
67523
67532
  ` + ` - ${_path().basename(previousConfig2.filepath)}
67524
67533
  ` + ` - ${config2.filepath}
67525
- ` + `from ${dirname}`);
67534
+ ` + `from ${dirname2}`);
67526
67535
  }
67527
67536
  return config2 || previousConfig2;
67528
67537
  }, previousConfig);
67529
67538
  if (config) {
67530
- debug("Found configuration %o from %o.", config.filepath, dirname);
67539
+ debug("Found configuration %o from %o.", config.filepath, dirname2);
67531
67540
  }
67532
67541
  return config;
67533
67542
  }
67534
- function* loadConfig(name, dirname, envName, caller) {
67543
+ function* loadConfig(name, dirname2, envName, caller) {
67535
67544
  const filepath = (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? __require.resolve : (r, {
67536
67545
  paths: [b]
67537
67546
  }, M = __require("module")) => {
@@ -67542,13 +67551,13 @@ var require_configuration = __commonJS((exports) => {
67542
67551
  f.code = "MODULE_NOT_FOUND";
67543
67552
  throw f;
67544
67553
  })(name, {
67545
- paths: [dirname]
67554
+ paths: [dirname2]
67546
67555
  });
67547
67556
  const conf = yield* readConfig(filepath, envName, caller);
67548
67557
  if (!conf) {
67549
67558
  throw new _configError.default(`Config file contains no configuration data`, filepath);
67550
67559
  }
67551
- debug("Loaded config %o from %o.", name, dirname);
67560
+ debug("Loaded config %o from %o.", name, dirname2);
67552
67561
  return conf;
67553
67562
  }
67554
67563
  function readConfig(filepath, envName, caller) {
@@ -67568,10 +67577,10 @@ var require_configuration = __commonJS((exports) => {
67568
67577
  return readConfigJSON5(filepath);
67569
67578
  }
67570
67579
  }
67571
- function* resolveShowConfigPath(dirname) {
67580
+ function* resolveShowConfigPath(dirname2) {
67572
67581
  const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
67573
67582
  if (targetPath != null) {
67574
- const absolutePath = _path().resolve(dirname, targetPath);
67583
+ const absolutePath = _path().resolve(dirname2, targetPath);
67575
67584
  const stats = yield* fs.stat(absolutePath);
67576
67585
  if (!stats.isFile()) {
67577
67586
  throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
@@ -67623,7 +67632,7 @@ var require_import_meta_resolve = __commonJS((exports) => {
67623
67632
  value: true
67624
67633
  });
67625
67634
  exports.moduleResolve = moduleResolve;
67626
- exports.resolve = resolve4;
67635
+ exports.resolve = resolve3;
67627
67636
  function _assert() {
67628
67637
  const data = __require("assert");
67629
67638
  _assert = function() {
@@ -68698,7 +68707,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
68698
68707
  })
68699
68708
  };
68700
68709
  }
68701
- function resolve4(specifier, parent) {
68710
+ function resolve3(specifier, parent) {
68702
68711
  if (!parent) {
68703
68712
  throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");
68704
68713
  }
@@ -68767,25 +68776,25 @@ var require_plugins3 = __commonJS((exports) => {
68767
68776
  var OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;
68768
68777
  var resolvePlugin = exports.resolvePlugin = resolveStandardizedName.bind(null, "plugin");
68769
68778
  var resolvePreset = exports.resolvePreset = resolveStandardizedName.bind(null, "preset");
68770
- function* loadPlugin(name, dirname) {
68779
+ function* loadPlugin(name, dirname2) {
68771
68780
  const {
68772
68781
  filepath,
68773
68782
  loader
68774
- } = resolvePlugin(name, dirname, yield* (0, _async.isAsync)());
68783
+ } = resolvePlugin(name, dirname2, yield* (0, _async.isAsync)());
68775
68784
  const value2 = yield* requireModule("plugin", loader, filepath);
68776
- debug("Loaded plugin %o from %o.", name, dirname);
68785
+ debug("Loaded plugin %o from %o.", name, dirname2);
68777
68786
  return {
68778
68787
  filepath,
68779
68788
  value: value2
68780
68789
  };
68781
68790
  }
68782
- function* loadPreset(name, dirname) {
68791
+ function* loadPreset(name, dirname2) {
68783
68792
  const {
68784
68793
  filepath,
68785
68794
  loader
68786
- } = resolvePreset(name, dirname, yield* (0, _async.isAsync)());
68795
+ } = resolvePreset(name, dirname2, yield* (0, _async.isAsync)());
68787
68796
  const value2 = yield* requireModule("preset", loader, filepath);
68788
- debug("Loaded preset %o from %o.", name, dirname);
68797
+ debug("Loaded preset %o from %o.", name, dirname2);
68789
68798
  return {
68790
68799
  filepath,
68791
68800
  value: value2
@@ -68838,9 +68847,9 @@ to your top-level package.json.
68838
68847
  `;
68839
68848
  throw error;
68840
68849
  }
68841
- function tryRequireResolve(id, dirname) {
68850
+ function tryRequireResolve(id, dirname2) {
68842
68851
  try {
68843
- if (dirname) {
68852
+ if (dirname2) {
68844
68853
  return {
68845
68854
  error: null,
68846
68855
  value: (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? __require.resolve : (r, {
@@ -68853,7 +68862,7 @@ to your top-level package.json.
68853
68862
  f.code = "MODULE_NOT_FOUND";
68854
68863
  throw f;
68855
68864
  })(id, {
68856
- paths: [dirname]
68865
+ paths: [dirname2]
68857
68866
  })
68858
68867
  };
68859
68868
  } else {
@@ -68882,19 +68891,19 @@ to your top-level package.json.
68882
68891
  };
68883
68892
  }
68884
68893
  }
68885
- function resolveStandardizedNameForRequire(type, name, dirname) {
68894
+ function resolveStandardizedNameForRequire(type, name, dirname2) {
68886
68895
  const it = resolveAlternativesHelper(type, name);
68887
68896
  let res = it.next();
68888
68897
  while (!res.done) {
68889
- res = it.next(tryRequireResolve(res.value, dirname));
68898
+ res = it.next(tryRequireResolve(res.value, dirname2));
68890
68899
  }
68891
68900
  return {
68892
68901
  loader: "require",
68893
68902
  filepath: res.value
68894
68903
  };
68895
68904
  }
68896
- function resolveStandardizedNameForImport(type, name, dirname) {
68897
- const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href;
68905
+ function resolveStandardizedNameForImport(type, name, dirname2) {
68906
+ const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname2, "./babel-virtual-resolve-base.js")).href;
68898
68907
  const it = resolveAlternativesHelper(type, name);
68899
68908
  let res = it.next();
68900
68909
  while (!res.done) {
@@ -68905,21 +68914,21 @@ to your top-level package.json.
68905
68914
  filepath: (0, _url().fileURLToPath)(res.value)
68906
68915
  };
68907
68916
  }
68908
- function resolveStandardizedName(type, name, dirname, allowAsync) {
68917
+ function resolveStandardizedName(type, name, dirname2, allowAsync) {
68909
68918
  if (!_moduleTypes.supportsESM || !allowAsync) {
68910
- return resolveStandardizedNameForRequire(type, name, dirname);
68919
+ return resolveStandardizedNameForRequire(type, name, dirname2);
68911
68920
  }
68912
68921
  try {
68913
- const resolved = resolveStandardizedNameForImport(type, name, dirname);
68922
+ const resolved = resolveStandardizedNameForImport(type, name, dirname2);
68914
68923
  if (!(0, _fs().existsSync)(resolved.filepath)) {
68915
- throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname}.`), {
68924
+ throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname2}.`), {
68916
68925
  type: "MODULE_NOT_FOUND"
68917
68926
  });
68918
68927
  }
68919
68928
  return resolved;
68920
68929
  } catch (e) {
68921
68930
  try {
68922
- return resolveStandardizedNameForRequire(type, name, dirname);
68931
+ return resolveStandardizedNameForRequire(type, name, dirname2);
68923
68932
  } catch (e2) {
68924
68933
  if (e.type === "MODULE_NOT_FOUND")
68925
68934
  throw e;
@@ -69152,14 +69161,14 @@ var require_parse4 = __commonJS((exports) => {
69152
69161
  var _index2 = require_parser();
69153
69162
  var _normalizeOpts = require_normalize_opts();
69154
69163
  var _rewriteStackTrace = require_rewrite_stack_trace();
69155
- var parseRunner = _gensync()(function* parse2(code, opts) {
69164
+ var parseRunner = _gensync()(function* parse3(code, opts) {
69156
69165
  const config = yield* (0, _index.default)(opts);
69157
69166
  if (config === null) {
69158
69167
  return null;
69159
69168
  }
69160
69169
  return yield* (0, _index2.default)(config.passes, (0, _normalizeOpts.default)(config), code);
69161
69170
  });
69162
- var parse = exports.parse = function parse2(code, opts, callback) {
69171
+ var parse2 = exports.parse = function parse3(code, opts, callback) {
69163
69172
  if (typeof opts === "function") {
69164
69173
  callback = opts;
69165
69174
  opts = undefined;
@@ -69393,9 +69402,9 @@ var require_lib27 = __commonJS((exports) => {
69393
69402
  var _transformAst = require_transform_ast();
69394
69403
  var _parse = require_parse4();
69395
69404
  var version = exports.version = "7.28.5";
69396
- var resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath;
69405
+ var resolvePlugin = (name, dirname2) => resolvers.resolvePlugin(name, dirname2, false).filepath;
69397
69406
  exports.resolvePlugin = resolvePlugin;
69398
- var resolvePreset = (name, dirname) => resolvers.resolvePreset(name, dirname, false).filepath;
69407
+ var resolvePreset = (name, dirname2) => resolvers.resolvePreset(name, dirname2, false).filepath;
69399
69408
  exports.resolvePreset = resolvePreset;
69400
69409
  var DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
69401
69410
  {
@@ -69411,12 +69420,12 @@ var require_lib27 = __commonJS((exports) => {
69411
69420
  });
69412
69421
 
69413
69422
  // src/build/angularLinkerPlugin.ts
69414
- import { existsSync as existsSync4, mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
69415
- import { dirname, join as join3, relative, resolve as resolve4 } from "path";
69423
+ import { existsSync as existsSync5, mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
69424
+ import { dirname as dirname2, join as join4, relative, resolve as resolve3 } from "path";
69416
69425
  import { createHash } from "crypto";
69417
69426
  var CACHE_DIR, angularLinkerPlugin;
69418
69427
  var init_angularLinkerPlugin = __esm(() => {
69419
- CACHE_DIR = resolve4(".cache", "angular-linker");
69428
+ CACHE_DIR = resolve3(".cache", "angular-linker");
69420
69429
  angularLinkerPlugin = {
69421
69430
  name: "angular-linker",
69422
69431
  setup(bld) {
@@ -69433,8 +69442,8 @@ var init_angularLinkerPlugin = __esm(() => {
69433
69442
  return;
69434
69443
  }
69435
69444
  const hash = createHash("md5").update(source).digest("hex");
69436
- const cachePath = join3(CACHE_DIR, `${hash}.js`);
69437
- if (existsSync4(cachePath)) {
69445
+ const cachePath = join4(CACHE_DIR, `${hash}.js`);
69446
+ if (existsSync5(cachePath)) {
69438
69447
  return {
69439
69448
  contents: readFileSync3(cachePath, "utf-8"),
69440
69449
  loader: "js"
@@ -69449,9 +69458,9 @@ var init_angularLinkerPlugin = __esm(() => {
69449
69458
  linkerPlugin = mod.createEs2015LinkerPlugin({
69450
69459
  linkerJitMode: false,
69451
69460
  fileSystem: {
69452
- resolve: resolve4,
69453
- exists: existsSync4,
69454
- dirname,
69461
+ resolve: resolve3,
69462
+ exists: existsSync5,
69463
+ dirname: dirname2,
69455
69464
  relative,
69456
69465
  readFile: readFileSync3
69457
69466
  },
@@ -69482,14 +69491,14 @@ var init_angularLinkerPlugin = __esm(() => {
69482
69491
 
69483
69492
  // src/utils/cleanStaleOutputs.ts
69484
69493
  import { rm as rm2 } from "fs/promises";
69485
- import { resolve as resolve5 } from "path";
69494
+ import { resolve as resolve4 } from "path";
69486
69495
  var {Glob: Glob3 } = globalThis.Bun;
69487
69496
  var HASHED_FILE_PATTERN, cleanStaleOutputs = async (buildPath, currentOutputPaths) => {
69488
- const currentPaths = new Set(currentOutputPaths.map((p) => resolve5(p)));
69497
+ const currentPaths = new Set(currentOutputPaths.map((p) => resolve4(p)));
69489
69498
  const glob = new Glob3("**/*");
69490
69499
  const removals = [];
69491
69500
  for (const relative2 of glob.scanSync({ cwd: buildPath })) {
69492
- const absolute = resolve5(buildPath, relative2);
69501
+ const absolute = resolve4(buildPath, relative2);
69493
69502
  if (currentPaths.has(absolute))
69494
69503
  continue;
69495
69504
  if (!HASHED_FILE_PATTERN.test(relative2))
@@ -69504,7 +69513,7 @@ var init_cleanStaleOutputs = __esm(() => {
69504
69513
 
69505
69514
  // src/utils/cleanup.ts
69506
69515
  import { rm as rm3 } from "fs/promises";
69507
- import { join as join4 } from "path";
69516
+ import { join as join5 } from "path";
69508
69517
  var cleanup = async ({
69509
69518
  angularDir,
69510
69519
  svelteDir,
@@ -69512,38 +69521,38 @@ var cleanup = async ({
69512
69521
  reactIndexesPath
69513
69522
  }) => {
69514
69523
  await Promise.all([
69515
- angularDir ? rm3(join4(angularDir, "indexes"), {
69524
+ angularDir ? rm3(join5(angularDir, "indexes"), {
69516
69525
  force: true,
69517
69526
  recursive: true
69518
69527
  }) : undefined,
69519
69528
  svelteDir ? Promise.all([
69520
- rm3(join4(svelteDir, "client"), {
69529
+ rm3(join5(svelteDir, "client"), {
69521
69530
  force: true,
69522
69531
  recursive: true
69523
69532
  }),
69524
- rm3(join4(svelteDir, "indexes"), {
69533
+ rm3(join5(svelteDir, "indexes"), {
69525
69534
  force: true,
69526
69535
  recursive: true
69527
69536
  }),
69528
- rm3(join4(svelteDir, "server"), {
69537
+ rm3(join5(svelteDir, "server"), {
69529
69538
  force: true,
69530
69539
  recursive: true
69531
69540
  })
69532
69541
  ]) : undefined,
69533
69542
  vueDir ? Promise.all([
69534
- rm3(join4(vueDir, "client"), {
69543
+ rm3(join5(vueDir, "client"), {
69535
69544
  force: true,
69536
69545
  recursive: true
69537
69546
  }),
69538
- rm3(join4(vueDir, "indexes"), {
69547
+ rm3(join5(vueDir, "indexes"), {
69539
69548
  force: true,
69540
69549
  recursive: true
69541
69550
  }),
69542
- rm3(join4(vueDir, "server"), {
69551
+ rm3(join5(vueDir, "server"), {
69543
69552
  force: true,
69544
69553
  recursive: true
69545
69554
  }),
69546
- rm3(join4(vueDir, "compiled"), {
69555
+ rm3(join5(vueDir, "compiled"), {
69547
69556
  force: true,
69548
69557
  recursive: true
69549
69558
  })
@@ -69720,10 +69729,10 @@ var init_logger = __esm(() => {
69720
69729
  });
69721
69730
 
69722
69731
  // src/utils/validateSafePath.ts
69723
- import { resolve as resolve6, relative as relative2 } from "path";
69732
+ import { resolve as resolve5, relative as relative2 } from "path";
69724
69733
  var validateSafePath = (targetPath, baseDirectory) => {
69725
- const absoluteBase = resolve6(baseDirectory);
69726
- const absoluteTarget = resolve6(baseDirectory, targetPath);
69734
+ const absoluteBase = resolve5(baseDirectory);
69735
+ const absoluteTarget = resolve5(baseDirectory, targetPath);
69727
69736
  const relativePath = normalizePath(relative2(absoluteBase, absoluteTarget));
69728
69737
  if (relativePath.startsWith("../") || relativePath === "..") {
69729
69738
  throw new Error(`Unsafe path: ${targetPath}`);
@@ -69737,14 +69746,14 @@ var exports_compileSvelte = {};
69737
69746
  __export(exports_compileSvelte, {
69738
69747
  compileSvelte: () => compileSvelte
69739
69748
  });
69740
- import { existsSync as existsSync5 } from "fs";
69749
+ import { existsSync as existsSync6 } from "fs";
69741
69750
  import { mkdir as mkdir2, stat } from "fs/promises";
69742
69751
  import {
69743
- dirname as dirname2,
69744
- join as join5,
69752
+ dirname as dirname3,
69753
+ join as join6,
69745
69754
  basename as basename2,
69746
69755
  extname as extname2,
69747
- resolve as resolve7,
69756
+ resolve as resolve6,
69748
69757
  relative as relative3,
69749
69758
  sep
69750
69759
  } from "path";
@@ -69758,7 +69767,7 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69758
69767
  return false;
69759
69768
  }
69760
69769
  }, resolveSvelte = async (spec, from) => {
69761
- const basePath = resolve7(dirname2(from), spec);
69770
+ const basePath = resolve6(dirname3(from), spec);
69762
69771
  const explicit = /\.(svelte|svelte\.(?:ts|js))$/.test(basePath);
69763
69772
  if (!explicit) {
69764
69773
  const extensions = [".svelte", ".svelte.ts", ".svelte.js"];
@@ -69780,9 +69789,9 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69780
69789
  return null;
69781
69790
  }, compileSvelte = async (entryPoints, svelteRoot, cache = new Map, isDev = false) => {
69782
69791
  const { compile, compileModule, preprocess } = await import("svelte/compiler");
69783
- const clientDir = join5(svelteRoot, "client");
69784
- const indexDir = join5(svelteRoot, "indexes");
69785
- const serverDir = join5(svelteRoot, "server");
69792
+ const clientDir = join6(svelteRoot, "client");
69793
+ const indexDir = join6(svelteRoot, "indexes");
69794
+ const serverDir = join6(svelteRoot, "server");
69786
69795
  await Promise.all([clientDir, indexDir, serverDir].map((dir) => mkdir2(dir, { recursive: true })));
69787
69796
  const dev = env.NODE_ENV !== "production";
69788
69797
  const build = async (src) => {
@@ -69793,7 +69802,7 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69793
69802
  const isModule = src.endsWith(".svelte.ts") || src.endsWith(".svelte.js");
69794
69803
  const preprocessed = isModule ? raw : (await preprocess(raw, {})).code;
69795
69804
  const transpiled = src.endsWith(".ts") || src.endsWith(".svelte.ts") ? transpiler.transformSync(preprocessed) : preprocessed;
69796
- const relDir = dirname2(relative3(svelteRoot, src)).replace(/\\/g, "/");
69805
+ const relDir = dirname3(relative3(svelteRoot, src)).replace(/\\/g, "/");
69797
69806
  const baseName = basename2(src).replace(/\.svelte(\.(ts|js))?$/, "");
69798
69807
  const importPaths = Array.from(transpiled.matchAll(/from\s+['"]([^'"]+)['"]/g)).map((match) => match[1]).filter((path) => path !== undefined);
69799
69808
  const resolvedImports = await Promise.all(importPaths.map((importPath) => resolveSvelte(importPath, src)));
@@ -69808,11 +69817,11 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69808
69817
  filename: src,
69809
69818
  generate: mode
69810
69819
  }).js.code).replace(/\.svelte(?:\.(?:ts|js))?(['"])/g, ".js$1");
69811
- const ssrPath = join5(serverDir, relDir, `${baseName}.js`);
69812
- const clientPath = join5(clientDir, relDir, `${baseName}.js`);
69820
+ const ssrPath = join6(serverDir, relDir, `${baseName}.js`);
69821
+ const clientPath = join6(clientDir, relDir, `${baseName}.js`);
69813
69822
  await Promise.all([
69814
- mkdir2(dirname2(ssrPath), { recursive: true }),
69815
- mkdir2(dirname2(clientPath), { recursive: true })
69823
+ mkdir2(dirname3(ssrPath), { recursive: true }),
69824
+ mkdir2(dirname3(clientPath), { recursive: true })
69816
69825
  ]);
69817
69826
  if (isModule) {
69818
69827
  const bundle = generate("client");
@@ -69834,10 +69843,10 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69834
69843
  };
69835
69844
  const roots = await Promise.all(entryPoints.map(build));
69836
69845
  await Promise.all(roots.map(async ({ client }) => {
69837
- const relClientDir = dirname2(relative3(clientDir, client));
69846
+ const relClientDir = dirname3(relative3(clientDir, client));
69838
69847
  const name = basename2(client, extname2(client));
69839
- const indexPath = join5(indexDir, relClientDir, `${name}.js`);
69840
- const importRaw = relative3(dirname2(indexPath), client).split(sep).join("/");
69848
+ const indexPath = join6(indexDir, relClientDir, `${name}.js`);
69849
+ const importRaw = relative3(dirname3(indexPath), client).split(sep).join("/");
69841
69850
  const importPath = importRaw.startsWith(".") || importRaw.startsWith("/") ? importRaw : `./${importRaw}`;
69842
69851
  const hmrImports = isDev ? `window.__HMR_FRAMEWORK__ = "svelte";
69843
69852
  import "${hmrClientPath3}";
@@ -69882,13 +69891,13 @@ if (typeof window !== "undefined") {
69882
69891
  window.__SVELTE_COMPONENT__ = component;
69883
69892
  window.__SVELTE_UNMOUNT__ = function() { unmount(component); };
69884
69893
  }`;
69885
- await mkdir2(dirname2(indexPath), { recursive: true });
69894
+ await mkdir2(dirname3(indexPath), { recursive: true });
69886
69895
  return write(indexPath, bootstrap);
69887
69896
  }));
69888
69897
  return {
69889
69898
  svelteIndexPaths: roots.map(({ client }) => {
69890
- const rel = dirname2(relative3(clientDir, client));
69891
- return join5(indexDir, rel, basename2(client));
69899
+ const rel = dirname3(relative3(clientDir, client));
69900
+ return join6(indexDir, rel, basename2(client));
69892
69901
  }),
69893
69902
  svelteClientPaths: roots.map(({ client }) => client),
69894
69903
  svelteServerPaths: roots.map(({ ssr }) => ssr)
@@ -69896,12 +69905,12 @@ if (typeof window !== "undefined") {
69896
69905
  };
69897
69906
  var init_compileSvelte = __esm(() => {
69898
69907
  devClientDir2 = (() => {
69899
- const fromSource = resolve7(import.meta.dir, "../dev/client");
69900
- if (existsSync5(fromSource))
69908
+ const fromSource = resolve6(import.meta.dir, "../dev/client");
69909
+ if (existsSync6(fromSource))
69901
69910
  return fromSource;
69902
- return resolve7(import.meta.dir, "./dev/client");
69911
+ return resolve6(import.meta.dir, "./dev/client");
69903
69912
  })();
69904
- hmrClientPath3 = join5(devClientDir2, "hmrClient.ts").replace(/\\/g, "/");
69913
+ hmrClientPath3 = join6(devClientDir2, "hmrClient.ts").replace(/\\/g, "/");
69905
69914
  transpiler = new Transpiler({ loader: "ts", target: "browser" });
69906
69915
  });
69907
69916
 
@@ -69914,9 +69923,9 @@ __export(exports_compileVue, {
69914
69923
  compileVue: () => compileVue,
69915
69924
  clearVueHmrCaches: () => clearVueHmrCaches
69916
69925
  });
69917
- import { existsSync as existsSync6 } from "fs";
69926
+ import { existsSync as existsSync7 } from "fs";
69918
69927
  import { mkdir as mkdir3 } from "fs/promises";
69919
- import { basename as basename3, dirname as dirname3, join as join6, relative as relative4, resolve as resolve8 } from "path";
69928
+ import { basename as basename3, dirname as dirname4, join as join7, relative as relative4, resolve as resolve7 } from "path";
69920
69929
  var {file: file2, write: write2, Transpiler: Transpiler2 } = globalThis.Bun;
69921
69930
  var devClientDir3, hmrClientPath4, transpiler2, scriptCache, scriptSetupCache, templateCache, styleCache, vueHmrMetadata, detectVueChangeType = (filePath, descriptor) => {
69922
69931
  const prevScript = scriptCache.get(filePath);
@@ -69998,7 +70007,7 @@ var devClientDir3, hmrClientPath4, transpiler2, scriptCache, scriptSetupCache, t
69998
70007
  const importPaths = extractImports(scriptSource);
69999
70008
  const childComponentPaths = importPaths.filter((path) => path.startsWith(".") && path.endsWith(".vue"));
70000
70009
  const helperModulePaths = importPaths.filter((path) => path.startsWith(".") && !path.endsWith(".vue"));
70001
- const childBuildResults = await Promise.all(childComponentPaths.map((relativeChildPath) => compileVueFile(resolve8(dirname3(sourceFilePath), relativeChildPath), outputDirs, cacheMap, false, vueRootDir, compiler)));
70010
+ const childBuildResults = await Promise.all(childComponentPaths.map((relativeChildPath) => compileVueFile(resolve7(dirname4(sourceFilePath), relativeChildPath), outputDirs, cacheMap, false, vueRootDir, compiler)));
70002
70011
  const compiledScript = compiler.compileScript(descriptor, {
70003
70012
  id: componentId,
70004
70013
  inlineTemplate: false
@@ -70030,8 +70039,8 @@ var devClientDir3, hmrClientPath4, transpiler2, scriptCache, scriptSetupCache, t
70030
70039
  ];
70031
70040
  let cssOutputPaths = [];
70032
70041
  if (isEntryPoint && allCss.length) {
70033
- const cssOutputFile = join6(outputDirs.css, `${toKebab(fileBaseName)}.css`);
70034
- await mkdir3(dirname3(cssOutputFile), { recursive: true });
70042
+ const cssOutputFile = join7(outputDirs.css, `${toKebab(fileBaseName)}.css`);
70043
+ await mkdir3(dirname4(cssOutputFile), { recursive: true });
70035
70044
  await write2(cssOutputFile, allCss.join(`
70036
70045
  `));
70037
70046
  cssOutputPaths = [cssOutputFile];
@@ -70061,10 +70070,10 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70061
70070
  };
70062
70071
  const clientCode = assembleModule(generateRenderFunction(false), "render", true);
70063
70072
  const serverCode = assembleModule(generateRenderFunction(true), "ssrRender", false);
70064
- const clientOutputPath = join6(outputDirs.client, `${relativeWithoutExtension}.js`);
70065
- const serverOutputPath = join6(outputDirs.server, `${relativeWithoutExtension}.js`);
70066
- await mkdir3(dirname3(clientOutputPath), { recursive: true });
70067
- await mkdir3(dirname3(serverOutputPath), { recursive: true });
70073
+ const clientOutputPath = join7(outputDirs.client, `${relativeWithoutExtension}.js`);
70074
+ const serverOutputPath = join7(outputDirs.server, `${relativeWithoutExtension}.js`);
70075
+ await mkdir3(dirname4(clientOutputPath), { recursive: true });
70076
+ await mkdir3(dirname4(serverOutputPath), { recursive: true });
70068
70077
  await write2(clientOutputPath, clientCode);
70069
70078
  await write2(serverOutputPath, serverCode);
70070
70079
  const result = {
@@ -70073,7 +70082,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70073
70082
  cssPaths: cssOutputPaths,
70074
70083
  serverPath: serverOutputPath,
70075
70084
  tsHelperPaths: [
70076
- ...helperModulePaths.map((helper) => resolve8(dirname3(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
70085
+ ...helperModulePaths.map((helper) => resolve7(dirname4(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
70077
70086
  ...childBuildResults.flatMap((child) => child.tsHelperPaths)
70078
70087
  ],
70079
70088
  hmrId
@@ -70082,10 +70091,10 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70082
70091
  return result;
70083
70092
  }, compileVue = async (entryPoints, vueRootDir, isDev = false) => {
70084
70093
  const compiler = await import("@vue/compiler-sfc");
70085
- const clientOutputDir = join6(vueRootDir, "client");
70086
- const indexOutputDir = join6(vueRootDir, "indexes");
70087
- const serverOutputDir = join6(vueRootDir, "server");
70088
- const cssOutputDir = join6(vueRootDir, "compiled");
70094
+ const clientOutputDir = join7(vueRootDir, "client");
70095
+ const indexOutputDir = join7(vueRootDir, "indexes");
70096
+ const serverOutputDir = join7(vueRootDir, "server");
70097
+ const cssOutputDir = join7(vueRootDir, "compiled");
70089
70098
  await Promise.all([
70090
70099
  mkdir3(clientOutputDir, { recursive: true }),
70091
70100
  mkdir3(indexOutputDir, { recursive: true }),
@@ -70095,23 +70104,23 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70095
70104
  const buildCache = new Map;
70096
70105
  const allTsHelperPaths = new Set;
70097
70106
  const compiledPages = await Promise.all(entryPoints.map(async (entryPath) => {
70098
- const result = await compileVueFile(resolve8(entryPath), {
70107
+ const result = await compileVueFile(resolve7(entryPath), {
70099
70108
  client: clientOutputDir,
70100
70109
  css: cssOutputDir,
70101
70110
  server: serverOutputDir
70102
70111
  }, buildCache, true, vueRootDir, compiler);
70103
70112
  result.tsHelperPaths.forEach((path) => allTsHelperPaths.add(path));
70104
70113
  const entryBaseName = basename3(entryPath, ".vue");
70105
- const indexOutputFile = join6(indexOutputDir, `${entryBaseName}.js`);
70106
- const clientOutputFile = join6(clientOutputDir, relative4(vueRootDir, entryPath).replace(/\\/g, "/").replace(/\.vue$/, ".js"));
70107
- await mkdir3(dirname3(indexOutputFile), { recursive: true });
70114
+ const indexOutputFile = join7(indexOutputDir, `${entryBaseName}.js`);
70115
+ const clientOutputFile = join7(clientOutputDir, relative4(vueRootDir, entryPath).replace(/\\/g, "/").replace(/\.vue$/, ".js"));
70116
+ await mkdir3(dirname4(indexOutputFile), { recursive: true });
70108
70117
  const vueHmrImports = isDev ? [
70109
70118
  `window.__HMR_FRAMEWORK__ = "vue";`,
70110
70119
  `import "${hmrClientPath4}";`
70111
70120
  ] : [];
70112
70121
  await write2(indexOutputFile, [
70113
70122
  ...vueHmrImports,
70114
- `import Comp from "${relative4(dirname3(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
70123
+ `import Comp from "${relative4(dirname4(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
70115
70124
  'import { createSSRApp } from "vue";',
70116
70125
  "",
70117
70126
  "// HMR State Preservation: Check for preserved state from HMR",
@@ -70211,10 +70220,10 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70211
70220
  const sourceCode = await file2(tsPath).text();
70212
70221
  const transpiledCode = transpiler2.transformSync(sourceCode);
70213
70222
  const relativeJsPath = relative4(vueRootDir, tsPath).replace(/\.ts$/, ".js");
70214
- const outClientPath = join6(clientOutputDir, relativeJsPath);
70215
- const outServerPath = join6(serverOutputDir, relativeJsPath);
70216
- await mkdir3(dirname3(outClientPath), { recursive: true });
70217
- await mkdir3(dirname3(outServerPath), { recursive: true });
70223
+ const outClientPath = join7(clientOutputDir, relativeJsPath);
70224
+ const outServerPath = join7(serverOutputDir, relativeJsPath);
70225
+ await mkdir3(dirname4(outClientPath), { recursive: true });
70226
+ await mkdir3(dirname4(outServerPath), { recursive: true });
70218
70227
  await write2(outClientPath, transpiledCode);
70219
70228
  await write2(outServerPath, transpiledCode);
70220
70229
  }));
@@ -70228,12 +70237,12 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70228
70237
  };
70229
70238
  var init_compileVue = __esm(() => {
70230
70239
  devClientDir3 = (() => {
70231
- const fromSource = resolve8(import.meta.dir, "../dev/client");
70232
- if (existsSync6(fromSource))
70240
+ const fromSource = resolve7(import.meta.dir, "../dev/client");
70241
+ if (existsSync7(fromSource))
70233
70242
  return fromSource;
70234
- return resolve8(import.meta.dir, "./dev/client");
70243
+ return resolve7(import.meta.dir, "./dev/client");
70235
70244
  })();
70236
- hmrClientPath4 = join6(devClientDir3, "hmrClient.ts").replace(/\\/g, "/");
70245
+ hmrClientPath4 = join7(devClientDir3, "hmrClient.ts").replace(/\\/g, "/");
70237
70246
  transpiler2 = new Transpiler2({ loader: "ts", target: "browser" });
70238
70247
  scriptCache = new Map;
70239
70248
  scriptSetupCache = new Map;
@@ -168521,14 +168530,14 @@ ${lanes.join(`
168521
168530
  }
168522
168531
  }
168523
168532
  function createImportCallExpressionAMD(arg, containsLexicalThis) {
168524
- const resolve9 = factory2.createUniqueName("resolve");
168533
+ const resolve8 = factory2.createUniqueName("resolve");
168525
168534
  const reject = factory2.createUniqueName("reject");
168526
168535
  const parameters = [
168527
- factory2.createParameterDeclaration(undefined, undefined, resolve9),
168536
+ factory2.createParameterDeclaration(undefined, undefined, resolve8),
168528
168537
  factory2.createParameterDeclaration(undefined, undefined, reject)
168529
168538
  ];
168530
168539
  const body = factory2.createBlock([
168531
- factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier("require"), undefined, [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve9, reject]))
168540
+ factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier("require"), undefined, [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve8, reject]))
168532
168541
  ]);
168533
168542
  let func;
168534
168543
  if (languageVersion >= 2) {
@@ -220017,14 +220026,14 @@ ${newComment.split(`
220017
220026
  });
220018
220027
  function mapCode(sourceFile, contents, focusLocations, host, formatContext, preferences) {
220019
220028
  return ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, (changeTracker) => {
220020
- const parsed = contents.map((c) => parse(sourceFile, c));
220029
+ const parsed = contents.map((c) => parse2(sourceFile, c));
220021
220030
  const flattenedLocations = focusLocations && flatten(focusLocations);
220022
220031
  for (const nodes of parsed) {
220023
220032
  placeNodeGroup(sourceFile, changeTracker, nodes, flattenedLocations);
220024
220033
  }
220025
220034
  });
220026
220035
  }
220027
- function parse(sourceFile, content) {
220036
+ function parse2(sourceFile, content) {
220028
220037
  const nodeKinds = [
220029
220038
  {
220030
220039
  parse: () => createSourceFile("__mapcode_content_nodes.ts", content, sourceFile.languageVersion, true, sourceFile.scriptKind),
@@ -220038,8 +220047,8 @@ ${content}
220038
220047
  }
220039
220048
  ];
220040
220049
  const parsedNodes = [];
220041
- for (const { parse: parse2, body: body2 } of nodeKinds) {
220042
- const sourceFile2 = parse2();
220050
+ for (const { parse: parse22, body: body2 } of nodeKinds) {
220051
+ const sourceFile2 = parse22();
220043
220052
  const bod = body2(sourceFile2);
220044
220053
  if (bod.length && sourceFile2.parseDiagnostics.length === 0) {
220045
220054
  return bod;
@@ -238703,8 +238712,8 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
238703
238712
  installPackage(options) {
238704
238713
  this.packageInstallId++;
238705
238714
  const request = { kind: "installPackage", ...options, id: this.packageInstallId };
238706
- const promise = new Promise((resolve9, reject) => {
238707
- (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map)).set(this.packageInstallId, { resolve: resolve9, reject });
238715
+ const promise = new Promise((resolve8, reject) => {
238716
+ (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map)).set(this.packageInstallId, { resolve: resolve8, reject });
238708
238717
  });
238709
238718
  this.installer.send(request);
238710
238719
  return promise;
@@ -238970,9 +238979,9 @@ __export(exports_compileAngular, {
238970
238979
  compileAngularFile: () => compileAngularFile,
238971
238980
  compileAngular: () => compileAngular
238972
238981
  });
238973
- import { existsSync as existsSync7, readFileSync as readFileSync4 } from "fs";
238982
+ import { existsSync as existsSync8, readFileSync as readFileSync4 } from "fs";
238974
238983
  import { promises as fs } from "fs";
238975
- import { join as join7, basename as basename4, sep as sep2, dirname as dirname4, resolve as resolve9, relative as relative5 } from "path";
238984
+ import { join as join8, basename as basename4, sep as sep2, dirname as dirname5, resolve as resolve8, relative as relative5 } from "path";
238976
238985
  import { createHash as createHash2 } from "crypto";
238977
238986
  var import_typescript, computeConfigHash = () => {
238978
238987
  try {
@@ -239018,8 +239027,8 @@ ${registrations}
239018
239027
  cached.lastUsed = Date.now();
239019
239028
  } else {
239020
239029
  const tsPath = __require.resolve("/home/alexkahn/abs/absolutejs/node_modules/typescript/lib/typescript.js");
239021
- const tsRootDir = dirname4(tsPath);
239022
- tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve9(tsRootDir, "lib");
239030
+ const tsRootDir = dirname5(tsPath);
239031
+ tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve8(tsRootDir, "lib");
239023
239032
  const config = readConfiguration("./tsconfig.json");
239024
239033
  options = {
239025
239034
  newLine: import_typescript.default.NewLineKind.LineFeed,
@@ -239053,7 +239062,7 @@ ${registrations}
239053
239062
  const originalGetSourceFile = host.getSourceFile;
239054
239063
  host.getSourceFile = (fileName, languageVersion, onError) => {
239055
239064
  if (fileName.startsWith("lib.") && fileName.endsWith(".d.ts") && tsLibDir) {
239056
- const resolvedPath = join7(tsLibDir, fileName);
239065
+ const resolvedPath = join8(tsLibDir, fileName);
239057
239066
  return originalGetSourceFile?.call(host, resolvedPath, languageVersion, onError);
239058
239067
  }
239059
239068
  return originalGetSourceFile?.call(host, fileName, languageVersion, onError);
@@ -239067,7 +239076,7 @@ ${registrations}
239067
239076
  };
239068
239077
  }
239069
239078
  const emitted = {};
239070
- const resolvedOutDir = resolve9(outDir);
239079
+ const resolvedOutDir = resolve8(outDir);
239071
239080
  host.writeFile = (fileName, text) => {
239072
239081
  const relativePath = fileName.startsWith(resolvedOutDir) ? fileName.substring(resolvedOutDir.length + 1) : fileName.startsWith(outDir) ? fileName.substring(outDir.length + 1) : fileName;
239073
239082
  emitted[relativePath] = text;
@@ -239098,7 +239107,7 @@ ${registrations}
239098
239107
  }
239099
239108
  }
239100
239109
  const entries = Object.entries(emitted).filter(([fileName]) => fileName.endsWith(".js")).map(([fileName, content]) => {
239101
- const target = join7(outDir, fileName);
239110
+ const target = join8(outDir, fileName);
239102
239111
  let processedContent = content.replace(/from\s+(['"])(\.\.?\/[^'"]+)(\1)/g, (match, quote, path) => {
239103
239112
  if (!path.match(/\.(js|ts|mjs|cjs)$/)) {
239104
239113
  return `from ${quote}${path}.js${quote}`;
@@ -239113,7 +239122,7 @@ ${registrations}
239113
239122
  processedContent = processedContent.replace(/\b(?<!Internal)InjectFlags\b/g, "InternalInjectFlags");
239114
239123
  return { content: processedContent, target };
239115
239124
  });
239116
- await Promise.all(entries.map(({ target }) => fs.mkdir(dirname4(target), { recursive: true })));
239125
+ await Promise.all(entries.map(({ target }) => fs.mkdir(dirname5(target), { recursive: true })));
239117
239126
  await Promise.all(entries.map(({ target, content }) => fs.writeFile(target, content, "utf-8")));
239118
239127
  return entries.map(({ target }) => target);
239119
239128
  }, compileAngularFileJIT = async (inputPath, outDir, rootDir) => {
@@ -239130,13 +239139,13 @@ ${registrations}
239130
239139
  declaration: false,
239131
239140
  sourceMap: false
239132
239141
  };
239133
- const baseDir = resolve9(rootDir ?? process.cwd());
239142
+ const baseDir = resolve8(rootDir ?? process.cwd());
239134
239143
  const inlineResources = async (source, fileDir) => {
239135
239144
  let result = source;
239136
239145
  const templateUrlMatch = result.match(/templateUrl\s*:\s*['"]([^'"]+)['"]/);
239137
239146
  if (templateUrlMatch && templateUrlMatch[1]) {
239138
- const templatePath = join7(fileDir, templateUrlMatch[1]);
239139
- if (existsSync7(templatePath)) {
239147
+ const templatePath = join8(fileDir, templateUrlMatch[1]);
239148
+ if (existsSync8(templatePath)) {
239140
239149
  const templateContent = await fs.readFile(templatePath, "utf-8");
239141
239150
  const escaped = templateContent.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
239142
239151
  result = result.replace(/templateUrl\s*:\s*['"][^'"]+['"]/, `template: \`${escaped}\``);
@@ -239149,8 +239158,8 @@ ${registrations}
239149
239158
  const inlinedStyles = [];
239150
239159
  for (const urlMatch of urlMatches) {
239151
239160
  const styleUrl = urlMatch.replace(/['"]/g, "");
239152
- const stylePath = join7(fileDir, styleUrl);
239153
- if (existsSync7(stylePath)) {
239161
+ const stylePath = join8(fileDir, styleUrl);
239162
+ if (existsSync8(stylePath)) {
239154
239163
  const styleContent = await fs.readFile(stylePath, "utf-8");
239155
239164
  const escaped = styleContent.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
239156
239165
  inlinedStyles.push(`\`${escaped}\``);
@@ -239163,8 +239172,8 @@ ${registrations}
239163
239172
  }
239164
239173
  const styleUrlMatch = result.match(/styleUrl\s*:\s*['"]([^'"]+)['"]/);
239165
239174
  if (styleUrlMatch && styleUrlMatch[1]) {
239166
- const stylePath = join7(fileDir, styleUrlMatch[1]);
239167
- if (existsSync7(stylePath)) {
239175
+ const stylePath = join8(fileDir, styleUrlMatch[1]);
239176
+ if (existsSync8(stylePath)) {
239168
239177
  const styleContent = await fs.readFile(stylePath, "utf-8");
239169
239178
  const escaped = styleContent.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
239170
239179
  result = result.replace(/styleUrl\s*:\s*['"][^'"]+['"]/, `styles: [\`${escaped}\`]`);
@@ -239173,17 +239182,17 @@ ${registrations}
239173
239182
  return result;
239174
239183
  };
239175
239184
  const transpileFile = async (filePath) => {
239176
- const resolved = resolve9(filePath);
239185
+ const resolved = resolve8(filePath);
239177
239186
  if (visited.has(resolved))
239178
239187
  return;
239179
239188
  visited.add(resolved);
239180
239189
  let actualPath = resolved;
239181
239190
  if (!actualPath.endsWith(".ts"))
239182
239191
  actualPath += ".ts";
239183
- if (!existsSync7(actualPath))
239192
+ if (!existsSync8(actualPath))
239184
239193
  return;
239185
239194
  let sourceCode = await fs.readFile(actualPath, "utf-8");
239186
- sourceCode = await inlineResources(sourceCode, dirname4(actualPath));
239195
+ sourceCode = await inlineResources(sourceCode, dirname5(actualPath));
239187
239196
  const importRegex = /from\s+['"](\.\.?\/[^'"]+)['"]/g;
239188
239197
  const localImports = [];
239189
239198
  let importMatch;
@@ -239205,30 +239214,30 @@ ${registrations}
239205
239214
  }
239206
239215
  return match;
239207
239216
  });
239208
- const inputDir = dirname4(actualPath);
239217
+ const inputDir = dirname5(actualPath);
239209
239218
  const relativeDir = inputDir.startsWith(baseDir) ? inputDir.substring(baseDir.length + 1) : inputDir;
239210
239219
  const fileBase = basename4(actualPath).replace(/\.ts$/, ".js");
239211
- const targetDir = join7(outDir, relativeDir);
239212
- const targetPath = join7(targetDir, fileBase);
239220
+ const targetDir = join8(outDir, relativeDir);
239221
+ const targetPath = join8(targetDir, fileBase);
239213
239222
  await fs.mkdir(targetDir, { recursive: true });
239214
239223
  await fs.writeFile(targetPath, processedContent, "utf-8");
239215
239224
  allOutputs.push(targetPath);
239216
- const inputDirForResolve = dirname4(actualPath);
239225
+ const inputDirForResolve = dirname5(actualPath);
239217
239226
  await Promise.all(localImports.map((imp) => {
239218
- const importPath = resolve9(inputDirForResolve, imp);
239227
+ const importPath = resolve8(inputDirForResolve, imp);
239219
239228
  return transpileFile(importPath);
239220
239229
  }));
239221
239230
  };
239222
239231
  await transpileFile(inputPath);
239223
239232
  return allOutputs;
239224
239233
  }, compileAngular = async (entryPoints, outRoot, hmr = false) => {
239225
- const compiledParent = join7(outRoot, "compiled");
239234
+ const compiledParent = join8(outRoot, "compiled");
239226
239235
  if (entryPoints.length === 0) {
239227
239236
  return { clientPaths: [], serverPaths: [] };
239228
239237
  }
239229
239238
  const buildId = hmr ? Date.now().toString(36) : undefined;
239230
- const compiledRoot = buildId ? join7(compiledParent, buildId) : compiledParent;
239231
- const indexesDir = hmr ? join7(compiledRoot, "indexes") : join7(outRoot, "indexes");
239239
+ const compiledRoot = buildId ? join8(compiledParent, buildId) : compiledParent;
239240
+ const indexesDir = hmr ? join8(compiledRoot, "indexes") : join8(outRoot, "indexes");
239232
239241
  await fs.mkdir(indexesDir, { recursive: true });
239233
239242
  const compileTasks = entryPoints.map(async (entry) => {
239234
239243
  const outputs = hmr ? await compileAngularFileJIT(entry, compiledRoot, outRoot) : await compileAngularFile(entry, compiledRoot);
@@ -239255,7 +239264,7 @@ export default ${componentClassName};
239255
239264
  await fs.writeFile(rawServerFile, rewritten, "utf-8");
239256
239265
  const relativePath = relative5(indexesDir, rawServerFile).replace(/\\/g, "/");
239257
239266
  const normalizedImportPath = relativePath.startsWith(".") ? relativePath : "./" + relativePath;
239258
- const clientFile = join7(indexesDir, jsName);
239267
+ const clientFile = join8(indexesDir, jsName);
239259
239268
  const hmrPreamble = hmr ? `window.__HMR_FRAMEWORK__ = "angular";
239260
239269
  import "${hmrRuntimePath}";
239261
239270
  import "${hmrClientPath5}";
@@ -239307,7 +239316,7 @@ bootstrapApplication(${componentClassName}, {
239307
239316
  if (buildId) {
239308
239317
  try {
239309
239318
  const dirs = await fs.readdir(compiledParent);
239310
- await Promise.all(dirs.filter((dir) => dir !== buildId).map((dir) => fs.rm(join7(compiledParent, dir), {
239319
+ await Promise.all(dirs.filter((dir) => dir !== buildId).map((dir) => fs.rm(join8(compiledParent, dir), {
239311
239320
  recursive: true,
239312
239321
  force: true
239313
239322
  })));
@@ -239318,13 +239327,13 @@ bootstrapApplication(${componentClassName}, {
239318
239327
  var init_compileAngular = __esm(() => {
239319
239328
  import_typescript = __toESM(require_typescript4(), 1);
239320
239329
  devClientDir4 = (() => {
239321
- const fromSource = resolve9(import.meta.dir, "../dev/client");
239322
- if (existsSync7(fromSource))
239330
+ const fromSource = resolve8(import.meta.dir, "../dev/client");
239331
+ if (existsSync8(fromSource))
239323
239332
  return fromSource;
239324
- return resolve9(import.meta.dir, "./dev/client");
239333
+ return resolve8(import.meta.dir, "./dev/client");
239325
239334
  })();
239326
- hmrClientPath5 = join7(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
239327
- hmrRuntimePath = join7(devClientDir4, "handlers", "angularRuntime.ts").replace(/\\/g, "/");
239335
+ hmrClientPath5 = join8(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
239336
+ hmrRuntimePath = join8(devClientDir4, "handlers", "angularRuntime.ts").replace(/\\/g, "/");
239328
239337
  });
239329
239338
 
239330
239339
  // src/core/build.ts
@@ -239336,7 +239345,7 @@ import {
239336
239345
  rmSync,
239337
239346
  writeFileSync as writeFileSync3
239338
239347
  } from "fs";
239339
- import { basename as basename5, join as join8, resolve as resolve10 } from "path";
239348
+ import { basename as basename5, join as join9, resolve as resolve9 } from "path";
239340
239349
  import { cwd, env as env2, exit } from "process";
239341
239350
  var {$, build: bunBuild2, Glob: Glob4 } = globalThis.Bun;
239342
239351
  var isDev, vueFeatureFlags, build = async ({
@@ -239357,8 +239366,8 @@ var isDev, vueFeatureFlags, build = async ({
239357
239366
  const buildStart = performance.now();
239358
239367
  const projectRoot = cwd();
239359
239368
  const versionCandidates = [
239360
- resolve10(import.meta.dir, "..", "..", "package.json"),
239361
- resolve10(import.meta.dir, "..", "package.json")
239369
+ resolve9(import.meta.dir, "..", "..", "package.json"),
239370
+ resolve9(import.meta.dir, "..", "package.json")
239362
239371
  ];
239363
239372
  for (const candidate of versionCandidates) {
239364
239373
  try {
@@ -239381,14 +239390,14 @@ var isDev, vueFeatureFlags, build = async ({
239381
239390
  const svelteDir = svelteDirectory && validateSafePath(svelteDirectory, projectRoot);
239382
239391
  const vueDir = vueDirectory && validateSafePath(vueDirectory, projectRoot);
239383
239392
  const angularDir = angularDirectory && validateSafePath(angularDirectory, projectRoot);
239384
- const reactIndexesPath = reactDir && join8(reactDir, "indexes");
239385
- const reactPagesPath = reactDir && join8(reactDir, "pages");
239386
- const htmlPagesPath = htmlDir && join8(htmlDir, "pages");
239387
- const htmlScriptsPath = htmlDir && join8(htmlDir, "scripts");
239388
- const sveltePagesPath = svelteDir && join8(svelteDir, "pages");
239389
- const vuePagesPath = vueDir && join8(vueDir, "pages");
239390
- const htmxPagesPath = htmxDir && join8(htmxDir, "pages");
239391
- const angularPagesPath = angularDir && join8(angularDir, "pages");
239393
+ const reactIndexesPath = reactDir && join9(reactDir, "indexes");
239394
+ const reactPagesPath = reactDir && join9(reactDir, "pages");
239395
+ const htmlPagesPath = htmlDir && join9(htmlDir, "pages");
239396
+ const htmlScriptsPath = htmlDir && join9(htmlDir, "scripts");
239397
+ const sveltePagesPath = svelteDir && join9(svelteDir, "pages");
239398
+ const vuePagesPath = vueDir && join9(vueDir, "pages");
239399
+ const htmxPagesPath = htmxDir && join9(htmxDir, "pages");
239400
+ const angularPagesPath = angularDir && join9(angularDir, "pages");
239392
239401
  const frontends = [
239393
239402
  reactDir,
239394
239403
  htmlDir,
@@ -239424,8 +239433,8 @@ var isDev, vueFeatureFlags, build = async ({
239424
239433
  let serverOutDir;
239425
239434
  let serverRoot;
239426
239435
  if (serverFrameworkDirs.length === 1) {
239427
- serverRoot = join8(serverFrameworkDirs[0], "server");
239428
- serverOutDir = join8(buildPath, basename5(serverFrameworkDirs[0]));
239436
+ serverRoot = join9(serverFrameworkDirs[0], "server");
239437
+ serverOutDir = join9(buildPath, basename5(serverFrameworkDirs[0]));
239429
239438
  } else if (serverFrameworkDirs.length > 1) {
239430
239439
  serverRoot = commonAncestor(serverFrameworkDirs, projectRoot);
239431
239440
  serverOutDir = buildPath;
@@ -239437,11 +239446,11 @@ var isDev, vueFeatureFlags, build = async ({
239437
239446
  const filterToIncrementalEntries = (entryPoints, mapToSource) => {
239438
239447
  if (!isIncremental || !incrementalFiles)
239439
239448
  return entryPoints;
239440
- const normalizedIncremental = new Set(incrementalFiles.map((f) => resolve10(f)));
239449
+ const normalizedIncremental = new Set(incrementalFiles.map((f) => resolve9(f)));
239441
239450
  const matchingEntries = [];
239442
239451
  for (const entry of entryPoints) {
239443
239452
  const sourceFile = mapToSource(entry);
239444
- if (sourceFile && normalizedIncremental.has(resolve10(sourceFile))) {
239453
+ if (sourceFile && normalizedIncremental.has(resolve9(sourceFile))) {
239445
239454
  matchingEntries.push(entry);
239446
239455
  }
239447
239456
  }
@@ -239451,12 +239460,12 @@ var isDev, vueFeatureFlags, build = async ({
239451
239460
  await generateReactIndexFiles(reactPagesPath, reactIndexesPath, hmr);
239452
239461
  }
239453
239462
  if (assetsPath && (!isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/assets/")))) {
239454
- cpSync(assetsPath, join8(buildPath, "assets"), {
239463
+ cpSync(assetsPath, join9(buildPath, "assets"), {
239455
239464
  force: true,
239456
239465
  recursive: true
239457
239466
  });
239458
239467
  }
239459
- const tailwindPromise = tailwind && (!isIncremental || normalizedIncrementalFiles?.some((f) => f.endsWith(".css"))) ? $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join8(buildPath, tailwind.output)}` : undefined;
239468
+ const tailwindPromise = tailwind && (!isIncremental || normalizedIncrementalFiles?.some((f) => f.endsWith(".css"))) ? $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join9(buildPath, tailwind.output)}` : undefined;
239460
239469
  const [
239461
239470
  ,
239462
239471
  allReactEntries,
@@ -239476,18 +239485,18 @@ var isDev, vueFeatureFlags, build = async ({
239476
239485
  sveltePagesPath ? scanEntryPoints(sveltePagesPath, "*.svelte") : [],
239477
239486
  vuePagesPath ? scanEntryPoints(vuePagesPath, "*.vue") : [],
239478
239487
  angularPagesPath ? scanEntryPoints(angularPagesPath, "*.ts") : [],
239479
- htmlDir ? scanEntryPoints(join8(htmlDir, "styles"), "*.css") : [],
239480
- htmxDir ? scanEntryPoints(join8(htmxDir, "styles"), "*.css") : [],
239481
- reactDir ? scanEntryPoints(join8(reactDir, "styles"), "*.css") : [],
239482
- svelteDir ? scanEntryPoints(join8(svelteDir, "styles"), "*.css") : [],
239483
- angularDir ? scanEntryPoints(join8(angularDir, "styles"), "*.css") : []
239488
+ htmlDir ? scanEntryPoints(join9(htmlDir, "styles"), "*.css") : [],
239489
+ htmxDir ? scanEntryPoints(join9(htmxDir, "styles"), "*.css") : [],
239490
+ reactDir ? scanEntryPoints(join9(reactDir, "styles"), "*.css") : [],
239491
+ svelteDir ? scanEntryPoints(join9(svelteDir, "styles"), "*.css") : [],
239492
+ angularDir ? scanEntryPoints(join9(angularDir, "styles"), "*.css") : []
239484
239493
  ]);
239485
239494
  const shouldIncludeHtmlAssets = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
239486
239495
  const shouldIncludeHtmxAssets = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
239487
239496
  const reactEntries = isIncremental && reactIndexesPath && reactPagesPath ? filterToIncrementalEntries(allReactEntries, (entry) => {
239488
- if (entry.startsWith(resolve10(reactIndexesPath))) {
239497
+ if (entry.startsWith(resolve9(reactIndexesPath))) {
239489
239498
  const pageName = basename5(entry, ".tsx");
239490
- return join8(reactPagesPath, `${pageName}.tsx`);
239499
+ return join9(reactPagesPath, `${pageName}.tsx`);
239491
239500
  }
239492
239501
  return null;
239493
239502
  }) : allReactEntries;
@@ -239548,7 +239557,7 @@ var isDev, vueFeatureFlags, build = async ({
239548
239557
  return {};
239549
239558
  }
239550
239559
  if (hmr && reactIndexesPath && reactClientEntryPoints.length > 0) {
239551
- const refreshEntry = join8(reactIndexesPath, "_refresh.tsx");
239560
+ const refreshEntry = join9(reactIndexesPath, "_refresh.tsx");
239552
239561
  if (!reactClientEntryPoints.includes(refreshEntry)) {
239553
239562
  reactClientEntryPoints.push(refreshEntry);
239554
239563
  }
@@ -239576,13 +239585,13 @@ var isDev, vueFeatureFlags, build = async ({
239576
239585
  return cfg;
239577
239586
  })() : undefined;
239578
239587
  if (reactDir && reactClientEntryPoints.length > 0) {
239579
- rmSync(join8(buildPath, "react", "indexes"), {
239588
+ rmSync(join9(buildPath, "react", "indexes"), {
239580
239589
  force: true,
239581
239590
  recursive: true
239582
239591
  });
239583
239592
  }
239584
239593
  if (angularDir && angularClientPaths.length > 0) {
239585
- rmSync(join8(buildPath, "angular", "indexes"), {
239594
+ rmSync(join9(buildPath, "angular", "indexes"), {
239586
239595
  force: true,
239587
239596
  recursive: true
239588
239597
  });
@@ -239618,7 +239627,7 @@ var isDev, vueFeatureFlags, build = async ({
239618
239627
  cssEntryPoints.length > 0 ? bunBuild2({
239619
239628
  entrypoints: cssEntryPoints,
239620
239629
  naming: `[name].[hash].[ext]`,
239621
- outdir: join8(buildPath, assetsPath ? basename5(assetsPath) : "assets", "css"),
239630
+ outdir: join9(buildPath, assetsPath ? basename5(assetsPath) : "assets", "css"),
239622
239631
  target: "browser",
239623
239632
  throw: false
239624
239633
  }) : undefined
@@ -239732,7 +239741,7 @@ var isDev, vueFeatureFlags, build = async ({
239732
239741
  }
239733
239742
  for (const serverPath of angularServerPaths) {
239734
239743
  const fileBase = basename5(serverPath, ".js");
239735
- manifest[toPascal(fileBase)] = resolve10(serverPath);
239744
+ manifest[toPascal(fileBase)] = resolve9(serverPath);
239736
239745
  }
239737
239746
  const htmlOrHtmlCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
239738
239747
  const htmxOrHtmxCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
@@ -239756,7 +239765,7 @@ var isDev, vueFeatureFlags, build = async ({
239756
239765
  (async () => {
239757
239766
  if (!(htmlDir && htmlPagesPath))
239758
239767
  return;
239759
- const outputHtmlPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename5(htmlDir), "pages");
239768
+ const outputHtmlPages = isSingle ? join9(buildPath, "pages") : join9(buildPath, basename5(htmlDir), "pages");
239760
239769
  if (shouldCopyHtml) {
239761
239770
  mkdirSync3(outputHtmlPages, { recursive: true });
239762
239771
  cpSync(htmlPagesPath, outputHtmlPages, {
@@ -239778,7 +239787,7 @@ var isDev, vueFeatureFlags, build = async ({
239778
239787
  (async () => {
239779
239788
  if (!(htmxDir && htmxPagesPath))
239780
239789
  return;
239781
- const outputHtmxPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename5(htmxDir), "pages");
239790
+ const outputHtmxPages = isSingle ? join9(buildPath, "pages") : join9(buildPath, basename5(htmxDir), "pages");
239782
239791
  if (shouldCopyHtmx) {
239783
239792
  mkdirSync3(outputHtmxPages, { recursive: true });
239784
239793
  cpSync(htmxPagesPath, outputHtmxPages, {
@@ -239787,12 +239796,12 @@ var isDev, vueFeatureFlags, build = async ({
239787
239796
  });
239788
239797
  }
239789
239798
  if (shouldCopyHtmx) {
239790
- const htmxDestDir = isSingle ? buildPath : join8(buildPath, basename5(htmxDir));
239799
+ const htmxDestDir = isSingle ? buildPath : join9(buildPath, basename5(htmxDir));
239791
239800
  mkdirSync3(htmxDestDir, { recursive: true });
239792
239801
  const glob = new Glob4("htmx*.min.js");
239793
239802
  for (const relPath of glob.scanSync({ cwd: htmxDir })) {
239794
- const src = join8(htmxDir, relPath);
239795
- const dest = join8(htmxDestDir, "htmx.min.js");
239803
+ const src = join9(htmxDir, relPath);
239804
+ const dest = join9(htmxDestDir, "htmx.min.js");
239796
239805
  copyFileSync(src, dest);
239797
239806
  break;
239798
239807
  }
@@ -239832,7 +239841,7 @@ var isDev, vueFeatureFlags, build = async ({
239832
239841
  durationMs: Math.round(performance.now() - buildStart),
239833
239842
  mode: mode ?? (isDev ? "development" : "production")
239834
239843
  });
239835
- writeFileSync3(join8(buildPath, "manifest.json"), JSON.stringify(manifest, null, "\t"));
239844
+ writeFileSync3(join9(buildPath, "manifest.json"), JSON.stringify(manifest, null, "\t"));
239836
239845
  return manifest;
239837
239846
  };
239838
239847
  var init_build = __esm(() => {
@@ -239860,7 +239869,7 @@ var init_build = __esm(() => {
239860
239869
 
239861
239870
  // src/build/buildReactVendor.ts
239862
239871
  import { mkdirSync as mkdirSync4 } from "fs";
239863
- import { join as join9 } from "path";
239872
+ import { join as join10 } from "path";
239864
239873
  import { rm as rm4 } from "fs/promises";
239865
239874
  var {build: bunBuild3 } = globalThis.Bun;
239866
239875
  var reactSpecifiers, toSafeFileName = (specifier) => specifier.replace(/\//g, "_"), computeVendorPaths = () => {
@@ -239883,14 +239892,14 @@ var reactSpecifiers, toSafeFileName = (specifier) => specifier.replace(/\//g, "_
239883
239892
  `) + `
239884
239893
  `;
239885
239894
  }, buildReactVendor = async (buildDir) => {
239886
- const vendorDir = join9(buildDir, "react", "vendor");
239895
+ const vendorDir = join10(buildDir, "react", "vendor");
239887
239896
  mkdirSync4(vendorDir, { recursive: true });
239888
- const tmpDir = join9(buildDir, "_vendor_tmp");
239897
+ const tmpDir = join10(buildDir, "_vendor_tmp");
239889
239898
  mkdirSync4(tmpDir, { recursive: true });
239890
239899
  const entrypoints = [];
239891
239900
  for (const specifier of reactSpecifiers) {
239892
239901
  const safeName = toSafeFileName(specifier);
239893
- const entryPath = join9(tmpDir, `${safeName}.ts`);
239902
+ const entryPath = join10(tmpDir, `${safeName}.ts`);
239894
239903
  const source = await generateEntrySource(specifier);
239895
239904
  await Bun.write(entryPath, source);
239896
239905
  entrypoints.push(entryPath);
@@ -239921,14 +239930,14 @@ var init_buildReactVendor = __esm(() => {
239921
239930
  });
239922
239931
 
239923
239932
  // src/dev/dependencyGraph.ts
239924
- import { readFileSync as readFileSync6, readdirSync, existsSync as existsSync8 } from "fs";
239925
- import { resolve as resolve11 } from "path";
239933
+ import { readFileSync as readFileSync6, readdirSync, existsSync as existsSync9 } from "fs";
239934
+ import { resolve as resolve10 } from "path";
239926
239935
  var createDependencyGraph = () => ({
239927
239936
  dependencies: new Map,
239928
239937
  dependents: new Map
239929
239938
  }), extractDependencies = (filePath) => {
239930
239939
  try {
239931
- if (!existsSync8(filePath)) {
239940
+ if (!existsSync9(filePath)) {
239932
239941
  return [];
239933
239942
  }
239934
239943
  const content = readFileSync6(filePath, "utf-8");
@@ -240020,9 +240029,9 @@ var createDependencyGraph = () => ({
240020
240029
  if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
240021
240030
  return null;
240022
240031
  }
240023
- const fromDir = resolve11(fromFile, "..");
240024
- const resolved = resolve11(fromDir, importPath);
240025
- const normalized = resolve11(resolved);
240032
+ const fromDir = resolve10(fromFile, "..");
240033
+ const resolved = resolve10(fromDir, importPath);
240034
+ const normalized = resolve10(resolved);
240026
240035
  const extensions = [
240027
240036
  ".ts",
240028
240037
  ".tsx",
@@ -240047,8 +240056,8 @@ var createDependencyGraph = () => ({
240047
240056
  return null;
240048
240057
  }
240049
240058
  }, addFileToGraph = (graph, filePath) => {
240050
- const normalizedPath = resolve11(filePath);
240051
- if (!existsSync8(normalizedPath)) {
240059
+ const normalizedPath = resolve10(filePath);
240060
+ if (!existsSync9(normalizedPath)) {
240052
240061
  return;
240053
240062
  }
240054
240063
  const dependencies = extractDependencies(normalizedPath);
@@ -240070,7 +240079,7 @@ var createDependencyGraph = () => ({
240070
240079
  graph.dependents.get(dep).add(normalizedPath);
240071
240080
  }
240072
240081
  }, getAffectedFiles = (graph, changedFile) => {
240073
- const normalizedPath = resolve11(changedFile);
240082
+ const normalizedPath = resolve10(changedFile);
240074
240083
  const affected = new Set;
240075
240084
  const toProcess = [normalizedPath];
240076
240085
  while (toProcess.length > 0) {
@@ -240088,7 +240097,7 @@ var createDependencyGraph = () => ({
240088
240097
  }
240089
240098
  return Array.from(affected);
240090
240099
  }, removeFileFromGraph = (graph, filePath) => {
240091
- const normalizedPath = resolve11(filePath);
240100
+ const normalizedPath = resolve10(filePath);
240092
240101
  const deps = graph.dependencies.get(normalizedPath);
240093
240102
  if (deps) {
240094
240103
  for (const dep of deps) {
@@ -240112,11 +240121,11 @@ var createDependencyGraph = () => ({
240112
240121
  }, buildInitialDependencyGraph = (graph, directories) => {
240113
240122
  const processedFiles = new Set;
240114
240123
  const scanDirectory = (dir) => {
240115
- const normalizedDir = resolve11(dir);
240124
+ const normalizedDir = resolve10(dir);
240116
240125
  try {
240117
240126
  const entries = readdirSync(normalizedDir, { withFileTypes: true });
240118
240127
  for (const entry of entries) {
240119
- const fullPath = resolve11(normalizedDir, entry.name);
240128
+ const fullPath = resolve10(normalizedDir, entry.name);
240120
240129
  if (fullPath.includes("/node_modules/") || fullPath.includes("/.git/") || fullPath.includes("/build/") || fullPath.includes("/compiled/") || fullPath.includes("/indexes/") || fullPath.includes("/server/") || fullPath.includes("/client/") || entry.name.startsWith(".")) {
240121
240130
  continue;
240122
240131
  }
@@ -240144,8 +240153,8 @@ var createDependencyGraph = () => ({
240144
240153
  } catch {}
240145
240154
  };
240146
240155
  for (const dir of directories) {
240147
- const resolvedDir = resolve11(dir);
240148
- if (existsSync8(resolvedDir)) {
240156
+ const resolvedDir = resolve10(dir);
240157
+ if (existsSync9(resolvedDir)) {
240149
240158
  scanDirectory(resolvedDir);
240150
240159
  }
240151
240160
  }
@@ -240173,12 +240182,12 @@ var globalVersionCounter = 0, getNextVersion = () => ++globalVersionCounter, cre
240173
240182
  };
240174
240183
 
240175
240184
  // src/dev/configResolver.ts
240176
- import { resolve as resolve12 } from "path";
240185
+ import { resolve as resolve11 } from "path";
240177
240186
  var resolveBuildPaths = (config) => {
240178
240187
  const cwd2 = process.cwd();
240179
240188
  const normalize = (path) => path.replace(/\\/g, "/");
240180
- const withDefault = (value2, fallback) => normalize(resolve12(cwd2, value2 ?? fallback));
240181
- const optional = (value2) => value2 ? normalize(resolve12(cwd2, value2)) : undefined;
240189
+ const withDefault = (value2, fallback) => normalize(resolve11(cwd2, value2 ?? fallback));
240190
+ const optional = (value2) => value2 ? normalize(resolve11(cwd2, value2)) : undefined;
240182
240191
  return {
240183
240192
  buildDir: withDefault(config.buildDirectory, "build"),
240184
240193
  assetsDir: optional(config.assetsDirectory),
@@ -240334,13 +240343,13 @@ var init_pathUtils = () => {};
240334
240343
 
240335
240344
  // src/dev/fileWatcher.ts
240336
240345
  import { watch } from "fs";
240337
- import { existsSync as existsSync9 } from "fs";
240338
- import { join as join10, resolve as resolve13 } from "path";
240346
+ import { existsSync as existsSync10 } from "fs";
240347
+ import { join as join11, resolve as resolve12 } from "path";
240339
240348
  var startFileWatching = (state, config, onFileChange) => {
240340
240349
  const watchPaths = getWatchPaths(config, state.resolvedPaths);
240341
240350
  for (const path of watchPaths) {
240342
- const absolutePath = resolve13(path).replace(/\\/g, "/");
240343
- if (!existsSync9(absolutePath)) {
240351
+ const absolutePath = resolve12(path).replace(/\\/g, "/");
240352
+ if (!existsSync10(absolutePath)) {
240344
240353
  continue;
240345
240354
  }
240346
240355
  const watcher = watch(absolutePath, { recursive: true }, (event, filename) => {
@@ -240349,11 +240358,11 @@ var startFileWatching = (state, config, onFileChange) => {
240349
240358
  if (filename === "compiled" || filename === "build" || filename === "indexes" || filename === "server" || filename === "client" || filename.includes("/compiled") || filename.includes("/build") || filename.includes("/indexes") || filename.includes("/server") || filename.includes("/client") || filename.endsWith("/")) {
240350
240359
  return;
240351
240360
  }
240352
- const fullPath = join10(absolutePath, filename).replace(/\\/g, "/");
240361
+ const fullPath = join11(absolutePath, filename).replace(/\\/g, "/");
240353
240362
  if (shouldIgnorePath(fullPath)) {
240354
240363
  return;
240355
240364
  }
240356
- if (event === "rename" && !existsSync9(fullPath)) {
240365
+ if (event === "rename" && !existsSync10(fullPath)) {
240357
240366
  try {
240358
240367
  removeFileFromGraph(state.dependencyGraph, fullPath);
240359
240368
  } catch (err) {
@@ -240365,7 +240374,7 @@ var startFileWatching = (state, config, onFileChange) => {
240365
240374
  onFileChange(fullPath);
240366
240375
  return;
240367
240376
  }
240368
- if (existsSync9(fullPath)) {
240377
+ if (existsSync10(fullPath)) {
240369
240378
  onFileChange(fullPath);
240370
240379
  try {
240371
240380
  addFileToGraph(state.dependencyGraph, fullPath);
@@ -240387,7 +240396,7 @@ var init_fileWatcher = __esm(() => {
240387
240396
  });
240388
240397
 
240389
240398
  // src/dev/assetStore.ts
240390
- import { resolve as resolve14 } from "path";
240399
+ import { resolve as resolve13 } from "path";
240391
240400
  import { readdir, unlink } from "fs/promises";
240392
240401
  var mimeTypes, getMimeType = (filePath) => {
240393
240402
  const ext = filePath.slice(filePath.lastIndexOf("."));
@@ -240408,7 +240417,7 @@ var mimeTypes, getMimeType = (filePath) => {
240408
240417
  }
240409
240418
  }
240410
240419
  for (const webPath of newIdentities.values()) {
240411
- loadPromises.push(Bun.file(resolve14(buildDir, webPath.slice(1))).bytes().then((bytes) => {
240420
+ loadPromises.push(Bun.file(resolve13(buildDir, webPath.slice(1))).bytes().then((bytes) => {
240412
240421
  store.set(webPath, bytes);
240413
240422
  }).catch(() => {}));
240414
240423
  }
@@ -240418,11 +240427,11 @@ var mimeTypes, getMimeType = (filePath) => {
240418
240427
  const subTasks = [];
240419
240428
  for (const entry of entries) {
240420
240429
  if (entry.isDirectory()) {
240421
- subTasks.push(scanDir(resolve14(dir, entry.name), `${prefix}${entry.name}/`));
240430
+ subTasks.push(scanDir(resolve13(dir, entry.name), `${prefix}${entry.name}/`));
240422
240431
  } else if (entry.name.startsWith("chunk-")) {
240423
240432
  const webPath = `/${prefix}${entry.name}`;
240424
240433
  if (!store.has(webPath)) {
240425
- subTasks.push(Bun.file(resolve14(dir, entry.name)).bytes().then((bytes) => {
240434
+ subTasks.push(Bun.file(resolve13(dir, entry.name)).bytes().then((bytes) => {
240426
240435
  store.set(webPath, bytes);
240427
240436
  }).catch(() => {}));
240428
240437
  }
@@ -240436,10 +240445,10 @@ var mimeTypes, getMimeType = (filePath) => {
240436
240445
  }, cleanStaleAssets = async (store, manifest, buildDir) => {
240437
240446
  const liveByIdentity = new Map;
240438
240447
  for (const webPath of store.keys()) {
240439
- const diskPath = resolve14(buildDir, webPath.slice(1));
240448
+ const diskPath = resolve13(buildDir, webPath.slice(1));
240440
240449
  liveByIdentity.set(stripHash(diskPath), diskPath);
240441
240450
  }
240442
- const absBuildDir = resolve14(buildDir);
240451
+ const absBuildDir = resolve13(buildDir);
240443
240452
  for (const val of Object.values(manifest)) {
240444
240453
  if (!HASHED_FILE_RE.test(val))
240445
240454
  continue;
@@ -240452,7 +240461,7 @@ var mimeTypes, getMimeType = (filePath) => {
240452
240461
  const entries = await readdir(dir, { withFileTypes: true });
240453
240462
  const tasks = [];
240454
240463
  for (const entry of entries) {
240455
- const fullPath = resolve14(dir, entry.name);
240464
+ const fullPath = resolve13(dir, entry.name);
240456
240465
  if (entry.isDirectory()) {
240457
240466
  tasks.push(walkAndClean(fullPath));
240458
240467
  } else if (HASHED_FILE_RE.test(entry.name)) {
@@ -240505,9 +240514,9 @@ var computeFileHash = (filePath) => {
240505
240514
  var init_fileHashTracker = () => {};
240506
240515
 
240507
240516
  // src/dev/reactComponentClassifier.ts
240508
- import { resolve as resolve15 } from "path";
240517
+ import { resolve as resolve14 } from "path";
240509
240518
  var classifyComponent = (filePath) => {
240510
- const normalizedPath = resolve15(filePath);
240519
+ const normalizedPath = resolve14(filePath);
240511
240520
  if (normalizedPath.includes("/react/pages/")) {
240512
240521
  return "server";
240513
240522
  }
@@ -240519,9 +240528,9 @@ var classifyComponent = (filePath) => {
240519
240528
  var init_reactComponentClassifier = () => {};
240520
240529
 
240521
240530
  // src/dev/moduleMapper.ts
240522
- import { basename as basename6, resolve as resolve16 } from "path";
240531
+ import { basename as basename6, resolve as resolve15 } from "path";
240523
240532
  var mapSourceFileToManifestKeys = (sourceFile, framework, resolvedPaths) => {
240524
- const normalizedFile = resolve16(sourceFile);
240533
+ const normalizedFile = resolve15(sourceFile);
240525
240534
  const fileName = basename6(normalizedFile);
240526
240535
  const baseName = fileName.replace(/\.(tsx?|jsx?|vue|svelte|css|html)$/, "");
240527
240536
  const pascalName = toPascal(baseName);
@@ -240573,7 +240582,7 @@ var mapSourceFileToManifestKeys = (sourceFile, framework, resolvedPaths) => {
240573
240582
  const updates = [];
240574
240583
  const processedFiles = new Set;
240575
240584
  for (const sourceFile of changedFiles) {
240576
- const normalizedFile = resolve16(sourceFile);
240585
+ const normalizedFile = resolve15(sourceFile);
240577
240586
  const normalizedPath = normalizedFile.replace(/\\/g, "/");
240578
240587
  if (processedFiles.has(normalizedFile))
240579
240588
  continue;
@@ -240723,12 +240732,12 @@ var exports_simpleHTMLHMR = {};
240723
240732
  __export(exports_simpleHTMLHMR, {
240724
240733
  handleHTMLUpdate: () => handleHTMLUpdate
240725
240734
  });
240726
- import { readFileSync as readFileSync8, existsSync as existsSync10 } from "fs";
240727
- import { resolve as resolve17 } from "path";
240735
+ import { readFileSync as readFileSync8, existsSync as existsSync11 } from "fs";
240736
+ import { resolve as resolve16 } from "path";
240728
240737
  var handleHTMLUpdate = async (htmlFilePath) => {
240729
240738
  try {
240730
- const resolvedPath = resolve17(htmlFilePath);
240731
- if (!existsSync10(resolvedPath)) {
240739
+ const resolvedPath = resolve16(htmlFilePath);
240740
+ if (!existsSync11(resolvedPath)) {
240732
240741
  return null;
240733
240742
  }
240734
240743
  const htmlContent = readFileSync8(resolvedPath, "utf-8");
@@ -240869,10 +240878,10 @@ var exports_simpleVueHMR = {};
240869
240878
  __export(exports_simpleVueHMR, {
240870
240879
  handleVueUpdate: () => handleVueUpdate
240871
240880
  });
240872
- import { basename as basename7, join as join11, resolve as resolve18 } from "path";
240881
+ import { basename as basename7, join as join12, resolve as resolve17 } from "path";
240873
240882
  var handleVueUpdate = async (vueFilePath, manifest, buildDir) => {
240874
240883
  try {
240875
- const resolvedPath = resolve18(vueFilePath);
240884
+ const resolvedPath = resolve17(vueFilePath);
240876
240885
  const fileName = basename7(resolvedPath);
240877
240886
  const baseName = fileName.replace(/\.vue$/, "");
240878
240887
  const pascalName = toPascal(baseName);
@@ -240885,7 +240894,7 @@ var handleVueUpdate = async (vueFilePath, manifest, buildDir) => {
240885
240894
  console.warn("[Vue HMR] Available manifest keys:", Object.keys(manifest).join(", "));
240886
240895
  return null;
240887
240896
  }
240888
- const absoluteServerPath = resolve18(serverPath) === serverPath || serverPath.startsWith("/") || /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : join11(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
240897
+ const absoluteServerPath = resolve17(serverPath) === serverPath || serverPath.startsWith("/") || /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : join12(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
240889
240898
  const cacheBuster = `?t=${Date.now()}`;
240890
240899
  const serverModule = await import(`${absoluteServerPath}${cacheBuster}`);
240891
240900
  if (!serverModule || !serverModule.default) {
@@ -241018,10 +241027,10 @@ var exports_simpleSvelteHMR = {};
241018
241027
  __export(exports_simpleSvelteHMR, {
241019
241028
  handleSvelteUpdate: () => handleSvelteUpdate
241020
241029
  });
241021
- import { basename as basename8, join as join12, resolve as resolve19 } from "path";
241030
+ import { basename as basename8, join as join13, resolve as resolve18 } from "path";
241022
241031
  var handleSvelteUpdate = async (svelteFilePath, manifest, buildDir) => {
241023
241032
  try {
241024
- const resolvedPath = resolve19(svelteFilePath);
241033
+ const resolvedPath = resolve18(svelteFilePath);
241025
241034
  const fileName = basename8(resolvedPath);
241026
241035
  const baseName = fileName.replace(/\.svelte$/, "");
241027
241036
  const pascalName = toPascal(baseName);
@@ -241034,7 +241043,7 @@ var handleSvelteUpdate = async (svelteFilePath, manifest, buildDir) => {
241034
241043
  console.warn("[Svelte HMR] Available manifest keys:", Object.keys(manifest).join(", "));
241035
241044
  return null;
241036
241045
  }
241037
- const absoluteServerPath = resolve19(serverPath) === serverPath || serverPath.startsWith("/") || /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : join12(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
241046
+ const absoluteServerPath = resolve18(serverPath) === serverPath || serverPath.startsWith("/") || /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : join13(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
241038
241047
  const cacheBuster = `?t=${Date.now()}`;
241039
241048
  const serverModule = await import(`${absoluteServerPath}${cacheBuster}`);
241040
241049
  if (!serverModule || !serverModule.default) {
@@ -252647,7 +252656,7 @@ function emitNamespaceChanges(job) {
252647
252656
  }
252648
252657
  }
252649
252658
  }
252650
- function parse(value2) {
252659
+ function parse2(value2) {
252651
252660
  const styles = [];
252652
252661
  let i = 0;
252653
252662
  let parenDepth = 0;
@@ -252723,7 +252732,7 @@ function parseExtractedStyles(job) {
252723
252732
  continue;
252724
252733
  }
252725
252734
  if (op.name === "style") {
252726
- const parsedStyles = parse(op.expression.value);
252735
+ const parsedStyles = parse2(op.expression.value);
252727
252736
  for (let i = 0;i < parsedStyles.length - 1; i += 2) {
252728
252737
  OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.StyleProperty, null, parsedStyles[i], literal(parsedStyles[i + 1]), null, null, SecurityContext.STYLE), op);
252729
252738
  }
@@ -270343,10 +270352,10 @@ var exports_simpleAngularHMR = {};
270343
270352
  __export(exports_simpleAngularHMR, {
270344
270353
  handleAngularUpdate: () => handleAngularUpdate
270345
270354
  });
270346
- import { basename as basename9, resolve as resolve20 } from "path";
270355
+ import { basename as basename9, resolve as resolve19 } from "path";
270347
270356
  var handleAngularUpdate = async (angularFilePath, manifest, buildDir) => {
270348
270357
  try {
270349
- const resolvedPath = resolve20(angularFilePath);
270358
+ const resolvedPath = resolve19(angularFilePath);
270350
270359
  const fileName = basename9(resolvedPath);
270351
270360
  const baseName = fileName.replace(/\.[tj]s$/, "");
270352
270361
  const pascalName = toPascal(baseName);
@@ -270366,7 +270375,7 @@ var handleAngularUpdate = async (angularFilePath, manifest, buildDir) => {
270366
270375
  }
270367
270376
  const cacheBuster = `?t=${Date.now()}`;
270368
270377
  const serverPathWithCacheBuster = `${serverPath}${cacheBuster}`;
270369
- const absoluteServerPath = /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : resolve20(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
270378
+ const absoluteServerPath = /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : resolve19(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
270370
270379
  const serverModule = await import(`${absoluteServerPath}${cacheBuster}`);
270371
270380
  if (!serverModule) {
270372
270381
  console.warn("[Angular HMR] Failed to import module:", absoluteServerPath);
@@ -270401,12 +270410,12 @@ var exports_simpleHTMXHMR = {};
270401
270410
  __export(exports_simpleHTMXHMR, {
270402
270411
  handleHTMXUpdate: () => handleHTMXUpdate
270403
270412
  });
270404
- import { readFileSync as readFileSync9, existsSync as existsSync11 } from "fs";
270405
- import { resolve as resolve21 } from "path";
270413
+ import { readFileSync as readFileSync9, existsSync as existsSync12 } from "fs";
270414
+ import { resolve as resolve20 } from "path";
270406
270415
  var handleHTMXUpdate = async (htmxFilePath) => {
270407
270416
  try {
270408
- const resolvedPath = resolve21(htmxFilePath);
270409
- if (!existsSync11(resolvedPath)) {
270417
+ const resolvedPath = resolve20(htmxFilePath);
270418
+ if (!existsSync12(resolvedPath)) {
270410
270419
  return null;
270411
270420
  }
270412
270421
  const htmlContent = readFileSync9(resolvedPath, "utf-8");
@@ -270428,8 +270437,8 @@ var handleHTMXUpdate = async (htmxFilePath) => {
270428
270437
  var init_simpleHTMXHMR = () => {};
270429
270438
 
270430
270439
  // src/dev/rebuildTrigger.ts
270431
- import { existsSync as existsSync12 } from "fs";
270432
- import { basename as basename10, resolve as resolve22 } from "path";
270440
+ import { existsSync as existsSync13 } from "fs";
270441
+ import { basename as basename10, resolve as resolve21 } from "path";
270433
270442
  var parseErrorLocationFromMessage = (msg) => {
270434
270443
  const pathLineCol = msg.match(/^([^\s:]+):(\d+)(?::(\d+))?/);
270435
270444
  if (pathLineCol) {
@@ -270521,13 +270530,13 @@ var parseErrorLocationFromMessage = (msg) => {
270521
270530
  const validFiles = [];
270522
270531
  const processedFiles = new Set;
270523
270532
  for (const filePathInSet of filePathSet) {
270524
- if (!existsSync12(filePathInSet)) {
270533
+ if (!existsSync13(filePathInSet)) {
270525
270534
  state.fileHashes.delete(filePathInSet);
270526
270535
  try {
270527
270536
  const affectedFiles = getAffectedFiles(state.dependencyGraph, filePathInSet);
270528
- const deletedPathResolved = resolve22(filePathInSet);
270537
+ const deletedPathResolved = resolve21(filePathInSet);
270529
270538
  for (const affectedFile of affectedFiles) {
270530
- if (affectedFile !== deletedPathResolved && !processedFiles.has(affectedFile) && existsSync12(affectedFile)) {
270539
+ if (affectedFile !== deletedPathResolved && !processedFiles.has(affectedFile) && existsSync13(affectedFile)) {
270531
270540
  validFiles.push(affectedFile);
270532
270541
  processedFiles.add(affectedFile);
270533
270542
  }
@@ -270538,7 +270547,7 @@ var parseErrorLocationFromMessage = (msg) => {
270538
270547
  const fileHash = computeFileHash(filePathInSet);
270539
270548
  const storedHash = state.fileHashes.get(filePathInSet);
270540
270549
  if (!storedHash || storedHash !== fileHash) {
270541
- const normalizedFilePath = resolve22(filePathInSet);
270550
+ const normalizedFilePath = resolve21(filePathInSet);
270542
270551
  if (!processedFiles.has(normalizedFilePath)) {
270543
270552
  validFiles.push(normalizedFilePath);
270544
270553
  processedFiles.add(normalizedFilePath);
@@ -270548,7 +270557,7 @@ var parseErrorLocationFromMessage = (msg) => {
270548
270557
  try {
270549
270558
  const dependents = state.dependencyGraph.dependents.get(normalizedFilePath);
270550
270559
  if (dependents && dependents.size > 0) {
270551
- const dependentFiles = Array.from(dependents).filter((f) => existsSync12(f));
270560
+ const dependentFiles = Array.from(dependents).filter((f) => existsSync13(f));
270552
270561
  if (dependentFiles.length > 0) {
270553
270562
  incrementSourceFileVersions(state, dependentFiles);
270554
270563
  }
@@ -270557,7 +270566,7 @@ var parseErrorLocationFromMessage = (msg) => {
270557
270566
  try {
270558
270567
  const affectedFiles = getAffectedFiles(state.dependencyGraph, normalizedFilePath);
270559
270568
  for (const affectedFile of affectedFiles) {
270560
- if (!processedFiles.has(affectedFile) && affectedFile !== normalizedFilePath && existsSync12(affectedFile)) {
270569
+ if (!processedFiles.has(affectedFile) && affectedFile !== normalizedFilePath && existsSync13(affectedFile)) {
270561
270570
  validFiles.push(affectedFile);
270562
270571
  processedFiles.add(affectedFile);
270563
270572
  }
@@ -270718,10 +270727,10 @@ var parseErrorLocationFromMessage = (msg) => {
270718
270727
  const htmlPageFiles = htmlFrameworkFiles.filter((f) => f.endsWith(".html"));
270719
270728
  const pagesToUpdate = htmlPageFiles;
270720
270729
  const isSingle = !config.reactDirectory && !config.svelteDirectory && !config.vueDirectory && !config.htmxDirectory;
270721
- const outputHtmlPages = isSingle ? resolve22(state.resolvedPaths.buildDir, "pages") : resolve22(state.resolvedPaths.buildDir, basename10(config.htmlDirectory ?? "html"), "pages");
270730
+ const outputHtmlPages = isSingle ? resolve21(state.resolvedPaths.buildDir, "pages") : resolve21(state.resolvedPaths.buildDir, basename10(config.htmlDirectory ?? "html"), "pages");
270722
270731
  for (const pageFile of pagesToUpdate) {
270723
270732
  const htmlPageName = basename10(pageFile);
270724
- const builtHtmlPagePath = resolve22(outputHtmlPages, htmlPageName);
270733
+ const builtHtmlPagePath = resolve21(outputHtmlPages, htmlPageName);
270725
270734
  try {
270726
270735
  const { handleHTMLUpdate: handleHTMLUpdate2 } = await Promise.resolve().then(() => (init_simpleHTMLHMR(), exports_simpleHTMLHMR));
270727
270736
  const newHTML = await handleHTMLUpdate2(builtHtmlPagePath);
@@ -270788,7 +270797,7 @@ var parseErrorLocationFromMessage = (msg) => {
270788
270797
  const cssKey = `${pascalName}CSS`;
270789
270798
  const cssUrl = manifest[cssKey] || null;
270790
270799
  const { vueHmrMetadata: vueHmrMetadata2 } = await Promise.resolve().then(() => (init_compileVue(), exports_compileVue));
270791
- const hmrMeta = vueHmrMetadata2.get(resolve22(vuePagePath));
270800
+ const hmrMeta = vueHmrMetadata2.get(resolve21(vuePagePath));
270792
270801
  const changeType = hmrMeta?.changeType ?? "full";
270793
270802
  if (changeType === "style-only") {
270794
270803
  logger.cssUpdate(vuePagePath, "vue", duration);
@@ -271012,10 +271021,10 @@ var parseErrorLocationFromMessage = (msg) => {
271012
271021
  if (htmxFrameworkFiles.length > 0) {
271013
271022
  const htmxPageFiles = htmxFrameworkFiles.filter((f) => f.endsWith(".html"));
271014
271023
  const isSingle = !config.reactDirectory && !config.svelteDirectory && !config.vueDirectory && !config.htmlDirectory;
271015
- const outputHtmxPages = isSingle ? resolve22(state.resolvedPaths.buildDir, "pages") : resolve22(state.resolvedPaths.buildDir, basename10(config.htmxDirectory ?? "htmx"), "pages");
271024
+ const outputHtmxPages = isSingle ? resolve21(state.resolvedPaths.buildDir, "pages") : resolve21(state.resolvedPaths.buildDir, basename10(config.htmxDirectory ?? "htmx"), "pages");
271016
271025
  for (const htmxPageFile of htmxPageFiles) {
271017
271026
  const htmxPageName = basename10(htmxPageFile);
271018
- const builtHtmxPagePath = resolve22(outputHtmxPages, htmxPageName);
271027
+ const builtHtmxPagePath = resolve21(outputHtmxPages, htmxPageName);
271019
271028
  try {
271020
271029
  const { handleHTMXUpdate: handleHTMXUpdate2 } = await Promise.resolve().then(() => (init_simpleHTMXHMR(), exports_simpleHTMXHMR));
271021
271030
  const newHTML = await handleHTMXUpdate2(builtHtmxPagePath);
@@ -271156,11 +271165,11 @@ __export(exports_devBuild, {
271156
271165
  });
271157
271166
  import { readdir as readdir2 } from "fs/promises";
271158
271167
  import { statSync } from "fs";
271159
- import { resolve as resolve23 } from "path";
271168
+ import { resolve as resolve22 } from "path";
271160
271169
  var devBuild = async (config) => {
271161
271170
  const cached = globalThis.__hmrDevResult;
271162
271171
  if (cached) {
271163
- const serverMtime = statSync(resolve23(Bun.main)).mtimeMs;
271172
+ const serverMtime = statSync(resolve22(Bun.main)).mtimeMs;
271164
271173
  const lastMtime = globalThis.__hmrServerMtime;
271165
271174
  globalThis.__hmrServerMtime = serverMtime;
271166
271175
  if (serverMtime !== lastMtime) {
@@ -271177,8 +271186,8 @@ var devBuild = async (config) => {
271177
271186
  setDevVendorPaths(computeVendorPaths());
271178
271187
  }
271179
271188
  const candidates = [
271180
- resolve23(import.meta.dir, "..", "..", "package.json"),
271181
- resolve23(import.meta.dir, "..", "package.json")
271189
+ resolve22(import.meta.dir, "..", "..", "package.json"),
271190
+ resolve22(import.meta.dir, "..", "package.json")
271182
271191
  ];
271183
271192
  for (const candidate of candidates) {
271184
271193
  try {
@@ -271205,12 +271214,12 @@ var devBuild = async (config) => {
271205
271214
  await cleanStaleAssets(state.assetStore, manifest ?? {}, state.resolvedPaths.buildDir);
271206
271215
  if (config.reactDirectory) {
271207
271216
  await buildReactVendor(state.resolvedPaths.buildDir);
271208
- const vendorDir = resolve23(state.resolvedPaths.buildDir, "react", "vendor");
271217
+ const vendorDir = resolve22(state.resolvedPaths.buildDir, "react", "vendor");
271209
271218
  try {
271210
271219
  const entries = await readdir2(vendorDir);
271211
271220
  for (const entry of entries) {
271212
271221
  const webPath = `/react/vendor/${entry}`;
271213
- const bytes = await Bun.file(resolve23(vendorDir, entry)).bytes();
271222
+ const bytes = await Bun.file(resolve22(vendorDir, entry)).bytes();
271214
271223
  state.assetStore.set(webPath, bytes);
271215
271224
  }
271216
271225
  } catch {}
@@ -271226,7 +271235,7 @@ var devBuild = async (config) => {
271226
271235
  manifest
271227
271236
  };
271228
271237
  globalThis.__hmrDevResult = result;
271229
- globalThis.__hmrServerMtime = statSync(resolve23(Bun.main)).mtimeMs;
271238
+ globalThis.__hmrServerMtime = statSync(resolve22(Bun.main)).mtimeMs;
271230
271239
  return result;
271231
271240
  };
271232
271241
  var init_devBuild = __esm(() => {
@@ -271249,5 +271258,5 @@ export {
271249
271258
  build
271250
271259
  };
271251
271260
 
271252
- //# debugId=F52404F2B20AA97E64756E2164756E21
271261
+ //# debugId=97D932B47FABCE1964756E2164756E21
271253
271262
  //# sourceMappingURL=build.js.map