@phosart/devtool 0.2.63 → 0.2.65

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 (281) hide show
  1. package/build/client/editor/_app/immutable/chunks/{B7zEkvv4.js → 19P8o6-0.js} +1 -1
  2. package/build/client/editor/_app/immutable/chunks/19P8o6-0.js.br +2 -0
  3. package/build/client/editor/_app/immutable/chunks/19P8o6-0.js.gz +0 -0
  4. package/build/client/editor/_app/immutable/chunks/BMh7eA94.js +1 -0
  5. package/build/client/editor/_app/immutable/chunks/BMh7eA94.js.br +0 -0
  6. package/build/client/editor/_app/immutable/chunks/BMh7eA94.js.gz +0 -0
  7. package/build/client/editor/_app/immutable/chunks/BU6tBRmK.js +1 -0
  8. package/build/client/editor/_app/immutable/chunks/BU6tBRmK.js.br +0 -0
  9. package/build/client/editor/_app/immutable/chunks/BU6tBRmK.js.gz +0 -0
  10. package/build/client/editor/_app/immutable/chunks/BZYFUfL0.js +2 -0
  11. package/build/client/editor/_app/immutable/chunks/BZYFUfL0.js.br +0 -0
  12. package/build/client/editor/_app/immutable/chunks/BZYFUfL0.js.gz +0 -0
  13. package/build/client/editor/_app/immutable/chunks/{BwDguXJU.js → BqXEbjc6.js} +1 -1
  14. package/build/client/editor/_app/immutable/chunks/BqXEbjc6.js.br +0 -0
  15. package/build/client/editor/_app/immutable/chunks/BqXEbjc6.js.gz +0 -0
  16. package/build/client/editor/_app/immutable/chunks/C26Wy4GU.js +1 -0
  17. package/build/client/editor/_app/immutable/chunks/C26Wy4GU.js.br +2 -0
  18. package/build/client/editor/_app/immutable/chunks/C26Wy4GU.js.gz +0 -0
  19. package/build/client/editor/_app/immutable/chunks/C68lH248.js +5 -0
  20. package/build/client/editor/_app/immutable/chunks/C68lH248.js.br +0 -0
  21. package/build/client/editor/_app/immutable/chunks/C68lH248.js.gz +0 -0
  22. package/build/client/editor/_app/immutable/chunks/{D40E3qq_.js → CKTN79Du.js} +1 -1
  23. package/build/client/editor/_app/immutable/chunks/CKTN79Du.js.br +0 -0
  24. package/build/client/editor/_app/immutable/chunks/CKTN79Du.js.gz +0 -0
  25. package/build/client/editor/_app/immutable/chunks/Cfp8AP_4.js +2 -0
  26. package/build/client/editor/_app/immutable/chunks/Cfp8AP_4.js.br +0 -0
  27. package/build/client/editor/_app/immutable/chunks/Cfp8AP_4.js.gz +0 -0
  28. package/build/client/editor/_app/immutable/chunks/{BX1XjmQ4.js → ClPLSVOM.js} +1 -1
  29. package/build/client/editor/_app/immutable/chunks/ClPLSVOM.js.br +0 -0
  30. package/build/client/editor/_app/immutable/chunks/ClPLSVOM.js.gz +0 -0
  31. package/build/client/editor/_app/immutable/chunks/CtvC2rTB.js +1 -0
  32. package/build/client/editor/_app/immutable/chunks/CtvC2rTB.js.br +0 -0
  33. package/build/client/editor/_app/immutable/chunks/CtvC2rTB.js.gz +0 -0
  34. package/build/client/editor/_app/immutable/chunks/DI8xxRVn.js +1 -0
  35. package/build/client/editor/_app/immutable/chunks/DI8xxRVn.js.br +0 -0
  36. package/build/client/editor/_app/immutable/chunks/DI8xxRVn.js.gz +0 -0
  37. package/build/client/editor/_app/immutable/chunks/DPuItsHr.js +3 -0
  38. package/build/client/editor/_app/immutable/chunks/DPuItsHr.js.br +0 -0
  39. package/build/client/editor/_app/immutable/chunks/DPuItsHr.js.gz +0 -0
  40. package/build/client/editor/_app/immutable/chunks/Dww6ebzL.js +1 -0
  41. package/build/client/editor/_app/immutable/chunks/Dww6ebzL.js.br +0 -0
  42. package/build/client/editor/_app/immutable/chunks/Dww6ebzL.js.gz +0 -0
  43. package/build/client/editor/_app/immutable/chunks/LyZSSgR-.js +1 -0
  44. package/build/client/editor/_app/immutable/chunks/LyZSSgR-.js.br +0 -0
  45. package/build/client/editor/_app/immutable/chunks/LyZSSgR-.js.gz +0 -0
  46. package/build/client/editor/_app/immutable/chunks/ahl07Ct8.js +1 -0
  47. package/build/client/editor/_app/immutable/chunks/ahl07Ct8.js.br +0 -0
  48. package/build/client/editor/_app/immutable/chunks/ahl07Ct8.js.gz +0 -0
  49. package/build/client/editor/_app/immutable/chunks/rKXfWAby.js +1 -0
  50. package/build/client/editor/_app/immutable/chunks/rKXfWAby.js.br +0 -0
  51. package/build/client/editor/_app/immutable/chunks/rKXfWAby.js.gz +0 -0
  52. package/build/client/editor/_app/immutable/chunks/{CMXRgKV0.js → vknWvHF8.js} +1 -1
  53. package/build/client/editor/_app/immutable/chunks/vknWvHF8.js.br +0 -0
  54. package/build/client/editor/_app/immutable/chunks/vknWvHF8.js.gz +0 -0
  55. package/build/client/editor/_app/immutable/entry/app.gp6nCSlg.js +2 -0
  56. package/build/client/editor/_app/immutable/entry/app.gp6nCSlg.js.br +0 -0
  57. package/build/client/editor/_app/immutable/entry/app.gp6nCSlg.js.gz +0 -0
  58. package/build/client/editor/_app/immutable/entry/start.Cvp6zRpB.js +1 -0
  59. package/build/client/editor/_app/immutable/entry/start.Cvp6zRpB.js.br +2 -0
  60. package/build/client/editor/_app/immutable/entry/start.Cvp6zRpB.js.gz +0 -0
  61. package/build/client/editor/_app/immutable/nodes/0.B2GxvFKf.js +1 -0
  62. package/build/client/editor/_app/immutable/nodes/0.B2GxvFKf.js.br +0 -0
  63. package/build/client/editor/_app/immutable/nodes/0.B2GxvFKf.js.gz +0 -0
  64. package/build/client/editor/_app/immutable/nodes/1.DBaXGJs3.js +1 -0
  65. package/build/client/editor/_app/immutable/nodes/1.DBaXGJs3.js.br +0 -0
  66. package/build/client/editor/_app/immutable/nodes/1.DBaXGJs3.js.gz +0 -0
  67. package/build/client/editor/_app/immutable/nodes/2.TS-9ENDs.js +1 -0
  68. package/build/client/editor/_app/immutable/nodes/2.TS-9ENDs.js.br +0 -0
  69. package/build/client/editor/_app/immutable/nodes/2.TS-9ENDs.js.gz +0 -0
  70. package/build/client/editor/_app/immutable/nodes/3.CSzHGTLB.js +1 -0
  71. package/build/client/editor/_app/immutable/nodes/3.CSzHGTLB.js.br +0 -0
  72. package/build/client/editor/_app/immutable/nodes/3.CSzHGTLB.js.gz +0 -0
  73. package/build/client/editor/_app/immutable/nodes/4.DgYSx6K5.js +2 -0
  74. package/build/client/editor/_app/immutable/nodes/4.DgYSx6K5.js.br +0 -0
  75. package/build/client/editor/_app/immutable/nodes/4.DgYSx6K5.js.gz +0 -0
  76. package/build/client/editor/_app/immutable/nodes/5.NPB1ImG9.js +1 -0
  77. package/build/client/editor/_app/immutable/nodes/5.NPB1ImG9.js.br +0 -0
  78. package/build/client/editor/_app/immutable/nodes/5.NPB1ImG9.js.gz +0 -0
  79. package/build/client/editor/_app/immutable/nodes/6.DGTlCplm.js +1 -0
  80. package/build/client/editor/_app/immutable/nodes/6.DGTlCplm.js.br +2 -0
  81. package/build/client/editor/_app/immutable/nodes/6.DGTlCplm.js.gz +0 -0
  82. package/build/client/editor/_app/immutable/nodes/{7.CNs61aEF.js → 7.D9Aaysah.js} +1 -1
  83. package/build/client/editor/_app/immutable/nodes/7.D9Aaysah.js.br +0 -0
  84. package/build/client/editor/_app/immutable/nodes/7.D9Aaysah.js.gz +0 -0
  85. package/build/client/editor/_app/version.json +1 -1
  86. package/build/client/editor/_app/version.json.br +0 -0
  87. package/build/client/editor/_app/version.json.gz +0 -0
  88. package/build/client/editor/robots.txt.br +0 -0
  89. package/build/client/editor/robots.txt.gz +0 -0
  90. package/build/server/chunks/{0-BnmcUAQx.js → 0-5b54uBbK.js} +7 -7
  91. package/build/server/chunks/{0-BnmcUAQx.js.map → 0-5b54uBbK.js.map} +1 -1
  92. package/build/server/chunks/1-BmSxzkc8.js +9 -0
  93. package/build/server/chunks/{1-CYCf-lQK.js.map → 1-BmSxzkc8.js.map} +1 -1
  94. package/build/server/chunks/{2-C3l0BQnh.js → 2--L16WE93.js} +7 -7
  95. package/build/server/chunks/{2-C3l0BQnh.js.map → 2--L16WE93.js.map} +1 -1
  96. package/build/server/chunks/{3-DOc6yKc_.js → 3-C_qg_gSS.js} +3 -3
  97. package/build/server/chunks/{3-DOc6yKc_.js.map → 3-C_qg_gSS.js.map} +1 -1
  98. package/build/server/chunks/{4-sfYNoQFz.js → 4-Bm-H9o0J.js} +3 -3
  99. package/build/server/chunks/{4-sfYNoQFz.js.map → 4-Bm-H9o0J.js.map} +1 -1
  100. package/build/server/chunks/{5-DysVCz2n.js → 5-jZbWuLXL.js} +3 -3
  101. package/build/server/chunks/{5-DysVCz2n.js.map → 5-jZbWuLXL.js.map} +1 -1
  102. package/build/server/chunks/{6-DZU9gG9O.js → 6-BZvyf1Rg.js} +8 -8
  103. package/build/server/chunks/{6-DZU9gG9O.js.map → 6-BZvyf1Rg.js.map} +1 -1
  104. package/build/server/chunks/{7-DKyQ6J6h.js → 7-DpLBp5Oi.js} +3 -3
  105. package/build/server/chunks/{7-DKyQ6J6h.js.map → 7-DpLBp5Oi.js.map} +1 -1
  106. package/build/server/chunks/ActionButton-vALVNYy6.js +29 -0
  107. package/build/server/chunks/ActionButton-vALVNYy6.js.map +1 -0
  108. package/build/server/chunks/{Checkbox-DZ5exUSd.js → Checkbox-BMs5z3M6.js} +2 -3
  109. package/build/server/chunks/Checkbox-BMs5z3M6.js.map +1 -0
  110. package/build/server/chunks/{Modal-CvVMDygt.js → Modal-DaiQaG4-.js} +6 -7
  111. package/build/server/chunks/Modal-DaiQaG4-.js.map +1 -0
  112. package/build/server/chunks/{SearchInput-23vDBPzc.js → SearchInput-1p6YrIBH.js} +17 -18
  113. package/build/server/chunks/SearchInput-1p6YrIBH.js.map +1 -0
  114. package/build/server/chunks/{TagEdit-CDaMD4_T.js → TagEdit-Ddkd6UkG.js} +7 -8
  115. package/build/server/chunks/TagEdit-Ddkd6UkG.js.map +1 -0
  116. package/build/server/chunks/{TextBox-D1ToO_OX.js → TextBox-Bam4lYhA.js} +31 -32
  117. package/build/server/chunks/TextBox-Bam4lYhA.js.map +1 -0
  118. package/build/server/chunks/{Tooltip-f7vWkyo7.js → Tooltip-D76oRsU8.js} +2 -2
  119. package/build/server/chunks/Tooltip-D76oRsU8.js.map +1 -0
  120. package/build/server/chunks/{_layout.svelte-B1UGWjtX.js → _layout.svelte-2KWCRjcD.js} +39 -48
  121. package/build/server/chunks/_layout.svelte-2KWCRjcD.js.map +1 -0
  122. package/build/server/chunks/{_page.svelte-Bm2M88sv.js → _page.svelte-D3MfQIjp.js} +25 -26
  123. package/build/server/chunks/_page.svelte-D3MfQIjp.js.map +1 -0
  124. package/build/server/chunks/{_page.svelte-hy7oK3nW.js → _page.svelte-D91WMgZ8.js} +13 -14
  125. package/build/server/chunks/_page.svelte-D91WMgZ8.js.map +1 -0
  126. package/build/server/chunks/{_page.svelte-oAt5cQuJ.js → _page.svelte-KTjPdsb4.js} +18 -19
  127. package/build/server/chunks/_page.svelte-KTjPdsb4.js.map +1 -0
  128. package/build/server/chunks/_page.svelte-OOhjubE2.js +142 -0
  129. package/build/server/chunks/_page.svelte-OOhjubE2.js.map +1 -0
  130. package/build/server/chunks/{_page.svelte-CK9yogBF.js → _page.svelte-QdSrJgfT.js} +39 -40
  131. package/build/server/chunks/_page.svelte-QdSrJgfT.js.map +1 -0
  132. package/build/server/chunks/{_page.svelte-BycVqEYy.js → _page.svelte-V9EuDN4l.js} +7 -8
  133. package/build/server/chunks/_page.svelte-V9EuDN4l.js.map +1 -0
  134. package/build/server/chunks/{_server.ts-ClY0OMQ3.js → _server.ts-Cb3dYCK4.js} +5 -5
  135. package/build/server/chunks/{_server.ts-ClY0OMQ3.js.map → _server.ts-Cb3dYCK4.js.map} +1 -1
  136. package/build/server/chunks/{_server.ts-CYWSmSTR.js → _server.ts-DBffY4vB.js} +5 -5
  137. package/build/server/chunks/{_server.ts-CYWSmSTR.js.map → _server.ts-DBffY4vB.js.map} +1 -1
  138. package/build/server/chunks/{_server.ts-CSihIYna.js → _server.ts-DYp8i1IH.js} +5 -5
  139. package/build/server/chunks/{_server.ts-CSihIYna.js.map → _server.ts-DYp8i1IH.js.map} +1 -1
  140. package/build/server/chunks/{_server.ts-D91E0as3.js → _server.ts-DorcYvBp.js} +5 -5
  141. package/build/server/chunks/{_server.ts-D91E0as3.js.map → _server.ts-DorcYvBp.js.map} +1 -1
  142. package/build/server/chunks/{_server.ts-DrH-oZMv.js → _server.ts-VxM8qlDT.js} +5 -5
  143. package/build/server/chunks/{_server.ts-DrH-oZMv.js.map → _server.ts-VxM8qlDT.js.map} +1 -1
  144. package/build/server/chunks/{client-IRFEPlPd.js → client-CHdX8mKQ.js} +5 -5
  145. package/build/server/chunks/client-CHdX8mKQ.js.map +1 -0
  146. package/build/server/chunks/error.svelte-BvlPlxyo.js +15 -0
  147. package/build/server/chunks/error.svelte-BvlPlxyo.js.map +1 -0
  148. package/build/server/chunks/exports-7ECo9oy7.js +102 -0
  149. package/build/server/chunks/exports-7ECo9oy7.js.map +1 -0
  150. package/build/server/chunks/{galleryoverride.svelte-DFvLyYKd.js → galleryoverride.svelte-B-LzQrr2.js} +2 -2
  151. package/build/server/chunks/galleryoverride.svelte-B-LzQrr2.js.map +1 -0
  152. package/build/server/chunks/{galleryutil-DznhV1Pd.js → galleryutil-CdWyR2BP.js} +2 -2
  153. package/build/server/chunks/{galleryutil-DznhV1Pd.js.map → galleryutil-CdWyR2BP.js.map} +1 -1
  154. package/build/server/chunks/index-CoD1IJuy.js.map +1 -1
  155. package/build/server/chunks/{index2-RKMiVZcy.js → index-DeXr9LUC.js} +3 -13
  156. package/build/server/chunks/index-DeXr9LUC.js.map +1 -0
  157. package/build/server/chunks/{index3-BZmvBuFZ.js → index2-kGSpwJ7x.js} +4 -4
  158. package/build/server/chunks/index2-kGSpwJ7x.js.map +1 -0
  159. package/build/server/chunks/{routing-C4Egnc9A.js → routing-DnQyokYQ.js} +23 -4
  160. package/build/server/chunks/routing-DnQyokYQ.js.map +1 -0
  161. package/build/server/chunks/{state.svelte-BDFqjDVR.js → state.svelte-pSYW5Nat.js} +2 -3
  162. package/build/server/chunks/state.svelte-pSYW5Nat.js.map +1 -0
  163. package/build/server/chunks/url-DAcOnjX0.js +4524 -0
  164. package/build/server/chunks/url-DAcOnjX0.js.map +1 -0
  165. package/build/server/chunks/{util-Cfqr4aAv.js → util-B37Rvgjl.js} +3 -3
  166. package/build/server/chunks/util-B37Rvgjl.js.map +1 -0
  167. package/build/server/index.js +799 -3184
  168. package/build/server/index.js.map +1 -1
  169. package/build/server/manifest.js +14 -14
  170. package/build/server/manifest.js.map +1 -1
  171. package/package.json +4 -4
  172. package/build/client/editor/_app/immutable/chunks/B5dyAeKZ.js +0 -1
  173. package/build/client/editor/_app/immutable/chunks/B5dyAeKZ.js.br +0 -0
  174. package/build/client/editor/_app/immutable/chunks/B5dyAeKZ.js.gz +0 -0
  175. package/build/client/editor/_app/immutable/chunks/B7zEkvv4.js.br +0 -0
  176. package/build/client/editor/_app/immutable/chunks/B7zEkvv4.js.gz +0 -0
  177. package/build/client/editor/_app/immutable/chunks/BRLWNwkm.js +0 -2
  178. package/build/client/editor/_app/immutable/chunks/BRLWNwkm.js.br +0 -0
  179. package/build/client/editor/_app/immutable/chunks/BRLWNwkm.js.gz +0 -0
  180. package/build/client/editor/_app/immutable/chunks/BSFPqf9q.js +0 -5
  181. package/build/client/editor/_app/immutable/chunks/BSFPqf9q.js.br +0 -0
  182. package/build/client/editor/_app/immutable/chunks/BSFPqf9q.js.gz +0 -0
  183. package/build/client/editor/_app/immutable/chunks/BX1XjmQ4.js.br +0 -0
  184. package/build/client/editor/_app/immutable/chunks/BX1XjmQ4.js.gz +0 -0
  185. package/build/client/editor/_app/immutable/chunks/Bc2e-TrO.js +0 -1
  186. package/build/client/editor/_app/immutable/chunks/Bc2e-TrO.js.br +0 -0
  187. package/build/client/editor/_app/immutable/chunks/Bc2e-TrO.js.gz +0 -0
  188. package/build/client/editor/_app/immutable/chunks/BnWMJp9-.js +0 -1
  189. package/build/client/editor/_app/immutable/chunks/BnWMJp9-.js.br +0 -0
  190. package/build/client/editor/_app/immutable/chunks/BnWMJp9-.js.gz +0 -0
  191. package/build/client/editor/_app/immutable/chunks/BwDguXJU.js.br +0 -0
  192. package/build/client/editor/_app/immutable/chunks/BwDguXJU.js.gz +0 -0
  193. package/build/client/editor/_app/immutable/chunks/C7VMZ6pf.js +0 -1
  194. package/build/client/editor/_app/immutable/chunks/C7VMZ6pf.js.br +0 -2
  195. package/build/client/editor/_app/immutable/chunks/C7VMZ6pf.js.gz +0 -0
  196. package/build/client/editor/_app/immutable/chunks/CJbFI_Gz.js +0 -1
  197. package/build/client/editor/_app/immutable/chunks/CJbFI_Gz.js.br +0 -0
  198. package/build/client/editor/_app/immutable/chunks/CJbFI_Gz.js.gz +0 -0
  199. package/build/client/editor/_app/immutable/chunks/CMXRgKV0.js.br +0 -0
  200. package/build/client/editor/_app/immutable/chunks/CMXRgKV0.js.gz +0 -0
  201. package/build/client/editor/_app/immutable/chunks/CQwbQxHj.js +0 -2
  202. package/build/client/editor/_app/immutable/chunks/CQwbQxHj.js.br +0 -0
  203. package/build/client/editor/_app/immutable/chunks/CQwbQxHj.js.gz +0 -0
  204. package/build/client/editor/_app/immutable/chunks/CTla0eqV.js +0 -1
  205. package/build/client/editor/_app/immutable/chunks/CTla0eqV.js.br +0 -0
  206. package/build/client/editor/_app/immutable/chunks/CTla0eqV.js.gz +0 -0
  207. package/build/client/editor/_app/immutable/chunks/CcMAYurA.js +0 -1
  208. package/build/client/editor/_app/immutable/chunks/CcMAYurA.js.br +0 -0
  209. package/build/client/editor/_app/immutable/chunks/CcMAYurA.js.gz +0 -0
  210. package/build/client/editor/_app/immutable/chunks/D40E3qq_.js.br +0 -0
  211. package/build/client/editor/_app/immutable/chunks/D40E3qq_.js.gz +0 -0
  212. package/build/client/editor/_app/immutable/chunks/Q42o3YIm.js +0 -1
  213. package/build/client/editor/_app/immutable/chunks/Q42o3YIm.js.br +0 -0
  214. package/build/client/editor/_app/immutable/chunks/Q42o3YIm.js.gz +0 -0
  215. package/build/client/editor/_app/immutable/chunks/gBsE5bMa.js +0 -3
  216. package/build/client/editor/_app/immutable/chunks/gBsE5bMa.js.br +0 -0
  217. package/build/client/editor/_app/immutable/chunks/gBsE5bMa.js.gz +0 -0
  218. package/build/client/editor/_app/immutable/chunks/yTA8YyXq.js +0 -1
  219. package/build/client/editor/_app/immutable/chunks/yTA8YyXq.js.br +0 -2
  220. package/build/client/editor/_app/immutable/chunks/yTA8YyXq.js.gz +0 -0
  221. package/build/client/editor/_app/immutable/entry/app.m-MGKw0W.js +0 -2
  222. package/build/client/editor/_app/immutable/entry/app.m-MGKw0W.js.br +0 -0
  223. package/build/client/editor/_app/immutable/entry/app.m-MGKw0W.js.gz +0 -0
  224. package/build/client/editor/_app/immutable/entry/start.Bla5z0Kr.js +0 -1
  225. package/build/client/editor/_app/immutable/entry/start.Bla5z0Kr.js.br +0 -0
  226. package/build/client/editor/_app/immutable/entry/start.Bla5z0Kr.js.gz +0 -0
  227. package/build/client/editor/_app/immutable/nodes/0.BN57zuvH.js +0 -1
  228. package/build/client/editor/_app/immutable/nodes/0.BN57zuvH.js.br +0 -0
  229. package/build/client/editor/_app/immutable/nodes/0.BN57zuvH.js.gz +0 -0
  230. package/build/client/editor/_app/immutable/nodes/1.CcVqguuF.js +0 -1
  231. package/build/client/editor/_app/immutable/nodes/1.CcVqguuF.js.br +0 -4
  232. package/build/client/editor/_app/immutable/nodes/1.CcVqguuF.js.gz +0 -0
  233. package/build/client/editor/_app/immutable/nodes/2.KBO55OJa.js +0 -1
  234. package/build/client/editor/_app/immutable/nodes/2.KBO55OJa.js.br +0 -0
  235. package/build/client/editor/_app/immutable/nodes/2.KBO55OJa.js.gz +0 -0
  236. package/build/client/editor/_app/immutable/nodes/3.BrHokofR.js +0 -1
  237. package/build/client/editor/_app/immutable/nodes/3.BrHokofR.js.br +0 -0
  238. package/build/client/editor/_app/immutable/nodes/3.BrHokofR.js.gz +0 -0
  239. package/build/client/editor/_app/immutable/nodes/4.DCiZj8kq.js +0 -2
  240. package/build/client/editor/_app/immutable/nodes/4.DCiZj8kq.js.br +0 -0
  241. package/build/client/editor/_app/immutable/nodes/4.DCiZj8kq.js.gz +0 -0
  242. package/build/client/editor/_app/immutable/nodes/5.DzJqYzXr.js +0 -1
  243. package/build/client/editor/_app/immutable/nodes/5.DzJqYzXr.js.br +0 -0
  244. package/build/client/editor/_app/immutable/nodes/5.DzJqYzXr.js.gz +0 -0
  245. package/build/client/editor/_app/immutable/nodes/6.D11_Rjw3.js +0 -1
  246. package/build/client/editor/_app/immutable/nodes/6.D11_Rjw3.js.br +0 -0
  247. package/build/client/editor/_app/immutable/nodes/6.D11_Rjw3.js.gz +0 -0
  248. package/build/client/editor/_app/immutable/nodes/7.CNs61aEF.js.br +0 -0
  249. package/build/client/editor/_app/immutable/nodes/7.CNs61aEF.js.gz +0 -0
  250. package/build/server/chunks/1-CYCf-lQK.js +0 -9
  251. package/build/server/chunks/ActionButton-mkFYNSea.js +0 -29
  252. package/build/server/chunks/ActionButton-mkFYNSea.js.map +0 -1
  253. package/build/server/chunks/Checkbox-DZ5exUSd.js.map +0 -1
  254. package/build/server/chunks/Modal-CvVMDygt.js.map +0 -1
  255. package/build/server/chunks/SearchInput-23vDBPzc.js.map +0 -1
  256. package/build/server/chunks/TagEdit-CDaMD4_T.js.map +0 -1
  257. package/build/server/chunks/TextBox-D1ToO_OX.js.map +0 -1
  258. package/build/server/chunks/Tooltip-f7vWkyo7.js.map +0 -1
  259. package/build/server/chunks/_layout.svelte-B1UGWjtX.js.map +0 -1
  260. package/build/server/chunks/_page.svelte-BQtJJnRP.js +0 -163
  261. package/build/server/chunks/_page.svelte-BQtJJnRP.js.map +0 -1
  262. package/build/server/chunks/_page.svelte-Bm2M88sv.js.map +0 -1
  263. package/build/server/chunks/_page.svelte-BycVqEYy.js.map +0 -1
  264. package/build/server/chunks/_page.svelte-CK9yogBF.js.map +0 -1
  265. package/build/server/chunks/_page.svelte-hy7oK3nW.js.map +0 -1
  266. package/build/server/chunks/_page.svelte-oAt5cQuJ.js.map +0 -1
  267. package/build/server/chunks/client-IRFEPlPd.js.map +0 -1
  268. package/build/server/chunks/error.svelte-tEjwweHd.js +0 -15
  269. package/build/server/chunks/error.svelte-tEjwweHd.js.map +0 -1
  270. package/build/server/chunks/event-ByDKS2H7.js +0 -46
  271. package/build/server/chunks/event-ByDKS2H7.js.map +0 -1
  272. package/build/server/chunks/exports-DTikbzSR.js +0 -298
  273. package/build/server/chunks/exports-DTikbzSR.js.map +0 -1
  274. package/build/server/chunks/galleryoverride.svelte-DFvLyYKd.js.map +0 -1
  275. package/build/server/chunks/index-Z8eOP0z5.js +0 -1386
  276. package/build/server/chunks/index-Z8eOP0z5.js.map +0 -1
  277. package/build/server/chunks/index2-RKMiVZcy.js.map +0 -1
  278. package/build/server/chunks/index3-BZmvBuFZ.js.map +0 -1
  279. package/build/server/chunks/routing-C4Egnc9A.js.map +0 -1
  280. package/build/server/chunks/state.svelte-BDFqjDVR.js.map +0 -1
  281. package/build/server/chunks/util-Cfqr4aAv.js.map +0 -1
@@ -1,1386 +0,0 @@
1
- import { E as set_ssr_context, F as ssr_context, G as push, H as pop, B as escape_html } from './exports-DTikbzSR.js';
2
-
3
- const escaped = {
4
- "<": "\\u003C",
5
- "\\": "\\\\",
6
- "\b": "\\b",
7
- "\f": "\\f",
8
- "\n": "\\n",
9
- "\r": "\\r",
10
- " ": "\\t",
11
- "\u2028": "\\u2028",
12
- "\u2029": "\\u2029"
13
- };
14
- class DevalueError extends Error {
15
- /**
16
- * @param {string} message
17
- * @param {string[]} keys
18
- * @param {any} [value] - The value that failed to be serialized
19
- * @param {any} [root] - The root value being serialized
20
- */
21
- constructor(message, keys, value, root) {
22
- super(message);
23
- this.name = "DevalueError";
24
- this.path = keys.join("");
25
- this.value = value;
26
- this.root = root;
27
- }
28
- }
29
- function is_primitive(thing) {
30
- return Object(thing) !== thing;
31
- }
32
- const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(
33
- Object.prototype
34
- ).sort().join("\0");
35
- function is_plain_object(thing) {
36
- const proto = Object.getPrototypeOf(thing);
37
- return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null || Object.getOwnPropertyNames(proto).sort().join("\0") === object_proto_names;
38
- }
39
- function get_type(thing) {
40
- return Object.prototype.toString.call(thing).slice(8, -1);
41
- }
42
- function get_escaped_char(char) {
43
- switch (char) {
44
- case '"':
45
- return '\\"';
46
- case "<":
47
- return "\\u003C";
48
- case "\\":
49
- return "\\\\";
50
- case "\n":
51
- return "\\n";
52
- case "\r":
53
- return "\\r";
54
- case " ":
55
- return "\\t";
56
- case "\b":
57
- return "\\b";
58
- case "\f":
59
- return "\\f";
60
- case "\u2028":
61
- return "\\u2028";
62
- case "\u2029":
63
- return "\\u2029";
64
- default:
65
- return char < " " ? `\\u${char.charCodeAt(0).toString(16).padStart(4, "0")}` : "";
66
- }
67
- }
68
- function stringify_string(str) {
69
- let result = "";
70
- let last_pos = 0;
71
- const len = str.length;
72
- for (let i = 0; i < len; i += 1) {
73
- const char = str[i];
74
- const replacement = get_escaped_char(char);
75
- if (replacement) {
76
- result += str.slice(last_pos, i) + replacement;
77
- last_pos = i + 1;
78
- }
79
- }
80
- return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`;
81
- }
82
- function enumerable_symbols(object) {
83
- return Object.getOwnPropertySymbols(object).filter(
84
- (symbol) => Object.getOwnPropertyDescriptor(object, symbol).enumerable
85
- );
86
- }
87
- const is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
88
- function stringify_key(key) {
89
- return is_identifier.test(key) ? "." + key : "[" + JSON.stringify(key) + "]";
90
- }
91
-
92
- const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";
93
- const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
94
- const reserved = /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;
95
- function uneval(value, replacer) {
96
- const counts = /* @__PURE__ */ new Map();
97
- const keys = [];
98
- const custom = /* @__PURE__ */ new Map();
99
- function walk(thing) {
100
- if (!is_primitive(thing)) {
101
- if (counts.has(thing)) {
102
- counts.set(thing, counts.get(thing) + 1);
103
- return;
104
- }
105
- counts.set(thing, 1);
106
- if (replacer) {
107
- const str2 = replacer(thing, (value2) => uneval(value2, replacer));
108
- if (typeof str2 === "string") {
109
- custom.set(thing, str2);
110
- return;
111
- }
112
- }
113
- if (typeof thing === "function") {
114
- throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
115
- }
116
- const type = get_type(thing);
117
- switch (type) {
118
- case "Number":
119
- case "BigInt":
120
- case "String":
121
- case "Boolean":
122
- case "Date":
123
- case "RegExp":
124
- case "URL":
125
- case "URLSearchParams":
126
- return;
127
- case "Array":
128
- thing.forEach((value2, i) => {
129
- keys.push(`[${i}]`);
130
- walk(value2);
131
- keys.pop();
132
- });
133
- break;
134
- case "Set":
135
- Array.from(thing).forEach(walk);
136
- break;
137
- case "Map":
138
- for (const [key, value2] of thing) {
139
- keys.push(
140
- `.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`
141
- );
142
- walk(value2);
143
- keys.pop();
144
- }
145
- break;
146
- case "Int8Array":
147
- case "Uint8Array":
148
- case "Uint8ClampedArray":
149
- case "Int16Array":
150
- case "Uint16Array":
151
- case "Int32Array":
152
- case "Uint32Array":
153
- case "Float32Array":
154
- case "Float64Array":
155
- case "BigInt64Array":
156
- case "BigUint64Array":
157
- walk(thing.buffer);
158
- return;
159
- case "ArrayBuffer":
160
- return;
161
- case "Temporal.Duration":
162
- case "Temporal.Instant":
163
- case "Temporal.PlainDate":
164
- case "Temporal.PlainTime":
165
- case "Temporal.PlainDateTime":
166
- case "Temporal.PlainMonthDay":
167
- case "Temporal.PlainYearMonth":
168
- case "Temporal.ZonedDateTime":
169
- return;
170
- default:
171
- if (!is_plain_object(thing)) {
172
- throw new DevalueError(
173
- `Cannot stringify arbitrary non-POJOs`,
174
- keys,
175
- thing,
176
- value
177
- );
178
- }
179
- if (enumerable_symbols(thing).length > 0) {
180
- throw new DevalueError(
181
- `Cannot stringify POJOs with symbolic keys`,
182
- keys,
183
- thing,
184
- value
185
- );
186
- }
187
- for (const key in thing) {
188
- keys.push(stringify_key(key));
189
- walk(thing[key]);
190
- keys.pop();
191
- }
192
- }
193
- }
194
- }
195
- walk(value);
196
- const names = /* @__PURE__ */ new Map();
197
- Array.from(counts).filter((entry) => entry[1] > 1).sort((a, b) => b[1] - a[1]).forEach((entry, i) => {
198
- names.set(entry[0], get_name(i));
199
- });
200
- function stringify2(thing) {
201
- if (names.has(thing)) {
202
- return names.get(thing);
203
- }
204
- if (is_primitive(thing)) {
205
- return stringify_primitive(thing);
206
- }
207
- if (custom.has(thing)) {
208
- return custom.get(thing);
209
- }
210
- const type = get_type(thing);
211
- switch (type) {
212
- case "Number":
213
- case "String":
214
- case "Boolean":
215
- return `Object(${stringify2(thing.valueOf())})`;
216
- case "RegExp":
217
- return `new RegExp(${stringify_string(thing.source)}, "${thing.flags}")`;
218
- case "Date":
219
- return `new Date(${thing.getTime()})`;
220
- case "URL":
221
- return `new URL(${stringify_string(thing.toString())})`;
222
- case "URLSearchParams":
223
- return `new URLSearchParams(${stringify_string(thing.toString())})`;
224
- case "Array":
225
- const members = (
226
- /** @type {any[]} */
227
- thing.map(
228
- (v, i) => i in thing ? stringify2(v) : ""
229
- )
230
- );
231
- const tail = thing.length === 0 || thing.length - 1 in thing ? "" : ",";
232
- return `[${members.join(",")}${tail}]`;
233
- case "Set":
234
- case "Map":
235
- return `new ${type}([${Array.from(thing).map(stringify2).join(",")}])`;
236
- case "Int8Array":
237
- case "Uint8Array":
238
- case "Uint8ClampedArray":
239
- case "Int16Array":
240
- case "Uint16Array":
241
- case "Int32Array":
242
- case "Uint32Array":
243
- case "Float32Array":
244
- case "Float64Array":
245
- case "BigInt64Array":
246
- case "BigUint64Array": {
247
- let str2 = `new ${type}`;
248
- if (counts.get(thing.buffer) === 1) {
249
- const array = new thing.constructor(thing.buffer);
250
- str2 += `([${array}])`;
251
- } else {
252
- str2 += `([${stringify2(thing.buffer)}])`;
253
- }
254
- const a = thing.byteOffset;
255
- const b = a + thing.byteLength;
256
- if (a > 0 || b !== thing.buffer.byteLength) {
257
- const m = +/(\d+)/.exec(type)[1] / 8;
258
- str2 += `.subarray(${a / m},${b / m})`;
259
- }
260
- return str2;
261
- }
262
- case "ArrayBuffer": {
263
- const ui8 = new Uint8Array(thing);
264
- return `new Uint8Array([${ui8.toString()}]).buffer`;
265
- }
266
- case "Temporal.Duration":
267
- case "Temporal.Instant":
268
- case "Temporal.PlainDate":
269
- case "Temporal.PlainTime":
270
- case "Temporal.PlainDateTime":
271
- case "Temporal.PlainMonthDay":
272
- case "Temporal.PlainYearMonth":
273
- case "Temporal.ZonedDateTime":
274
- return `${type}.from(${stringify_string(thing.toString())})`;
275
- default:
276
- const keys2 = Object.keys(thing);
277
- const obj = keys2.map((key) => `${safe_key(key)}:${stringify2(thing[key])}`).join(",");
278
- const proto = Object.getPrototypeOf(thing);
279
- if (proto === null) {
280
- return keys2.length > 0 ? `{${obj},__proto__:null}` : `{__proto__:null}`;
281
- }
282
- return `{${obj}}`;
283
- }
284
- }
285
- const str = stringify2(value);
286
- if (names.size) {
287
- const params = [];
288
- const statements = [];
289
- const values = [];
290
- names.forEach((name, thing) => {
291
- params.push(name);
292
- if (custom.has(thing)) {
293
- values.push(
294
- /** @type {string} */
295
- custom.get(thing)
296
- );
297
- return;
298
- }
299
- if (is_primitive(thing)) {
300
- values.push(stringify_primitive(thing));
301
- return;
302
- }
303
- const type = get_type(thing);
304
- switch (type) {
305
- case "Number":
306
- case "String":
307
- case "Boolean":
308
- values.push(`Object(${stringify2(thing.valueOf())})`);
309
- break;
310
- case "RegExp":
311
- values.push(thing.toString());
312
- break;
313
- case "Date":
314
- values.push(`new Date(${thing.getTime()})`);
315
- break;
316
- case "Array":
317
- values.push(`Array(${thing.length})`);
318
- thing.forEach((v, i) => {
319
- statements.push(`${name}[${i}]=${stringify2(v)}`);
320
- });
321
- break;
322
- case "Set":
323
- values.push(`new Set`);
324
- statements.push(
325
- `${name}.${Array.from(thing).map((v) => `add(${stringify2(v)})`).join(".")}`
326
- );
327
- break;
328
- case "Map":
329
- values.push(`new Map`);
330
- statements.push(
331
- `${name}.${Array.from(thing).map(([k, v]) => `set(${stringify2(k)}, ${stringify2(v)})`).join(".")}`
332
- );
333
- break;
334
- case "ArrayBuffer":
335
- values.push(
336
- `new Uint8Array([${new Uint8Array(thing).join(",")}]).buffer`
337
- );
338
- break;
339
- default:
340
- values.push(
341
- Object.getPrototypeOf(thing) === null ? "Object.create(null)" : "{}"
342
- );
343
- Object.keys(thing).forEach((key) => {
344
- statements.push(
345
- `${name}${safe_prop(key)}=${stringify2(thing[key])}`
346
- );
347
- });
348
- }
349
- });
350
- statements.push(`return ${str}`);
351
- return `(function(${params.join(",")}){${statements.join(
352
- ";"
353
- )}}(${values.join(",")}))`;
354
- } else {
355
- return str;
356
- }
357
- }
358
- function get_name(num) {
359
- let name = "";
360
- do {
361
- name = chars[num % chars.length] + name;
362
- num = ~~(num / chars.length) - 1;
363
- } while (num >= 0);
364
- return reserved.test(name) ? `${name}0` : name;
365
- }
366
- function escape_unsafe_char(c) {
367
- return escaped[c] || c;
368
- }
369
- function escape_unsafe_chars(str) {
370
- return str.replace(unsafe_chars, escape_unsafe_char);
371
- }
372
- function safe_key(key) {
373
- return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escape_unsafe_chars(JSON.stringify(key));
374
- }
375
- function safe_prop(key) {
376
- return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? `.${key}` : `[${escape_unsafe_chars(JSON.stringify(key))}]`;
377
- }
378
- function stringify_primitive(thing) {
379
- if (typeof thing === "string") return stringify_string(thing);
380
- if (thing === void 0) return "void 0";
381
- if (thing === 0 && 1 / thing < 0) return "-0";
382
- const str = String(thing);
383
- if (typeof thing === "number") return str.replace(/^(-)?0\./, "$1.");
384
- if (typeof thing === "bigint") return thing + "n";
385
- return str;
386
- }
387
- const DERIVED = 1 << 1;
388
- const EFFECT = 1 << 2;
389
- const RENDER_EFFECT = 1 << 3;
390
- const MANAGED_EFFECT = 1 << 24;
391
- const BLOCK_EFFECT = 1 << 4;
392
- const BRANCH_EFFECT = 1 << 5;
393
- const ROOT_EFFECT = 1 << 6;
394
- const BOUNDARY_EFFECT = 1 << 7;
395
- const CONNECTED = 1 << 9;
396
- const CLEAN = 1 << 10;
397
- const DIRTY = 1 << 11;
398
- const MAYBE_DIRTY = 1 << 12;
399
- const INERT = 1 << 13;
400
- const DESTROYED = 1 << 14;
401
- const EFFECT_RAN = 1 << 15;
402
- const EFFECT_TRANSPARENT = 1 << 16;
403
- const EAGER_EFFECT = 1 << 17;
404
- const HEAD_EFFECT = 1 << 18;
405
- const EFFECT_PRESERVED = 1 << 19;
406
- const USER_EFFECT = 1 << 20;
407
- const WAS_MARKED = 1 << 15;
408
- const REACTION_IS_UPDATING = 1 << 21;
409
- const ASYNC = 1 << 22;
410
- const ERROR_VALUE = 1 << 23;
411
- const STATE_SYMBOL = /* @__PURE__ */ Symbol("$state");
412
- const LEGACY_PROPS = /* @__PURE__ */ Symbol("legacy props");
413
- const STALE_REACTION = new class StaleReactionError extends Error {
414
- name = "StaleReactionError";
415
- message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
416
- }();
417
- const COMMENT_NODE = 8;
418
- const HYDRATION_START = "[";
419
- const HYDRATION_START_ELSE = "[!";
420
- const HYDRATION_END = "]";
421
- const HYDRATION_ERROR = {};
422
- const ELEMENT_IS_NAMESPACED = 1;
423
- const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
424
- const ELEMENT_IS_INPUT = 1 << 2;
425
- const UNINITIALIZED = /* @__PURE__ */ Symbol();
426
- const DOM_BOOLEAN_ATTRIBUTES = [
427
- "allowfullscreen",
428
- "async",
429
- "autofocus",
430
- "autoplay",
431
- "checked",
432
- "controls",
433
- "default",
434
- "disabled",
435
- "formnovalidate",
436
- "indeterminate",
437
- "inert",
438
- "ismap",
439
- "loop",
440
- "multiple",
441
- "muted",
442
- "nomodule",
443
- "novalidate",
444
- "open",
445
- "playsinline",
446
- "readonly",
447
- "required",
448
- "reversed",
449
- "seamless",
450
- "selected",
451
- "webkitdirectory",
452
- "defer",
453
- "disablepictureinpicture",
454
- "disableremoteplayback"
455
- ];
456
- function is_boolean_attribute(name) {
457
- return DOM_BOOLEAN_ATTRIBUTES.includes(name);
458
- }
459
- const PASSIVE_EVENTS = ["touchstart", "touchmove"];
460
- function is_passive_event(name) {
461
- return PASSIVE_EVENTS.includes(name);
462
- }
463
- function r(e) {
464
- var t, f, n = "";
465
- if ("string" == typeof e || "number" == typeof e) n += e;
466
- else if ("object" == typeof e) if (Array.isArray(e)) {
467
- var o = e.length;
468
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
469
- } else for (f in e) e[f] && (n && (n += " "), n += f);
470
- return n;
471
- }
472
- function clsx$1() {
473
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
474
- return n;
475
- }
476
- const replacements = {
477
- translate: /* @__PURE__ */ new Map([
478
- [true, "yes"],
479
- [false, "no"]
480
- ])
481
- };
482
- function attr(name, value, is_boolean = false) {
483
- if (name === "hidden" && value !== "until-found") {
484
- is_boolean = true;
485
- }
486
- if (value == null || !value && is_boolean) return "";
487
- const normalized = name in replacements && replacements[name].get(value) || value;
488
- const assignment = is_boolean ? "" : `="${escape_html(normalized, true)}"`;
489
- return ` ${name}${assignment}`;
490
- }
491
- function clsx(value) {
492
- if (typeof value === "object") {
493
- return clsx$1(value);
494
- } else {
495
- return value ?? "";
496
- }
497
- }
498
- const whitespace = [..." \n\r\f \v\uFEFF"];
499
- function to_class(value, hash, directives) {
500
- var classname = value == null ? "" : "" + value;
501
- if (hash) {
502
- classname = classname ? classname + " " + hash : hash;
503
- }
504
- if (directives) {
505
- for (var key in directives) {
506
- if (directives[key]) {
507
- classname = classname ? classname + " " + key : key;
508
- } else if (classname.length) {
509
- var len = key.length;
510
- var a = 0;
511
- while ((a = classname.indexOf(key, a)) >= 0) {
512
- var b = a + len;
513
- if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) {
514
- classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1);
515
- } else {
516
- a = b;
517
- }
518
- }
519
- }
520
- }
521
- }
522
- return classname === "" ? null : classname;
523
- }
524
- function append_styles(styles, important = false) {
525
- var separator = important ? " !important;" : ";";
526
- var css = "";
527
- for (var key in styles) {
528
- var value = styles[key];
529
- if (value != null && value !== "") {
530
- css += " " + key + ": " + value + separator;
531
- }
532
- }
533
- return css;
534
- }
535
- function to_css_name(name) {
536
- if (name[0] !== "-" || name[1] !== "-") {
537
- return name.toLowerCase();
538
- }
539
- return name;
540
- }
541
- function to_style(value, styles) {
542
- if (styles) {
543
- var new_style = "";
544
- var normal_styles;
545
- var important_styles;
546
- if (Array.isArray(styles)) {
547
- normal_styles = styles[0];
548
- important_styles = styles[1];
549
- } else {
550
- normal_styles = styles;
551
- }
552
- if (value) {
553
- value = String(value).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
554
- var in_str = false;
555
- var in_apo = 0;
556
- var in_comment = false;
557
- var reserved_names = [];
558
- if (normal_styles) {
559
- reserved_names.push(...Object.keys(normal_styles).map(to_css_name));
560
- }
561
- if (important_styles) {
562
- reserved_names.push(...Object.keys(important_styles).map(to_css_name));
563
- }
564
- var start_index = 0;
565
- var name_index = -1;
566
- const len = value.length;
567
- for (var i = 0; i < len; i++) {
568
- var c = value[i];
569
- if (in_comment) {
570
- if (c === "/" && value[i - 1] === "*") {
571
- in_comment = false;
572
- }
573
- } else if (in_str) {
574
- if (in_str === c) {
575
- in_str = false;
576
- }
577
- } else if (c === "/" && value[i + 1] === "*") {
578
- in_comment = true;
579
- } else if (c === '"' || c === "'") {
580
- in_str = c;
581
- } else if (c === "(") {
582
- in_apo++;
583
- } else if (c === ")") {
584
- in_apo--;
585
- }
586
- if (!in_comment && in_str === false && in_apo === 0) {
587
- if (c === ":" && name_index === -1) {
588
- name_index = i;
589
- } else if (c === ";" || i === len - 1) {
590
- if (name_index !== -1) {
591
- var name = to_css_name(value.substring(start_index, name_index).trim());
592
- if (!reserved_names.includes(name)) {
593
- if (c !== ";") {
594
- i++;
595
- }
596
- var property = value.substring(start_index, i).trim();
597
- new_style += " " + property + ";";
598
- }
599
- }
600
- start_index = i + 1;
601
- name_index = -1;
602
- }
603
- }
604
- }
605
- }
606
- if (normal_styles) {
607
- new_style += append_styles(normal_styles);
608
- }
609
- if (important_styles) {
610
- new_style += append_styles(important_styles, true);
611
- }
612
- new_style = new_style.trim();
613
- return new_style === "" ? null : new_style;
614
- }
615
- return value == null ? null : String(value);
616
- }
617
- const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
618
- const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
619
- const EMPTY_COMMENT = `<!---->`;
620
- let controller = null;
621
- function abort() {
622
- controller?.abort(STALE_REACTION);
623
- controller = null;
624
- }
625
- function await_invalid() {
626
- const error = new Error(`await_invalid
627
- Encountered asynchronous work while rendering synchronously.
628
- https://svelte.dev/e/await_invalid`);
629
- error.name = "Svelte error";
630
- throw error;
631
- }
632
- function invalid_csp() {
633
- const error = new Error(`invalid_csp
634
- \`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously.
635
- https://svelte.dev/e/invalid_csp`);
636
- error.name = "Svelte error";
637
- throw error;
638
- }
639
- function server_context_required() {
640
- const error = new Error(`server_context_required
641
- Could not resolve \`render\` context.
642
- https://svelte.dev/e/server_context_required`);
643
- error.name = "Svelte error";
644
- throw error;
645
- }
646
- function unresolved_hydratable(key, stack) {
647
- {
648
- console.warn(`https://svelte.dev/e/unresolved_hydratable`);
649
- }
650
- }
651
- function get_render_context() {
652
- const store = als?.getStore();
653
- {
654
- server_context_required();
655
- }
656
- return store;
657
- }
658
- let als = null;
659
- let text_encoder;
660
- let crypto;
661
- async function sha256(data) {
662
- text_encoder ??= new TextEncoder();
663
- crypto ??= globalThis.crypto?.subtle?.digest ? globalThis.crypto : (
664
- // @ts-ignore - we don't install node types in the prod build
665
- (await import('node:crypto')).webcrypto
666
- );
667
- const hash_buffer = await crypto.subtle.digest("SHA-256", text_encoder.encode(data));
668
- return base64_encode(hash_buffer);
669
- }
670
- function base64_encode(bytes) {
671
- if (globalThis.Buffer) {
672
- return globalThis.Buffer.from(bytes).toString("base64");
673
- }
674
- let binary = "";
675
- for (let i = 0; i < bytes.length; i++) {
676
- binary += String.fromCharCode(bytes[i]);
677
- }
678
- return btoa(binary);
679
- }
680
- class Renderer {
681
- /**
682
- * The contents of the renderer.
683
- * @type {RendererItem[]}
684
- */
685
- #out = [];
686
- /**
687
- * Any `onDestroy` callbacks registered during execution of this renderer.
688
- * @type {(() => void)[] | undefined}
689
- */
690
- #on_destroy = void 0;
691
- /**
692
- * Whether this renderer is a component body.
693
- * @type {boolean}
694
- */
695
- #is_component_body = false;
696
- /**
697
- * The type of string content that this renderer is accumulating.
698
- * @type {RendererType}
699
- */
700
- type;
701
- /** @type {Renderer | undefined} */
702
- #parent;
703
- /**
704
- * Asynchronous work associated with this renderer
705
- * @type {Promise<void> | undefined}
706
- */
707
- promise = void 0;
708
- /**
709
- * State which is associated with the content tree as a whole.
710
- * It will be re-exposed, uncopied, on all children.
711
- * @type {SSRState}
712
- * @readonly
713
- */
714
- global;
715
- /**
716
- * State that is local to the branch it is declared in.
717
- * It will be shallow-copied to all children.
718
- *
719
- * @type {{ select_value: string | undefined }}
720
- */
721
- local;
722
- /**
723
- * @param {SSRState} global
724
- * @param {Renderer | undefined} [parent]
725
- */
726
- constructor(global, parent) {
727
- this.#parent = parent;
728
- this.global = global;
729
- this.local = parent ? { ...parent.local } : { select_value: void 0 };
730
- this.type = parent ? parent.type : "body";
731
- }
732
- /**
733
- * @param {(renderer: Renderer) => void} fn
734
- */
735
- head(fn) {
736
- const head2 = new Renderer(this.global, this);
737
- head2.type = "head";
738
- this.#out.push(head2);
739
- head2.child(fn);
740
- }
741
- /**
742
- * @param {Array<Promise<void>>} blockers
743
- * @param {(renderer: Renderer) => void} fn
744
- */
745
- async_block(blockers, fn) {
746
- this.#out.push(BLOCK_OPEN);
747
- this.async(blockers, fn);
748
- this.#out.push(BLOCK_CLOSE);
749
- }
750
- /**
751
- * @param {Array<Promise<void>>} blockers
752
- * @param {(renderer: Renderer) => void} fn
753
- */
754
- async(blockers, fn) {
755
- let callback = fn;
756
- if (blockers.length > 0) {
757
- const context = ssr_context;
758
- callback = (renderer) => {
759
- return Promise.all(blockers).then(() => {
760
- const previous_context = ssr_context;
761
- try {
762
- set_ssr_context(context);
763
- return fn(renderer);
764
- } finally {
765
- set_ssr_context(previous_context);
766
- }
767
- });
768
- };
769
- }
770
- this.child(callback);
771
- }
772
- /**
773
- * @param {Array<() => void>} thunks
774
- */
775
- run(thunks) {
776
- const context = ssr_context;
777
- let promise = Promise.resolve(thunks[0]());
778
- const promises = [promise];
779
- for (const fn of thunks.slice(1)) {
780
- promise = promise.then(() => {
781
- const previous_context = ssr_context;
782
- set_ssr_context(context);
783
- try {
784
- return fn();
785
- } finally {
786
- set_ssr_context(previous_context);
787
- }
788
- });
789
- promises.push(promise);
790
- }
791
- return promises;
792
- }
793
- /**
794
- * Create a child renderer. The child renderer inherits the state from the parent,
795
- * but has its own content.
796
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
797
- */
798
- child(fn) {
799
- const child = new Renderer(this.global, this);
800
- this.#out.push(child);
801
- const parent = ssr_context;
802
- set_ssr_context({
803
- ...ssr_context,
804
- p: parent,
805
- c: null,
806
- r: child
807
- });
808
- const result = fn(child);
809
- set_ssr_context(parent);
810
- if (result instanceof Promise) {
811
- if (child.global.mode === "sync") {
812
- await_invalid();
813
- }
814
- result.catch(() => {
815
- });
816
- child.promise = result;
817
- }
818
- return child;
819
- }
820
- /**
821
- * Create a component renderer. The component renderer inherits the state from the parent,
822
- * but has its own content. It is treated as an ordering boundary for ondestroy callbacks.
823
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
824
- * @param {Function} [component_fn]
825
- * @returns {void}
826
- */
827
- component(fn, component_fn) {
828
- push();
829
- const child = this.child(fn);
830
- child.#is_component_body = true;
831
- pop();
832
- }
833
- /**
834
- * @param {Record<string, any>} attrs
835
- * @param {(renderer: Renderer) => void} fn
836
- * @param {string | undefined} [css_hash]
837
- * @param {Record<string, boolean> | undefined} [classes]
838
- * @param {Record<string, string> | undefined} [styles]
839
- * @param {number | undefined} [flags]
840
- * @param {boolean | undefined} [is_rich]
841
- * @returns {void}
842
- */
843
- select(attrs, fn, css_hash, classes, styles, flags, is_rich) {
844
- const { value, ...select_attrs } = attrs;
845
- this.push(`<select${attributes(select_attrs, css_hash, classes, styles, flags)}>`);
846
- this.child((renderer) => {
847
- renderer.local.select_value = value;
848
- fn(renderer);
849
- });
850
- this.push(`${is_rich ? "<!>" : ""}</select>`);
851
- }
852
- /**
853
- * @param {Record<string, any>} attrs
854
- * @param {string | number | boolean | ((renderer: Renderer) => void)} body
855
- * @param {string | undefined} [css_hash]
856
- * @param {Record<string, boolean> | undefined} [classes]
857
- * @param {Record<string, string> | undefined} [styles]
858
- * @param {number | undefined} [flags]
859
- * @param {boolean | undefined} [is_rich]
860
- */
861
- option(attrs, body, css_hash, classes, styles, flags, is_rich) {
862
- this.#out.push(`<option${attributes(attrs, css_hash, classes, styles, flags)}`);
863
- const close = (renderer, value, { head: head2, body: body2 }) => {
864
- if ("value" in attrs) {
865
- value = attrs.value;
866
- }
867
- if (value === this.local.select_value) {
868
- renderer.#out.push(" selected");
869
- }
870
- renderer.#out.push(`>${body2}${is_rich ? "<!>" : ""}</option>`);
871
- if (head2) {
872
- renderer.head((child) => child.push(head2));
873
- }
874
- };
875
- if (typeof body === "function") {
876
- this.child((renderer) => {
877
- const r2 = new Renderer(this.global, this);
878
- body(r2);
879
- if (this.global.mode === "async") {
880
- return r2.#collect_content_async().then((content) => {
881
- close(renderer, content.body.replaceAll("<!---->", ""), content);
882
- });
883
- } else {
884
- const content = r2.#collect_content();
885
- close(renderer, content.body.replaceAll("<!---->", ""), content);
886
- }
887
- });
888
- } else {
889
- close(this, body, { body });
890
- }
891
- }
892
- /**
893
- * @param {(renderer: Renderer) => void} fn
894
- */
895
- title(fn) {
896
- const path = this.get_path();
897
- const close = (head2) => {
898
- this.global.set_title(head2, path);
899
- };
900
- this.child((renderer) => {
901
- const r2 = new Renderer(renderer.global, renderer);
902
- fn(r2);
903
- if (renderer.global.mode === "async") {
904
- return r2.#collect_content_async().then((content) => {
905
- close(content.head);
906
- });
907
- } else {
908
- const content = r2.#collect_content();
909
- close(content.head);
910
- }
911
- });
912
- }
913
- /**
914
- * @param {string | (() => Promise<string>)} content
915
- */
916
- push(content) {
917
- if (typeof content === "function") {
918
- this.child(async (renderer) => renderer.push(await content()));
919
- } else {
920
- this.#out.push(content);
921
- }
922
- }
923
- /**
924
- * @param {() => void} fn
925
- */
926
- on_destroy(fn) {
927
- (this.#on_destroy ??= []).push(fn);
928
- }
929
- /**
930
- * @returns {number[]}
931
- */
932
- get_path() {
933
- return this.#parent ? [...this.#parent.get_path(), this.#parent.#out.indexOf(this)] : [];
934
- }
935
- /**
936
- * @deprecated this is needed for legacy component bindings
937
- */
938
- copy() {
939
- const copy = new Renderer(this.global, this.#parent);
940
- copy.#out = this.#out.map((item) => item instanceof Renderer ? item.copy() : item);
941
- copy.promise = this.promise;
942
- return copy;
943
- }
944
- /**
945
- * @param {Renderer} other
946
- * @deprecated this is needed for legacy component bindings
947
- */
948
- subsume(other) {
949
- if (this.global.mode !== other.global.mode) {
950
- throw new Error(
951
- "invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!"
952
- );
953
- }
954
- this.local = other.local;
955
- this.#out = other.#out.map((item) => {
956
- if (item instanceof Renderer) {
957
- item.subsume(item);
958
- }
959
- return item;
960
- });
961
- this.promise = other.promise;
962
- this.type = other.type;
963
- }
964
- get length() {
965
- return this.#out.length;
966
- }
967
- /**
968
- * Only available on the server and when compiling with the `server` option.
969
- * 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.
970
- * @template {Record<string, any>} Props
971
- * @param {Component<Props>} component
972
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp }} [options]
973
- * @returns {RenderOutput}
974
- */
975
- static render(component, options = {}) {
976
- let sync;
977
- const result = (
978
- /** @type {RenderOutput} */
979
- {}
980
- );
981
- Object.defineProperties(result, {
982
- html: {
983
- get: () => {
984
- return (sync ??= Renderer.#render(component, options)).body;
985
- }
986
- },
987
- head: {
988
- get: () => {
989
- return (sync ??= Renderer.#render(component, options)).head;
990
- }
991
- },
992
- body: {
993
- get: () => {
994
- return (sync ??= Renderer.#render(component, options)).body;
995
- }
996
- },
997
- hashes: {
998
- value: {
999
- script: ""
1000
- }
1001
- },
1002
- then: {
1003
- value: (
1004
- /**
1005
- * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
1006
- *
1007
- * @template TResult1
1008
- * @template [TResult2=never]
1009
- * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled
1010
- * @param { (reason: unknown) => TResult2 } onrejected
1011
- */
1012
- (onfulfilled, onrejected) => {
1013
- {
1014
- const result2 = sync ??= Renderer.#render(component, options);
1015
- const user_result = onfulfilled({
1016
- head: result2.head,
1017
- body: result2.body,
1018
- html: result2.body,
1019
- hashes: { script: [] }
1020
- });
1021
- return Promise.resolve(user_result);
1022
- }
1023
- }
1024
- )
1025
- }
1026
- });
1027
- return result;
1028
- }
1029
- /**
1030
- * Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call
1031
- * after awaiting `collect_async`.
1032
- *
1033
- * Child renderers are "porous" and don't affect execution order, but component body renderers
1034
- * create ordering boundaries. Within a renderer, callbacks run in order until hitting a component boundary.
1035
- * @returns {Iterable<() => void>}
1036
- */
1037
- *#collect_on_destroy() {
1038
- for (const component of this.#traverse_components()) {
1039
- yield* component.#collect_ondestroy();
1040
- }
1041
- }
1042
- /**
1043
- * Performs a depth-first search of renderers, yielding the deepest components first, then additional components as we backtrack up the tree.
1044
- * @returns {Iterable<Renderer>}
1045
- */
1046
- *#traverse_components() {
1047
- for (const child of this.#out) {
1048
- if (typeof child !== "string") {
1049
- yield* child.#traverse_components();
1050
- }
1051
- }
1052
- if (this.#is_component_body) {
1053
- yield this;
1054
- }
1055
- }
1056
- /**
1057
- * @returns {Iterable<() => void>}
1058
- */
1059
- *#collect_ondestroy() {
1060
- if (this.#on_destroy) {
1061
- for (const fn of this.#on_destroy) {
1062
- yield fn;
1063
- }
1064
- }
1065
- for (const child of this.#out) {
1066
- if (child instanceof Renderer && !child.#is_component_body) {
1067
- yield* child.#collect_ondestroy();
1068
- }
1069
- }
1070
- }
1071
- /**
1072
- * Render a component. Throws if any of the children are performing asynchronous work.
1073
- *
1074
- * @template {Record<string, any>} Props
1075
- * @param {Component<Props>} component
1076
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options
1077
- * @returns {AccumulatedContent}
1078
- */
1079
- static #render(component, options) {
1080
- var previous_context = ssr_context;
1081
- try {
1082
- const renderer = Renderer.#open_render("sync", component, options);
1083
- const content = renderer.#collect_content();
1084
- return Renderer.#close_render(content, renderer);
1085
- } finally {
1086
- abort();
1087
- set_ssr_context(previous_context);
1088
- }
1089
- }
1090
- /**
1091
- * Render a component.
1092
- *
1093
- * @template {Record<string, any>} Props
1094
- * @param {Component<Props>} component
1095
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp }} options
1096
- * @returns {Promise<AccumulatedContent & { hashes: { script: Sha256Source[] } }>}
1097
- */
1098
- static async #render_async(component, options) {
1099
- const previous_context = ssr_context;
1100
- try {
1101
- const renderer = Renderer.#open_render("async", component, options);
1102
- const content = await renderer.#collect_content_async();
1103
- const hydratables = await renderer.#collect_hydratables();
1104
- if (hydratables !== null) {
1105
- content.head = hydratables + content.head;
1106
- }
1107
- return Renderer.#close_render(content, renderer);
1108
- } finally {
1109
- set_ssr_context(previous_context);
1110
- abort();
1111
- }
1112
- }
1113
- /**
1114
- * Collect all of the code from the `out` array and return it as a string, or a promise resolving to a string.
1115
- * @param {AccumulatedContent} content
1116
- * @returns {AccumulatedContent}
1117
- */
1118
- #collect_content(content = { head: "", body: "" }) {
1119
- for (const item of this.#out) {
1120
- if (typeof item === "string") {
1121
- content[this.type] += item;
1122
- } else if (item instanceof Renderer) {
1123
- item.#collect_content(content);
1124
- }
1125
- }
1126
- return content;
1127
- }
1128
- /**
1129
- * Collect all of the code from the `out` array and return it as a string.
1130
- * @param {AccumulatedContent} content
1131
- * @returns {Promise<AccumulatedContent>}
1132
- */
1133
- async #collect_content_async(content = { head: "", body: "" }) {
1134
- await this.promise;
1135
- for (const item of this.#out) {
1136
- if (typeof item === "string") {
1137
- content[this.type] += item;
1138
- } else if (item instanceof Renderer) {
1139
- await item.#collect_content_async(content);
1140
- }
1141
- }
1142
- return content;
1143
- }
1144
- async #collect_hydratables() {
1145
- const ctx = get_render_context().hydratable;
1146
- for (const [_, key] of ctx.unresolved_promises) {
1147
- unresolved_hydratable(key, ctx.lookup.get(key)?.stack ?? "<missing stack trace>");
1148
- }
1149
- for (const comparison of ctx.comparisons) {
1150
- await comparison;
1151
- }
1152
- return await this.#hydratable_block(ctx);
1153
- }
1154
- /**
1155
- * @template {Record<string, any>} Props
1156
- * @param {'sync' | 'async'} mode
1157
- * @param {import('svelte').Component<Props>} component
1158
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp }} options
1159
- * @returns {Renderer}
1160
- */
1161
- static #open_render(mode, component, options) {
1162
- const renderer = new Renderer(
1163
- new SSRState(mode, options.idPrefix ? options.idPrefix + "-" : "", options.csp)
1164
- );
1165
- renderer.push(BLOCK_OPEN);
1166
- if (options.context) {
1167
- push();
1168
- ssr_context.c = options.context;
1169
- ssr_context.r = renderer;
1170
- }
1171
- component(renderer, options.props ?? {});
1172
- if (options.context) {
1173
- pop();
1174
- }
1175
- renderer.push(BLOCK_CLOSE);
1176
- return renderer;
1177
- }
1178
- /**
1179
- * @param {AccumulatedContent} content
1180
- * @param {Renderer} renderer
1181
- * @returns {AccumulatedContent & { hashes: { script: Sha256Source[] } }}
1182
- */
1183
- static #close_render(content, renderer) {
1184
- for (const cleanup of renderer.#collect_on_destroy()) {
1185
- cleanup();
1186
- }
1187
- let head2 = content.head + renderer.global.get_title();
1188
- let body = content.body;
1189
- for (const { hash, code } of renderer.global.css) {
1190
- head2 += `<style id="${hash}">${code}</style>`;
1191
- }
1192
- return {
1193
- head: head2,
1194
- body,
1195
- hashes: {
1196
- script: renderer.global.csp.script_hashes
1197
- }
1198
- };
1199
- }
1200
- /**
1201
- * @param {HydratableContext} ctx
1202
- */
1203
- async #hydratable_block(ctx) {
1204
- if (ctx.lookup.size === 0) {
1205
- return null;
1206
- }
1207
- let entries = [];
1208
- let has_promises = false;
1209
- for (const [k, v] of ctx.lookup) {
1210
- if (v.promises) {
1211
- has_promises = true;
1212
- for (const p of v.promises) await p;
1213
- }
1214
- entries.push(`[${uneval(k)},${v.serialized}]`);
1215
- }
1216
- let prelude = `const h = (window.__svelte ??= {}).h ??= new Map();`;
1217
- if (has_promises) {
1218
- prelude = `const r = (v) => Promise.resolve(v);
1219
- ${prelude}`;
1220
- }
1221
- const body = `
1222
- {
1223
- ${prelude}
1224
-
1225
- for (const [k, v] of [
1226
- ${entries.join(",\n ")}
1227
- ]) {
1228
- h.set(k, v);
1229
- }
1230
- }
1231
- `;
1232
- let csp_attr = "";
1233
- if (this.global.csp.nonce) {
1234
- csp_attr = ` nonce="${this.global.csp.nonce}"`;
1235
- } else if (this.global.csp.hash) {
1236
- const hash = await sha256(body);
1237
- this.global.csp.script_hashes.push(`sha256-${hash}`);
1238
- }
1239
- return `
1240
- <script${csp_attr}>${body}<\/script>`;
1241
- }
1242
- }
1243
- class SSRState {
1244
- /** @readonly @type {Csp & { script_hashes: Sha256Source[] }} */
1245
- csp;
1246
- /** @readonly @type {'sync' | 'async'} */
1247
- mode;
1248
- /** @readonly @type {() => string} */
1249
- uid;
1250
- /** @readonly @type {Set<{ hash: string; code: string }>} */
1251
- css = /* @__PURE__ */ new Set();
1252
- /** @type {{ path: number[], value: string }} */
1253
- #title = { path: [], value: "" };
1254
- /**
1255
- * @param {'sync' | 'async'} mode
1256
- * @param {string} id_prefix
1257
- * @param {Csp} csp
1258
- */
1259
- constructor(mode, id_prefix = "", csp = { hash: false }) {
1260
- this.mode = mode;
1261
- this.csp = { ...csp, script_hashes: [] };
1262
- let uid = 1;
1263
- this.uid = () => `${id_prefix}s${uid++}`;
1264
- }
1265
- get_title() {
1266
- return this.#title.value;
1267
- }
1268
- /**
1269
- * Performs a depth-first (lexicographic) comparison using the path. Rejects sets
1270
- * from earlier than or equal to the current value.
1271
- * @param {string} value
1272
- * @param {number[]} path
1273
- */
1274
- set_title(value, path) {
1275
- const current = this.#title.path;
1276
- let i = 0;
1277
- let l = Math.min(path.length, current.length);
1278
- while (i < l && path[i] === current[i]) i += 1;
1279
- if (path[i] === void 0) return;
1280
- if (current[i] === void 0 || path[i] > current[i]) {
1281
- this.#title.path = path;
1282
- this.#title.value = value;
1283
- }
1284
- }
1285
- }
1286
- 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;
1287
- function render(component, options = {}) {
1288
- if (options.csp?.hash && options.csp.nonce) {
1289
- invalid_csp();
1290
- }
1291
- return Renderer.render(
1292
- /** @type {Component<Props>} */
1293
- component,
1294
- options
1295
- );
1296
- }
1297
- function head(hash, renderer, fn) {
1298
- renderer.head((renderer2) => {
1299
- renderer2.push(`<!--${hash}-->`);
1300
- renderer2.child(fn);
1301
- renderer2.push(EMPTY_COMMENT);
1302
- });
1303
- }
1304
- function attributes(attrs, css_hash, classes, styles, flags = 0) {
1305
- if (styles) {
1306
- attrs.style = to_style(attrs.style, styles);
1307
- }
1308
- if (attrs.class) {
1309
- attrs.class = clsx(attrs.class);
1310
- }
1311
- if (css_hash || classes) {
1312
- attrs.class = to_class(attrs.class, css_hash, classes);
1313
- }
1314
- let attr_str = "";
1315
- let name;
1316
- const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0;
1317
- const lowercase = (flags & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0;
1318
- const is_input = (flags & ELEMENT_IS_INPUT) !== 0;
1319
- for (name in attrs) {
1320
- if (typeof attrs[name] === "function") continue;
1321
- if (name[0] === "$" && name[1] === "$") continue;
1322
- if (INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;
1323
- var value = attrs[name];
1324
- if (lowercase) {
1325
- name = name.toLowerCase();
1326
- }
1327
- if (is_input) {
1328
- if (name === "defaultvalue" || name === "defaultchecked") {
1329
- name = name === "defaultvalue" ? "value" : "checked";
1330
- if (attrs[name]) continue;
1331
- }
1332
- }
1333
- attr_str += attr(name, value, is_html && is_boolean_attribute(name));
1334
- }
1335
- return attr_str;
1336
- }
1337
- function spread_props(props) {
1338
- const merged_props = {};
1339
- let key;
1340
- for (let i = 0; i < props.length; i++) {
1341
- const obj = props[i];
1342
- for (key in obj) {
1343
- const desc = Object.getOwnPropertyDescriptor(obj, key);
1344
- if (desc) {
1345
- Object.defineProperty(merged_props, key, desc);
1346
- } else {
1347
- merged_props[key] = obj[key];
1348
- }
1349
- }
1350
- }
1351
- return merged_props;
1352
- }
1353
- function stringify(value) {
1354
- return typeof value === "string" ? value : value == null ? "" : value + "";
1355
- }
1356
- function attr_class(value, hash, directives) {
1357
- var result = to_class(value, hash, directives);
1358
- return result ? ` class="${escape_html(result, true)}"` : "";
1359
- }
1360
- function attr_style(value, directives) {
1361
- var result = to_style(value, directives);
1362
- return result ? ` style="${escape_html(result, true)}"` : "";
1363
- }
1364
- function bind_props(props_parent, props_now) {
1365
- for (const key in props_now) {
1366
- const initial_value = props_parent[key];
1367
- const value = props_now[key];
1368
- if (initial_value === void 0 && value !== void 0 && Object.getOwnPropertyDescriptor(props_parent, key)?.set) {
1369
- props_parent[key] = value;
1370
- }
1371
- }
1372
- }
1373
- function ensure_array_like(array_like_or_iterator) {
1374
- if (array_like_or_iterator) {
1375
- return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
1376
- }
1377
- return [];
1378
- }
1379
- function props_id(renderer) {
1380
- const uid = renderer.global.uid();
1381
- renderer.push("<!--$" + uid + "-->");
1382
- return uid;
1383
- }
1384
-
1385
- export { ASYNC as A, BLOCK_EFFECT as B, CONNECTED as C, DevalueError as D, ERROR_VALUE as E, HYDRATION_END as F, HYDRATION_START_ELSE as G, HYDRATION_START as H, INERT as I, USER_EFFECT as J, uneval as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, head as N, ensure_array_like as O, attr_class as P, attr_style as Q, ROOT_EFFECT as R, STATE_SYMBOL as S, bind_props as T, UNINITIALIZED as U, attr as V, WAS_MARKED as W, stringify as X, props_id as Y, clsx as Z, spread_props as _, is_plain_object as a, stringify_string as b, COMMENT_NODE as c, HYDRATION_ERROR as d, enumerable_symbols as e, DERIVED as f, get_type as g, DIRTY as h, is_primitive as i, CLEAN as j, EFFECT as k, is_passive_event as l, BRANCH_EFFECT as m, RENDER_EFFECT as n, MANAGED_EFFECT as o, DESTROYED as p, HEAD_EFFECT as q, render as r, stringify_key as s, REACTION_IS_UPDATING as t, EFFECT_RAN as u, EFFECT_PRESERVED as v, EFFECT_TRANSPARENT as w, BOUNDARY_EFFECT as x, EAGER_EFFECT as y, STALE_REACTION as z };
1386
- //# sourceMappingURL=index-Z8eOP0z5.js.map