@absolutejs/absolute 0.19.0-beta.1121 → 0.19.0-beta.1122

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/cli/index.js CHANGED
@@ -170736,6 +170736,81 @@ var init_islandRegistryTransform = __esm(() => {
170736
170736
  ];
170737
170737
  });
170738
170738
 
170739
+ // src/build/bunStringRawUnicodePlugin.ts
170740
+ import { extname as extname2 } from "path";
170741
+ var import_typescript3, NON_ASCII, getScriptKind = (filePath) => {
170742
+ if (/\.[cm]?tsx$/.test(filePath))
170743
+ return import_typescript3.default.ScriptKind.TSX;
170744
+ if (/\.[cm]?jsx$/.test(filePath))
170745
+ return import_typescript3.default.ScriptKind.JSX;
170746
+ if (/\.[cm]?ts$/.test(filePath))
170747
+ return import_typescript3.default.ScriptKind.TS;
170748
+ return import_typescript3.default.ScriptKind.JS;
170749
+ }, getLoader = (filePath) => {
170750
+ const extension = extname2(filePath);
170751
+ if (extension === ".tsx")
170752
+ return "tsx";
170753
+ if (extension === ".jsx")
170754
+ return "jsx";
170755
+ if (extension === ".ts" || extension === ".mts" || extension === ".cts") {
170756
+ return "ts";
170757
+ }
170758
+ return "js";
170759
+ }, isStringRawTag = (node) => import_typescript3.default.isPropertyAccessExpression(node.tag) && import_typescript3.default.isIdentifier(node.tag.expression) && node.tag.expression.text === "String" && node.tag.name.text === "raw", getRawText = (node) => node.rawText ?? node.text, rewriteBunStringRawUnicode = (source, filePath = "input.ts") => {
170760
+ if (!source.includes("String.raw") || !NON_ASCII.test(source))
170761
+ return source;
170762
+ const sourceFile = import_typescript3.default.createSourceFile(filePath, source, import_typescript3.default.ScriptTarget.Latest, true, getScriptKind(filePath));
170763
+ const replacements = [];
170764
+ const visit = (node) => {
170765
+ if (import_typescript3.default.isTaggedTemplateExpression(node) && isStringRawTag(node)) {
170766
+ const rawSegments = import_typescript3.default.isNoSubstitutionTemplateLiteral(node.template) ? [getRawText(node.template)] : [
170767
+ getRawText(node.template.head),
170768
+ ...node.template.templateSpans.map((span) => getRawText(span.literal))
170769
+ ];
170770
+ if (rawSegments.some((segment) => NON_ASCII.test(segment))) {
170771
+ const expressions = import_typescript3.default.isTemplateExpression(node.template) ? node.template.templateSpans.map((span) => {
170772
+ const expression = source.slice(span.expression.getStart(sourceFile), span.expression.end);
170773
+ return rewriteBunStringRawUnicode(expression, filePath);
170774
+ }) : [];
170775
+ const args = [
170776
+ `{ raw: [${rawSegments.map((text) => JSON.stringify(text)).join(", ")}] }`,
170777
+ ...expressions
170778
+ ];
170779
+ replacements.push({
170780
+ end: node.end,
170781
+ start: node.getStart(sourceFile),
170782
+ value: `String.raw(${args.join(", ")})`
170783
+ });
170784
+ return;
170785
+ }
170786
+ }
170787
+ import_typescript3.default.forEachChild(node, visit);
170788
+ };
170789
+ visit(sourceFile);
170790
+ let result = source;
170791
+ for (const replacement of replacements.sort((a, b) => b.start - a.start)) {
170792
+ result = result.slice(0, replacement.start) + replacement.value + result.slice(replacement.end);
170793
+ }
170794
+ return result;
170795
+ }, createBunStringRawUnicodePlugin = () => ({
170796
+ name: "absolute-bun-string-raw-unicode",
170797
+ setup(build) {
170798
+ build.onLoad({ filter: /\.[cm]?[jt]sx?$/ }, async (args) => {
170799
+ if (args.path.includes("/node_modules/"))
170800
+ return;
170801
+ const source = await Bun.file(args.path).text();
170802
+ const contents = rewriteBunStringRawUnicode(source, args.path);
170803
+ if (contents === source)
170804
+ return;
170805
+ return { contents, loader: getLoader(args.path) };
170806
+ });
170807
+ }
170808
+ });
170809
+ var init_bunStringRawUnicodePlugin = __esm(() => {
170810
+ import_typescript3 = __toESM(require_typescript(), 1);
170811
+ NON_ASCII = /[^\x00-\x7f]/;
170812
+ });
170813
+
170739
170814
  // src/core/prerender.ts
170740
170815
  var exports_prerender = {};
170741
170816
  __export(exports_prerender, {
@@ -172000,7 +172075,7 @@ __export(exports_ls, {
172000
172075
  runLs: () => runLs
172001
172076
  });
172002
172077
  import { existsSync as existsSync13, readFileSync as readFileSync15, statSync } from "fs";
172003
- import { basename as basename5, extname as extname2, join as join13, relative as relative4 } from "path";
172078
+ import { basename as basename5, extname as extname3, join as join13, relative as relative4 } from "path";
172004
172079
  var DEFAULT_BUILD_DIR = "build", LABEL_ORDER, ARTIFACT_SUFFIXES, FRAMEWORK_FIELDS, readStringField = (source, key) => {
172005
172080
  const value = Reflect.get(source, key);
172006
172081
  return typeof value === "string" ? value : undefined;
@@ -172032,7 +172107,7 @@ var DEFAULT_BUILD_DIR = "build", LABEL_ORDER, ARTIFACT_SUFFIXES, FRAMEWORK_FIELD
172032
172107
  if (pageFiles.length === 0)
172033
172108
  return null;
172034
172109
  const pages = pageFiles.map((file) => ({
172035
- name: basename5(file, extname2(file)),
172110
+ name: basename5(file, extname3(file)),
172036
172111
  sizeBytes: null,
172037
172112
  sourcePath: relativeOrSelf(file)
172038
172113
  }));
@@ -173189,7 +173264,7 @@ import {
173189
173264
  writeFileSync as writeFileSync8
173190
173265
  } from "fs";
173191
173266
  import { resolve as resolve12 } from "path";
173192
- var import_typescript3, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DEPTH = 6, isFrameworkRepo = (cwd) => {
173267
+ var import_typescript4, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DEPTH = 6, isFrameworkRepo = (cwd) => {
173193
173268
  try {
173194
173269
  const pkg = JSON.parse(readFileSync17(resolve12(cwd, "package.json"), "utf-8"));
173195
173270
  return pkg?.name === "@absolutejs/absolute";
@@ -173197,14 +173272,14 @@ var import_typescript3, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DE
173197
173272
  return false;
173198
173273
  }
173199
173274
  }, compilerOptionsFor = (cwd) => {
173200
- const tsconfigPath = import_typescript3.default.findConfigFile(cwd, import_typescript3.default.sys.fileExists, "tsconfig.json");
173275
+ const tsconfigPath = import_typescript4.default.findConfigFile(cwd, import_typescript4.default.sys.fileExists, "tsconfig.json");
173201
173276
  const parseConfigHost = {
173202
- ...import_typescript3.default.sys,
173277
+ ...import_typescript4.default.sys,
173203
173278
  onUnRecoverableConfigFileDiagnostic: () => {}
173204
173279
  };
173205
- const base = tsconfigPath && import_typescript3.default.getParsedCommandLineOfConfigFile(tsconfigPath, {}, parseConfigHost)?.options;
173280
+ const base = tsconfigPath && import_typescript4.default.getParsedCommandLineOfConfigFile(tsconfigPath, {}, parseConfigHost)?.options;
173206
173281
  return {
173207
- ...base ?? import_typescript3.default.getDefaultCompilerOptions(),
173282
+ ...base ?? import_typescript4.default.getDefaultCompilerOptions(),
173208
173283
  noEmit: true,
173209
173284
  skipDefaultLibCheck: true,
173210
173285
  skipLibCheck: true,
@@ -173252,7 +173327,7 @@ var import_typescript3, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DE
173252
173327
  });
173253
173328
  writeFileSync8(cacheFile(cwd, typeName, specifier), JSON.stringify({ fields, signature }));
173254
173329
  } catch {}
173255
- }, docOf = (symbol, checker) => import_typescript3.default.displayPartsToString(symbol.getDocumentationComment(checker)).trim(), typeOfSymbol = (symbol, checker) => {
173330
+ }, docOf = (symbol, checker) => import_typescript4.default.displayPartsToString(symbol.getDocumentationComment(checker)).trim(), typeOfSymbol = (symbol, checker) => {
173256
173331
  const declaration = symbol.valueDeclaration ?? symbol.declarations?.[0];
173257
173332
  return declaration ? checker.getTypeOfSymbolAtLocation(symbol, declaration) : checker.getDeclaredTypeOfSymbol(symbol);
173258
173333
  }, hasFlag = (type, flag) => (type.flags & flag) !== 0, unionParts = (type) => type.isUnion() ? type.types : [type], literalChoice = (type) => {
@@ -173268,10 +173343,10 @@ var import_typescript3, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DE
173268
173343
  });
173269
173344
  if (depth > MAX_DEPTH)
173270
173345
  return opaque();
173271
- const parts = unionParts(type).filter((part) => !hasFlag(part, import_typescript3.default.TypeFlags.Undefined) && !hasFlag(part, import_typescript3.default.TypeFlags.Null));
173346
+ const parts = unionParts(type).filter((part) => !hasFlag(part, import_typescript4.default.TypeFlags.Undefined) && !hasFlag(part, import_typescript4.default.TypeFlags.Null));
173272
173347
  if (parts.length === 0)
173273
173348
  return opaque();
173274
- if (parts.every((part) => hasFlag(part, import_typescript3.default.TypeFlags.BooleanLike))) {
173349
+ if (parts.every((part) => hasFlag(part, import_typescript4.default.TypeFlags.BooleanLike))) {
173275
173350
  return { kind: "boolean" };
173276
173351
  }
173277
173352
  const choices = parts.map(literalChoice);
@@ -173291,13 +173366,13 @@ var import_typescript3, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DE
173291
173366
  kind: "opaque",
173292
173367
  typeText: checker.typeToString(type)
173293
173368
  });
173294
- if (hasFlag(type, import_typescript3.default.TypeFlags.BooleanLike))
173369
+ if (hasFlag(type, import_typescript4.default.TypeFlags.BooleanLike))
173295
173370
  return { kind: "boolean" };
173296
- if (hasFlag(type, import_typescript3.default.TypeFlags.NumberLike))
173371
+ if (hasFlag(type, import_typescript4.default.TypeFlags.NumberLike))
173297
173372
  return { kind: "number" };
173298
- if (hasFlag(type, import_typescript3.default.TypeFlags.StringLike))
173373
+ if (hasFlag(type, import_typescript4.default.TypeFlags.StringLike))
173299
173374
  return { kind: "string" };
173300
- if (!hasFlag(type, import_typescript3.default.TypeFlags.Object))
173375
+ if (!hasFlag(type, import_typescript4.default.TypeFlags.Object))
173301
173376
  return opaque();
173302
173377
  if (type.getCallSignatures().length > 0)
173303
173378
  return opaque();
@@ -173318,7 +173393,7 @@ var import_typescript3, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DE
173318
173393
  const fields = props.map((symbol) => ({
173319
173394
  description: docOf(symbol, checker),
173320
173395
  name: symbol.getName(),
173321
- optional: (symbol.flags & import_typescript3.default.SymbolFlags.Optional) !== 0,
173396
+ optional: (symbol.flags & import_typescript4.default.SymbolFlags.Optional) !== 0,
173322
173397
  schema: toSchema(typeOfSymbol(symbol, checker), checker, depth + 1, seen)
173323
173398
  }));
173324
173399
  return { fields, kind: "object" };
@@ -173339,21 +173414,21 @@ var import_typescript3, VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DE
173339
173414
  declare const value: ${typeName};
173340
173415
  export { value };
173341
173416
  `;
173342
- const host = import_typescript3.default.createCompilerHost(options, true);
173417
+ const host = import_typescript4.default.createCompilerHost(options, true);
173343
173418
  const getSourceFile = host.getSourceFile.bind(host);
173344
- host.getSourceFile = (fileName, languageVersion, onError, shouldCreate) => fileName === virtualPath ? import_typescript3.default.createSourceFile(fileName, source, languageVersion, true) : getSourceFile(fileName, languageVersion, onError, shouldCreate);
173419
+ host.getSourceFile = (fileName, languageVersion, onError, shouldCreate) => fileName === virtualPath ? import_typescript4.default.createSourceFile(fileName, source, languageVersion, true) : getSourceFile(fileName, languageVersion, onError, shouldCreate);
173345
173420
  const fileExists = host.fileExists.bind(host);
173346
173421
  host.fileExists = (fileName) => fileName === virtualPath ? true : fileExists(fileName);
173347
173422
  const readFile = host.readFile.bind(host);
173348
173423
  host.readFile = (fileName) => fileName === virtualPath ? source : readFile(fileName);
173349
- const program = import_typescript3.default.createProgram([virtualPath], options, host);
173424
+ const program = import_typescript4.default.createProgram([virtualPath], options, host);
173350
173425
  const checker = program.getTypeChecker();
173351
173426
  const sourceFile = program.getSourceFile(virtualPath);
173352
173427
  if (!sourceFile)
173353
173428
  return [];
173354
173429
  const nodes = [];
173355
173430
  sourceFile.forEachChild((node) => {
173356
- if (!import_typescript3.default.isVariableStatement(node))
173431
+ if (!import_typescript4.default.isVariableStatement(node))
173357
173432
  return;
173358
173433
  const [declaration] = node.declarationList.declarations;
173359
173434
  if (!declaration)
@@ -173366,7 +173441,7 @@ export { value };
173366
173441
  nodes.push({
173367
173442
  description: docOf(symbol, checker),
173368
173443
  name,
173369
- optional: (symbol.flags & import_typescript3.default.SymbolFlags.Optional) !== 0,
173444
+ optional: (symbol.flags & import_typescript4.default.SymbolFlags.Optional) !== 0,
173370
173445
  schema: toSchema(typeOfSymbol(symbol, checker), checker, 1, new Set)
173371
173446
  });
173372
173447
  }
@@ -173400,14 +173475,14 @@ export { value };
173400
173475
  return cache.get(cacheKey) ?? [];
173401
173476
  };
173402
173477
  var init_fromType = __esm(() => {
173403
- import_typescript3 = __toESM(require_typescript(), 1);
173478
+ import_typescript4 = __toESM(require_typescript(), 1);
173404
173479
  cache = new Map;
173405
173480
  });
173406
173481
 
173407
173482
  // src/cli/config/absolute/resolveAbsoluteConfig.ts
173408
173483
  import { existsSync as existsSync16, readFileSync as readFileSync18 } from "fs";
173409
173484
  import { resolve as resolve13 } from "path";
173410
- var import_typescript4, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (cwd, override) => {
173485
+ var import_typescript5, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (cwd, override) => {
173411
173486
  if (override) {
173412
173487
  const resolved = resolve13(cwd, override);
173413
173488
  return existsSync16(resolved) ? resolved : null;
@@ -173418,17 +173493,17 @@ var import_typescript4, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (c
173418
173493
  return candidate;
173419
173494
  }
173420
173495
  return null;
173421
- }, parseSource = (configPath2, text) => import_typescript4.default.createSourceFile(configPath2, text, import_typescript4.default.ScriptTarget.Latest, true), findConfigObject = (sourceFile) => {
173496
+ }, parseSource = (configPath2, text) => import_typescript5.default.createSourceFile(configPath2, text, import_typescript5.default.ScriptTarget.Latest, true), findConfigObject = (sourceFile) => {
173422
173497
  const pending = [sourceFile];
173423
173498
  while (pending.length > 0) {
173424
173499
  const node = pending.pop();
173425
173500
  if (!node)
173426
173501
  continue;
173427
- const [firstArgument] = import_typescript4.default.isCallExpression(node) ? node.arguments : [];
173428
- if (import_typescript4.default.isCallExpression(node) && import_typescript4.default.isIdentifier(node.expression) && node.expression.text === "defineConfig" && firstArgument && import_typescript4.default.isObjectLiteralExpression(firstArgument)) {
173502
+ const [firstArgument] = import_typescript5.default.isCallExpression(node) ? node.arguments : [];
173503
+ if (import_typescript5.default.isCallExpression(node) && import_typescript5.default.isIdentifier(node.expression) && node.expression.text === "defineConfig" && firstArgument && import_typescript5.default.isObjectLiteralExpression(firstArgument)) {
173429
173504
  return firstArgument;
173430
173505
  }
173431
- if (import_typescript4.default.isExportAssignment(node) && import_typescript4.default.isObjectLiteralExpression(node.expression)) {
173506
+ if (import_typescript5.default.isExportAssignment(node) && import_typescript5.default.isObjectLiteralExpression(node.expression)) {
173432
173507
  return node.expression;
173433
173508
  }
173434
173509
  node.forEachChild((child) => pending.push(child));
@@ -173438,25 +173513,25 @@ var import_typescript4, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (c
173438
173513
  const text = readFileSync18(configPath2, "utf-8");
173439
173514
  return { object: findConfigObject(parseSource(configPath2, text)), text };
173440
173515
  }, evalLiteral = (node) => {
173441
- if (import_typescript4.default.isStringLiteralLike(node)) {
173516
+ if (import_typescript5.default.isStringLiteralLike(node)) {
173442
173517
  return { opaque: false, value: node.text };
173443
173518
  }
173444
- if (node.kind === import_typescript4.default.SyntaxKind.TrueKeyword) {
173519
+ if (node.kind === import_typescript5.default.SyntaxKind.TrueKeyword) {
173445
173520
  return { opaque: false, value: true };
173446
173521
  }
173447
- if (node.kind === import_typescript4.default.SyntaxKind.FalseKeyword) {
173522
+ if (node.kind === import_typescript5.default.SyntaxKind.FalseKeyword) {
173448
173523
  return { opaque: false, value: false };
173449
173524
  }
173450
- if (node.kind === import_typescript4.default.SyntaxKind.NullKeyword) {
173525
+ if (node.kind === import_typescript5.default.SyntaxKind.NullKeyword) {
173451
173526
  return { opaque: false, value: null };
173452
173527
  }
173453
- if (import_typescript4.default.isNumericLiteral(node)) {
173528
+ if (import_typescript5.default.isNumericLiteral(node)) {
173454
173529
  return { opaque: false, value: Number(node.text) };
173455
173530
  }
173456
- if (import_typescript4.default.isPrefixUnaryExpression(node) && node.operator === import_typescript4.default.SyntaxKind.MinusToken && import_typescript4.default.isNumericLiteral(node.operand)) {
173531
+ if (import_typescript5.default.isPrefixUnaryExpression(node) && node.operator === import_typescript5.default.SyntaxKind.MinusToken && import_typescript5.default.isNumericLiteral(node.operand)) {
173457
173532
  return { opaque: false, value: -Number(node.operand.text) };
173458
173533
  }
173459
- if (import_typescript4.default.isArrayLiteralExpression(node)) {
173534
+ if (import_typescript5.default.isArrayLiteralExpression(node)) {
173460
173535
  const items = [];
173461
173536
  for (const element of node.elements) {
173462
173537
  const result = evalLiteral(element);
@@ -173466,10 +173541,10 @@ var import_typescript4, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (c
173466
173541
  }
173467
173542
  return { opaque: false, value: items };
173468
173543
  }
173469
- if (import_typescript4.default.isObjectLiteralExpression(node)) {
173544
+ if (import_typescript5.default.isObjectLiteralExpression(node)) {
173470
173545
  const object = {};
173471
173546
  for (const property of node.properties) {
173472
- if (!import_typescript4.default.isPropertyAssignment(property) || !(import_typescript4.default.isIdentifier(property.name) || import_typescript4.default.isStringLiteral(property.name))) {
173547
+ if (!import_typescript5.default.isPropertyAssignment(property) || !(import_typescript5.default.isIdentifier(property.name) || import_typescript5.default.isStringLiteral(property.name))) {
173473
173548
  return { opaque: true, value: undefined };
173474
173549
  }
173475
173550
  const result = evalLiteral(property.initializer);
@@ -173487,7 +173562,7 @@ var import_typescript4, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (c
173487
173562
  if (!object)
173488
173563
  return { current, opaqueKeys };
173489
173564
  for (const property of object.properties) {
173490
- if (!import_typescript4.default.isPropertyAssignment(property) || !(import_typescript4.default.isIdentifier(property.name) || import_typescript4.default.isStringLiteral(property.name))) {
173565
+ if (!import_typescript5.default.isPropertyAssignment(property) || !(import_typescript5.default.isIdentifier(property.name) || import_typescript5.default.isStringLiteral(property.name))) {
173491
173566
  continue;
173492
173567
  }
173493
173568
  const name = property.name.text;
@@ -173505,7 +173580,7 @@ var import_typescript4, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (c
173505
173580
  };
173506
173581
  var init_resolveAbsoluteConfig = __esm(() => {
173507
173582
  init_fromType();
173508
- import_typescript4 = __toESM(require_typescript(), 1);
173583
+ import_typescript5 = __toESM(require_typescript(), 1);
173509
173584
  CONFIG_CANDIDATES2 = [
173510
173585
  "absolute.config.ts",
173511
173586
  "absolute.config.js",
@@ -173740,7 +173815,7 @@ var emptyOutcome = () => ({
173740
173815
  // src/cli/generate/routeWiring.ts
173741
173816
  import { existsSync as existsSync17, readFileSync as readFileSync19, readdirSync as readdirSync4, writeFileSync as writeFileSync9 } from "fs";
173742
173817
  import { dirname as dirname7, join as join15 } from "path";
173743
- var import_typescript5, DEFAULT_SEPARATOR = `
173818
+ var import_typescript6, DEFAULT_SEPARATOR = `
173744
173819
  `, BOUNDARY_USE, applyEdits = (text, edits) => {
173745
173820
  const ordered = [...edits].sort((first, second) => second.start - first.start);
173746
173821
  let output = text;
@@ -173748,41 +173823,41 @@ var import_typescript5, DEFAULT_SEPARATOR = `
173748
173823
  output = output.slice(0, edit.start) + edit.text + output.slice(edit.end);
173749
173824
  }
173750
173825
  return output;
173751
- }, stripExtension = (path) => path.replace(/\.[^./\\]+$/, ""), parse2 = (path, text) => import_typescript5.default.createSourceFile(path, text, import_typescript5.default.ScriptTarget.Latest, true), findElysiaNew = (sourceFile) => {
173826
+ }, stripExtension = (path) => path.replace(/\.[^./\\]+$/, ""), parse2 = (path, text) => import_typescript6.default.createSourceFile(path, text, import_typescript6.default.ScriptTarget.Latest, true), findElysiaNew = (sourceFile) => {
173752
173827
  let found = null;
173753
173828
  const visit = (node) => {
173754
173829
  if (found)
173755
173830
  return;
173756
- if (import_typescript5.default.isNewExpression(node) && import_typescript5.default.isIdentifier(node.expression) && node.expression.text === "Elysia") {
173831
+ if (import_typescript6.default.isNewExpression(node) && import_typescript6.default.isIdentifier(node.expression) && node.expression.text === "Elysia") {
173757
173832
  found = node;
173758
173833
  return;
173759
173834
  }
173760
- import_typescript5.default.forEachChild(node, visit);
173835
+ import_typescript6.default.forEachChild(node, visit);
173761
173836
  };
173762
173837
  visit(sourceFile);
173763
173838
  return found;
173764
173839
  }, climbChain = (start2) => {
173765
173840
  let top = start2;
173766
- while (import_typescript5.default.isPropertyAccessExpression(top.parent) && top.parent.expression === top && import_typescript5.default.isCallExpression(top.parent.parent) && top.parent.parent.expression === top.parent) {
173841
+ while (import_typescript6.default.isPropertyAccessExpression(top.parent) && top.parent.expression === top && import_typescript6.default.isCallExpression(top.parent.parent) && top.parent.parent.expression === top.parent) {
173767
173842
  top = top.parent.parent;
173768
173843
  }
173769
173844
  return top;
173770
173845
  }, collectCalls = (top) => {
173771
173846
  const calls = [];
173772
173847
  let node = top;
173773
- while (import_typescript5.default.isCallExpression(node) && import_typescript5.default.isPropertyAccessExpression(node.expression)) {
173848
+ while (import_typescript6.default.isCallExpression(node) && import_typescript6.default.isPropertyAccessExpression(node.expression)) {
173774
173849
  calls.push(node);
173775
173850
  node = node.expression.expression;
173776
173851
  }
173777
173852
  return calls.reverse();
173778
- }, methodName = (call) => import_typescript5.default.isPropertyAccessExpression(call.expression) ? call.expression.name.text : null, isBoundary = (call) => {
173853
+ }, methodName = (call) => import_typescript6.default.isPropertyAccessExpression(call.expression) ? call.expression.name.text : null, isBoundary = (call) => {
173779
173854
  const name = methodName(call);
173780
173855
  const [arg] = call.arguments;
173781
- if (name === "use" && arg && import_typescript5.default.isIdentifier(arg)) {
173856
+ if (name === "use" && arg && import_typescript6.default.isIdentifier(arg)) {
173782
173857
  return BOUNDARY_USE.has(arg.text);
173783
173858
  }
173784
- return name === "on" && arg !== undefined && import_typescript5.default.isStringLiteralLike(arg);
173785
- }, receiverEnd = (call) => import_typescript5.default.isPropertyAccessExpression(call.expression) ? call.expression.expression.getEnd() : call.getEnd(), separatorBefore = (text, offset) => {
173859
+ return name === "on" && arg !== undefined && import_typescript6.default.isStringLiteralLike(arg);
173860
+ }, receiverEnd = (call) => import_typescript6.default.isPropertyAccessExpression(call.expression) ? call.expression.expression.getEnd() : call.getEnd(), separatorBefore = (text, offset) => {
173786
173861
  const match = text.slice(offset).match(/^(\s*\n[ \t]*)\./);
173787
173862
  return match ? match[1] : DEFAULT_SEPARATOR;
173788
173863
  }, findRouteInsertion = (text, top) => {
@@ -173796,19 +173871,19 @@ var import_typescript5, DEFAULT_SEPARATOR = `
173796
173871
  const offset = last ? last.getEnd() : top.getEnd();
173797
173872
  const sepProbe = last ? receiverEnd(last) : top.getEnd();
173798
173873
  return { offset, separator: separatorBefore(text, sepProbe) };
173799
- }, namedImportDecl = (sourceFile, module) => sourceFile.statements.find((statement) => import_typescript5.default.isImportDeclaration(statement) && import_typescript5.default.isStringLiteral(statement.moduleSpecifier) && statement.moduleSpecifier.text === module && statement.importClause !== undefined && !statement.importClause.isTypeOnly && statement.importClause.namedBindings !== undefined && import_typescript5.default.isNamedImports(statement.importClause.namedBindings)), importedNames = (decl) => {
173874
+ }, namedImportDecl = (sourceFile, module) => sourceFile.statements.find((statement) => import_typescript6.default.isImportDeclaration(statement) && import_typescript6.default.isStringLiteral(statement.moduleSpecifier) && statement.moduleSpecifier.text === module && statement.importClause !== undefined && !statement.importClause.isTypeOnly && statement.importClause.namedBindings !== undefined && import_typescript6.default.isNamedImports(statement.importClause.namedBindings)), importedNames = (decl) => {
173800
173875
  const bindings = decl.importClause?.namedBindings;
173801
- if (!bindings || !import_typescript5.default.isNamedImports(bindings))
173876
+ if (!bindings || !import_typescript6.default.isNamedImports(bindings))
173802
173877
  return new Set;
173803
173878
  return new Set(bindings.elements.map((element) => (element.propertyName ?? element.name).text));
173804
173879
  }, lastImportEnd = (sourceFile) => {
173805
173880
  let end = 0;
173806
173881
  for (const statement of sourceFile.statements) {
173807
- if (import_typescript5.default.isImportDeclaration(statement))
173882
+ if (import_typescript6.default.isImportDeclaration(statement))
173808
173883
  end = statement.getEnd();
173809
173884
  }
173810
173885
  return end;
173811
- }, hasTypeImport = (sourceFile, module, local) => sourceFile.statements.some((statement) => import_typescript5.default.isImportDeclaration(statement) && import_typescript5.default.isStringLiteral(statement.moduleSpecifier) && statement.moduleSpecifier.text === module && statement.getText().includes(local)), renderTypeImport = (spec) => {
173886
+ }, hasTypeImport = (sourceFile, module, local) => sourceFile.statements.some((statement) => import_typescript6.default.isImportDeclaration(statement) && import_typescript6.default.isStringLiteral(statement.moduleSpecifier) && statement.moduleSpecifier.text === module && statement.getText().includes(local)), renderTypeImport = (spec) => {
173812
173887
  if (spec.kind === "typeDefault") {
173813
173888
  return `import type ${spec.local} from '${spec.module}';`;
173814
173889
  }
@@ -173828,7 +173903,7 @@ var import_typescript5, DEFAULT_SEPARATOR = `
173828
173903
  return byModule;
173829
173904
  }, mergeNamedEdit = (decl, sourceFile, missing) => {
173830
173905
  const bindings = decl.importClause?.namedBindings;
173831
- if (!bindings || !import_typescript5.default.isNamedImports(bindings))
173906
+ if (!bindings || !import_typescript6.default.isNamedImports(bindings))
173832
173907
  return null;
173833
173908
  const { elements } = bindings;
173834
173909
  const additions = missing.join(", ");
@@ -173992,7 +174067,7 @@ ${routeExpr}`
173992
174067
  };
173993
174068
  var init_routeWiring = __esm(() => {
173994
174069
  init_context();
173995
- import_typescript5 = __toESM(require_typescript(), 1);
174070
+ import_typescript6 = __toESM(require_typescript(), 1);
173996
174071
  BOUNDARY_USE = new Set(["absolutejs", "networking"]);
173997
174072
  });
173998
174073
 
@@ -174119,33 +174194,33 @@ var init_generateComponent = __esm(() => {
174119
174194
  // src/cli/generate/cssStrategy.ts
174120
174195
  import { existsSync as existsSync20 } from "fs";
174121
174196
  import { join as join18 } from "path";
174122
- var import_typescript6, CSS_SUFFIX = "CSS", SHARED_MIN_USES = 2, DEFAULT_CSS = `main {
174197
+ var import_typescript7, CSS_SUFFIX = "CSS", SHARED_MIN_USES = 2, DEFAULT_CSS = `main {
174123
174198
  margin: 0 auto;
174124
174199
  max-width: 64rem;
174125
174200
  padding: 2rem;
174126
174201
  }
174127
174202
  `, cssAssetArg = (node) => {
174128
- if (!import_typescript6.default.isCallExpression(node) || !import_typescript6.default.isIdentifier(node.expression) || node.expression.text !== "asset") {
174203
+ if (!import_typescript7.default.isCallExpression(node) || !import_typescript7.default.isIdentifier(node.expression) || node.expression.text !== "asset") {
174129
174204
  return null;
174130
174205
  }
174131
174206
  const [, arg] = node.arguments;
174132
- if (arg && import_typescript6.default.isStringLiteralLike(arg) && arg.text.endsWith(CSS_SUFFIX)) {
174207
+ if (arg && import_typescript7.default.isStringLiteralLike(arg) && arg.text.endsWith(CSS_SUFFIX)) {
174133
174208
  return arg.text;
174134
174209
  }
174135
174210
  return null;
174136
174211
  }, detectSharedKey = (routingText) => {
174137
- const sourceFile = import_typescript6.default.createSourceFile("routing.ts", routingText, import_typescript6.default.ScriptTarget.Latest, true);
174212
+ const sourceFile = import_typescript7.default.createSourceFile("routing.ts", routingText, import_typescript7.default.ScriptTarget.Latest, true);
174138
174213
  let hoisted = null;
174139
174214
  const inlineCounts = new Map;
174140
174215
  const visit = (node) => {
174141
174216
  const key = cssAssetArg(node);
174142
174217
  if (key) {
174143
- if (import_typescript6.default.isVariableDeclaration(node.parent))
174218
+ if (import_typescript7.default.isVariableDeclaration(node.parent))
174144
174219
  hoisted ??= key;
174145
174220
  else
174146
174221
  inlineCounts.set(key, (inlineCounts.get(key) ?? 0) + 1);
174147
174222
  }
174148
- import_typescript6.default.forEachChild(node, visit);
174223
+ import_typescript7.default.forEachChild(node, visit);
174149
174224
  };
174150
174225
  visit(sourceFile);
174151
174226
  if (hoisted)
@@ -174180,13 +174255,13 @@ var import_typescript6, CSS_SUFFIX = "CSS", SHARED_MIN_USES = 2, DEFAULT_CSS = `
174180
174255
  };
174181
174256
  };
174182
174257
  var init_cssStrategy = __esm(() => {
174183
- import_typescript6 = __toESM(require_typescript(), 1);
174258
+ import_typescript7 = __toESM(require_typescript(), 1);
174184
174259
  });
174185
174260
 
174186
174261
  // src/cli/generate/navData.ts
174187
174262
  import { existsSync as existsSync21, mkdirSync as mkdirSync12, readFileSync as readFileSync20, writeFileSync as writeFileSync12 } from "fs";
174188
174263
  import { dirname as dirname10 } from "path";
174189
- var import_typescript7, NAV_DATA_TEMPLATE = `type NavItem = {
174264
+ var import_typescript8, NAV_DATA_TEMPLATE = `type NavItem = {
174190
174265
  href: string;
174191
174266
  label: string;
174192
174267
  };
@@ -174197,24 +174272,24 @@ export const navData: NavItem[] = [];
174197
174272
  const visit = (node) => {
174198
174273
  if (found)
174199
174274
  return;
174200
- if (import_typescript7.default.isVariableDeclaration(node) && import_typescript7.default.isIdentifier(node.name) && node.name.text === "navData" && node.initializer && import_typescript7.default.isArrayLiteralExpression(node.initializer)) {
174275
+ if (import_typescript8.default.isVariableDeclaration(node) && import_typescript8.default.isIdentifier(node.name) && node.name.text === "navData" && node.initializer && import_typescript8.default.isArrayLiteralExpression(node.initializer)) {
174201
174276
  found = node.initializer;
174202
174277
  return;
174203
174278
  }
174204
- import_typescript7.default.forEachChild(node, visit);
174279
+ import_typescript8.default.forEachChild(node, visit);
174205
174280
  };
174206
174281
  visit(sourceFile);
174207
174282
  return found;
174208
174283
  }, readStringProperty = (object, name) => {
174209
- const property = object.properties.find((candidate) => import_typescript7.default.isPropertyAssignment(candidate) && import_typescript7.default.isIdentifier(candidate.name) && candidate.name.text === name);
174210
- if (!property || !import_typescript7.default.isStringLiteralLike(property.initializer)) {
174284
+ const property = object.properties.find((candidate) => import_typescript8.default.isPropertyAssignment(candidate) && import_typescript8.default.isIdentifier(candidate.name) && candidate.name.text === name);
174285
+ if (!property || !import_typescript8.default.isStringLiteralLike(property.initializer)) {
174211
174286
  return null;
174212
174287
  }
174213
174288
  return property.initializer.text;
174214
174289
  }, parseNavItems = (array) => {
174215
174290
  const items = [];
174216
174291
  for (const element of array.elements) {
174217
- if (!import_typescript7.default.isObjectLiteralExpression(element))
174292
+ if (!import_typescript8.default.isObjectLiteralExpression(element))
174218
174293
  continue;
174219
174294
  const href = readStringProperty(element, "href");
174220
174295
  const label = readStringProperty(element, "label");
@@ -174226,7 +174301,7 @@ export const navData: NavItem[] = [];
174226
174301
  if (!existsSync21(navDataPath))
174227
174302
  return [];
174228
174303
  const text = readFileSync20(navDataPath, "utf-8");
174229
- const sourceFile = import_typescript7.default.createSourceFile(navDataPath, text, import_typescript7.default.ScriptTarget.Latest, true);
174304
+ const sourceFile = import_typescript8.default.createSourceFile(navDataPath, text, import_typescript8.default.ScriptTarget.Latest, true);
174230
174305
  const array = findNavArray(sourceFile);
174231
174306
  return array ? parseNavItems(array) : [];
174232
174307
  }, indentOf = (text, position) => {
@@ -174270,7 +174345,7 @@ ${indent}${entry}`;
174270
174345
  return { changed: created, created, items: existing };
174271
174346
  }
174272
174347
  const text = readFileSync20(navDataPath, "utf-8");
174273
- const sourceFile = import_typescript7.default.createSourceFile(navDataPath, text, import_typescript7.default.ScriptTarget.Latest, true);
174348
+ const sourceFile = import_typescript8.default.createSourceFile(navDataPath, text, import_typescript8.default.ScriptTarget.Latest, true);
174274
174349
  const array = findNavArray(sourceFile);
174275
174350
  if (!array)
174276
174351
  return { changed: created, created, items: existing };
@@ -174279,7 +174354,7 @@ ${indent}${entry}`;
174279
174354
  return { changed: true, created, items: [...existing, item] };
174280
174355
  };
174281
174356
  var init_navData = __esm(() => {
174282
- import_typescript7 = __toESM(require_typescript(), 1);
174357
+ import_typescript8 = __toESM(require_typescript(), 1);
174283
174358
  });
174284
174359
 
174285
174360
  // src/cli/generate/staticNav.ts
@@ -174664,16 +174739,16 @@ var init_serialize = () => {};
174664
174739
 
174665
174740
  // src/cli/config/absolute/editAbsoluteConfig.ts
174666
174741
  import { readFileSync as readFileSync22, writeFileSync as writeFileSync14 } from "fs";
174667
- var import_typescript8, lineStartOffset = (text, position) => {
174742
+ var import_typescript9, lineStartOffset = (text, position) => {
174668
174743
  let index = position;
174669
174744
  while (index > 0 && text[index - 1] !== `
174670
174745
  `)
174671
174746
  index -= 1;
174672
174747
  return index;
174673
- }, indentBefore2 = (text, position) => text.slice(lineStartOffset(text, position), position), findProperty = (object, name) => object.properties.find((property) => import_typescript8.default.isPropertyAssignment(property) && (import_typescript8.default.isIdentifier(property.name) || import_typescript8.default.isStringLiteral(property.name)) && property.name.text === name), applyAbsoluteConfigEdit = (configPath2, request) => {
174748
+ }, indentBefore2 = (text, position) => text.slice(lineStartOffset(text, position), position), findProperty = (object, name) => object.properties.find((property) => import_typescript9.default.isPropertyAssignment(property) && (import_typescript9.default.isIdentifier(property.name) || import_typescript9.default.isStringLiteral(property.name)) && property.name.text === name), applyAbsoluteConfigEdit = (configPath2, request) => {
174674
174749
  try {
174675
174750
  const text = readFileSync22(configPath2, "utf-8");
174676
- const sourceFile = import_typescript8.default.createSourceFile(configPath2, text, import_typescript8.default.ScriptTarget.Latest, true);
174751
+ const sourceFile = import_typescript9.default.createSourceFile(configPath2, text, import_typescript9.default.ScriptTarget.Latest, true);
174677
174752
  const object = findConfigObject(sourceFile);
174678
174753
  if (!object) {
174679
174754
  return {
@@ -174736,7 +174811,7 @@ ${indentBefore2(text, object.getStart(sourceFile))}`;
174736
174811
  var init_editAbsoluteConfig = __esm(() => {
174737
174812
  init_resolveAbsoluteConfig();
174738
174813
  init_serialize();
174739
- import_typescript8 = __toESM(require_typescript(), 1);
174814
+ import_typescript9 = __toESM(require_typescript(), 1);
174740
174815
  });
174741
174816
 
174742
174817
  // src/cli/add/dependencies.ts
@@ -175356,7 +175431,7 @@ var init_authCatalog = __esm(() => {
175356
175431
  // src/cli/config/auth/resolveAuthSettings.ts
175357
175432
  import { existsSync as existsSync24, readFileSync as readFileSync24 } from "fs";
175358
175433
  import { resolve as resolve15 } from "path";
175359
- var import_typescript9, AUTH_PACKAGE = "@absolutejs/auth", CONFIG_CANDIDATES3, findAuthSettingsPath = (cwd, override) => {
175434
+ var import_typescript10, AUTH_PACKAGE = "@absolutejs/auth", CONFIG_CANDIDATES3, findAuthSettingsPath = (cwd, override) => {
175360
175435
  if (override) {
175361
175436
  const resolved = resolve15(cwd, override);
175362
175437
  return existsSync24(resolved) ? resolved : null;
@@ -175367,17 +175442,17 @@ var import_typescript9, AUTH_PACKAGE = "@absolutejs/auth", CONFIG_CANDIDATES3, f
175367
175442
  return candidate;
175368
175443
  }
175369
175444
  return null;
175370
- }, parseSource2 = (configPath2, text) => import_typescript9.default.createSourceFile(configPath2, text, import_typescript9.default.ScriptTarget.Latest, true), findAuthSettingsObject = (sourceFile) => {
175445
+ }, parseSource2 = (configPath2, text) => import_typescript10.default.createSourceFile(configPath2, text, import_typescript10.default.ScriptTarget.Latest, true), findAuthSettingsObject = (sourceFile) => {
175371
175446
  const pending = [sourceFile];
175372
175447
  while (pending.length > 0) {
175373
175448
  const node = pending.pop();
175374
175449
  if (!node)
175375
175450
  continue;
175376
- const [firstArgument] = import_typescript9.default.isCallExpression(node) ? node.arguments : [];
175377
- if (import_typescript9.default.isCallExpression(node) && import_typescript9.default.isIdentifier(node.expression) && node.expression.text === "defineAuthSettings" && firstArgument && import_typescript9.default.isObjectLiteralExpression(firstArgument)) {
175451
+ const [firstArgument] = import_typescript10.default.isCallExpression(node) ? node.arguments : [];
175452
+ if (import_typescript10.default.isCallExpression(node) && import_typescript10.default.isIdentifier(node.expression) && node.expression.text === "defineAuthSettings" && firstArgument && import_typescript10.default.isObjectLiteralExpression(firstArgument)) {
175378
175453
  return firstArgument;
175379
175454
  }
175380
- if (import_typescript9.default.isExportAssignment(node) && import_typescript9.default.isObjectLiteralExpression(node.expression)) {
175455
+ if (import_typescript10.default.isExportAssignment(node) && import_typescript10.default.isObjectLiteralExpression(node.expression)) {
175381
175456
  return node.expression;
175382
175457
  }
175383
175458
  node.forEachChild((child) => pending.push(child));
@@ -175390,24 +175465,24 @@ var import_typescript9, AUTH_PACKAGE = "@absolutejs/auth", CONFIG_CANDIDATES3, f
175390
175465
  text
175391
175466
  };
175392
175467
  }, evalLiteral2 = (node) => {
175393
- if (import_typescript9.default.isStringLiteralLike(node))
175468
+ if (import_typescript10.default.isStringLiteralLike(node))
175394
175469
  return { opaque: false, value: node.text };
175395
- if (node.kind === import_typescript9.default.SyntaxKind.TrueKeyword) {
175470
+ if (node.kind === import_typescript10.default.SyntaxKind.TrueKeyword) {
175396
175471
  return { opaque: false, value: true };
175397
175472
  }
175398
- if (node.kind === import_typescript9.default.SyntaxKind.FalseKeyword) {
175473
+ if (node.kind === import_typescript10.default.SyntaxKind.FalseKeyword) {
175399
175474
  return { opaque: false, value: false };
175400
175475
  }
175401
- if (node.kind === import_typescript9.default.SyntaxKind.NullKeyword) {
175476
+ if (node.kind === import_typescript10.default.SyntaxKind.NullKeyword) {
175402
175477
  return { opaque: false, value: null };
175403
175478
  }
175404
- if (import_typescript9.default.isNumericLiteral(node)) {
175479
+ if (import_typescript10.default.isNumericLiteral(node)) {
175405
175480
  return { opaque: false, value: Number(node.text) };
175406
175481
  }
175407
- if (import_typescript9.default.isPrefixUnaryExpression(node) && node.operator === import_typescript9.default.SyntaxKind.MinusToken && import_typescript9.default.isNumericLiteral(node.operand)) {
175482
+ if (import_typescript10.default.isPrefixUnaryExpression(node) && node.operator === import_typescript10.default.SyntaxKind.MinusToken && import_typescript10.default.isNumericLiteral(node.operand)) {
175408
175483
  return { opaque: false, value: -Number(node.operand.text) };
175409
175484
  }
175410
- if (import_typescript9.default.isArrayLiteralExpression(node)) {
175485
+ if (import_typescript10.default.isArrayLiteralExpression(node)) {
175411
175486
  const items = [];
175412
175487
  for (const element of node.elements) {
175413
175488
  const result = evalLiteral2(element);
@@ -175425,7 +175500,7 @@ var import_typescript9, AUTH_PACKAGE = "@absolutejs/auth", CONFIG_CANDIDATES3, f
175425
175500
  if (!object)
175426
175501
  return { current, opaqueKeys };
175427
175502
  for (const property of object.properties) {
175428
- if (!import_typescript9.default.isPropertyAssignment(property) || !(import_typescript9.default.isIdentifier(property.name) || import_typescript9.default.isStringLiteral(property.name))) {
175503
+ if (!import_typescript10.default.isPropertyAssignment(property) || !(import_typescript10.default.isIdentifier(property.name) || import_typescript10.default.isStringLiteral(property.name))) {
175429
175504
  continue;
175430
175505
  }
175431
175506
  const name = property.name.text;
@@ -175450,7 +175525,7 @@ var import_typescript9, AUTH_PACKAGE = "@absolutejs/auth", CONFIG_CANDIDATES3, f
175450
175525
  };
175451
175526
  var init_resolveAuthSettings = __esm(() => {
175452
175527
  init_fromType();
175453
- import_typescript9 = __toESM(require_typescript(), 1);
175528
+ import_typescript10 = __toESM(require_typescript(), 1);
175454
175529
  CONFIG_CANDIDATES3 = [
175455
175530
  "auth.config.ts",
175456
175531
  "auth.config.js",
@@ -175461,7 +175536,7 @@ var init_resolveAuthSettings = __esm(() => {
175461
175536
  // src/cli/config/auth/resolveAuthState.ts
175462
175537
  import { existsSync as existsSync25, readdirSync as readdirSync6, readFileSync as readFileSync25 } from "fs";
175463
175538
  import { join as join21, relative as relative8, resolve as resolve16 } from "path";
175464
- var import_typescript10, AUTH_PACKAGE2 = "@absolutejs/auth", REPO_URL = "https://github.com/absolutejs/absolute-auth", NPM_URL = "https://www.npmjs.com/package/@absolutejs/auth", SKIP_DIRS, MAX_FILES = 4000, SETUP_EXPORTS, isRecord7 = (value) => typeof value === "object" && value !== null && !Array.isArray(value), readJson = (path) => {
175539
+ var import_typescript11, AUTH_PACKAGE2 = "@absolutejs/auth", REPO_URL = "https://github.com/absolutejs/absolute-auth", NPM_URL = "https://www.npmjs.com/package/@absolutejs/auth", SKIP_DIRS, MAX_FILES = 4000, SETUP_EXPORTS, isRecord7 = (value) => typeof value === "object" && value !== null && !Array.isArray(value), readJson = (path) => {
175465
175540
  if (!existsSync25(path))
175466
175541
  return null;
175467
175542
  try {
@@ -175515,9 +175590,9 @@ var import_typescript10, AUTH_PACKAGE2 = "@absolutejs/auth", REPO_URL = "https:/
175515
175590
  collectFrom(dir, found, stack);
175516
175591
  }
175517
175592
  return found;
175518
- }, isAuthPackageImport = (statement) => import_typescript10.default.isImportDeclaration(statement) && import_typescript10.default.isStringLiteral(statement.moduleSpecifier) && statement.moduleSpecifier.text === AUTH_PACKAGE2, addAuthNames = (statement, names) => {
175593
+ }, isAuthPackageImport = (statement) => import_typescript11.default.isImportDeclaration(statement) && import_typescript11.default.isStringLiteral(statement.moduleSpecifier) && statement.moduleSpecifier.text === AUTH_PACKAGE2, addAuthNames = (statement, names) => {
175519
175594
  const bindings = statement.importClause?.namedBindings;
175520
- if (!bindings || !import_typescript10.default.isNamedImports(bindings))
175595
+ if (!bindings || !import_typescript11.default.isNamedImports(bindings))
175521
175596
  return;
175522
175597
  for (const element of bindings.elements) {
175523
175598
  const imported = element.propertyName?.text ?? element.name.text;
@@ -175532,18 +175607,18 @@ var import_typescript10, AUTH_PACKAGE2 = "@absolutejs/auth", REPO_URL = "https:/
175532
175607
  addAuthNames(statement, names);
175533
175608
  }
175534
175609
  return names;
175535
- }, isAuthCall = (node, bindings) => import_typescript10.default.isIdentifier(node.expression) && bindings.has(node.expression.text), providerCountOf = (property) => {
175536
- if (!import_typescript10.default.isPropertyAssignment(property) || !import_typescript10.default.isObjectLiteralExpression(property.initializer)) {
175610
+ }, isAuthCall = (node, bindings) => import_typescript11.default.isIdentifier(node.expression) && bindings.has(node.expression.text), providerCountOf = (property) => {
175611
+ if (!import_typescript11.default.isPropertyAssignment(property) || !import_typescript11.default.isObjectLiteralExpression(property.initializer)) {
175537
175612
  return null;
175538
175613
  }
175539
175614
  return property.initializer.properties.length;
175540
175615
  }, readConfigKeys = (object) => {
175541
175616
  const keys = new Set;
175542
175617
  let providerCount = null;
175543
- const usesSpread = object.properties.some((property) => import_typescript10.default.isSpreadAssignment(property));
175618
+ const usesSpread = object.properties.some((property) => import_typescript11.default.isSpreadAssignment(property));
175544
175619
  for (const property of object.properties) {
175545
175620
  const { name } = property;
175546
- if (name === undefined || !import_typescript10.default.isIdentifier(name))
175621
+ if (name === undefined || !import_typescript11.default.isIdentifier(name))
175547
175622
  continue;
175548
175623
  keys.add(name.text);
175549
175624
  if (name.text !== "providersConfiguration")
@@ -175553,7 +175628,7 @@ var import_typescript10, AUTH_PACKAGE2 = "@absolutejs/auth", REPO_URL = "https:/
175553
175628
  return { keys, providerCount, usesSpread };
175554
175629
  }, matchFromCall = (node) => {
175555
175630
  const [arg] = node.arguments;
175556
- if (arg && import_typescript10.default.isObjectLiteralExpression(arg))
175631
+ if (arg && import_typescript11.default.isObjectLiteralExpression(arg))
175557
175632
  return readConfigKeys(arg);
175558
175633
  return { keys: new Set, providerCount: null, usesSpread: true };
175559
175634
  }, readFileOrNull = (path) => {
@@ -175566,7 +175641,7 @@ var import_typescript10, AUTH_PACKAGE2 = "@absolutejs/auth", REPO_URL = "https:/
175566
175641
  const text = readFileOrNull(path);
175567
175642
  if (text === null || !text.includes(AUTH_PACKAGE2))
175568
175643
  return null;
175569
- const sourceFile = import_typescript10.default.createSourceFile(path, text, import_typescript10.default.ScriptTarget.Latest, true);
175644
+ const sourceFile = import_typescript11.default.createSourceFile(path, text, import_typescript11.default.ScriptTarget.Latest, true);
175570
175645
  const bindings = authBindings(sourceFile);
175571
175646
  if (bindings.size === 0)
175572
175647
  return null;
@@ -175575,7 +175650,7 @@ var import_typescript10, AUTH_PACKAGE2 = "@absolutejs/auth", REPO_URL = "https:/
175575
175650
  const node = pending.pop();
175576
175651
  if (!node)
175577
175652
  continue;
175578
- if (import_typescript10.default.isCallExpression(node) && isAuthCall(node, bindings)) {
175653
+ if (import_typescript11.default.isCallExpression(node) && isAuthCall(node, bindings)) {
175579
175654
  return matchFromCall(node);
175580
175655
  }
175581
175656
  node.forEachChild((child) => pending.push(child));
@@ -175622,7 +175697,7 @@ var init_resolveAuthState = __esm(() => {
175622
175697
  init_authCatalog();
175623
175698
  init_authScaffolds();
175624
175699
  init_resolveAuthSettings();
175625
- import_typescript10 = __toESM(require_typescript(), 1);
175700
+ import_typescript11 = __toESM(require_typescript(), 1);
175626
175701
  SKIP_DIRS = new Set([
175627
175702
  "node_modules",
175628
175703
  ".git",
@@ -178799,7 +178874,8 @@ console.log(\`
178799
178874
  stubVue: !buildConfig.vueDirectory
178800
178875
  }),
178801
178876
  createExternalAssetPlugin(resolvedOutdir, userSourceRoots),
178802
- ...buildConfig.compile?.plugins ?? []
178877
+ ...buildConfig.compile?.plugins ?? [],
178878
+ createBunStringRawUnicodePlugin()
178803
178879
  ],
178804
178880
  sourcemap: "inline",
178805
178881
  target: "bun",
@@ -178871,7 +178947,8 @@ console.log(\`
178871
178947
  stubReact: !buildConfig.reactDirectory,
178872
178948
  stubSvelte: !buildConfig.svelteDirectory,
178873
178949
  stubVue: !buildConfig.vueDirectory
178874
- })
178950
+ }),
178951
+ createBunStringRawUnicodePlugin()
178875
178952
  ],
178876
178953
  target: "bun"
178877
178954
  });
@@ -178900,6 +178977,7 @@ var init_compile = __esm(() => {
178900
178977
  init_maskLiterals();
178901
178978
  init_islandEntries();
178902
178979
  init_islandRegistryTransform();
178980
+ init_bunStringRawUnicodePlugin();
178903
178981
  init_constants();
178904
178982
  init_prerender();
178905
178983
  init_getDurationString();
@@ -180978,6 +181056,7 @@ init_getDurationString();
180978
181056
  init_instanceRegistry();
180979
181057
  init_islandEntries();
180980
181058
  init_islandRegistryTransform();
181059
+ init_bunStringRawUnicodePlugin();
180981
181060
  init_loadConfig();
180982
181061
  init_startupBanner();
180983
181062
  init_telemetryEvent();
@@ -181205,7 +181284,11 @@ var start = async (serverEntry, outdir, configPath2) => {
181205
181284
  "typescript"
181206
181285
  ],
181207
181286
  outdir: resolvedOutdir,
181208
- plugins: islandRegistryPlugin ? [islandRegistryPlugin, stubPlugin] : [stubPlugin],
181287
+ plugins: [
181288
+ ...islandRegistryPlugin ? [islandRegistryPlugin] : [],
181289
+ stubPlugin,
181290
+ createBunStringRawUnicodePlugin()
181291
+ ],
181209
181292
  target: "bun",
181210
181293
  throw: false
181211
181294
  });