@axium/server 0.26.0 → 0.26.2

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 (258) hide show
  1. package/dist/api/acl.js +2 -4
  2. package/dist/cli.js +1 -1
  3. package/dist/config.d.ts +2 -0
  4. package/dist/config.js +5 -1
  5. package/dist/internal_requests.js +1 -1
  6. package/package.json +2 -3
  7. package/build/client/_app/immutable/assets/account.dAAx7bby.css +0 -1
  8. package/build/client/_app/immutable/assets/account.dAAx7bby.css.br +0 -0
  9. package/build/client/_app/immutable/assets/account.dAAx7bby.css.gz +0 -0
  10. package/build/client/_app/immutable/assets/list.DVGH0BeP.css +0 -1
  11. package/build/client/_app/immutable/assets/list.DVGH0BeP.css.br +0 -0
  12. package/build/client/_app/immutable/assets/list.DVGH0BeP.css.gz +0 -0
  13. package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css +0 -1
  14. package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css.br +0 -2
  15. package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css.gz +0 -0
  16. package/build/client/_app/immutable/chunks/46qGscyh.js +0 -2
  17. package/build/client/_app/immutable/chunks/46qGscyh.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/46qGscyh.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/B2Vkpbkw.js +0 -2
  20. package/build/client/_app/immutable/chunks/B2Vkpbkw.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/B2Vkpbkw.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/BKixenYx.js +0 -1
  23. package/build/client/_app/immutable/chunks/BKixenYx.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/BKixenYx.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/BLtAtlP3.js +0 -1
  26. package/build/client/_app/immutable/chunks/BLtAtlP3.js.br +0 -2
  27. package/build/client/_app/immutable/chunks/BLtAtlP3.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/BNTlty5m.js +0 -1
  29. package/build/client/_app/immutable/chunks/BNTlty5m.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/BNTlty5m.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/Beh6Ec8J.js +0 -1
  32. package/build/client/_app/immutable/chunks/Beh6Ec8J.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/Beh6Ec8J.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/BrUe-Qen.js +0 -1
  35. package/build/client/_app/immutable/chunks/BrUe-Qen.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/BrUe-Qen.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/Bs4cD_pX.js +0 -1
  38. package/build/client/_app/immutable/chunks/Bs4cD_pX.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/Bs4cD_pX.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/C62F-tXu.js +0 -1
  41. package/build/client/_app/immutable/chunks/C62F-tXu.js.br +0 -1
  42. package/build/client/_app/immutable/chunks/C62F-tXu.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/CUBtP2L9.js +0 -23
  44. package/build/client/_app/immutable/chunks/CUBtP2L9.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/CUBtP2L9.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/Ch16TNvP.js +0 -1
  47. package/build/client/_app/immutable/chunks/Ch16TNvP.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/Ch16TNvP.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/CoYD6HNm.js +0 -1
  50. package/build/client/_app/immutable/chunks/CoYD6HNm.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/CoYD6HNm.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/D40Zn55h.js +0 -1
  53. package/build/client/_app/immutable/chunks/D40Zn55h.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/D40Zn55h.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/DW7-1esk.js +0 -21
  56. package/build/client/_app/immutable/chunks/DW7-1esk.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/DW7-1esk.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/DY4fWHx_.js +0 -1
  59. package/build/client/_app/immutable/chunks/DY4fWHx_.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DY4fWHx_.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/DvOBbqVY.js +0 -1
  62. package/build/client/_app/immutable/chunks/DvOBbqVY.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/DvOBbqVY.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/DwZYWemd.js +0 -1
  65. package/build/client/_app/immutable/chunks/DwZYWemd.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/DwZYWemd.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/Dy2Ho0cF.js +0 -1
  68. package/build/client/_app/immutable/chunks/Dy2Ho0cF.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/Dy2Ho0cF.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/FTv0qR3w.js +0 -1
  71. package/build/client/_app/immutable/chunks/FTv0qR3w.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/FTv0qR3w.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/NeK0YGoY.js +0 -1
  74. package/build/client/_app/immutable/chunks/NeK0YGoY.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/NeK0YGoY.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/aArGsq9c.js +0 -1
  77. package/build/client/_app/immutable/chunks/aArGsq9c.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/aArGsq9c.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/lH47zGKU.js +0 -1
  80. package/build/client/_app/immutable/chunks/lH47zGKU.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/lH47zGKU.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/sMHjBQqw.js +0 -1
  83. package/build/client/_app/immutable/chunks/sMHjBQqw.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/sMHjBQqw.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/vQfHcJV6.js +0 -2
  86. package/build/client/_app/immutable/chunks/vQfHcJV6.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/vQfHcJV6.js.gz +0 -0
  88. package/build/client/_app/immutable/entry/app.pLVZKpSD.js +0 -2
  89. package/build/client/_app/immutable/entry/app.pLVZKpSD.js.br +0 -0
  90. package/build/client/_app/immutable/entry/app.pLVZKpSD.js.gz +0 -0
  91. package/build/client/_app/immutable/entry/start.CUaVsIrY.js +0 -1
  92. package/build/client/_app/immutable/entry/start.CUaVsIrY.js.br +0 -2
  93. package/build/client/_app/immutable/entry/start.CUaVsIrY.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/0.D7hET-Bq.js +0 -1
  95. package/build/client/_app/immutable/nodes/0.D7hET-Bq.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/0.D7hET-Bq.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/1.BWU-JJm_.js +0 -1
  98. package/build/client/_app/immutable/nodes/1.BWU-JJm_.js.br +0 -2
  99. package/build/client/_app/immutable/nodes/1.BWU-JJm_.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/10.C5N2XBee.js +0 -1
  101. package/build/client/_app/immutable/nodes/10.C5N2XBee.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/10.C5N2XBee.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/11.CerbuSAv.js +0 -1
  104. package/build/client/_app/immutable/nodes/11.CerbuSAv.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/11.CerbuSAv.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/12.Z4B9zS78.js +0 -1
  107. package/build/client/_app/immutable/nodes/12.Z4B9zS78.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/12.Z4B9zS78.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/13.CuICShck.js +0 -1
  110. package/build/client/_app/immutable/nodes/13.CuICShck.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/13.CuICShck.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/14.BSEF5oaF.js +0 -1
  113. package/build/client/_app/immutable/nodes/14.BSEF5oaF.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/14.BSEF5oaF.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/15.D1nsmo6j.js +0 -1
  116. package/build/client/_app/immutable/nodes/15.D1nsmo6j.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/15.D1nsmo6j.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js +0 -1
  119. package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/3.BJp2JEtW.js +0 -1
  122. package/build/client/_app/immutable/nodes/3.BJp2JEtW.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/3.BJp2JEtW.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js +0 -1
  125. package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/5.DgPP9GX3.js +0 -1
  128. package/build/client/_app/immutable/nodes/5.DgPP9GX3.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/5.DgPP9GX3.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/6.DKIzms8i.js +0 -2
  131. package/build/client/_app/immutable/nodes/6.DKIzms8i.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/6.DKIzms8i.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/7.3UigVXV4.js +0 -1
  134. package/build/client/_app/immutable/nodes/7.3UigVXV4.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/7.3UigVXV4.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js +0 -1
  137. package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/9.LBMMe2kc.js +0 -1
  140. package/build/client/_app/immutable/nodes/9.LBMMe2kc.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/9.LBMMe2kc.js.gz +0 -0
  142. package/build/client/_app/version.json +0 -1
  143. package/build/client/_app/version.json.br +0 -0
  144. package/build/client/_app/version.json.gz +0 -0
  145. package/build/client/icons/brands.svg +0 -1493
  146. package/build/client/icons/brands.svg.br +0 -0
  147. package/build/client/icons/brands.svg.gz +0 -0
  148. package/build/client/icons/light.svg +0 -9977
  149. package/build/client/icons/light.svg.br +0 -0
  150. package/build/client/icons/light.svg.gz +0 -0
  151. package/build/client/icons/regular.svg +0 -9977
  152. package/build/client/icons/regular.svg.br +0 -0
  153. package/build/client/icons/regular.svg.gz +0 -0
  154. package/build/client/icons/solid.svg +0 -9977
  155. package/build/client/icons/solid.svg.br +0 -0
  156. package/build/client/icons/solid.svg.gz +0 -0
  157. package/build/client/styles.css +0 -168
  158. package/build/client/styles.css.br +0 -0
  159. package/build/client/styles.css.gz +0 -0
  160. package/build/client/theme.css +0 -42
  161. package/build/client/theme.css.br +0 -0
  162. package/build/client/theme.css.gz +0 -0
  163. package/build/env.js +0 -45
  164. package/build/handler.js +0 -1390
  165. package/build/index.js +0 -334
  166. package/build/server/chunks/0-CNbALTKz.js +0 -9
  167. package/build/server/chunks/0-CNbALTKz.js.map +0 -1
  168. package/build/server/chunks/1-Dgxy393u.js +0 -9
  169. package/build/server/chunks/1-Dgxy393u.js.map +0 -1
  170. package/build/server/chunks/10-DovmbqKa.js +0 -14
  171. package/build/server/chunks/10-DovmbqKa.js.map +0 -1
  172. package/build/server/chunks/11-CRK_ubcl.js +0 -14
  173. package/build/server/chunks/11-CRK_ubcl.js.map +0 -1
  174. package/build/server/chunks/12-SbQlwMfe.js +0 -9
  175. package/build/server/chunks/12-SbQlwMfe.js.map +0 -1
  176. package/build/server/chunks/13-CbniIW7F.js +0 -14
  177. package/build/server/chunks/13-CbniIW7F.js.map +0 -1
  178. package/build/server/chunks/14-D9Vb_8Yx.js +0 -9
  179. package/build/server/chunks/14-D9Vb_8Yx.js.map +0 -1
  180. package/build/server/chunks/15-D-75Hdef.js +0 -9
  181. package/build/server/chunks/15-D-75Hdef.js.map +0 -1
  182. package/build/server/chunks/2-57exN8ae.js +0 -14
  183. package/build/server/chunks/2-57exN8ae.js.map +0 -1
  184. package/build/server/chunks/3-DNQft-pY.js +0 -9
  185. package/build/server/chunks/3-DNQft-pY.js.map +0 -1
  186. package/build/server/chunks/4-D9Bwp-f8.js +0 -14
  187. package/build/server/chunks/4-D9Bwp-f8.js.map +0 -1
  188. package/build/server/chunks/5-COEQwZNP.js +0 -14
  189. package/build/server/chunks/5-COEQwZNP.js.map +0 -1
  190. package/build/server/chunks/6-RT4yiDcP.js +0 -14
  191. package/build/server/chunks/6-RT4yiDcP.js.map +0 -1
  192. package/build/server/chunks/7-CVqF_r5D.js +0 -14
  193. package/build/server/chunks/7-CVqF_r5D.js.map +0 -1
  194. package/build/server/chunks/8-C5SO-sVH.js +0 -14
  195. package/build/server/chunks/8-C5SO-sVH.js.map +0 -1
  196. package/build/server/chunks/9-DoCOKtY-.js +0 -14
  197. package/build/server/chunks/9-DoCOKtY-.js.map +0 -1
  198. package/build/server/chunks/FormDialog-ZCY0chY1.js +0 -102
  199. package/build/server/chunks/FormDialog-ZCY0chY1.js.map +0 -1
  200. package/build/server/chunks/Icon-BVo9qbDf.js +0 -30
  201. package/build/server/chunks/Icon-BVo9qbDf.js.map +0 -1
  202. package/build/server/chunks/Logout-CmBZgu0j.js +0 -46
  203. package/build/server/chunks/Logout-CmBZgu0j.js.map +0 -1
  204. package/build/server/chunks/_layout.svelte-DuS006VZ.js +0 -33
  205. package/build/server/chunks/_layout.svelte-DuS006VZ.js.map +0 -1
  206. package/build/server/chunks/_page.svelte-BFVobcI7.js +0 -14
  207. package/build/server/chunks/_page.svelte-BFVobcI7.js.map +0 -1
  208. package/build/server/chunks/_page.svelte-B_cvhWJS.js +0 -66
  209. package/build/server/chunks/_page.svelte-B_cvhWJS.js.map +0 -1
  210. package/build/server/chunks/_page.svelte-BriaBR9l.js +0 -28
  211. package/build/server/chunks/_page.svelte-BriaBR9l.js.map +0 -1
  212. package/build/server/chunks/_page.svelte-BtQQzT7H.js +0 -72
  213. package/build/server/chunks/_page.svelte-BtQQzT7H.js.map +0 -1
  214. package/build/server/chunks/_page.svelte-C8D3c3yB.js +0 -64
  215. package/build/server/chunks/_page.svelte-C8D3c3yB.js.map +0 -1
  216. package/build/server/chunks/_page.svelte-CVSb9eHQ.js +0 -24
  217. package/build/server/chunks/_page.svelte-CVSb9eHQ.js.map +0 -1
  218. package/build/server/chunks/_page.svelte-CwRjZqL7.js +0 -107
  219. package/build/server/chunks/_page.svelte-CwRjZqL7.js.map +0 -1
  220. package/build/server/chunks/_page.svelte-D9A9RYjx.js +0 -233
  221. package/build/server/chunks/_page.svelte-D9A9RYjx.js.map +0 -1
  222. package/build/server/chunks/_page.svelte-DGhwqWMM.js +0 -34
  223. package/build/server/chunks/_page.svelte-DGhwqWMM.js.map +0 -1
  224. package/build/server/chunks/_page.svelte-DTvnX95_.js +0 -75
  225. package/build/server/chunks/_page.svelte-DTvnX95_.js.map +0 -1
  226. package/build/server/chunks/_page.svelte-DUfwpXfC.js +0 -122
  227. package/build/server/chunks/_page.svelte-DUfwpXfC.js.map +0 -1
  228. package/build/server/chunks/_page.svelte-DxDoD3rZ.js +0 -37
  229. package/build/server/chunks/_page.svelte-DxDoD3rZ.js.map +0 -1
  230. package/build/server/chunks/_page.svelte-VDBvShZ8.js +0 -6
  231. package/build/server/chunks/_page.svelte-VDBvShZ8.js.map +0 -1
  232. package/build/server/chunks/account-Bf_llRe2.js +0 -446
  233. package/build/server/chunks/account-Bf_llRe2.js.map +0 -1
  234. package/build/server/chunks/auth_redirect-olBYiIF2.js +0 -24
  235. package/build/server/chunks/auth_redirect-olBYiIF2.js.map +0 -1
  236. package/build/server/chunks/color-K_MR7m8s.js +0 -14
  237. package/build/server/chunks/color-K_MR7m8s.js.map +0 -1
  238. package/build/server/chunks/context-R2425nfV.js +0 -64
  239. package/build/server/chunks/context-R2425nfV.js.map +0 -1
  240. package/build/server/chunks/error.svelte-CkSCwrMJ.js +0 -47
  241. package/build/server/chunks/error.svelte-CkSCwrMJ.js.map +0 -1
  242. package/build/server/chunks/index-CIEcmmdN.js +0 -890
  243. package/build/server/chunks/index-CIEcmmdN.js.map +0 -1
  244. package/build/server/chunks/index-Tt4zVDIZ.js +0 -5345
  245. package/build/server/chunks/index-Tt4zVDIZ.js.map +0 -1
  246. package/build/server/chunks/layout.svelte-UxsTmhKc.js +0 -8
  247. package/build/server/chunks/layout.svelte-UxsTmhKc.js.map +0 -1
  248. package/build/server/chunks/numbers-DL8C9q4W.js +0 -354
  249. package/build/server/chunks/numbers-DL8C9q4W.js.map +0 -1
  250. package/build/server/chunks/user2-CRfK67II.js +0 -716
  251. package/build/server/chunks/user2-CRfK67II.js.map +0 -1
  252. package/build/server/chunks/utils-h74ns7K6.js +0 -286
  253. package/build/server/chunks/utils-h74ns7K6.js.map +0 -1
  254. package/build/server/index.js +0 -8115
  255. package/build/server/index.js.map +0 -1
  256. package/build/server/manifest.js +0 -143
  257. package/build/server/manifest.js.map +0 -1
  258. package/build/shims.js +0 -32
@@ -1,890 +0,0 @@
1
- import { a as set_ssr_context, b as ssr_context, p as push, c as pop, e as escape_html } from './context-R2425nfV.js';
2
-
3
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx$1(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
4
-
5
- const DERIVED = 1 << 1;
6
- const EFFECT = 1 << 2;
7
- const RENDER_EFFECT = 1 << 3;
8
- const BLOCK_EFFECT = 1 << 4;
9
- const BRANCH_EFFECT = 1 << 5;
10
- const ROOT_EFFECT = 1 << 6;
11
- const BOUNDARY_EFFECT = 1 << 7;
12
- const CLEAN = 1 << 10;
13
- const DIRTY = 1 << 11;
14
- const MAYBE_DIRTY = 1 << 12;
15
- const INERT = 1 << 13;
16
- const DESTROYED = 1 << 14;
17
- const EFFECT_RAN = 1 << 15;
18
- const EFFECT_TRANSPARENT = 1 << 16;
19
- const EAGER_EFFECT = 1 << 17;
20
- const HEAD_EFFECT = 1 << 18;
21
- const EFFECT_PRESERVED = 1 << 19;
22
- const USER_EFFECT = 1 << 20;
23
- const UNOWNED = 1 << 8;
24
- const DISCONNECTED = 1 << 9;
25
- const WAS_MARKED = 1 << 15;
26
- const REACTION_IS_UPDATING = 1 << 21;
27
- const ASYNC = 1 << 22;
28
- const ERROR_VALUE = 1 << 23;
29
- const STATE_SYMBOL = Symbol("$state");
30
- const LEGACY_PROPS = Symbol("legacy props");
31
- const STALE_REACTION = new class StaleReactionError extends Error {
32
- name = "StaleReactionError";
33
- message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
34
- }();
35
- const COMMENT_NODE = 8;
36
- const HYDRATION_START = "[";
37
- const HYDRATION_START_ELSE = "[!";
38
- const HYDRATION_END = "]";
39
- const HYDRATION_ERROR = {};
40
- const ELEMENT_IS_NAMESPACED = 1;
41
- const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
42
- const ELEMENT_IS_INPUT = 1 << 2;
43
- const UNINITIALIZED = Symbol();
44
- const DOM_BOOLEAN_ATTRIBUTES = [
45
- "allowfullscreen",
46
- "async",
47
- "autofocus",
48
- "autoplay",
49
- "checked",
50
- "controls",
51
- "default",
52
- "disabled",
53
- "formnovalidate",
54
- "indeterminate",
55
- "inert",
56
- "ismap",
57
- "loop",
58
- "multiple",
59
- "muted",
60
- "nomodule",
61
- "novalidate",
62
- "open",
63
- "playsinline",
64
- "readonly",
65
- "required",
66
- "reversed",
67
- "seamless",
68
- "selected",
69
- "webkitdirectory",
70
- "defer",
71
- "disablepictureinpicture",
72
- "disableremoteplayback"
73
- ];
74
- function is_boolean_attribute(name) {
75
- return DOM_BOOLEAN_ATTRIBUTES.includes(name);
76
- }
77
- const PASSIVE_EVENTS = ["touchstart", "touchmove"];
78
- function is_passive_event(name) {
79
- return PASSIVE_EVENTS.includes(name);
80
- }
81
- const replacements = {
82
- translate: /* @__PURE__ */ new Map([
83
- [true, "yes"],
84
- [false, "no"]
85
- ])
86
- };
87
- function attr(name, value, is_boolean = false) {
88
- if (name === "hidden" && value !== "until-found") {
89
- is_boolean = true;
90
- }
91
- if (value == null || !value && is_boolean) return "";
92
- const normalized = name in replacements && replacements[name].get(value) || value;
93
- const assignment = is_boolean ? "" : `="${escape_html(normalized, true)}"`;
94
- return ` ${name}${assignment}`;
95
- }
96
- function clsx(value) {
97
- if (typeof value === "object") {
98
- return clsx$1(value);
99
- } else {
100
- return value ?? "";
101
- }
102
- }
103
- const whitespace = [..." \n\r\f \v\uFEFF"];
104
- function to_class(value, hash, directives) {
105
- var classname = value == null ? "" : "" + value;
106
- if (hash) {
107
- classname = classname ? classname + " " + hash : hash;
108
- }
109
- if (directives) {
110
- for (var key in directives) {
111
- if (directives[key]) {
112
- classname = classname ? classname + " " + key : key;
113
- } else if (classname.length) {
114
- var len = key.length;
115
- var a = 0;
116
- while ((a = classname.indexOf(key, a)) >= 0) {
117
- var b = a + len;
118
- if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) {
119
- classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1);
120
- } else {
121
- a = b;
122
- }
123
- }
124
- }
125
- }
126
- }
127
- return classname === "" ? null : classname;
128
- }
129
- function append_styles(styles, important = false) {
130
- var separator = important ? " !important;" : ";";
131
- var css = "";
132
- for (var key in styles) {
133
- var value = styles[key];
134
- if (value != null && value !== "") {
135
- css += " " + key + ": " + value + separator;
136
- }
137
- }
138
- return css;
139
- }
140
- function to_css_name(name) {
141
- if (name[0] !== "-" || name[1] !== "-") {
142
- return name.toLowerCase();
143
- }
144
- return name;
145
- }
146
- function to_style(value, styles) {
147
- if (styles) {
148
- var new_style = "";
149
- var normal_styles;
150
- var important_styles;
151
- if (Array.isArray(styles)) {
152
- normal_styles = styles[0];
153
- important_styles = styles[1];
154
- } else {
155
- normal_styles = styles;
156
- }
157
- if (value) {
158
- value = String(value).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
159
- var in_str = false;
160
- var in_apo = 0;
161
- var in_comment = false;
162
- var reserved_names = [];
163
- if (normal_styles) {
164
- reserved_names.push(...Object.keys(normal_styles).map(to_css_name));
165
- }
166
- if (important_styles) {
167
- reserved_names.push(...Object.keys(important_styles).map(to_css_name));
168
- }
169
- var start_index = 0;
170
- var name_index = -1;
171
- const len = value.length;
172
- for (var i = 0; i < len; i++) {
173
- var c = value[i];
174
- if (in_comment) {
175
- if (c === "/" && value[i - 1] === "*") {
176
- in_comment = false;
177
- }
178
- } else if (in_str) {
179
- if (in_str === c) {
180
- in_str = false;
181
- }
182
- } else if (c === "/" && value[i + 1] === "*") {
183
- in_comment = true;
184
- } else if (c === '"' || c === "'") {
185
- in_str = c;
186
- } else if (c === "(") {
187
- in_apo++;
188
- } else if (c === ")") {
189
- in_apo--;
190
- }
191
- if (!in_comment && in_str === false && in_apo === 0) {
192
- if (c === ":" && name_index === -1) {
193
- name_index = i;
194
- } else if (c === ";" || i === len - 1) {
195
- if (name_index !== -1) {
196
- var name = to_css_name(value.substring(start_index, name_index).trim());
197
- if (!reserved_names.includes(name)) {
198
- if (c !== ";") {
199
- i++;
200
- }
201
- var property = value.substring(start_index, i).trim();
202
- new_style += " " + property + ";";
203
- }
204
- }
205
- start_index = i + 1;
206
- name_index = -1;
207
- }
208
- }
209
- }
210
- }
211
- if (normal_styles) {
212
- new_style += append_styles(normal_styles);
213
- }
214
- if (important_styles) {
215
- new_style += append_styles(important_styles, true);
216
- }
217
- new_style = new_style.trim();
218
- return new_style === "" ? null : new_style;
219
- }
220
- return value == null ? null : String(value);
221
- }
222
- const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
223
- const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
224
- const EMPTY_COMMENT = `<!---->`;
225
- let controller = null;
226
- function abort() {
227
- controller?.abort(STALE_REACTION);
228
- controller = null;
229
- }
230
- function await_invalid() {
231
- const error = new Error(`await_invalid
232
- Encountered asynchronous work while rendering synchronously.
233
- https://svelte.dev/e/await_invalid`);
234
- error.name = "Svelte error";
235
- throw error;
236
- }
237
- class Renderer {
238
- /**
239
- * The contents of the renderer.
240
- * @type {RendererItem[]}
241
- */
242
- #out = [];
243
- /**
244
- * Any `onDestroy` callbacks registered during execution of this renderer.
245
- * @type {(() => void)[] | undefined}
246
- */
247
- #on_destroy = void 0;
248
- /**
249
- * Whether this renderer is a component body.
250
- * @type {boolean}
251
- */
252
- #is_component_body = false;
253
- /**
254
- * The type of string content that this renderer is accumulating.
255
- * @type {RendererType}
256
- */
257
- type;
258
- /** @type {Renderer | undefined} */
259
- #parent;
260
- /**
261
- * Asynchronous work associated with this renderer
262
- * @type {Promise<void> | undefined}
263
- */
264
- promise = void 0;
265
- /**
266
- * State which is associated with the content tree as a whole.
267
- * It will be re-exposed, uncopied, on all children.
268
- * @type {SSRState}
269
- * @readonly
270
- */
271
- global;
272
- /**
273
- * State that is local to the branch it is declared in.
274
- * It will be shallow-copied to all children.
275
- *
276
- * @type {{ select_value: string | undefined }}
277
- */
278
- local;
279
- /**
280
- * @param {SSRState} global
281
- * @param {Renderer | undefined} [parent]
282
- */
283
- constructor(global, parent) {
284
- this.#parent = parent;
285
- this.global = global;
286
- this.local = parent ? { ...parent.local } : { select_value: void 0 };
287
- this.type = parent ? parent.type : "body";
288
- }
289
- /**
290
- * @param {(renderer: Renderer) => void} fn
291
- */
292
- head(fn) {
293
- const head2 = new Renderer(this.global, this);
294
- head2.type = "head";
295
- this.#out.push(head2);
296
- head2.child(fn);
297
- }
298
- /**
299
- * @param {Array<Promise<void>>} blockers
300
- * @param {(renderer: Renderer) => void} fn
301
- */
302
- async_block(blockers, fn) {
303
- this.#out.push(BLOCK_OPEN);
304
- this.async(blockers, fn);
305
- this.#out.push(BLOCK_CLOSE);
306
- }
307
- /**
308
- * @param {Array<Promise<void>>} blockers
309
- * @param {(renderer: Renderer) => void} fn
310
- */
311
- async(blockers, fn) {
312
- let callback = fn;
313
- if (blockers.length > 0) {
314
- const context = ssr_context;
315
- callback = (renderer) => {
316
- return Promise.all(blockers).then(() => {
317
- const previous_context = ssr_context;
318
- try {
319
- set_ssr_context(context);
320
- return fn(renderer);
321
- } finally {
322
- set_ssr_context(previous_context);
323
- }
324
- });
325
- };
326
- }
327
- this.child(callback);
328
- }
329
- /**
330
- * @param {Array<() => void>} thunks
331
- */
332
- run(thunks) {
333
- const context = ssr_context;
334
- let promise = Promise.resolve(thunks[0]());
335
- const promises = [promise];
336
- for (const fn of thunks.slice(1)) {
337
- promise = promise.then(() => {
338
- const previous_context = ssr_context;
339
- set_ssr_context(context);
340
- try {
341
- return fn();
342
- } finally {
343
- set_ssr_context(previous_context);
344
- }
345
- });
346
- promises.push(promise);
347
- }
348
- return promises;
349
- }
350
- /**
351
- * Create a child renderer. The child renderer inherits the state from the parent,
352
- * but has its own content.
353
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
354
- */
355
- child(fn) {
356
- const child = new Renderer(this.global, this);
357
- this.#out.push(child);
358
- const parent = ssr_context;
359
- set_ssr_context({
360
- ...ssr_context,
361
- p: parent,
362
- c: null,
363
- r: child
364
- });
365
- const result = fn(child);
366
- set_ssr_context(parent);
367
- if (result instanceof Promise) {
368
- if (child.global.mode === "sync") {
369
- await_invalid();
370
- }
371
- result.catch(() => {
372
- });
373
- child.promise = result;
374
- }
375
- return child;
376
- }
377
- /**
378
- * Create a component renderer. The component renderer inherits the state from the parent,
379
- * but has its own content. It is treated as an ordering boundary for ondestroy callbacks.
380
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
381
- * @param {Function} [component_fn]
382
- * @returns {void}
383
- */
384
- component(fn, component_fn) {
385
- push();
386
- const child = this.child(fn);
387
- child.#is_component_body = true;
388
- pop();
389
- }
390
- /**
391
- * @param {Record<string, any>} attrs
392
- * @param {(renderer: Renderer) => void} fn
393
- * @param {string | undefined} [css_hash]
394
- * @param {Record<string, boolean> | undefined} [classes]
395
- * @param {Record<string, string> | undefined} [styles]
396
- * @param {number | undefined} [flags]
397
- * @returns {void}
398
- */
399
- select(attrs, fn, css_hash, classes, styles, flags) {
400
- const { value, ...select_attrs } = attrs;
401
- this.push(`<select${attributes(select_attrs, css_hash, classes, styles, flags)}>`);
402
- this.child((renderer) => {
403
- renderer.local.select_value = value;
404
- fn(renderer);
405
- });
406
- this.push("</select>");
407
- }
408
- /**
409
- * @param {Record<string, any>} attrs
410
- * @param {string | number | boolean | ((renderer: Renderer) => void)} body
411
- * @param {string | undefined} [css_hash]
412
- * @param {Record<string, boolean> | undefined} [classes]
413
- * @param {Record<string, string> | undefined} [styles]
414
- * @param {number | undefined} [flags]
415
- */
416
- option(attrs, body, css_hash, classes, styles, flags) {
417
- this.#out.push(`<option${attributes(attrs, css_hash, classes, styles, flags)}`);
418
- const close = (renderer, value, { head: head2, body: body2 }) => {
419
- if ("value" in attrs) {
420
- value = attrs.value;
421
- }
422
- if (value === this.local.select_value) {
423
- renderer.#out.push(" selected");
424
- }
425
- renderer.#out.push(`>${body2}</option>`);
426
- if (head2) {
427
- renderer.head((child) => child.push(head2));
428
- }
429
- };
430
- if (typeof body === "function") {
431
- this.child((renderer) => {
432
- const r = new Renderer(this.global, this);
433
- body(r);
434
- if (this.global.mode === "async") {
435
- return r.#collect_content_async().then((content) => {
436
- close(renderer, content.body.replaceAll("<!---->", ""), content);
437
- });
438
- } else {
439
- const content = r.#collect_content();
440
- close(renderer, content.body.replaceAll("<!---->", ""), content);
441
- }
442
- });
443
- } else {
444
- close(this, body, { body });
445
- }
446
- }
447
- /**
448
- * @param {(renderer: Renderer) => void} fn
449
- */
450
- title(fn) {
451
- const path = this.get_path();
452
- const close = (head2) => {
453
- this.global.set_title(head2, path);
454
- };
455
- this.child((renderer) => {
456
- const r = new Renderer(renderer.global, renderer);
457
- fn(r);
458
- if (renderer.global.mode === "async") {
459
- return r.#collect_content_async().then((content) => {
460
- close(content.head);
461
- });
462
- } else {
463
- const content = r.#collect_content();
464
- close(content.head);
465
- }
466
- });
467
- }
468
- /**
469
- * @param {string | (() => Promise<string>)} content
470
- */
471
- push(content) {
472
- if (typeof content === "function") {
473
- this.child(async (renderer) => renderer.push(await content()));
474
- } else {
475
- this.#out.push(content);
476
- }
477
- }
478
- /**
479
- * @param {() => void} fn
480
- */
481
- on_destroy(fn) {
482
- (this.#on_destroy ??= []).push(fn);
483
- }
484
- /**
485
- * @returns {number[]}
486
- */
487
- get_path() {
488
- return this.#parent ? [...this.#parent.get_path(), this.#parent.#out.indexOf(this)] : [];
489
- }
490
- /**
491
- * @deprecated this is needed for legacy component bindings
492
- */
493
- copy() {
494
- const copy = new Renderer(this.global, this.#parent);
495
- copy.#out = this.#out.map((item) => item instanceof Renderer ? item.copy() : item);
496
- copy.promise = this.promise;
497
- return copy;
498
- }
499
- /**
500
- * @param {Renderer} other
501
- * @deprecated this is needed for legacy component bindings
502
- */
503
- subsume(other) {
504
- if (this.global.mode !== other.global.mode) {
505
- throw new Error(
506
- "invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!"
507
- );
508
- }
509
- this.local = other.local;
510
- this.#out = other.#out.map((item) => {
511
- if (item instanceof Renderer) {
512
- item.subsume(item);
513
- }
514
- return item;
515
- });
516
- this.promise = other.promise;
517
- this.type = other.type;
518
- }
519
- get length() {
520
- return this.#out.length;
521
- }
522
- /**
523
- * Only available on the server and when compiling with the `server` option.
524
- * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.
525
- * @template {Record<string, any>} Props
526
- * @param {Component<Props>} component
527
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} [options]
528
- * @returns {RenderOutput}
529
- */
530
- static render(component, options = {}) {
531
- let sync;
532
- const result = (
533
- /** @type {RenderOutput} */
534
- {}
535
- );
536
- Object.defineProperties(result, {
537
- html: {
538
- get: () => {
539
- return (sync ??= Renderer.#render(component, options)).body;
540
- }
541
- },
542
- head: {
543
- get: () => {
544
- return (sync ??= Renderer.#render(component, options)).head;
545
- }
546
- },
547
- body: {
548
- get: () => {
549
- return (sync ??= Renderer.#render(component, options)).body;
550
- }
551
- },
552
- then: {
553
- value: (
554
- /**
555
- * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
556
- *
557
- * @template TResult1
558
- * @template [TResult2=never]
559
- * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled
560
- * @param { (reason: unknown) => TResult2 } onrejected
561
- */
562
- (onfulfilled, onrejected) => {
563
- {
564
- const result2 = sync ??= Renderer.#render(component, options);
565
- const user_result = onfulfilled({
566
- head: result2.head,
567
- body: result2.body,
568
- html: result2.body
569
- });
570
- return Promise.resolve(user_result);
571
- }
572
- }
573
- )
574
- }
575
- });
576
- return result;
577
- }
578
- /**
579
- * Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call
580
- * after awaiting `collect_async`.
581
- *
582
- * Child renderers are "porous" and don't affect execution order, but component body renderers
583
- * create ordering boundaries. Within a renderer, callbacks run in order until hitting a component boundary.
584
- * @returns {Iterable<() => void>}
585
- */
586
- *#collect_on_destroy() {
587
- for (const component of this.#traverse_components()) {
588
- yield* component.#collect_ondestroy();
589
- }
590
- }
591
- /**
592
- * Performs a depth-first search of renderers, yielding the deepest components first, then additional components as we backtrack up the tree.
593
- * @returns {Iterable<Renderer>}
594
- */
595
- *#traverse_components() {
596
- for (const child of this.#out) {
597
- if (typeof child !== "string") {
598
- yield* child.#traverse_components();
599
- }
600
- }
601
- if (this.#is_component_body) {
602
- yield this;
603
- }
604
- }
605
- /**
606
- * @returns {Iterable<() => void>}
607
- */
608
- *#collect_ondestroy() {
609
- if (this.#on_destroy) {
610
- for (const fn of this.#on_destroy) {
611
- yield fn;
612
- }
613
- }
614
- for (const child of this.#out) {
615
- if (child instanceof Renderer && !child.#is_component_body) {
616
- yield* child.#collect_ondestroy();
617
- }
618
- }
619
- }
620
- /**
621
- * Render a component. Throws if any of the children are performing asynchronous work.
622
- *
623
- * @template {Record<string, any>} Props
624
- * @param {Component<Props>} component
625
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options
626
- * @returns {AccumulatedContent}
627
- */
628
- static #render(component, options) {
629
- var previous_context = ssr_context;
630
- try {
631
- const renderer = Renderer.#open_render("sync", component, options);
632
- const content = renderer.#collect_content();
633
- return Renderer.#close_render(content, renderer);
634
- } finally {
635
- abort();
636
- set_ssr_context(previous_context);
637
- }
638
- }
639
- /**
640
- * Render a component.
641
- *
642
- * @template {Record<string, any>} Props
643
- * @param {Component<Props>} component
644
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options
645
- * @returns {Promise<AccumulatedContent>}
646
- */
647
- static async #render_async(component, options) {
648
- var previous_context = ssr_context;
649
- try {
650
- const renderer = Renderer.#open_render("async", component, options);
651
- const content = await renderer.#collect_content_async();
652
- return Renderer.#close_render(content, renderer);
653
- } finally {
654
- abort();
655
- set_ssr_context(previous_context);
656
- }
657
- }
658
- /**
659
- * Collect all of the code from the `out` array and return it as a string, or a promise resolving to a string.
660
- * @param {AccumulatedContent} content
661
- * @returns {AccumulatedContent}
662
- */
663
- #collect_content(content = { head: "", body: "" }) {
664
- for (const item of this.#out) {
665
- if (typeof item === "string") {
666
- content[this.type] += item;
667
- } else if (item instanceof Renderer) {
668
- item.#collect_content(content);
669
- }
670
- }
671
- return content;
672
- }
673
- /**
674
- * Collect all of the code from the `out` array and return it as a string.
675
- * @param {AccumulatedContent} content
676
- * @returns {Promise<AccumulatedContent>}
677
- */
678
- async #collect_content_async(content = { head: "", body: "" }) {
679
- await this.promise;
680
- for (const item of this.#out) {
681
- if (typeof item === "string") {
682
- content[this.type] += item;
683
- } else if (item instanceof Renderer) {
684
- await item.#collect_content_async(content);
685
- }
686
- }
687
- return content;
688
- }
689
- /**
690
- * @template {Record<string, any>} Props
691
- * @param {'sync' | 'async'} mode
692
- * @param {import('svelte').Component<Props>} component
693
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options
694
- * @returns {Renderer}
695
- */
696
- static #open_render(mode, component, options) {
697
- const renderer = new Renderer(
698
- new SSRState(mode, options.idPrefix ? options.idPrefix + "-" : "")
699
- );
700
- renderer.push(BLOCK_OPEN);
701
- if (options.context) {
702
- push();
703
- ssr_context.c = options.context;
704
- ssr_context.r = renderer;
705
- }
706
- component(renderer, options.props ?? {});
707
- if (options.context) {
708
- pop();
709
- }
710
- renderer.push(BLOCK_CLOSE);
711
- return renderer;
712
- }
713
- /**
714
- * @param {AccumulatedContent} content
715
- * @param {Renderer} renderer
716
- */
717
- static #close_render(content, renderer) {
718
- for (const cleanup of renderer.#collect_on_destroy()) {
719
- cleanup();
720
- }
721
- let head2 = content.head + renderer.global.get_title();
722
- let body = content.body;
723
- for (const { hash, code } of renderer.global.css) {
724
- head2 += `<style id="${hash}">${code}</style>`;
725
- }
726
- return {
727
- head: head2,
728
- body
729
- };
730
- }
731
- }
732
- class SSRState {
733
- /** @readonly @type {'sync' | 'async'} */
734
- mode;
735
- /** @readonly @type {() => string} */
736
- uid;
737
- /** @readonly @type {Set<{ hash: string; code: string }>} */
738
- css = /* @__PURE__ */ new Set();
739
- /** @type {{ path: number[], value: string }} */
740
- #title = { path: [], value: "" };
741
- /**
742
- * @param {'sync' | 'async'} mode
743
- * @param {string} [id_prefix]
744
- */
745
- constructor(mode, id_prefix = "") {
746
- this.mode = mode;
747
- let uid = 1;
748
- this.uid = () => `${id_prefix}s${uid++}`;
749
- }
750
- get_title() {
751
- return this.#title.value;
752
- }
753
- /**
754
- * Performs a depth-first (lexicographic) comparison using the path. Rejects sets
755
- * from earlier than or equal to the current value.
756
- * @param {string} value
757
- * @param {number[]} path
758
- */
759
- set_title(value, path) {
760
- const current = this.#title.path;
761
- let i = 0;
762
- let l = Math.min(path.length, current.length);
763
- while (i < l && path[i] === current[i]) i += 1;
764
- if (path[i] === void 0) return;
765
- if (current[i] === void 0 || path[i] > current[i]) {
766
- this.#title.path = path;
767
- this.#title.value = value;
768
- }
769
- }
770
- }
771
- const INVALID_ATTR_NAME_CHAR_REGEX = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
772
- function render(component, options = {}) {
773
- return Renderer.render(
774
- /** @type {Component<Props>} */
775
- component,
776
- options
777
- );
778
- }
779
- function head(hash, renderer, fn) {
780
- renderer.head((renderer2) => {
781
- renderer2.push(`<!--${hash}-->`);
782
- renderer2.child(fn);
783
- renderer2.push(EMPTY_COMMENT);
784
- });
785
- }
786
- function css_props(renderer, is_html, props, component, dynamic = false) {
787
- const styles = style_object_to_string(props);
788
- {
789
- renderer.push(`<svelte-css-wrapper style="display: contents; ${styles}">`);
790
- }
791
- if (dynamic) {
792
- renderer.push("<!---->");
793
- }
794
- component();
795
- {
796
- renderer.push(`<!----></svelte-css-wrapper>`);
797
- }
798
- }
799
- function attributes(attrs, css_hash, classes, styles, flags = 0) {
800
- if (styles) {
801
- attrs.style = to_style(attrs.style, styles);
802
- }
803
- if (attrs.class) {
804
- attrs.class = clsx(attrs.class);
805
- }
806
- if (css_hash || classes) {
807
- attrs.class = to_class(attrs.class, css_hash, classes);
808
- }
809
- let attr_str = "";
810
- let name;
811
- const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0;
812
- const lowercase = (flags & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0;
813
- const is_input = (flags & ELEMENT_IS_INPUT) !== 0;
814
- for (name in attrs) {
815
- if (typeof attrs[name] === "function") continue;
816
- if (name[0] === "$" && name[1] === "$") continue;
817
- if (INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;
818
- var value = attrs[name];
819
- if (lowercase) {
820
- name = name.toLowerCase();
821
- }
822
- if (is_input) {
823
- if (name === "defaultvalue" || name === "defaultchecked") {
824
- name = name === "defaultvalue" ? "value" : "checked";
825
- if (attrs[name]) continue;
826
- }
827
- }
828
- attr_str += attr(name, value, is_html && is_boolean_attribute(name));
829
- }
830
- return attr_str;
831
- }
832
- function spread_props(props) {
833
- const merged_props = {};
834
- let key;
835
- for (let i = 0; i < props.length; i++) {
836
- const obj = props[i];
837
- for (key in obj) {
838
- const desc = Object.getOwnPropertyDescriptor(obj, key);
839
- if (desc) {
840
- Object.defineProperty(merged_props, key, desc);
841
- } else {
842
- merged_props[key] = obj[key];
843
- }
844
- }
845
- }
846
- return merged_props;
847
- }
848
- function stringify(value) {
849
- return typeof value === "string" ? value : value == null ? "" : value + "";
850
- }
851
- function style_object_to_string(style_object) {
852
- return Object.keys(style_object).filter(
853
- /** @param {any} key */
854
- (key) => style_object[key] != null && style_object[key] !== ""
855
- ).map(
856
- /** @param {any} key */
857
- (key) => `${key}: ${escape_html(style_object[key], true)};`
858
- ).join(" ");
859
- }
860
- function attr_class(value, hash, directives) {
861
- var result = to_class(value, hash, directives);
862
- return result ? ` class="${escape_html(result, true)}"` : "";
863
- }
864
- function attr_style(value, directives) {
865
- var result = to_style(value, directives);
866
- return result ? ` style="${escape_html(result, true)}"` : "";
867
- }
868
- function bind_props(props_parent, props_now) {
869
- for (const key in props_now) {
870
- const initial_value = props_parent[key];
871
- const value = props_now[key];
872
- if (initial_value === void 0 && value !== void 0 && Object.getOwnPropertyDescriptor(props_parent, key)?.set) {
873
- props_parent[key] = value;
874
- }
875
- }
876
- }
877
- function ensure_array_like(array_like_or_iterator) {
878
- if (array_like_or_iterator) {
879
- return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
880
- }
881
- return [];
882
- }
883
- function props_id(renderer) {
884
- const uid = renderer.global.uid();
885
- renderer.push("<!--$" + uid + "-->");
886
- return uid;
887
- }
888
-
889
- export { ASYNC as A, BOUNDARY_EFFECT as B, COMMENT_NODE as C, DERIVED as D, ERROR_VALUE as E, head as F, stringify as G, HYDRATION_START as H, INERT as I, css_props as J, attr_style as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, bind_props as N, props_id as O, attributes as P, spread_props as Q, ROOT_EFFECT as R, STATE_SYMBOL as S, UNOWNED as U, WAS_MARKED as W, HYDRATION_ERROR as a, UNINITIALIZED as b, DIRTY as c, CLEAN as d, DISCONNECTED as e, EFFECT as f, BLOCK_EFFECT as g, BRANCH_EFFECT as h, is_passive_event as i, DESTROYED as j, REACTION_IS_UPDATING as k, EFFECT_RAN as l, EFFECT_PRESERVED as m, EFFECT_TRANSPARENT as n, HEAD_EFFECT as o, EAGER_EFFECT as p, STALE_REACTION as q, render as r, HYDRATION_END as s, RENDER_EFFECT as t, HYDRATION_START_ELSE as u, USER_EFFECT as v, ensure_array_like as w, attr as x, attr_class as y, clsx as z };
890
- //# sourceMappingURL=index-CIEcmmdN.js.map