@nanoforge-dev/editor 0.0.2-beta.394e65b → 0.0.2-beta.3d4991c

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 (306) hide show
  1. package/dist/client/_app/immutable/assets/0.yoWygKZi.css +1 -0
  2. package/dist/client/_app/immutable/assets/0.yoWygKZi.css.br +0 -0
  3. package/dist/client/_app/immutable/assets/0.yoWygKZi.css.gz +0 -0
  4. package/dist/client/_app/immutable/chunks/{BS47D1Yd2.js → BFWbalF82.js} +1 -1
  5. package/dist/client/_app/immutable/chunks/BFWbalF82.js.br +0 -0
  6. package/dist/client/_app/immutable/chunks/BFWbalF82.js.gz +0 -0
  7. package/dist/client/_app/immutable/chunks/{DT8Ddh1L2.js → BLf9jss52.js} +1 -1
  8. package/dist/client/_app/immutable/chunks/BLf9jss52.js.br +0 -0
  9. package/dist/client/_app/immutable/chunks/BLf9jss52.js.gz +0 -0
  10. package/dist/client/_app/immutable/chunks/{CKei9xPI2.js → BSNB_Uck2.js} +2 -2
  11. package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.br +0 -0
  12. package/dist/client/_app/immutable/chunks/BSNB_Uck2.js.gz +0 -0
  13. package/dist/client/_app/immutable/chunks/{Fu4roQAh.js → BWNegMLP.js} +1 -1
  14. package/dist/client/_app/immutable/chunks/BWNegMLP.js.br +0 -0
  15. package/dist/client/_app/immutable/chunks/BWNegMLP.js.gz +0 -0
  16. package/dist/client/_app/immutable/chunks/{orCHVlgT.js → BesjqVrk.js} +1 -1
  17. package/dist/client/_app/immutable/chunks/BesjqVrk.js.br +0 -0
  18. package/dist/client/_app/immutable/chunks/BesjqVrk.js.gz +0 -0
  19. package/dist/client/_app/immutable/chunks/{BWDRzheF2.js → Bhafduqk2.js} +1 -1
  20. package/dist/client/_app/immutable/chunks/Bhafduqk2.js.br +0 -0
  21. package/dist/client/_app/immutable/chunks/Bhafduqk2.js.gz +0 -0
  22. package/dist/client/_app/immutable/chunks/{DfAL3LhV.js → C048Bjn7.js} +7 -7
  23. package/dist/client/_app/immutable/chunks/C048Bjn7.js.br +0 -0
  24. package/dist/client/_app/immutable/chunks/C048Bjn7.js.gz +0 -0
  25. package/dist/client/_app/immutable/chunks/{Coa6r0tY.js → CJx6yPZh.js} +1 -1
  26. package/dist/client/_app/immutable/chunks/CJx6yPZh.js.br +0 -0
  27. package/dist/client/_app/immutable/chunks/CJx6yPZh.js.gz +0 -0
  28. package/dist/client/_app/immutable/chunks/{uo5fvlDn2.js → CJxKUjL-2.js} +1 -1
  29. package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.br +0 -0
  30. package/dist/client/_app/immutable/chunks/CJxKUjL-2.js.gz +0 -0
  31. package/dist/client/_app/immutable/chunks/{DH-ThjiG2.js → CVQMNY_q2.js} +2 -2
  32. package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.br +0 -0
  33. package/dist/client/_app/immutable/chunks/CVQMNY_q2.js.gz +0 -0
  34. package/dist/client/_app/immutable/chunks/{Bk9DeFcz2.js → CbW3yNTi.js} +1 -1
  35. package/dist/client/_app/immutable/chunks/CbW3yNTi.js.br +0 -0
  36. package/dist/client/_app/immutable/chunks/CbW3yNTi.js.gz +0 -0
  37. package/dist/client/_app/immutable/chunks/CvkNa2t_.js +3 -0
  38. package/dist/client/_app/immutable/chunks/CvkNa2t_.js.br +0 -0
  39. package/dist/client/_app/immutable/chunks/CvkNa2t_.js.gz +0 -0
  40. package/dist/client/_app/immutable/chunks/{CnhOha0Z2.js → D2PipAw82.js} +1 -1
  41. package/dist/client/_app/immutable/chunks/D2PipAw82.js.br +0 -0
  42. package/dist/client/_app/immutable/chunks/D2PipAw82.js.gz +0 -0
  43. package/dist/client/_app/immutable/chunks/{BzGBrbo22.js → D6-zOYYZ2.js} +1 -1
  44. package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.br +0 -0
  45. package/dist/client/_app/immutable/chunks/D6-zOYYZ2.js.gz +0 -0
  46. package/dist/client/_app/immutable/chunks/{B4w9-fYM2.js → DGDm8Q4w2.js} +1 -1
  47. package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.br +0 -0
  48. package/dist/client/_app/immutable/chunks/DGDm8Q4w2.js.gz +0 -0
  49. package/dist/client/_app/immutable/chunks/{DFXoGGM32.js → DRQF0pcw2.js} +1 -1
  50. package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.br +0 -0
  51. package/dist/client/_app/immutable/chunks/DRQF0pcw2.js.gz +0 -0
  52. package/dist/client/_app/immutable/chunks/{C83DJP9w2.js → DYPPS7OK2.js} +1 -1
  53. package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.br +0 -0
  54. package/dist/client/_app/immutable/chunks/DYPPS7OK2.js.gz +0 -0
  55. package/dist/client/_app/immutable/chunks/{BZqFHUa32.js → DaisyxdZ2.js} +1 -1
  56. package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.br +0 -0
  57. package/dist/client/_app/immutable/chunks/DaisyxdZ2.js.gz +0 -0
  58. package/dist/client/_app/immutable/chunks/{BlGyHMDZ.js → DtcTX-YU.js} +1 -1
  59. package/dist/client/_app/immutable/chunks/DtcTX-YU.js.br +0 -0
  60. package/dist/client/_app/immutable/chunks/DtcTX-YU.js.gz +0 -0
  61. package/dist/client/_app/immutable/chunks/{Ctc_6ReW.js → Dy4Pjuql.js} +1 -1
  62. package/dist/client/_app/immutable/chunks/Dy4Pjuql.js.br +1 -0
  63. package/dist/client/_app/immutable/chunks/Dy4Pjuql.js.gz +0 -0
  64. package/dist/client/_app/immutable/chunks/{DHQLzCjY2.js → M5EMNuDS2.js} +1 -1
  65. package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.br +0 -0
  66. package/dist/client/_app/immutable/chunks/M5EMNuDS2.js.gz +0 -0
  67. package/dist/client/_app/immutable/chunks/{CmuvbAn5.js → NokGgZou.js} +1 -1
  68. package/dist/client/_app/immutable/chunks/NokGgZou.js.br +0 -0
  69. package/dist/client/_app/immutable/chunks/NokGgZou.js.gz +0 -0
  70. package/dist/client/_app/immutable/chunks/{DuDzfUqN2.js → SmrQhi1p2.js} +1 -1
  71. package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.br +0 -0
  72. package/dist/client/_app/immutable/chunks/SmrQhi1p2.js.gz +0 -0
  73. package/dist/client/_app/immutable/chunks/{C7bUlFLk2.js → TFu7Wn2c2.js} +1 -1
  74. package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.br +0 -0
  75. package/dist/client/_app/immutable/chunks/TFu7Wn2c2.js.gz +0 -0
  76. package/dist/client/_app/immutable/chunks/hoH54hVB.js +6 -0
  77. package/dist/client/_app/immutable/chunks/hoH54hVB.js.br +0 -0
  78. package/dist/client/_app/immutable/chunks/hoH54hVB.js.gz +0 -0
  79. package/dist/client/_app/immutable/chunks/{BwWAgYKi2.js → mESnenQM2.js} +1 -1
  80. package/dist/client/_app/immutable/chunks/mESnenQM2.js.br +0 -0
  81. package/dist/client/_app/immutable/chunks/mESnenQM2.js.gz +0 -0
  82. package/dist/client/_app/immutable/chunks/nE3VUeYj.js +0 -0
  83. package/dist/client/_app/immutable/chunks/nE3VUeYj.js.br +1 -0
  84. package/dist/client/_app/immutable/chunks/nE3VUeYj.js.gz +0 -0
  85. package/dist/client/_app/immutable/chunks/{mRVEsFly2.js → uIj7mV9x2.js} +1 -1
  86. package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.br +0 -0
  87. package/dist/client/_app/immutable/chunks/uIj7mV9x2.js.gz +0 -0
  88. package/dist/client/_app/immutable/chunks/xmyAstTO.js +1 -0
  89. package/dist/client/_app/immutable/chunks/xmyAstTO.js.br +0 -0
  90. package/dist/client/_app/immutable/chunks/xmyAstTO.js.gz +0 -0
  91. package/dist/client/_app/immutable/entry/{app.BzOeKbPs.js → app.BrYxTqmC.js} +2 -2
  92. package/dist/client/_app/immutable/entry/app.BrYxTqmC.js.br +0 -0
  93. package/dist/client/_app/immutable/entry/app.BrYxTqmC.js.gz +0 -0
  94. package/dist/client/_app/immutable/entry/start.BLJU4g6R.js +1 -0
  95. package/dist/client/_app/immutable/entry/start.BLJU4g6R.js.br +1 -0
  96. package/dist/client/_app/immutable/entry/start.BLJU4g6R.js.gz +0 -0
  97. package/dist/client/_app/immutable/nodes/{0.CPqemWaq.js → 0.CsYGMzJU.js} +1 -1
  98. package/dist/client/_app/immutable/nodes/0.CsYGMzJU.js.br +0 -0
  99. package/dist/client/_app/immutable/nodes/0.CsYGMzJU.js.gz +0 -0
  100. package/dist/client/_app/immutable/nodes/{1.OaHPDibP.js → 1.CfDpZeft.js} +1 -1
  101. package/dist/client/_app/immutable/nodes/1.CfDpZeft.js.br +2 -0
  102. package/dist/client/_app/immutable/nodes/1.CfDpZeft.js.gz +0 -0
  103. package/dist/client/_app/immutable/nodes/{9.Hjdmo-wG.js → 11.L_9ZmasQ.js} +1 -1
  104. package/dist/client/_app/immutable/nodes/11.L_9ZmasQ.js.br +0 -0
  105. package/dist/client/_app/immutable/nodes/11.L_9ZmasQ.js.gz +0 -0
  106. package/dist/client/_app/immutable/nodes/2.CGT67RwO.js +1 -0
  107. package/dist/client/_app/immutable/nodes/2.CGT67RwO.js.br +0 -0
  108. package/dist/client/_app/immutable/nodes/2.CGT67RwO.js.gz +0 -0
  109. package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js +6 -0
  110. package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js.br +0 -0
  111. package/dist/client/_app/immutable/nodes/3.Cfkl9yLY.js.gz +0 -0
  112. package/dist/client/_app/version.json +1 -1
  113. package/dist/client/_app/version.json.br +0 -0
  114. package/dist/client/_app/version.json.gz +0 -0
  115. package/dist/server/chunks/{0-CM-Y6ut6.js → 0-Bcww7pkn.js} +6 -6
  116. package/dist/server/chunks/{0-CM-Y6ut6.js.map → 0-Bcww7pkn.js.map} +1 -1
  117. package/dist/server/chunks/{1-C2ffLW3O.js → 1-BIiCLN21.js} +6 -6
  118. package/dist/server/chunks/{1-C2ffLW3O.js.map → 1-BIiCLN21.js.map} +1 -1
  119. package/dist/server/chunks/{5-610NKQc3.js → 10-_cwipoJm.js} +5 -5
  120. package/dist/server/chunks/10-_cwipoJm.js.map +1 -0
  121. package/dist/server/chunks/11-C0olQKl9.js +22 -0
  122. package/dist/server/chunks/11-C0olQKl9.js.map +1 -0
  123. package/dist/server/chunks/{2-BAs82M_7.js → 2-BvUnZSQz.js} +10 -10
  124. package/dist/server/chunks/{2-BAs82M_7.js.map → 2-BvUnZSQz.js.map} +1 -1
  125. package/dist/server/chunks/3-DdpBg6Re.js +22 -0
  126. package/dist/server/chunks/3-DdpBg6Re.js.map +1 -0
  127. package/dist/server/chunks/{3-CtfjP4uZ.js → 4-B2tSZCU9.js} +5 -5
  128. package/dist/server/chunks/{3-CtfjP4uZ.js.map → 4-B2tSZCU9.js.map} +1 -1
  129. package/dist/server/chunks/{8-s07Rj2Zo.js → 5-D3-J9iUP.js} +5 -5
  130. package/dist/server/chunks/{8-s07Rj2Zo.js.map → 5-D3-J9iUP.js.map} +1 -1
  131. package/dist/server/chunks/{4-DP-_gDay.js → 6-DDoqG8iB.js} +5 -5
  132. package/dist/server/chunks/{4-DP-_gDay.js.map → 6-DDoqG8iB.js.map} +1 -1
  133. package/dist/server/chunks/7-CjZUt-gt.js +18 -0
  134. package/dist/server/chunks/7-CjZUt-gt.js.map +1 -0
  135. package/dist/server/chunks/8-ZgtdnItY.js +91 -0
  136. package/dist/server/chunks/8-ZgtdnItY.js.map +1 -0
  137. package/dist/server/chunks/{7-BUEKgK7m.js → 9-6rlPfdHX.js} +5 -5
  138. package/dist/server/chunks/{7-BUEKgK7m.js.map → 9-6rlPfdHX.js.map} +1 -1
  139. package/dist/server/chunks/{_layout.svelte-uX7XiB9K.js → _layout.svelte-By6MJeec.js} +5 -5
  140. package/dist/server/chunks/_layout.svelte-By6MJeec.js.map +1 -0
  141. package/dist/server/chunks/{_page.svelte-DR4jsdM6.js → _page.svelte-B7V_s1iG.js} +7 -7
  142. package/dist/server/chunks/{_page.svelte-DR4jsdM6.js.map → _page.svelte-B7V_s1iG.js.map} +1 -1
  143. package/dist/server/chunks/{_page.svelte-Bn7BSazx.js → _page.svelte-BHLa7YUI.js} +6 -6
  144. package/dist/server/chunks/_page.svelte-BHLa7YUI.js.map +1 -0
  145. package/dist/server/chunks/{_page.svelte-vOyGpofm.js → _page.svelte-Chqj_iRU.js} +396 -114
  146. package/dist/server/chunks/_page.svelte-Chqj_iRU.js.map +1 -0
  147. package/dist/server/chunks/{_server.ts-a-I4s4R9.js → _server.ts-BwyH-SDr.js} +2 -2
  148. package/dist/server/chunks/{_server.ts-a-I4s4R9.js.map → _server.ts-BwyH-SDr.js.map} +1 -1
  149. package/dist/server/chunks/{_server.ts-DlC2sxcm.js → _server.ts-DJwl8--i.js} +15 -3
  150. package/dist/server/chunks/_server.ts-DJwl8--i.js.map +1 -0
  151. package/dist/server/chunks/_server.ts-kFT5a-9I.js +13 -0
  152. package/dist/server/chunks/_server.ts-kFT5a-9I.js.map +1 -0
  153. package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
  154. package/dist/server/chunks/{client-bZcBshMs.js → client-Dse9iwN0.js} +4 -4
  155. package/dist/server/chunks/client-Dse9iwN0.js.map +1 -0
  156. package/dist/server/chunks/{error-DYeUQ7mQ.js → error-DXhNNMk1.js} +299 -172
  157. package/dist/server/chunks/error-DXhNNMk1.js.map +1 -0
  158. package/dist/server/chunks/{error.svelte-DDsdZM_m.js → error.svelte-DIiTgKhP.js} +3 -3
  159. package/dist/server/chunks/error.svelte-DIiTgKhP.js.map +1 -0
  160. package/dist/server/chunks/{exports-CWOtdr_a.js → exports-D0uQzbjy.js} +4 -4
  161. package/dist/server/chunks/{exports-CWOtdr_a.js.map → exports-D0uQzbjy.js.map} +1 -1
  162. package/dist/server/chunks/{hooks.server-BGpE7svk.js → hooks.server-Bksu95DH.js} +6 -6
  163. package/dist/server/chunks/hooks.server-Bksu95DH.js.map +1 -0
  164. package/dist/server/chunks/{hooks.universal-DhGFdBkK.js → hooks.universal-bt2XJEN9.js} +2 -2
  165. package/dist/server/chunks/{hooks.universal-DhGFdBkK.js.map → hooks.universal-bt2XJEN9.js.map} +1 -1
  166. package/dist/server/chunks/{events-Bhh2w-5S.js → index-server-BthNUqCR.js} +1006 -1005
  167. package/dist/server/chunks/index-server-BthNUqCR.js.map +1 -0
  168. package/dist/server/chunks/{internal-DsA4iYdx.js → internal-vr3mPczx.js} +2 -2
  169. package/dist/server/chunks/{internal-DsA4iYdx.js.map → internal-vr3mPczx.js.map} +1 -1
  170. package/dist/server/chunks/{internal2-DBpj29pr.js → internal2-yWeEySiO.js} +22 -15
  171. package/dist/server/chunks/internal2-yWeEySiO.js.map +1 -0
  172. package/dist/server/chunks/{loader-circle-CFNm9vip.js → loader-circle-C4T0os4K.js} +5 -5
  173. package/dist/server/chunks/loader-circle-C4T0os4K.js.map +1 -0
  174. package/dist/server/chunks/{logo-DQI0khKS.js → logo-C6QUIUff.js} +4 -4
  175. package/dist/server/chunks/logo-C6QUIUff.js.map +1 -0
  176. package/dist/server/chunks/{project-loader-DaQVgPID.js → project-loader-C-zkX4VK.js} +4 -4
  177. package/dist/server/chunks/project-loader-C-zkX4VK.js.map +1 -0
  178. package/dist/server/chunks/{request-handler-guINVc1G.js → request-handler-DTxrh7_f.js} +184 -115
  179. package/dist/server/chunks/request-handler-DTxrh7_f.js.map +1 -0
  180. package/dist/server/chunks/{runtime-CDHWD9vo.js → runtime-26c7QsEi.js} +9 -9
  181. package/dist/server/chunks/runtime-26c7QsEi.js.map +1 -0
  182. package/dist/server/chunks/{schemas-BDVbWglI.js → schemas-D4Qq7Kpe.js} +348 -303
  183. package/dist/server/chunks/schemas-D4Qq7Kpe.js.map +1 -0
  184. package/dist/server/chunks/{session-DLCjVGKo.js → session-By0bbFhg.js} +2 -2
  185. package/dist/server/chunks/{session-DLCjVGKo.js.map → session-By0bbFhg.js.map} +1 -1
  186. package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -1
  187. package/dist/server/chunks/{state-DwdUA00F.js → state-dxymBwXR.js} +3 -3
  188. package/dist/server/chunks/state-dxymBwXR.js.map +1 -0
  189. package/dist/server/index.js +368 -353
  190. package/dist/server/index.js.map +1 -1
  191. package/dist/server/manifest.js +55 -31
  192. package/dist/server/manifest.js.map +1 -1
  193. package/package.json +18 -16
  194. package/dist/client/_app/immutable/assets/0.DOl0zkp7.css +0 -1
  195. package/dist/client/_app/immutable/assets/0.DOl0zkp7.css.br +0 -0
  196. package/dist/client/_app/immutable/assets/0.DOl0zkp7.css.gz +0 -0
  197. package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.br +0 -0
  198. package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.gz +0 -0
  199. package/dist/client/_app/immutable/chunks/BApLQfqY.js +0 -6
  200. package/dist/client/_app/immutable/chunks/BApLQfqY.js.br +0 -0
  201. package/dist/client/_app/immutable/chunks/BApLQfqY.js.gz +0 -0
  202. package/dist/client/_app/immutable/chunks/BDBSsbMb.js +0 -1
  203. package/dist/client/_app/immutable/chunks/BDBSsbMb.js.br +0 -0
  204. package/dist/client/_app/immutable/chunks/BDBSsbMb.js.gz +0 -0
  205. package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.br +0 -0
  206. package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.gz +0 -0
  207. package/dist/client/_app/immutable/chunks/BWDRzheF2.js.br +0 -0
  208. package/dist/client/_app/immutable/chunks/BWDRzheF2.js.gz +0 -0
  209. package/dist/client/_app/immutable/chunks/BZqFHUa32.js.br +0 -0
  210. package/dist/client/_app/immutable/chunks/BZqFHUa32.js.gz +0 -0
  211. package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.br +0 -0
  212. package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.gz +0 -0
  213. package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.br +0 -0
  214. package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.gz +0 -0
  215. package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.br +0 -3
  216. package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.gz +0 -0
  217. package/dist/client/_app/immutable/chunks/BzGBrbo22.js.br +0 -0
  218. package/dist/client/_app/immutable/chunks/BzGBrbo22.js.gz +0 -0
  219. package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.br +0 -0
  220. package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.gz +0 -0
  221. package/dist/client/_app/immutable/chunks/C83DJP9w2.js.br +0 -0
  222. package/dist/client/_app/immutable/chunks/C83DJP9w2.js.gz +0 -0
  223. package/dist/client/_app/immutable/chunks/CKei9xPI2.js.br +0 -0
  224. package/dist/client/_app/immutable/chunks/CKei9xPI2.js.gz +0 -0
  225. package/dist/client/_app/immutable/chunks/CmuvbAn5.js.br +0 -0
  226. package/dist/client/_app/immutable/chunks/CmuvbAn5.js.gz +0 -0
  227. package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.br +0 -0
  228. package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.gz +0 -0
  229. package/dist/client/_app/immutable/chunks/Coa6r0tY.js.br +0 -0
  230. package/dist/client/_app/immutable/chunks/Coa6r0tY.js.gz +0 -0
  231. package/dist/client/_app/immutable/chunks/Ctc_6ReW.js.br +0 -0
  232. package/dist/client/_app/immutable/chunks/Ctc_6ReW.js.gz +0 -0
  233. package/dist/client/_app/immutable/chunks/DFXoGGM32.js.br +0 -0
  234. package/dist/client/_app/immutable/chunks/DFXoGGM32.js.gz +0 -0
  235. package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.br +0 -0
  236. package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.gz +0 -0
  237. package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.br +0 -0
  238. package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.gz +0 -0
  239. package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.br +0 -0
  240. package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.gz +0 -0
  241. package/dist/client/_app/immutable/chunks/DfAL3LhV.js.br +0 -0
  242. package/dist/client/_app/immutable/chunks/DfAL3LhV.js.gz +0 -0
  243. package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.br +0 -0
  244. package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.gz +0 -0
  245. package/dist/client/_app/immutable/chunks/Fu4roQAh.js.br +0 -0
  246. package/dist/client/_app/immutable/chunks/Fu4roQAh.js.gz +0 -0
  247. package/dist/client/_app/immutable/chunks/ZLGReh43.js +0 -3
  248. package/dist/client/_app/immutable/chunks/ZLGReh43.js.br +0 -0
  249. package/dist/client/_app/immutable/chunks/ZLGReh43.js.gz +0 -0
  250. package/dist/client/_app/immutable/chunks/mRVEsFly2.js.br +0 -0
  251. package/dist/client/_app/immutable/chunks/mRVEsFly2.js.gz +0 -0
  252. package/dist/client/_app/immutable/chunks/orCHVlgT.js.br +0 -0
  253. package/dist/client/_app/immutable/chunks/orCHVlgT.js.gz +0 -0
  254. package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.br +0 -0
  255. package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.gz +0 -0
  256. package/dist/client/_app/immutable/entry/app.BzOeKbPs.js.br +0 -0
  257. package/dist/client/_app/immutable/entry/app.BzOeKbPs.js.gz +0 -0
  258. package/dist/client/_app/immutable/entry/start.CNF2MUuM.js +0 -1
  259. package/dist/client/_app/immutable/entry/start.CNF2MUuM.js.br +0 -0
  260. package/dist/client/_app/immutable/entry/start.CNF2MUuM.js.gz +0 -0
  261. package/dist/client/_app/immutable/nodes/0.CPqemWaq.js.br +0 -0
  262. package/dist/client/_app/immutable/nodes/0.CPqemWaq.js.gz +0 -0
  263. package/dist/client/_app/immutable/nodes/1.OaHPDibP.js.br +0 -2
  264. package/dist/client/_app/immutable/nodes/1.OaHPDibP.js.gz +0 -0
  265. package/dist/client/_app/immutable/nodes/10.BRGL1_0_.js +0 -6
  266. package/dist/client/_app/immutable/nodes/10.BRGL1_0_.js.br +0 -0
  267. package/dist/client/_app/immutable/nodes/10.BRGL1_0_.js.gz +0 -0
  268. package/dist/client/_app/immutable/nodes/2.BK6m2FYa.js +0 -1
  269. package/dist/client/_app/immutable/nodes/2.BK6m2FYa.js.br +0 -0
  270. package/dist/client/_app/immutable/nodes/2.BK6m2FYa.js.gz +0 -0
  271. package/dist/client/_app/immutable/nodes/9.Hjdmo-wG.js.br +0 -0
  272. package/dist/client/_app/immutable/nodes/9.Hjdmo-wG.js.gz +0 -0
  273. package/dist/server/chunks/10-DhkWDAeT.js +0 -22
  274. package/dist/server/chunks/10-DhkWDAeT.js.map +0 -1
  275. package/dist/server/chunks/5-610NKQc3.js.map +0 -1
  276. package/dist/server/chunks/6-Dl_h_OyU.js +0 -98
  277. package/dist/server/chunks/6-Dl_h_OyU.js.map +0 -1
  278. package/dist/server/chunks/9-CDMb5iwc.js +0 -22
  279. package/dist/server/chunks/9-CDMb5iwc.js.map +0 -1
  280. package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +0 -1
  281. package/dist/server/chunks/_page.svelte-Bn7BSazx.js.map +0 -1
  282. package/dist/server/chunks/_page.svelte-vOyGpofm.js.map +0 -1
  283. package/dist/server/chunks/_server.ts-DlC2sxcm.js.map +0 -1
  284. package/dist/server/chunks/client-bZcBshMs.js.map +0 -1
  285. package/dist/server/chunks/error-DYeUQ7mQ.js.map +0 -1
  286. package/dist/server/chunks/error.svelte-DDsdZM_m.js.map +0 -1
  287. package/dist/server/chunks/events-Bhh2w-5S.js.map +0 -1
  288. package/dist/server/chunks/hooks.server-BGpE7svk.js.map +0 -1
  289. package/dist/server/chunks/internal2-DBpj29pr.js.map +0 -1
  290. package/dist/server/chunks/loader-circle-CFNm9vip.js.map +0 -1
  291. package/dist/server/chunks/logo-DQI0khKS.js.map +0 -1
  292. package/dist/server/chunks/project-loader-DaQVgPID.js.map +0 -1
  293. package/dist/server/chunks/request-handler-guINVc1G.js.map +0 -1
  294. package/dist/server/chunks/runtime-CDHWD9vo.js.map +0 -1
  295. package/dist/server/chunks/schemas-BDVbWglI.js.map +0 -1
  296. package/dist/server/chunks/state-DwdUA00F.js.map +0 -1
  297. /package/dist/client/_app/immutable/assets/{10.BP_hUVIU.css → 3.BP_hUVIU.css} +0 -0
  298. /package/dist/client/_app/immutable/assets/{10.BP_hUVIU.css.br → 3.BP_hUVIU.css.br} +0 -0
  299. /package/dist/client/_app/immutable/assets/{10.BP_hUVIU.css.gz → 3.BP_hUVIU.css.gz} +0 -0
  300. /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js → CVaqCwHa2.js} +0 -0
  301. /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.br → CVaqCwHa2.js.br} +0 -0
  302. /package/dist/client/_app/immutable/chunks/{CVaqCwHa.js.gz → CVaqCwHa2.js.gz} +0 -0
  303. /package/dist/client/_app/immutable/chunks/{De2hgUGE.js → De2hgUGE2.js} +0 -0
  304. /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.br → De2hgUGE2.js.br} +0 -0
  305. /package/dist/client/_app/immutable/chunks/{De2hgUGE.js.gz → De2hgUGE2.js.gz} +0 -0
  306. /package/dist/server/chunks/{chunk-D7D4PA-g.js → rolldown-runtime-D7D4PA-g.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { t as __commonJSMin } from "./chunks/chunk-ByNZkrT6.js";
2
- import { St as writable, rt as readable, vt as uneval } from "./chunks/events-Bhh2w-5S.js";
3
- import { i as SvelteKitError, n as HttpError, r as Redirect, t as ActionFailure } from "./chunks/internal-DsA4iYdx.js";
4
- import { $ as text_encoder, A as with_request_store, B as coalesce_to_error, C as validate_layout_exports, D as merge_tracing, E as validate_page_server_exports, F as override, G as noop, H as get_message, I as reset, J as parse, K as normalize_error, L as INVALIDATED_PARAM, M as assets, N as base, Q as stringify$1, R as TRAILING_SLASH_PARAM, S as strip_resolution_suffix, T as validate_page_exports, U as get_relative_path, V as create_remote_key, W as get_status, X as split_remote_key, Y as parse_remote_arg, Z as stringify, _ as noop_span, a as set_read_implementation, c as compact, d as find_route, g as make_trackable, h as hash, i as set_manifest, j as app_dir, l as decode_pathname, m as has_resolution_suffix, n as options, o as add_data_suffix, p as has_data_suffix, q as once, r as read_implementation, s as add_resolution_suffix, t as get_hooks, u as disable_search, v as normalize_path, w as validate_layout_server_exports, x as strip_data_suffix, y as resolve, z as base64_encode } from "./chunks/internal2-DBpj29pr.js";
5
- import { i as json, o as text, r as isRedirect, t as error } from "./chunks/exports-CWOtdr_a.js";
2
+ import { J as readable, St as uneval, ut as writable } from "./chunks/index-server-BthNUqCR.js";
3
+ import { i as SvelteKitError, n as HttpError, r as Redirect, t as ActionFailure } from "./chunks/internal-vr3mPczx.js";
4
+ import { $ as text_encoder, A as with_request_store, B as coalesce_to_error, C as validate_layout_exports, D as merge_tracing, E as validate_page_server_exports, F as override, G as noop, H as get_message, I as reset, J as parse, K as normalize_error, L as INVALIDATED_PARAM, M as assets, N as base, Q as stringify$1, R as TRAILING_SLASH_PARAM, S as strip_resolution_suffix, T as validate_page_exports, U as get_relative_path, V as create_remote_key, W as get_status, X as split_remote_key, Y as parse_remote_arg, Z as stringify, _ as noop_span, a as set_read_implementation, c as compact, d as find_route, g as make_trackable, h as hash, i as set_manifest, j as app_dir, l as decode_pathname, m as has_resolution_suffix, n as options, o as add_data_suffix, p as has_data_suffix, q as once, r as read_implementation, s as add_resolution_suffix, t as get_hooks, u as disable_search, v as normalize_path, w as validate_layout_server_exports, x as strip_data_suffix, y as resolve, z as base64_encode } from "./chunks/internal2-yWeEySiO.js";
5
+ import { i as json, o as text, r as isRedirect, t as error } from "./chunks/exports-D0uQzbjy.js";
6
6
  import { i as set_public_env, n as public_env, r as set_private_env } from "./chunks/shared-server-Cha0Qlv9.js";
7
7
  import { n as set_app } from "./chunks/app-DUeJj5RD.js";
8
8
  //#region .svelte-kit/adapter-bun/chunks/utils.js
@@ -1890,19 +1890,20 @@ var Csp = class {
1890
1890
  this.report_only_provider.add_style(content);
1891
1891
  }
1892
1892
  };
1893
+ /** @import { SSRManifest } from '@sveltejs/kit' */
1893
1894
  /**
1894
1895
  * @param {import('types').SSRClientRoute} route
1895
1896
  * @param {URL} url
1896
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1897
+ * @param {NonNullable<SSRManifest['_']['client']>} client
1897
1898
  * @returns {string}
1898
1899
  */
1899
- function generate_route_object(route, url, manifest) {
1900
+ function generate_route_object(route, url, client) {
1900
1901
  const { errors, layouts, leaf } = route;
1901
1902
  const nodes = [
1902
1903
  ...errors,
1903
1904
  ...layouts.map((l) => l?.[1]),
1904
1905
  leaf[1]
1905
- ].filter((n) => typeof n === "number").map((n) => `'${n}': () => ${create_client_import(manifest._.client.nodes?.[n], url)}`).join(",\n ");
1906
+ ].filter((n) => typeof n === "number").map((n) => `'${n}': () => ${create_client_import(client.nodes?.[n], url)}`).join(",\n ");
1906
1907
  /** @type {import('types').CSRRouteServer} */
1907
1908
  return [
1908
1909
  `{\n\tid: ${s(route.id)}`,
@@ -1927,27 +1928,27 @@ function create_client_import(import_path, url) {
1927
1928
  /**
1928
1929
  * @param {string} resolved_path
1929
1930
  * @param {URL} url
1930
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1931
+ * @param {SSRManifest} manifest
1931
1932
  * @returns {Promise<Response>}
1932
1933
  */
1933
1934
  async function resolve_route(resolved_path, url, manifest) {
1934
- if (!manifest._.client.routes) return text("Server-side route resolution disabled", { status: 400 });
1935
+ if (!manifest._.client?.routes) return text("Server-side route resolution disabled", { status: 400 });
1935
1936
  const matchers = await manifest._.matchers();
1936
1937
  const result = find_route(resolved_path, manifest._.client.routes, matchers);
1937
- return create_server_routing_response(result?.route ?? null, result?.params ?? {}, url, manifest).response;
1938
+ return create_server_routing_response(result?.route ?? null, result?.params ?? {}, url, manifest._.client).response;
1938
1939
  }
1939
1940
  /**
1940
1941
  * @param {import('types').SSRClientRoute | null} route
1941
1942
  * @param {Partial<Record<string, string>>} params
1942
1943
  * @param {URL} url
1943
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1944
+ * @param {NonNullable<SSRManifest['_']['client']>} client
1944
1945
  * @returns {{response: Response, body: string}}
1945
1946
  */
1946
- function create_server_routing_response(route, params, url, manifest) {
1947
+ function create_server_routing_response(route, params, url, client) {
1947
1948
  const headers = new Headers({ "content-type": "application/javascript; charset=utf-8" });
1948
1949
  if (route) {
1949
- const csr_route = generate_route_object(route, url, manifest);
1950
- const body = `${create_css_import(route, url, manifest)}\nexport const route = ${csr_route}; export const params = ${JSON.stringify(params)};`;
1950
+ const csr_route = generate_route_object(route, url, client);
1951
+ const body = `${create_css_import(route, url, client)}\nexport const route = ${csr_route}; export const params = ${JSON.stringify(params)};`;
1951
1952
  return {
1952
1953
  response: text(body, { headers }),
1953
1954
  body
@@ -1965,10 +1966,10 @@ function create_server_routing_response(route, params, url, manifest) {
1965
1966
  *
1966
1967
  * @param {import('types').SSRClientRoute} route
1967
1968
  * @param {URL} url
1968
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1969
+ * @param {NonNullable<SSRManifest['_']['client']>} client
1969
1970
  * @returns {string}
1970
1971
  */
1971
- function create_css_import(route, url, manifest) {
1972
+ function create_css_import(route, url, client) {
1972
1973
  const { errors, layouts, leaf } = route;
1973
1974
  let css = "";
1974
1975
  for (const node of [
@@ -1977,11 +1978,339 @@ function create_css_import(route, url, manifest) {
1977
1978
  leaf[1]
1978
1979
  ]) {
1979
1980
  if (typeof node !== "number") continue;
1980
- const node_css = manifest._.client.css?.[node];
1981
+ const node_css = client.css?.[node];
1981
1982
  for (const css_path of node_css ?? []) css += `'${assets || base}/${css_path}',`;
1982
1983
  }
1983
1984
  if (!css) return "";
1984
- return `${create_client_import(manifest._.client.start, url)}.then(x => x.load_css([${css}]));`;
1985
+ return `${create_client_import(client.start, url)}.then(x => x.load_css([${css}]));`;
1986
+ }
1987
+ /** @import { ActionResult, RemoteForm, RequestEvent, SSRManifest } from '@sveltejs/kit' */
1988
+ /** @import { RemoteFormInternals, RemoteFunctionData, RemoteFunctionResponse, RemoteInternals, RequestState, SSROptions } from 'types' */
1989
+ /** @type {typeof handle_remote_call_internal} */
1990
+ async function handle_remote_call(event, state, options, manifest, id) {
1991
+ return record_span({
1992
+ name: "sveltekit.remote.call",
1993
+ attributes: { "sveltekit.remote.call.id": id },
1994
+ fn: (current) => {
1995
+ const traced_event = merge_tracing(event, current);
1996
+ return with_request_store({
1997
+ event: traced_event,
1998
+ state
1999
+ }, () => handle_remote_call_internal(traced_event, state, options, manifest, id));
2000
+ }
2001
+ });
2002
+ }
2003
+ /**
2004
+ * @param {RequestEvent} event
2005
+ * @param {RequestState} state
2006
+ * @param {SSROptions} options
2007
+ * @param {SSRManifest} manifest
2008
+ * @param {string} id
2009
+ */
2010
+ async function handle_remote_call_internal(event, state, options, manifest, id) {
2011
+ const [hash, name, additional_args] = id.split("/");
2012
+ const remotes = manifest._.remotes;
2013
+ if (!remotes[hash]) error(404);
2014
+ const fn = (await remotes[hash]()).default[name];
2015
+ if (!fn) error(404);
2016
+ /** @type {RemoteInternals} */
2017
+ const internals = fn.__;
2018
+ const transport = options.hooks.transport;
2019
+ event.tracing.current.setAttributes({
2020
+ "sveltekit.remote.call.type": internals.type,
2021
+ "sveltekit.remote.call.name": internals.name
2022
+ });
2023
+ try {
2024
+ /** @type {RemoteFunctionData} */
2025
+ const data = {};
2026
+ switch (internals.type) {
2027
+ case "query_live": {
2028
+ if (event.request.method !== "GET") throw new SvelteKitError(405, "Method Not Allowed", `\`query.live\` functions must be invoked via GET request, not ${event.request.method}`);
2029
+ const payload = new URL(event.request.url).searchParams.get("payload");
2030
+ const generator = internals.run(event, state, parse_remote_arg(payload, transport));
2031
+ const encoder = new TextEncoder();
2032
+ /**
2033
+ * @param {ReadableStreamDefaultController} controller
2034
+ * @param {any} payload
2035
+ */
2036
+ function send(controller, payload) {
2037
+ controller.enqueue(encoder.encode("data: " + JSON.stringify(payload) + "\n\n"));
2038
+ }
2039
+ let closed = false;
2040
+ /** @type {string | undefined} */
2041
+ let result = void 0;
2042
+ async function cancel() {
2043
+ if (closed) return;
2044
+ closed = true;
2045
+ await generator.return(void 0);
2046
+ }
2047
+ event.request.signal.addEventListener("abort", cancel, { once: true });
2048
+ return new Response(new ReadableStream({
2049
+ async pull(controller) {
2050
+ if (event.request.signal.aborted) {
2051
+ await cancel();
2052
+ controller.close();
2053
+ return;
2054
+ }
2055
+ try {
2056
+ while (true) {
2057
+ const { value, done } = await generator.next();
2058
+ if (done) {
2059
+ await cancel();
2060
+ controller.close();
2061
+ return;
2062
+ }
2063
+ if (result !== (result = stringify(value, transport))) {
2064
+ send(controller, {
2065
+ type: "result",
2066
+ result
2067
+ });
2068
+ return;
2069
+ }
2070
+ }
2071
+ } catch (error) {
2072
+ if (!event.request.signal.aborted) if (error instanceof Redirect) send(controller, {
2073
+ type: "redirect",
2074
+ location: error.location
2075
+ });
2076
+ else {
2077
+ const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2078
+ send(controller, {
2079
+ type: "error",
2080
+ error: await handle_error_and_jsonify(event, state, options, error),
2081
+ status
2082
+ });
2083
+ }
2084
+ await cancel();
2085
+ controller.close();
2086
+ }
2087
+ },
2088
+ cancel
2089
+ }), { headers: {
2090
+ "cache-control": "private, no-store",
2091
+ "content-type": "text/event-stream"
2092
+ } });
2093
+ }
2094
+ case "query_batch": {
2095
+ if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`query.batch\` functions must be invoked via POST request, not ${event.request.method}`);
2096
+ /** @type {{ payloads: string[] }} */
2097
+ const { payloads } = await event.request.json();
2098
+ const args = await Promise.all(payloads.map((payload) => parse_remote_arg(payload, transport)));
2099
+ data._ = await with_request_store({
2100
+ event,
2101
+ state
2102
+ }, () => internals.run(args, options));
2103
+ break;
2104
+ }
2105
+ case "form": {
2106
+ if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`form\` functions must be invoked via POST request, not ${event.request.method}`);
2107
+ if (!is_form_content_type(event.request)) throw new SvelteKitError(415, "Unsupported Media Type", `\`form\` functions expect form-encoded data — received ${event.request.headers.get("content-type")}`);
2108
+ const { data: input, meta, form_data } = await deserialize_binary_form(event.request);
2109
+ state.remote.requested = create_requested_map(meta.remote_refreshes);
2110
+ if (additional_args && !("id" in input)) input.id = JSON.parse(decodeURIComponent(additional_args));
2111
+ const fn = internals.fn;
2112
+ data._ = await with_request_store({
2113
+ event,
2114
+ state: {
2115
+ ...state,
2116
+ is_in_remote_form_or_command: true
2117
+ }
2118
+ }, () => fn(input, meta, form_data));
2119
+ if (data._.issues) return json({
2120
+ type: "result",
2121
+ data: stringify(data, transport)
2122
+ });
2123
+ break;
2124
+ }
2125
+ case "command": {
2126
+ /** @type {{ payload: string, refreshes?: string[] }} */
2127
+ const { payload, refreshes } = await event.request.json();
2128
+ state.remote.requested = create_requested_map(refreshes);
2129
+ const arg = parse_remote_arg(payload, transport);
2130
+ data._ = await with_request_store({
2131
+ event,
2132
+ state: {
2133
+ ...state,
2134
+ is_in_remote_form_or_command: true
2135
+ }
2136
+ }, () => fn(arg));
2137
+ break;
2138
+ }
2139
+ case "prerender":
2140
+ data._ = await with_request_store({
2141
+ event,
2142
+ state
2143
+ }, () => fn(parse_remote_arg(additional_args, transport)));
2144
+ break;
2145
+ case "query": {
2146
+ const payload = new URL(event.request.url).searchParams.get("payload");
2147
+ data._ = await with_request_store({
2148
+ event,
2149
+ state
2150
+ }, () => fn(parse_remote_arg(payload, transport)));
2151
+ break;
2152
+ }
2153
+ }
2154
+ await collect_remote_data(data, event, state, options);
2155
+ return json({
2156
+ type: "result",
2157
+ data: stringify(data, transport)
2158
+ });
2159
+ } catch (error) {
2160
+ if (error instanceof Redirect) return json({
2161
+ type: "result",
2162
+ data: stringify(await collect_remote_data({ redirect: error.location }, event, state, options), transport)
2163
+ });
2164
+ const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2165
+ return json({
2166
+ type: "error",
2167
+ error: await handle_error_and_jsonify(event, state, options, error),
2168
+ status
2169
+ }, {
2170
+ status: state.prerendering ? status : void 0,
2171
+ headers: { "cache-control": "private, no-store" }
2172
+ });
2173
+ }
2174
+ }
2175
+ /**
2176
+ * Collects all the query/prerender data that was retrieved
2177
+ * during the request and adds it to `data`
2178
+ * @param {RemoteFunctionData} data
2179
+ * @param {RequestEvent} event
2180
+ * @param {RequestState} state
2181
+ * @param {SSROptions} options
2182
+ */
2183
+ async function collect_remote_data(data, event, state, options) {
2184
+ /**
2185
+ *
2186
+ * @param {unknown} error
2187
+ * @returns {Promise<[status: number, error: App.Error]>}
2188
+ */
2189
+ async function convert_error(error) {
2190
+ return [error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500, await handle_error_and_jsonify(event, state, options, error)];
2191
+ }
2192
+ /** @type {Promise<any>[]} */
2193
+ const promises = [];
2194
+ if (state.remote.explicit) for (const [remote_key, { internals, promise }] of state.remote.explicit) {
2195
+ data.r = true;
2196
+ const type = internals.type === "query_live" ? "l" : internals.type[0];
2197
+ await promise.then((v) => {
2198
+ ((data[type] ??= {})[remote_key] ??= {}).v = v;
2199
+ }, async (e) => {
2200
+ if (e instanceof Redirect) return;
2201
+ ((data[type] ??= {})[remote_key] ??= {}).e = await convert_error(e);
2202
+ });
2203
+ }
2204
+ await Promise.all(promises);
2205
+ if (state.remote.implicit) for (const [internals, record] of state.remote.implicit) {
2206
+ if (!internals.id) continue;
2207
+ for (const key in record) {
2208
+ const remote_key = internals.type === "form" ? key : create_remote_key(internals.id, key);
2209
+ const type = internals.type === "query_live" ? "l" : internals.type[0];
2210
+ const promise = state.remote.data?.get(internals)?.[key] ?? record[key]();
2211
+ let resolved = true;
2212
+ await Promise.race([Promise.resolve(promise).then((v) => {
2213
+ if (resolved) ((data[type] ??= {})[remote_key] ??= {}).v = v;
2214
+ }, (e) => {
2215
+ if (e instanceof Redirect) return;
2216
+ if (resolved) promises.push(convert_error(e).then((e) => {
2217
+ ((data[type] ??= {})[remote_key] ??= {}).e = e;
2218
+ }));
2219
+ }), Promise.resolve().then(() => resolved = false)]);
2220
+ }
2221
+ }
2222
+ await Promise.all(promises);
2223
+ return data;
2224
+ }
2225
+ /**
2226
+ * @param {string[] | undefined} refreshes
2227
+ */
2228
+ function create_requested_map(refreshes) {
2229
+ /** @type {Map<string, string[]>} */
2230
+ const requested = /* @__PURE__ */ new Map();
2231
+ for (const key of refreshes ?? []) {
2232
+ const parts = split_remote_key(key);
2233
+ const existing = requested.get(parts.id);
2234
+ if (existing) existing.push(parts.payload);
2235
+ else requested.set(parts.id, [parts.payload]);
2236
+ }
2237
+ return requested;
2238
+ }
2239
+ /** @type {typeof handle_remote_form_post_internal} */
2240
+ async function handle_remote_form_post(event, state, manifest, id) {
2241
+ return record_span({
2242
+ name: "sveltekit.remote.form.post",
2243
+ attributes: { "sveltekit.remote.form.post.id": id },
2244
+ fn: (current) => {
2245
+ const traced_event = merge_tracing(event, current);
2246
+ return with_request_store({
2247
+ event: traced_event,
2248
+ state
2249
+ }, () => handle_remote_form_post_internal(traced_event, state, manifest, id));
2250
+ }
2251
+ });
2252
+ }
2253
+ /**
2254
+ * @param {RequestEvent} event
2255
+ * @param {RequestState} state
2256
+ * @param {SSRManifest} manifest
2257
+ * @param {string} id
2258
+ * @returns {Promise<ActionResult>}
2259
+ */
2260
+ async function handle_remote_form_post_internal(event, state, manifest, id) {
2261
+ const [hash, name, ...rest] = id.split("/");
2262
+ const action_id = rest.join("/");
2263
+ let form = (await manifest._.remotes[hash]?.())?.default[name];
2264
+ if (!form) {
2265
+ event.setHeaders({ allow: "GET" });
2266
+ return {
2267
+ type: "error",
2268
+ error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
2269
+ };
2270
+ }
2271
+ if (action_id) form = with_request_store({
2272
+ event,
2273
+ state
2274
+ }, () => form.for(JSON.parse(action_id)));
2275
+ try {
2276
+ const fn = form.__.fn;
2277
+ const { data, meta, form_data } = await deserialize_binary_form(event.request);
2278
+ if (action_id && !("id" in data)) data.id = JSON.parse(decodeURIComponent(action_id));
2279
+ await with_request_store({
2280
+ event,
2281
+ state: {
2282
+ ...state,
2283
+ is_in_remote_form_or_command: true
2284
+ }
2285
+ }, () => fn(data, meta, form_data));
2286
+ return {
2287
+ type: "success",
2288
+ status: 200
2289
+ };
2290
+ } catch (e) {
2291
+ const err = normalize_error(e);
2292
+ if (err instanceof Redirect) return {
2293
+ type: "redirect",
2294
+ status: err.status,
2295
+ location: err.location
2296
+ };
2297
+ return {
2298
+ type: "error",
2299
+ error: check_incorrect_fail_use(err)
2300
+ };
2301
+ }
2302
+ }
2303
+ /**
2304
+ * @param {URL} url
2305
+ */
2306
+ function get_remote_id(url) {
2307
+ return url.pathname.startsWith(`${base}/_app/remote/`) && url.pathname.replace(`${base}/_app/remote/`, "");
2308
+ }
2309
+ /**
2310
+ * @param {URL} url
2311
+ */
2312
+ function get_remote_action(url) {
2313
+ return url.searchParams.get("/remote");
1985
2314
  }
1986
2315
  var updated = {
1987
2316
  ...readable(false),
@@ -2012,9 +2341,9 @@ async function render_response({ branch, fetched, options, manifest, state, page
2012
2341
  if (options.app_template_contains_nonce) throw new Error("Cannot use prerendering if page template contains %sveltekit.nonce%");
2013
2342
  }
2014
2343
  const { client } = manifest._;
2015
- const modulepreloads = new Set(client.imports);
2016
- const stylesheets = new Set(client.stylesheets);
2017
- const fonts = new Set(client.fonts);
2344
+ const modulepreloads = new Set(client?.imports);
2345
+ const stylesheets = new Set(client?.stylesheets);
2346
+ const fonts = new Set(client?.fonts);
2018
2347
  /**
2019
2348
  * The value of the Link header that is added to the response when not prerendering
2020
2349
  * @type {Set<string>}
@@ -2128,7 +2457,7 @@ async function render_response({ branch, fetched, options, manifest, state, page
2128
2457
  for (const url of node.imports) modulepreloads.add(url);
2129
2458
  for (const url of node.stylesheets) stylesheets.add(url);
2130
2459
  for (const url of node.fonts) fonts.add(url);
2131
- if (node.inline_styles && !client.inline) Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
2460
+ if (node.inline_styles && !client?.inline) Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
2132
2461
  if (typeof css === "string") {
2133
2462
  inline_styles.set(filename, css);
2134
2463
  return;
@@ -2143,7 +2472,7 @@ async function render_response({ branch, fetched, options, manifest, state, page
2143
2472
  if (path.startsWith("/")) return base + path;
2144
2473
  return `${assets$1}/${path}`;
2145
2474
  };
2146
- const style = client.inline ? client.inline?.style : Array.from(inline_styles.values()).join("\n");
2475
+ const style = client?.inline ? client.inline?.style : Array.from(inline_styles.values()).join("\n");
2147
2476
  if (style) {
2148
2477
  const attributes = [];
2149
2478
  if (csp.style_needs_nonce) attributes.push(`nonce="${csp.nonce}"`);
@@ -2179,8 +2508,8 @@ async function render_response({ branch, fetched, options, manifest, state, page
2179
2508
  const global = get_global_name(options);
2180
2509
  const { data, chunks } = data_serializer.get_data(csp);
2181
2510
  if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!state.prerendering)).join("\n ")}`;
2182
- if (page_config.csr) {
2183
- const route = manifest._.client.routes?.find((r) => r.id === event.route.id) ?? null;
2511
+ if (page_config.csr && client) {
2512
+ const route = client.routes?.find((r) => r.id === event.route.id) ?? null;
2184
2513
  if (client.uses_env_dynamic_public && state.prerendering) modulepreloads.add(`${app_dir}/env.js`);
2185
2514
  if (!client.inline) {
2186
2515
  const included_modulepreloads = Array.from(modulepreloads, (dep) => prefixed(dep)).filter((path) => resolve_opts.preload({
@@ -2193,9 +2522,9 @@ async function render_response({ branch, fetched, options, manifest, state, page
2193
2522
  else head.add_link_tag(path, ["rel=\"modulepreload\""]);
2194
2523
  }
2195
2524
  }
2196
- if (manifest._.client.routes && state.prerendering && !state.prerendering.fallback) {
2525
+ if (client.routes && state.prerendering && !state.prerendering.fallback) {
2197
2526
  const pathname = add_resolution_suffix(event.url.pathname);
2198
- state.prerendering.dependencies.set(pathname, create_server_routing_response(route, event.params, new URL(pathname, event.url), manifest));
2527
+ state.prerendering.dependencies.set(pathname, create_server_routing_response(route, event.params, new URL(pathname, event.url), client));
2199
2528
  }
2200
2529
  const blocks = [];
2201
2530
  const load_env_eagerly = client.uses_env_dynamic_public && state.prerendering;
@@ -2248,62 +2577,26 @@ async function render_response({ branch, fetched, options, manifest, state, page
2248
2577
  `error: ${serialized.error}`
2249
2578
  ];
2250
2579
  if (status !== 200) hydrate.push(`status: ${status}`);
2251
- if (manifest._.client.routes) {
2580
+ if (client.routes) {
2252
2581
  if (route) {
2253
- const stringified = generate_route_object(route, event.url, manifest).replaceAll("\n", "\n ");
2582
+ const stringified = generate_route_object(route, event.url, client).replaceAll("\n", "\n ");
2254
2583
  hydrate.push(`params: ${uneval(event.params)}`, `server_route: ${stringified}`);
2255
2584
  }
2256
2585
  } else if (options.embedded) hydrate.push(`params: ${uneval(event.params)}`, `route: ${s(event.route)}`);
2257
2586
  const indent = " ".repeat(load_env_eagerly ? 7 : 6);
2258
2587
  args.push(`{\n${indent}\t${hydrate.join(`,\n${indent}\t`)}\n${indent}}`);
2259
2588
  }
2260
- const { remote } = event_state;
2261
- let serialized_query_data = "";
2262
- let serialized_prerender_data = "";
2263
- if (remote.data) {
2264
- /** @type {Record<string, any>} */
2265
- const query = {};
2266
- /** @type {Record<string, any>} */
2267
- const prerender = {};
2268
- for (const [internals, cache] of remote.data) {
2269
- if (!internals.id) continue;
2270
- for (const key in cache) {
2271
- const entry = cache[key];
2272
- if (!entry.serialize) continue;
2273
- const remote_key = create_remote_key(internals.id, key);
2274
- const store = internals.type === "prerender" ? prerender : query;
2275
- if (event_state.remote.refreshes?.has(remote_key) || event_state.remote.reconnects?.has(remote_key)) store[remote_key] = await entry.data;
2276
- else {
2277
- const result = await Promise.race([Promise.resolve(entry.data).then((v) => ({
2278
- settled: true,
2279
- value: v
2280
- }), (e) => ({
2281
- settled: true,
2282
- error: e
2283
- })), new Promise((resolve) => {
2284
- queueMicrotask(() => resolve({ settled: false }));
2285
- })]);
2286
- if (result.settled) {
2287
- if ("error" in result) throw result.error;
2288
- store[remote_key] = result.value;
2289
- }
2290
- }
2291
- }
2292
- }
2293
- const replacer = create_replacer(options.hooks.transport);
2294
- if (Object.keys(query).length > 0) serialized_query_data = `${global}.query = ${uneval(query, replacer)};\n\n\t\t\t\t\t\t`;
2295
- if (Object.keys(prerender).length > 0) serialized_prerender_data = `${global}.prerender = ${uneval(prerender, replacer)};\n\n\t\t\t\t\t\t`;
2296
- }
2297
- const serialized_remote_data = `${serialized_query_data}${serialized_prerender_data}`;
2589
+ const remote_data = await collect_remote_data({}, event, event_state, options);
2590
+ const serialized_data = Object.keys(remote_data).length > 0 ? `${global}.data = ${uneval(remote_data, create_replacer(options.hooks.transport))};\n\n\t\t\t\t\t\t` : "";
2298
2591
  const boot = client.inline ? `${client.inline.script}
2299
2592
 
2300
- ${serialized_remote_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
2593
+ ${serialized_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
2301
2594
  import(${s(prefixed(client.start))}),
2302
2595
  import(${s(prefixed(client.app))})
2303
2596
  ]).then(([kit, app]) => {
2304
- ${serialized_remote_data}kit.start(app, ${args.join(", ")});
2597
+ ${serialized_data}kit.start(app, ${args.join(", ")});
2305
2598
  });` : `import(${s(prefixed(client.start))}).then((app) => {
2306
- ${serialized_remote_data}app.start(${args.join(", ")})
2599
+ ${serialized_data}app.start(${args.join(", ")})
2307
2600
  });`;
2308
2601
  if (load_env_eagerly) blocks.push(`import(${s(`${base$1}/${app_dir}/env.js`)}).then(({ env }) => {
2309
2602
  ${global}.env = env;
@@ -2328,6 +2621,7 @@ async function render_response({ branch, fetched, options, manifest, state, page
2328
2621
  }
2329
2622
  const init_app = `
2330
2623
  {
2624
+
2331
2625
  ${blocks.join("\n\n ")}
2332
2626
  }
2333
2627
  `;
@@ -2588,287 +2882,6 @@ async function respond_with_error({ event, event_state, options, manifest, state
2588
2882
  return static_error_page(options, get_status(e), (await handle_error_and_jsonify(event, event_state, options, e)).message);
2589
2883
  }
2590
2884
  }
2591
- /** @import { ActionResult, RemoteForm, RequestEvent, SSRManifest } from '@sveltejs/kit' */
2592
- /** @import { RemoteFormInternals, RemoteFunctionResponse, RemoteInternals, RequestState, SSROptions } from 'types' */
2593
- /** @type {typeof handle_remote_call_internal} */
2594
- async function handle_remote_call(event, state, options, manifest, id) {
2595
- return record_span({
2596
- name: "sveltekit.remote.call",
2597
- attributes: { "sveltekit.remote.call.id": id },
2598
- fn: (current) => {
2599
- const traced_event = merge_tracing(event, current);
2600
- return with_request_store({
2601
- event: traced_event,
2602
- state
2603
- }, () => handle_remote_call_internal(traced_event, state, options, manifest, id));
2604
- }
2605
- });
2606
- }
2607
- /**
2608
- * @param {RequestEvent} event
2609
- * @param {RequestState} state
2610
- * @param {SSROptions} options
2611
- * @param {SSRManifest} manifest
2612
- * @param {string} id
2613
- */
2614
- async function handle_remote_call_internal(event, state, options, manifest, id) {
2615
- const [hash, name, additional_args] = id.split("/");
2616
- const remotes = manifest._.remotes;
2617
- if (!remotes[hash]) error(404);
2618
- const fn = (await remotes[hash]()).default[name];
2619
- if (!fn) error(404);
2620
- /** @type {RemoteInternals} */
2621
- const internals = fn.__;
2622
- const transport = options.hooks.transport;
2623
- event.tracing.current.setAttributes({
2624
- "sveltekit.remote.call.type": internals.type,
2625
- "sveltekit.remote.call.name": internals.name
2626
- });
2627
- try {
2628
- if (internals.type === "query_batch") {
2629
- if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`query.batch\` functions must be invoked via POST request, not ${event.request.method}`);
2630
- /** @type {{ payloads: string[] }} */
2631
- const { payloads } = await event.request.json();
2632
- const args = await Promise.all(payloads.map((payload) => parse_remote_arg(payload, transport)));
2633
- return json({
2634
- type: "result",
2635
- result: stringify(await with_request_store({
2636
- event,
2637
- state
2638
- }, () => internals.run(args, options)), transport)
2639
- });
2640
- }
2641
- if (internals.type === "form") {
2642
- if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`form\` functions must be invoked via POST request, not ${event.request.method}`);
2643
- if (!is_form_content_type(event.request)) throw new SvelteKitError(415, "Unsupported Media Type", `\`form\` functions expect form-encoded data — received ${event.request.headers.get("content-type")}`);
2644
- const { data, meta, form_data } = await deserialize_binary_form(event.request);
2645
- state.remote.requested = create_requested_map(meta.remote_refreshes);
2646
- if (additional_args && !("id" in data)) data.id = JSON.parse(decodeURIComponent(additional_args));
2647
- const fn = internals.fn;
2648
- const result = await with_request_store({
2649
- event,
2650
- state
2651
- }, () => fn(data, meta, form_data));
2652
- return json({
2653
- type: "result",
2654
- result: stringify(result, transport),
2655
- refreshes: result.issues ? void 0 : await serialize_singleflight(state.remote.refreshes),
2656
- reconnects: result.issues ? void 0 : await serialize_singleflight(state.remote.reconnects)
2657
- });
2658
- }
2659
- if (internals.type === "command") {
2660
- /** @type {{ payload: string, refreshes?: string[] }} */
2661
- const { payload, refreshes } = await event.request.json();
2662
- state.remote.requested = create_requested_map(refreshes);
2663
- const arg = parse_remote_arg(payload, transport);
2664
- return json({
2665
- type: "result",
2666
- result: stringify(await with_request_store({
2667
- event,
2668
- state
2669
- }, () => fn(arg)), transport),
2670
- refreshes: await serialize_singleflight(state.remote.refreshes),
2671
- reconnects: await serialize_singleflight(state.remote.reconnects)
2672
- });
2673
- }
2674
- if (internals.type === "query_live") {
2675
- if (event.request.method !== "GET") throw new SvelteKitError(405, "Method Not Allowed", `\`query.live\` functions must be invoked via GET request, not ${event.request.method}`);
2676
- const payload = new URL(event.request.url).searchParams.get("payload");
2677
- const generator = internals.run(event, state, parse_remote_arg(payload, transport));
2678
- const encoder = new TextEncoder();
2679
- /**
2680
- * @param {ReadableStreamDefaultController} controller
2681
- * @param {any} payload
2682
- */
2683
- function send(controller, payload) {
2684
- controller.enqueue(encoder.encode(JSON.stringify(payload) + "\n"));
2685
- }
2686
- let closed = false;
2687
- /** @type {string | undefined} */
2688
- let result = void 0;
2689
- async function cancel() {
2690
- if (closed) return;
2691
- closed = true;
2692
- await generator.return(void 0);
2693
- }
2694
- event.request.signal.addEventListener("abort", cancel, { once: true });
2695
- return new Response(new ReadableStream({
2696
- async pull(controller) {
2697
- if (event.request.signal.aborted) {
2698
- await cancel();
2699
- controller.close();
2700
- return;
2701
- }
2702
- try {
2703
- while (true) {
2704
- const { value, done } = await generator.next();
2705
- if (done) {
2706
- await cancel();
2707
- controller.close();
2708
- return;
2709
- }
2710
- if (result !== (result = stringify(value, transport))) {
2711
- send(controller, {
2712
- type: "result",
2713
- result
2714
- });
2715
- return;
2716
- }
2717
- }
2718
- } catch (error) {
2719
- if (!event.request.signal.aborted) if (error instanceof Redirect) send(controller, {
2720
- type: "redirect",
2721
- location: error.location
2722
- });
2723
- else {
2724
- const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2725
- send(controller, {
2726
- type: "error",
2727
- error: await handle_error_and_jsonify(event, state, options, error),
2728
- status
2729
- });
2730
- }
2731
- await cancel();
2732
- controller.close();
2733
- }
2734
- },
2735
- cancel
2736
- }), { headers: {
2737
- "cache-control": "private, no-store",
2738
- "content-type": "application/x-ndjson"
2739
- } });
2740
- }
2741
- const payload = internals.type === "prerender" ? additional_args : new URL(event.request.url).searchParams.get("payload");
2742
- return json({
2743
- type: "result",
2744
- result: stringify(await with_request_store({
2745
- event,
2746
- state
2747
- }, () => fn(parse_remote_arg(payload, transport))), transport)
2748
- });
2749
- } catch (error) {
2750
- if (error instanceof Redirect) return json({
2751
- type: "redirect",
2752
- location: error.location,
2753
- refreshes: await serialize_singleflight(state.remote.refreshes),
2754
- reconnects: await serialize_singleflight(state.remote.reconnects)
2755
- });
2756
- const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2757
- return json({
2758
- type: "error",
2759
- error: await handle_error_and_jsonify(event, state, options, error),
2760
- status
2761
- }, {
2762
- status: state.prerendering ? status : void 0,
2763
- headers: { "cache-control": "private, no-store" }
2764
- });
2765
- }
2766
- /** @param {Map<string, Promise<any>> | null} map */
2767
- async function serialize_singleflight(map) {
2768
- if (!map || map.size === 0) return;
2769
- const results = await Promise.all(Array.from(map, async ([key, promise]) => {
2770
- try {
2771
- return [key, {
2772
- type: "result",
2773
- data: await promise
2774
- }];
2775
- } catch (error) {
2776
- return [key, {
2777
- type: "error",
2778
- status: error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500,
2779
- error: await handle_error_and_jsonify(event, state, options, error)
2780
- }];
2781
- }
2782
- }));
2783
- return stringify(Object.fromEntries(results), transport);
2784
- }
2785
- }
2786
- /**
2787
- * @param {string[] | undefined} refreshes
2788
- */
2789
- function create_requested_map(refreshes) {
2790
- /** @type {Map<string, string[]>} */
2791
- const requested = /* @__PURE__ */ new Map();
2792
- for (const key of refreshes ?? []) {
2793
- const parts = split_remote_key(key);
2794
- const existing = requested.get(parts.id);
2795
- if (existing) existing.push(parts.payload);
2796
- else requested.set(parts.id, [parts.payload]);
2797
- }
2798
- return requested;
2799
- }
2800
- /** @type {typeof handle_remote_form_post_internal} */
2801
- async function handle_remote_form_post(event, state, manifest, id) {
2802
- return record_span({
2803
- name: "sveltekit.remote.form.post",
2804
- attributes: { "sveltekit.remote.form.post.id": id },
2805
- fn: (current) => {
2806
- const traced_event = merge_tracing(event, current);
2807
- return with_request_store({
2808
- event: traced_event,
2809
- state
2810
- }, () => handle_remote_form_post_internal(traced_event, state, manifest, id));
2811
- }
2812
- });
2813
- }
2814
- /**
2815
- * @param {RequestEvent} event
2816
- * @param {RequestState} state
2817
- * @param {SSRManifest} manifest
2818
- * @param {string} id
2819
- * @returns {Promise<ActionResult>}
2820
- */
2821
- async function handle_remote_form_post_internal(event, state, manifest, id) {
2822
- const [hash, name, action_id] = id.split("/");
2823
- let form = (await manifest._.remotes[hash]?.())?.default[name];
2824
- if (!form) {
2825
- event.setHeaders({ allow: "GET" });
2826
- return {
2827
- type: "error",
2828
- error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
2829
- };
2830
- }
2831
- if (action_id) form = with_request_store({
2832
- event,
2833
- state
2834
- }, () => form.for(JSON.parse(action_id)));
2835
- try {
2836
- const fn = form.__.fn;
2837
- const { data, meta, form_data } = await deserialize_binary_form(event.request);
2838
- if (action_id && !("id" in data)) data.id = JSON.parse(decodeURIComponent(action_id));
2839
- await with_request_store({
2840
- event,
2841
- state
2842
- }, () => fn(data, meta, form_data));
2843
- return {
2844
- type: "success",
2845
- status: 200
2846
- };
2847
- } catch (e) {
2848
- const err = normalize_error(e);
2849
- if (err instanceof Redirect) return {
2850
- type: "redirect",
2851
- status: err.status,
2852
- location: err.location
2853
- };
2854
- return {
2855
- type: "error",
2856
- error: check_incorrect_fail_use(err)
2857
- };
2858
- }
2859
- }
2860
- /**
2861
- * @param {URL} url
2862
- */
2863
- function get_remote_id(url) {
2864
- return url.pathname.startsWith(`${base}/_app/remote/`) && url.pathname.replace(`${base}/_app/remote/`, "");
2865
- }
2866
- /**
2867
- * @param {URL} url
2868
- */
2869
- function get_remote_action(url) {
2870
- return url.searchParams.get("/remote");
2871
- }
2872
2885
  /** @import { ActionResult, RequestEvent, SSRManifest } from '@sveltejs/kit' */
2873
2886
  /** @import { PageNodeIndexes, RequestState, RequiredResolveOptions, ServerDataNode, SSRComponent, SSRNode, SSROptions, SSRState } from 'types' */
2874
2887
  /**
@@ -3840,14 +3853,16 @@ async function internal_respond(request, options, manifest, state) {
3840
3853
  tracing: { record_span },
3841
3854
  remote: {
3842
3855
  data: null,
3856
+ explicit: null,
3857
+ implicit: null,
3843
3858
  forms: null,
3844
- refreshes: null,
3845
3859
  requested: null,
3846
- reconnects: null,
3847
3860
  batches: null,
3848
3861
  live_iterators: null
3849
3862
  },
3850
3863
  is_in_remote_function: false,
3864
+ is_in_remote_form_or_command: false,
3865
+ is_in_remote_query: false,
3851
3866
  is_in_render: false,
3852
3867
  is_in_universal_load: false
3853
3868
  };