@askrjs/askr 0.0.27 → 0.0.29

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 (442) hide show
  1. package/README.md +55 -147
  2. package/dist/_virtual/_rolldown/runtime.js +7 -0
  3. package/dist/bench/components/benchmark-row.d.ts +20 -0
  4. package/dist/bench/components/benchmark-row.d.ts.map +1 -0
  5. package/dist/bench/components/benchmark-row.js +42 -0
  6. package/dist/bench/components/benchmark-row.js.map +1 -0
  7. package/dist/bench/components/benchmark-table.js +25 -0
  8. package/dist/bench/components/benchmark-table.js.map +1 -0
  9. package/dist/benchmark.d.ts +22 -0
  10. package/dist/benchmark.d.ts.map +1 -0
  11. package/dist/benchmark.js +64 -1
  12. package/dist/benchmark.js.map +1 -0
  13. package/dist/bin/askr-ssg.d.ts +28 -0
  14. package/dist/bin/askr-ssg.d.ts.map +1 -0
  15. package/dist/bin/askr-ssg.js +171 -0
  16. package/dist/bin/askr-ssg.js.map +1 -0
  17. package/dist/boot/index.d.ts +64 -42
  18. package/dist/boot/index.d.ts.map +1 -1
  19. package/dist/boot/index.js +416 -2
  20. package/dist/boot/index.js.map +1 -0
  21. package/dist/common/component.d.ts +14 -13
  22. package/dist/common/component.d.ts.map +1 -1
  23. package/dist/common/control.d.ts +13 -0
  24. package/dist/common/control.d.ts.map +1 -0
  25. package/dist/common/control.js +14 -0
  26. package/dist/common/control.js.map +1 -0
  27. package/dist/common/env.js +47 -0
  28. package/dist/common/env.js.map +1 -0
  29. package/dist/common/jsx.d.ts +17 -15
  30. package/dist/common/jsx.d.ts.map +1 -1
  31. package/dist/common/jsx.js +8 -1
  32. package/dist/common/jsx.js.map +1 -0
  33. package/dist/common/props.d.ts +14 -11
  34. package/dist/common/props.d.ts.map +1 -1
  35. package/dist/common/router.d.ts +190 -32
  36. package/dist/common/router.d.ts.map +1 -1
  37. package/dist/common/ssr-errors.d.ts +6 -3
  38. package/dist/common/ssr-errors.d.ts.map +1 -1
  39. package/dist/common/ssr-errors.js +16 -1
  40. package/dist/common/ssr-errors.js.map +1 -0
  41. package/dist/common/ssr.d.ts +12 -9
  42. package/dist/common/ssr.d.ts.map +1 -1
  43. package/dist/common/vnode.d.ts +17 -15
  44. package/dist/common/vnode.d.ts.map +1 -1
  45. package/dist/common/vnode.js +10 -1
  46. package/dist/common/vnode.js.map +1 -0
  47. package/dist/components/link.d.ts +37 -25
  48. package/dist/components/link.d.ts.map +1 -1
  49. package/dist/components/link.js +64 -1
  50. package/dist/components/link.js.map +1 -0
  51. package/dist/control/case.d.ts +17 -0
  52. package/dist/control/case.d.ts.map +1 -0
  53. package/dist/control/case.js +69 -0
  54. package/dist/control/case.js.map +1 -0
  55. package/dist/control/for.d.ts +23 -0
  56. package/dist/control/for.d.ts.map +1 -0
  57. package/dist/control/for.js +62 -0
  58. package/dist/control/for.js.map +1 -0
  59. package/dist/control/index.d.ts +4 -0
  60. package/dist/control/index.js +4 -0
  61. package/dist/control/shared.js +20 -0
  62. package/dist/control/shared.js.map +1 -0
  63. package/dist/control/show.d.ts +14 -0
  64. package/dist/control/show.d.ts.map +1 -0
  65. package/dist/control/show.js +33 -0
  66. package/dist/control/show.js.map +1 -0
  67. package/dist/dev/invariant.js +29 -2
  68. package/dist/dev/invariant.js.map +1 -0
  69. package/dist/dev/logger.js +37 -1
  70. package/dist/dev/logger.js.map +1 -0
  71. package/dist/foundations/icon/icon.d.ts +53 -0
  72. package/dist/foundations/icon/icon.d.ts.map +1 -0
  73. package/dist/foundations/icon/icon.js +88 -0
  74. package/dist/foundations/icon/icon.js.map +1 -0
  75. package/dist/foundations/icon/icon.types.d.ts +21 -0
  76. package/dist/foundations/icon/icon.types.d.ts.map +1 -0
  77. package/dist/foundations/index.d.ts +10 -3
  78. package/dist/foundations/index.js +9 -1
  79. package/dist/foundations/interactions/interaction-policy.js +93 -1
  80. package/dist/foundations/interactions/interaction-policy.js.map +1 -0
  81. package/dist/foundations/interactions/pressable.js +51 -1
  82. package/dist/foundations/interactions/pressable.js.map +1 -0
  83. package/dist/foundations/structures/collection.d.ts +25 -40
  84. package/dist/foundations/structures/collection.d.ts.map +1 -1
  85. package/dist/foundations/structures/collection.js +51 -1
  86. package/dist/foundations/structures/collection.js.map +1 -0
  87. package/dist/foundations/structures/layer.d.ts +47 -68
  88. package/dist/foundations/structures/layer.d.ts.map +1 -1
  89. package/dist/foundations/structures/layer.js +81 -1
  90. package/dist/foundations/structures/layer.js.map +1 -0
  91. package/dist/foundations/structures/layout.d.ts +6 -3
  92. package/dist/foundations/structures/layout.d.ts.map +1 -1
  93. package/dist/foundations/structures/layout.js +13 -1
  94. package/dist/foundations/structures/layout.js.map +1 -0
  95. package/dist/foundations/structures/portal.d.ts +17 -10
  96. package/dist/foundations/structures/portal.d.ts.map +1 -1
  97. package/dist/foundations/structures/portal.js +105 -1
  98. package/dist/foundations/structures/portal.js.map +1 -0
  99. package/dist/foundations/structures/presence.d.ts +11 -5
  100. package/dist/foundations/structures/presence.d.ts.map +1 -1
  101. package/dist/foundations/structures/presence.js +39 -1
  102. package/dist/foundations/structures/presence.js.map +1 -0
  103. package/dist/foundations/structures/slot.d.ts +11 -8
  104. package/dist/foundations/structures/slot.d.ts.map +1 -1
  105. package/dist/foundations/structures/slot.js +41 -1
  106. package/dist/foundations/structures/slot.js.map +1 -0
  107. package/dist/foundations/structures.d.ts +7 -14
  108. package/dist/foundations/structures.js +6 -1
  109. package/dist/foundations/utilities/aria.js +11 -1
  110. package/dist/foundations/utilities/aria.js.map +1 -0
  111. package/dist/foundations/utilities/compose-handlers.js +20 -1
  112. package/dist/foundations/utilities/compose-handlers.js.map +1 -0
  113. package/dist/foundations/utilities/compose-ref.d.ts +7 -4
  114. package/dist/foundations/utilities/compose-ref.d.ts.map +1 -1
  115. package/dist/foundations/utilities/compose-ref.js +18 -1
  116. package/dist/foundations/utilities/compose-ref.js.map +1 -0
  117. package/dist/foundations/utilities/merge-props.js +49 -1
  118. package/dist/foundations/utilities/merge-props.js.map +1 -0
  119. package/dist/fx/fx.d.ts +24 -21
  120. package/dist/fx/fx.d.ts.map +1 -1
  121. package/dist/fx/fx.js +212 -1
  122. package/dist/fx/fx.js.map +1 -0
  123. package/dist/fx/index.d.ts +4 -7
  124. package/dist/fx/index.js +4 -1
  125. package/dist/fx/noop.js +9 -1
  126. package/dist/fx/noop.js.map +1 -0
  127. package/dist/fx/timing.d.ts +24 -21
  128. package/dist/fx/timing.d.ts.map +1 -1
  129. package/dist/fx/timing.js +236 -1
  130. package/dist/fx/timing.js.map +1 -0
  131. package/dist/index.d.ts +21 -20
  132. package/dist/index.js +34 -1
  133. package/dist/index.js.map +1 -0
  134. package/dist/jsx/index.d.ts +1 -4
  135. package/dist/jsx/index.js +3 -1
  136. package/dist/jsx/types.d.ts +18 -25
  137. package/dist/jsx/types.d.ts.map +1 -1
  138. package/dist/jsx/types.js +1 -1
  139. package/dist/jsx/utils.d.ts +4 -3
  140. package/dist/jsx/utils.d.ts.map +1 -1
  141. package/dist/jsx/utils.js +19 -1
  142. package/dist/jsx/utils.js.map +1 -0
  143. package/dist/jsx-dev-runtime.d.ts +8 -0
  144. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  145. package/dist/jsx-dev-runtime.js +32 -1
  146. package/dist/jsx-dev-runtime.js.map +1 -0
  147. package/dist/jsx-runtime.d.ts +12 -0
  148. package/dist/jsx-runtime.d.ts.map +1 -0
  149. package/dist/jsx-runtime.js +45 -1
  150. package/dist/jsx-runtime.js.map +1 -0
  151. package/dist/jsx-runtime2.d.ts +2 -0
  152. package/dist/jsx-runtime2.js +3 -0
  153. package/dist/renderer/children.js +293 -0
  154. package/dist/renderer/children.js.map +1 -0
  155. package/dist/renderer/cleanup.js +150 -1
  156. package/dist/renderer/cleanup.js.map +1 -0
  157. package/dist/renderer/dom.js +2439 -1
  158. package/dist/renderer/dom.js.map +1 -0
  159. package/dist/renderer/env.js +1 -0
  160. package/dist/renderer/evaluate.js +450 -1
  161. package/dist/renderer/evaluate.js.map +1 -0
  162. package/dist/renderer/fastpath.js +145 -1
  163. package/dist/renderer/fastpath.js.map +1 -0
  164. package/dist/renderer/index.js +24 -1
  165. package/dist/renderer/index.js.map +1 -0
  166. package/dist/renderer/keyed.js +119 -1
  167. package/dist/renderer/keyed.js.map +1 -0
  168. package/dist/renderer/reconcile.js +359 -1
  169. package/dist/renderer/reconcile.js.map +1 -0
  170. package/dist/renderer/types.js +1 -1
  171. package/dist/renderer/utils.js +220 -1
  172. package/dist/renderer/utils.js.map +1 -0
  173. package/dist/resources/index.d.ts +3 -9
  174. package/dist/resources/index.js +3 -1
  175. package/dist/router/index.d.ts +6 -10
  176. package/dist/router/index.js +5 -1
  177. package/dist/router/match.js +83 -1
  178. package/dist/router/match.js.map +1 -0
  179. package/dist/router/navigate.d.ts +20 -8
  180. package/dist/router/navigate.d.ts.map +1 -1
  181. package/dist/router/navigate.js +288 -1
  182. package/dist/router/navigate.js.map +1 -0
  183. package/dist/router/policy.d.ts +22 -0
  184. package/dist/router/policy.d.ts.map +1 -0
  185. package/dist/router/policy.js +116 -0
  186. package/dist/router/policy.js.map +1 -0
  187. package/dist/router/route-context.js +79 -0
  188. package/dist/router/route-context.js.map +1 -0
  189. package/dist/router/route.d.ts +101 -33
  190. package/dist/router/route.d.ts.map +1 -1
  191. package/dist/router/route.js +599 -1
  192. package/dist/router/route.js.map +1 -0
  193. package/dist/runtime/child-scope.d.ts +21 -0
  194. package/dist/runtime/child-scope.d.ts.map +1 -0
  195. package/dist/runtime/child-scope.js +77 -0
  196. package/dist/runtime/child-scope.js.map +1 -0
  197. package/dist/runtime/component.d.ts +67 -53
  198. package/dist/runtime/component.d.ts.map +1 -1
  199. package/dist/runtime/component.js +462 -1
  200. package/dist/runtime/component.js.map +1 -0
  201. package/dist/runtime/context.d.ts +28 -42
  202. package/dist/runtime/context.d.ts.map +1 -1
  203. package/dist/runtime/context.js +205 -1
  204. package/dist/runtime/context.js.map +1 -0
  205. package/dist/runtime/control.d.ts +43 -0
  206. package/dist/runtime/control.d.ts.map +1 -0
  207. package/dist/runtime/control.js +125 -0
  208. package/dist/runtime/control.js.map +1 -0
  209. package/dist/runtime/derive.d.ts +15 -6
  210. package/dist/runtime/derive.d.ts.map +1 -1
  211. package/dist/runtime/derive.js +134 -1
  212. package/dist/runtime/derive.js.map +1 -0
  213. package/dist/runtime/dev-namespace.js +57 -1
  214. package/dist/runtime/dev-namespace.js.map +1 -0
  215. package/dist/runtime/effect.d.ts +32 -0
  216. package/dist/runtime/effect.d.ts.map +1 -0
  217. package/dist/runtime/effect.js +146 -0
  218. package/dist/runtime/effect.js.map +1 -0
  219. package/dist/runtime/events.js +162 -1
  220. package/dist/runtime/events.js.map +1 -0
  221. package/dist/runtime/execution-model.js +15 -1
  222. package/dist/runtime/execution-model.js.map +1 -0
  223. package/dist/runtime/fastlane.js +204 -1
  224. package/dist/runtime/fastlane.js.map +1 -0
  225. package/dist/runtime/for-bench.d.ts +41 -0
  226. package/dist/runtime/for-bench.d.ts.map +1 -0
  227. package/dist/runtime/for-bench.js +173 -0
  228. package/dist/runtime/for-bench.js.map +1 -0
  229. package/dist/runtime/for.d.ts +62 -49
  230. package/dist/runtime/for.d.ts.map +1 -1
  231. package/dist/runtime/for.js +668 -1
  232. package/dist/runtime/for.js.map +1 -0
  233. package/dist/runtime/operations.d.ts +18 -15
  234. package/dist/runtime/operations.d.ts.map +1 -1
  235. package/dist/runtime/operations.js +209 -1
  236. package/dist/runtime/operations.js.map +1 -0
  237. package/dist/runtime/perf-metrics.js +64 -0
  238. package/dist/runtime/perf-metrics.js.map +1 -0
  239. package/dist/runtime/readable.d.ts +27 -0
  240. package/dist/runtime/readable.d.ts.map +1 -0
  241. package/dist/runtime/readable.js +118 -0
  242. package/dist/runtime/readable.js.map +1 -0
  243. package/dist/runtime/resource-cell.js +102 -1
  244. package/dist/runtime/resource-cell.js.map +1 -0
  245. package/dist/runtime/scheduler.d.ts +51 -35
  246. package/dist/runtime/scheduler.d.ts.map +1 -1
  247. package/dist/runtime/scheduler.js +328 -1
  248. package/dist/runtime/scheduler.js.map +1 -0
  249. package/dist/runtime/selector.d.ts +11 -0
  250. package/dist/runtime/selector.d.ts.map +1 -0
  251. package/dist/runtime/selector.js +188 -0
  252. package/dist/runtime/selector.js.map +1 -0
  253. package/dist/runtime/ssr-bridge.js +24 -1
  254. package/dist/runtime/ssr-bridge.js.map +1 -0
  255. package/dist/runtime/state.d.ts +11 -21
  256. package/dist/runtime/state.d.ts.map +1 -1
  257. package/dist/runtime/state.js +99 -1
  258. package/dist/runtime/state.js.map +1 -0
  259. package/dist/ssg/batch-render.d.ts +16 -0
  260. package/dist/ssg/batch-render.d.ts.map +1 -0
  261. package/dist/ssg/batch-render.js +84 -0
  262. package/dist/ssg/batch-render.js.map +1 -0
  263. package/dist/ssg/create-static-gen.d.ts +50 -0
  264. package/dist/ssg/create-static-gen.d.ts.map +1 -0
  265. package/dist/ssg/create-static-gen.js +282 -0
  266. package/dist/ssg/create-static-gen.js.map +1 -0
  267. package/dist/ssg/generate-metadata.d.ts +24 -0
  268. package/dist/ssg/generate-metadata.d.ts.map +1 -0
  269. package/dist/ssg/generate-metadata.js +94 -0
  270. package/dist/ssg/generate-metadata.js.map +1 -0
  271. package/dist/ssg/incremental-manifest.js +56 -0
  272. package/dist/ssg/incremental-manifest.js.map +1 -0
  273. package/dist/ssg/index.d.ts +8 -0
  274. package/dist/ssg/index.js +7 -0
  275. package/dist/ssg/resolve-ssg-data.d.ts +23 -0
  276. package/dist/ssg/resolve-ssg-data.d.ts.map +1 -0
  277. package/dist/ssg/resolve-ssg-data.js +46 -0
  278. package/dist/ssg/resolve-ssg-data.js.map +1 -0
  279. package/dist/ssg/route-utils.d.ts +16 -0
  280. package/dist/ssg/route-utils.d.ts.map +1 -0
  281. package/dist/ssg/route-utils.js +24 -0
  282. package/dist/ssg/route-utils.js.map +1 -0
  283. package/dist/ssg/types.d.ts +177 -0
  284. package/dist/ssg/types.d.ts.map +1 -0
  285. package/dist/ssg/write-static-files.d.ts +15 -0
  286. package/dist/ssg/write-static-files.d.ts.map +1 -0
  287. package/dist/ssg/write-static-files.js +73 -0
  288. package/dist/ssg/write-static-files.js.map +1 -0
  289. package/dist/ssr/attrs.js +93 -1
  290. package/dist/ssr/attrs.js.map +1 -0
  291. package/dist/ssr/context.d.ts +31 -32
  292. package/dist/ssr/context.d.ts.map +1 -1
  293. package/dist/ssr/context.js +63 -1
  294. package/dist/ssr/context.js.map +1 -0
  295. package/dist/ssr/errors.d.ts +6 -4
  296. package/dist/ssr/errors.d.ts.map +1 -1
  297. package/dist/ssr/errors.js +4 -1
  298. package/dist/ssr/errors.js.map +1 -0
  299. package/dist/ssr/escape.js +153 -1
  300. package/dist/ssr/escape.js.map +1 -0
  301. package/dist/ssr/index.d.ts +75 -46
  302. package/dist/ssr/index.d.ts.map +1 -1
  303. package/dist/ssr/index.js +543 -1
  304. package/dist/ssr/index.js.map +1 -0
  305. package/dist/ssr/render-keys.d.ts +27 -29
  306. package/dist/ssr/render-keys.d.ts.map +1 -1
  307. package/dist/ssr/render-keys.js +39 -1
  308. package/dist/ssr/render-keys.js.map +1 -0
  309. package/dist/ssr/sink.js +86 -1
  310. package/dist/ssr/sink.js.map +1 -0
  311. package/dist/ssr/stream-render.js +76 -1
  312. package/dist/ssr/stream-render.js.map +1 -0
  313. package/dist/ssr/types.d.ts +14 -13
  314. package/dist/ssr/types.d.ts.map +1 -1
  315. package/package.json +53 -48
  316. package/dist/_virtual/___vite-browser-external.js +0 -1
  317. package/dist/_virtual/__vite-browser-external.js +0 -1
  318. package/dist/_virtual/_commonjsHelpers.js +0 -1
  319. package/dist/_virtual/main.js +0 -1
  320. package/dist/_virtual/preload-helper.js +0 -1
  321. package/dist/bench/benchmark-entry.d.ts +0 -14
  322. package/dist/bench/benchmark-entry.d.ts.map +0 -1
  323. package/dist/common/errors.d.ts +0 -53
  324. package/dist/common/errors.d.ts.map +0 -1
  325. package/dist/common/index.d.ts +0 -14
  326. package/dist/common/index.d.ts.map +0 -1
  327. package/dist/dev/invariant.d.ts +0 -83
  328. package/dist/dev/invariant.d.ts.map +0 -1
  329. package/dist/dev/logger.d.ts +0 -13
  330. package/dist/dev/logger.d.ts.map +0 -1
  331. package/dist/dev/vite-plugin-askr.d.ts +0 -18
  332. package/dist/dev/vite-plugin-askr.d.ts.map +0 -1
  333. package/dist/dev/warnings.d.ts +0 -5
  334. package/dist/dev/warnings.d.ts.map +0 -1
  335. package/dist/for/for.d.ts +0 -16
  336. package/dist/for/for.d.ts.map +0 -1
  337. package/dist/for/for.js +0 -1
  338. package/dist/for/index.d.ts +0 -2
  339. package/dist/for/index.d.ts.map +0 -1
  340. package/dist/for/index.js +0 -1
  341. package/dist/foundations/core.d.ts +0 -23
  342. package/dist/foundations/core.d.ts.map +0 -1
  343. package/dist/foundations/core.js +0 -1
  344. package/dist/foundations/index.d.ts.map +0 -1
  345. package/dist/foundations/interactions/dismissable.d.ts +0 -58
  346. package/dist/foundations/interactions/dismissable.d.ts.map +0 -1
  347. package/dist/foundations/interactions/dismissable.js +0 -1
  348. package/dist/foundations/interactions/focusable.d.ts +0 -16
  349. package/dist/foundations/interactions/focusable.d.ts.map +0 -1
  350. package/dist/foundations/interactions/focusable.js +0 -1
  351. package/dist/foundations/interactions/hoverable.d.ts +0 -19
  352. package/dist/foundations/interactions/hoverable.d.ts.map +0 -1
  353. package/dist/foundations/interactions/hoverable.js +0 -1
  354. package/dist/foundations/interactions/index.d.ts +0 -5
  355. package/dist/foundations/interactions/index.d.ts.map +0 -1
  356. package/dist/foundations/interactions/interaction-policy.d.ts +0 -96
  357. package/dist/foundations/interactions/interaction-policy.d.ts.map +0 -1
  358. package/dist/foundations/interactions/pressable.d.ts +0 -54
  359. package/dist/foundations/interactions/pressable.d.ts.map +0 -1
  360. package/dist/foundations/interactions/roving-focus.d.ts +0 -117
  361. package/dist/foundations/interactions/roving-focus.d.ts.map +0 -1
  362. package/dist/foundations/interactions/roving-focus.js +0 -1
  363. package/dist/foundations/state/controllable.d.ts +0 -53
  364. package/dist/foundations/state/controllable.d.ts.map +0 -1
  365. package/dist/foundations/state/controllable.js +0 -1
  366. package/dist/foundations/state/index.d.ts +0 -2
  367. package/dist/foundations/state/index.d.ts.map +0 -1
  368. package/dist/foundations/structures/index.d.ts +0 -5
  369. package/dist/foundations/structures/index.d.ts.map +0 -1
  370. package/dist/foundations/structures.d.ts.map +0 -1
  371. package/dist/foundations/utilities/aria.d.ts +0 -13
  372. package/dist/foundations/utilities/aria.d.ts.map +0 -1
  373. package/dist/foundations/utilities/compose-handlers.d.ts +0 -34
  374. package/dist/foundations/utilities/compose-handlers.d.ts.map +0 -1
  375. package/dist/foundations/utilities/event-types.d.ts +0 -17
  376. package/dist/foundations/utilities/event-types.d.ts.map +0 -1
  377. package/dist/foundations/utilities/index.d.ts +0 -7
  378. package/dist/foundations/utilities/index.d.ts.map +0 -1
  379. package/dist/foundations/utilities/merge-props.d.ts +0 -2
  380. package/dist/foundations/utilities/merge-props.d.ts.map +0 -1
  381. package/dist/foundations/utilities/use-id.d.ts +0 -29
  382. package/dist/foundations/utilities/use-id.d.ts.map +0 -1
  383. package/dist/foundations/utilities/use-id.js +0 -1
  384. package/dist/fx/index.d.ts.map +0 -1
  385. package/dist/fx/noop.d.ts +0 -12
  386. package/dist/fx/noop.d.ts.map +0 -1
  387. package/dist/index.d.ts.map +0 -1
  388. package/dist/jsx/index.d.ts.map +0 -1
  389. package/dist/jsx/jsx-dev-runtime.d.ts +0 -4
  390. package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
  391. package/dist/jsx/jsx-runtime.d.ts +0 -10
  392. package/dist/jsx/jsx-runtime.d.ts.map +0 -1
  393. package/dist/node_modules/esbuild/lib/main.js +0 -65
  394. package/dist/renderer/cleanup.d.ts +0 -25
  395. package/dist/renderer/cleanup.d.ts.map +0 -1
  396. package/dist/renderer/dom.d.ts +0 -62
  397. package/dist/renderer/dom.d.ts.map +0 -1
  398. package/dist/renderer/evaluate.d.ts +0 -4
  399. package/dist/renderer/evaluate.d.ts.map +0 -1
  400. package/dist/renderer/fastpath.d.ts +0 -7
  401. package/dist/renderer/fastpath.d.ts.map +0 -1
  402. package/dist/renderer/index.d.ts +0 -6
  403. package/dist/renderer/index.d.ts.map +0 -1
  404. package/dist/renderer/keyed.d.ts +0 -23
  405. package/dist/renderer/keyed.d.ts.map +0 -1
  406. package/dist/renderer/reconcile.d.ts +0 -88
  407. package/dist/renderer/reconcile.d.ts.map +0 -1
  408. package/dist/renderer/types.d.ts +0 -3
  409. package/dist/renderer/types.d.ts.map +0 -1
  410. package/dist/renderer/utils.d.ts +0 -63
  411. package/dist/renderer/utils.d.ts.map +0 -1
  412. package/dist/resources/index.d.ts.map +0 -1
  413. package/dist/router/index.d.ts.map +0 -1
  414. package/dist/router/match.d.ts +0 -22
  415. package/dist/router/match.d.ts.map +0 -1
  416. package/dist/runtime/dev-namespace.d.ts +0 -31
  417. package/dist/runtime/dev-namespace.d.ts.map +0 -1
  418. package/dist/runtime/events.d.ts +0 -52
  419. package/dist/runtime/events.d.ts.map +0 -1
  420. package/dist/runtime/execution-model.d.ts +0 -4
  421. package/dist/runtime/execution-model.d.ts.map +0 -1
  422. package/dist/runtime/fastlane.d.ts +0 -27
  423. package/dist/runtime/fastlane.d.ts.map +0 -1
  424. package/dist/runtime/hydration.d.ts +0 -25
  425. package/dist/runtime/hydration.d.ts.map +0 -1
  426. package/dist/runtime/resource-cell.d.ts +0 -35
  427. package/dist/runtime/resource-cell.d.ts.map +0 -1
  428. package/dist/runtime/snapshot.d.ts +0 -25
  429. package/dist/runtime/snapshot.d.ts.map +0 -1
  430. package/dist/runtime/ssr-bridge.d.ts +0 -10
  431. package/dist/runtime/ssr-bridge.d.ts.map +0 -1
  432. package/dist/ssr/attrs.d.ts +0 -26
  433. package/dist/ssr/attrs.d.ts.map +0 -1
  434. package/dist/ssr/create-ssr.d.ts +0 -19
  435. package/dist/ssr/create-ssr.d.ts.map +0 -1
  436. package/dist/ssr/escape.d.ts +0 -38
  437. package/dist/ssr/escape.d.ts.map +0 -1
  438. package/dist/ssr/sink.d.ts +0 -23
  439. package/dist/ssr/sink.d.ts.map +0 -1
  440. package/dist/ssr/stream-render.d.ts +0 -7
  441. package/dist/ssr/stream-render.d.ts.map +0 -1
  442. package/dist/vite/index.js +0 -3
@@ -1,53 +0,0 @@
1
- /**
2
- * controllable
3
- *
4
- * Small utilities for controlled vs uncontrolled components. These helpers are
5
- * intentionally minimal and do not manage state themselves; they help component
6
- * implementations make correct decisions about when to call `onChange` vs
7
- * update internal state.
8
- *
9
- * POLICY DECISIONS (LOCKED):
10
- *
11
- * 1. Controlled Detection
12
- * A value is "controlled" if it is not `undefined`.
13
- * This matches React conventions and is SSR-safe.
14
- *
15
- * 2. onChange Timing
16
- * - Controlled mode: onChange called immediately, no internal update
17
- * - Uncontrolled mode: internal state updated first, then onChange called
18
- * This ensures onChange sees the new value in both modes.
19
- *
20
- * 3. Value Equality
21
- * controllableState uses Object.is() to prevent unnecessary onChange calls.
22
- * This is intentional — strict equality, no deep comparison.
23
- */
24
- import { type State } from '../../runtime/state';
25
- export declare function isControlled<T>(value: T | undefined): value is T;
26
- export declare function resolveControllable<T>(value: T | undefined, defaultValue: T): {
27
- value: T;
28
- isControlled: boolean;
29
- };
30
- export declare function makeControllable<T>(options: {
31
- value: T | undefined;
32
- defaultValue: T;
33
- onChange?: (next: T) => void;
34
- setInternal?: (next: T) => void;
35
- }): {
36
- set: (next: T) => void;
37
- isControlled: boolean;
38
- };
39
- export type ControllableState<T> = State<T> & {
40
- isControlled: boolean;
41
- };
42
- /**
43
- * controllableState
44
- *
45
- * Hook-like primitive that mirrors `state()` semantics while supporting
46
- * controlled/uncontrolled behavior.
47
- */
48
- export declare function controllableState<T>(options: {
49
- value: T | undefined;
50
- defaultValue: T;
51
- onChange?: (next: T) => void;
52
- }): ControllableState<T>;
53
- //# sourceMappingURL=controllable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controllable.d.ts","sourceRoot":"","sources":["../../../src/foundations/state/controllable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAS,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAExD,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,GAAG,KAAK,IAAI,CAAC,CAEhE;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,CAAC,GAAG,SAAS,EACpB,YAAY,EAAE,CAAC,GACd;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAMrC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE;IAC3C,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,YAAY,EAAE,CAAC,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CACjC;gBAIoB,CAAC;;EAUrB;AAED,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE;IAC5C,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,YAAY,EAAE,CAAC,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CAC9B,GAAG,iBAAiB,CAAC,CAAC,CAAC,CA4BvB"}
@@ -1 +0,0 @@
1
- import{state as s}from"../../runtime/state.js";function c(n){return n!==void 0}function a(n,t){const e=c(n);return{value:e?n:t,isControlled:e}}function C(n){const{value:t,defaultValue:e,onChange:o,setInternal:l}=n,{isControlled:r}=a(t,e);function u(i){r||l?.(i),o?.(i)}return{set:u,isControlled:r}}function d(n){const t=s(n.defaultValue),e=n.value!==void 0;function o(){return e?n.value:t()}return o.set=l=>{const r=o(),u=typeof l=="function"?l(r):l;if(!Object.is(r,u)){if(e){n.onChange?.(u);return}t.set(l),n.onChange?.(u)}},o.isControlled=e,o}export{d as controllableState,c as isControlled,C as makeControllable,a as resolveControllable};
@@ -1,2 +0,0 @@
1
- export * from './controllable';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/state/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './layout';
2
- export * from './slot';
3
- export * from './portal';
4
- export * from './presence';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/structures/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"structures.d.ts","sourceRoot":"","sources":["../../src/foundations/structures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Tiny aria helpers
3
- */
4
- export declare function ariaDisabled(disabled?: boolean): {
5
- 'aria-disabled'?: 'true';
6
- };
7
- export declare function ariaExpanded(expanded?: boolean): {
8
- 'aria-expanded'?: 'true' | 'false';
9
- };
10
- export declare function ariaSelected(selected?: boolean): {
11
- 'aria-selected'?: 'true' | 'false';
12
- };
13
- //# sourceMappingURL=aria.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["../../../src/foundations/utilities/aria.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,YAAY,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG;IAAE,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,CAE7E;AAED,wBAAgB,YAAY,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG;IAChD,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACpC,CAIA;AAED,wBAAgB,YAAY,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG;IAChD,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACpC,CAIA"}
@@ -1,34 +0,0 @@
1
- /**
2
- * composeHandlers
3
- *
4
- * Compose two event handlers into one. The first handler runs, and unless it
5
- * calls `event.preventDefault()` (or sets `defaultPrevented`), the second
6
- * handler runs. This prevents accidental clobbering of child handlers when
7
- * injecting props.
8
- *
9
- * POLICY DECISIONS (LOCKED):
10
- *
11
- * 1. Execution Order
12
- * First handler runs before second (injected before base).
13
- * This allows injected handlers to prevent default behavior.
14
- *
15
- * 2. Default Prevention Check
16
- * By default, checks `defaultPrevented` on first argument.
17
- * Can be disabled via options.checkDefaultPrevented = false.
18
- *
19
- * 3. Undefined Handler Support
20
- * Undefined handlers are skipped (no-op). This simplifies usage
21
- * where handlers are optional.
22
- *
23
- * 4. Type Safety
24
- * Args are readonly to prevent mutation. Return type matches input.
25
- */
26
- export interface ComposeHandlersOptions {
27
- /**
28
- * When true (default), do not run the second handler if the first prevented default.
29
- * When false, always run both handlers.
30
- */
31
- checkDefaultPrevented?: boolean;
32
- }
33
- export declare function composeHandlers<A extends readonly unknown[]>(first?: (...args: A) => void, second?: (...args: A) => void, options?: ComposeHandlersOptions): (...args: A) => void;
34
- //# sourceMappingURL=compose-handlers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compose-handlers.d.ts","sourceRoot":"","sources":["../../../src/foundations/utilities/compose-handlers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAaD,wBAAgB,eAAe,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAC1D,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,EAC5B,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,EAC7B,OAAO,CAAC,EAAE,sBAAsB,GAC/B,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAsBtB"}
@@ -1,17 +0,0 @@
1
- export interface DefaultPreventable {
2
- defaultPrevented?: boolean;
3
- preventDefault?: () => void;
4
- }
5
- export interface PropagationStoppable {
6
- stopPropagation?: () => void;
7
- }
8
- export interface KeyboardLikeEvent extends DefaultPreventable, PropagationStoppable {
9
- key: string;
10
- }
11
- export interface PointerLikeEvent extends DefaultPreventable, PropagationStoppable {
12
- target?: unknown;
13
- }
14
- export interface FocusLikeEvent extends DefaultPreventable, PropagationStoppable {
15
- relatedTarget?: unknown;
16
- }
17
- //# sourceMappingURL=event-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../../src/foundations/utilities/event-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,iBACf,SAAQ,kBAAkB,EAAE,oBAAoB;IAChD,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBACf,SAAQ,kBAAkB,EAAE,oBAAoB;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cACf,SAAQ,kBAAkB,EAAE,oBAAoB;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
@@ -1,7 +0,0 @@
1
- export * from './compose-handlers';
2
- export * from './merge-props';
3
- export * from './aria';
4
- export * from './compose-ref';
5
- export * from './use-id';
6
- export * from './event-types';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function mergeProps<TBase extends object, TInjected extends object>(base: TBase, injected: TInjected): TInjected & TBase;
2
- //# sourceMappingURL=merge-props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge-props.d.ts","sourceRoot":"","sources":["../../../src/foundations/utilities/merge-props.ts"],"names":[],"mappings":"AAiCA,wBAAgB,UAAU,CAAC,KAAK,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM,EACvE,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,SAAS,GAClB,SAAS,GAAG,KAAK,CA+BnB"}
@@ -1,29 +0,0 @@
1
- export interface FormatIdOptions {
2
- /** Defaults to 'askr' */
3
- prefix?: string;
4
- /** Stable, caller-provided identity */
5
- id: string | number;
6
- }
7
- /**
8
- * formatId
9
- *
10
- * Formats a stable ID from a caller-provided identity.
11
- * - Pure and deterministic (no time/randomness/global counters)
12
- * - SSR-safe
13
- *
14
- * POLICY DECISIONS (LOCKED):
15
- *
16
- * 1. No Auto-Generation
17
- * Caller must provide the `id`. No random/sequential generation.
18
- * This ensures determinism and SSR safety.
19
- *
20
- * 2. Format Convention
21
- * IDs are formatted as `{prefix}-{id}`.
22
- * Default prefix is "askr".
23
- *
24
- * 3. Type Coercion
25
- * Numbers are coerced to strings via String().
26
- * This is deterministic and consistent.
27
- */
28
- export declare function formatId(options: FormatIdOptions): string;
29
- //# sourceMappingURL=use-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-id.d.ts","sourceRoot":"","sources":["../../../src/foundations/utilities/use-id.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAGzD"}
@@ -1 +0,0 @@
1
- function f(r){return`${r.prefix??"askr"}-${String(r.id)}`}export{f as formatId};
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fx/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,GAAG,EACH,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,YAAY,GAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,aAAa,EACb,aAAa,EACb,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,aAAa,GACd,MAAM,MAAM,CAAC"}
package/dist/fx/noop.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export declare const noop: () => void;
2
- export declare const noopEventListener: EventListener & {
3
- cancel(): void;
4
- };
5
- export declare const noopEventListenerWithFlush: EventListener & {
6
- cancel(): void;
7
- flush(): void;
8
- };
9
- export declare const noopCancel: {
10
- cancel(): void;
11
- };
12
- //# sourceMappingURL=noop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"noop.d.ts","sourceRoot":"","sources":["../../src/fx/noop.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAE,MAAM,IAAe,CAAC;AAEzC,eAAO,MAAM,iBAAiB,EAAE,aAAa,GAAG;IAAE,MAAM,IAAI,IAAI,CAAA;CACX,CAAC;AAEtD,eAAO,MAAM,0BAA0B,EAAE,aAAa,GAAG;IACvD,MAAM,IAAI,IAAI,CAAC;IACf,KAAK,IAAI,IAAI,CAAC;CACmD,CAAC;AAEpE,eAAO,MAAM,UAAU,EAAE;IAAE,MAAM,IAAI,IAAI,CAAA;CAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACjD,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGtD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jsx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
@@ -1,4 +0,0 @@
1
- import { Fragment, type JSXElement } from './types';
2
- export declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
3
- export { Fragment };
4
- //# sourceMappingURL=jsx-dev-runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-dev-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx/jsx-dev-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAElE,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACrC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GACpB,UAAU,CAOZ;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * JSX runtime factory
3
- * Same element shape as production runtime.
4
- */
5
- import { Fragment, type JSXElement } from './types';
6
- export declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
7
- export declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
8
- export declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string | number): JSXElement;
9
- export { Fragment };
10
- //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx/jsx-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAgB,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAElE,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACrC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GACpB,UAAU,CAOZ;AAGD,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACrC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,cAGtB;AAED,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACrC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,cAGtB;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,65 +0,0 @@
1
- import"../../../_virtual/_commonjsHelpers.js";import ie from"../../../_virtual/___vite-browser-external.js";var qe,pt;function dr(){if(pt)return qe;pt=1;var Ne={},wt=Object.create,Pe=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,bt=Object.getOwnPropertyNames,vt=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty,$t=(e,t)=>{for(var r in t)Pe(e,r,{get:t[r],enumerable:!0})},Je=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of bt(t))!xt.call(e,l)&&l!==r&&Pe(e,l,{get:()=>t[l],enumerable:!(n=yt(t,l))||n.enumerable});return e},ur=(e,t,r)=>(r=e!=null?wt(vt(e)):{},Je(t||!e||!e.__esModule?Pe(r,"default",{value:e,enumerable:!0}):r,e)),Et=e=>Je(Pe({},"__esModule",{value:!0}),e),xe={};$t(xe,{analyzeMetafile:()=>Xt,analyzeMetafileSync:()=>rr,build:()=>Ht,buildSync:()=>Zt,context:()=>Kt,default:()=>ar,formatMessages:()=>Gt,formatMessagesSync:()=>tr,initialize:()=>ir,stop:()=>nr,transform:()=>Qt,transformSync:()=>er,version:()=>Yt}),qe=Et(xe);function Ve(e){let t=n=>{if(n===null)r.write8(0);else if(typeof n=="boolean")r.write8(1),r.write8(+n);else if(typeof n=="number")r.write8(2),r.write32(n|0);else if(typeof n=="string")r.write8(3),r.write(re(n));else if(n instanceof Uint8Array)r.write8(4),r.write(n);else if(n instanceof Array){r.write8(5),r.write32(n.length);for(let l of n)t(l)}else{let l=Object.keys(n);r.write8(6),r.write32(l.length);for(let s of l)r.write(re(s)),t(n[s])}},r=new Ye;return r.write32(0),r.write32(e.id<<1|+!e.isRequest),t(e.value),Ue(r.buf,r.len-4,0),r.buf.subarray(0,r.len)}function kt(e){let t=()=>{switch(r.read8()){case 0:return null;case 1:return!!r.read8();case 2:return r.read32();case 3:return pe(r.read());case 4:return r.read();case 5:{let a=r.read32(),h=[];for(let o=0;o<a;o++)h.push(t());return h}case 6:{let a=r.read32(),h={};for(let o=0;o<a;o++)h[pe(r.read())]=t();return h}default:throw new Error("Invalid packet")}},r=new Ye(e),n=r.read32(),l=(n&1)===0;n>>>=1;let s=t();if(r.ptr!==e.length)throw new Error("Invalid packet");return{id:n,isRequest:l,value:s}}var Ye=class{constructor(e=new Uint8Array(1024)){this.buf=e,this.len=0,this.ptr=0}_write(e){if(this.len+e>this.buf.length){let t=new Uint8Array((this.len+e)*2);t.set(this.buf),this.buf=t}return this.len+=e,this.len-e}write8(e){let t=this._write(1);this.buf[t]=e}write32(e){let t=this._write(4);Ue(this.buf,e,t)}write(e){let t=this._write(4+e.length);Ue(this.buf,e.length,t),this.buf.set(e,t+4)}_read(e){if(this.ptr+e>this.buf.length)throw new Error("Invalid packet");return this.ptr+=e,this.ptr-e}read8(){return this.buf[this._read(1)]}read32(){return He(this.buf,this._read(4))}read(){let e=this.read32(),t=new Uint8Array(e),r=this._read(t.length);return t.set(this.buf.subarray(r,r+e)),t}},re,pe,Re;if(typeof TextEncoder<"u"&&typeof TextDecoder<"u"){let e=new TextEncoder,t=new TextDecoder;re=r=>e.encode(r),pe=r=>t.decode(r),Re='new TextEncoder().encode("")'}else if(typeof Buffer<"u")re=e=>Buffer.from(e),pe=e=>{let{buffer:t,byteOffset:r,byteLength:n}=e;return Buffer.from(t,r,n).toString()},Re='Buffer.from("")';else throw new Error("No UTF-8 codec found");if(!(re("")instanceof Uint8Array))throw new Error(`Invariant violation: "${Re} instanceof Uint8Array" is incorrectly false
2
-
3
- This indicates that your JavaScript environment is broken. You cannot use
4
- esbuild in this environment because esbuild relies on this invariant. This
5
- is not a problem with esbuild. You need to fix your environment instead.
6
- `);function He(e,t){return e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24}function Ue(e,t,r){e[r++]=t,e[r++]=t>>8,e[r++]=t>>16,e[r++]=t>>24}var V=JSON.stringify,Ke="warning",Qe="silent";function we(e,t){const r=[];for(const n of e){if(Q(n,t),n.indexOf(",")>=0)throw new Error(`Invalid ${t}: ${n}`);r.push(n)}return r.join(",")}var je=()=>null,U=e=>typeof e=="boolean"?null:"a boolean",y=e=>typeof e=="string"?null:"a string",Oe=e=>e instanceof RegExp?null:"a RegExp object",ce=e=>typeof e=="number"&&e===(e|0)?null:"an integer",St=e=>typeof e=="number"&&e===(e|0)&&e>=0&&e<=65535?null:"a valid port number",Ge=e=>typeof e=="function"?null:"a function",le=e=>Array.isArray(e)?null:"an array",K=e=>Array.isArray(e)&&e.every(t=>typeof t=="string")?null:"an array of strings",X=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?null:"an object",At=e=>typeof e=="object"&&e!==null?null:"an array or an object",Pt=e=>e instanceof WebAssembly.Module?null:"a WebAssembly.Module",Xe=e=>typeof e=="object"&&!Array.isArray(e)?null:"an object or null",Ze=e=>typeof e=="string"||typeof e=="boolean"?null:"a string or a boolean",jt=e=>typeof e=="string"||typeof e=="object"&&e!==null&&!Array.isArray(e)?null:"a string or an object",et=e=>typeof e=="string"||Array.isArray(e)&&e.every(t=>typeof t=="string")?null:"a string or an array of strings",tt=e=>typeof e=="string"||e instanceof Uint8Array?null:"a string or a Uint8Array",Ot=e=>typeof e=="string"||e instanceof URL?null:"a string or a URL";function i(e,t,r,n){let l=e[r];if(t[r+""]=!0,l===void 0)return;let s=n(l);if(s!==null)throw new Error(`${V(r)} must be ${s}`);return l}function q(e,t,r){for(let n in e)if(!(n in t))throw new Error(`Invalid option ${r}: ${V(n)}`)}function Dt(e){let t=Object.create(null),r=i(e,t,"wasmURL",Ot),n=i(e,t,"wasmModule",Pt),l=i(e,t,"worker",U);return q(e,t,"in initialize() call"),{wasmURL:r,wasmModule:n,worker:l}}function rt(e){let t;if(e!==void 0){t=Object.create(null);for(let r in e){let n=e[r];if(typeof n=="string"||n===!1)t[r]=n;else throw new Error(`Expected ${V(r)} in mangle cache to map to either a string or false`)}}return t}function De(e,t,r,n,l){let s=i(t,r,"color",U),a=i(t,r,"logLevel",y),h=i(t,r,"logLimit",ce);s!==void 0?e.push(`--color=${s}`):n&&e.push("--color=true"),e.push(`--log-level=${a||l}`),e.push(`--log-limit=${h||0}`)}function Q(e,t,r){if(typeof e!="string")throw new Error(`Expected value for ${t}${r!==void 0?" "+V(r):""} to be a string, got ${typeof e} instead`);return e}function nt(e,t,r){let n=i(t,r,"legalComments",y),l=i(t,r,"sourceRoot",y),s=i(t,r,"sourcesContent",U),a=i(t,r,"target",et),h=i(t,r,"format",y),o=i(t,r,"globalName",y),w=i(t,r,"mangleProps",Oe),g=i(t,r,"reserveProps",Oe),$=i(t,r,"mangleQuoted",U),I=i(t,r,"minify",U),_=i(t,r,"minifySyntax",U),B=i(t,r,"minifyWhitespace",U),N=i(t,r,"minifyIdentifiers",U),L=i(t,r,"lineLimit",ce),W=i(t,r,"drop",K),z=i(t,r,"dropLabels",K),x=i(t,r,"charset",y),p=i(t,r,"treeShaking",U),d=i(t,r,"ignoreAnnotations",U),u=i(t,r,"jsx",y),E=i(t,r,"jsxFactory",y),S=i(t,r,"jsxFragment",y),D=i(t,r,"jsxImportSource",y),A=i(t,r,"jsxDev",U),f=i(t,r,"jsxSideEffects",U),c=i(t,r,"define",X),v=i(t,r,"logOverride",X),j=i(t,r,"supported",X),C=i(t,r,"pure",K),P=i(t,r,"keepNames",U),k=i(t,r,"platform",y),O=i(t,r,"tsconfigRaw",jt),R=i(t,r,"absPaths",K);if(n&&e.push(`--legal-comments=${n}`),l!==void 0&&e.push(`--source-root=${l}`),s!==void 0&&e.push(`--sources-content=${s}`),a&&e.push(`--target=${we(Array.isArray(a)?a:[a],"target")}`),h&&e.push(`--format=${h}`),o&&e.push(`--global-name=${o}`),k&&e.push(`--platform=${k}`),O&&e.push(`--tsconfig-raw=${typeof O=="string"?O:JSON.stringify(O)}`),I&&e.push("--minify"),_&&e.push("--minify-syntax"),B&&e.push("--minify-whitespace"),N&&e.push("--minify-identifiers"),L&&e.push(`--line-limit=${L}`),x&&e.push(`--charset=${x}`),p!==void 0&&e.push(`--tree-shaking=${p}`),d&&e.push("--ignore-annotations"),W)for(let m of W)e.push(`--drop:${Q(m,"drop")}`);if(z&&e.push(`--drop-labels=${we(z,"drop label")}`),R&&e.push(`--abs-paths=${we(R,"abs paths")}`),w&&e.push(`--mangle-props=${Le(w)}`),g&&e.push(`--reserve-props=${Le(g)}`),$!==void 0&&e.push(`--mangle-quoted=${$}`),u&&e.push(`--jsx=${u}`),E&&e.push(`--jsx-factory=${E}`),S&&e.push(`--jsx-fragment=${S}`),D&&e.push(`--jsx-import-source=${D}`),A&&e.push("--jsx-dev"),f&&e.push("--jsx-side-effects"),c)for(let m in c){if(m.indexOf("=")>=0)throw new Error(`Invalid define: ${m}`);e.push(`--define:${m}=${Q(c[m],"define",m)}`)}if(v)for(let m in v){if(m.indexOf("=")>=0)throw new Error(`Invalid log override: ${m}`);e.push(`--log-override:${m}=${Q(v[m],"log override",m)}`)}if(j)for(let m in j){if(m.indexOf("=")>=0)throw new Error(`Invalid supported: ${m}`);const F=j[m];if(typeof F!="boolean")throw new Error(`Expected value for supported ${V(m)} to be a boolean, got ${typeof F} instead`);e.push(`--supported:${m}=${F}`)}if(C)for(let m of C)e.push(`--pure:${Q(m,"pure")}`);P&&e.push("--keep-names")}function Ct(e,t,r,n,l){var s;let a=[],h=[],o=Object.create(null),w=null,g=null;De(a,t,o,r,n),nt(a,t,o);let $=i(t,o,"sourcemap",Ze),I=i(t,o,"bundle",U),_=i(t,o,"splitting",U),B=i(t,o,"preserveSymlinks",U),N=i(t,o,"metafile",U),L=i(t,o,"outfile",y),W=i(t,o,"outdir",y),z=i(t,o,"outbase",y),x=i(t,o,"tsconfig",y),p=i(t,o,"resolveExtensions",K),d=i(t,o,"nodePaths",K),u=i(t,o,"mainFields",K),E=i(t,o,"conditions",K),S=i(t,o,"external",K),D=i(t,o,"packages",y),A=i(t,o,"alias",X),f=i(t,o,"loader",X),c=i(t,o,"outExtension",X),v=i(t,o,"publicPath",y),j=i(t,o,"entryNames",y),C=i(t,o,"chunkNames",y),P=i(t,o,"assetNames",y),k=i(t,o,"inject",K),O=i(t,o,"banner",X),R=i(t,o,"footer",X),m=i(t,o,"entryPoints",At),F=i(t,o,"absWorkingDir",y),T=i(t,o,"stdin",X),M=(s=i(t,o,"write",U))!=null?s:l,G=i(t,o,"allowOverwrite",U),J=i(t,o,"mangleCache",X);if(o.plugins=!0,q(t,o,`in ${e}() call`),$&&a.push(`--sourcemap${$===!0?"":`=${$}`}`),I&&a.push("--bundle"),G&&a.push("--allow-overwrite"),_&&a.push("--splitting"),B&&a.push("--preserve-symlinks"),N&&a.push("--metafile"),L&&a.push(`--outfile=${L}`),W&&a.push(`--outdir=${W}`),z&&a.push(`--outbase=${z}`),x&&a.push(`--tsconfig=${x}`),D&&a.push(`--packages=${D}`),p&&a.push(`--resolve-extensions=${we(p,"resolve extension")}`),v&&a.push(`--public-path=${v}`),j&&a.push(`--entry-names=${j}`),C&&a.push(`--chunk-names=${C}`),P&&a.push(`--asset-names=${P}`),u&&a.push(`--main-fields=${we(u,"main field")}`),E&&a.push(`--conditions=${we(E,"condition")}`),S)for(let b of S)a.push(`--external:${Q(b,"external")}`);if(A)for(let b in A){if(b.indexOf("=")>=0)throw new Error(`Invalid package name in alias: ${b}`);a.push(`--alias:${b}=${Q(A[b],"alias",b)}`)}if(O)for(let b in O){if(b.indexOf("=")>=0)throw new Error(`Invalid banner file type: ${b}`);a.push(`--banner:${b}=${Q(O[b],"banner",b)}`)}if(R)for(let b in R){if(b.indexOf("=")>=0)throw new Error(`Invalid footer file type: ${b}`);a.push(`--footer:${b}=${Q(R[b],"footer",b)}`)}if(k)for(let b of k)a.push(`--inject:${Q(b,"inject")}`);if(f)for(let b in f){if(b.indexOf("=")>=0)throw new Error(`Invalid loader extension: ${b}`);a.push(`--loader:${b}=${Q(f[b],"loader",b)}`)}if(c)for(let b in c){if(b.indexOf("=")>=0)throw new Error(`Invalid out extension: ${b}`);a.push(`--out-extension:${b}=${Q(c[b],"out extension",b)}`)}if(m)if(Array.isArray(m))for(let b=0,se=m.length;b<se;b++){let ee=m[b];if(typeof ee=="object"&&ee!==null){let ne=Object.create(null),ue=i(ee,ne,"in",y),te=i(ee,ne,"out",y);if(q(ee,ne,"in entry point at index "+b),ue===void 0)throw new Error('Missing property "in" for entry point at index '+b);if(te===void 0)throw new Error('Missing property "out" for entry point at index '+b);h.push([te,ue])}else h.push(["",Q(ee,"entry point at index "+b)])}else for(let b in m)h.push([b,Q(m[b],"entry point",b)]);if(T){let b=Object.create(null),se=i(T,b,"contents",tt),ee=i(T,b,"resolveDir",y),ne=i(T,b,"sourcefile",y),ue=i(T,b,"loader",y);q(T,b,'in "stdin" object'),ne&&a.push(`--sourcefile=${ne}`),ue&&a.push(`--loader=${ue}`),ee&&(g=ee),typeof se=="string"?w=re(se):se instanceof Uint8Array&&(w=se)}let oe=[];if(d)for(let b of d)b+="",oe.push(b);return{entries:h,flags:a,write:M,stdinContents:w,stdinResolveDir:g,absWorkingDir:F,nodePaths:oe,mangleCache:rt(J)}}function Mt(e,t,r,n){let l=[],s=Object.create(null);De(l,t,s,r,n),nt(l,t,s);let a=i(t,s,"sourcemap",Ze),h=i(t,s,"sourcefile",y),o=i(t,s,"loader",y),w=i(t,s,"banner",y),g=i(t,s,"footer",y),$=i(t,s,"mangleCache",X);return q(t,s,`in ${e}() call`),a&&l.push(`--sourcemap=${a===!0?"external":a}`),h&&l.push(`--sourcefile=${h}`),o&&l.push(`--loader=${o}`),w&&l.push(`--banner=${w}`),g&&l.push(`--footer=${g}`),{flags:l,mangleCache:rt($)}}function it(e){const t={},r={didClose:!1,reason:""};let n={},l=0,s=0,a=new Uint8Array(16*1024),h=0,o=x=>{let p=h+x.length;if(p>a.length){let u=new Uint8Array(p*2);u.set(a),a=u}a.set(x,h),h+=x.length;let d=0;for(;d+4<=h;){let u=He(a,d);if(d+4+u>h)break;d+=4,B(a.subarray(d,d+u)),d+=u}d>0&&(a.copyWithin(0,d,h),h-=d)},w=x=>{r.didClose=!0,x&&(r.reason=": "+(x.message||x));const p="The service was stopped"+r.reason;for(let d in n)n[d](p,null);n={}},g=(x,p,d)=>{if(r.didClose)return d("The service is no longer running"+r.reason,null);let u=l++;n[u]=(E,S)=>{try{d(E,S)}finally{x&&x.unref()}},x&&x.ref(),e.writeToStdin(Ve({id:u,isRequest:!0,value:p}))},$=(x,p)=>{if(r.didClose)throw new Error("The service is no longer running"+r.reason);e.writeToStdin(Ve({id:x,isRequest:!1,value:p}))},I=async(x,p)=>{try{if(p.command==="ping"){$(x,{});return}if(typeof p.key=="number"){const d=t[p.key];if(!d)return;const u=d[p.command];if(u){await u(x,p);return}}throw new Error("Invalid command: "+p.command)}catch(d){const u=[de(d,e,null,void 0,"")];try{$(x,{errors:u})}catch{}}},_=!0,B=x=>{if(_){_=!1;let d=String.fromCharCode(...x);if(d!=="0.27.3")throw new Error(`Cannot start service: Host version "0.27.3" does not match binary version ${V(d)}`);return}let p=kt(x);if(p.isRequest)I(p.id,p.value);else{let d=n[p.id];delete n[p.id],p.value.error?d(p.value.error,{}):d(null,p.value)}};return{readFromStdout:o,afterClose:w,service:{buildOrContext:({callName:x,refs:p,options:d,isTTY:u,defaultWD:E,callback:S})=>{let D=0;const A=s++,f={},c={ref(){++D===1&&p&&p.ref()},unref(){--D===0&&(delete t[A],p&&p.unref())}};t[A]=f,c.ref(),Lt(x,A,g,$,c,e,f,d,u,E,(v,j)=>{try{S(v,j)}finally{c.unref()}})},transform:({callName:x,refs:p,input:d,options:u,isTTY:E,fs:S,callback:D})=>{const A=lt();let f=c=>{try{if(typeof d!="string"&&!(d instanceof Uint8Array))throw new Error('The input to "transform" must be a string or a Uint8Array');let{flags:v,mangleCache:j}=Mt(x,u,E,Qe),C={command:"transform",flags:v,inputFS:c!==null,input:c!==null?re(c):typeof d=="string"?re(d):d};j&&(C.mangleCache=j),g(p,C,(P,k)=>{if(P)return D(new Error(P),null);let O=ye(k.errors,A),R=ye(k.warnings,A),m=1,F=()=>{if(--m===0){let T={warnings:R,code:k.code,map:k.map,mangleCache:void 0,legalComments:void 0};"legalComments"in k&&(T.legalComments=k?.legalComments),k.mangleCache&&(T.mangleCache=k?.mangleCache),D(null,T)}};if(O.length>0)return D($e("Transform failed",O,R),null);k.codeFS&&(m++,S.readFile(k.code,(T,M)=>{T!==null?D(T,null):(k.code=M,F())})),k.mapFS&&(m++,S.readFile(k.map,(T,M)=>{T!==null?D(T,null):(k.map=M,F())})),F()})}catch(v){let j=[];try{De(j,u,{},E,Qe)}catch{}const C=de(v,e,A,void 0,"");g(p,{command:"error",flags:j,error:C},()=>{C.detail=A.load(C.detail),D($e("Transform failed",[C],[]),null)})}};if((typeof d=="string"||d instanceof Uint8Array)&&d.length>1024*1024){let c=f;f=()=>S.writeFile(d,c)}f(null)},formatMessages:({callName:x,refs:p,messages:d,options:u,callback:E})=>{if(!u)throw new Error(`Missing second argument in ${x}() call`);let S={},D=i(u,S,"kind",y),A=i(u,S,"color",U),f=i(u,S,"terminalWidth",ce);if(q(u,S,`in ${x}() call`),D===void 0)throw new Error(`Missing "kind" in ${x}() call`);if(D!=="error"&&D!=="warning")throw new Error(`Expected "kind" to be "error" or "warning" in ${x}() call`);let c={command:"format-msgs",messages:ae(d,"messages",null,"",f),isWarning:D==="warning"};A!==void 0&&(c.color=A),f!==void 0&&(c.terminalWidth=f),g(p,c,(v,j)=>{if(v)return E(new Error(v),null);E(null,j.messages)})},analyzeMetafile:({callName:x,refs:p,metafile:d,options:u,callback:E})=>{u===void 0&&(u={});let S={},D=i(u,S,"color",U),A=i(u,S,"verbose",U);q(u,S,`in ${x}() call`);let f={command:"analyze-metafile",metafile:d};D!==void 0&&(f.color=D),A!==void 0&&(f.verbose=A),g(p,f,(c,v)=>{if(c)return E(new Error(c),null);E(null,v.result)})}}}}function Lt(e,t,r,n,l,s,a,h,o,w,g){const $=lt(),I=e==="context",_=(L,W)=>{const z=[];try{De(z,h,{},o,Ke)}catch{}const x=de(L,s,$,void 0,W);r(l,{command:"error",flags:z,error:x},()=>{x.detail=$.load(x.detail),g($e(I?"Context failed":"Build failed",[x],[]),null)})};let B;if(typeof h=="object"){const L=h.plugins;if(L!==void 0){if(!Array.isArray(L))return _(new Error('"plugins" must be an array'),"");B=L}}if(B&&B.length>0){if(s.isSync)return _(new Error("Cannot use plugins in synchronous API calls"),"");Tt(t,r,n,l,s,a,h,B,$).then(L=>{if(!L.ok)return _(L.error,L.pluginName);try{N(L.requestPlugins,L.runOnEndCallbacks,L.scheduleOnDisposeCallbacks)}catch(W){_(W,"")}},L=>_(L,""));return}try{N(null,(L,W)=>W([],[]),()=>{})}catch(L){_(L,"")}function N(L,W,z){const x=s.hasFS,{entries:p,flags:d,write:u,stdinContents:E,stdinResolveDir:S,absWorkingDir:D,nodePaths:A,mangleCache:f}=Ct(e,h,o,Ke,x);if(u&&!s.hasFS)throw new Error('The "write" option is unavailable in this environment');const c={command:"build",key:t,entries:p,flags:d,write:u,stdinContents:E,stdinResolveDir:S,absWorkingDir:D||w,nodePaths:A,context:I};L&&(c.plugins=L),f&&(c.mangleCache=f);const v=(P,k)=>{const O={errors:ye(P.errors,$),warnings:ye(P.warnings,$),outputFiles:void 0,metafile:void 0,mangleCache:void 0},R=O.errors.slice(),m=O.warnings.slice();P.outputFiles&&(O.outputFiles=P.outputFiles.map(_t)),P.metafile&&(O.metafile=JSON.parse(P.metafile)),P.mangleCache&&(O.mangleCache=P.mangleCache),P.writeToStdout!==void 0&&console.log(pe(P.writeToStdout).replace(/\n$/,"")),W(O,(F,T)=>{if(R.length>0||F.length>0){const M=$e("Build failed",R.concat(F),m.concat(T));return k(M,null,F,T)}k(null,O,F,T)})};let j,C;I&&(a["on-end"]=(P,k)=>new Promise(O=>{v(k,(R,m,F,T)=>{const M={errors:F,warnings:T};C&&C(R,m),j=void 0,C=void 0,n(P,M),O()})})),r(l,c,(P,k)=>{if(P)return g(new Error(P),null);if(!I)return v(k,(m,F)=>(z(),g(m,F)));if(k.errors.length>0)return g($e("Context failed",k.errors,k.warnings),null);let O=!1;const R={rebuild:()=>(j||(j=new Promise((m,F)=>{let T;C=(G,J)=>{T||(T=()=>G?F(G):m(J))};const M=()=>{r(l,{command:"rebuild",key:t},(J,oe)=>{J?F(new Error(J)):T?T():M()})};M()})),j),watch:(m={})=>new Promise((F,T)=>{if(!s.hasFS)throw new Error('Cannot use the "watch" API in this environment');const M={},G=i(m,M,"delay",ce);q(m,M,"in watch() call");const J={command:"watch",key:t};G&&(J.delay=G),r(l,J,oe=>{oe?T(new Error(oe)):F(void 0)})}),serve:(m={})=>new Promise((F,T)=>{if(!s.hasFS)throw new Error('Cannot use the "serve" API in this environment');const M={},G=i(m,M,"port",St),J=i(m,M,"host",y),oe=i(m,M,"servedir",y),b=i(m,M,"keyfile",y),se=i(m,M,"certfile",y),ee=i(m,M,"fallback",y),ne=i(m,M,"cors",X),ue=i(m,M,"onRequest",Ge);q(m,M,"in serve() call");const te={command:"serve",key:t,onRequest:!!ue};if(G!==void 0&&(te.port=G),J!==void 0&&(te.host=J),oe!==void 0&&(te.servedir=oe),b!==void 0&&(te.keyfile=b),se!==void 0&&(te.certfile=se),ee!==void 0&&(te.fallback=ee),ne){const Ae={},ve=i(ne,Ae,"origin",et);q(ne,Ae,'on "cors" object'),Array.isArray(ve)?te.corsOrigin=ve:ve!==void 0&&(te.corsOrigin=[ve])}r(l,te,(Ae,ve)=>{if(Ae)return T(new Error(Ae));ue&&(a["serve-request"]=(or,sr)=>{ue(sr.args),n(or,{})}),F(ve)})}),cancel:()=>new Promise(m=>{if(O)return m();r(l,{command:"cancel",key:t},()=>{m()})}),dispose:()=>new Promise(m=>{if(O)return m();O=!0,r(l,{command:"dispose",key:t},()=>{m(),z(),l.unref()})})};l.ref(),g(null,R)})}}var Tt=async(e,t,r,n,l,s,a,h,o)=>{let w=[],g=[],$={},I={},_=[],B=0,N=0,L=[],W=!1;h=[...h];for(let p of h){let d={};if(typeof p!="object")throw new Error(`Plugin at index ${N} must be an object`);const u=i(p,d,"name",y);if(typeof u!="string"||u==="")throw new Error(`Plugin at index ${N} is missing a name`);try{let E=i(p,d,"setup",Ge);if(typeof E!="function")throw new Error("Plugin is missing a setup function");q(p,d,`on plugin ${V(u)}`);let S={name:u,onStart:!1,onEnd:!1,onResolve:[],onLoad:[]};N++;let A=E({initialOptions:a,resolve:(f,c={})=>{if(!W)throw new Error('Cannot call "resolve" before plugin setup has completed');if(typeof f!="string")throw new Error("The path to resolve must be a string");let v=Object.create(null),j=i(c,v,"pluginName",y),C=i(c,v,"importer",y),P=i(c,v,"namespace",y),k=i(c,v,"resolveDir",y),O=i(c,v,"kind",y),R=i(c,v,"pluginData",je),m=i(c,v,"with",X);return q(c,v,"in resolve() call"),new Promise((F,T)=>{const M={command:"resolve",path:f,key:e,pluginName:u};if(j!=null&&(M.pluginName=j),C!=null&&(M.importer=C),P!=null&&(M.namespace=P),k!=null&&(M.resolveDir=k),O!=null)M.kind=O;else throw new Error('Must specify "kind" when calling "resolve"');R!=null&&(M.pluginData=o.store(R)),m!=null&&(M.with=Ft(m,"with")),t(n,M,(G,J)=>{G!==null?T(new Error(G)):F({errors:ye(J.errors,o),warnings:ye(J.warnings,o),path:J.path,external:J.external,sideEffects:J.sideEffects,namespace:J.namespace,suffix:J.suffix,pluginData:o.load(J.pluginData)})})})},onStart(f){let c='This error came from the "onStart" callback registered here:',v=Ce(new Error(c),l,"onStart");w.push({name:u,callback:f,note:v}),S.onStart=!0},onEnd(f){let c='This error came from the "onEnd" callback registered here:',v=Ce(new Error(c),l,"onEnd");g.push({name:u,callback:f,note:v}),S.onEnd=!0},onResolve(f,c){let v='This error came from the "onResolve" callback registered here:',j=Ce(new Error(v),l,"onResolve"),C={},P=i(f,C,"filter",Oe),k=i(f,C,"namespace",y);if(q(f,C,`in onResolve() call for plugin ${V(u)}`),P==null)throw new Error("onResolve() call is missing a filter");let O=B++;$[O]={name:u,callback:c,note:j},S.onResolve.push({id:O,filter:Le(P),namespace:k||""})},onLoad(f,c){let v='This error came from the "onLoad" callback registered here:',j=Ce(new Error(v),l,"onLoad"),C={},P=i(f,C,"filter",Oe),k=i(f,C,"namespace",y);if(q(f,C,`in onLoad() call for plugin ${V(u)}`),P==null)throw new Error("onLoad() call is missing a filter");let O=B++;I[O]={name:u,callback:c,note:j},S.onLoad.push({id:O,filter:Le(P),namespace:k||""})},onDispose(f){_.push(f)},esbuild:l.esbuild});A&&await A,L.push(S)}catch(E){return{ok:!1,error:E,pluginName:u}}}s["on-start"]=async(p,d)=>{o.clear();let u={errors:[],warnings:[]};await Promise.all(w.map(async({name:E,callback:S,note:D})=>{try{let A=await S();if(A!=null){if(typeof A!="object")throw new Error(`Expected onStart() callback in plugin ${V(E)} to return an object`);let f={},c=i(A,f,"errors",le),v=i(A,f,"warnings",le);q(A,f,`from onStart() callback in plugin ${V(E)}`),c!=null&&u.errors.push(...ae(c,"errors",o,E,void 0)),v!=null&&u.warnings.push(...ae(v,"warnings",o,E,void 0))}}catch(A){u.errors.push(de(A,l,o,D&&D(),E))}})),r(p,u)},s["on-resolve"]=async(p,d)=>{let u={},E="",S,D;for(let A of d.ids)try{({name:E,callback:S,note:D}=$[A]);let f=await S({path:d.path,importer:d.importer,namespace:d.namespace,resolveDir:d.resolveDir,kind:d.kind,pluginData:o.load(d.pluginData),with:d.with});if(f!=null){if(typeof f!="object")throw new Error(`Expected onResolve() callback in plugin ${V(E)} to return an object`);let c={},v=i(f,c,"pluginName",y),j=i(f,c,"path",y),C=i(f,c,"namespace",y),P=i(f,c,"suffix",y),k=i(f,c,"external",U),O=i(f,c,"sideEffects",U),R=i(f,c,"pluginData",je),m=i(f,c,"errors",le),F=i(f,c,"warnings",le),T=i(f,c,"watchFiles",K),M=i(f,c,"watchDirs",K);q(f,c,`from onResolve() callback in plugin ${V(E)}`),u.id=A,v!=null&&(u.pluginName=v),j!=null&&(u.path=j),C!=null&&(u.namespace=C),P!=null&&(u.suffix=P),k!=null&&(u.external=k),O!=null&&(u.sideEffects=O),R!=null&&(u.pluginData=o.store(R)),m!=null&&(u.errors=ae(m,"errors",o,E,void 0)),F!=null&&(u.warnings=ae(F,"warnings",o,E,void 0)),T!=null&&(u.watchFiles=Me(T,"watchFiles")),M!=null&&(u.watchDirs=Me(M,"watchDirs"));break}}catch(f){u={id:A,errors:[de(f,l,o,D&&D(),E)]};break}r(p,u)},s["on-load"]=async(p,d)=>{let u={},E="",S,D;for(let A of d.ids)try{({name:E,callback:S,note:D}=I[A]);let f=await S({path:d.path,namespace:d.namespace,suffix:d.suffix,pluginData:o.load(d.pluginData),with:d.with});if(f!=null){if(typeof f!="object")throw new Error(`Expected onLoad() callback in plugin ${V(E)} to return an object`);let c={},v=i(f,c,"pluginName",y),j=i(f,c,"contents",tt),C=i(f,c,"resolveDir",y),P=i(f,c,"pluginData",je),k=i(f,c,"loader",y),O=i(f,c,"errors",le),R=i(f,c,"warnings",le),m=i(f,c,"watchFiles",K),F=i(f,c,"watchDirs",K);q(f,c,`from onLoad() callback in plugin ${V(E)}`),u.id=A,v!=null&&(u.pluginName=v),j instanceof Uint8Array?u.contents=j:j!=null&&(u.contents=re(j)),C!=null&&(u.resolveDir=C),P!=null&&(u.pluginData=o.store(P)),k!=null&&(u.loader=k),O!=null&&(u.errors=ae(O,"errors",o,E,void 0)),R!=null&&(u.warnings=ae(R,"warnings",o,E,void 0)),m!=null&&(u.watchFiles=Me(m,"watchFiles")),F!=null&&(u.watchDirs=Me(F,"watchDirs"));break}}catch(f){u={id:A,errors:[de(f,l,o,D&&D(),E)]};break}r(p,u)};let z=(p,d)=>d([],[]);g.length>0&&(z=(p,d)=>{(async()=>{const u=[],E=[];for(const{name:S,callback:D,note:A}of g){let f,c;try{const v=await D(p);if(v!=null){if(typeof v!="object")throw new Error(`Expected onEnd() callback in plugin ${V(S)} to return an object`);let j={},C=i(v,j,"errors",le),P=i(v,j,"warnings",le);q(v,j,`from onEnd() callback in plugin ${V(S)}`),C!=null&&(f=ae(C,"errors",o,S,void 0)),P!=null&&(c=ae(P,"warnings",o,S,void 0))}}catch(v){f=[de(v,l,o,A&&A(),S)]}if(f){u.push(...f);try{p.errors.push(...f)}catch{}}if(c){E.push(...c);try{p.warnings.push(...c)}catch{}}}d(u,E)})()});let x=()=>{for(const p of _)setTimeout(()=>p(),0)};return W=!0,{ok:!0,requestPlugins:L,runOnEndCallbacks:z,scheduleOnDisposeCallbacks:x}};function lt(){const e=new Map;let t=0;return{clear(){e.clear()},load(r){return e.get(r)},store(r){if(r===void 0)return-1;const n=t++;return e.set(n,r),n}}}function Ce(e,t,r){let n,l=!1;return()=>{if(l)return n;l=!0;try{let s=(e.stack+"").split(`
7
- `);s.splice(1,1);let a=at(t,s,r);if(a)return n={text:e.message,location:a},n}catch{}}}function de(e,t,r,n,l){let s="Internal error",a=null;try{s=(e&&e.message||e)+""}catch{}try{a=at(t,(e.stack+"").split(`
8
- `),"")}catch{}return{id:"",pluginName:l,text:s,location:a,notes:n?[n]:[],detail:r?r.store(e):-1}}function at(e,t,r){let n=" at ";if(e.readFileSync&&!t[0].startsWith(n)&&t[1].startsWith(n))for(let l=1;l<t.length;l++){let s=t[l];if(s.startsWith(n))for(s=s.slice(n.length);;){let a=/^(?:new |async )?\S+ \((.*)\)$/.exec(s);if(a){s=a[1];continue}if(a=/^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(s),a){s=a[1];continue}if(a=/^(\S+):(\d+):(\d+)$/.exec(s),a){let h;try{h=e.readFileSync(a[1],"utf8")}catch{break}let o=h.split(/\r\n|\r|\n|\u2028|\u2029/)[+a[2]-1]||"",w=+a[3]-1,g=o.slice(w,w+r.length)===r?r.length:0;return{file:a[1],namespace:"file",line:+a[2],column:re(o.slice(0,w)).length,length:re(o.slice(w,w+g)).length,lineText:o+`
9
- `+t.slice(1).join(`
10
- `),suggestion:""}}break}}return null}function $e(e,t,r){let n=5;e+=t.length<1?"":` with ${t.length} error${t.length<2?"":"s"}:`+t.slice(0,n+1).map((s,a)=>{if(a===n)return`
11
- ...`;if(!s.location)return`
12
- error: ${s.text}`;let{file:h,line:o,column:w}=s.location,g=s.pluginName?`[plugin: ${s.pluginName}] `:"";return`
13
- ${h}:${o}:${w}: ERROR: ${g}${s.text}`}).join("");let l=new Error(e);for(const[s,a]of[["errors",t],["warnings",r]])Object.defineProperty(l,s,{configurable:!0,enumerable:!0,get:()=>a,set:h=>Object.defineProperty(l,s,{configurable:!0,enumerable:!0,value:h})});return l}function ye(e,t){for(const r of e)r.detail=t.load(r.detail);return e}function ot(e,t,r){if(e==null)return null;let n={},l=i(e,n,"file",y),s=i(e,n,"namespace",y),a=i(e,n,"line",ce),h=i(e,n,"column",ce),o=i(e,n,"length",ce),w=i(e,n,"lineText",y),g=i(e,n,"suggestion",y);if(q(e,n,t),w){const $=w.slice(0,(h&&h>0?h:0)+(o&&o>0?o:0)+(r&&r>0?r:80));!/[\x7F-\uFFFF]/.test($)&&!/\n/.test(w)&&(w=$)}return{file:l||"",namespace:s||"",line:a||0,column:h||0,length:o||0,lineText:w||"",suggestion:g||""}}function ae(e,t,r,n,l){let s=[],a=0;for(const h of e){let o={},w=i(h,o,"id",y),g=i(h,o,"pluginName",y),$=i(h,o,"text",y),I=i(h,o,"location",Xe),_=i(h,o,"notes",le),B=i(h,o,"detail",je),N=`in element ${a} of "${t}"`;q(h,o,N);let L=[];if(_)for(const W of _){let z={},x=i(W,z,"text",y),p=i(W,z,"location",Xe);q(W,z,N),L.push({text:x||"",location:ot(p,N,l)})}s.push({id:w||"",pluginName:g||n,text:$||"",location:ot(I,N,l),notes:L,detail:r?r.store(B):-1}),a++}return s}function Me(e,t){const r=[];for(const n of e){if(typeof n!="string")throw new Error(`${V(t)} must be an array of strings`);r.push(n)}return r}function Ft(e,t){const r=Object.create(null);for(const n in e){const l=e[n];if(typeof l!="string")throw new Error(`key ${V(n)} in object ${V(t)} must be a string`);r[n]=l}return r}function _t({path:e,contents:t,hash:r}){let n=null;return{path:e,contents:t,hash:r,get text(){const l=this.contents;return(n===null||l!==t)&&(t=l,n=pe(l)),n}}}function Le(e){let t=e.source;return e.flags&&(t=`(?${e.flags})${t}`),t}var fe=ie,st=ie,Z=ie,be=Ne.ESBUILD_BINARY_PATH||be,Bt=e=>!!e&&e!=="/usr/bin/esbuild",ut="@esbuild/darwin-arm64",ft="@esbuild/darwin-x64",Te={"win32 arm64 LE":"@esbuild/win32-arm64","win32 ia32 LE":"@esbuild/win32-ia32","win32 x64 LE":"@esbuild/win32-x64"},Fe={"aix ppc64 BE":"@esbuild/aix-ppc64","android arm64 LE":"@esbuild/android-arm64","darwin arm64 LE":"@esbuild/darwin-arm64","darwin x64 LE":"@esbuild/darwin-x64","freebsd arm64 LE":"@esbuild/freebsd-arm64","freebsd x64 LE":"@esbuild/freebsd-x64","linux arm LE":"@esbuild/linux-arm","linux arm64 LE":"@esbuild/linux-arm64","linux ia32 LE":"@esbuild/linux-ia32","linux mips64el LE":"@esbuild/linux-mips64el","linux ppc64 LE":"@esbuild/linux-ppc64","linux riscv64 LE":"@esbuild/linux-riscv64","linux s390x BE":"@esbuild/linux-s390x","linux x64 LE":"@esbuild/linux-x64","linux loong64 LE":"@esbuild/linux-loong64","netbsd arm64 LE":"@esbuild/netbsd-arm64","netbsd x64 LE":"@esbuild/netbsd-x64","openbsd arm64 LE":"@esbuild/openbsd-arm64","openbsd x64 LE":"@esbuild/openbsd-x64","sunos x64 LE":"@esbuild/sunos-x64"},ct={"android arm LE":"@esbuild/android-arm","android x64 LE":"@esbuild/android-x64","openharmony arm64 LE":"@esbuild/openharmony-arm64"};function It(){let e,t,r=!1,n=`${process.platform} ${st.arch()} ${st.endianness()}`;if(n in Te)e=Te[n],t="esbuild.exe";else if(n in Fe)e=Fe[n],t="bin/esbuild";else if(n in ct)e=ct[n],t="bin/esbuild",r=!0;else throw new Error(`Unsupported platform: ${n}`);return{pkg:e,subpath:t,isWASM:r}}function Nt(){const e=require.resolve("esbuild"),t=Z.dirname(Z.dirname(Z.dirname(e)));if(Z.basename(t)==="node_modules"){for(const r in Fe)try{const n=Fe[r];if(fe.existsSync(Z.join(t,n)))return n}catch{}for(const r in Te)try{const n=Te[r];if(fe.existsSync(Z.join(t,n)))return n}catch{}}return null}function Rt(e,t){const r=Z.dirname(require.resolve("esbuild"));return Z.join(r,`downloaded-${e.replace("/","-")}-${Z.basename(t)}`)}function Ut(){if(Bt(be))if(!fe.existsSync(be))console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${be}`);else return{binPath:be,isWASM:!1};const{pkg:e,subpath:t,isWASM:r}=It();let n;try{n=require.resolve(`${e}/${t}`)}catch(l){if(n=Rt(e,t),!fe.existsSync(n)){try{require.resolve(e)}catch{const s=Nt();if(s){let a=`
14
- Specifically the "${s}" package is present but this platform
15
- needs the "${e}" package instead. People often get into this
16
- situation by installing esbuild on Windows or macOS and copying "node_modules"
17
- into a Docker image that runs Linux, or by copying "node_modules" between
18
- Windows and WSL environments.
19
-
20
- If you are installing with npm, you can try not copying the "node_modules"
21
- directory when you copy the files over, and running "npm ci" or "npm install"
22
- on the destination platform after the copy. Or you could consider using yarn
23
- instead of npm which has built-in support for installing a package on multiple
24
- platforms simultaneously.
25
-
26
- If you are installing with yarn, you can try listing both this platform and the
27
- other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
28
- feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
29
- Keep in mind that this means multiple copies of esbuild will be present.
30
- `;throw(e===ft&&s===ut||e===ut&&s===ft)&&(a=`
31
- Specifically the "${s}" package is present but this platform
32
- needs the "${e}" package instead. People often get into this
33
- situation by installing esbuild with npm running inside of Rosetta 2 and then
34
- trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
35
- 2 is Apple's on-the-fly x86_64-to-arm64 translation service).
36
-
37
- If you are installing with npm, you can try ensuring that both npm and node are
38
- not running under Rosetta 2 and then reinstalling esbuild. This likely involves
39
- changing how you installed npm and/or node. For example, installing node with
40
- the universal installer here should work: https://nodejs.org/en/download/. Or
41
- you could consider using yarn instead of npm which has built-in support for
42
- installing a package on multiple platforms simultaneously.
43
-
44
- If you are installing with yarn, you can try listing both "arm64" and "x64"
45
- in your ".yarnrc.yml" file using the "supportedArchitectures" feature:
46
- https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
47
- Keep in mind that this means multiple copies of esbuild will be present.
48
- `),new Error(`
49
- You installed esbuild for another platform than the one you're currently using.
50
- This won't work because esbuild is written with native code and needs to
51
- install a platform-specific binary executable.
52
- ${a}
53
- Another alternative is to use the "esbuild-wasm" package instead, which works
54
- the same way on all platforms. But it comes with a heavy performance cost and
55
- can sometimes be 10x slower than the "esbuild" package, so you may also not
56
- want to do that.
57
- `)}throw new Error(`The package "${e}" could not be found, and is needed by esbuild.
58
-
59
- If you are installing esbuild with npm, make sure that you don't specify the
60
- "--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
61
- of "package.json" is used by esbuild to install the correct binary executable
62
- for your current platform.`)}throw l}}if(/\.zip\//.test(n)){let l;try{l=require("pnpapi")}catch{}if(l){const s=l.getPackageInformation(l.topLevel).packageLocation,a=Z.join(s,"node_modules",".cache","esbuild",`pnpapi-${e.replace("/","-")}-0.27.3-${Z.basename(t)}`);return fe.existsSync(a)||(fe.mkdirSync(Z.dirname(a),{recursive:!0}),fe.copyFileSync(n,a),fe.chmodSync(a,493)),{binPath:a,isWASM:r}}}return{binPath:n,isWASM:r}}var dt=ie,Wt=ie,We=ie,he=ie,zt=ie,qt=ie,Y;if(Ne.ESBUILD_WORKER_THREADS!=="0"){try{Y=ie}catch{}let[e,t]=process.versions.node.split(".");(+e<12||+e==12&&+t<17||+e==13&&+t<13)&&(Y=void 0)}var ht,Ee=((ht=Y?.workerData)==null?void 0:ht.esbuildVersion)==="0.27.3",mt=()=>{if(!be&&(We.basename(__filename)!=="main.js"||We.basename(__dirname)!=="lib"))throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
63
-
64
- More information: The file containing the code for esbuild's JavaScript API (${__filename}) does not appear to be inside the esbuild package on the file system, which usually means that the esbuild package was bundled into another file. This is problematic because the API needs to run a binary executable inside the esbuild package which is located using a relative path from the API code to the executable. If the esbuild package is bundled, the relative path will be incorrect and the executable won't be found.`);{const{binPath:e,isWASM:t}=Ut();return t?["node",[e]]:[e,[]]}},ke=()=>qt.isatty(2),Jt={readFile(e,t){try{let r=he.readFileSync(e,"utf8");try{he.unlinkSync(e)}catch{}t(null,r)}catch(r){t(r,null)}},writeFile(e,t){try{let r=gt();he.writeFileSync(r,e),t(r)}catch{t(null)}}},Vt={readFile(e,t){try{he.readFile(e,"utf8",(r,n)=>{try{he.unlink(e,()=>t(r,n))}catch{t(r,n)}})}catch(r){t(r,null)}},writeFile(e,t){try{let r=gt();he.writeFile(r,e,n=>t(n!==null?null:r))}catch{t(null)}}},Yt="0.27.3",Ht=e=>ge().build(e),Kt=e=>ge().context(e),Qt=(e,t)=>ge().transform(e,t),Gt=(e,t)=>ge().formatMessages(e,t),Xt=(e,t)=>ge().analyzeMetafile(e,t),Zt=e=>{if(Y&&!Ee)return H||(H=Ie(Y)),H.buildSync(e);let t;return Be(r=>r.buildOrContext({callName:"buildSync",refs:null,options:e,isTTY:ke(),defaultWD:me,callback:(n,l)=>{if(n)throw n;t=l}})),t},er=(e,t)=>{if(Y&&!Ee)return H||(H=Ie(Y)),H.transformSync(e,t);let r;return Be(n=>n.transform({callName:"transformSync",refs:null,input:e,options:t||{},isTTY:ke(),fs:Jt,callback:(l,s)=>{if(l)throw l;r=s}})),r},tr=(e,t)=>{if(Y&&!Ee)return H||(H=Ie(Y)),H.formatMessagesSync(e,t);let r;return Be(n=>n.formatMessages({callName:"formatMessagesSync",refs:null,messages:e,options:t,callback:(l,s)=>{if(l)throw l;r=s}})),r},rr=(e,t)=>{if(Y&&!Ee)return H||(H=Ie(Y)),H.analyzeMetafileSync(e,t);let r;return Be(n=>n.analyzeMetafile({callName:"analyzeMetafileSync",refs:null,metafile:typeof e=="string"?e:JSON.stringify(e),options:t,callback:(l,s)=>{if(l)throw l;r=s}})),r},nr=()=>(_e&&_e(),H&&H.stop(),Promise.resolve()),ze=!1,ir=e=>{if(e=Dt(e||{}),e.wasmURL)throw new Error('The "wasmURL" option only works in the browser');if(e.wasmModule)throw new Error('The "wasmModule" option only works in the browser');if(e.worker)throw new Error('The "worker" option only works in the browser');if(ze)throw new Error('Cannot call "initialize" more than once');return ge(),ze=!0,Promise.resolve()},me=process.cwd(),Se,_e,ge=()=>{if(Se)return Se;let[e,t]=mt(),r=dt.spawn(e,t.concat("--service=0.27.3","--ping"),{windowsHide:!0,stdio:["pipe","pipe","inherit"],cwd:me}),{readFromStdout:n,afterClose:l,service:s}=it({writeToStdin(g){r.stdin.write(g,$=>{$&&l($)})},readFileSync:he.readFileSync,isSync:!1,hasFS:!0,esbuild:xe});r.stdin.on("error",l),r.on("error",l);const a=r.stdin,h=r.stdout;h.on("data",n),h.on("end",l),_e=()=>{a.destroy(),h.destroy(),r.kill(),ze=!1,Se=void 0,_e=void 0};let o=0;r.unref(),a.unref&&a.unref(),h.unref&&h.unref();const w={ref(){++o===1&&r.ref()},unref(){--o===0&&r.unref()}};return Se={build:g=>new Promise(($,I)=>{s.buildOrContext({callName:"build",refs:w,options:g,isTTY:ke(),defaultWD:me,callback:(_,B)=>_?I(_):$(B)})}),context:g=>new Promise(($,I)=>s.buildOrContext({callName:"context",refs:w,options:g,isTTY:ke(),defaultWD:me,callback:(_,B)=>_?I(_):$(B)})),transform:(g,$)=>new Promise((I,_)=>s.transform({callName:"transform",refs:w,input:g,options:$||{},isTTY:ke(),fs:Vt,callback:(B,N)=>B?_(B):I(N)})),formatMessages:(g,$)=>new Promise((I,_)=>s.formatMessages({callName:"formatMessages",refs:w,messages:g,options:$,callback:(B,N)=>B?_(B):I(N)})),analyzeMetafile:(g,$)=>new Promise((I,_)=>s.analyzeMetafile({callName:"analyzeMetafile",refs:w,metafile:typeof g=="string"?g:JSON.stringify(g),options:$,callback:(B,N)=>B?_(B):I(N)}))},Se},Be=e=>{let[t,r]=mt(),n=new Uint8Array,{readFromStdout:l,afterClose:s,service:a}=it({writeToStdin(o){if(n.length!==0)throw new Error("Must run at most one command");n=o},isSync:!0,hasFS:!0,esbuild:xe});e(a);let h=dt.execFileSync(t,r.concat("--service=0.27.3"),{cwd:me,windowsHide:!0,input:n,maxBuffer:+Ne.ESBUILD_MAX_BUFFER||16*1024*1024});l(h),s(null)},gt=()=>We.join(zt.tmpdir(),`esbuild-${Wt.randomBytes(32).toString("hex")}`),H=null,Ie=e=>{let{port1:t,port2:r}=new e.MessageChannel,n=new e.Worker(__filename,{workerData:{workerPort:r,defaultWD:me,esbuildVersion:"0.27.3"},transferList:[r],execArgv:[]}),l=0,s=w=>{let g=new Error(`Build failed with 1 error:
65
- error: ${w}`),$=[{id:"",pluginName:"",text:w,location:null,notes:[],detail:void 0}];return g.errors=$,g.warnings=[],g},a=w=>{if(!w)return;let g=w.plugins;if(g&&g.length>0)throw s("Cannot use plugins in synchronous API calls")},h=(w,g)=>{for(let $ in g)w[$]=g[$]},o=(w,g)=>{let $=l++,I=new SharedArrayBuffer(8),_=new Int32Array(I),B={sharedBuffer:I,id:$,command:w,args:g};n.postMessage(B);let N=Atomics.wait(_,0,0);if(N!=="ok"&&N!=="not-equal")throw new Error("Internal error: Atomics.wait() failed: "+N);let{message:{id:L,resolve:W,reject:z,properties:x}}=e.receiveMessageOnPort(t);if($!==L)throw new Error(`Internal error: Expected id ${$} but got id ${L}`);if(z)throw h(z,x),z;return W};return n.unref(),{buildSync(w){return a(w),o("build",[w])},transformSync(w,g){return o("transform",[w,g])},formatMessagesSync(w,g){return o("formatMessages",[w,g])},analyzeMetafileSync(w,g){return o("analyzeMetafile",[w,g])},stop(){n.terminate(),H=null}}},lr=()=>{let e=Y.workerData.workerPort,t=Y.parentPort,r=n=>{let l={};if(n&&typeof n=="object")for(let s in n)l[s]=n[s];return l};try{let n=ge();me=Y.workerData.defaultWD,t.on("message",l=>{(async()=>{let{sharedBuffer:s,id:a,command:h,args:o}=l,w=new Int32Array(s);try{switch(h){case"build":e.postMessage({id:a,resolve:await n.build(o[0])});break;case"transform":e.postMessage({id:a,resolve:await n.transform(o[0],o[1])});break;case"formatMessages":e.postMessage({id:a,resolve:await n.formatMessages(o[0],o[1])});break;case"analyzeMetafile":e.postMessage({id:a,resolve:await n.analyzeMetafile(o[0],o[1])});break;default:throw new Error(`Invalid command: ${h}`)}}catch(g){e.postMessage({id:a,reject:g,properties:r(g)})}Atomics.add(w,0,1),Atomics.notify(w,0,1/0)})()})}catch(n){t.on("message",l=>{let{sharedBuffer:s,id:a}=l,h=new Int32Array(s);e.postMessage({id:a,reject:n,properties:r(n)}),Atomics.add(h,0,1),Atomics.notify(h,0,1/0)})}};Ee&&lr();var ar=xe;return qe}export{dr as __require};
@@ -1,25 +0,0 @@
1
- /**
2
- * Clean up component instance attached to a DOM node
3
- * Accepts an optional `opts.strict` flag to surface errors instead of swallowing them.
4
- */
5
- export declare function cleanupInstanceIfPresent(node: Node | null, opts?: {
6
- strict?: boolean;
7
- }): void;
8
- export declare function cleanupInstancesUnder(node: Node | null, opts?: {
9
- strict?: boolean;
10
- }): void;
11
- export interface ListenerMapEntry {
12
- handler: EventListener;
13
- original: EventListener;
14
- options?: boolean | AddEventListenerOptions;
15
- isDelegated?: boolean;
16
- }
17
- export declare const elementListeners: WeakMap<Element, Map<string, ListenerMapEntry>>;
18
- export declare const elementReactivePropsCleanup: WeakMap<Element, Map<string, {
19
- cleanup: () => void;
20
- fnRef: () => unknown;
21
- }>>;
22
- export declare function removeElementReactiveProps(element: Element): void;
23
- export declare function removeElementListeners(element: Element): void;
24
- export declare function removeAllListeners(root: Element | null): void;
25
- //# sourceMappingURL=cleanup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cleanup.d.ts","sourceRoot":"","sources":["../../src/renderer/cleanup.ts"],"names":[],"mappings":"AAoEA;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,IAAI,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAC1B,IAAI,CAwCN;AAKD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,IAAI,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAC1B,IAAI,CAEN;AAGD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,gBAAgB,iDAG1B,CAAC;AAGJ,eAAO,MAAM,2BAA2B;aAEf,MAAM,IAAI;WAAS,MAAM,OAAO;GACtD,CAAC;AAEJ,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAYjE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAgB7D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAa7D"}
@@ -1,62 +0,0 @@
1
- import { type DOMElement, type VNode } from './types';
2
- export declare const IS_DOM_AVAILABLE: boolean;
3
- /**
4
- * Create a DOM node from a VNode
5
- */
6
- export declare function createDOMNode(node: unknown): Node | null;
7
- /**
8
- * Create DOM from For boundary - evaluates list and renders items
9
- *
10
- * CRITICAL INVARIANT:
11
- * DOM order MUST be reconstructed from the current vnode list on every render.
12
- * Reusing DOM nodes never implies preserving their position.
13
- *
14
- * This function ALWAYS returns a fragment whose child order exactly matches
15
- * the evaluated vnode list, even when all DOM nodes are reused.
16
- * Appending an existing node to the fragment is how we express reordering
17
- * (per DOM spec, appendChild moves already-attached nodes).
18
- *
19
- * Do NOT:
20
- * - Skip appending based on parentElement or existing attachment
21
- * - Rely on vnode identity (===) to decide DOM reuse (vnodes are mutable)
22
- * - Introduce fast-paths that might skip DOM reconstruction
23
- */
24
- export declare function createForBoundary(node: DOMElement, props: Record<string, unknown>): DocumentFragment;
25
- /**
26
- * Update an existing element's attributes and children from vnode
27
- */
28
- export declare function updateElementFromVnode(el: Element, vnode: VNode, updateChildren?: boolean): void;
29
- export declare function updateElementChildren(el: Element, children: VNode | VNode[] | undefined): void;
30
- export declare function updateUnkeyedChildren(parent: Element, newChildren: unknown[]): void;
31
- /**
32
- * Positional update for keyed lists where keys changed en-masse but structure
33
- * (element tags and simple text children) remains identical. This updates
34
- * text content in-place and remaps the `data-key` attribute to the new key so
35
- * subsequent updates can find elements by their data-key.
36
- */
37
- export declare function performBulkPositionalKeyedTextUpdate(parent: Element, keyedVnodes: Array<{
38
- key: string | number;
39
- vnode: VNode;
40
- }>): {
41
- readonly n: number;
42
- readonly reused: number;
43
- readonly updatedKeys: number;
44
- readonly t: number;
45
- };
46
- export declare function performBulkTextReplace(parent: Element, newChildren: VNode[]): {
47
- readonly n: number;
48
- readonly reused: number;
49
- readonly created: number;
50
- readonly tBuild: number;
51
- readonly tCommit: number;
52
- };
53
- /**
54
- * Heuristic to detect large bulk text-dominant updates eligible for fast-path.
55
- * Conditions:
56
- * - total children >= threshold
57
- * - majority of children are simple text (string/number) or intrinsic elements
58
- * with a single primitive child
59
- * - conservative: avoid when component children or complex shapes present
60
- */
61
- export declare function isBulkTextFastPathEligible(parent: Element, newChildren: VNode[]): boolean;
62
- //# sourceMappingURL=dom.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/renderer/dom.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAiB,KAAK,UAAU,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAgCrE,eAAO,MAAM,gBAAgB,SAAkC,CAAC;AAudhE;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAkExD;AA4JD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,gBAAgB,CA6DlB;AAMD;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,OAAO,EACX,KAAK,EAAE,KAAK,EACZ,cAAc,UAAO,GACpB,IAAI,CA+LN;AAED,wBAAgB,qBAAqB,CACnC,EAAE,EAAE,OAAO,EACX,QAAQ,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,SAAS,GACpC,IAAI,CAkFN;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,WAAW,EAAE,OAAO,EAAE,GACrB,IAAI,CAmLN;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,OAAO,EACf,WAAW,EAAE,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;;;;;EAgE3D;AA4MD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE;;;;;;EA6B3E;AA6GD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,OAAO,EACf,WAAW,EAAE,KAAK,EAAE,WAyCrB"}
@@ -1,4 +0,0 @@
1
- export declare const IS_DOM_AVAILABLE: boolean;
2
- export declare function evaluate(node: unknown, target: Element | null, context?: object): void;
3
- export declare function clearDOMRange(context: object): void;
4
- //# sourceMappingURL=evaluate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../src/renderer/evaluate.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,gBAAgB,SAAkC,CAAC;AA0lBhE,wBAAgB,QAAQ,CACtB,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,OAAO,GAAG,IAAI,EACtB,OAAO,CAAC,EAAE,MAAM,GACf,IAAI,CA8IN;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEnD"}
@@ -1,7 +0,0 @@
1
- import type { VNode } from './types';
2
- export declare const IS_DOM_AVAILABLE: boolean;
3
- export declare function applyRendererFastPath(parent: Element, keyedVnodes: Array<{
4
- key: string | number;
5
- vnode: VNode;
6
- }>, oldKeyMap?: Map<string | number, Element>, unkeyedVnodes?: VNode[]): Map<string | number, Element> | null;
7
- //# sourceMappingURL=fastpath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fastpath.d.ts","sourceRoot":"","sources":["../../src/renderer/fastpath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AASrC,eAAO,MAAM,gBAAgB,SAAkC,CAAC;AAMhE,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,WAAW,EAAE,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,EAC1D,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EACzC,aAAa,CAAC,EAAE,KAAK,EAAE,GACtB,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAqMtC"}
@@ -1,6 +0,0 @@
1
- export * from './types';
2
- export * from './cleanup';
3
- export * from './keyed';
4
- export * from './dom';
5
- export { evaluate, clearDOMRange } from './evaluate';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/renderer/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { VNode } from './types';
2
- export declare const keyedElements: WeakMap<Element, Map<string | number, Element>>;
3
- /**
4
- * Retrieve existing keyed map for a parent element (runtime use)
5
- */
6
- export declare function getKeyMapForElement(el: Element): Map<string | number, Element> | undefined;
7
- /**
8
- * Populate a keyed map for an element by scanning its immediate children
9
- * for `data-key` attributes. Proactive initialization for runtime layers.
10
- */
11
- export declare function populateKeyMapForElement(parent: Element): void;
12
- export declare const _reconcilerRecordedParents: WeakSet<Element>;
13
- /**
14
- * Determine if keyed reorder fast-path should be used
15
- */
16
- export declare function isKeyedReorderFastPathEligible(parent: Element, newChildren: VNode[], oldKeyMap: Map<string | number, Element> | undefined): {
17
- readonly useFastPath: boolean;
18
- readonly totalKeyed: number;
19
- readonly moveCount: number;
20
- readonly lisLen: number;
21
- readonly hasPropChanges: boolean;
22
- };
23
- //# sourceMappingURL=keyed.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyed.d.ts","sourceRoot":"","sources":["../../src/renderer/keyed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAYrC,eAAO,MAAM,aAAa,iDAGvB,CAAC;AAEJ;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,OAAO,6CAE9C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAwB9D;AAKD,eAAO,MAAM,0BAA0B,kBAAyB,CAAC;AAsEjE;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,OAAO,EACf,WAAW,EAAE,KAAK,EAAE,EACpB,SAAS,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;;;;;EAwDrD"}