@absolutejs/absolute 0.19.0-beta.782 → 0.19.0-beta.784

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 (254) hide show
  1. package/dist/angular/browser.js +57 -9801
  2. package/dist/angular/browser.js.map +4 -246
  3. package/dist/angular/index.js +61 -14880
  4. package/dist/angular/index.js.map +4 -282
  5. package/dist/angular/server.js +46 -5613
  6. package/dist/angular/server.js.map +3 -52
  7. package/dist/build.js +45 -17902
  8. package/dist/build.js.map +3 -100
  9. package/dist/chunk-102fp7xe.js +63 -0
  10. package/dist/chunk-102fp7xe.js.map +10 -0
  11. package/dist/chunk-11zpfqz6.js +19 -0
  12. package/dist/chunk-11zpfqz6.js.map +10 -0
  13. package/dist/chunk-1e9vsfyh.js +100 -0
  14. package/dist/chunk-1e9vsfyh.js.map +10 -0
  15. package/dist/chunk-25v9t56f.js +29 -0
  16. package/dist/chunk-25v9t56f.js.map +11 -0
  17. package/dist/chunk-2f21eenc.js +21 -0
  18. package/dist/chunk-2f21eenc.js.map +10 -0
  19. package/dist/chunk-2ga2znex.js +13 -0
  20. package/dist/chunk-2ga2znex.js.map +9 -0
  21. package/dist/chunk-30yrw0f6.js +33 -0
  22. package/dist/chunk-30yrw0f6.js.map +10 -0
  23. package/dist/chunk-3c7mpj3m.js +784 -0
  24. package/dist/chunk-3c7mpj3m.js.map +10 -0
  25. package/dist/chunk-3g91wb4f.js +358 -0
  26. package/dist/chunk-3g91wb4f.js.map +10 -0
  27. package/dist/chunk-3yjzpcne.js +34 -0
  28. package/dist/chunk-3yjzpcne.js.map +10 -0
  29. package/dist/chunk-4bq79t8v.js +136 -0
  30. package/dist/chunk-4bq79t8v.js.map +10 -0
  31. package/dist/chunk-4d39r92n.js +81 -0
  32. package/dist/chunk-4d39r92n.js.map +10 -0
  33. package/dist/chunk-4m75s5xf.js +184 -0
  34. package/dist/chunk-4m75s5xf.js.map +11 -0
  35. package/dist/chunk-5003emhv.js +17 -0
  36. package/dist/chunk-5003emhv.js.map +10 -0
  37. package/dist/chunk-5fhp1jap.js +9169 -0
  38. package/dist/chunk-5fhp1jap.js.map +236 -0
  39. package/dist/chunk-6fkgm9s5.js +569 -0
  40. package/dist/chunk-6fkgm9s5.js.map +10 -0
  41. package/dist/chunk-6pdj08z3.js +73 -0
  42. package/dist/chunk-6pdj08z3.js.map +12 -0
  43. package/dist/chunk-6qjbrt0k.js +13 -0
  44. package/dist/chunk-6qjbrt0k.js.map +9 -0
  45. package/dist/chunk-6sccb4jr.js +14 -0
  46. package/dist/chunk-6sccb4jr.js.map +9 -0
  47. package/dist/chunk-73brtyw5.js +16 -0
  48. package/dist/chunk-73brtyw5.js.map +9 -0
  49. package/dist/chunk-77cqkarb.js +25 -0
  50. package/dist/chunk-77cqkarb.js.map +9 -0
  51. package/dist/chunk-798spvzv.js +50 -0
  52. package/dist/chunk-798spvzv.js.map +10 -0
  53. package/dist/chunk-7fw6x3js.js +131 -0
  54. package/dist/chunk-7fw6x3js.js.map +11 -0
  55. package/dist/chunk-7kjj42xm.js +11 -0
  56. package/dist/chunk-7kjj42xm.js.map +10 -0
  57. package/dist/chunk-851whwc7.js +17 -0
  58. package/dist/chunk-851whwc7.js.map +10 -0
  59. package/dist/chunk-85n68sy6.js +103 -0
  60. package/dist/chunk-85n68sy6.js.map +10 -0
  61. package/dist/chunk-8feq2qek.js +17 -0
  62. package/dist/chunk-8feq2qek.js.map +9 -0
  63. package/dist/chunk-8kcfffry.js +35 -0
  64. package/dist/chunk-8kcfffry.js.map +10 -0
  65. package/dist/chunk-93sqk7be.js +139 -0
  66. package/dist/chunk-93sqk7be.js.map +12 -0
  67. package/dist/chunk-97572s32.js +262 -0
  68. package/dist/chunk-97572s32.js.map +12 -0
  69. package/dist/chunk-9a307ca6.js +1742 -0
  70. package/dist/chunk-9a307ca6.js.map +11 -0
  71. package/dist/chunk-9c5tj4k3.js +130 -0
  72. package/dist/chunk-9c5tj4k3.js.map +10 -0
  73. package/dist/chunk-9xrsjeem.js +12 -0
  74. package/dist/chunk-9xrsjeem.js.map +9 -0
  75. package/dist/chunk-a9mvyp04.js +87 -0
  76. package/dist/chunk-a9mvyp04.js.map +10 -0
  77. package/dist/chunk-b3gbnrwe.js +21 -0
  78. package/dist/chunk-b3gbnrwe.js.map +10 -0
  79. package/dist/chunk-bmgqm774.js +65 -0
  80. package/dist/chunk-bmgqm774.js.map +9 -0
  81. package/dist/chunk-bxfghpma.js +69 -0
  82. package/dist/chunk-bxfghpma.js.map +10 -0
  83. package/dist/chunk-c1jfjnka.js +74 -0
  84. package/dist/chunk-c1jfjnka.js.map +10 -0
  85. package/dist/chunk-cbkrwmvh.js +80 -0
  86. package/dist/chunk-cbkrwmvh.js.map +10 -0
  87. package/dist/chunk-cdxd7sy2.js +71 -0
  88. package/dist/chunk-cdxd7sy2.js.map +10 -0
  89. package/dist/chunk-cg95827x.js +21 -0
  90. package/dist/chunk-cg95827x.js.map +10 -0
  91. package/dist/chunk-d9c0am65.js +12 -0
  92. package/dist/chunk-d9c0am65.js.map +10 -0
  93. package/dist/chunk-daqghmg8.js +12 -0
  94. package/dist/chunk-daqghmg8.js.map +9 -0
  95. package/dist/chunk-dr9yqsdb.js +203 -0
  96. package/dist/chunk-dr9yqsdb.js.map +10 -0
  97. package/dist/chunk-e8eecyrq.js +244 -0
  98. package/dist/chunk-e8eecyrq.js.map +10 -0
  99. package/dist/chunk-ex2hxe0v.js +160 -0
  100. package/dist/chunk-ex2hxe0v.js.map +11 -0
  101. package/dist/chunk-ey5hs6x6.js +253 -0
  102. package/dist/chunk-ey5hs6x6.js.map +11 -0
  103. package/dist/chunk-fak944et.js +91 -0
  104. package/dist/chunk-fak944et.js.map +10 -0
  105. package/dist/chunk-fygx2ymm.js +118 -0
  106. package/dist/chunk-fygx2ymm.js.map +12 -0
  107. package/dist/chunk-g15qj669.js +271 -0
  108. package/dist/chunk-g15qj669.js.map +11 -0
  109. package/dist/chunk-g3j22qf6.js +51 -0
  110. package/dist/chunk-g3j22qf6.js.map +9 -0
  111. package/dist/chunk-gd6wmknh.js +121 -0
  112. package/dist/chunk-gd6wmknh.js.map +11 -0
  113. package/dist/chunk-gf0ygptk.js +85 -0
  114. package/dist/chunk-gf0ygptk.js.map +11 -0
  115. package/dist/chunk-gq0zxpm0.js +90 -0
  116. package/dist/chunk-gq0zxpm0.js.map +10 -0
  117. package/dist/chunk-gytkmthr.js +220 -0
  118. package/dist/chunk-gytkmthr.js.map +10 -0
  119. package/dist/chunk-h5bbfn3n.js +28 -0
  120. package/dist/chunk-h5bbfn3n.js.map +11 -0
  121. package/dist/chunk-h6mye9r3.js +93 -0
  122. package/dist/chunk-h6mye9r3.js.map +10 -0
  123. package/dist/chunk-hcsmxw1v.js +85 -0
  124. package/dist/chunk-hcsmxw1v.js.map +10 -0
  125. package/dist/chunk-hep68ja7.js +4444 -0
  126. package/dist/chunk-hep68ja7.js.map +29 -0
  127. package/dist/chunk-hhqh49fz.js +149 -0
  128. package/dist/chunk-hhqh49fz.js.map +10 -0
  129. package/dist/chunk-hyjs4bqs.js +8 -0
  130. package/dist/chunk-hyjs4bqs.js.map +10 -0
  131. package/dist/chunk-hza0n8qm.js +20 -0
  132. package/dist/chunk-hza0n8qm.js.map +9 -0
  133. package/dist/chunk-jn91vzkh.js +66 -0
  134. package/dist/chunk-jn91vzkh.js.map +10 -0
  135. package/dist/chunk-jwxt8gnp.js +13 -0
  136. package/dist/chunk-jwxt8gnp.js.map +9 -0
  137. package/dist/chunk-kk8w9rh5.js +195 -0
  138. package/dist/chunk-kk8w9rh5.js.map +10 -0
  139. package/dist/chunk-kndkjsya.js +261 -0
  140. package/dist/chunk-kndkjsya.js.map +10 -0
  141. package/dist/chunk-kvq01j35.js +36 -0
  142. package/dist/chunk-kvq01j35.js.map +10 -0
  143. package/dist/chunk-mbazhahf.js +60 -0
  144. package/dist/chunk-mbazhahf.js.map +10 -0
  145. package/dist/chunk-mgfwq18r.js +15 -0
  146. package/dist/chunk-mgfwq18r.js.map +9 -0
  147. package/dist/chunk-mtgf69xn.js +88 -0
  148. package/dist/chunk-mtgf69xn.js.map +10 -0
  149. package/dist/chunk-nehhtthw.js +225 -0
  150. package/dist/chunk-nehhtthw.js.map +10 -0
  151. package/dist/chunk-nhzf4az4.js +149 -0
  152. package/dist/chunk-nhzf4az4.js.map +10 -0
  153. package/dist/chunk-p5504p14.js +16 -0
  154. package/dist/chunk-p5504p14.js.map +10 -0
  155. package/dist/chunk-pnscgw95.js +90 -0
  156. package/dist/chunk-pnscgw95.js.map +10 -0
  157. package/dist/chunk-pvpp4pvs.js +17 -0
  158. package/dist/chunk-pvpp4pvs.js.map +10 -0
  159. package/dist/chunk-qh75agse.js +95 -0
  160. package/dist/chunk-qh75agse.js.map +10 -0
  161. package/dist/chunk-qk8kd3hr.js +526 -0
  162. package/dist/chunk-qk8kd3hr.js.map +12 -0
  163. package/dist/chunk-qxq2zcty.js +52 -0
  164. package/dist/chunk-qxq2zcty.js.map +10 -0
  165. package/dist/chunk-r7jmgqnw.js +114 -0
  166. package/dist/chunk-r7jmgqnw.js.map +10 -0
  167. package/dist/chunk-s6defjk2.js +116 -0
  168. package/dist/chunk-s6defjk2.js.map +10 -0
  169. package/dist/chunk-sd39p726.js +619 -0
  170. package/dist/chunk-sd39p726.js.map +10 -0
  171. package/dist/chunk-smgj0epn.js +18 -0
  172. package/dist/chunk-smgj0epn.js.map +9 -0
  173. package/dist/chunk-swrnzs4c.js +63 -0
  174. package/dist/chunk-swrnzs4c.js.map +10 -0
  175. package/dist/chunk-t81a331y.js +27 -0
  176. package/dist/chunk-t81a331y.js.map +10 -0
  177. package/dist/chunk-tfe3sb44.js +33 -0
  178. package/dist/chunk-tfe3sb44.js.map +10 -0
  179. package/dist/chunk-tx9edm1x.js +34 -0
  180. package/dist/chunk-tx9edm1x.js.map +10 -0
  181. package/dist/chunk-vkrpm7kc.js +247 -0
  182. package/dist/chunk-vkrpm7kc.js.map +12 -0
  183. package/dist/chunk-vvz7dcvq.js +434 -0
  184. package/dist/chunk-vvz7dcvq.js.map +13 -0
  185. package/dist/chunk-w3m4m5we.js +4925 -0
  186. package/dist/chunk-w3m4m5we.js.map +12 -0
  187. package/dist/chunk-wrxtn9ve.js +18 -0
  188. package/dist/chunk-wrxtn9ve.js.map +10 -0
  189. package/dist/chunk-xpkjbmd3.js +428 -0
  190. package/dist/chunk-xpkjbmd3.js.map +14 -0
  191. package/dist/chunk-xrmjy8kk.js +454 -0
  192. package/dist/chunk-xrmjy8kk.js.map +10 -0
  193. package/dist/chunk-xw0tx842.js +13 -0
  194. package/dist/chunk-xw0tx842.js.map +9 -0
  195. package/dist/chunk-xx5b6b9m.js +69 -0
  196. package/dist/chunk-xx5b6b9m.js.map +10 -0
  197. package/dist/chunk-xz1kdswj.js +21 -0
  198. package/dist/chunk-xz1kdswj.js.map +9 -0
  199. package/dist/chunk-xzvy9hr4.js +377 -0
  200. package/dist/chunk-xzvy9hr4.js.map +10 -0
  201. package/dist/chunk-yfqhr31t.js +39 -0
  202. package/dist/chunk-yfqhr31t.js.map +9 -0
  203. package/dist/chunk-ygzd5s4z.js +184 -0
  204. package/dist/chunk-ygzd5s4z.js.map +10 -0
  205. package/dist/chunk-ywjn0rad.js +14 -0
  206. package/dist/chunk-ywjn0rad.js.map +9 -0
  207. package/dist/chunk-z9nvhm6r.js +13 -0
  208. package/dist/chunk-z9nvhm6r.js.map +9 -0
  209. package/dist/chunk-zhmvdpk6.js +15 -0
  210. package/dist/chunk-zhmvdpk6.js.map +9 -0
  211. package/dist/cli/index.js +6 -3
  212. package/dist/client/index.js +32 -1112
  213. package/dist/client/index.js.map +4 -22
  214. package/dist/core/streamingSlotRegistrar.js +11 -108
  215. package/dist/core/streamingSlotRegistrar.js.map +3 -4
  216. package/dist/core/streamingSlotRegistry.js +7 -169
  217. package/dist/core/streamingSlotRegistry.js.map +3 -5
  218. package/dist/index.js +537 -19714
  219. package/dist/index.js.map +3 -117
  220. package/dist/islands/browser.js +9 -228
  221. package/dist/islands/browser.js.map +4 -9
  222. package/dist/islands/index.js +18 -1900
  223. package/dist/islands/index.js.map +3 -28
  224. package/dist/react/browser.js +12 -328
  225. package/dist/react/browser.js.map +4 -12
  226. package/dist/react/components/index.js +16 -167
  227. package/dist/react/components/index.js.map +3 -6
  228. package/dist/react/hooks/index.js +8 -183
  229. package/dist/react/hooks/index.js.map +3 -7
  230. package/dist/react/index.js +37 -3619
  231. package/dist/react/index.js.map +4 -46
  232. package/dist/react/jsxDevRuntimeCompat.js +2 -61
  233. package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
  234. package/dist/react/server.js +18 -1789
  235. package/dist/react/server.js.map +3 -21
  236. package/dist/src/build/stylePreprocessor.d.ts +3 -0
  237. package/dist/src/core/index.d.ts +0 -2
  238. package/dist/svelte/browser.js +12 -247
  239. package/dist/svelte/browser.js.map +3 -10
  240. package/dist/svelte/index.js +38 -3724
  241. package/dist/svelte/index.js.map +4 -48
  242. package/dist/svelte/server.js +22 -2701
  243. package/dist/svelte/server.js.map +3 -27
  244. package/dist/vue/browser.js +12 -348
  245. package/dist/vue/browser.js.map +4 -12
  246. package/dist/vue/components/Image.js +7 -240
  247. package/dist/vue/components/Image.js.map +3 -6
  248. package/dist/vue/components/index.js +11 -544
  249. package/dist/vue/components/index.js.map +3 -9
  250. package/dist/vue/index.js +53 -4204
  251. package/dist/vue/index.js.map +4 -51
  252. package/dist/vue/server.js +18 -1849
  253. package/dist/vue/server.js.map +3 -21
  254. package/package.json +7 -7
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/islands/sourceMetadata.ts"],
4
+ "sourcesContent": [
5
+ "import type { IslandFramework, IslandHydrate } from '../../types/island';\n\nexport type PageIslandUsage = {\n\tcomponent: string;\n\tframework: IslandFramework;\n\thydrate?: IslandHydrate;\n\tsource?: string;\n};\n\nconst islandFrameworks: IslandFramework[] = [\n\t'react',\n\t'svelte',\n\t'vue',\n\t'angular'\n];\n\nconst islandHydrationModes: IslandHydrate[] = [\n\t'load',\n\t'idle',\n\t'visible',\n\t'none'\n];\n\nconst isIslandFramework = (value: string): value is IslandFramework =>\n\tislandFrameworks.some((framework) => framework === value);\n\nconst isIslandHydrate = (value: string): value is IslandHydrate =>\n\tislandHydrationModes.some((hydrate) => hydrate === value);\n\nconst parseIslandTagAttributes = (attributeString: string) => {\n\tconst frameworkMatch = attributeString.match(\n\t\t/\\bframework\\s*=\\s*[\"']([^\"']+)[\"']/\n\t);\n\tconst componentMatch = attributeString.match(\n\t\t/\\bcomponent\\s*=\\s*[\"']([^\"']+)[\"']/\n\t);\n\tconst hydrateMatch = attributeString.match(\n\t\t/\\bhydrate\\s*=\\s*[\"']([^\"']+)[\"']/\n\t);\n\tconst framework = frameworkMatch?.[1];\n\tconst component = componentMatch?.[1];\n\tif (!framework || !component) {\n\t\treturn null;\n\t}\n\tif (!isIslandFramework(framework)) {\n\t\treturn null;\n\t}\n\n\tconst hydrateCandidate = hydrateMatch?.[1];\n\n\treturn {\n\t\tcomponent,\n\t\tframework,\n\t\thydrate:\n\t\t\thydrateCandidate && isIslandHydrate(hydrateCandidate)\n\t\t\t\t? hydrateCandidate\n\t\t\t\t: undefined\n\t} satisfies PageIslandUsage;\n};\n\nconst normalizeUsage = (usage: PageIslandUsage) =>\n\t`${usage.framework}:${usage.component}:${usage.hydrate ?? ''}`;\n\nconst addUsage = (\n\tusageMap: Map<string, PageIslandUsage>,\n\tusage: PageIslandUsage | null\n) => {\n\tif (!usage) return;\n\tusageMap.set(normalizeUsage(usage), usage);\n};\n\nconst addRenderCallUsage = (\n\tusageMap: Map<string, PageIslandUsage>,\n\tmatch: RegExpExecArray\n) => {\n\tconst [, framework, component, hydrate] = match;\n\tif (!framework || !component || !isIslandFramework(framework)) {\n\t\treturn;\n\t}\n\n\taddUsage(usageMap, {\n\t\tcomponent,\n\t\tframework,\n\t\thydrate: hydrate && isIslandHydrate(hydrate) ? hydrate : undefined\n\t});\n};\n\nexport const buildIslandMetadataExports = (source: string) => {\n\tconst usages = extractIslandUsagesFromSource(source);\n\tconst serialized = JSON.stringify(usages);\n\n\treturn `\\nexport const __ABSOLUTE_PAGE_ISLANDS__ = ${serialized};\\nexport const __ABSOLUTE_PAGE_HAS_ISLANDS__ = ${usages.length > 0};\\n`;\n};\nexport const extractIslandUsagesFromSource = (source: string) => {\n\tconst usageMap = new Map<string, PageIslandUsage>();\n\n\tconst islandTagRegex =\n\t\t/<Island\\b([\\s\\S]*?)(?:\\/>|>(?:[\\s\\S]*?)<\\/Island>)/g;\n\tlet islandTagMatch = islandTagRegex.exec(source);\n\twhile (islandTagMatch) {\n\t\taddUsage(usageMap, parseIslandTagAttributes(islandTagMatch[1] ?? ''));\n\t\tislandTagMatch = islandTagRegex.exec(source);\n\t}\n\n\tconst absoluteIslandTagRegex =\n\t\t/<absolute-island\\b([\\s\\S]*?)(?:\\/>|>(?:[\\s\\S]*?)<\\/absolute-island>)/g;\n\tlet absoluteIslandMatch = absoluteIslandTagRegex.exec(source);\n\twhile (absoluteIslandMatch) {\n\t\taddUsage(\n\t\t\tusageMap,\n\t\t\tparseIslandTagAttributes(absoluteIslandMatch[1] ?? '')\n\t\t);\n\t\tabsoluteIslandMatch = absoluteIslandTagRegex.exec(source);\n\t}\n\n\tconst staticRenderCallRegex =\n\t\t/renderIsland\\s*\\(\\s*\\{[\\s\\S]*?\\bframework\\s*:\\s*['\"]([^'\"]+)['\"][\\s\\S]*?\\bcomponent\\s*:\\s*['\"]([^'\"]+)['\"](?:[\\s\\S]*?\\bhydrate\\s*:\\s*['\"]([^'\"]+)['\"])?[\\s\\S]*?\\}\\s*\\)/g;\n\tlet renderMatch = staticRenderCallRegex.exec(source);\n\twhile (renderMatch) {\n\t\taddRenderCallUsage(usageMap, renderMatch);\n\t\trenderMatch = staticRenderCallRegex.exec(source);\n\t}\n\n\treturn [...usageMap.values()];\n};\nexport const hasIslandUsageInSource = (source: string) =>\n\textractIslandUsagesFromSource(source).length > 0;\n"
6
+ ],
7
+ "mappings": ";;AASA,IAAM,mBAAsC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAM,uBAAwC;AAAA,EAC7C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAM,oBAAoB,CAAC,UAC1B,iBAAiB,KAAK,CAAC,cAAc,cAAc,KAAK;AAEzD,IAAM,kBAAkB,CAAC,UACxB,qBAAqB,KAAK,CAAC,YAAY,YAAY,KAAK;AAEzD,IAAM,2BAA2B,CAAC,oBAA4B;AAAA,EAC7D,MAAM,iBAAiB,gBAAgB,MACtC,oCACD;AAAA,EACA,MAAM,iBAAiB,gBAAgB,MACtC,oCACD;AAAA,EACA,MAAM,eAAe,gBAAgB,MACpC,kCACD;AAAA,EACA,MAAM,YAAY,iBAAiB;AAAA,EACnC,MAAM,YAAY,iBAAiB;AAAA,EACnC,IAAI,CAAC,aAAa,CAAC,WAAW;AAAA,IAC7B,OAAO;AAAA,EACR;AAAA,EACA,IAAI,CAAC,kBAAkB,SAAS,GAAG;AAAA,IAClC,OAAO;AAAA,EACR;AAAA,EAEA,MAAM,mBAAmB,eAAe;AAAA,EAExC,OAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA,SACC,oBAAoB,gBAAgB,gBAAgB,IACjD,mBACA;AAAA,EACL;AAAA;AAGD,IAAM,iBAAiB,CAAC,UACvB,GAAG,MAAM,aAAa,MAAM,aAAa,MAAM,WAAW;AAE3D,IAAM,WAAW,CAChB,UACA,UACI;AAAA,EACJ,IAAI,CAAC;AAAA,IAAO;AAAA,EACZ,SAAS,IAAI,eAAe,KAAK,GAAG,KAAK;AAAA;AAG1C,IAAM,qBAAqB,CAC1B,UACA,UACI;AAAA,EACJ,SAAS,WAAW,WAAW,WAAW;AAAA,EAC1C,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,kBAAkB,SAAS,GAAG;AAAA,IAC9D;AAAA,EACD;AAAA,EAEA,SAAS,UAAU;AAAA,IAClB;AAAA,IACA;AAAA,IACA,SAAS,WAAW,gBAAgB,OAAO,IAAI,UAAU;AAAA,EAC1D,CAAC;AAAA;AAGK,IAAM,6BAA6B,CAAC,WAAmB;AAAA,EAC7D,MAAM,SAAS,8BAA8B,MAAM;AAAA,EACnD,MAAM,aAAa,KAAK,UAAU,MAAM;AAAA,EAExC,OAAO;AAAA,2CAA8C;AAAA,+CAA6D,OAAO,SAAS;AAAA;AAAA;AAE5H,IAAM,gCAAgC,CAAC,WAAmB;AAAA,EAChE,MAAM,WAAW,IAAI;AAAA,EAErB,MAAM,iBACL;AAAA,EACD,IAAI,iBAAiB,eAAe,KAAK,MAAM;AAAA,EAC/C,OAAO,gBAAgB;AAAA,IACtB,SAAS,UAAU,yBAAyB,eAAe,MAAM,EAAE,CAAC;AAAA,IACpE,iBAAiB,eAAe,KAAK,MAAM;AAAA,EAC5C;AAAA,EAEA,MAAM,yBACL;AAAA,EACD,IAAI,sBAAsB,uBAAuB,KAAK,MAAM;AAAA,EAC5D,OAAO,qBAAqB;AAAA,IAC3B,SACC,UACA,yBAAyB,oBAAoB,MAAM,EAAE,CACtD;AAAA,IACA,sBAAsB,uBAAuB,KAAK,MAAM;AAAA,EACzD;AAAA,EAEA,MAAM,wBACL;AAAA,EACD,IAAI,cAAc,sBAAsB,KAAK,MAAM;AAAA,EACnD,OAAO,aAAa;AAAA,IACnB,mBAAmB,UAAU,WAAW;AAAA,IACxC,cAAc,sBAAsB,KAAK,MAAM;AAAA,EAChD;AAAA,EAEA,OAAO,CAAC,GAAG,SAAS,OAAO,CAAC;AAAA;",
8
+ "debugId": "25B49EF298EA01EE64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,21 @@
1
+ // @bun
2
+ import {
3
+ normalizePath
4
+ } from "./chunk-hyjs4bqs.js";
5
+
6
+ // src/utils/commonAncestor.ts
7
+ var commonAncestor = (paths, fallback) => {
8
+ if (paths.length === 0)
9
+ return fallback;
10
+ const segmentsList = paths.map((p) => normalizePath(p).split("/"));
11
+ const [first] = segmentsList;
12
+ if (!first)
13
+ return fallback;
14
+ const commonSegments = first.filter((segment, index) => segmentsList.every((pathSegs) => pathSegs[index] === segment));
15
+ return commonSegments.length ? commonSegments.join("/") : fallback;
16
+ };
17
+
18
+ export { commonAncestor };
19
+
20
+ //# debugId=F4964CD05FCFD1BA64756E2164756E21
21
+ //# sourceMappingURL=chunk-b3gbnrwe.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/utils/commonAncestor.ts"],
4
+ "sourcesContent": [
5
+ "import { normalizePath } from './normalizePath';\n\nexport const commonAncestor = (paths: string[], fallback?: string) => {\n\tif (paths.length === 0) return fallback;\n\t// Normalize all paths and split by forward slash for cross-platform compatibility\n\tconst segmentsList = paths.map((p) => normalizePath(p).split('/'));\n\tconst [first] = segmentsList;\n\tif (!first) return fallback;\n\tconst commonSegments = first.filter((segment, index) =>\n\t\tsegmentsList.every((pathSegs) => pathSegs[index] === segment)\n\t);\n\n\t// Always join with forward slash for normalized output\n\treturn commonSegments.length ? commonSegments.join('/') : fallback;\n};\n"
6
+ ],
7
+ "mappings": ";;;;;;AAEO,IAAM,iBAAiB,CAAC,OAAiB,aAAsB;AAAA,EACrE,IAAI,MAAM,WAAW;AAAA,IAAG,OAAO;AAAA,EAE/B,MAAM,eAAe,MAAM,IAAI,CAAC,MAAM,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC;AAAA,EACjE,OAAO,SAAS;AAAA,EAChB,IAAI,CAAC;AAAA,IAAO,OAAO;AAAA,EACnB,MAAM,iBAAiB,MAAM,OAAO,CAAC,SAAS,UAC7C,aAAa,MAAM,CAAC,aAAa,SAAS,WAAW,OAAO,CAC7D;AAAA,EAGA,OAAO,eAAe,SAAS,eAAe,KAAK,GAAG,IAAI;AAAA;",
8
+ "debugId": "F4964CD05FCFD1BA64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,65 @@
1
+ // @bun
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
12
+ var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
20
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
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
+ });
28
+ if (canCache)
29
+ cache.set(mod, to);
30
+ return to;
31
+ };
32
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name, newValue) {
35
+ this[name] = __returnValue.bind(null, newValue);
36
+ }
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, {
40
+ get: all[name],
41
+ enumerable: true,
42
+ configurable: true,
43
+ set: __exportSetter.bind(all, name)
44
+ });
45
+ };
46
+ var __legacyDecorateClassTS = function(decorators, target, key, desc) {
47
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
48
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
49
+ r = Reflect.decorate(decorators, target, key, desc);
50
+ else
51
+ for (var i = decorators.length - 1;i >= 0; i--)
52
+ if (d = decorators[i])
53
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
54
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
55
+ };
56
+ var __legacyMetadataTS = (k, v) => {
57
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
58
+ return Reflect.metadata(k, v);
59
+ };
60
+ var __require = import.meta.require;
61
+
62
+ export { __toESM, __commonJS, __export, __legacyDecorateClassTS, __legacyMetadataTS, __require };
63
+
64
+ //# debugId=DFE4B56A8062886B64756E2164756E21
65
+ //# sourceMappingURL=chunk-bmgqm774.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "DFE4B56A8062886B64756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,69 @@
1
+ // @bun
2
+ import {
3
+ __require
4
+ } from "./chunk-bmgqm774.js";
5
+
6
+ // src/build/buildVueVendor.ts
7
+ import { mkdirSync } from "fs";
8
+ import { join } from "path";
9
+ import { rm } from "fs/promises";
10
+ var {build: bunBuild } = globalThis.Bun;
11
+ var vueSpecifiers = ["vue"];
12
+ var toSafeFileName = (specifier) => specifier.replace(/\//g, "_");
13
+ var buildVueVendor = async (buildDir) => {
14
+ const vendorDir = join(buildDir, "vue", "vendor");
15
+ mkdirSync(vendorDir, { recursive: true });
16
+ const tmpDir = join(buildDir, "_vue_vendor_tmp");
17
+ mkdirSync(tmpDir, { recursive: true });
18
+ const entrypoints = await Promise.all(vueSpecifiers.map(async (specifier) => {
19
+ const safeName = toSafeFileName(specifier);
20
+ const entryPath = join(tmpDir, `${safeName}.ts`);
21
+ await Bun.write(entryPath, `export * from '${specifier}';
22
+ `);
23
+ return entryPath;
24
+ }));
25
+ const result = await bunBuild({
26
+ define: {
27
+ __VUE_OPTIONS_API__: "true",
28
+ __VUE_PROD_DEVTOOLS__: "true",
29
+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "true"
30
+ },
31
+ entrypoints,
32
+ format: "esm",
33
+ minify: false,
34
+ naming: "[name].[ext]",
35
+ outdir: vendorDir,
36
+ splitting: true,
37
+ target: "browser",
38
+ throw: false
39
+ });
40
+ await rm(tmpDir, { force: true, recursive: true });
41
+ if (!result.success) {
42
+ console.warn("\u26A0\uFE0F Vue vendor build had errors:", result.logs);
43
+ return;
44
+ }
45
+ const { readFileSync, writeFileSync, readdirSync } = await import("fs");
46
+ const files = readdirSync(vendorDir).filter((f) => f.endsWith(".js"));
47
+ for (const file of files) {
48
+ const filePath = join(vendorDir, file);
49
+ const content = readFileSync(filePath, "utf-8");
50
+ if (!content.includes("__VUE_HMR_RUNTIME__"))
51
+ continue;
52
+ const patched = content.replace(/getGlobalThis\(\)\.__VUE_HMR_RUNTIME__\s*=\s*\{/, "getGlobalThis().__VUE_HMR_RUNTIME__ = getGlobalThis().__VUE_HMR_RUNTIME__ || {");
53
+ if (patched === content)
54
+ continue;
55
+ writeFileSync(filePath, patched);
56
+ }
57
+ };
58
+ var computeVueVendorPaths = () => {
59
+ const paths = {};
60
+ for (const specifier of vueSpecifiers) {
61
+ paths[specifier] = `/vue/vendor/${toSafeFileName(specifier)}.js`;
62
+ }
63
+ return paths;
64
+ };
65
+
66
+ export { buildVueVendor, computeVueVendorPaths };
67
+
68
+ //# debugId=A45F35047E7DD64064756E2164756E21
69
+ //# sourceMappingURL=chunk-bxfghpma.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/build/buildVueVendor.ts"],
4
+ "sourcesContent": [
5
+ "import { mkdirSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { rm } from 'node:fs/promises';\nimport { build as bunBuild } from 'bun';\n\n/** Bare specifiers that need stable vendor builds for Vue.\n * Vue compiled SFC output imports from vue for the runtime. */\nconst vueSpecifiers = ['vue'];\n\n/** Convert a bare specifier to a safe filename */\nconst toSafeFileName = (specifier: string) =>\n\tspecifier.replace(/\\//g, '_');\n\n/** Build Vue packages into stable vendor files (no content hash).\n * Output goes to {buildDir}/vue/vendor/ with predictable names. */\nexport const buildVueVendor = async (buildDir: string) => {\n\tconst vendorDir = join(buildDir, 'vue', 'vendor');\n\tmkdirSync(vendorDir, { recursive: true });\n\n\tconst tmpDir = join(buildDir, '_vue_vendor_tmp');\n\tmkdirSync(tmpDir, { recursive: true });\n\n\t// Vue is proper ESM — use export * from directly\n\tconst entrypoints = await Promise.all(\n\t\tvueSpecifiers.map(async (specifier) => {\n\t\t\tconst safeName = toSafeFileName(specifier);\n\t\t\tconst entryPath = join(tmpDir, `${safeName}.ts`);\n\t\t\tawait Bun.write(entryPath, `export * from '${specifier}';\\n`);\n\n\t\t\treturn entryPath;\n\t\t})\n\t);\n\n\t// Define Vue feature flags to prevent warnings in browser\n\tconst result = await bunBuild({\n\t\tdefine: {\n\t\t\t__VUE_OPTIONS_API__: 'true',\n\t\t\t__VUE_PROD_DEVTOOLS__: 'true',\n\t\t\t__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'true'\n\t\t},\n\t\tentrypoints,\n\t\tformat: 'esm',\n\t\tminify: false,\n\t\tnaming: '[name].[ext]',\n\t\toutdir: vendorDir,\n\t\tsplitting: true,\n\t\ttarget: 'browser',\n\t\tthrow: false\n\t});\n\n\tawait rm(tmpDir, { force: true, recursive: true });\n\n\tif (!result.success) {\n\t\tconsole.warn('⚠️ Vue vendor build had errors:', result.logs);\n\n\t\treturn;\n\t}\n\n\t// Patch the vendor bundle: guard __VUE_HMR_RUNTIME__ so the vendor\n\t// Vue doesn't overwrite the HMR runtime set by the initial bundle.\n\t// Without this, importing the vendor Vue during HMR nukes all\n\t// component records and reload() can't find existing instances.\n\tconst { readFileSync, writeFileSync, readdirSync } = await import(\n\t\t'node:fs'\n\t);\n\tconst files = readdirSync(vendorDir).filter((f) => f.endsWith('.js'));\n\tfor (const file of files) {\n\t\tconst filePath = join(vendorDir, file);\n\t\tconst content = readFileSync(filePath, 'utf-8');\n\t\tif (!content.includes('__VUE_HMR_RUNTIME__')) continue;\n\n\t\tconst patched = content.replace(\n\t\t\t/getGlobalThis\\(\\)\\.__VUE_HMR_RUNTIME__\\s*=\\s*\\{/,\n\t\t\t'getGlobalThis().__VUE_HMR_RUNTIME__ = getGlobalThis().__VUE_HMR_RUNTIME__ || {'\n\t\t);\n\t\tif (patched === content) continue;\n\n\t\twriteFileSync(filePath, patched);\n\t}\n};\n\n/** Compute the deterministic vendor paths mapping (no build needed).\n * This can be called before vendor files exist on disk. */\nexport const computeVueVendorPaths = () => {\n\tconst paths: Record<string, string> = {};\n\tfor (const specifier of vueSpecifiers) {\n\t\tpaths[specifier] = `/vue/vendor/${toSafeFileName(specifier)}.js`;\n\t}\n\n\treturn paths;\n};\n"
6
+ ],
7
+ "mappings": ";;;;;;AAAA;AACA;AACA;AACA;AAIA,IAAM,gBAAgB,CAAC,KAAK;AAG5B,IAAM,iBAAiB,CAAC,cACvB,UAAU,QAAQ,OAAO,GAAG;AAItB,IAAM,iBAAiB,OAAO,aAAqB;AAAA,EACzD,MAAM,YAAY,KAAK,UAAU,OAAO,QAAQ;AAAA,EAChD,UAAU,WAAW,EAAE,WAAW,KAAK,CAAC;AAAA,EAExC,MAAM,SAAS,KAAK,UAAU,iBAAiB;AAAA,EAC/C,UAAU,QAAQ,EAAE,WAAW,KAAK,CAAC;AAAA,EAGrC,MAAM,cAAc,MAAM,QAAQ,IACjC,cAAc,IAAI,OAAO,cAAc;AAAA,IACtC,MAAM,WAAW,eAAe,SAAS;AAAA,IACzC,MAAM,YAAY,KAAK,QAAQ,GAAG,aAAa;AAAA,IAC/C,MAAM,IAAI,MAAM,WAAW,kBAAkB;AAAA,CAAe;AAAA,IAE5D,OAAO;AAAA,GACP,CACF;AAAA,EAGA,MAAM,SAAS,MAAM,SAAS;AAAA,IAC7B,QAAQ;AAAA,MACP,qBAAqB;AAAA,MACrB,uBAAuB;AAAA,MACvB,yCAAyC;AAAA,IAC1C;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,OAAO;AAAA,EACR,CAAC;AAAA,EAED,MAAM,GAAG,QAAQ,EAAE,OAAO,MAAM,WAAW,KAAK,CAAC;AAAA,EAEjD,IAAI,CAAC,OAAO,SAAS;AAAA,IACpB,QAAQ,KAAK,6CAAkC,OAAO,IAAI;AAAA,IAE1D;AAAA,EACD;AAAA,EAMA,QAAQ,cAAc,eAAe,gBAAgB,MACpD;AAAA,EAED,MAAM,QAAQ,YAAY,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,SAAS,KAAK,CAAC;AAAA,EACpE,WAAW,QAAQ,OAAO;AAAA,IACzB,MAAM,WAAW,KAAK,WAAW,IAAI;AAAA,IACrC,MAAM,UAAU,aAAa,UAAU,OAAO;AAAA,IAC9C,IAAI,CAAC,QAAQ,SAAS,qBAAqB;AAAA,MAAG;AAAA,IAE9C,MAAM,UAAU,QAAQ,QACvB,mDACA,gFACD;AAAA,IACA,IAAI,YAAY;AAAA,MAAS;AAAA,IAEzB,cAAc,UAAU,OAAO;AAAA,EAChC;AAAA;AAKM,IAAM,wBAAwB,MAAM;AAAA,EAC1C,MAAM,QAAgC,CAAC;AAAA,EACvC,WAAW,aAAa,eAAe;AAAA,IACtC,MAAM,aAAa,eAAe,eAAe,SAAS;AAAA,EAC3D;AAAA,EAEA,OAAO;AAAA;",
8
+ "debugId": "A45F35047E7DD64064756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,74 @@
1
+ // @bun
2
+ import {
3
+ setStreamingSlotCollectionController,
4
+ setStreamingSlotRegistrar
5
+ } from "./chunk-qxq2zcty.js";
6
+ import {
7
+ __require
8
+ } from "./chunk-bmgqm774.js";
9
+
10
+ // src/core/streamingSlotRegistry.ts
11
+ var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
12
+ var isObjectRecord = (value) => Boolean(value) && typeof value === "object";
13
+ var isAsyncLocalStorage = (value) => isObjectRecord(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
14
+ var getStorageGlobal = () => {
15
+ const value = Reflect.get(globalThis, STREAMING_SLOT_STORAGE_KEY);
16
+ if (value === null || typeof value === "undefined") {
17
+ return value;
18
+ }
19
+ return isAsyncLocalStorage(value) ? value : undefined;
20
+ };
21
+ var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
22
+ var ensureAsyncLocalStorage = async () => {
23
+ const storage = getStorageGlobal();
24
+ if (typeof storage !== "undefined") {
25
+ return storage;
26
+ }
27
+ if (!isServerRuntime()) {
28
+ Reflect.set(globalThis, STREAMING_SLOT_STORAGE_KEY, null);
29
+ return getStorageGlobal();
30
+ }
31
+ const mod = await import("async_hooks");
32
+ Reflect.set(globalThis, STREAMING_SLOT_STORAGE_KEY, new mod.AsyncLocalStorage);
33
+ return getStorageGlobal();
34
+ };
35
+ var getActiveSlotStore = () => {
36
+ const storage = getStorageGlobal();
37
+ if (!storage)
38
+ return;
39
+ return storage.getStore();
40
+ };
41
+ var registerStreamingSlot = (slot) => {
42
+ const store = getActiveSlotStore();
43
+ if (!store)
44
+ return;
45
+ store.set(slot.id, slot);
46
+ };
47
+ setStreamingSlotRegistrar(registerStreamingSlot);
48
+ setStreamingSlotCollectionController({
49
+ isCollecting: () => getActiveSlotStore() !== undefined
50
+ });
51
+ var hasActiveStreamingSlotRegistry = () => getActiveSlotStore() !== undefined;
52
+ var runWithStreamingSlotRegistry = async (task) => {
53
+ const storage = await ensureAsyncLocalStorage();
54
+ if (!storage) {
55
+ const slots = [];
56
+ return {
57
+ result: await task(),
58
+ slots
59
+ };
60
+ }
61
+ return storage.run(new Map, async () => {
62
+ const result = await task();
63
+ const store = storage.getStore();
64
+ return {
65
+ result,
66
+ slots: store ? [...store.values()] : []
67
+ };
68
+ });
69
+ };
70
+
71
+ export { hasActiveStreamingSlotRegistry, runWithStreamingSlotRegistry };
72
+
73
+ //# debugId=78C72EA694A5F2CE64756E2164756E21
74
+ //# sourceMappingURL=chunk-c1jfjnka.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/core/streamingSlotRegistry.ts"],
4
+ "sourcesContent": [
5
+ "import type { StreamingSlot } from '../utils/streamingSlots';\nimport {\n\tsetStreamingSlotCollectionController,\n\tsetStreamingSlotRegistrar\n} from './streamingSlotRegistrar';\n\ntype SlotStore = Map<string, StreamingSlot>;\ntype AsyncLocalStorageType =\n\timport('node:async_hooks').AsyncLocalStorage<SlotStore>;\n\nconst STREAMING_SLOT_STORAGE_KEY = Symbol.for(\n\t'absolutejs.streamingSlotAsyncLocalStorage'\n);\n\nconst isObjectRecord = (value: unknown): value is Record<string, unknown> =>\n\tBoolean(value) && typeof value === 'object';\n\nconst isAsyncLocalStorage = (value: unknown): value is AsyncLocalStorageType =>\n\tisObjectRecord(value) &&\n\t'getStore' in value &&\n\ttypeof value.getStore === 'function' &&\n\t'run' in value &&\n\ttypeof value.run === 'function';\n\nconst getStorageGlobal = () => {\n\tconst value = Reflect.get(globalThis, STREAMING_SLOT_STORAGE_KEY);\n\tif (value === null || typeof value === 'undefined') {\n\t\treturn value;\n\t}\n\n\treturn isAsyncLocalStorage(value) ? value : undefined;\n};\n\nconst isServerRuntime = () =>\n\ttypeof process !== 'undefined' &&\n\ttypeof process.versions?.node === 'string';\n\nconst ensureAsyncLocalStorage = async () => {\n\tconst storage = getStorageGlobal();\n\tif (typeof storage !== 'undefined') {\n\t\treturn storage;\n\t}\n\tif (!isServerRuntime()) {\n\t\tReflect.set(globalThis, STREAMING_SLOT_STORAGE_KEY, null);\n\n\t\treturn getStorageGlobal();\n\t}\n\n\tconst mod = await import('node:async_hooks');\n\tReflect.set(\n\t\tglobalThis,\n\t\tSTREAMING_SLOT_STORAGE_KEY,\n\t\tnew mod.AsyncLocalStorage<SlotStore>()\n\t);\n\n\treturn getStorageGlobal();\n};\n\nconst getActiveSlotStore = () => {\n\tconst storage = getStorageGlobal();\n\tif (!storage) return undefined;\n\n\treturn storage.getStore();\n};\n\nconst registerStreamingSlot = (slot: StreamingSlot) => {\n\tconst store = getActiveSlotStore();\n\tif (!store) return;\n\tstore.set(slot.id, slot);\n};\n\nsetStreamingSlotRegistrar(registerStreamingSlot);\nsetStreamingSlotCollectionController({\n\tisCollecting: () => getActiveSlotStore() !== undefined\n});\n\nexport const hasActiveStreamingSlotRegistry = () =>\n\tgetActiveSlotStore() !== undefined;\n\nexport const runWithStreamingSlotRegistry = async <T>(\n\ttask: () => Promise<T> | T\n) => {\n\tconst storage = await ensureAsyncLocalStorage();\n\tif (!storage) {\n\t\tconst slots: StreamingSlot[] = [];\n\n\t\treturn {\n\t\t\tresult: await task(),\n\t\t\tslots\n\t\t};\n\t}\n\n\treturn storage.run(new Map<string, StreamingSlot>(), async () => {\n\t\tconst result = await task();\n\t\tconst store = storage.getStore();\n\n\t\treturn {\n\t\t\tresult,\n\t\t\tslots: store ? [...store.values()] : []\n\t\t};\n\t});\n};\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;AAUA,IAAM,6BAA6B,OAAO,IACzC,2CACD;AAEA,IAAM,iBAAiB,CAAC,UACvB,QAAQ,KAAK,KAAK,OAAO,UAAU;AAEpC,IAAM,sBAAsB,CAAC,UAC5B,eAAe,KAAK,MACpB,cAAc,UACd,OAAO,MAAM,aAAa,eAC1B,SAAS,UACT,OAAO,MAAM,QAAQ;AAEtB,IAAM,mBAAmB,MAAM;AAAA,EAC9B,MAAM,QAAQ,QAAQ,IAAI,YAAY,0BAA0B;AAAA,EAChE,IAAI,UAAU,QAAQ,OAAO,UAAU,aAAa;AAAA,IACnD,OAAO;AAAA,EACR;AAAA,EAEA,OAAO,oBAAoB,KAAK,IAAI,QAAQ;AAAA;AAG7C,IAAM,kBAAkB,MACvB,OAAO,YAAY,eACnB,OAAO,QAAQ,UAAU,SAAS;AAEnC,IAAM,0BAA0B,YAAY;AAAA,EAC3C,MAAM,UAAU,iBAAiB;AAAA,EACjC,IAAI,OAAO,YAAY,aAAa;AAAA,IACnC,OAAO;AAAA,EACR;AAAA,EACA,IAAI,CAAC,gBAAgB,GAAG;AAAA,IACvB,QAAQ,IAAI,YAAY,4BAA4B,IAAI;AAAA,IAExD,OAAO,iBAAiB;AAAA,EACzB;AAAA,EAEA,MAAM,MAAM,MAAa;AAAA,EACzB,QAAQ,IACP,YACA,4BACA,IAAI,IAAI,iBACT;AAAA,EAEA,OAAO,iBAAiB;AAAA;AAGzB,IAAM,qBAAqB,MAAM;AAAA,EAChC,MAAM,UAAU,iBAAiB;AAAA,EACjC,IAAI,CAAC;AAAA,IAAS;AAAA,EAEd,OAAO,QAAQ,SAAS;AAAA;AAGzB,IAAM,wBAAwB,CAAC,SAAwB;AAAA,EACtD,MAAM,QAAQ,mBAAmB;AAAA,EACjC,IAAI,CAAC;AAAA,IAAO;AAAA,EACZ,MAAM,IAAI,KAAK,IAAI,IAAI;AAAA;AAGxB,0BAA0B,qBAAqB;AAC/C,qCAAqC;AAAA,EACpC,cAAc,MAAM,mBAAmB,MAAM;AAC9C,CAAC;AAEM,IAAM,iCAAiC,MAC7C,mBAAmB,MAAM;AAEnB,IAAM,+BAA+B,OAC3C,SACI;AAAA,EACJ,MAAM,UAAU,MAAM,wBAAwB;AAAA,EAC9C,IAAI,CAAC,SAAS;AAAA,IACb,MAAM,QAAyB,CAAC;AAAA,IAEhC,OAAO;AAAA,MACN,QAAQ,MAAM,KAAK;AAAA,MACnB;AAAA,IACD;AAAA,EACD;AAAA,EAEA,OAAO,QAAQ,IAAI,IAAI,KAA8B,YAAY;AAAA,IAChE,MAAM,SAAS,MAAM,KAAK;AAAA,IAC1B,MAAM,QAAQ,QAAQ,SAAS;AAAA,IAE/B,OAAO;AAAA,MACN;AAAA,MACA,OAAO,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC;AAAA,IACvC;AAAA,GACA;AAAA;",
8
+ "debugId": "78C72EA694A5F2CE64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,80 @@
1
+ // @bun
2
+ import {
3
+ formatTimestamp
4
+ } from "./chunk-gf0ygptk.js";
5
+
6
+ // src/utils/logger.ts
7
+ var colors = {
8
+ blue: "\x1B[34m",
9
+ bold: "\x1B[1m",
10
+ cyan: "\x1B[36m",
11
+ dim: "\x1B[2m",
12
+ green: "\x1B[32m",
13
+ magenta: "\x1B[35m",
14
+ red: "\x1B[31m",
15
+ reset: "\x1B[0m",
16
+ white: "\x1B[37m",
17
+ yellow: "\x1B[33m"
18
+ };
19
+ var frameworkColors = {
20
+ angular: colors.magenta,
21
+ assets: colors.dim,
22
+ css: colors.cyan,
23
+ html: colors.white,
24
+ htmx: colors.white,
25
+ react: colors.blue,
26
+ svelte: colors.yellow,
27
+ vue: colors.green
28
+ };
29
+ var formatPath = (filePath) => {
30
+ const cwd = process.cwd();
31
+ let relative = filePath.startsWith(cwd) ? filePath.slice(cwd.length + 1) : filePath;
32
+ relative = relative.replace(/\\/g, "/");
33
+ if (!relative.startsWith("/")) {
34
+ relative = `/${relative}`;
35
+ }
36
+ return relative;
37
+ };
38
+ var getFrameworkColor = (framework) => frameworkColors[framework] || colors.white;
39
+ var log = (action, options) => {
40
+ const timestamp = `${colors.dim}${formatTimestamp()}${colors.reset}`;
41
+ const tag = `${colors.cyan}[hmr]${colors.reset}`;
42
+ let message = action;
43
+ if (options?.path) {
44
+ const pathColor = options.framework ? getFrameworkColor(options.framework) : colors.white;
45
+ message += ` ${pathColor}${formatPath(options.path)}${colors.reset}`;
46
+ }
47
+ if (options?.duration !== undefined) {
48
+ message += ` ${colors.dim}(${options.duration}ms)${colors.reset}`;
49
+ }
50
+ console.log(`${timestamp} ${tag} ${message}`);
51
+ };
52
+ var logCssUpdate = (path, framework, duration) => {
53
+ log("css update", { duration, framework: framework ?? "css", path });
54
+ };
55
+ var logError = (message, error) => {
56
+ const timestamp = `${colors.dim}${formatTimestamp()}${colors.reset}`;
57
+ const tag = `${colors.red}[hmr]${colors.reset}`;
58
+ const errorMsg = error instanceof Error ? error.message : error;
59
+ const fullMessage = `${colors.red}error${colors.reset} ${message}${errorMsg ? `: ${errorMsg}` : ""}`;
60
+ console.error(`${timestamp} ${tag} ${fullMessage}`);
61
+ };
62
+ var logHmrUpdate = (path, framework, duration) => {
63
+ log("hmr update", { duration, framework, path });
64
+ };
65
+ var logScriptUpdate = (path, framework, duration) => {
66
+ log("script update", { duration, framework, path });
67
+ };
68
+ var logServerReload = () => {
69
+ log(`${colors.cyan}server module reloaded${colors.reset}`);
70
+ };
71
+ var logWarn = (message) => {
72
+ const timestamp = `${colors.dim}${formatTimestamp()}${colors.reset}`;
73
+ const tag = `${colors.yellow}[hmr]${colors.reset}`;
74
+ console.log(`${timestamp} ${tag} ${colors.yellow}warning ${message}${colors.reset}`);
75
+ };
76
+
77
+ export { logCssUpdate, logError, logHmrUpdate, logScriptUpdate, logServerReload, logWarn };
78
+
79
+ //# debugId=B519580838AE15A464756E2164756E21
80
+ //# sourceMappingURL=chunk-cbkrwmvh.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/utils/logger.ts"],
4
+ "sourcesContent": [
5
+ "/**\n * Centralized logger utility for AbsoluteJS\n * Provides formatted output with ANSI colors and timestamps\n */\n\nimport { formatTimestamp, startupBanner } from './startupBanner';\n\nexport { formatTimestamp };\n\n// ANSI color codes\nconst colors = {\n\tblue: '\\x1b[34m',\n\tbold: '\\x1b[1m',\n\t// Core colors\n\tcyan: '\\x1b[36m',\n\tdim: '\\x1b[2m',\n\tgreen: '\\x1b[32m',\n\tmagenta: '\\x1b[35m',\n\tred: '\\x1b[31m',\n\treset: '\\x1b[0m',\n\twhite: '\\x1b[37m',\n\tyellow: '\\x1b[33m'\n} as const;\n\n// Framework color mapping\nconst frameworkColors: Record<string, string> = {\n\tangular: colors.magenta,\n\tassets: colors.dim,\n\tcss: colors.cyan,\n\thtml: colors.white,\n\thtmx: colors.white,\n\treact: colors.blue,\n\tsvelte: colors.yellow,\n\tvue: colors.green\n};\n\n/**\n * Format a file path for display (relative, clean)\n */\nconst formatPath = (filePath: string) => {\n\tconst cwd = process.cwd();\n\tlet relative = filePath.startsWith(cwd)\n\t\t? filePath.slice(cwd.length + 1)\n\t\t: filePath;\n\t// Normalize slashes\n\trelative = relative.replace(/\\\\/g, '/');\n\t// Ensure it starts with /\n\tif (!relative.startsWith('/')) {\n\t\trelative = `/${relative}`;\n\t}\n\n\treturn relative;\n};\n\n/**\n * Get color for a framework\n */\nconst getFrameworkColor = (framework: string) =>\n\tframeworkColors[framework] || colors.white;\n\n/**\n * Core logging function\n */\nconst log = (\n\taction: string,\n\toptions?: {\n\t\tframework?: string;\n\t\tduration?: number;\n\t\tpath?: string;\n\t\tcolor?: string;\n\t}\n) => {\n\tconst timestamp = `${colors.dim}${formatTimestamp()}${colors.reset}`;\n\tconst tag = `${colors.cyan}[hmr]${colors.reset}`;\n\n\tlet message = action;\n\n\t// Apply framework color to path if present\n\tif (options?.path) {\n\t\tconst pathColor = options.framework\n\t\t\t? getFrameworkColor(options.framework)\n\t\t\t: colors.white;\n\t\tmessage += ` ${pathColor}${formatPath(options.path)}${colors.reset}`;\n\t}\n\n\t// Add duration if present\n\tif (options?.duration !== undefined) {\n\t\tmessage += ` ${colors.dim}(${options.duration}ms)${colors.reset}`;\n\t}\n\n\tconsole.log(`${timestamp} ${tag} ${message}`);\n};\n\n/**\n * Startup banner\n */\nexport const logReady = startupBanner;\n\n/**\n * CSS update message\n * Format: \"10:30:45 AM [hmr] css update /styles/main.css (125ms)\"\n */\nexport const logCssUpdate = (\n\tpath: string,\n\tframework?: string,\n\tduration?: number\n) => {\n\tlog('css update', { duration, framework: framework ?? 'css', path });\n};\n\n/**\n * Build error\n * Format: \"10:30:45 AM [hmr] error Build failed: ...\"\n */\nexport const logError = (message: string, error?: Error | string) => {\n\tconst timestamp = `${colors.dim}${formatTimestamp()}${colors.reset}`;\n\tconst tag = `${colors.red}[hmr]${colors.reset}`;\n\tconst errorMsg = error instanceof Error ? error.message : error;\n\tconst fullMessage = `${colors.red}error${colors.reset} ${message}${errorMsg ? `: ${errorMsg}` : ''}`;\n\tconsole.error(`${timestamp} ${tag} ${fullMessage}`);\n};\n\n/**\n * HMR update message\n * Format: \"10:30:45 AM [hmr] hmr update /pages/App.tsx\"\n */\nexport const logHmrUpdate = (\n\tpath: string,\n\tframework?: string,\n\tduration?: number\n) => {\n\tlog('hmr update', { duration, framework, path });\n};\n\n/**\n * Generic info message\n */\nexport const logInfo = (message: string) => {\n\tlog(message);\n};\n\n/**\n * Page reload message\n * Format: \"10:30:45 AM [hmr] page reload /src/App.tsx (125ms)\"\n */\nexport const logPageReload = (\n\tpath: string,\n\tframework?: string,\n\tduration?: number\n) => {\n\tlog('page reload', { duration, framework, path });\n};\n\n/**\n * Script update message\n * Format: \"10:30:45 AM [hmr] script update /scripts/counter.ts (125ms)\"\n */\nexport const logScriptUpdate = (\n\tpath: string,\n\tframework?: string,\n\tduration?: number\n) => {\n\tlog('script update', { duration, framework, path });\n};\n\n/**\n * Server module reloaded (Bun --hot triggered a server-side change)\n */\nexport const logServerReload = () => {\n\tlog(`${colors.cyan}server module reloaded${colors.reset}`);\n};\n\n/**\n * Warning message\n * Format: \"10:30:45 AM [hmr] warning ...\"\n */\nexport const logWarn = (message: string) => {\n\tconst timestamp = `${colors.dim}${formatTimestamp()}${colors.reset}`;\n\tconst tag = `${colors.yellow}[hmr]${colors.reset}`;\n\tconsole.log(\n\t\t`${timestamp} ${tag} ${colors.yellow}warning ${message}${colors.reset}`\n\t);\n};\n"
6
+ ],
7
+ "mappings": ";;;;;;AAUA,IAAM,SAAS;AAAA,EACd,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AACT;AAGA,IAAM,kBAA0C;AAAA,EAC/C,SAAS,OAAO;AAAA,EAChB,QAAQ,OAAO;AAAA,EACf,KAAK,OAAO;AAAA,EACZ,MAAM,OAAO;AAAA,EACb,MAAM,OAAO;AAAA,EACb,OAAO,OAAO;AAAA,EACd,QAAQ,OAAO;AAAA,EACf,KAAK,OAAO;AACb;AAKA,IAAM,aAAa,CAAC,aAAqB;AAAA,EACxC,MAAM,MAAM,QAAQ,IAAI;AAAA,EACxB,IAAI,WAAW,SAAS,WAAW,GAAG,IACnC,SAAS,MAAM,IAAI,SAAS,CAAC,IAC7B;AAAA,EAEH,WAAW,SAAS,QAAQ,OAAO,GAAG;AAAA,EAEtC,IAAI,CAAC,SAAS,WAAW,GAAG,GAAG;AAAA,IAC9B,WAAW,IAAI;AAAA,EAChB;AAAA,EAEA,OAAO;AAAA;AAMR,IAAM,oBAAoB,CAAC,cAC1B,gBAAgB,cAAc,OAAO;AAKtC,IAAM,MAAM,CACX,QACA,YAMI;AAAA,EACJ,MAAM,YAAY,GAAG,OAAO,MAAM,gBAAgB,IAAI,OAAO;AAAA,EAC7D,MAAM,MAAM,GAAG,OAAO,YAAY,OAAO;AAAA,EAEzC,IAAI,UAAU;AAAA,EAGd,IAAI,SAAS,MAAM;AAAA,IAClB,MAAM,YAAY,QAAQ,YACvB,kBAAkB,QAAQ,SAAS,IACnC,OAAO;AAAA,IACV,WAAW,IAAI,YAAY,WAAW,QAAQ,IAAI,IAAI,OAAO;AAAA,EAC9D;AAAA,EAGA,IAAI,SAAS,aAAa,WAAW;AAAA,IACpC,WAAW,IAAI,OAAO,OAAO,QAAQ,cAAc,OAAO;AAAA,EAC3D;AAAA,EAEA,QAAQ,IAAI,GAAG,aAAa,OAAO,SAAS;AAAA;AAYtC,IAAM,eAAe,CAC3B,MACA,WACA,aACI;AAAA,EACJ,IAAI,cAAc,EAAE,UAAU,WAAW,aAAa,OAAO,KAAK,CAAC;AAAA;AAO7D,IAAM,WAAW,CAAC,SAAiB,UAA2B;AAAA,EACpE,MAAM,YAAY,GAAG,OAAO,MAAM,gBAAgB,IAAI,OAAO;AAAA,EAC7D,MAAM,MAAM,GAAG,OAAO,WAAW,OAAO;AAAA,EACxC,MAAM,WAAW,iBAAiB,QAAQ,MAAM,UAAU;AAAA,EAC1D,MAAM,cAAc,GAAG,OAAO,WAAW,OAAO,SAAS,UAAU,WAAW,KAAK,aAAa;AAAA,EAChG,QAAQ,MAAM,GAAG,aAAa,OAAO,aAAa;AAAA;AAO5C,IAAM,eAAe,CAC3B,MACA,WACA,aACI;AAAA,EACJ,IAAI,cAAc,EAAE,UAAU,WAAW,KAAK,CAAC;AAAA;AA0BzC,IAAM,kBAAkB,CAC9B,MACA,WACA,aACI;AAAA,EACJ,IAAI,iBAAiB,EAAE,UAAU,WAAW,KAAK,CAAC;AAAA;AAM5C,IAAM,kBAAkB,MAAM;AAAA,EACpC,IAAI,GAAG,OAAO,6BAA6B,OAAO,OAAO;AAAA;AAOnD,IAAM,UAAU,CAAC,YAAoB;AAAA,EAC3C,MAAM,YAAY,GAAG,OAAO,MAAM,gBAAgB,IAAI,OAAO;AAAA,EAC7D,MAAM,MAAM,GAAG,OAAO,cAAc,OAAO;AAAA,EAC3C,QAAQ,IACP,GAAG,aAAa,OAAO,OAAO,iBAAiB,UAAU,OAAO,OACjE;AAAA;",
8
+ "debugId": "B519580838AE15A464756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,71 @@
1
+ // @bun
2
+ import {
3
+ __require
4
+ } from "./chunk-bmgqm774.js";
5
+
6
+ // src/build/buildSvelteVendor.ts
7
+ import { mkdirSync } from "fs";
8
+ import { join } from "path";
9
+ import { rm } from "fs/promises";
10
+ var {build: bunBuild } = globalThis.Bun;
11
+ var svelteSpecifiers = [
12
+ "svelte",
13
+ "svelte/internal",
14
+ "svelte/internal/flags/async",
15
+ "svelte/internal/flags/legacy",
16
+ "svelte/internal/client",
17
+ "svelte/internal/disclose-version",
18
+ "svelte/store"
19
+ ];
20
+ var isResolvable = (specifier) => {
21
+ try {
22
+ __require.resolve(specifier);
23
+ return true;
24
+ } catch {
25
+ return false;
26
+ }
27
+ };
28
+ var resolveVendorSpecifiers = () => svelteSpecifiers.filter(isResolvable);
29
+ var toSafeFileName = (specifier) => specifier.replace(/\//g, "_");
30
+ var buildSvelteVendor = async (buildDir) => {
31
+ const specifiers = resolveVendorSpecifiers();
32
+ if (specifiers.length === 0)
33
+ return;
34
+ const vendorDir = join(buildDir, "svelte", "vendor");
35
+ mkdirSync(vendorDir, { recursive: true });
36
+ const tmpDir = join(buildDir, "_svelte_vendor_tmp");
37
+ mkdirSync(tmpDir, { recursive: true });
38
+ const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
39
+ const safeName = toSafeFileName(specifier);
40
+ const entryPath = join(tmpDir, `${safeName}.ts`);
41
+ await Bun.write(entryPath, `export * from '${specifier}';
42
+ `);
43
+ return entryPath;
44
+ }));
45
+ const result = await bunBuild({
46
+ entrypoints,
47
+ format: "esm",
48
+ minify: false,
49
+ naming: "[name].[ext]",
50
+ outdir: vendorDir,
51
+ splitting: true,
52
+ target: "browser",
53
+ throw: false
54
+ });
55
+ await rm(tmpDir, { force: true, recursive: true });
56
+ if (!result.success) {
57
+ console.warn("\u26A0\uFE0F Svelte vendor build had errors:", result.logs);
58
+ }
59
+ };
60
+ var computeSvelteVendorPaths = () => {
61
+ const paths = {};
62
+ for (const specifier of resolveVendorSpecifiers()) {
63
+ paths[specifier] = `/svelte/vendor/${toSafeFileName(specifier)}.js`;
64
+ }
65
+ return paths;
66
+ };
67
+
68
+ export { buildSvelteVendor, computeSvelteVendorPaths };
69
+
70
+ //# debugId=B465899347FB214664756E2164756E21
71
+ //# sourceMappingURL=chunk-cdxd7sy2.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/build/buildSvelteVendor.ts"],
4
+ "sourcesContent": [
5
+ "import { mkdirSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { rm } from 'node:fs/promises';\nimport { build as bunBuild } from 'bun';\n\n/** Bare specifiers that need stable vendor builds for Svelte.\n * Svelte 5 compiled output imports from svelte/internal/client\n * for the client-side runtime. */\nconst svelteSpecifiers = [\n\t'svelte',\n\t'svelte/internal',\n\t'svelte/internal/flags/async',\n\t'svelte/internal/flags/legacy',\n\t'svelte/internal/client',\n\t'svelte/internal/disclose-version',\n\t'svelte/store'\n];\n\nconst isResolvable = (specifier: string) => {\n\ttry {\n\t\trequire.resolve(specifier);\n\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\n/** Resolve which Svelte specifiers are actually installed */\nconst resolveVendorSpecifiers = () =>\n\tsvelteSpecifiers.filter(isResolvable);\n\n/** Convert a bare specifier to a safe filename: svelte/internal/client → svelte_internal_client */\nconst toSafeFileName = (specifier: string) =>\n\tspecifier.replace(/\\//g, '_');\n\n/** Build Svelte packages into stable vendor files (no content hash).\n * Output goes to {buildDir}/svelte/vendor/ with predictable names. */\nexport const buildSvelteVendor = async (buildDir: string) => {\n\tconst specifiers = resolveVendorSpecifiers();\n\tif (specifiers.length === 0) return;\n\n\tconst vendorDir = join(buildDir, 'svelte', 'vendor');\n\tmkdirSync(vendorDir, { recursive: true });\n\n\tconst tmpDir = join(buildDir, '_svelte_vendor_tmp');\n\tmkdirSync(tmpDir, { recursive: true });\n\n\tconst entrypoints = await Promise.all(\n\t\tspecifiers.map(async (specifier) => {\n\t\t\tconst safeName = toSafeFileName(specifier);\n\t\t\tconst entryPath = join(tmpDir, `${safeName}.ts`);\n\t\t\tawait Bun.write(entryPath, `export * from '${specifier}';\\n`);\n\n\t\t\treturn entryPath;\n\t\t})\n\t);\n\n\tconst result = await bunBuild({\n\t\tentrypoints,\n\t\tformat: 'esm',\n\t\tminify: false,\n\t\tnaming: '[name].[ext]',\n\t\toutdir: vendorDir,\n\t\tsplitting: true,\n\t\ttarget: 'browser',\n\t\tthrow: false\n\t});\n\n\tawait rm(tmpDir, { force: true, recursive: true });\n\n\tif (!result.success) {\n\t\tconsole.warn('⚠️ Svelte vendor build had errors:', result.logs);\n\t}\n};\n\n/** Compute the deterministic vendor paths mapping (no build needed).\n * This can be called before vendor files exist on disk. */\nexport const computeSvelteVendorPaths = () => {\n\tconst paths: Record<string, string> = {};\n\tfor (const specifier of resolveVendorSpecifiers()) {\n\t\tpaths[specifier] = `/svelte/vendor/${toSafeFileName(specifier)}.js`;\n\t}\n\n\treturn paths;\n};\n"
6
+ ],
7
+ "mappings": ";;;;;;AAAA;AACA;AACA;AACA;AAKA,IAAM,mBAAmB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAM,eAAe,CAAC,cAAsB;AAAA,EAC3C,IAAI;AAAA,IACH,kBAAgB,SAAS;AAAA,IAEzB,OAAO;AAAA,IACN,MAAM;AAAA,IACP,OAAO;AAAA;AAAA;AAKT,IAAM,0BAA0B,MAC/B,iBAAiB,OAAO,YAAY;AAGrC,IAAM,iBAAiB,CAAC,cACvB,UAAU,QAAQ,OAAO,GAAG;AAItB,IAAM,oBAAoB,OAAO,aAAqB;AAAA,EAC5D,MAAM,aAAa,wBAAwB;AAAA,EAC3C,IAAI,WAAW,WAAW;AAAA,IAAG;AAAA,EAE7B,MAAM,YAAY,KAAK,UAAU,UAAU,QAAQ;AAAA,EACnD,UAAU,WAAW,EAAE,WAAW,KAAK,CAAC;AAAA,EAExC,MAAM,SAAS,KAAK,UAAU,oBAAoB;AAAA,EAClD,UAAU,QAAQ,EAAE,WAAW,KAAK,CAAC;AAAA,EAErC,MAAM,cAAc,MAAM,QAAQ,IACjC,WAAW,IAAI,OAAO,cAAc;AAAA,IACnC,MAAM,WAAW,eAAe,SAAS;AAAA,IACzC,MAAM,YAAY,KAAK,QAAQ,GAAG,aAAa;AAAA,IAC/C,MAAM,IAAI,MAAM,WAAW,kBAAkB;AAAA,CAAe;AAAA,IAE5D,OAAO;AAAA,GACP,CACF;AAAA,EAEA,MAAM,SAAS,MAAM,SAAS;AAAA,IAC7B;AAAA,IACA,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,OAAO;AAAA,EACR,CAAC;AAAA,EAED,MAAM,GAAG,QAAQ,EAAE,OAAO,MAAM,WAAW,KAAK,CAAC;AAAA,EAEjD,IAAI,CAAC,OAAO,SAAS;AAAA,IACpB,QAAQ,KAAK,gDAAqC,OAAO,IAAI;AAAA,EAC9D;AAAA;AAKM,IAAM,2BAA2B,MAAM;AAAA,EAC7C,MAAM,QAAgC,CAAC;AAAA,EACvC,WAAW,aAAa,wBAAwB,GAAG;AAAA,IAClD,MAAM,aAAa,kBAAkB,eAAe,SAAS;AAAA,EAC9D;AAAA,EAEA,OAAO;AAAA;",
8
+ "debugId": "B465899347FB214664756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,21 @@
1
+ // @bun
2
+ import {
3
+ normalizePath
4
+ } from "./chunk-hyjs4bqs.js";
5
+
6
+ // src/utils/validateSafePath.ts
7
+ import { resolve, relative } from "path";
8
+ var validateSafePath = (targetPath, baseDirectory) => {
9
+ const absoluteBase = resolve(baseDirectory);
10
+ const absoluteTarget = resolve(baseDirectory, targetPath);
11
+ const relativePath = normalizePath(relative(absoluteBase, absoluteTarget));
12
+ if (relativePath.startsWith("../") || relativePath === "..") {
13
+ throw new Error(`Unsafe path: ${targetPath}`);
14
+ }
15
+ return absoluteTarget;
16
+ };
17
+
18
+ export { validateSafePath };
19
+
20
+ //# debugId=ACF897EC8658AF9664756E2164756E21
21
+ //# sourceMappingURL=chunk-cg95827x.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/utils/validateSafePath.ts"],
4
+ "sourcesContent": [
5
+ "import { resolve, relative } from 'node:path';\nimport { normalizePath } from './normalizePath';\n\nexport const validateSafePath = (targetPath: string, baseDirectory: string) => {\n\tconst absoluteBase = resolve(baseDirectory);\n\tconst absoluteTarget = resolve(baseDirectory, targetPath);\n\t// Normalize relative path for consistent cross-platform traversal check\n\tconst relativePath = normalizePath(relative(absoluteBase, absoluteTarget));\n\n\tif (relativePath.startsWith('../') || relativePath === '..') {\n\t\tthrow new Error(`Unsafe path: ${targetPath}`);\n\t}\n\n\treturn absoluteTarget;\n};\n"
6
+ ],
7
+ "mappings": ";;;;;;AAAA;AAGO,IAAM,mBAAmB,CAAC,YAAoB,kBAA0B;AAAA,EAC9E,MAAM,eAAe,QAAQ,aAAa;AAAA,EAC1C,MAAM,iBAAiB,QAAQ,eAAe,UAAU;AAAA,EAExD,MAAM,eAAe,cAAc,SAAS,cAAc,cAAc,CAAC;AAAA,EAEzE,IAAI,aAAa,WAAW,KAAK,KAAK,iBAAiB,MAAM;AAAA,IAC5D,MAAM,IAAI,MAAM,gBAAgB,YAAY;AAAA,EAC7C;AAAA,EAEA,OAAO;AAAA;",
8
+ "debugId": "ACF897EC8658AF9664756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ // src/core/ssrCache.ts
3
+ var dirtyFrameworks = new Set;
4
+ var isSsrCacheDirty = (framework) => dirtyFrameworks.has(framework);
5
+ var markSsrCacheDirty = (framework) => {
6
+ dirtyFrameworks.add(framework);
7
+ };
8
+
9
+ export { isSsrCacheDirty, markSsrCacheDirty };
10
+
11
+ //# debugId=B46F4F2C39173BCD64756E2164756E21
12
+ //# sourceMappingURL=chunk-d9c0am65.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/core/ssrCache.ts"],
4
+ "sourcesContent": [
5
+ "import type { IslandFramework } from '../../types/island';\n\nconst dirtyFrameworks = new Set<IslandFramework>();\n\nexport const isSsrCacheDirty = (framework: IslandFramework) =>\n\tdirtyFrameworks.has(framework);\nexport const markSsrCacheDirty = (framework: IslandFramework) => {\n\tdirtyFrameworks.add(framework);\n};\n"
6
+ ],
7
+ "mappings": ";;AAEA,IAAM,kBAAkB,IAAI;AAErB,IAAM,kBAAkB,CAAC,cAC/B,gBAAgB,IAAI,SAAS;AACvB,IAAM,oBAAoB,CAAC,cAA+B;AAAA,EAChE,gBAAgB,IAAI,SAAS;AAAA;",
8
+ "debugId": "B46F4F2C39173BCD64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ import {
3
+ commonAncestor
4
+ } from "./chunk-b3gbnrwe.js";
5
+ import"./chunk-hyjs4bqs.js";
6
+ import"./chunk-bmgqm774.js";
7
+ export {
8
+ commonAncestor
9
+ };
10
+
11
+ //# debugId=470B84F8382E797064756E2164756E21
12
+ //# sourceMappingURL=chunk-daqghmg8.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "470B84F8382E797064756E2164756E21",
8
+ "names": []
9
+ }