@askrjs/askr 0.0.28 → 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 (451) hide show
  1. package/README.md +44 -172
  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 +22 -26
  14. package/dist/bin/askr-ssg.d.ts.map +1 -1
  15. package/dist/bin/askr-ssg.js +149 -2
  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 -23
  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 -34
  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 -56
  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 +12 -9
  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 -1
  238. package/dist/runtime/perf-metrics.js.map +1 -0
  239. package/dist/runtime/readable.d.ts +24 -18
  240. package/dist/runtime/readable.d.ts.map +1 -1
  241. package/dist/runtime/readable.js +118 -1
  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 -50
  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 +7 -5
  250. package/dist/runtime/selector.d.ts.map +1 -1
  251. package/dist/runtime/selector.js +188 -1
  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 -19
  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 +10 -10
  260. package/dist/ssg/batch-render.d.ts.map +1 -1
  261. package/dist/ssg/batch-render.js +84 -1
  262. package/dist/ssg/batch-render.js.map +1 -0
  263. package/dist/ssg/create-static-gen.d.ts +28 -29
  264. package/dist/ssg/create-static-gen.d.ts.map +1 -1
  265. package/dist/ssg/create-static-gen.js +282 -1
  266. package/dist/ssg/create-static-gen.js.map +1 -0
  267. package/dist/ssg/generate-metadata.d.ts +12 -15
  268. package/dist/ssg/generate-metadata.d.ts.map +1 -1
  269. package/dist/ssg/generate-metadata.js +94 -1
  270. package/dist/ssg/generate-metadata.js.map +1 -0
  271. package/dist/ssg/incremental-manifest.js +56 -1
  272. package/dist/ssg/incremental-manifest.js.map +1 -0
  273. package/dist/ssg/index.d.ts +8 -28
  274. package/dist/ssg/index.js +7 -1
  275. package/dist/ssg/resolve-ssg-data.d.ts +10 -13
  276. package/dist/ssg/resolve-ssg-data.d.ts.map +1 -1
  277. package/dist/ssg/resolve-ssg-data.js +46 -1
  278. package/dist/ssg/resolve-ssg-data.js.map +1 -0
  279. package/dist/ssg/route-utils.d.ts +14 -10
  280. package/dist/ssg/route-utils.d.ts.map +1 -1
  281. package/dist/ssg/route-utils.js +24 -1
  282. package/dist/ssg/route-utils.js.map +1 -0
  283. package/dist/ssg/types.d.ts +157 -144
  284. package/dist/ssg/types.d.ts.map +1 -1
  285. package/dist/ssg/write-static-files.d.ts +8 -14
  286. package/dist/ssg/write-static-files.d.ts.map +1 -1
  287. package/dist/ssg/write-static-files.js +73 -1
  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 -35
  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 +74 -72
  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 +49 -69
  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/_fs.js +0 -1
  320. package/dist/_virtual/_path.js +0 -1
  321. package/dist/_virtual/main.js +0 -1
  322. package/dist/_virtual/preload-helper.js +0 -1
  323. package/dist/bench/benchmark-entry.d.ts +0 -14
  324. package/dist/bench/benchmark-entry.d.ts.map +0 -1
  325. package/dist/common/errors.d.ts +0 -53
  326. package/dist/common/errors.d.ts.map +0 -1
  327. package/dist/common/index.d.ts +0 -14
  328. package/dist/common/index.d.ts.map +0 -1
  329. package/dist/dev/invariant.d.ts +0 -83
  330. package/dist/dev/invariant.d.ts.map +0 -1
  331. package/dist/dev/logger.d.ts +0 -13
  332. package/dist/dev/logger.d.ts.map +0 -1
  333. package/dist/dev/vite-plugin-askr.d.ts +0 -25
  334. package/dist/dev/vite-plugin-askr.d.ts.map +0 -1
  335. package/dist/dev/warnings.d.ts +0 -5
  336. package/dist/dev/warnings.d.ts.map +0 -1
  337. package/dist/for/for.d.ts +0 -16
  338. package/dist/for/for.d.ts.map +0 -1
  339. package/dist/for/for.js +0 -1
  340. package/dist/for/index.d.ts +0 -2
  341. package/dist/for/index.d.ts.map +0 -1
  342. package/dist/for/index.js +0 -1
  343. package/dist/foundations/core.d.ts +0 -23
  344. package/dist/foundations/core.d.ts.map +0 -1
  345. package/dist/foundations/core.js +0 -1
  346. package/dist/foundations/index.d.ts.map +0 -1
  347. package/dist/foundations/interactions/dismissable.d.ts +0 -58
  348. package/dist/foundations/interactions/dismissable.d.ts.map +0 -1
  349. package/dist/foundations/interactions/dismissable.js +0 -1
  350. package/dist/foundations/interactions/focusable.d.ts +0 -16
  351. package/dist/foundations/interactions/focusable.d.ts.map +0 -1
  352. package/dist/foundations/interactions/focusable.js +0 -1
  353. package/dist/foundations/interactions/hoverable.d.ts +0 -19
  354. package/dist/foundations/interactions/hoverable.d.ts.map +0 -1
  355. package/dist/foundations/interactions/hoverable.js +0 -1
  356. package/dist/foundations/interactions/index.d.ts +0 -5
  357. package/dist/foundations/interactions/index.d.ts.map +0 -1
  358. package/dist/foundations/interactions/interaction-policy.d.ts +0 -96
  359. package/dist/foundations/interactions/interaction-policy.d.ts.map +0 -1
  360. package/dist/foundations/interactions/pressable.d.ts +0 -54
  361. package/dist/foundations/interactions/pressable.d.ts.map +0 -1
  362. package/dist/foundations/interactions/roving-focus.d.ts +0 -117
  363. package/dist/foundations/interactions/roving-focus.d.ts.map +0 -1
  364. package/dist/foundations/interactions/roving-focus.js +0 -1
  365. package/dist/foundations/state/controllable.d.ts +0 -53
  366. package/dist/foundations/state/controllable.d.ts.map +0 -1
  367. package/dist/foundations/state/controllable.js +0 -1
  368. package/dist/foundations/state/index.d.ts +0 -2
  369. package/dist/foundations/state/index.d.ts.map +0 -1
  370. package/dist/foundations/structures/index.d.ts +0 -5
  371. package/dist/foundations/structures/index.d.ts.map +0 -1
  372. package/dist/foundations/structures.d.ts.map +0 -1
  373. package/dist/foundations/utilities/aria.d.ts +0 -13
  374. package/dist/foundations/utilities/aria.d.ts.map +0 -1
  375. package/dist/foundations/utilities/compose-handlers.d.ts +0 -34
  376. package/dist/foundations/utilities/compose-handlers.d.ts.map +0 -1
  377. package/dist/foundations/utilities/event-types.d.ts +0 -17
  378. package/dist/foundations/utilities/event-types.d.ts.map +0 -1
  379. package/dist/foundations/utilities/index.d.ts +0 -7
  380. package/dist/foundations/utilities/index.d.ts.map +0 -1
  381. package/dist/foundations/utilities/merge-props.d.ts +0 -2
  382. package/dist/foundations/utilities/merge-props.d.ts.map +0 -1
  383. package/dist/foundations/utilities/use-id.d.ts +0 -29
  384. package/dist/foundations/utilities/use-id.d.ts.map +0 -1
  385. package/dist/foundations/utilities/use-id.js +0 -1
  386. package/dist/fx/index.d.ts.map +0 -1
  387. package/dist/fx/noop.d.ts +0 -12
  388. package/dist/fx/noop.d.ts.map +0 -1
  389. package/dist/index.d.ts.map +0 -1
  390. package/dist/jsx/index.d.ts.map +0 -1
  391. package/dist/jsx/jsx-dev-runtime.d.ts +0 -4
  392. package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
  393. package/dist/jsx/jsx-runtime.d.ts +0 -10
  394. package/dist/jsx/jsx-runtime.d.ts.map +0 -1
  395. package/dist/node_modules/esbuild/lib/main.js +0 -65
  396. package/dist/renderer/cleanup.d.ts +0 -28
  397. package/dist/renderer/cleanup.d.ts.map +0 -1
  398. package/dist/renderer/dom.d.ts +0 -64
  399. package/dist/renderer/dom.d.ts.map +0 -1
  400. package/dist/renderer/evaluate.d.ts +0 -4
  401. package/dist/renderer/evaluate.d.ts.map +0 -1
  402. package/dist/renderer/fastpath.d.ts +0 -7
  403. package/dist/renderer/fastpath.d.ts.map +0 -1
  404. package/dist/renderer/index.d.ts +0 -6
  405. package/dist/renderer/index.d.ts.map +0 -1
  406. package/dist/renderer/keyed.d.ts +0 -23
  407. package/dist/renderer/keyed.d.ts.map +0 -1
  408. package/dist/renderer/reconcile.d.ts +0 -88
  409. package/dist/renderer/reconcile.d.ts.map +0 -1
  410. package/dist/renderer/types.d.ts +0 -3
  411. package/dist/renderer/types.d.ts.map +0 -1
  412. package/dist/renderer/utils.d.ts +0 -63
  413. package/dist/renderer/utils.d.ts.map +0 -1
  414. package/dist/resources/index.d.ts.map +0 -1
  415. package/dist/router/index.d.ts.map +0 -1
  416. package/dist/router/match.d.ts +0 -22
  417. package/dist/router/match.d.ts.map +0 -1
  418. package/dist/runtime/dev-namespace.d.ts +0 -31
  419. package/dist/runtime/dev-namespace.d.ts.map +0 -1
  420. package/dist/runtime/events.d.ts +0 -53
  421. package/dist/runtime/events.d.ts.map +0 -1
  422. package/dist/runtime/execution-model.d.ts +0 -4
  423. package/dist/runtime/execution-model.d.ts.map +0 -1
  424. package/dist/runtime/fastlane.d.ts +0 -27
  425. package/dist/runtime/fastlane.d.ts.map +0 -1
  426. package/dist/runtime/hydration.d.ts +0 -25
  427. package/dist/runtime/hydration.d.ts.map +0 -1
  428. package/dist/runtime/perf-metrics.d.ts +0 -25
  429. package/dist/runtime/perf-metrics.d.ts.map +0 -1
  430. package/dist/runtime/resource-cell.d.ts +0 -35
  431. package/dist/runtime/resource-cell.d.ts.map +0 -1
  432. package/dist/runtime/snapshot.d.ts +0 -25
  433. package/dist/runtime/snapshot.d.ts.map +0 -1
  434. package/dist/runtime/ssr-bridge.d.ts +0 -10
  435. package/dist/runtime/ssr-bridge.d.ts.map +0 -1
  436. package/dist/ssg/discover-resources.d.ts +0 -15
  437. package/dist/ssg/discover-resources.d.ts.map +0 -1
  438. package/dist/ssg/incremental-manifest.d.ts +0 -23
  439. package/dist/ssg/incremental-manifest.d.ts.map +0 -1
  440. package/dist/ssg/index.d.ts.map +0 -1
  441. package/dist/ssr/attrs.d.ts +0 -26
  442. package/dist/ssr/attrs.d.ts.map +0 -1
  443. package/dist/ssr/create-ssr.d.ts +0 -19
  444. package/dist/ssr/create-ssr.d.ts.map +0 -1
  445. package/dist/ssr/escape.d.ts +0 -38
  446. package/dist/ssr/escape.d.ts.map +0 -1
  447. package/dist/ssr/sink.d.ts +0 -23
  448. package/dist/ssr/sink.d.ts.map +0 -1
  449. package/dist/ssr/stream-render.d.ts +0 -7
  450. package/dist/ssr/stream-render.d.ts.map +0 -1
  451. package/dist/vite/index.js +0 -4
@@ -1,117 +0,0 @@
1
- /**
2
- * rovingFocus
3
- *
4
- * Single tab stop navigation with arrow-key control.
5
- *
6
- * INVARIANTS:
7
- * 1. Only one item in the group is reachable via Tab (single tab stop)
8
- * 2. Arrow keys move focus within the group
9
- * 3. Orientation determines which arrow keys are active
10
- * 4. Looping is opt-in
11
- * 5. Disabled items are skipped
12
- * 6. Returns props objects, never factories (composes via mergeProps)
13
- *
14
- * DESIGN:
15
- * - Container gets onKeyDown for arrow navigation
16
- * - Each item gets tabIndex based on current selection
17
- * - Navigation logic is pure - caller controls focus application
18
- * - Disabled check happens per-item via predicate
19
- *
20
- * PIT OF SUCCESS:
21
- * ✓ Can't accidentally break tab order (tabIndex assigned correctly)
22
- * ✓ Can't duplicate navigation logic (single source)
23
- * ✓ Composes via mergeProps (all standard props)
24
- * ✓ Type-safe - invalid indices caught at call site
25
- *
26
- * USAGE:
27
- * const nav = rovingFocus({
28
- * currentIndex: 0,
29
- * itemCount: 3,
30
- * orientation: 'horizontal',
31
- * onNavigate: setIndex
32
- * });
33
- *
34
- * <div {...nav.container}>
35
- * <button {...nav.item(0)}>First</button>
36
- * <button {...nav.item(1)}>Second</button>
37
- * </div>
38
- *
39
- * MISUSE EXAMPLE (PREVENTED):
40
- * ❌ Can't forget to set tabIndex - returned in item props
41
- * ❌ Can't create conflicting arrow handlers - mergeProps composes
42
- * ❌ Can't skip disabled items incorrectly - logic is internal
43
- */
44
- import type { KeyboardLikeEvent } from '../utilities/event-types';
45
- export type Orientation = 'horizontal' | 'vertical' | 'both';
46
- export interface RovingFocusOptions {
47
- /**
48
- * Current focused index
49
- */
50
- currentIndex: number;
51
- /**
52
- * Total number of items
53
- */
54
- itemCount: number;
55
- /**
56
- * Navigation orientation
57
- * - horizontal: ArrowLeft/ArrowRight
58
- * - vertical: ArrowUp/ArrowDown
59
- * - both: all arrow keys
60
- */
61
- orientation?: Orientation;
62
- /**
63
- * Whether to loop when reaching the end
64
- */
65
- loop?: boolean;
66
- /**
67
- * Callback when navigation occurs
68
- */
69
- onNavigate?: (index: number) => void;
70
- /**
71
- * Optional disabled state check per index
72
- */
73
- isDisabled?: (index: number) => boolean;
74
- }
75
- export interface RovingFocusResult {
76
- /**
77
- * Props for the container element (composes via mergeProps)
78
- */
79
- container: {
80
- onKeyDown: (e: KeyboardLikeEvent) => void;
81
- };
82
- /**
83
- * Generate props for an item at the given index (composes via mergeProps)
84
- */
85
- item: (index: number) => {
86
- tabIndex: number;
87
- 'data-roving-index': number;
88
- };
89
- }
90
- export declare function rovingFocus(options: RovingFocusOptions): RovingFocusResult;
91
- /**
92
- * USAGE EXAMPLE:
93
- *
94
- * function Menu() {
95
- * const [focusIndex, setFocusIndex] = state(0);
96
- * const items = ['File', 'Edit', 'View'];
97
- *
98
- * const navigation = rovingFocus({
99
- * currentIndex: focusIndex(),
100
- * itemCount: items.length,
101
- * orientation: 'horizontal',
102
- * loop: true,
103
- * onNavigate: setFocusIndex,
104
- * });
105
- *
106
- * return (
107
- * <div {...navigation.container}>
108
- * {items.map((label, index) => (
109
- * <button {...navigation.item(index)}>
110
- * {label}
111
- * </button>
112
- * ))}
113
- * </div>
114
- * );
115
- * }
116
- */
117
- //# sourceMappingURL=roving-focus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roving-focus.d.ts","sourceRoot":"","sources":["../../../src/foundations/interactions/roving-focus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CACzC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE;QACT,SAAS,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;KAC3C,CAAC;IAEF;;OAEG;IACH,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;CACH;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,iBAAiB,CAkE1E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG"}
@@ -1 +0,0 @@
1
- function v(u){const{currentIndex:r,itemCount:e,orientation:o="horizontal",loop:d=!1,onNavigate:l,isDisabled:c}=u;function f(t,i){let n=t+i;if(d)n<0&&(n=e-1),n>=e&&(n=0);else if(n<0||n>=e)return;return c?.(n)?n===t?void 0:f(n,i):n}function s(t){const{key:i}=t;let n;if((o==="horizontal"||o==="both")&&(i==="ArrowRight"&&(n=1),i==="ArrowLeft"&&(n=-1)),(o==="vertical"||o==="both")&&(i==="ArrowDown"&&(n=1),i==="ArrowUp"&&(n=-1)),n===void 0)return;const a=f(r,n);a!==void 0&&(t.preventDefault?.(),t.stopPropagation?.(),l?.(a))}return{container:{onKeyDown:s},item:t=>({tabIndex:t===r?0:-1,"data-roving-index":t})}}export{v as rovingFocus};
@@ -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;AAC1C,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGnD,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"../../../_virtual/_fs.js";import ve from"../../../_virtual/___vite-browser-external.js";import"../../../_virtual/_path.js";import gt from"fs";import wt from"path";var qe,yt;function yr(){if(yt)return qe;yt=1;var Ne={},bt=Object.create,Pe=Object.defineProperty,vt=Object.getOwnPropertyDescriptor,xt=Object.getOwnPropertyNames,$t=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty,kt=(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 xt(t))!Et.call(e,l)&&l!==r&&Pe(e,l,{get:()=>t[l],enumerable:!(n=vt(t,l))||n.enumerable});return e},cr=(e,t,r)=>(r=e!=null?bt($t(e)):{},Je(t||!e||!e.__esModule?Pe(r,"default",{value:e,enumerable:!0}):r,e)),St=e=>Je(Pe({},"__esModule",{value:!0}),e),xe={};kt(xe,{analyzeMetafile:()=>er,analyzeMetafileSync:()=>ir,build:()=>Qt,buildSync:()=>tr,context:()=>Gt,default:()=>sr,formatMessages:()=>Zt,formatMessagesSync:()=>nr,initialize:()=>ar,stop:()=>lr,transform:()=>Xt,transformSync:()=>rr,version:()=>Kt}),qe=St(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 At(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 ge(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",fe=e=>typeof e=="number"&&e===(e|0)?null:"an integer",Pt=e=>typeof e=="number"&&e===(e|0)&&e>=0&&e<=65535?null:"a valid port number",Ge=e=>typeof e=="function"?null:"a function",ie=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",jt=e=>typeof e=="object"&&e!==null?null:"an array or an object",Ot=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",Dt=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",Ct=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 Mt(e){let t=Object.create(null),r=i(e,t,"wasmURL",Ct),n=i(e,t,"wasmModule",Ot),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",fe);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),p=i(t,r,"reserveProps",Oe),$=i(t,r,"mangleQuoted",U),I=i(t,r,"minify",U),F=i(t,r,"minifySyntax",U),B=i(t,r,"minifyWhitespace",U),N=i(t,r,"minifyIdentifiers",U),L=i(t,r,"lineLimit",fe),W=i(t,r,"drop",K),z=i(t,r,"dropLabels",K),x=i(t,r,"charset",y),g=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",Dt),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=${ge(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"),F&&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}`),g!==void 0&&e.push(`--tree-shaking=${g}`),d&&e.push("--ignore-annotations"),W)for(let m of W)e.push(`--drop:${Q(m,"drop")}`);if(z&&e.push(`--drop-labels=${ge(z,"drop label")}`),R&&e.push(`--abs-paths=${ge(R,"abs paths")}`),w&&e.push(`--mangle-props=${Le(w)}`),p&&e.push(`--reserve-props=${Le(p)}`),$!==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 _=j[m];if(typeof _!="boolean")throw new Error(`Expected value for supported ${V(m)} to be a boolean, got ${typeof _} instead`);e.push(`--supported:${m}=${_}`)}if(C)for(let m of C)e.push(`--pure:${Q(m,"pure")}`);P&&e.push("--keep-names")}function Lt(e,t,r,n,l){var s;let a=[],h=[],o=Object.create(null),w=null,p=null;De(a,t,o,r,n),nt(a,t,o);let $=i(t,o,"sourcemap",Ze),I=i(t,o,"bundle",U),F=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),g=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",jt),_=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"),F&&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}`),g&&a.push(`--resolve-extensions=${ge(g,"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=${ge(u,"main field")}`),E&&a.push(`--conditions=${ge(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,oe=m.length;b<oe;b++){let ee=m[b];if(typeof ee=="object"&&ee!==null){let ne=Object.create(null),se=i(ee,ne,"in",y),te=i(ee,ne,"out",y);if(q(ee,ne,"in entry point at index "+b),se===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,se])}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),oe=i(T,b,"contents",tt),ee=i(T,b,"resolveDir",y),ne=i(T,b,"sourcefile",y),se=i(T,b,"loader",y);q(T,b,'in "stdin" object'),ne&&a.push(`--sourcefile=${ne}`),se&&a.push(`--loader=${se}`),ee&&(p=ee),typeof oe=="string"?w=re(oe):oe instanceof Uint8Array&&(w=oe)}let ae=[];if(d)for(let b of d)b+="",ae.push(b);return{entries:h,flags:a,write:M,stdinContents:w,stdinResolveDir:p,absWorkingDir:_,nodePaths:ae,mangleCache:rt(J)}}function Tt(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),p=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}`),p&&l.push(`--footer=${p}`),{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 g=h+x.length;if(g>a.length){let u=new Uint8Array(g*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 g="The service was stopped"+r.reason;for(let d in n)n[d](g,null);n={}},p=(x,g,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:g}))},$=(x,g)=>{if(r.didClose)throw new Error("The service is no longer running"+r.reason);e.writeToStdin(Ve({id:x,isRequest:!1,value:g}))},I=async(x,g)=>{try{if(g.command==="ping"){$(x,{});return}if(typeof g.key=="number"){const d=t[g.key];if(!d)return;const u=d[g.command];if(u){await u(x,g);return}}throw new Error("Invalid command: "+g.command)}catch(d){const u=[ce(d,e,null,void 0,"")];try{$(x,{errors:u})}catch{}}},F=!0,B=x=>{if(F){F=!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 g=At(x);if(g.isRequest)I(g.id,g.value);else{let d=n[g.id];delete n[g.id],g.value.error?d(g.value.error,{}):d(null,g.value)}};return{readFromStdout:o,afterClose:w,service:{buildOrContext:({callName:x,refs:g,options:d,isTTY:u,defaultWD:E,callback:S})=>{let D=0;const A=s++,f={},c={ref(){++D===1&&g&&g.ref()},unref(){--D===0&&(delete t[A],g&&g.unref())}};t[A]=f,c.ref(),_t(x,A,p,$,c,e,f,d,u,E,(v,j)=>{try{S(v,j)}finally{c.unref()}})},transform:({callName:x,refs:g,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}=Tt(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),p(g,C,(P,k)=>{if(P)return D(new Error(P),null);let O=we(k.errors,A),R=we(k.warnings,A),m=1,_=()=>{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,_())})),k.mapFS&&(m++,S.readFile(k.map,(T,M)=>{T!==null?D(T,null):(k.map=M,_())})),_()})}catch(v){let j=[];try{De(j,u,{},E,Qe)}catch{}const C=ce(v,e,A,void 0,"");p(g,{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:g,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",fe);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:le(d,"messages",null,"",f),isWarning:D==="warning"};A!==void 0&&(c.color=A),f!==void 0&&(c.terminalWidth=f),p(g,c,(v,j)=>{if(v)return E(new Error(v),null);E(null,j.messages)})},analyzeMetafile:({callName:x,refs:g,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),p(g,f,(c,v)=>{if(c)return E(new Error(c),null);E(null,v.result)})}}}}function _t(e,t,r,n,l,s,a,h,o,w,p){const $=lt(),I=e==="context",F=(L,W)=>{const z=[];try{De(z,h,{},o,Ke)}catch{}const x=ce(L,s,$,void 0,W);r(l,{command:"error",flags:z,error:x},()=>{x.detail=$.load(x.detail),p($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 F(new Error('"plugins" must be an array'),"");B=L}}if(B&&B.length>0){if(s.isSync)return F(new Error("Cannot use plugins in synchronous API calls"),"");Ft(t,r,n,l,s,a,h,B,$).then(L=>{if(!L.ok)return F(L.error,L.pluginName);try{N(L.requestPlugins,L.runOnEndCallbacks,L.scheduleOnDisposeCallbacks)}catch(W){F(W,"")}},L=>F(L,""));return}try{N(null,(L,W)=>W([],[]),()=>{})}catch(L){F(L,"")}function N(L,W,z){const x=s.hasFS,{entries:g,flags:d,write:u,stdinContents:E,stdinResolveDir:S,absWorkingDir:D,nodePaths:A,mangleCache:f}=Lt(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:g,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:we(P.errors,$),warnings:we(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(It)),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,(_,T)=>{if(R.length>0||_.length>0){const M=$e("Build failed",R.concat(_),m.concat(T));return k(M,null,_,T)}k(null,O,_,T)})};let j,C;I&&(a["on-end"]=(P,k)=>new Promise(O=>{v(k,(R,m,_,T)=>{const M={errors:_,warnings:T};C&&C(R,m),j=void 0,C=void 0,n(P,M),O()})})),r(l,c,(P,k)=>{if(P)return p(new Error(P),null);if(!I)return v(k,(m,_)=>(z(),p(m,_)));if(k.errors.length>0)return p($e("Context failed",k.errors,k.warnings),null);let O=!1;const R={rebuild:()=>(j||(j=new Promise((m,_)=>{let T;C=(G,J)=>{T||(T=()=>G?_(G):m(J))};const M=()=>{r(l,{command:"rebuild",key:t},(J,ae)=>{J?_(new Error(J)):T?T():M()})};M()})),j),watch:(m={})=>new Promise((_,T)=>{if(!s.hasFS)throw new Error('Cannot use the "watch" API in this environment');const M={},G=i(m,M,"delay",fe);q(m,M,"in watch() call");const J={command:"watch",key:t};G&&(J.delay=G),r(l,J,ae=>{ae?T(new Error(ae)):_(void 0)})}),serve:(m={})=>new Promise((_,T)=>{if(!s.hasFS)throw new Error('Cannot use the "serve" API in this environment');const M={},G=i(m,M,"port",Pt),J=i(m,M,"host",y),ae=i(m,M,"servedir",y),b=i(m,M,"keyfile",y),oe=i(m,M,"certfile",y),ee=i(m,M,"fallback",y),ne=i(m,M,"cors",X),se=i(m,M,"onRequest",Ge);q(m,M,"in serve() call");const te={command:"serve",key:t,onRequest:!!se};if(G!==void 0&&(te.port=G),J!==void 0&&(te.host=J),ae!==void 0&&(te.servedir=ae),b!==void 0&&(te.keyfile=b),oe!==void 0&&(te.certfile=oe),ee!==void 0&&(te.fallback=ee),ne){const Ae={},be=i(ne,Ae,"origin",et);q(ne,Ae,'on "cors" object'),Array.isArray(be)?te.corsOrigin=be:be!==void 0&&(te.corsOrigin=[be])}r(l,te,(Ae,be)=>{if(Ae)return T(new Error(Ae));se&&(a["serve-request"]=(ur,fr)=>{se(fr.args),n(ur,{})}),_(be)})}),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(),p(null,R)})}}var Ft=async(e,t,r,n,l,s,a,h,o)=>{let w=[],p=[],$={},I={},F=[],B=0,N=0,L=[],W=!1;h=[...h];for(let g of h){let d={};if(typeof g!="object")throw new Error(`Plugin at index ${N} must be an object`);const u=i(g,d,"name",y);if(typeof u!="string"||u==="")throw new Error(`Plugin at index ${N} is missing a name`);try{let E=i(g,d,"setup",Ge);if(typeof E!="function")throw new Error("Plugin is missing a setup function");q(g,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((_,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=Bt(m,"with")),t(n,M,(G,J)=>{G!==null?T(new Error(G)):_({errors:we(J.errors,o),warnings:we(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");p.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){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(g,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",ie),v=i(A,f,"warnings",ie);q(A,f,`from onStart() callback in plugin ${V(E)}`),c!=null&&u.errors.push(...le(c,"errors",o,E,void 0)),v!=null&&u.warnings.push(...le(v,"warnings",o,E,void 0))}}catch(A){u.errors.push(ce(A,l,o,D&&D(),E))}})),r(g,u)},s["on-resolve"]=async(g,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",ie),_=i(f,c,"warnings",ie),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=le(m,"errors",o,E,void 0)),_!=null&&(u.warnings=le(_,"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:[ce(f,l,o,D&&D(),E)]};break}r(g,u)},s["on-load"]=async(g,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",ie),R=i(f,c,"warnings",ie),m=i(f,c,"watchFiles",K),_=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=le(O,"errors",o,E,void 0)),R!=null&&(u.warnings=le(R,"warnings",o,E,void 0)),m!=null&&(u.watchFiles=Me(m,"watchFiles")),_!=null&&(u.watchDirs=Me(_,"watchDirs"));break}}catch(f){u={id:A,errors:[ce(f,l,o,D&&D(),E)]};break}r(g,u)};let z=(g,d)=>d([],[]);p.length>0&&(z=(g,d)=>{(async()=>{const u=[],E=[];for(const{name:S,callback:D,note:A}of p){let f,c;try{const v=await D(g);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",ie),P=i(v,j,"warnings",ie);q(v,j,`from onEnd() callback in plugin ${V(S)}`),C!=null&&(f=le(C,"errors",o,S,void 0)),P!=null&&(c=le(P,"warnings",o,S,void 0))}}catch(v){f=[ce(v,l,o,A&&A(),S)]}if(f){u.push(...f);try{g.errors.push(...f)}catch{}}if(c){E.push(...c);try{g.warnings.push(...c)}catch{}}}d(u,E)})()});let x=()=>{for(const g of F)setTimeout(()=>g(),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 ce(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,p=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+p)).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,p=s.pluginName?`[plugin: ${s.pluginName}] `:"";return`
13
- ${h}:${o}:${w}: ERROR: ${p}${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 we(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",fe),h=i(e,n,"column",fe),o=i(e,n,"length",fe),w=i(e,n,"lineText",y),p=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:p||""}}function le(e,t,r,n,l){let s=[],a=0;for(const h of e){let o={},w=i(h,o,"id",y),p=i(h,o,"pluginName",y),$=i(h,o,"text",y),I=i(h,o,"location",Xe),F=i(h,o,"notes",ie),B=i(h,o,"detail",je),N=`in element ${a} of "${t}"`;q(h,o,N);let L=[];if(F)for(const W of F){let z={},x=i(W,z,"text",y),g=i(W,z,"location",Xe);q(W,z,N),L.push({text:x||"",location:ot(g,N,l)})}s.push({id:w||"",pluginName:p||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 Bt(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 It({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 ue=gt,st=ve,Z=wt,ye=Ne.ESBUILD_BINARY_PATH||ye,Nt=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"},_e={"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 Rt(){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 _e)e=_e[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 Ut(){const e=require.resolve("esbuild"),t=Z.dirname(Z.dirname(Z.dirname(e)));if(Z.basename(t)==="node_modules"){for(const r in _e)try{const n=_e[r];if(ue.existsSync(Z.join(t,n)))return n}catch{}for(const r in Te)try{const n=Te[r];if(ue.existsSync(Z.join(t,n)))return n}catch{}}return null}function Wt(e,t){const r=Z.dirname(require.resolve("esbuild"));return Z.join(r,`downloaded-${e.replace("/","-")}-${Z.basename(t)}`)}function zt(){if(Nt(ye))if(!ue.existsSync(ye))console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ye}`);else return{binPath:ye,isWASM:!1};const{pkg:e,subpath:t,isWASM:r}=Rt();let n;try{n=require.resolve(`${e}/${t}`)}catch(l){if(n=Wt(e,t),!ue.existsSync(n)){try{require.resolve(e)}catch{const s=Ut();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 ue.existsSync(a)||(ue.mkdirSync(Z.dirname(a),{recursive:!0}),ue.copyFileSync(n,a),ue.chmodSync(a,493)),{binPath:a,isWASM:r}}}return{binPath:n,isWASM:r}}var dt=ve,qt=ve,We=wt,de=gt,Jt=ve,Vt=ve,Y;if(Ne.ESBUILD_WORKER_THREADS!=="0"){try{Y=ve}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(!ye&&(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}=zt();return t?["node",[e]]:[e,[]]}},ke=()=>Vt.isatty(2),Yt={readFile(e,t){try{let r=de.readFileSync(e,"utf8");try{de.unlinkSync(e)}catch{}t(null,r)}catch(r){t(r,null)}},writeFile(e,t){try{let r=pt();de.writeFileSync(r,e),t(r)}catch{t(null)}}},Ht={readFile(e,t){try{de.readFile(e,"utf8",(r,n)=>{try{de.unlink(e,()=>t(r,n))}catch{t(r,n)}})}catch(r){t(r,null)}},writeFile(e,t){try{let r=pt();de.writeFile(r,e,n=>t(n!==null?null:r))}catch{t(null)}}},Kt="0.27.3",Qt=e=>me().build(e),Gt=e=>me().context(e),Xt=(e,t)=>me().transform(e,t),Zt=(e,t)=>me().formatMessages(e,t),er=(e,t)=>me().analyzeMetafile(e,t),tr=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:he,callback:(n,l)=>{if(n)throw n;t=l}})),t},rr=(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:Yt,callback:(l,s)=>{if(l)throw l;r=s}})),r},nr=(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},ir=(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},lr=()=>(Fe&&Fe(),H&&H.stop(),Promise.resolve()),ze=!1,ar=e=>{if(e=Mt(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 me(),ze=!0,Promise.resolve()},he=process.cwd(),Se,Fe,me=()=>{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:he}),{readFromStdout:n,afterClose:l,service:s}=it({writeToStdin(p){r.stdin.write(p,$=>{$&&l($)})},readFileSync:de.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),Fe=()=>{a.destroy(),h.destroy(),r.kill(),ze=!1,Se=void 0,Fe=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:p=>new Promise(($,I)=>{s.buildOrContext({callName:"build",refs:w,options:p,isTTY:ke(),defaultWD:he,callback:(F,B)=>F?I(F):$(B)})}),context:p=>new Promise(($,I)=>s.buildOrContext({callName:"context",refs:w,options:p,isTTY:ke(),defaultWD:he,callback:(F,B)=>F?I(F):$(B)})),transform:(p,$)=>new Promise((I,F)=>s.transform({callName:"transform",refs:w,input:p,options:$||{},isTTY:ke(),fs:Ht,callback:(B,N)=>B?F(B):I(N)})),formatMessages:(p,$)=>new Promise((I,F)=>s.formatMessages({callName:"formatMessages",refs:w,messages:p,options:$,callback:(B,N)=>B?F(B):I(N)})),analyzeMetafile:(p,$)=>new Promise((I,F)=>s.analyzeMetafile({callName:"analyzeMetafile",refs:w,metafile:typeof p=="string"?p:JSON.stringify(p),options:$,callback:(B,N)=>B?F(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:he,windowsHide:!0,input:n,maxBuffer:+Ne.ESBUILD_MAX_BUFFER||16*1024*1024});l(h),s(null)},pt=()=>We.join(Jt.tmpdir(),`esbuild-${qt.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:he,esbuildVersion:"0.27.3"},transferList:[r],execArgv:[]}),l=0,s=w=>{let p=new Error(`Build failed with 1 error:
65
- error: ${w}`),$=[{id:"",pluginName:"",text:w,location:null,notes:[],detail:void 0}];return p.errors=$,p.warnings=[],p},a=w=>{if(!w)return;let p=w.plugins;if(p&&p.length>0)throw s("Cannot use plugins in synchronous API calls")},h=(w,p)=>{for(let $ in p)w[$]=p[$]},o=(w,p)=>{let $=l++,I=new SharedArrayBuffer(8),F=new Int32Array(I),B={sharedBuffer:I,id:$,command:w,args:p};n.postMessage(B);let N=Atomics.wait(F,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,p){return o("transform",[w,p])},formatMessagesSync(w,p){return o("formatMessages",[w,p])},analyzeMetafileSync(w,p){return o("analyzeMetafile",[w,p])},stop(){n.terminate(),H=null}}},or=()=>{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=me();he=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(p){e.postMessage({id:a,reject:p,properties:r(p)})}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&&or();var sr=xe;return qe}export{yr as __require};
@@ -1,28 +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 declare function teardownNodeSubtree(node: Node | null, opts?: {
12
- strict?: boolean;
13
- }): void;
14
- export interface ListenerMapEntry {
15
- handler: EventListener;
16
- original: EventListener;
17
- options?: boolean | AddEventListenerOptions;
18
- isDelegated?: boolean;
19
- }
20
- export declare const elementListeners: WeakMap<Element, Map<string, ListenerMapEntry>>;
21
- export declare const elementReactivePropsCleanup: WeakMap<Element, Map<string, {
22
- cleanup: () => void;
23
- fnRef: () => unknown;
24
- }>>;
25
- export declare function removeElementReactiveProps(element: Element): void;
26
- export declare function removeElementListeners(element: Element): void;
27
- export declare function removeAllListeners(root: Element | null): void;
28
- //# sourceMappingURL=cleanup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cleanup.d.ts","sourceRoot":"","sources":["../../src/renderer/cleanup.ts"],"names":[],"mappings":"AAoGA;;;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;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,IAAI,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAC1B,IAAI,CAkBN;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,CAQ7D"}