@kozou/svelte-ui 1.21.0 → 1.21.1

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 (236) hide show
  1. package/build/client/_app/immutable/assets/{0.BFw6nhto.css → 0.D0QQ9_9s.css} +1 -1
  2. package/build/client/_app/immutable/assets/0.D0QQ9_9s.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.D0QQ9_9s.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/BPmV12Pr.js +3 -0
  5. package/build/client/_app/immutable/chunks/BPmV12Pr.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/BPmV12Pr.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/CzvdUerA.js +1 -0
  8. package/build/client/_app/immutable/chunks/CzvdUerA.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/CzvdUerA.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/DM1WDXNi.js +2 -0
  11. package/build/client/_app/immutable/chunks/DM1WDXNi.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/DM1WDXNi.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/DRLNDRGd.js +1 -0
  14. package/build/client/_app/immutable/chunks/DRLNDRGd.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/DRLNDRGd.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/Tpr6dUXs.js +1 -0
  17. package/build/client/_app/immutable/chunks/Tpr6dUXs.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/Tpr6dUXs.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/ng5ew0-V.js +2 -0
  20. package/build/client/_app/immutable/chunks/ng5ew0-V.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/ng5ew0-V.js.gz +0 -0
  22. package/build/client/_app/immutable/entry/app.IRpLXiYT.js +2 -0
  23. package/build/client/_app/immutable/entry/app.IRpLXiYT.js.br +0 -0
  24. package/build/client/_app/immutable/entry/app.IRpLXiYT.js.gz +0 -0
  25. package/build/client/_app/immutable/entry/start.DHyiZRvR.js +1 -0
  26. package/build/client/_app/immutable/entry/start.DHyiZRvR.js.br +1 -0
  27. package/build/client/_app/immutable/entry/start.DHyiZRvR.js.gz +0 -0
  28. package/build/client/_app/immutable/nodes/0.CzDt86DM.js +1 -0
  29. package/build/client/_app/immutable/nodes/0.CzDt86DM.js.br +2 -0
  30. package/build/client/_app/immutable/nodes/0.CzDt86DM.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/1.Ds1FrfOA.js +1 -0
  32. package/build/client/_app/immutable/nodes/1.Ds1FrfOA.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/1.Ds1FrfOA.js.gz +0 -0
  34. package/build/client/_app/immutable/nodes/2.BJIHarag.js +2 -0
  35. package/build/client/_app/immutable/nodes/2.BJIHarag.js.br +0 -0
  36. package/build/client/_app/immutable/nodes/2.BJIHarag.js.gz +0 -0
  37. package/build/client/_app/immutable/nodes/3.vV9B4dJJ.js +1 -0
  38. package/build/client/_app/immutable/nodes/3.vV9B4dJJ.js.br +0 -0
  39. package/build/client/_app/immutable/nodes/3.vV9B4dJJ.js.gz +0 -0
  40. package/build/client/_app/immutable/nodes/{4.DP1YMUE5.js → 4.Dspxez47.js} +2 -2
  41. package/build/client/_app/immutable/nodes/4.Dspxez47.js.br +0 -0
  42. package/build/client/_app/immutable/nodes/4.Dspxez47.js.gz +0 -0
  43. package/build/client/_app/immutable/nodes/5.Bv_PVEBh.js +1 -0
  44. package/build/client/_app/immutable/nodes/5.Bv_PVEBh.js.br +0 -0
  45. package/build/client/_app/immutable/nodes/5.Bv_PVEBh.js.gz +0 -0
  46. package/build/client/_app/immutable/nodes/6.DozLeltI.js +1 -0
  47. package/build/client/_app/immutable/nodes/6.DozLeltI.js.br +0 -0
  48. package/build/client/_app/immutable/nodes/6.DozLeltI.js.gz +0 -0
  49. package/build/client/_app/immutable/nodes/7.OrbBRjxz.js +1 -0
  50. package/build/client/_app/immutable/nodes/7.OrbBRjxz.js.br +0 -0
  51. package/build/client/_app/immutable/nodes/7.OrbBRjxz.js.gz +0 -0
  52. package/build/client/_app/immutable/nodes/8.BwzzPDZH.js +1 -0
  53. package/build/client/_app/immutable/nodes/8.BwzzPDZH.js.br +0 -0
  54. package/build/client/_app/immutable/nodes/8.BwzzPDZH.js.gz +0 -0
  55. package/build/client/_app/immutable/nodes/{9.ByJ3R-gj.js → 9.DcN_pzX4.js} +1 -1
  56. package/build/client/_app/immutable/nodes/9.DcN_pzX4.js.br +0 -0
  57. package/build/client/_app/immutable/nodes/9.DcN_pzX4.js.gz +0 -0
  58. package/build/client/_app/version.json +1 -1
  59. package/build/client/_app/version.json.br +0 -0
  60. package/build/client/_app/version.json.gz +0 -0
  61. package/build/server/chunks/{0-QvKVS1pE.js → 0-D3Od9Nns.js} +6 -6
  62. package/build/server/chunks/0-D3Od9Nns.js.map +1 -0
  63. package/build/server/chunks/1-DixDdLll.js +9 -0
  64. package/build/server/chunks/{1-D1C-sDZX.js.map → 1-DixDdLll.js.map} +1 -1
  65. package/build/server/chunks/{2-DGOJW-s_.js → 2-CZzPkcAH.js} +6 -7
  66. package/build/server/chunks/2-CZzPkcAH.js.map +1 -0
  67. package/build/server/chunks/{3-CQQukqb6.js → 3-BN6KhH_S.js} +15 -15
  68. package/build/server/chunks/3-BN6KhH_S.js.map +1 -0
  69. package/build/server/chunks/{4-OlSudnzY.js → 4-DnqMYPCR.js} +7 -6
  70. package/build/server/chunks/4-DnqMYPCR.js.map +1 -0
  71. package/build/server/chunks/{5-D-48ExuO.js → 5-DcH4FkmM.js} +8 -7
  72. package/build/server/chunks/5-DcH4FkmM.js.map +1 -0
  73. package/build/server/chunks/{6-38Syf-d0.js → 6-DAv9kX20.js} +8 -9
  74. package/build/server/chunks/6-DAv9kX20.js.map +1 -0
  75. package/build/server/chunks/{7-ekRzgLQW.js → 7-BjYWuqqT.js} +14 -14
  76. package/build/server/chunks/7-BjYWuqqT.js.map +1 -0
  77. package/build/server/chunks/{8-Bg8l4V-v.js → 8-0yg0evpN.js} +14 -14
  78. package/build/server/chunks/8-0yg0evpN.js.map +1 -0
  79. package/build/server/chunks/{9-DRxhju5a.js → 9-D4RQ11kF.js} +9 -9
  80. package/build/server/chunks/9-D4RQ11kF.js.map +1 -0
  81. package/build/server/chunks/{ListTable-D8OnEdye.js → ListTable-BAC5xf0U.js} +5 -6
  82. package/build/server/chunks/ListTable-BAC5xf0U.js.map +1 -0
  83. package/build/server/chunks/{_layout.svelte-CouhggA0.js → _layout.svelte-BTiJ5oei.js} +3 -3
  84. package/build/server/chunks/_layout.svelte-BTiJ5oei.js.map +1 -0
  85. package/build/server/chunks/{_page.svelte-U3NAUHjD.js → _page.svelte-28WIAb-A.js} +10 -10
  86. package/build/server/chunks/_page.svelte-28WIAb-A.js.map +1 -0
  87. package/build/server/chunks/{_page.svelte-D8nYMywt.js → _page.svelte-BE0Fm43g.js} +5 -5
  88. package/build/server/chunks/_page.svelte-BE0Fm43g.js.map +1 -0
  89. package/build/server/chunks/{_page.svelte-CF5G5_Qj.js → _page.svelte-BN_4l_X_.js} +9 -9
  90. package/build/server/chunks/_page.svelte-BN_4l_X_.js.map +1 -0
  91. package/build/server/chunks/{_page.svelte-BHW_BBcE.js → _page.svelte-C2VLDSXv.js} +5 -5
  92. package/build/server/chunks/_page.svelte-C2VLDSXv.js.map +1 -0
  93. package/build/server/chunks/{_page.svelte-Bf0wrvsv.js → _page.svelte-CYtHpl1s.js} +3 -3
  94. package/build/server/chunks/_page.svelte-CYtHpl1s.js.map +1 -0
  95. package/build/server/chunks/{_page.svelte-DT767_JP.js → _page.svelte-CmOUnClb.js} +10 -10
  96. package/build/server/chunks/_page.svelte-CmOUnClb.js.map +1 -0
  97. package/build/server/chunks/{_page.svelte-DeVGBJ28.js → _page.svelte-DhUxTzmV.js} +3 -3
  98. package/build/server/chunks/_page.svelte-DhUxTzmV.js.map +1 -0
  99. package/build/server/chunks/{_page.svelte-Bflq2ZC_.js → _page.svelte-uvkEYlC-.js} +6 -7
  100. package/build/server/chunks/_page.svelte-uvkEYlC-.js.map +1 -0
  101. package/build/server/chunks/_server.ts-BwAtICwe.js +20 -0
  102. package/build/server/chunks/_server.ts-BwAtICwe.js.map +1 -0
  103. package/build/server/chunks/{adapter-DVhZVTjg.js → adapter-DNuW0qB7.js} +7 -10
  104. package/build/server/chunks/adapter-DNuW0qB7.js.map +1 -0
  105. package/build/server/chunks/{adapter-error-yHvEGaY7.js → adapter-error-ChkgLg4H.js} +3 -3
  106. package/build/server/chunks/adapter-error-ChkgLg4H.js.map +1 -0
  107. package/build/server/chunks/app-SwLi37Vg.js +12 -0
  108. package/build/server/chunks/app-SwLi37Vg.js.map +1 -0
  109. package/build/server/chunks/{client-Cw4UuVj7.js → client-DVDsL8PQ.js} +4 -5
  110. package/build/server/chunks/client-DVDsL8PQ.js.map +1 -0
  111. package/build/server/chunks/{composite-form-CknLQw1V.js → composite-form-WDDlaUQo.js} +96 -112
  112. package/build/server/chunks/composite-form-WDDlaUQo.js.map +1 -0
  113. package/build/server/chunks/{error.svelte-D5apgNs3.js → error.svelte-CAqyybBm.js} +7 -10
  114. package/build/server/chunks/error.svelte-CAqyybBm.js.map +1 -0
  115. package/build/server/chunks/{hooks.server-DdKpHWZs.js → hooks.server-CU_-pzVZ.js} +312 -363
  116. package/build/server/chunks/hooks.server-CU_-pzVZ.js.map +1 -0
  117. package/build/server/chunks/index-CVekYGHP.js.map +1 -1
  118. package/build/server/chunks/index-DBqjc0Yf.js.map +1 -1
  119. package/build/server/chunks/{internal2-FDPpgj8I.js → internal2-Dgkl_mbK.js} +340 -227
  120. package/build/server/chunks/internal2-Dgkl_mbK.js.map +1 -0
  121. package/build/server/chunks/{list-params-DiCLPOBj.js → list-params-Dz_BNoxl.js} +3 -3
  122. package/build/server/chunks/list-params-Dz_BNoxl.js.map +1 -0
  123. package/build/server/chunks/{mcp-connection-JeveuASs.js → mcp-connection-CoIXpCQy.js} +2 -2
  124. package/build/server/chunks/mcp-connection-CoIXpCQy.js.map +1 -0
  125. package/build/server/chunks/{privilege-readonly-CK4k2aYO.js → privilege-readonly-CoCKf_KX.js} +2 -2
  126. package/build/server/chunks/privilege-readonly-CoCKf_KX.js.map +1 -0
  127. package/build/server/chunks/{relation-options-jz3t9Tvk.js → relation-options-DTOgED4q.js} +2 -2
  128. package/build/server/chunks/{relation-options-jz3t9Tvk.js.map → relation-options-DTOgED4q.js.map} +1 -1
  129. package/build/server/chunks/{relation-select-composite-field-C7hhr0Rv.js → relation-select-composite-field-CqIRP5Rd.js} +6 -6
  130. package/build/server/chunks/relation-select-composite-field-CqIRP5Rd.js.map +1 -0
  131. package/build/server/chunks/{resource-id-CFSW_3aR.js → resource-id-vFoEgiDD.js} +2 -2
  132. package/build/server/chunks/resource-id-vFoEgiDD.js.map +1 -0
  133. package/build/server/chunks/{server-1sE9LKAu.js → server-CiEA6lY_.js} +222 -143
  134. package/build/server/chunks/server-CiEA6lY_.js.map +1 -0
  135. package/build/server/chunks/{widget-registry-D4uP1dwJ.js → widget-registry-Dhgkh66t.js} +18 -32
  136. package/build/server/chunks/widget-registry-Dhgkh66t.js.map +1 -0
  137. package/build/server/index.js +138 -153
  138. package/build/server/index.js.map +1 -1
  139. package/build/server/manifest.js +12 -12
  140. package/build/server/manifest.js.map +1 -1
  141. package/package.json +8 -8
  142. package/build/client/_app/immutable/assets/0.BFw6nhto.css.br +0 -0
  143. package/build/client/_app/immutable/assets/0.BFw6nhto.css.gz +0 -0
  144. package/build/client/_app/immutable/chunks/5rwK4lPQ.js +0 -214
  145. package/build/client/_app/immutable/chunks/5rwK4lPQ.js.br +0 -0
  146. package/build/client/_app/immutable/chunks/5rwK4lPQ.js.gz +0 -0
  147. package/build/client/_app/immutable/chunks/BCyhxqkf.js +0 -3
  148. package/build/client/_app/immutable/chunks/BCyhxqkf.js.br +0 -0
  149. package/build/client/_app/immutable/chunks/BCyhxqkf.js.gz +0 -0
  150. package/build/client/_app/immutable/chunks/CfACBkhZ.js +0 -1
  151. package/build/client/_app/immutable/chunks/CfACBkhZ.js.br +0 -0
  152. package/build/client/_app/immutable/chunks/CfACBkhZ.js.gz +0 -0
  153. package/build/client/_app/immutable/chunks/ClT4djUO.js +0 -2
  154. package/build/client/_app/immutable/chunks/ClT4djUO.js.br +0 -0
  155. package/build/client/_app/immutable/chunks/ClT4djUO.js.gz +0 -0
  156. package/build/client/_app/immutable/chunks/JXJVpBsY.js +0 -1
  157. package/build/client/_app/immutable/chunks/JXJVpBsY.js.br +0 -0
  158. package/build/client/_app/immutable/chunks/JXJVpBsY.js.gz +0 -0
  159. package/build/client/_app/immutable/chunks/PuplGS2B.js +0 -1
  160. package/build/client/_app/immutable/chunks/PuplGS2B.js.br +0 -0
  161. package/build/client/_app/immutable/chunks/PuplGS2B.js.gz +0 -0
  162. package/build/client/_app/immutable/chunks/kNaey6uv.js +0 -1
  163. package/build/client/_app/immutable/chunks/kNaey6uv.js.br +0 -0
  164. package/build/client/_app/immutable/chunks/kNaey6uv.js.gz +0 -0
  165. package/build/client/_app/immutable/entry/app.PGoACTEG.js +0 -2
  166. package/build/client/_app/immutable/entry/app.PGoACTEG.js.br +0 -0
  167. package/build/client/_app/immutable/entry/app.PGoACTEG.js.gz +0 -0
  168. package/build/client/_app/immutable/entry/start.DAjSqUp-.js +0 -1
  169. package/build/client/_app/immutable/entry/start.DAjSqUp-.js.br +0 -0
  170. package/build/client/_app/immutable/entry/start.DAjSqUp-.js.gz +0 -0
  171. package/build/client/_app/immutable/nodes/0.ifyNoaZz.js +0 -1
  172. package/build/client/_app/immutable/nodes/0.ifyNoaZz.js.br +0 -0
  173. package/build/client/_app/immutable/nodes/0.ifyNoaZz.js.gz +0 -0
  174. package/build/client/_app/immutable/nodes/1.B_v1dtms.js +0 -1
  175. package/build/client/_app/immutable/nodes/1.B_v1dtms.js.br +0 -0
  176. package/build/client/_app/immutable/nodes/1.B_v1dtms.js.gz +0 -0
  177. package/build/client/_app/immutable/nodes/2.D_d90ZDd.js +0 -2
  178. package/build/client/_app/immutable/nodes/2.D_d90ZDd.js.br +0 -0
  179. package/build/client/_app/immutable/nodes/2.D_d90ZDd.js.gz +0 -0
  180. package/build/client/_app/immutable/nodes/3.Pus3Xsis.js +0 -1
  181. package/build/client/_app/immutable/nodes/3.Pus3Xsis.js.br +0 -0
  182. package/build/client/_app/immutable/nodes/3.Pus3Xsis.js.gz +0 -0
  183. package/build/client/_app/immutable/nodes/4.DP1YMUE5.js.br +0 -0
  184. package/build/client/_app/immutable/nodes/4.DP1YMUE5.js.gz +0 -0
  185. package/build/client/_app/immutable/nodes/5.CyMRYzSq.js +0 -1
  186. package/build/client/_app/immutable/nodes/5.CyMRYzSq.js.br +0 -0
  187. package/build/client/_app/immutable/nodes/5.CyMRYzSq.js.gz +0 -0
  188. package/build/client/_app/immutable/nodes/6.C2ZlP-Nf.js +0 -1
  189. package/build/client/_app/immutable/nodes/6.C2ZlP-Nf.js.br +0 -0
  190. package/build/client/_app/immutable/nodes/6.C2ZlP-Nf.js.gz +0 -0
  191. package/build/client/_app/immutable/nodes/7.CjC4cmk5.js +0 -1
  192. package/build/client/_app/immutable/nodes/7.CjC4cmk5.js.br +0 -0
  193. package/build/client/_app/immutable/nodes/7.CjC4cmk5.js.gz +0 -0
  194. package/build/client/_app/immutable/nodes/8.tYl-mxpR.js +0 -1
  195. package/build/client/_app/immutable/nodes/8.tYl-mxpR.js.br +0 -0
  196. package/build/client/_app/immutable/nodes/8.tYl-mxpR.js.gz +0 -0
  197. package/build/client/_app/immutable/nodes/9.ByJ3R-gj.js.br +0 -2
  198. package/build/client/_app/immutable/nodes/9.ByJ3R-gj.js.gz +0 -0
  199. package/build/server/chunks/0-QvKVS1pE.js.map +0 -1
  200. package/build/server/chunks/1-D1C-sDZX.js +0 -9
  201. package/build/server/chunks/2-DGOJW-s_.js.map +0 -1
  202. package/build/server/chunks/3-CQQukqb6.js.map +0 -1
  203. package/build/server/chunks/4-OlSudnzY.js.map +0 -1
  204. package/build/server/chunks/5-D-48ExuO.js.map +0 -1
  205. package/build/server/chunks/6-38Syf-d0.js.map +0 -1
  206. package/build/server/chunks/7-ekRzgLQW.js.map +0 -1
  207. package/build/server/chunks/8-Bg8l4V-v.js.map +0 -1
  208. package/build/server/chunks/9-DRxhju5a.js.map +0 -1
  209. package/build/server/chunks/ListTable-D8OnEdye.js.map +0 -1
  210. package/build/server/chunks/_layout.svelte-CouhggA0.js.map +0 -1
  211. package/build/server/chunks/_page.svelte-BHW_BBcE.js.map +0 -1
  212. package/build/server/chunks/_page.svelte-Bf0wrvsv.js.map +0 -1
  213. package/build/server/chunks/_page.svelte-Bflq2ZC_.js.map +0 -1
  214. package/build/server/chunks/_page.svelte-CF5G5_Qj.js.map +0 -1
  215. package/build/server/chunks/_page.svelte-D8nYMywt.js.map +0 -1
  216. package/build/server/chunks/_page.svelte-DT767_JP.js.map +0 -1
  217. package/build/server/chunks/_page.svelte-DeVGBJ28.js.map +0 -1
  218. package/build/server/chunks/_page.svelte-U3NAUHjD.js.map +0 -1
  219. package/build/server/chunks/_server.ts-CUXOXc9X.js +0 -19
  220. package/build/server/chunks/_server.ts-CUXOXc9X.js.map +0 -1
  221. package/build/server/chunks/adapter-DVhZVTjg.js.map +0 -1
  222. package/build/server/chunks/adapter-error-yHvEGaY7.js.map +0 -1
  223. package/build/server/chunks/app-CYD2rz7t.js +0 -12
  224. package/build/server/chunks/app-CYD2rz7t.js.map +0 -1
  225. package/build/server/chunks/client-Cw4UuVj7.js.map +0 -1
  226. package/build/server/chunks/composite-form-CknLQw1V.js.map +0 -1
  227. package/build/server/chunks/error.svelte-D5apgNs3.js.map +0 -1
  228. package/build/server/chunks/hooks.server-DdKpHWZs.js.map +0 -1
  229. package/build/server/chunks/internal2-FDPpgj8I.js.map +0 -1
  230. package/build/server/chunks/list-params-DiCLPOBj.js.map +0 -1
  231. package/build/server/chunks/mcp-connection-JeveuASs.js.map +0 -1
  232. package/build/server/chunks/privilege-readonly-CK4k2aYO.js.map +0 -1
  233. package/build/server/chunks/relation-select-composite-field-C7hhr0Rv.js.map +0 -1
  234. package/build/server/chunks/resource-id-CFSW_3aR.js.map +0 -1
  235. package/build/server/chunks/server-1sE9LKAu.js.map +0 -1
  236. package/build/server/chunks/widget-registry-D4uP1dwJ.js.map +0 -1
@@ -1,10 +1,9 @@
1
1
  import { clsx } from 'clsx';
2
2
 
3
- //#region ../../node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/constants.js
3
+ // ../../node_modules/.pnpm/devalue@5.9.4/node_modules/devalue/src/constants.js
4
4
  var MAX_ARRAY_LEN = 2 ** 32 - 1;
5
5
  var MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
6
- //#endregion
7
- //#region ../../node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/utils.js
6
+ // ../../node_modules/.pnpm/devalue@5.9.4/node_modules/devalue/src/utils.js
8
7
  /** @type {Record<string, string>} */
9
8
  var escaped = {
10
9
  "<": "\\u003C",
@@ -46,6 +45,10 @@ function is_plain_object(thing) {
46
45
  function get_type(thing) {
47
46
  return Object.prototype.toString.call(thing).slice(8, -1);
48
47
  }
48
+ /** @param {any} thing */
49
+ function is_buffer(thing) {
50
+ return typeof Buffer !== "undefined" && Buffer.isBuffer(thing);
51
+ }
49
52
  /** @param {string} char */
50
53
  function get_escaped_char(char) {
51
54
  switch (char) {
@@ -111,18 +114,25 @@ function is_valid_array_index_string(s) {
111
114
  return is_valid_array_index(+s);
112
115
  }
113
116
  /**
117
+ * Returns the length of the leading run of valid array indices in `keys`.
118
+ * @param {readonly string[]} keys
119
+ */
120
+ function array_index_cut(keys) {
121
+ for (var i = keys.length - 1; i >= 0; i--) if (is_valid_array_index_string(keys[i])) break;
122
+ return i + 1;
123
+ }
124
+ /**
114
125
  * Finds the populated indices of an array.
115
126
  * @param {unknown[]} array
116
127
  */
117
128
  function valid_array_indices(array) {
118
129
  const keys = Object.keys(array);
119
- for (var i = keys.length - 1; i >= 0; i--) if (is_valid_array_index_string(keys[i])) break;
120
- keys.length = i + 1;
130
+ keys.length = array_index_cut(keys);
121
131
  return keys;
122
132
  }
123
- //#endregion
124
- //#region ../../node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/uneval.js
133
+ // ../../node_modules/.pnpm/devalue@5.9.4/node_modules/devalue/src/uneval.js
125
134
  var chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";
135
+ var MIN_STRING_LENGTH = 128;
126
136
  var unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
127
137
  var 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)$/;
128
138
  /**
@@ -135,6 +145,21 @@ function uneval(value, replacer) {
135
145
  /** @type {string[]} */
136
146
  const keys = [];
137
147
  const custom = /* @__PURE__ */ new Map();
148
+ /** @type {Map<string | bigint, string> | undefined} */
149
+ let primitives;
150
+ /** @param {any} thing */
151
+ function stringify_cached_primitive(thing) {
152
+ if (typeof thing === "string" && thing.length >= MIN_STRING_LENGTH || typeof thing === "bigint") {
153
+ primitives ??= /* @__PURE__ */ new Map();
154
+ let literal = primitives.get(thing);
155
+ if (literal === void 0) {
156
+ literal = stringify_primitive(thing);
157
+ primitives.set(thing, literal);
158
+ }
159
+ return literal;
160
+ }
161
+ return stringify_primitive(thing);
162
+ }
138
163
  /** @param {any} thing */
139
164
  function walk(thing) {
140
165
  if (!is_primitive(thing)) {
@@ -152,27 +177,30 @@ function uneval(value, replacer) {
152
177
  }
153
178
  if (typeof thing === "function") throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
154
179
  switch (get_type(thing)) {
155
- case "Number":
156
180
  case "BigInt":
157
181
  case "String":
182
+ walk(thing.valueOf());
183
+ return;
184
+ case "Number":
158
185
  case "Boolean":
159
186
  case "Date":
160
187
  case "RegExp":
161
188
  case "URL":
162
189
  case "URLSearchParams": return;
163
190
  case "Array":
164
- /** @type {any[]} */ thing.forEach((value, i) => {
191
+ for (const i of valid_array_indices(thing)) {
165
192
  keys.push(`[${i}]`);
166
- walk(value);
193
+ walk(thing[i]);
167
194
  keys.pop();
168
- });
195
+ }
169
196
  break;
170
197
  case "Set":
171
198
  Array.from(thing).forEach(walk);
172
199
  break;
173
200
  case "Map":
174
201
  for (const [key, value] of thing) {
175
- keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`);
202
+ keys.push(`.get(${is_primitive(key) ? stringify_cached_primitive(key) : "..."})`);
203
+ walk(key);
176
204
  walk(value);
177
205
  keys.pop();
178
206
  }
@@ -190,7 +218,7 @@ function uneval(value, replacer) {
190
218
  case "BigInt64Array":
191
219
  case "BigUint64Array":
192
220
  case "DataView":
193
- walk(thing.buffer);
221
+ if (!is_buffer(thing)) walk(thing.buffer);
194
222
  return;
195
223
  case "ArrayBuffer": return;
196
224
  case "Temporal.Duration":
@@ -212,11 +240,22 @@ function uneval(value, replacer) {
212
240
  }
213
241
  }
214
242
  } else if (typeof thing === "symbol") throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
243
+ else if (typeof thing === "string" && thing.length >= MIN_STRING_LENGTH || typeof thing === "bigint") counts.set(thing, (counts.get(thing) || 0) + 1);
215
244
  }
216
245
  walk(value);
217
246
  const names = /* @__PURE__ */ new Map();
218
- Array.from(counts).filter((entry) => entry[1] > 1).sort((a, b) => b[1] - a[1]).forEach((entry, i) => {
219
- names.set(entry[0], get_name(i));
247
+ /** @type {Array<[any, number]>} */
248
+ const repeated = [];
249
+ counts.forEach((count, thing) => {
250
+ if (count > 1) repeated.push([thing, count]);
251
+ });
252
+ repeated.sort((a, b) => b[1] - a[1]).forEach(([thing, count]) => {
253
+ const name = get_name(names.size);
254
+ if (is_primitive(thing)) {
255
+ const length = stringify_cached_primitive(thing).length;
256
+ if (length * count <= length + (count + 1) * name.length + 25) return;
257
+ }
258
+ names.set(thing, name);
220
259
  });
221
260
  /**
222
261
  * @param {any} thing
@@ -248,15 +287,12 @@ function uneval(value, replacer) {
248
287
  const populated_keys = valid_array_indices(thing);
249
288
  const population = populated_keys.length;
250
289
  const d = String(thing.length).length;
251
- if (thing.length + 2 > 25 + d + population * (d + 2)) {
252
- const entries = populated_keys.map((k) => `${k}:${stringify(thing[k])}`).join(",");
253
- return `Object.assign(Array(${thing.length}),{${entries}})`;
254
- }
290
+ const array = stringify_sparse_array(thing.length);
291
+ if (thing.length + 2 > array.length + 18 + population * (d + 2)) return `Object.assign(${array},{${populated_keys.map((k) => `${k}:${stringify(thing[k])}`).join(",")}})`;
255
292
  has_holes = true;
256
- i -= 1;
257
293
  }
258
294
  }
259
- const tail = thing.length === 0 || thing.length - 1 in thing ? "" : ",";
295
+ const tail = thing.length === 0 || Object.hasOwn(thing, thing.length - 1) ? "" : ",";
260
296
  return result + tail + "]";
261
297
  }
262
298
  case "Set":
@@ -273,11 +309,10 @@ function uneval(value, replacer) {
273
309
  case "Float64Array":
274
310
  case "BigInt64Array":
275
311
  case "BigUint64Array": {
312
+ if (is_buffer(thing)) thing = new Uint8Array(thing);
276
313
  let str = `new ${type}`;
277
- if (!names.has(thing.buffer)) {
278
- const array = new thing.constructor(thing.buffer);
279
- str += `([${array}])`;
280
- } else str += `(${stringify(thing.buffer)})`;
314
+ if (!names.has(thing.buffer)) str += `([${stringify_typed_array_elements(type, thing.buffer)}])`;
315
+ else str += `(${stringify(thing.buffer)})`;
281
316
  if (thing.byteLength !== thing.buffer.byteLength) {
282
317
  const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
283
318
  const end = start + thing.length;
@@ -289,7 +324,7 @@ function uneval(value, replacer) {
289
324
  let str = `new DataView`;
290
325
  if (!names.has(thing.buffer)) str += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
291
326
  else str += `(${stringify(thing.buffer)}`;
292
- if (thing.byteLength !== thing.buffer.byteLength) str += `,${thing.startOffset},${thing.byteLength}`;
327
+ if (thing.byteLength !== thing.buffer.byteLength) str += `,${thing.byteOffset},${thing.byteLength}`;
293
328
  return str + ")";
294
329
  }
295
330
  case "ArrayBuffer": return `new Uint8Array([${new Uint8Array(thing).toString()}]).buffer`;
@@ -316,6 +351,8 @@ function uneval(value, replacer) {
316
351
  const statements = [];
317
352
  /** @type {string[]} */
318
353
  const values = [];
354
+ /** @type {string[]} */
355
+ const reconstructions = [];
319
356
  names.forEach((name, thing) => {
320
357
  params.push(name);
321
358
  if (custom.has(thing)) {
@@ -323,7 +360,7 @@ function uneval(value, replacer) {
323
360
  return;
324
361
  }
325
362
  if (is_primitive(thing)) {
326
- values.push(stringify_primitive(thing));
363
+ values.push(stringify_cached_primitive(thing));
327
364
  return;
328
365
  }
329
366
  const type = get_type(thing);
@@ -331,9 +368,14 @@ function uneval(value, replacer) {
331
368
  case "Number":
332
369
  case "String":
333
370
  case "Boolean":
334
- case "BigInt":
335
- values.push(`Object(${stringify(thing.valueOf())})`);
371
+ case "BigInt": {
372
+ const primitive = thing.valueOf();
373
+ if (names.has(primitive)) {
374
+ values.push("{}");
375
+ reconstructions.push(`${name}=Object(${stringify(primitive)})`);
376
+ } else values.push(`Object(${stringify(primitive)})`);
336
377
  break;
378
+ }
337
379
  case "RegExp":
338
380
  const { source, flags } = thing;
339
381
  const regexp = flags ? `new RegExp(${stringify_string(source)},"${flags}")` : `new RegExp(${stringify_string(source)})`;
@@ -348,20 +390,24 @@ function uneval(value, replacer) {
348
390
  case "URLSearchParams":
349
391
  values.push(`new URLSearchParams(${stringify_string(thing.toString())})`);
350
392
  break;
351
- case "Array":
352
- values.push(`Array(${thing.length})`);
353
- /** @type {any[]} */ thing.forEach((v, i) => {
354
- statements.push(`${name}[${i}]=${stringify(v)}`);
355
- });
393
+ case "Array": {
394
+ const populated_keys = valid_array_indices(thing);
395
+ values.push(thing.length > 32 + 2 * populated_keys.length ? stringify_sparse_array(thing.length) : `Array(${thing.length})`);
396
+ for (const i of populated_keys) statements.push(`${name}[${i}]=${stringify(thing[i])}`);
356
397
  break;
357
- case "Set":
398
+ }
399
+ case "Set": {
358
400
  values.push(`new Set`);
359
- statements.push(`${name}.${Array.from(thing).map((v) => `add(${stringify(v)})`).join(".")}`);
401
+ const adds = Array.from(thing).map((v) => `.add(${stringify(v)})`);
402
+ if (adds.length > 0) statements.push(name + adds.join(""));
360
403
  break;
361
- case "Map":
404
+ }
405
+ case "Map": {
362
406
  values.push(`new Map`);
363
- statements.push(`${name}.${Array.from(thing).map(([k, v]) => `set(${stringify(k)}, ${stringify(v)})`).join(".")}`);
407
+ const sets = Array.from(thing).map(([k, v]) => `.set(${stringify(k)}, ${stringify(v)})`);
408
+ if (sets.length > 0) statements.push(name + sets.join(""));
364
409
  break;
410
+ }
365
411
  case "Int8Array":
366
412
  case "Uint8Array":
367
413
  case "Uint8ClampedArray":
@@ -374,18 +420,17 @@ function uneval(value, replacer) {
374
420
  case "Float64Array":
375
421
  case "BigInt64Array":
376
422
  case "BigUint64Array": {
423
+ if (is_buffer(thing)) thing = new Uint8Array(thing);
377
424
  let str = `new ${type}`;
378
- if (!names.has(thing.buffer)) {
379
- const array = new thing.constructor(thing.buffer);
380
- str += `([${array}])`;
381
- } else str += `(${stringify(thing.buffer)})`;
425
+ if (!names.has(thing.buffer)) str += `([${stringify_typed_array_elements(type, thing.buffer)}])`;
426
+ else str += `(${stringify(thing.buffer)})`;
382
427
  if (thing.byteLength !== thing.buffer.byteLength) {
383
428
  const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
384
429
  const end = start + thing.length;
385
430
  str += `.subarray(${start},${end})`;
386
431
  }
387
432
  values.push(`{}`);
388
- statements.push(`${name}=${str}`);
433
+ reconstructions.push(`${name}=${str}`);
389
434
  break;
390
435
  }
391
436
  case "DataView": {
@@ -395,12 +440,22 @@ function uneval(value, replacer) {
395
440
  if (thing.byteLength !== thing.buffer.byteLength) str += `,${thing.byteOffset},${thing.byteLength}`;
396
441
  str += ")";
397
442
  values.push(`{}`);
398
- statements.push(`${name}=${str}`);
443
+ reconstructions.push(`${name}=${str}`);
399
444
  break;
400
445
  }
401
446
  case "ArrayBuffer":
402
447
  values.push(`new Uint8Array([${new Uint8Array(thing)}]).buffer`);
403
448
  break;
449
+ case "Temporal.Duration":
450
+ case "Temporal.Instant":
451
+ case "Temporal.PlainDate":
452
+ case "Temporal.PlainTime":
453
+ case "Temporal.PlainDateTime":
454
+ case "Temporal.PlainMonthDay":
455
+ case "Temporal.PlainYearMonth":
456
+ case "Temporal.ZonedDateTime":
457
+ values.push(`${type}.from(${stringify_string(thing.toString())})`);
458
+ break;
404
459
  default:
405
460
  values.push(Object.getPrototypeOf(thing) === null ? "Object.create(null)" : "{}");
406
461
  Object.keys(thing).forEach((key) => {
@@ -409,9 +464,37 @@ function uneval(value, replacer) {
409
464
  }
410
465
  });
411
466
  statements.push(`return ${str}`);
412
- return `(function(${params.join(",")}){${statements.join(";")}}(${values.join(",")}))`;
467
+ const body = [...reconstructions, ...statements].join(";");
468
+ if (params.length > 65534) return `(function(){var[${params.join(",")}]=arguments[0];${body}}([${values.join(",")}]))`;
469
+ return `(function(${params.join(",")}){${body}}(${values.join(",")}))`;
413
470
  } else return str;
414
471
  }
472
+ /**
473
+ * Emit an array whose storage is not proportional to its declared length.
474
+ * As in the default parse operations, touching and deleting the largest valid
475
+ * index forces V8 into dictionary-elements mode before setting the length.
476
+ * Merely starting with [] and assigning .length still eagerly allocates.
477
+ * @param {number} length
478
+ */
479
+ function stringify_sparse_array(length) {
480
+ return `(function(a){a[${MAX_ARRAY_INDEX}]=0;delete a[${MAX_ARRAY_INDEX}];a.length=${length};return a}([]))`;
481
+ }
482
+ /**
483
+ * Serialize the elements of `buffer`, read as `type`, as a comma-separated list.
484
+ * The view is created from `type` rather than from the serialized value's own
485
+ * constructor, which may be a subclass like Node's `Buffer` whose `toString`
486
+ * decodes the bytes instead of listing them.
487
+ * `BigInt64Array`/`BigUint64Array` elements are bigints and must be written
488
+ * with an `n` suffix, otherwise the emitted `new BigInt64Array([...])` throws.
489
+ * @param {string} type
490
+ * @param {ArrayBufferLike} buffer
491
+ */
492
+ function stringify_typed_array_elements(type, buffer) {
493
+ const array = new globalThis[type](buffer);
494
+ if (type === "BigInt64Array" || type === "BigUint64Array") return Array.from(array, (element) => `${element}n`).join(",");
495
+ if (array instanceof Float32Array || array instanceof Float64Array || typeof Float16Array !== "undefined" && array instanceof Float16Array) return Array.from(array, (element) => Object.is(element, -0) ? "-0" : `${element}`).join(",");
496
+ return array.toString();
497
+ }
415
498
  /** @param {number} num */
416
499
  function get_name(num) {
417
500
  let name = "";
@@ -449,7 +532,7 @@ function stringify_primitive(thing) {
449
532
  return str;
450
533
  }
451
534
 
452
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/shared/utils.js
535
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/shared/utils.js
453
536
  var is_array = Array.isArray;
454
537
  var index_of = Array.prototype.indexOf;
455
538
  var includes = Array.prototype.includes;
@@ -488,8 +571,7 @@ function deferred() {
488
571
  reject
489
572
  };
490
573
  }
491
- //#endregion
492
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/equality.js
574
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/equality.js
493
575
  /** @import { Equals } from '#client' */
494
576
  /** @type {Equals} */
495
577
  function equals(value) {
@@ -543,8 +625,7 @@ var STALE_REACTION = new class StaleReactionError extends Error {
543
625
  name = "StaleReactionError";
544
626
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
545
627
  }();
546
- //#endregion
547
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/shared/errors.js
628
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/shared/errors.js
548
629
  /**
549
630
  * Cannot use `%name%(...)` unless the `experimental.async` compiler option is `true`
550
631
  * @param {string} name
@@ -610,8 +691,7 @@ function state_unsafe_mutation() {
610
691
  function svelte_boundary_reset_onerror() {
611
692
  throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
612
693
  }
613
- //#endregion
614
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/constants.js
694
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/constants.js
615
695
  var HYDRATION_ERROR = {};
616
696
  var UNINITIALIZED = Symbol("uninitialized");
617
697
  /**
@@ -633,8 +713,7 @@ function hydration_mismatch(location) {
633
713
  function svelte_boundary_reset_noop() {
634
714
  console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
635
715
  }
636
- //#endregion
637
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/hydration.js
716
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/hydration.js
638
717
  /** @import { TemplateNode } from '#client' */
639
718
  /**
640
719
  * Use this variable to guard everything related to hydration code so it can be treeshaken out
@@ -692,8 +771,7 @@ function skip_nodes(remove = true) {
692
771
  node = next;
693
772
  }
694
773
  }
695
- //#endregion
696
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/context.js
774
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/context.js
697
775
  /** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
698
776
  /** @type {ComponentContext | null} */
699
777
  var component_context = null;
@@ -739,8 +817,7 @@ function pop$1(component) {
739
817
  function is_runes() {
740
818
  return true;
741
819
  }
742
- //#endregion
743
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/task.js
820
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/task.js
744
821
  /** @type {Array<() => void>} */
745
822
  var micro_tasks = [];
746
823
  function run_micro_tasks() {
@@ -797,8 +874,7 @@ function invoke_error_boundary(error, effect) {
797
874
  }
798
875
  throw error;
799
876
  }
800
- //#endregion
801
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/status.js
877
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/status.js
802
878
  /** @import { Derived, Signal } from '#client' */
803
879
  var STATUS_MASK = -7169;
804
880
  /**
@@ -816,8 +892,7 @@ function update_derived_status(derived) {
816
892
  if ((derived.f & 512) !== 0 || derived.deps === null) set_signal_status(derived, CLEAN);
817
893
  else set_signal_status(derived, MAYBE_DIRTY);
818
894
  }
819
- //#endregion
820
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/utils.js
895
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/utils.js
821
896
  /** @import { Derived, Effect, Value } from '#client' */
822
897
  /**
823
898
  * @param {Value[] | null} deps
@@ -844,8 +919,7 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
844
919
  clear_marked(effect.deps);
845
920
  set_signal_status(effect, CLEAN);
846
921
  }
847
- //#endregion
848
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/batch.js
922
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/batch.js
849
923
  /** @import { Fork } from 'svelte' */
850
924
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
851
925
  /** @type {Batch | null} */
@@ -1287,10 +1361,12 @@ var Batch = class Batch {
1287
1361
  checked = /* @__PURE__ */ new Map();
1288
1362
  var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c.v : true);
1289
1363
  if (current_unequal.length > 0) {
1290
- for (const effect of this.#new_effects) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
1291
- set_signal_status(effect, DIRTY);
1292
- batch.schedule(effect);
1293
- } else batch.#dirty_effects.add(effect);
1364
+ for (const effect of this.#new_effects) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) {
1365
+ if ((effect.f & 4194320) !== 0) {
1366
+ set_signal_status(effect, DIRTY);
1367
+ batch.schedule(effect);
1368
+ } else batch.#dirty_effects.add(effect);
1369
+ }
1294
1370
  }
1295
1371
  if (batch.#roots.length > 0 && !batch.#decrement_queued) {
1296
1372
  batch.apply();
@@ -1564,8 +1640,7 @@ function reset_all(effect) {
1564
1640
  e = e.next;
1565
1641
  }
1566
1642
  }
1567
- //#endregion
1568
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/reactivity/create-subscriber.js
1643
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/reactivity/create-subscriber.js
1569
1644
  /**
1570
1645
  * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
1571
1646
  * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
@@ -1637,8 +1712,7 @@ function createSubscriber(start) {
1637
1712
  }
1638
1713
  };
1639
1714
  }
1640
- //#endregion
1641
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1715
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1642
1716
  /** @import { Effect, Source, TemplateNode, } from '#client' */
1643
1717
  /**
1644
1718
  * @typedef {{
@@ -2058,8 +2132,7 @@ function unfreeze_derived_effects(derived) {
2058
2132
  if (derived.effects === null) return;
2059
2133
  for (const e of derived.effects) if (e.teardown && e.fn !== null) update_effect(e);
2060
2134
  }
2061
- //#endregion
2062
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/sources.js
2135
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/sources.js
2063
2136
  /** @import { Derived, Effect, Source, Value } from '#client' */
2064
2137
  /** @type {Set<Effect>} */
2065
2138
  var eager_effects = /* @__PURE__ */ new Set();
@@ -2135,8 +2208,10 @@ function internal_set(source, value, updated_during_traversal = null) {
2135
2208
  }
2136
2209
  source.wv = increment_write_version();
2137
2210
  mark_reactions(source, DIRTY, updated_during_traversal);
2138
- if (active_effect !== null && (active_effect.f & 1024) !== 0 && (active_effect.f & 96) === 0) if (untracked_writes === null) set_untracked_writes([source]);
2139
- else untracked_writes.push(source);
2211
+ if (active_effect !== null && (active_effect.f & 1024) !== 0 && (active_effect.f & 96) === 0) {
2212
+ if (untracked_writes === null) set_untracked_writes([source]);
2213
+ else untracked_writes.push(source);
2214
+ }
2140
2215
  if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) flush_eager_effects();
2141
2216
  }
2142
2217
  return value;
@@ -2348,8 +2423,7 @@ function proxy(value) {
2348
2423
  }
2349
2424
  });
2350
2425
  }
2351
- //#endregion
2352
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/operations.js
2426
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/operations.js
2353
2427
  /** @type {Window} */
2354
2428
  var $window;
2355
2429
  /** @type {() => Node | null} */
@@ -2408,8 +2482,7 @@ function get_next_sibling(node) {
2408
2482
  function clear_text_content(node) {
2409
2483
  node.textContent = "";
2410
2484
  }
2411
- //#endregion
2412
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2485
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2413
2486
  /**
2414
2487
  * @template T
2415
2488
  * @param {() => T} fn
@@ -2426,8 +2499,7 @@ function without_reactive_context(fn) {
2426
2499
  set_active_effect(previous_effect);
2427
2500
  }
2428
2501
  }
2429
- //#endregion
2430
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/effects.js
2502
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/reactivity/effects.js
2431
2503
  /** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
2432
2504
  /**
2433
2505
  * @param {Effect} effect
@@ -2470,9 +2542,10 @@ function create_effect(type, fn) {
2470
2542
  current_batch?.register_created_effect(effect);
2471
2543
  /** @type {Effect | null} */
2472
2544
  var e = effect;
2473
- if ((type & 4) !== 0) if (collected_effects !== null) collected_effects.push(effect);
2474
- else Batch.ensure().schedule(effect);
2475
- else if (fn !== null) {
2545
+ if ((type & 4) !== 0) {
2546
+ if (collected_effects !== null) collected_effects.push(effect);
2547
+ else Batch.ensure().schedule(effect);
2548
+ } else if (fn !== null) {
2476
2549
  try {
2477
2550
  update_effect(effect);
2478
2551
  } catch (e) {
@@ -2711,8 +2784,7 @@ function move_effect(effect, fragment) {
2711
2784
  node = next;
2712
2785
  }
2713
2786
  }
2714
- //#endregion
2715
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/runtime.js
2787
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/client/runtime.js
2716
2788
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
2717
2789
  var is_updating_effect = false;
2718
2790
  var is_destroying_effect = false;
@@ -2741,8 +2813,10 @@ function set_active_effect(effect) {
2741
2813
  var current_sources = null;
2742
2814
  /** @param {Value} value */
2743
2815
  function push_reaction_value(value) {
2744
- if (active_reaction !== null && (true)) if (current_sources === null) current_sources = [value];
2745
- else current_sources.push(value);
2816
+ if (active_reaction !== null && (true)) {
2817
+ if (current_sources === null) current_sources = [value];
2818
+ else current_sources.push(value);
2819
+ }
2746
2820
  }
2747
2821
  /**
2748
2822
  * The dependencies of the reaction that is currently being executed. In many cases,
@@ -2867,8 +2941,10 @@ function update_reaction(reaction) {
2867
2941
  read_version++;
2868
2942
  if (previous_reaction.deps !== null) for (let i = 0; i < previous_skipped_deps; i += 1) previous_reaction.deps[i].rv = read_version;
2869
2943
  if (previous_deps !== null) for (const dep of previous_deps) dep.rv = read_version;
2870
- if (untracked_writes !== null) if (previous_untracked_writes === null) previous_untracked_writes = untracked_writes;
2871
- else previous_untracked_writes.push(...untracked_writes);
2944
+ if (untracked_writes !== null) {
2945
+ if (previous_untracked_writes === null) previous_untracked_writes = untracked_writes;
2946
+ else previous_untracked_writes.push(...untracked_writes);
2947
+ }
2872
2948
  }
2873
2949
  if ((reaction.f & 8388608) !== 0) reaction.f ^= ERROR_VALUE;
2874
2950
  return result;
@@ -3051,8 +3127,7 @@ function untrack(fn) {
3051
3127
  untracking = previous_untracking;
3052
3128
  }
3053
3129
  }
3054
- //#endregion
3055
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/store/utils.js
3130
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/store/utils.js
3056
3131
  /** @import { Readable } from './public' */
3057
3132
  /**
3058
3133
  * @template T
@@ -3070,8 +3145,7 @@ function subscribe_to_store(store, run, invalidate) {
3070
3145
  const unsub = untrack(() => store.subscribe(run, invalidate));
3071
3146
  return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
3072
3147
  }
3073
- //#endregion
3074
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/store/shared/index.js
3148
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/store/shared/index.js
3075
3149
  /** @import { Readable, StartStopNotifier, Subscriber, Unsubscriber, Updater, Writable } from '../public.js' */
3076
3150
  /** @import { Stores, StoresValues, SubscribeInvalidateTuple } from '../private.js' */
3077
3151
  /**
@@ -3243,8 +3317,7 @@ function get(store) {
3243
3317
  subscribe_to_store(store, (_) => value = _)();
3244
3318
  return value;
3245
3319
  }
3246
- //#endregion
3247
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/utils.js
3320
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/utils.js
3248
3321
  /**
3249
3322
  * Attributes that are boolean, i.e. they are present or not present.
3250
3323
  */
@@ -3302,8 +3375,7 @@ var PASSIVE_EVENTS = ["touchstart", "touchmove"];
3302
3375
  function is_passive_event(name) {
3303
3376
  return PASSIVE_EVENTS.includes(name);
3304
3377
  }
3305
- //#endregion
3306
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/escaping.js
3378
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/escaping.js
3307
3379
  var ATTR_REGEX = /[&"<]/g;
3308
3380
  var CONTENT_REGEX = /[&<]/g;
3309
3381
  /**
@@ -3325,15 +3397,14 @@ function escape_html(value, is_attr) {
3325
3397
  }
3326
3398
  return escaped + str.substring(last);
3327
3399
  }
3328
- //#endregion
3329
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/shared/attributes.js
3400
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/shared/attributes.js
3330
3401
  /**
3331
3402
  * `<div translate={false}>` should be rendered as `<div translate="no">` and _not_
3332
3403
  * `<div translate="false">`, which is equivalent to `<div translate="yes">`. There
3333
3404
  * may be other odd cases that need to be added to this list in future
3334
3405
  * @type {Record<string, Map<any, string>>}
3335
3406
  */
3336
- var replacements = { translate: new Map([[true, "yes"], [false, "no"]]) };
3407
+ var replacements = { translate: /* @__PURE__ */ new Map([[true, "yes"], [false, "no"]]) };
3337
3408
  /**
3338
3409
  * @template V
3339
3410
  * @param {string} name
@@ -3464,12 +3535,10 @@ function to_style(value, styles) {
3464
3535
  }
3465
3536
  return value == null ? null : String(value);
3466
3537
  }
3467
- //#endregion
3468
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/hydration.js
3538
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/hydration.js
3469
3539
  var BLOCK_OPEN = `<!--[-->`;
3470
3540
  var BLOCK_CLOSE = `<!--]-->`;
3471
- //#endregion
3472
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/abort-signal.js
3541
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/abort-signal.js
3473
3542
  /** @type {AbortController | null} */
3474
3543
  var controller = null;
3475
3544
  function abort() {
@@ -3546,8 +3615,7 @@ function server_context_required() {
3546
3615
  error.name = "Svelte error";
3547
3616
  throw error;
3548
3617
  }
3549
- //#endregion
3550
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/context.js
3618
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/context.js
3551
3619
  /** @import { SSRContext } from '#server' */
3552
3620
  /** @type {SSRContext | null} */
3553
3621
  var ssr_context = null;
@@ -3649,8 +3717,7 @@ function get_render_context() {
3649
3717
  }
3650
3718
  /** @type {AsyncLocalStorage<RenderContext | null> | null} */
3651
3719
  var als = null;
3652
- //#endregion
3653
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/crypto.js
3720
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/crypto.js
3654
3721
  var text_encoder;
3655
3722
  var crypto;
3656
3723
  /** @param {string} module_name */
@@ -3674,8 +3741,7 @@ function base64_encode(bytes) {
3674
3741
  for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
3675
3742
  return btoa(binary);
3676
3743
  }
3677
- //#endregion
3678
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/renderer.js
3744
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/renderer.js
3679
3745
  /** @import { Component } from 'svelte' */
3680
3746
  /** @import { Csp, HydratableContext, RenderOutput, SSRContext, SyncRenderOutput, Sha256Source } from './types.js' */
3681
3747
  /** @import { MaybePromise } from '#shared' */
@@ -3987,7 +4053,10 @@ var Renderer = class Renderer {
3987
4053
  if (renderer.global.mode === "async") return r.#collect_content_async().then((content) => {
3988
4054
  close(content.head);
3989
4055
  });
3990
- else close(r.#collect_content().head);
4056
+ else {
4057
+ const content = r.#collect_content();
4058
+ close(content.head);
4059
+ }
3991
4060
  });
3992
4061
  }
3993
4062
  /**
@@ -4074,7 +4143,16 @@ var Renderer = class Renderer {
4074
4143
  return (sync ??= Renderer.#render(component, options)).body;
4075
4144
  } },
4076
4145
  hashes: { value: { script: "" } },
4077
- then: { value: (onfulfilled, onrejected) => {
4146
+ then: { value:
4147
+ /**
4148
+ * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
4149
+ *
4150
+ * @template TResult1
4151
+ * @template [TResult2=never]
4152
+ * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled
4153
+ * @param { (reason: unknown) => TResult2 } onrejected
4154
+ */
4155
+ (onfulfilled, onrejected) => {
4078
4156
  {
4079
4157
  const result = sync ??= Renderer.#render(component, options);
4080
4158
  const user_result = onfulfilled({
@@ -4179,31 +4257,33 @@ var Renderer = class Renderer {
4179
4257
  }) {
4180
4258
  await this.promise;
4181
4259
  for (const item of this.#out) if (typeof item === "string") content[this.type] += item;
4182
- else if (item instanceof Renderer) if (item.#boundary) {
4183
- /** @type {AccumulatedContent} */
4184
- const boundary_content = {
4185
- head: "",
4186
- body: ""
4187
- };
4188
- try {
4189
- await item.#collect_content_async(boundary_content);
4190
- content.head += boundary_content.head;
4191
- content.body += boundary_content.body;
4192
- } catch (error) {
4193
- const { context, failed, transformError } = item.#boundary;
4194
- set_ssr_context(context);
4195
- let promise = transformError(error);
4196
- set_ssr_context(null);
4197
- let transformed = await promise;
4198
- set_ssr_context(context);
4199
- const failed_renderer = new Renderer(item.global, item);
4200
- failed_renderer.type = item.type;
4201
- failed_renderer.#out.push(Renderer.#serialize_failed_boundary(transformed));
4202
- failed(failed_renderer, transformed, noop);
4203
- failed_renderer.#out.push(BLOCK_CLOSE);
4204
- await failed_renderer.#collect_content_async(content);
4205
- }
4206
- } else await item.#collect_content_async(content);
4260
+ else if (item instanceof Renderer) {
4261
+ if (item.#boundary) {
4262
+ /** @type {AccumulatedContent} */
4263
+ const boundary_content = {
4264
+ head: "",
4265
+ body: ""
4266
+ };
4267
+ try {
4268
+ await item.#collect_content_async(boundary_content);
4269
+ content.head += boundary_content.head;
4270
+ content.body += boundary_content.body;
4271
+ } catch (error) {
4272
+ const { context, failed, transformError } = item.#boundary;
4273
+ set_ssr_context(context);
4274
+ let promise = transformError(error);
4275
+ set_ssr_context(null);
4276
+ let transformed = await promise;
4277
+ set_ssr_context(context);
4278
+ const failed_renderer = new Renderer(item.global, item);
4279
+ failed_renderer.type = item.type;
4280
+ failed_renderer.#out.push(Renderer.#serialize_failed_boundary(transformed));
4281
+ failed(failed_renderer, transformed, noop);
4282
+ failed_renderer.#out.push(BLOCK_CLOSE);
4283
+ await failed_renderer.#collect_content_async(content);
4284
+ }
4285
+ } else await item.#collect_content_async(content);
4286
+ }
4207
4287
  return content;
4208
4288
  }
4209
4289
  async #collect_hydratables() {
@@ -4349,8 +4429,7 @@ var SSRState = class {
4349
4429
  }
4350
4430
  }
4351
4431
  };
4352
- //#endregion
4353
- //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/index.js
4432
+ // ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.60.0/node_modules/svelte/src/internal/server/index.js
4354
4433
  var 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;
4355
4434
  /**
4356
4435
  * Only available on the server and when compiling with the `server` option.
@@ -4494,5 +4573,5 @@ function derived(fn) {
4494
4573
  };
4495
4574
  }
4496
4575
 
4497
- export { set as $, get_render_context as A, get_type as B, hasContext as C, DevalueError as D, hydratable_serialization_failed as E, hydrate_node as F, hydrating as G, HYDRATION_ERROR as H, hydration_failed as I, hydration_mismatch as J, init_operations as K, LEGACY_PROPS as L, MAX_ARRAY_INDEX as M, is_passive_event as N, is_plain_object as O, is_primitive as P, is_valid_array_index as Q, is_valid_array_len as R, lifecycle_function_unavailable as S, mutable_source as T, noop as U, pop$1 as V, push$1 as W, readable as X, readonly as Y, render as Z, run as _, active_effect as a, setContext as a0, set_active_effect as a1, set_active_reaction as a2, set_hydrate_node as a3, set_hydrating as a4, ssr_context as a5, store_get as a6, store_mutate as a7, stringify_key as a8, stringify_string as a9, uneval as aa, unsubscribe_stores as ab, valid_array_indices as ac, writable as ad, active_reaction as b, array_from as c, attr as d, bind_props as e, boundary as f, clear_text_content as g, component_context as h, component_root as i, createContext as j, create_text as k, define_property as l, derived as m, derived$1 as n, ensure_array_like as o, enumerable_symbols as p, escape_html as q, experimental_async_required as r, flushSync as s, get as t, get$1 as u, getAbortSignal as v, getAllContexts as w, getContext as x, get_first_child as y, get_next_sibling as z };
4498
- //# sourceMappingURL=server-1sE9LKAu.js.map
4576
+ export { set as $, get_render_context as A, get_type as B, hasContext as C, DevalueError as D, hydratable_serialization_failed as E, hydrate_node as F, hydrating as G, HYDRATION_ERROR as H, hydration_failed as I, hydration_mismatch as J, init_operations as K, LEGACY_PROPS as L, MAX_ARRAY_INDEX as M, is_buffer as N, is_passive_event as O, is_plain_object as P, is_valid_array_index as Q, is_valid_array_len as R, lifecycle_function_unavailable as S, mutable_source as T, noop as U, pop$1 as V, push$1 as W, readable as X, readonly as Y, render as Z, run as _, active_effect as a, setContext as a0, set_active_effect as a1, set_active_reaction as a2, set_hydrate_node as a3, set_hydrating as a4, ssr_context as a5, store_get as a6, store_mutate as a7, stringify_key as a8, stringify_string as a9, uneval as aa, unsubscribe_stores as ab, valid_array_indices as ac, writable as ad, active_reaction as b, array_from as c, attr as d, bind_props as e, boundary as f, clear_text_content as g, component_context as h, component_root as i, createContext as j, create_text as k, define_property as l, derived as m, derived$1 as n, ensure_array_like as o, enumerable_symbols as p, escape_html as q, experimental_async_required as r, flushSync as s, get as t, get$1 as u, getAbortSignal as v, getAllContexts as w, getContext as x, get_first_child as y, get_next_sibling as z };
4577
+ //# sourceMappingURL=server-CiEA6lY_.js.map