@ecopages/radiant 0.3.0-alpha.2 → 0.3.0-alpha.20

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 (722) hide show
  1. package/README.md +71 -60
  2. package/client/app-bootstrap.d.ts +19 -0
  3. package/client/app-bootstrap.js +3 -0
  4. package/client/app-bootstrap.js.map +10 -0
  5. package/{dist/client → client}/hydrator.d.ts +1 -1
  6. package/client/hydrator.js +3 -0
  7. package/client/hydrator.js.map +11 -0
  8. package/client/install-hydrator.js +3 -0
  9. package/client/install-hydrator.js.map +12 -0
  10. package/{dist/context → context}/context-consumer-bootstrap.d.ts +7 -6
  11. package/context/context-consumer-bootstrap.js +3 -0
  12. package/context/context-consumer-bootstrap.js.map +14 -0
  13. package/context/context-consumer-runtime.d.ts +47 -0
  14. package/context/context-consumer-runtime.js +3 -0
  15. package/context/context-consumer-runtime.js.map +12 -0
  16. package/context/context-host.d.ts +25 -0
  17. package/context/context-host.js +3 -0
  18. package/context/context-host.js.map +10 -0
  19. package/{dist/context → context}/context-provider.d.ts +10 -6
  20. package/context/context-provider.js +3 -0
  21. package/context/context-provider.js.map +15 -0
  22. package/context/context-ssr-bridge.js +3 -0
  23. package/{dist/chunk-t8xtvgyg.js.map → context/context-ssr-bridge.js.map} +2 -2
  24. package/context/create-context.js +3 -0
  25. package/{dist/chunk-30x4hggg.js.map → context/create-context.js.map} +2 -2
  26. package/{dist/context → context}/decorators/consume-context.d.ts +5 -2
  27. package/context/decorators/consume-context.js +3 -0
  28. package/context/decorators/consume-context.js.map +19 -0
  29. package/context/decorators/context-selection-delivery.d.ts +1 -0
  30. package/context/decorators/context-selection-delivery.js +3 -0
  31. package/context/decorators/context-selection-delivery.js.map +11 -0
  32. package/{dist/context → context}/decorators/context-selector.d.ts +6 -6
  33. package/context/decorators/context-selector.js +3 -0
  34. package/context/decorators/context-selector.js.map +21 -0
  35. package/context/decorators/legacy/consume-context.d.ts +3 -0
  36. package/context/decorators/legacy/consume-context.js +3 -0
  37. package/context/decorators/legacy/consume-context.js.map +16 -0
  38. package/{dist/context → context}/decorators/legacy/context-selector-field.d.ts +2 -2
  39. package/context/decorators/legacy/context-selector-field.js +3 -0
  40. package/context/decorators/legacy/context-selector-field.js.map +17 -0
  41. package/{dist/context → context}/decorators/legacy/context-selector.d.ts +2 -2
  42. package/context/decorators/legacy/context-selector.js +3 -0
  43. package/context/decorators/legacy/context-selector.js.map +17 -0
  44. package/{dist/context → context}/decorators/legacy/provide-context.d.ts +2 -2
  45. package/context/decorators/legacy/provide-context.js +3 -0
  46. package/context/decorators/legacy/provide-context.js.map +17 -0
  47. package/{dist/context → context}/decorators/on-context-update.d.ts +5 -5
  48. package/context/decorators/on-context-update.js +3 -0
  49. package/context/decorators/on-context-update.js.map +20 -0
  50. package/{dist/context → context}/decorators/provide-context.d.ts +5 -2
  51. package/context/decorators/provide-context.js +3 -0
  52. package/context/decorators/provide-context.js.map +20 -0
  53. package/context/decorators/standard/consume-context.d.ts +3 -0
  54. package/context/decorators/standard/consume-context.js +3 -0
  55. package/context/decorators/standard/consume-context.js.map +15 -0
  56. package/{dist/context → context}/decorators/standard/context-selector-field.d.ts +2 -2
  57. package/context/decorators/standard/context-selector-field.js +3 -0
  58. package/context/decorators/standard/context-selector-field.js.map +16 -0
  59. package/{dist/context → context}/decorators/standard/context-selector.d.ts +2 -3
  60. package/context/decorators/standard/context-selector.js +3 -0
  61. package/context/decorators/standard/context-selector.js.map +16 -0
  62. package/{dist/context → context}/decorators/standard/provide-context.d.ts +2 -2
  63. package/context/decorators/standard/provide-context.js +3 -0
  64. package/context/decorators/standard/provide-context.js.map +16 -0
  65. package/{dist/context → context}/events.d.ts +18 -11
  66. package/context/events.js +3 -0
  67. package/context/events.js.map +10 -0
  68. package/context/hydration-script.js +3 -0
  69. package/context/hydration-script.js.map +12 -0
  70. package/context/index.d.ts +8 -0
  71. package/context/index.js +3 -0
  72. package/context/index.js.map +35 -0
  73. package/controller-registry.d.ts +38 -0
  74. package/controller-registry.js +3 -0
  75. package/controller-registry.js.map +11 -0
  76. package/core/controller-metadata.d.ts +3 -0
  77. package/core/controller-metadata.js +3 -0
  78. package/core/controller-metadata.js.map +10 -0
  79. package/core/custom-element-metadata.d.ts +14 -0
  80. package/core/custom-element-metadata.js +3 -0
  81. package/core/custom-element-metadata.js.map +10 -0
  82. package/{dist/core → core}/hydration-codec.d.ts +8 -1
  83. package/core/hydration-codec.js +3 -0
  84. package/core/hydration-codec.js.map +11 -0
  85. package/core/radiant-controller.d.ts +151 -0
  86. package/core/radiant-controller.js +3 -0
  87. package/core/radiant-controller.js.map +17 -0
  88. package/core/radiant-element-ssr-host.d.ts +23 -0
  89. package/core/radiant-element-ssr-host.js +3 -0
  90. package/core/radiant-element-ssr-host.js.map +10 -0
  91. package/core/radiant-element-ssr-registry.d.ts +45 -0
  92. package/core/radiant-element-ssr-registry.js +3 -0
  93. package/core/radiant-element-ssr-registry.js.map +10 -0
  94. package/{dist/core/radiant-component-ssr.d.ts → core/radiant-element-ssr-service.d.ts} +5 -6
  95. package/core/radiant-element-ssr-service.js +3 -0
  96. package/core/radiant-element-ssr-service.js.map +14 -0
  97. package/{dist/core → core}/radiant-element.d.ts +55 -123
  98. package/core/radiant-element.js +3 -0
  99. package/core/radiant-element.js.map +24 -0
  100. package/{dist/core → core}/radiant-hydrator-state.d.ts +1 -1
  101. package/core/radiant-hydrator-state.js +3 -0
  102. package/core/radiant-hydrator-state.js.map +10 -0
  103. package/core/reactive-host.d.ts +133 -0
  104. package/core/reactive-host.js +3 -0
  105. package/core/reactive-host.js.map +13 -0
  106. package/{dist/core → core}/reactive-jsx-value.d.ts +2 -1
  107. package/core/reactive-jsx-value.js +3 -0
  108. package/core/reactive-jsx-value.js.map +10 -0
  109. package/core/reactive-prop-core.d.ts +42 -0
  110. package/core/reactive-prop-core.js +3 -0
  111. package/core/reactive-prop-core.js.map +11 -0
  112. package/{dist/core → core}/reactive-prop-metadata.d.ts +1 -1
  113. package/core/reactive-prop-metadata.js +3 -0
  114. package/core/reactive-prop-metadata.js.map +10 -0
  115. package/core/reactivity-adapter.d.ts +8 -0
  116. package/core/reactivity-adapter.js +3 -0
  117. package/core/reactivity-adapter.js.map +12 -0
  118. package/core/reactivity-contract.d.ts +39 -0
  119. package/core/reactivity-contract.js +2 -0
  120. package/{dist/chunk-vgtggzb6.js.map → core/reactivity-contract.js.map} +1 -1
  121. package/core/reactivity-runtime.d.ts +18 -0
  122. package/core/reactivity-runtime.js +3 -0
  123. package/core/reactivity-runtime.js.map +11 -0
  124. package/core/reactivity-signals.d.ts +10 -0
  125. package/core/reactivity-signals.js +3 -0
  126. package/core/reactivity-signals.js.map +10 -0
  127. package/core/render-runtime.d.ts +28 -0
  128. package/core/render-runtime.js +3 -0
  129. package/core/render-runtime.js.map +16 -0
  130. package/core/slot-projection-runtime.js +3 -0
  131. package/core/slot-projection-runtime.js.map +12 -0
  132. package/core/ssr-preparation.js +3 -0
  133. package/core/ssr-preparation.js.map +10 -0
  134. package/decorators/attr.d.ts +6 -0
  135. package/decorators/attr.js +3 -0
  136. package/decorators/attr.js.map +17 -0
  137. package/decorators/bound.d.ts +7 -0
  138. package/decorators/bound.js +3 -0
  139. package/decorators/bound.js.map +13 -0
  140. package/decorators/bridge.d.ts +12 -0
  141. package/decorators/bridge.js +3 -0
  142. package/decorators/bridge.js.map +10 -0
  143. package/decorators/controller.d.ts +2 -0
  144. package/decorators/controller.js +3 -0
  145. package/decorators/controller.js.map +12 -0
  146. package/{dist/decorators → decorators}/custom-element.d.ts +4 -2
  147. package/decorators/custom-element.js +3 -0
  148. package/decorators/custom-element.js.map +13 -0
  149. package/decorators/debounce.d.ts +9 -0
  150. package/decorators/debounce.js +3 -0
  151. package/decorators/debounce.js.map +14 -0
  152. package/{dist/decorators → decorators}/event.d.ts +5 -2
  153. package/decorators/event.js +3 -0
  154. package/decorators/event.js.map +16 -0
  155. package/decorators/legacy/attr.d.ts +2 -0
  156. package/decorators/legacy/attr.js +3 -0
  157. package/decorators/legacy/attr.js.map +14 -0
  158. package/decorators/legacy/bound.js +3 -0
  159. package/decorators/legacy/bound.js.map +10 -0
  160. package/decorators/legacy/custom-element.js +3 -0
  161. package/decorators/legacy/custom-element.js.map +11 -0
  162. package/decorators/legacy/debounce.js +3 -0
  163. package/decorators/legacy/debounce.js.map +11 -0
  164. package/decorators/legacy/event.js +3 -0
  165. package/decorators/legacy/event.js.map +13 -0
  166. package/decorators/legacy/instance-initializers.d.ts +32 -0
  167. package/decorators/legacy/instance-initializers.js +3 -0
  168. package/decorators/legacy/instance-initializers.js.map +10 -0
  169. package/{dist/decorators → decorators}/legacy/on-event.d.ts +2 -2
  170. package/decorators/legacy/on-event.js +3 -0
  171. package/decorators/legacy/on-event.js.map +13 -0
  172. package/decorators/legacy/on-updated.d.ts +11 -0
  173. package/decorators/legacy/on-updated.js +3 -0
  174. package/decorators/legacy/on-updated.js.map +11 -0
  175. package/decorators/legacy/query-slot.d.ts +3 -0
  176. package/decorators/legacy/query-slot.js +3 -0
  177. package/decorators/legacy/query-slot.js.map +13 -0
  178. package/{dist/decorators → decorators}/legacy/query.d.ts +7 -2
  179. package/decorators/legacy/query.js +3 -0
  180. package/decorators/legacy/query.js.map +12 -0
  181. package/{dist/decorators → decorators}/legacy/reactive-field.d.ts +2 -2
  182. package/decorators/legacy/reactive-field.js +3 -0
  183. package/decorators/legacy/reactive-field.js.map +11 -0
  184. package/decorators/legacy/reactive-prop.d.ts +14 -0
  185. package/decorators/legacy/reactive-prop.js +3 -0
  186. package/decorators/legacy/reactive-prop.js.map +14 -0
  187. package/{dist/decorators → decorators}/legacy/signal.d.ts +4 -3
  188. package/decorators/legacy/signal.js +3 -0
  189. package/decorators/legacy/signal.js.map +15 -0
  190. package/{dist/decorators → decorators}/on-event.d.ts +6 -3
  191. package/decorators/on-event.js +3 -0
  192. package/decorators/on-event.js.map +16 -0
  193. package/decorators/on-updated.d.ts +15 -0
  194. package/decorators/on-updated.js +3 -0
  195. package/decorators/on-updated.js.map +14 -0
  196. package/decorators/prop.d.ts +26 -0
  197. package/decorators/prop.js +3 -0
  198. package/decorators/prop.js.map +17 -0
  199. package/decorators/query-slot.d.ts +17 -0
  200. package/decorators/query-slot.js +3 -0
  201. package/decorators/query-slot.js.map +16 -0
  202. package/{dist/decorators → decorators}/query.d.ts +9 -2
  203. package/decorators/query.js +3 -0
  204. package/decorators/query.js.map +15 -0
  205. package/decorators/shared/reactive-attr.d.ts +25 -0
  206. package/decorators/shared/reactive-attr.js +3 -0
  207. package/decorators/shared/reactive-attr.js.map +12 -0
  208. package/decorators/signal.d.ts +29 -0
  209. package/decorators/signal.js +3 -0
  210. package/decorators/signal.js.map +17 -0
  211. package/decorators/standard/attr.d.ts +2 -0
  212. package/decorators/standard/attr.js +3 -0
  213. package/decorators/standard/attr.js.map +13 -0
  214. package/decorators/standard/bound.js +3 -0
  215. package/{dist/chunk-rkh1vkb9.js.map → decorators/standard/bound.js.map} +2 -2
  216. package/decorators/standard/custom-element.js +3 -0
  217. package/decorators/standard/custom-element.js.map +11 -0
  218. package/decorators/standard/debounce.js +3 -0
  219. package/decorators/standard/debounce.js.map +11 -0
  220. package/decorators/standard/event.js +3 -0
  221. package/decorators/standard/event.js.map +12 -0
  222. package/{dist/decorators → decorators}/standard/on-event.d.ts +2 -1
  223. package/decorators/standard/on-event.js +3 -0
  224. package/decorators/standard/on-event.js.map +12 -0
  225. package/decorators/standard/on-updated.d.ts +6 -0
  226. package/decorators/standard/on-updated.js +3 -0
  227. package/decorators/standard/on-updated.js.map +10 -0
  228. package/{dist/decorators → decorators}/standard/query-slot.d.ts +1 -2
  229. package/decorators/standard/query-slot.js +3 -0
  230. package/decorators/standard/query-slot.js.map +11 -0
  231. package/decorators/standard/query.d.ts +3 -0
  232. package/decorators/standard/query.js +3 -0
  233. package/decorators/standard/query.js.map +11 -0
  234. package/decorators/standard/reactive-field.d.ts +2 -0
  235. package/decorators/standard/reactive-field.js +3 -0
  236. package/decorators/standard/reactive-field.js.map +10 -0
  237. package/decorators/standard/reactive-prop.d.ts +13 -0
  238. package/decorators/standard/reactive-prop.js +3 -0
  239. package/decorators/standard/reactive-prop.js.map +13 -0
  240. package/{dist/decorators → decorators}/standard/signal.d.ts +4 -3
  241. package/decorators/standard/signal.js +3 -0
  242. package/decorators/standard/signal.js.map +14 -0
  243. package/decorators/state.d.ts +12 -0
  244. package/decorators/state.js +3 -0
  245. package/decorators/state.js.map +14 -0
  246. package/{dist/helpers → helpers}/create-event-listener.d.ts +11 -2
  247. package/helpers/create-event-listener.js +3 -0
  248. package/helpers/create-event-listener.js.map +11 -0
  249. package/helpers/create-event.js +3 -0
  250. package/helpers/create-event.js.map +11 -0
  251. package/{dist/helpers → helpers}/create-query-slot.d.ts +2 -3
  252. package/helpers/create-query-slot.js +3 -0
  253. package/helpers/create-query-slot.js.map +10 -0
  254. package/{dist/helpers → helpers}/create-query.d.ts +14 -3
  255. package/helpers/create-query.js +3 -0
  256. package/helpers/create-query.js.map +10 -0
  257. package/helpers/debounce.js +3 -0
  258. package/{dist/chunk-wd23rn4q.js.map → helpers/debounce.js.map} +2 -2
  259. package/helpers/index.js +3 -0
  260. package/helpers/index.js.map +16 -0
  261. package/index.d.ts +16 -0
  262. package/index.js +3 -0
  263. package/index.js.map +77 -0
  264. package/package.json +114 -120
  265. package/server/context-ssr.js +3 -0
  266. package/{dist/chunk-ssnnxzrj.js.map → server/context-ssr.js.map} +4 -3
  267. package/server/html-parser.js +3 -0
  268. package/{dist/chunk-5b1en9vz.js.map → server/html-parser.js.map} +2 -2
  269. package/server/install-light-dom-shim.js +3 -0
  270. package/server/install-light-dom-shim.js.map +12 -0
  271. package/{dist/server → server}/light-dom-shim.d.ts +9 -0
  272. package/server/light-dom-shim.js +3 -0
  273. package/server/light-dom-shim.js.map +11 -0
  274. package/server/project-root.js +3 -0
  275. package/{dist/server → server}/project-root.js.map +2 -2
  276. package/server/radiant-element-ssr-bridge.d.ts +21 -0
  277. package/server/radiant-element-ssr-bridge.js +3 -0
  278. package/server/radiant-element-ssr-bridge.js.map +19 -0
  279. package/server/radiant-element-ssr-extractor.d.ts +3 -0
  280. package/server/radiant-element-ssr-extractor.js +3 -0
  281. package/server/radiant-element-ssr-extractor.js.map +12 -0
  282. package/server/radiant-element-ssr-runtime.d.ts +1 -0
  283. package/server/radiant-element-ssr-runtime.js +3 -0
  284. package/server/radiant-element-ssr-runtime.js.map +19 -0
  285. package/{dist/server → server}/render-component.d.ts +5 -15
  286. package/server/render-component.js +3 -0
  287. package/server/render-component.js.map +23 -0
  288. package/server/render-controller.d.ts +57 -0
  289. package/server/render-controller.js +3 -0
  290. package/server/render-controller.js.map +26 -0
  291. package/server/slot-projection-html.js +3 -0
  292. package/server/slot-projection-html.js.map +14 -0
  293. package/signals/host-resource.js +3 -0
  294. package/{dist/signals → signals}/host-resource.js.map +2 -2
  295. package/{dist/signals → signals}/host-signal.d.ts +4 -2
  296. package/signals/host-signal.js +3 -0
  297. package/signals/host-signal.js.map +13 -0
  298. package/signals/hydration-script.js +3 -0
  299. package/signals/hydration-script.js.map +12 -0
  300. package/tools/escape-css-identifier.d.ts +1 -0
  301. package/tools/escape-css-identifier.js +3 -0
  302. package/tools/escape-css-identifier.js.map +10 -0
  303. package/tools/escape-script-json.js +3 -0
  304. package/{dist/chunk-nssj2x13.js.map → tools/escape-script-json.js.map} +2 -2
  305. package/tools/event-emitter.js +3 -0
  306. package/{dist/chunk-wvd1ffe4.js.map → tools/event-emitter.js.map} +2 -2
  307. package/{dist/tools → tools}/index.d.ts +1 -1
  308. package/tools/index.js +3 -0
  309. package/tools/index.js.map +13 -0
  310. package/tools/render-jsx-template.js +3 -0
  311. package/{dist/chunk-jkb2y7c8.js.map → tools/render-jsx-template.js.map} +2 -2
  312. package/types.js +3 -0
  313. package/{dist/types.js.map → types.js.map} +2 -2
  314. package/utils/attribute-utils.js +3 -0
  315. package/{dist/chunk-66e6s792.js.map → utils/attribute-utils.js.map} +2 -2
  316. package/utils/index.js +3 -0
  317. package/utils/index.js.map +10 -0
  318. package/dist/chunk-0bswvy25.js +0 -4
  319. package/dist/chunk-0bswvy25.js.map +0 -10
  320. package/dist/chunk-0btkzzyc.js +0 -4
  321. package/dist/chunk-0btkzzyc.js.map +0 -10
  322. package/dist/chunk-0g0j9re6.js +0 -4
  323. package/dist/chunk-0g0j9re6.js.map +0 -10
  324. package/dist/chunk-1x26p09c.js +0 -4
  325. package/dist/chunk-1x26p09c.js.map +0 -10
  326. package/dist/chunk-21a7jask.js +0 -4
  327. package/dist/chunk-21a7jask.js.map +0 -10
  328. package/dist/chunk-25zjh0kg.js +0 -4
  329. package/dist/chunk-25zjh0kg.js.map +0 -10
  330. package/dist/chunk-30x4hggg.js +0 -4
  331. package/dist/chunk-3ryr5wx2.js +0 -4
  332. package/dist/chunk-3ryr5wx2.js.map +0 -10
  333. package/dist/chunk-3xxvmd5c.js +0 -4
  334. package/dist/chunk-3xxvmd5c.js.map +0 -10
  335. package/dist/chunk-3ynk7e1e.js +0 -4
  336. package/dist/chunk-3ynk7e1e.js.map +0 -10
  337. package/dist/chunk-4e559cy5.js +0 -4
  338. package/dist/chunk-4e559cy5.js.map +0 -10
  339. package/dist/chunk-5b1en9vz.js +0 -4
  340. package/dist/chunk-5bkat72n.js +0 -4
  341. package/dist/chunk-5bkat72n.js.map +0 -10
  342. package/dist/chunk-5qeaq3tj.js +0 -4
  343. package/dist/chunk-5qeaq3tj.js.map +0 -10
  344. package/dist/chunk-66e6s792.js +0 -4
  345. package/dist/chunk-79jg8q67.js +0 -4
  346. package/dist/chunk-79jg8q67.js.map +0 -10
  347. package/dist/chunk-8d5ddvvf.js +0 -4
  348. package/dist/chunk-8d5ddvvf.js.map +0 -10
  349. package/dist/chunk-8e9fgtbn.js +0 -4
  350. package/dist/chunk-8e9fgtbn.js.map +0 -10
  351. package/dist/chunk-9mqtp3js.js +0 -4
  352. package/dist/chunk-9mqtp3js.js.map +0 -10
  353. package/dist/chunk-9rj2rwes.js +0 -4
  354. package/dist/chunk-9rj2rwes.js.map +0 -10
  355. package/dist/chunk-atms6yrh.js +0 -4
  356. package/dist/chunk-atms6yrh.js.map +0 -10
  357. package/dist/chunk-bk2nbmcd.js +0 -4
  358. package/dist/chunk-bk2nbmcd.js.map +0 -10
  359. package/dist/chunk-bk6qkvfp.js +0 -4
  360. package/dist/chunk-bk6qkvfp.js.map +0 -10
  361. package/dist/chunk-c0qyz98c.js +0 -4
  362. package/dist/chunk-c0qyz98c.js.map +0 -10
  363. package/dist/chunk-c52qhh0j.js +0 -4
  364. package/dist/chunk-c52qhh0j.js.map +0 -10
  365. package/dist/chunk-cnyxrh9r.js +0 -4
  366. package/dist/chunk-cnyxrh9r.js.map +0 -10
  367. package/dist/chunk-cvz9mrxa.js +0 -4
  368. package/dist/chunk-cvz9mrxa.js.map +0 -10
  369. package/dist/chunk-dabagjk6.js +0 -4
  370. package/dist/chunk-dabagjk6.js.map +0 -10
  371. package/dist/chunk-e0r6ca2g.js +0 -4
  372. package/dist/chunk-e0r6ca2g.js.map +0 -10
  373. package/dist/chunk-eevw1j2q.js +0 -4
  374. package/dist/chunk-eevw1j2q.js.map +0 -10
  375. package/dist/chunk-ek664x1c.js +0 -4
  376. package/dist/chunk-ek664x1c.js.map +0 -10
  377. package/dist/chunk-eyw14d6y.js +0 -4
  378. package/dist/chunk-eyw14d6y.js.map +0 -10
  379. package/dist/chunk-fs4j94bk.js +0 -4
  380. package/dist/chunk-fs4j94bk.js.map +0 -10
  381. package/dist/chunk-g2z3mm6b.js +0 -4
  382. package/dist/chunk-g2z3mm6b.js.map +0 -10
  383. package/dist/chunk-g5n3m11h.js +0 -4
  384. package/dist/chunk-g5n3m11h.js.map +0 -10
  385. package/dist/chunk-gdkte2vd.js +0 -4
  386. package/dist/chunk-gdkte2vd.js.map +0 -10
  387. package/dist/chunk-gg74gdpv.js +0 -4
  388. package/dist/chunk-gg74gdpv.js.map +0 -10
  389. package/dist/chunk-h9k7crjc.js +0 -4
  390. package/dist/chunk-h9k7crjc.js.map +0 -10
  391. package/dist/chunk-hpzgnxgq.js +0 -4
  392. package/dist/chunk-hpzgnxgq.js.map +0 -10
  393. package/dist/chunk-hrjc8b1y.js +0 -4
  394. package/dist/chunk-hrjc8b1y.js.map +0 -10
  395. package/dist/chunk-hvy4zvcc.js +0 -4
  396. package/dist/chunk-hvy4zvcc.js.map +0 -10
  397. package/dist/chunk-hztr86b4.js +0 -4
  398. package/dist/chunk-hztr86b4.js.map +0 -10
  399. package/dist/chunk-j3v7rca5.js +0 -4
  400. package/dist/chunk-j3v7rca5.js.map +0 -10
  401. package/dist/chunk-j864sv4w.js +0 -4
  402. package/dist/chunk-j864sv4w.js.map +0 -10
  403. package/dist/chunk-jkb2y7c8.js +0 -4
  404. package/dist/chunk-kakpjgzf.js +0 -4
  405. package/dist/chunk-kakpjgzf.js.map +0 -10
  406. package/dist/chunk-kmebacvv.js +0 -4
  407. package/dist/chunk-kmebacvv.js.map +0 -10
  408. package/dist/chunk-knqsm6v3.js +0 -4
  409. package/dist/chunk-knqsm6v3.js.map +0 -10
  410. package/dist/chunk-mp2vtrkg.js +0 -4
  411. package/dist/chunk-mp2vtrkg.js.map +0 -10
  412. package/dist/chunk-mpsj3cjs.js +0 -4
  413. package/dist/chunk-mpsj3cjs.js.map +0 -10
  414. package/dist/chunk-n4p2542b.js +0 -4
  415. package/dist/chunk-n4p2542b.js.map +0 -10
  416. package/dist/chunk-nctznxyz.js +0 -4
  417. package/dist/chunk-nctznxyz.js.map +0 -10
  418. package/dist/chunk-ndw3hc3v.js +0 -4
  419. package/dist/chunk-ndw3hc3v.js.map +0 -10
  420. package/dist/chunk-nnnb6pac.js +0 -4
  421. package/dist/chunk-nnnb6pac.js.map +0 -10
  422. package/dist/chunk-nssj2x13.js +0 -4
  423. package/dist/chunk-nvr37vma.js +0 -4
  424. package/dist/chunk-nvr37vma.js.map +0 -10
  425. package/dist/chunk-p8k4g99a.js +0 -4
  426. package/dist/chunk-p8k4g99a.js.map +0 -10
  427. package/dist/chunk-pkszgjqf.js +0 -4
  428. package/dist/chunk-pkszgjqf.js.map +0 -10
  429. package/dist/chunk-q9z6tnzw.js +0 -4
  430. package/dist/chunk-q9z6tnzw.js.map +0 -10
  431. package/dist/chunk-qdz5sncz.js +0 -4
  432. package/dist/chunk-qdz5sncz.js.map +0 -10
  433. package/dist/chunk-qe0eww1n.js +0 -4
  434. package/dist/chunk-qe0eww1n.js.map +0 -10
  435. package/dist/chunk-r33zvvda.js +0 -4
  436. package/dist/chunk-r33zvvda.js.map +0 -10
  437. package/dist/chunk-rkh1vkb9.js +0 -4
  438. package/dist/chunk-rrg759ht.js +0 -4
  439. package/dist/chunk-rrg759ht.js.map +0 -10
  440. package/dist/chunk-s09s5ayx.js +0 -4
  441. package/dist/chunk-s09s5ayx.js.map +0 -10
  442. package/dist/chunk-s5p5z3z4.js +0 -4
  443. package/dist/chunk-s5p5z3z4.js.map +0 -10
  444. package/dist/chunk-sf4a2gy5.js +0 -4
  445. package/dist/chunk-sf4a2gy5.js.map +0 -10
  446. package/dist/chunk-ssnnxzrj.js +0 -4
  447. package/dist/chunk-t8xtvgyg.js +0 -4
  448. package/dist/chunk-v3ta7hnv.js +0 -4
  449. package/dist/chunk-v3ta7hnv.js.map +0 -10
  450. package/dist/chunk-v92hp9g0.js +0 -4
  451. package/dist/chunk-v92hp9g0.js.map +0 -10
  452. package/dist/chunk-vgtggzb6.js +0 -4
  453. package/dist/chunk-vk48hgm4.js +0 -4
  454. package/dist/chunk-vk48hgm4.js.map +0 -10
  455. package/dist/chunk-w8s5fnsq.js +0 -4
  456. package/dist/chunk-w8s5fnsq.js.map +0 -10
  457. package/dist/chunk-wd23rn4q.js +0 -4
  458. package/dist/chunk-wds4href.js +0 -4
  459. package/dist/chunk-wds4href.js.map +0 -10
  460. package/dist/chunk-wvd1ffe4.js +0 -4
  461. package/dist/chunk-wwbjz9k4.js +0 -4
  462. package/dist/chunk-wwbjz9k4.js.map +0 -10
  463. package/dist/chunk-x2k0ngpz.js +0 -4
  464. package/dist/chunk-x2k0ngpz.js.map +0 -10
  465. package/dist/chunk-x457d0ap.js +0 -4
  466. package/dist/chunk-x457d0ap.js.map +0 -10
  467. package/dist/chunk-xbhtzkre.js +0 -4
  468. package/dist/chunk-xbhtzkre.js.map +0 -10
  469. package/dist/chunk-y139ycfm.js +0 -4
  470. package/dist/chunk-y139ycfm.js.map +0 -10
  471. package/dist/chunk-z9kxfckm.js +0 -4
  472. package/dist/chunk-z9kxfckm.js.map +0 -10
  473. package/dist/chunk-zx5txex8.js +0 -4
  474. package/dist/chunk-zx5txex8.js.map +0 -10
  475. package/dist/client/hydrator.js +0 -3
  476. package/dist/client/hydrator.js.map +0 -9
  477. package/dist/client/install-hydrator.js +0 -3
  478. package/dist/client/install-hydrator.js.map +0 -10
  479. package/dist/context/context-consumer-bootstrap.js +0 -3
  480. package/dist/context/context-consumer-bootstrap.js.map +0 -9
  481. package/dist/context/context-consumer-runtime.d.ts +0 -34
  482. package/dist/context/context-consumer-runtime.js +0 -3
  483. package/dist/context/context-consumer-runtime.js.map +0 -9
  484. package/dist/context/context-provider.js +0 -3
  485. package/dist/context/context-provider.js.map +0 -9
  486. package/dist/context/context-ssr-bridge.js +0 -3
  487. package/dist/context/context-ssr-bridge.js.map +0 -9
  488. package/dist/context/create-context.js +0 -3
  489. package/dist/context/create-context.js.map +0 -9
  490. package/dist/context/decorators/consume-context.js +0 -3
  491. package/dist/context/decorators/consume-context.js.map +0 -9
  492. package/dist/context/decorators/context-selection-delivery.d.ts +0 -1
  493. package/dist/context/decorators/context-selection-delivery.js +0 -3
  494. package/dist/context/decorators/context-selection-delivery.js.map +0 -9
  495. package/dist/context/decorators/context-selector.js +0 -3
  496. package/dist/context/decorators/context-selector.js.map +0 -9
  497. package/dist/context/decorators/legacy/consume-context.d.ts +0 -3
  498. package/dist/context/decorators/legacy/consume-context.js +0 -3
  499. package/dist/context/decorators/legacy/consume-context.js.map +0 -9
  500. package/dist/context/decorators/legacy/context-selector-field.js +0 -3
  501. package/dist/context/decorators/legacy/context-selector-field.js.map +0 -9
  502. package/dist/context/decorators/legacy/context-selector.js +0 -3
  503. package/dist/context/decorators/legacy/context-selector.js.map +0 -9
  504. package/dist/context/decorators/legacy/provide-context.js +0 -3
  505. package/dist/context/decorators/legacy/provide-context.js.map +0 -9
  506. package/dist/context/decorators/on-context-update.js +0 -3
  507. package/dist/context/decorators/on-context-update.js.map +0 -9
  508. package/dist/context/decorators/provide-context.js +0 -3
  509. package/dist/context/decorators/provide-context.js.map +0 -9
  510. package/dist/context/decorators/standard/consume-context.d.ts +0 -3
  511. package/dist/context/decorators/standard/consume-context.js +0 -3
  512. package/dist/context/decorators/standard/consume-context.js.map +0 -9
  513. package/dist/context/decorators/standard/context-selector-field.js +0 -3
  514. package/dist/context/decorators/standard/context-selector-field.js.map +0 -9
  515. package/dist/context/decorators/standard/context-selector.js +0 -3
  516. package/dist/context/decorators/standard/context-selector.js.map +0 -9
  517. package/dist/context/decorators/standard/provide-context.js +0 -3
  518. package/dist/context/decorators/standard/provide-context.js.map +0 -9
  519. package/dist/context/events.js +0 -3
  520. package/dist/context/events.js.map +0 -9
  521. package/dist/context/hydration-script.js +0 -3
  522. package/dist/context/hydration-script.js.map +0 -9
  523. package/dist/core/custom-element-metadata.d.ts +0 -3
  524. package/dist/core/custom-element-metadata.js +0 -3
  525. package/dist/core/custom-element-metadata.js.map +0 -9
  526. package/dist/core/hydration-codec.js +0 -3
  527. package/dist/core/hydration-codec.js.map +0 -9
  528. package/dist/core/radiant-component-ssr-registry.d.ts +0 -54
  529. package/dist/core/radiant-component-ssr-registry.js +0 -3
  530. package/dist/core/radiant-component-ssr-registry.js.map +0 -9
  531. package/dist/core/radiant-component-ssr.js +0 -3
  532. package/dist/core/radiant-component-ssr.js.map +0 -9
  533. package/dist/core/radiant-component.d.ts +0 -113
  534. package/dist/core/radiant-component.js +0 -3
  535. package/dist/core/radiant-component.js.map +0 -9
  536. package/dist/core/radiant-element.js +0 -3
  537. package/dist/core/radiant-element.js.map +0 -9
  538. package/dist/core/radiant-hydrator-state.js +0 -3
  539. package/dist/core/radiant-hydrator-state.js.map +0 -9
  540. package/dist/core/reactive-jsx-value.js +0 -3
  541. package/dist/core/reactive-jsx-value.js.map +0 -9
  542. package/dist/core/reactive-prop-metadata.js +0 -3
  543. package/dist/core/reactive-prop-metadata.js.map +0 -9
  544. package/dist/core/slot-projection-runtime.js +0 -3
  545. package/dist/core/slot-projection-runtime.js.map +0 -9
  546. package/dist/core/ssr-preparation.js +0 -3
  547. package/dist/core/ssr-preparation.js.map +0 -9
  548. package/dist/decorators/bound.d.ts +0 -5
  549. package/dist/decorators/bound.js +0 -3
  550. package/dist/decorators/bound.js.map +0 -9
  551. package/dist/decorators/bridge.d.ts +0 -8
  552. package/dist/decorators/bridge.js +0 -3
  553. package/dist/decorators/bridge.js.map +0 -9
  554. package/dist/decorators/custom-element.js +0 -3
  555. package/dist/decorators/custom-element.js.map +0 -9
  556. package/dist/decorators/debounce.d.ts +0 -6
  557. package/dist/decorators/debounce.js +0 -3
  558. package/dist/decorators/debounce.js.map +0 -9
  559. package/dist/decorators/event.js +0 -3
  560. package/dist/decorators/event.js.map +0 -9
  561. package/dist/decorators/legacy/bound.js +0 -3
  562. package/dist/decorators/legacy/bound.js.map +0 -9
  563. package/dist/decorators/legacy/custom-element.js +0 -3
  564. package/dist/decorators/legacy/custom-element.js.map +0 -9
  565. package/dist/decorators/legacy/debounce.js +0 -3
  566. package/dist/decorators/legacy/debounce.js.map +0 -9
  567. package/dist/decorators/legacy/event.js +0 -3
  568. package/dist/decorators/legacy/event.js.map +0 -9
  569. package/dist/decorators/legacy/instance-initializers.d.ts +0 -17
  570. package/dist/decorators/legacy/instance-initializers.js +0 -3
  571. package/dist/decorators/legacy/instance-initializers.js.map +0 -9
  572. package/dist/decorators/legacy/on-event.js +0 -3
  573. package/dist/decorators/legacy/on-event.js.map +0 -9
  574. package/dist/decorators/legacy/on-updated.d.ts +0 -6
  575. package/dist/decorators/legacy/on-updated.js +0 -3
  576. package/dist/decorators/legacy/on-updated.js.map +0 -9
  577. package/dist/decorators/legacy/query-slot.d.ts +0 -3
  578. package/dist/decorators/legacy/query-slot.js +0 -3
  579. package/dist/decorators/legacy/query-slot.js.map +0 -9
  580. package/dist/decorators/legacy/query.js +0 -3
  581. package/dist/decorators/legacy/query.js.map +0 -9
  582. package/dist/decorators/legacy/reactive-field.js +0 -3
  583. package/dist/decorators/legacy/reactive-field.js.map +0 -9
  584. package/dist/decorators/legacy/reactive-prop.d.ts +0 -20
  585. package/dist/decorators/legacy/reactive-prop.js +0 -3
  586. package/dist/decorators/legacy/reactive-prop.js.map +0 -9
  587. package/dist/decorators/legacy/signal.js +0 -3
  588. package/dist/decorators/legacy/signal.js.map +0 -9
  589. package/dist/decorators/on-event.js +0 -3
  590. package/dist/decorators/on-event.js.map +0 -9
  591. package/dist/decorators/on-updated.d.ts +0 -5
  592. package/dist/decorators/on-updated.js +0 -3
  593. package/dist/decorators/on-updated.js.map +0 -9
  594. package/dist/decorators/prop.d.ts +0 -14
  595. package/dist/decorators/prop.js +0 -3
  596. package/dist/decorators/prop.js.map +0 -9
  597. package/dist/decorators/query-slot.d.ts +0 -13
  598. package/dist/decorators/query-slot.js +0 -3
  599. package/dist/decorators/query-slot.js.map +0 -9
  600. package/dist/decorators/query.js +0 -3
  601. package/dist/decorators/query.js.map +0 -9
  602. package/dist/decorators/signal.d.ts +0 -23
  603. package/dist/decorators/signal.js +0 -3
  604. package/dist/decorators/signal.js.map +0 -9
  605. package/dist/decorators/standard/bound.js +0 -3
  606. package/dist/decorators/standard/bound.js.map +0 -9
  607. package/dist/decorators/standard/custom-element.js +0 -3
  608. package/dist/decorators/standard/custom-element.js.map +0 -9
  609. package/dist/decorators/standard/debounce.js +0 -3
  610. package/dist/decorators/standard/debounce.js.map +0 -9
  611. package/dist/decorators/standard/event.js +0 -3
  612. package/dist/decorators/standard/event.js.map +0 -9
  613. package/dist/decorators/standard/on-event.js +0 -3
  614. package/dist/decorators/standard/on-event.js.map +0 -9
  615. package/dist/decorators/standard/on-updated.d.ts +0 -2
  616. package/dist/decorators/standard/on-updated.js +0 -3
  617. package/dist/decorators/standard/on-updated.js.map +0 -9
  618. package/dist/decorators/standard/query-slot.js +0 -3
  619. package/dist/decorators/standard/query-slot.js.map +0 -9
  620. package/dist/decorators/standard/query.d.ts +0 -2
  621. package/dist/decorators/standard/query.js +0 -3
  622. package/dist/decorators/standard/query.js.map +0 -9
  623. package/dist/decorators/standard/reactive-field.d.ts +0 -2
  624. package/dist/decorators/standard/reactive-field.js +0 -3
  625. package/dist/decorators/standard/reactive-field.js.map +0 -9
  626. package/dist/decorators/standard/reactive-prop.d.ts +0 -2
  627. package/dist/decorators/standard/reactive-prop.js +0 -3
  628. package/dist/decorators/standard/reactive-prop.js.map +0 -9
  629. package/dist/decorators/standard/signal.js +0 -3
  630. package/dist/decorators/standard/signal.js.map +0 -9
  631. package/dist/decorators/state.d.ts +0 -11
  632. package/dist/decorators/state.js +0 -3
  633. package/dist/decorators/state.js.map +0 -9
  634. package/dist/helpers/create-event-listener.js +0 -3
  635. package/dist/helpers/create-event-listener.js.map +0 -9
  636. package/dist/helpers/create-event.js +0 -3
  637. package/dist/helpers/create-event.js.map +0 -9
  638. package/dist/helpers/create-query-slot.js +0 -3
  639. package/dist/helpers/create-query-slot.js.map +0 -9
  640. package/dist/helpers/create-query.js +0 -3
  641. package/dist/helpers/create-query.js.map +0 -9
  642. package/dist/helpers/debounce.js +0 -3
  643. package/dist/helpers/debounce.js.map +0 -9
  644. package/dist/helpers/index.js +0 -3
  645. package/dist/helpers/index.js.map +0 -9
  646. package/dist/index.d.ts +0 -25
  647. package/dist/index.js +0 -3
  648. package/dist/index.js.map +0 -9
  649. package/dist/server/context-ssr.js +0 -3
  650. package/dist/server/context-ssr.js.map +0 -9
  651. package/dist/server/html-parser.js +0 -3
  652. package/dist/server/html-parser.js.map +0 -9
  653. package/dist/server/install-light-dom-shim.js +0 -3
  654. package/dist/server/install-light-dom-shim.js.map +0 -10
  655. package/dist/server/light-dom-shim.js +0 -3
  656. package/dist/server/light-dom-shim.js.map +0 -9
  657. package/dist/server/project-root.js +0 -3
  658. package/dist/server/radiant-component-ssr-runtime.d.ts +0 -9
  659. package/dist/server/radiant-component-ssr-runtime.js +0 -3
  660. package/dist/server/radiant-component-ssr-runtime.js.map +0 -9
  661. package/dist/server/render-component.js +0 -3
  662. package/dist/server/render-component.js.map +0 -10
  663. package/dist/server/slot-projection-html.js +0 -3
  664. package/dist/server/slot-projection-html.js.map +0 -10
  665. package/dist/signals/host-resource.js +0 -3
  666. package/dist/signals/host-signal.js +0 -3
  667. package/dist/signals/host-signal.js.map +0 -9
  668. package/dist/signals/hydration-script.js +0 -3
  669. package/dist/signals/hydration-script.js.map +0 -9
  670. package/dist/tools/escape-script-json.js +0 -3
  671. package/dist/tools/escape-script-json.js.map +0 -9
  672. package/dist/tools/event-emitter.js +0 -3
  673. package/dist/tools/event-emitter.js.map +0 -9
  674. package/dist/tools/index.js +0 -3
  675. package/dist/tools/index.js.map +0 -9
  676. package/dist/tools/render-jsx-template.js +0 -3
  677. package/dist/tools/render-jsx-template.js.map +0 -9
  678. package/dist/tools/stringify-typed.d.ts +0 -16
  679. package/dist/tools/stringify-typed.js +0 -3
  680. package/dist/tools/stringify-typed.js.map +0 -9
  681. package/dist/types.js +0 -3
  682. package/dist/utils/attribute-utils.js +0 -3
  683. package/dist/utils/attribute-utils.js.map +0 -9
  684. package/dist/utils/index.js +0 -3
  685. package/dist/utils/index.js.map +0 -9
  686. package/size-budget.json +0 -16
  687. /package/{dist/client → client}/install-hydrator.d.ts +0 -0
  688. /package/{dist/context → context}/context-ssr-bridge.d.ts +0 -0
  689. /package/{dist/context → context}/create-context.d.ts +0 -0
  690. /package/{dist/context → context}/hydration-script.d.ts +0 -0
  691. /package/{dist/context → context}/types.d.ts +0 -0
  692. /package/{dist/context → context}/types.js +0 -0
  693. /package/{dist/context → context}/types.js.map +0 -0
  694. /package/{dist/core → core}/slot-projection-runtime.d.ts +0 -0
  695. /package/{dist/core → core}/ssr-hydration-binding.d.ts +0 -0
  696. /package/{dist/core → core}/ssr-hydration-binding.js +0 -0
  697. /package/{dist/core → core}/ssr-hydration-binding.js.map +0 -0
  698. /package/{dist/core → core}/ssr-preparation.d.ts +0 -0
  699. /package/{dist/decorators → decorators}/legacy/bound.d.ts +0 -0
  700. /package/{dist/decorators → decorators}/legacy/custom-element.d.ts +0 -0
  701. /package/{dist/decorators → decorators}/legacy/debounce.d.ts +0 -0
  702. /package/{dist/decorators → decorators}/legacy/event.d.ts +0 -0
  703. /package/{dist/decorators → decorators}/standard/bound.d.ts +0 -0
  704. /package/{dist/decorators → decorators}/standard/custom-element.d.ts +0 -0
  705. /package/{dist/decorators → decorators}/standard/debounce.d.ts +0 -0
  706. /package/{dist/decorators → decorators}/standard/event.d.ts +0 -0
  707. /package/{dist/helpers → helpers}/create-event.d.ts +0 -0
  708. /package/{dist/helpers → helpers}/debounce.d.ts +0 -0
  709. /package/{dist/helpers → helpers}/index.d.ts +0 -0
  710. /package/{dist/server → server}/context-ssr.d.ts +0 -0
  711. /package/{dist/server → server}/html-parser.d.ts +0 -0
  712. /package/{dist/server → server}/install-light-dom-shim.d.ts +0 -0
  713. /package/{dist/server → server}/project-root.d.ts +0 -0
  714. /package/{dist/server → server}/slot-projection-html.d.ts +0 -0
  715. /package/{dist/signals → signals}/host-resource.d.ts +0 -0
  716. /package/{dist/signals → signals}/hydration-script.d.ts +0 -0
  717. /package/{dist/tools → tools}/escape-script-json.d.ts +0 -0
  718. /package/{dist/tools → tools}/event-emitter.d.ts +0 -0
  719. /package/{dist/tools → tools}/render-jsx-template.d.ts +0 -0
  720. /package/{dist/types.d.ts → types.d.ts} +0 -0
  721. /package/{dist/utils → utils}/attribute-utils.d.ts +0 -0
  722. /package/{dist/utils → utils}/index.d.ts +0 -0
@@ -1,4 +0,0 @@
1
- var a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function x(e){let o=[],n=0;while(n<e.length){let t=n;if(e.startsWith("<!--",n)){let r=e.indexOf("-->",n+4);n=r===-1?e.length:r+3,o.push(e.slice(t,n));continue}if(e[n]!=="<"){let r=e.indexOf("<",n);n=r===-1?e.length:r,o.push(e.slice(t,n));continue}let i=u(e,n);if(!i){o.push(e.slice(t));break}if(i.type!=="open"||i.selfClosing||a.has(i.tagName)){n=i.end,o.push(e.slice(t,n));continue}n=i.end;let c=1;while(n<e.length&&c>0){let r=e.indexOf("<",n);if(r===-1){n=e.length;break}let s=u(e,r);if(!s){n=e.length;break}if(n=s.end,s.type==="comment"||s.type==="declaration")continue;if(s.type==="open"&&!s.selfClosing&&!a.has(s.tagName)){c+=1;continue}if(s.type==="close")c-=1}o.push(e.slice(t,n))}return o.filter((t)=>t!=="")}function l(e,o){let n;for(let t=o+1;t<e.length;t+=1){let i=e[t];if(n){if(i===n)n=void 0;continue}if(i==='"'||i==="'"){n=i;continue}if(i===">")return t+1}return e.length}function p(e){let o={},n=/([:^@A-Za-z0-9_.-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>/]+)))?/g;for(let t of e.matchAll(n)){let[,i,c,r,s]=t;if(!i)continue;o[i]=c??r??s??""}return o}function u(e,o){if(e.startsWith("<!--",o)){let g=e.indexOf("-->",o+4);return{end:g===-1?e.length:g+3,type:"comment"}}let n=l(e,o),t=e.slice(o+1,n-1).trim();if(t==="")return;if(t.startsWith("!")||t.startsWith("?"))return{end:n,type:"declaration"};if(t.startsWith("/"))return{end:n,type:"close"};let i=/\/\s*$/.test(t),c=i?t.replace(/\/\s*$/,"").trim():t,r=c.split(/[\s/>]/,1)[0]?.toLowerCase()??"",s=r.length,f=c.slice(s).trim(),d=i||a.has(r)?"":b(e,o,n,r);return{attributes:p(f),end:n,innerHtml:d,selfClosing:i,tagName:r,type:"open"}}function b(e,o,n,t){let i=n,c=1;while(i<e.length&&c>0){let r=e.indexOf("<",i);if(r===-1)return e.slice(n);let s=u(e,r);if(!s)return e.slice(n);if(s.type==="open"&&s.tagName===t&&!s.selfClosing&&!a.has(t))c+=1;if(s.type==="close"){if(e.slice(r+2,s.end-1).trim().toLowerCase()===t){if(c-=1,c===0)return e.slice(n,r)}}i=s.end}return e.slice(n)}
2
- export{a as n,x as o,l as p,p as q,u as r,b as s};
3
-
4
- //# debugId=E71CC61E756A708564756E2164756E21
@@ -1,4 +0,0 @@
1
- import{xa as r}from"./chunk-eyw14d6y.js";function s(a,u,p){let n=!1,o,e=a;return(t)=>{if(e[r]!==!0&&n&&Object.is(o,t))return;if(n=!0,o=t,u(t),p&&typeof e.requestUpdate==="function")e.requestUpdate()}}
2
- export{s as G};
3
-
4
- //# debugId=303FD5A078DE1F1664756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/context/decorators/context-selection-delivery.ts"],
4
- "sourcesContent": [
5
- "import { SSR_PREPARATION_RUNNING } from '../../core/ssr-preparation';\n\ntype RequestUpdateCapable = {\n\trequestUpdate(): void;\n};\n\nexport function createContextSelectionDelivery(host: object, apply: (value: unknown) => void, requestUpdate: boolean) {\n\tlet hasDeliveredValue = false;\n\tlet previousValue: unknown;\n\tconst target = host as Record<PropertyKey, unknown>;\n\n\treturn (value: unknown) => {\n\t\tif (target[SSR_PREPARATION_RUNNING] !== true && hasDeliveredValue && Object.is(previousValue, value)) {\n\t\t\treturn;\n\t\t}\n\n\t\thasDeliveredValue = true;\n\t\tpreviousValue = value;\n\t\tapply(value);\n\n\t\tif (requestUpdate && typeof target.requestUpdate === 'function') {\n\t\t\t(target as RequestUpdateCapable).requestUpdate();\n\t\t}\n\t};\n}\n"
6
- ],
7
- "mappings": "yCAMO,SAAS,CAA8B,CAAC,EAAc,EAAiC,EAAwB,CACrH,IAAI,EAAoB,GACpB,EACE,EAAS,EAEf,MAAO,CAAC,IAAmB,CAC1B,GAAI,EAAO,KAA6B,IAAQ,GAAqB,OAAO,GAAG,EAAe,CAAK,EAClG,OAOD,GAJA,EAAoB,GACpB,EAAgB,EAChB,EAAM,CAAK,EAEP,GAAiB,OAAO,EAAO,gBAAkB,WACnD,EAAgC,cAAc",
8
- "debugId": "303FD5A078DE1F1664756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{R as i}from"./chunk-21a7jask.js";function m({context:e,initialValue:r,hydrate:d,serialize:a}){return(s,n)=>{let t=String(n.name);n.addInitializer(function(){let o=new i(this,{context:e,hydrationKey:t,initialValue:r,hydrate:d,serialize:a});this[t]=o,this.registerContextProvider(t,o),this.connectedContextCallback(e)})}}
2
- export{m as y};
3
-
4
- //# debugId=C88335ADB4F5189264756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/context/decorators/standard/provide-context.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../../core/radiant-element';\nimport { ContextProvider } from '../../context-provider';\nimport type { UnknownContext } from '../../types';\nimport type { ProvideContextOptions } from '../provide-context';\n\nexport function provideContext<T extends UnknownContext>({\n\tcontext,\n\tinitialValue,\n\thydrate,\n\tserialize,\n}: ProvideContextOptions<T>) {\n\treturn <C extends RadiantElement, V>(_: undefined, targetContext: ClassFieldDecoratorContext<C, V>) => {\n\t\tconst contextName = String(targetContext.name);\n\t\ttargetContext.addInitializer(function (this: C) {\n\t\t\tconst provider = new ContextProvider<T>(this, {\n\t\t\t\tcontext,\n\t\t\t\thydrationKey: contextName,\n\t\t\t\tinitialValue,\n\t\t\t\thydrate,\n\t\t\t\tserialize,\n\t\t\t});\n\t\t\t(this as any)[contextName] = provider;\n\t\t\tthis.registerContextProvider(contextName, provider);\n\t\t\tthis.connectedContextCallback(context);\n\t\t});\n\t};\n}\n"
6
- ],
7
- "mappings": "wCAKO,SAAS,CAAwC,EACvD,UACA,eACA,UACA,aAC4B,CAC5B,MAAO,CAA8B,EAAc,IAAoD,CACtG,IAAM,EAAc,OAAO,EAAc,IAAI,EAC7C,EAAc,eAAe,QAAS,EAAU,CAC/C,IAAM,EAAW,IAAI,EAAmB,KAAM,CAC7C,UACA,aAAc,EACd,eACA,UACA,WACD,CAAC,EACA,KAAa,GAAe,EAC7B,KAAK,wBAAwB,EAAa,CAAQ,EAClD,KAAK,yBAAyB,CAAO,EACrC",
8
- "debugId": "C88335ADB4F5189264756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- function P(q){switch(q){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function R(q){switch(typeof q){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(q))return"array";if(Object.prototype.toString.call(q)==="[object Object]")return"object"}function U(q){switch(q){case Number:return 0;case String:return"";case Boolean:return!1;default:return null}}function W(q){try{return JSON.parse(q)}catch{throw TypeError("Invalid JSON string")}}var X={array(q){let x=W(q);if(!Array.isArray(x))throw TypeError(`Expected an array but got a value of type "${typeof x}"`);return x},boolean(q){return!(q==="0"||String(q).toLowerCase()==="false")},number(q){return Number(q.replace(/_/g,""))},object(q){let x=JSON.parse(q);if(x===null||typeof x!=="object"||Array.isArray(x))throw TypeError(`expected value of type "object" but instead got value "${q}" of type "${R(x)}"`);return x},string(q){return q}},I={default:Q,array:L,object:L};function L(q){return JSON.stringify(q)}function Q(q){return`${q}`}function M(q,x){let z=P(x);if(!z)throw TypeError(`[radiant-element] Unknown type "${x}"`);return X[z](q)}function B(q,x){let z=P(x);if(!z)throw TypeError(`[radiant-element] Unknown type "${x}"`);return(I[z]??I.default??Q)(q)}function Y(q){return typeof q==="boolean"}function Z(q){return typeof q==="number"}function _(q){return typeof q==="string"}function $(q){return Array.isArray(q)}function k(q){return typeof q==="object"&&!Array.isArray(q)&&q!==null}function D(q,x){switch(q){case Boolean:return Y(x);case Number:return Z(x);case String:return _(x);case Array:return $(x);case Object:return k(x);default:return!1}}var F=(q,x,z,E)=>{if(x===Boolean){let G=q.getAttribute(z);if(G===null)return E;return G===""?!0:M(G,x)}let H=q.getAttribute(z);return H!==null?M(H,x):E??U(x)};
2
- export{P as ab,R as bb,U as cb,M as db,B as eb,D as fb,F as gb};
3
-
4
- //# debugId=4A3079E514112AAA64756E2164756E21
@@ -1,4 +0,0 @@
1
- function o(a,t){let n=Symbol(`__${String(t.name)}__value`),i=String(t.name);return t.addInitializer(function(){this.defineReactiveBinding(i,this.shouldAutoBindReactiveMembers?.()??!1),this.registerReactiveDependencyReader(i,()=>this[n]),Object.defineProperty(this,t.name,{get(){return this.trackReactiveRead(i),this[n]},set(e){let r=this[n];if(r!==e)this[n]=e,this.notifyUpdate(i,r,e)},enumerable:!0,configurable:!0})}),function(e){return this[n]=e,e}}
2
- export{o as La};
3
-
4
- //# debugId=220A061FA1CAD20D64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/standard/reactive-field.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\n\nexport function reactiveField<T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) {\n\tconst privatePropertyKey = Symbol(`__${String(context.name)}__value`);\n\n\tconst contextName = String(context.name);\n\n\tcontext.addInitializer(function (this: T) {\n\t\tthis.defineReactiveBinding(contextName, this.shouldAutoBindReactiveMembers?.() ?? false);\n\t\tthis.registerReactiveDependencyReader(\n\t\t\tcontextName,\n\t\t\t() => (this as unknown as Record<PropertyKey, unknown>)[privatePropertyKey],\n\t\t);\n\n\t\tObject.defineProperty(this, context.name, {\n\t\t\tget() {\n\t\t\t\t(this as RadiantElement).trackReactiveRead(contextName);\n\t\t\t\treturn (this as unknown as Record<PropertyKey, unknown>)[privatePropertyKey];\n\t\t\t},\n\t\t\tset(newValue: unknown) {\n\t\t\t\tconst oldValue = (this as unknown as Record<PropertyKey, unknown>)[privatePropertyKey];\n\t\t\t\tif (oldValue !== newValue) {\n\t\t\t\t\t(this as unknown as Record<PropertyKey, unknown>)[privatePropertyKey] = newValue;\n\t\t\t\t\t(this as RadiantElement).notifyUpdate(contextName, oldValue, newValue);\n\t\t\t\t}\n\t\t\t},\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t});\n\t});\n\n\treturn function (this: T, value: V) {\n\t\t(this as any)[privatePropertyKey] = value;\n\t\treturn value;\n\t};\n}\n"
6
- ],
7
- "mappings": "AAEO,SAAS,CAA0C,CAAC,EAAc,EAA2C,CACnH,IAAM,EAAqB,OAAO,KAAK,OAAO,EAAQ,IAAI,UAAU,EAE9D,EAAc,OAAO,EAAQ,IAAI,EA0BvC,OAxBA,EAAQ,eAAe,QAAS,EAAU,CACzC,KAAK,sBAAsB,EAAa,KAAK,gCAAgC,GAAK,EAAK,EACvF,KAAK,iCACJ,EACA,IAAO,KAAiD,EACzD,EAEA,OAAO,eAAe,KAAM,EAAQ,KAAM,CACzC,GAAG,EAAG,CAEL,OADC,KAAwB,kBAAkB,CAAW,EAC9C,KAAiD,IAE1D,GAAG,CAAC,EAAmB,CACtB,IAAM,EAAY,KAAiD,GACnE,GAAI,IAAa,EACf,KAAiD,GAAsB,EACvE,KAAwB,aAAa,EAAa,EAAU,CAAQ,GAGvE,WAAY,GACZ,aAAc,EACf,CAAC,EACD,EAEM,QAAS,CAAU,EAAU,CAEnC,OADC,KAAa,GAAsB,EAC7B",
8
- "debugId": "220A061FA1CAD20D64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{zb as n}from"./chunk-wd23rn4q.js";function i(o){return(r)=>{let t=new WeakMap;return function(...u){let e=t.get(this);if(!e)e=n((...c)=>{return r.apply(this,c)},o),t.set(this,e);e(...u)}}}
2
- export{i as la};
3
-
4
- //# debugId=5EDBD7E888177D3A64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/standard/debounce.ts"],
4
- "sourcesContent": [
5
- "import { debounce as debounceFunction } from '../../helpers/debounce';\nimport type { Method } from '../../types';\n\nexport function debounce(timeout: number): Method {\n\treturn <T extends Method>(originalMethod: T): Method => {\n\t\tconst debouncedByInstance = new WeakMap<object, ReturnType<typeof debounceFunction<T>>>();\n\n\t\treturn function (this: object, ...args: Parameters<T>): void {\n\t\t\tlet debounced = debouncedByInstance.get(this);\n\n\t\t\tif (!debounced) {\n\t\t\t\tdebounced = debounceFunction((...innerArgs: Parameters<T>) => {\n\t\t\t\t\treturn originalMethod.apply(this, innerArgs);\n\t\t\t\t}, timeout);\n\t\t\t\tdebouncedByInstance.set(this, debounced);\n\t\t\t}\n\n\t\t\tdebounced(...args);\n\t\t};\n\t};\n}\n"
6
- ],
7
- "mappings": "yCAGO,SAAS,CAAQ,CAAC,EAAyB,CACjD,MAAO,CAAmB,IAA8B,CACvD,IAAM,EAAsB,IAAI,QAEhC,OAAO,QAAS,IAAkB,EAA2B,CAC5D,IAAI,EAAY,EAAoB,IAAI,IAAI,EAE5C,GAAI,CAAC,EACJ,EAAY,EAAiB,IAAI,IAA6B,CAC7D,OAAO,EAAe,MAAM,KAAM,CAAS,GACzC,CAAO,EACV,EAAoB,IAAI,KAAM,CAAS,EAGxC,EAAU,GAAG,CAAI",
8
- "debugId": "5EDBD7E888177D3A64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{Ma as q}from"./chunk-cnyxrh9r.js";function B(j){return(v,w)=>{q(v,(f)=>{f.registerConnectedCallback(()=>{let p=f[w].bind(f);if(Array.isArray(j))for(let x of j)f.registerUpdateCallback(x,p);else if(typeof j==="string")f.registerUpdateCallback(j,p)})})}}
2
- export{B as na};
3
-
4
- //# debugId=D031813E5430A1FB64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/legacy/on-updated.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\n\n/**\n * A decorator to subscribe to an updated callback when a reactive field or property changes.\n * @param eventConfig The event configuration.\n */\nexport function onUpdated(keyOrKeys: string | string[]) {\n\treturn (target: RadiantElement, methodName: string) => {\n\t\tregisterLegacyInstanceInitializer(target, (element) => {\n\t\t\telement.registerConnectedCallback(() => {\n\t\t\t\tconst boundedMethod = (element as any)[methodName].bind(element);\n\t\t\t\tif (Array.isArray(keyOrKeys)) {\n\t\t\t\t\tfor (const key of keyOrKeys) {\n\t\t\t\t\t\telement.registerUpdateCallback(key, boundedMethod);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof keyOrKeys === 'string') {\n\t\t\t\t\telement.registerUpdateCallback(keyOrKeys, boundedMethod);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t};\n}\n"
6
- ],
7
- "mappings": "yCAOO,SAAS,CAAS,CAAC,EAA8B,CACvD,MAAO,CAAC,EAAwB,IAAuB,CACtD,EAAkC,EAAQ,CAAC,IAAY,CACtD,EAAQ,0BAA0B,IAAM,CACvC,IAAM,EAAiB,EAAgB,GAAY,KAAK,CAAO,EAC/D,GAAI,MAAM,QAAQ,CAAS,EAC1B,QAAW,KAAO,EACjB,EAAQ,uBAAuB,EAAK,CAAa,EAE5C,QAAI,OAAO,IAAc,SAC/B,EAAQ,uBAAuB,EAAW,CAAa,EAExD,EACD",
8
- "debugId": "D031813E5430A1FB64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- var o=Symbol.for("@ecopages/radiant.reactivePropDefinitions");function s(t,i,r){let n=t.constructor,e=n[o]??[];if(e.some((c)=>c.name===i))return;e.push({name:i,options:r}),n[o]=e}function a(t){return(t.constructor[o]??[]).slice()}
2
- export{s as Ya,a as Za};
3
-
4
- //# debugId=635174EB742DD32D64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/core/reactive-prop-metadata.ts"],
4
- "sourcesContent": [
5
- "import type { ReactivePropertyOptions } from './radiant-element';\n\nconst REACTIVE_PROP_DEFINITIONS = Symbol.for('@ecopages/radiant.reactivePropDefinitions');\n\nexport type ReactivePropDefinition = {\n\tname: string;\n\toptions: ReactivePropertyOptions<unknown>;\n};\n\ntype RadiantConstructorWithReactiveProps = CustomElementConstructor & {\n\t[REACTIVE_PROP_DEFINITIONS]?: ReactivePropDefinition[];\n};\n\nexport function registerReactivePropDefinition(\n\ttarget: object,\n\tpropertyName: string,\n\toptions: ReactivePropertyOptions<unknown>,\n): void {\n\tconst constructor = target.constructor as RadiantConstructorWithReactiveProps;\n\tconst definitions = constructor[REACTIVE_PROP_DEFINITIONS] ?? [];\n\n\tif (definitions.some((definition) => definition.name === propertyName)) {\n\t\treturn;\n\t}\n\n\tdefinitions.push({ name: propertyName, options });\n\tconstructor[REACTIVE_PROP_DEFINITIONS] = definitions;\n}\n\nexport function getReactivePropDefinitions(target: object): ReactivePropDefinition[] {\n\treturn ((target.constructor as RadiantConstructorWithReactiveProps)[REACTIVE_PROP_DEFINITIONS] ?? []).slice();\n}\n"
6
- ],
7
- "mappings": "AAEA,IAAM,EAA4B,OAAO,IAAI,2CAA2C,EAWjF,SAAS,CAA8B,CAC7C,EACA,EACA,EACO,CACP,IAAM,EAAc,EAAO,YACrB,EAAc,EAAY,IAA8B,CAAC,EAE/D,GAAI,EAAY,KAAK,CAAC,IAAe,EAAW,OAAS,CAAY,EACpE,OAGD,EAAY,KAAK,CAAE,KAAM,EAAc,SAAQ,CAAC,EAChD,EAAY,GAA6B,EAGnC,SAAS,CAA0B,CAAC,EAA0C,CACpF,OAAS,EAAO,YAAoD,IAA8B,CAAC,GAAG,MAAM",
8
- "debugId": "635174EB742DD32D64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{Ma as k}from"./chunk-cnyxrh9r.js";import{Cb as q}from"./chunk-hrjc8b1y.js";function E(u){return(w,A,b)=>{let x=b.value;return k(w,(j)=>{q(j,u,x.bind(j))}),b}}
2
- export{E as ta};
3
-
4
- //# debugId=63AD6211503C544464756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/legacy/on-event.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\nimport { createEventListener } from '../../helpers/create-event-listener';\nimport type { OnEventConfig } from '../on-event';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\n\n/**\n * A decorator to subscribe to an event on the target element.\n * The event listener will be automatically unsubscribed when the element is disconnected.\n *\n * Note: This decorator uses event delegation, which means it relies on event bubbling.\n * Therefore, it will not work with events that do not bubble, such as `focus`, `blur`, `load`, `unload`, `scroll`, etc.\n * For focus and blur events, consider using `focusin` and `focusout` which are similar but do bubble.\n *\n * @param eventConfig The event configuration.\n * @param eventConfig.selectors The CSS selector(s) of the target element(s).\n * @param eventConfig.ref The data-ref attribute of the target element.\n * @param eventConfig.type The type of the event to listen for.\n * @param eventConfig.options Optional. An options object that specifies characteristics about the event listener.\n */\nexport function onEvent(eventConfig: OnEventConfig) {\n\treturn (proto: RadiantElement, _: string, descriptor: PropertyDescriptor) => {\n\t\tconst originalMethod = descriptor.value;\n\n\t\tregisterLegacyInstanceInitializer(proto, (element) => {\n\t\t\tcreateEventListener(element, eventConfig, originalMethod.bind(element));\n\t\t});\n\n\t\treturn descriptor;\n\t};\n}\n"
6
- ],
7
- "mappings": "wFAmBO,GAAS,CAAO,CAAC,EAA4B,CACnD,MAAO,CAAC,EAAuB,EAAW,IAAmC,CAC5E,IAAM,EAAiB,EAAW,MAMlC,OAJA,EAAkC,EAAO,CAAC,IAAY,CACrD,EAAoB,EAAS,EAAa,EAAe,KAAK,CAAO,CAAC,EACtE,EAEM",
8
- "debugId": "63AD6211503C544464756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{Ma as E}from"./chunk-cnyxrh9r.js";import{Ya as G}from"./chunk-9mqtp3js.js";import{fb as F}from"./chunk-66e6s792.js";function R({type:q,attribute:H,reflect:x,defaultValue:h,bind:A}){if(h!==void 0&&!F(q,h))throw Error(`defaultValue does not match the expected type for ${q.name}`);return(w,j)=>{let B=H??j;G(w,j,{type:q,reflect:x,attribute:B,defaultValue:h,bind:A});let C=Symbol.for(`@ecopages/radiant.ssr-prop:${j}`);Object.defineProperty(w,j,{get(){return this[C]??h},set(k){this[C]=k},configurable:!0,enumerable:!0}),E(w,(k)=>{k.registerConnectedCallback(()=>{let J=k[j],M=h===void 0?J:h;k.createReactiveProp(j,{type:q,reflect:x,attribute:B,defaultValue:M,bind:A})})})}}
2
- export{R as Ca};
3
-
4
- //# debugId=5474F34EDDA8C4B864756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/legacy/reactive-prop.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\nimport { registerReactivePropDefinition } from '../../core/reactive-prop-metadata';\nimport { type AttributeTypeConstant, isValueOfType } from '../../utils/attribute-utils';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\n\ntype ReactivePropertyOptions<T> = {\n\ttype: AttributeTypeConstant;\n\treflect?: boolean;\n\tattribute?: string;\n\tdefaultValue?: T;\n\tbind?: boolean | string;\n};\n\n/**\n * A decorator to define a reactive property.\n * Every time the property changes, the `updated` method will be called.\n * @param options The options for the reactive property.\n * @param options.type The type of the property value.\n * @param options.reflect Whether to reflect the property to the attribute.\n * @param options.attribute The name of the attribute.\n * @param options.defaultValue The default value of the property.\n */\nexport function reactiveProp<T = unknown>({\n\ttype,\n\tattribute,\n\treflect,\n\tdefaultValue,\n\tbind,\n}: ReactivePropertyOptions<T>) {\n\tif (defaultValue !== undefined && !isValueOfType(type, defaultValue)) {\n\t\tthrow new Error(`defaultValue does not match the expected type for ${type.name}`);\n\t}\n\n\treturn (target: RadiantElement, propertyName: string) => {\n\t\tconst attributeKey = attribute ?? propertyName;\n\t\tregisterReactivePropDefinition(target, propertyName, {\n\t\t\ttype,\n\t\t\treflect,\n\t\t\tattribute: attributeKey,\n\t\t\tdefaultValue,\n\t\t\tbind,\n\t\t});\n\n\t\tconst ssrStoreKey = Symbol.for(`@ecopages/radiant.ssr-prop:${propertyName}`);\n\n\t\tObject.defineProperty(target, propertyName, {\n\t\t\tget(this: RadiantElement & Record<PropertyKey, unknown>) {\n\t\t\t\treturn this[ssrStoreKey] ?? defaultValue;\n\t\t\t},\n\t\t\tset(this: RadiantElement & Record<PropertyKey, unknown>, value: T) {\n\t\t\t\tthis[ssrStoreKey] = value;\n\t\t\t},\n\t\t\tconfigurable: true,\n\t\t\tenumerable: true,\n\t\t});\n\n\t\tregisterLegacyInstanceInitializer(target, (element) => {\n\t\t\telement.registerConnectedCallback(() => {\n\t\t\t\tconst initializerValue = element[propertyName as keyof typeof element] as T | undefined;\n\t\t\t\tconst resolvedDefaultValue = defaultValue === undefined ? initializerValue : defaultValue;\n\n\t\t\t\telement.createReactiveProp(propertyName, {\n\t\t\t\t\ttype,\n\t\t\t\t\treflect,\n\t\t\t\t\tattribute: attributeKey,\n\t\t\t\t\tdefaultValue: resolvedDefaultValue,\n\t\t\t\t\tbind,\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t};\n}\n"
6
- ],
7
- "mappings": "uIAsBO,GAAS,LAAyB,EACxC,OACA,YACA,UACA,eACA,QAC8B,CAC9B,GAAI,IAAiB,QAAa,CAAC,EAAc,EAAM,CAAY,EAClE,MAAU,MAAM,qDAAqD,EAAK,MAAM,EAGjF,MAAO,CAAC,EAAwB,IAAyB,CACxD,IAAM,EAAe,GAAa,EAClC,EAA+B,EAAQ,EAAc,CACpD,OACA,UACA,UAAW,EACX,eACA,MACD,CAAC,EAED,IAAM,EAAc,OAAO,IAAI,8BAA8B,GAAc,EAE3E,OAAO,eAAe,EAAQ,EAAc,CAC3C,GAAG,EAAsD,CACxD,OAAO,KAAK,IAAgB,GAE7B,GAAG,CAAsD,EAAU,CAClE,KAAK,GAAe,GAErB,aAAc,GACd,WAAY,EACb,CAAC,EAED,EAAkC,EAAQ,CAAC,IAAY,CACtD,EAAQ,0BAA0B,IAAM,CACvC,IAAM,EAAmB,EAAQ,GAC3B,EAAuB,IAAiB,OAAY,EAAmB,EAE7E,EAAQ,mBAAmB,EAAc,CACxC,OACA,UACA,UAAW,EACX,aAAc,EACd,MACD,CAAC,EACD,EACD",
8
- "debugId": "5474F34EDDA8C4B864756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- function n(i){return function(e,t){t.addInitializer(function(){if(this[t.name]=this[t.name].bind(this),Array.isArray(i))for(let a of i)this.registerUpdateCallback(a,this[t.name]);else if(typeof i==="string")this.registerUpdateCallback(i,this[t.name])})}}
2
- export{n as oa};
3
-
4
- //# debugId=ACB1089A920794A264756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/standard/on-updated.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\nimport type { Method } from '../../types';\n\nexport function onUpdated(keyOrKeys: string | string[]) {\n\treturn function <T extends Method>(_: T, context: ClassMethodDecoratorContext): void {\n\t\tcontext.addInitializer(function (this: any) {\n\t\t\tthis[context.name] = this[context.name].bind(this);\n\t\t\tif (Array.isArray(keyOrKeys)) {\n\t\t\t\tfor (const key of keyOrKeys) {\n\t\t\t\t\t(this as RadiantElement).registerUpdateCallback(key, this[context.name]);\n\t\t\t\t}\n\t\t\t} else if (typeof keyOrKeys === 'string') {\n\t\t\t\t(this as RadiantElement).registerUpdateCallback(keyOrKeys, this[context.name]);\n\t\t\t}\n\t\t});\n\t};\n}\n"
6
- ],
7
- "mappings": "AAGO,SAAS,CAAS,CAAC,EAA8B,CACvD,OAAO,QAA2B,CAAC,EAAM,EAA4C,CACpF,EAAQ,eAAe,QAAS,EAAY,CAE3C,GADA,KAAK,EAAQ,MAAQ,KAAK,EAAQ,MAAM,KAAK,IAAI,EAC7C,MAAM,QAAQ,CAAS,EAC1B,QAAW,KAAO,EAChB,KAAwB,uBAAuB,EAAK,KAAK,EAAQ,KAAK,EAElE,QAAI,OAAO,IAAc,SAC9B,KAAwB,uBAAuB,EAAW,KAAK,EAAQ,KAAK,EAE9E",
8
- "debugId": "ACB1089A920794A264756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- function H(j,A={}){let B=null,D,E=()=>{if(A.all)return typeof j.getSlotElements==="function"?j.getSlotElements(A.name):[];return typeof j.getSlotElement==="function"?j.getSlotElement(A.name):null};return{get value(){if(A.cache===!1)return E();let G=j.slotProjectionVersion??0;if(D!==G)B=E(),D=G;return B}}}
2
- export{H as Ab};
3
-
4
- //# debugId=ACFD968428E9366D64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/helpers/create-query-slot.ts"],
4
- "sourcesContent": [
5
- "export type QuerySlotConfig = {\n\tall?: boolean;\n\tcache?: boolean;\n\tname?: string;\n};\n\ntype SlotQueryHost = HTMLElement & {\n\tgetSlotElement<T extends Element = Element>(name?: string): T | null;\n\tgetSlotElements<T extends Element = Element>(name?: string): T[];\n};\n\ntype QuerySlotResult<T extends Element | Element[]> = {\n\tget value(): T | null;\n};\n\n/**\n * Creates a lazy slot query accessor bound to a host element.\n * Functional equivalent of the `@querySlot` decorator for vanilla JS usage.\n * @param host The host element to query slots within.\n * @param options {@link QuerySlotConfig} The slot query configuration.\n */\nexport function createQuerySlot<T extends Element | Element[] = Element>(\n\thost: SlotQueryHost,\n\toptions: QuerySlotConfig = {},\n): QuerySlotResult<T> {\n\tlet cached: T | null = null;\n\tlet cachedVersion: number | undefined;\n\n\tconst executeQuery = (): T | null => {\n\t\tif (options.all) {\n\t\t\treturn (typeof host.getSlotElements === 'function' ? host.getSlotElements(options.name) : []) as T;\n\t\t}\n\t\treturn (typeof host.getSlotElement === 'function' ? host.getSlotElement(options.name) : null) as T | null;\n\t};\n\n\treturn {\n\t\tget value(): T | null {\n\t\t\tif (options.cache === false) {\n\t\t\t\treturn executeQuery();\n\t\t\t}\n\n\t\t\tconst currentVersion = (host as unknown as Record<string, number | undefined>).slotProjectionVersion ?? 0;\n\n\t\t\tif (cachedVersion !== currentVersion) {\n\t\t\t\tcached = executeQuery();\n\t\t\t\tcachedVersion = currentVersion;\n\t\t\t}\n\n\t\t\treturn cached;\n\t\t},\n\t};\n}\n"
6
- ],
7
- "mappings": "AAqBO,SAAS,CAAwD,CACvE,EACA,EAA2B,CAAC,EACP,CACrB,IAAI,EAAmB,KACnB,EAEE,EAAe,IAAgB,CACpC,GAAI,EAAQ,IACX,OAAQ,OAAO,EAAK,kBAAoB,WAAa,EAAK,gBAAgB,EAAQ,IAAI,EAAI,CAAC,EAE5F,OAAQ,OAAO,EAAK,iBAAmB,WAAa,EAAK,eAAe,EAAQ,IAAI,EAAI,MAGzF,MAAO,IACF,MAAK,EAAa,CACrB,GAAI,EAAQ,QAAU,GACrB,OAAO,EAAa,EAGrB,IAAM,EAAkB,EAAuD,uBAAyB,EAExG,GAAI,IAAkB,EACrB,EAAS,EAAa,EACtB,EAAgB,EAGjB,OAAO,EAET",
8
- "debugId": "ACFD968428E9366D64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{sb as k,tb as q}from"./chunk-hpzgnxgq.js";function A(j){return k({type:"context",...j})}function B(j){return q(j)}
2
- export{A as W,B as X};
3
-
4
- //# debugId=DC63A933A8AED8BC64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/context/hydration-script.ts"],
4
- "sourcesContent": [
5
- "import { createHydrationScriptTag, escapeHydrationJson } from '../core/hydration-codec';\n\n/**\n * Creates the raw `<script type=\"application/json\">` tag used to hydrate a\n * serialized context provider.\n */\nexport function createContextHydrationScriptTag(options: { hydrationKey?: string; serializedValue: string }): string {\n\treturn createHydrationScriptTag({ type: 'context', ...options });\n}\n\n/**\n * Escapes serialized JSON so it remains safe when embedded inside an HTML\n * script tag.\n */\nexport function escapeContextHydrationJson(value: string): string {\n\treturn escapeHydrationJson(value);\n}\n"
6
- ],
7
- "mappings": "iDAMO,SAAS,CAA+B,CAAC,EAAqE,CACpH,OAAO,EAAyB,CAAE,KAAM,aAAc,CAAQ,CAAC,EAOzD,SAAS,CAA0B,CAAC,EAAuB,CACjE,OAAO,EAAoB,CAAK",
8
- "debugId": "DC63A933A8AED8BC64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{qa as B}from"./chunk-25zjh0kg.js";import{ra as F}from"./chunk-mp2vtrkg.js";function I(j,q){return function(z,A){if(typeof A<"u")return F(j,q)(z,A);return B(j,q)(z)}}
2
- export{I as pa};
3
-
4
- //# debugId=7409CEC560D37CFF64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/custom-element.ts"],
4
- "sourcesContent": [
5
- "import type {\n\tLegacyClassDecoratorArgs,\n\tStandardClassDecoratorArgs,\n\tStandardOrLegacyClassDecoratorArgs,\n} from '../types';\nimport { customElement as legacyCustomElement } from './legacy/custom-element';\nimport { customElement as standardCustomElement } from './standard/custom-element';\n\n/**\n * Registers a web component with the given name on the global `window.customElements` registry.\n * @param name selector name.\n * @param options {@link ElementDefinitionOptions}\n */\nexport function customElement(name: string, options?: ElementDefinitionOptions) {\n\treturn function (\n\t\tprotoOrTarget: StandardOrLegacyClassDecoratorArgs['protoOrTarget'],\n\t\tnameOrContext?: StandardOrLegacyClassDecoratorArgs['nameOrContext'],\n\t): any {\n\t\tif (typeof nameOrContext !== 'undefined') {\n\t\t\treturn standardCustomElement(name, options)(\n\t\t\t\tprotoOrTarget as StandardClassDecoratorArgs['protoOrTarget'],\n\t\t\t\tnameOrContext as StandardClassDecoratorArgs['nameOrContext'],\n\t\t\t);\n\t\t}\n\t\treturn legacyCustomElement(name, options)(protoOrTarget as LegacyClassDecoratorArgs['protoOrTarget']);\n\t};\n}\n"
6
- ],
7
- "mappings": "wFAaO,GAAS,CAAa,CAAC,EAAc,EAAoC,CAC/E,OAAO,QAAS,CACf,EACA,EACM,CACN,GAAI,OAAO,EAAkB,IAC5B,OAAO,EAAsB,EAAM,CAAO,EACzC,EACA,CACD,EAED,OAAO,EAAoB,EAAM,CAAO,EAAE,CAA0D",
8
- "debugId": "7409CEC560D37CFF64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- var D=Symbol.for("@ecopages/radiant.legacy-instance-initializers");function J(B,j){let q=B[D];if(Array.isArray(q)){q.push(j);return}Object.defineProperty(B,D,{value:[j],configurable:!0})}function K(B){let j=[],k=Object.getPrototypeOf(B);while(k&&k!==Object.prototype)j.push(k),k=Object.getPrototypeOf(k);for(let q=j.length-1;q>=0;q-=1){let F=j[q][D];if(!Array.isArray(F))continue;for(let H of F)H(B)}}
2
- export{J as Ma,K as Na};
3
-
4
- //# debugId=482D7DF0E4F53FE864756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/legacy/instance-initializers.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../core/radiant-element';\n\ntype LegacyInstanceInitializer = (instance: RadiantElement) => void;\n\nconst LEGACY_INSTANCE_INITIALIZERS = Symbol.for('@ecopages/radiant.legacy-instance-initializers');\n\n/**\n * Registers per-instance initialization work for a legacy decorator.\n *\n * Legacy decorators execute against the prototype, so any initialization that\n * needs the concrete element instance must be deferred until construction time.\n */\nexport function registerLegacyInstanceInitializer(proto: object, initializer: LegacyInstanceInitializer): void {\n\tconst target = proto as Record<PropertyKey, unknown>;\n\tconst ownInitializers = target[LEGACY_INSTANCE_INITIALIZERS];\n\n\tif (Array.isArray(ownInitializers)) {\n\t\townInitializers.push(initializer);\n\t\treturn;\n\t}\n\n\tObject.defineProperty(proto, LEGACY_INSTANCE_INITIALIZERS, {\n\t\tvalue: [initializer],\n\t\tconfigurable: true,\n\t});\n}\n\n/**\n * Runs all legacy decorator initializers for a newly constructed element.\n *\n * Initializers are collected from the prototype chain and executed from base to\n * derived class so inherited setup remains stable.\n */\nexport function runLegacyInstanceInitializers(instance: RadiantElement): void {\n\tconst prototypes: object[] = [];\n\tlet currentPrototype = Object.getPrototypeOf(instance);\n\n\twhile (currentPrototype && currentPrototype !== Object.prototype) {\n\t\tprototypes.push(currentPrototype);\n\t\tcurrentPrototype = Object.getPrototypeOf(currentPrototype);\n\t}\n\n\tfor (let index = prototypes.length - 1; index >= 0; index -= 1) {\n\t\tconst initializers = (prototypes[index] as Record<PropertyKey, unknown>)[LEGACY_INSTANCE_INITIALIZERS] as\n\t\t\t| LegacyInstanceInitializer[]\n\t\t\t| undefined;\n\n\t\tif (!Array.isArray(initializers)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tfor (const initializer of initializers) {\n\t\t\tinitializer(instance);\n\t\t}\n\t}\n}\n"
6
- ],
7
- "mappings": "AAIA,IAAM,EAA+B,OAAO,IAAI,gDAAgD,EAQzF,SAAS,CAAiC,CAAC,EAAe,EAA8C,CAE9G,IAAM,EADS,EACgB,GAE/B,GAAI,MAAM,QAAQ,CAAe,EAAG,CACnC,EAAgB,KAAK,CAAW,EAChC,OAGD,OAAO,eAAe,EAAO,EAA8B,CAC1D,MAAO,CAAC,CAAW,EACnB,aAAc,EACf,CAAC,EASK,SAAS,CAA6B,CAAC,EAAgC,CAC7E,IAAM,EAAuB,CAAC,EAC1B,EAAmB,OAAO,eAAe,CAAQ,EAErD,MAAO,GAAoB,IAAqB,OAAO,UACtD,EAAW,KAAK,CAAgB,EAChC,EAAmB,OAAO,eAAe,CAAgB,EAG1D,QAAS,EAAQ,EAAW,OAAS,EAAG,GAAS,EAAG,GAAS,EAAG,CAC/D,IAAM,EAAgB,EAAW,GAAwC,GAIzE,GAAI,CAAC,MAAM,QAAQ,CAAY,EAC9B,SAGD,QAAW,KAAe,EACzB,EAAY,CAAQ",
8
- "debugId": "482D7DF0E4F53FE864756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- function t(e){return JSON.stringify(e)}
2
- export{t as b};
3
-
4
- //# debugId=FD7EEF3FF918CC4E64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/tools/stringify-typed.ts"],
4
- "sourcesContent": [
5
- "/**\n * Converts the given value to a JSON string representation or maintains the type based on the generic parameter.\n *\n * @param value - The value to be converted.\n * @returns The JSON string representation of the value or the value itself.\n * @template T - The type of the value.\n * @template R - The return type, defaults to T.\n *\n * @example\n * // For maintaining the type in JSX attributes\n * <my-app my-complex-attribute={stringifyTyped<MyType>(myData)}> // myData is of type MyType\n *\n * // For lower-level JSON string generation outside JSX text children\n * const hydrationPayload = stringifyTyped<Partial<MyContext>, string>({ value: 'Hello World' });\n */\nexport function stringifyTyped<T, R = T>(value: T): R extends string ? string : T {\n\treturn JSON.stringify(value) as unknown as R extends string ? string : T;\n}\n"
6
- ],
7
- "mappings": "AAeO,SAAS,CAAwB,CAAC,EAAyC,CACjF,OAAO,KAAK,UAAU,CAAK",
8
- "debugId": "FD7EEF3FF918CC4E64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{sb as j,tb as k}from"./chunk-hpzgnxgq.js";function w(b){return j({type:"signal",...b})}function x(b){return k(b)}
2
- export{w as Ha,x as Ia};
3
-
4
- //# debugId=72C259D774D1692864756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/signals/hydration-script.ts"],
4
- "sourcesContent": [
5
- "import { createHydrationScriptTag, escapeHydrationJson } from '../core/hydration-codec';\n\n/** Creates the raw `<script type=\"application/json\">` tag used to hydrate a signal field. */\nexport function createSignalHydrationScriptTag(options: { hydrationKey?: string; serializedValue: string }): string {\n\treturn createHydrationScriptTag({ type: 'signal', ...options });\n}\n\n/** Escapes serialized JSON so it remains safe inside an HTML script tag. */\nexport function escapeSignalHydrationJson(value: string): string {\n\treturn escapeHydrationJson(value);\n}\n"
6
- ],
7
- "mappings": "iDAGO,SAAS,CAA8B,CAAC,EAAqE,CACnH,OAAO,EAAyB,CAAE,KAAM,YAAa,CAAQ,CAAC,EAIxD,SAAS,CAAyB,CAAC,EAAuB,CAChE,OAAO,EAAoB,CAAK",
8
- "debugId": "72C259D774D1692864756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- var a=Symbol.for("@ecopages/radiant.component-ssr-runtime");function c(){return globalThis[a]}function d(b){globalThis[a]=b}
2
- export{c as Ta,d as Ua};
3
-
4
- //# debugId=9846209F4F44FF0E64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/core/radiant-component-ssr-registry.ts"],
4
- "sourcesContent": [
5
- "import type { JsxRenderable } from '@ecopages/jsx';\nimport type { RenderToStringOptions } from '@ecopages/jsx/server';\n\n/**\n * Optional SSR hooks exposed by `RadiantComponent` instances to the shared\n * server runtime.\n *\n * The bridge lets the runtime detect whether a component is still using the\n * inherited host SSR implementation or has taken ownership of host rendering\n * through explicit overrides.\n */\nexport type RadiantComponentRenderBridge = {\n\trenderHost?: () => JsxRenderable;\n\trenderHostToString?: (options?: RenderToStringOptions) => string;\n};\n\n/**\n * Runtime shape required by the shared Radiant SSR helpers.\n *\n * This is intentionally narrower than `RadiantComponent` itself so the server\n * runtime can stay decoupled from the full client base-class implementation.\n */\nexport type RadiantComponentSsrCapable = HTMLElement & {\n\tresolveSsrRenderBridge?: () => RadiantComponentRenderBridge;\n\tgetHostSsrAttributes?: () => Record<string, string>;\n\trenderToString(options?: RenderToStringOptions): string;\n\trenderHost?(): JsxRenderable;\n\trenderHostToString(options?: RenderToStringOptions): string;\n};\n\n/**\n * Shared SSR runtime contract registered on `globalThis`.\n *\n * Server entrypoints install one implementation that both direct component SSR\n * and nested JSX custom-element SSR can reuse without importing client-only\n * internals into every call site.\n */\nexport type RadiantComponentSsrRuntime = {\n\tgetHostAttributes(component: RadiantComponentSsrCapable): Record<string, string>;\n\trenderHost(component: RadiantComponentSsrCapable): JsxRenderable;\n\trenderHostToString(component: RadiantComponentSsrCapable, options?: RenderToStringOptions): string;\n\tresolveRenderBridge(component: RadiantComponentSsrCapable): RadiantComponentRenderBridge | undefined;\n\trenderView(component: RadiantComponentSsrCapable, options?: RenderToStringOptions): string;\n};\n\nconst RADIANT_COMPONENT_SSR_RUNTIME_SYMBOL = Symbol.for('@ecopages/radiant.component-ssr-runtime');\n\ntype GlobalSsrRuntimeState = typeof globalThis & {\n\t[RADIANT_COMPONENT_SSR_RUNTIME_SYMBOL]?: RadiantComponentSsrRuntime;\n};\n\n/**\n * Reads the currently registered Radiant SSR runtime from `globalThis`.\n *\n * Returns `undefined` when no server entrypoint has installed the runtime yet.\n */\nexport function getRadiantComponentSsrRuntime(): RadiantComponentSsrRuntime | undefined {\n\treturn (globalThis as GlobalSsrRuntimeState)[RADIANT_COMPONENT_SSR_RUNTIME_SYMBOL];\n}\n\n/**\n * Registers the shared Radiant SSR runtime on `globalThis`.\n *\n * The latest registration wins, which keeps server adapters free to install\n * the runtime eagerly from their own explicit entrypoint.\n */\nexport function registerRadiantComponentSsrRuntime(runtime: RadiantComponentSsrRuntime): void {\n\t(globalThis as GlobalSsrRuntimeState)[RADIANT_COMPONENT_SSR_RUNTIME_SYMBOL] = runtime;\n}\n"
6
- ],
7
- "mappings": "AA6CA,IAAM,EAAuC,OAAO,IAAI,yCAAyC,EAW1F,SAAS,CAA6B,EAA2C,CACvF,OAAQ,WAAqC,GASvC,SAAS,CAAkC,CAAC,EAA2C,CAC5F,WAAqC,GAAwC",
8
- "debugId": "9846209F4F44FF0E64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{wa as A}from"./chunk-knqsm6v3.js";import{Aa as E}from"./chunk-v92hp9g0.js";import{Oa as z}from"./chunk-q9z6tnzw.js";function K(k={}){return function(F,G){return z(E(k),A(k),F,G)}}
2
- export{K as va};
3
-
4
- //# debugId=0E72FB78441CB14164756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/query-slot.ts"],
4
- "sourcesContent": [
5
- "import type { StandardOrLegacyFieldDecoratorArgs } from '../types';\nimport type { QuerySlotConfig } from '../helpers/create-query-slot';\nimport { querySlot as legacyQuerySlot } from './legacy/query-slot';\nimport { querySlot as standardQuerySlot } from './standard/query-slot';\nimport { fieldDecoratorBridge } from './bridge';\n\nexport type { QuerySlotConfig };\n\n/**\n * Queries projected light-DOM content assigned to a RadiantComponent slot.\n *\n * The decorator returns assigned elements from the default slot when `name` is\n * omitted, or from the named slot when `name` is provided. Results are cached\n * by default and automatically invalidated when slot projection changes.\n *\n * @param options Slot query options.\n */\nexport function querySlot<T extends Element | Element[]>(options: QuerySlotConfig = {}) {\n\treturn function (\n\t\tprotoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n\t\tnameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n\t): any {\n\t\treturn fieldDecoratorBridge(\n\t\t\tstandardQuerySlot(options),\n\t\t\tlegacyQuerySlot<T>(options),\n\t\t\tprotoOrTarget,\n\t\t\tnameOrContext,\n\t\t);\n\t};\n}\n"
6
- ],
7
- "mappings": "uIAiBO,GAAS,LAAwC,CAAC,EAA2B,CAAC,EAAG,CACvF,OAAO,QAAS,CACf,EACA,EACM,CACN,OAAO,EACN,EAAkB,CAAO,EACzB,EAAmB,CAAO,EAC1B,EACA,CACD",
8
- "debugId": "0E72FB78441CB14164756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{T as F,V as G}from"./chunk-kmebacvv.js";import{$a as D}from"./chunk-t8xtvgyg.js";function K(f,j,B,w={}){let z=D(j);if(!z)return!1;if(B(z),f.connectedContextCallback(j),w.emitMounted)f.dispatchEvent(new CustomEvent("context-mounted",{detail:z}));return!0}function L(f,j,B,w={}){f.dispatchEvent(new F(j,(z)=>{if(B(z),f.connectedContextCallback(j),w.emitMounted)f.dispatchEvent(new CustomEvent("context-mounted",{detail:z}))}))}function M(f,j,B){let w=D(f);if(!w)return!1;let z=w.getContext();return j(B?B(z):z),!0}function N(f,j,B,w){f.dispatchEvent(new G(j,B,w.select,w.subscribe))}
2
- export{K as L,L as M,M as N,N as O};
3
-
4
- //# debugId=C4FE9659AFA3430064756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/context/context-consumer-runtime.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../core/radiant-element';\nimport { resolveAmbientSsrContextProvider } from './context-ssr-bridge';\nimport { ContextEventsTypes, ContextRequestEvent, ContextSubscriptionRequestEvent } from './events';\nimport type { ContextType, UnknownContext } from './types';\n\ntype ConsumedContextAssignment = (provider: unknown) => void;\n\n/**\n * Resolves a consumed context from the active SSR provider stack when one is available.\n *\n * This keeps SSR-specific lookup outside decorator implementations while preserving\n * the same consumer initialization contract for both standard and legacy decorators.\n *\n * @returns `true` when the context was resolved synchronously from SSR state.\n */\nexport function initializeConsumedContext(\n\thost: RadiantElement,\n\tcontext: UnknownContext,\n\tassign: ConsumedContextAssignment,\n\toptions: { emitMounted?: boolean } = {},\n): boolean {\n\tconst provider = resolveAmbientSsrContextProvider(context);\n\n\tif (!provider) {\n\t\treturn false;\n\t}\n\n\tassign(provider);\n\thost.connectedContextCallback(context);\n\n\tif (options.emitMounted) {\n\t\thost.dispatchEvent(new CustomEvent(ContextEventsTypes.MOUNTED, { detail: provider }));\n\t}\n\n\treturn true;\n}\n\n/**\n * Requests a context provider through the DOM event channel when SSR state is not active.\n */\nexport function requestConsumedContext(\n\thost: RadiantElement,\n\tcontext: UnknownContext,\n\tassign: ConsumedContextAssignment,\n\toptions: { emitMounted?: boolean } = {},\n): void {\n\thost.dispatchEvent(\n\t\tnew ContextRequestEvent(context, (provider) => {\n\t\t\tassign(provider);\n\t\t\thost.connectedContextCallback(context);\n\n\t\t\tif (options.emitMounted) {\n\t\t\t\thost.dispatchEvent(new CustomEvent(ContextEventsTypes.MOUNTED, { detail: provider }));\n\t\t\t}\n\t\t}),\n\t);\n}\n\n/**\n * Resolves a selected context value from the active SSR provider stack when available.\n *\n * @returns `true` when the selection callback was satisfied synchronously from SSR state.\n */\nexport function initializeContextSelection<TContext extends UnknownContext>(\n\tcontext: TContext,\n\tcallback: (value: unknown) => void,\n\tselect?: (context: ContextType<TContext>) => unknown,\n): boolean {\n\tconst provider = resolveAmbientSsrContextProvider(context);\n\n\tif (!provider) {\n\t\treturn false;\n\t}\n\n\tconst resolvedContext = provider.getContext() as ContextType<TContext>;\n\tcallback(select ? select(resolvedContext) : resolvedContext);\n\treturn true;\n}\n\n/**\n * Requests a selected context value through the DOM event channel.\n */\nexport function requestContextSelection<TContext extends UnknownContext>(\n\thost: RadiantElement,\n\tcontext: TContext,\n\tcallback: (value: unknown) => void,\n\toptions: {\n\t\tselect?: (context: ContextType<TContext>) => unknown;\n\t\tsubscribe?: boolean;\n\t},\n): void {\n\thost.dispatchEvent(new ContextSubscriptionRequestEvent(context, callback, options.select, options.subscribe));\n}\n"
6
- ],
7
- "mappings": "8FAeO,GAAS,CAAyB,CACxC,EACA,EACA,EACA,EAAqC,CAAC,EAC5B,CACV,IAAM,EAAW,EAAiC,CAAO,EAEzD,GAAI,CAAC,EACJ,MAAO,GAMR,GAHA,EAAO,CAAQ,EACf,EAAK,yBAAyB,CAAO,EAEjC,EAAQ,YACX,EAAK,cAAc,IAAI,8BAAwC,CAAE,OAAQ,CAAS,CAAC,CAAC,EAGrF,MAAO,GAMD,SAAS,CAAsB,CACrC,EACA,EACA,EACA,EAAqC,CAAC,EAC/B,CACP,EAAK,cACJ,IAAI,EAAoB,EAAS,CAAC,IAAa,CAI9C,GAHA,EAAO,CAAQ,EACf,EAAK,yBAAyB,CAAO,EAEjC,EAAQ,YACX,EAAK,cAAc,IAAI,8BAAwC,CAAE,OAAQ,CAAS,CAAC,CAAC,EAErF,CACF,EAQM,SAAS,CAA2D,CAC1E,EACA,EACA,EACU,CACV,IAAM,EAAW,EAAiC,CAAO,EAEzD,GAAI,CAAC,EACJ,MAAO,GAGR,IAAM,EAAkB,EAAS,WAAW,EAE5C,OADA,EAAS,EAAS,EAAO,CAAe,EAAI,CAAe,EACpD,GAMD,SAAS,CAAwD,CACvE,EACA,EACA,EACA,EAIO,CACP,EAAK,cAAc,IAAI,EAAgC,EAAS,EAAU,EAAQ,OAAQ,EAAQ,SAAS,CAAC",
8
- "debugId": "C4FE9659AFA3430064756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- var F=Symbol(),H=Symbol();function J(q,j){let w=q[F];if(Array.isArray(w)){w.push(j);return}Object.defineProperty(q,F,{value:[j],configurable:!0})}function M(q){let j=q,D=j[F];if(!Array.isArray(D))return;j[H]=!0;try{for(let w of D)w()}finally{delete j[H]}}
2
- export{H as xa,J as ya,M as za};
3
-
4
- //# debugId=C5C01CE67512BC4264756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/core/ssr-preparation.ts"],
4
- "sourcesContent": [
5
- "type SsrPreparationCallback = () => void;\n\nconst SSR_PREPARATION_CALLBACKS = Symbol();\nexport const SSR_PREPARATION_RUNNING = Symbol();\n\n/**\n * Registers instance-local SSR preparation work that should run immediately\n * before a Radiant host serializes its first server render.\n *\n * Decorators use this to defer SSR-only setup until after class fields,\n * reactive props, and authored host content have all been applied.\n */\nexport function registerSsrPreparationCallback(host: object, callback: SsrPreparationCallback): void {\n\tconst target = host as Record<PropertyKey, unknown>;\n\tconst existingCallbacks = target[SSR_PREPARATION_CALLBACKS];\n\n\tif (Array.isArray(existingCallbacks)) {\n\t\texistingCallbacks.push(callback);\n\t\treturn;\n\t}\n\n\tObject.defineProperty(host, SSR_PREPARATION_CALLBACKS, {\n\t\tvalue: [callback],\n\t\tconfigurable: true,\n\t});\n}\n\n/**\n * Runs all registered SSR preparation callbacks for the provided host.\n *\n * The callbacks are intentionally retained so repeated SSR serializations stay\n * deterministic after later host mutations.\n */\nexport function runSsrPreparationCallbacks(host: object): void {\n\tconst target = host as Record<PropertyKey, unknown>;\n\tconst callbacks = target[SSR_PREPARATION_CALLBACKS];\n\n\tif (!Array.isArray(callbacks)) {\n\t\treturn;\n\t}\n\n\ttarget[SSR_PREPARATION_RUNNING] = true;\n\n\ttry {\n\t\tfor (const callback of callbacks as SsrPreparationCallback[]) {\n\t\t\tcallback();\n\t\t}\n\t} finally {\n\t\tdelete target[SSR_PREPARATION_RUNNING];\n\t}\n}\n"
6
- ],
7
- "mappings": "AAEA,IAAM,EAA4B,OAAO,EAC5B,EAA0B,OAAO,EASvC,SAAS,CAA8B,CAAC,EAAc,EAAwC,CAEpG,IAAM,EADS,EACkB,GAEjC,GAAI,MAAM,QAAQ,CAAiB,EAAG,CACrC,EAAkB,KAAK,CAAQ,EAC/B,OAGD,OAAO,eAAe,EAAM,EAA2B,CACtD,MAAO,CAAC,CAAQ,EAChB,aAAc,EACf,CAAC,EASK,SAAS,CAA0B,CAAC,EAAoB,CAC9D,IAAM,EAAS,EACT,EAAY,EAAO,GAEzB,GAAI,CAAC,MAAM,QAAQ,CAAS,EAC3B,OAGD,EAAO,GAA2B,GAElC,GAAI,CACH,QAAW,KAAY,EACtB,EAAS,SAET,CACD,OAAO,EAAO",
8
- "debugId": "C5C01CE67512BC4264756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{H as y,J as A}from"./chunk-p8k4g99a.js";function G(f){return(D,j)=>{let k=String(j.name),q=(b,c)=>{b[k]=c},w=(b,c={})=>{if(b[k])return!0;return A(b,f,(B)=>{q(b,B)},c)};j.addInitializer(function(){if(y(this,f,(b)=>{q(this,b)},{emitMounted:!0}))return;this.registerConnectedCallback(()=>{if(w(this,{emitMounted:!0}))return;queueMicrotask(()=>{w(this,{emitMounted:!0})})})})}}
2
- export{G as x};
3
-
4
- //# debugId=DE6BB729795F345764756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/context/decorators/standard/consume-context.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../../core/radiant-element';\nimport { bootstrapSsrConsumedContext, connectConsumedContext } from '../../context-consumer-bootstrap';\nimport type { UnknownContext } from '../../types';\n\nexport function consumeContext(consumedContext: UnknownContext) {\n\treturn <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) => {\n\t\tconst contextName = String(context.name);\n\t\tconst assignContextProvider = (host: T, provider: unknown) => {\n\t\t\t(host as any)[contextName] = provider;\n\t\t};\n\t\tconst initializeConsumedContextForHost = (host: T, options: { emitMounted?: boolean } = {}) => {\n\t\t\tif ((host as any)[contextName]) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn connectConsumedContext(\n\t\t\t\thost,\n\t\t\t\tconsumedContext,\n\t\t\t\t(provider) => {\n\t\t\t\t\tassignContextProvider(host, provider);\n\t\t\t\t},\n\t\t\t\toptions,\n\t\t\t);\n\t\t};\n\n\t\tcontext.addInitializer(function (this: T) {\n\t\t\tif (\n\t\t\t\tbootstrapSsrConsumedContext(\n\t\t\t\t\tthis,\n\t\t\t\t\tconsumedContext,\n\t\t\t\t\t(provider) => {\n\t\t\t\t\t\tassignContextProvider(this, provider);\n\t\t\t\t\t},\n\t\t\t\t\t{ emitMounted: true },\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.registerConnectedCallback(() => {\n\t\t\t\tif (initializeConsumedContextForHost(this, { emitMounted: true })) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tqueueMicrotask(() => {\n\t\t\t\t\tinitializeConsumedContextForHost(this, { emitMounted: true });\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t};\n}\n"
6
- ],
7
- "mappings": "+CAIO,SAAS,CAAc,CAAC,EAAiC,CAC/D,MAAO,CAA8B,EAAc,IAA8C,CAChG,IAAM,EAAc,OAAO,EAAQ,IAAI,EACjC,EAAwB,CAAC,EAAS,IAAsB,CAC5D,EAAa,GAAe,GAExB,EAAmC,CAAC,EAAS,EAAqC,CAAC,IAAM,CAC9F,GAAK,EAAa,GACjB,MAAO,GAGR,OAAO,EACN,EACA,EACA,CAAC,IAAa,CACb,EAAsB,EAAM,CAAQ,GAErC,CACD,GAGD,EAAQ,eAAe,QAAS,EAAU,CACzC,GACC,EACC,KACA,EACA,CAAC,IAAa,CACb,EAAsB,KAAM,CAAQ,GAErC,CAAE,YAAa,EAAK,CACrB,EAEA,OAGD,KAAK,0BAA0B,IAAM,CACpC,GAAI,EAAiC,KAAM,CAAE,YAAa,EAAK,CAAC,EAC/D,OAGD,eAAe,IAAM,CACpB,EAAiC,KAAM,CAAE,YAAa,EAAK,CAAC,EAC5D,EACD,EACD",
8
- "debugId": "DE6BB729795F345764756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{G as A}from"./chunk-5bkat72n.js";import{I as w,K as z}from"./chunk-p8k4g99a.js";function L(B){let{context:h,select:j,subscribe:E=!0}=B;return function(I,k){let F=String(k.name);return k.addInitializer(function(){let g=A(this,(G)=>{let H=this;H[F]=G},!0);if(w(this,h,g,j))return;let q=()=>{z(this,h,g,{select:j,subscribe:E})};this.registerConnectedCallback(()=>{q()}),queueMicrotask(q)}),function(g){return g}}}
2
- export{L as D};
3
-
4
- //# debugId=5CF0DC612E14240B64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/context/decorators/standard/context-selector-field.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement } from '../../../core/radiant-element';\nimport { bootstrapSsrContextSelection, connectContextSelection } from '../../context-consumer-bootstrap';\nimport type { Context, ContextType } from '../../types';\nimport { createContextSelectionDelivery } from '../context-selection-delivery';\n\nexport type ContextSelectorFieldOptions<T extends Context<unknown, unknown>, Selected = ContextType<T>> = {\n\tcontext: T;\n\tselect?: (context: ContextType<T>) => Selected;\n\tsubscribe?: boolean;\n};\n\nexport function contextSelectorField<T extends Context<unknown, unknown>, Selected = ContextType<T>>(\n\toptions: ContextSelectorFieldOptions<T, Selected>,\n) {\n\tconst { context, select, subscribe = true } = options;\n\n\treturn function <Host extends RadiantElement>(\n\t\t_: undefined,\n\t\tfieldContext: ClassFieldDecoratorContext<Host, Selected>,\n\t) {\n\t\tconst propertyName = String(fieldContext.name);\n\n\t\tfieldContext.addInitializer(function (this: Host) {\n\t\t\tconst applyValue = createContextSelectionDelivery(\n\t\t\t\tthis,\n\t\t\t\t(value) => {\n\t\t\t\t\tconst record = this as unknown as Record<string, unknown>;\n\t\t\t\t\trecord[propertyName] = value;\n\t\t\t\t},\n\t\t\t\ttrue,\n\t\t\t);\n\n\t\t\tif (bootstrapSsrContextSelection(this, context, applyValue, select as any)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst connectSelection = () => {\n\t\t\t\tconnectContextSelection(this, context, applyValue, {\n\t\t\t\t\tselect: select as any,\n\t\t\t\t\tsubscribe,\n\t\t\t\t});\n\t\t\t};\n\n\t\t\tthis.registerConnectedCallback(() => {\n\t\t\t\tconnectSelection();\n\t\t\t});\n\n\t\t\tqueueMicrotask(connectSelection);\n\t\t});\n\n\t\treturn function (this: Host, initialValue: Selected) {\n\t\t\treturn initialValue;\n\t\t};\n\t};\n}\n"
6
- ],
7
- "mappings": "6FAWO,GAAS,CAAoF,CACnG,EACC,CACD,IAAQ,UAAS,SAAQ,YAAY,IAAS,EAE9C,OAAO,QAAsC,CAC5C,EACA,EACC,CACD,IAAM,EAAe,OAAO,EAAa,IAAI,EA8B7C,OA5BA,EAAa,eAAe,QAAS,EAAa,CACjD,IAAM,EAAa,EAClB,KACA,CAAC,IAAU,CACV,IAAM,EAAS,KACf,EAAO,GAAgB,GAExB,EACD,EAEA,GAAI,EAA6B,KAAM,EAAS,EAAY,CAAa,EACxE,OAGD,IAAM,EAAmB,IAAM,CAC9B,EAAwB,KAAM,EAAS,EAAY,CAClD,OAAQ,EACR,WACD,CAAC,GAGF,KAAK,0BAA0B,IAAM,CACpC,EAAiB,EACjB,EAED,eAAe,CAAgB,EAC/B,EAEM,QAAS,CAAa,EAAwB,CACpD,OAAO",
8
- "debugId": "5CF0DC612E14240B64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{C as w}from"./chunk-s09s5ayx.js";import{D as z}from"./chunk-g2z3mm6b.js";import{E as v}from"./chunk-x2k0ngpz.js";import{F as u}from"./chunk-kakpjgzf.js";function G(j){return function(k,b,q){if(typeof b==="object"){if(b.kind==="field")return z(j)(k,b);return v(j)(k,b)}if(q)return u(j)(k,b,q);return w(j)(k,b)}}
2
- export{G as B};
3
-
4
- //# debugId=18BD725C32637F8D64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/context/decorators/context-selector.ts"],
4
- "sourcesContent": [
5
- "import type {\n\tLegacyFieldDecoratorArgs,\n\tLegacyMethodDecoratorArgs,\n\tMethod,\n\tStandardFieldDecoratorArgs,\n\tStandardMethodDecoratorArgs,\n} from '../../types';\nimport type { RadiantElement } from '../../core/radiant-element';\nimport type { Context, ContextType, UnknownContext } from '../types';\nimport type { OnContextUpdateOptions } from './on-context-update';\nimport { contextSelector as legacyContextSelectorMethod } from './legacy/context-selector';\nimport { contextSelector as standardContextSelectorMethod } from './standard/context-selector';\nimport { contextSelectorField as legacyContextSelectorField } from './legacy/context-selector-field';\nimport { contextSelectorField as standardContextSelectorField } from './standard/context-selector-field';\n\nexport type ContextSelectorOptions<T extends UnknownContext, Selected = ContextType<T>> = {\n\t/** Context token to resolve from ancestor providers. */\n\tcontext: T;\n\t/** Optional projection that narrows the resolved context before delivery. */\n\tselect?: (context: ContextType<T>) => Selected;\n\t/** Whether client-side event-channel subscriptions should stay active after the first value. */\n\tsubscribe?: boolean;\n};\n\ntype ContextUpdateMethod<Selected> = (value: Selected) => unknown;\n\ntype ContextSelectorDecorator<Selected> = {\n\t<Host extends RadiantElement>(\n\t\tprotoOrTarget: undefined,\n\t\tnameOrContext: ClassFieldDecoratorContext<Host, Selected>,\n\t): (this: Host, initialValue: Selected) => Selected;\n\t<Host extends RadiantElement, TMethod extends ContextUpdateMethod<Selected>>(\n\t\tprotoOrTarget: TMethod,\n\t\tnameOrContext: ClassMethodDecoratorContext<Host, TMethod>,\n\t): void;\n\t(protoOrTarget: RadiantElement, nameOrContext: string): void;\n\t(\n\t\tprotoOrTarget: RadiantElement,\n\t\tnameOrContext: string,\n\t\tdescriptor: TypedPropertyDescriptor<ContextUpdateMethod<Selected>>,\n\t): TypedPropertyDescriptor<ContextUpdateMethod<Selected>> | void;\n};\n\n/**\n * Subscribes a field or method to the current value, or a selected slice, of a context.\n *\n * **Field form (preferred):** The field holds the latest context value and is\n * updated whenever the provider changes. On `RadiantComponent` hosts, each\n * update schedules `requestUpdate()` automatically so `render()` stays in sync.\n *\n * **Method form (deprecated — use `@onContextUpdate`):** The method is called\n * with the new value on each change.\n *\n * @param options Context subscription configuration.\n */\nexport function contextSelector<T extends Context<unknown, unknown>, Selected = ContextType<T>>(\n\toptions: ContextSelectorOptions<T, Selected>,\n): ContextSelectorDecorator<Selected> {\n\treturn function (\n\t\tprotoOrTarget: RadiantElement | Method | undefined,\n\t\tnameOrContext:\n\t\t\t| string\n\t\t\t| ClassFieldDecoratorContext<RadiantElement, Selected>\n\t\t\t| ClassMethodDecoratorContext<RadiantElement, ContextUpdateMethod<Selected>>,\n\t\tdescriptor?: TypedPropertyDescriptor<ContextUpdateMethod<Selected>>,\n\t):\n\t\t| ((this: RadiantElement, initialValue: Selected) => Selected)\n\t\t| TypedPropertyDescriptor<ContextUpdateMethod<Selected>>\n\t\t| void {\n\t\tif (typeof nameOrContext === 'object') {\n\t\t\tif (nameOrContext.kind === 'field') {\n\t\t\t\treturn standardContextSelectorField(options)(\n\t\t\t\t\tprotoOrTarget as StandardFieldDecoratorArgs<RadiantElement, Selected>['protoOrTarget'],\n\t\t\t\t\tnameOrContext as StandardFieldDecoratorArgs<RadiantElement, Selected>['nameOrContext'],\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn standardContextSelectorMethod(options as OnContextUpdateOptions<T, Selected>)(\n\t\t\t\tprotoOrTarget as StandardMethodDecoratorArgs['protoOrTarget'],\n\t\t\t\tnameOrContext as StandardMethodDecoratorArgs['nameOrContext'],\n\t\t\t);\n\t\t}\n\n\t\tif (descriptor) {\n\t\t\treturn legacyContextSelectorMethod(options as OnContextUpdateOptions<T, Selected>)(\n\t\t\t\tprotoOrTarget as LegacyMethodDecoratorArgs['protoOrTarget'],\n\t\t\t\tnameOrContext as LegacyMethodDecoratorArgs['nameOrContext'],\n\t\t\t\tdescriptor as LegacyMethodDecoratorArgs['descriptor'],\n\t\t\t);\n\t\t}\n\n\t\treturn legacyContextSelectorField(options)(\n\t\t\tprotoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n\t\t\tnameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n\t\t);\n\t} as ContextSelectorDecorator<Selected>;\n}\n"
6
- ],
7
- "mappings": "kLAuDO,GAAS,LAA+E,LAC9F,EACqC,CACrC,OAAO,QAAS,CACf,EACA,EAIA,EAIO,CACP,GAAI,OAAO,IAAkB,SAAU,CACtC,GAAI,EAAc,OAAS,QAC1B,OAAO,EAA6B,CAAO,EAC1C,EACA,CACD,EAGD,OAAO,EAA8B,CAA8C,EAClF,EACA,CACD,EAGD,GAAI,EACH,OAAO,EAA4B,CAA8C,EAChF,EACA,EACA,CACD,EAGD,OAAO,EAA2B,CAAO,EACxC,EACA,CACD",
8
- "debugId": "18BD725C32637F8D64756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- import{za as F}from"./chunk-eyw14d6y.js";import{Na as A}from"./chunk-cnyxrh9r.js";import{db as H,eb as O,fb as M,gb as L}from"./chunk-66e6s792.js";import{createSubscribableJsxValue as I}from"@ecopages/jsx";import{trackDependency as x}from"@ecopages/signals";var z=D();class B{read;subscribers=new Set;watcherListeners=new Set;version=0;constructor(j){this.read=j}get(){return x(this),this.read()}subscribe(j){return this.subscribers.add(j),()=>{this.subscribers.delete(j)}}addWatcher(j){return this.watcherListeners.add(j),()=>{this.watcherListeners.delete(j)}}getVersion(){return this.version}notify(j){this.version+=1;let G;try{this.notifyWatchers()}catch(Q){G=Q}if(this.publish(j),G)throw G}publish(j){for(let G of this.subscribers)G(j)}notifyWatchers(){let j=[];for(let G of this.watcherListeners)try{G()}catch(Q){j.push(Q)}if(j.length===1)throw j[0];if(j.length>1)throw AggregateError(j,"Multiple reactive dependency notifications failed.")}}function D(){if(typeof HTMLElement<"u")return HTMLElement;throw Error("RadiantElement requires HTMLElement. Install '@ecopages/radiant/server/light-dom-shim' before importing Radiant components in SSR.")}class K extends z{bindings;$;reactiveProperties=new Map;reactiveFields=new Map;reactiveDependencies=new Map;reactiveDependencyReaders=new Map;reactiveBindings=new Map;contextProviders=new Map;hydrationBindings=new Map;updateCallbacks=new Map;eventSubscriptions=new Map;eventEmitters=new Map;onConnectedCallbacks=[];onDisconnectedCallback=[];elementReady=!1;constructor(){super();let j=this.createReactiveBindingNamespace();this.bindings=j,this.$=j,A(this)}createReactiveBindingNamespace(){return new Proxy(Object.create(null),{get:(j,G)=>{if(typeof G!=="string")return;return this.getReactiveBinding(G)}})}connectedCallback(){this.elementReady=!0;for(let j of this.onConnectedCallbacks)j()}connectedContextCallback(j){}disconnectedCallback(){this.removeAllSubscribedEvents();for(let j of this.onDisconnectedCallback)j()}notifyUpdate(j,G,Q){if(G===Q)return;this.reactiveDependencies.get(j)?.notify(Q);let U=this.updateCallbacks.get(j);if(U)for(let X of U)X()}transformAttributeValue(j,G){return j!==null?G?.converter.fromAttribute(j):j}attributeChangedCallback(j,G,Q){if(G===Q||!this.elementReady)return;if(this.reactiveProperties.has(j)){let U=this.reactiveProperties.get(j),X=this.transformAttributeValue(Q,U),Y=this.transformAttributeValue(G,U),Z=U?U.attribute:j;this[Z]=X,this.notifyUpdate(j,Y,X)}}renderTemplate({target:j=this,template:G,insert:Q="replace",sanitize:U}){let X=U?U(G):G;switch(Q){case"replace":j.innerHTML=X;break;case"beforeend":j.insertAdjacentHTML("beforeend",X);break;case"afterbegin":j.insertAdjacentHTML("afterbegin",X);break;case"beforebegin":j.insertAdjacentHTML("beforebegin",X);break;case"afterend":j.insertAdjacentHTML("afterend",X);break}}registerReactiveProperty(j){this.reactiveProperties.set(j.name,j)}getReactiveProperties(){return Array.from(this.reactiveProperties.values())}registerReactiveField(j){this.reactiveFields.set(j.name,j)}registerReactiveDependencyReader(j,G){this.reactiveDependencyReaders.set(j,G)}registerContextProvider(j,G){this.contextProviders.set(j,G),this.registerHydrationBinding(j,G)}registerHydrationBinding(j,G){this.hydrationBindings.set(j,G)}getContextProviders(){return Array.from(this.contextProviders.values())}getHydrationBindings(){return Array.from(this.hydrationBindings.values())}prepareForSsr(){F(this)}shouldAutoBindReactiveMembers(){return!1}registerUpdateCallback(j,G){if(!this.updateCallbacks.has(j))this.updateCallbacks.set(j,new Set);let Q=this.updateCallbacks.get(j);return Q.add(G),()=>{if(Q.delete(G),Q.size===0)this.updateCallbacks.delete(j)}}getReactiveBinding(j){let G=this.reactiveBindings.get(j);if(G)return G;let Q=I({getValue:()=>this.readReactiveBindingValue(j),subscribe:(U)=>this.registerUpdateCallback(j,()=>{U(this.readReactiveBindingValue(j))})});return this.reactiveBindings.set(j,Q),Q}bind(j){return this.getReactiveBinding(j)}defineReactiveBinding(j,G=!0){let Q=typeof G==="string"?G:G?`$${j}`:void 0;if(!Q||Object.prototype.hasOwnProperty.call(this,Q))return;Object.defineProperty(this,Q,{get:function(){return this.getReactiveBinding(j)},enumerable:!1,configurable:!0})}getReactiveDependency(j){let G=this.reactiveDependencies.get(j);if(G)return G;let Q=new B(()=>this.readReactiveDependencyValue(j));return this.reactiveDependencies.set(j,Q),Q}trackReactiveRead(j){x(this.getReactiveDependency(j))}readReactiveDependencyValue(j){let G=this.reactiveDependencyReaders.get(j);if(G)return G();return this.readReactiveBindingValue(j)}readReactiveBindingValue(j){let G=this[j];if(P(G))return G.get();return G}subscribeEvents(j){let G=[];for(let Q of j)G.push(this.subscribeEvent(Q));return G}subscribeEvent(j){let G=(U)=>{if(U.target&&U.target.matches(j.selector))j.listener.call(this,U)},Q=`${j.type}:${j.selector}`;return this.addEventListener(j.type,G,j.options),this.eventSubscriptions.set(Q,{...j,listener:G}),this.unsubscribeEvent.bind(this,Q)}unsubscribeEvent(j){let G=this.eventSubscriptions.get(j);if(G)this.removeEventListener(G.type,G.listener,G.options),this.eventSubscriptions.delete(j)}removeAllSubscribedEvents(){for(let j of this.eventSubscriptions.values())this.removeEventListener(j.type,j.listener,j.options);this.eventSubscriptions.clear()}registerCleanupCallback(j){this.onDisconnectedCallback.push(j)}registerConnectedCallback(j){this.onConnectedCallbacks.push(j)}registerEventEmitter(j,G){this.eventEmitters.set(j,G)}getRef(j,G=!1){let Q=`[data-ref="${j}"]`;if(G)return Array.from(this.querySelectorAll(Q));return this.querySelector(Q)??null}createReactiveField(j,G,Q={}){let U=Q.bind??this.shouldAutoBindReactiveMembers(),X={name:j,value:G,initialValue:G};this.registerReactiveField(X),this.defineReactiveBinding(j,U),this.registerReactiveDependencyReader(j,()=>this.reactiveFields.get(j)?.value),Object.defineProperty(this,j,{get(){return this.trackReactiveRead(j),this.reactiveFields.get(j)?.value??void 0},set(Y){let Z=this.reactiveFields.get(j)?.value;if(Z!==Y)this.reactiveFields.set(j,{...X,value:Y}),this.notifyUpdate(j,Z,Y)},enumerable:!0,configurable:!0}),this.notifyUpdate(j,void 0,G)}createReactiveProp(j,G){let{type:Q,attribute:U,reflect:X,defaultValue:Y}=G,Z=G.bind??this.shouldAutoBindReactiveMembers(),_=U??j;if(Y!==void 0&&!M(Q,Y))throw Error(`defaultValue does not match the expected type for ${Q.name}`);let $=L(this,Q,_,Y);if(this.hasAttribute(_)&&(!X||$==null||$===""))this.removeAttribute(_);let T={type:Q,name:j,value:$,initialValue:$,attribute:_,converter:{fromAttribute:(W)=>H(W,Q),toAttribute:(W)=>O(W,Q)}};this.registerReactiveProperty(T),this.defineReactiveBinding(j,Z),this.registerReactiveDependencyReader(j,()=>this.reactiveProperties.get(j)?.value);let q=(W)=>{if(X)if(W==null||W===""||W===!1)this.removeAttribute(_);else{let J=T.converter.toAttribute(W);this.setAttribute(_,J)}};if(Object.defineProperty(this,j,{get:function(){return this.trackReactiveRead(j),this.reactiveProperties.get(j)?.value??void 0},set:function(W){let J=this.reactiveProperties.get(j)?.value;if(J!==W)this.reactiveProperties.set(j,{...T,value:W}),q(W),this.notifyUpdate(j,J,W)},enumerable:!0,configurable:!0}),$!==void 0)queueMicrotask(()=>{let W=this.reactiveProperties.get(j)?.value;if(W===void 0)return;q(W),this.notifyUpdate(j,void 0,W)})}}function P(j){return typeof j==="object"&&j!==null&&typeof j.get==="function"}
2
- export{K as Y};
3
-
4
- //# debugId=E825FDA4BDC6619564756E2164756E21