@better-svelte-email/preview-server 2.0.0-beta.5

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 (990) hide show
  1. package/README.md +30 -0
  2. package/build/client/_app/immutable/assets/0.JbmZulcO.css +1 -0
  3. package/build/client/_app/immutable/assets/0.JbmZulcO.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.JbmZulcO.css.gz +0 -0
  5. package/build/client/_app/immutable/chunks/-8mdTiXi2.js +1 -0
  6. package/build/client/_app/immutable/chunks/-8mdTiXi2.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/-8mdTiXi2.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/-VfZRjzr.js +1 -0
  9. package/build/client/_app/immutable/chunks/-VfZRjzr.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/-VfZRjzr.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/1e9J6sGL.js +1 -0
  12. package/build/client/_app/immutable/chunks/1e9J6sGL.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/1e9J6sGL.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/2SfbDRQO.js +1 -0
  15. package/build/client/_app/immutable/chunks/2SfbDRQO.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/2SfbDRQO.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/2Wssvy-9.js +1 -0
  18. package/build/client/_app/immutable/chunks/2Wssvy-9.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/2Wssvy-9.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/2j1sUEXP.js +1 -0
  21. package/build/client/_app/immutable/chunks/2j1sUEXP.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/2j1sUEXP.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/3ctlP89a2.js +1 -0
  24. package/build/client/_app/immutable/chunks/3ctlP89a2.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/3ctlP89a2.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/3jktDrCi.js +1 -0
  27. package/build/client/_app/immutable/chunks/3jktDrCi.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/3jktDrCi.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/3lrgN3KK.js +3 -0
  30. package/build/client/_app/immutable/chunks/3lrgN3KK.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/3lrgN3KK.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/4FW2HvmM.js +1 -0
  33. package/build/client/_app/immutable/chunks/4FW2HvmM.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/4FW2HvmM.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/4OaBWnH_2.js +1 -0
  36. package/build/client/_app/immutable/chunks/4OaBWnH_2.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/4OaBWnH_2.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/4ZIkZEHr.js +1 -0
  39. package/build/client/_app/immutable/chunks/4ZIkZEHr.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/4ZIkZEHr.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/4_mhEcZt.js +1 -0
  42. package/build/client/_app/immutable/chunks/4_mhEcZt.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/4_mhEcZt.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/4esb57xi.js +1 -0
  45. package/build/client/_app/immutable/chunks/4esb57xi.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/4esb57xi.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/5EgkKvbh.js +1 -0
  48. package/build/client/_app/immutable/chunks/5EgkKvbh.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/5EgkKvbh.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/5XRW-mr22.js +1 -0
  51. package/build/client/_app/immutable/chunks/5XRW-mr22.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/5XRW-mr22.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/65sW_wzf2.js +1 -0
  54. package/build/client/_app/immutable/chunks/65sW_wzf2.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/65sW_wzf2.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/6H9MSFNX2.js +1 -0
  57. package/build/client/_app/immutable/chunks/6H9MSFNX2.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/6H9MSFNX2.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/9CKlacar.js +1 -0
  60. package/build/client/_app/immutable/chunks/9CKlacar.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/9CKlacar.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/ASdbxrPO2.js +1 -0
  63. package/build/client/_app/immutable/chunks/ASdbxrPO2.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/ASdbxrPO2.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/AjRqoVi1.js +1 -0
  66. package/build/client/_app/immutable/chunks/AjRqoVi1.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/AjRqoVi1.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/B0ou_5Se.js +1 -0
  69. package/build/client/_app/immutable/chunks/B0ou_5Se.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/B0ou_5Se.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/B3XEOhal.js +1 -0
  72. package/build/client/_app/immutable/chunks/B3XEOhal.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/B3XEOhal.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/B3jSVEhD.js +1 -0
  75. package/build/client/_app/immutable/chunks/B3jSVEhD.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/B3jSVEhD.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/B3lcbd5P.js +1 -0
  78. package/build/client/_app/immutable/chunks/B3lcbd5P.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/B3lcbd5P.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/B4JPhnMW2.js +1 -0
  81. package/build/client/_app/immutable/chunks/B4JPhnMW2.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/B4JPhnMW2.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/B4gPwaUk2.js +1 -0
  84. package/build/client/_app/immutable/chunks/B4gPwaUk2.js.br +0 -0
  85. package/build/client/_app/immutable/chunks/B4gPwaUk2.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/B4q6lBWC2.js +1 -0
  87. package/build/client/_app/immutable/chunks/B4q6lBWC2.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/B4q6lBWC2.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/B6VKbn052.js +1 -0
  90. package/build/client/_app/immutable/chunks/B6VKbn052.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/B6VKbn052.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/B7Nmbu4_.js +1 -0
  93. package/build/client/_app/immutable/chunks/B7Nmbu4_.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/B7Nmbu4_.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/B7UTE8KN2.js +1 -0
  96. package/build/client/_app/immutable/chunks/B7UTE8KN2.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/B7UTE8KN2.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/B7d5X8Jv.js +1 -0
  99. package/build/client/_app/immutable/chunks/B7d5X8Jv.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/B7d5X8Jv.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/B9T7EddH.js +1 -0
  102. package/build/client/_app/immutable/chunks/B9T7EddH.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/B9T7EddH.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/B9YMHD1z.js +1 -0
  105. package/build/client/_app/immutable/chunks/B9YMHD1z.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/B9YMHD1z.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/B9eZXqgk.js +1 -0
  108. package/build/client/_app/immutable/chunks/B9eZXqgk.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/B9eZXqgk.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/B9ppke1I.js +1 -0
  111. package/build/client/_app/immutable/chunks/B9ppke1I.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/B9ppke1I.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/BAxnvyf1.js +1 -0
  114. package/build/client/_app/immutable/chunks/BAxnvyf1.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/BAxnvyf1.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/BBouyR2x.js +1 -0
  117. package/build/client/_app/immutable/chunks/BBouyR2x.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/BBouyR2x.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/BCV9k0b5.js +1 -0
  120. package/build/client/_app/immutable/chunks/BCV9k0b5.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/BCV9k0b5.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/BCYN_hsI.js +1 -0
  123. package/build/client/_app/immutable/chunks/BCYN_hsI.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/BCYN_hsI.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/BDWDCk9u.js +1 -0
  126. package/build/client/_app/immutable/chunks/BDWDCk9u.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/BDWDCk9u.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/BEQuuskS2.js +1 -0
  129. package/build/client/_app/immutable/chunks/BEQuuskS2.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/BEQuuskS2.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/BEltDD_K2.js +1 -0
  132. package/build/client/_app/immutable/chunks/BEltDD_K2.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/BEltDD_K2.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/BFdS1wfi.js +1 -0
  135. package/build/client/_app/immutable/chunks/BFdS1wfi.js.br +0 -0
  136. package/build/client/_app/immutable/chunks/BFdS1wfi.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/BGNmpMLu2.js +1 -0
  138. package/build/client/_app/immutable/chunks/BGNmpMLu2.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/BGNmpMLu2.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/BH2K5LpF.js +1 -0
  141. package/build/client/_app/immutable/chunks/BH2K5LpF.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/BH2K5LpF.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/BHFiOPU3.js +1 -0
  144. package/build/client/_app/immutable/chunks/BHFiOPU3.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/BHFiOPU3.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/BHpy4jAv2.js +1 -0
  147. package/build/client/_app/immutable/chunks/BHpy4jAv2.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/BHpy4jAv2.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/BIFf-0Qp.js +1 -0
  150. package/build/client/_app/immutable/chunks/BIFf-0Qp.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/BIFf-0Qp.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/BKCljgZm2.js +1 -0
  153. package/build/client/_app/immutable/chunks/BKCljgZm2.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/BKCljgZm2.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/BL_NCKwI2.js +1 -0
  156. package/build/client/_app/immutable/chunks/BL_NCKwI2.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/BL_NCKwI2.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/BLnTiNQX2.js +1 -0
  159. package/build/client/_app/immutable/chunks/BLnTiNQX2.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/BLnTiNQX2.js.gz +0 -0
  161. package/build/client/_app/immutable/chunks/BO2_q__R2.js +1 -0
  162. package/build/client/_app/immutable/chunks/BO2_q__R2.js.br +0 -0
  163. package/build/client/_app/immutable/chunks/BO2_q__R2.js.gz +0 -0
  164. package/build/client/_app/immutable/chunks/BOCdKr8L.js +1 -0
  165. package/build/client/_app/immutable/chunks/BOCdKr8L.js.br +0 -0
  166. package/build/client/_app/immutable/chunks/BOCdKr8L.js.gz +0 -0
  167. package/build/client/_app/immutable/chunks/BORgs0aG.js +1 -0
  168. package/build/client/_app/immutable/chunks/BORgs0aG.js.br +0 -0
  169. package/build/client/_app/immutable/chunks/BORgs0aG.js.gz +0 -0
  170. package/build/client/_app/immutable/chunks/BP32vSW7.js +1 -0
  171. package/build/client/_app/immutable/chunks/BP32vSW7.js.br +0 -0
  172. package/build/client/_app/immutable/chunks/BP32vSW7.js.gz +0 -0
  173. package/build/client/_app/immutable/chunks/BQcv5xdm.js +1 -0
  174. package/build/client/_app/immutable/chunks/BQcv5xdm.js.br +0 -0
  175. package/build/client/_app/immutable/chunks/BQcv5xdm.js.gz +0 -0
  176. package/build/client/_app/immutable/chunks/BS55mr1A.js +1 -0
  177. package/build/client/_app/immutable/chunks/BS55mr1A.js.br +0 -0
  178. package/build/client/_app/immutable/chunks/BS55mr1A.js.gz +0 -0
  179. package/build/client/_app/immutable/chunks/BS9ADXnT.js +1 -0
  180. package/build/client/_app/immutable/chunks/BS9ADXnT.js.br +0 -0
  181. package/build/client/_app/immutable/chunks/BS9ADXnT.js.gz +0 -0
  182. package/build/client/_app/immutable/chunks/BSB2IawP2.js +1 -0
  183. package/build/client/_app/immutable/chunks/BSB2IawP2.js.br +0 -0
  184. package/build/client/_app/immutable/chunks/BSB2IawP2.js.gz +0 -0
  185. package/build/client/_app/immutable/chunks/BSIuWq_1.js +1 -0
  186. package/build/client/_app/immutable/chunks/BSIuWq_1.js.br +0 -0
  187. package/build/client/_app/immutable/chunks/BSIuWq_1.js.gz +0 -0
  188. package/build/client/_app/immutable/chunks/BSkI9gFY2.js +1 -0
  189. package/build/client/_app/immutable/chunks/BSkI9gFY2.js.br +0 -0
  190. package/build/client/_app/immutable/chunks/BSkI9gFY2.js.gz +0 -0
  191. package/build/client/_app/immutable/chunks/BVX6Zk6R.js +1 -0
  192. package/build/client/_app/immutable/chunks/BVX6Zk6R.js.br +0 -0
  193. package/build/client/_app/immutable/chunks/BVX6Zk6R.js.gz +0 -0
  194. package/build/client/_app/immutable/chunks/BVkMsxjo2.js +1 -0
  195. package/build/client/_app/immutable/chunks/BVkMsxjo2.js.br +0 -0
  196. package/build/client/_app/immutable/chunks/BVkMsxjo2.js.gz +0 -0
  197. package/build/client/_app/immutable/chunks/BVxfUfCd.js +1 -0
  198. package/build/client/_app/immutable/chunks/BVxfUfCd.js.br +0 -0
  199. package/build/client/_app/immutable/chunks/BVxfUfCd.js.gz +0 -0
  200. package/build/client/_app/immutable/chunks/BXbfsy4k.js +1 -0
  201. package/build/client/_app/immutable/chunks/BXbfsy4k.js.br +0 -0
  202. package/build/client/_app/immutable/chunks/BXbfsy4k.js.gz +0 -0
  203. package/build/client/_app/immutable/chunks/BZ3amlMK2.js +1 -0
  204. package/build/client/_app/immutable/chunks/BZ3amlMK2.js.br +0 -0
  205. package/build/client/_app/immutable/chunks/BZ3amlMK2.js.gz +0 -0
  206. package/build/client/_app/immutable/chunks/BZ7qNccM.js +1 -0
  207. package/build/client/_app/immutable/chunks/BZ7qNccM.js.br +0 -0
  208. package/build/client/_app/immutable/chunks/BZ7qNccM.js.gz +0 -0
  209. package/build/client/_app/immutable/chunks/BZ8kX2d4.js +1 -0
  210. package/build/client/_app/immutable/chunks/BZ8kX2d4.js.br +0 -0
  211. package/build/client/_app/immutable/chunks/BZ8kX2d4.js.gz +0 -0
  212. package/build/client/_app/immutable/chunks/B_JXD9QY2.js +1 -0
  213. package/build/client/_app/immutable/chunks/B_JXD9QY2.js.br +0 -0
  214. package/build/client/_app/immutable/chunks/B_JXD9QY2.js.gz +0 -0
  215. package/build/client/_app/immutable/chunks/B_PczBOb.js +1 -0
  216. package/build/client/_app/immutable/chunks/B_PczBOb.js.br +0 -0
  217. package/build/client/_app/immutable/chunks/B_PczBOb.js.gz +0 -0
  218. package/build/client/_app/immutable/chunks/B_ZTvFi3.js +1 -0
  219. package/build/client/_app/immutable/chunks/B_ZTvFi3.js.br +0 -0
  220. package/build/client/_app/immutable/chunks/B_ZTvFi3.js.gz +0 -0
  221. package/build/client/_app/immutable/chunks/B_yH3Jrh.js +1 -0
  222. package/build/client/_app/immutable/chunks/B_yH3Jrh.js.br +0 -0
  223. package/build/client/_app/immutable/chunks/B_yH3Jrh.js.gz +0 -0
  224. package/build/client/_app/immutable/chunks/BbM7IDbx2.js +1 -0
  225. package/build/client/_app/immutable/chunks/BbM7IDbx2.js.br +0 -0
  226. package/build/client/_app/immutable/chunks/BbM7IDbx2.js.gz +0 -0
  227. package/build/client/_app/immutable/chunks/Bd9PumVF2.js +1 -0
  228. package/build/client/_app/immutable/chunks/Bd9PumVF2.js.br +0 -0
  229. package/build/client/_app/immutable/chunks/Bd9PumVF2.js.gz +0 -0
  230. package/build/client/_app/immutable/chunks/BdBghEJt.js +1 -0
  231. package/build/client/_app/immutable/chunks/BdBghEJt.js.br +0 -0
  232. package/build/client/_app/immutable/chunks/BdBghEJt.js.gz +0 -0
  233. package/build/client/_app/immutable/chunks/BdD-4Rck2.js +1 -0
  234. package/build/client/_app/immutable/chunks/BdD-4Rck2.js.br +0 -0
  235. package/build/client/_app/immutable/chunks/BdD-4Rck2.js.gz +0 -0
  236. package/build/client/_app/immutable/chunks/BdQfErtb2.js +1 -0
  237. package/build/client/_app/immutable/chunks/BdQfErtb2.js.br +0 -0
  238. package/build/client/_app/immutable/chunks/BdQfErtb2.js.gz +0 -0
  239. package/build/client/_app/immutable/chunks/BeLj1-Pv.js +1 -0
  240. package/build/client/_app/immutable/chunks/BeLj1-Pv.js.br +0 -0
  241. package/build/client/_app/immutable/chunks/BeLj1-Pv.js.gz +0 -0
  242. package/build/client/_app/immutable/chunks/BegdHv0j2.js +1 -0
  243. package/build/client/_app/immutable/chunks/BegdHv0j2.js.br +0 -0
  244. package/build/client/_app/immutable/chunks/BegdHv0j2.js.gz +0 -0
  245. package/build/client/_app/immutable/chunks/BgBKRpzI2.js +1 -0
  246. package/build/client/_app/immutable/chunks/BgBKRpzI2.js.br +0 -0
  247. package/build/client/_app/immutable/chunks/BgBKRpzI2.js.gz +0 -0
  248. package/build/client/_app/immutable/chunks/BgFL3ltv2.js +1 -0
  249. package/build/client/_app/immutable/chunks/BgFL3ltv2.js.br +0 -0
  250. package/build/client/_app/immutable/chunks/BgFL3ltv2.js.gz +0 -0
  251. package/build/client/_app/immutable/chunks/BgFVqFbN2.js +1 -0
  252. package/build/client/_app/immutable/chunks/BgFVqFbN2.js.br +0 -0
  253. package/build/client/_app/immutable/chunks/BgFVqFbN2.js.gz +0 -0
  254. package/build/client/_app/immutable/chunks/BhCVJqVE.js +1 -0
  255. package/build/client/_app/immutable/chunks/BhCVJqVE.js.br +0 -0
  256. package/build/client/_app/immutable/chunks/BhCVJqVE.js.gz +0 -0
  257. package/build/client/_app/immutable/chunks/Bi-7I8ov.js +1 -0
  258. package/build/client/_app/immutable/chunks/Bi-7I8ov.js.br +0 -0
  259. package/build/client/_app/immutable/chunks/Bi-7I8ov.js.gz +0 -0
  260. package/build/client/_app/immutable/chunks/BiAT-RFm2.js +1 -0
  261. package/build/client/_app/immutable/chunks/BiAT-RFm2.js.br +0 -0
  262. package/build/client/_app/immutable/chunks/BiAT-RFm2.js.gz +0 -0
  263. package/build/client/_app/immutable/chunks/BjHIQUCt.js +1 -0
  264. package/build/client/_app/immutable/chunks/BjHIQUCt.js.br +0 -0
  265. package/build/client/_app/immutable/chunks/BjHIQUCt.js.gz +0 -0
  266. package/build/client/_app/immutable/chunks/BjxLcgem2.js +1 -0
  267. package/build/client/_app/immutable/chunks/BjxLcgem2.js.br +0 -0
  268. package/build/client/_app/immutable/chunks/BjxLcgem2.js.gz +0 -0
  269. package/build/client/_app/immutable/chunks/BkLMKoNY2.js +1 -0
  270. package/build/client/_app/immutable/chunks/BkLMKoNY2.js.br +0 -0
  271. package/build/client/_app/immutable/chunks/BkLMKoNY2.js.gz +0 -0
  272. package/build/client/_app/immutable/chunks/Blr2mF5X.js +1 -0
  273. package/build/client/_app/immutable/chunks/Blr2mF5X.js.br +0 -0
  274. package/build/client/_app/immutable/chunks/Blr2mF5X.js.gz +0 -0
  275. package/build/client/_app/immutable/chunks/Bo5tbelV.js +1 -0
  276. package/build/client/_app/immutable/chunks/Bo5tbelV.js.br +0 -0
  277. package/build/client/_app/immutable/chunks/Bo5tbelV.js.gz +0 -0
  278. package/build/client/_app/immutable/chunks/BpEG8rhX.js +1 -0
  279. package/build/client/_app/immutable/chunks/BpEG8rhX.js.br +0 -0
  280. package/build/client/_app/immutable/chunks/BpEG8rhX.js.gz +0 -0
  281. package/build/client/_app/immutable/chunks/Bq-6yWbF.js +1 -0
  282. package/build/client/_app/immutable/chunks/Bq-6yWbF.js.br +0 -0
  283. package/build/client/_app/immutable/chunks/Bq-6yWbF.js.gz +0 -0
  284. package/build/client/_app/immutable/chunks/BqfWvGcQ.js +1 -0
  285. package/build/client/_app/immutable/chunks/BqfWvGcQ.js.br +0 -0
  286. package/build/client/_app/immutable/chunks/BqfWvGcQ.js.gz +0 -0
  287. package/build/client/_app/immutable/chunks/BscMyxSd.js +1 -0
  288. package/build/client/_app/immutable/chunks/BscMyxSd.js.br +0 -0
  289. package/build/client/_app/immutable/chunks/BscMyxSd.js.gz +0 -0
  290. package/build/client/_app/immutable/chunks/Bu0fMFVU2.js +1 -0
  291. package/build/client/_app/immutable/chunks/Bu0fMFVU2.js.br +0 -0
  292. package/build/client/_app/immutable/chunks/Bu0fMFVU2.js.gz +0 -0
  293. package/build/client/_app/immutable/chunks/BvF5_Psz2.js +1 -0
  294. package/build/client/_app/immutable/chunks/BvF5_Psz2.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/BvF5_Psz2.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/BvNtuhfp.js +1 -0
  297. package/build/client/_app/immutable/chunks/BvNtuhfp.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/BvNtuhfp.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/BvdkJM78.js +24 -0
  300. package/build/client/_app/immutable/chunks/BvdkJM78.js.br +0 -0
  301. package/build/client/_app/immutable/chunks/BvdkJM78.js.gz +0 -0
  302. package/build/client/_app/immutable/chunks/BvtP1Kq42.js +1 -0
  303. package/build/client/_app/immutable/chunks/BvtP1Kq42.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/BvtP1Kq42.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/Bw7TZFNC.js +1 -0
  306. package/build/client/_app/immutable/chunks/Bw7TZFNC.js.br +0 -0
  307. package/build/client/_app/immutable/chunks/Bw7TZFNC.js.gz +0 -0
  308. package/build/client/_app/immutable/chunks/ByK_vtMR2.js +1 -0
  309. package/build/client/_app/immutable/chunks/ByK_vtMR2.js.br +0 -0
  310. package/build/client/_app/immutable/chunks/ByK_vtMR2.js.gz +0 -0
  311. package/build/client/_app/immutable/chunks/Byy9Qryb.js +1 -0
  312. package/build/client/_app/immutable/chunks/Byy9Qryb.js.br +0 -0
  313. package/build/client/_app/immutable/chunks/Byy9Qryb.js.gz +0 -0
  314. package/build/client/_app/immutable/chunks/BzUQtr5v.js +1 -0
  315. package/build/client/_app/immutable/chunks/BzUQtr5v.js.br +0 -0
  316. package/build/client/_app/immutable/chunks/BzUQtr5v.js.gz +0 -0
  317. package/build/client/_app/immutable/chunks/Bzr-2dJ7.js +1 -0
  318. package/build/client/_app/immutable/chunks/Bzr-2dJ7.js.br +0 -0
  319. package/build/client/_app/immutable/chunks/Bzr-2dJ7.js.gz +0 -0
  320. package/build/client/_app/immutable/chunks/C1KoDvsy.js +1 -0
  321. package/build/client/_app/immutable/chunks/C1KoDvsy.js.br +0 -0
  322. package/build/client/_app/immutable/chunks/C1KoDvsy.js.gz +0 -0
  323. package/build/client/_app/immutable/chunks/C1OfwJ8c2.js +1 -0
  324. package/build/client/_app/immutable/chunks/C1OfwJ8c2.js.br +0 -0
  325. package/build/client/_app/immutable/chunks/C1OfwJ8c2.js.gz +0 -0
  326. package/build/client/_app/immutable/chunks/C1vNtggd.js +1 -0
  327. package/build/client/_app/immutable/chunks/C1vNtggd.js.br +0 -0
  328. package/build/client/_app/immutable/chunks/C1vNtggd.js.gz +0 -0
  329. package/build/client/_app/immutable/chunks/C2SIYp-K.js +1 -0
  330. package/build/client/_app/immutable/chunks/C2SIYp-K.js.br +0 -0
  331. package/build/client/_app/immutable/chunks/C2SIYp-K.js.gz +0 -0
  332. package/build/client/_app/immutable/chunks/C3Vs-AoW2.js +1 -0
  333. package/build/client/_app/immutable/chunks/C3Vs-AoW2.js.br +0 -0
  334. package/build/client/_app/immutable/chunks/C3Vs-AoW2.js.gz +0 -0
  335. package/build/client/_app/immutable/chunks/C8aTZFLM2.js +1 -0
  336. package/build/client/_app/immutable/chunks/C8aTZFLM2.js.br +0 -0
  337. package/build/client/_app/immutable/chunks/C8aTZFLM2.js.gz +0 -0
  338. package/build/client/_app/immutable/chunks/C8gF7p59.js +1 -0
  339. package/build/client/_app/immutable/chunks/C8gF7p59.js.br +0 -0
  340. package/build/client/_app/immutable/chunks/C8gF7p59.js.gz +0 -0
  341. package/build/client/_app/immutable/chunks/C8wIefmU2.js +1 -0
  342. package/build/client/_app/immutable/chunks/C8wIefmU2.js.br +0 -0
  343. package/build/client/_app/immutable/chunks/C8wIefmU2.js.gz +0 -0
  344. package/build/client/_app/immutable/chunks/CA8NSna52.js +1 -0
  345. package/build/client/_app/immutable/chunks/CA8NSna52.js.br +0 -0
  346. package/build/client/_app/immutable/chunks/CA8NSna52.js.gz +0 -0
  347. package/build/client/_app/immutable/chunks/CBGYKkNb.js +1 -0
  348. package/build/client/_app/immutable/chunks/CBGYKkNb.js.br +0 -0
  349. package/build/client/_app/immutable/chunks/CBGYKkNb.js.gz +0 -0
  350. package/build/client/_app/immutable/chunks/CBog0kM_.js +1 -0
  351. package/build/client/_app/immutable/chunks/CBog0kM_.js.br +0 -0
  352. package/build/client/_app/immutable/chunks/CBog0kM_.js.gz +0 -0
  353. package/build/client/_app/immutable/chunks/CEJDlAqw2.js +1 -0
  354. package/build/client/_app/immutable/chunks/CEJDlAqw2.js.br +0 -0
  355. package/build/client/_app/immutable/chunks/CEJDlAqw2.js.gz +0 -0
  356. package/build/client/_app/immutable/chunks/CEuVoMNO2.js +1 -0
  357. package/build/client/_app/immutable/chunks/CEuVoMNO2.js.br +0 -0
  358. package/build/client/_app/immutable/chunks/CEuVoMNO2.js.gz +0 -0
  359. package/build/client/_app/immutable/chunks/CFgee_2P.js +1 -0
  360. package/build/client/_app/immutable/chunks/CFgee_2P.js.br +0 -0
  361. package/build/client/_app/immutable/chunks/CFgee_2P.js.gz +0 -0
  362. package/build/client/_app/immutable/chunks/CFzekq2w.js +1 -0
  363. package/build/client/_app/immutable/chunks/CFzekq2w.js.br +0 -0
  364. package/build/client/_app/immutable/chunks/CFzekq2w.js.gz +0 -0
  365. package/build/client/_app/immutable/chunks/CGKzaYc7.js +1 -0
  366. package/build/client/_app/immutable/chunks/CGKzaYc7.js.br +0 -0
  367. package/build/client/_app/immutable/chunks/CGKzaYc7.js.gz +0 -0
  368. package/build/client/_app/immutable/chunks/CGxfBkob.js +1 -0
  369. package/build/client/_app/immutable/chunks/CGxfBkob.js.br +0 -0
  370. package/build/client/_app/immutable/chunks/CGxfBkob.js.gz +0 -0
  371. package/build/client/_app/immutable/chunks/CH9b61nJ2.js +1 -0
  372. package/build/client/_app/immutable/chunks/CH9b61nJ2.js.br +0 -0
  373. package/build/client/_app/immutable/chunks/CH9b61nJ2.js.gz +0 -0
  374. package/build/client/_app/immutable/chunks/CI2bV1Jg.js +1 -0
  375. package/build/client/_app/immutable/chunks/CI2bV1Jg.js.br +0 -0
  376. package/build/client/_app/immutable/chunks/CI2bV1Jg.js.gz +0 -0
  377. package/build/client/_app/immutable/chunks/CJE4TFbe.js +1 -0
  378. package/build/client/_app/immutable/chunks/CJE4TFbe.js.br +0 -0
  379. package/build/client/_app/immutable/chunks/CJE4TFbe.js.gz +0 -0
  380. package/build/client/_app/immutable/chunks/CK0_EB0O.js +1 -0
  381. package/build/client/_app/immutable/chunks/CK0_EB0O.js.br +0 -0
  382. package/build/client/_app/immutable/chunks/CK0_EB0O.js.gz +0 -0
  383. package/build/client/_app/immutable/chunks/CKKkklRb.js +1 -0
  384. package/build/client/_app/immutable/chunks/CKKkklRb.js.br +0 -0
  385. package/build/client/_app/immutable/chunks/CKKkklRb.js.gz +0 -0
  386. package/build/client/_app/immutable/chunks/CMeoI1Os.js +1 -0
  387. package/build/client/_app/immutable/chunks/CMeoI1Os.js.br +0 -0
  388. package/build/client/_app/immutable/chunks/CMeoI1Os.js.gz +0 -0
  389. package/build/client/_app/immutable/chunks/CMsnibUi2.js +1 -0
  390. package/build/client/_app/immutable/chunks/CMsnibUi2.js.br +0 -0
  391. package/build/client/_app/immutable/chunks/CMsnibUi2.js.gz +0 -0
  392. package/build/client/_app/immutable/chunks/CN43pbfW2.js +1 -0
  393. package/build/client/_app/immutable/chunks/CN43pbfW2.js.br +5 -0
  394. package/build/client/_app/immutable/chunks/CN43pbfW2.js.gz +0 -0
  395. package/build/client/_app/immutable/chunks/CON0KyJh.js +1 -0
  396. package/build/client/_app/immutable/chunks/CON0KyJh.js.br +0 -0
  397. package/build/client/_app/immutable/chunks/CON0KyJh.js.gz +0 -0
  398. package/build/client/_app/immutable/chunks/CQm5lKe5.js +1 -0
  399. package/build/client/_app/immutable/chunks/CQm5lKe5.js.br +0 -0
  400. package/build/client/_app/immutable/chunks/CQm5lKe5.js.gz +0 -0
  401. package/build/client/_app/immutable/chunks/CReI3Hog2.js +1 -0
  402. package/build/client/_app/immutable/chunks/CReI3Hog2.js.br +0 -0
  403. package/build/client/_app/immutable/chunks/CReI3Hog2.js.gz +0 -0
  404. package/build/client/_app/immutable/chunks/CRoOhImC2.js +1 -0
  405. package/build/client/_app/immutable/chunks/CRoOhImC2.js.br +0 -0
  406. package/build/client/_app/immutable/chunks/CRoOhImC2.js.gz +0 -0
  407. package/build/client/_app/immutable/chunks/CRtSPPEe2.js +1 -0
  408. package/build/client/_app/immutable/chunks/CRtSPPEe2.js.br +0 -0
  409. package/build/client/_app/immutable/chunks/CRtSPPEe2.js.gz +0 -0
  410. package/build/client/_app/immutable/chunks/CTF1EodO.js +1 -0
  411. package/build/client/_app/immutable/chunks/CTF1EodO.js.br +0 -0
  412. package/build/client/_app/immutable/chunks/CTF1EodO.js.gz +0 -0
  413. package/build/client/_app/immutable/chunks/CTpAOmck.js +1 -0
  414. package/build/client/_app/immutable/chunks/CTpAOmck.js.br +0 -0
  415. package/build/client/_app/immutable/chunks/CTpAOmck.js.gz +0 -0
  416. package/build/client/_app/immutable/chunks/CXpU_5b82.js +1 -0
  417. package/build/client/_app/immutable/chunks/CXpU_5b82.js.br +0 -0
  418. package/build/client/_app/immutable/chunks/CXpU_5b82.js.gz +0 -0
  419. package/build/client/_app/immutable/chunks/CYQgmduq2.js +1 -0
  420. package/build/client/_app/immutable/chunks/CYQgmduq2.js.br +0 -0
  421. package/build/client/_app/immutable/chunks/CYQgmduq2.js.gz +0 -0
  422. package/build/client/_app/immutable/chunks/CZZPw7K8.js +1 -0
  423. package/build/client/_app/immutable/chunks/CZZPw7K8.js.br +0 -0
  424. package/build/client/_app/immutable/chunks/CZZPw7K8.js.gz +0 -0
  425. package/build/client/_app/immutable/chunks/C_90T7rM2.js +1 -0
  426. package/build/client/_app/immutable/chunks/C_90T7rM2.js.br +0 -0
  427. package/build/client/_app/immutable/chunks/C_90T7rM2.js.gz +0 -0
  428. package/build/client/_app/immutable/chunks/C_oJWXGi.js +1 -0
  429. package/build/client/_app/immutable/chunks/C_oJWXGi.js.br +0 -0
  430. package/build/client/_app/immutable/chunks/C_oJWXGi.js.gz +0 -0
  431. package/build/client/_app/immutable/chunks/CbKUCoNf.js +1 -0
  432. package/build/client/_app/immutable/chunks/CbKUCoNf.js.br +0 -0
  433. package/build/client/_app/immutable/chunks/CbKUCoNf.js.gz +0 -0
  434. package/build/client/_app/immutable/chunks/Ccy2l-ML.js +1 -0
  435. package/build/client/_app/immutable/chunks/Ccy2l-ML.js.br +0 -0
  436. package/build/client/_app/immutable/chunks/Ccy2l-ML.js.gz +0 -0
  437. package/build/client/_app/immutable/chunks/Cd_7rxML2.js +1 -0
  438. package/build/client/_app/immutable/chunks/Cd_7rxML2.js.br +0 -0
  439. package/build/client/_app/immutable/chunks/Cd_7rxML2.js.gz +0 -0
  440. package/build/client/_app/immutable/chunks/Chkb3FBx2.js +1 -0
  441. package/build/client/_app/immutable/chunks/Chkb3FBx2.js.br +0 -0
  442. package/build/client/_app/immutable/chunks/Chkb3FBx2.js.gz +0 -0
  443. package/build/client/_app/immutable/chunks/CiGKJZ2V.js +1 -0
  444. package/build/client/_app/immutable/chunks/CiGKJZ2V.js.br +0 -0
  445. package/build/client/_app/immutable/chunks/CiGKJZ2V.js.gz +0 -0
  446. package/build/client/_app/immutable/chunks/CjRrflkm.js +1 -0
  447. package/build/client/_app/immutable/chunks/CjRrflkm.js.br +0 -0
  448. package/build/client/_app/immutable/chunks/CjRrflkm.js.gz +0 -0
  449. package/build/client/_app/immutable/chunks/CjgTURTV.js +1 -0
  450. package/build/client/_app/immutable/chunks/CjgTURTV.js.br +0 -0
  451. package/build/client/_app/immutable/chunks/CjgTURTV.js.gz +0 -0
  452. package/build/client/_app/immutable/chunks/CkJ2cM3I.js +27 -0
  453. package/build/client/_app/immutable/chunks/CkJ2cM3I.js.br +0 -0
  454. package/build/client/_app/immutable/chunks/CkJ2cM3I.js.gz +0 -0
  455. package/build/client/_app/immutable/chunks/CldGa5w12.js +1 -0
  456. package/build/client/_app/immutable/chunks/CldGa5w12.js.br +0 -0
  457. package/build/client/_app/immutable/chunks/CldGa5w12.js.gz +0 -0
  458. package/build/client/_app/immutable/chunks/CnYQpxnV.js +1 -0
  459. package/build/client/_app/immutable/chunks/CnYQpxnV.js.br +0 -0
  460. package/build/client/_app/immutable/chunks/CnYQpxnV.js.gz +0 -0
  461. package/build/client/_app/immutable/chunks/CnmK8gAz.js +1 -0
  462. package/build/client/_app/immutable/chunks/CnmK8gAz.js.br +0 -0
  463. package/build/client/_app/immutable/chunks/CnmK8gAz.js.gz +0 -0
  464. package/build/client/_app/immutable/chunks/Co3rf1yW.js +1 -0
  465. package/build/client/_app/immutable/chunks/Co3rf1yW.js.br +0 -0
  466. package/build/client/_app/immutable/chunks/Co3rf1yW.js.gz +0 -0
  467. package/build/client/_app/immutable/chunks/CoAsUpmj2.js +1 -0
  468. package/build/client/_app/immutable/chunks/CoAsUpmj2.js.br +0 -0
  469. package/build/client/_app/immutable/chunks/CoAsUpmj2.js.gz +0 -0
  470. package/build/client/_app/immutable/chunks/CoVLyFzJ2.js +1 -0
  471. package/build/client/_app/immutable/chunks/CoVLyFzJ2.js.br +0 -0
  472. package/build/client/_app/immutable/chunks/CoVLyFzJ2.js.gz +0 -0
  473. package/build/client/_app/immutable/chunks/CrXgO6Na.js +1 -0
  474. package/build/client/_app/immutable/chunks/CrXgO6Na.js.br +0 -0
  475. package/build/client/_app/immutable/chunks/CrXgO6Na.js.gz +0 -0
  476. package/build/client/_app/immutable/chunks/CsJoK6wB2.js +1 -0
  477. package/build/client/_app/immutable/chunks/CsJoK6wB2.js.br +0 -0
  478. package/build/client/_app/immutable/chunks/CsJoK6wB2.js.gz +0 -0
  479. package/build/client/_app/immutable/chunks/CsfS6pda.js +1 -0
  480. package/build/client/_app/immutable/chunks/CsfS6pda.js.br +0 -0
  481. package/build/client/_app/immutable/chunks/CsfS6pda.js.gz +0 -0
  482. package/build/client/_app/immutable/chunks/Csx9fWS6.js +1 -0
  483. package/build/client/_app/immutable/chunks/Csx9fWS6.js.br +0 -0
  484. package/build/client/_app/immutable/chunks/Csx9fWS6.js.gz +0 -0
  485. package/build/client/_app/immutable/chunks/Ct7MxTZR.js +1 -0
  486. package/build/client/_app/immutable/chunks/Ct7MxTZR.js.br +0 -0
  487. package/build/client/_app/immutable/chunks/Ct7MxTZR.js.gz +0 -0
  488. package/build/client/_app/immutable/chunks/CtbFtELx.js +1 -0
  489. package/build/client/_app/immutable/chunks/CtbFtELx.js.br +0 -0
  490. package/build/client/_app/immutable/chunks/CtbFtELx.js.gz +0 -0
  491. package/build/client/_app/immutable/chunks/CtvaSvXi.js +1 -0
  492. package/build/client/_app/immutable/chunks/CtvaSvXi.js.br +0 -0
  493. package/build/client/_app/immutable/chunks/CtvaSvXi.js.gz +0 -0
  494. package/build/client/_app/immutable/chunks/Cvs-moFQ.js +1 -0
  495. package/build/client/_app/immutable/chunks/Cvs-moFQ.js.br +0 -0
  496. package/build/client/_app/immutable/chunks/Cvs-moFQ.js.gz +0 -0
  497. package/build/client/_app/immutable/chunks/CxMm-WeH2.js +1 -0
  498. package/build/client/_app/immutable/chunks/CxMm-WeH2.js.br +0 -0
  499. package/build/client/_app/immutable/chunks/CxMm-WeH2.js.gz +0 -0
  500. package/build/client/_app/immutable/chunks/CxZIvyVE2.js +1 -0
  501. package/build/client/_app/immutable/chunks/CxZIvyVE2.js.br +0 -0
  502. package/build/client/_app/immutable/chunks/CxZIvyVE2.js.gz +0 -0
  503. package/build/client/_app/immutable/chunks/Czg8UZiq.js +1 -0
  504. package/build/client/_app/immutable/chunks/Czg8UZiq.js.br +0 -0
  505. package/build/client/_app/immutable/chunks/Czg8UZiq.js.gz +0 -0
  506. package/build/client/_app/immutable/chunks/CzhEhuP3.js +1 -0
  507. package/build/client/_app/immutable/chunks/CzhEhuP3.js.br +0 -0
  508. package/build/client/_app/immutable/chunks/CzhEhuP3.js.gz +0 -0
  509. package/build/client/_app/immutable/chunks/Czrn66cW2.js +1 -0
  510. package/build/client/_app/immutable/chunks/Czrn66cW2.js.br +0 -0
  511. package/build/client/_app/immutable/chunks/Czrn66cW2.js.gz +0 -0
  512. package/build/client/_app/immutable/chunks/D-YaUtyB.js +1 -0
  513. package/build/client/_app/immutable/chunks/D-YaUtyB.js.br +0 -0
  514. package/build/client/_app/immutable/chunks/D-YaUtyB.js.gz +0 -0
  515. package/build/client/_app/immutable/chunks/D-rfOUd0.js +1 -0
  516. package/build/client/_app/immutable/chunks/D-rfOUd0.js.br +0 -0
  517. package/build/client/_app/immutable/chunks/D-rfOUd0.js.gz +0 -0
  518. package/build/client/_app/immutable/chunks/D0KyYWAu2.js +1 -0
  519. package/build/client/_app/immutable/chunks/D0KyYWAu2.js.br +0 -0
  520. package/build/client/_app/immutable/chunks/D0KyYWAu2.js.gz +0 -0
  521. package/build/client/_app/immutable/chunks/D0X-WbbZ2.js +1 -0
  522. package/build/client/_app/immutable/chunks/D0X-WbbZ2.js.br +0 -0
  523. package/build/client/_app/immutable/chunks/D0X-WbbZ2.js.gz +0 -0
  524. package/build/client/_app/immutable/chunks/D1yl2Dsj2.js +1 -0
  525. package/build/client/_app/immutable/chunks/D1yl2Dsj2.js.br +0 -0
  526. package/build/client/_app/immutable/chunks/D1yl2Dsj2.js.gz +0 -0
  527. package/build/client/_app/immutable/chunks/D29z4NKW.js +1 -0
  528. package/build/client/_app/immutable/chunks/D29z4NKW.js.br +0 -0
  529. package/build/client/_app/immutable/chunks/D29z4NKW.js.gz +0 -0
  530. package/build/client/_app/immutable/chunks/D2BwOx4U.js +1 -0
  531. package/build/client/_app/immutable/chunks/D2BwOx4U.js.br +0 -0
  532. package/build/client/_app/immutable/chunks/D2BwOx4U.js.gz +0 -0
  533. package/build/client/_app/immutable/chunks/D2Cu550i2.js +1 -0
  534. package/build/client/_app/immutable/chunks/D2Cu550i2.js.br +0 -0
  535. package/build/client/_app/immutable/chunks/D2Cu550i2.js.gz +0 -0
  536. package/build/client/_app/immutable/chunks/D2XcO0sl2.js +1 -0
  537. package/build/client/_app/immutable/chunks/D2XcO0sl2.js.br +0 -0
  538. package/build/client/_app/immutable/chunks/D2XcO0sl2.js.gz +0 -0
  539. package/build/client/_app/immutable/chunks/D2onGLbP2.js +1 -0
  540. package/build/client/_app/immutable/chunks/D2onGLbP2.js.br +0 -0
  541. package/build/client/_app/immutable/chunks/D2onGLbP2.js.gz +0 -0
  542. package/build/client/_app/immutable/chunks/D3-iRebE2.js +1 -0
  543. package/build/client/_app/immutable/chunks/D3-iRebE2.js.br +0 -0
  544. package/build/client/_app/immutable/chunks/D3-iRebE2.js.gz +0 -0
  545. package/build/client/_app/immutable/chunks/D38w6ntU2.js +1 -0
  546. package/build/client/_app/immutable/chunks/D38w6ntU2.js.br +0 -0
  547. package/build/client/_app/immutable/chunks/D38w6ntU2.js.gz +0 -0
  548. package/build/client/_app/immutable/chunks/D3wpe1R42.js +1 -0
  549. package/build/client/_app/immutable/chunks/D3wpe1R42.js.br +0 -0
  550. package/build/client/_app/immutable/chunks/D3wpe1R42.js.gz +0 -0
  551. package/build/client/_app/immutable/chunks/D53I7YRG2.js +1 -0
  552. package/build/client/_app/immutable/chunks/D53I7YRG2.js.br +0 -0
  553. package/build/client/_app/immutable/chunks/D53I7YRG2.js.gz +0 -0
  554. package/build/client/_app/immutable/chunks/D5gZ12Pd2.js +1 -0
  555. package/build/client/_app/immutable/chunks/D5gZ12Pd2.js.br +0 -0
  556. package/build/client/_app/immutable/chunks/D5gZ12Pd2.js.gz +0 -0
  557. package/build/client/_app/immutable/chunks/D7-GrcrV.js +1 -0
  558. package/build/client/_app/immutable/chunks/D7-GrcrV.js.br +0 -0
  559. package/build/client/_app/immutable/chunks/D7-GrcrV.js.gz +0 -0
  560. package/build/client/_app/immutable/chunks/D833yWaO.js +1 -0
  561. package/build/client/_app/immutable/chunks/D833yWaO.js.br +0 -0
  562. package/build/client/_app/immutable/chunks/D833yWaO.js.gz +0 -0
  563. package/build/client/_app/immutable/chunks/D8j5haiB2.js +1 -0
  564. package/build/client/_app/immutable/chunks/D8j5haiB2.js.br +0 -0
  565. package/build/client/_app/immutable/chunks/D8j5haiB2.js.gz +0 -0
  566. package/build/client/_app/immutable/chunks/D9AFifK-2.js +1 -0
  567. package/build/client/_app/immutable/chunks/D9AFifK-2.js.br +0 -0
  568. package/build/client/_app/immutable/chunks/D9AFifK-2.js.gz +0 -0
  569. package/build/client/_app/immutable/chunks/D9ji1xoJ2.js +1 -0
  570. package/build/client/_app/immutable/chunks/D9ji1xoJ2.js.br +0 -0
  571. package/build/client/_app/immutable/chunks/D9ji1xoJ2.js.gz +0 -0
  572. package/build/client/_app/immutable/chunks/DAcf4VBy2.js +1 -0
  573. package/build/client/_app/immutable/chunks/DAcf4VBy2.js.br +0 -0
  574. package/build/client/_app/immutable/chunks/DAcf4VBy2.js.gz +0 -0
  575. package/build/client/_app/immutable/chunks/DBOVaUhT.js +1 -0
  576. package/build/client/_app/immutable/chunks/DBOVaUhT.js.br +0 -0
  577. package/build/client/_app/immutable/chunks/DBOVaUhT.js.gz +0 -0
  578. package/build/client/_app/immutable/chunks/DBnwnBHV2.js +1 -0
  579. package/build/client/_app/immutable/chunks/DBnwnBHV2.js.br +0 -0
  580. package/build/client/_app/immutable/chunks/DBnwnBHV2.js.gz +0 -0
  581. package/build/client/_app/immutable/chunks/DCqonBa0.js +1 -0
  582. package/build/client/_app/immutable/chunks/DCqonBa0.js.br +0 -0
  583. package/build/client/_app/immutable/chunks/DCqonBa0.js.gz +0 -0
  584. package/build/client/_app/immutable/chunks/DDAla_dP.js +1 -0
  585. package/build/client/_app/immutable/chunks/DDAla_dP.js.br +0 -0
  586. package/build/client/_app/immutable/chunks/DDAla_dP.js.gz +0 -0
  587. package/build/client/_app/immutable/chunks/DDU4XF-72.js +1 -0
  588. package/build/client/_app/immutable/chunks/DDU4XF-72.js.br +0 -0
  589. package/build/client/_app/immutable/chunks/DDU4XF-72.js.gz +0 -0
  590. package/build/client/_app/immutable/chunks/DEDqjojZ.js +1 -0
  591. package/build/client/_app/immutable/chunks/DEDqjojZ.js.br +1 -0
  592. package/build/client/_app/immutable/chunks/DEDqjojZ.js.gz +0 -0
  593. package/build/client/_app/immutable/chunks/DFTW_HYD.js +1 -0
  594. package/build/client/_app/immutable/chunks/DFTW_HYD.js.br +0 -0
  595. package/build/client/_app/immutable/chunks/DFTW_HYD.js.gz +0 -0
  596. package/build/client/_app/immutable/chunks/DGfsOCW82.js +1 -0
  597. package/build/client/_app/immutable/chunks/DGfsOCW82.js.br +0 -0
  598. package/build/client/_app/immutable/chunks/DGfsOCW82.js.gz +0 -0
  599. package/build/client/_app/immutable/chunks/DHd7fNGX2.js +1 -0
  600. package/build/client/_app/immutable/chunks/DHd7fNGX2.js.br +0 -0
  601. package/build/client/_app/immutable/chunks/DHd7fNGX2.js.gz +0 -0
  602. package/build/client/_app/immutable/chunks/DIB7hu9p2.js +1 -0
  603. package/build/client/_app/immutable/chunks/DIB7hu9p2.js.br +0 -0
  604. package/build/client/_app/immutable/chunks/DIB7hu9p2.js.gz +0 -0
  605. package/build/client/_app/immutable/chunks/DICjnkic2.js +1 -0
  606. package/build/client/_app/immutable/chunks/DICjnkic2.js.br +0 -0
  607. package/build/client/_app/immutable/chunks/DICjnkic2.js.gz +0 -0
  608. package/build/client/_app/immutable/chunks/DInTdaZ72.js +1 -0
  609. package/build/client/_app/immutable/chunks/DInTdaZ72.js.br +0 -0
  610. package/build/client/_app/immutable/chunks/DInTdaZ72.js.gz +0 -0
  611. package/build/client/_app/immutable/chunks/DJOtmjmo2.js +1 -0
  612. package/build/client/_app/immutable/chunks/DJOtmjmo2.js.br +0 -0
  613. package/build/client/_app/immutable/chunks/DJOtmjmo2.js.gz +0 -0
  614. package/build/client/_app/immutable/chunks/DKEf6hiF.js +1 -0
  615. package/build/client/_app/immutable/chunks/DKEf6hiF.js.br +0 -0
  616. package/build/client/_app/immutable/chunks/DKEf6hiF.js.gz +0 -0
  617. package/build/client/_app/immutable/chunks/DKJqxtO22.js +1 -0
  618. package/build/client/_app/immutable/chunks/DKJqxtO22.js.br +0 -0
  619. package/build/client/_app/immutable/chunks/DKJqxtO22.js.gz +0 -0
  620. package/build/client/_app/immutable/chunks/DKXM2yYf.js +1 -0
  621. package/build/client/_app/immutable/chunks/DKXM2yYf.js.br +0 -0
  622. package/build/client/_app/immutable/chunks/DKXM2yYf.js.gz +0 -0
  623. package/build/client/_app/immutable/chunks/DLJ1T3Yq2.js +1 -0
  624. package/build/client/_app/immutable/chunks/DLJ1T3Yq2.js.br +0 -0
  625. package/build/client/_app/immutable/chunks/DLJ1T3Yq2.js.gz +0 -0
  626. package/build/client/_app/immutable/chunks/DM8BxGyd2.js +1 -0
  627. package/build/client/_app/immutable/chunks/DM8BxGyd2.js.br +0 -0
  628. package/build/client/_app/immutable/chunks/DM8BxGyd2.js.gz +0 -0
  629. package/build/client/_app/immutable/chunks/DMtOOKx4.js +1 -0
  630. package/build/client/_app/immutable/chunks/DMtOOKx4.js.br +0 -0
  631. package/build/client/_app/immutable/chunks/DMtOOKx4.js.gz +0 -0
  632. package/build/client/_app/immutable/chunks/DMxXQ7Cl2.js +1 -0
  633. package/build/client/_app/immutable/chunks/DMxXQ7Cl2.js.br +0 -0
  634. package/build/client/_app/immutable/chunks/DMxXQ7Cl2.js.gz +0 -0
  635. package/build/client/_app/immutable/chunks/DNdRFo99.js +1 -0
  636. package/build/client/_app/immutable/chunks/DNdRFo99.js.br +0 -0
  637. package/build/client/_app/immutable/chunks/DNdRFo99.js.gz +0 -0
  638. package/build/client/_app/immutable/chunks/DQ-95KKy.js +1 -0
  639. package/build/client/_app/immutable/chunks/DQ-95KKy.js.br +0 -0
  640. package/build/client/_app/immutable/chunks/DQ-95KKy.js.gz +0 -0
  641. package/build/client/_app/immutable/chunks/DQ90Q1pf2.js +1 -0
  642. package/build/client/_app/immutable/chunks/DQ90Q1pf2.js.br +0 -0
  643. package/build/client/_app/immutable/chunks/DQ90Q1pf2.js.gz +0 -0
  644. package/build/client/_app/immutable/chunks/DSQT5HV4.js +1 -0
  645. package/build/client/_app/immutable/chunks/DSQT5HV4.js.br +0 -0
  646. package/build/client/_app/immutable/chunks/DSQT5HV4.js.gz +0 -0
  647. package/build/client/_app/immutable/chunks/DSjwUGGv.js +1 -0
  648. package/build/client/_app/immutable/chunks/DSjwUGGv.js.br +0 -0
  649. package/build/client/_app/immutable/chunks/DSjwUGGv.js.gz +0 -0
  650. package/build/client/_app/immutable/chunks/DTLnU7HM.js +1 -0
  651. package/build/client/_app/immutable/chunks/DTLnU7HM.js.br +0 -0
  652. package/build/client/_app/immutable/chunks/DTLnU7HM.js.gz +0 -0
  653. package/build/client/_app/immutable/chunks/DV0wQgGX.js +1 -0
  654. package/build/client/_app/immutable/chunks/DV0wQgGX.js.br +0 -0
  655. package/build/client/_app/immutable/chunks/DV0wQgGX.js.gz +0 -0
  656. package/build/client/_app/immutable/chunks/DV5lTbn8.js +1 -0
  657. package/build/client/_app/immutable/chunks/DV5lTbn8.js.br +0 -0
  658. package/build/client/_app/immutable/chunks/DV5lTbn8.js.gz +0 -0
  659. package/build/client/_app/immutable/chunks/DVNj_1ue.js +1 -0
  660. package/build/client/_app/immutable/chunks/DVNj_1ue.js.br +0 -0
  661. package/build/client/_app/immutable/chunks/DVNj_1ue.js.gz +0 -0
  662. package/build/client/_app/immutable/chunks/DVcKhWgE.js +1 -0
  663. package/build/client/_app/immutable/chunks/DVcKhWgE.js.br +0 -0
  664. package/build/client/_app/immutable/chunks/DVcKhWgE.js.gz +0 -0
  665. package/build/client/_app/immutable/chunks/DVvHkqtW.js +1 -0
  666. package/build/client/_app/immutable/chunks/DVvHkqtW.js.br +0 -0
  667. package/build/client/_app/immutable/chunks/DVvHkqtW.js.gz +0 -0
  668. package/build/client/_app/immutable/chunks/DW6sK2Do2.js +1 -0
  669. package/build/client/_app/immutable/chunks/DW6sK2Do2.js.br +0 -0
  670. package/build/client/_app/immutable/chunks/DW6sK2Do2.js.gz +0 -0
  671. package/build/client/_app/immutable/chunks/DXDz0gKC.js +1 -0
  672. package/build/client/_app/immutable/chunks/DXDz0gKC.js.br +0 -0
  673. package/build/client/_app/immutable/chunks/DXDz0gKC.js.gz +0 -0
  674. package/build/client/_app/immutable/chunks/D_vaRe4J2.js +1 -0
  675. package/build/client/_app/immutable/chunks/D_vaRe4J2.js.br +0 -0
  676. package/build/client/_app/immutable/chunks/D_vaRe4J2.js.gz +0 -0
  677. package/build/client/_app/immutable/chunks/DaKOMCp12.js +1 -0
  678. package/build/client/_app/immutable/chunks/DaKOMCp12.js.br +0 -0
  679. package/build/client/_app/immutable/chunks/DaKOMCp12.js.gz +0 -0
  680. package/build/client/_app/immutable/chunks/Dal-qfaa2.js +1 -0
  681. package/build/client/_app/immutable/chunks/Dal-qfaa2.js.br +0 -0
  682. package/build/client/_app/immutable/chunks/Dal-qfaa2.js.gz +0 -0
  683. package/build/client/_app/immutable/chunks/DatM-W7I.js +1 -0
  684. package/build/client/_app/immutable/chunks/DatM-W7I.js.br +0 -0
  685. package/build/client/_app/immutable/chunks/DatM-W7I.js.gz +0 -0
  686. package/build/client/_app/immutable/chunks/DatbueKV.js +1 -0
  687. package/build/client/_app/immutable/chunks/DatbueKV.js.br +0 -0
  688. package/build/client/_app/immutable/chunks/DatbueKV.js.gz +0 -0
  689. package/build/client/_app/immutable/chunks/DbUJjakO.js +1 -0
  690. package/build/client/_app/immutable/chunks/DbUJjakO.js.br +0 -0
  691. package/build/client/_app/immutable/chunks/DbUJjakO.js.gz +0 -0
  692. package/build/client/_app/immutable/chunks/DbtpcdjC.js +1 -0
  693. package/build/client/_app/immutable/chunks/DbtpcdjC.js.br +0 -0
  694. package/build/client/_app/immutable/chunks/DbtpcdjC.js.gz +0 -0
  695. package/build/client/_app/immutable/chunks/DcoLHRif.js +1 -0
  696. package/build/client/_app/immutable/chunks/DcoLHRif.js.br +0 -0
  697. package/build/client/_app/immutable/chunks/DcoLHRif.js.gz +0 -0
  698. package/build/client/_app/immutable/chunks/Dd12PF55.js +1 -0
  699. package/build/client/_app/immutable/chunks/Dd12PF55.js.br +0 -0
  700. package/build/client/_app/immutable/chunks/Dd12PF55.js.gz +0 -0
  701. package/build/client/_app/immutable/chunks/DedZnip-.js +1 -0
  702. package/build/client/_app/immutable/chunks/DedZnip-.js.br +0 -0
  703. package/build/client/_app/immutable/chunks/DedZnip-.js.gz +0 -0
  704. package/build/client/_app/immutable/chunks/DfiH42DF.js +1 -0
  705. package/build/client/_app/immutable/chunks/DfiH42DF.js.br +0 -0
  706. package/build/client/_app/immutable/chunks/DfiH42DF.js.gz +0 -0
  707. package/build/client/_app/immutable/chunks/DgQHdlj52.js +1 -0
  708. package/build/client/_app/immutable/chunks/DgQHdlj52.js.br +0 -0
  709. package/build/client/_app/immutable/chunks/DgQHdlj52.js.gz +0 -0
  710. package/build/client/_app/immutable/chunks/DhYGJILY.js +1 -0
  711. package/build/client/_app/immutable/chunks/DhYGJILY.js.br +0 -0
  712. package/build/client/_app/immutable/chunks/DhYGJILY.js.gz +0 -0
  713. package/build/client/_app/immutable/chunks/DhrQZuUa2.js +1 -0
  714. package/build/client/_app/immutable/chunks/DhrQZuUa2.js.br +0 -0
  715. package/build/client/_app/immutable/chunks/DhrQZuUa2.js.gz +0 -0
  716. package/build/client/_app/immutable/chunks/DkBTooz6.js +1 -0
  717. package/build/client/_app/immutable/chunks/DkBTooz6.js.br +0 -0
  718. package/build/client/_app/immutable/chunks/DkBTooz6.js.gz +0 -0
  719. package/build/client/_app/immutable/chunks/DkCwsOo9.js +1 -0
  720. package/build/client/_app/immutable/chunks/DkCwsOo9.js.br +0 -0
  721. package/build/client/_app/immutable/chunks/DkCwsOo9.js.gz +0 -0
  722. package/build/client/_app/immutable/chunks/DkvAACyD.js +1 -0
  723. package/build/client/_app/immutable/chunks/DkvAACyD.js.br +0 -0
  724. package/build/client/_app/immutable/chunks/DkvAACyD.js.gz +0 -0
  725. package/build/client/_app/immutable/chunks/DkxYMJ2T.js +1 -0
  726. package/build/client/_app/immutable/chunks/DkxYMJ2T.js.br +0 -0
  727. package/build/client/_app/immutable/chunks/DkxYMJ2T.js.gz +0 -0
  728. package/build/client/_app/immutable/chunks/Dl0GnA2d.js +1 -0
  729. package/build/client/_app/immutable/chunks/Dl0GnA2d.js.br +0 -0
  730. package/build/client/_app/immutable/chunks/Dl0GnA2d.js.gz +0 -0
  731. package/build/client/_app/immutable/chunks/DlzBGaVj.js +1 -0
  732. package/build/client/_app/immutable/chunks/DlzBGaVj.js.br +0 -0
  733. package/build/client/_app/immutable/chunks/DlzBGaVj.js.gz +0 -0
  734. package/build/client/_app/immutable/chunks/DmyFLrZz2.js +1 -0
  735. package/build/client/_app/immutable/chunks/DmyFLrZz2.js.br +0 -0
  736. package/build/client/_app/immutable/chunks/DmyFLrZz2.js.gz +0 -0
  737. package/build/client/_app/immutable/chunks/DnEYhwQ2.js +3 -0
  738. package/build/client/_app/immutable/chunks/DnEYhwQ2.js.br +0 -0
  739. package/build/client/_app/immutable/chunks/DnEYhwQ2.js.gz +0 -0
  740. package/build/client/_app/immutable/chunks/Dng3oL2T2.js +1 -0
  741. package/build/client/_app/immutable/chunks/Dng3oL2T2.js.br +0 -0
  742. package/build/client/_app/immutable/chunks/Dng3oL2T2.js.gz +0 -0
  743. package/build/client/_app/immutable/chunks/Dnlai5vy.js +1 -0
  744. package/build/client/_app/immutable/chunks/Dnlai5vy.js.br +0 -0
  745. package/build/client/_app/immutable/chunks/Dnlai5vy.js.gz +0 -0
  746. package/build/client/_app/immutable/chunks/DoGDOkHo.js +1 -0
  747. package/build/client/_app/immutable/chunks/DoGDOkHo.js.br +0 -0
  748. package/build/client/_app/immutable/chunks/DoGDOkHo.js.gz +0 -0
  749. package/build/client/_app/immutable/chunks/Drg1dlxz2.js +1 -0
  750. package/build/client/_app/immutable/chunks/Drg1dlxz2.js.br +0 -0
  751. package/build/client/_app/immutable/chunks/Drg1dlxz2.js.gz +0 -0
  752. package/build/client/_app/immutable/chunks/DsnduG-y2.js +1 -0
  753. package/build/client/_app/immutable/chunks/DsnduG-y2.js.br +0 -0
  754. package/build/client/_app/immutable/chunks/DsnduG-y2.js.gz +0 -0
  755. package/build/client/_app/immutable/chunks/DtkNLt3E2.js +1 -0
  756. package/build/client/_app/immutable/chunks/DtkNLt3E2.js.br +0 -0
  757. package/build/client/_app/immutable/chunks/DtkNLt3E2.js.gz +0 -0
  758. package/build/client/_app/immutable/chunks/DvCOCUpQ2.js +1 -0
  759. package/build/client/_app/immutable/chunks/DvCOCUpQ2.js.br +0 -0
  760. package/build/client/_app/immutable/chunks/DvCOCUpQ2.js.gz +0 -0
  761. package/build/client/_app/immutable/chunks/DwPrh08G.js +1 -0
  762. package/build/client/_app/immutable/chunks/DwPrh08G.js.br +0 -0
  763. package/build/client/_app/immutable/chunks/DwPrh08G.js.gz +0 -0
  764. package/build/client/_app/immutable/chunks/DyDHG2I9.js +1 -0
  765. package/build/client/_app/immutable/chunks/DyDHG2I9.js.br +0 -0
  766. package/build/client/_app/immutable/chunks/DyDHG2I9.js.gz +0 -0
  767. package/build/client/_app/immutable/chunks/DyH6P1BP2.js +1 -0
  768. package/build/client/_app/immutable/chunks/DyH6P1BP2.js.br +0 -0
  769. package/build/client/_app/immutable/chunks/DyH6P1BP2.js.gz +0 -0
  770. package/build/client/_app/immutable/chunks/DyXW_Q3y.js +1 -0
  771. package/build/client/_app/immutable/chunks/DyXW_Q3y.js.br +0 -0
  772. package/build/client/_app/immutable/chunks/DyXW_Q3y.js.gz +0 -0
  773. package/build/client/_app/immutable/chunks/Dz7ahqBO.js +1 -0
  774. package/build/client/_app/immutable/chunks/Dz7ahqBO.js.br +0 -0
  775. package/build/client/_app/immutable/chunks/Dz7ahqBO.js.gz +0 -0
  776. package/build/client/_app/immutable/chunks/DzJj7qGm.js +1 -0
  777. package/build/client/_app/immutable/chunks/DzJj7qGm.js.br +0 -0
  778. package/build/client/_app/immutable/chunks/DzJj7qGm.js.gz +0 -0
  779. package/build/client/_app/immutable/chunks/F7HC4h1A.js +1 -0
  780. package/build/client/_app/immutable/chunks/F7HC4h1A.js.br +0 -0
  781. package/build/client/_app/immutable/chunks/F7HC4h1A.js.gz +0 -0
  782. package/build/client/_app/immutable/chunks/GliPh1xc.js +1 -0
  783. package/build/client/_app/immutable/chunks/GliPh1xc.js.br +0 -0
  784. package/build/client/_app/immutable/chunks/GliPh1xc.js.gz +0 -0
  785. package/build/client/_app/immutable/chunks/H76D7ynW2.js +1 -0
  786. package/build/client/_app/immutable/chunks/H76D7ynW2.js.br +0 -0
  787. package/build/client/_app/immutable/chunks/H76D7ynW2.js.gz +0 -0
  788. package/build/client/_app/immutable/chunks/I8IsEhKC.js +1 -0
  789. package/build/client/_app/immutable/chunks/I8IsEhKC.js.br +0 -0
  790. package/build/client/_app/immutable/chunks/I8IsEhKC.js.gz +0 -0
  791. package/build/client/_app/immutable/chunks/INjl9ZfU2.js +1 -0
  792. package/build/client/_app/immutable/chunks/INjl9ZfU2.js.br +0 -0
  793. package/build/client/_app/immutable/chunks/INjl9ZfU2.js.gz +0 -0
  794. package/build/client/_app/immutable/chunks/JSdj9N3Z.js +1 -0
  795. package/build/client/_app/immutable/chunks/JSdj9N3Z.js.br +0 -0
  796. package/build/client/_app/immutable/chunks/JSdj9N3Z.js.gz +0 -0
  797. package/build/client/_app/immutable/chunks/JqS4kNgu2.js +1 -0
  798. package/build/client/_app/immutable/chunks/JqS4kNgu2.js.br +0 -0
  799. package/build/client/_app/immutable/chunks/JqS4kNgu2.js.gz +0 -0
  800. package/build/client/_app/immutable/chunks/KLgVS5AV.js +1 -0
  801. package/build/client/_app/immutable/chunks/KLgVS5AV.js.br +0 -0
  802. package/build/client/_app/immutable/chunks/KLgVS5AV.js.gz +0 -0
  803. package/build/client/_app/immutable/chunks/NFJ8B1pS.js +1 -0
  804. package/build/client/_app/immutable/chunks/NFJ8B1pS.js.br +0 -0
  805. package/build/client/_app/immutable/chunks/NFJ8B1pS.js.gz +0 -0
  806. package/build/client/_app/immutable/chunks/OpJK1opy.js +1 -0
  807. package/build/client/_app/immutable/chunks/OpJK1opy.js.br +0 -0
  808. package/build/client/_app/immutable/chunks/OpJK1opy.js.gz +0 -0
  809. package/build/client/_app/immutable/chunks/PhE8eTFs.js +1 -0
  810. package/build/client/_app/immutable/chunks/PhE8eTFs.js.br +0 -0
  811. package/build/client/_app/immutable/chunks/PhE8eTFs.js.gz +0 -0
  812. package/build/client/_app/immutable/chunks/PoaVr8xn.js +1 -0
  813. package/build/client/_app/immutable/chunks/PoaVr8xn.js.br +0 -0
  814. package/build/client/_app/immutable/chunks/PoaVr8xn.js.gz +0 -0
  815. package/build/client/_app/immutable/chunks/QHql1XIE2.js +1 -0
  816. package/build/client/_app/immutable/chunks/QHql1XIE2.js.br +0 -0
  817. package/build/client/_app/immutable/chunks/QHql1XIE2.js.gz +0 -0
  818. package/build/client/_app/immutable/chunks/QdoVbMC-.js +1 -0
  819. package/build/client/_app/immutable/chunks/QdoVbMC-.js.br +0 -0
  820. package/build/client/_app/immutable/chunks/QdoVbMC-.js.gz +0 -0
  821. package/build/client/_app/immutable/chunks/RmIZn53u.js +1 -0
  822. package/build/client/_app/immutable/chunks/RmIZn53u.js.br +0 -0
  823. package/build/client/_app/immutable/chunks/RmIZn53u.js.gz +0 -0
  824. package/build/client/_app/immutable/chunks/S-6bTlil2.js +1 -0
  825. package/build/client/_app/immutable/chunks/S-6bTlil2.js.br +0 -0
  826. package/build/client/_app/immutable/chunks/S-6bTlil2.js.gz +0 -0
  827. package/build/client/_app/immutable/chunks/SbxTxZwl.js +1 -0
  828. package/build/client/_app/immutable/chunks/SbxTxZwl.js.br +0 -0
  829. package/build/client/_app/immutable/chunks/SbxTxZwl.js.gz +0 -0
  830. package/build/client/_app/immutable/chunks/UCC2m7qy.js +1 -0
  831. package/build/client/_app/immutable/chunks/UCC2m7qy.js.br +0 -0
  832. package/build/client/_app/immutable/chunks/UCC2m7qy.js.gz +0 -0
  833. package/build/client/_app/immutable/chunks/UdGwOCzo2.js +1 -0
  834. package/build/client/_app/immutable/chunks/UdGwOCzo2.js.br +0 -0
  835. package/build/client/_app/immutable/chunks/UdGwOCzo2.js.gz +0 -0
  836. package/build/client/_app/immutable/chunks/UwuAWCre2.js +1 -0
  837. package/build/client/_app/immutable/chunks/UwuAWCre2.js.br +0 -0
  838. package/build/client/_app/immutable/chunks/UwuAWCre2.js.gz +0 -0
  839. package/build/client/_app/immutable/chunks/XfIqC5sC2.js +1 -0
  840. package/build/client/_app/immutable/chunks/XfIqC5sC2.js.br +0 -0
  841. package/build/client/_app/immutable/chunks/XfIqC5sC2.js.gz +0 -0
  842. package/build/client/_app/immutable/chunks/YUHGzPMI2.js +1 -0
  843. package/build/client/_app/immutable/chunks/YUHGzPMI2.js.br +0 -0
  844. package/build/client/_app/immutable/chunks/YUHGzPMI2.js.gz +0 -0
  845. package/build/client/_app/immutable/chunks/aDAFD8Yf2.js +1 -0
  846. package/build/client/_app/immutable/chunks/aDAFD8Yf2.js.br +0 -0
  847. package/build/client/_app/immutable/chunks/aDAFD8Yf2.js.gz +0 -0
  848. package/build/client/_app/immutable/chunks/al6yEoGk2.js +1 -0
  849. package/build/client/_app/immutable/chunks/al6yEoGk2.js.br +0 -0
  850. package/build/client/_app/immutable/chunks/al6yEoGk2.js.gz +0 -0
  851. package/build/client/_app/immutable/chunks/dozrSB_5.js +1 -0
  852. package/build/client/_app/immutable/chunks/dozrSB_5.js.br +0 -0
  853. package/build/client/_app/immutable/chunks/dozrSB_5.js.gz +0 -0
  854. package/build/client/_app/immutable/chunks/eDJluXL12.js +1 -0
  855. package/build/client/_app/immutable/chunks/eDJluXL12.js.br +0 -0
  856. package/build/client/_app/immutable/chunks/eDJluXL12.js.gz +0 -0
  857. package/build/client/_app/immutable/chunks/f3rKm6bT.js +1 -0
  858. package/build/client/_app/immutable/chunks/f3rKm6bT.js.br +0 -0
  859. package/build/client/_app/immutable/chunks/f3rKm6bT.js.gz +0 -0
  860. package/build/client/_app/immutable/chunks/fXJbtheo.js +1 -0
  861. package/build/client/_app/immutable/chunks/fXJbtheo.js.br +0 -0
  862. package/build/client/_app/immutable/chunks/fXJbtheo.js.gz +0 -0
  863. package/build/client/_app/immutable/chunks/feA6onbQ.js +1 -0
  864. package/build/client/_app/immutable/chunks/feA6onbQ.js.br +0 -0
  865. package/build/client/_app/immutable/chunks/feA6onbQ.js.gz +0 -0
  866. package/build/client/_app/immutable/chunks/hIGena2t.js +1 -0
  867. package/build/client/_app/immutable/chunks/hIGena2t.js.br +0 -0
  868. package/build/client/_app/immutable/chunks/hIGena2t.js.gz +0 -0
  869. package/build/client/_app/immutable/chunks/jv5QnFW12.js +1 -0
  870. package/build/client/_app/immutable/chunks/jv5QnFW12.js.br +0 -0
  871. package/build/client/_app/immutable/chunks/jv5QnFW12.js.gz +0 -0
  872. package/build/client/_app/immutable/chunks/k0bE959_.js +1 -0
  873. package/build/client/_app/immutable/chunks/k0bE959_.js.br +0 -0
  874. package/build/client/_app/immutable/chunks/k0bE959_.js.gz +0 -0
  875. package/build/client/_app/immutable/chunks/kzrV2rN_.js +1 -0
  876. package/build/client/_app/immutable/chunks/kzrV2rN_.js.br +0 -0
  877. package/build/client/_app/immutable/chunks/kzrV2rN_.js.gz +0 -0
  878. package/build/client/_app/immutable/chunks/lvk7mIUq.js +1 -0
  879. package/build/client/_app/immutable/chunks/lvk7mIUq.js.br +0 -0
  880. package/build/client/_app/immutable/chunks/lvk7mIUq.js.gz +0 -0
  881. package/build/client/_app/immutable/chunks/mqPlFPxR.js +1 -0
  882. package/build/client/_app/immutable/chunks/mqPlFPxR.js.br +0 -0
  883. package/build/client/_app/immutable/chunks/mqPlFPxR.js.gz +0 -0
  884. package/build/client/_app/immutable/chunks/nRcjfPkk.js +1 -0
  885. package/build/client/_app/immutable/chunks/nRcjfPkk.js.br +0 -0
  886. package/build/client/_app/immutable/chunks/nRcjfPkk.js.gz +0 -0
  887. package/build/client/_app/immutable/chunks/oLOgC3DC2.js +1 -0
  888. package/build/client/_app/immutable/chunks/oLOgC3DC2.js.br +0 -0
  889. package/build/client/_app/immutable/chunks/oLOgC3DC2.js.gz +0 -0
  890. package/build/client/_app/immutable/chunks/oN8iJYEr.js +1 -0
  891. package/build/client/_app/immutable/chunks/oN8iJYEr.js.br +0 -0
  892. package/build/client/_app/immutable/chunks/oN8iJYEr.js.gz +0 -0
  893. package/build/client/_app/immutable/chunks/o_g0Uwdt.js +1 -0
  894. package/build/client/_app/immutable/chunks/o_g0Uwdt.js.br +0 -0
  895. package/build/client/_app/immutable/chunks/o_g0Uwdt.js.gz +0 -0
  896. package/build/client/_app/immutable/chunks/qFc0ukXQ.js +1 -0
  897. package/build/client/_app/immutable/chunks/qFc0ukXQ.js.br +0 -0
  898. package/build/client/_app/immutable/chunks/qFc0ukXQ.js.gz +0 -0
  899. package/build/client/_app/immutable/chunks/s4AVyfbM2.js +1 -0
  900. package/build/client/_app/immutable/chunks/s4AVyfbM2.js.br +0 -0
  901. package/build/client/_app/immutable/chunks/s4AVyfbM2.js.gz +0 -0
  902. package/build/client/_app/immutable/chunks/t5xATwbY2.js +1 -0
  903. package/build/client/_app/immutable/chunks/t5xATwbY2.js.br +0 -0
  904. package/build/client/_app/immutable/chunks/t5xATwbY2.js.gz +0 -0
  905. package/build/client/_app/immutable/chunks/tf_1UH0h2.js +1 -0
  906. package/build/client/_app/immutable/chunks/tf_1UH0h2.js.br +0 -0
  907. package/build/client/_app/immutable/chunks/tf_1UH0h2.js.gz +0 -0
  908. package/build/client/_app/immutable/chunks/ttK1FD1v2.js +1 -0
  909. package/build/client/_app/immutable/chunks/ttK1FD1v2.js.br +0 -0
  910. package/build/client/_app/immutable/chunks/ttK1FD1v2.js.gz +0 -0
  911. package/build/client/_app/immutable/chunks/uvdzpL1Z.js +1 -0
  912. package/build/client/_app/immutable/chunks/uvdzpL1Z.js.br +0 -0
  913. package/build/client/_app/immutable/chunks/uvdzpL1Z.js.gz +0 -0
  914. package/build/client/_app/immutable/chunks/wogDv8__.js +1 -0
  915. package/build/client/_app/immutable/chunks/wogDv8__.js.br +0 -0
  916. package/build/client/_app/immutable/chunks/wogDv8__.js.gz +0 -0
  917. package/build/client/_app/immutable/chunks/xBL9XAyy.js +1 -0
  918. package/build/client/_app/immutable/chunks/xBL9XAyy.js.br +0 -0
  919. package/build/client/_app/immutable/chunks/xBL9XAyy.js.gz +0 -0
  920. package/build/client/_app/immutable/chunks/yMsOTyJg.js +1 -0
  921. package/build/client/_app/immutable/chunks/yMsOTyJg.js.br +0 -0
  922. package/build/client/_app/immutable/chunks/yMsOTyJg.js.gz +0 -0
  923. package/build/client/_app/immutable/chunks/zGtE263X2.js +1 -0
  924. package/build/client/_app/immutable/chunks/zGtE263X2.js.br +0 -0
  925. package/build/client/_app/immutable/chunks/zGtE263X2.js.gz +0 -0
  926. package/build/client/_app/immutable/entry/app.WwF_qlzI.js +2 -0
  927. package/build/client/_app/immutable/entry/app.WwF_qlzI.js.br +0 -0
  928. package/build/client/_app/immutable/entry/app.WwF_qlzI.js.gz +0 -0
  929. package/build/client/_app/immutable/entry/start.Bau0AY6R.js +1 -0
  930. package/build/client/_app/immutable/entry/start.Bau0AY6R.js.br +0 -0
  931. package/build/client/_app/immutable/entry/start.Bau0AY6R.js.gz +0 -0
  932. package/build/client/_app/immutable/nodes/0.C3fcnJCz.js +1 -0
  933. package/build/client/_app/immutable/nodes/0.C3fcnJCz.js.br +0 -0
  934. package/build/client/_app/immutable/nodes/0.C3fcnJCz.js.gz +0 -0
  935. package/build/client/_app/immutable/nodes/1.BE63DvXP.js +1 -0
  936. package/build/client/_app/immutable/nodes/1.BE63DvXP.js.br +0 -0
  937. package/build/client/_app/immutable/nodes/1.BE63DvXP.js.gz +0 -0
  938. package/build/client/_app/immutable/nodes/2.BurITKqh.js +1 -0
  939. package/build/client/_app/immutable/nodes/2.BurITKqh.js.br +0 -0
  940. package/build/client/_app/immutable/nodes/2.BurITKqh.js.gz +0 -0
  941. package/build/client/_app/immutable/nodes/3.DF51yu_8.js +1 -0
  942. package/build/client/_app/immutable/nodes/3.DF51yu_8.js.br +0 -0
  943. package/build/client/_app/immutable/nodes/3.DF51yu_8.js.gz +0 -0
  944. package/build/client/_app/version.json +1 -0
  945. package/build/client/_app/version.json.br +0 -0
  946. package/build/client/_app/version.json.gz +0 -0
  947. package/build/client/favicon.svg +61 -0
  948. package/build/client/favicon.svg.br +0 -0
  949. package/build/client/favicon.svg.gz +0 -0
  950. package/build/env.js +94 -0
  951. package/build/handler.js +1494 -0
  952. package/build/index.js +345 -0
  953. package/build/server/chunks/0-jiIj-vg-.js +27 -0
  954. package/build/server/chunks/0-jiIj-vg-.js.map +1 -0
  955. package/build/server/chunks/1-BVul-S69.js +9 -0
  956. package/build/server/chunks/1-BVul-S69.js.map +1 -0
  957. package/build/server/chunks/2-CvuaF36G.js +33 -0
  958. package/build/server/chunks/2-CvuaF36G.js.map +1 -0
  959. package/build/server/chunks/3-CEwb0fIs.js +39 -0
  960. package/build/server/chunks/3-CEwb0fIs.js.map +1 -0
  961. package/build/server/chunks/_layout.svelte-BI1Nzb8K.js +26 -0
  962. package/build/server/chunks/_layout.svelte-BI1Nzb8K.js.map +1 -0
  963. package/build/server/chunks/_page.svelte-BhpETQ0b.js +19 -0
  964. package/build/server/chunks/_page.svelte-BhpETQ0b.js.map +1 -0
  965. package/build/server/chunks/_page.svelte-Bz3vHQeM.js +19 -0
  966. package/build/server/chunks/_page.svelte-Bz3vHQeM.js.map +1 -0
  967. package/build/server/chunks/client-C3GPINzI.js +22 -0
  968. package/build/server/chunks/client-C3GPINzI.js.map +1 -0
  969. package/build/server/chunks/dist-BwW2N5PL.js +215 -0
  970. package/build/server/chunks/dist-BwW2N5PL.js.map +1 -0
  971. package/build/server/chunks/error.svelte-CwmIVp9-.js +16 -0
  972. package/build/server/chunks/error.svelte-CwmIVp9-.js.map +1 -0
  973. package/build/server/chunks/exports-CzBnk4F7.js +5954 -0
  974. package/build/server/chunks/exports-CzBnk4F7.js.map +1 -0
  975. package/build/server/chunks/hooks.server-Cyi_B_F7.js +11 -0
  976. package/build/server/chunks/hooks.server-Cyi_B_F7.js.map +1 -0
  977. package/build/server/chunks/preview-api-Bx1_1fsN.js +51 -0
  978. package/build/server/chunks/preview-api-Bx1_1fsN.js.map +1 -0
  979. package/build/server/chunks/preview-workbench-CBdci7lJ.js +8655 -0
  980. package/build/server/chunks/preview-workbench-CBdci7lJ.js.map +1 -0
  981. package/build/server/chunks/shared-server-BeE9B1Au.js +22 -0
  982. package/build/server/chunks/shared-server-BeE9B1Au.js.map +1 -0
  983. package/build/server/chunks/state-DqRUcAFU.js +61 -0
  984. package/build/server/chunks/state-DqRUcAFU.js.map +1 -0
  985. package/build/server/index.js +4218 -0
  986. package/build/server/index.js.map +1 -0
  987. package/build/server/manifest.js +54 -0
  988. package/build/server/manifest.js.map +1 -0
  989. package/build/shims.js +32 -0
  990. package/package.json +50 -0
@@ -0,0 +1,4218 @@
1
+ import { c as coalesce_to_error, g as get_status, a as get_message, t as text_decoder, p as parse, _ as __commonJSMin, o as options, b as get_hooks, h as has_resolution_suffix, d as has_data_suffix, e as base, s as strip_resolution_suffix, f as strip_data_suffix, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, i as decode_pathname, j as add_data_suffix, k as add_resolution_suffix, l as find_route, n as normalize_path, m as disable_search, v as validate_layout_server_exports, q as validate_layout_exports, r as validate_page_server_exports, u as validate_page_exports, w as noop_span, x as app_dir, y as create_remote_key, z as uneval, A as assets, B as hash, C as text_encoder, D as compact, E as normalize_error, F as resolve, G as parse_remote_arg, H as stringify, J as make_trackable, K as stringify$1, L as read_implementation, M as get_relative_path, N as base64_encode, O as override, P as reset, Q as set_read_implementation, R as writable, S as readable } from './chunks/exports-CzBnk4F7.js';
2
+ import { json, text, error } from '@sveltejs/kit';
3
+ import { HttpError, SvelteKitError, Redirect, ActionFailure } from '@sveltejs/kit/internal';
4
+ import { with_request_store, merge_tracing } from '@sveltejs/kit/internal/server';
5
+ import { s as set_private_env, a as set_public_env, p as public_env } from './chunks/shared-server-BeE9B1Au.js';
6
+ import 'clsx';
7
+
8
+ var ENDPOINT_METHODS = [
9
+ "GET",
10
+ "POST",
11
+ "PUT",
12
+ "PATCH",
13
+ "DELETE",
14
+ "OPTIONS",
15
+ "HEAD"
16
+ ];
17
+ var MUTATIVE_METHODS = [
18
+ "POST",
19
+ "PUT",
20
+ "PATCH",
21
+ "DELETE"
22
+ ];
23
+ var PAGE_METHODS = [
24
+ "GET",
25
+ "POST",
26
+ "HEAD"
27
+ ];
28
+ //#endregion
29
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/form-utils.js
30
+ /** @import { RemoteForm } from '@sveltejs/kit' */
31
+ /** @import { BinaryFormMeta, InternalRemoteFormIssue } from 'types' */
32
+ /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
33
+ /**
34
+ * Sets a value in a nested object using a path string, mutating the original object
35
+ * @param {Record<string, any>} object
36
+ * @param {string} path_string
37
+ * @param {any} value
38
+ */
39
+ function set_nested_value(object, path_string, value) {
40
+ if (path_string.startsWith("n:")) {
41
+ path_string = path_string.slice(2);
42
+ value = value === "" ? void 0 : parseFloat(value);
43
+ } else if (path_string.startsWith("b:")) {
44
+ path_string = path_string.slice(2);
45
+ value = value === "on";
46
+ }
47
+ deep_set(object, split_path(path_string), value);
48
+ }
49
+ /**
50
+ * Convert `FormData` into a POJO
51
+ * @param {FormData} data
52
+ */
53
+ function convert_formdata(data) {
54
+ /** @type {Record<string, any>} */
55
+ const result = {};
56
+ for (let key of data.keys()) {
57
+ const is_array = key.endsWith("[]");
58
+ /** @type {any[]} */
59
+ let values = data.getAll(key);
60
+ if (is_array) key = key.slice(0, -2);
61
+ if (values.length > 1 && !is_array) throw new Error(`Form cannot contain duplicated keys — "${key}" has ${values.length} values`);
62
+ values = values.filter((entry) => typeof entry === "string" || entry.name !== "" || entry.size > 0);
63
+ if (key.startsWith("n:")) {
64
+ key = key.slice(2);
65
+ values = values.map((v) => v === "" ? void 0 : parseFloat(v));
66
+ } else if (key.startsWith("b:")) {
67
+ key = key.slice(2);
68
+ values = values.map((v) => v === "on");
69
+ }
70
+ set_nested_value(result, key, is_array ? values : values[0]);
71
+ }
72
+ return result;
73
+ }
74
+ var BINARY_FORM_CONTENT_TYPE = "application/x-sveltekit-formdata";
75
+ var BINARY_FORM_VERSION = 0;
76
+ var HEADER_BYTES = 7;
77
+ /**
78
+ * @param {Request} request
79
+ * @returns {Promise<{ data: Record<string, any>; meta: BinaryFormMeta; form_data: FormData | null }>}
80
+ */
81
+ async function deserialize_binary_form(request) {
82
+ if (request.headers.get("content-type") !== "application/x-sveltekit-formdata") {
83
+ const form_data = await request.formData();
84
+ return {
85
+ data: convert_formdata(form_data),
86
+ meta: {},
87
+ form_data
88
+ };
89
+ }
90
+ if (!request.body) throw deserialize_error("no body");
91
+ const content_length = parseInt(request.headers.get("content-length") ?? "");
92
+ if (Number.isNaN(content_length)) throw deserialize_error("invalid Content-Length header");
93
+ const reader = request.body.getReader();
94
+ /** @type {Array<Promise<Uint8Array<ArrayBuffer> | undefined>>} */
95
+ const chunks = [];
96
+ /**
97
+ * @param {number} index
98
+ * @returns {Promise<Uint8Array<ArrayBuffer> | undefined>}
99
+ */
100
+ function get_chunk(index) {
101
+ if (index in chunks) return chunks[index];
102
+ let i = chunks.length;
103
+ while (i <= index) {
104
+ chunks[i] = reader.read().then((chunk) => chunk.value);
105
+ i++;
106
+ }
107
+ return chunks[index];
108
+ }
109
+ /**
110
+ * @param {number} offset
111
+ * @param {number} length
112
+ * @returns {Promise<Uint8Array | null>}
113
+ */
114
+ async function get_buffer(offset, length) {
115
+ /** @type {Uint8Array} */
116
+ let start_chunk;
117
+ let chunk_start = 0;
118
+ /** @type {number} */
119
+ let chunk_index;
120
+ for (chunk_index = 0;; chunk_index++) {
121
+ const chunk = await get_chunk(chunk_index);
122
+ if (!chunk) return null;
123
+ const chunk_end = chunk_start + chunk.byteLength;
124
+ if (offset >= chunk_start && offset < chunk_end) {
125
+ start_chunk = chunk;
126
+ break;
127
+ }
128
+ chunk_start = chunk_end;
129
+ }
130
+ if (offset + length <= chunk_start + start_chunk.byteLength) return start_chunk.subarray(offset - chunk_start, offset + length - chunk_start);
131
+ const chunks = [start_chunk.subarray(offset - chunk_start)];
132
+ let cursor = start_chunk.byteLength - offset + chunk_start;
133
+ while (cursor < length) {
134
+ chunk_index++;
135
+ let chunk = await get_chunk(chunk_index);
136
+ if (!chunk) return null;
137
+ if (chunk.byteLength > length - cursor) chunk = chunk.subarray(0, length - cursor);
138
+ chunks.push(chunk);
139
+ cursor += chunk.byteLength;
140
+ }
141
+ const buffer = new Uint8Array(length);
142
+ cursor = 0;
143
+ for (const chunk of chunks) {
144
+ buffer.set(chunk, cursor);
145
+ cursor += chunk.byteLength;
146
+ }
147
+ return buffer;
148
+ }
149
+ const header = await get_buffer(0, HEADER_BYTES);
150
+ if (!header) throw deserialize_error("too short");
151
+ if (header[0] !== BINARY_FORM_VERSION) throw deserialize_error(`got version ${header[0]}, expected version ${BINARY_FORM_VERSION}`);
152
+ const header_view = new DataView(header.buffer, header.byteOffset, header.byteLength);
153
+ const data_length = header_view.getUint32(1, true);
154
+ if (HEADER_BYTES + data_length > content_length) throw deserialize_error("data overflow");
155
+ const file_offsets_length = header_view.getUint16(5, true);
156
+ if (HEADER_BYTES + data_length + file_offsets_length > content_length) throw deserialize_error("file offset table overflow");
157
+ const data_buffer = await get_buffer(HEADER_BYTES, data_length);
158
+ if (!data_buffer) throw deserialize_error("data too short");
159
+ /** @type {Array<number | undefined>} */
160
+ let file_offsets;
161
+ /** @type {number} */
162
+ let files_start_offset;
163
+ if (file_offsets_length > 0) {
164
+ const file_offsets_buffer = await get_buffer(HEADER_BYTES + data_length, file_offsets_length);
165
+ if (!file_offsets_buffer) throw deserialize_error("file offset table too short");
166
+ const parsed_offsets = JSON.parse(text_decoder.decode(file_offsets_buffer));
167
+ if (!Array.isArray(parsed_offsets) || parsed_offsets.some((n) => typeof n !== "number" || !Number.isInteger(n) || n < 0)) throw deserialize_error("invalid file offset table");
168
+ file_offsets = parsed_offsets;
169
+ files_start_offset = HEADER_BYTES + data_length + file_offsets_length;
170
+ }
171
+ /** @type {Array<{ offset: number, size: number }>} */
172
+ const file_spans = [];
173
+ const [data, meta] = parse(text_decoder.decode(data_buffer), { File: ([name, type, size, last_modified, index]) => {
174
+ if (typeof name !== "string" || typeof type !== "string" || typeof size !== "number" || typeof last_modified !== "number" || typeof index !== "number") throw deserialize_error("invalid file metadata");
175
+ let offset = file_offsets[index];
176
+ if (offset === void 0) throw deserialize_error("duplicate file offset table index");
177
+ file_offsets[index] = void 0;
178
+ offset += files_start_offset;
179
+ if (offset + size > content_length) throw deserialize_error("file data overflow");
180
+ file_spans.push({
181
+ offset,
182
+ size
183
+ });
184
+ return new Proxy(new LazyFile(name, type, size, last_modified, get_chunk, offset), { getPrototypeOf() {
185
+ return File.prototype;
186
+ } });
187
+ } });
188
+ file_spans.sort((a, b) => a.offset - b.offset || a.size - b.size);
189
+ for (let i = 1; i < file_spans.length; i++) {
190
+ const previous = file_spans[i - 1];
191
+ const current = file_spans[i];
192
+ const previous_end = previous.offset + previous.size;
193
+ if (previous_end < current.offset) throw deserialize_error("gaps in file data");
194
+ if (previous_end > current.offset) throw deserialize_error("overlapping file data");
195
+ }
196
+ (async () => {
197
+ let has_more = true;
198
+ while (has_more) has_more = !!await get_chunk(chunks.length);
199
+ })();
200
+ return {
201
+ data,
202
+ meta,
203
+ form_data: null
204
+ };
205
+ }
206
+ /**
207
+ * @param {string} message
208
+ */
209
+ function deserialize_error(message) {
210
+ return new SvelteKitError(400, "Bad Request", `Could not deserialize binary form: ${message}`);
211
+ }
212
+ /** @implements {File} */
213
+ var LazyFile = class LazyFile {
214
+ /** @type {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} */
215
+ #get_chunk;
216
+ /** @type {number} */
217
+ #offset;
218
+ /**
219
+ * @param {string} name
220
+ * @param {string} type
221
+ * @param {number} size
222
+ * @param {number} last_modified
223
+ * @param {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} get_chunk
224
+ * @param {number} offset
225
+ */
226
+ constructor(name, type, size, last_modified, get_chunk, offset) {
227
+ this.name = name;
228
+ this.type = type;
229
+ this.size = size;
230
+ this.lastModified = last_modified;
231
+ this.webkitRelativePath = "";
232
+ this.#get_chunk = get_chunk;
233
+ this.#offset = offset;
234
+ this.arrayBuffer = this.arrayBuffer.bind(this);
235
+ this.bytes = this.bytes.bind(this);
236
+ this.slice = this.slice.bind(this);
237
+ this.stream = this.stream.bind(this);
238
+ this.text = this.text.bind(this);
239
+ }
240
+ /** @type {ArrayBuffer | undefined} */
241
+ #buffer;
242
+ async arrayBuffer() {
243
+ this.#buffer ??= await new Response(this.stream()).arrayBuffer();
244
+ return this.#buffer;
245
+ }
246
+ async bytes() {
247
+ return new Uint8Array(await this.arrayBuffer());
248
+ }
249
+ /**
250
+ * @param {number=} start
251
+ * @param {number=} end
252
+ * @param {string=} contentType
253
+ */
254
+ slice(start = 0, end = this.size, contentType = this.type) {
255
+ if (start < 0) start = Math.max(this.size + start, 0);
256
+ else start = Math.min(start, this.size);
257
+ if (end < 0) end = Math.max(this.size + end, 0);
258
+ else end = Math.min(end, this.size);
259
+ const size = Math.max(end - start, 0);
260
+ return new LazyFile(this.name, contentType, size, this.lastModified, this.#get_chunk, this.#offset + start);
261
+ }
262
+ stream() {
263
+ let cursor = 0;
264
+ let chunk_index = 0;
265
+ return new ReadableStream({
266
+ start: async (controller) => {
267
+ let chunk_start = 0;
268
+ /** @type {Uint8Array} */
269
+ let start_chunk;
270
+ for (chunk_index = 0;; chunk_index++) {
271
+ const chunk = await this.#get_chunk(chunk_index);
272
+ if (!chunk) return null;
273
+ const chunk_end = chunk_start + chunk.byteLength;
274
+ if (this.#offset >= chunk_start && this.#offset < chunk_end) {
275
+ start_chunk = chunk;
276
+ break;
277
+ }
278
+ chunk_start = chunk_end;
279
+ }
280
+ if (this.#offset + this.size <= chunk_start + start_chunk.byteLength) {
281
+ controller.enqueue(start_chunk.subarray(this.#offset - chunk_start, this.#offset + this.size - chunk_start));
282
+ controller.close();
283
+ } else {
284
+ controller.enqueue(start_chunk.subarray(this.#offset - chunk_start));
285
+ cursor = start_chunk.byteLength - this.#offset + chunk_start;
286
+ }
287
+ },
288
+ pull: async (controller) => {
289
+ chunk_index++;
290
+ let chunk = await this.#get_chunk(chunk_index);
291
+ if (!chunk) {
292
+ controller.error("incomplete file data");
293
+ controller.close();
294
+ return;
295
+ }
296
+ if (chunk.byteLength > this.size - cursor) chunk = chunk.subarray(0, this.size - cursor);
297
+ controller.enqueue(chunk);
298
+ cursor += chunk.byteLength;
299
+ if (cursor >= this.size) controller.close();
300
+ }
301
+ });
302
+ }
303
+ async text() {
304
+ return text_decoder.decode(await this.arrayBuffer());
305
+ }
306
+ };
307
+ var path_regex = /^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;
308
+ /**
309
+ * @param {string} path
310
+ */
311
+ function split_path(path) {
312
+ if (!path_regex.test(path)) throw new Error(`Invalid path ${path}`);
313
+ return path.split(/\.|\[|\]/).filter(Boolean);
314
+ }
315
+ /**
316
+ * Check if a property key is dangerous and could lead to prototype pollution
317
+ * @param {string} key
318
+ */
319
+ function check_prototype_pollution(key) {
320
+ if (key === "__proto__" || key === "constructor" || key === "prototype") throw new Error(`Invalid key "${key}"`);
321
+ }
322
+ /**
323
+ * Sets a value in a nested object using an array of keys, mutating the original object.
324
+ * @param {Record<string, any>} object
325
+ * @param {string[]} keys
326
+ * @param {any} value
327
+ */
328
+ function deep_set(object, keys, value) {
329
+ let current = object;
330
+ for (let i = 0; i < keys.length - 1; i += 1) {
331
+ const key = keys[i];
332
+ check_prototype_pollution(key);
333
+ const is_array = /^\d+$/.test(keys[i + 1]);
334
+ const exists = Object.hasOwn(current, key);
335
+ const inner = current[key];
336
+ if (exists && is_array !== Array.isArray(inner)) throw new Error(`Invalid array key ${keys[i + 1]}`);
337
+ if (!exists) current[key] = is_array ? [] : {};
338
+ current = current[key];
339
+ }
340
+ const final_key = keys[keys.length - 1];
341
+ check_prototype_pollution(final_key);
342
+ current[final_key] = value;
343
+ }
344
+ //#endregion
345
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/http.js
346
+ /**
347
+ * Given an Accept header and a list of possible content types, pick
348
+ * the most suitable one to respond with
349
+ * @param {string} accept
350
+ * @param {string[]} types
351
+ */
352
+ function negotiate(accept, types) {
353
+ /** @type {Array<{ type: string, subtype: string, q: number, i: number }>} */
354
+ const parts = [];
355
+ accept.split(",").forEach((str, i) => {
356
+ const match = /([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(str);
357
+ if (match) {
358
+ const [, type, subtype, q = "1"] = match;
359
+ parts.push({
360
+ type,
361
+ subtype,
362
+ q: +q,
363
+ i
364
+ });
365
+ }
366
+ });
367
+ parts.sort((a, b) => {
368
+ if (a.q !== b.q) return b.q - a.q;
369
+ if (a.subtype === "*" !== (b.subtype === "*")) return a.subtype === "*" ? 1 : -1;
370
+ if (a.type === "*" !== (b.type === "*")) return a.type === "*" ? 1 : -1;
371
+ return a.i - b.i;
372
+ });
373
+ let accepted;
374
+ let min_priority = Infinity;
375
+ for (const mimetype of types) {
376
+ const [type, subtype] = mimetype.split("/");
377
+ const priority = parts.findIndex((part) => (part.type === type || part.type === "*") && (part.subtype === subtype || part.subtype === "*"));
378
+ if (priority !== -1 && priority < min_priority) {
379
+ accepted = mimetype;
380
+ min_priority = priority;
381
+ }
382
+ }
383
+ return accepted;
384
+ }
385
+ /**
386
+ * Returns `true` if the request contains a `content-type` header with the given type
387
+ * @param {Request} request
388
+ * @param {...string} types
389
+ */
390
+ function is_content_type(request, ...types) {
391
+ const type = request.headers.get("content-type")?.split(";", 1)[0].trim() ?? "";
392
+ return types.includes(type.toLowerCase());
393
+ }
394
+ /**
395
+ * @param {Request} request
396
+ */
397
+ function is_form_content_type(request) {
398
+ return is_content_type(request, "application/x-www-form-urlencoded", "multipart/form-data", "text/plain", BINARY_FORM_CONTENT_TYPE);
399
+ }
400
+ //#endregion
401
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/escape.js
402
+ /**
403
+ * When inside a double-quoted attribute value, only `&` and `"` hold special meaning.
404
+ * @see https://html.spec.whatwg.org/multipage/parsing.html#attribute-value-(double-quoted)-state
405
+ * @type {Record<string, string>}
406
+ */
407
+ var escape_html_attr_dict = {
408
+ "&": "&amp;",
409
+ "\"": "&quot;"
410
+ };
411
+ /**
412
+ * @type {Record<string, string>}
413
+ */
414
+ var escape_html_dict = {
415
+ "&": "&amp;",
416
+ "<": "&lt;"
417
+ };
418
+ var escape_html_attr_regex = new RegExp(`[${Object.keys(escape_html_attr_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
419
+ var escape_html_regex = new RegExp(`[${Object.keys(escape_html_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
420
+ /**
421
+ * Escapes unpaired surrogates (which are allowed in js strings but invalid in HTML) and
422
+ * escapes characters that are special.
423
+ *
424
+ * @param {string} str
425
+ * @param {boolean} [is_attr]
426
+ * @returns {string} escaped string
427
+ * @example const html = `<tag data-value="${escape_html('value', true)}">...</tag>`;
428
+ */
429
+ function escape_html(str, is_attr) {
430
+ const dict = is_attr ? escape_html_attr_dict : escape_html_dict;
431
+ return str.replace(is_attr ? escape_html_attr_regex : escape_html_regex, (match) => {
432
+ if (match.length === 2) return match;
433
+ return dict[match] ?? `&#${match.charCodeAt(0)};`;
434
+ });
435
+ }
436
+ //#endregion
437
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/utils.js
438
+ /**
439
+ * @param {Partial<Record<import('types').HttpMethod, any>>} mod
440
+ * @param {import('types').HttpMethod} method
441
+ */
442
+ function method_not_allowed(mod, method) {
443
+ return text(`${method} method not allowed`, {
444
+ status: 405,
445
+ headers: { allow: allowed_methods(mod).join(", ") }
446
+ });
447
+ }
448
+ /** @param {Partial<Record<import('types').HttpMethod, any>>} mod */
449
+ function allowed_methods(mod) {
450
+ const allowed = ENDPOINT_METHODS.filter((method) => method in mod);
451
+ if ("GET" in mod && !("HEAD" in mod)) allowed.push("HEAD");
452
+ return allowed;
453
+ }
454
+ /**
455
+ * @param {import('types').SSROptions} options
456
+ */
457
+ function get_global_name(options) {
458
+ return `__sveltekit_${options.version_hash}`;
459
+ }
460
+ /**
461
+ * Return as a response that renders the error.html
462
+ *
463
+ * @param {import('types').SSROptions} options
464
+ * @param {number} status
465
+ * @param {string} message
466
+ */
467
+ function static_error_page(options, status, message) {
468
+ return text(options.templates.error({
469
+ status,
470
+ message: escape_html(message)
471
+ }), {
472
+ headers: { "content-type": "text/html; charset=utf-8" },
473
+ status
474
+ });
475
+ }
476
+ /**
477
+ * @param {import('@sveltejs/kit').RequestEvent} event
478
+ * @param {import('types').RequestState} state
479
+ * @param {import('types').SSROptions} options
480
+ * @param {unknown} error
481
+ */
482
+ async function handle_fatal_error(event, state, options, error) {
483
+ error = error instanceof HttpError ? error : coalesce_to_error(error);
484
+ const status = get_status(error);
485
+ const body = await handle_error_and_jsonify(event, state, options, error);
486
+ const type = negotiate(event.request.headers.get("accept") || "text/html", ["application/json", "text/html"]);
487
+ if (event.isDataRequest || type === "application/json") return json(body, { status });
488
+ return static_error_page(options, status, body.message);
489
+ }
490
+ /**
491
+ * @param {import('@sveltejs/kit').RequestEvent} event
492
+ * @param {import('types').RequestState} state
493
+ * @param {import('types').SSROptions} options
494
+ * @param {any} error
495
+ * @returns {Promise<App.Error>}
496
+ */
497
+ async function handle_error_and_jsonify(event, state, options, error) {
498
+ if (error instanceof HttpError) return {
499
+ message: "Unknown Error",
500
+ ...error.body
501
+ };
502
+ const status = get_status(error);
503
+ const message = get_message(error);
504
+ return await with_request_store({
505
+ event,
506
+ state
507
+ }, () => options.hooks.handleError({
508
+ error,
509
+ event,
510
+ status,
511
+ message
512
+ })) ?? { message };
513
+ }
514
+ /**
515
+ * @param {number} status
516
+ * @param {string} location
517
+ */
518
+ function redirect_response(status, location) {
519
+ return new Response(void 0, {
520
+ status,
521
+ headers: { location }
522
+ });
523
+ }
524
+ /**
525
+ * @param {import('@sveltejs/kit').RequestEvent} event
526
+ * @param {Error & { path: string }} error
527
+ */
528
+ function clarify_devalue_error(event, error) {
529
+ if (error.path) return `Data returned from \`load\` while rendering ${event.route.id} is not serializable: ${error.message} (${error.path}). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#Universal-hooks-transport.`;
530
+ if (error.path === "") return `Data returned from \`load\` while rendering ${event.route.id} is not a plain object`;
531
+ return error.message;
532
+ }
533
+ /**
534
+ * @param {import('types').ServerDataNode} node
535
+ */
536
+ function serialize_uses(node) {
537
+ const uses = {};
538
+ if (node.uses && node.uses.dependencies.size > 0) uses.dependencies = Array.from(node.uses.dependencies);
539
+ if (node.uses && node.uses.search_params.size > 0) uses.search_params = Array.from(node.uses.search_params);
540
+ if (node.uses && node.uses.params.size > 0) uses.params = Array.from(node.uses.params);
541
+ if (node.uses?.parent) uses.parent = 1;
542
+ if (node.uses?.route) uses.route = 1;
543
+ if (node.uses?.url) uses.url = 1;
544
+ return uses;
545
+ }
546
+ /**
547
+ * Returns `true` if the given path was prerendered
548
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
549
+ * @param {string} pathname Should include the base and be decoded
550
+ */
551
+ function has_prerendered_path(manifest, pathname) {
552
+ return manifest._.prerendered_routes.has(pathname) || pathname.at(-1) === "/" && manifest._.prerendered_routes.has(pathname.slice(0, -1));
553
+ }
554
+ /**
555
+ * Formats the error into a nice message with sanitized stack trace
556
+ * @param {number} status
557
+ * @param {Error} error
558
+ * @param {import('@sveltejs/kit').RequestEvent} event
559
+ */
560
+ function format_server_error(status, error, event) {
561
+ const formatted_text = `\n\x1b[1;31m[${status}] ${event.request.method} ${event.url.pathname}\x1b[0m`;
562
+ if (status === 404) return formatted_text;
563
+ return `${formatted_text}\n${error.stack}`;
564
+ }
565
+ /**
566
+ * Returns the filename without the extension. e.g., `+page.server`, `+page`, etc.
567
+ * @param {string | undefined} node_id
568
+ * @returns {string}
569
+ */
570
+ function get_node_type(node_id) {
571
+ const filename = (node_id?.split("/"))?.at(-1);
572
+ if (!filename) return "unknown";
573
+ return filename.split(".").slice(0, -1).join(".");
574
+ }
575
+
576
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/promise.js
577
+ /** @see https://github.com/microsoft/TypeScript/blob/904e7dd97dc8da1352c8e05d70829dff17c73214/src/lib/es2024.promise.d.ts */
578
+ /**
579
+ * @template T
580
+ * @typedef {{
581
+ * promise: Promise<T>;
582
+ * resolve: (value: T | PromiseLike<T>) => void;
583
+ * reject: (reason?: any) => void;
584
+ * }} PromiseWithResolvers<T>
585
+ */
586
+ /**
587
+ * TODO: Whenever Node >21 is minimum supported version, we can use `Promise.withResolvers` to avoid this ceremony
588
+ *
589
+ * @template T
590
+ * @returns {PromiseWithResolvers<T>}
591
+ */
592
+ function with_resolvers() {
593
+ let resolve;
594
+ let reject;
595
+ return {
596
+ promise: new Promise((res, rej) => {
597
+ resolve = res;
598
+ reject = rej;
599
+ }),
600
+ resolve,
601
+ reject
602
+ };
603
+ }
604
+ //#endregion
605
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/constants.js
606
+ var NULL_BODY_STATUS = [
607
+ 101,
608
+ 103,
609
+ 204,
610
+ 205,
611
+ 304
612
+ ];
613
+ var IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
614
+ //#endregion
615
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/endpoint.js
616
+ /**
617
+ * @param {import('@sveltejs/kit').RequestEvent} event
618
+ * @param {import('types').RequestState} event_state
619
+ * @param {import('types').SSREndpoint} mod
620
+ * @param {import('types').SSRState} state
621
+ * @returns {Promise<Response>}
622
+ */
623
+ async function render_endpoint(event, event_state, mod, state) {
624
+ const method = event.request.method;
625
+ let handler = mod[method] || mod.fallback;
626
+ if (method === "HEAD" && !mod.HEAD && mod.GET) handler = mod.GET;
627
+ if (!handler) return method_not_allowed(mod, method);
628
+ const prerender = mod.prerender ?? state.prerender_default;
629
+ if (prerender && (mod.POST || mod.PATCH || mod.PUT || mod.DELETE)) throw new Error("Cannot prerender endpoints that have mutative methods");
630
+ if (state.prerendering && !state.prerendering.inside_reroute && !prerender) if (state.depth > 0) throw new Error(`${event.route.id} is not prerenderable`);
631
+ else return new Response(void 0, { status: 204 });
632
+ try {
633
+ event_state.allows_commands = true;
634
+ const response = await with_request_store({
635
+ event,
636
+ state: event_state
637
+ }, () => handler(event));
638
+ if (!(response instanceof Response)) throw new Error(`Invalid response from route ${event.url.pathname}: handler should return a Response object`);
639
+ if (state.prerendering && (!state.prerendering.inside_reroute || prerender)) {
640
+ const cloned = new Response(response.clone().body, {
641
+ status: response.status,
642
+ statusText: response.statusText,
643
+ headers: new Headers(response.headers)
644
+ });
645
+ cloned.headers.set("x-sveltekit-prerender", String(prerender));
646
+ if (state.prerendering.inside_reroute && prerender) {
647
+ cloned.headers.set("x-sveltekit-routeid", encodeURI(event.route.id));
648
+ state.prerendering.dependencies.set(event.url.pathname, {
649
+ response: cloned,
650
+ body: null
651
+ });
652
+ } else return cloned;
653
+ }
654
+ return response;
655
+ } catch (e) {
656
+ if (e instanceof Redirect) return new Response(void 0, {
657
+ status: e.status,
658
+ headers: { location: e.location }
659
+ });
660
+ throw e;
661
+ }
662
+ }
663
+ /**
664
+ * @param {import('@sveltejs/kit').RequestEvent} event
665
+ */
666
+ function is_endpoint_request(event) {
667
+ const { method, headers } = event.request;
668
+ if (ENDPOINT_METHODS.includes(method) && !PAGE_METHODS.includes(method)) return true;
669
+ if (method === "POST" && headers.get("x-sveltekit-action") === "true") return false;
670
+ return negotiate(event.request.headers.get("accept") ?? "*/*", ["*", "text/html"]) !== "text/html";
671
+ }
672
+ //#endregion
673
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/telemetry/record_span.js
674
+ /** @import { RecordSpan } from 'types' */
675
+ /** @type {RecordSpan} */
676
+ async function record_span({ name, attributes, fn }) {
677
+ return fn(noop_span);
678
+ }
679
+ //#endregion
680
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/actions.js
681
+ /** @import { RequestEvent, ActionResult, Actions } from '@sveltejs/kit' */
682
+ /** @import { SSROptions, SSRNode, ServerNode, ServerHooks } from 'types' */
683
+ /** @param {RequestEvent} event */
684
+ function is_action_json_request(event) {
685
+ return negotiate(event.request.headers.get("accept") ?? "*/*", ["application/json", "text/html"]) === "application/json" && event.request.method === "POST";
686
+ }
687
+ /**
688
+ * @param {RequestEvent} event
689
+ * @param {import('types').RequestState} event_state
690
+ * @param {SSROptions} options
691
+ * @param {SSRNode['server'] | undefined} server
692
+ */
693
+ async function handle_action_json_request(event, event_state, options, server) {
694
+ const actions = server?.actions;
695
+ if (!actions) {
696
+ const no_actions_error = new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`);
697
+ return action_json({
698
+ type: "error",
699
+ error: await handle_error_and_jsonify(event, event_state, options, no_actions_error)
700
+ }, {
701
+ status: no_actions_error.status,
702
+ headers: { allow: "GET" }
703
+ });
704
+ }
705
+ check_named_default_separate(actions);
706
+ try {
707
+ const data = await call_action(event, event_state, actions);
708
+ if (data instanceof ActionFailure) return action_json({
709
+ type: "failure",
710
+ status: data.status,
711
+ data: stringify_action_response(data.data, event.route.id, options.hooks.transport)
712
+ });
713
+ else return action_json({
714
+ type: "success",
715
+ status: data ? 200 : 204,
716
+ data: stringify_action_response(data, event.route.id, options.hooks.transport)
717
+ });
718
+ } catch (e) {
719
+ const err = normalize_error(e);
720
+ if (err instanceof Redirect) return action_json_redirect(err);
721
+ return action_json({
722
+ type: "error",
723
+ error: await handle_error_and_jsonify(event, event_state, options, check_incorrect_fail_use(err))
724
+ }, { status: get_status(err) });
725
+ }
726
+ }
727
+ /**
728
+ * @param {HttpError | Error} error
729
+ */
730
+ function check_incorrect_fail_use(error) {
731
+ return error instanceof ActionFailure ? /* @__PURE__ */ new Error("Cannot \"throw fail()\". Use \"return fail()\"") : error;
732
+ }
733
+ /**
734
+ * @param {Redirect} redirect
735
+ */
736
+ function action_json_redirect(redirect) {
737
+ return action_json({
738
+ type: "redirect",
739
+ status: redirect.status,
740
+ location: redirect.location
741
+ });
742
+ }
743
+ /**
744
+ * @param {ActionResult} data
745
+ * @param {ResponseInit} [init]
746
+ */
747
+ function action_json(data, init) {
748
+ return json(data, init);
749
+ }
750
+ /**
751
+ * @param {RequestEvent} event
752
+ */
753
+ function is_action_request(event) {
754
+ return event.request.method === "POST";
755
+ }
756
+ /**
757
+ * @param {RequestEvent} event
758
+ * @param {import('types').RequestState} event_state
759
+ * @param {SSRNode['server'] | undefined} server
760
+ * @returns {Promise<ActionResult>}
761
+ */
762
+ async function handle_action_request(event, event_state, server) {
763
+ const actions = server?.actions;
764
+ if (!actions) {
765
+ event.setHeaders({ allow: "GET" });
766
+ return {
767
+ type: "error",
768
+ error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
769
+ };
770
+ }
771
+ check_named_default_separate(actions);
772
+ try {
773
+ const data = await call_action(event, event_state, actions);
774
+ if (data instanceof ActionFailure) return {
775
+ type: "failure",
776
+ status: data.status,
777
+ data: data.data
778
+ };
779
+ else return {
780
+ type: "success",
781
+ status: 200,
782
+ data
783
+ };
784
+ } catch (e) {
785
+ const err = normalize_error(e);
786
+ if (err instanceof Redirect) return {
787
+ type: "redirect",
788
+ status: err.status,
789
+ location: err.location
790
+ };
791
+ return {
792
+ type: "error",
793
+ error: check_incorrect_fail_use(err)
794
+ };
795
+ }
796
+ }
797
+ /**
798
+ * @param {Actions} actions
799
+ */
800
+ function check_named_default_separate(actions) {
801
+ if (actions.default && Object.keys(actions).length > 1) throw new Error("When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#named-actions");
802
+ }
803
+ /**
804
+ * @param {RequestEvent} event
805
+ * @param {import('types').RequestState} event_state
806
+ * @param {NonNullable<ServerNode['actions']>} actions
807
+ * @throws {Redirect | HttpError | SvelteKitError | Error}
808
+ */
809
+ async function call_action(event, event_state, actions) {
810
+ const url = new URL(event.request.url);
811
+ let name = "default";
812
+ for (const param of url.searchParams) if (param[0].startsWith("/")) {
813
+ name = param[0].slice(1);
814
+ if (name === "default") throw new Error("Cannot use reserved action name \"default\"");
815
+ break;
816
+ }
817
+ const action = actions[name];
818
+ if (!action) throw new SvelteKitError(404, "Not Found", `No action with name '${name}' found`);
819
+ if (!is_form_content_type(event.request)) throw new SvelteKitError(415, "Unsupported Media Type", `Form actions expect form-encoded data — received ${event.request.headers.get("content-type")}`);
820
+ return record_span({
821
+ name: "sveltekit.form_action",
822
+ attributes: {
823
+ "http.route": event.route.id || "unknown"
824
+ },
825
+ fn: async (current) => {
826
+ const traced_event = merge_tracing(event, current);
827
+ event_state.allows_commands = true;
828
+ const result = await with_request_store({
829
+ event: traced_event,
830
+ state: event_state
831
+ }, () => action(traced_event));
832
+ if (result instanceof ActionFailure) current.setAttributes({
833
+ "sveltekit.form_action.result.type": "failure",
834
+ "sveltekit.form_action.result.status": result.status
835
+ });
836
+ return result;
837
+ }
838
+ });
839
+ }
840
+ /**
841
+ * Try to `devalue.uneval` the data object, and if it fails, return a proper Error with context
842
+ * @param {any} data
843
+ * @param {string} route_id
844
+ * @param {ServerHooks['transport']} transport
845
+ */
846
+ function uneval_action_response(data, route_id, transport) {
847
+ const replacer = (thing) => {
848
+ for (const key in transport) {
849
+ const encoded = transport[key].encode(thing);
850
+ if (encoded) return `app.decode('${key}', ${uneval(encoded, replacer)})`;
851
+ }
852
+ };
853
+ return try_serialize(data, (value) => uneval(value, replacer), route_id);
854
+ }
855
+ /**
856
+ * Try to `devalue.stringify` the data object, and if it fails, return a proper Error with context
857
+ * @param {any} data
858
+ * @param {string} route_id
859
+ * @param {ServerHooks['transport']} transport
860
+ */
861
+ function stringify_action_response(data, route_id, transport) {
862
+ const encoders = Object.fromEntries(Object.entries(transport).map(([key, value]) => [key, value.encode]));
863
+ return try_serialize(data, (value) => stringify$1(value, encoders), route_id);
864
+ }
865
+ /**
866
+ * @param {any} data
867
+ * @param {(data: any) => string} fn
868
+ * @param {string} route_id
869
+ */
870
+ function try_serialize(data, fn, route_id) {
871
+ try {
872
+ return fn(data);
873
+ } catch (e) {
874
+ const error = e;
875
+ if (data instanceof Response) throw new Error(`Data returned from action inside ${route_id} is not serializable. Form actions need to return plain objects or fail(). E.g. return { success: true } or return fail(400, { message: "invalid" });`, { cause: e });
876
+ if ("path" in error) {
877
+ let message = `Data returned from action inside ${route_id} is not serializable: ${error.message}`;
878
+ if (error.path !== "") message += ` (data.${error.path})`;
879
+ throw new Error(message, { cause: e });
880
+ }
881
+ throw error;
882
+ }
883
+ }
884
+ //#endregion
885
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/streaming.js
886
+ /**
887
+ * Create an async iterator and a function to push values into it
888
+ * @template T
889
+ * @returns {{
890
+ * iterate: (transform?: (input: T) => T) => AsyncIterable<T>;
891
+ * add: (promise: Promise<T>) => void;
892
+ * }}
893
+ */
894
+ function create_async_iterator() {
895
+ let resolved = -1;
896
+ let returned = -1;
897
+ /** @type {import('./promise.js').PromiseWithResolvers<T>[]} */
898
+ const deferred = [];
899
+ return {
900
+ iterate: (transform = (x) => x) => {
901
+ return { [Symbol.asyncIterator]() {
902
+ return { next: async () => {
903
+ const next = deferred[++returned];
904
+ if (!next) return {
905
+ value: null,
906
+ done: true
907
+ };
908
+ return {
909
+ value: transform(await next.promise),
910
+ done: false
911
+ };
912
+ } };
913
+ } };
914
+ },
915
+ add: (promise) => {
916
+ deferred.push(with_resolvers());
917
+ promise.then((value) => {
918
+ deferred[++resolved].resolve(value);
919
+ });
920
+ }
921
+ };
922
+ }
923
+ //#endregion
924
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/data_serializer.js
925
+ /**
926
+ * If the serialized data contains promises, `chunks` will be an
927
+ * async iterable containing their resolutions
928
+ * @param {import('@sveltejs/kit').RequestEvent} event
929
+ * @param {import('types').RequestState} event_state
930
+ * @param {import('types').SSROptions} options
931
+ * @returns {import('./types.js').ServerDataSerializer}
932
+ */
933
+ function server_data_serializer(event, event_state, options) {
934
+ let promise_id = 1;
935
+ let max_nodes = -1;
936
+ const iterator = create_async_iterator();
937
+ const global = get_global_name(options);
938
+ /** @param {number} index */
939
+ function get_replacer(index) {
940
+ /** @param {any} thing */
941
+ return function replacer(thing) {
942
+ if (typeof thing?.then === "function") {
943
+ const id = promise_id++;
944
+ const promise = thing.then(
945
+ /** @param {any} data */
946
+ (data) => ({ data })
947
+ ).catch(
948
+ /** @param {any} error */
949
+ async (error) => ({ error: await handle_error_and_jsonify(event, event_state, options, error) })
950
+ ).then(
951
+ /**
952
+ * @param {{data: any; error: any}} result
953
+ */
954
+ async ({ data, error }) => {
955
+ let str;
956
+ try {
957
+ str = uneval(error ? [, error] : [data], replacer);
958
+ } catch {
959
+ error = await handle_error_and_jsonify(event, event_state, options, /* @__PURE__ */ new Error(`Failed to serialize promise while rendering ${event.route.id}`));
960
+ str = uneval([, error], replacer);
961
+ }
962
+ return {
963
+ index,
964
+ str: `${global}.resolve(${id}, ${str.includes("app.decode") ? `(app) => ${str}` : `() => ${str}`})`
965
+ };
966
+ }
967
+ );
968
+ iterator.add(promise);
969
+ return `${global}.defer(${id})`;
970
+ } else for (const key in options.hooks.transport) {
971
+ const encoded = options.hooks.transport[key].encode(thing);
972
+ if (encoded) return `app.decode('${key}', ${uneval(encoded, replacer)})`;
973
+ }
974
+ };
975
+ }
976
+ const strings = [];
977
+ return {
978
+ set_max_nodes(i) {
979
+ max_nodes = i;
980
+ },
981
+ add_node(i, node) {
982
+ try {
983
+ if (!node) {
984
+ strings[i] = "null";
985
+ return;
986
+ }
987
+ /** @type {any} */
988
+ const payload = {
989
+ type: "data",
990
+ data: node.data,
991
+ uses: serialize_uses(node)
992
+ };
993
+ if (node.slash) payload.slash = node.slash;
994
+ strings[i] = uneval(payload, get_replacer(i));
995
+ } catch (e) {
996
+ e.path = e.path.slice(1);
997
+ throw new Error(clarify_devalue_error(event, e), { cause: e });
998
+ }
999
+ },
1000
+ get_data(csp) {
1001
+ const open = `<script${csp.script_needs_nonce ? ` nonce="${csp.nonce}"` : ""}>`;
1002
+ const close = `<\/script>\n`;
1003
+ return {
1004
+ data: `[${compact(max_nodes > -1 ? strings.slice(0, max_nodes) : strings).join(",")}]`,
1005
+ chunks: promise_id > 1 ? iterator.iterate(({ index, str }) => {
1006
+ if (max_nodes > -1 && index >= max_nodes) return "";
1007
+ return open + str + close;
1008
+ }) : null
1009
+ };
1010
+ }
1011
+ };
1012
+ }
1013
+ /**
1014
+ * If the serialized data contains promises, `chunks` will be an
1015
+ * async iterable containing their resolutions
1016
+ * @param {import('@sveltejs/kit').RequestEvent} event
1017
+ * @param {import('types').RequestState} event_state
1018
+ * @param {import('types').SSROptions} options
1019
+ * @returns {import('./types.js').ServerDataSerializerJson}
1020
+ */
1021
+ function server_data_serializer_json(event, event_state, options) {
1022
+ let promise_id = 1;
1023
+ const iterator = create_async_iterator();
1024
+ const reducers = {
1025
+ ...Object.fromEntries(Object.entries(options.hooks.transport).map(([key, value]) => [key, value.encode])),
1026
+ Promise: (thing) => {
1027
+ if (typeof thing?.then !== "function") return;
1028
+ const id = promise_id++;
1029
+ /** @type {'data' | 'error'} */
1030
+ let key = "data";
1031
+ const promise = thing.catch(
1032
+ /** @param {any} e */
1033
+ async (e) => {
1034
+ key = "error";
1035
+ return handle_error_and_jsonify(event, event_state, options, e);
1036
+ }
1037
+ ).then(
1038
+ /** @param {any} value */
1039
+ async (value) => {
1040
+ let str;
1041
+ try {
1042
+ str = stringify$1(value, reducers);
1043
+ } catch {
1044
+ const error = await handle_error_and_jsonify(event, event_state, options, /* @__PURE__ */ new Error(`Failed to serialize promise while rendering ${event.route.id}`));
1045
+ key = "error";
1046
+ str = stringify$1(error, reducers);
1047
+ }
1048
+ return `{"type":"chunk","id":${id},"${key}":${str}}\n`;
1049
+ }
1050
+ );
1051
+ iterator.add(promise);
1052
+ return id;
1053
+ }
1054
+ };
1055
+ const strings = [];
1056
+ return {
1057
+ add_node(i, node) {
1058
+ try {
1059
+ if (!node) {
1060
+ strings[i] = "null";
1061
+ return;
1062
+ }
1063
+ if (node.type === "error" || node.type === "skip") {
1064
+ strings[i] = JSON.stringify(node);
1065
+ return;
1066
+ }
1067
+ strings[i] = `{"type":"data","data":${stringify$1(node.data, reducers)},"uses":${JSON.stringify(serialize_uses(node))}${node.slash ? `,"slash":${JSON.stringify(node.slash)}` : ""}}`;
1068
+ } catch (e) {
1069
+ e.path = "data" + e.path;
1070
+ throw new Error(clarify_devalue_error(event, e), { cause: e });
1071
+ }
1072
+ },
1073
+ get_data() {
1074
+ return {
1075
+ data: `{"type":"data","nodes":[${strings.join(",")}]}\n`,
1076
+ chunks: promise_id > 1 ? iterator.iterate() : null
1077
+ };
1078
+ }
1079
+ };
1080
+ }
1081
+ //#endregion
1082
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js
1083
+ /**
1084
+ * Calls the user's server `load` function.
1085
+ * @param {{
1086
+ * event: import('@sveltejs/kit').RequestEvent;
1087
+ * event_state: import('types').RequestState;
1088
+ * state: import('types').SSRState;
1089
+ * node: import('types').SSRNode | undefined;
1090
+ * parent: () => Promise<Record<string, any>>;
1091
+ * }} opts
1092
+ * @returns {Promise<import('types').ServerDataNode | null>}
1093
+ */
1094
+ async function load_server_data({ event, event_state, state, node, parent }) {
1095
+ if (!node?.server) return null;
1096
+ let is_tracking = true;
1097
+ const uses = {
1098
+ dependencies: /* @__PURE__ */ new Set(),
1099
+ params: /* @__PURE__ */ new Set(),
1100
+ parent: false,
1101
+ route: false,
1102
+ url: false,
1103
+ search_params: /* @__PURE__ */ new Set()
1104
+ };
1105
+ const load = node.server.load;
1106
+ const slash = node.server.trailingSlash;
1107
+ if (!load) return {
1108
+ type: "data",
1109
+ data: null,
1110
+ uses,
1111
+ slash
1112
+ };
1113
+ const url = make_trackable(event.url, () => {
1114
+ if (is_tracking) uses.url = true;
1115
+ }, (param) => {
1116
+ if (is_tracking) uses.search_params.add(param);
1117
+ });
1118
+ if (state.prerendering) disable_search(url);
1119
+ return {
1120
+ type: "data",
1121
+ data: await record_span({
1122
+ name: "sveltekit.load",
1123
+ attributes: {
1124
+ "sveltekit.load.node_id": node.server_id || "unknown",
1125
+ "sveltekit.load.node_type": get_node_type(node.server_id),
1126
+ "http.route": event.route.id || "unknown"
1127
+ },
1128
+ fn: async (current) => {
1129
+ const traced_event = merge_tracing(event, current);
1130
+ return await with_request_store({
1131
+ event: traced_event,
1132
+ state: event_state
1133
+ }, () => load.call(null, {
1134
+ ...traced_event,
1135
+ fetch: (info, init) => {
1136
+ new URL(info instanceof Request ? info.url : info, event.url);
1137
+ return event.fetch(info, init);
1138
+ },
1139
+ depends: (...deps) => {
1140
+ for (const dep of deps) {
1141
+ const { href } = new URL(dep, event.url);
1142
+ uses.dependencies.add(href);
1143
+ }
1144
+ },
1145
+ params: new Proxy(event.params, { get: (target, key) => {
1146
+ if (is_tracking) uses.params.add(key);
1147
+ return target[key];
1148
+ } }),
1149
+ parent: async () => {
1150
+ if (is_tracking) uses.parent = true;
1151
+ return parent();
1152
+ },
1153
+ route: new Proxy(event.route, { get: (target, key) => {
1154
+ if (is_tracking) uses.route = true;
1155
+ return target[key];
1156
+ } }),
1157
+ url,
1158
+ untrack(fn) {
1159
+ is_tracking = false;
1160
+ try {
1161
+ return fn();
1162
+ } finally {
1163
+ is_tracking = true;
1164
+ }
1165
+ }
1166
+ }));
1167
+ }
1168
+ }) ?? null,
1169
+ uses,
1170
+ slash
1171
+ };
1172
+ }
1173
+ /**
1174
+ * Calls the user's `load` function.
1175
+ * @param {{
1176
+ * event: import('@sveltejs/kit').RequestEvent;
1177
+ * event_state: import('types').RequestState;
1178
+ * fetched: import('./types.js').Fetched[];
1179
+ * node: import('types').SSRNode | undefined;
1180
+ * parent: () => Promise<Record<string, any>>;
1181
+ * resolve_opts: import('types').RequiredResolveOptions;
1182
+ * server_data_promise: Promise<import('types').ServerDataNode | null>;
1183
+ * state: import('types').SSRState;
1184
+ * csr: boolean;
1185
+ * }} opts
1186
+ * @returns {Promise<Record<string, any | Promise<any>> | null>}
1187
+ */
1188
+ async function load_data({ event, event_state, fetched, node, parent, server_data_promise, state, resolve_opts, csr }) {
1189
+ const server_data_node = await server_data_promise;
1190
+ const load = node?.universal?.load;
1191
+ if (!load) return server_data_node?.data ?? null;
1192
+ return await record_span({
1193
+ name: "sveltekit.load",
1194
+ attributes: {
1195
+ "sveltekit.load.node_id": node.universal_id || "unknown",
1196
+ "sveltekit.load.node_type": get_node_type(node.universal_id),
1197
+ "http.route": event.route.id || "unknown"
1198
+ },
1199
+ fn: async (current) => {
1200
+ const traced_event = merge_tracing(event, current);
1201
+ return await with_request_store({
1202
+ event: traced_event,
1203
+ state: event_state
1204
+ }, () => load.call(null, {
1205
+ url: event.url,
1206
+ params: event.params,
1207
+ data: server_data_node?.data ?? null,
1208
+ route: event.route,
1209
+ fetch: create_universal_fetch(event, state, fetched, csr, resolve_opts),
1210
+ setHeaders: event.setHeaders,
1211
+ depends: () => {},
1212
+ parent,
1213
+ untrack: (fn) => fn(),
1214
+ tracing: traced_event.tracing
1215
+ }));
1216
+ }
1217
+ }) ?? null;
1218
+ }
1219
+ /**
1220
+ * @param {Pick<import('@sveltejs/kit').RequestEvent, 'fetch' | 'url' | 'request' | 'route'>} event
1221
+ * @param {import('types').SSRState} state
1222
+ * @param {import('./types.js').Fetched[]} fetched
1223
+ * @param {boolean} csr
1224
+ * @param {Pick<Required<import('@sveltejs/kit').ResolveOptions>, 'filterSerializedResponseHeaders'>} resolve_opts
1225
+ * @returns {typeof fetch}
1226
+ */
1227
+ function create_universal_fetch(event, state, fetched, csr, resolve_opts) {
1228
+ /**
1229
+ * @param {URL | RequestInfo} input
1230
+ * @param {RequestInit} [init]
1231
+ */
1232
+ const universal_fetch = async (input, init) => {
1233
+ const cloned_body = input instanceof Request && input.body ? input.clone().body : null;
1234
+ const cloned_headers = input instanceof Request && [...input.headers].length ? new Headers(input.headers) : init?.headers;
1235
+ let response = await event.fetch(input, init);
1236
+ const url = new URL(input instanceof Request ? input.url : input, event.url);
1237
+ const same_origin = url.origin === event.url.origin;
1238
+ /** @type {import('types').PrerenderDependency} */
1239
+ let dependency;
1240
+ if (same_origin) {
1241
+ if (state.prerendering) {
1242
+ dependency = {
1243
+ response,
1244
+ body: null
1245
+ };
1246
+ state.prerendering.dependencies.set(url.pathname, dependency);
1247
+ }
1248
+ } else if (url.protocol === "https:" || url.protocol === "http:") if ((input instanceof Request ? input.mode : init?.mode ?? "cors") === "no-cors") response = new Response("", {
1249
+ status: response.status,
1250
+ statusText: response.statusText,
1251
+ headers: response.headers
1252
+ });
1253
+ else {
1254
+ const acao = response.headers.get("access-control-allow-origin");
1255
+ if (!acao || acao !== event.url.origin && acao !== "*") throw new Error(`CORS error: ${acao ? "Incorrect" : "No"} 'Access-Control-Allow-Origin' header is present on the requested resource`);
1256
+ }
1257
+ /** @type {ReadableStream<Uint8Array>} */
1258
+ let teed_body;
1259
+ const proxy = new Proxy(response, { get(response, key, receiver) {
1260
+ /**
1261
+ * @param {string | undefined} body
1262
+ * @param {boolean} is_b64
1263
+ */
1264
+ async function push_fetched(body, is_b64) {
1265
+ const status_number = Number(response.status);
1266
+ if (isNaN(status_number)) throw new Error(`response.status is not a number. value: "${response.status}" type: ${typeof response.status}`);
1267
+ fetched.push({
1268
+ url: same_origin ? url.href.slice(event.url.origin.length) : url.href,
1269
+ method: event.request.method,
1270
+ request_body: input instanceof Request && cloned_body ? await stream_to_string(cloned_body) : init?.body,
1271
+ request_headers: cloned_headers,
1272
+ response_body: body,
1273
+ response,
1274
+ is_b64
1275
+ });
1276
+ }
1277
+ if (key === "body") {
1278
+ if (response.body === null) return null;
1279
+ if (teed_body) return teed_body;
1280
+ const [a, b] = response.body.tee();
1281
+ (async () => {
1282
+ let result = new Uint8Array();
1283
+ for await (const chunk of a) {
1284
+ const combined = new Uint8Array(result.length + chunk.length);
1285
+ combined.set(result, 0);
1286
+ combined.set(chunk, result.length);
1287
+ result = combined;
1288
+ }
1289
+ if (dependency) dependency.body = new Uint8Array(result);
1290
+ push_fetched(base64_encode(result), true);
1291
+ })();
1292
+ return teed_body = b;
1293
+ }
1294
+ if (key === "arrayBuffer") return async () => {
1295
+ const buffer = await response.arrayBuffer();
1296
+ const bytes = new Uint8Array(buffer);
1297
+ if (dependency) dependency.body = bytes;
1298
+ if (buffer instanceof ArrayBuffer) await push_fetched(base64_encode(bytes), true);
1299
+ return buffer;
1300
+ };
1301
+ async function text() {
1302
+ const body = await response.text();
1303
+ if (body === "" && NULL_BODY_STATUS.includes(response.status)) {
1304
+ await push_fetched(void 0, false);
1305
+ return;
1306
+ }
1307
+ if (!body || typeof body === "string") await push_fetched(body, false);
1308
+ if (dependency) dependency.body = body;
1309
+ return body;
1310
+ }
1311
+ if (key === "text") return text;
1312
+ if (key === "json") return async () => {
1313
+ const body = await text();
1314
+ return body ? JSON.parse(body) : void 0;
1315
+ };
1316
+ const value = Reflect.get(response, key, response);
1317
+ if (value instanceof Function) return Object.defineProperties(
1318
+ /**
1319
+ * @this {any}
1320
+ */
1321
+ function() {
1322
+ return Reflect.apply(value, this === receiver ? response : this, arguments);
1323
+ },
1324
+ {
1325
+ name: { value: value.name },
1326
+ length: { value: value.length }
1327
+ }
1328
+ );
1329
+ return value;
1330
+ } });
1331
+ if (csr) {
1332
+ const get = response.headers.get;
1333
+ response.headers.get = (key) => {
1334
+ const lower = key.toLowerCase();
1335
+ const value = get.call(response.headers, lower);
1336
+ if (value && !lower.startsWith("x-sveltekit-")) {
1337
+ if (!resolve_opts.filterSerializedResponseHeaders(lower, value)) throw new Error(`Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://svelte.dev/docs/kit/hooks#Server-hooks-handle (at ${event.route.id})`);
1338
+ }
1339
+ return value;
1340
+ };
1341
+ }
1342
+ return proxy;
1343
+ };
1344
+ return (input, init) => {
1345
+ const response = universal_fetch(input, init);
1346
+ response.catch(() => {});
1347
+ return response;
1348
+ };
1349
+ }
1350
+ /**
1351
+ * @param {ReadableStream<Uint8Array>} stream
1352
+ */
1353
+ async function stream_to_string(stream) {
1354
+ let result = "";
1355
+ const reader = stream.getReader();
1356
+ while (true) {
1357
+ const { done, value } = await reader.read();
1358
+ if (done) break;
1359
+ result += text_decoder.decode(value);
1360
+ }
1361
+ return result;
1362
+ }
1363
+ //#endregion
1364
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/serialize_data.js
1365
+ /**
1366
+ * Inside a script element, only `<\/script` and `<!--` hold special meaning to the HTML parser.
1367
+ *
1368
+ * The first closes the script element, so everything after is treated as raw HTML.
1369
+ * The second disables further parsing until `-->`, so the script element might be unexpectedly
1370
+ * kept open up until an unrelated HTML comment in the page.
1371
+ *
1372
+ * U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR are escaped for the sake of pre-2018
1373
+ * browsers.
1374
+ *
1375
+ * @see tests for unsafe parsing examples.
1376
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements
1377
+ * @see https://html.spec.whatwg.org/multipage/syntax.html#cdata-rcdata-restrictions
1378
+ * @see https://html.spec.whatwg.org/multipage/parsing.html#script-data-state
1379
+ * @see https://html.spec.whatwg.org/multipage/parsing.html#script-data-double-escaped-state
1380
+ * @see https://github.com/tc39/proposal-json-superset
1381
+ * @type {Record<string, string>}
1382
+ */
1383
+ var replacements = {
1384
+ "<": "\\u003C",
1385
+ "\u2028": "\\u2028",
1386
+ "\u2029": "\\u2029"
1387
+ };
1388
+ var pattern = new RegExp(`[${Object.keys(replacements).join("")}]`, "g");
1389
+ /**
1390
+ * Generates a raw HTML string containing a safe script element carrying data and associated attributes.
1391
+ *
1392
+ * It escapes all the special characters needed to guarantee the element is unbroken, but care must
1393
+ * be taken to ensure it is inserted in the document at an acceptable position for a script element,
1394
+ * and that the resulting string isn't further modified.
1395
+ *
1396
+ * @param {import('./types.js').Fetched} fetched
1397
+ * @param {(name: string, value: string) => boolean} filter
1398
+ * @param {boolean} [prerendering]
1399
+ * @returns {string} The raw HTML of a script element carrying the JSON payload.
1400
+ * @example const html = serialize_data('/data.json', null, { foo: 'bar' });
1401
+ */
1402
+ function serialize_data(fetched, filter, prerendering = false) {
1403
+ /** @type {Record<string, string>} */
1404
+ const headers = {};
1405
+ let cache_control = null;
1406
+ let age = null;
1407
+ let varyAny = false;
1408
+ for (const [key, value] of fetched.response.headers) {
1409
+ if (filter(key, value)) headers[key] = value;
1410
+ if (key === "cache-control") cache_control = value;
1411
+ else if (key === "age") age = value;
1412
+ else if (key === "vary" && value.trim() === "*") varyAny = true;
1413
+ }
1414
+ const payload = {
1415
+ status: fetched.response.status,
1416
+ statusText: fetched.response.statusText,
1417
+ headers,
1418
+ body: fetched.response_body
1419
+ };
1420
+ const safe_payload = JSON.stringify(payload).replace(pattern, (match) => replacements[match]);
1421
+ const attrs = [
1422
+ "type=\"application/json\"",
1423
+ "data-sveltekit-fetched",
1424
+ `data-url="${escape_html(fetched.url, true)}"`
1425
+ ];
1426
+ if (fetched.is_b64) attrs.push("data-b64");
1427
+ if (fetched.request_headers || fetched.request_body) {
1428
+ /** @type {import('types').StrictBody[]} */
1429
+ const values = [];
1430
+ if (fetched.request_headers) values.push([...new Headers(fetched.request_headers)].join(","));
1431
+ if (fetched.request_body) values.push(fetched.request_body);
1432
+ attrs.push(`data-hash="${hash(...values)}"`);
1433
+ }
1434
+ if (!prerendering && fetched.method === "GET" && cache_control && !varyAny) {
1435
+ const match = /s-maxage=(\d+)/g.exec(cache_control) ?? /max-age=(\d+)/g.exec(cache_control);
1436
+ if (match) {
1437
+ const ttl = +match[1] - +(age ?? "0");
1438
+ attrs.push(`data-ttl="${ttl}"`);
1439
+ }
1440
+ }
1441
+ return `<script ${attrs.join(" ")}>${safe_payload}<\/script>`;
1442
+ }
1443
+ //#endregion
1444
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/misc.js
1445
+ var s = JSON.stringify;
1446
+ //#endregion
1447
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/crypto.js
1448
+ /**
1449
+ * SHA-256 hashing function adapted from https://bitwiseshiftleft.github.io/sjcl
1450
+ * modified and redistributed under BSD license
1451
+ * @param {string} data
1452
+ */
1453
+ function sha256(data) {
1454
+ if (!key[0]) precompute();
1455
+ const out = init.slice(0);
1456
+ const array = encode(data);
1457
+ for (let i = 0; i < array.length; i += 16) {
1458
+ const w = array.subarray(i, i + 16);
1459
+ let tmp;
1460
+ let a;
1461
+ let b;
1462
+ let out0 = out[0];
1463
+ let out1 = out[1];
1464
+ let out2 = out[2];
1465
+ let out3 = out[3];
1466
+ let out4 = out[4];
1467
+ let out5 = out[5];
1468
+ let out6 = out[6];
1469
+ let out7 = out[7];
1470
+ for (let i = 0; i < 64; i++) {
1471
+ if (i < 16) tmp = w[i];
1472
+ else {
1473
+ a = w[i + 1 & 15];
1474
+ b = w[i + 14 & 15];
1475
+ tmp = w[i & 15] = (a >>> 7 ^ a >>> 18 ^ a >>> 3 ^ a << 25 ^ a << 14) + (b >>> 17 ^ b >>> 19 ^ b >>> 10 ^ b << 15 ^ b << 13) + w[i & 15] + w[i + 9 & 15] | 0;
1476
+ }
1477
+ tmp = tmp + out7 + (out4 >>> 6 ^ out4 >>> 11 ^ out4 >>> 25 ^ out4 << 26 ^ out4 << 21 ^ out4 << 7) + (out6 ^ out4 & (out5 ^ out6)) + key[i];
1478
+ out7 = out6;
1479
+ out6 = out5;
1480
+ out5 = out4;
1481
+ out4 = out3 + tmp | 0;
1482
+ out3 = out2;
1483
+ out2 = out1;
1484
+ out1 = out0;
1485
+ out0 = tmp + (out1 & out2 ^ out3 & (out1 ^ out2)) + (out1 >>> 2 ^ out1 >>> 13 ^ out1 >>> 22 ^ out1 << 30 ^ out1 << 19 ^ out1 << 10) | 0;
1486
+ }
1487
+ out[0] = out[0] + out0 | 0;
1488
+ out[1] = out[1] + out1 | 0;
1489
+ out[2] = out[2] + out2 | 0;
1490
+ out[3] = out[3] + out3 | 0;
1491
+ out[4] = out[4] + out4 | 0;
1492
+ out[5] = out[5] + out5 | 0;
1493
+ out[6] = out[6] + out6 | 0;
1494
+ out[7] = out[7] + out7 | 0;
1495
+ }
1496
+ const bytes = new Uint8Array(out.buffer);
1497
+ reverse_endianness(bytes);
1498
+ return btoa(String.fromCharCode(...bytes));
1499
+ }
1500
+ /** The SHA-256 initialization vector */
1501
+ var init = new Uint32Array(8);
1502
+ /** The SHA-256 hash key */
1503
+ var key = new Uint32Array(64);
1504
+ /** Function to precompute init and key. */
1505
+ function precompute() {
1506
+ /** @param {number} x */
1507
+ function frac(x) {
1508
+ return (x - Math.floor(x)) * 4294967296;
1509
+ }
1510
+ let prime = 2;
1511
+ for (let i = 0; i < 64; prime++) {
1512
+ let is_prime = true;
1513
+ for (let factor = 2; factor * factor <= prime; factor++) if (prime % factor === 0) {
1514
+ is_prime = false;
1515
+ break;
1516
+ }
1517
+ if (is_prime) {
1518
+ if (i < 8) init[i] = frac(prime ** (1 / 2));
1519
+ key[i] = frac(prime ** (1 / 3));
1520
+ i++;
1521
+ }
1522
+ }
1523
+ }
1524
+ /** @param {Uint8Array} bytes */
1525
+ function reverse_endianness(bytes) {
1526
+ for (let i = 0; i < bytes.length; i += 4) {
1527
+ const a = bytes[i + 0];
1528
+ const b = bytes[i + 1];
1529
+ const c = bytes[i + 2];
1530
+ const d = bytes[i + 3];
1531
+ bytes[i + 0] = d;
1532
+ bytes[i + 1] = c;
1533
+ bytes[i + 2] = b;
1534
+ bytes[i + 3] = a;
1535
+ }
1536
+ }
1537
+ /** @param {string} str */
1538
+ function encode(str) {
1539
+ const encoded = text_encoder.encode(str);
1540
+ const length = encoded.length * 8;
1541
+ const size = 512 * Math.ceil((length + 65) / 512);
1542
+ const bytes = new Uint8Array(size / 8);
1543
+ bytes.set(encoded);
1544
+ bytes[encoded.length] = 128;
1545
+ reverse_endianness(bytes);
1546
+ const words = new Uint32Array(bytes.buffer);
1547
+ words[words.length - 2] = Math.floor(length / 4294967296);
1548
+ words[words.length - 1] = length;
1549
+ return words;
1550
+ }
1551
+ //#endregion
1552
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/csp.js
1553
+ var array = new Uint8Array(16);
1554
+ function generate_nonce() {
1555
+ crypto.getRandomValues(array);
1556
+ return btoa(String.fromCharCode(...array));
1557
+ }
1558
+ var quoted = new Set([
1559
+ "self",
1560
+ "unsafe-eval",
1561
+ "unsafe-hashes",
1562
+ "unsafe-inline",
1563
+ "none",
1564
+ "strict-dynamic",
1565
+ "report-sample",
1566
+ "wasm-unsafe-eval",
1567
+ "script"
1568
+ ]);
1569
+ var crypto_pattern = /^(nonce|sha\d\d\d)-/;
1570
+ var BaseProvider = class {
1571
+ /** @type {boolean} */
1572
+ #use_hashes;
1573
+ /** @type {boolean} */
1574
+ #script_needs_csp;
1575
+ /** @type {boolean} */
1576
+ #script_src_needs_csp;
1577
+ /** @type {boolean} */
1578
+ #script_src_elem_needs_csp;
1579
+ /** @type {boolean} */
1580
+ #style_needs_csp;
1581
+ /** @type {boolean} */
1582
+ #style_src_needs_csp;
1583
+ /** @type {boolean} */
1584
+ #style_src_attr_needs_csp;
1585
+ /** @type {boolean} */
1586
+ #style_src_elem_needs_csp;
1587
+ /** @type {import('types').CspDirectives} */
1588
+ #directives;
1589
+ /** @type {Set<import('types').Csp.Source>} */
1590
+ #script_src;
1591
+ /** @type {Set<import('types').Csp.Source>} */
1592
+ #script_src_elem;
1593
+ /** @type {Set<import('types').Csp.Source>} */
1594
+ #style_src;
1595
+ /** @type {Set<import('types').Csp.Source>} */
1596
+ #style_src_attr;
1597
+ /** @type {Set<import('types').Csp.Source>} */
1598
+ #style_src_elem;
1599
+ /** @type {boolean} */
1600
+ script_needs_nonce;
1601
+ /** @type {boolean} */
1602
+ style_needs_nonce;
1603
+ /** @type {boolean} */
1604
+ script_needs_hash;
1605
+ /** @type {string} */
1606
+ #nonce;
1607
+ /**
1608
+ * @param {boolean} use_hashes
1609
+ * @param {import('types').CspDirectives} directives
1610
+ * @param {string} nonce
1611
+ */
1612
+ constructor(use_hashes, directives, nonce) {
1613
+ this.#use_hashes = use_hashes;
1614
+ this.#directives = directives;
1615
+ const d = this.#directives;
1616
+ this.#script_src = /* @__PURE__ */ new Set();
1617
+ this.#script_src_elem = /* @__PURE__ */ new Set();
1618
+ this.#style_src = /* @__PURE__ */ new Set();
1619
+ this.#style_src_attr = /* @__PURE__ */ new Set();
1620
+ this.#style_src_elem = /* @__PURE__ */ new Set();
1621
+ const effective_script_src = d["script-src"] || d["default-src"];
1622
+ const script_src_elem = d["script-src-elem"];
1623
+ const effective_style_src = d["style-src"] || d["default-src"];
1624
+ const style_src_attr = d["style-src-attr"];
1625
+ const style_src_elem = d["style-src-elem"];
1626
+ /** @param {(import('types').Csp.Source | import('types').Csp.ActionSource)[] | undefined} directive */
1627
+ const style_needs_csp = (directive) => !!directive && !directive.some((value) => value === "unsafe-inline");
1628
+ /** @param {(import('types').Csp.Source | import('types').Csp.ActionSource)[] | undefined} directive */
1629
+ const script_needs_csp = (directive) => !!directive && (!directive.some((value) => value === "unsafe-inline") || directive.some((value) => value === "strict-dynamic"));
1630
+ this.#script_src_needs_csp = script_needs_csp(effective_script_src);
1631
+ this.#script_src_elem_needs_csp = script_needs_csp(script_src_elem);
1632
+ this.#style_src_needs_csp = style_needs_csp(effective_style_src);
1633
+ this.#style_src_attr_needs_csp = style_needs_csp(style_src_attr);
1634
+ this.#style_src_elem_needs_csp = style_needs_csp(style_src_elem);
1635
+ this.#script_needs_csp = this.#script_src_needs_csp || this.#script_src_elem_needs_csp;
1636
+ this.#style_needs_csp = this.#style_src_needs_csp || this.#style_src_attr_needs_csp || this.#style_src_elem_needs_csp;
1637
+ this.script_needs_nonce = this.#script_needs_csp && !this.#use_hashes;
1638
+ this.style_needs_nonce = this.#style_needs_csp && !this.#use_hashes;
1639
+ this.script_needs_hash = this.#script_needs_csp && this.#use_hashes;
1640
+ this.#nonce = nonce;
1641
+ }
1642
+ /** @param {string} content */
1643
+ add_script(content) {
1644
+ if (!this.#script_needs_csp) return;
1645
+ /** @type {`nonce-${string}` | `sha256-${string}`} */
1646
+ const source = this.#use_hashes ? `sha256-${sha256(content)}` : `nonce-${this.#nonce}`;
1647
+ if (this.#script_src_needs_csp) this.#script_src.add(source);
1648
+ if (this.#script_src_elem_needs_csp) this.#script_src_elem.add(source);
1649
+ }
1650
+ /** @param {`sha256-${string}`[]} hashes */
1651
+ add_script_hashes(hashes) {
1652
+ for (const hash of hashes) {
1653
+ if (this.#script_src_needs_csp) this.#script_src.add(hash);
1654
+ if (this.#script_src_elem_needs_csp) this.#script_src_elem.add(hash);
1655
+ }
1656
+ }
1657
+ /** @param {string} content */
1658
+ add_style(content) {
1659
+ if (!this.#style_needs_csp) return;
1660
+ /** @type {`nonce-${string}` | `sha256-${string}`} */
1661
+ const source = this.#use_hashes ? `sha256-${sha256(content)}` : `nonce-${this.#nonce}`;
1662
+ if (this.#style_src_needs_csp) this.#style_src.add(source);
1663
+ if (this.#style_src_attr_needs_csp) this.#style_src_attr.add(source);
1664
+ if (this.#style_src_elem_needs_csp) {
1665
+ const sha256_empty_comment_hash = "sha256-9OlNO0DNEeaVzHL4RZwCLsBHA8WBQ8toBp/4F5XV2nc=";
1666
+ const d = this.#directives;
1667
+ if (d["style-src-elem"] && !d["style-src-elem"].includes(sha256_empty_comment_hash) && !this.#style_src_elem.has(sha256_empty_comment_hash)) this.#style_src_elem.add(sha256_empty_comment_hash);
1668
+ if (source !== sha256_empty_comment_hash) this.#style_src_elem.add(source);
1669
+ }
1670
+ }
1671
+ /**
1672
+ * @param {boolean} [is_meta]
1673
+ */
1674
+ get_header(is_meta = false) {
1675
+ const header = [];
1676
+ const directives = { ...this.#directives };
1677
+ if (this.#style_src.size > 0) directives["style-src"] = [...directives["style-src"] || directives["default-src"] || [], ...this.#style_src];
1678
+ if (this.#style_src_attr.size > 0) directives["style-src-attr"] = [...directives["style-src-attr"] || [], ...this.#style_src_attr];
1679
+ if (this.#style_src_elem.size > 0) directives["style-src-elem"] = [...directives["style-src-elem"] || [], ...this.#style_src_elem];
1680
+ if (this.#script_src.size > 0) directives["script-src"] = [...directives["script-src"] || directives["default-src"] || [], ...this.#script_src];
1681
+ if (this.#script_src_elem.size > 0) directives["script-src-elem"] = [...directives["script-src-elem"] || [], ...this.#script_src_elem];
1682
+ for (const key in directives) {
1683
+ if (is_meta && (key === "frame-ancestors" || key === "report-uri" || key === "sandbox")) continue;
1684
+ const value = directives[key];
1685
+ if (!value) continue;
1686
+ const directive = [key];
1687
+ if (Array.isArray(value)) value.forEach((value) => {
1688
+ if (quoted.has(value) || crypto_pattern.test(value)) directive.push(`'${value}'`);
1689
+ else directive.push(value);
1690
+ });
1691
+ header.push(directive.join(" "));
1692
+ }
1693
+ return header.join("; ");
1694
+ }
1695
+ };
1696
+ var CspProvider = class extends BaseProvider {
1697
+ get_meta() {
1698
+ const content = this.get_header(true);
1699
+ if (!content) return;
1700
+ return `<meta http-equiv="content-security-policy" content="${escape_html(content, true)}">`;
1701
+ }
1702
+ };
1703
+ var CspReportOnlyProvider = class extends BaseProvider {
1704
+ /**
1705
+ * @param {boolean} use_hashes
1706
+ * @param {import('types').CspDirectives} directives
1707
+ * @param {string} nonce
1708
+ */
1709
+ constructor(use_hashes, directives, nonce) {
1710
+ super(use_hashes, directives, nonce);
1711
+ if (Object.values(directives).filter((v) => !!v).length > 0) {
1712
+ const has_report_to = directives["report-to"]?.length ?? false;
1713
+ const has_report_uri = directives["report-uri"]?.length ?? false;
1714
+ if (!has_report_to && !has_report_uri) throw Error("`content-security-policy-report-only` must be specified with either the `report-to` or `report-uri` directives, or both");
1715
+ }
1716
+ }
1717
+ };
1718
+ var Csp = class {
1719
+ /** @readonly */
1720
+ nonce = generate_nonce();
1721
+ /** @type {CspProvider} */
1722
+ csp_provider;
1723
+ /** @type {CspReportOnlyProvider} */
1724
+ report_only_provider;
1725
+ /**
1726
+ * @param {import('./types.js').CspConfig} config
1727
+ * @param {import('./types.js').CspOpts} opts
1728
+ */
1729
+ constructor({ mode, directives, reportOnly }, { prerender }) {
1730
+ const use_hashes = mode === "hash" || mode === "auto" && prerender;
1731
+ this.csp_provider = new CspProvider(use_hashes, directives, this.nonce);
1732
+ this.report_only_provider = new CspReportOnlyProvider(use_hashes, reportOnly, this.nonce);
1733
+ }
1734
+ get script_needs_hash() {
1735
+ return this.csp_provider.script_needs_hash || this.report_only_provider.script_needs_hash;
1736
+ }
1737
+ get script_needs_nonce() {
1738
+ return this.csp_provider.script_needs_nonce || this.report_only_provider.script_needs_nonce;
1739
+ }
1740
+ get style_needs_nonce() {
1741
+ return this.csp_provider.style_needs_nonce || this.report_only_provider.style_needs_nonce;
1742
+ }
1743
+ /** @param {string} content */
1744
+ add_script(content) {
1745
+ this.csp_provider.add_script(content);
1746
+ this.report_only_provider.add_script(content);
1747
+ }
1748
+ /** @param {`sha256-${string}`[]} hashes */
1749
+ add_script_hashes(hashes) {
1750
+ this.csp_provider.add_script_hashes(hashes);
1751
+ this.report_only_provider.add_script_hashes(hashes);
1752
+ }
1753
+ /** @param {string} content */
1754
+ add_style(content) {
1755
+ this.csp_provider.add_style(content);
1756
+ this.report_only_provider.add_style(content);
1757
+ }
1758
+ };
1759
+ //#endregion
1760
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/server_routing.js
1761
+ /**
1762
+ * @param {import('types').SSRClientRoute} route
1763
+ * @param {URL} url
1764
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
1765
+ * @returns {string}
1766
+ */
1767
+ function generate_route_object(route, url, manifest) {
1768
+ const { errors, layouts, leaf } = route;
1769
+ const nodes = [
1770
+ ...errors,
1771
+ ...layouts.map((l) => l?.[1]),
1772
+ leaf[1]
1773
+ ].filter((n) => typeof n === "number").map((n) => `'${n}': () => ${create_client_import(manifest._.client.nodes?.[n], url)}`).join(",\n ");
1774
+ /** @type {import('types').CSRRouteServer} */
1775
+ return [
1776
+ `{\n\tid: ${s(route.id)}`,
1777
+ `errors: ${s(route.errors)}`,
1778
+ `layouts: ${s(route.layouts)}`,
1779
+ `leaf: ${s(route.leaf)}`,
1780
+ `nodes: {\n\t\t${nodes}\n\t}\n}`
1781
+ ].join(",\n ");
1782
+ }
1783
+ /**
1784
+ * @param {string | undefined} import_path
1785
+ * @param {URL} url
1786
+ */
1787
+ function create_client_import(import_path, url) {
1788
+ if (!import_path) return "Promise.resolve({})";
1789
+ if (import_path[0] === "/") return `import('${import_path}')`;
1790
+ if (assets !== "") return `import('${assets}/${import_path}')`;
1791
+ let path = get_relative_path(url.pathname, `${base}/${import_path}`);
1792
+ if (path[0] !== ".") path = `./${path}`;
1793
+ return `import('${path}')`;
1794
+ }
1795
+ /**
1796
+ * @param {string} resolved_path
1797
+ * @param {URL} url
1798
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
1799
+ * @returns {Promise<Response>}
1800
+ */
1801
+ async function resolve_route(resolved_path, url, manifest) {
1802
+ if (!manifest._.client.routes) return text("Server-side route resolution disabled", { status: 400 });
1803
+ const matchers = await manifest._.matchers();
1804
+ const result = find_route(resolved_path, manifest._.client.routes, matchers);
1805
+ return create_server_routing_response(result?.route ?? null, result?.params ?? {}, url, manifest).response;
1806
+ }
1807
+ /**
1808
+ * @param {import('types').SSRClientRoute | null} route
1809
+ * @param {Partial<Record<string, string>>} params
1810
+ * @param {URL} url
1811
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
1812
+ * @returns {{response: Response, body: string}}
1813
+ */
1814
+ function create_server_routing_response(route, params, url, manifest) {
1815
+ const headers = new Headers({ "content-type": "application/javascript; charset=utf-8" });
1816
+ if (route) {
1817
+ const csr_route = generate_route_object(route, url, manifest);
1818
+ const body = `${create_css_import(route, url, manifest)}\nexport const route = ${csr_route}; export const params = ${JSON.stringify(params)};`;
1819
+ return {
1820
+ response: text(body, { headers }),
1821
+ body
1822
+ };
1823
+ } else return {
1824
+ response: text("", { headers }),
1825
+ body: ""
1826
+ };
1827
+ }
1828
+ /**
1829
+ * This function generates the client-side import for the CSS files that are
1830
+ * associated with the current route. Vite takes care of that when using
1831
+ * client-side route resolution, but for server-side resolution it does
1832
+ * not know about the CSS files automatically.
1833
+ *
1834
+ * @param {import('types').SSRClientRoute} route
1835
+ * @param {URL} url
1836
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
1837
+ * @returns {string}
1838
+ */
1839
+ function create_css_import(route, url, manifest) {
1840
+ const { errors, layouts, leaf } = route;
1841
+ let css = "";
1842
+ for (const node of [
1843
+ ...errors,
1844
+ ...layouts.map((l) => l?.[1]),
1845
+ leaf[1]
1846
+ ]) {
1847
+ if (typeof node !== "number") continue;
1848
+ const node_css = manifest._.client.css?.[node];
1849
+ for (const css_path of node_css ?? []) css += `'${assets || base}/${css_path}',`;
1850
+ }
1851
+ if (!css) return "";
1852
+ return `${create_client_import(manifest._.client.start, url)}.then(x => x.load_css([${css}]));`;
1853
+ }
1854
+ //#endregion
1855
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/render.js
1856
+ var updated = {
1857
+ ...readable(false),
1858
+ check: () => false
1859
+ };
1860
+ /**
1861
+ * Creates the HTML response.
1862
+ * @param {{
1863
+ * branch: Array<import('./types.js').Loaded>;
1864
+ * fetched: Array<import('./types.js').Fetched>;
1865
+ * options: import('types').SSROptions;
1866
+ * manifest: import('@sveltejs/kit').SSRManifest;
1867
+ * state: import('types').SSRState;
1868
+ * page_config: { ssr: boolean; csr: boolean };
1869
+ * status: number;
1870
+ * error: App.Error | null;
1871
+ * event: import('@sveltejs/kit').RequestEvent;
1872
+ * event_state: import('types').RequestState;
1873
+ * resolve_opts: import('types').RequiredResolveOptions;
1874
+ * action_result?: import('@sveltejs/kit').ActionResult;
1875
+ * data_serializer: import('./types.js').ServerDataSerializer;
1876
+ * error_components?: Array<import('types').SSRComponent | undefined>
1877
+ * }} opts
1878
+ */
1879
+ async function render_response({ branch, fetched, options, manifest, state, page_config, status, error = null, event, event_state, resolve_opts, action_result, data_serializer, error_components }) {
1880
+ if (state.prerendering) {
1881
+ if (options.csp.mode === "nonce") throw new Error("Cannot use prerendering if config.kit.csp.mode === \"nonce\"");
1882
+ if (options.app_template_contains_nonce) throw new Error("Cannot use prerendering if page template contains %sveltekit.nonce%");
1883
+ }
1884
+ const { client } = manifest._;
1885
+ const modulepreloads = new Set(client.imports);
1886
+ const stylesheets = new Set(client.stylesheets);
1887
+ const fonts = new Set(client.fonts);
1888
+ /**
1889
+ * The value of the Link header that is added to the response when not prerendering
1890
+ * @type {Set<string>}
1891
+ */
1892
+ const link_headers = /* @__PURE__ */ new Set();
1893
+ /** @type {Map<string, string>} */
1894
+ const inline_styles = /* @__PURE__ */ new Map();
1895
+ /** @type {ReturnType<typeof options.root.render>} */
1896
+ let rendered;
1897
+ const form_value = action_result?.type === "success" || action_result?.type === "failure" ? action_result.data ?? null : null;
1898
+ /** @type {string} */
1899
+ let base$1 = base;
1900
+ /** @type {string} */
1901
+ let assets$1 = assets;
1902
+ /**
1903
+ * An expression that will evaluate in the client to determine the resolved base path.
1904
+ * We use a relative path when possible to support IPFS, the internet archive, etc.
1905
+ */
1906
+ let base_expression = s(base);
1907
+ const csp = new Csp(options.csp, { prerender: !!state.prerendering });
1908
+ if (!state.prerendering?.fallback) {
1909
+ base$1 = event.url.pathname.slice(base.length).split("/").slice(2).map(() => "..").join("/") || ".";
1910
+ base_expression = `new URL(${s(base$1)}, location).pathname.slice(0, -1)`;
1911
+ if (!assets || assets[0] === "/" && assets !== "/_svelte_kit_assets") assets$1 = base$1;
1912
+ } else if (options.hash_routing) base_expression = "new URL('.', location).pathname.slice(0, -1)";
1913
+ if (page_config.ssr) {
1914
+ /** @type {Record<string, any>} */
1915
+ const props = {
1916
+ stores: {
1917
+ page: writable(null),
1918
+ navigating: writable(null),
1919
+ updated
1920
+ },
1921
+ constructors: await Promise.all(branch.map(({ node }) => {
1922
+ if (!node.component) throw new Error(`Missing +page.svelte component for route ${event.route.id}`);
1923
+ return node.component();
1924
+ })),
1925
+ form: form_value
1926
+ };
1927
+ if (error_components) {
1928
+ if (error) props.error = error;
1929
+ props.errors = error_components;
1930
+ }
1931
+ let data = {};
1932
+ for (let i = 0; i < branch.length; i += 1) {
1933
+ data = {
1934
+ ...data,
1935
+ ...branch[i].data
1936
+ };
1937
+ props[`data_${i}`] = data;
1938
+ }
1939
+ props.page = {
1940
+ error,
1941
+ params: event.params,
1942
+ route: event.route,
1943
+ status,
1944
+ url: event.url,
1945
+ data,
1946
+ form: form_value,
1947
+ state: {}
1948
+ };
1949
+ const render_opts = {
1950
+ context: new Map([["__request__", { page: props.page }]]),
1951
+ csp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash },
1952
+ transformError: error_components ? async (e) => {
1953
+ const transformed = await handle_error_and_jsonify(event, event_state, options, e);
1954
+ props.page.error = props.error = error = transformed;
1955
+ props.page.status = status = get_status(e);
1956
+ return transformed;
1957
+ } : void 0
1958
+ };
1959
+ try {
1960
+ event_state.allows_commands = false;
1961
+ rendered = await with_request_store({
1962
+ event,
1963
+ state: event_state
1964
+ }, async () => {
1965
+ override({
1966
+ base: base$1,
1967
+ assets: assets$1
1968
+ });
1969
+ const maybe_promise = options.root.render(props, render_opts);
1970
+ const rendered = options.async && "then" in maybe_promise ? maybe_promise.then((r) => r) : maybe_promise;
1971
+ if (options.async) reset();
1972
+ const { head, html, css, hashes } = options.async ? await rendered : rendered;
1973
+ if (hashes) csp.add_script_hashes(hashes.script);
1974
+ return {
1975
+ head,
1976
+ html,
1977
+ css,
1978
+ hashes
1979
+ };
1980
+ });
1981
+ } finally {
1982
+ reset();
1983
+ }
1984
+ for (const { node } of branch) {
1985
+ for (const url of node.imports) modulepreloads.add(url);
1986
+ for (const url of node.stylesheets) stylesheets.add(url);
1987
+ for (const url of node.fonts) fonts.add(url);
1988
+ if (node.inline_styles && !client.inline) Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
1989
+ if (typeof css === "string") {
1990
+ inline_styles.set(filename, css);
1991
+ return;
1992
+ }
1993
+ inline_styles.set(filename, css(`${assets$1}/${app_dir}/immutable/assets`, assets$1));
1994
+ });
1995
+ }
1996
+ } else rendered = {
1997
+ head: "",
1998
+ html: "",
1999
+ css: {
2000
+ code: "",
2001
+ map: null
2002
+ },
2003
+ hashes: { script: [] }
2004
+ };
2005
+ const head = new Head(rendered.head, !!state.prerendering);
2006
+ let body = rendered.html;
2007
+ /** @param {string} path */
2008
+ const prefixed = (path) => {
2009
+ if (path.startsWith("/")) return base + path;
2010
+ return `${assets$1}/${path}`;
2011
+ };
2012
+ const style = client.inline ? client.inline?.style : Array.from(inline_styles.values()).join("\n");
2013
+ if (style) {
2014
+ const attributes = [];
2015
+ if (csp.style_needs_nonce) attributes.push(`nonce="${csp.nonce}"`);
2016
+ csp.add_style(style);
2017
+ head.add_style(style, attributes);
2018
+ }
2019
+ for (const dep of stylesheets) {
2020
+ const path = prefixed(dep);
2021
+ const attributes = ["rel=\"stylesheet\""];
2022
+ if (inline_styles.has(dep)) attributes.push("disabled", "media=\"(max-width: 0)\"");
2023
+ else if (resolve_opts.preload({
2024
+ type: "css",
2025
+ path
2026
+ })) link_headers.add(`<${encodeURI(path)}>; rel="preload"; as="style"; nopush`);
2027
+ head.add_stylesheet(path, attributes);
2028
+ }
2029
+ for (const dep of fonts) {
2030
+ const path = prefixed(dep);
2031
+ if (resolve_opts.preload({
2032
+ type: "font",
2033
+ path
2034
+ })) {
2035
+ const ext = dep.slice(dep.lastIndexOf(".") + 1);
2036
+ head.add_link_tag(path, [
2037
+ "rel=\"preload\"",
2038
+ "as=\"font\"",
2039
+ `type="font/${ext}"`,
2040
+ "crossorigin"
2041
+ ]);
2042
+ link_headers.add(`<${encodeURI(path)}>; rel="preload"; as="font"; type="font/${ext}"; crossorigin; nopush`);
2043
+ }
2044
+ }
2045
+ const global = get_global_name(options);
2046
+ const { data, chunks } = data_serializer.get_data(csp);
2047
+ 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 ")}`;
2048
+ if (page_config.csr) {
2049
+ const route = manifest._.client.routes?.find((r) => r.id === event.route.id) ?? null;
2050
+ if (client.uses_env_dynamic_public && state.prerendering) modulepreloads.add(`${app_dir}/env.js`);
2051
+ if (!client.inline) {
2052
+ const included_modulepreloads = Array.from(modulepreloads, (dep) => prefixed(dep)).filter((path) => resolve_opts.preload({
2053
+ type: "js",
2054
+ path
2055
+ }));
2056
+ for (const path of included_modulepreloads) {
2057
+ link_headers.add(`<${encodeURI(path)}>; rel="modulepreload"; nopush`);
2058
+ if (options.preload_strategy !== "modulepreload") head.add_script_preload(path);
2059
+ else head.add_link_tag(path, ["rel=\"modulepreload\""]);
2060
+ }
2061
+ }
2062
+ if (manifest._.client.routes && state.prerendering && !state.prerendering.fallback) {
2063
+ const pathname = add_resolution_suffix(event.url.pathname);
2064
+ state.prerendering.dependencies.set(pathname, create_server_routing_response(route, event.params, new URL(pathname, event.url), manifest));
2065
+ }
2066
+ const blocks = [];
2067
+ const load_env_eagerly = client.uses_env_dynamic_public && state.prerendering;
2068
+ const properties = [`base: ${base_expression}`];
2069
+ if (assets) properties.push(`assets: ${s(assets)}`);
2070
+ if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : s(public_env)}`);
2071
+ if (chunks) {
2072
+ blocks.push("const deferred = new Map();");
2073
+ properties.push(`defer: (id) => new Promise((fulfil, reject) => {
2074
+ deferred.set(id, { fulfil, reject });
2075
+ })`);
2076
+ let app_declaration = "";
2077
+ if (Object.keys(options.hooks.transport).length > 0) if (client.inline) app_declaration = `const app = __sveltekit_${options.version_hash}.app.app;`;
2078
+ else if (client.app) app_declaration = `const app = await import(${s(prefixed(client.app))});`;
2079
+ else app_declaration = `const { app } = await import(${s(prefixed(client.start))});`;
2080
+ const prelude = app_declaration ? `${app_declaration}
2081
+ const [data, error] = fn(app);` : `const [data, error] = fn();`;
2082
+ properties.push(`resolve: async (id, fn) => {
2083
+ ${prelude}
2084
+
2085
+ const try_to_resolve = () => {
2086
+ if (!deferred.has(id)) {
2087
+ setTimeout(try_to_resolve, 0);
2088
+ return;
2089
+ }
2090
+ const { fulfil, reject } = deferred.get(id);
2091
+ deferred.delete(id);
2092
+ if (error) reject(error);
2093
+ else fulfil(data);
2094
+ }
2095
+ try_to_resolve();
2096
+ }`);
2097
+ }
2098
+ blocks.push(`${global} = {
2099
+ ${properties.join(",\n ")}
2100
+ };`);
2101
+ const args = ["element"];
2102
+ blocks.push("const element = document.currentScript.parentElement;");
2103
+ if (page_config.ssr) {
2104
+ const serialized = {
2105
+ form: "null",
2106
+ error: "null"
2107
+ };
2108
+ if (form_value) serialized.form = uneval_action_response(form_value, event.route.id, options.hooks.transport);
2109
+ if (error) serialized.error = uneval(error);
2110
+ const hydrate = [
2111
+ `node_ids: [${branch.map(({ node }) => node.index).join(", ")}]`,
2112
+ `data: ${data}`,
2113
+ `form: ${serialized.form}`,
2114
+ `error: ${serialized.error}`
2115
+ ];
2116
+ if (status !== 200) hydrate.push(`status: ${status}`);
2117
+ if (manifest._.client.routes) {
2118
+ if (route) {
2119
+ const stringified = generate_route_object(route, event.url, manifest).replaceAll("\n", "\n ");
2120
+ hydrate.push(`params: ${uneval(event.params)}`, `server_route: ${stringified}`);
2121
+ }
2122
+ } else if (options.embedded) hydrate.push(`params: ${uneval(event.params)}`, `route: ${s(event.route)}`);
2123
+ const indent = " ".repeat(load_env_eagerly ? 7 : 6);
2124
+ args.push(`{\n${indent}\t${hydrate.join(`,\n${indent}\t`)}\n${indent}}`);
2125
+ }
2126
+ const { remote_data: remote_cache } = event_state;
2127
+ let serialized_remote_data = "";
2128
+ if (remote_cache) {
2129
+ /** @type {Record<string, any>} */
2130
+ const remote = {};
2131
+ for (const [info, cache] of remote_cache) {
2132
+ if (!info.id) continue;
2133
+ for (const key in cache) {
2134
+ const remote_key = create_remote_key(info.id, key);
2135
+ if (event_state.refreshes?.[remote_key] !== void 0) remote[remote_key] = await cache[key];
2136
+ else {
2137
+ const result = await Promise.race([Promise.resolve(cache[key]).then((v) => ({
2138
+ settled: true,
2139
+ value: v
2140
+ }), (e) => ({
2141
+ settled: true,
2142
+ error: e
2143
+ })), new Promise((resolve) => {
2144
+ queueMicrotask(() => resolve({ settled: false }));
2145
+ })]);
2146
+ if (result.settled) {
2147
+ if ("error" in result) throw result.error;
2148
+ remote[remote_key] = result.value;
2149
+ }
2150
+ }
2151
+ }
2152
+ }
2153
+ const replacer = (thing) => {
2154
+ for (const key in options.hooks.transport) {
2155
+ const encoded = options.hooks.transport[key].encode(thing);
2156
+ if (encoded) return `app.decode('${key}', ${uneval(encoded, replacer)})`;
2157
+ }
2158
+ };
2159
+ serialized_remote_data = `${global}.data = ${uneval(remote, replacer)};\n\n\t\t\t\t\t\t`;
2160
+ }
2161
+ const boot = client.inline ? `${client.inline.script}
2162
+
2163
+ ${serialized_remote_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
2164
+ import(${s(prefixed(client.start))}),
2165
+ import(${s(prefixed(client.app))})
2166
+ ]).then(([kit, app]) => {
2167
+ ${serialized_remote_data}kit.start(app, ${args.join(", ")});
2168
+ });` : `import(${s(prefixed(client.start))}).then((app) => {
2169
+ ${serialized_remote_data}app.start(${args.join(", ")})
2170
+ });`;
2171
+ if (load_env_eagerly) blocks.push(`import(${s(`${base$1}/${app_dir}/env.js`)}).then(({ env }) => {
2172
+ ${global}.env = env;
2173
+
2174
+ ${boot.replace(/\n/g, "\n ")}
2175
+ });`);
2176
+ else blocks.push(boot);
2177
+ if (options.service_worker) {
2178
+ let opts = "";
2179
+ if (options.service_worker_options != null) opts = `, ${s({ ...options.service_worker_options })}`;
2180
+ blocks.push(`if ('serviceWorker' in navigator) {
2181
+ addEventListener('load', function () {
2182
+ navigator.serviceWorker.register('${prefixed("service-worker.js")}'${opts});
2183
+ });
2184
+ }`);
2185
+ }
2186
+ const init_app = `
2187
+ {
2188
+ ${blocks.join("\n\n ")}
2189
+ }
2190
+ `;
2191
+ csp.add_script(init_app);
2192
+ body += `\n\t\t\t<script${csp.script_needs_nonce ? ` nonce="${csp.nonce}"` : ""}>${init_app}<\/script>\n\t\t`;
2193
+ }
2194
+ const headers = new Headers({
2195
+ "x-sveltekit-page": "true",
2196
+ "content-type": "text/html"
2197
+ });
2198
+ if (state.prerendering) {
2199
+ const csp_headers = csp.csp_provider.get_meta();
2200
+ if (csp_headers) head.add_http_equiv(csp_headers);
2201
+ if (state.prerendering.cache) head.add_http_equiv(`<meta http-equiv="cache-control" content="${state.prerendering.cache}">`);
2202
+ } else {
2203
+ const csp_header = csp.csp_provider.get_header();
2204
+ if (csp_header) headers.set("content-security-policy", csp_header);
2205
+ const report_only_header = csp.report_only_provider.get_header();
2206
+ if (report_only_header) headers.set("content-security-policy-report-only", report_only_header);
2207
+ if (link_headers.size) headers.set("link", Array.from(link_headers).join(", "));
2208
+ }
2209
+ const html = options.templates.app({
2210
+ head: head.build(),
2211
+ body,
2212
+ assets: assets$1,
2213
+ nonce: csp.nonce,
2214
+ env: public_env
2215
+ });
2216
+ const transformed = await resolve_opts.transformPageChunk({
2217
+ html,
2218
+ done: true
2219
+ }) || "";
2220
+ if (!chunks) headers.set("etag", `"${hash(transformed)}"`);
2221
+ return !chunks ? text(transformed, {
2222
+ status,
2223
+ headers
2224
+ }) : new Response(new ReadableStream({
2225
+ async start(controller) {
2226
+ controller.enqueue(text_encoder.encode(transformed + "\n"));
2227
+ for await (const chunk of chunks) if (chunk.length) controller.enqueue(text_encoder.encode(chunk));
2228
+ controller.close();
2229
+ },
2230
+ type: "bytes"
2231
+ }), { headers });
2232
+ }
2233
+ var Head = class {
2234
+ #rendered;
2235
+ #prerendering;
2236
+ /** @type {string[]} */
2237
+ #http_equiv = [];
2238
+ /** @type {string[]} */
2239
+ #link_tags = [];
2240
+ /** @type {string[]} */
2241
+ #script_preloads = [];
2242
+ /** @type {string[]} */
2243
+ #style_tags = [];
2244
+ /** @type {string[]} */
2245
+ #stylesheet_links = [];
2246
+ /**
2247
+ * @param {string} rendered
2248
+ * @param {boolean} prerendering
2249
+ */
2250
+ constructor(rendered, prerendering) {
2251
+ this.#rendered = rendered;
2252
+ this.#prerendering = prerendering;
2253
+ }
2254
+ build() {
2255
+ return [
2256
+ ...this.#http_equiv,
2257
+ ...this.#link_tags,
2258
+ ...this.#script_preloads,
2259
+ this.#rendered,
2260
+ ...this.#style_tags,
2261
+ ...this.#stylesheet_links
2262
+ ].join("\n ");
2263
+ }
2264
+ /**
2265
+ * @param {string} style
2266
+ * @param {string[]} attributes
2267
+ */
2268
+ add_style(style, attributes) {
2269
+ this.#style_tags.push(`<style${attributes.length ? " " + attributes.join(" ") : ""}>${style}</style>`);
2270
+ }
2271
+ /**
2272
+ * @param {string} href
2273
+ * @param {string[]} attributes
2274
+ */
2275
+ add_stylesheet(href, attributes) {
2276
+ this.#stylesheet_links.push(`<link href="${href}" ${attributes.join(" ")}>`);
2277
+ }
2278
+ /** @param {string} href */
2279
+ add_script_preload(href) {
2280
+ this.#script_preloads.push(`<link rel="preload" as="script" crossorigin="anonymous" href="${href}">`);
2281
+ }
2282
+ /**
2283
+ * @param {string} href
2284
+ * @param {string[]} attributes
2285
+ */
2286
+ add_link_tag(href, attributes) {
2287
+ if (!this.#prerendering) return;
2288
+ this.#link_tags.push(`<link href="${href}" ${attributes.join(" ")}>`);
2289
+ }
2290
+ /** @param {string} tag */
2291
+ add_http_equiv(tag) {
2292
+ if (!this.#prerendering) return;
2293
+ this.#http_equiv.push(tag);
2294
+ }
2295
+ };
2296
+ //#endregion
2297
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/page_nodes.js
2298
+ var PageNodes = class {
2299
+ data;
2300
+ /**
2301
+ * @param {Array<import('types').SSRNode | undefined>} nodes
2302
+ */
2303
+ constructor(nodes) {
2304
+ this.data = nodes;
2305
+ }
2306
+ layouts() {
2307
+ return this.data.slice(0, -1);
2308
+ }
2309
+ page() {
2310
+ return this.data.at(-1);
2311
+ }
2312
+ validate() {
2313
+ for (const layout of this.layouts()) if (layout) {
2314
+ validate_layout_server_exports(layout.server, layout.server_id);
2315
+ validate_layout_exports(layout.universal, layout.universal_id);
2316
+ }
2317
+ const page = this.page();
2318
+ if (page) {
2319
+ validate_page_server_exports(page.server, page.server_id);
2320
+ validate_page_exports(page.universal, page.universal_id);
2321
+ }
2322
+ }
2323
+ /**
2324
+ * @template {'prerender' | 'ssr' | 'csr' | 'trailingSlash'} Option
2325
+ * @param {Option} option
2326
+ * @returns {Value | undefined}
2327
+ */
2328
+ #get_option(option) {
2329
+ /** @typedef {(import('types').UniversalNode | import('types').ServerNode)[Option]} Value */
2330
+ return this.data.reduce((value, node) => {
2331
+ return node?.universal?.[option] ?? node?.server?.[option] ?? value;
2332
+ }, void 0);
2333
+ }
2334
+ csr() {
2335
+ return this.#get_option("csr") ?? true;
2336
+ }
2337
+ ssr() {
2338
+ return this.#get_option("ssr") ?? true;
2339
+ }
2340
+ prerender() {
2341
+ return this.#get_option("prerender") ?? false;
2342
+ }
2343
+ trailing_slash() {
2344
+ return this.#get_option("trailingSlash") ?? "never";
2345
+ }
2346
+ get_config() {
2347
+ /** @type {any} */
2348
+ let current = {};
2349
+ for (const node of this.data) {
2350
+ if (!node?.universal?.config && !node?.server?.config) continue;
2351
+ current = {
2352
+ ...current,
2353
+ ...node?.universal?.config,
2354
+ ...node?.server?.config
2355
+ };
2356
+ }
2357
+ return Object.keys(current).length ? current : void 0;
2358
+ }
2359
+ should_prerender_data() {
2360
+ return this.data.some((node) => node?.server?.load || node?.server?.trailingSlash !== void 0);
2361
+ }
2362
+ };
2363
+ //#endregion
2364
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/respond_with_error.js
2365
+ /**
2366
+ * @typedef {import('./types.js').Loaded} Loaded
2367
+ */
2368
+ /**
2369
+ * @param {{
2370
+ * event: import('@sveltejs/kit').RequestEvent;
2371
+ * event_state: import('types').RequestState;
2372
+ * options: import('types').SSROptions;
2373
+ * manifest: import('@sveltejs/kit').SSRManifest;
2374
+ * state: import('types').SSRState;
2375
+ * status: number;
2376
+ * error: unknown;
2377
+ * resolve_opts: import('types').RequiredResolveOptions;
2378
+ * }} opts
2379
+ */
2380
+ async function respond_with_error({ event, event_state, options, manifest, state, status, error, resolve_opts }) {
2381
+ if (event.request.headers.get("x-sveltekit-error")) return static_error_page(
2382
+ options,
2383
+ status,
2384
+ /** @type {Error} */
2385
+ error.message
2386
+ );
2387
+ /** @type {import('./types.js').Fetched[]} */
2388
+ const fetched = [];
2389
+ try {
2390
+ const branch = [];
2391
+ const default_layout = await manifest._.nodes[0]();
2392
+ const nodes = new PageNodes([default_layout]);
2393
+ const ssr = nodes.ssr();
2394
+ const csr = nodes.csr();
2395
+ const data_serializer = server_data_serializer(event, event_state, options);
2396
+ if (ssr) {
2397
+ state.error = true;
2398
+ const server_data_promise = load_server_data({
2399
+ event,
2400
+ event_state,
2401
+ state,
2402
+ node: default_layout,
2403
+ parent: async () => ({})
2404
+ });
2405
+ const server_data = await server_data_promise;
2406
+ data_serializer.add_node(0, server_data);
2407
+ const data = await load_data({
2408
+ event,
2409
+ event_state,
2410
+ fetched,
2411
+ node: default_layout,
2412
+ parent: async () => ({}),
2413
+ resolve_opts,
2414
+ server_data_promise,
2415
+ state,
2416
+ csr
2417
+ });
2418
+ branch.push({
2419
+ node: default_layout,
2420
+ server_data,
2421
+ data
2422
+ }, {
2423
+ node: await manifest._.nodes[1](),
2424
+ data: null,
2425
+ server_data: null
2426
+ });
2427
+ }
2428
+ return await render_response({
2429
+ options,
2430
+ manifest,
2431
+ state,
2432
+ page_config: {
2433
+ ssr,
2434
+ csr
2435
+ },
2436
+ status,
2437
+ error: await handle_error_and_jsonify(event, event_state, options, error),
2438
+ branch,
2439
+ error_components: [],
2440
+ fetched,
2441
+ event,
2442
+ event_state,
2443
+ resolve_opts,
2444
+ data_serializer
2445
+ });
2446
+ } catch (e) {
2447
+ if (e instanceof Redirect) return redirect_response(e.status, e.location);
2448
+ return static_error_page(options, get_status(e), (await handle_error_and_jsonify(event, event_state, options, e)).message);
2449
+ }
2450
+ }
2451
+ //#endregion
2452
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/remote.js
2453
+ /** @import { ActionResult, RemoteForm, RequestEvent, SSRManifest } from '@sveltejs/kit' */
2454
+ /** @import { RemoteFunctionResponse, RemoteInfo, RequestState, SSROptions } from 'types' */
2455
+ /** @type {typeof handle_remote_call_internal} */
2456
+ async function handle_remote_call(event, state, options, manifest, id) {
2457
+ return record_span({
2458
+ name: "sveltekit.remote.call",
2459
+ attributes: { },
2460
+ fn: (current) => {
2461
+ const traced_event = merge_tracing(event, current);
2462
+ return with_request_store({
2463
+ event: traced_event,
2464
+ state
2465
+ }, () => handle_remote_call_internal(traced_event, state, options, manifest, id));
2466
+ }
2467
+ });
2468
+ }
2469
+ /**
2470
+ * @param {RequestEvent} event
2471
+ * @param {RequestState} state
2472
+ * @param {SSROptions} options
2473
+ * @param {SSRManifest} manifest
2474
+ * @param {string} id
2475
+ */
2476
+ async function handle_remote_call_internal(event, state, options, manifest, id) {
2477
+ const [hash, name, additional_args] = id.split("/");
2478
+ const remotes = manifest._.remotes;
2479
+ if (!remotes[hash]) error(404);
2480
+ const fn = (await remotes[hash]()).default[name];
2481
+ if (!fn) error(404);
2482
+ /** @type {RemoteInfo} */
2483
+ const info = fn.__;
2484
+ const transport = options.hooks.transport;
2485
+ event.tracing.current.setAttributes({
2486
+ "sveltekit.remote.call.type": info.type,
2487
+ "sveltekit.remote.call.name": info.name
2488
+ });
2489
+ /** @type {string[] | undefined} */
2490
+ let form_client_refreshes;
2491
+ try {
2492
+ if (info.type === "query_batch") {
2493
+ 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}`);
2494
+ /** @type {{ payloads: string[] }} */
2495
+ const { payloads } = await event.request.json();
2496
+ const args = await Promise.all(payloads.map((payload) => parse_remote_arg(payload, transport)));
2497
+ return json({
2498
+ type: "result",
2499
+ result: stringify(await with_request_store({
2500
+ event,
2501
+ state
2502
+ }, () => info.run(args, options)), transport)
2503
+ });
2504
+ }
2505
+ if (info.type === "form") {
2506
+ if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`form\` functions must be invoked via POST request, not ${event.request.method}`);
2507
+ 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")}`);
2508
+ const { data, meta, form_data } = await deserialize_binary_form(event.request);
2509
+ form_client_refreshes = meta.remote_refreshes;
2510
+ if (additional_args && !("id" in data)) data.id = JSON.parse(decodeURIComponent(additional_args));
2511
+ const fn = info.fn;
2512
+ const result = await with_request_store({
2513
+ event,
2514
+ state
2515
+ }, () => fn(data, meta, form_data));
2516
+ return json({
2517
+ type: "result",
2518
+ result: stringify(result, transport),
2519
+ refreshes: result.issues ? void 0 : await serialize_refreshes(meta.remote_refreshes)
2520
+ });
2521
+ }
2522
+ if (info.type === "command") {
2523
+ /** @type {{ payload: string, refreshes: string[] }} */
2524
+ const { payload, refreshes } = await event.request.json();
2525
+ const arg = parse_remote_arg(payload, transport);
2526
+ return json({
2527
+ type: "result",
2528
+ result: stringify(await with_request_store({
2529
+ event,
2530
+ state
2531
+ }, () => fn(arg)), transport),
2532
+ refreshes: await serialize_refreshes(refreshes)
2533
+ });
2534
+ }
2535
+ const payload = info.type === "prerender" ? additional_args : new URL(event.request.url).searchParams.get("payload");
2536
+ return json({
2537
+ type: "result",
2538
+ result: stringify(await with_request_store({
2539
+ event,
2540
+ state
2541
+ }, () => fn(parse_remote_arg(payload, transport))), transport)
2542
+ });
2543
+ } catch (error) {
2544
+ if (error instanceof Redirect) return json({
2545
+ type: "redirect",
2546
+ location: error.location,
2547
+ refreshes: await serialize_refreshes(form_client_refreshes)
2548
+ });
2549
+ const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2550
+ return json({
2551
+ type: "error",
2552
+ error: await handle_error_and_jsonify(event, state, options, error),
2553
+ status
2554
+ }, {
2555
+ status: state.prerendering ? status : void 0,
2556
+ headers: { "cache-control": "private, no-store" }
2557
+ });
2558
+ }
2559
+ /**
2560
+ * @param {string[]=} client_refreshes
2561
+ */
2562
+ async function serialize_refreshes(client_refreshes) {
2563
+ const refreshes = state.refreshes ?? {};
2564
+ if (client_refreshes) for (const key of client_refreshes) {
2565
+ if (refreshes[key] !== void 0) continue;
2566
+ const [hash, name, payload] = key.split("/");
2567
+ const loader = manifest._.remotes[hash];
2568
+ const fn = (await loader?.())?.default?.[name];
2569
+ if (!fn) error(400, "Bad Request");
2570
+ refreshes[key] = with_request_store({
2571
+ event,
2572
+ state
2573
+ }, () => fn(parse_remote_arg(payload, transport)));
2574
+ }
2575
+ if (Object.keys(refreshes).length === 0) return;
2576
+ return stringify(Object.fromEntries(await Promise.all(Object.entries(refreshes).map(async ([key, promise]) => [key, await promise]))), transport);
2577
+ }
2578
+ }
2579
+ /** @type {typeof handle_remote_form_post_internal} */
2580
+ async function handle_remote_form_post(event, state, manifest, id) {
2581
+ return record_span({
2582
+ name: "sveltekit.remote.form.post",
2583
+ attributes: { },
2584
+ fn: (current) => {
2585
+ const traced_event = merge_tracing(event, current);
2586
+ return with_request_store({
2587
+ event: traced_event,
2588
+ state
2589
+ }, () => handle_remote_form_post_internal(traced_event, state, manifest, id));
2590
+ }
2591
+ });
2592
+ }
2593
+ /**
2594
+ * @param {RequestEvent} event
2595
+ * @param {RequestState} state
2596
+ * @param {SSRManifest} manifest
2597
+ * @param {string} id
2598
+ * @returns {Promise<ActionResult>}
2599
+ */
2600
+ async function handle_remote_form_post_internal(event, state, manifest, id) {
2601
+ const [hash, name, action_id] = id.split("/");
2602
+ let form = (await manifest._.remotes[hash]?.())?.default[name];
2603
+ if (!form) {
2604
+ event.setHeaders({ allow: "GET" });
2605
+ return {
2606
+ type: "error",
2607
+ error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
2608
+ };
2609
+ }
2610
+ if (action_id) form = with_request_store({
2611
+ event,
2612
+ state
2613
+ }, () => form.for(JSON.parse(action_id)));
2614
+ try {
2615
+ const fn = form.__.fn;
2616
+ const { data, meta, form_data } = await deserialize_binary_form(event.request);
2617
+ if (action_id && !("id" in data)) data.id = JSON.parse(decodeURIComponent(action_id));
2618
+ await with_request_store({
2619
+ event,
2620
+ state
2621
+ }, () => fn(data, meta, form_data));
2622
+ return {
2623
+ type: "success",
2624
+ status: 200
2625
+ };
2626
+ } catch (e) {
2627
+ const err = normalize_error(e);
2628
+ if (err instanceof Redirect) return {
2629
+ type: "redirect",
2630
+ status: err.status,
2631
+ location: err.location
2632
+ };
2633
+ return {
2634
+ type: "error",
2635
+ error: check_incorrect_fail_use(err)
2636
+ };
2637
+ }
2638
+ }
2639
+ /**
2640
+ * @param {URL} url
2641
+ */
2642
+ function get_remote_id(url) {
2643
+ return url.pathname.startsWith(`${base}/_app/remote/`) && url.pathname.replace(`${base}/_app/remote/`, "");
2644
+ }
2645
+ /**
2646
+ * @param {URL} url
2647
+ */
2648
+ function get_remote_action(url) {
2649
+ return url.searchParams.get("/remote");
2650
+ }
2651
+ //#endregion
2652
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/page/index.js
2653
+ /**
2654
+ * The maximum request depth permitted before assuming we're stuck in an infinite loop
2655
+ */
2656
+ var MAX_DEPTH = 10;
2657
+ /**
2658
+ * @param {import('@sveltejs/kit').RequestEvent} event
2659
+ * @param {import('types').RequestState} event_state
2660
+ * @param {import('types').PageNodeIndexes} page
2661
+ * @param {import('types').SSROptions} options
2662
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
2663
+ * @param {import('types').SSRState} state
2664
+ * @param {import('../../../utils/page_nodes.js').PageNodes} nodes
2665
+ * @param {import('types').RequiredResolveOptions} resolve_opts
2666
+ * @returns {Promise<Response>}
2667
+ */
2668
+ async function render_page(event, event_state, page, options, manifest, state, nodes, resolve_opts) {
2669
+ if (state.depth > MAX_DEPTH) return text(`Not found: ${event.url.pathname}`, { status: 404 });
2670
+ if (is_action_json_request(event)) return handle_action_json_request(event, event_state, options, (await manifest._.nodes[page.leaf]())?.server);
2671
+ try {
2672
+ const leaf_node = nodes.page();
2673
+ let status = 200;
2674
+ /** @type {import('@sveltejs/kit').ActionResult | undefined} */
2675
+ let action_result = void 0;
2676
+ if (is_action_request(event)) {
2677
+ const remote_id = get_remote_action(event.url);
2678
+ if (remote_id) action_result = await handle_remote_form_post(event, event_state, manifest, remote_id);
2679
+ else action_result = await handle_action_request(event, event_state, leaf_node.server);
2680
+ if (action_result?.type === "redirect") return redirect_response(action_result.status, action_result.location);
2681
+ if (action_result?.type === "error") status = get_status(action_result.error);
2682
+ if (action_result?.type === "failure") status = action_result.status;
2683
+ }
2684
+ const should_prerender = nodes.prerender();
2685
+ if (should_prerender) {
2686
+ if (leaf_node.server?.actions) throw new Error("Cannot prerender pages with actions");
2687
+ } else if (state.prerendering) return new Response(void 0, { status: 204 });
2688
+ state.prerender_default = should_prerender;
2689
+ const should_prerender_data = nodes.should_prerender_data();
2690
+ const data_pathname = add_data_suffix(event.url.pathname);
2691
+ /** @type {import('./types.js').Fetched[]} */
2692
+ const fetched = [];
2693
+ const ssr = nodes.ssr();
2694
+ const csr = nodes.csr();
2695
+ if (ssr === false && !(state.prerendering && should_prerender_data)) return await render_response({
2696
+ branch: [],
2697
+ fetched,
2698
+ page_config: {
2699
+ ssr: false,
2700
+ csr
2701
+ },
2702
+ status,
2703
+ error: null,
2704
+ event,
2705
+ event_state,
2706
+ options,
2707
+ manifest,
2708
+ state,
2709
+ resolve_opts,
2710
+ data_serializer: server_data_serializer(event, event_state, options)
2711
+ });
2712
+ /** @type {Array<import('./types.js').Loaded | null>} */
2713
+ const branch = [];
2714
+ /** @type {Error | null} */
2715
+ let load_error = null;
2716
+ const data_serializer = server_data_serializer(event, event_state, options);
2717
+ const data_serializer_json = state.prerendering && should_prerender_data ? server_data_serializer_json(event, event_state, options) : null;
2718
+ /** @type {Array<Promise<import('types').ServerDataNode | null>>} */
2719
+ const server_promises = nodes.data.map((node, i) => {
2720
+ if (load_error) throw load_error;
2721
+ return Promise.resolve().then(async () => {
2722
+ try {
2723
+ if (node === leaf_node && action_result?.type === "error") throw action_result.error;
2724
+ const server_data = await load_server_data({
2725
+ event,
2726
+ event_state,
2727
+ state,
2728
+ node,
2729
+ parent: async () => {
2730
+ /** @type {Record<string, any>} */
2731
+ const data = {};
2732
+ for (let j = 0; j < i; j += 1) {
2733
+ const parent = await server_promises[j];
2734
+ if (parent) Object.assign(data, parent.data);
2735
+ }
2736
+ return data;
2737
+ }
2738
+ });
2739
+ if (node) data_serializer.add_node(i, server_data);
2740
+ data_serializer_json?.add_node(i, server_data);
2741
+ return server_data;
2742
+ } catch (e) {
2743
+ load_error = e;
2744
+ throw load_error;
2745
+ }
2746
+ });
2747
+ });
2748
+ /** @type {Array<Promise<Record<string, any> | null>>} */
2749
+ const load_promises = nodes.data.map((node, i) => {
2750
+ if (load_error) throw load_error;
2751
+ return Promise.resolve().then(async () => {
2752
+ try {
2753
+ return await load_data({
2754
+ event,
2755
+ event_state,
2756
+ fetched,
2757
+ node,
2758
+ parent: async () => {
2759
+ const data = {};
2760
+ for (let j = 0; j < i; j += 1) Object.assign(data, await load_promises[j]);
2761
+ return data;
2762
+ },
2763
+ resolve_opts,
2764
+ server_data_promise: server_promises[i],
2765
+ state,
2766
+ csr
2767
+ });
2768
+ } catch (e) {
2769
+ load_error = e;
2770
+ throw load_error;
2771
+ }
2772
+ });
2773
+ });
2774
+ for (const p of server_promises) p.catch(() => {});
2775
+ for (const p of load_promises) p.catch(() => {});
2776
+ for (let i = 0; i < nodes.data.length; i += 1) {
2777
+ const node = nodes.data[i];
2778
+ if (node) try {
2779
+ const server_data = await server_promises[i];
2780
+ const data = await load_promises[i];
2781
+ branch.push({
2782
+ node,
2783
+ server_data,
2784
+ data
2785
+ });
2786
+ } catch (e) {
2787
+ const err = normalize_error(e);
2788
+ if (err instanceof Redirect) {
2789
+ if (state.prerendering && should_prerender_data) {
2790
+ const body = JSON.stringify({
2791
+ type: "redirect",
2792
+ location: err.location
2793
+ });
2794
+ state.prerendering.dependencies.set(data_pathname, {
2795
+ response: text(body),
2796
+ body
2797
+ });
2798
+ }
2799
+ return redirect_response(err.status, err.location);
2800
+ }
2801
+ const status = get_status(err);
2802
+ const error = await handle_error_and_jsonify(event, event_state, options, err);
2803
+ while (i--) if (page.errors[i]) {
2804
+ const index = page.errors[i];
2805
+ const node = await manifest._.nodes[index]();
2806
+ let j = i;
2807
+ while (!branch[j]) j -= 1;
2808
+ data_serializer.set_max_nodes(j + 1);
2809
+ const layouts = compact(branch.slice(0, j + 1));
2810
+ const nodes = new PageNodes(layouts.map((layout) => layout.node));
2811
+ const error_branch = layouts.concat({
2812
+ node,
2813
+ data: null,
2814
+ server_data: null
2815
+ });
2816
+ return await render_response({
2817
+ event,
2818
+ event_state,
2819
+ options,
2820
+ manifest,
2821
+ state,
2822
+ resolve_opts,
2823
+ page_config: {
2824
+ ssr: nodes.ssr(),
2825
+ csr: nodes.csr()
2826
+ },
2827
+ status,
2828
+ error,
2829
+ error_components: await load_error_components(options, ssr, error_branch, page, manifest),
2830
+ branch: error_branch,
2831
+ fetched,
2832
+ data_serializer
2833
+ });
2834
+ }
2835
+ return static_error_page(options, status, error.message);
2836
+ }
2837
+ else branch.push(null);
2838
+ }
2839
+ if (state.prerendering && data_serializer_json) {
2840
+ let { data, chunks } = data_serializer_json.get_data();
2841
+ if (chunks) for await (const chunk of chunks) data += chunk;
2842
+ state.prerendering.dependencies.set(data_pathname, {
2843
+ response: text(data),
2844
+ body: data
2845
+ });
2846
+ }
2847
+ return await render_response({
2848
+ event,
2849
+ event_state,
2850
+ options,
2851
+ manifest,
2852
+ state,
2853
+ resolve_opts,
2854
+ page_config: {
2855
+ csr,
2856
+ ssr
2857
+ },
2858
+ status,
2859
+ error: null,
2860
+ branch: !ssr ? [] : compact(branch),
2861
+ action_result,
2862
+ fetched,
2863
+ data_serializer: !ssr ? server_data_serializer(event, event_state, options) : data_serializer,
2864
+ error_components: await load_error_components(options, ssr, branch, page, manifest)
2865
+ });
2866
+ } catch (e) {
2867
+ if (e instanceof Redirect) return redirect_response(e.status, e.location);
2868
+ return await respond_with_error({
2869
+ event,
2870
+ event_state,
2871
+ options,
2872
+ manifest,
2873
+ state,
2874
+ status: e instanceof HttpError ? e.status : 500,
2875
+ error: e,
2876
+ resolve_opts
2877
+ });
2878
+ }
2879
+ }
2880
+ /**
2881
+ *
2882
+ * @param {import('types').SSROptions} options
2883
+ * @param {boolean} ssr
2884
+ * @param {Array<import('./types.js').Loaded | null>} branch
2885
+ * @param {import('types').PageNodeIndexes} page
2886
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
2887
+ */
2888
+ async function load_error_components(options, ssr, branch, page, manifest) {
2889
+ /** @type {Array<import('types').SSRComponent | undefined> | undefined} */
2890
+ let error_components;
2891
+ if (options.server_error_boundaries && ssr) {
2892
+ let last_idx = -1;
2893
+ error_components = await Promise.all(branch.map((b, i) => {
2894
+ if (i === 0) return void 0;
2895
+ if (!b) return null;
2896
+ i--;
2897
+ while (i > last_idx + 1 && page.errors[i] === void 0) i -= 1;
2898
+ last_idx = i;
2899
+ const idx = page.errors[i];
2900
+ if (idx == null) return void 0;
2901
+ return manifest._.nodes[idx]?.().then((e) => e.component?.()).catch(() => void 0);
2902
+ }).filter((e) => e !== null));
2903
+ }
2904
+ return error_components;
2905
+ }
2906
+ //#endregion
2907
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/functions.js
2908
+ /**
2909
+ * @template T
2910
+ * @param {() => T} fn
2911
+ */
2912
+ function once(fn) {
2913
+ let done = false;
2914
+ /** @type T */
2915
+ let result;
2916
+ return () => {
2917
+ if (done) return result;
2918
+ done = true;
2919
+ return result = fn();
2920
+ };
2921
+ }
2922
+ //#endregion
2923
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/data/index.js
2924
+ /**
2925
+ * @param {import('@sveltejs/kit').RequestEvent} event
2926
+ * @param {import('types').RequestState} event_state
2927
+ * @param {import('types').SSRRoute} route
2928
+ * @param {import('types').SSROptions} options
2929
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
2930
+ * @param {import('types').SSRState} state
2931
+ * @param {boolean[] | undefined} invalidated_data_nodes
2932
+ * @param {import('types').TrailingSlash} trailing_slash
2933
+ * @returns {Promise<Response>}
2934
+ */
2935
+ async function render_data(event, event_state, route, options, manifest, state, invalidated_data_nodes, trailing_slash) {
2936
+ if (!route.page) return new Response(void 0, { status: 404 });
2937
+ try {
2938
+ const node_ids = [...route.page.layouts, route.page.leaf];
2939
+ const invalidated = invalidated_data_nodes ?? node_ids.map(() => true);
2940
+ let aborted = false;
2941
+ const url = new URL(event.url);
2942
+ url.pathname = normalize_path(url.pathname, trailing_slash);
2943
+ const new_event = {
2944
+ ...event,
2945
+ url
2946
+ };
2947
+ const functions = node_ids.map((n, i) => {
2948
+ return once(async () => {
2949
+ try {
2950
+ if (aborted) return { type: "skip" };
2951
+ return load_server_data({
2952
+ event: new_event,
2953
+ event_state,
2954
+ state,
2955
+ node: n == void 0 ? n : await manifest._.nodes[n](),
2956
+ parent: async () => {
2957
+ /** @type {Record<string, any>} */
2958
+ const data = {};
2959
+ for (let j = 0; j < i; j += 1) {
2960
+ const parent = await functions[j]();
2961
+ if (parent) Object.assign(data, parent.data);
2962
+ }
2963
+ return data;
2964
+ }
2965
+ });
2966
+ } catch (e) {
2967
+ aborted = true;
2968
+ throw e;
2969
+ }
2970
+ });
2971
+ });
2972
+ const promises = functions.map(async (fn, i) => {
2973
+ if (!invalidated[i]) return { type: "skip" };
2974
+ return fn();
2975
+ });
2976
+ let length = promises.length;
2977
+ const nodes = await Promise.all(promises.map((p, i) => p.catch(async (error) => {
2978
+ if (error instanceof Redirect) throw error;
2979
+ length = Math.min(length, i + 1);
2980
+ return {
2981
+ type: "error",
2982
+ error: await handle_error_and_jsonify(event, event_state, options, error),
2983
+ status: error instanceof HttpError || error instanceof SvelteKitError ? error.status : void 0
2984
+ };
2985
+ })));
2986
+ const data_serializer = server_data_serializer_json(event, event_state, options);
2987
+ for (let i = 0; i < nodes.length; i++) data_serializer.add_node(i, nodes[i]);
2988
+ const { data, chunks } = data_serializer.get_data();
2989
+ if (!chunks) return json_response(data);
2990
+ return new Response(new ReadableStream({
2991
+ async start(controller) {
2992
+ controller.enqueue(text_encoder.encode(data));
2993
+ for await (const chunk of chunks) controller.enqueue(text_encoder.encode(chunk));
2994
+ controller.close();
2995
+ },
2996
+ type: "bytes"
2997
+ }), { headers: {
2998
+ "content-type": "text/sveltekit-data",
2999
+ "cache-control": "private, no-store"
3000
+ } });
3001
+ } catch (e) {
3002
+ const error = normalize_error(e);
3003
+ if (error instanceof Redirect) return redirect_json_response(error);
3004
+ else return json_response(await handle_error_and_jsonify(event, event_state, options, error), 500);
3005
+ }
3006
+ }
3007
+ /**
3008
+ * @param {Record<string, any> | string} json
3009
+ * @param {number} [status]
3010
+ */
3011
+ function json_response(json, status = 200) {
3012
+ return text(typeof json === "string" ? json : JSON.stringify(json), {
3013
+ status,
3014
+ headers: {
3015
+ "content-type": "application/json",
3016
+ "cache-control": "private, no-store"
3017
+ }
3018
+ });
3019
+ }
3020
+ /**
3021
+ * @param {Redirect} redirect
3022
+ */
3023
+ function redirect_json_response(redirect) {
3024
+ return json_response({
3025
+ type: "redirect",
3026
+ location: redirect.location
3027
+ });
3028
+ }
3029
+ //#endregion
3030
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/cookie.js
3031
+ var import_cookie = (/* @__PURE__ */ __commonJSMin(((exports$1) => {
3032
+ /**
3033
+ * Module exports.
3034
+ * @public
3035
+ */
3036
+ exports$1.parse = parse;
3037
+ exports$1.serialize = serialize;
3038
+ /**
3039
+ * Module variables.
3040
+ * @private
3041
+ */
3042
+ var __toString = Object.prototype.toString;
3043
+ /**
3044
+ * RegExp to match field-content in RFC 7230 sec 3.2
3045
+ *
3046
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
3047
+ * field-vchar = VCHAR / obs-text
3048
+ * obs-text = %x80-FF
3049
+ */
3050
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
3051
+ /**
3052
+ * Parse a cookie header.
3053
+ *
3054
+ * Parse the given cookie header string into an object
3055
+ * The object has the various cookies as keys(names) => values
3056
+ *
3057
+ * @param {string} str
3058
+ * @param {object} [options]
3059
+ * @return {object}
3060
+ * @public
3061
+ */
3062
+ function parse(str, options) {
3063
+ if (typeof str !== "string") throw new TypeError("argument str must be a string");
3064
+ var obj = {};
3065
+ var dec = (options || {}).decode || decode;
3066
+ var index = 0;
3067
+ while (index < str.length) {
3068
+ var eqIdx = str.indexOf("=", index);
3069
+ if (eqIdx === -1) break;
3070
+ var endIdx = str.indexOf(";", index);
3071
+ if (endIdx === -1) endIdx = str.length;
3072
+ else if (endIdx < eqIdx) {
3073
+ index = str.lastIndexOf(";", eqIdx - 1) + 1;
3074
+ continue;
3075
+ }
3076
+ var key = str.slice(index, eqIdx).trim();
3077
+ if (void 0 === obj[key]) {
3078
+ var val = str.slice(eqIdx + 1, endIdx).trim();
3079
+ if (val.charCodeAt(0) === 34) val = val.slice(1, -1);
3080
+ obj[key] = tryDecode(val, dec);
3081
+ }
3082
+ index = endIdx + 1;
3083
+ }
3084
+ return obj;
3085
+ }
3086
+ /**
3087
+ * Serialize data into a cookie header.
3088
+ *
3089
+ * Serialize the a name value pair into a cookie string suitable for
3090
+ * http headers. An optional options object specified cookie parameters.
3091
+ *
3092
+ * serialize('foo', 'bar', { httpOnly: true })
3093
+ * => "foo=bar; httpOnly"
3094
+ *
3095
+ * @param {string} name
3096
+ * @param {string} val
3097
+ * @param {object} [options]
3098
+ * @return {string}
3099
+ * @public
3100
+ */
3101
+ function serialize(name, val, options) {
3102
+ var opt = options || {};
3103
+ var enc = opt.encode || encode;
3104
+ if (typeof enc !== "function") throw new TypeError("option encode is invalid");
3105
+ if (!fieldContentRegExp.test(name)) throw new TypeError("argument name is invalid");
3106
+ var value = enc(val);
3107
+ if (value && !fieldContentRegExp.test(value)) throw new TypeError("argument val is invalid");
3108
+ var str = name + "=" + value;
3109
+ if (null != opt.maxAge) {
3110
+ var maxAge = opt.maxAge - 0;
3111
+ if (isNaN(maxAge) || !isFinite(maxAge)) throw new TypeError("option maxAge is invalid");
3112
+ str += "; Max-Age=" + Math.floor(maxAge);
3113
+ }
3114
+ if (opt.domain) {
3115
+ if (!fieldContentRegExp.test(opt.domain)) throw new TypeError("option domain is invalid");
3116
+ str += "; Domain=" + opt.domain;
3117
+ }
3118
+ if (opt.path) {
3119
+ if (!fieldContentRegExp.test(opt.path)) throw new TypeError("option path is invalid");
3120
+ str += "; Path=" + opt.path;
3121
+ }
3122
+ if (opt.expires) {
3123
+ var expires = opt.expires;
3124
+ if (!isDate(expires) || isNaN(expires.valueOf())) throw new TypeError("option expires is invalid");
3125
+ str += "; Expires=" + expires.toUTCString();
3126
+ }
3127
+ if (opt.httpOnly) str += "; HttpOnly";
3128
+ if (opt.secure) str += "; Secure";
3129
+ if (opt.partitioned) str += "; Partitioned";
3130
+ if (opt.priority) switch (typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority) {
3131
+ case "low":
3132
+ str += "; Priority=Low";
3133
+ break;
3134
+ case "medium":
3135
+ str += "; Priority=Medium";
3136
+ break;
3137
+ case "high":
3138
+ str += "; Priority=High";
3139
+ break;
3140
+ default: throw new TypeError("option priority is invalid");
3141
+ }
3142
+ if (opt.sameSite) switch (typeof opt.sameSite === "string" ? opt.sameSite.toLowerCase() : opt.sameSite) {
3143
+ case true:
3144
+ str += "; SameSite=Strict";
3145
+ break;
3146
+ case "lax":
3147
+ str += "; SameSite=Lax";
3148
+ break;
3149
+ case "strict":
3150
+ str += "; SameSite=Strict";
3151
+ break;
3152
+ case "none":
3153
+ str += "; SameSite=None";
3154
+ break;
3155
+ default: throw new TypeError("option sameSite is invalid");
3156
+ }
3157
+ return str;
3158
+ }
3159
+ /**
3160
+ * URL-decode string value. Optimized to skip native call when no %.
3161
+ *
3162
+ * @param {string} str
3163
+ * @returns {string}
3164
+ */
3165
+ function decode(str) {
3166
+ return str.indexOf("%") !== -1 ? decodeURIComponent(str) : str;
3167
+ }
3168
+ /**
3169
+ * URL-encode value.
3170
+ *
3171
+ * @param {string} val
3172
+ * @returns {string}
3173
+ */
3174
+ function encode(val) {
3175
+ return encodeURIComponent(val);
3176
+ }
3177
+ /**
3178
+ * Determine if value is a Date.
3179
+ *
3180
+ * @param {*} val
3181
+ * @private
3182
+ */
3183
+ function isDate(val) {
3184
+ return __toString.call(val) === "[object Date]" || val instanceof Date;
3185
+ }
3186
+ /**
3187
+ * Try decoding a string using a decoding function.
3188
+ *
3189
+ * @param {string} str
3190
+ * @param {function} decode
3191
+ * @private
3192
+ */
3193
+ function tryDecode(str, decode) {
3194
+ try {
3195
+ return decode(str);
3196
+ } catch (e) {
3197
+ return str;
3198
+ }
3199
+ }
3200
+ })))();
3201
+ var INVALID_COOKIE_CHARACTER_REGEX = /[\x00-\x1F\x7F()<>@,;:"/[\]?={} \t]/;
3202
+ /** @param {import('./page/types.js').Cookie['options']} options */
3203
+ function validate_options(options) {
3204
+ if (options?.path === void 0) throw new Error("You must specify a `path` when setting, deleting or serializing cookies");
3205
+ }
3206
+ /**
3207
+ * Generates a unique key for a cookie based on its domain, path, and name in
3208
+ * the format: `<domain>/<path>?<name>`.
3209
+ * If domain is undefined, it will be omitted.
3210
+ * For example: `/?name`, `example.com/foo?name`.
3211
+ *
3212
+ * @param {string | undefined} domain
3213
+ * @param {string} path
3214
+ * @param {string} name
3215
+ * @returns {string}
3216
+ */
3217
+ function generate_cookie_key(domain, path, name) {
3218
+ return `${domain || ""}${path}?${encodeURIComponent(name)}`;
3219
+ }
3220
+ /**
3221
+ * @param {Request} request
3222
+ * @param {URL} url
3223
+ */
3224
+ function get_cookies(request, url) {
3225
+ const header = request.headers.get("cookie") ?? "";
3226
+ const initial_cookies = (0, import_cookie.parse)(header, { decode: (value) => value });
3227
+ /** @type {string | undefined} */
3228
+ let normalized_url;
3229
+ /** @type {Map<string, import('./page/types.js').Cookie>} */
3230
+ const new_cookies = /* @__PURE__ */ new Map();
3231
+ /** @type {import('cookie').CookieSerializeOptions} */
3232
+ const defaults = {
3233
+ httpOnly: true,
3234
+ sameSite: "lax",
3235
+ secure: url.hostname === "localhost" && url.protocol === "http:" ? false : true
3236
+ };
3237
+ /** @type {import('@sveltejs/kit').Cookies} */
3238
+ const cookies = {
3239
+ get(name, opts) {
3240
+ const best_match = Array.from(new_cookies.values()).filter((c) => {
3241
+ return c.name === name && domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path);
3242
+ }).sort((a, b) => b.options.path.length - a.options.path.length)[0];
3243
+ if (best_match) return best_match.options.maxAge === 0 ? void 0 : best_match.value;
3244
+ return (0, import_cookie.parse)(header, { decode: opts?.decode })[name];
3245
+ },
3246
+ getAll(opts) {
3247
+ const cookies = (0, import_cookie.parse)(header, { decode: opts?.decode });
3248
+ const lookup = /* @__PURE__ */ new Map();
3249
+ for (const c of new_cookies.values()) if (domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path)) {
3250
+ const existing = lookup.get(c.name);
3251
+ if (!existing || c.options.path.length > existing.options.path.length) lookup.set(c.name, c);
3252
+ }
3253
+ for (const c of lookup.values()) cookies[c.name] = c.value;
3254
+ return Object.entries(cookies).map(([name, value]) => ({
3255
+ name,
3256
+ value
3257
+ }));
3258
+ },
3259
+ set(name, value, options) {
3260
+ const illegal_characters = name.match(INVALID_COOKIE_CHARACTER_REGEX);
3261
+ if (illegal_characters) console.warn(`The cookie name "${name}" will be invalid in SvelteKit 3.0 as it contains ${illegal_characters.join(" and ")}. See RFC 2616 for more details https://datatracker.ietf.org/doc/html/rfc2616#section-2.2`);
3262
+ validate_options(options);
3263
+ set_internal(name, value, {
3264
+ ...defaults,
3265
+ ...options
3266
+ });
3267
+ },
3268
+ delete(name, options) {
3269
+ validate_options(options);
3270
+ cookies.set(name, "", {
3271
+ ...options,
3272
+ maxAge: 0
3273
+ });
3274
+ },
3275
+ serialize(name, value, options) {
3276
+ validate_options(options);
3277
+ let path = options.path;
3278
+ if (!options.domain || options.domain === url.hostname) {
3279
+ if (!normalized_url) throw new Error("Cannot serialize cookies until after the route is determined");
3280
+ path = resolve(normalized_url, path);
3281
+ }
3282
+ return (0, import_cookie.serialize)(name, value, {
3283
+ ...defaults,
3284
+ ...options,
3285
+ path
3286
+ });
3287
+ }
3288
+ };
3289
+ /**
3290
+ * @param {URL} destination
3291
+ * @param {string | null} header
3292
+ */
3293
+ function get_cookie_header(destination, header) {
3294
+ /** @type {Record<string, string>} */
3295
+ const combined_cookies = { ...initial_cookies };
3296
+ for (const cookie of new_cookies.values()) {
3297
+ if (!domain_matches(destination.hostname, cookie.options.domain)) continue;
3298
+ if (!path_matches(destination.pathname, cookie.options.path)) continue;
3299
+ const encoder = cookie.options.encode || encodeURIComponent;
3300
+ combined_cookies[cookie.name] = encoder(cookie.value);
3301
+ }
3302
+ if (header) {
3303
+ const parsed = (0, import_cookie.parse)(header, { decode: (value) => value });
3304
+ for (const name in parsed) combined_cookies[name] = parsed[name];
3305
+ }
3306
+ return Object.entries(combined_cookies).map(([name, value]) => `${name}=${value}`).join("; ");
3307
+ }
3308
+ /** @type {Array<() => void>} */
3309
+ const internal_queue = [];
3310
+ /**
3311
+ * @param {string} name
3312
+ * @param {string} value
3313
+ * @param {import('./page/types.js').Cookie['options']} options
3314
+ */
3315
+ function set_internal(name, value, options) {
3316
+ if (!normalized_url) {
3317
+ internal_queue.push(() => set_internal(name, value, options));
3318
+ return;
3319
+ }
3320
+ let path = options.path;
3321
+ if (!options.domain || options.domain === url.hostname) path = resolve(normalized_url, path);
3322
+ const cookie_key = generate_cookie_key(options.domain, path, name);
3323
+ const cookie = {
3324
+ name,
3325
+ value,
3326
+ options: {
3327
+ ...options,
3328
+ path
3329
+ }
3330
+ };
3331
+ new_cookies.set(cookie_key, cookie);
3332
+ }
3333
+ /**
3334
+ * @param {import('types').TrailingSlash} trailing_slash
3335
+ */
3336
+ function set_trailing_slash(trailing_slash) {
3337
+ normalized_url = normalize_path(url.pathname, trailing_slash);
3338
+ internal_queue.forEach((fn) => fn());
3339
+ }
3340
+ return {
3341
+ cookies,
3342
+ new_cookies,
3343
+ get_cookie_header,
3344
+ set_internal,
3345
+ set_trailing_slash
3346
+ };
3347
+ }
3348
+ /**
3349
+ * @param {string} hostname
3350
+ * @param {string} [constraint]
3351
+ */
3352
+ function domain_matches(hostname, constraint) {
3353
+ if (!constraint) return true;
3354
+ const normalized = constraint[0] === "." ? constraint.slice(1) : constraint;
3355
+ if (hostname === normalized) return true;
3356
+ return hostname.endsWith("." + normalized);
3357
+ }
3358
+ /**
3359
+ * @param {string} path
3360
+ * @param {string} [constraint]
3361
+ */
3362
+ function path_matches(path, constraint) {
3363
+ if (!constraint) return true;
3364
+ const normalized = constraint.endsWith("/") ? constraint.slice(0, -1) : constraint;
3365
+ if (path === normalized) return true;
3366
+ return path.startsWith(normalized + "/");
3367
+ }
3368
+ /**
3369
+ * @param {Headers} headers
3370
+ * @param {MapIterator<import('./page/types.js').Cookie>} cookies
3371
+ */
3372
+ function add_cookies_to_headers(headers, cookies) {
3373
+ for (const new_cookie of cookies) {
3374
+ const { name, value, options } = new_cookie;
3375
+ headers.append("set-cookie", (0, import_cookie.serialize)(name, value, options));
3376
+ if (options.path.endsWith(".html")) {
3377
+ const path = add_data_suffix(options.path);
3378
+ headers.append("set-cookie", (0, import_cookie.serialize)(name, value, {
3379
+ ...options,
3380
+ path
3381
+ }));
3382
+ }
3383
+ }
3384
+ }
3385
+ //#endregion
3386
+ //#region ../../node_modules/.bun/set-cookie-parser@3.1.0/node_modules/set-cookie-parser/lib/set-cookie.js
3387
+ var defaultParseOptions = {
3388
+ decodeValues: true,
3389
+ map: false,
3390
+ silent: false,
3391
+ split: "auto"
3392
+ };
3393
+ function isForbiddenKey(key) {
3394
+ return typeof key !== "string" || key in {};
3395
+ }
3396
+ function createNullObj() {
3397
+ return Object.create(null);
3398
+ }
3399
+ function isNonEmptyString(str) {
3400
+ return typeof str === "string" && !!str.trim();
3401
+ }
3402
+ function parseString(setCookieValue, options) {
3403
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
3404
+ var parsed = parseNameValuePair(parts.shift());
3405
+ var name = parsed.name;
3406
+ var value = parsed.value;
3407
+ options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
3408
+ if (isForbiddenKey(name)) return null;
3409
+ try {
3410
+ value = options.decodeValues ? decodeURIComponent(value) : value;
3411
+ } catch (e) {
3412
+ console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.", e);
3413
+ }
3414
+ var cookie = createNullObj();
3415
+ cookie.name = name;
3416
+ cookie.value = value;
3417
+ parts.forEach(function(part) {
3418
+ var sides = part.split("=");
3419
+ var key = sides.shift().trimLeft().toLowerCase();
3420
+ if (isForbiddenKey(key)) return;
3421
+ var value = sides.join("=");
3422
+ if (key === "expires") cookie.expires = new Date(value);
3423
+ else if (key === "max-age") {
3424
+ var n = parseInt(value, 10);
3425
+ if (!Number.isNaN(n)) cookie.maxAge = n;
3426
+ } else if (key === "secure") cookie.secure = true;
3427
+ else if (key === "httponly") cookie.httpOnly = true;
3428
+ else if (key === "samesite") cookie.sameSite = value;
3429
+ else if (key === "partitioned") cookie.partitioned = true;
3430
+ else if (key) cookie[key] = value;
3431
+ });
3432
+ return cookie;
3433
+ }
3434
+ function parseNameValuePair(nameValuePairStr) {
3435
+ var name = "";
3436
+ var value = "";
3437
+ var nameValueArr = nameValuePairStr.split("=");
3438
+ if (nameValueArr.length > 1) {
3439
+ name = nameValueArr.shift();
3440
+ value = nameValueArr.join("=");
3441
+ } else value = nameValuePairStr;
3442
+ return {
3443
+ name,
3444
+ value
3445
+ };
3446
+ }
3447
+ function parseSetCookie(input, options) {
3448
+ options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
3449
+ if (!input) if (!options.map) return [];
3450
+ else return createNullObj();
3451
+ if (input.headers) if (typeof input.headers.getSetCookie === "function") input = input.headers.getSetCookie();
3452
+ else if (input.headers["set-cookie"]) input = input.headers["set-cookie"];
3453
+ else {
3454
+ var sch = input.headers[Object.keys(input.headers).find(function(key) {
3455
+ return key.toLowerCase() === "set-cookie";
3456
+ })];
3457
+ if (!sch && input.headers.cookie && !options.silent) console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.");
3458
+ input = sch;
3459
+ }
3460
+ var split = options.split;
3461
+ var isArray = Array.isArray(input);
3462
+ if (split === "auto") split = !isArray;
3463
+ if (!isArray) input = [input];
3464
+ input = input.filter(isNonEmptyString);
3465
+ if (split) input = input.map(splitCookiesString).flat();
3466
+ if (!options.map) return input.map(function(str) {
3467
+ return parseString(str, options);
3468
+ }).filter(Boolean);
3469
+ else {
3470
+ var cookies = createNullObj();
3471
+ return input.reduce(function(cookies, str) {
3472
+ var cookie = parseString(str, options);
3473
+ if (cookie && !isForbiddenKey(cookie.name)) cookies[cookie.name] = cookie;
3474
+ return cookies;
3475
+ }, cookies);
3476
+ }
3477
+ }
3478
+ function splitCookiesString(cookiesString) {
3479
+ if (Array.isArray(cookiesString)) return cookiesString;
3480
+ if (typeof cookiesString !== "string") return [];
3481
+ var cookiesStrings = [];
3482
+ var pos = 0;
3483
+ var start;
3484
+ var ch;
3485
+ var lastComma;
3486
+ var nextStart;
3487
+ var cookiesSeparatorFound;
3488
+ function skipWhitespace() {
3489
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) pos += 1;
3490
+ return pos < cookiesString.length;
3491
+ }
3492
+ function notSpecialChar() {
3493
+ ch = cookiesString.charAt(pos);
3494
+ return ch !== "=" && ch !== ";" && ch !== ",";
3495
+ }
3496
+ while (pos < cookiesString.length) {
3497
+ start = pos;
3498
+ cookiesSeparatorFound = false;
3499
+ while (skipWhitespace()) {
3500
+ ch = cookiesString.charAt(pos);
3501
+ if (ch === ",") {
3502
+ lastComma = pos;
3503
+ pos += 1;
3504
+ skipWhitespace();
3505
+ nextStart = pos;
3506
+ while (pos < cookiesString.length && notSpecialChar()) pos += 1;
3507
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
3508
+ cookiesSeparatorFound = true;
3509
+ pos = nextStart;
3510
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
3511
+ start = pos;
3512
+ } else pos = lastComma + 1;
3513
+ } else pos += 1;
3514
+ }
3515
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
3516
+ }
3517
+ return cookiesStrings;
3518
+ }
3519
+ parseSetCookie.parseSetCookie = parseSetCookie;
3520
+ parseSetCookie.parse = parseSetCookie;
3521
+ parseSetCookie.parseString = parseString;
3522
+ parseSetCookie.splitCookiesString = splitCookiesString;
3523
+ //#endregion
3524
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/fetch.js
3525
+ /**
3526
+ * @param {{
3527
+ * event: import('@sveltejs/kit').RequestEvent;
3528
+ * options: import('types').SSROptions;
3529
+ * manifest: import('@sveltejs/kit').SSRManifest;
3530
+ * state: import('types').SSRState;
3531
+ * get_cookie_header: (url: URL, header: string | null) => string;
3532
+ * set_internal: (name: string, value: string, opts: import('./page/types.js').Cookie['options']) => void;
3533
+ * }} opts
3534
+ * @returns {typeof fetch}
3535
+ */
3536
+ function create_fetch({ event, options, manifest, state, get_cookie_header, set_internal }) {
3537
+ /**
3538
+ * @type {typeof fetch}
3539
+ */
3540
+ const server_fetch = async (info, init) => {
3541
+ const original_request = normalize_fetch_input(info, init, event.url);
3542
+ let mode = (info instanceof Request ? info.mode : init?.mode) ?? "cors";
3543
+ let credentials = (info instanceof Request ? info.credentials : init?.credentials) ?? "same-origin";
3544
+ return options.hooks.handleFetch({
3545
+ event,
3546
+ request: original_request,
3547
+ fetch: async (info, init) => {
3548
+ const request = normalize_fetch_input(info, init, event.url);
3549
+ const url = new URL(request.url);
3550
+ if (!request.headers.has("origin")) request.headers.set("origin", event.url.origin);
3551
+ if (info !== original_request) {
3552
+ mode = (info instanceof Request ? info.mode : init?.mode) ?? "cors";
3553
+ credentials = (info instanceof Request ? info.credentials : init?.credentials) ?? "same-origin";
3554
+ }
3555
+ if ((request.method === "GET" || request.method === "HEAD") && (mode === "no-cors" && url.origin !== event.url.origin || url.origin === event.url.origin)) request.headers.delete("origin");
3556
+ const decoded = decodeURIComponent(url.pathname);
3557
+ if (url.origin !== event.url.origin || base && decoded !== base && !decoded.startsWith(`${base}/`)) {
3558
+ if (`.${url.hostname}`.endsWith(`.${event.url.hostname}`) && credentials !== "omit") {
3559
+ const cookie = get_cookie_header(url, request.headers.get("cookie"));
3560
+ if (cookie) request.headers.set("cookie", cookie);
3561
+ }
3562
+ return fetch(request);
3563
+ }
3564
+ const prefix = assets || base;
3565
+ const filename = (decoded.startsWith(prefix) ? decoded.slice(prefix.length) : decoded).slice(1);
3566
+ const filename_html = `${filename}/index.html`;
3567
+ const is_asset = manifest.assets.has(filename) || filename in manifest._.server_assets;
3568
+ const is_asset_html = manifest.assets.has(filename_html) || filename_html in manifest._.server_assets;
3569
+ if (is_asset || is_asset_html) {
3570
+ const file = is_asset ? filename : filename_html;
3571
+ if (state.read) {
3572
+ const type = is_asset ? manifest.mimeTypes[filename.slice(filename.lastIndexOf("."))] : "text/html";
3573
+ return new Response(state.read(file), { headers: type ? { "content-type": type } : {} });
3574
+ } else if (read_implementation && file in manifest._.server_assets) {
3575
+ const length = manifest._.server_assets[file];
3576
+ const type = manifest.mimeTypes[file.slice(file.lastIndexOf("."))];
3577
+ return new Response(read_implementation(file), { headers: {
3578
+ "Content-Length": "" + length,
3579
+ "Content-Type": type
3580
+ } });
3581
+ }
3582
+ return await fetch(request);
3583
+ }
3584
+ if (has_prerendered_path(manifest, base + decoded)) return await fetch(request);
3585
+ if (credentials !== "omit") {
3586
+ const cookie = get_cookie_header(url, request.headers.get("cookie"));
3587
+ if (cookie) request.headers.set("cookie", cookie);
3588
+ const authorization = event.request.headers.get("authorization");
3589
+ if (authorization && !request.headers.has("authorization")) request.headers.set("authorization", authorization);
3590
+ }
3591
+ if (!request.headers.has("accept")) request.headers.set("accept", "*/*");
3592
+ if (!request.headers.has("accept-language")) request.headers.set("accept-language", event.request.headers.get("accept-language"));
3593
+ const response = await internal_fetch(request, options, manifest, state);
3594
+ const set_cookie = response.headers.get("set-cookie");
3595
+ if (set_cookie) for (const str of splitCookiesString(set_cookie)) {
3596
+ const { name, value, ...options } = parseString(str, { decodeValues: false });
3597
+ set_internal(name, value, {
3598
+ path: options.path ?? (url.pathname.split("/").slice(0, -1).join("/") || "/"),
3599
+ encode: (value) => value,
3600
+ ...options
3601
+ });
3602
+ }
3603
+ return response;
3604
+ }
3605
+ });
3606
+ };
3607
+ return (input, init) => {
3608
+ const response = server_fetch(input, init);
3609
+ response.catch(() => {});
3610
+ return response;
3611
+ };
3612
+ }
3613
+ /**
3614
+ * @param {RequestInfo | URL} info
3615
+ * @param {RequestInit | undefined} init
3616
+ * @param {URL} url
3617
+ */
3618
+ function normalize_fetch_input(info, init, url) {
3619
+ if (info instanceof Request) return info;
3620
+ return new Request(typeof info === "string" ? new URL(info, url) : info, init);
3621
+ }
3622
+ /**
3623
+ * @param {Request} request
3624
+ * @param {import('types').SSROptions} options
3625
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
3626
+ * @param {import('types').SSRState} state
3627
+ * @returns {Promise<Response>}
3628
+ */
3629
+ async function internal_fetch(request, options, manifest, state) {
3630
+ if (request.signal) {
3631
+ if (request.signal.aborted) throw new DOMException("The operation was aborted.", "AbortError");
3632
+ let remove_abort_listener = () => {};
3633
+ /** @type {Promise<never>} */
3634
+ const abort_promise = new Promise((_, reject) => {
3635
+ const on_abort = () => {
3636
+ reject(new DOMException("The operation was aborted.", "AbortError"));
3637
+ };
3638
+ request.signal.addEventListener("abort", on_abort, { once: true });
3639
+ remove_abort_listener = () => request.signal.removeEventListener("abort", on_abort);
3640
+ });
3641
+ const result = await Promise.race([respond(request, options, manifest, {
3642
+ ...state,
3643
+ depth: state.depth + 1
3644
+ }), abort_promise]);
3645
+ remove_abort_listener();
3646
+ return result;
3647
+ } else return await respond(request, options, manifest, {
3648
+ ...state,
3649
+ depth: state.depth + 1
3650
+ });
3651
+ }
3652
+ //#endregion
3653
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/env_module.js
3654
+ /** @type {string} */
3655
+ var body;
3656
+ /** @type {string} */
3657
+ var etag;
3658
+ /** @type {Headers} */
3659
+ var headers;
3660
+ /**
3661
+ * @param {Request} request
3662
+ * @returns {Response}
3663
+ */
3664
+ function get_public_env(request) {
3665
+ body ??= `export const env=${JSON.stringify(public_env)}`;
3666
+ etag ??= `W/${Date.now()}`;
3667
+ headers ??= new Headers({
3668
+ "content-type": "application/javascript; charset=utf-8",
3669
+ etag
3670
+ });
3671
+ if (request.headers.get("if-none-match") === etag) return new Response(void 0, {
3672
+ status: 304,
3673
+ headers
3674
+ });
3675
+ return new Response(body, { headers });
3676
+ }
3677
+ //#endregion
3678
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/respond.js
3679
+ /** @import { RequestState } from 'types' */
3680
+ /** @type {import('types').RequiredResolveOptions['transformPageChunk']} */
3681
+ var default_transform = ({ html }) => html;
3682
+ /** @type {import('types').RequiredResolveOptions['filterSerializedResponseHeaders']} */
3683
+ var default_filter = () => false;
3684
+ /** @type {import('types').RequiredResolveOptions['preload']} */
3685
+ var default_preload = ({ type }) => type === "js" || type === "css";
3686
+ var page_methods = new Set([
3687
+ "GET",
3688
+ "HEAD",
3689
+ "POST"
3690
+ ]);
3691
+ var allowed_page_methods = new Set([
3692
+ "GET",
3693
+ "HEAD",
3694
+ "OPTIONS"
3695
+ ]);
3696
+ var respond = propagate_context(internal_respond);
3697
+ /**
3698
+ * @param {Request} request
3699
+ * @param {import('types').SSROptions} options
3700
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
3701
+ * @param {import('types').SSRState} state
3702
+ * @returns {Promise<Response>}
3703
+ */
3704
+ async function internal_respond(request, options, manifest, state) {
3705
+ /** URL but stripped from the potential `/__data.json` suffix and its search param */
3706
+ const url = new URL(request.url);
3707
+ const is_route_resolution_request = has_resolution_suffix(url.pathname);
3708
+ const is_data_request = has_data_suffix(url.pathname);
3709
+ const remote_id = get_remote_id(url);
3710
+ {
3711
+ const request_origin = request.headers.get("origin");
3712
+ if (remote_id) {
3713
+ if (request.method !== "GET" && request_origin !== url.origin) return json({ message: "Cross-site remote requests are forbidden" }, { status: 403 });
3714
+ } else if (options.csrf_check_origin) {
3715
+ if (is_form_content_type(request) && (request.method === "POST" || request.method === "PUT" || request.method === "PATCH" || request.method === "DELETE") && request_origin !== url.origin && (!request_origin || !options.csrf_trusted_origins.includes(request_origin))) {
3716
+ const message = `Cross-site ${request.method} form submissions are forbidden`;
3717
+ const opts = { status: 403 };
3718
+ if (request.headers.get("accept") === "application/json") return json({ message }, opts);
3719
+ return text(message, opts);
3720
+ }
3721
+ }
3722
+ }
3723
+ if (options.hash_routing && url.pathname !== base + "/" && url.pathname !== "/[fallback]") return text("Not found", { status: 404 });
3724
+ /** @type {boolean[] | undefined} */
3725
+ let invalidated_data_nodes;
3726
+ if (is_route_resolution_request)
3727
+ /**
3728
+ * If the request is for a route resolution, first modify the URL, then continue as normal
3729
+ * for path resolution, then return the route object as a JS file.
3730
+ */
3731
+ url.pathname = strip_resolution_suffix(url.pathname);
3732
+ else if (is_data_request) {
3733
+ url.pathname = strip_data_suffix(url.pathname) + (url.searchParams.get("x-sveltekit-trailing-slash") === "1" ? "/" : "") || "/";
3734
+ url.searchParams.delete(TRAILING_SLASH_PARAM);
3735
+ invalidated_data_nodes = url.searchParams.get(INVALIDATED_PARAM)?.split("").map((node) => node === "1");
3736
+ url.searchParams.delete(INVALIDATED_PARAM);
3737
+ } else if (remote_id) {
3738
+ url.pathname = request.headers.get("x-sveltekit-pathname") ?? base;
3739
+ url.search = request.headers.get("x-sveltekit-search") ?? "";
3740
+ }
3741
+ /** @type {Record<string, string>} */
3742
+ const headers = {};
3743
+ const { cookies, new_cookies, get_cookie_header, set_internal, set_trailing_slash } = get_cookies(request, url);
3744
+ /** @type {RequestState} */
3745
+ const event_state = {
3746
+ prerendering: state.prerendering,
3747
+ transport: options.hooks.transport,
3748
+ handleValidationError: options.hooks.handleValidationError,
3749
+ tracing: { record_span },
3750
+ is_in_remote_function: false
3751
+ };
3752
+ /** @type {import('@sveltejs/kit').RequestEvent} */
3753
+ const event = {
3754
+ cookies,
3755
+ fetch: null,
3756
+ getClientAddress: state.getClientAddress || (() => {
3757
+ throw new Error(`@sveltejs/adapter-node does not specify getClientAddress. Please raise an issue`);
3758
+ }),
3759
+ locals: {},
3760
+ params: {},
3761
+ platform: state.platform,
3762
+ request,
3763
+ route: { id: null },
3764
+ setHeaders: (new_headers) => {
3765
+ for (const key in new_headers) {
3766
+ const lower = key.toLowerCase();
3767
+ const value = new_headers[key];
3768
+ if (lower === "set-cookie") throw new Error("Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies");
3769
+ else if (lower in headers) if (lower === "server-timing") headers[lower] += ", " + value;
3770
+ else throw new Error(`"${key}" header is already set`);
3771
+ else {
3772
+ headers[lower] = value;
3773
+ if (state.prerendering && lower === "cache-control") state.prerendering.cache = value;
3774
+ }
3775
+ }
3776
+ },
3777
+ url,
3778
+ isDataRequest: is_data_request,
3779
+ isSubRequest: state.depth > 0,
3780
+ isRemoteRequest: !!remote_id
3781
+ };
3782
+ event.fetch = create_fetch({
3783
+ event,
3784
+ options,
3785
+ manifest,
3786
+ state,
3787
+ get_cookie_header,
3788
+ set_internal
3789
+ });
3790
+ if (state.emulator?.platform) event.platform = await state.emulator.platform({
3791
+ config: {},
3792
+ prerender: !!state.prerendering?.fallback
3793
+ });
3794
+ let resolved_path = url.pathname;
3795
+ if (!remote_id) {
3796
+ const prerendering_reroute_state = state.prerendering?.inside_reroute;
3797
+ try {
3798
+ if (state.prerendering) state.prerendering.inside_reroute = true;
3799
+ resolved_path = await options.hooks.reroute({
3800
+ url: new URL(url),
3801
+ fetch: event.fetch
3802
+ }) ?? url.pathname;
3803
+ } catch {
3804
+ return text("Internal Server Error", { status: 500 });
3805
+ } finally {
3806
+ if (state.prerendering) state.prerendering.inside_reroute = prerendering_reroute_state;
3807
+ }
3808
+ }
3809
+ try {
3810
+ resolved_path = decode_pathname(resolved_path);
3811
+ } catch {
3812
+ return text("Malformed URI", { status: 400 });
3813
+ }
3814
+ if (resolved_path !== decode_pathname(url.pathname) && !state.prerendering?.fallback && has_prerendered_path(manifest, resolved_path)) {
3815
+ const url = new URL(request.url);
3816
+ url.pathname = is_data_request ? add_data_suffix(resolved_path) : is_route_resolution_request ? add_resolution_suffix(resolved_path) : resolved_path;
3817
+ try {
3818
+ const response = await fetch(url, request);
3819
+ const headers = new Headers(response.headers);
3820
+ if (headers.has("content-encoding")) {
3821
+ headers.delete("content-encoding");
3822
+ headers.delete("content-length");
3823
+ }
3824
+ return new Response(response.body, {
3825
+ headers,
3826
+ status: response.status,
3827
+ statusText: response.statusText
3828
+ });
3829
+ } catch (error) {
3830
+ return await handle_fatal_error(event, event_state, options, error);
3831
+ }
3832
+ }
3833
+ /** @type {import('types').SSRRoute | null} */
3834
+ let route = null;
3835
+ if (base && !state.prerendering?.fallback) {
3836
+ if (!resolved_path.startsWith(base)) return text("Not found", { status: 404 });
3837
+ resolved_path = resolved_path.slice(base.length) || "/";
3838
+ }
3839
+ if (is_route_resolution_request) return resolve_route(resolved_path, new URL(request.url), manifest);
3840
+ if (resolved_path === `/_app/env.js`) return get_public_env(request);
3841
+ if (!remote_id && resolved_path.startsWith(`/_app`)) {
3842
+ const headers = new Headers();
3843
+ headers.set("cache-control", "public, max-age=0, must-revalidate");
3844
+ return text("Not found", {
3845
+ status: 404,
3846
+ headers
3847
+ });
3848
+ }
3849
+ if (!state.prerendering?.fallback) {
3850
+ const matchers = await manifest._.matchers();
3851
+ const result = find_route(resolved_path, manifest._.routes, matchers);
3852
+ if (result) {
3853
+ route = result.route;
3854
+ event.route = { id: route.id };
3855
+ event.params = result.params;
3856
+ }
3857
+ }
3858
+ /** @type {import('types').RequiredResolveOptions} */
3859
+ let resolve_opts = {
3860
+ transformPageChunk: default_transform,
3861
+ filterSerializedResponseHeaders: default_filter,
3862
+ preload: default_preload
3863
+ };
3864
+ /** @type {import('types').TrailingSlash} */
3865
+ let trailing_slash = "never";
3866
+ try {
3867
+ /** @type {PageNodes | undefined} */
3868
+ const page_nodes = route?.page ? new PageNodes(await load_page_nodes(route.page, manifest)) : void 0;
3869
+ if (route && !remote_id) {
3870
+ if (url.pathname === base || url.pathname === base + "/") trailing_slash = "always";
3871
+ else if (page_nodes) trailing_slash = page_nodes.trailing_slash();
3872
+ else if (route.endpoint) trailing_slash = (await route.endpoint()).trailingSlash ?? "never";
3873
+ if (!is_data_request) {
3874
+ const normalized = normalize_path(url.pathname, trailing_slash);
3875
+ if (normalized !== url.pathname && !state.prerendering?.fallback) return new Response(void 0, {
3876
+ status: 308,
3877
+ headers: {
3878
+ "x-sveltekit-normalize": "1",
3879
+ location: (normalized.startsWith("//") ? url.origin + normalized : normalized) + (url.search === "?" ? "" : url.search)
3880
+ }
3881
+ });
3882
+ }
3883
+ if (state.before_handle || state.emulator?.platform) {
3884
+ let config = {};
3885
+ /** @type {import('types').PrerenderOption} */
3886
+ let prerender = false;
3887
+ if (route.endpoint) {
3888
+ const node = await route.endpoint();
3889
+ config = node.config ?? config;
3890
+ prerender = node.prerender ?? prerender;
3891
+ } else if (page_nodes) {
3892
+ config = page_nodes.get_config() ?? config;
3893
+ prerender = page_nodes.prerender();
3894
+ }
3895
+ if (state.before_handle) state.before_handle(event, config, prerender);
3896
+ if (state.emulator?.platform) event.platform = await state.emulator.platform({
3897
+ config,
3898
+ prerender
3899
+ });
3900
+ }
3901
+ }
3902
+ set_trailing_slash(trailing_slash);
3903
+ if (state.prerendering && !state.prerendering.fallback && !state.prerendering.inside_reroute) disable_search(url);
3904
+ const response = await record_span({
3905
+ name: "sveltekit.handle.root",
3906
+ attributes: {
3907
+ "http.route": event.route.id || "unknown",
3908
+ "http.method": event.request.method,
3909
+ "http.url": event.url.href,
3910
+ "sveltekit.is_data_request": is_data_request,
3911
+ "sveltekit.is_sub_request": event.isSubRequest
3912
+ },
3913
+ fn: async (root_span) => {
3914
+ const traced_event = {
3915
+ ...event,
3916
+ tracing: {
3917
+ enabled: false,
3918
+ root: root_span,
3919
+ current: root_span
3920
+ }
3921
+ };
3922
+ event_state.allows_commands = MUTATIVE_METHODS.includes(request.method);
3923
+ return await with_request_store({
3924
+ event: traced_event,
3925
+ state: event_state
3926
+ }, () => options.hooks.handle({
3927
+ event: traced_event,
3928
+ resolve: (event, opts) => {
3929
+ return record_span({
3930
+ name: "sveltekit.resolve",
3931
+ attributes: { "http.route": event.route.id || "unknown" },
3932
+ fn: (resolve_span) => {
3933
+ return with_request_store(null, () => resolve(merge_tracing(event, resolve_span), page_nodes, opts).then((response) => {
3934
+ for (const key in headers) {
3935
+ const value = headers[key];
3936
+ response.headers.set(key, value);
3937
+ }
3938
+ add_cookies_to_headers(response.headers, new_cookies.values());
3939
+ if (state.prerendering && event.route.id !== null) response.headers.set("x-sveltekit-routeid", encodeURI(event.route.id));
3940
+ resolve_span.setAttributes({
3941
+ "http.response.status_code": response.status,
3942
+ "http.response.body.size": response.headers.get("content-length") || "unknown"
3943
+ });
3944
+ return response;
3945
+ }));
3946
+ }
3947
+ });
3948
+ }
3949
+ }));
3950
+ }
3951
+ });
3952
+ if (response.status === 200 && response.headers.has("etag")) {
3953
+ let if_none_match_value = request.headers.get("if-none-match");
3954
+ if (if_none_match_value?.startsWith("W/\"")) if_none_match_value = if_none_match_value.substring(2);
3955
+ const etag = response.headers.get("etag");
3956
+ if (if_none_match_value === etag) {
3957
+ const headers = new Headers({ etag });
3958
+ for (const key of [
3959
+ "cache-control",
3960
+ "content-location",
3961
+ "date",
3962
+ "expires",
3963
+ "vary",
3964
+ "set-cookie"
3965
+ ]) {
3966
+ const value = response.headers.get(key);
3967
+ if (value) headers.set(key, value);
3968
+ }
3969
+ return new Response(void 0, {
3970
+ status: 304,
3971
+ headers
3972
+ });
3973
+ }
3974
+ }
3975
+ if (is_data_request && response.status >= 300 && response.status <= 308) {
3976
+ const location = response.headers.get("location");
3977
+ if (location) return redirect_json_response(new Redirect(response.status, location));
3978
+ }
3979
+ return response;
3980
+ } catch (e) {
3981
+ if (e instanceof Redirect) {
3982
+ const response = is_data_request || remote_id ? redirect_json_response(e) : route?.page && is_action_json_request(event) ? action_json_redirect(e) : redirect_response(e.status, e.location);
3983
+ add_cookies_to_headers(response.headers, new_cookies.values());
3984
+ return response;
3985
+ }
3986
+ return await handle_fatal_error(event, event_state, options, e);
3987
+ }
3988
+ /**
3989
+ * @param {import('@sveltejs/kit').RequestEvent} event
3990
+ * @param {PageNodes | undefined} page_nodes
3991
+ * @param {import('@sveltejs/kit').ResolveOptions} [opts]
3992
+ */
3993
+ async function resolve(event, page_nodes, opts) {
3994
+ try {
3995
+ if (opts) resolve_opts = {
3996
+ transformPageChunk: opts.transformPageChunk || default_transform,
3997
+ filterSerializedResponseHeaders: opts.filterSerializedResponseHeaders || default_filter,
3998
+ preload: opts.preload || default_preload
3999
+ };
4000
+ if (options.hash_routing || state.prerendering?.fallback) return await render_response({
4001
+ event,
4002
+ event_state,
4003
+ options,
4004
+ manifest,
4005
+ state,
4006
+ page_config: {
4007
+ ssr: false,
4008
+ csr: true
4009
+ },
4010
+ status: 200,
4011
+ error: null,
4012
+ branch: [],
4013
+ fetched: [],
4014
+ resolve_opts,
4015
+ data_serializer: server_data_serializer(event, event_state, options)
4016
+ });
4017
+ if (remote_id) return await handle_remote_call(event, event_state, options, manifest, remote_id);
4018
+ if (route) {
4019
+ const method = event.request.method;
4020
+ /** @type {Response} */
4021
+ let response;
4022
+ if (is_data_request) response = await render_data(event, event_state, route, options, manifest, state, invalidated_data_nodes, trailing_slash);
4023
+ else if (route.endpoint && (!route.page || is_endpoint_request(event))) response = await render_endpoint(event, event_state, await route.endpoint(), state);
4024
+ else if (route.page) if (!page_nodes) throw new Error("page_nodes not found. This should never happen");
4025
+ else if (page_methods.has(method)) response = await render_page(event, event_state, route.page, options, manifest, state, page_nodes, resolve_opts);
4026
+ else {
4027
+ const allowed_methods = new Set(allowed_page_methods);
4028
+ if ((await manifest._.nodes[route.page.leaf]())?.server?.actions) allowed_methods.add("POST");
4029
+ if (method === "OPTIONS") response = new Response(null, {
4030
+ status: 204,
4031
+ headers: { allow: Array.from(allowed_methods.values()).join(", ") }
4032
+ });
4033
+ else response = method_not_allowed([...allowed_methods].reduce((acc, curr) => {
4034
+ acc[curr] = true;
4035
+ return acc;
4036
+ }, {}), method);
4037
+ }
4038
+ else throw new Error("Route is neither page nor endpoint. This should never happen");
4039
+ if (request.method === "GET" && route.page && route.endpoint) {
4040
+ const vary = response.headers.get("vary")?.split(",")?.map((v) => v.trim().toLowerCase());
4041
+ if (!(vary?.includes("accept") || vary?.includes("*"))) {
4042
+ response = new Response(response.body, {
4043
+ status: response.status,
4044
+ statusText: response.statusText,
4045
+ headers: new Headers(response.headers)
4046
+ });
4047
+ response.headers.append("Vary", "Accept");
4048
+ }
4049
+ }
4050
+ return response;
4051
+ }
4052
+ if (state.error && event.isSubRequest) {
4053
+ const headers = new Headers(request.headers);
4054
+ headers.set("x-sveltekit-error", "true");
4055
+ return await fetch(request, { headers });
4056
+ }
4057
+ if (state.error) return text("Internal Server Error", { status: 500 });
4058
+ if (state.depth === 0) return await respond_with_error({
4059
+ event,
4060
+ event_state,
4061
+ options,
4062
+ manifest,
4063
+ state,
4064
+ status: 404,
4065
+ error: new SvelteKitError(404, "Not Found", `Not found: ${event.url.pathname}`),
4066
+ resolve_opts
4067
+ });
4068
+ if (state.prerendering) return text("not found", { status: 404 });
4069
+ const response = await fetch(request);
4070
+ return new Response(response.body, response);
4071
+ } catch (e) {
4072
+ return await handle_fatal_error(event, event_state, options, e);
4073
+ } finally {
4074
+ event.cookies.set = () => {
4075
+ throw new Error("Cannot use `cookies.set(...)` after the response has been generated");
4076
+ };
4077
+ event.setHeaders = () => {
4078
+ throw new Error("Cannot use `setHeaders(...)` after the response has been generated");
4079
+ };
4080
+ }
4081
+ }
4082
+ }
4083
+ /**
4084
+ * @param {import('types').PageNodeIndexes} page
4085
+ * @param {import('@sveltejs/kit').SSRManifest} manifest
4086
+ */
4087
+ function load_page_nodes(page, manifest) {
4088
+ return Promise.all([...page.layouts.map((n) => n == void 0 ? n : manifest._.nodes[n]()), manifest._.nodes[page.leaf]()]);
4089
+ }
4090
+ /**
4091
+ * It's likely that, in a distributed system, there are spans starting outside the SvelteKit server -- eg.
4092
+ * started on the frontend client, or in a service that calls the SvelteKit server. There are standardized
4093
+ * ways to represent this context in HTTP headers, so we can extract that context and run our tracing inside of it
4094
+ * so that when our traces are exported, they are associated with the correct parent context.
4095
+ * @param {typeof internal_respond} fn
4096
+ * @returns {typeof internal_respond}
4097
+ */
4098
+ function propagate_context(fn) {
4099
+ return async (req, ...rest) => {
4100
+ return fn(req, ...rest);
4101
+ };
4102
+ }
4103
+ //#endregion
4104
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/utils/env.js
4105
+ /**
4106
+ * @param {Record<string, string>} env
4107
+ * @param {string} allowed
4108
+ * @param {string} disallowed
4109
+ * @returns {Record<string, string>}
4110
+ */
4111
+ function filter_env(env, allowed, disallowed) {
4112
+ return Object.fromEntries(Object.entries(env).filter(([k]) => k.startsWith(allowed) && (disallowed === "" || !k.startsWith(disallowed))));
4113
+ }
4114
+ /**
4115
+ * @param {{ decoders: Record<string, (data: any) => any> }} value
4116
+ */
4117
+ function set_app(value) {}
4118
+ //#endregion
4119
+ //#region ../../node_modules/.bun/@sveltejs+kit@2.55.0+1adbc10545f81841/node_modules/@sveltejs/kit/src/runtime/server/index.js
4120
+ /** @import { PromiseWithResolvers } from '../../utils/promise.js' */
4121
+ /** @type {Promise<any>} */
4122
+ var init_promise;
4123
+ /** @type {Promise<void> | null} */
4124
+ var current = null;
4125
+ var Server = class {
4126
+ /** @type {import('types').SSROptions} */
4127
+ #options;
4128
+ /** @type {import('@sveltejs/kit').SSRManifest} */
4129
+ #manifest;
4130
+ /** @param {import('@sveltejs/kit').SSRManifest} manifest */
4131
+ constructor(manifest) {
4132
+ /** @type {import('types').SSROptions} */
4133
+ this.#options = options;
4134
+ this.#manifest = manifest;
4135
+ if (IN_WEBCONTAINER) {
4136
+ const respond = this.respond.bind(this);
4137
+ /** @type {typeof respond} */
4138
+ this.respond = async (...args) => {
4139
+ const { promise, resolve } = with_resolvers();
4140
+ const previous = current;
4141
+ current = promise;
4142
+ await previous;
4143
+ return respond(...args).finally(resolve);
4144
+ };
4145
+ }
4146
+ }
4147
+ /**
4148
+ * @param {import('@sveltejs/kit').ServerInitOptions} opts
4149
+ */
4150
+ async init({ env, read }) {
4151
+ const { env_public_prefix, env_private_prefix } = this.#options;
4152
+ set_private_env(filter_env(env, env_private_prefix, env_public_prefix));
4153
+ set_public_env(filter_env(env, env_public_prefix, env_private_prefix));
4154
+ if (read) {
4155
+ /** @param {string} file */
4156
+ const wrapped_read = (file) => {
4157
+ const result = read(file);
4158
+ if (result instanceof ReadableStream) return result;
4159
+ else return new ReadableStream({ async start(controller) {
4160
+ try {
4161
+ const stream = await Promise.resolve(result);
4162
+ if (!stream) {
4163
+ controller.close();
4164
+ return;
4165
+ }
4166
+ const reader = stream.getReader();
4167
+ while (true) {
4168
+ const { done, value } = await reader.read();
4169
+ if (done) break;
4170
+ controller.enqueue(value);
4171
+ }
4172
+ controller.close();
4173
+ } catch (error) {
4174
+ controller.error(error);
4175
+ }
4176
+ } });
4177
+ };
4178
+ set_read_implementation(wrapped_read);
4179
+ }
4180
+ await (init_promise ??= (async () => {
4181
+ try {
4182
+ const module = await get_hooks();
4183
+ this.#options.hooks = {
4184
+ handle: module.handle || (({ event, resolve }) => resolve(event)),
4185
+ handleError: module.handleError || (({ status, error, event }) => {
4186
+ const error_message = format_server_error(status, error, event);
4187
+ console.error(error_message);
4188
+ }),
4189
+ handleFetch: module.handleFetch || (({ request, fetch }) => fetch(request)),
4190
+ handleValidationError: module.handleValidationError || (({ issues }) => {
4191
+ console.error("Remote function schema validation failed:", issues);
4192
+ return { message: "Bad Request" };
4193
+ }),
4194
+ reroute: module.reroute || (() => {}),
4195
+ transport: module.transport || {}
4196
+ };
4197
+ set_app({ decoders: module.transport ? Object.fromEntries(Object.entries(module.transport).map(([k, v]) => [k, v.decode])) : {} });
4198
+ if (module.init) await module.init();
4199
+ } catch (e) {
4200
+ throw e;
4201
+ }
4202
+ })());
4203
+ }
4204
+ /**
4205
+ * @param {Request} request
4206
+ * @param {import('types').RequestOptions} options
4207
+ */
4208
+ async respond(request, options) {
4209
+ return respond(request, this.#options, this.#manifest, {
4210
+ ...options,
4211
+ error: false,
4212
+ depth: 0
4213
+ });
4214
+ }
4215
+ };
4216
+
4217
+ export { Server };
4218
+ //# sourceMappingURL=index.js.map