@absolutejs/absolute 0.20.0-beta.43 → 0.20.0-beta.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/angular/browser.js +378 -361
  2. package/dist/angular/browser.js.map +2 -2
  3. package/dist/angular/components/core/streamingSlotRegistrar.js +7 -7
  4. package/dist/angular/components/core/streamingSlotRegistry.js +4 -4
  5. package/dist/angular/index.js +300 -294
  6. package/dist/angular/index.js.map +2 -2
  7. package/dist/angular/server.js +54 -50
  8. package/dist/angular/server.js.map +2 -2
  9. package/dist/build.js +201 -204
  10. package/dist/build.js.map +3 -3
  11. package/dist/cli/config/client.js +12 -12
  12. package/dist/cli/config/server.js +1096 -1090
  13. package/dist/cli/index.js +1573 -1297
  14. package/dist/client/index.js +29 -25
  15. package/dist/client/index.js.map +2 -2
  16. package/dist/core/streamingSlotRegistrar.js +15 -13
  17. package/dist/core/streamingSlotRegistrar.js.map +2 -2
  18. package/dist/core/streamingSlotRegistry.js +11 -9
  19. package/dist/core/streamingSlotRegistry.js.map +2 -2
  20. package/dist/image-client/imageClient.js +7 -7
  21. package/dist/index.js +810 -733
  22. package/dist/index.js.map +7 -6
  23. package/dist/islands/browser.js +11 -9
  24. package/dist/islands/browser.js.map +2 -2
  25. package/dist/islands/index.js +39 -35
  26. package/dist/islands/index.js.map +2 -2
  27. package/dist/mobile/browser.js +23 -22
  28. package/dist/mobile/browser.js.map +3 -3
  29. package/dist/mobile/index.js +739 -426
  30. package/dist/mobile/index.js.map +11 -11
  31. package/dist/mobile/remoteMacAgentEntry.js +227 -37
  32. package/dist/mobile/shellBootstrap.js +0 -1
  33. package/dist/mobile/shellExpoAuth.js +184 -0
  34. package/dist/mobile/shellExpoDevices.js +4 -5
  35. package/dist/mobile/shellExpoSync.js +104 -0
  36. package/dist/mobile/shellSync.js +4 -4
  37. package/dist/react/browser.js +17 -15
  38. package/dist/react/browser.js.map +2 -2
  39. package/dist/react/components/browser/index.js +107 -107
  40. package/dist/react/components/index.js +118 -116
  41. package/dist/react/components/index.js.map +2 -2
  42. package/dist/react/hooks/index.js +11 -9
  43. package/dist/react/hooks/index.js.map +2 -2
  44. package/dist/react/index.js +53 -49
  45. package/dist/react/index.js.map +2 -2
  46. package/dist/react/jsxDevRuntimeCompat.js +11 -9
  47. package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
  48. package/dist/react/jsxRuntimeCompat.js +11 -9
  49. package/dist/react/jsxRuntimeCompat.js.map +2 -2
  50. package/dist/react/router/browser.js +9 -7
  51. package/dist/react/router/browser.js.map +2 -2
  52. package/dist/react/router/index.js +9 -7
  53. package/dist/react/router/index.js.map +2 -2
  54. package/dist/react/server.js +12 -10
  55. package/dist/react/server.js.map +2 -2
  56. package/dist/src/mobile/devDeviceAdapter.d.ts +1 -1
  57. package/dist/src/mobile/expoBridge.d.ts +12 -12
  58. package/dist/src/mobile/nativeAuth.d.ts +6 -0
  59. package/dist/src/mobile/shellExpoAuth.d.ts +12 -0
  60. package/dist/src/mobile/shellExpoSync.d.ts +18 -0
  61. package/dist/svelte/browser.js +12 -10
  62. package/dist/svelte/browser.js.map +2 -2
  63. package/dist/svelte/index.js +47 -43
  64. package/dist/svelte/index.js.map +2 -2
  65. package/dist/svelte/server.js +29 -27
  66. package/dist/svelte/server.js.map +2 -2
  67. package/dist/vue/browser.js +14 -12
  68. package/dist/vue/browser.js.map +2 -2
  69. package/dist/vue/components/Image.js +9 -7
  70. package/dist/vue/components/Image.js.map +2 -2
  71. package/dist/vue/components/index.js +11 -9
  72. package/dist/vue/components/index.js.map +2 -2
  73. package/dist/vue/index.js +52 -48
  74. package/dist/vue/index.js.map +2 -2
  75. package/dist/vue/server.js +14 -12
  76. package/dist/vue/server.js.map +2 -2
  77. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -19,12 +19,14 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
@@ -126,22 +128,22 @@ var isValidHMRClientMessage = (data) => {
126
128
  // src/build/stylePreprocessor.ts
127
129
  var exports_stylePreprocessor = {};
128
130
  __export(exports_stylePreprocessor, {
129
- stylePreprocessorPlugin: () => stylePreprocessorPlugin,
130
- recordStyleOutput: () => recordStyleOutput,
131
- isStylePath: () => isStylePath,
132
- isStyleModulePath: () => isStyleModulePath,
133
- isPreprocessableStylePath: () => isPreprocessableStylePath,
134
- getStyleBaseName: () => getStyleBaseName,
135
- getCssOutputExtension: () => getCssOutputExtension,
136
- forgetStyleEntry: () => forgetStyleEntry,
137
- findStyleEntriesImporting: () => findStyleEntriesImporting,
138
- createSvelteStylePreprocessor: () => createSvelteStylePreprocessor,
139
- createStyleTransformConfig: () => createStyleTransformConfig,
140
- createStylePreprocessorPlugin: () => createStylePreprocessorPlugin,
141
- compileStyleSource: () => compileStyleSource,
142
- compileStyleFileIfNeededSync: () => compileStyleFileIfNeededSync,
131
+ addStyleImporter: () => addStyleImporter,
143
132
  compileStyleFileIfNeeded: () => compileStyleFileIfNeeded,
144
- addStyleImporter: () => addStyleImporter
133
+ compileStyleFileIfNeededSync: () => compileStyleFileIfNeededSync,
134
+ compileStyleSource: () => compileStyleSource,
135
+ createStylePreprocessorPlugin: () => createStylePreprocessorPlugin,
136
+ createStyleTransformConfig: () => createStyleTransformConfig,
137
+ createSvelteStylePreprocessor: () => createSvelteStylePreprocessor,
138
+ findStyleEntriesImporting: () => findStyleEntriesImporting,
139
+ forgetStyleEntry: () => forgetStyleEntry,
140
+ getCssOutputExtension: () => getCssOutputExtension,
141
+ getStyleBaseName: () => getStyleBaseName,
142
+ isPreprocessableStylePath: () => isPreprocessableStylePath,
143
+ isStyleModulePath: () => isStyleModulePath,
144
+ isStylePath: () => isStylePath,
145
+ recordStyleOutput: () => recordStyleOutput,
146
+ stylePreprocessorPlugin: () => stylePreprocessorPlugin
145
147
  });
146
148
  import { createHash } from "crypto";
147
149
  import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
@@ -5596,12 +5598,12 @@ var init_chunk_U7LQKMN6 = __esm(() => {
5596
5598
  // node_modules/tailwindcss/dist/lib.mjs
5597
5599
  var exports_lib = {};
5598
5600
  __export(exports_lib, {
5599
- default: () => mn,
5600
- compileAst: () => pn,
5601
- compile: () => xa,
5602
- __unstable__loadDesignSystem: () => Aa,
5601
+ Features: () => Pe,
5603
5602
  Polyfills: () => pt,
5604
- Features: () => Pe
5603
+ __unstable__loadDesignSystem: () => Aa,
5604
+ compile: () => xa,
5605
+ compileAst: () => pn,
5606
+ default: () => mn
5605
5607
  });
5606
5608
  var init_lib = __esm(() => {
5607
5609
  init_chunk_U7LQKMN6();
@@ -5612,9 +5614,9 @@ var init_lib = __esm(() => {
5612
5614
  // src/build/tailwindCompiler.ts
5613
5615
  var exports_tailwindCompiler = {};
5614
5616
  __export(exports_tailwindCompiler, {
5615
- warmTailwindCompiler: () => warmTailwindCompiler,
5617
+ disposeTailwindCompiler: () => disposeTailwindCompiler,
5616
5618
  incrementalTailwindBuild: () => incrementalTailwindBuild,
5617
- disposeTailwindCompiler: () => disposeTailwindCompiler
5619
+ warmTailwindCompiler: () => warmTailwindCompiler
5618
5620
  });
5619
5621
  import { createHash as createHash2 } from "crypto";
5620
5622
  import { existsSync as existsSync4, readFileSync as readFileSync4 } from "fs";
@@ -5811,10 +5813,10 @@ var init_tailwindCompiler = __esm(() => {
5811
5813
  // src/build/compileTailwind.ts
5812
5814
  var exports_compileTailwind = {};
5813
5815
  __export(exports_compileTailwind, {
5814
- isTailwindCandidate: () => isTailwindCandidate,
5815
- computeFrameworkTailwindSources: () => computeFrameworkTailwindSources,
5816
+ compileTailwind: () => compileTailwind,
5816
5817
  compileTailwindConfig: () => compileTailwindConfig,
5817
- compileTailwind: () => compileTailwind
5818
+ computeFrameworkTailwindSources: () => computeFrameworkTailwindSources,
5819
+ isTailwindCandidate: () => isTailwindCandidate
5818
5820
  });
5819
5821
  import { mkdir } from "fs/promises";
5820
5822
  import { dirname as dirname4, join as join4, resolve as resolve4 } from "path";
@@ -6975,10 +6977,10 @@ var init_ssrRender = __esm(() => {
6975
6977
  // src/angular/islands.ts
6976
6978
  var exports_islands = {};
6977
6979
  __export(exports_islands, {
6978
- renderAngularIslandToHtml: () => renderAngularIslandToHtml,
6979
- mountAngularIsland: () => mountAngularIsland,
6980
+ getAngularIslandSelector: () => getAngularIslandSelector,
6980
6981
  isAngularComponent: () => isAngularComponent,
6981
- getAngularIslandSelector: () => getAngularIslandSelector
6982
+ mountAngularIsland: () => mountAngularIsland,
6983
+ renderAngularIslandToHtml: () => renderAngularIslandToHtml
6982
6984
  });
6983
6985
  var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, isAngularComponent = (value) => typeof value === "function", getSelectorFromRenderedIsland = (rootElement) => {
6984
6986
  const firstChild = rootElement.firstElementChild;
@@ -7040,8 +7042,10 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
7040
7042
  const propsToken = new InjectionToken(`${wrapperKey}:props`);
7041
7043
 
7042
7044
  class AngularIslandWrapperComponent {
7043
- component = component;
7044
- props = inject(propsToken);
7045
+ constructor() {
7046
+ this.component = component;
7047
+ this.props = inject(propsToken);
7048
+ }
7045
7049
  }
7046
7050
  return {
7047
7051
  deps,
@@ -7490,13 +7494,13 @@ var init_nativeRewrite = __esm(() => {
7490
7494
  // src/build/rewriteImportsPlugin.ts
7491
7495
  var exports_rewriteImportsPlugin = {};
7492
7496
  __export(exports_rewriteImportsPlugin, {
7493
- rewriteVendorDirectories: () => rewriteVendorDirectories,
7494
- rewriteImportsInContent: () => rewriteImportsInContent,
7495
- rewriteBuildOutputsWith: () => rewriteBuildOutputsWith,
7496
- rewriteBuildOutputs: () => rewriteBuildOutputs,
7497
- jsRewriteImports: () => jsRewriteImports,
7497
+ buildWithImportRewrite: () => buildWithImportRewrite,
7498
7498
  fixMissingReExportNamespacesInContent: () => fixMissingReExportNamespacesInContent,
7499
- buildWithImportRewrite: () => buildWithImportRewrite
7499
+ jsRewriteImports: () => jsRewriteImports,
7500
+ rewriteBuildOutputs: () => rewriteBuildOutputs,
7501
+ rewriteBuildOutputsWith: () => rewriteBuildOutputsWith,
7502
+ rewriteImportsInContent: () => rewriteImportsInContent,
7503
+ rewriteVendorDirectories: () => rewriteVendorDirectories
7500
7504
  });
7501
7505
  import { readdir } from "fs/promises";
7502
7506
  import { join as join5 } from "path";
@@ -8922,10 +8926,10 @@ var init_pageResponseCache = () => {};
8922
8926
  // src/utils/loadConfig.ts
8923
8927
  var exports_loadConfig = {};
8924
8928
  __export(exports_loadConfig, {
8925
- loadRawConfig: () => loadRawConfig,
8926
- loadConfig: () => loadConfig,
8929
+ getWorkspaceServices: () => getWorkspaceServices,
8927
8930
  isWorkspaceConfig: () => isWorkspaceConfig,
8928
- getWorkspaceServices: () => getWorkspaceServices
8931
+ loadConfig: () => loadConfig,
8932
+ loadRawConfig: () => loadRawConfig
8929
8933
  });
8930
8934
  import { resolve as resolve10 } from "path";
8931
8935
  var RESERVED_TOP_LEVEL_KEYS, isObject = (value) => typeof value === "object" && value !== null, isCommandService = (service) => service.kind === "command" || Array.isArray(service.command), isServiceCandidate = (value) => isObject(value) && (typeof value.entry === "string" || Array.isArray(value.command)), isWorkspaceConfig = (config) => {
@@ -9028,6 +9032,137 @@ var init_loadConfig = __esm(() => {
9028
9032
  ]);
9029
9033
  });
9030
9034
 
9035
+ // src/mobile/config.ts
9036
+ import { resolve as resolve11 } from "path";
9037
+ var APP_ID_PATTERN, SCHEME_PATTERN, APPLE_APP_ID_PREFIX_PATTERN, CERTIFICATE_FINGERPRINT_PATTERN, HOSTNAME_PATTERN, resolveProjectPath = (projectRoot, value, field) => {
9038
+ const root = resolve11(projectRoot);
9039
+ const path = resolve11(root, value);
9040
+ if (path !== root && !path.startsWith(`${root}/`)) {
9041
+ throw new TypeError(`${field} must remain inside the project root.`);
9042
+ }
9043
+ return path;
9044
+ }, requireText = (value, field) => {
9045
+ const normalized = value.trim();
9046
+ if (!normalized)
9047
+ throw new TypeError(`${field} must not be empty.`);
9048
+ return normalized;
9049
+ }, normalizeEntry = (entry) => {
9050
+ const normalized = requireText(entry ?? "/", "mobile.entry");
9051
+ if (!normalized.startsWith("/") || normalized.startsWith("//")) {
9052
+ throw new TypeError("mobile.entry must be an absolute application path.");
9053
+ }
9054
+ return normalized;
9055
+ }, normalizeProductionOrigin = (value) => {
9056
+ const parsed = new URL(requireText(value, "mobile.server.productionOrigin"));
9057
+ const isLoopbackHttp = parsed.protocol === "http:" && (parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1" || parsed.hostname === "[::1]");
9058
+ if (parsed.protocol !== "https:" && !isLoopbackHttp) {
9059
+ throw new TypeError("mobile.server.productionOrigin must use HTTPS, except for a loopback development origin.");
9060
+ }
9061
+ if (parsed.username || parsed.password || parsed.pathname !== "/" || parsed.search || parsed.hash) {
9062
+ throw new TypeError("mobile.server.productionOrigin must be an origin without credentials, path, query, or hash.");
9063
+ }
9064
+ return parsed.origin;
9065
+ }, normalizePlatforms = (platforms) => {
9066
+ const normalized = [
9067
+ ...new Set(platforms ?? ["ios", "android"])
9068
+ ];
9069
+ if (normalized.length === 0) {
9070
+ throw new TypeError("mobile.platforms must contain at least one platform.");
9071
+ }
9072
+ return normalized;
9073
+ }, normalizeHosts = (hosts, productionOrigin) => {
9074
+ const normalizeHostname = (host) => {
9075
+ const value = requireText(host, "mobile.deepLinks.hosts").toLowerCase();
9076
+ if (!HOSTNAME_PATTERN.test(value)) {
9077
+ throw new TypeError("mobile.deepLinks.hosts entries must be valid hostnames without ports, wildcards, or paths.");
9078
+ }
9079
+ return value;
9080
+ };
9081
+ const productionHostname = new URL(productionOrigin).hostname;
9082
+ const normalized = new Set(productionHostname === "[::1]" ? [] : [normalizeHostname(productionHostname)]);
9083
+ for (const host of hosts ?? []) {
9084
+ normalized.add(normalizeHostname(host));
9085
+ }
9086
+ return [...normalized].sort();
9087
+ }, normalizeAppleAppIdPrefix = (value) => {
9088
+ if (value === undefined)
9089
+ return;
9090
+ const normalized = requireText(value, "mobile.deepLinks.apple.appIdPrefix").toUpperCase();
9091
+ if (!APPLE_APP_ID_PREFIX_PATTERN.test(normalized)) {
9092
+ throw new TypeError("mobile.deepLinks.apple.appIdPrefix must contain ten letters or digits.");
9093
+ }
9094
+ return normalized;
9095
+ }, normalizeIosVersion = (value) => {
9096
+ if (value === undefined)
9097
+ return;
9098
+ const normalized = requireText(value, "mobile.ios.version");
9099
+ if (!/^\d+(?:\.\d+){0,2}$/u.test(normalized)) {
9100
+ throw new TypeError("mobile.ios.version must contain one to three dot-separated integer components, for example 1.4.0.");
9101
+ }
9102
+ return normalized;
9103
+ }, normalizeCertificateFingerprints = (values) => [
9104
+ ...new Set((values ?? []).map((value) => requireText(value, "mobile.deepLinks.android.sha256CertificateFingerprints").replaceAll(":", "").toUpperCase()).map((value) => {
9105
+ if (!CERTIFICATE_FINGERPRINT_PATTERN.test(value)) {
9106
+ throw new TypeError("mobile.deepLinks.android.sha256CertificateFingerprints entries must be SHA-256 certificate fingerprints.");
9107
+ }
9108
+ return value.match(/.{2}/g)?.join(":") ?? value;
9109
+ }))
9110
+ ].sort(), normalizeExpoNativeRoutes = (config, projectRoot) => {
9111
+ if (config.engine !== "expo")
9112
+ return {};
9113
+ const routes = config.routes?.native ?? {};
9114
+ const normalized = {};
9115
+ for (const [route, module] of Object.entries(routes)) {
9116
+ const path = normalizeEntry(route);
9117
+ if (path.includes("?") || path.includes("#") || path !== "/" && path.endsWith("/")) {
9118
+ throw new TypeError(`mobile.routes.native route ${path} must be a canonical path without a query, fragment, or trailing slash.`);
9119
+ }
9120
+ if (path === "/__absolute/native") {
9121
+ throw new TypeError("mobile.routes.native reserves /__absolute/native for the Expo diagnostic screen.");
9122
+ }
9123
+ if (path.includes("*") || path.includes(":")) {
9124
+ throw new TypeError(`mobile.routes.native route ${path} must be static during the Expo experiment; parameters and wildcards are not supported yet.`);
9125
+ }
9126
+ normalized[path] = resolveProjectPath(projectRoot, requireText(module, `mobile.routes.native[${path}]`), `mobile.routes.native[${path}]`);
9127
+ }
9128
+ return Object.fromEntries(Object.entries(normalized).sort(([left], [right]) => left.localeCompare(right)));
9129
+ }, normalizeAbsoluteMobileConfig = (config, projectRoot) => {
9130
+ const appId = requireText(config.appId, "mobile.appId");
9131
+ if (!APP_ID_PATTERN.test(appId)) {
9132
+ throw new TypeError("mobile.appId must use reverse-domain notation, for example com.example.app.");
9133
+ }
9134
+ const productionOrigin = normalizeProductionOrigin(config.server.productionOrigin);
9135
+ const deepLinkScheme = (config.deepLinks?.scheme ?? appId).trim().toLowerCase();
9136
+ if (deepLinkScheme && !SCHEME_PATTERN.test(deepLinkScheme)) {
9137
+ throw new TypeError("mobile.deepLinks.scheme is not a valid URL scheme.");
9138
+ }
9139
+ return {
9140
+ androidCertificateFingerprints: normalizeCertificateFingerprints(config.deepLinks?.android?.sha256CertificateFingerprints),
9141
+ appId,
9142
+ appleAppIdPrefix: normalizeAppleAppIdPrefix(config.deepLinks?.apple?.appIdPrefix),
9143
+ appName: requireText(config.appName, "mobile.appName"),
9144
+ bundleDirectory: resolveProjectPath(projectRoot, config.bundleDirectory ?? ".absolutejs/mobile/web", "mobile.bundleDirectory"),
9145
+ deepLinkHosts: normalizeHosts(config.deepLinks?.hosts, productionOrigin),
9146
+ deepLinkScheme,
9147
+ engine: config.engine ?? "capacitor",
9148
+ entry: normalizeEntry(config.entry),
9149
+ expoNativeRoutes: normalizeExpoNativeRoutes(config, projectRoot),
9150
+ ...config.engine === "expo" ? { expoSdkVersion: config.expo?.sdkVersion ?? 57 } : {},
9151
+ iosVersion: normalizeIosVersion(config.ios?.version),
9152
+ nativeProjectDirectory: resolveProjectPath(projectRoot, config.nativeProject?.directory ?? (config.engine === "expo" ? ".absolutejs/mobile/expo" : "mobile"), "mobile.nativeProject.directory"),
9153
+ platforms: normalizePlatforms(config.platforms),
9154
+ productionOrigin,
9155
+ pushAndroidGoogleServicesFile: resolveProjectPath(projectRoot, config.pushNotifications?.android?.googleServicesFile ?? "google-services.json", "mobile.pushNotifications.android.googleServicesFile")
9156
+ };
9157
+ };
9158
+ var init_config = __esm(() => {
9159
+ APP_ID_PATTERN = /^[A-Za-z][\w]*(?:\.[A-Za-z][\w]*)+$/;
9160
+ SCHEME_PATTERN = /^[a-z][a-z0-9+.-]*$/;
9161
+ APPLE_APP_ID_PREFIX_PATTERN = /^[A-Z0-9]{10}$/;
9162
+ CERTIFICATE_FINGERPRINT_PATTERN = /^[0-9A-F]{64}$/;
9163
+ HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?))*$/;
9164
+ });
9165
+
9031
9166
  // src/cli/scripts/telemetry.ts
9032
9167
  import { existsSync as existsSync9, mkdirSync as mkdirSync2, readFileSync as readFileSync10, writeFileSync as writeFileSync4 } from "fs";
9033
9168
  import { homedir } from "os";
@@ -9807,10 +9942,10 @@ var init_logger = __esm(() => {
9807
9942
  // src/core/devRouteRegistrationCallsite.ts
9808
9943
  var exports_devRouteRegistrationCallsite = {};
9809
9944
  __export(exports_devRouteRegistrationCallsite, {
9810
- patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites,
9811
- isPageHandler: () => isPageHandler,
9945
+ getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite,
9812
9946
  getOriginalPageHandlerSource: () => getOriginalPageHandlerSource,
9813
- getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
9947
+ isPageHandler: () => isPageHandler,
9948
+ patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites
9814
9949
  });
9815
9950
  import { AsyncLocalStorage as AsyncLocalStorage3 } from "async_hooks";
9816
9951
  import { Elysia as Elysia5 } from "elysia";
@@ -12284,18 +12419,18 @@ var init_rewriteReactImports = __esm(() => {
12284
12419
  // src/core/devVendorPaths.ts
12285
12420
  var exports_devVendorPaths = {};
12286
12421
  __export(exports_devVendorPaths, {
12287
- setVueVendorPaths: () => setVueVendorPaths,
12288
- setSvelteVendorPaths: () => setSvelteVendorPaths,
12289
- setEmberVendorPaths: () => setEmberVendorPaths,
12290
- setDevVendorPaths: () => setDevVendorPaths,
12291
- setAngularVendorPaths: () => setAngularVendorPaths,
12292
- setAngularServerVendorPaths: () => setAngularServerVendorPaths,
12293
- getVueVendorPaths: () => getVueVendorPaths,
12294
- getSvelteVendorPaths: () => getSvelteVendorPaths,
12295
- getEmberVendorPaths: () => getEmberVendorPaths,
12296
- getDevVendorPaths: () => getDevVendorPaths,
12422
+ getAngularServerVendorPaths: () => getAngularServerVendorPaths,
12297
12423
  getAngularVendorPaths: () => getAngularVendorPaths,
12298
- getAngularServerVendorPaths: () => getAngularServerVendorPaths
12424
+ getDevVendorPaths: () => getDevVendorPaths,
12425
+ getEmberVendorPaths: () => getEmberVendorPaths,
12426
+ getSvelteVendorPaths: () => getSvelteVendorPaths,
12427
+ getVueVendorPaths: () => getVueVendorPaths,
12428
+ setAngularServerVendorPaths: () => setAngularServerVendorPaths,
12429
+ setAngularVendorPaths: () => setAngularVendorPaths,
12430
+ setDevVendorPaths: () => setDevVendorPaths,
12431
+ setEmberVendorPaths: () => setEmberVendorPaths,
12432
+ setSvelteVendorPaths: () => setSvelteVendorPaths,
12433
+ setVueVendorPaths: () => setVueVendorPaths
12299
12434
  });
12300
12435
  var devVendorPaths = null, getDevVendorPaths = () => devVendorPaths, setDevVendorPaths = (paths) => {
12301
12436
  devVendorPaths = paths;
@@ -12700,8 +12835,8 @@ var init_islandRegistryTransform = __esm(() => {
12700
12835
  // src/dev/angular/hmrInjectionPlugin.ts
12701
12836
  var exports_hmrInjectionPlugin = {};
12702
12837
  __export(exports_hmrInjectionPlugin, {
12703
- createAngularHmrInjectionPlugin: () => createAngularHmrInjectionPlugin,
12704
- applyAngularHmrInjection: () => applyAngularHmrInjection
12838
+ applyAngularHmrInjection: () => applyAngularHmrInjection,
12839
+ createAngularHmrInjectionPlugin: () => createAngularHmrInjectionPlugin
12705
12840
  });
12706
12841
  import { readFile as readFile8 } from "fs/promises";
12707
12842
  import { relative as relative9, resolve as resolve22 } from "path";
@@ -12959,8 +13094,8 @@ var init_cleanStaleOutputs = __esm(() => {
12959
13094
  // src/utils/generatedDir.ts
12960
13095
  var exports_generatedDir = {};
12961
13096
  __export(exports_generatedDir, {
12962
- getGeneratedRoot: () => getGeneratedRoot,
12963
- getFrameworkGeneratedDir: () => getFrameworkGeneratedDir
13097
+ getFrameworkGeneratedDir: () => getFrameworkGeneratedDir,
13098
+ getGeneratedRoot: () => getGeneratedRoot
12964
13099
  });
12965
13100
  import { join as join26 } from "path";
12966
13101
  var GENERATED_DIR_NAME = "generated", ABSOLUTE_CACHE_DIR_NAME = ".absolutejs", getFrameworkGeneratedDir = (framework, projectRoot = process.cwd()) => join26(getGeneratedRoot(projectRoot), framework), getGeneratedRoot = (projectRoot = process.cwd()) => join26(projectRoot, ABSOLUTE_CACHE_DIR_NAME, GENERATED_DIR_NAME);
@@ -13483,7 +13618,7 @@ var init_deviceCapabilities = __esm(() => {
13483
13618
  });
13484
13619
 
13485
13620
  // node_modules/@absolutejs/sync/dist/client/index.js
13486
- var RUNTIME_TRANSPORT, host, isRegistry = (value) => typeof value === "object" && value !== null && Array.isArray(Reflect.get(value, "installations")) && Array.isArray(Reflect.get(value, "clients")), registry, SyncLocalDataPolicyError, SyncLocalStoreSchemaError, positiveVersion = (value, label) => {
13621
+ var RUNTIME_TRANSPORT, host, isRegistry = (value) => typeof value === "object" && value !== null && Array.isArray(Reflect.get(value, "installations")) && Array.isArray(Reflect.get(value, "clients")), registry, pools, SyncLocalDataPolicyError, SyncLocalStoreSchemaError, positiveVersion = (value, label) => {
13487
13622
  if (!Number.isSafeInteger(value) || value < 1)
13488
13623
  throw new SyncLocalStoreSchemaError("INVALID_PLAN", `${label} must be a positive safe integer`);
13489
13624
  return value;
@@ -13588,6 +13723,7 @@ var init_client = __esm(() => {
13588
13723
  });
13589
13724
  return created;
13590
13725
  })();
13726
+ pools = new Map;
13591
13727
  SyncLocalDataPolicyError = class SyncLocalDataPolicyError extends Error {
13592
13728
  code;
13593
13729
  constructor(code, message) {
@@ -14585,8 +14721,8 @@ var init_parseAngularConfigImports = () => {};
14585
14721
  // src/svelte/renderToReadableStream.ts
14586
14722
  var exports_renderToReadableStream = {};
14587
14723
  __export(exports_renderToReadableStream, {
14588
- renderToReadableStream: () => renderToReadableStream,
14589
- SVELTE_PAGE_ROOT_ID: () => SVELTE_PAGE_ROOT_ID
14724
+ SVELTE_PAGE_ROOT_ID: () => SVELTE_PAGE_ROOT_ID,
14725
+ renderToReadableStream: () => renderToReadableStream
14590
14726
  });
14591
14727
  var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__", renderToReadableStream = async (component2, props, {
14592
14728
  bootstrapScriptContent,
@@ -14641,8 +14777,8 @@ var init_renderToReadableStream = __esm(() => {
14641
14777
  // src/build/compileSvelte.ts
14642
14778
  var exports_compileSvelte = {};
14643
14779
  __export(exports_compileSvelte, {
14644
- compileSvelte: () => compileSvelte,
14645
- clearSvelteCompilerCache: () => clearSvelteCompilerCache
14780
+ clearSvelteCompilerCache: () => clearSvelteCompilerCache,
14781
+ compileSvelte: () => compileSvelte
14646
14782
  });
14647
14783
  import { existsSync as existsSync24 } from "fs";
14648
14784
  import { mkdir as mkdir9, stat as stat2 } from "fs/promises";
@@ -15072,12 +15208,12 @@ var init_parseVueSpaRoutes = () => {};
15072
15208
  // src/build/chainInlineSourcemaps.ts
15073
15209
  var exports_chainInlineSourcemaps = {};
15074
15210
  __export(exports_chainInlineSourcemaps, {
15075
- remapGeneratedLines: () => remapGeneratedLines,
15076
- inlineLineMapComment: () => inlineLineMapComment,
15077
- chainSourcemap: () => chainSourcemap,
15078
- chainExternalSourcemap: () => chainExternalSourcemap,
15211
+ buildLineRemap: () => buildLineRemap,
15079
15212
  chainBundleInlineSourcemap: () => chainBundleInlineSourcemap,
15080
- buildLineRemap: () => buildLineRemap
15213
+ chainExternalSourcemap: () => chainExternalSourcemap,
15214
+ chainSourcemap: () => chainSourcemap,
15215
+ inlineLineMapComment: () => inlineLineMapComment,
15216
+ remapGeneratedLines: () => remapGeneratedLines
15081
15217
  });
15082
15218
  import { readFileSync as readFileSync23, writeFileSync as writeFileSync8 } from "fs";
15083
15219
  var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", BASE64_TO_INT, decodeVlq = (str, startPos) => {
@@ -15483,11 +15619,11 @@ var init_vueAutoRouterTransform = __esm(() => {
15483
15619
  // src/build/compileVue.ts
15484
15620
  var exports_compileVue = {};
15485
15621
  __export(exports_compileVue, {
15486
- vueHmrMetadata: () => vueHmrMetadata,
15487
- generateVueHmrId: () => generateVueHmrId,
15488
- detectVueChangeType: () => detectVueChangeType,
15622
+ clearVueHmrCaches: () => clearVueHmrCaches,
15489
15623
  compileVue: () => compileVue,
15490
- clearVueHmrCaches: () => clearVueHmrCaches
15624
+ detectVueChangeType: () => detectVueChangeType,
15625
+ generateVueHmrId: () => generateVueHmrId,
15626
+ vueHmrMetadata: () => vueHmrMetadata
15491
15627
  });
15492
15628
  import { existsSync as existsSync25, readFileSync as readFileSync24, realpathSync as realpathSync2 } from "fs";
15493
15629
  import { mkdir as mkdir10 } from "fs/promises";
@@ -16582,11 +16718,11 @@ var init_lowerDeferSyntax = __esm(() => {
16582
16718
  // src/build/compileAngular.ts
16583
16719
  var exports_compileAngular = {};
16584
16720
  __export(exports_compileAngular, {
16585
- invalidateAngularJitCache: () => invalidateAngularJitCache,
16586
- compileAngularFiles: () => compileAngularFiles,
16587
- compileAngularFileJIT: () => compileAngularFileJIT,
16721
+ compileAngular: () => compileAngular,
16588
16722
  compileAngularFile: () => compileAngularFile,
16589
- compileAngular: () => compileAngular
16723
+ compileAngularFileJIT: () => compileAngularFileJIT,
16724
+ compileAngularFiles: () => compileAngularFiles,
16725
+ invalidateAngularJitCache: () => invalidateAngularJitCache
16590
16726
  });
16591
16727
  import { existsSync as existsSync26, readFileSync as readFileSync25, promises as fs5 } from "fs";
16592
16728
  import { join as join38, basename as basename12, sep as sep3, dirname as dirname21, resolve as resolve29, relative as relative14 } from "path";
@@ -17959,7 +18095,6 @@ var init_hmrImportGenerator = () => {};
17959
18095
 
17960
18096
  // src/dev/angular/vendor/translator/context.ts
17961
18097
  class Context {
17962
- isStatement;
17963
18098
  constructor(isStatement) {
17964
18099
  this.isStatement = isStatement;
17965
18100
  }
@@ -17973,12 +18108,6 @@ class Context {
17973
18108
 
17974
18109
  // src/dev/angular/vendor/translator/translator.ts
17975
18110
  class ExpressionTranslatorVisitor {
17976
- factory;
17977
- imports;
17978
- contextFile;
17979
- downlevelTaggedTemplates;
17980
- downlevelVariableDeclarations;
17981
- recordWrappedNode;
17982
18111
  constructor(factory, imports, contextFile, options) {
17983
18112
  this.factory = factory;
17984
18113
  this.imports = imports;
@@ -18347,56 +18476,64 @@ var init_ts_util = __esm(() => {
18347
18476
  import ts17 from "typescript";
18348
18477
 
18349
18478
  class TypeScriptAstFactory {
18350
- annotateForClosureCompiler;
18351
- externalSourceFiles = new Map;
18352
- UNARY_OPERATORS = /* @__PURE__ */ (() => ({
18353
- "+": ts17.SyntaxKind.PlusToken,
18354
- "-": ts17.SyntaxKind.MinusToken,
18355
- "!": ts17.SyntaxKind.ExclamationToken
18356
- }))();
18357
- BINARY_OPERATORS = /* @__PURE__ */ (() => ({
18358
- "&&": ts17.SyntaxKind.AmpersandAmpersandToken,
18359
- ">": ts17.SyntaxKind.GreaterThanToken,
18360
- ">=": ts17.SyntaxKind.GreaterThanEqualsToken,
18361
- "&": ts17.SyntaxKind.AmpersandToken,
18362
- "|": ts17.SyntaxKind.BarToken,
18363
- "/": ts17.SyntaxKind.SlashToken,
18364
- "==": ts17.SyntaxKind.EqualsEqualsToken,
18365
- "===": ts17.SyntaxKind.EqualsEqualsEqualsToken,
18366
- "<": ts17.SyntaxKind.LessThanToken,
18367
- "<=": ts17.SyntaxKind.LessThanEqualsToken,
18368
- "-": ts17.SyntaxKind.MinusToken,
18369
- "%": ts17.SyntaxKind.PercentToken,
18370
- "*": ts17.SyntaxKind.AsteriskToken,
18371
- "**": ts17.SyntaxKind.AsteriskAsteriskToken,
18372
- "!=": ts17.SyntaxKind.ExclamationEqualsToken,
18373
- "!==": ts17.SyntaxKind.ExclamationEqualsEqualsToken,
18374
- "||": ts17.SyntaxKind.BarBarToken,
18375
- "+": ts17.SyntaxKind.PlusToken,
18376
- "??": ts17.SyntaxKind.QuestionQuestionToken,
18377
- "=": ts17.SyntaxKind.EqualsToken,
18378
- "+=": ts17.SyntaxKind.PlusEqualsToken,
18379
- "-=": ts17.SyntaxKind.MinusEqualsToken,
18380
- "*=": ts17.SyntaxKind.AsteriskEqualsToken,
18381
- "/=": ts17.SyntaxKind.SlashEqualsToken,
18382
- "%=": ts17.SyntaxKind.PercentEqualsToken,
18383
- "**=": ts17.SyntaxKind.AsteriskAsteriskEqualsToken,
18384
- "&&=": ts17.SyntaxKind.AmpersandAmpersandEqualsToken,
18385
- "||=": ts17.SyntaxKind.BarBarEqualsToken,
18386
- "??=": ts17.SyntaxKind.QuestionQuestionEqualsToken,
18387
- in: ts17.SyntaxKind.InKeyword,
18388
- instanceof: ts17.SyntaxKind.InstanceOfKeyword
18389
- }))();
18390
- VAR_TYPES = /* @__PURE__ */ (() => ({
18391
- const: ts17.NodeFlags.Const,
18392
- let: ts17.NodeFlags.Let,
18393
- var: ts17.NodeFlags.None
18394
- }))();
18395
18479
  constructor(annotateForClosureCompiler) {
18396
18480
  this.annotateForClosureCompiler = annotateForClosureCompiler;
18481
+ this.externalSourceFiles = new Map;
18482
+ this.UNARY_OPERATORS = /* @__PURE__ */ (() => ({
18483
+ "+": ts17.SyntaxKind.PlusToken,
18484
+ "-": ts17.SyntaxKind.MinusToken,
18485
+ "!": ts17.SyntaxKind.ExclamationToken
18486
+ }))();
18487
+ this.BINARY_OPERATORS = /* @__PURE__ */ (() => ({
18488
+ "&&": ts17.SyntaxKind.AmpersandAmpersandToken,
18489
+ ">": ts17.SyntaxKind.GreaterThanToken,
18490
+ ">=": ts17.SyntaxKind.GreaterThanEqualsToken,
18491
+ "&": ts17.SyntaxKind.AmpersandToken,
18492
+ "|": ts17.SyntaxKind.BarToken,
18493
+ "/": ts17.SyntaxKind.SlashToken,
18494
+ "==": ts17.SyntaxKind.EqualsEqualsToken,
18495
+ "===": ts17.SyntaxKind.EqualsEqualsEqualsToken,
18496
+ "<": ts17.SyntaxKind.LessThanToken,
18497
+ "<=": ts17.SyntaxKind.LessThanEqualsToken,
18498
+ "-": ts17.SyntaxKind.MinusToken,
18499
+ "%": ts17.SyntaxKind.PercentToken,
18500
+ "*": ts17.SyntaxKind.AsteriskToken,
18501
+ "**": ts17.SyntaxKind.AsteriskAsteriskToken,
18502
+ "!=": ts17.SyntaxKind.ExclamationEqualsToken,
18503
+ "!==": ts17.SyntaxKind.ExclamationEqualsEqualsToken,
18504
+ "||": ts17.SyntaxKind.BarBarToken,
18505
+ "+": ts17.SyntaxKind.PlusToken,
18506
+ "??": ts17.SyntaxKind.QuestionQuestionToken,
18507
+ "=": ts17.SyntaxKind.EqualsToken,
18508
+ "+=": ts17.SyntaxKind.PlusEqualsToken,
18509
+ "-=": ts17.SyntaxKind.MinusEqualsToken,
18510
+ "*=": ts17.SyntaxKind.AsteriskEqualsToken,
18511
+ "/=": ts17.SyntaxKind.SlashEqualsToken,
18512
+ "%=": ts17.SyntaxKind.PercentEqualsToken,
18513
+ "**=": ts17.SyntaxKind.AsteriskAsteriskEqualsToken,
18514
+ "&&=": ts17.SyntaxKind.AmpersandAmpersandEqualsToken,
18515
+ "||=": ts17.SyntaxKind.BarBarEqualsToken,
18516
+ "??=": ts17.SyntaxKind.QuestionQuestionEqualsToken,
18517
+ in: ts17.SyntaxKind.InKeyword,
18518
+ instanceof: ts17.SyntaxKind.InstanceOfKeyword
18519
+ }))();
18520
+ this.VAR_TYPES = /* @__PURE__ */ (() => ({
18521
+ const: ts17.NodeFlags.Const,
18522
+ let: ts17.NodeFlags.Let,
18523
+ var: ts17.NodeFlags.None
18524
+ }))();
18525
+ this.attachComments = attachComments;
18526
+ this.createArrayLiteral = ts17.factory.createArrayLiteralExpression;
18527
+ this.createElementAccess = ts17.factory.createElementAccessExpression;
18528
+ this.createExpressionStatement = ts17.factory.createExpressionStatement;
18529
+ this.createIdentifier = ts17.factory.createIdentifier;
18530
+ this.createParenthesizedExpression = ts17.factory.createParenthesizedExpression;
18531
+ this.createPropertyAccess = ts17.factory.createPropertyAccessExpression;
18532
+ this.createSpreadElement = ts17.factory.createSpreadElement;
18533
+ this.createThrowStatement = ts17.factory.createThrowStatement;
18534
+ this.createTypeOfExpression = ts17.factory.createTypeOfExpression;
18535
+ this.createVoidExpression = ts17.factory.createVoidExpression;
18397
18536
  }
18398
- attachComments = attachComments;
18399
- createArrayLiteral = ts17.factory.createArrayLiteralExpression;
18400
18537
  createAssignment(target, operator, value) {
18401
18538
  return ts17.factory.createBinaryExpression(target, this.BINARY_OPERATORS[operator], value);
18402
18539
  }
@@ -18416,8 +18553,6 @@ class TypeScriptAstFactory {
18416
18553
  createConditional(condition, whenTrue, whenFalse) {
18417
18554
  return ts17.factory.createConditionalExpression(condition, undefined, whenTrue, undefined, whenFalse);
18418
18555
  }
18419
- createElementAccess = ts17.factory.createElementAccessExpression;
18420
- createExpressionStatement = ts17.factory.createExpressionStatement;
18421
18556
  createDynamicImport(url) {
18422
18557
  return ts17.factory.createCallExpression(ts17.factory.createToken(ts17.SyntaxKind.ImportKeyword), undefined, [
18423
18558
  typeof url === "string" ? ts17.factory.createStringLiteral(url) : url
@@ -18444,7 +18579,6 @@ class TypeScriptAstFactory {
18444
18579
  createParameter(param) {
18445
18580
  return ts17.factory.createParameterDeclaration(undefined, undefined, param.name, undefined, param.type ?? undefined);
18446
18581
  }
18447
- createIdentifier = ts17.factory.createIdentifier;
18448
18582
  createIfStatement(condition, thenStatement, elseStatement) {
18449
18583
  return ts17.factory.createIfStatement(condition, thenStatement, elseStatement ?? undefined);
18450
18584
  }
@@ -18472,9 +18606,6 @@ class TypeScriptAstFactory {
18472
18606
  return ts17.factory.createPropertyAssignment(prop.quoted ? ts17.factory.createStringLiteral(prop.propertyName) : ts17.factory.createIdentifier(prop.propertyName), prop.value);
18473
18607
  }));
18474
18608
  }
18475
- createParenthesizedExpression = ts17.factory.createParenthesizedExpression;
18476
- createPropertyAccess = ts17.factory.createPropertyAccessExpression;
18477
- createSpreadElement = ts17.factory.createSpreadElement;
18478
18609
  createReturnStatement(expression) {
18479
18610
  return ts17.factory.createReturnStatement(expression ?? undefined);
18480
18611
  }
@@ -18522,9 +18653,6 @@ class TypeScriptAstFactory {
18522
18653
  }
18523
18654
  return templateLiteral;
18524
18655
  }
18525
- createThrowStatement = ts17.factory.createThrowStatement;
18526
- createTypeOfExpression = ts17.factory.createTypeOfExpression;
18527
- createVoidExpression = ts17.factory.createVoidExpression;
18528
18656
  createUnaryExpression(operator, operand) {
18529
18657
  return ts17.factory.createPrefixUnaryExpression(this.UNARY_OPERATORS[operator], operand);
18530
18658
  }
@@ -18652,11 +18780,11 @@ var init_typescript_translator = __esm(() => {
18652
18780
  // src/dev/angular/fastHmrCompiler.ts
18653
18781
  var exports_fastHmrCompiler = {};
18654
18782
  __export(exports_fastHmrCompiler, {
18655
- tryFastHmr: () => tryFastHmr,
18656
- takePendingModule: () => takePendingModule,
18657
- recordFingerprint: () => recordFingerprint,
18783
+ invalidateFingerprintCache: () => invalidateFingerprintCache,
18658
18784
  primeComponentFingerprint: () => primeComponentFingerprint,
18659
- invalidateFingerprintCache: () => invalidateFingerprintCache
18785
+ recordFingerprint: () => recordFingerprint,
18786
+ takePendingModule: () => takePendingModule,
18787
+ tryFastHmr: () => tryFastHmr
18660
18788
  });
18661
18789
  import { existsSync as existsSync27, readFileSync as readFileSync26, statSync as statSync2 } from "fs";
18662
18790
  import { dirname as dirname22, extname as extname9, relative as relative15, resolve as resolve30 } from "path";
@@ -20724,7 +20852,7 @@ var init_fastHmrCompiler = __esm(() => {
20724
20852
  });
20725
20853
 
20726
20854
  // node_modules/content-tag/pkg/node/content_tag.cjs
20727
- var require_content_tag = __commonJS((exports, module) => {
20855
+ var require_content_tag = __commonJS(function(exports, module) {
20728
20856
  var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/content-tag/pkg/node";
20729
20857
  var imports = {};
20730
20858
  imports["__wbindgen_placeholder__"] = exports;
@@ -21152,7 +21280,7 @@ ${val.stack}`;
21152
21280
  });
21153
21281
 
21154
21282
  // node_modules/content-tag/pkg/node.cjs
21155
- var require_node = __commonJS((exports, module) => {
21283
+ var require_node = __commonJS(function(exports, module) {
21156
21284
  var { Preprocessor } = require_content_tag();
21157
21285
  exports.Preprocessor = Preprocessor;
21158
21286
  });
@@ -21160,15 +21288,15 @@ var require_node = __commonJS((exports, module) => {
21160
21288
  // src/build/compileEmber.ts
21161
21289
  var exports_compileEmber = {};
21162
21290
  __export(exports_compileEmber, {
21163
- getEmberServerCompiledDir: () => getEmberServerCompiledDir,
21164
- getEmberCompiledRoot: () => getEmberCompiledRoot,
21165
- getEmberClientCompiledDir: () => getEmberClientCompiledDir,
21166
- dirname: () => dirname23,
21167
- compileEmberFileSource: () => compileEmberFileSource,
21168
- compileEmberFile: () => compileEmberFile,
21169
- compileEmber: () => compileEmber,
21291
+ basename: () => basename13,
21170
21292
  clearEmberCompilerCache: () => clearEmberCompilerCache,
21171
- basename: () => basename13
21293
+ compileEmber: () => compileEmber,
21294
+ compileEmberFile: () => compileEmberFile,
21295
+ compileEmberFileSource: () => compileEmberFileSource,
21296
+ dirname: () => dirname23,
21297
+ getEmberClientCompiledDir: () => getEmberClientCompiledDir,
21298
+ getEmberCompiledRoot: () => getEmberCompiledRoot,
21299
+ getEmberServerCompiledDir: () => getEmberServerCompiledDir
21172
21300
  });
21173
21301
  import { existsSync as existsSync28 } from "fs";
21174
21302
  import { mkdir as mkdir11, rm as rm8 } from "fs/promises";
@@ -21419,8 +21547,8 @@ var init_compileEmber = __esm(() => {
21419
21547
  // src/build/buildReactVendor.ts
21420
21548
  var exports_buildReactVendor = {};
21421
21549
  __export(exports_buildReactVendor, {
21422
- computeVendorPaths: () => computeVendorPaths,
21423
- buildReactVendor: () => buildReactVendor
21550
+ buildReactVendor: () => buildReactVendor,
21551
+ computeVendorPaths: () => computeVendorPaths
21424
21552
  });
21425
21553
  import { existsSync as existsSync29, mkdirSync as mkdirSync8 } from "fs";
21426
21554
  import { join as join40, resolve as resolve32 } from "path";
@@ -21540,12 +21668,12 @@ var init_vendorEntrySource = __esm(() => {
21540
21668
  // src/build/buildAngularVendor.ts
21541
21669
  var exports_buildAngularVendor = {};
21542
21670
  __export(exports_buildAngularVendor, {
21543
- computeAngularVendorPathsAsync: () => computeAngularVendorPathsAsync,
21544
- computeAngularVendorPaths: () => computeAngularVendorPaths,
21545
- computeAngularServerVendorPathsAsync: () => computeAngularServerVendorPathsAsync,
21546
- computeAngularServerVendorPaths: () => computeAngularServerVendorPaths,
21671
+ buildAngularServerVendor: () => buildAngularServerVendor,
21547
21672
  buildAngularVendor: () => buildAngularVendor,
21548
- buildAngularServerVendor: () => buildAngularServerVendor
21673
+ computeAngularServerVendorPaths: () => computeAngularServerVendorPaths,
21674
+ computeAngularServerVendorPathsAsync: () => computeAngularServerVendorPathsAsync,
21675
+ computeAngularVendorPaths: () => computeAngularVendorPaths,
21676
+ computeAngularVendorPathsAsync: () => computeAngularVendorPathsAsync
21549
21677
  });
21550
21678
  import { mkdirSync as mkdirSync9 } from "fs";
21551
21679
  import { join as join41 } from "path";
@@ -21772,8 +21900,8 @@ var init_buildAngularVendor = __esm(() => {
21772
21900
  // src/build/buildVueVendor.ts
21773
21901
  var exports_buildVueVendor = {};
21774
21902
  __export(exports_buildVueVendor, {
21775
- computeVueVendorPaths: () => computeVueVendorPaths,
21776
- buildVueVendor: () => buildVueVendor
21903
+ buildVueVendor: () => buildVueVendor,
21904
+ computeVueVendorPaths: () => computeVueVendorPaths
21777
21905
  });
21778
21906
  import { mkdirSync as mkdirSync10 } from "fs";
21779
21907
  import { join as join42 } from "path";
@@ -21837,8 +21965,8 @@ var init_buildVueVendor = __esm(() => {
21837
21965
  // src/build/buildSvelteVendor.ts
21838
21966
  var exports_buildSvelteVendor = {};
21839
21967
  __export(exports_buildSvelteVendor, {
21840
- computeSvelteVendorPaths: () => computeSvelteVendorPaths,
21841
- buildSvelteVendor: () => buildSvelteVendor
21968
+ buildSvelteVendor: () => buildSvelteVendor,
21969
+ computeSvelteVendorPaths: () => computeSvelteVendorPaths
21842
21970
  });
21843
21971
  import { mkdirSync as mkdirSync11 } from "fs";
21844
21972
  import { join as join43 } from "path";
@@ -24086,12 +24214,12 @@ var stripStringsAndComments = (source) => {
24086
24214
  // src/dev/dependencyGraph.ts
24087
24215
  var exports_dependencyGraph = {};
24088
24216
  __export(exports_dependencyGraph, {
24089
- removeFileFromGraph: () => removeFileFromGraph,
24090
- getAffectedFiles: () => getAffectedFiles,
24091
- extractDependencies: () => extractDependencies,
24092
- emptyDependencyGraph: () => emptyDependencyGraph,
24217
+ addFileToGraph: () => addFileToGraph,
24093
24218
  buildInitialDependencyGraph: () => buildInitialDependencyGraph,
24094
- addFileToGraph: () => addFileToGraph
24219
+ emptyDependencyGraph: () => emptyDependencyGraph,
24220
+ extractDependencies: () => extractDependencies,
24221
+ getAffectedFiles: () => getAffectedFiles,
24222
+ removeFileFromGraph: () => removeFileFromGraph
24095
24223
  });
24096
24224
  import { existsSync as existsSync32, readFileSync as readFileSync28 } from "fs";
24097
24225
  var {Glob: Glob9 } = globalThis.Bun;
@@ -24941,12 +25069,12 @@ var init_fileHashTracker = __esm(() => {
24941
25069
  // src/dev/transformCache.ts
24942
25070
  var exports_transformCache = {};
24943
25071
  __export(exports_transformCache, {
24944
- setTransformed: () => setTransformed,
24945
- invalidateAll: () => invalidateAll,
24946
- invalidate: () => invalidate,
24947
- getTransformed: () => getTransformed,
25072
+ findNearestComponent: () => findNearestComponent,
24948
25073
  getInvalidationVersion: () => getInvalidationVersion,
24949
- findNearestComponent: () => findNearestComponent
25074
+ getTransformed: () => getTransformed,
25075
+ invalidate: () => invalidate,
25076
+ invalidateAll: () => invalidateAll,
25077
+ setTransformed: () => setTransformed
24950
25078
  });
24951
25079
  var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.content, setTransformed = (filePath, content, mtime, imports) => {
24952
25080
  const resolvedImports = imports ?? [];
@@ -25247,9 +25375,9 @@ var init_inlinePageCss = __esm(() => {
25247
25375
  // src/dev/angular/resolveOwningComponents.ts
25248
25376
  var exports_resolveOwningComponents = {};
25249
25377
  __export(exports_resolveOwningComponents, {
25250
- resolveOwningComponents: () => resolveOwningComponents,
25378
+ invalidateResourceIndex: () => invalidateResourceIndex,
25251
25379
  resolveDescendantsOfParent: () => resolveDescendantsOfParent,
25252
- invalidateResourceIndex: () => invalidateResourceIndex
25380
+ resolveOwningComponents: () => resolveOwningComponents
25253
25381
  });
25254
25382
  import { readdirSync as readdirSync8, readFileSync as readFileSync31, statSync as statSync5 } from "fs";
25255
25383
  import { dirname as dirname28, extname as extname12, join as join47, resolve as resolve42 } from "path";
@@ -25523,10 +25651,10 @@ var init_resolveOwningComponents = __esm(() => {
25523
25651
  // src/dev/webSocket.ts
25524
25652
  var exports_webSocket = {};
25525
25653
  __export(exports_webSocket, {
25526
- handleHMRMessage: () => handleHMRMessage,
25527
- handleClientDisconnect: () => handleClientDisconnect,
25654
+ broadcastToClients: () => broadcastToClients,
25528
25655
  handleClientConnect: () => handleClientConnect,
25529
- broadcastToClients: () => broadcastToClients
25656
+ handleClientDisconnect: () => handleClientDisconnect,
25657
+ handleHMRMessage: () => handleHMRMessage
25530
25658
  });
25531
25659
  var MAX_RETAINED_HMR_UPDATES = 100, normalizedHmrTarget = (value) => {
25532
25660
  if (value === "capacitor-android")
@@ -25711,14 +25839,14 @@ var init_webSocket = __esm(() => {
25711
25839
  // src/dev/moduleServer.ts
25712
25840
  var exports_moduleServer = {};
25713
25841
  __export(exports_moduleServer, {
25714
- warnIfReactFastRefreshUnsupported: () => warnIfReactFastRefreshUnsupported,
25715
- warmCompilers: () => warmCompilers,
25716
- warmCache: () => warmCache,
25717
- setGlobalModuleServer: () => setGlobalModuleServer,
25718
- isReactFastRefreshSupported: () => isReactFastRefreshSupported,
25719
- invalidateModule: () => invalidateModule,
25842
+ SRC_URL_PREFIX: () => SRC_URL_PREFIX,
25720
25843
  createModuleServer: () => createModuleServer,
25721
- SRC_URL_PREFIX: () => SRC_URL_PREFIX
25844
+ invalidateModule: () => invalidateModule,
25845
+ isReactFastRefreshSupported: () => isReactFastRefreshSupported,
25846
+ setGlobalModuleServer: () => setGlobalModuleServer,
25847
+ warmCache: () => warmCache,
25848
+ warmCompilers: () => warmCompilers,
25849
+ warnIfReactFastRefreshUnsupported: () => warnIfReactFastRefreshUnsupported
25722
25850
  });
25723
25851
  import { existsSync as existsSync35, readFileSync as readFileSync32, realpathSync as realpathSync3, statSync as statSync6 } from "fs";
25724
25852
  import { basename as basename16, dirname as dirname29, extname as extname13, join as join48, resolve as resolve43, relative as relative17 } from "path";
@@ -26627,8 +26755,8 @@ export function __legacyDecorateParamTS(paramIndex, decorator) {
26627
26755
  // src/build/rewriteImports.ts
26628
26756
  var exports_rewriteImports = {};
26629
26757
  __export(exports_rewriteImports, {
26630
- rewriteVendorDirectories: () => rewriteVendorDirectories2,
26631
- rewriteImports: () => rewriteImports2
26758
+ rewriteImports: () => rewriteImports2,
26759
+ rewriteVendorDirectories: () => rewriteVendorDirectories2
26632
26760
  });
26633
26761
  var rewriteImports2 = async (outputPaths, vendorPaths) => {
26634
26762
  const jsFiles = outputPaths.filter((path) => path.endsWith(".js"));
@@ -26667,8 +26795,8 @@ var init_rewriteImports = __esm(() => {
26667
26795
  // src/dev/angular/hmrCompiler.ts
26668
26796
  var exports_hmrCompiler = {};
26669
26797
  __export(exports_hmrCompiler, {
26670
- getApplyMetadataModule: () => getApplyMetadataModule,
26671
- encodeHmrComponentId: () => encodeHmrComponentId
26798
+ encodeHmrComponentId: () => encodeHmrComponentId,
26799
+ getApplyMetadataModule: () => getApplyMetadataModule
26672
26800
  });
26673
26801
  import { dirname as dirname30, relative as relative18, resolve as resolve44 } from "path";
26674
26802
  import { performance as performance2 } from "perf_hooks";
@@ -26839,8 +26967,8 @@ var init_pageHandler = __esm(() => {
26839
26967
  // src/ember/index.ts
26840
26968
  var exports_ember = {};
26841
26969
  __export(exports_ember, {
26842
- invalidateEmberSsrCache: () => invalidateEmberSsrCache,
26843
- handleEmberPageRequest: () => handleEmberPageRequest
26970
+ handleEmberPageRequest: () => handleEmberPageRequest,
26971
+ invalidateEmberSsrCache: () => invalidateEmberSsrCache
26844
26972
  });
26845
26973
  var init_ember = __esm(() => {
26846
26974
  init_pageHandler();
@@ -29597,8 +29725,8 @@ var init_rebuildTrigger = __esm(() => {
29597
29725
  // src/build/buildDepVendor.ts
29598
29726
  var exports_buildDepVendor = {};
29599
29727
  __export(exports_buildDepVendor, {
29600
- computeDepVendorPaths: () => computeDepVendorPaths,
29601
- buildDepVendor: () => buildDepVendor
29728
+ buildDepVendor: () => buildDepVendor,
29729
+ computeDepVendorPaths: () => computeDepVendorPaths
29602
29730
  });
29603
29731
  import { mkdirSync as mkdirSync14 } from "fs";
29604
29732
  import { isBuiltin } from "module";
@@ -29922,9 +30050,9 @@ var init_buildDepVendor = __esm(() => {
29922
30050
  // src/core/devBuild.ts
29923
30051
  var exports_devBuild = {};
29924
30052
  __export(exports_devBuild, {
29925
- devBuild: () => devBuild,
30053
+ applyConfigChanges: () => applyConfigChanges,
29926
30054
  collectDepVendorSourceDirs: () => collectDepVendorSourceDirs,
29927
- applyConfigChanges: () => applyConfigChanges
30055
+ devBuild: () => devBuild
29928
30056
  });
29929
30057
  import { readdir as readdir6 } from "fs/promises";
29930
30058
  import { statSync as statSync7 } from "fs";
@@ -30594,9 +30722,9 @@ var init_hmr = __esm(() => {
30594
30722
  // src/plugins/devtoolsJson.ts
30595
30723
  var exports_devtoolsJson = {};
30596
30724
  __export(exports_devtoolsJson, {
30597
- resolveDevtoolsUuidCachePath: () => resolveDevtoolsUuidCachePath,
30725
+ devtoolsJson: () => devtoolsJson,
30598
30726
  normalizeDevtoolsWorkspaceRoot: () => normalizeDevtoolsWorkspaceRoot,
30599
- devtoolsJson: () => devtoolsJson
30727
+ resolveDevtoolsUuidCachePath: () => resolveDevtoolsUuidCachePath
30600
30728
  });
30601
30729
  import { existsSync as existsSync37, mkdirSync as mkdirSync15, readFileSync as readFileSync33, writeFileSync as writeFileSync10 } from "fs";
30602
30730
  import { dirname as dirname32, join as join51, resolve as resolve48 } from "path";
@@ -30940,19 +31068,77 @@ var init_requestInspector = __esm(() => {
30940
31068
  }).as("global");
30941
31069
  });
30942
31070
 
31071
+ // src/mobile/nativeAuth.ts
31072
+ import { readFileSync as readFileSync34 } from "fs";
31073
+ import { join as join52 } from "path";
31074
+ var ABSOLUTE_AUTH_PACKAGE = "@absolutejs/auth", ABSOLUTE_EXPO_AUTH_CORE_VERSION = "0.75.6", ABSOLUTE_EXPO_AUTH_PACKAGE = "@absolutejs/auth-expo", ABSOLUTE_EXPO_AUTH_VERSION = "0.0.2", ABSOLUTE_EXPO_SYNC_CORE_VERSION = "2.31.0", ABSOLUTE_EXPO_SYNC_PACKAGE = "@absolutejs/sync-expo", ABSOLUTE_EXPO_SYNC_VERSION = "0.0.2", ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV = "ABSOLUTE_AUTH_NATIVE_CLIENTS", ABSOLUTE_NATIVE_AUTH_SCOPES, ABSOLUTE_SYNC_PACKAGE = "@absolutejs/sync", readPackageManifest = (projectRoot) => {
31075
+ try {
31076
+ return JSON.parse(readFileSync34(join52(projectRoot, "package.json"), "utf8"));
31077
+ } catch {
31078
+ return;
31079
+ }
31080
+ }, packageManifestHas = (manifest, packageName) => {
31081
+ if (typeof manifest !== "object" || manifest === null)
31082
+ return false;
31083
+ return [
31084
+ Reflect.get(manifest, "dependencies"),
31085
+ Reflect.get(manifest, "devDependencies"),
31086
+ Reflect.get(manifest, "optionalDependencies"),
31087
+ Reflect.get(manifest, "peerDependencies")
31088
+ ].some((dependencies) => typeof dependencies === "object" && dependencies !== null && Object.hasOwn(dependencies, packageName));
31089
+ }, createAbsoluteMobileAuthManifest = (config) => {
31090
+ const scheme = config.deepLinkScheme ?? config.appId.toLowerCase();
31091
+ return {
31092
+ clientId: `absolutejs-native:${config.appId}`,
31093
+ issuer: config.productionOrigin,
31094
+ redirectUri: `${scheme}://auth/callback`,
31095
+ scopes: [...ABSOLUTE_NATIVE_AUTH_SCOPES]
31096
+ };
31097
+ }, installAbsoluteMobileAuthEnvironment = (projectRoot, config) => {
31098
+ const auth = resolveAbsoluteMobileAuthManifest(projectRoot, config);
31099
+ const serialized = serializeAbsoluteMobileAuthEnvironment(config, auth);
31100
+ if (serialized === undefined)
31101
+ delete process.env[ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV];
31102
+ else
31103
+ process.env[ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV] = serialized;
31104
+ return auth;
31105
+ }, projectUsesAbsoluteAuth = (projectRoot) => packageManifestHas(readPackageManifest(projectRoot), ABSOLUTE_AUTH_PACKAGE), projectUsesAbsoluteSync = (projectRoot) => packageManifestHas(readPackageManifest(projectRoot), ABSOLUTE_SYNC_PACKAGE), resolveAbsoluteMobileAuthManifest = (projectRoot, config) => projectUsesAbsoluteAuth(projectRoot) ? createAbsoluteMobileAuthManifest(config) : undefined, serializeAbsoluteMobileAuthEnvironment = (config, auth) => auth === undefined ? undefined : JSON.stringify([
31106
+ {
31107
+ ...auth,
31108
+ name: `${config.appName} native app`
31109
+ }
31110
+ ]);
31111
+ var init_nativeAuth = __esm(() => {
31112
+ ABSOLUTE_NATIVE_AUTH_SCOPES = ["openid", "profile"];
31113
+ });
31114
+
30943
31115
  // src/mobile/devDeviceAdapter.ts
30944
31116
  var exports_devDeviceAdapter = {};
30945
31117
  __export(exports_devDeviceAdapter, {
30946
- buildAbsoluteNativeDevAdapter: () => buildAbsoluteNativeDevAdapter,
30947
- absoluteNativeDevAdapterSource: () => absoluteNativeDevAdapterSource
31118
+ absoluteNativeDevAdapterSource: () => absoluteNativeDevAdapterSource,
31119
+ buildAbsoluteNativeDevAdapter: () => buildAbsoluteNativeDevAdapter
30948
31120
  });
30949
31121
  import { access as access3, mkdtemp as mkdtemp3, rm as rm15, writeFile as writeFile9 } from "fs/promises";
30950
- import { join as join52 } from "path";
31122
+ import { join as join53 } from "path";
30951
31123
  import { tmpdir } from "os";
30952
- var absoluteNativeDevAdapterSource = (projectRoot, mobile, resolveModule = (specifier) => specifier, expoAdapterModule = "@absolutejs/absolute/mobile/expo-devices") => {
31124
+ var absoluteNativeDevAdapterSource = (projectRoot, mobile, resolveModule = (specifier) => specifier, expoAdapterModule = "@absolutejs/absolute/mobile/expo-devices", expoAuthModule = "@absolutejs/absolute/mobile/expo-auth", expoSyncModule = "@absolutejs/absolute/mobile/expo-sync") => {
30953
31125
  if ((mobile.engine ?? "capacitor") === "expo") {
31126
+ const normalized = normalizeAbsoluteMobileConfig(mobile, projectRoot);
31127
+ const auth = projectUsesAbsoluteAuth(projectRoot) ? resolveAbsoluteMobileAuthManifest(projectRoot, normalized) : undefined;
31128
+ const sync = Boolean(auth && projectUsesAbsoluteSync(projectRoot));
31129
+ const syncConfig = sync ? {
31130
+ background: {
31131
+ endpoint: new URL("/__absolute/sync/background", normalized.productionOrigin).href,
31132
+ intervalMinutes: 15
31133
+ },
31134
+ socketTickets: true,
31135
+ storageSchema: discoverAbsoluteSyncSchema(projectRoot)
31136
+ } : undefined;
30954
31137
  return `import { installAbsoluteExpoWebDeviceAdapter } from ${JSON.stringify(expoAdapterModule)};
30955
- installAbsoluteExpoWebDeviceAdapter();`;
31138
+ ${auth ? `import { createAbsoluteExpoShellAuth } from ${JSON.stringify(expoAuthModule)};` : ""}
31139
+ ${sync ? `import { installAbsoluteExpoShellSync } from ${JSON.stringify(expoSyncModule)};` : ""}
31140
+ installAbsoluteExpoWebDeviceAdapter();
31141
+ ${auth ? `void createAbsoluteExpoShellAuth(${JSON.stringify(auth)}).then(auth => { ${sync ? `installAbsoluteExpoShellSync(auth, ${JSON.stringify(syncConfig)});` : ""} }).catch(error => console.error('[Absolute Mobile] Expo runtime initialization failed:', error));` : ""}`;
30956
31142
  }
30957
31143
  const plan = resolveAbsoluteDeviceCapabilityPlan(projectRoot);
30958
31144
  const imports = plan.capabilities.map((name, index) => {
@@ -30970,7 +31156,7 @@ installAbsoluteExpoWebDeviceAdapter();`;
30970
31156
  `);
30971
31157
  }, expoAdapterPath = async () => {
30972
31158
  const candidates = await Promise.all(["ts", "js"].map(async (extension) => {
30973
- const path2 = join52(import.meta.dir, `shellExpoDevices.${extension}`);
31159
+ const path2 = join53(import.meta.dir, `shellExpoDevices.${extension}`);
30974
31160
  try {
30975
31161
  await access3(path2);
30976
31162
  return path2;
@@ -30982,11 +31168,39 @@ installAbsoluteExpoWebDeviceAdapter();`;
30982
31168
  if (path)
30983
31169
  return path;
30984
31170
  throw new TypeError("The AbsoluteJS Expo development adapter is missing.");
31171
+ }, expoAuthPath = async () => {
31172
+ const candidates = await Promise.all(["ts", "js"].map(async (extension) => {
31173
+ const path2 = join53(import.meta.dir, `shellExpoAuth.${extension}`);
31174
+ try {
31175
+ await access3(path2);
31176
+ return path2;
31177
+ } catch {
31178
+ return;
31179
+ }
31180
+ }));
31181
+ const path = candidates.find((candidate) => candidate !== undefined);
31182
+ if (path)
31183
+ return path;
31184
+ throw new TypeError("The AbsoluteJS Expo Auth development adapter is missing.");
31185
+ }, expoSyncPath = async () => {
31186
+ const candidates = await Promise.all(["ts", "js"].map(async (extension) => {
31187
+ const path2 = join53(import.meta.dir, `shellExpoSync.${extension}`);
31188
+ try {
31189
+ await access3(path2);
31190
+ return path2;
31191
+ } catch {
31192
+ return;
31193
+ }
31194
+ }));
31195
+ const path = candidates.find((candidate) => candidate !== undefined);
31196
+ if (path)
31197
+ return path;
31198
+ throw new TypeError("The AbsoluteJS Expo Sync development adapter is missing.");
30985
31199
  }, buildAbsoluteNativeDevAdapter = async (projectRoot, mobile) => {
30986
- const temporaryDirectory = await mkdtemp3(join52(tmpdir(), "absolutejs-native-dev-adapter-"));
30987
- const entry = join52(temporaryDirectory, "entry.ts");
31200
+ const temporaryDirectory = await mkdtemp3(join53(tmpdir(), "absolutejs-native-dev-adapter-"));
31201
+ const entry = join53(temporaryDirectory, "entry.ts");
30988
31202
  try {
30989
- await writeFile9(entry, absoluteNativeDevAdapterSource(projectRoot, mobile, (specifier) => Bun.resolveSync(specifier, projectRoot), await expoAdapterPath()));
31203
+ await writeFile9(entry, absoluteNativeDevAdapterSource(projectRoot, mobile, (specifier) => Bun.resolveSync(specifier, projectRoot), await expoAdapterPath(), await expoAuthPath(), await expoSyncPath()));
30990
31204
  const result = await Bun.build({
30991
31205
  entrypoints: [entry],
30992
31206
  format: "esm",
@@ -31002,28 +31216,31 @@ installAbsoluteExpoWebDeviceAdapter();`;
31002
31216
  }
31003
31217
  };
31004
31218
  var init_devDeviceAdapter = __esm(() => {
31219
+ init_config();
31005
31220
  init_deviceCapabilities();
31221
+ init_nativeAuth();
31222
+ init_syncSchema();
31006
31223
  });
31007
31224
 
31008
31225
  // src/core/prerender.ts
31009
31226
  var exports_prerender = {};
31010
31227
  __export(exports_prerender, {
31011
- routeToFilename: () => routeToFilename,
31012
- rerenderRoute: () => rerenderRoute,
31013
- readTimestamp: () => readTimestamp,
31014
- prerenderWithServer: () => prerenderWithServer,
31228
+ PRERENDER_BYPASS_HEADER: () => PRERENDER_BYPASS_HEADER,
31015
31229
  prerender: () => prerender,
31016
- PRERENDER_BYPASS_HEADER: () => PRERENDER_BYPASS_HEADER
31230
+ prerenderWithServer: () => prerenderWithServer,
31231
+ readTimestamp: () => readTimestamp,
31232
+ rerenderRoute: () => rerenderRoute,
31233
+ routeToFilename: () => routeToFilename
31017
31234
  });
31018
- import { mkdirSync as mkdirSync16, readFileSync as readFileSync34 } from "fs";
31019
- import { join as join53 } from "path";
31235
+ import { mkdirSync as mkdirSync16, readFileSync as readFileSync35 } from "fs";
31236
+ import { join as join54 } from "path";
31020
31237
  var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_TIMEOUT_MS = 30000, DEFAULT_FETCH_TIMEOUT_MS = 1e4, PRERENDER_BYPASS_HEADER = "X-Absolute-Prerender-Bypass", routeToFilename = (route) => route === "/" ? "index.html" : `${route.slice(1).replace(/\//g, "-")}.html`, writeTimestamp = async (htmlPath) => {
31021
31238
  const metaPath = htmlPath.replace(/\.html$/, ".meta");
31022
31239
  await Bun.write(metaPath, String(Date.now()));
31023
31240
  }, readTimestamp = (htmlPath) => {
31024
31241
  const metaPath = htmlPath.replace(/\.html$/, ".meta");
31025
31242
  try {
31026
- const content = readFileSync34(metaPath, "utf-8");
31243
+ const content = readFileSync35(metaPath, "utf-8");
31027
31244
  return Number(content) || 0;
31028
31245
  } catch {
31029
31246
  return 0;
@@ -31086,7 +31303,7 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
31086
31303
  if (!isCompleteHtml(html))
31087
31304
  return false;
31088
31305
  const fileName = routeToFilename(route);
31089
- const filePath = join53(prerenderDir, fileName);
31306
+ const filePath = join54(prerenderDir, fileName);
31090
31307
  await Bun.write(filePath, html);
31091
31308
  await writeTimestamp(filePath);
31092
31309
  return true;
@@ -31116,13 +31333,13 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
31116
31333
  return;
31117
31334
  }
31118
31335
  const fileName = routeToFilename(route);
31119
- const filePath = join53(prerenderDir, fileName);
31336
+ const filePath = join54(prerenderDir, fileName);
31120
31337
  await Bun.write(filePath, html);
31121
31338
  await writeTimestamp(filePath);
31122
31339
  result.routes.set(route, filePath);
31123
31340
  log2?.(` Pre-rendered ${route} \u2192 ${fileName} (${html.length} bytes)`);
31124
31341
  }, prerender = async (port, outDir, staticConfig, log2) => {
31125
- const prerenderDir = join53(outDir, "_prerendered");
31342
+ const prerenderDir = join54(outDir, "_prerendered");
31126
31343
  mkdirSync16(prerenderDir, { recursive: true });
31127
31344
  const baseUrl = `http://localhost:${port}`;
31128
31345
  let routes;
@@ -31235,23 +31452,23 @@ var init_prerender = () => {};
31235
31452
  // src/dev/serverEntryWatcher.ts
31236
31453
  var exports_serverEntryWatcher = {};
31237
31454
  __export(exports_serverEntryWatcher, {
31238
- startServerEntryWatcher: () => startServerEntryWatcher,
31455
+ isAtomicWriteTemp: () => isAtomicWriteTemp,
31239
31456
  startFilePollingFallback: () => startFilePollingFallback,
31240
- isAtomicWriteTemp: () => isAtomicWriteTemp
31457
+ startServerEntryWatcher: () => startServerEntryWatcher
31241
31458
  });
31242
31459
  import {
31243
31460
  copyFileSync as copyFileSync4,
31244
31461
  existsSync as existsSync41,
31245
31462
  readdirSync as readdirSync12,
31246
- readFileSync as readFileSync38,
31463
+ readFileSync as readFileSync39,
31247
31464
  statSync as statSync8,
31248
31465
  watch as watch2
31249
31466
  } from "fs";
31250
31467
  import { createHash as createHash9 } from "crypto";
31251
- import { dirname as dirname33, join as join57, resolve as resolve50 } from "path";
31468
+ import { dirname as dirname33, join as join58, resolve as resolve50 } from "path";
31252
31469
  var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETRY_DELAY_MS = 250, MAX_ENTRY_IMPORT_ATTEMPTS = 3, WATCH_FALLBACK_INTERVAL_MS = 250, ATOMIC_WRITE_TEMP_PATTERNS2, isAtomicWriteTemp = (filename) => filename.endsWith(".tmp") || filename.includes(".tmp.") || filename.endsWith("~") || filename.startsWith(".#") || filename.startsWith(".absolutejs-hmr-") || ATOMIC_WRITE_TEMP_PATTERNS2.some((pattern) => pattern.test(filename)), fileHash = (path) => {
31253
31470
  try {
31254
- return createHash9("sha256").update(readFileSync38(path)).digest("hex");
31471
+ return createHash9("sha256").update(readFileSync39(path)).digest("hex");
31255
31472
  } catch {
31256
31473
  return null;
31257
31474
  }
@@ -31290,7 +31507,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETR
31290
31507
  let pendingEntryCause = null;
31291
31508
  let siblingSequence = 0;
31292
31509
  const importFreshEntry = async (attempt = 1) => {
31293
- const siblingPath = join57(entryDir, `.absolutejs-hmr-${process.pid}-${siblingSequence++}.ts`);
31510
+ const siblingPath = join58(entryDir, `.absolutejs-hmr-${process.pid}-${siblingSequence++}.ts`);
31294
31511
  let failure;
31295
31512
  try {
31296
31513
  copyFileSync4(entryPath, siblingPath);
@@ -31403,7 +31620,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETR
31403
31620
  continue;
31404
31621
  let st2;
31405
31622
  try {
31406
- st2 = statSync8(join57(dir, entry.name));
31623
+ st2 = statSync8(join58(dir, entry.name));
31407
31624
  } catch {
31408
31625
  continue;
31409
31626
  }
@@ -32271,8 +32488,8 @@ var handleHTMXPageRequest = async (pagePath, options = {}) => {
32271
32488
  };
32272
32489
  // src/core/prepare.ts
32273
32490
  import { createHash as createHash8 } from "crypto";
32274
- import { existsSync as existsSync39, readdirSync as readdirSync10, readFileSync as readFileSync35 } from "fs";
32275
- import { basename as basename18, join as join54, relative as relative20, resolve as resolvePath4 } from "path";
32491
+ import { existsSync as existsSync39, readdirSync as readdirSync10, readFileSync as readFileSync36 } from "fs";
32492
+ import { basename as basename18, join as join55, relative as relative20, resolve as resolvePath4 } from "path";
32276
32493
  import { Elysia as Elysia10, NotFound } from "elysia";
32277
32494
 
32278
32495
  // src/plugins/openApiPlugin.ts
@@ -32802,6 +33019,7 @@ var createAbsoluteMobileCompatibilityDispatcher = (options) => {
32802
33019
  };
32803
33020
 
32804
33021
  // src/mobile/associationFiles.ts
33022
+ init_config();
32805
33023
  import {
32806
33024
  access,
32807
33025
  mkdir as mkdir5,
@@ -32812,147 +33030,6 @@ import {
32812
33030
  } from "fs/promises";
32813
33031
  import { resolve as resolve12 } from "path";
32814
33032
  import { Elysia as Elysia3 } from "elysia";
32815
-
32816
- // src/mobile/config.ts
32817
- import { resolve as resolve11 } from "path";
32818
- var APP_ID_PATTERN = /^[A-Za-z][\w]*(?:\.[A-Za-z][\w]*)+$/;
32819
- var SCHEME_PATTERN = /^[a-z][a-z0-9+.-]*$/;
32820
- var APPLE_APP_ID_PREFIX_PATTERN = /^[A-Z0-9]{10}$/;
32821
- var CERTIFICATE_FINGERPRINT_PATTERN = /^[0-9A-F]{64}$/;
32822
- var HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?))*$/;
32823
- var resolveProjectPath = (projectRoot, value, field) => {
32824
- const root = resolve11(projectRoot);
32825
- const path = resolve11(root, value);
32826
- if (path !== root && !path.startsWith(`${root}/`)) {
32827
- throw new TypeError(`${field} must remain inside the project root.`);
32828
- }
32829
- return path;
32830
- };
32831
- var requireText = (value, field) => {
32832
- const normalized = value.trim();
32833
- if (!normalized)
32834
- throw new TypeError(`${field} must not be empty.`);
32835
- return normalized;
32836
- };
32837
- var normalizeEntry = (entry) => {
32838
- const normalized = requireText(entry ?? "/", "mobile.entry");
32839
- if (!normalized.startsWith("/") || normalized.startsWith("//")) {
32840
- throw new TypeError("mobile.entry must be an absolute application path.");
32841
- }
32842
- return normalized;
32843
- };
32844
- var normalizeProductionOrigin = (value) => {
32845
- const parsed = new URL(requireText(value, "mobile.server.productionOrigin"));
32846
- const isLoopbackHttp = parsed.protocol === "http:" && (parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1" || parsed.hostname === "[::1]");
32847
- if (parsed.protocol !== "https:" && !isLoopbackHttp) {
32848
- throw new TypeError("mobile.server.productionOrigin must use HTTPS, except for a loopback development origin.");
32849
- }
32850
- if (parsed.username || parsed.password || parsed.pathname !== "/" || parsed.search || parsed.hash) {
32851
- throw new TypeError("mobile.server.productionOrigin must be an origin without credentials, path, query, or hash.");
32852
- }
32853
- return parsed.origin;
32854
- };
32855
- var normalizePlatforms = (platforms) => {
32856
- const normalized = [
32857
- ...new Set(platforms ?? ["ios", "android"])
32858
- ];
32859
- if (normalized.length === 0) {
32860
- throw new TypeError("mobile.platforms must contain at least one platform.");
32861
- }
32862
- return normalized;
32863
- };
32864
- var normalizeHosts = (hosts, productionOrigin) => {
32865
- const normalizeHostname = (host) => {
32866
- const value = requireText(host, "mobile.deepLinks.hosts").toLowerCase();
32867
- if (!HOSTNAME_PATTERN.test(value)) {
32868
- throw new TypeError("mobile.deepLinks.hosts entries must be valid hostnames without ports, wildcards, or paths.");
32869
- }
32870
- return value;
32871
- };
32872
- const productionHostname = new URL(productionOrigin).hostname;
32873
- const normalized = new Set(productionHostname === "[::1]" ? [] : [normalizeHostname(productionHostname)]);
32874
- for (const host of hosts ?? []) {
32875
- normalized.add(normalizeHostname(host));
32876
- }
32877
- return [...normalized].sort();
32878
- };
32879
- var normalizeAppleAppIdPrefix = (value) => {
32880
- if (value === undefined)
32881
- return;
32882
- const normalized = requireText(value, "mobile.deepLinks.apple.appIdPrefix").toUpperCase();
32883
- if (!APPLE_APP_ID_PREFIX_PATTERN.test(normalized)) {
32884
- throw new TypeError("mobile.deepLinks.apple.appIdPrefix must contain ten letters or digits.");
32885
- }
32886
- return normalized;
32887
- };
32888
- var normalizeIosVersion = (value) => {
32889
- if (value === undefined)
32890
- return;
32891
- const normalized = requireText(value, "mobile.ios.version");
32892
- if (!/^\d+(?:\.\d+){0,2}$/u.test(normalized)) {
32893
- throw new TypeError("mobile.ios.version must contain one to three dot-separated integer components, for example 1.4.0.");
32894
- }
32895
- return normalized;
32896
- };
32897
- var normalizeCertificateFingerprints = (values) => [
32898
- ...new Set((values ?? []).map((value) => requireText(value, "mobile.deepLinks.android.sha256CertificateFingerprints").replaceAll(":", "").toUpperCase()).map((value) => {
32899
- if (!CERTIFICATE_FINGERPRINT_PATTERN.test(value)) {
32900
- throw new TypeError("mobile.deepLinks.android.sha256CertificateFingerprints entries must be SHA-256 certificate fingerprints.");
32901
- }
32902
- return value.match(/.{2}/g)?.join(":") ?? value;
32903
- }))
32904
- ].sort();
32905
- var normalizeExpoNativeRoutes = (config, projectRoot) => {
32906
- if (config.engine !== "expo")
32907
- return {};
32908
- const routes = config.routes?.native ?? {};
32909
- const normalized = {};
32910
- for (const [route, module] of Object.entries(routes)) {
32911
- const path = normalizeEntry(route);
32912
- if (path.includes("?") || path.includes("#") || path !== "/" && path.endsWith("/")) {
32913
- throw new TypeError(`mobile.routes.native route ${path} must be a canonical path without a query, fragment, or trailing slash.`);
32914
- }
32915
- if (path === "/__absolute/native") {
32916
- throw new TypeError("mobile.routes.native reserves /__absolute/native for the Expo diagnostic screen.");
32917
- }
32918
- if (path.includes("*") || path.includes(":")) {
32919
- throw new TypeError(`mobile.routes.native route ${path} must be static during the Expo experiment; parameters and wildcards are not supported yet.`);
32920
- }
32921
- normalized[path] = resolveProjectPath(projectRoot, requireText(module, `mobile.routes.native[${path}]`), `mobile.routes.native[${path}]`);
32922
- }
32923
- return Object.fromEntries(Object.entries(normalized).sort(([left], [right]) => left.localeCompare(right)));
32924
- };
32925
- var normalizeAbsoluteMobileConfig = (config, projectRoot) => {
32926
- const appId = requireText(config.appId, "mobile.appId");
32927
- if (!APP_ID_PATTERN.test(appId)) {
32928
- throw new TypeError("mobile.appId must use reverse-domain notation, for example com.example.app.");
32929
- }
32930
- const productionOrigin = normalizeProductionOrigin(config.server.productionOrigin);
32931
- const deepLinkScheme = (config.deepLinks?.scheme ?? appId).trim().toLowerCase();
32932
- if (deepLinkScheme && !SCHEME_PATTERN.test(deepLinkScheme)) {
32933
- throw new TypeError("mobile.deepLinks.scheme is not a valid URL scheme.");
32934
- }
32935
- return {
32936
- androidCertificateFingerprints: normalizeCertificateFingerprints(config.deepLinks?.android?.sha256CertificateFingerprints),
32937
- appId,
32938
- appleAppIdPrefix: normalizeAppleAppIdPrefix(config.deepLinks?.apple?.appIdPrefix),
32939
- appName: requireText(config.appName, "mobile.appName"),
32940
- bundleDirectory: resolveProjectPath(projectRoot, config.bundleDirectory ?? ".absolutejs/mobile/web", "mobile.bundleDirectory"),
32941
- deepLinkHosts: normalizeHosts(config.deepLinks?.hosts, productionOrigin),
32942
- deepLinkScheme,
32943
- engine: config.engine ?? "capacitor",
32944
- entry: normalizeEntry(config.entry),
32945
- expoNativeRoutes: normalizeExpoNativeRoutes(config, projectRoot),
32946
- ...config.engine === "expo" ? { expoSdkVersion: config.expo?.sdkVersion ?? 57 } : {},
32947
- iosVersion: normalizeIosVersion(config.ios?.version),
32948
- nativeProjectDirectory: resolveProjectPath(projectRoot, config.nativeProject?.directory ?? (config.engine === "expo" ? ".absolutejs/mobile/expo" : "mobile"), "mobile.nativeProject.directory"),
32949
- platforms: normalizePlatforms(config.platforms),
32950
- productionOrigin,
32951
- pushAndroidGoogleServicesFile: resolveProjectPath(projectRoot, config.pushNotifications?.android?.googleServicesFile ?? "google-services.json", "mobile.pushNotifications.android.googleServicesFile")
32952
- };
32953
- };
32954
-
32955
- // src/mobile/associationFiles.ts
32956
33033
  var JSON_HEADERS = {
32957
33034
  "cache-control": "public, max-age=300, must-revalidate",
32958
33035
  "content-type": "application/json; charset=utf-8"
@@ -33773,10 +33850,10 @@ var registerIconVersioning = (buildDir) => {
33773
33850
  if (cached !== undefined)
33774
33851
  return cached;
33775
33852
  const path = href.split("?")[0] ?? href;
33776
- const filePath = join54(buildDir, path);
33853
+ const filePath = join55(buildDir, path);
33777
33854
  let versioned = href;
33778
33855
  if (existsSync39(filePath)) {
33779
- const hash = createHash8("sha256").update(readFileSync35(filePath)).digest("hex").slice(0, ICON_HASH_LENGTH);
33856
+ const hash = createHash8("sha256").update(readFileSync36(filePath)).digest("hex").slice(0, ICON_HASH_LENGTH);
33780
33857
  versioned = href.includes("?") ? `${href}&v=${hash}` : `${href}?v=${hash}`;
33781
33858
  }
33782
33859
  cache2.set(href, versioned);
@@ -33912,13 +33989,13 @@ var loadPrerenderMap = (prerenderDir) => {
33912
33989
  continue;
33913
33990
  const name = basename18(entry, ".html");
33914
33991
  const route = name === "index" ? "/" : `/${name}`;
33915
- map.set(route, join54(prerenderDir, entry));
33992
+ map.set(route, join55(prerenderDir, entry));
33916
33993
  }
33917
33994
  return map;
33918
33995
  };
33919
33996
  var loadMobileCompatibilityPlugin = async (buildDir) => {
33920
- const root = join54(buildDir, ".absolutejs", "mobile-compatibility");
33921
- if (!existsSync39(join54(root, "current.json"))) {
33997
+ const root = join55(buildDir, ".absolutejs", "mobile-compatibility");
33998
+ if (!existsSync39(join55(root, "current.json"))) {
33922
33999
  return new Elysia10({ name: "absolutejs-mobile-compatibility-empty" });
33923
34000
  }
33924
34001
  const options = await loadAbsoluteMobileMaterializedBundle(root);
@@ -33971,7 +34048,7 @@ var prepare = async (configOrPath) => {
33971
34048
  return result;
33972
34049
  }
33973
34050
  stepStartedAt = performance.now();
33974
- const manifest = JSON.parse(readFileSync35(`${buildDir}/manifest.json`, "utf-8"));
34051
+ const manifest = JSON.parse(readFileSync36(`${buildDir}/manifest.json`, "utf-8"));
33975
34052
  setCurrentIslandManifest(manifest);
33976
34053
  if (config.islands?.registry) {
33977
34054
  setCurrentIslandRegistry(await loadIslandRegistry(config.islands.registry));
@@ -33979,14 +34056,14 @@ var prepare = async (configOrPath) => {
33979
34056
  setCurrentPageIslandMetadata(await loadPageIslandMetadata(config));
33980
34057
  recordStep("load production manifest and island metadata", stepStartedAt);
33981
34058
  stepStartedAt = performance.now();
33982
- const conventionsPath = join54(buildDir, "conventions.json");
34059
+ const conventionsPath = join55(buildDir, "conventions.json");
33983
34060
  if (existsSync39(conventionsPath)) {
33984
- const conventions2 = JSON.parse(readFileSync35(conventionsPath, "utf-8"));
34061
+ const conventions2 = JSON.parse(readFileSync36(conventionsPath, "utf-8"));
33985
34062
  setConventions(conventions2);
33986
34063
  }
33987
- const spaRoutesPath = join54(buildDir, "spa-routes.json");
34064
+ const spaRoutesPath = join55(buildDir, "spa-routes.json");
33988
34065
  if (existsSync39(spaRoutesPath)) {
33989
- setSpaRouteManifest(JSON.parse(readFileSync35(spaRoutesPath, "utf-8")));
34066
+ setSpaRouteManifest(JSON.parse(readFileSync36(spaRoutesPath, "utf-8")));
33990
34067
  }
33991
34068
  recordStep("load production conventions", stepStartedAt);
33992
34069
  stepStartedAt = performance.now();
@@ -33997,7 +34074,7 @@ var prepare = async (configOrPath) => {
33997
34074
  prefix: "",
33998
34075
  staticLimit: MAX_STATIC_ROUTE_COUNT
33999
34076
  });
34000
- const generatedAssetsRoot = join54(buildDir, ".absolutejs");
34077
+ const generatedAssetsRoot = join55(buildDir, ".absolutejs");
34001
34078
  const generatedAssetsPlugin = new Elysia10({
34002
34079
  name: "absolutejs-generated-assets"
34003
34080
  }).get("/.absolutejs/*", async ({ params, set }) => {
@@ -34035,7 +34112,7 @@ var prepare = async (configOrPath) => {
34035
34112
  responseValue.headers.set("cache-control", isFingerprintedAsset(pathname) ? "public, max-age=31536000, immutable" : "public, max-age=0, must-revalidate");
34036
34113
  });
34037
34114
  stepStartedAt = performance.now();
34038
- const prerenderDir = join54(buildDir, "_prerendered");
34115
+ const prerenderDir = join55(buildDir, "_prerendered");
34039
34116
  const prerenderMap = loadPrerenderMap(prerenderDir);
34040
34117
  const mobileCompatibilityPlugin = await loadMobileCompatibilityPlugin(buildDir);
34041
34118
  const mobileAssociationPlugin = createAbsoluteMobileAssociationPlugin(config.mobile, process.cwd(), { requireAll: true });
@@ -34105,15 +34182,15 @@ import {
34105
34182
  copyFileSync as copyFileSync3,
34106
34183
  existsSync as existsSync40,
34107
34184
  mkdirSync as mkdirSync17,
34108
- readFileSync as readFileSync36,
34185
+ readFileSync as readFileSync37,
34109
34186
  rmSync as rmSync4
34110
34187
  } from "fs";
34111
34188
  import { X509Certificate } from "crypto";
34112
34189
  import { isIP } from "net";
34113
- import { join as join55 } from "path";
34114
- var CERT_DIR = join55(process.cwd(), ".absolutejs");
34115
- var CERT_PATH = join55(CERT_DIR, "cert.pem");
34116
- var KEY_PATH = join55(CERT_DIR, "key.pem");
34190
+ import { join as join56 } from "path";
34191
+ var CERT_DIR = join56(process.cwd(), ".absolutejs");
34192
+ var CERT_PATH = join56(CERT_DIR, "cert.pem");
34193
+ var KEY_PATH = join56(CERT_DIR, "key.pem");
34117
34194
  var CERT_VALIDITY_DAYS = 365;
34118
34195
  var DEFAULT_CERTIFICATE_HOSTS = ["localhost", "127.0.0.1", "::1"];
34119
34196
  var CERTIFICATE_HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?))*$/u;
@@ -34135,7 +34212,7 @@ var normalizeDevCertificateHosts = (hosts = []) => {
34135
34212
  };
34136
34213
  var certificateIsUsable = (hosts) => {
34137
34214
  try {
34138
- const certPem = readFileSync36(CERT_PATH, "utf-8");
34215
+ const certPem = readFileSync37(CERT_PATH, "utf-8");
34139
34216
  const certificate = new X509Certificate(certPem);
34140
34217
  if (new Date(certificate.validTo).getTime() <= Date.now())
34141
34218
  return false;
@@ -34227,8 +34304,8 @@ var loadDevCert = (hosts = []) => {
34227
34304
  return null;
34228
34305
  try {
34229
34306
  return {
34230
- cert: readFileSync36(paths.cert, "utf-8"),
34231
- key: readFileSync36(paths.key, "utf-8")
34307
+ cert: readFileSync37(paths.cert, "utf-8"),
34308
+ key: readFileSync37(paths.key, "utf-8")
34232
34309
  };
34233
34310
  } catch {
34234
34311
  return null;
@@ -34238,18 +34315,18 @@ var loadDevCert = (hosts = []) => {
34238
34315
  // src/utils/instanceRegistry.ts
34239
34316
  import {
34240
34317
  mkdirSync as mkdirSync18,
34241
- readFileSync as readFileSync37,
34318
+ readFileSync as readFileSync38,
34242
34319
  readdirSync as readdirSync11,
34243
34320
  unlinkSync as unlinkSync2,
34244
34321
  writeFileSync as writeFileSync11
34245
34322
  } from "fs";
34246
34323
  import { homedir as homedir2 } from "os";
34247
- import { basename as basename19, join as join56 } from "path";
34324
+ import { basename as basename19, join as join57 } from "path";
34248
34325
  var registeredPids = new Set;
34249
34326
  var exitHandlerRegistered = false;
34250
- var instanceFilePath = (pid) => join56(instanceRegistryDir(), `${pid}.json`);
34251
- var instanceLogPath = (pid) => join56(instanceRegistryDir(), `${pid}.log`);
34252
- var instanceRegistryDir = () => join56(homedir2(), ".absolutejs", "instances");
34327
+ var instanceFilePath = (pid) => join57(instanceRegistryDir(), `${pid}.json`);
34328
+ var instanceLogPath = (pid) => join57(instanceRegistryDir(), `${pid}.log`);
34329
+ var instanceRegistryDir = () => join57(homedir2(), ".absolutejs", "instances");
34253
34330
  var removeInstanceFilesSync = (pid) => {
34254
34331
  try {
34255
34332
  unlinkSync2(instanceFilePath(pid));
@@ -34271,7 +34348,7 @@ var registerExitHandlerOnce = () => {
34271
34348
  };
34272
34349
  var readJsonFile = (path) => {
34273
34350
  try {
34274
- return JSON.parse(readFileSync37(path, "utf-8"));
34351
+ return JSON.parse(readFileSync38(path, "utf-8"));
34275
34352
  } catch {
34276
34353
  return null;
34277
34354
  }
@@ -34284,7 +34361,7 @@ var registerInstance = (record) => {
34284
34361
  return record;
34285
34362
  };
34286
34363
  var resolveProjectName = (cwd2) => {
34287
- const parsed = readJsonFile(join56(cwd2, "package.json"));
34364
+ const parsed = readJsonFile(join57(cwd2, "package.json"));
34288
34365
  if (parsed !== null && typeof parsed === "object" && typeof parsed.name === "string" && parsed.name.trim().length > 0) {
34289
34366
  return parsed.name;
34290
34367
  }
@@ -34596,28 +34673,28 @@ var generateHeadElement = ({
34596
34673
  };
34597
34674
  // src/utils/defineEnv.ts
34598
34675
  var {env: bunEnv } = globalThis.Bun;
34599
- import { existsSync as existsSync42, readFileSync as readFileSync39 } from "fs";
34676
+ import { existsSync as existsSync42, readFileSync as readFileSync40 } from "fs";
34600
34677
  import { resolve as resolve51 } from "path";
34601
34678
 
34602
34679
  // node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
34603
34680
  var exports_value = {};
34604
34681
  __export(exports_value, {
34605
- IsUndefined: () => IsUndefined,
34606
- IsUint8Array: () => IsUint8Array,
34607
- IsSymbol: () => IsSymbol,
34608
- IsString: () => IsString,
34609
- IsRegExp: () => IsRegExp,
34610
- IsObject: () => IsObject,
34611
- IsNumber: () => IsNumber,
34612
- IsNull: () => IsNull,
34613
- IsIterator: () => IsIterator,
34614
- IsFunction: () => IsFunction,
34615
- IsDate: () => IsDate,
34616
- IsBoolean: () => IsBoolean,
34617
- IsBigInt: () => IsBigInt,
34618
- IsAsyncIterator: () => IsAsyncIterator,
34682
+ HasPropertyKey: () => HasPropertyKey,
34619
34683
  IsArray: () => IsArray,
34620
- HasPropertyKey: () => HasPropertyKey
34684
+ IsAsyncIterator: () => IsAsyncIterator,
34685
+ IsBigInt: () => IsBigInt,
34686
+ IsBoolean: () => IsBoolean,
34687
+ IsDate: () => IsDate,
34688
+ IsFunction: () => IsFunction,
34689
+ IsIterator: () => IsIterator,
34690
+ IsNull: () => IsNull,
34691
+ IsNumber: () => IsNumber,
34692
+ IsObject: () => IsObject,
34693
+ IsRegExp: () => IsRegExp,
34694
+ IsString: () => IsString,
34695
+ IsSymbol: () => IsSymbol,
34696
+ IsUint8Array: () => IsUint8Array,
34697
+ IsUndefined: () => IsUndefined
34621
34698
  });
34622
34699
  function HasPropertyKey(value, key) {
34623
34700
  return key in value;
@@ -34990,57 +35067,57 @@ function IsSchema(value) {
34990
35067
  // node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
34991
35068
  var exports_type = {};
34992
35069
  __export(exports_type, {
34993
- TypeGuardUnknownTypeError: () => TypeGuardUnknownTypeError,
34994
- IsVoid: () => IsVoid2,
34995
- IsUnsafe: () => IsUnsafe2,
34996
- IsUnknown: () => IsUnknown2,
34997
- IsUnionLiteral: () => IsUnionLiteral,
34998
- IsUnion: () => IsUnion2,
34999
- IsUndefined: () => IsUndefined4,
35000
- IsUint8Array: () => IsUint8Array4,
35001
- IsTuple: () => IsTuple2,
35002
- IsTransform: () => IsTransform2,
35003
- IsThis: () => IsThis2,
35004
- IsTemplateLiteral: () => IsTemplateLiteral2,
35005
- IsSymbol: () => IsSymbol4,
35006
- IsString: () => IsString4,
35007
- IsSchema: () => IsSchema2,
35008
- IsRegExp: () => IsRegExp3,
35009
- IsRef: () => IsRef2,
35010
- IsRecursive: () => IsRecursive,
35011
- IsRecord: () => IsRecord2,
35012
- IsReadonly: () => IsReadonly2,
35013
- IsProperties: () => IsProperties,
35014
- IsPromise: () => IsPromise3,
35015
- IsOptional: () => IsOptional2,
35016
- IsObject: () => IsObject4,
35017
- IsNumber: () => IsNumber4,
35018
- IsNull: () => IsNull4,
35019
- IsNot: () => IsNot2,
35020
- IsNever: () => IsNever2,
35021
- IsMappedResult: () => IsMappedResult2,
35022
- IsMappedKey: () => IsMappedKey2,
35023
- IsLiteralValue: () => IsLiteralValue2,
35024
- IsLiteralString: () => IsLiteralString,
35025
- IsLiteralNumber: () => IsLiteralNumber,
35026
- IsLiteralBoolean: () => IsLiteralBoolean,
35027
- IsLiteral: () => IsLiteral2,
35028
- IsKindOf: () => IsKindOf2,
35029
- IsKind: () => IsKind2,
35030
- IsIterator: () => IsIterator4,
35031
- IsIntersect: () => IsIntersect2,
35032
- IsInteger: () => IsInteger3,
35033
- IsImport: () => IsImport,
35034
- IsFunction: () => IsFunction4,
35035
- IsDate: () => IsDate4,
35036
- IsConstructor: () => IsConstructor2,
35037
- IsComputed: () => IsComputed2,
35038
- IsBoolean: () => IsBoolean4,
35039
- IsBigInt: () => IsBigInt4,
35040
- IsAsyncIterator: () => IsAsyncIterator4,
35041
- IsArray: () => IsArray4,
35070
+ IsAny: () => IsAny2,
35042
35071
  IsArgument: () => IsArgument2,
35043
- IsAny: () => IsAny2
35072
+ IsArray: () => IsArray4,
35073
+ IsAsyncIterator: () => IsAsyncIterator4,
35074
+ IsBigInt: () => IsBigInt4,
35075
+ IsBoolean: () => IsBoolean4,
35076
+ IsComputed: () => IsComputed2,
35077
+ IsConstructor: () => IsConstructor2,
35078
+ IsDate: () => IsDate4,
35079
+ IsFunction: () => IsFunction4,
35080
+ IsImport: () => IsImport,
35081
+ IsInteger: () => IsInteger3,
35082
+ IsIntersect: () => IsIntersect2,
35083
+ IsIterator: () => IsIterator4,
35084
+ IsKind: () => IsKind2,
35085
+ IsKindOf: () => IsKindOf2,
35086
+ IsLiteral: () => IsLiteral2,
35087
+ IsLiteralBoolean: () => IsLiteralBoolean,
35088
+ IsLiteralNumber: () => IsLiteralNumber,
35089
+ IsLiteralString: () => IsLiteralString,
35090
+ IsLiteralValue: () => IsLiteralValue2,
35091
+ IsMappedKey: () => IsMappedKey2,
35092
+ IsMappedResult: () => IsMappedResult2,
35093
+ IsNever: () => IsNever2,
35094
+ IsNot: () => IsNot2,
35095
+ IsNull: () => IsNull4,
35096
+ IsNumber: () => IsNumber4,
35097
+ IsObject: () => IsObject4,
35098
+ IsOptional: () => IsOptional2,
35099
+ IsPromise: () => IsPromise3,
35100
+ IsProperties: () => IsProperties,
35101
+ IsReadonly: () => IsReadonly2,
35102
+ IsRecord: () => IsRecord2,
35103
+ IsRecursive: () => IsRecursive,
35104
+ IsRef: () => IsRef2,
35105
+ IsRegExp: () => IsRegExp3,
35106
+ IsSchema: () => IsSchema2,
35107
+ IsString: () => IsString4,
35108
+ IsSymbol: () => IsSymbol4,
35109
+ IsTemplateLiteral: () => IsTemplateLiteral2,
35110
+ IsThis: () => IsThis2,
35111
+ IsTransform: () => IsTransform2,
35112
+ IsTuple: () => IsTuple2,
35113
+ IsUint8Array: () => IsUint8Array4,
35114
+ IsUndefined: () => IsUndefined4,
35115
+ IsUnion: () => IsUnion2,
35116
+ IsUnionLiteral: () => IsUnionLiteral,
35117
+ IsUnknown: () => IsUnknown2,
35118
+ IsUnsafe: () => IsUnsafe2,
35119
+ IsVoid: () => IsVoid2,
35120
+ TypeGuardUnknownTypeError: () => TypeGuardUnknownTypeError
35044
35121
  });
35045
35122
  class TypeGuardUnknownTypeError extends TypeBoxError {
35046
35123
  }
@@ -35290,12 +35367,12 @@ var PatternNeverExact = `^${PatternNever}$`;
35290
35367
  // node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs
35291
35368
  var exports_format = {};
35292
35369
  __export(exports_format, {
35293
- Set: () => Set2,
35294
- Has: () => Has,
35295
- Get: () => Get,
35296
- Entries: () => Entries,
35370
+ Clear: () => Clear,
35297
35371
  Delete: () => Delete,
35298
- Clear: () => Clear
35372
+ Entries: () => Entries,
35373
+ Get: () => Get,
35374
+ Has: () => Has,
35375
+ Set: () => Set2
35299
35376
  });
35300
35377
  var map = new Map;
35301
35378
  function Entries() {
@@ -35319,12 +35396,12 @@ function Get(format) {
35319
35396
  // node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs
35320
35397
  var exports_type2 = {};
35321
35398
  __export(exports_type2, {
35322
- Set: () => Set3,
35323
- Has: () => Has2,
35324
- Get: () => Get2,
35325
- Entries: () => Entries2,
35399
+ Clear: () => Clear2,
35326
35400
  Delete: () => Delete2,
35327
- Clear: () => Clear2
35401
+ Entries: () => Entries2,
35402
+ Get: () => Get2,
35403
+ Has: () => Has2,
35404
+ Set: () => Set3
35328
35405
  });
35329
35406
  var map2 = new Map;
35330
35407
  function Entries2() {
@@ -37223,68 +37300,68 @@ function Void(options) {
37223
37300
  // node_modules/@sinclair/typebox/build/esm/type/type/type.mjs
37224
37301
  var exports_type3 = {};
37225
37302
  __export(exports_type3, {
37226
- Void: () => Void,
37227
- Uppercase: () => Uppercase,
37228
- Unsafe: () => Unsafe,
37229
- Unknown: () => Unknown,
37230
- Union: () => Union,
37231
- Undefined: () => Undefined,
37232
- Uncapitalize: () => Uncapitalize,
37233
- Uint8Array: () => Uint8Array2,
37234
- Tuple: () => Tuple,
37235
- Transform: () => Transform,
37236
- TemplateLiteral: () => TemplateLiteral,
37237
- Symbol: () => Symbol2,
37238
- String: () => String2,
37239
- ReturnType: () => ReturnType,
37240
- Rest: () => Rest,
37241
- Required: () => Required,
37242
- RegExp: () => RegExp2,
37243
- Ref: () => Ref,
37244
- Recursive: () => Recursive,
37245
- Record: () => Record,
37246
- ReadonlyOptional: () => ReadonlyOptional,
37247
- Readonly: () => Readonly,
37248
- Promise: () => Promise2,
37249
- Pick: () => Pick,
37250
- Partial: () => Partial,
37251
- Parameters: () => Parameters,
37252
- Optional: () => Optional,
37253
- Omit: () => Omit,
37254
- Object: () => Object2,
37255
- Number: () => Number2,
37256
- Null: () => Null,
37257
- Not: () => Not2,
37258
- Never: () => Never,
37259
- Module: () => Module,
37260
- Mapped: () => Mapped,
37261
- Lowercase: () => Lowercase,
37262
- Literal: () => Literal,
37263
- KeyOf: () => KeyOf,
37264
- Iterator: () => Iterator,
37265
- Intersect: () => Intersect,
37266
- Integer: () => Integer,
37267
- Instantiate: () => Instantiate,
37268
- InstanceType: () => InstanceType,
37269
- Index: () => Index,
37270
- Function: () => Function2,
37271
- Extract: () => Extract,
37272
- Extends: () => Extends,
37273
- Exclude: () => Exclude,
37274
- Enum: () => Enum,
37275
- Date: () => Date2,
37276
- ConstructorParameters: () => ConstructorParameters,
37277
- Constructor: () => Constructor,
37278
- Const: () => Const,
37279
- Composite: () => Composite,
37280
- Capitalize: () => Capitalize,
37281
- Boolean: () => Boolean2,
37282
- BigInt: () => BigInt2,
37283
- Awaited: () => Awaited,
37284
- AsyncIterator: () => AsyncIterator,
37285
- Array: () => Array2,
37303
+ Any: () => Any,
37286
37304
  Argument: () => Argument,
37287
- Any: () => Any
37305
+ Array: () => Array2,
37306
+ AsyncIterator: () => AsyncIterator,
37307
+ Awaited: () => Awaited,
37308
+ BigInt: () => BigInt2,
37309
+ Boolean: () => Boolean2,
37310
+ Capitalize: () => Capitalize,
37311
+ Composite: () => Composite,
37312
+ Const: () => Const,
37313
+ Constructor: () => Constructor,
37314
+ ConstructorParameters: () => ConstructorParameters,
37315
+ Date: () => Date2,
37316
+ Enum: () => Enum,
37317
+ Exclude: () => Exclude,
37318
+ Extends: () => Extends,
37319
+ Extract: () => Extract,
37320
+ Function: () => Function2,
37321
+ Index: () => Index,
37322
+ InstanceType: () => InstanceType,
37323
+ Instantiate: () => Instantiate,
37324
+ Integer: () => Integer,
37325
+ Intersect: () => Intersect,
37326
+ Iterator: () => Iterator,
37327
+ KeyOf: () => KeyOf,
37328
+ Literal: () => Literal,
37329
+ Lowercase: () => Lowercase,
37330
+ Mapped: () => Mapped,
37331
+ Module: () => Module,
37332
+ Never: () => Never,
37333
+ Not: () => Not2,
37334
+ Null: () => Null,
37335
+ Number: () => Number2,
37336
+ Object: () => Object2,
37337
+ Omit: () => Omit,
37338
+ Optional: () => Optional,
37339
+ Parameters: () => Parameters,
37340
+ Partial: () => Partial,
37341
+ Pick: () => Pick,
37342
+ Promise: () => Promise2,
37343
+ Readonly: () => Readonly,
37344
+ ReadonlyOptional: () => ReadonlyOptional,
37345
+ Record: () => Record,
37346
+ Recursive: () => Recursive,
37347
+ Ref: () => Ref,
37348
+ RegExp: () => RegExp2,
37349
+ Required: () => Required,
37350
+ Rest: () => Rest,
37351
+ ReturnType: () => ReturnType,
37352
+ String: () => String2,
37353
+ Symbol: () => Symbol2,
37354
+ TemplateLiteral: () => TemplateLiteral,
37355
+ Transform: () => Transform,
37356
+ Tuple: () => Tuple,
37357
+ Uint8Array: () => Uint8Array2,
37358
+ Uncapitalize: () => Uncapitalize,
37359
+ Undefined: () => Undefined,
37360
+ Union: () => Union,
37361
+ Unknown: () => Unknown,
37362
+ Unsafe: () => Unsafe,
37363
+ Uppercase: () => Uppercase,
37364
+ Void: () => Void
37288
37365
  });
37289
37366
 
37290
37367
  // node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
@@ -40161,13 +40238,13 @@ function Default5(...args2) {
40161
40238
  // node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs
40162
40239
  var exports_pointer = {};
40163
40240
  __export(exports_pointer, {
40164
- ValuePointerRootSetError: () => ValuePointerRootSetError,
40165
- ValuePointerRootDeleteError: () => ValuePointerRootDeleteError,
40166
- Set: () => Set4,
40167
- Has: () => Has3,
40168
- Get: () => Get3,
40241
+ Delete: () => Delete3,
40169
40242
  Format: () => Format,
40170
- Delete: () => Delete3
40243
+ Get: () => Get3,
40244
+ Has: () => Has3,
40245
+ Set: () => Set4,
40246
+ ValuePointerRootDeleteError: () => ValuePointerRootDeleteError,
40247
+ ValuePointerRootSetError: () => ValuePointerRootSetError
40171
40248
  });
40172
40249
  class ValuePointerRootSetError extends TypeBoxError {
40173
40250
  constructor(value, path, update) {
@@ -40584,25 +40661,25 @@ function Parse(...args2) {
40584
40661
  // node_modules/@sinclair/typebox/build/esm/value/value/value.mjs
40585
40662
  var exports_value2 = {};
40586
40663
  __export(exports_value2, {
40587
- ValueErrorIterator: () => ValueErrorIterator,
40588
- Patch: () => Patch,
40589
- Parse: () => Parse,
40590
- Mutate: () => Mutate,
40591
- Hash: () => Hash,
40592
- Errors: () => Errors,
40593
- Equal: () => Equal,
40594
- Encode: () => Encode,
40595
- Edit: () => Edit,
40596
- Diff: () => Diff,
40597
- Default: () => Default5,
40598
- Decode: () => Decode,
40599
- Create: () => Create2,
40600
- Convert: () => Convert,
40601
- Clone: () => Clone2,
40602
- Clean: () => Clean,
40603
- Check: () => Check,
40664
+ Assert: () => Assert,
40604
40665
  Cast: () => Cast,
40605
- Assert: () => Assert
40666
+ Check: () => Check,
40667
+ Clean: () => Clean,
40668
+ Clone: () => Clone2,
40669
+ Convert: () => Convert,
40670
+ Create: () => Create2,
40671
+ Decode: () => Decode,
40672
+ Default: () => Default5,
40673
+ Diff: () => Diff,
40674
+ Edit: () => Edit,
40675
+ Encode: () => Encode,
40676
+ Equal: () => Equal,
40677
+ Errors: () => Errors,
40678
+ Hash: () => Hash,
40679
+ Mutate: () => Mutate,
40680
+ Parse: () => Parse,
40681
+ Patch: () => Patch,
40682
+ ValueErrorIterator: () => ValueErrorIterator
40606
40683
  });
40607
40684
  // src/utils/defineEnv.ts
40608
40685
  var SENSITIVE_PATTERN = /SECRET|KEY|TOKEN|PASSWORD/i;
@@ -40638,13 +40715,13 @@ var checkEnvFileSecurity = (properties) => {
40638
40715
  const sensitiveKeys = Object.keys(properties).filter(isSensitive);
40639
40716
  if (sensitiveKeys.length === 0)
40640
40717
  return;
40641
- const envContent = readFileSync39(envPath, "utf-8");
40718
+ const envContent = readFileSync40(envPath, "utf-8");
40642
40719
  const presentKeys = sensitiveKeys.filter((key) => envContent.includes(`${key}=`));
40643
40720
  if (presentKeys.length === 0)
40644
40721
  return;
40645
40722
  const gitignorePath = resolve51(cwd2, ".gitignore");
40646
40723
  if (existsSync42(gitignorePath)) {
40647
- const gitignore = readFileSync39(gitignorePath, "utf-8");
40724
+ const gitignore = readFileSync40(gitignorePath, "utf-8");
40648
40725
  if (gitignore.split(`
40649
40726
  `).some((line) => line.trim() === ".env"))
40650
40727
  return;
@@ -40772,177 +40849,177 @@ var createStreamingSlotMetricSink = ({
40772
40849
  // src/utils/index.ts
40773
40850
  init_streamingSlots();
40774
40851
  export {
40775
- wrapPageHandlerWithStreamingSlots,
40776
- withStreamingSlots,
40777
- withStreamingSlotPolicy,
40778
- withRegisteredStreamingSlots,
40779
- warmTailwindCompiler,
40780
- streamOutOfOrderSlots,
40781
- setStreamingSlotPolicy,
40782
- setSsrContextGetter,
40783
- setIconVersionResolver,
40784
- serializeJsonLd,
40785
- serializeIslandProps,
40786
- runWithAbsoluteRequest,
40787
- resolveDevtoolsUuidCachePath,
40788
- renderStreamingSlotsRuntimeTag,
40789
- renderStreamingSlotPlaceholder,
40790
- renderStreamingSlotPatchTag,
40791
- renderIslandResult,
40792
- renderIslandMarkup,
40793
- registerClientScript,
40794
- projectRoot,
40795
- prepare,
40796
- parseIslandProps,
40797
- pageRouterPlugin,
40798
- normalizeDevtoolsWorkspaceRoot,
40799
- networking,
40800
- jsonLd2 as jsonLd,
40801
- isValidHMRClientMessage,
40802
- isTailwindCandidate,
40803
- isIslandComponentDefinition,
40804
- injectStreamingRuntimeIntoStream,
40805
- injectHtmlIntoHead,
40806
- injectHtmlIntoBody,
40807
- incrementalTailwindBuild,
40808
- iconMimeType,
40809
- hmrState,
40810
- handleHTMXPageRequest,
40811
- handleHTMLPageRequest,
40812
- getStreamingSlotsRuntimeScript,
40813
- getStreamingSlotPolicy,
40814
- getSsrContextId,
40815
- getLocalIPAddress,
40816
- getIslandManifestKey,
40817
- getIslandManifestEntries,
40818
- getIslandComponent,
40819
- getIslandBuildReference,
40820
- getEnv,
40821
- getCurrentAbsoluteRequest,
40822
- getAndClearClientScripts,
40823
- getAllNetworkIPs,
40824
- generateHeadElement,
40825
- generateClientScriptCode,
40826
- enhanceHtmlResponseWithStreamingSlots,
40827
- disposeTailwindCompiler,
40828
- devtoolsJson,
40829
- defineRenderNotFoundPage,
40830
- defineRenderErrorPage,
40831
- defineIslandRegistry,
40832
- defineIslandComponent,
40833
- defineEnv,
40834
- defineConfig,
40835
- createStreamingSlotMetricSink,
40836
- createStreamingSlotId,
40837
- compileTailwindConfig,
40838
- compileTailwind,
40839
- clearAllClientScripts,
40840
- asset,
40841
- applyIconVersion,
40842
- appendStreamingSlotPatchesToStream,
40843
- absoluteRequestContext,
40844
- WS_READY_STATE_OPEN,
40845
- WORKSPACE_TUI_VISIBILITY_WIDTH,
40846
- WORKSPACE_TUI_TARGET_PADDING_WIDTH,
40847
- WORKSPACE_TUI_STATUS_WIDTH,
40848
- WORKSPACE_TUI_RENDER_DEBOUNCE_MS,
40849
- WORKSPACE_TUI_RECENT_LOG_LIMIT,
40850
- WORKSPACE_TUI_PROMPT_CURSOR_OFFSET,
40851
- WORKSPACE_TUI_MIN_WRAP_WIDTH,
40852
- WORKSPACE_TUI_MIN_TARGET_WIDTH,
40853
- WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH,
40854
- WORKSPACE_TUI_MIN_LOG_HEIGHT,
40855
- WORKSPACE_TUI_FOOTER_LINE_COUNT,
40856
- WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
40857
- WORKSPACE_TUI_DEFAULT_WIDTH,
40858
- WORKSPACE_TUI_DEFAULT_HEIGHT,
40859
- WORKSPACE_SHUTDOWN_TIMEOUT_MS,
40860
- WORKSPACE_READY_TIMEOUT_MS,
40861
- WORKSPACE_READY_PROBE_INTERVAL_MS,
40862
- WORKSPACE_READY_ATTEMPT_TIMEOUT_MS,
40863
- WORKSPACE_FAILURE_RECENT_LOG_LIMIT,
40864
- WORKSPACE_FAILURE_LOG_PRINT_LIMIT,
40865
- WORKSPACE_COMMAND_ARGS_OFFSET,
40866
- WEBSOCKET_NORMAL_CLOSURE,
40867
- UNFOUND_INDEX,
40868
- TWO_THIRDS,
40869
- TIME_PRECISION,
40870
- TAILWIND_BUN_CSS_WARNING_PATTERN,
40871
- SVELTE_CSS_LOAD_TIMEOUT_MS,
40872
- SIGTERM_EXIT_CODE,
40873
- SIGINT_EXIT_CODE,
40874
- SECONDS_IN_A_MINUTE,
40875
- RECONNECT_POLL_INTERVAL_MS,
40876
- RECONNECT_INITIAL_DELAY_MS,
40877
- REBUILD_RELOAD_DELAY_MS,
40878
- REBUILD_BATCH_DELAY_MS,
40879
- REACT_STREAM_SLOT_SLOW_DELAY_MS,
40880
- REACT_STREAM_SLOT_FAST_DELAY_MS,
40881
- RANDOM_ID_END_INDEX,
40882
- RAF_BATCH_COUNT,
40883
- PING_INTERVAL_MS,
40884
- OVERLAY_FADE_DURATION_MS,
40885
- MINUTES_IN_AN_HOUR,
40886
- MILLISECONDS_IN_A_SECOND,
40887
- MILLISECONDS_IN_A_MINUTE,
40888
- MILLISECONDS_IN_A_DAY,
40889
- MAX_RECONNECT_ATTEMPTS,
40890
- MAX_HTTP_IDLE_TIMEOUT_SECONDS,
40891
- MAX_ERROR_LENGTH,
40892
- LIST_WATCH_REFRESH_MS,
40893
- LIST_TUI_STATUS_MESSAGE_TIMEOUT_MS,
40894
- LIST_TUI_RENDER_DEBOUNCE_MS,
40895
- LIST_TUI_MIN_URL_WIDTH,
40896
- LIST_TUI_MIN_LOG_HEIGHT,
40897
- LIST_TUI_MARKER_WIDTH,
40898
- LIST_TUI_FOOTER_LINE_COUNT,
40899
- LIST_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
40900
- LIST_TUI_DEFAULT_WIDTH,
40901
- LIST_TUI_DEFAULT_HEIGHT,
40902
- LIST_TUI_COLUMN_GAP,
40903
- LIST_LOG_TAIL_MAX_BYTES,
40904
- INSTANCE_PROBE_TIMEOUT_MS,
40905
- IMAGE_GLOB_SUFFIX_LENGTH,
40906
- IMAGE_DEFAULT_QUALITY,
40907
- IMAGE_DEFAULT_IMAGE_SIZES,
40908
- IMAGE_DEFAULT_DEVICE_SIZES,
40909
- HTTP_STATUS_OK,
40910
- HTTP_STATUS_NOT_FOUND,
40911
- HTTP_STATUS_BAD_REQUEST,
40912
- HOURS_IN_HALF_DAY,
40913
- HOURS_IN_DAY,
40914
- HOOK_SIGNATURE_LENGTH,
40915
- HMR_UPDATE_TIMEOUT_MS,
40916
- FOCUS_NAME_PREFIX_LENGTH,
40917
- FOCUS_ID_PREFIX_LENGTH,
40918
- FOCUS_IDX_PREFIX_LENGTH,
40919
- FILE_PROTOCOL_PREFIX_LENGTH,
40920
- EXCLUDE_LAST_OFFSET,
40921
- ESLINT_STUDIO_DEFAULT_PORT,
40922
- ESLINT_STUDIO_DEFAULT_HOST,
40923
- DOM_UPDATE_DELAY_MS,
40924
- DEV_SERVER_RESTART_DEBOUNCE_MS,
40925
- DEFAULT_WEBSOCKET_IDLE_TIMEOUT_SECONDS,
40926
- DEFAULT_PORT,
40927
- DEFAULT_HTTP_IDLE_TIMEOUT_SECONDS,
40928
- DEFAULT_DEBOUNCE_MS,
40929
- DEFAULT_CHUNK_SIZE,
40930
- CSS_SHEET_READY_TIMEOUT_MS,
40931
- CSS_MAX_PARSE_TIMEOUT_MS,
40932
- CSS_MAX_CHECK_ATTEMPTS,
40933
- CSS_ERROR_RESOLVE_DELAY_MS,
40934
- CONFIG_DEFAULT_PORT,
40935
- CONFIG_DEFAULT_HOST,
40936
- CLI_ARGS_OFFSET,
40937
- BYTES_PER_KILOBYTE,
40938
- BUN_BUILD_WARNING_SUPPRESSION,
40939
- BODY_SLICE_LENGTH,
40940
- BASE_36_RADIX,
40941
- ASCII_SPACE,
40942
- ANSI_ESCAPE_LENGTH,
40852
+ ANGULAR_INIT_TIMEOUT_MS,
40943
40853
  ANSI_ESCAPE_CODE,
40944
- ANGULAR_INIT_TIMEOUT_MS
40854
+ ANSI_ESCAPE_LENGTH,
40855
+ ASCII_SPACE,
40856
+ BASE_36_RADIX,
40857
+ BODY_SLICE_LENGTH,
40858
+ BUN_BUILD_WARNING_SUPPRESSION,
40859
+ BYTES_PER_KILOBYTE,
40860
+ CLI_ARGS_OFFSET,
40861
+ CONFIG_DEFAULT_HOST,
40862
+ CONFIG_DEFAULT_PORT,
40863
+ CSS_ERROR_RESOLVE_DELAY_MS,
40864
+ CSS_MAX_CHECK_ATTEMPTS,
40865
+ CSS_MAX_PARSE_TIMEOUT_MS,
40866
+ CSS_SHEET_READY_TIMEOUT_MS,
40867
+ DEFAULT_CHUNK_SIZE,
40868
+ DEFAULT_DEBOUNCE_MS,
40869
+ DEFAULT_HTTP_IDLE_TIMEOUT_SECONDS,
40870
+ DEFAULT_PORT,
40871
+ DEFAULT_WEBSOCKET_IDLE_TIMEOUT_SECONDS,
40872
+ DEV_SERVER_RESTART_DEBOUNCE_MS,
40873
+ DOM_UPDATE_DELAY_MS,
40874
+ ESLINT_STUDIO_DEFAULT_HOST,
40875
+ ESLINT_STUDIO_DEFAULT_PORT,
40876
+ EXCLUDE_LAST_OFFSET,
40877
+ FILE_PROTOCOL_PREFIX_LENGTH,
40878
+ FOCUS_IDX_PREFIX_LENGTH,
40879
+ FOCUS_ID_PREFIX_LENGTH,
40880
+ FOCUS_NAME_PREFIX_LENGTH,
40881
+ HMR_UPDATE_TIMEOUT_MS,
40882
+ HOOK_SIGNATURE_LENGTH,
40883
+ HOURS_IN_DAY,
40884
+ HOURS_IN_HALF_DAY,
40885
+ HTTP_STATUS_BAD_REQUEST,
40886
+ HTTP_STATUS_NOT_FOUND,
40887
+ HTTP_STATUS_OK,
40888
+ IMAGE_DEFAULT_DEVICE_SIZES,
40889
+ IMAGE_DEFAULT_IMAGE_SIZES,
40890
+ IMAGE_DEFAULT_QUALITY,
40891
+ IMAGE_GLOB_SUFFIX_LENGTH,
40892
+ INSTANCE_PROBE_TIMEOUT_MS,
40893
+ LIST_LOG_TAIL_MAX_BYTES,
40894
+ LIST_TUI_COLUMN_GAP,
40895
+ LIST_TUI_DEFAULT_HEIGHT,
40896
+ LIST_TUI_DEFAULT_WIDTH,
40897
+ LIST_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
40898
+ LIST_TUI_FOOTER_LINE_COUNT,
40899
+ LIST_TUI_MARKER_WIDTH,
40900
+ LIST_TUI_MIN_LOG_HEIGHT,
40901
+ LIST_TUI_MIN_URL_WIDTH,
40902
+ LIST_TUI_RENDER_DEBOUNCE_MS,
40903
+ LIST_TUI_STATUS_MESSAGE_TIMEOUT_MS,
40904
+ LIST_WATCH_REFRESH_MS,
40905
+ MAX_ERROR_LENGTH,
40906
+ MAX_HTTP_IDLE_TIMEOUT_SECONDS,
40907
+ MAX_RECONNECT_ATTEMPTS,
40908
+ MILLISECONDS_IN_A_DAY,
40909
+ MILLISECONDS_IN_A_MINUTE,
40910
+ MILLISECONDS_IN_A_SECOND,
40911
+ MINUTES_IN_AN_HOUR,
40912
+ OVERLAY_FADE_DURATION_MS,
40913
+ PING_INTERVAL_MS,
40914
+ RAF_BATCH_COUNT,
40915
+ RANDOM_ID_END_INDEX,
40916
+ REACT_STREAM_SLOT_FAST_DELAY_MS,
40917
+ REACT_STREAM_SLOT_SLOW_DELAY_MS,
40918
+ REBUILD_BATCH_DELAY_MS,
40919
+ REBUILD_RELOAD_DELAY_MS,
40920
+ RECONNECT_INITIAL_DELAY_MS,
40921
+ RECONNECT_POLL_INTERVAL_MS,
40922
+ SECONDS_IN_A_MINUTE,
40923
+ SIGINT_EXIT_CODE,
40924
+ SIGTERM_EXIT_CODE,
40925
+ SVELTE_CSS_LOAD_TIMEOUT_MS,
40926
+ TAILWIND_BUN_CSS_WARNING_PATTERN,
40927
+ TIME_PRECISION,
40928
+ TWO_THIRDS,
40929
+ UNFOUND_INDEX,
40930
+ WEBSOCKET_NORMAL_CLOSURE,
40931
+ WORKSPACE_COMMAND_ARGS_OFFSET,
40932
+ WORKSPACE_FAILURE_LOG_PRINT_LIMIT,
40933
+ WORKSPACE_FAILURE_RECENT_LOG_LIMIT,
40934
+ WORKSPACE_READY_ATTEMPT_TIMEOUT_MS,
40935
+ WORKSPACE_READY_PROBE_INTERVAL_MS,
40936
+ WORKSPACE_READY_TIMEOUT_MS,
40937
+ WORKSPACE_SHUTDOWN_TIMEOUT_MS,
40938
+ WORKSPACE_TUI_DEFAULT_HEIGHT,
40939
+ WORKSPACE_TUI_DEFAULT_WIDTH,
40940
+ WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
40941
+ WORKSPACE_TUI_FOOTER_LINE_COUNT,
40942
+ WORKSPACE_TUI_MIN_LOG_HEIGHT,
40943
+ WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH,
40944
+ WORKSPACE_TUI_MIN_TARGET_WIDTH,
40945
+ WORKSPACE_TUI_MIN_WRAP_WIDTH,
40946
+ WORKSPACE_TUI_PROMPT_CURSOR_OFFSET,
40947
+ WORKSPACE_TUI_RECENT_LOG_LIMIT,
40948
+ WORKSPACE_TUI_RENDER_DEBOUNCE_MS,
40949
+ WORKSPACE_TUI_STATUS_WIDTH,
40950
+ WORKSPACE_TUI_TARGET_PADDING_WIDTH,
40951
+ WORKSPACE_TUI_VISIBILITY_WIDTH,
40952
+ WS_READY_STATE_OPEN,
40953
+ absoluteRequestContext,
40954
+ appendStreamingSlotPatchesToStream,
40955
+ applyIconVersion,
40956
+ asset,
40957
+ clearAllClientScripts,
40958
+ compileTailwind,
40959
+ compileTailwindConfig,
40960
+ createStreamingSlotId,
40961
+ createStreamingSlotMetricSink,
40962
+ defineConfig,
40963
+ defineEnv,
40964
+ defineIslandComponent,
40965
+ defineIslandRegistry,
40966
+ defineRenderErrorPage,
40967
+ defineRenderNotFoundPage,
40968
+ devtoolsJson,
40969
+ disposeTailwindCompiler,
40970
+ enhanceHtmlResponseWithStreamingSlots,
40971
+ generateClientScriptCode,
40972
+ generateHeadElement,
40973
+ getAllNetworkIPs,
40974
+ getAndClearClientScripts,
40975
+ getCurrentAbsoluteRequest,
40976
+ getEnv,
40977
+ getIslandBuildReference,
40978
+ getIslandComponent,
40979
+ getIslandManifestEntries,
40980
+ getIslandManifestKey,
40981
+ getLocalIPAddress,
40982
+ getSsrContextId,
40983
+ getStreamingSlotPolicy,
40984
+ getStreamingSlotsRuntimeScript,
40985
+ handleHTMLPageRequest,
40986
+ handleHTMXPageRequest,
40987
+ hmrState,
40988
+ iconMimeType,
40989
+ incrementalTailwindBuild,
40990
+ injectHtmlIntoBody,
40991
+ injectHtmlIntoHead,
40992
+ injectStreamingRuntimeIntoStream,
40993
+ isIslandComponentDefinition,
40994
+ isTailwindCandidate,
40995
+ isValidHMRClientMessage,
40996
+ jsonLd2 as jsonLd,
40997
+ networking,
40998
+ normalizeDevtoolsWorkspaceRoot,
40999
+ pageRouterPlugin,
41000
+ parseIslandProps,
41001
+ prepare,
41002
+ projectRoot,
41003
+ registerClientScript,
41004
+ renderIslandMarkup,
41005
+ renderIslandResult,
41006
+ renderStreamingSlotPatchTag,
41007
+ renderStreamingSlotPlaceholder,
41008
+ renderStreamingSlotsRuntimeTag,
41009
+ resolveDevtoolsUuidCachePath,
41010
+ runWithAbsoluteRequest,
41011
+ serializeIslandProps,
41012
+ serializeJsonLd,
41013
+ setIconVersionResolver,
41014
+ setSsrContextGetter,
41015
+ setStreamingSlotPolicy,
41016
+ streamOutOfOrderSlots,
41017
+ warmTailwindCompiler,
41018
+ withRegisteredStreamingSlots,
41019
+ withStreamingSlotPolicy,
41020
+ withStreamingSlots,
41021
+ wrapPageHandlerWithStreamingSlots
40945
41022
  };
40946
41023
 
40947
- //# debugId=4CB192ABCD84168364756E2164756E21
41024
+ //# debugId=76855C3AD6EAC66164756E2164756E21
40948
41025
  //# sourceMappingURL=index.js.map