@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/index.js CHANGED
@@ -581,14 +581,23 @@ var init_telemetry = __esm(() => {
581
581
  });
582
582
 
583
583
  // src/cli/telemetryEvent.ts
584
- import { readFileSync as readFileSync2 } from "fs";
584
+ import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
585
585
  import { arch, platform } from "os";
586
- import { resolve as resolve3 } from "path";
586
+ import { dirname, join as join3, parse } from "path";
587
587
  var getVersion = () => {
588
588
  try {
589
- const pkgPath = resolve3(import.meta.dir, "../../package.json");
590
- const pkg = JSON.parse(readFileSync2(pkgPath, "utf-8"));
591
- return pkg.version;
589
+ let dir = import.meta.dir;
590
+ while (dir !== parse(dir).root) {
591
+ const candidate = join3(dir, "package.json");
592
+ if (existsSync3(candidate)) {
593
+ const pkg = JSON.parse(readFileSync2(candidate, "utf-8"));
594
+ if (pkg.name === "@absolutejs/absolute") {
595
+ return pkg.version;
596
+ }
597
+ }
598
+ dir = dirname(dir);
599
+ }
600
+ return "unknown";
592
601
  } catch {
593
602
  return "unknown";
594
603
  }
@@ -666,8 +675,8 @@ var init_updateAssetPaths = __esm(() => {
666
675
  });
667
676
 
668
677
  // src/dev/buildHMRClient.ts
669
- import { existsSync as existsSync3 } from "fs";
670
- import { resolve as resolve4 } from "path";
678
+ import { existsSync as existsSync4 } from "fs";
679
+ import { resolve as resolve3 } from "path";
671
680
  var {build: bunBuild } = globalThis.Bun;
672
681
  var hmrClientPath2, buildHMRClient = async () => {
673
682
  const entryPoint = hmrClientPath2;
@@ -690,10 +699,10 @@ var hmrClientPath2, buildHMRClient = async () => {
690
699
  var init_buildHMRClient = __esm(() => {
691
700
  init_telemetryEvent();
692
701
  hmrClientPath2 = (() => {
693
- const fromSource = resolve4(import.meta.dir, "client/hmrClient.ts");
694
- if (existsSync3(fromSource))
702
+ const fromSource = resolve3(import.meta.dir, "client/hmrClient.ts");
703
+ if (existsSync4(fromSource))
695
704
  return fromSource;
696
- return resolve4(import.meta.dir, "dev/client/hmrClient.ts");
705
+ return resolve3(import.meta.dir, "dev/client/hmrClient.ts");
697
706
  })();
698
707
  });
699
708
 
@@ -18463,14 +18472,14 @@ var require_lib4 = __commonJS((exports) => {
18463
18472
  super.checkParams(node, false, true);
18464
18473
  this.scope.exit();
18465
18474
  }
18466
- forwardNoArrowParamsConversionAt(node, parse2) {
18475
+ forwardNoArrowParamsConversionAt(node, parse3) {
18467
18476
  let result;
18468
18477
  if (this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start))) {
18469
18478
  this.state.noArrowParamsConversionAt.push(this.state.start);
18470
- result = parse2();
18479
+ result = parse3();
18471
18480
  this.state.noArrowParamsConversionAt.pop();
18472
18481
  } else {
18473
- result = parse2();
18482
+ result = parse3();
18474
18483
  }
18475
18484
  return result;
18476
18485
  }
@@ -30062,7 +30071,7 @@ var require_lib4 = __commonJS((exports) => {
30062
30071
  return result;
30063
30072
  }
30064
30073
  }
30065
- function parse(input, options) {
30074
+ function parse2(input, options) {
30066
30075
  var _options;
30067
30076
  if (((_options = options) == null ? undefined : _options.sourceType) === "unambiguous") {
30068
30077
  options = Object.assign({}, options);
@@ -30147,7 +30156,7 @@ var require_lib4 = __commonJS((exports) => {
30147
30156
  }
30148
30157
  return cls;
30149
30158
  }
30150
- exports.parse = parse;
30159
+ exports.parse = parse2;
30151
30160
  exports.parseExpression = parseExpression;
30152
30161
  exports.tokTypes = tokTypes;
30153
30162
  });
@@ -35020,7 +35029,7 @@ var require_resolve_uri_umd = __commonJS((exports, module) => {
35020
35029
  }
35021
35030
  url.path = path;
35022
35031
  }
35023
- function resolve5(input, base) {
35032
+ function resolve4(input, base) {
35024
35033
  if (!input && !base)
35025
35034
  return "";
35026
35035
  const url = parseUrl(input);
@@ -35067,7 +35076,7 @@ var require_resolve_uri_umd = __commonJS((exports, module) => {
35067
35076
  return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
35068
35077
  }
35069
35078
  }
35070
- return resolve5;
35079
+ return resolve4;
35071
35080
  });
35072
35081
  });
35073
35082
 
@@ -35721,11 +35730,11 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35721
35730
  function buildNullArray() {
35722
35731
  return { __proto__: null };
35723
35732
  }
35724
- function parse(map) {
35733
+ function parse2(map) {
35725
35734
  return typeof map === "string" ? JSON.parse(map) : map;
35726
35735
  }
35727
35736
  var FlattenMap = function(map, mapUrl) {
35728
- const parsed = parse(map);
35737
+ const parsed = parse2(map);
35729
35738
  if (!("sections" in parsed)) {
35730
35739
  return new TraceMap(parsed, mapUrl);
35731
35740
  }
@@ -35765,7 +35774,7 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35765
35774
  }
35766
35775
  }
35767
35776
  function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
35768
- const parsed = parse(input);
35777
+ const parsed = parse2(input);
35769
35778
  if ("sections" in parsed)
35770
35779
  return recurse(...arguments);
35771
35780
  const map = new TraceMap(parsed, mapUrl);
@@ -35824,7 +35833,7 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35824
35833
  const isString = typeof map === "string";
35825
35834
  if (!isString && map._decodedMemo)
35826
35835
  return map;
35827
- const parsed = parse(map);
35836
+ const parsed = parse2(map);
35828
35837
  const { version, file: file2, names, sourceRoot, sources, sourcesContent } = parsed;
35829
35838
  this.version = version;
35830
35839
  this.file = file2;
@@ -35833,8 +35842,8 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
35833
35842
  this.sources = sources;
35834
35843
  this.sourcesContent = sourcesContent;
35835
35844
  this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;
35836
- const resolve5 = resolver(mapUrl, sourceRoot);
35837
- this.resolvedSources = sources.map(resolve5);
35845
+ const resolve4 = resolver(mapUrl, sourceRoot);
35846
+ this.resolvedSources = sources.map(resolve4);
35838
35847
  const { mappings } = parsed;
35839
35848
  if (typeof mappings === "string") {
35840
35849
  this._encoded = mappings;
@@ -44374,7 +44383,7 @@ var require_introspection = __commonJS((exports) => {
44374
44383
  exports.isStatic = isStatic;
44375
44384
  exports.matchesPattern = matchesPattern;
44376
44385
  exports.referencesImport = referencesImport;
44377
- exports.resolve = resolve5;
44386
+ exports.resolve = resolve4;
44378
44387
  exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore;
44379
44388
  var _t = require_lib3();
44380
44389
  var {
@@ -44640,7 +44649,7 @@ var require_introspection = __commonJS((exports) => {
44640
44649
  nodeMap.set(target.node, result);
44641
44650
  return result;
44642
44651
  }
44643
- function resolve5(dangerous, resolved) {
44652
+ function resolve4(dangerous, resolved) {
44644
44653
  return _resolve.call(this, dangerous, resolved) || this;
44645
44654
  }
44646
44655
  function _resolve(dangerous, resolved) {
@@ -46162,8 +46171,8 @@ var require_semver = __commonJS((exports, module) => {
46162
46171
  }
46163
46172
  }
46164
46173
  var i;
46165
- exports.parse = parse;
46166
- function parse(version, options) {
46174
+ exports.parse = parse2;
46175
+ function parse2(version, options) {
46167
46176
  if (!options || typeof options !== "object") {
46168
46177
  options = {
46169
46178
  loose: !!options,
@@ -46191,12 +46200,12 @@ var require_semver = __commonJS((exports, module) => {
46191
46200
  }
46192
46201
  exports.valid = valid;
46193
46202
  function valid(version, options) {
46194
- var v = parse(version, options);
46203
+ var v = parse2(version, options);
46195
46204
  return v ? v.version : null;
46196
46205
  }
46197
46206
  exports.clean = clean;
46198
46207
  function clean(version, options) {
46199
- var s = parse(version.trim().replace(/^[=v]+/, ""), options);
46208
+ var s = parse2(version.trim().replace(/^[=v]+/, ""), options);
46200
46209
  return s ? s.version : null;
46201
46210
  }
46202
46211
  exports.SemVer = SemVer;
@@ -46428,8 +46437,8 @@ var require_semver = __commonJS((exports, module) => {
46428
46437
  if (eq(version1, version2)) {
46429
46438
  return null;
46430
46439
  } else {
46431
- var v1 = parse(version1);
46432
- var v2 = parse(version2);
46440
+ var v1 = parse2(version1);
46441
+ var v2 = parse2(version2);
46433
46442
  var prefix = "";
46434
46443
  if (v1.prerelease.length || v2.prerelease.length) {
46435
46444
  prefix = "pre";
@@ -47133,7 +47142,7 @@ var require_semver = __commonJS((exports, module) => {
47133
47142
  }
47134
47143
  exports.prerelease = prerelease;
47135
47144
  function prerelease(version, options) {
47136
- var parsed = parse(version, options);
47145
+ var parsed = parse2(version, options);
47137
47146
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
47138
47147
  }
47139
47148
  exports.intersects = intersects;
@@ -47170,7 +47179,7 @@ var require_semver = __commonJS((exports, module) => {
47170
47179
  if (match === null) {
47171
47180
  return null;
47172
47181
  }
47173
- return parse(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
47182
+ return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
47174
47183
  }
47175
47184
  });
47176
47185
 
@@ -49347,10 +49356,10 @@ var require_gensync = __commonJS((exports, module) => {
49347
49356
  const items = Array.from(args[0]);
49348
49357
  return items.map((item) => evaluateSync(item));
49349
49358
  },
49350
- async: function(args, resolve5, reject) {
49359
+ async: function(args, resolve4, reject) {
49351
49360
  const items = Array.from(args[0]);
49352
49361
  if (items.length === 0) {
49353
- Promise.resolve().then(() => resolve5([]));
49362
+ Promise.resolve().then(() => resolve4([]));
49354
49363
  return;
49355
49364
  }
49356
49365
  let count = 0;
@@ -49362,7 +49371,7 @@ var require_gensync = __commonJS((exports, module) => {
49362
49371
  results[i] = val;
49363
49372
  count += 1;
49364
49373
  if (count === results.length)
49365
- resolve5(results);
49374
+ resolve4(results);
49366
49375
  }, reject);
49367
49376
  });
49368
49377
  }
@@ -49377,13 +49386,13 @@ var require_gensync = __commonJS((exports, module) => {
49377
49386
  }
49378
49387
  return evaluateSync(items[0]);
49379
49388
  },
49380
- async: function(args, resolve5, reject) {
49389
+ async: function(args, resolve4, reject) {
49381
49390
  const items = Array.from(args[0]);
49382
49391
  if (items.length === 0) {
49383
49392
  throw makeError("Must race at least 1 item", GENSYNC_RACE_NONEMPTY);
49384
49393
  }
49385
49394
  for (const item of items) {
49386
- evaluateAsync(item, resolve5, reject);
49395
+ evaluateAsync(item, resolve4, reject);
49387
49396
  }
49388
49397
  }
49389
49398
  })
@@ -49394,8 +49403,8 @@ var require_gensync = __commonJS((exports, module) => {
49394
49403
  return evaluateSync(genFn.apply(this, args));
49395
49404
  },
49396
49405
  async: function(...args) {
49397
- return new Promise((resolve5, reject) => {
49398
- evaluateAsync(genFn.apply(this, args), resolve5, reject);
49406
+ return new Promise((resolve4, reject) => {
49407
+ evaluateAsync(genFn.apply(this, args), resolve4, reject);
49399
49408
  });
49400
49409
  },
49401
49410
  errback: function(...args) {
@@ -49463,18 +49472,18 @@ var require_gensync = __commonJS((exports, module) => {
49463
49472
  sync: function(args) {
49464
49473
  return sync.apply(this, args);
49465
49474
  },
49466
- async: function(args, resolve5, reject) {
49475
+ async: function(args, resolve4, reject) {
49467
49476
  if (async) {
49468
- async.apply(this, args).then(resolve5, reject);
49477
+ async.apply(this, args).then(resolve4, reject);
49469
49478
  } else if (errback) {
49470
49479
  errback.call(this, ...args, (err, value2) => {
49471
49480
  if (err == null)
49472
- resolve5(value2);
49481
+ resolve4(value2);
49473
49482
  else
49474
49483
  reject(err);
49475
49484
  });
49476
49485
  } else {
49477
- resolve5(sync.apply(this, args));
49486
+ resolve4(sync.apply(this, args));
49478
49487
  }
49479
49488
  }
49480
49489
  });
@@ -49522,7 +49531,7 @@ var require_gensync = __commonJS((exports, module) => {
49522
49531
  }
49523
49532
  return value2;
49524
49533
  }
49525
- function evaluateAsync(gen, resolve5, reject) {
49534
+ function evaluateAsync(gen, resolve4, reject) {
49526
49535
  (function step() {
49527
49536
  try {
49528
49537
  let value2;
@@ -49543,7 +49552,7 @@ var require_gensync = __commonJS((exports, module) => {
49543
49552
  return;
49544
49553
  }
49545
49554
  }
49546
- return resolve5(value2);
49555
+ return resolve4(value2);
49547
49556
  } catch (err) {
49548
49557
  return reject(err);
49549
49558
  }
@@ -49991,8 +50000,8 @@ var require_caching = __commonJS((exports) => {
49991
50000
  this.released = false;
49992
50001
  this.promise = undefined;
49993
50002
  this._resolve = undefined;
49994
- this.promise = new Promise((resolve5) => {
49995
- this._resolve = resolve5;
50003
+ this.promise = new Promise((resolve4) => {
50004
+ this._resolve = resolve4;
49996
50005
  });
49997
50006
  }
49998
50007
  release(value2) {
@@ -50244,16 +50253,16 @@ var require_package = __commonJS((exports) => {
50244
50253
  let pkg = null;
50245
50254
  const directories = [];
50246
50255
  let isPackage = true;
50247
- let dirname = _path().dirname(filepath);
50248
- while (!pkg && _path().basename(dirname) !== "node_modules") {
50249
- directories.push(dirname);
50250
- pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME));
50251
- const nextLoc = _path().dirname(dirname);
50252
- if (dirname === nextLoc) {
50256
+ let dirname2 = _path().dirname(filepath);
50257
+ while (!pkg && _path().basename(dirname2) !== "node_modules") {
50258
+ directories.push(dirname2);
50259
+ pkg = yield* readConfigPackage(_path().join(dirname2, PACKAGE_FILENAME));
50260
+ const nextLoc = _path().dirname(dirname2);
50261
+ if (dirname2 === nextLoc) {
50253
50262
  isPackage = false;
50254
50263
  break;
50255
50264
  }
50256
- dirname = nextLoc;
50265
+ dirname2 = nextLoc;
50257
50266
  }
50258
50267
  return {
50259
50268
  filepath,
@@ -50305,7 +50314,7 @@ var require_parse2 = __commonJS((exports, module) => {
50305
50314
  var token;
50306
50315
  var key;
50307
50316
  var root;
50308
- module.exports = function parse(text, reviver) {
50317
+ module.exports = function parse2(text, reviver) {
50309
50318
  source = String(text);
50310
50319
  parseState = "start";
50311
50320
  stack = [];
@@ -51369,10 +51378,10 @@ var require_stringify = __commonJS((exports, module) => {
51369
51378
 
51370
51379
  // node_modules/json5/lib/index.js
51371
51380
  var require_lib12 = __commonJS((exports, module) => {
51372
- var parse = require_parse2();
51381
+ var parse2 = require_parse2();
51373
51382
  var stringify = require_stringify();
51374
51383
  var JSON5 = {
51375
- parse,
51384
+ parse: parse2,
51376
51385
  stringify
51377
51386
  };
51378
51387
  module.exports = JSON5;
@@ -51551,9 +51560,9 @@ var require_functional = __commonJS((exports) => {
51551
51560
  };
51552
51561
  }
51553
51562
  } else {
51554
- let resolve5, reject;
51563
+ let resolve4, reject;
51555
51564
  resultP = new Promise((res, rej) => {
51556
- resolve5 = res;
51565
+ resolve4 = res;
51557
51566
  reject = rej;
51558
51567
  });
51559
51568
  try {
@@ -51563,7 +51572,7 @@ var require_functional = __commonJS((exports) => {
51563
51572
  };
51564
51573
  resultP = null;
51565
51574
  if (promiseReferenced)
51566
- resolve5(result.value);
51575
+ resolve4(result.value);
51567
51576
  } catch (error) {
51568
51577
  result = {
51569
51578
  ok: false,
@@ -52408,7 +52417,7 @@ var require_parse3 = __commonJS((exports, module) => {
52408
52417
  return false;
52409
52418
  });
52410
52419
  }
52411
- module.exports = function parse(all, queries) {
52420
+ module.exports = function parse2(all, queries) {
52412
52421
  if (!Array.isArray(queries))
52413
52422
  queries = [queries];
52414
52423
  return flatten(queries.map(function(block) {
@@ -52697,7 +52706,7 @@ var require_browserslist = __commonJS((exports, module) => {
52697
52706
  function isSupported(flags, withPartial) {
52698
52707
  return typeof flags === "string" && (flags.indexOf("y") >= 0 || withPartial && flags.indexOf("a") >= 0);
52699
52708
  }
52700
- function resolve5(queries, context) {
52709
+ function resolve4(queries, context) {
52701
52710
  return parseQueries(queries).reduce(function(result, node, index) {
52702
52711
  if (node.not && index === 0) {
52703
52712
  throw new BrowserslistError("Write any browsers query (for instance, `defaults`) " + "before `" + node.query + "`");
@@ -52788,7 +52797,7 @@ var require_browserslist = __commonJS((exports, module) => {
52788
52797
  var cacheKey = JSON.stringify([queries, context]);
52789
52798
  if (cache[cacheKey])
52790
52799
  return cache[cacheKey];
52791
- var result = uniq(resolve5(queries, context)).sort(function(name1, name2) {
52800
+ var result = uniq(resolve4(queries, context)).sort(function(name1, name2) {
52792
52801
  name1 = name1.split(" ");
52793
52802
  name2 = name2.split(" ");
52794
52803
  if (name1[0] === name2[0]) {
@@ -53405,7 +53414,7 @@ var require_browserslist = __commonJS((exports, module) => {
53405
53414
  matches: [],
53406
53415
  regexp: /^current\s+node$/i,
53407
53416
  select: function(context) {
53408
- return [env.currentNode(resolve5, context)];
53417
+ return [env.currentNode(resolve4, context)];
53409
53418
  }
53410
53419
  },
53411
53420
  maintained_node: {
@@ -53418,7 +53427,7 @@ var require_browserslist = __commonJS((exports, module) => {
53418
53427
  }).map(function(key) {
53419
53428
  return "node " + key.slice(1);
53420
53429
  });
53421
- return resolve5(queries, context);
53430
+ return resolve4(queries, context);
53422
53431
  }
53423
53432
  },
53424
53433
  phantomjs_1_9: {
@@ -53477,14 +53486,14 @@ var require_browserslist = __commonJS((exports, module) => {
53477
53486
  regexp: /^extends (.+)$/i,
53478
53487
  needsPath: true,
53479
53488
  select: function(context, node) {
53480
- return resolve5(env.loadQueries(context, node.config), context);
53489
+ return resolve4(env.loadQueries(context, node.config), context);
53481
53490
  }
53482
53491
  },
53483
53492
  defaults: {
53484
53493
  matches: [],
53485
53494
  regexp: /^defaults$/i,
53486
53495
  select: function(context) {
53487
- return resolve5(browserslist.defaults, context);
53496
+ return resolve4(browserslist.defaults, context);
53488
53497
  }
53489
53498
  },
53490
53499
  dead: {
@@ -53499,7 +53508,7 @@ var require_browserslist = __commonJS((exports, module) => {
53499
53508
  "op_mob <= 12.1",
53500
53509
  "samsung 4"
53501
53510
  ];
53502
- return resolve5(dead, context);
53511
+ return resolve4(dead, context);
53503
53512
  }
53504
53513
  },
53505
53514
  unknown: {
@@ -54426,8 +54435,8 @@ var require_semver2 = __commonJS((exports, module) => {
54426
54435
  }
54427
54436
  }
54428
54437
  var i;
54429
- exports.parse = parse;
54430
- function parse(version, options) {
54438
+ exports.parse = parse2;
54439
+ function parse2(version, options) {
54431
54440
  if (!options || typeof options !== "object") {
54432
54441
  options = {
54433
54442
  loose: !!options,
@@ -54455,12 +54464,12 @@ var require_semver2 = __commonJS((exports, module) => {
54455
54464
  }
54456
54465
  exports.valid = valid;
54457
54466
  function valid(version, options) {
54458
- var v = parse(version, options);
54467
+ var v = parse2(version, options);
54459
54468
  return v ? v.version : null;
54460
54469
  }
54461
54470
  exports.clean = clean;
54462
54471
  function clean(version, options) {
54463
- var s = parse(version.trim().replace(/^[=v]+/, ""), options);
54472
+ var s = parse2(version.trim().replace(/^[=v]+/, ""), options);
54464
54473
  return s ? s.version : null;
54465
54474
  }
54466
54475
  exports.SemVer = SemVer;
@@ -54692,8 +54701,8 @@ var require_semver2 = __commonJS((exports, module) => {
54692
54701
  if (eq(version1, version2)) {
54693
54702
  return null;
54694
54703
  } else {
54695
- var v1 = parse(version1);
54696
- var v2 = parse(version2);
54704
+ var v1 = parse2(version1);
54705
+ var v2 = parse2(version2);
54697
54706
  var prefix = "";
54698
54707
  if (v1.prerelease.length || v2.prerelease.length) {
54699
54708
  prefix = "pre";
@@ -55397,7 +55406,7 @@ var require_semver2 = __commonJS((exports, module) => {
55397
55406
  }
55398
55407
  exports.prerelease = prerelease;
55399
55408
  function prerelease(version, options) {
55400
- var parsed = parse(version, options);
55409
+ var parsed = parse2(version, options);
55401
55410
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
55402
55411
  }
55403
55412
  exports.intersects = intersects;
@@ -55434,7 +55443,7 @@ var require_semver2 = __commonJS((exports, module) => {
55434
55443
  if (match === null) {
55435
55444
  return null;
55436
55445
  }
55437
- return parse(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
55446
+ return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
55438
55447
  }
55439
55448
  });
55440
55449
 
@@ -56865,44 +56874,44 @@ var require_config_descriptors = __commonJS((exports) => {
56865
56874
  function* handlerOf(value2) {
56866
56875
  return value2;
56867
56876
  }
56868
- function optionsWithResolvedBrowserslistConfigFile(options, dirname) {
56877
+ function optionsWithResolvedBrowserslistConfigFile(options, dirname2) {
56869
56878
  if (typeof options.browserslistConfigFile === "string") {
56870
- options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname);
56879
+ options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname2);
56871
56880
  }
56872
56881
  return options;
56873
56882
  }
56874
- function createCachedDescriptors(dirname, options, alias) {
56883
+ function createCachedDescriptors(dirname2, options, alias) {
56875
56884
  const {
56876
56885
  plugins,
56877
56886
  presets,
56878
56887
  passPerPreset
56879
56888
  } = options;
56880
56889
  return {
56881
- options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
56882
- plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]),
56883
- presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([])
56890
+ options: optionsWithResolvedBrowserslistConfigFile(options, dirname2),
56891
+ plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname2)(alias) : () => handlerOf([]),
56892
+ presets: presets ? () => createCachedPresetDescriptors(presets, dirname2)(alias)(!!passPerPreset) : () => handlerOf([])
56884
56893
  };
56885
56894
  }
56886
- function createUncachedDescriptors(dirname, options, alias) {
56895
+ function createUncachedDescriptors(dirname2, options, alias) {
56887
56896
  return {
56888
- options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
56889
- plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)),
56890
- presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset))
56897
+ options: optionsWithResolvedBrowserslistConfigFile(options, dirname2),
56898
+ plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname2, alias)),
56899
+ presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname2, alias, !!options.passPerPreset))
56891
56900
  };
56892
56901
  }
56893
56902
  var PRESET_DESCRIPTOR_CACHE = new WeakMap;
56894
56903
  var createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
56895
- const dirname = cache.using((dir) => dir);
56904
+ const dirname2 = cache.using((dir) => dir);
56896
56905
  return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
56897
- const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset);
56906
+ const descriptors = yield* createPresetDescriptors(items, dirname2, alias, passPerPreset);
56898
56907
  return descriptors.map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
56899
56908
  }));
56900
56909
  });
56901
56910
  var PLUGIN_DESCRIPTOR_CACHE = new WeakMap;
56902
56911
  var createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
56903
- const dirname = cache.using((dir) => dir);
56912
+ const dirname2 = cache.using((dir) => dir);
56904
56913
  return (0, _caching.makeStrongCache)(function* (alias) {
56905
- const descriptors = yield* createPluginDescriptors(items, dirname, alias);
56914
+ const descriptors = yield* createPluginDescriptors(items, dirname2, alias);
56906
56915
  return descriptors.map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
56907
56916
  });
56908
56917
  });
@@ -56933,14 +56942,14 @@ var require_config_descriptors = __commonJS((exports) => {
56933
56942
  }
56934
56943
  return desc;
56935
56944
  }
56936
- function* createPresetDescriptors(items, dirname, alias, passPerPreset) {
56937
- return yield* createDescriptors("preset", items, dirname, alias, passPerPreset);
56945
+ function* createPresetDescriptors(items, dirname2, alias, passPerPreset) {
56946
+ return yield* createDescriptors("preset", items, dirname2, alias, passPerPreset);
56938
56947
  }
56939
- function* createPluginDescriptors(items, dirname, alias) {
56940
- return yield* createDescriptors("plugin", items, dirname, alias);
56948
+ function* createPluginDescriptors(items, dirname2, alias) {
56949
+ return yield* createDescriptors("plugin", items, dirname2, alias);
56941
56950
  }
56942
- function* createDescriptors(type, items, dirname, alias, ownPass) {
56943
- const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, {
56951
+ function* createDescriptors(type, items, dirname2, alias, ownPass) {
56952
+ const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname2, {
56944
56953
  type,
56945
56954
  alias: `${alias}$${index}`,
56946
56955
  ownPass: !!ownPass
@@ -56948,7 +56957,7 @@ var require_config_descriptors = __commonJS((exports) => {
56948
56957
  assertNoDuplicates(descriptors);
56949
56958
  return descriptors;
56950
56959
  }
56951
- function* createDescriptor(pair, dirname, {
56960
+ function* createDescriptor(pair, dirname2, {
56952
56961
  type,
56953
56962
  alias,
56954
56963
  ownPass
@@ -56978,7 +56987,7 @@ var require_config_descriptors = __commonJS((exports) => {
56978
56987
  ({
56979
56988
  filepath,
56980
56989
  value: value2
56981
- } = yield* resolver(value2, dirname));
56990
+ } = yield* resolver(value2, dirname2));
56982
56991
  file2 = {
56983
56992
  request,
56984
56993
  resolved: filepath
@@ -57005,7 +57014,7 @@ var require_config_descriptors = __commonJS((exports) => {
57005
57014
  alias: filepath || alias,
57006
57015
  value: value2,
57007
57016
  options,
57008
- dirname,
57017
+ dirname: dirname2,
57009
57018
  ownPass,
57010
57019
  file: file2
57011
57020
  };
@@ -57050,10 +57059,10 @@ var require_item = __commonJS((exports) => {
57050
57059
  return new ConfigItem(desc);
57051
57060
  }
57052
57061
  function* createConfigItem(value2, {
57053
- dirname = ".",
57062
+ dirname: dirname2 = ".",
57054
57063
  type
57055
57064
  } = {}) {
57056
- const descriptor = yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname), {
57065
+ const descriptor = yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname2), {
57057
57066
  type,
57058
57067
  alias: "programmatic item"
57059
57068
  });
@@ -57669,8 +57678,8 @@ var require_pattern_to_regex = __commonJS((exports) => {
57669
57678
  function escapeRegExp(string) {
57670
57679
  return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
57671
57680
  }
57672
- function pathToPattern(pattern, dirname) {
57673
- const parts = _path().resolve(dirname, pattern).split(_path().sep);
57681
+ function pathToPattern(pattern, dirname2) {
57682
+ const parts = _path().resolve(dirname2, pattern).split(_path().sep);
57674
57683
  return new RegExp(["^", ...parts.map((part, i) => {
57675
57684
  const last = i === parts.length - 1;
57676
57685
  if (part === "**")
@@ -58019,10 +58028,10 @@ var require_config_chain = __commonJS((exports) => {
58019
58028
  });
58020
58029
  }
58021
58030
  function buildRootDescriptors({
58022
- dirname,
58031
+ dirname: dirname2,
58023
58032
  options
58024
58033
  }, alias, descriptors) {
58025
- return descriptors(dirname, options, alias);
58034
+ return descriptors(dirname2, options, alias);
58026
58035
  }
58027
58036
  function buildProgrammaticLogger(_, context, baseLogger) {
58028
58037
  var _context$caller;
@@ -58034,25 +58043,25 @@ var require_config_chain = __commonJS((exports) => {
58034
58043
  });
58035
58044
  }
58036
58045
  function buildEnvDescriptors({
58037
- dirname,
58046
+ dirname: dirname2,
58038
58047
  options
58039
58048
  }, alias, descriptors, envName) {
58040
58049
  var _options$env;
58041
58050
  const opts = (_options$env = options.env) == null ? undefined : _options$env[envName];
58042
- return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null;
58051
+ return opts ? descriptors(dirname2, opts, `${alias}.env["${envName}"]`) : null;
58043
58052
  }
58044
58053
  function buildOverrideDescriptors({
58045
- dirname,
58054
+ dirname: dirname2,
58046
58055
  options
58047
58056
  }, alias, descriptors, index) {
58048
58057
  var _options$overrides;
58049
58058
  const opts = (_options$overrides = options.overrides) == null ? undefined : _options$overrides[index];
58050
58059
  if (!opts)
58051
58060
  throw new Error("Assertion failure - missing override");
58052
- return descriptors(dirname, opts, `${alias}.overrides[${index}]`);
58061
+ return descriptors(dirname2, opts, `${alias}.overrides[${index}]`);
58053
58062
  }
58054
58063
  function buildOverrideEnvDescriptors({
58055
- dirname,
58064
+ dirname: dirname2,
58056
58065
  options
58057
58066
  }, alias, descriptors, index, envName) {
58058
58067
  var _options$overrides2, _override$env;
@@ -58060,7 +58069,7 @@ var require_config_chain = __commonJS((exports) => {
58060
58069
  if (!override)
58061
58070
  throw new Error("Assertion failure - missing override");
58062
58071
  const opts = (_override$env = override.env) == null ? undefined : _override$env[envName];
58063
- return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
58072
+ return opts ? descriptors(dirname2, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
58064
58073
  }
58065
58074
  function makeChainWalker({
58066
58075
  root,
@@ -58071,18 +58080,18 @@ var require_config_chain = __commonJS((exports) => {
58071
58080
  }) {
58072
58081
  return function* chainWalker(input, context, files = new Set, baseLogger) {
58073
58082
  const {
58074
- dirname
58083
+ dirname: dirname2
58075
58084
  } = input;
58076
58085
  const flattenedConfigs = [];
58077
58086
  const rootOpts = root(input);
58078
- if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {
58087
+ if (configIsApplicable(rootOpts, dirname2, context, input.filepath)) {
58079
58088
  flattenedConfigs.push({
58080
58089
  config: rootOpts,
58081
58090
  envName: undefined,
58082
58091
  index: undefined
58083
58092
  });
58084
58093
  const envOpts = env(input, context.envName);
58085
- if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) {
58094
+ if (envOpts && configIsApplicable(envOpts, dirname2, context, input.filepath)) {
58086
58095
  flattenedConfigs.push({
58087
58096
  config: envOpts,
58088
58097
  envName: context.envName,
@@ -58091,14 +58100,14 @@ var require_config_chain = __commonJS((exports) => {
58091
58100
  }
58092
58101
  (rootOpts.options.overrides || []).forEach((_, index) => {
58093
58102
  const overrideOps = overrides(input, index);
58094
- if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {
58103
+ if (configIsApplicable(overrideOps, dirname2, context, input.filepath)) {
58095
58104
  flattenedConfigs.push({
58096
58105
  config: overrideOps,
58097
58106
  index,
58098
58107
  envName: undefined
58099
58108
  });
58100
58109
  const overrideEnvOpts = overridesEnv(input, index, context.envName);
58101
- if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) {
58110
+ if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname2, context, input.filepath)) {
58102
58111
  flattenedConfigs.push({
58103
58112
  config: overrideEnvOpts,
58104
58113
  index,
@@ -58115,7 +58124,7 @@ var require_config_chain = __commonJS((exports) => {
58115
58124
  only
58116
58125
  }
58117
58126
  }
58118
- }) => shouldIgnore(context, ignore, only, dirname))) {
58127
+ }) => shouldIgnore(context, ignore, only, dirname2))) {
58119
58128
  return null;
58120
58129
  }
58121
58130
  const chain = emptyChain();
@@ -58125,7 +58134,7 @@ var require_config_chain = __commonJS((exports) => {
58125
58134
  index,
58126
58135
  envName
58127
58136
  } of flattenedConfigs) {
58128
- if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) {
58137
+ if (!(yield* mergeExtendsChain(chain, config.options, dirname2, context, files, baseLogger))) {
58129
58138
  return null;
58130
58139
  }
58131
58140
  logger(config, index, envName);
@@ -58134,10 +58143,10 @@ var require_config_chain = __commonJS((exports) => {
58134
58143
  return chain;
58135
58144
  };
58136
58145
  }
58137
- function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) {
58146
+ function* mergeExtendsChain(chain, opts, dirname2, context, files, baseLogger) {
58138
58147
  if (opts.extends === undefined)
58139
58148
  return true;
58140
- const file2 = yield* (0, _index.loadConfig)(opts.extends, dirname, context.envName, context.caller);
58149
+ const file2 = yield* (0, _index.loadConfig)(opts.extends, dirname2, context.envName, context.caller);
58141
58150
  if (files.has(file2)) {
58142
58151
  throw new Error(`Configuration cycle detected loading ${file2.filepath}.
58143
58152
  ` + `File already loaded following the config chain:
@@ -58233,12 +58242,12 @@ var require_config_chain = __commonJS((exports) => {
58233
58242
  }
58234
58243
  function configIsApplicable({
58235
58244
  options
58236
- }, dirname, context, configName) {
58237
- 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));
58245
+ }, dirname2, context, configName) {
58246
+ 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));
58238
58247
  }
58239
- function configFieldIsApplicable(context, test, dirname, configName) {
58248
+ function configFieldIsApplicable(context, test, dirname2, configName) {
58240
58249
  const patterns = Array.isArray(test) ? test : [test];
58241
- return matchesPatterns(context, patterns, dirname, configName);
58250
+ return matchesPatterns(context, patterns, dirname2, configName);
58242
58251
  }
58243
58252
  function ignoreListReplacer(_key, value2) {
58244
58253
  if (value2 instanceof RegExp) {
@@ -58246,19 +58255,19 @@ var require_config_chain = __commonJS((exports) => {
58246
58255
  }
58247
58256
  return value2;
58248
58257
  }
58249
- function shouldIgnore(context, ignore, only, dirname) {
58250
- if (ignore && matchesPatterns(context, ignore, dirname)) {
58258
+ function shouldIgnore(context, ignore, only, dirname2) {
58259
+ if (ignore && matchesPatterns(context, ignore, dirname2)) {
58251
58260
  var _context$filename;
58252
- 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}"`;
58261
+ 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}"`;
58253
58262
  debug(message);
58254
58263
  if (context.showConfig) {
58255
58264
  console.log(message);
58256
58265
  }
58257
58266
  return true;
58258
58267
  }
58259
- if (only && !matchesPatterns(context, only, dirname)) {
58268
+ if (only && !matchesPatterns(context, only, dirname2)) {
58260
58269
  var _context$filename2;
58261
- 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}"`;
58270
+ 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}"`;
58262
58271
  debug(message);
58263
58272
  if (context.showConfig) {
58264
58273
  console.log(message);
@@ -58267,13 +58276,13 @@ var require_config_chain = __commonJS((exports) => {
58267
58276
  }
58268
58277
  return false;
58269
58278
  }
58270
- function matchesPatterns(context, patterns, dirname, configName) {
58271
- return patterns.some((pattern) => matchPattern(pattern, dirname, context.filename, context, configName));
58279
+ function matchesPatterns(context, patterns, dirname2, configName) {
58280
+ return patterns.some((pattern) => matchPattern(pattern, dirname2, context.filename, context, configName));
58272
58281
  }
58273
- function matchPattern(pattern, dirname, pathToTest, context, configName) {
58282
+ function matchPattern(pattern, dirname2, pathToTest, context, configName) {
58274
58283
  if (typeof pattern === "function") {
58275
58284
  return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, {
58276
- dirname,
58285
+ dirname: dirname2,
58277
58286
  envName: context.envName,
58278
58287
  caller: context.caller
58279
58288
  });
@@ -58282,7 +58291,7 @@ var require_config_chain = __commonJS((exports) => {
58282
58291
  throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName);
58283
58292
  }
58284
58293
  if (typeof pattern === "string") {
58285
- pattern = (0, _patternToRegex.default)(pattern, dirname);
58294
+ pattern = (0, _patternToRegex.default)(pattern, dirname2);
58286
58295
  }
58287
58296
  return pattern.test(pathToTest);
58288
58297
  }
@@ -58706,7 +58715,7 @@ var require_full = __commonJS((exports) => {
58706
58715
  var makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)(function* ({
58707
58716
  value: value2,
58708
58717
  options,
58709
- dirname,
58718
+ dirname: dirname2,
58710
58719
  alias
58711
58720
  }, cache) {
58712
58721
  if (options === false)
@@ -58718,7 +58727,7 @@ var require_full = __commonJS((exports) => {
58718
58727
  const factory = (0, _async.maybeAsync)(value2, `You appear to be using an async plugin/preset, but Babel has been called synchronously`);
58719
58728
  const api = Object.assign({}, context, apiFactory(cache, externalDependencies));
58720
58729
  try {
58721
- item = yield* factory(api, options, dirname);
58730
+ item = yield* factory(api, options, dirname2);
58722
58731
  } catch (e) {
58723
58732
  if (alias) {
58724
58733
  e.message += ` (While processing: ${JSON.stringify(alias)})`;
@@ -58747,7 +58756,7 @@ var require_full = __commonJS((exports) => {
58747
58756
  return {
58748
58757
  value: item,
58749
58758
  options,
58750
- dirname,
58759
+ dirname: dirname2,
58751
58760
  alias,
58752
58761
  externalDependencies: (0, _deepArray.finalize)(externalDependencies)
58753
58762
  };
@@ -58757,7 +58766,7 @@ var require_full = __commonJS((exports) => {
58757
58766
  var instantiatePlugin = (0, _caching.makeWeakCache)(function* ({
58758
58767
  value: value2,
58759
58768
  options,
58760
- dirname,
58769
+ dirname: dirname2,
58761
58770
  alias,
58762
58771
  externalDependencies
58763
58772
  }, cache) {
@@ -58772,7 +58781,7 @@ var require_full = __commonJS((exports) => {
58772
58781
  alias: `${alias}$inherits`,
58773
58782
  value: plugin.inherits,
58774
58783
  options,
58775
- dirname
58784
+ dirname: dirname2
58776
58785
  };
58777
58786
  const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run) => {
58778
58787
  return cache.invalidate((data) => run(inheritsDescriptor, data));
@@ -58820,14 +58829,14 @@ var require_full = __commonJS((exports) => {
58820
58829
  };
58821
58830
  var instantiatePreset = (0, _caching.makeWeakCacheSync)(({
58822
58831
  value: value2,
58823
- dirname,
58832
+ dirname: dirname2,
58824
58833
  alias,
58825
58834
  externalDependencies
58826
58835
  }) => {
58827
58836
  return {
58828
58837
  options: (0, _options.validate)("preset", value2),
58829
58838
  alias,
58830
- dirname,
58839
+ dirname: dirname2,
58831
58840
  externalDependencies
58832
58841
  };
58833
58842
  });
@@ -60448,7 +60457,7 @@ var require_lib15 = __commonJS((exports) => {
60448
60457
  addExternalDependency: () => () => {}
60449
60458
  });
60450
60459
  function declare(builder) {
60451
- return (api, options, dirname) => {
60460
+ return (api, options, dirname2) => {
60452
60461
  let clonedApi;
60453
60462
  for (const name of Object.keys(apiPolyfills)) {
60454
60463
  if (api[name])
@@ -60456,7 +60465,7 @@ var require_lib15 = __commonJS((exports) => {
60456
60465
  clonedApi != null || (clonedApi = copyApiObject(api));
60457
60466
  clonedApi[name] = apiPolyfills[name](clonedApi);
60458
60467
  }
60459
- return builder(clonedApi != null ? clonedApi : api, options || {}, dirname);
60468
+ return builder(clonedApi != null ? clonedApi : api, options || {}, dirname2);
60460
60469
  };
60461
60470
  }
60462
60471
  var declarePreset = exports.declarePreset = declare;
@@ -60684,8 +60693,8 @@ var require_semver3 = __commonJS((exports, module) => {
60684
60693
  }
60685
60694
  }
60686
60695
  var i;
60687
- exports.parse = parse;
60688
- function parse(version, options) {
60696
+ exports.parse = parse2;
60697
+ function parse2(version, options) {
60689
60698
  if (!options || typeof options !== "object") {
60690
60699
  options = {
60691
60700
  loose: !!options,
@@ -60713,12 +60722,12 @@ var require_semver3 = __commonJS((exports, module) => {
60713
60722
  }
60714
60723
  exports.valid = valid;
60715
60724
  function valid(version, options) {
60716
- var v = parse(version, options);
60725
+ var v = parse2(version, options);
60717
60726
  return v ? v.version : null;
60718
60727
  }
60719
60728
  exports.clean = clean;
60720
60729
  function clean(version, options) {
60721
- var s = parse(version.trim().replace(/^[=v]+/, ""), options);
60730
+ var s = parse2(version.trim().replace(/^[=v]+/, ""), options);
60722
60731
  return s ? s.version : null;
60723
60732
  }
60724
60733
  exports.SemVer = SemVer;
@@ -60950,8 +60959,8 @@ var require_semver3 = __commonJS((exports, module) => {
60950
60959
  if (eq(version1, version2)) {
60951
60960
  return null;
60952
60961
  } else {
60953
- var v1 = parse(version1);
60954
- var v2 = parse(version2);
60962
+ var v1 = parse2(version1);
60963
+ var v2 = parse2(version2);
60955
60964
  var prefix = "";
60956
60965
  if (v1.prerelease.length || v2.prerelease.length) {
60957
60966
  prefix = "pre";
@@ -61655,7 +61664,7 @@ var require_semver3 = __commonJS((exports, module) => {
61655
61664
  }
61656
61665
  exports.prerelease = prerelease;
61657
61666
  function prerelease(version, options) {
61658
- var parsed = parse(version, options);
61667
+ var parsed = parse2(version, options);
61659
61668
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
61660
61669
  }
61661
61670
  exports.intersects = intersects;
@@ -61692,7 +61701,7 @@ var require_semver3 = __commonJS((exports, module) => {
61692
61701
  if (match === null) {
61693
61702
  return null;
61694
61703
  }
61695
- return parse(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
61704
+ return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
61696
61705
  }
61697
61706
  });
61698
61707
 
@@ -67554,24 +67563,24 @@ var require_configuration = __commonJS((exports) => {
67554
67563
  };
67555
67564
  });
67556
67565
  function findConfigUpwards(rootDir) {
67557
- let dirname = rootDir;
67566
+ let dirname2 = rootDir;
67558
67567
  for (;; ) {
67559
67568
  for (const filename of ROOT_CONFIG_FILENAMES) {
67560
- if (_fs().existsSync(_path().join(dirname, filename))) {
67561
- return dirname;
67569
+ if (_fs().existsSync(_path().join(dirname2, filename))) {
67570
+ return dirname2;
67562
67571
  }
67563
67572
  }
67564
- const nextDir = _path().dirname(dirname);
67565
- if (dirname === nextDir)
67573
+ const nextDir = _path().dirname(dirname2);
67574
+ if (dirname2 === nextDir)
67566
67575
  break;
67567
- dirname = nextDir;
67576
+ dirname2 = nextDir;
67568
67577
  }
67569
67578
  return null;
67570
67579
  }
67571
67580
  function* findRelativeConfig(packageData, envName, caller) {
67572
67581
  let config = null;
67573
67582
  let ignore = null;
67574
- const dirname = _path().dirname(packageData.filepath);
67583
+ const dirname2 = _path().dirname(packageData.filepath);
67575
67584
  for (const loc of packageData.directories) {
67576
67585
  if (!config) {
67577
67586
  var _packageData$pkg;
@@ -67581,7 +67590,7 @@ var require_configuration = __commonJS((exports) => {
67581
67590
  const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
67582
67591
  ignore = yield* readIgnoreConfig(ignoreLoc);
67583
67592
  if (ignore) {
67584
- debug("Found ignore %o from %o.", ignore.filepath, dirname);
67593
+ debug("Found ignore %o from %o.", ignore.filepath, dirname2);
67585
67594
  }
67586
67595
  }
67587
67596
  }
@@ -67590,26 +67599,26 @@ var require_configuration = __commonJS((exports) => {
67590
67599
  ignore
67591
67600
  };
67592
67601
  }
67593
- function findRootConfig(dirname, envName, caller) {
67594
- return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);
67602
+ function findRootConfig(dirname2, envName, caller) {
67603
+ return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname2, envName, caller);
67595
67604
  }
67596
- function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) {
67597
- const configs = yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname, filename), envName, caller)));
67605
+ function* loadOneConfig(names, dirname2, envName, caller, previousConfig = null) {
67606
+ const configs = yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname2, filename), envName, caller)));
67598
67607
  const config = configs.reduce((previousConfig2, config2) => {
67599
67608
  if (config2 && previousConfig2) {
67600
67609
  throw new _configError.default(`Multiple configuration files found. Please remove one:
67601
67610
  ` + ` - ${_path().basename(previousConfig2.filepath)}
67602
67611
  ` + ` - ${config2.filepath}
67603
- ` + `from ${dirname}`);
67612
+ ` + `from ${dirname2}`);
67604
67613
  }
67605
67614
  return config2 || previousConfig2;
67606
67615
  }, previousConfig);
67607
67616
  if (config) {
67608
- debug("Found configuration %o from %o.", config.filepath, dirname);
67617
+ debug("Found configuration %o from %o.", config.filepath, dirname2);
67609
67618
  }
67610
67619
  return config;
67611
67620
  }
67612
- function* loadConfig2(name, dirname, envName, caller) {
67621
+ function* loadConfig2(name, dirname2, envName, caller) {
67613
67622
  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, {
67614
67623
  paths: [b]
67615
67624
  }, M = __require("module")) => {
@@ -67620,13 +67629,13 @@ var require_configuration = __commonJS((exports) => {
67620
67629
  f.code = "MODULE_NOT_FOUND";
67621
67630
  throw f;
67622
67631
  })(name, {
67623
- paths: [dirname]
67632
+ paths: [dirname2]
67624
67633
  });
67625
67634
  const conf = yield* readConfig(filepath, envName, caller);
67626
67635
  if (!conf) {
67627
67636
  throw new _configError.default(`Config file contains no configuration data`, filepath);
67628
67637
  }
67629
- debug("Loaded config %o from %o.", name, dirname);
67638
+ debug("Loaded config %o from %o.", name, dirname2);
67630
67639
  return conf;
67631
67640
  }
67632
67641
  function readConfig(filepath, envName, caller) {
@@ -67646,10 +67655,10 @@ var require_configuration = __commonJS((exports) => {
67646
67655
  return readConfigJSON5(filepath);
67647
67656
  }
67648
67657
  }
67649
- function* resolveShowConfigPath(dirname) {
67658
+ function* resolveShowConfigPath(dirname2) {
67650
67659
  const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
67651
67660
  if (targetPath != null) {
67652
- const absolutePath = _path().resolve(dirname, targetPath);
67661
+ const absolutePath = _path().resolve(dirname2, targetPath);
67653
67662
  const stats = yield* fs.stat(absolutePath);
67654
67663
  if (!stats.isFile()) {
67655
67664
  throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
@@ -67701,7 +67710,7 @@ var require_import_meta_resolve = __commonJS((exports) => {
67701
67710
  value: true
67702
67711
  });
67703
67712
  exports.moduleResolve = moduleResolve;
67704
- exports.resolve = resolve5;
67713
+ exports.resolve = resolve4;
67705
67714
  function _assert() {
67706
67715
  const data = __require("assert");
67707
67716
  _assert = function() {
@@ -68776,7 +68785,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
68776
68785
  })
68777
68786
  };
68778
68787
  }
68779
- function resolve5(specifier, parent) {
68788
+ function resolve4(specifier, parent) {
68780
68789
  if (!parent) {
68781
68790
  throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");
68782
68791
  }
@@ -68845,25 +68854,25 @@ var require_plugins3 = __commonJS((exports) => {
68845
68854
  var OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;
68846
68855
  var resolvePlugin = exports.resolvePlugin = resolveStandardizedName.bind(null, "plugin");
68847
68856
  var resolvePreset = exports.resolvePreset = resolveStandardizedName.bind(null, "preset");
68848
- function* loadPlugin(name, dirname) {
68857
+ function* loadPlugin(name, dirname2) {
68849
68858
  const {
68850
68859
  filepath,
68851
68860
  loader
68852
- } = resolvePlugin(name, dirname, yield* (0, _async.isAsync)());
68861
+ } = resolvePlugin(name, dirname2, yield* (0, _async.isAsync)());
68853
68862
  const value2 = yield* requireModule("plugin", loader, filepath);
68854
- debug("Loaded plugin %o from %o.", name, dirname);
68863
+ debug("Loaded plugin %o from %o.", name, dirname2);
68855
68864
  return {
68856
68865
  filepath,
68857
68866
  value: value2
68858
68867
  };
68859
68868
  }
68860
- function* loadPreset(name, dirname) {
68869
+ function* loadPreset(name, dirname2) {
68861
68870
  const {
68862
68871
  filepath,
68863
68872
  loader
68864
- } = resolvePreset(name, dirname, yield* (0, _async.isAsync)());
68873
+ } = resolvePreset(name, dirname2, yield* (0, _async.isAsync)());
68865
68874
  const value2 = yield* requireModule("preset", loader, filepath);
68866
- debug("Loaded preset %o from %o.", name, dirname);
68875
+ debug("Loaded preset %o from %o.", name, dirname2);
68867
68876
  return {
68868
68877
  filepath,
68869
68878
  value: value2
@@ -68916,9 +68925,9 @@ to your top-level package.json.
68916
68925
  `;
68917
68926
  throw error;
68918
68927
  }
68919
- function tryRequireResolve(id, dirname) {
68928
+ function tryRequireResolve(id, dirname2) {
68920
68929
  try {
68921
- if (dirname) {
68930
+ if (dirname2) {
68922
68931
  return {
68923
68932
  error: null,
68924
68933
  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, {
@@ -68931,7 +68940,7 @@ to your top-level package.json.
68931
68940
  f.code = "MODULE_NOT_FOUND";
68932
68941
  throw f;
68933
68942
  })(id, {
68934
- paths: [dirname]
68943
+ paths: [dirname2]
68935
68944
  })
68936
68945
  };
68937
68946
  } else {
@@ -68960,19 +68969,19 @@ to your top-level package.json.
68960
68969
  };
68961
68970
  }
68962
68971
  }
68963
- function resolveStandardizedNameForRequire(type, name, dirname) {
68972
+ function resolveStandardizedNameForRequire(type, name, dirname2) {
68964
68973
  const it = resolveAlternativesHelper(type, name);
68965
68974
  let res = it.next();
68966
68975
  while (!res.done) {
68967
- res = it.next(tryRequireResolve(res.value, dirname));
68976
+ res = it.next(tryRequireResolve(res.value, dirname2));
68968
68977
  }
68969
68978
  return {
68970
68979
  loader: "require",
68971
68980
  filepath: res.value
68972
68981
  };
68973
68982
  }
68974
- function resolveStandardizedNameForImport(type, name, dirname) {
68975
- const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href;
68983
+ function resolveStandardizedNameForImport(type, name, dirname2) {
68984
+ const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname2, "./babel-virtual-resolve-base.js")).href;
68976
68985
  const it = resolveAlternativesHelper(type, name);
68977
68986
  let res = it.next();
68978
68987
  while (!res.done) {
@@ -68983,21 +68992,21 @@ to your top-level package.json.
68983
68992
  filepath: (0, _url().fileURLToPath)(res.value)
68984
68993
  };
68985
68994
  }
68986
- function resolveStandardizedName(type, name, dirname, allowAsync) {
68995
+ function resolveStandardizedName(type, name, dirname2, allowAsync) {
68987
68996
  if (!_moduleTypes.supportsESM || !allowAsync) {
68988
- return resolveStandardizedNameForRequire(type, name, dirname);
68997
+ return resolveStandardizedNameForRequire(type, name, dirname2);
68989
68998
  }
68990
68999
  try {
68991
- const resolved = resolveStandardizedNameForImport(type, name, dirname);
69000
+ const resolved = resolveStandardizedNameForImport(type, name, dirname2);
68992
69001
  if (!(0, _fs().existsSync)(resolved.filepath)) {
68993
- throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname}.`), {
69002
+ throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname2}.`), {
68994
69003
  type: "MODULE_NOT_FOUND"
68995
69004
  });
68996
69005
  }
68997
69006
  return resolved;
68998
69007
  } catch (e) {
68999
69008
  try {
69000
- return resolveStandardizedNameForRequire(type, name, dirname);
69009
+ return resolveStandardizedNameForRequire(type, name, dirname2);
69001
69010
  } catch (e2) {
69002
69011
  if (e.type === "MODULE_NOT_FOUND")
69003
69012
  throw e;
@@ -69230,14 +69239,14 @@ var require_parse4 = __commonJS((exports) => {
69230
69239
  var _index2 = require_parser();
69231
69240
  var _normalizeOpts = require_normalize_opts();
69232
69241
  var _rewriteStackTrace = require_rewrite_stack_trace();
69233
- var parseRunner = _gensync()(function* parse2(code, opts) {
69242
+ var parseRunner = _gensync()(function* parse3(code, opts) {
69234
69243
  const config = yield* (0, _index.default)(opts);
69235
69244
  if (config === null) {
69236
69245
  return null;
69237
69246
  }
69238
69247
  return yield* (0, _index2.default)(config.passes, (0, _normalizeOpts.default)(config), code);
69239
69248
  });
69240
- var parse = exports.parse = function parse2(code, opts, callback) {
69249
+ var parse2 = exports.parse = function parse3(code, opts, callback) {
69241
69250
  if (typeof opts === "function") {
69242
69251
  callback = opts;
69243
69252
  opts = undefined;
@@ -69471,9 +69480,9 @@ var require_lib27 = __commonJS((exports) => {
69471
69480
  var _transformAst = require_transform_ast();
69472
69481
  var _parse = require_parse4();
69473
69482
  var version = exports.version = "7.28.5";
69474
- var resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath;
69483
+ var resolvePlugin = (name, dirname2) => resolvers.resolvePlugin(name, dirname2, false).filepath;
69475
69484
  exports.resolvePlugin = resolvePlugin;
69476
- var resolvePreset = (name, dirname) => resolvers.resolvePreset(name, dirname, false).filepath;
69485
+ var resolvePreset = (name, dirname2) => resolvers.resolvePreset(name, dirname2, false).filepath;
69477
69486
  exports.resolvePreset = resolvePreset;
69478
69487
  var DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
69479
69488
  {
@@ -69489,12 +69498,12 @@ var require_lib27 = __commonJS((exports) => {
69489
69498
  });
69490
69499
 
69491
69500
  // src/build/angularLinkerPlugin.ts
69492
- import { existsSync as existsSync4, mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
69493
- import { dirname, join as join3, relative, resolve as resolve5 } from "path";
69501
+ import { existsSync as existsSync5, mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
69502
+ import { dirname as dirname2, join as join4, relative, resolve as resolve4 } from "path";
69494
69503
  import { createHash } from "crypto";
69495
69504
  var CACHE_DIR, angularLinkerPlugin;
69496
69505
  var init_angularLinkerPlugin = __esm(() => {
69497
- CACHE_DIR = resolve5(".cache", "angular-linker");
69506
+ CACHE_DIR = resolve4(".cache", "angular-linker");
69498
69507
  angularLinkerPlugin = {
69499
69508
  name: "angular-linker",
69500
69509
  setup(bld) {
@@ -69511,8 +69520,8 @@ var init_angularLinkerPlugin = __esm(() => {
69511
69520
  return;
69512
69521
  }
69513
69522
  const hash = createHash("md5").update(source).digest("hex");
69514
- const cachePath = join3(CACHE_DIR, `${hash}.js`);
69515
- if (existsSync4(cachePath)) {
69523
+ const cachePath = join4(CACHE_DIR, `${hash}.js`);
69524
+ if (existsSync5(cachePath)) {
69516
69525
  return {
69517
69526
  contents: readFileSync3(cachePath, "utf-8"),
69518
69527
  loader: "js"
@@ -69527,9 +69536,9 @@ var init_angularLinkerPlugin = __esm(() => {
69527
69536
  linkerPlugin = mod.createEs2015LinkerPlugin({
69528
69537
  linkerJitMode: false,
69529
69538
  fileSystem: {
69530
- resolve: resolve5,
69531
- exists: existsSync4,
69532
- dirname,
69539
+ resolve: resolve4,
69540
+ exists: existsSync5,
69541
+ dirname: dirname2,
69533
69542
  relative,
69534
69543
  readFile: readFileSync3
69535
69544
  },
@@ -69560,14 +69569,14 @@ var init_angularLinkerPlugin = __esm(() => {
69560
69569
 
69561
69570
  // src/utils/cleanStaleOutputs.ts
69562
69571
  import { rm as rm2 } from "fs/promises";
69563
- import { resolve as resolve6 } from "path";
69572
+ import { resolve as resolve5 } from "path";
69564
69573
  var {Glob: Glob3 } = globalThis.Bun;
69565
69574
  var HASHED_FILE_PATTERN, cleanStaleOutputs = async (buildPath, currentOutputPaths) => {
69566
- const currentPaths = new Set(currentOutputPaths.map((p) => resolve6(p)));
69575
+ const currentPaths = new Set(currentOutputPaths.map((p) => resolve5(p)));
69567
69576
  const glob = new Glob3("**/*");
69568
69577
  const removals = [];
69569
69578
  for (const relative2 of glob.scanSync({ cwd: buildPath })) {
69570
- const absolute = resolve6(buildPath, relative2);
69579
+ const absolute = resolve5(buildPath, relative2);
69571
69580
  if (currentPaths.has(absolute))
69572
69581
  continue;
69573
69582
  if (!HASHED_FILE_PATTERN.test(relative2))
@@ -69582,7 +69591,7 @@ var init_cleanStaleOutputs = __esm(() => {
69582
69591
 
69583
69592
  // src/utils/cleanup.ts
69584
69593
  import { rm as rm3 } from "fs/promises";
69585
- import { join as join4 } from "path";
69594
+ import { join as join5 } from "path";
69586
69595
  var cleanup = async ({
69587
69596
  angularDir,
69588
69597
  svelteDir,
@@ -69590,38 +69599,38 @@ var cleanup = async ({
69590
69599
  reactIndexesPath
69591
69600
  }) => {
69592
69601
  await Promise.all([
69593
- angularDir ? rm3(join4(angularDir, "indexes"), {
69602
+ angularDir ? rm3(join5(angularDir, "indexes"), {
69594
69603
  force: true,
69595
69604
  recursive: true
69596
69605
  }) : undefined,
69597
69606
  svelteDir ? Promise.all([
69598
- rm3(join4(svelteDir, "client"), {
69607
+ rm3(join5(svelteDir, "client"), {
69599
69608
  force: true,
69600
69609
  recursive: true
69601
69610
  }),
69602
- rm3(join4(svelteDir, "indexes"), {
69611
+ rm3(join5(svelteDir, "indexes"), {
69603
69612
  force: true,
69604
69613
  recursive: true
69605
69614
  }),
69606
- rm3(join4(svelteDir, "server"), {
69615
+ rm3(join5(svelteDir, "server"), {
69607
69616
  force: true,
69608
69617
  recursive: true
69609
69618
  })
69610
69619
  ]) : undefined,
69611
69620
  vueDir ? Promise.all([
69612
- rm3(join4(vueDir, "client"), {
69621
+ rm3(join5(vueDir, "client"), {
69613
69622
  force: true,
69614
69623
  recursive: true
69615
69624
  }),
69616
- rm3(join4(vueDir, "indexes"), {
69625
+ rm3(join5(vueDir, "indexes"), {
69617
69626
  force: true,
69618
69627
  recursive: true
69619
69628
  }),
69620
- rm3(join4(vueDir, "server"), {
69629
+ rm3(join5(vueDir, "server"), {
69621
69630
  force: true,
69622
69631
  recursive: true
69623
69632
  }),
69624
- rm3(join4(vueDir, "compiled"), {
69633
+ rm3(join5(vueDir, "compiled"), {
69625
69634
  force: true,
69626
69635
  recursive: true
69627
69636
  })
@@ -69798,10 +69807,10 @@ var init_logger = __esm(() => {
69798
69807
  });
69799
69808
 
69800
69809
  // src/utils/validateSafePath.ts
69801
- import { resolve as resolve7, relative as relative2 } from "path";
69810
+ import { resolve as resolve6, relative as relative2 } from "path";
69802
69811
  var validateSafePath = (targetPath, baseDirectory) => {
69803
- const absoluteBase = resolve7(baseDirectory);
69804
- const absoluteTarget = resolve7(baseDirectory, targetPath);
69812
+ const absoluteBase = resolve6(baseDirectory);
69813
+ const absoluteTarget = resolve6(baseDirectory, targetPath);
69805
69814
  const relativePath = normalizePath(relative2(absoluteBase, absoluteTarget));
69806
69815
  if (relativePath.startsWith("../") || relativePath === "..") {
69807
69816
  throw new Error(`Unsafe path: ${targetPath}`);
@@ -69815,14 +69824,14 @@ var exports_compileSvelte = {};
69815
69824
  __export(exports_compileSvelte, {
69816
69825
  compileSvelte: () => compileSvelte
69817
69826
  });
69818
- import { existsSync as existsSync5 } from "fs";
69827
+ import { existsSync as existsSync6 } from "fs";
69819
69828
  import { mkdir as mkdir2, stat } from "fs/promises";
69820
69829
  import {
69821
- dirname as dirname2,
69822
- join as join5,
69830
+ dirname as dirname3,
69831
+ join as join6,
69823
69832
  basename as basename2,
69824
69833
  extname as extname2,
69825
- resolve as resolve8,
69834
+ resolve as resolve7,
69826
69835
  relative as relative3,
69827
69836
  sep
69828
69837
  } from "path";
@@ -69836,7 +69845,7 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69836
69845
  return false;
69837
69846
  }
69838
69847
  }, resolveSvelte = async (spec, from) => {
69839
- const basePath = resolve8(dirname2(from), spec);
69848
+ const basePath = resolve7(dirname3(from), spec);
69840
69849
  const explicit = /\.(svelte|svelte\.(?:ts|js))$/.test(basePath);
69841
69850
  if (!explicit) {
69842
69851
  const extensions = [".svelte", ".svelte.ts", ".svelte.js"];
@@ -69858,9 +69867,9 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69858
69867
  return null;
69859
69868
  }, compileSvelte = async (entryPoints, svelteRoot, cache = new Map, isDev = false) => {
69860
69869
  const { compile, compileModule, preprocess } = await import("svelte/compiler");
69861
- const clientDir = join5(svelteRoot, "client");
69862
- const indexDir = join5(svelteRoot, "indexes");
69863
- const serverDir = join5(svelteRoot, "server");
69870
+ const clientDir = join6(svelteRoot, "client");
69871
+ const indexDir = join6(svelteRoot, "indexes");
69872
+ const serverDir = join6(svelteRoot, "server");
69864
69873
  await Promise.all([clientDir, indexDir, serverDir].map((dir) => mkdir2(dir, { recursive: true })));
69865
69874
  const dev = env.NODE_ENV !== "production";
69866
69875
  const build2 = async (src) => {
@@ -69871,7 +69880,7 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69871
69880
  const isModule = src.endsWith(".svelte.ts") || src.endsWith(".svelte.js");
69872
69881
  const preprocessed = isModule ? raw : (await preprocess(raw, {})).code;
69873
69882
  const transpiled = src.endsWith(".ts") || src.endsWith(".svelte.ts") ? transpiler.transformSync(preprocessed) : preprocessed;
69874
- const relDir = dirname2(relative3(svelteRoot, src)).replace(/\\/g, "/");
69883
+ const relDir = dirname3(relative3(svelteRoot, src)).replace(/\\/g, "/");
69875
69884
  const baseName = basename2(src).replace(/\.svelte(\.(ts|js))?$/, "");
69876
69885
  const importPaths = Array.from(transpiled.matchAll(/from\s+['"]([^'"]+)['"]/g)).map((match) => match[1]).filter((path) => path !== undefined);
69877
69886
  const resolvedImports = await Promise.all(importPaths.map((importPath) => resolveSvelte(importPath, src)));
@@ -69886,11 +69895,11 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69886
69895
  filename: src,
69887
69896
  generate: mode
69888
69897
  }).js.code).replace(/\.svelte(?:\.(?:ts|js))?(['"])/g, ".js$1");
69889
- const ssrPath = join5(serverDir, relDir, `${baseName}.js`);
69890
- const clientPath = join5(clientDir, relDir, `${baseName}.js`);
69898
+ const ssrPath = join6(serverDir, relDir, `${baseName}.js`);
69899
+ const clientPath = join6(clientDir, relDir, `${baseName}.js`);
69891
69900
  await Promise.all([
69892
- mkdir2(dirname2(ssrPath), { recursive: true }),
69893
- mkdir2(dirname2(clientPath), { recursive: true })
69901
+ mkdir2(dirname3(ssrPath), { recursive: true }),
69902
+ mkdir2(dirname3(clientPath), { recursive: true })
69894
69903
  ]);
69895
69904
  if (isModule) {
69896
69905
  const bundle = generate("client");
@@ -69912,10 +69921,10 @@ var devClientDir2, hmrClientPath3, transpiler, exists = async (path) => {
69912
69921
  };
69913
69922
  const roots = await Promise.all(entryPoints.map(build2));
69914
69923
  await Promise.all(roots.map(async ({ client: client2 }) => {
69915
- const relClientDir = dirname2(relative3(clientDir, client2));
69924
+ const relClientDir = dirname3(relative3(clientDir, client2));
69916
69925
  const name = basename2(client2, extname2(client2));
69917
- const indexPath = join5(indexDir, relClientDir, `${name}.js`);
69918
- const importRaw = relative3(dirname2(indexPath), client2).split(sep).join("/");
69926
+ const indexPath = join6(indexDir, relClientDir, `${name}.js`);
69927
+ const importRaw = relative3(dirname3(indexPath), client2).split(sep).join("/");
69919
69928
  const importPath = importRaw.startsWith(".") || importRaw.startsWith("/") ? importRaw : `./${importRaw}`;
69920
69929
  const hmrImports = isDev ? `window.__HMR_FRAMEWORK__ = "svelte";
69921
69930
  import "${hmrClientPath3}";
@@ -69960,13 +69969,13 @@ if (typeof window !== "undefined") {
69960
69969
  window.__SVELTE_COMPONENT__ = component;
69961
69970
  window.__SVELTE_UNMOUNT__ = function() { unmount(component); };
69962
69971
  }`;
69963
- await mkdir2(dirname2(indexPath), { recursive: true });
69972
+ await mkdir2(dirname3(indexPath), { recursive: true });
69964
69973
  return write(indexPath, bootstrap);
69965
69974
  }));
69966
69975
  return {
69967
69976
  svelteIndexPaths: roots.map(({ client: client2 }) => {
69968
- const rel = dirname2(relative3(clientDir, client2));
69969
- return join5(indexDir, rel, basename2(client2));
69977
+ const rel = dirname3(relative3(clientDir, client2));
69978
+ return join6(indexDir, rel, basename2(client2));
69970
69979
  }),
69971
69980
  svelteClientPaths: roots.map(({ client: client2 }) => client2),
69972
69981
  svelteServerPaths: roots.map(({ ssr }) => ssr)
@@ -69974,12 +69983,12 @@ if (typeof window !== "undefined") {
69974
69983
  };
69975
69984
  var init_compileSvelte = __esm(() => {
69976
69985
  devClientDir2 = (() => {
69977
- const fromSource = resolve8(import.meta.dir, "../dev/client");
69978
- if (existsSync5(fromSource))
69986
+ const fromSource = resolve7(import.meta.dir, "../dev/client");
69987
+ if (existsSync6(fromSource))
69979
69988
  return fromSource;
69980
- return resolve8(import.meta.dir, "./dev/client");
69989
+ return resolve7(import.meta.dir, "./dev/client");
69981
69990
  })();
69982
- hmrClientPath3 = join5(devClientDir2, "hmrClient.ts").replace(/\\/g, "/");
69991
+ hmrClientPath3 = join6(devClientDir2, "hmrClient.ts").replace(/\\/g, "/");
69983
69992
  transpiler = new Transpiler({ loader: "ts", target: "browser" });
69984
69993
  });
69985
69994
 
@@ -69992,9 +70001,9 @@ __export(exports_compileVue, {
69992
70001
  compileVue: () => compileVue,
69993
70002
  clearVueHmrCaches: () => clearVueHmrCaches
69994
70003
  });
69995
- import { existsSync as existsSync6 } from "fs";
70004
+ import { existsSync as existsSync7 } from "fs";
69996
70005
  import { mkdir as mkdir3 } from "fs/promises";
69997
- import { basename as basename3, dirname as dirname3, join as join6, relative as relative4, resolve as resolve9 } from "path";
70006
+ import { basename as basename3, dirname as dirname4, join as join7, relative as relative4, resolve as resolve8 } from "path";
69998
70007
  var {file: file3, write: write2, Transpiler: Transpiler2 } = globalThis.Bun;
69999
70008
  var devClientDir3, hmrClientPath4, transpiler2, scriptCache, scriptSetupCache, templateCache, styleCache, vueHmrMetadata, detectVueChangeType = (filePath, descriptor) => {
70000
70009
  const prevScript = scriptCache.get(filePath);
@@ -70076,7 +70085,7 @@ var devClientDir3, hmrClientPath4, transpiler2, scriptCache, scriptSetupCache, t
70076
70085
  const importPaths = extractImports(scriptSource);
70077
70086
  const childComponentPaths = importPaths.filter((path) => path.startsWith(".") && path.endsWith(".vue"));
70078
70087
  const helperModulePaths = importPaths.filter((path) => path.startsWith(".") && !path.endsWith(".vue"));
70079
- const childBuildResults = await Promise.all(childComponentPaths.map((relativeChildPath) => compileVueFile(resolve9(dirname3(sourceFilePath), relativeChildPath), outputDirs, cacheMap, false, vueRootDir, compiler)));
70088
+ const childBuildResults = await Promise.all(childComponentPaths.map((relativeChildPath) => compileVueFile(resolve8(dirname4(sourceFilePath), relativeChildPath), outputDirs, cacheMap, false, vueRootDir, compiler)));
70080
70089
  const compiledScript = compiler.compileScript(descriptor, {
70081
70090
  id: componentId,
70082
70091
  inlineTemplate: false
@@ -70108,8 +70117,8 @@ var devClientDir3, hmrClientPath4, transpiler2, scriptCache, scriptSetupCache, t
70108
70117
  ];
70109
70118
  let cssOutputPaths = [];
70110
70119
  if (isEntryPoint && allCss.length) {
70111
- const cssOutputFile = join6(outputDirs.css, `${toKebab(fileBaseName)}.css`);
70112
- await mkdir3(dirname3(cssOutputFile), { recursive: true });
70120
+ const cssOutputFile = join7(outputDirs.css, `${toKebab(fileBaseName)}.css`);
70121
+ await mkdir3(dirname4(cssOutputFile), { recursive: true });
70113
70122
  await write2(cssOutputFile, allCss.join(`
70114
70123
  `));
70115
70124
  cssOutputPaths = [cssOutputFile];
@@ -70139,10 +70148,10 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70139
70148
  };
70140
70149
  const clientCode = assembleModule(generateRenderFunction(false), "render", true);
70141
70150
  const serverCode = assembleModule(generateRenderFunction(true), "ssrRender", false);
70142
- const clientOutputPath = join6(outputDirs.client, `${relativeWithoutExtension}.js`);
70143
- const serverOutputPath = join6(outputDirs.server, `${relativeWithoutExtension}.js`);
70144
- await mkdir3(dirname3(clientOutputPath), { recursive: true });
70145
- await mkdir3(dirname3(serverOutputPath), { recursive: true });
70151
+ const clientOutputPath = join7(outputDirs.client, `${relativeWithoutExtension}.js`);
70152
+ const serverOutputPath = join7(outputDirs.server, `${relativeWithoutExtension}.js`);
70153
+ await mkdir3(dirname4(clientOutputPath), { recursive: true });
70154
+ await mkdir3(dirname4(serverOutputPath), { recursive: true });
70146
70155
  await write2(clientOutputPath, clientCode);
70147
70156
  await write2(serverOutputPath, serverCode);
70148
70157
  const result = {
@@ -70151,7 +70160,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70151
70160
  cssPaths: cssOutputPaths,
70152
70161
  serverPath: serverOutputPath,
70153
70162
  tsHelperPaths: [
70154
- ...helperModulePaths.map((helper) => resolve9(dirname3(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
70163
+ ...helperModulePaths.map((helper) => resolve8(dirname4(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
70155
70164
  ...childBuildResults.flatMap((child) => child.tsHelperPaths)
70156
70165
  ],
70157
70166
  hmrId
@@ -70160,10 +70169,10 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70160
70169
  return result;
70161
70170
  }, compileVue = async (entryPoints, vueRootDir, isDev = false) => {
70162
70171
  const compiler = await import("@vue/compiler-sfc");
70163
- const clientOutputDir = join6(vueRootDir, "client");
70164
- const indexOutputDir = join6(vueRootDir, "indexes");
70165
- const serverOutputDir = join6(vueRootDir, "server");
70166
- const cssOutputDir = join6(vueRootDir, "compiled");
70172
+ const clientOutputDir = join7(vueRootDir, "client");
70173
+ const indexOutputDir = join7(vueRootDir, "indexes");
70174
+ const serverOutputDir = join7(vueRootDir, "server");
70175
+ const cssOutputDir = join7(vueRootDir, "compiled");
70167
70176
  await Promise.all([
70168
70177
  mkdir3(clientOutputDir, { recursive: true }),
70169
70178
  mkdir3(indexOutputDir, { recursive: true }),
@@ -70173,23 +70182,23 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70173
70182
  const buildCache = new Map;
70174
70183
  const allTsHelperPaths = new Set;
70175
70184
  const compiledPages = await Promise.all(entryPoints.map(async (entryPath) => {
70176
- const result = await compileVueFile(resolve9(entryPath), {
70185
+ const result = await compileVueFile(resolve8(entryPath), {
70177
70186
  client: clientOutputDir,
70178
70187
  css: cssOutputDir,
70179
70188
  server: serverOutputDir
70180
70189
  }, buildCache, true, vueRootDir, compiler);
70181
70190
  result.tsHelperPaths.forEach((path) => allTsHelperPaths.add(path));
70182
70191
  const entryBaseName = basename3(entryPath, ".vue");
70183
- const indexOutputFile = join6(indexOutputDir, `${entryBaseName}.js`);
70184
- const clientOutputFile = join6(clientOutputDir, relative4(vueRootDir, entryPath).replace(/\\/g, "/").replace(/\.vue$/, ".js"));
70185
- await mkdir3(dirname3(indexOutputFile), { recursive: true });
70192
+ const indexOutputFile = join7(indexOutputDir, `${entryBaseName}.js`);
70193
+ const clientOutputFile = join7(clientOutputDir, relative4(vueRootDir, entryPath).replace(/\\/g, "/").replace(/\.vue$/, ".js"));
70194
+ await mkdir3(dirname4(indexOutputFile), { recursive: true });
70186
70195
  const vueHmrImports = isDev ? [
70187
70196
  `window.__HMR_FRAMEWORK__ = "vue";`,
70188
70197
  `import "${hmrClientPath4}";`
70189
70198
  ] : [];
70190
70199
  await write2(indexOutputFile, [
70191
70200
  ...vueHmrImports,
70192
- `import Comp from "${relative4(dirname3(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
70201
+ `import Comp from "${relative4(dirname4(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
70193
70202
  'import { createSSRApp } from "vue";',
70194
70203
  "",
70195
70204
  "// HMR State Preservation: Check for preserved state from HMR",
@@ -70289,10 +70298,10 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70289
70298
  const sourceCode = await file3(tsPath).text();
70290
70299
  const transpiledCode = transpiler2.transformSync(sourceCode);
70291
70300
  const relativeJsPath = relative4(vueRootDir, tsPath).replace(/\.ts$/, ".js");
70292
- const outClientPath = join6(clientOutputDir, relativeJsPath);
70293
- const outServerPath = join6(serverOutputDir, relativeJsPath);
70294
- await mkdir3(dirname3(outClientPath), { recursive: true });
70295
- await mkdir3(dirname3(outServerPath), { recursive: true });
70301
+ const outClientPath = join7(clientOutputDir, relativeJsPath);
70302
+ const outServerPath = join7(serverOutputDir, relativeJsPath);
70303
+ await mkdir3(dirname4(outClientPath), { recursive: true });
70304
+ await mkdir3(dirname4(outServerPath), { recursive: true });
70296
70305
  await write2(outClientPath, transpiledCode);
70297
70306
  await write2(outServerPath, transpiledCode);
70298
70307
  }));
@@ -70306,12 +70315,12 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
70306
70315
  };
70307
70316
  var init_compileVue = __esm(() => {
70308
70317
  devClientDir3 = (() => {
70309
- const fromSource = resolve9(import.meta.dir, "../dev/client");
70310
- if (existsSync6(fromSource))
70318
+ const fromSource = resolve8(import.meta.dir, "../dev/client");
70319
+ if (existsSync7(fromSource))
70311
70320
  return fromSource;
70312
- return resolve9(import.meta.dir, "./dev/client");
70321
+ return resolve8(import.meta.dir, "./dev/client");
70313
70322
  })();
70314
- hmrClientPath4 = join6(devClientDir3, "hmrClient.ts").replace(/\\/g, "/");
70323
+ hmrClientPath4 = join7(devClientDir3, "hmrClient.ts").replace(/\\/g, "/");
70315
70324
  transpiler2 = new Transpiler2({ loader: "ts", target: "browser" });
70316
70325
  scriptCache = new Map;
70317
70326
  scriptSetupCache = new Map;
@@ -168599,14 +168608,14 @@ ${lanes.join(`
168599
168608
  }
168600
168609
  }
168601
168610
  function createImportCallExpressionAMD(arg, containsLexicalThis) {
168602
- const resolve10 = factory2.createUniqueName("resolve");
168611
+ const resolve9 = factory2.createUniqueName("resolve");
168603
168612
  const reject = factory2.createUniqueName("reject");
168604
168613
  const parameters = [
168605
- factory2.createParameterDeclaration(undefined, undefined, resolve10),
168614
+ factory2.createParameterDeclaration(undefined, undefined, resolve9),
168606
168615
  factory2.createParameterDeclaration(undefined, undefined, reject)
168607
168616
  ];
168608
168617
  const body = factory2.createBlock([
168609
- factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier("require"), undefined, [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve10, reject]))
168618
+ factory2.createExpressionStatement(factory2.createCallExpression(factory2.createIdentifier("require"), undefined, [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve9, reject]))
168610
168619
  ]);
168611
168620
  let func;
168612
168621
  if (languageVersion >= 2) {
@@ -220095,14 +220104,14 @@ ${newComment.split(`
220095
220104
  });
220096
220105
  function mapCode(sourceFile, contents, focusLocations, host, formatContext, preferences) {
220097
220106
  return ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, (changeTracker) => {
220098
- const parsed = contents.map((c) => parse(sourceFile, c));
220107
+ const parsed = contents.map((c) => parse2(sourceFile, c));
220099
220108
  const flattenedLocations = focusLocations && flatten(focusLocations);
220100
220109
  for (const nodes of parsed) {
220101
220110
  placeNodeGroup(sourceFile, changeTracker, nodes, flattenedLocations);
220102
220111
  }
220103
220112
  });
220104
220113
  }
220105
- function parse(sourceFile, content) {
220114
+ function parse2(sourceFile, content) {
220106
220115
  const nodeKinds = [
220107
220116
  {
220108
220117
  parse: () => createSourceFile("__mapcode_content_nodes.ts", content, sourceFile.languageVersion, true, sourceFile.scriptKind),
@@ -220116,8 +220125,8 @@ ${content}
220116
220125
  }
220117
220126
  ];
220118
220127
  const parsedNodes = [];
220119
- for (const { parse: parse2, body: body2 } of nodeKinds) {
220120
- const sourceFile2 = parse2();
220128
+ for (const { parse: parse22, body: body2 } of nodeKinds) {
220129
+ const sourceFile2 = parse22();
220121
220130
  const bod = body2(sourceFile2);
220122
220131
  if (bod.length && sourceFile2.parseDiagnostics.length === 0) {
220123
220132
  return bod;
@@ -238781,8 +238790,8 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
238781
238790
  installPackage(options) {
238782
238791
  this.packageInstallId++;
238783
238792
  const request = { kind: "installPackage", ...options, id: this.packageInstallId };
238784
- const promise = new Promise((resolve10, reject) => {
238785
- (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map)).set(this.packageInstallId, { resolve: resolve10, reject });
238793
+ const promise = new Promise((resolve9, reject) => {
238794
+ (this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map)).set(this.packageInstallId, { resolve: resolve9, reject });
238786
238795
  });
238787
238796
  this.installer.send(request);
238788
238797
  return promise;
@@ -239048,9 +239057,9 @@ __export(exports_compileAngular, {
239048
239057
  compileAngularFile: () => compileAngularFile,
239049
239058
  compileAngular: () => compileAngular
239050
239059
  });
239051
- import { existsSync as existsSync7, readFileSync as readFileSync4 } from "fs";
239060
+ import { existsSync as existsSync8, readFileSync as readFileSync4 } from "fs";
239052
239061
  import { promises as fs } from "fs";
239053
- import { join as join7, basename as basename4, sep as sep2, dirname as dirname4, resolve as resolve10, relative as relative5 } from "path";
239062
+ import { join as join8, basename as basename4, sep as sep2, dirname as dirname5, resolve as resolve9, relative as relative5 } from "path";
239054
239063
  import { createHash as createHash2 } from "crypto";
239055
239064
  var import_typescript, computeConfigHash = () => {
239056
239065
  try {
@@ -239096,8 +239105,8 @@ ${registrations}
239096
239105
  cached.lastUsed = Date.now();
239097
239106
  } else {
239098
239107
  const tsPath = __require.resolve("/home/alexkahn/abs/absolutejs/node_modules/typescript/lib/typescript.js");
239099
- const tsRootDir = dirname4(tsPath);
239100
- tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve10(tsRootDir, "lib");
239108
+ const tsRootDir = dirname5(tsPath);
239109
+ tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve9(tsRootDir, "lib");
239101
239110
  const config = readConfiguration("./tsconfig.json");
239102
239111
  options = {
239103
239112
  newLine: import_typescript.default.NewLineKind.LineFeed,
@@ -239131,7 +239140,7 @@ ${registrations}
239131
239140
  const originalGetSourceFile = host.getSourceFile;
239132
239141
  host.getSourceFile = (fileName, languageVersion, onError) => {
239133
239142
  if (fileName.startsWith("lib.") && fileName.endsWith(".d.ts") && tsLibDir) {
239134
- const resolvedPath = join7(tsLibDir, fileName);
239143
+ const resolvedPath = join8(tsLibDir, fileName);
239135
239144
  return originalGetSourceFile?.call(host, resolvedPath, languageVersion, onError);
239136
239145
  }
239137
239146
  return originalGetSourceFile?.call(host, fileName, languageVersion, onError);
@@ -239145,7 +239154,7 @@ ${registrations}
239145
239154
  };
239146
239155
  }
239147
239156
  const emitted = {};
239148
- const resolvedOutDir = resolve10(outDir);
239157
+ const resolvedOutDir = resolve9(outDir);
239149
239158
  host.writeFile = (fileName, text) => {
239150
239159
  const relativePath = fileName.startsWith(resolvedOutDir) ? fileName.substring(resolvedOutDir.length + 1) : fileName.startsWith(outDir) ? fileName.substring(outDir.length + 1) : fileName;
239151
239160
  emitted[relativePath] = text;
@@ -239176,7 +239185,7 @@ ${registrations}
239176
239185
  }
239177
239186
  }
239178
239187
  const entries = Object.entries(emitted).filter(([fileName]) => fileName.endsWith(".js")).map(([fileName, content]) => {
239179
- const target = join7(outDir, fileName);
239188
+ const target = join8(outDir, fileName);
239180
239189
  let processedContent = content.replace(/from\s+(['"])(\.\.?\/[^'"]+)(\1)/g, (match, quote, path) => {
239181
239190
  if (!path.match(/\.(js|ts|mjs|cjs)$/)) {
239182
239191
  return `from ${quote}${path}.js${quote}`;
@@ -239191,7 +239200,7 @@ ${registrations}
239191
239200
  processedContent = processedContent.replace(/\b(?<!Internal)InjectFlags\b/g, "InternalInjectFlags");
239192
239201
  return { content: processedContent, target };
239193
239202
  });
239194
- await Promise.all(entries.map(({ target }) => fs.mkdir(dirname4(target), { recursive: true })));
239203
+ await Promise.all(entries.map(({ target }) => fs.mkdir(dirname5(target), { recursive: true })));
239195
239204
  await Promise.all(entries.map(({ target, content }) => fs.writeFile(target, content, "utf-8")));
239196
239205
  return entries.map(({ target }) => target);
239197
239206
  }, compileAngularFileJIT = async (inputPath, outDir, rootDir) => {
@@ -239208,13 +239217,13 @@ ${registrations}
239208
239217
  declaration: false,
239209
239218
  sourceMap: false
239210
239219
  };
239211
- const baseDir = resolve10(rootDir ?? process.cwd());
239220
+ const baseDir = resolve9(rootDir ?? process.cwd());
239212
239221
  const inlineResources = async (source, fileDir) => {
239213
239222
  let result = source;
239214
239223
  const templateUrlMatch = result.match(/templateUrl\s*:\s*['"]([^'"]+)['"]/);
239215
239224
  if (templateUrlMatch && templateUrlMatch[1]) {
239216
- const templatePath = join7(fileDir, templateUrlMatch[1]);
239217
- if (existsSync7(templatePath)) {
239225
+ const templatePath = join8(fileDir, templateUrlMatch[1]);
239226
+ if (existsSync8(templatePath)) {
239218
239227
  const templateContent = await fs.readFile(templatePath, "utf-8");
239219
239228
  const escaped = templateContent.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
239220
239229
  result = result.replace(/templateUrl\s*:\s*['"][^'"]+['"]/, `template: \`${escaped}\``);
@@ -239227,8 +239236,8 @@ ${registrations}
239227
239236
  const inlinedStyles = [];
239228
239237
  for (const urlMatch of urlMatches) {
239229
239238
  const styleUrl = urlMatch.replace(/['"]/g, "");
239230
- const stylePath = join7(fileDir, styleUrl);
239231
- if (existsSync7(stylePath)) {
239239
+ const stylePath = join8(fileDir, styleUrl);
239240
+ if (existsSync8(stylePath)) {
239232
239241
  const styleContent = await fs.readFile(stylePath, "utf-8");
239233
239242
  const escaped = styleContent.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
239234
239243
  inlinedStyles.push(`\`${escaped}\``);
@@ -239241,8 +239250,8 @@ ${registrations}
239241
239250
  }
239242
239251
  const styleUrlMatch = result.match(/styleUrl\s*:\s*['"]([^'"]+)['"]/);
239243
239252
  if (styleUrlMatch && styleUrlMatch[1]) {
239244
- const stylePath = join7(fileDir, styleUrlMatch[1]);
239245
- if (existsSync7(stylePath)) {
239253
+ const stylePath = join8(fileDir, styleUrlMatch[1]);
239254
+ if (existsSync8(stylePath)) {
239246
239255
  const styleContent = await fs.readFile(stylePath, "utf-8");
239247
239256
  const escaped = styleContent.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
239248
239257
  result = result.replace(/styleUrl\s*:\s*['"][^'"]+['"]/, `styles: [\`${escaped}\`]`);
@@ -239251,17 +239260,17 @@ ${registrations}
239251
239260
  return result;
239252
239261
  };
239253
239262
  const transpileFile = async (filePath) => {
239254
- const resolved = resolve10(filePath);
239263
+ const resolved = resolve9(filePath);
239255
239264
  if (visited.has(resolved))
239256
239265
  return;
239257
239266
  visited.add(resolved);
239258
239267
  let actualPath = resolved;
239259
239268
  if (!actualPath.endsWith(".ts"))
239260
239269
  actualPath += ".ts";
239261
- if (!existsSync7(actualPath))
239270
+ if (!existsSync8(actualPath))
239262
239271
  return;
239263
239272
  let sourceCode = await fs.readFile(actualPath, "utf-8");
239264
- sourceCode = await inlineResources(sourceCode, dirname4(actualPath));
239273
+ sourceCode = await inlineResources(sourceCode, dirname5(actualPath));
239265
239274
  const importRegex = /from\s+['"](\.\.?\/[^'"]+)['"]/g;
239266
239275
  const localImports = [];
239267
239276
  let importMatch;
@@ -239283,30 +239292,30 @@ ${registrations}
239283
239292
  }
239284
239293
  return match;
239285
239294
  });
239286
- const inputDir = dirname4(actualPath);
239295
+ const inputDir = dirname5(actualPath);
239287
239296
  const relativeDir = inputDir.startsWith(baseDir) ? inputDir.substring(baseDir.length + 1) : inputDir;
239288
239297
  const fileBase = basename4(actualPath).replace(/\.ts$/, ".js");
239289
- const targetDir = join7(outDir, relativeDir);
239290
- const targetPath = join7(targetDir, fileBase);
239298
+ const targetDir = join8(outDir, relativeDir);
239299
+ const targetPath = join8(targetDir, fileBase);
239291
239300
  await fs.mkdir(targetDir, { recursive: true });
239292
239301
  await fs.writeFile(targetPath, processedContent, "utf-8");
239293
239302
  allOutputs.push(targetPath);
239294
- const inputDirForResolve = dirname4(actualPath);
239303
+ const inputDirForResolve = dirname5(actualPath);
239295
239304
  await Promise.all(localImports.map((imp) => {
239296
- const importPath = resolve10(inputDirForResolve, imp);
239305
+ const importPath = resolve9(inputDirForResolve, imp);
239297
239306
  return transpileFile(importPath);
239298
239307
  }));
239299
239308
  };
239300
239309
  await transpileFile(inputPath);
239301
239310
  return allOutputs;
239302
239311
  }, compileAngular = async (entryPoints, outRoot, hmr = false) => {
239303
- const compiledParent = join7(outRoot, "compiled");
239312
+ const compiledParent = join8(outRoot, "compiled");
239304
239313
  if (entryPoints.length === 0) {
239305
239314
  return { clientPaths: [], serverPaths: [] };
239306
239315
  }
239307
239316
  const buildId = hmr ? Date.now().toString(36) : undefined;
239308
- const compiledRoot = buildId ? join7(compiledParent, buildId) : compiledParent;
239309
- const indexesDir = hmr ? join7(compiledRoot, "indexes") : join7(outRoot, "indexes");
239317
+ const compiledRoot = buildId ? join8(compiledParent, buildId) : compiledParent;
239318
+ const indexesDir = hmr ? join8(compiledRoot, "indexes") : join8(outRoot, "indexes");
239310
239319
  await fs.mkdir(indexesDir, { recursive: true });
239311
239320
  const compileTasks = entryPoints.map(async (entry) => {
239312
239321
  const outputs = hmr ? await compileAngularFileJIT(entry, compiledRoot, outRoot) : await compileAngularFile(entry, compiledRoot);
@@ -239333,7 +239342,7 @@ export default ${componentClassName};
239333
239342
  await fs.writeFile(rawServerFile, rewritten, "utf-8");
239334
239343
  const relativePath = relative5(indexesDir, rawServerFile).replace(/\\/g, "/");
239335
239344
  const normalizedImportPath = relativePath.startsWith(".") ? relativePath : "./" + relativePath;
239336
- const clientFile = join7(indexesDir, jsName);
239345
+ const clientFile = join8(indexesDir, jsName);
239337
239346
  const hmrPreamble = hmr ? `window.__HMR_FRAMEWORK__ = "angular";
239338
239347
  import "${hmrRuntimePath}";
239339
239348
  import "${hmrClientPath5}";
@@ -239385,7 +239394,7 @@ bootstrapApplication(${componentClassName}, {
239385
239394
  if (buildId) {
239386
239395
  try {
239387
239396
  const dirs = await fs.readdir(compiledParent);
239388
- await Promise.all(dirs.filter((dir) => dir !== buildId).map((dir) => fs.rm(join7(compiledParent, dir), {
239397
+ await Promise.all(dirs.filter((dir) => dir !== buildId).map((dir) => fs.rm(join8(compiledParent, dir), {
239389
239398
  recursive: true,
239390
239399
  force: true
239391
239400
  })));
@@ -239396,13 +239405,13 @@ bootstrapApplication(${componentClassName}, {
239396
239405
  var init_compileAngular = __esm(() => {
239397
239406
  import_typescript = __toESM(require_typescript4(), 1);
239398
239407
  devClientDir4 = (() => {
239399
- const fromSource = resolve10(import.meta.dir, "../dev/client");
239400
- if (existsSync7(fromSource))
239408
+ const fromSource = resolve9(import.meta.dir, "../dev/client");
239409
+ if (existsSync8(fromSource))
239401
239410
  return fromSource;
239402
- return resolve10(import.meta.dir, "./dev/client");
239411
+ return resolve9(import.meta.dir, "./dev/client");
239403
239412
  })();
239404
- hmrClientPath5 = join7(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
239405
- hmrRuntimePath = join7(devClientDir4, "handlers", "angularRuntime.ts").replace(/\\/g, "/");
239413
+ hmrClientPath5 = join8(devClientDir4, "hmrClient.ts").replace(/\\/g, "/");
239414
+ hmrRuntimePath = join8(devClientDir4, "handlers", "angularRuntime.ts").replace(/\\/g, "/");
239406
239415
  });
239407
239416
 
239408
239417
  // src/core/build.ts
@@ -239414,7 +239423,7 @@ import {
239414
239423
  rmSync,
239415
239424
  writeFileSync as writeFileSync3
239416
239425
  } from "fs";
239417
- import { basename as basename5, join as join8, resolve as resolve11 } from "path";
239426
+ import { basename as basename5, join as join9, resolve as resolve10 } from "path";
239418
239427
  import { cwd, env as env2, exit } from "process";
239419
239428
  var {$, build: bunBuild2, Glob: Glob4 } = globalThis.Bun;
239420
239429
  var isDev, vueFeatureFlags, build2 = async ({
@@ -239435,8 +239444,8 @@ var isDev, vueFeatureFlags, build2 = async ({
239435
239444
  const buildStart = performance.now();
239436
239445
  const projectRoot = cwd();
239437
239446
  const versionCandidates = [
239438
- resolve11(import.meta.dir, "..", "..", "package.json"),
239439
- resolve11(import.meta.dir, "..", "package.json")
239447
+ resolve10(import.meta.dir, "..", "..", "package.json"),
239448
+ resolve10(import.meta.dir, "..", "package.json")
239440
239449
  ];
239441
239450
  for (const candidate of versionCandidates) {
239442
239451
  try {
@@ -239459,14 +239468,14 @@ var isDev, vueFeatureFlags, build2 = async ({
239459
239468
  const svelteDir = svelteDirectory && validateSafePath(svelteDirectory, projectRoot);
239460
239469
  const vueDir = vueDirectory && validateSafePath(vueDirectory, projectRoot);
239461
239470
  const angularDir = angularDirectory && validateSafePath(angularDirectory, projectRoot);
239462
- const reactIndexesPath = reactDir && join8(reactDir, "indexes");
239463
- const reactPagesPath = reactDir && join8(reactDir, "pages");
239464
- const htmlPagesPath = htmlDir && join8(htmlDir, "pages");
239465
- const htmlScriptsPath = htmlDir && join8(htmlDir, "scripts");
239466
- const sveltePagesPath = svelteDir && join8(svelteDir, "pages");
239467
- const vuePagesPath = vueDir && join8(vueDir, "pages");
239468
- const htmxPagesPath = htmxDir && join8(htmxDir, "pages");
239469
- const angularPagesPath = angularDir && join8(angularDir, "pages");
239471
+ const reactIndexesPath = reactDir && join9(reactDir, "indexes");
239472
+ const reactPagesPath = reactDir && join9(reactDir, "pages");
239473
+ const htmlPagesPath = htmlDir && join9(htmlDir, "pages");
239474
+ const htmlScriptsPath = htmlDir && join9(htmlDir, "scripts");
239475
+ const sveltePagesPath = svelteDir && join9(svelteDir, "pages");
239476
+ const vuePagesPath = vueDir && join9(vueDir, "pages");
239477
+ const htmxPagesPath = htmxDir && join9(htmxDir, "pages");
239478
+ const angularPagesPath = angularDir && join9(angularDir, "pages");
239470
239479
  const frontends = [
239471
239480
  reactDir,
239472
239481
  htmlDir,
@@ -239502,8 +239511,8 @@ var isDev, vueFeatureFlags, build2 = async ({
239502
239511
  let serverOutDir;
239503
239512
  let serverRoot;
239504
239513
  if (serverFrameworkDirs.length === 1) {
239505
- serverRoot = join8(serverFrameworkDirs[0], "server");
239506
- serverOutDir = join8(buildPath, basename5(serverFrameworkDirs[0]));
239514
+ serverRoot = join9(serverFrameworkDirs[0], "server");
239515
+ serverOutDir = join9(buildPath, basename5(serverFrameworkDirs[0]));
239507
239516
  } else if (serverFrameworkDirs.length > 1) {
239508
239517
  serverRoot = commonAncestor(serverFrameworkDirs, projectRoot);
239509
239518
  serverOutDir = buildPath;
@@ -239515,11 +239524,11 @@ var isDev, vueFeatureFlags, build2 = async ({
239515
239524
  const filterToIncrementalEntries = (entryPoints, mapToSource) => {
239516
239525
  if (!isIncremental || !incrementalFiles)
239517
239526
  return entryPoints;
239518
- const normalizedIncremental = new Set(incrementalFiles.map((f) => resolve11(f)));
239527
+ const normalizedIncremental = new Set(incrementalFiles.map((f) => resolve10(f)));
239519
239528
  const matchingEntries = [];
239520
239529
  for (const entry of entryPoints) {
239521
239530
  const sourceFile = mapToSource(entry);
239522
- if (sourceFile && normalizedIncremental.has(resolve11(sourceFile))) {
239531
+ if (sourceFile && normalizedIncremental.has(resolve10(sourceFile))) {
239523
239532
  matchingEntries.push(entry);
239524
239533
  }
239525
239534
  }
@@ -239529,12 +239538,12 @@ var isDev, vueFeatureFlags, build2 = async ({
239529
239538
  await generateReactIndexFiles(reactPagesPath, reactIndexesPath, hmr);
239530
239539
  }
239531
239540
  if (assetsPath && (!isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/assets/")))) {
239532
- cpSync(assetsPath, join8(buildPath, "assets"), {
239541
+ cpSync(assetsPath, join9(buildPath, "assets"), {
239533
239542
  force: true,
239534
239543
  recursive: true
239535
239544
  });
239536
239545
  }
239537
- const tailwindPromise = tailwind && (!isIncremental || normalizedIncrementalFiles?.some((f) => f.endsWith(".css"))) ? $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join8(buildPath, tailwind.output)}` : undefined;
239546
+ const tailwindPromise = tailwind && (!isIncremental || normalizedIncrementalFiles?.some((f) => f.endsWith(".css"))) ? $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join9(buildPath, tailwind.output)}` : undefined;
239538
239547
  const [
239539
239548
  ,
239540
239549
  allReactEntries,
@@ -239554,18 +239563,18 @@ var isDev, vueFeatureFlags, build2 = async ({
239554
239563
  sveltePagesPath ? scanEntryPoints(sveltePagesPath, "*.svelte") : [],
239555
239564
  vuePagesPath ? scanEntryPoints(vuePagesPath, "*.vue") : [],
239556
239565
  angularPagesPath ? scanEntryPoints(angularPagesPath, "*.ts") : [],
239557
- htmlDir ? scanEntryPoints(join8(htmlDir, "styles"), "*.css") : [],
239558
- htmxDir ? scanEntryPoints(join8(htmxDir, "styles"), "*.css") : [],
239559
- reactDir ? scanEntryPoints(join8(reactDir, "styles"), "*.css") : [],
239560
- svelteDir ? scanEntryPoints(join8(svelteDir, "styles"), "*.css") : [],
239561
- angularDir ? scanEntryPoints(join8(angularDir, "styles"), "*.css") : []
239566
+ htmlDir ? scanEntryPoints(join9(htmlDir, "styles"), "*.css") : [],
239567
+ htmxDir ? scanEntryPoints(join9(htmxDir, "styles"), "*.css") : [],
239568
+ reactDir ? scanEntryPoints(join9(reactDir, "styles"), "*.css") : [],
239569
+ svelteDir ? scanEntryPoints(join9(svelteDir, "styles"), "*.css") : [],
239570
+ angularDir ? scanEntryPoints(join9(angularDir, "styles"), "*.css") : []
239562
239571
  ]);
239563
239572
  const shouldIncludeHtmlAssets = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
239564
239573
  const shouldIncludeHtmxAssets = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
239565
239574
  const reactEntries = isIncremental && reactIndexesPath && reactPagesPath ? filterToIncrementalEntries(allReactEntries, (entry) => {
239566
- if (entry.startsWith(resolve11(reactIndexesPath))) {
239575
+ if (entry.startsWith(resolve10(reactIndexesPath))) {
239567
239576
  const pageName = basename5(entry, ".tsx");
239568
- return join8(reactPagesPath, `${pageName}.tsx`);
239577
+ return join9(reactPagesPath, `${pageName}.tsx`);
239569
239578
  }
239570
239579
  return null;
239571
239580
  }) : allReactEntries;
@@ -239626,7 +239635,7 @@ var isDev, vueFeatureFlags, build2 = async ({
239626
239635
  return {};
239627
239636
  }
239628
239637
  if (hmr && reactIndexesPath && reactClientEntryPoints.length > 0) {
239629
- const refreshEntry = join8(reactIndexesPath, "_refresh.tsx");
239638
+ const refreshEntry = join9(reactIndexesPath, "_refresh.tsx");
239630
239639
  if (!reactClientEntryPoints.includes(refreshEntry)) {
239631
239640
  reactClientEntryPoints.push(refreshEntry);
239632
239641
  }
@@ -239654,13 +239663,13 @@ var isDev, vueFeatureFlags, build2 = async ({
239654
239663
  return cfg;
239655
239664
  })() : undefined;
239656
239665
  if (reactDir && reactClientEntryPoints.length > 0) {
239657
- rmSync(join8(buildPath, "react", "indexes"), {
239666
+ rmSync(join9(buildPath, "react", "indexes"), {
239658
239667
  force: true,
239659
239668
  recursive: true
239660
239669
  });
239661
239670
  }
239662
239671
  if (angularDir && angularClientPaths.length > 0) {
239663
- rmSync(join8(buildPath, "angular", "indexes"), {
239672
+ rmSync(join9(buildPath, "angular", "indexes"), {
239664
239673
  force: true,
239665
239674
  recursive: true
239666
239675
  });
@@ -239696,7 +239705,7 @@ var isDev, vueFeatureFlags, build2 = async ({
239696
239705
  cssEntryPoints.length > 0 ? bunBuild2({
239697
239706
  entrypoints: cssEntryPoints,
239698
239707
  naming: `[name].[hash].[ext]`,
239699
- outdir: join8(buildPath, assetsPath ? basename5(assetsPath) : "assets", "css"),
239708
+ outdir: join9(buildPath, assetsPath ? basename5(assetsPath) : "assets", "css"),
239700
239709
  target: "browser",
239701
239710
  throw: false
239702
239711
  }) : undefined
@@ -239810,7 +239819,7 @@ var isDev, vueFeatureFlags, build2 = async ({
239810
239819
  }
239811
239820
  for (const serverPath of angularServerPaths) {
239812
239821
  const fileBase = basename5(serverPath, ".js");
239813
- manifest[toPascal(fileBase)] = resolve11(serverPath);
239822
+ manifest[toPascal(fileBase)] = resolve10(serverPath);
239814
239823
  }
239815
239824
  const htmlOrHtmlCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
239816
239825
  const htmxOrHtmxCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
@@ -239834,7 +239843,7 @@ var isDev, vueFeatureFlags, build2 = async ({
239834
239843
  (async () => {
239835
239844
  if (!(htmlDir && htmlPagesPath))
239836
239845
  return;
239837
- const outputHtmlPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename5(htmlDir), "pages");
239846
+ const outputHtmlPages = isSingle ? join9(buildPath, "pages") : join9(buildPath, basename5(htmlDir), "pages");
239838
239847
  if (shouldCopyHtml) {
239839
239848
  mkdirSync3(outputHtmlPages, { recursive: true });
239840
239849
  cpSync(htmlPagesPath, outputHtmlPages, {
@@ -239856,7 +239865,7 @@ var isDev, vueFeatureFlags, build2 = async ({
239856
239865
  (async () => {
239857
239866
  if (!(htmxDir && htmxPagesPath))
239858
239867
  return;
239859
- const outputHtmxPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename5(htmxDir), "pages");
239868
+ const outputHtmxPages = isSingle ? join9(buildPath, "pages") : join9(buildPath, basename5(htmxDir), "pages");
239860
239869
  if (shouldCopyHtmx) {
239861
239870
  mkdirSync3(outputHtmxPages, { recursive: true });
239862
239871
  cpSync(htmxPagesPath, outputHtmxPages, {
@@ -239865,12 +239874,12 @@ var isDev, vueFeatureFlags, build2 = async ({
239865
239874
  });
239866
239875
  }
239867
239876
  if (shouldCopyHtmx) {
239868
- const htmxDestDir = isSingle ? buildPath : join8(buildPath, basename5(htmxDir));
239877
+ const htmxDestDir = isSingle ? buildPath : join9(buildPath, basename5(htmxDir));
239869
239878
  mkdirSync3(htmxDestDir, { recursive: true });
239870
239879
  const glob = new Glob4("htmx*.min.js");
239871
239880
  for (const relPath of glob.scanSync({ cwd: htmxDir })) {
239872
- const src = join8(htmxDir, relPath);
239873
- const dest = join8(htmxDestDir, "htmx.min.js");
239881
+ const src = join9(htmxDir, relPath);
239882
+ const dest = join9(htmxDestDir, "htmx.min.js");
239874
239883
  copyFileSync(src, dest);
239875
239884
  break;
239876
239885
  }
@@ -239910,7 +239919,7 @@ var isDev, vueFeatureFlags, build2 = async ({
239910
239919
  durationMs: Math.round(performance.now() - buildStart),
239911
239920
  mode: mode ?? (isDev ? "development" : "production")
239912
239921
  });
239913
- writeFileSync3(join8(buildPath, "manifest.json"), JSON.stringify(manifest, null, "\t"));
239922
+ writeFileSync3(join9(buildPath, "manifest.json"), JSON.stringify(manifest, null, "\t"));
239914
239923
  return manifest;
239915
239924
  };
239916
239925
  var init_build = __esm(() => {
@@ -239938,7 +239947,7 @@ var init_build = __esm(() => {
239938
239947
 
239939
239948
  // src/build/buildReactVendor.ts
239940
239949
  import { mkdirSync as mkdirSync4 } from "fs";
239941
- import { join as join9 } from "path";
239950
+ import { join as join10 } from "path";
239942
239951
  import { rm as rm4 } from "fs/promises";
239943
239952
  var {build: bunBuild3 } = globalThis.Bun;
239944
239953
  var reactSpecifiers, toSafeFileName = (specifier) => specifier.replace(/\//g, "_"), computeVendorPaths = () => {
@@ -239961,14 +239970,14 @@ var reactSpecifiers, toSafeFileName = (specifier) => specifier.replace(/\//g, "_
239961
239970
  `) + `
239962
239971
  `;
239963
239972
  }, buildReactVendor = async (buildDir) => {
239964
- const vendorDir = join9(buildDir, "react", "vendor");
239973
+ const vendorDir = join10(buildDir, "react", "vendor");
239965
239974
  mkdirSync4(vendorDir, { recursive: true });
239966
- const tmpDir = join9(buildDir, "_vendor_tmp");
239975
+ const tmpDir = join10(buildDir, "_vendor_tmp");
239967
239976
  mkdirSync4(tmpDir, { recursive: true });
239968
239977
  const entrypoints = [];
239969
239978
  for (const specifier of reactSpecifiers) {
239970
239979
  const safeName = toSafeFileName(specifier);
239971
- const entryPath = join9(tmpDir, `${safeName}.ts`);
239980
+ const entryPath = join10(tmpDir, `${safeName}.ts`);
239972
239981
  const source = await generateEntrySource(specifier);
239973
239982
  await Bun.write(entryPath, source);
239974
239983
  entrypoints.push(entryPath);
@@ -239999,14 +240008,14 @@ var init_buildReactVendor = __esm(() => {
239999
240008
  });
240000
240009
 
240001
240010
  // src/dev/dependencyGraph.ts
240002
- import { readFileSync as readFileSync6, readdirSync, existsSync as existsSync8 } from "fs";
240003
- import { resolve as resolve12 } from "path";
240011
+ import { readFileSync as readFileSync6, readdirSync, existsSync as existsSync9 } from "fs";
240012
+ import { resolve as resolve11 } from "path";
240004
240013
  var createDependencyGraph = () => ({
240005
240014
  dependencies: new Map,
240006
240015
  dependents: new Map
240007
240016
  }), extractDependencies = (filePath) => {
240008
240017
  try {
240009
- if (!existsSync8(filePath)) {
240018
+ if (!existsSync9(filePath)) {
240010
240019
  return [];
240011
240020
  }
240012
240021
  const content = readFileSync6(filePath, "utf-8");
@@ -240098,9 +240107,9 @@ var createDependencyGraph = () => ({
240098
240107
  if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
240099
240108
  return null;
240100
240109
  }
240101
- const fromDir = resolve12(fromFile, "..");
240102
- const resolved = resolve12(fromDir, importPath);
240103
- const normalized = resolve12(resolved);
240110
+ const fromDir = resolve11(fromFile, "..");
240111
+ const resolved = resolve11(fromDir, importPath);
240112
+ const normalized = resolve11(resolved);
240104
240113
  const extensions = [
240105
240114
  ".ts",
240106
240115
  ".tsx",
@@ -240125,8 +240134,8 @@ var createDependencyGraph = () => ({
240125
240134
  return null;
240126
240135
  }
240127
240136
  }, addFileToGraph = (graph, filePath) => {
240128
- const normalizedPath = resolve12(filePath);
240129
- if (!existsSync8(normalizedPath)) {
240137
+ const normalizedPath = resolve11(filePath);
240138
+ if (!existsSync9(normalizedPath)) {
240130
240139
  return;
240131
240140
  }
240132
240141
  const dependencies = extractDependencies(normalizedPath);
@@ -240148,7 +240157,7 @@ var createDependencyGraph = () => ({
240148
240157
  graph.dependents.get(dep).add(normalizedPath);
240149
240158
  }
240150
240159
  }, getAffectedFiles = (graph, changedFile) => {
240151
- const normalizedPath = resolve12(changedFile);
240160
+ const normalizedPath = resolve11(changedFile);
240152
240161
  const affected = new Set;
240153
240162
  const toProcess = [normalizedPath];
240154
240163
  while (toProcess.length > 0) {
@@ -240166,7 +240175,7 @@ var createDependencyGraph = () => ({
240166
240175
  }
240167
240176
  return Array.from(affected);
240168
240177
  }, removeFileFromGraph = (graph, filePath) => {
240169
- const normalizedPath = resolve12(filePath);
240178
+ const normalizedPath = resolve11(filePath);
240170
240179
  const deps = graph.dependencies.get(normalizedPath);
240171
240180
  if (deps) {
240172
240181
  for (const dep of deps) {
@@ -240190,11 +240199,11 @@ var createDependencyGraph = () => ({
240190
240199
  }, buildInitialDependencyGraph = (graph, directories) => {
240191
240200
  const processedFiles = new Set;
240192
240201
  const scanDirectory = (dir) => {
240193
- const normalizedDir = resolve12(dir);
240202
+ const normalizedDir = resolve11(dir);
240194
240203
  try {
240195
240204
  const entries = readdirSync(normalizedDir, { withFileTypes: true });
240196
240205
  for (const entry of entries) {
240197
- const fullPath = resolve12(normalizedDir, entry.name);
240206
+ const fullPath = resolve11(normalizedDir, entry.name);
240198
240207
  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(".")) {
240199
240208
  continue;
240200
240209
  }
@@ -240222,8 +240231,8 @@ var createDependencyGraph = () => ({
240222
240231
  } catch {}
240223
240232
  };
240224
240233
  for (const dir of directories) {
240225
- const resolvedDir = resolve12(dir);
240226
- if (existsSync8(resolvedDir)) {
240234
+ const resolvedDir = resolve11(dir);
240235
+ if (existsSync9(resolvedDir)) {
240227
240236
  scanDirectory(resolvedDir);
240228
240237
  }
240229
240238
  }
@@ -240251,12 +240260,12 @@ var globalVersionCounter = 0, getNextVersion = () => ++globalVersionCounter, cre
240251
240260
  };
240252
240261
 
240253
240262
  // src/dev/configResolver.ts
240254
- import { resolve as resolve13 } from "path";
240263
+ import { resolve as resolve12 } from "path";
240255
240264
  var resolveBuildPaths = (config) => {
240256
240265
  const cwd2 = process.cwd();
240257
240266
  const normalize = (path) => path.replace(/\\/g, "/");
240258
- const withDefault = (value2, fallback) => normalize(resolve13(cwd2, value2 ?? fallback));
240259
- const optional = (value2) => value2 ? normalize(resolve13(cwd2, value2)) : undefined;
240267
+ const withDefault = (value2, fallback) => normalize(resolve12(cwd2, value2 ?? fallback));
240268
+ const optional = (value2) => value2 ? normalize(resolve12(cwd2, value2)) : undefined;
240260
240269
  return {
240261
240270
  buildDir: withDefault(config.buildDirectory, "build"),
240262
240271
  assetsDir: optional(config.assetsDirectory),
@@ -240412,13 +240421,13 @@ var init_pathUtils = () => {};
240412
240421
 
240413
240422
  // src/dev/fileWatcher.ts
240414
240423
  import { watch } from "fs";
240415
- import { existsSync as existsSync9 } from "fs";
240416
- import { join as join10, resolve as resolve14 } from "path";
240424
+ import { existsSync as existsSync10 } from "fs";
240425
+ import { join as join11, resolve as resolve13 } from "path";
240417
240426
  var startFileWatching = (state, config, onFileChange) => {
240418
240427
  const watchPaths = getWatchPaths(config, state.resolvedPaths);
240419
240428
  for (const path of watchPaths) {
240420
- const absolutePath = resolve14(path).replace(/\\/g, "/");
240421
- if (!existsSync9(absolutePath)) {
240429
+ const absolutePath = resolve13(path).replace(/\\/g, "/");
240430
+ if (!existsSync10(absolutePath)) {
240422
240431
  continue;
240423
240432
  }
240424
240433
  const watcher = watch(absolutePath, { recursive: true }, (event, filename) => {
@@ -240427,11 +240436,11 @@ var startFileWatching = (state, config, onFileChange) => {
240427
240436
  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("/")) {
240428
240437
  return;
240429
240438
  }
240430
- const fullPath = join10(absolutePath, filename).replace(/\\/g, "/");
240439
+ const fullPath = join11(absolutePath, filename).replace(/\\/g, "/");
240431
240440
  if (shouldIgnorePath(fullPath)) {
240432
240441
  return;
240433
240442
  }
240434
- if (event === "rename" && !existsSync9(fullPath)) {
240443
+ if (event === "rename" && !existsSync10(fullPath)) {
240435
240444
  try {
240436
240445
  removeFileFromGraph(state.dependencyGraph, fullPath);
240437
240446
  } catch (err) {
@@ -240443,7 +240452,7 @@ var startFileWatching = (state, config, onFileChange) => {
240443
240452
  onFileChange(fullPath);
240444
240453
  return;
240445
240454
  }
240446
- if (existsSync9(fullPath)) {
240455
+ if (existsSync10(fullPath)) {
240447
240456
  onFileChange(fullPath);
240448
240457
  try {
240449
240458
  addFileToGraph(state.dependencyGraph, fullPath);
@@ -240465,7 +240474,7 @@ var init_fileWatcher = __esm(() => {
240465
240474
  });
240466
240475
 
240467
240476
  // src/dev/assetStore.ts
240468
- import { resolve as resolve15 } from "path";
240477
+ import { resolve as resolve14 } from "path";
240469
240478
  import { readdir, unlink } from "fs/promises";
240470
240479
  var mimeTypes, getMimeType = (filePath) => {
240471
240480
  const ext = filePath.slice(filePath.lastIndexOf("."));
@@ -240486,7 +240495,7 @@ var mimeTypes, getMimeType = (filePath) => {
240486
240495
  }
240487
240496
  }
240488
240497
  for (const webPath of newIdentities.values()) {
240489
- loadPromises.push(Bun.file(resolve15(buildDir, webPath.slice(1))).bytes().then((bytes) => {
240498
+ loadPromises.push(Bun.file(resolve14(buildDir, webPath.slice(1))).bytes().then((bytes) => {
240490
240499
  store.set(webPath, bytes);
240491
240500
  }).catch(() => {}));
240492
240501
  }
@@ -240496,11 +240505,11 @@ var mimeTypes, getMimeType = (filePath) => {
240496
240505
  const subTasks = [];
240497
240506
  for (const entry of entries) {
240498
240507
  if (entry.isDirectory()) {
240499
- subTasks.push(scanDir(resolve15(dir, entry.name), `${prefix}${entry.name}/`));
240508
+ subTasks.push(scanDir(resolve14(dir, entry.name), `${prefix}${entry.name}/`));
240500
240509
  } else if (entry.name.startsWith("chunk-")) {
240501
240510
  const webPath = `/${prefix}${entry.name}`;
240502
240511
  if (!store.has(webPath)) {
240503
- subTasks.push(Bun.file(resolve15(dir, entry.name)).bytes().then((bytes) => {
240512
+ subTasks.push(Bun.file(resolve14(dir, entry.name)).bytes().then((bytes) => {
240504
240513
  store.set(webPath, bytes);
240505
240514
  }).catch(() => {}));
240506
240515
  }
@@ -240514,10 +240523,10 @@ var mimeTypes, getMimeType = (filePath) => {
240514
240523
  }, cleanStaleAssets = async (store, manifest, buildDir) => {
240515
240524
  const liveByIdentity = new Map;
240516
240525
  for (const webPath of store.keys()) {
240517
- const diskPath = resolve15(buildDir, webPath.slice(1));
240526
+ const diskPath = resolve14(buildDir, webPath.slice(1));
240518
240527
  liveByIdentity.set(stripHash(diskPath), diskPath);
240519
240528
  }
240520
- const absBuildDir = resolve15(buildDir);
240529
+ const absBuildDir = resolve14(buildDir);
240521
240530
  for (const val of Object.values(manifest)) {
240522
240531
  if (!HASHED_FILE_RE.test(val))
240523
240532
  continue;
@@ -240530,7 +240539,7 @@ var mimeTypes, getMimeType = (filePath) => {
240530
240539
  const entries = await readdir(dir, { withFileTypes: true });
240531
240540
  const tasks = [];
240532
240541
  for (const entry of entries) {
240533
- const fullPath = resolve15(dir, entry.name);
240542
+ const fullPath = resolve14(dir, entry.name);
240534
240543
  if (entry.isDirectory()) {
240535
240544
  tasks.push(walkAndClean(fullPath));
240536
240545
  } else if (HASHED_FILE_RE.test(entry.name)) {
@@ -240583,9 +240592,9 @@ var computeFileHash = (filePath) => {
240583
240592
  var init_fileHashTracker = () => {};
240584
240593
 
240585
240594
  // src/dev/reactComponentClassifier.ts
240586
- import { resolve as resolve16 } from "path";
240595
+ import { resolve as resolve15 } from "path";
240587
240596
  var classifyComponent = (filePath) => {
240588
- const normalizedPath = resolve16(filePath);
240597
+ const normalizedPath = resolve15(filePath);
240589
240598
  if (normalizedPath.includes("/react/pages/")) {
240590
240599
  return "server";
240591
240600
  }
@@ -240597,9 +240606,9 @@ var classifyComponent = (filePath) => {
240597
240606
  var init_reactComponentClassifier = () => {};
240598
240607
 
240599
240608
  // src/dev/moduleMapper.ts
240600
- import { basename as basename6, resolve as resolve17 } from "path";
240609
+ import { basename as basename6, resolve as resolve16 } from "path";
240601
240610
  var mapSourceFileToManifestKeys = (sourceFile, framework, resolvedPaths) => {
240602
- const normalizedFile = resolve17(sourceFile);
240611
+ const normalizedFile = resolve16(sourceFile);
240603
240612
  const fileName = basename6(normalizedFile);
240604
240613
  const baseName = fileName.replace(/\.(tsx?|jsx?|vue|svelte|css|html)$/, "");
240605
240614
  const pascalName = toPascal(baseName);
@@ -240651,7 +240660,7 @@ var mapSourceFileToManifestKeys = (sourceFile, framework, resolvedPaths) => {
240651
240660
  const updates = [];
240652
240661
  const processedFiles = new Set;
240653
240662
  for (const sourceFile of changedFiles) {
240654
- const normalizedFile = resolve17(sourceFile);
240663
+ const normalizedFile = resolve16(sourceFile);
240655
240664
  const normalizedPath = normalizedFile.replace(/\\/g, "/");
240656
240665
  if (processedFiles.has(normalizedFile))
240657
240666
  continue;
@@ -240775,12 +240784,12 @@ var exports_simpleHTMLHMR = {};
240775
240784
  __export(exports_simpleHTMLHMR, {
240776
240785
  handleHTMLUpdate: () => handleHTMLUpdate
240777
240786
  });
240778
- import { readFileSync as readFileSync8, existsSync as existsSync10 } from "fs";
240779
- import { resolve as resolve18 } from "path";
240787
+ import { readFileSync as readFileSync8, existsSync as existsSync11 } from "fs";
240788
+ import { resolve as resolve17 } from "path";
240780
240789
  var handleHTMLUpdate = async (htmlFilePath) => {
240781
240790
  try {
240782
- const resolvedPath = resolve18(htmlFilePath);
240783
- if (!existsSync10(resolvedPath)) {
240791
+ const resolvedPath = resolve17(htmlFilePath);
240792
+ if (!existsSync11(resolvedPath)) {
240784
240793
  return null;
240785
240794
  }
240786
240795
  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 resolve19 } from "path";
240881
+ import { basename as basename7, join as join12, resolve as resolve18 } from "path";
240873
240882
  var handleVueUpdate = async (vueFilePath, manifest, buildDir) => {
240874
240883
  try {
240875
- const resolvedPath = resolve19(vueFilePath);
240884
+ const resolvedPath = resolve18(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 = resolve19(serverPath) === serverPath || serverPath.startsWith("/") || /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : join11(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
240897
+ const absoluteServerPath = resolve18(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 resolve20 } from "path";
241030
+ import { basename as basename8, join as join13, resolve as resolve19 } from "path";
241022
241031
  var handleSvelteUpdate = async (svelteFilePath, manifest, buildDir) => {
241023
241032
  try {
241024
- const resolvedPath = resolve20(svelteFilePath);
241033
+ const resolvedPath = resolve19(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 = resolve20(serverPath) === serverPath || serverPath.startsWith("/") || /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : join12(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
241046
+ const absoluteServerPath = resolve19(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 resolve21 } from "path";
270355
+ import { basename as basename9, resolve as resolve20 } from "path";
270347
270356
  var handleAngularUpdate = async (angularFilePath, manifest, buildDir) => {
270348
270357
  try {
270349
- const resolvedPath = resolve21(angularFilePath);
270358
+ const resolvedPath = resolve20(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 : resolve21(buildDir || process.cwd(), serverPath.replace(/^\//, ""));
270378
+ const absoluteServerPath = /^[A-Za-z]:[\\/]/.test(serverPath) ? serverPath : resolve20(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 resolve22 } from "path";
270413
+ import { readFileSync as readFileSync9, existsSync as existsSync12 } from "fs";
270414
+ import { resolve as resolve21 } from "path";
270406
270415
  var handleHTMXUpdate = async (htmxFilePath) => {
270407
270416
  try {
270408
- const resolvedPath = resolve22(htmxFilePath);
270409
- if (!existsSync11(resolvedPath)) {
270417
+ const resolvedPath = resolve21(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 resolve23 } from "path";
270440
+ import { existsSync as existsSync13 } from "fs";
270441
+ import { basename as basename10, resolve as resolve22 } 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 = resolve23(filePathInSet);
270537
+ const deletedPathResolved = resolve22(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 = resolve23(filePathInSet);
270550
+ const normalizedFilePath = resolve22(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 ? resolve23(state.resolvedPaths.buildDir, "pages") : resolve23(state.resolvedPaths.buildDir, basename10(config.htmlDirectory ?? "html"), "pages");
270730
+ const outputHtmlPages = isSingle ? resolve22(state.resolvedPaths.buildDir, "pages") : resolve22(state.resolvedPaths.buildDir, basename10(config.htmlDirectory ?? "html"), "pages");
270722
270731
  for (const pageFile of pagesToUpdate) {
270723
270732
  const htmlPageName = basename10(pageFile);
270724
- const builtHtmlPagePath = resolve23(outputHtmlPages, htmlPageName);
270733
+ const builtHtmlPagePath = resolve22(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(resolve23(vuePagePath));
270800
+ const hmrMeta = vueHmrMetadata2.get(resolve22(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 ? resolve23(state.resolvedPaths.buildDir, "pages") : resolve23(state.resolvedPaths.buildDir, basename10(config.htmxDirectory ?? "htmx"), "pages");
271024
+ const outputHtmxPages = isSingle ? resolve22(state.resolvedPaths.buildDir, "pages") : resolve22(state.resolvedPaths.buildDir, basename10(config.htmxDirectory ?? "htmx"), "pages");
271016
271025
  for (const htmxPageFile of htmxPageFiles) {
271017
271026
  const htmxPageName = basename10(htmxPageFile);
271018
- const builtHtmxPagePath = resolve23(outputHtmxPages, htmxPageName);
271027
+ const builtHtmxPagePath = resolve22(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 resolve24 } from "path";
271168
+ import { resolve as resolve23 } from "path";
271160
271169
  var devBuild = async (config) => {
271161
271170
  const cached = globalThis.__hmrDevResult;
271162
271171
  if (cached) {
271163
- const serverMtime = statSync(resolve24(Bun.main)).mtimeMs;
271172
+ const serverMtime = statSync(resolve23(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
- resolve24(import.meta.dir, "..", "..", "package.json"),
271181
- resolve24(import.meta.dir, "..", "package.json")
271189
+ resolve23(import.meta.dir, "..", "..", "package.json"),
271190
+ resolve23(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 = resolve24(state.resolvedPaths.buildDir, "react", "vendor");
271217
+ const vendorDir = resolve23(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(resolve24(vendorDir, entry)).bytes();
271222
+ const bytes = await Bun.file(resolve23(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(resolve24(Bun.main)).mtimeMs;
271238
+ globalThis.__hmrServerMtime = statSync(resolve23(Bun.main)).mtimeMs;
271230
271239
  return result;
271231
271240
  };
271232
271241
  var init_devBuild = __esm(() => {
@@ -271345,7 +271354,7 @@ var handleHTMLPageRequest = (pagePath) => file(pagePath);
271345
271354
  var handleHTMXPageRequest = (pagePath) => file(pagePath);
271346
271355
  // src/core/prepare.ts
271347
271356
  import { readFileSync as readFileSync10 } from "fs";
271348
- import { resolve as resolve25 } from "path";
271357
+ import { resolve as resolve24 } from "path";
271349
271358
 
271350
271359
  // src/utils/loadConfig.ts
271351
271360
  import { resolve } from "path";
@@ -271365,7 +271374,7 @@ var prepare = async (configOrPath) => {
271365
271374
  const config = await loadConfig(configOrPath);
271366
271375
  const nodeEnv = process.env["NODE_ENV"];
271367
271376
  const isDev2 = nodeEnv === "development";
271368
- const buildDir = resolve25(isDev2 ? config.buildDirectory ?? "build" : process.env.ABSOLUTE_BUILD_DIR ?? config.buildDirectory ?? "build");
271377
+ const buildDir = resolve24(isDev2 ? config.buildDirectory ?? "build" : process.env.ABSOLUTE_BUILD_DIR ?? config.buildDirectory ?? "build");
271369
271378
  if (isDev2) {
271370
271379
  const { devBuild: devBuild2 } = await Promise.resolve().then(() => (init_devBuild(), exports_devBuild));
271371
271380
  const result = await devBuild2(config);
@@ -271503,5 +271512,5 @@ export {
271503
271512
  BUN_BUILD_WARNING_SUPPRESSION
271504
271513
  };
271505
271514
 
271506
- //# debugId=3BDA1E6602C8AE0A64756E2164756E21
271515
+ //# debugId=3EB9D9A1379C9E6764756E2164756E21
271507
271516
  //# sourceMappingURL=index.js.map