konoha-mcp 2.1.3 → 2.1.4

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 (347) hide show
  1. package/README.md +3 -3
  2. package/apps/web/build/adapter-node.js +11 -0
  3. package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js +1 -0
  4. package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js.br +2 -0
  5. package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js.gz +0 -0
  6. package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js +1 -0
  7. package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js.br +0 -0
  8. package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js.gz +0 -0
  9. package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js +1 -0
  10. package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js.br +1 -0
  11. package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js.gz +0 -0
  12. package/apps/web/build/client/_app/immutable/chunks/{Bv85lp2r.js → CBY268r4.js} +1 -1
  13. package/apps/web/build/client/_app/immutable/chunks/CBY268r4.js.br +3 -0
  14. package/apps/web/build/client/_app/immutable/chunks/CBY268r4.js.gz +0 -0
  15. package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js +1 -0
  16. package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js.br +4 -0
  17. package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js.gz +0 -0
  18. package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js +1 -0
  19. package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js.br +0 -0
  20. package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js.gz +0 -0
  21. package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js +1 -0
  22. package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js.br +0 -0
  23. package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js.gz +0 -0
  24. package/apps/web/build/client/_app/immutable/chunks/{CP4ze5kR.js → Dzm74gVd.js} +1 -1
  25. package/apps/web/build/client/_app/immutable/chunks/Dzm74gVd.js.br +0 -0
  26. package/apps/web/build/client/_app/immutable/chunks/Dzm74gVd.js.gz +0 -0
  27. package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js +2 -0
  28. package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js.br +0 -0
  29. package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js.gz +0 -0
  30. package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js +3 -0
  31. package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js.br +0 -0
  32. package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js.gz +0 -0
  33. package/apps/web/build/client/_app/immutable/chunks/{tFx9Vkzn.js → fbrtLByB.js} +1 -1
  34. package/apps/web/build/client/_app/immutable/chunks/fbrtLByB.js.br +0 -0
  35. package/apps/web/build/client/_app/immutable/chunks/fbrtLByB.js.gz +0 -0
  36. package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js +2 -0
  37. package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.br +0 -0
  38. package/apps/web/build/client/_app/immutable/entry/app.DwlgEXmV.js.gz +0 -0
  39. package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js +2 -0
  40. package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js.br +0 -0
  41. package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js.gz +0 -0
  42. package/apps/web/build/client/_app/immutable/nodes/{0.BV_U6rd9.js → 0.5uSjyTy0.js} +1 -1
  43. package/apps/web/build/client/_app/immutable/nodes/0.5uSjyTy0.js.br +0 -0
  44. package/apps/web/build/client/_app/immutable/nodes/0.5uSjyTy0.js.gz +0 -0
  45. package/apps/web/build/client/_app/immutable/nodes/{1.317ei_PM.js → 1.BZu6jsAH.js} +1 -1
  46. package/apps/web/build/client/_app/immutable/nodes/1.BZu6jsAH.js.br +0 -0
  47. package/apps/web/build/client/_app/immutable/nodes/1.BZu6jsAH.js.gz +0 -0
  48. package/apps/web/build/client/_app/immutable/nodes/{10.C9BHUF6_.js → 10.CZKScTFN.js} +1 -1
  49. package/apps/web/build/client/_app/immutable/nodes/10.CZKScTFN.js.br +0 -0
  50. package/apps/web/build/client/_app/immutable/nodes/10.CZKScTFN.js.gz +0 -0
  51. package/apps/web/build/client/_app/immutable/nodes/{11._7rmywnA.js → 11.DFglFW_i.js} +1 -1
  52. package/apps/web/build/client/_app/immutable/nodes/11.DFglFW_i.js.br +0 -0
  53. package/apps/web/build/client/_app/immutable/nodes/11.DFglFW_i.js.gz +0 -0
  54. package/apps/web/build/client/_app/immutable/nodes/{12.B_UJh_Cw.js → 12.CSShcv5z.js} +1 -1
  55. package/apps/web/build/client/_app/immutable/nodes/12.CSShcv5z.js.br +0 -0
  56. package/apps/web/build/client/_app/immutable/nodes/12.CSShcv5z.js.gz +0 -0
  57. package/apps/web/build/client/_app/immutable/nodes/{13.FtUj7AO8.js → 13.jWUWoBcs.js} +1 -1
  58. package/apps/web/build/client/_app/immutable/nodes/13.jWUWoBcs.js.br +0 -0
  59. package/apps/web/build/client/_app/immutable/nodes/13.jWUWoBcs.js.gz +0 -0
  60. package/apps/web/build/client/_app/immutable/nodes/{14.CsMWcbH2.js → 14.H-jSqqen.js} +1 -1
  61. package/apps/web/build/client/_app/immutable/nodes/14.H-jSqqen.js.br +0 -0
  62. package/apps/web/build/client/_app/immutable/nodes/14.H-jSqqen.js.gz +0 -0
  63. package/apps/web/build/client/_app/immutable/nodes/{15.DbSoDlZF.js → 15.CpAoyhzV.js} +1 -1
  64. package/apps/web/build/client/_app/immutable/nodes/15.CpAoyhzV.js.br +0 -0
  65. package/apps/web/build/client/_app/immutable/nodes/15.CpAoyhzV.js.gz +0 -0
  66. package/apps/web/build/client/_app/immutable/nodes/{16.BcMZYQJR.js → 16.DT_-MxCT.js} +1 -1
  67. package/apps/web/build/client/_app/immutable/nodes/16.DT_-MxCT.js.br +0 -0
  68. package/apps/web/build/client/_app/immutable/nodes/16.DT_-MxCT.js.gz +0 -0
  69. package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js +1 -0
  70. package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js.br +0 -0
  71. package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js.gz +0 -0
  72. package/apps/web/build/client/_app/immutable/nodes/{3.Co5hy99T.js → 3.Cgc-xN3x.js} +1 -1
  73. package/apps/web/build/client/_app/immutable/nodes/3.Cgc-xN3x.js.br +0 -0
  74. package/apps/web/build/client/_app/immutable/nodes/3.Cgc-xN3x.js.gz +0 -0
  75. package/apps/web/build/client/_app/immutable/nodes/{4.Ckjmv74-.js → 4.CYJQ4bWz.js} +1 -1
  76. package/apps/web/build/client/_app/immutable/nodes/4.CYJQ4bWz.js.br +0 -0
  77. package/apps/web/build/client/_app/immutable/nodes/4.CYJQ4bWz.js.gz +0 -0
  78. package/apps/web/build/client/_app/immutable/nodes/{5.jG4rh5-7.js → 5.DbHL-3Es.js} +1 -1
  79. package/apps/web/build/client/_app/immutable/nodes/5.DbHL-3Es.js.br +0 -0
  80. package/apps/web/build/client/_app/immutable/nodes/5.DbHL-3Es.js.gz +0 -0
  81. package/apps/web/build/client/_app/immutable/nodes/{6.am-4Bf0e.js → 6.BvWH2qas.js} +1 -1
  82. package/apps/web/build/client/_app/immutable/nodes/6.BvWH2qas.js.br +0 -0
  83. package/apps/web/build/client/_app/immutable/nodes/6.BvWH2qas.js.gz +0 -0
  84. package/apps/web/build/client/_app/immutable/nodes/{7.DpWtqqaL.js → 7.CmbiPMU3.js} +1 -1
  85. package/apps/web/build/client/_app/immutable/nodes/7.CmbiPMU3.js.br +0 -0
  86. package/apps/web/build/client/_app/immutable/nodes/7.CmbiPMU3.js.gz +0 -0
  87. package/apps/web/build/client/_app/immutable/nodes/{8.CbbKDJTU.js → 8.B9897Zm9.js} +1 -1
  88. package/apps/web/build/client/_app/immutable/nodes/8.B9897Zm9.js.br +0 -0
  89. package/apps/web/build/client/_app/immutable/nodes/8.B9897Zm9.js.gz +0 -0
  90. package/apps/web/build/client/_app/immutable/nodes/{9.CB21-Q9D.js → 9.CVBlvZqX.js} +1 -1
  91. package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.br +0 -0
  92. package/apps/web/build/client/_app/immutable/nodes/9.CVBlvZqX.js.gz +0 -0
  93. package/apps/web/build/client/_app/version.json +1 -1
  94. package/apps/web/build/client/_app/version.json.br +0 -0
  95. package/apps/web/build/client/_app/version.json.gz +0 -0
  96. package/apps/web/build/handler.js +1 -2
  97. package/apps/web/build/index.js +1 -74
  98. package/apps/web/build/server/.vite/manifest.json +419 -0
  99. package/apps/web/build/server/_app/immutable/assets/_layout.CsjxL1aa.css +2 -0
  100. package/apps/web/build/server/adapter-env.js +2 -0
  101. package/apps/web/build/server/adapter-index.js +74 -0
  102. package/apps/web/build/server/adapter-index.js.map +1 -0
  103. package/apps/web/build/server/{chunks/env-RhfAqpCd.js → adapter-node-env.js} +28 -7
  104. package/apps/web/build/server/adapter-node-env.js.map +1 -0
  105. package/apps/web/build/server/adapter-node-handler.js +584 -0
  106. package/apps/web/build/server/adapter-node-handler.js.map +1 -0
  107. package/apps/web/build/server/chunks/api.js +81 -0
  108. package/apps/web/build/server/chunks/api.js.map +1 -0
  109. package/apps/web/build/server/chunks/{env-DU2WieJy.js → config.js} +2 -2
  110. package/apps/web/build/server/chunks/config.js.map +1 -0
  111. package/apps/web/build/server/chunks/exports.js +625 -0
  112. package/apps/web/build/server/chunks/exports.js.map +1 -0
  113. package/apps/web/build/server/chunks/functions.js +30 -0
  114. package/apps/web/build/server/chunks/functions.js.map +1 -0
  115. package/apps/web/build/server/chunks/index-server.js +2 -0
  116. package/apps/web/build/server/chunks/instance.js +3600 -0
  117. package/apps/web/build/server/chunks/instance.js.map +1 -0
  118. package/apps/web/build/server/chunks/internal.js +2849 -0
  119. package/apps/web/build/server/chunks/internal.js.map +1 -0
  120. package/apps/web/build/server/chunks/scrollLock.svelte.js +7 -0
  121. package/apps/web/build/server/chunks/scrollLock.svelte.js.map +1 -0
  122. package/apps/web/build/server/chunks/server-errors.js +489 -0
  123. package/apps/web/build/server/chunks/server-errors.js.map +1 -0
  124. package/apps/web/build/server/chunks/server.js +9 -0
  125. package/apps/web/build/server/chunks/server.js.map +1 -0
  126. package/apps/web/build/server/chunks/{server2-xUKEUzWG.js → server2.js} +140 -718
  127. package/apps/web/build/server/chunks/server2.js.map +1 -0
  128. package/apps/web/build/server/chunks/shared.js +84 -0
  129. package/apps/web/build/server/chunks/shared.js.map +1 -0
  130. package/apps/web/build/server/chunks/{state-C6VH2NAw.js → state.js} +5 -4
  131. package/apps/web/build/server/chunks/state.js.map +1 -0
  132. package/apps/web/build/server/chunks/{sweetAlert.svelte-BKTpmvHp.js → sweetAlert.svelte.js} +3 -3
  133. package/apps/web/build/server/chunks/sweetAlert.svelte.js.map +1 -0
  134. package/apps/web/build/server/chunks/{uiState.svelte-NgyZk5Jz.js → uiState.svelte.js} +3 -3
  135. package/apps/web/build/server/chunks/uiState.svelte.js.map +1 -0
  136. package/apps/web/build/server/chunks/uneval.js +645 -0
  137. package/apps/web/build/server/chunks/uneval.js.map +1 -0
  138. package/apps/web/build/server/entries/fallbacks/error.svelte.js +12 -0
  139. package/apps/web/build/server/entries/fallbacks/error.svelte.js.map +1 -0
  140. package/apps/web/build/server/entries/hooks.server.js +8 -0
  141. package/apps/web/build/server/entries/hooks.server.js.map +1 -0
  142. package/apps/web/build/server/entries/pages/_layout.js +7 -0
  143. package/apps/web/build/server/entries/pages/_layout.js.map +1 -0
  144. package/apps/web/build/server/{chunks/_layout.svelte-FKDEmK4m.js → entries/pages/_layout.svelte.js} +15 -8
  145. package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -0
  146. package/apps/web/build/server/entries/pages/_page.js +9 -0
  147. package/apps/web/build/server/entries/pages/_page.js.map +1 -0
  148. package/apps/web/build/server/entries/pages/_page.svelte.js +7 -0
  149. package/apps/web/build/server/entries/pages/_page.svelte.js.map +1 -0
  150. package/apps/web/build/server/{chunks/_page.svelte-K0WRgefN.js → entries/pages/agents/_page.svelte.js} +8 -5
  151. package/apps/web/build/server/entries/pages/agents/_page.svelte.js.map +1 -0
  152. package/apps/web/build/server/{chunks/_page.svelte-BKU-UjQ2.js → entries/pages/bridges/_page.svelte.js} +9 -6
  153. package/apps/web/build/server/entries/pages/bridges/_page.svelte.js.map +1 -0
  154. package/apps/web/build/server/{chunks/_page.svelte-DBQMj6O8.js → entries/pages/clients/_page.svelte.js} +8 -5
  155. package/apps/web/build/server/entries/pages/clients/_page.svelte.js.map +1 -0
  156. package/apps/web/build/server/{chunks/_page.svelte-BQP0Z2mg.js → entries/pages/context/_page.svelte.js} +9 -6
  157. package/apps/web/build/server/entries/pages/context/_page.svelte.js.map +1 -0
  158. package/apps/web/build/server/{chunks/_page.svelte-D_bQaPtJ.js → entries/pages/dashboard/_page.svelte.js} +7 -4
  159. package/apps/web/build/server/entries/pages/dashboard/_page.svelte.js.map +1 -0
  160. package/apps/web/build/server/{chunks/_page.svelte-CxxsZeRm.js → entries/pages/detector/_page.svelte.js} +5 -3
  161. package/apps/web/build/server/entries/pages/detector/_page.svelte.js.map +1 -0
  162. package/apps/web/build/server/{chunks/_page.svelte-DJp9fAk8.js → entries/pages/docs/_page.svelte.js} +7 -4
  163. package/apps/web/build/server/entries/pages/docs/_page.svelte.js.map +1 -0
  164. package/apps/web/build/server/{chunks/_page.svelte-DFBbcBLc.js → entries/pages/doctor/_page.svelte.js} +8 -5
  165. package/apps/web/build/server/entries/pages/doctor/_page.svelte.js.map +1 -0
  166. package/apps/web/build/server/{chunks/_page.svelte-yXv2Aj6-.js → entries/pages/persona/_page.svelte.js} +9 -6
  167. package/apps/web/build/server/entries/pages/persona/_page.svelte.js.map +1 -0
  168. package/apps/web/build/server/{chunks/_page.svelte-CvH3pIDb.js → entries/pages/savings/_page.svelte.js} +7 -4
  169. package/apps/web/build/server/entries/pages/savings/_page.svelte.js.map +1 -0
  170. package/apps/web/build/server/{chunks/_page.svelte-FUbd8bWv.js → entries/pages/search/_page.svelte.js} +9 -6
  171. package/apps/web/build/server/entries/pages/search/_page.svelte.js.map +1 -0
  172. package/apps/web/build/server/{chunks/_page.svelte-Bu5RfcD4.js → entries/pages/semble/_page.svelte.js} +8 -5
  173. package/apps/web/build/server/entries/pages/semble/_page.svelte.js.map +1 -0
  174. package/apps/web/build/server/{chunks/_page.svelte-B4DKG2sO.js → entries/pages/skills/_page.svelte.js} +10 -7
  175. package/apps/web/build/server/entries/pages/skills/_page.svelte.js.map +1 -0
  176. package/apps/web/build/server/{chunks/_page.svelte-D1yHfBBh.js → entries/pages/tasks/_page.svelte.js} +8 -83
  177. package/apps/web/build/server/entries/pages/tasks/_page.svelte.js.map +1 -0
  178. package/apps/web/build/{env.js → server/env.js} +1 -1
  179. package/apps/web/build/server/handler.js +2 -0
  180. package/apps/web/build/server/index.js +68 -0
  181. package/apps/web/build/server/index.js.map +1 -0
  182. package/apps/web/build/server/manifest-full.js +149 -0
  183. package/apps/web/build/server/manifest.js +149 -0
  184. package/apps/web/build/server/nodes/0.js +10 -0
  185. package/apps/web/build/server/nodes/1.js +8 -0
  186. package/apps/web/build/server/nodes/10.js +8 -0
  187. package/apps/web/build/server/nodes/11.js +8 -0
  188. package/apps/web/build/server/nodes/12.js +8 -0
  189. package/apps/web/build/server/nodes/13.js +8 -0
  190. package/apps/web/build/server/nodes/14.js +8 -0
  191. package/apps/web/build/server/nodes/15.js +8 -0
  192. package/apps/web/build/server/nodes/16.js +8 -0
  193. package/apps/web/build/server/nodes/2.js +10 -0
  194. package/apps/web/build/server/nodes/3.js +8 -0
  195. package/apps/web/build/server/nodes/4.js +8 -0
  196. package/apps/web/build/server/nodes/5.js +8 -0
  197. package/apps/web/build/server/nodes/6.js +8 -0
  198. package/apps/web/build/server/nodes/7.js +8 -0
  199. package/apps/web/build/server/nodes/8.js +8 -0
  200. package/apps/web/build/server/nodes/9.js +8 -0
  201. package/apps/web/build/server/remote-entry.js +1565 -0
  202. package/apps/web/build/server/remote-entry.js.map +1 -0
  203. package/apps/web/build/server/server.js +151 -0
  204. package/apps/web/package.json +10 -9
  205. package/bin/cli.js +3 -3
  206. package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.4_2026-10-06.md +77 -0
  207. package/package.json +9 -7
  208. package/apps/web/build/adapter-env.js +0 -2
  209. package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js +0 -3
  210. package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js.br +0 -0
  211. package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js.gz +0 -0
  212. package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js +0 -1
  213. package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js.br +0 -1
  214. package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js.gz +0 -0
  215. package/apps/web/build/client/_app/immutable/chunks/Bv85lp2r.js.br +0 -3
  216. package/apps/web/build/client/_app/immutable/chunks/Bv85lp2r.js.gz +0 -0
  217. package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js +0 -2
  218. package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js.br +0 -0
  219. package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js.gz +0 -0
  220. package/apps/web/build/client/_app/immutable/chunks/CP4ze5kR.js.br +0 -0
  221. package/apps/web/build/client/_app/immutable/chunks/CP4ze5kR.js.gz +0 -0
  222. package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js +0 -1
  223. package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js.br +0 -0
  224. package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js.gz +0 -0
  225. package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js +0 -1
  226. package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js.br +0 -2
  227. package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js.gz +0 -0
  228. package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js +0 -1
  229. package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js.br +0 -0
  230. package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js.gz +0 -0
  231. package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js +0 -1
  232. package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js.br +0 -0
  233. package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
  234. package/apps/web/build/client/_app/immutable/chunks/tFx9Vkzn.js.br +0 -0
  235. package/apps/web/build/client/_app/immutable/chunks/tFx9Vkzn.js.gz +0 -0
  236. package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js +0 -2
  237. package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js.br +0 -0
  238. package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js.gz +0 -0
  239. package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js +0 -2
  240. package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js.br +0 -2
  241. package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js.gz +0 -0
  242. package/apps/web/build/client/_app/immutable/nodes/0.BV_U6rd9.js.br +0 -0
  243. package/apps/web/build/client/_app/immutable/nodes/0.BV_U6rd9.js.gz +0 -0
  244. package/apps/web/build/client/_app/immutable/nodes/1.317ei_PM.js.br +0 -1
  245. package/apps/web/build/client/_app/immutable/nodes/1.317ei_PM.js.gz +0 -0
  246. package/apps/web/build/client/_app/immutable/nodes/10.C9BHUF6_.js.br +0 -0
  247. package/apps/web/build/client/_app/immutable/nodes/10.C9BHUF6_.js.gz +0 -0
  248. package/apps/web/build/client/_app/immutable/nodes/11._7rmywnA.js.br +0 -0
  249. package/apps/web/build/client/_app/immutable/nodes/11._7rmywnA.js.gz +0 -0
  250. package/apps/web/build/client/_app/immutable/nodes/12.B_UJh_Cw.js.br +0 -0
  251. package/apps/web/build/client/_app/immutable/nodes/12.B_UJh_Cw.js.gz +0 -0
  252. package/apps/web/build/client/_app/immutable/nodes/13.FtUj7AO8.js.br +0 -0
  253. package/apps/web/build/client/_app/immutable/nodes/13.FtUj7AO8.js.gz +0 -0
  254. package/apps/web/build/client/_app/immutable/nodes/14.CsMWcbH2.js.br +0 -0
  255. package/apps/web/build/client/_app/immutable/nodes/14.CsMWcbH2.js.gz +0 -0
  256. package/apps/web/build/client/_app/immutable/nodes/15.DbSoDlZF.js.br +0 -0
  257. package/apps/web/build/client/_app/immutable/nodes/15.DbSoDlZF.js.gz +0 -0
  258. package/apps/web/build/client/_app/immutable/nodes/16.BcMZYQJR.js.br +0 -0
  259. package/apps/web/build/client/_app/immutable/nodes/16.BcMZYQJR.js.gz +0 -0
  260. package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js +0 -1
  261. package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js.br +0 -0
  262. package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js.gz +0 -0
  263. package/apps/web/build/client/_app/immutable/nodes/3.Co5hy99T.js.br +0 -0
  264. package/apps/web/build/client/_app/immutable/nodes/3.Co5hy99T.js.gz +0 -0
  265. package/apps/web/build/client/_app/immutable/nodes/4.Ckjmv74-.js.br +0 -0
  266. package/apps/web/build/client/_app/immutable/nodes/4.Ckjmv74-.js.gz +0 -0
  267. package/apps/web/build/client/_app/immutable/nodes/5.jG4rh5-7.js.br +0 -0
  268. package/apps/web/build/client/_app/immutable/nodes/5.jG4rh5-7.js.gz +0 -0
  269. package/apps/web/build/client/_app/immutable/nodes/6.am-4Bf0e.js.br +0 -0
  270. package/apps/web/build/client/_app/immutable/nodes/6.am-4Bf0e.js.gz +0 -0
  271. package/apps/web/build/client/_app/immutable/nodes/7.DpWtqqaL.js.br +0 -0
  272. package/apps/web/build/client/_app/immutable/nodes/7.DpWtqqaL.js.gz +0 -0
  273. package/apps/web/build/client/_app/immutable/nodes/8.CbbKDJTU.js.br +0 -0
  274. package/apps/web/build/client/_app/immutable/nodes/8.CbbKDJTU.js.gz +0 -0
  275. package/apps/web/build/client/_app/immutable/nodes/9.CB21-Q9D.js.br +0 -0
  276. package/apps/web/build/client/_app/immutable/nodes/9.CB21-Q9D.js.gz +0 -0
  277. package/apps/web/build/dir.js +0 -8
  278. package/apps/web/build/dir.js.map +0 -1
  279. package/apps/web/build/index.js.map +0 -1
  280. package/apps/web/build/server/chunks/0-D09zEpvl.js +0 -31
  281. package/apps/web/build/server/chunks/0-D09zEpvl.js.map +0 -1
  282. package/apps/web/build/server/chunks/1-2My56RES.js +0 -17
  283. package/apps/web/build/server/chunks/1-2My56RES.js.map +0 -1
  284. package/apps/web/build/server/chunks/10-M1HtRrZp.js +0 -17
  285. package/apps/web/build/server/chunks/10-M1HtRrZp.js.map +0 -1
  286. package/apps/web/build/server/chunks/11-BDyQuE2U.js +0 -18
  287. package/apps/web/build/server/chunks/11-BDyQuE2U.js.map +0 -1
  288. package/apps/web/build/server/chunks/12-DR3YohxS.js +0 -16
  289. package/apps/web/build/server/chunks/12-DR3YohxS.js.map +0 -1
  290. package/apps/web/build/server/chunks/13-BJri0QNV.js +0 -18
  291. package/apps/web/build/server/chunks/13-BJri0QNV.js.map +0 -1
  292. package/apps/web/build/server/chunks/14-DJhiE2DY.js +0 -17
  293. package/apps/web/build/server/chunks/14-DJhiE2DY.js.map +0 -1
  294. package/apps/web/build/server/chunks/15-CJUlxcu3.js +0 -19
  295. package/apps/web/build/server/chunks/15-CJUlxcu3.js.map +0 -1
  296. package/apps/web/build/server/chunks/16-BCncPEHV.js +0 -17
  297. package/apps/web/build/server/chunks/16-BCncPEHV.js.map +0 -1
  298. package/apps/web/build/server/chunks/2-B_JPNlak.js +0 -26
  299. package/apps/web/build/server/chunks/2-B_JPNlak.js.map +0 -1
  300. package/apps/web/build/server/chunks/3-BSOfGnYr.js +0 -17
  301. package/apps/web/build/server/chunks/3-BSOfGnYr.js.map +0 -1
  302. package/apps/web/build/server/chunks/4-DUmAi2o6.js +0 -18
  303. package/apps/web/build/server/chunks/4-DUmAi2o6.js.map +0 -1
  304. package/apps/web/build/server/chunks/5-DSM_rY93.js +0 -17
  305. package/apps/web/build/server/chunks/5-DSM_rY93.js.map +0 -1
  306. package/apps/web/build/server/chunks/6-CquXfuY3.js +0 -18
  307. package/apps/web/build/server/chunks/6-CquXfuY3.js.map +0 -1
  308. package/apps/web/build/server/chunks/7-CBNvUHPu.js +0 -16
  309. package/apps/web/build/server/chunks/7-CBNvUHPu.js.map +0 -1
  310. package/apps/web/build/server/chunks/8-BlIFjRiQ.js +0 -16
  311. package/apps/web/build/server/chunks/8-BlIFjRiQ.js.map +0 -1
  312. package/apps/web/build/server/chunks/9-sa0-Zgfq.js +0 -16
  313. package/apps/web/build/server/chunks/9-sa0-Zgfq.js.map +0 -1
  314. package/apps/web/build/server/chunks/_layout.svelte-FKDEmK4m.js.map +0 -1
  315. package/apps/web/build/server/chunks/_page.svelte-B4DKG2sO.js.map +0 -1
  316. package/apps/web/build/server/chunks/_page.svelte-BKU-UjQ2.js.map +0 -1
  317. package/apps/web/build/server/chunks/_page.svelte-BQP0Z2mg.js.map +0 -1
  318. package/apps/web/build/server/chunks/_page.svelte-Bu5RfcD4.js.map +0 -1
  319. package/apps/web/build/server/chunks/_page.svelte-CvH3pIDb.js.map +0 -1
  320. package/apps/web/build/server/chunks/_page.svelte-CxxsZeRm.js.map +0 -1
  321. package/apps/web/build/server/chunks/_page.svelte-D1yHfBBh.js.map +0 -1
  322. package/apps/web/build/server/chunks/_page.svelte-DBQMj6O8.js.map +0 -1
  323. package/apps/web/build/server/chunks/_page.svelte-DFBbcBLc.js.map +0 -1
  324. package/apps/web/build/server/chunks/_page.svelte-DJp9fAk8.js.map +0 -1
  325. package/apps/web/build/server/chunks/_page.svelte-D_bQaPtJ.js.map +0 -1
  326. package/apps/web/build/server/chunks/_page.svelte-FUbd8bWv.js.map +0 -1
  327. package/apps/web/build/server/chunks/_page.svelte-K0WRgefN.js.map +0 -1
  328. package/apps/web/build/server/chunks/_page.svelte-LJxJVjMb.js +0 -7
  329. package/apps/web/build/server/chunks/_page.svelte-LJxJVjMb.js.map +0 -1
  330. package/apps/web/build/server/chunks/_page.svelte-yXv2Aj6-.js.map +0 -1
  331. package/apps/web/build/server/chunks/env-DU2WieJy.js.map +0 -1
  332. package/apps/web/build/server/chunks/env-RhfAqpCd.js.map +0 -1
  333. package/apps/web/build/server/chunks/error.svelte-CNqmrJIT.js +0 -12
  334. package/apps/web/build/server/chunks/error.svelte-CNqmrJIT.js.map +0 -1
  335. package/apps/web/build/server/chunks/exports-DzZ-4-Dy.js +0 -327
  336. package/apps/web/build/server/chunks/exports-DzZ-4-Dy.js.map +0 -1
  337. package/apps/web/build/server/chunks/handler-CNvIc1cp.js +0 -7301
  338. package/apps/web/build/server/chunks/handler-CNvIc1cp.js.map +0 -1
  339. package/apps/web/build/server/chunks/hooks.server-DqbY7q70.js +0 -8
  340. package/apps/web/build/server/chunks/hooks.server-DqbY7q70.js.map +0 -1
  341. package/apps/web/build/server/chunks/index-server-ULRIL6sb.js +0 -2
  342. package/apps/web/build/server/chunks/rolldown-runtime-D7D4PA-g.js +0 -13
  343. package/apps/web/build/server/chunks/scrollLock.svelte-ULRIL6sb.js +0 -2
  344. package/apps/web/build/server/chunks/server2-xUKEUzWG.js.map +0 -1
  345. package/apps/web/build/server/chunks/state-C6VH2NAw.js.map +0 -1
  346. package/apps/web/build/server/chunks/sweetAlert.svelte-BKTpmvHp.js.map +0 -1
  347. package/apps/web/build/server/chunks/uiState.svelte-NgyZk5Jz.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.js","names":["devalue.uneval","e.load_promise_not_serializable","devalue.stringify","devalue.uneval","$.derived","$.escape","assets","paths.assets","paths.app_dir","devalue.uneval","env.rendered_env","env.explicit_public_env","paths.assets","respond","devalue.uneval","respond","e.fetch_response_decoded","handle","env"],"sources":["../../../.svelte-kit/generated/build/shared/error-template.js","../../../.svelte-kit/generated/build/server.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/endpoint.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/array.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/pathname.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/error-chain.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/streaming.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/data_serializer.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/constants.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/hash.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/misc.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/escape.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/serialize_data.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/csp.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/server_routing.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/app/navigation/server.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/components/root.svelte","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/props.svelte.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/render.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/format.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/exports.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/utils/page_nodes.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/respond_with_error.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/page/index.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/csrf.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/data/index.js","../../../../../node_modules/.pnpm/cookie@2.0.1/node_modules/cookie/dist/index.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/cookie.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/state.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/fetch.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/env_module.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/validate-headers.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/respond.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_@types+_19c5fda78ee95b615548cf969a6c62fc/node_modules/@sveltejs/kit/src/runtime/server/instance.js"],"sourcesContent":["export default ({ status, message }) => \"<!doctype html>\\n<html lang=\\\"en\\\">\\n\\t<head>\\n\\t\\t<meta charset=\\\"utf-8\\\" />\\n\\t\\t<title>\" + message + \"</title>\\n\\n\\t\\t<style>\\n\\t\\t\\tbody {\\n\\t\\t\\t\\t--bg: white;\\n\\t\\t\\t\\t--fg: #222;\\n\\t\\t\\t\\t--divider: #ccc;\\n\\t\\t\\t\\tbackground: var(--bg);\\n\\t\\t\\t\\tcolor: var(--fg);\\n\\t\\t\\t\\tfont-family:\\n\\t\\t\\t\\t\\tsystem-ui,\\n\\t\\t\\t\\t\\t-apple-system,\\n\\t\\t\\t\\t\\tBlinkMacSystemFont,\\n\\t\\t\\t\\t\\t'Segoe UI',\\n\\t\\t\\t\\t\\tRoboto,\\n\\t\\t\\t\\t\\tOxygen,\\n\\t\\t\\t\\t\\tUbuntu,\\n\\t\\t\\t\\t\\tCantarell,\\n\\t\\t\\t\\t\\t'Open Sans',\\n\\t\\t\\t\\t\\t'Helvetica Neue',\\n\\t\\t\\t\\t\\tsans-serif;\\n\\t\\t\\t\\tdisplay: flex;\\n\\t\\t\\t\\talign-items: center;\\n\\t\\t\\t\\tjustify-content: center;\\n\\t\\t\\t\\theight: 100vh;\\n\\t\\t\\t\\tmargin: 0;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.error {\\n\\t\\t\\t\\tdisplay: flex;\\n\\t\\t\\t\\talign-items: center;\\n\\t\\t\\t\\tmax-width: 32rem;\\n\\t\\t\\t\\tmargin: 0 1rem;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.status {\\n\\t\\t\\t\\tfont-weight: 200;\\n\\t\\t\\t\\tfont-size: 3rem;\\n\\t\\t\\t\\tline-height: 1;\\n\\t\\t\\t\\tposition: relative;\\n\\t\\t\\t\\ttop: -0.05rem;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.message {\\n\\t\\t\\t\\tborder-left: 1px solid var(--divider);\\n\\t\\t\\t\\tpadding: 0 0 0 1rem;\\n\\t\\t\\t\\tmargin: 0 0 0 1rem;\\n\\t\\t\\t\\tmin-height: 2.5rem;\\n\\t\\t\\t\\tdisplay: flex;\\n\\t\\t\\t\\talign-items: center;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.message h1 {\\n\\t\\t\\t\\tfont-weight: 400;\\n\\t\\t\\t\\tfont-size: 1em;\\n\\t\\t\\t\\tmargin: 0;\\n\\t\\t\\t}\\n\\n\\t\\t\\t@media (prefers-color-scheme: dark) {\\n\\t\\t\\t\\tbody {\\n\\t\\t\\t\\t\\t--bg: #222;\\n\\t\\t\\t\\t\\t--fg: #ddd;\\n\\t\\t\\t\\t\\t--divider: #666;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t</style>\\n\\t</head>\\n\\t<body>\\n\\t\\t<div class=\\\"error\\\">\\n\\t\\t\\t<span class=\\\"status\\\">\" + status + \"</span>\\n\\t\\t\\t<div class=\\\"message\\\">\\n\\t\\t\\t\\t<h1>\" + message + \"</h1>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</body>\\n</html>\\n\";","\nimport error from './shared/error-template.js';\n\nexport const options = {\n\tapp_template_contains_nonce: false,\n\tcsp: {\"mode\":\"auto\",\"directives\":{\"upgrade-insecure-requests\":false,\"block-all-mixed-content\":false},\"reportOnly\":{\"upgrade-insecure-requests\":false,\"block-all-mixed-content\":false}},\n\tcsrf_trusted_origins: [],\n\tservice_worker_options: undefined,\n\ttemplates: {\n\t\tapp: ({ head, body, assets, nonce, env }) => \"<!doctype html>\\n<html lang=\\\"en\\\" class=\\\"theme-light\\\" data-theme=\\\"byakugan\\\">\\n <head>\\n <meta charset=\\\"utf-8\\\" />\\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, viewport-fit=cover\\\" />\\n <title>Konoha Web UI</title>\\n <link rel=\\\"icon\\\" href=\\\"/favicon.ico\\\" sizes=\\\"any\\\" />\\n <link rel=\\\"icon\\\" type=\\\"image/png\\\" sizes=\\\"32x32\\\" href=\\\"/fox_kyubi_32.png\\\" />\\n <link rel=\\\"icon\\\" type=\\\"image/png\\\" sizes=\\\"192x192\\\" href=\\\"/fox_kyubi_192.png\\\" />\\n <link rel=\\\"apple-touch-icon\\\" sizes=\\\"180x180\\\" href=\\\"/apple-touch-icon.png\\\" />\\n <link rel=\\\"manifest\\\" href=\\\"/manifest.webmanifest\\\" />\\n \" + head + \"\\n </head>\\n <body class=\\\"min-h-screen antialiased\\\">\\n <div style=\\\"display: contents\\\">\" + body + \"</div>\\n </body>\\n</html>\\n\",\n\t\terror\n\t}\n};\n\nexport async function get_hooks() {\n\tlet handle;\n\tlet handleFetch;\n\tlet handleError;\n\tlet init;\n\t({ handle, handleFetch, handleError, init } = await import(\"../../../src/hooks.server.js\"));\n\n\tlet reroute;\n\tlet transport;\n\t\n\n\treturn {\n\t\thandle,\n\t\thandleFetch,\n\t\thandleError,\n\t\tinit,\n\t\treroute,\n\t\ttransport\n\t};\n}\n","import { Redirect } from '@sveltejs/kit/internal';\nimport { with_request_store } from '@sveltejs/kit/internal/server';\nimport { BODY_DEPENDENT_METHODS, ENDPOINT_METHODS, PAGE_METHODS } from '../../constants.js';\nimport { negotiate } from '../../utils/http.js';\nimport { method_not_allowed } from './utils.js';\nimport * as e from '../../messages/server-errors.js';\n\n/**\n * @param {import('@sveltejs/kit').RequestEvent} event\n * @param {import('types').RequestState} state\n * @param {import('types').SSREndpoint} mod\n * @returns {Promise<Response>}\n */\nexport async function render_endpoint(event, state, mod) {\n\tconst method = /** @type {import('types').HttpMethod} */ (event.request.method);\n\n\tlet handler = mod[method] || mod.fallback;\n\n\tif (method === 'HEAD' && !mod.HEAD && mod.GET) {\n\t\thandler = mod.GET;\n\t}\n\n\tif (!handler) {\n\t\treturn method_not_allowed(mod, method);\n\t}\n\n\tconst prerender = mod.prerender ?? state.prerender_default;\n\n\tif (\n\t\tprerender &&\n\t\t(mod.fallback ||\n\t\t\t/** @type {import('types').HttpMethod[]} */ (BODY_DEPENDENT_METHODS).some(\n\t\t\t\t(method) => mod[method]\n\t\t\t))\n\t) {\n\t\te.prerender_endpoint_methods({\n\t\t\tmethods: BODY_DEPENDENT_METHODS.join(', '),\n\t\t\tid: /** @type {string} */ (event.route.id)\n\t\t});\n\t}\n\n\tif (state.prerendering && !state.prerendering.inside_reroute && !prerender) {\n\t\tif (state.depth > 0) {\n\t\t\t// if request came from a prerendered page, bail\n\t\t\te.prerender_endpoint_not_prerenderable({ id: /** @type {string} */ (event.route.id) });\n\t\t} else {\n\t\t\t// if request came direct from the crawler, signal that\n\t\t\t// this route cannot be prerendered, but don't bail\n\t\t\treturn new Response(undefined, { status: 204 });\n\t\t}\n\t}\n\n\ttry {\n\t\tconst response = await with_request_store({ event, state }, () =>\n\t\t\thandler(/** @type {import('@sveltejs/kit').RequestEvent<Record<string, any>>} */ (event))\n\t\t);\n\n\t\tif (!(response instanceof Response)) {\n\t\t\te.endpoint_invalid_response({ path: event.url.pathname });\n\t\t}\n\n\t\tif (state.prerendering && (!state.prerendering.inside_reroute || prerender)) {\n\t\t\t// The returned Response might have immutable Headers\n\t\t\t// so we should clone them before trying to mutate them.\n\t\t\t// We also need to clone the response body since it may be read twice during prerendering\n\t\t\tconst cloned = new Response(response.clone().body, {\n\t\t\t\tstatus: response.status,\n\t\t\t\tstatusText: response.statusText,\n\t\t\t\theaders: new Headers(response.headers)\n\t\t\t});\n\t\t\tcloned.headers.set('x-sveltekit-prerender', String(prerender));\n\n\t\t\tif (state.prerendering.inside_reroute && prerender) {\n\t\t\t\t// Without this, the route wouldn't be recorded as prerendered,\n\t\t\t\t// because there's nothing after reroute that would do that.\n\t\t\t\tcloned.headers.set(\n\t\t\t\t\t'x-sveltekit-routeid',\n\t\t\t\t\tencodeURI(/** @type {string} */ (event.route.id))\n\t\t\t\t);\n\t\t\t\tstate.prerendering.dependencies.set(event.url.pathname, { response: cloned, body: null });\n\t\t\t} else {\n\t\t\t\treturn cloned;\n\t\t\t}\n\t\t}\n\n\t\treturn response;\n\t} catch (e) {\n\t\tif (e instanceof Redirect) {\n\t\t\treturn new Response(undefined, {\n\t\t\t\tstatus: e.status,\n\t\t\t\theaders: { location: e.location }\n\t\t\t});\n\t\t}\n\n\t\tthrow e;\n\t}\n}\n\n/**\n * @param {import('@sveltejs/kit').RequestEvent} event\n */\nexport function is_endpoint_request(event) {\n\tconst { method, headers } = event.request;\n\n\t// These methods exist exclusively for endpoints\n\tif (ENDPOINT_METHODS.includes(method) && !PAGE_METHODS.includes(method)) {\n\t\treturn true;\n\t}\n\n\t// use:enhance uses a custom header to disambiguate\n\tif (method === 'POST' && headers.get('x-sveltekit-action') === 'true') return false;\n\n\t// GET/POST requests may be for endpoints or pages. We prefer endpoints if this isn't a text/html request\n\tconst accept = event.request.headers.get('accept') ?? '*/*';\n\treturn negotiate(accept, ['*', 'text/html']) !== 'text/html';\n}\n","/**\n * Removes nullish values from an array.\n *\n * @template T\n * @param {Array<T>} arr\n */\nexport function compact(arr) {\n\treturn arr.filter(/** @returns {val is NonNullable<T>} */ (val) => val != null);\n}\n","import { app_dir, base } from '#app/paths';\nimport { add_resolution_suffix } from '../pathname.js';\n\nexport * from '../pathname.js';\n\nconst ROUTES_PREFIX = '/routes';\n\n/**\n * The pathname of the route-ID-keyed resolution module for a given route ID,\n * e.g. `/_app/routes/blog/[slug]/__route.js` (before prefixing with `base`).\n * @param {string} route_id\n * @returns {string}\n */\nexport function route_id_resolution_pathname(route_id) {\n\treturn add_resolution_suffix(`/${app_dir}${ROUTES_PREFIX}${route_id === '/' ? '' : route_id}`);\n}\n\n/**\n * Whether a pathname (with the `/__route.js` suffix already stripped, and `base` NOT yet stripped)\n * is a route-ID resolution request rather than a pathname resolution request.\n * @param {string} pathname\n * @returns {boolean}\n */\nexport function is_route_id_resolution_path(pathname) {\n\tconst prefix = `${base}/${app_dir}${ROUTES_PREFIX}`;\n\treturn pathname === prefix || pathname.startsWith(prefix + '/');\n}\n\n/**\n * Extract the route ID from a decoded, base-stripped, suffix-stripped pathname,\n * e.g. `/_app/routes/blog/[slug]` -> `/blog/[slug]`, `/_app/routes` -> `/`.\n * @param {string} pathname\n * @returns {string}\n */\nexport function extract_route_id(pathname) {\n\treturn pathname.slice(`/${app_dir}${ROUTES_PREFIX}`.length) || '/';\n}\n","/** @import { Component } from 'svelte'; */\n\n/**\n * Resolves the `+error.svelte` component that guards each node of `branch`, aligned to the\n * branch with its empty slots removed. A node is guarded by the closest error page declared\n * at or above it, except the root layout, which wraps the root error component rather than\n * being wrapped by it.\n * @template T\n * @param {Array<unknown>} branch\n * @param {Array<T | undefined | null>} errors the error page declared at each depth, if any\n * @param {(error: T) => Promise<Component | undefined> | undefined} load\n * @returns {Promise<Array<Component | undefined>>}\n */\nexport function build_error_chain(branch, errors, load) {\n\t/** @type {Array<Promise<Component | undefined> | undefined>} */\n\tconst chain = [undefined];\n\tlet last_idx = -1;\n\n\tfor (let i = 1; i < branch.length; i += 1) {\n\t\tif (!branch[i]) continue;\n\n\t\tlet j = i - 1;\n\t\twhile (j > last_idx + 1 && errors[j] == null) j -= 1;\n\t\tlast_idx = j;\n\n\t\tconst error = errors[j];\n\t\tchain.push(error == null ? undefined : load(error)?.catch(() => undefined));\n\t}\n\n\t// depths with no error page contribute `undefined` rather than a promise\n\t// eslint-disable-next-line @typescript-eslint/await-thenable\n\treturn Promise.all(chain);\n}\n\n/**\n * Walks up from the node at index `i` through the `+error.svelte` pages declared strictly\n * above it, nearest first. Yields each candidate with the branch depth it attaches at,\n * rewound past empty branch slots, so callers can skip candidates that fail to load.\n * @template T\n * @param {number} i\n * @param {Array<unknown>} branch\n * @param {Array<T | undefined | null>} errors the error page declared at each depth, if any\n * @returns {Generator<{ error: T; idx: number }>}\n */\nexport function* nearest_error_pages(i, branch, errors) {\n\twhile (i--) {\n\t\tconst error = errors[i];\n\t\tif (error != null) {\n\t\t\tlet j = i;\n\t\t\twhile (!branch[j]) j -= 1;\n\t\t\tyield { error, idx: j + 1 };\n\t\t}\n\t}\n}\n","import { noop } from './functions.js';\n\n/**\n * Create an async iterator and a function to push values into it\n * @template T\n * @returns {{\n * iterate: (transform?: (input: T) => T) => AsyncIterable<T>;\n * add: (promise: Promise<T>) => void;\n * }}\n */\nexport function create_async_iterator() {\n\tlet resolved = -1;\n\n\t/** @type {PromiseWithResolvers<T>[]} */\n\tconst deferred = [];\n\n\treturn {\n\t\tasync *iterate(transform = (x) => x) {\n\t\t\t// `deferred` can grow while we iterate, as resolved values may add further promises\n\t\t\tfor (let i = 0; i < deferred.length; i += 1) {\n\t\t\t\tyield transform(await deferred[i].promise);\n\t\t\t}\n\t\t},\n\t\tadd: (promise) => {\n\t\t\tconst next = Promise.withResolvers();\n\t\t\tvoid next.promise.catch(noop); // prevent unhandled rejection potentially crashing the process\n\t\t\tdeferred.push(next);\n\n\t\t\tvoid promise.then(\n\t\t\t\t(value) => {\n\t\t\t\t\tdeferred[++resolved].resolve(value);\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tdeferred[++resolved].reject(error);\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t};\n}\n","import * as devalue from 'devalue';\nimport { compact } from '../../../utils/array.js';\nimport { create_async_iterator } from '../../../utils/streaming.js';\nimport { serialize_uses, throw_devalue_error } from '../utils.js';\nimport { handle_error_and_jsonify } from '../errors.js';\nimport { encoders } from '#app/internal/transport';\nimport { capture_error } from '../../../messages/internal/server.js';\nimport * as e from '../../../messages/server-errors.js';\n\n/**\n * If the serialized data contains promises, `chunks` will be an\n * async iterable containing their resolutions\n * @param {import('@sveltejs/kit').RequestEvent} event\n * @param {import('types').RequestState} state\n * @returns {import('./types.js').ServerDataSerializer}\n */\nexport function server_data_serializer(event, state) {\n\tlet promise_id = 1;\n\tlet max_nodes = -1;\n\n\tconst iterator = create_async_iterator();\n\tconst global = __SVELTEKIT_GLOBAL_NAME__;\n\n\t/** @param {number} index */\n\tfunction get_replacer(index) {\n\t\t/** @param {any} thing */\n\t\treturn function replacer(thing) {\n\t\t\tif (typeof thing?.then === 'function') {\n\t\t\t\tconst id = promise_id++;\n\n\t\t\t\tconst promise = thing\n\t\t\t\t\t.then(/** @param {any} data */ (data) => ({ data }))\n\t\t\t\t\t.catch(\n\t\t\t\t\t\t/** @param {any} error */ async (error) => ({\n\t\t\t\t\t\t\terror: await handle_error_and_jsonify(event, state, error)\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t\t.then(\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * @param {{data: any; error: any}} result\n\t\t\t\t\t\t */\n\t\t\t\t\t\tasync ({ data, error }) => {\n\t\t\t\t\t\t\tlet str;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tstr = devalue.uneval(error ? [, error] : [data], replacer);\n\t\t\t\t\t\t\t} catch (serialization_error) {\n\t\t\t\t\t\t\t\terror = await handle_error_and_jsonify(\n\t\t\t\t\t\t\t\t\tevent,\n\t\t\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\t\t\tcapture_error(() =>\n\t\t\t\t\t\t\t\t\t\te.load_promise_not_serializable(\n\t\t\t\t\t\t\t\t\t\t\t{ id: /** @type {string} */ (event.route.id) },\n\t\t\t\t\t\t\t\t\t\t\t{ cause: serialization_error }\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tstr = devalue.uneval([, error], replacer);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tindex,\n\t\t\t\t\t\t\t\tstr: `${global}.resolve(${id}, ${str.includes('app.decode') ? `(app) => ${str}` : `() => ${str}`})`\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\titerator.add(promise);\n\n\t\t\t\treturn `${global}.defer(${id})`;\n\t\t\t} else {\n\t\t\t\tfor (const key in encoders) {\n\t\t\t\t\tconst encoded = encoders[key](thing);\n\t\t\t\t\tif (encoded) {\n\t\t\t\t\t\treturn `app.decode('${key}', ${devalue.uneval(encoded, replacer)})`;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\n\tconst strings = /** @type {string[]} */ ([]);\n\n\treturn {\n\t\tset_max_nodes(i) {\n\t\t\tmax_nodes = i;\n\t\t},\n\n\t\tadd_node(i, node) {\n\t\t\ttry {\n\t\t\t\tif (!node) {\n\t\t\t\t\tstrings[i] = 'null';\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t/** @type {any} */\n\t\t\t\tconst payload = { type: 'data', data: node.data, uses: serialize_uses(node) };\n\t\t\t\tif (node.slash) payload.slash = node.slash;\n\n\t\t\t\tstrings[i] = devalue.uneval(payload, get_replacer(i));\n\t\t\t} catch (/** @type {any} */ error) {\n\t\t\t\terror.path = error.path.slice(1);\n\t\t\t\tthrow_devalue_error(event, error);\n\t\t\t}\n\t\t},\n\n\t\tget_data(csp) {\n\t\t\tconst open = `<script${csp.script_needs_nonce ? ` nonce=\"${csp.nonce}\"` : ''}>`;\n\t\t\tconst close = `</script>\\n`;\n\n\t\t\treturn {\n\t\t\t\tdata: `[${compact(max_nodes > -1 ? strings.slice(0, max_nodes) : strings).join(',')}]`,\n\t\t\t\tchunks:\n\t\t\t\t\tpromise_id > 1\n\t\t\t\t\t\t? iterator.iterate(({ index, str }) => {\n\t\t\t\t\t\t\t\tif (max_nodes > -1 && index >= max_nodes) {\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn open + str + close;\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: null\n\t\t\t};\n\t\t}\n\t};\n}\n\n/**\n * If the serialized data contains promises, `chunks` will be an\n * async iterable containing their resolutions\n * @param {import('@sveltejs/kit').RequestEvent} event\n * @param {import('types').RequestState} state\n * @returns {import('./types.js').ServerDataSerializerJson}\n */\nexport function server_data_serializer_json(event, state) {\n\tlet promise_id = 1;\n\n\tconst iterator = create_async_iterator();\n\n\tconst reducers = {\n\t\t...encoders,\n\t\t/** @param {any} thing */\n\t\tPromise: (thing) => {\n\t\t\tif (typeof thing?.then !== 'function') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst id = promise_id++;\n\n\t\t\t/** @type {'data' | 'error'} */\n\t\t\tlet key = 'data';\n\n\t\t\tconst promise = thing\n\t\t\t\t.catch(\n\t\t\t\t\t/** @param {any} error */ async (error) => {\n\t\t\t\t\t\tkey = 'error';\n\t\t\t\t\t\treturn handle_error_and_jsonify(event, state, error);\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\t.then(\n\t\t\t\t\t/** @param {any} value */\n\t\t\t\t\tasync (value) => {\n\t\t\t\t\t\tlet str;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstr = devalue.stringify(value, reducers);\n\t\t\t\t\t\t} catch (serialization_error) {\n\t\t\t\t\t\t\tconst error = await handle_error_and_jsonify(\n\t\t\t\t\t\t\t\tevent,\n\t\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\t\tcapture_error(() =>\n\t\t\t\t\t\t\t\t\te.load_promise_not_serializable(\n\t\t\t\t\t\t\t\t\t\t{ id: /** @type {string} */ (event.route.id) },\n\t\t\t\t\t\t\t\t\t\t{ cause: serialization_error }\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\tkey = 'error';\n\t\t\t\t\t\t\tstr = devalue.stringify(error, reducers);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn `{\"type\":\"chunk\",\"id\":${id},\"${key}\":${str}}\\n`;\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\titerator.add(promise);\n\n\t\t\treturn id;\n\t\t}\n\t};\n\n\tconst strings = /** @type {string[]} */ ([]);\n\n\treturn {\n\t\tadd_node(i, node) {\n\t\t\ttry {\n\t\t\t\tif (!node) {\n\t\t\t\t\tstrings[i] = 'null';\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (node.type === 'error' || node.type === 'skip') {\n\t\t\t\t\tstrings[i] = JSON.stringify(node);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstrings[i] =\n\t\t\t\t\t`{\"type\":\"data\",\"data\":${devalue.stringify(node.data, reducers)},\"uses\":${JSON.stringify(\n\t\t\t\t\t\tserialize_uses(node)\n\t\t\t\t\t)}${node.slash ? `,\"slash\":${JSON.stringify(node.slash)}` : ''}}`;\n\t\t\t} catch (/** @type {any} */ error) {\n\t\t\t\terror.path = 'data' + error.path;\n\t\t\t\tthrow_devalue_error(event, error);\n\t\t\t}\n\t\t},\n\n\t\tget_data() {\n\t\t\treturn {\n\t\t\t\tdata: `{\"type\":\"data\",\"nodes\":[${strings.join(',')}]}\\n`,\n\t\t\t\tchunks: promise_id > 1 ? iterator.iterate() : null\n\t\t\t};\n\t\t}\n\t};\n}\n","export const NULL_BODY_STATUS = [101, 103, 204, 205, 304];\n","import { DEV } from 'esm-env';\nimport { noop } from '../../../utils/functions.js';\nimport { disable_search, make_trackable } from '../../../utils/url.js';\nimport { fetch_cache_url, validate_depends, validate_load_response } from '../../shared.js';\nimport { with_request_store, merge_tracing, record_span } from '@sveltejs/kit/internal/server';\nimport { base64_encode } from '../../utils.js';\nimport { NULL_BODY_STATUS } from '../constants.js';\nimport { get_node_type } from '../utils.js';\nimport * as e from '../../../messages/server-errors.js';\nimport * as w from '../../../messages/server-warnings.js';\n\n/**\n * Calls the user's server `load` function.\n * @param {{\n * event: import('@sveltejs/kit').RequestEvent;\n * state: import('types').RequestState;\n * node: import('types').SSRNode | undefined;\n * parent: () => Promise<Record<string, any>>;\n * }} opts\n * @returns {Promise<import('types').ServerDataNode | null>}\n */\nexport async function load_server_data({ event, state, node, parent }) {\n\tif (!node?.server) return null;\n\n\tlet is_tracking = true;\n\n\tconst uses = {\n\t\tdependencies: new Set(),\n\t\tparams: new Set(),\n\t\tparent: false,\n\t\troute: false,\n\t\turl: false,\n\t\tsearch_params: new Set()\n\t};\n\n\tconst load = node.server.load;\n\t// TODO: shouldn't this be calculated using PageNodes? there could be a trailingSlash option on a layout\n\tconst slash = node.server.trailingSlash;\n\n\tif (!load) {\n\t\treturn { type: 'data', data: null, uses, slash };\n\t}\n\n\tconst url = make_trackable(\n\t\tevent.url,\n\t\t() => {\n\t\t\tif (DEV && done && !uses.url) {\n\t\t\t\tw.load_tracking_after_return({\n\t\t\t\t\tid: /** @type {string} */ (node.server_id),\n\t\t\t\t\tusage: 'Accessing URL properties',\n\t\t\t\t\tchange: 'the URL changes'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (is_tracking) {\n\t\t\t\tuses.url = true;\n\t\t\t}\n\t\t},\n\t\t(param) => {\n\t\t\tif (DEV && done && !uses.search_params.has(param)) {\n\t\t\t\tw.load_tracking_after_return({\n\t\t\t\t\tid: /** @type {string} */ (node.server_id),\n\t\t\t\t\tusage: 'Accessing URL properties',\n\t\t\t\t\tchange: 'the URL changes'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (is_tracking) {\n\t\t\t\tuses.search_params.add(param);\n\t\t\t}\n\t\t}\n\t);\n\n\tif (state.prerendering || state.prerender_default === true) {\n\t\tdisable_search(url);\n\t}\n\n\tlet done = false;\n\n\tconst result = await record_span({\n\t\tname: 'sveltekit.load',\n\t\tattributes: {\n\t\t\t'sveltekit.load.node_id': node.server_id || 'unknown',\n\t\t\t'sveltekit.load.node_type': get_node_type(node.server_id),\n\t\t\t'sveltekit.load.environment': 'server',\n\t\t\t'http.route': event.route.id || 'unknown'\n\t\t},\n\t\tfn: async (current) => {\n\t\t\tconst traced_event = merge_tracing(event, current);\n\t\t\tconst result = await with_request_store({ event: traced_event, state }, () =>\n\t\t\t\tload.call(null, {\n\t\t\t\t\t...traced_event,\n\t\t\t\t\tfetch: (info, init) => {\n\t\t\t\t\t\tconst url = new URL(info instanceof Request ? info.url : info, event.url);\n\n\t\t\t\t\t\tif (DEV && done && !uses.dependencies.has(url.href)) {\n\t\t\t\t\t\t\tw.load_tracking_after_return({\n\t\t\t\t\t\t\t\tid: /** @type {string} */ (node.server_id),\n\t\t\t\t\t\t\t\tusage: 'Calling `event.fetch(...)`',\n\t\t\t\t\t\t\t\tchange: 'the dependency is invalidated'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Note: server fetches are not added to uses.depends due to security concerns\n\t\t\t\t\t\treturn event.fetch(info, init);\n\t\t\t\t\t},\n\t\t\t\t\t/** @param {string[]} deps */\n\t\t\t\t\tdepends: (...deps) => {\n\t\t\t\t\t\tfor (const dep of deps) {\n\t\t\t\t\t\t\tconst { href } = new URL(dep, event.url);\n\n\t\t\t\t\t\t\tif (DEV) {\n\t\t\t\t\t\t\t\tvalidate_depends(node.server_id || 'missing route ID', dep);\n\n\t\t\t\t\t\t\t\tif (done && !uses.dependencies.has(href)) {\n\t\t\t\t\t\t\t\t\tw.load_tracking_after_return({\n\t\t\t\t\t\t\t\t\t\tid: /** @type {string} */ (node.server_id),\n\t\t\t\t\t\t\t\t\t\tusage: 'Calling `depends(...)`',\n\t\t\t\t\t\t\t\t\t\tchange: 'the dependency is invalidated'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tuses.dependencies.add(href);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tparams: new Proxy(event.params, {\n\t\t\t\t\t\tget: (target, key) => {\n\t\t\t\t\t\t\tif (DEV && done && typeof key === 'string' && !uses.params.has(key)) {\n\t\t\t\t\t\t\t\tw.load_tracking_after_return({\n\t\t\t\t\t\t\t\t\tid: /** @type {string} */ (node.server_id),\n\t\t\t\t\t\t\t\t\tusage: `Accessing \\`params.${key}\\``,\n\t\t\t\t\t\t\t\t\tchange: 'the param changes'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\t\t\tuses.params.add(key);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn target[/** @type {string} */ (key)];\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t\tparent: async () => {\n\t\t\t\t\t\tif (DEV && done && !uses.parent) {\n\t\t\t\t\t\t\tw.load_tracking_after_return({\n\t\t\t\t\t\t\t\tid: /** @type {string} */ (node.server_id),\n\t\t\t\t\t\t\t\tusage: 'Calling `parent(...)`',\n\t\t\t\t\t\t\t\tchange: 'parent data changes'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\t\tuses.parent = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn parent();\n\t\t\t\t\t},\n\t\t\t\t\troute: new Proxy(event.route, {\n\t\t\t\t\t\tget: (target, key) => {\n\t\t\t\t\t\t\tif (DEV && done && typeof key === 'string' && !uses.route) {\n\t\t\t\t\t\t\t\tw.load_tracking_after_return({\n\t\t\t\t\t\t\t\t\tid: /** @type {string} */ (node.server_id),\n\t\t\t\t\t\t\t\t\tusage: `Accessing \\`route.${key}\\``,\n\t\t\t\t\t\t\t\t\tchange: 'the route changes'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\t\t\tuses.route = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn target[/** @type {'id'} */ (key)];\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t\turl,\n\t\t\t\t\tuntrack(fn) {\n\t\t\t\t\t\tis_tracking = false;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn fn();\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tis_tracking = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t);\n\n\t\t\treturn result;\n\t\t}\n\t});\n\n\tif (DEV) {\n\t\tvalidate_load_response(result, `in ${node.server_id}`);\n\t}\n\n\tdone = true;\n\n\treturn {\n\t\ttype: 'data',\n\t\tdata: result ?? null,\n\t\tuses,\n\t\tslash\n\t};\n}\n\n/**\n * Calls the user's `load` function.\n * @param {{\n * event: import('@sveltejs/kit').RequestEvent;\n * state: import('types').RequestState;\n * fetched: import('./types.js').Fetched[];\n * node: import('types').SSRNode | undefined;\n * parent: () => Promise<Record<string, any>>;\n * resolve_opts: import('types').RequiredResolveOptions;\n * server_data_promise: Promise<import('types').ServerDataNode | null>;\n * csr: boolean;\n * }} opts\n * @returns {Promise<Record<string, any | Promise<any>> | null>}\n */\nexport async function load_data({\n\tevent,\n\tstate,\n\tfetched,\n\tnode,\n\tparent,\n\tserver_data_promise,\n\tresolve_opts,\n\tcsr\n}) {\n\tconst server_data_node = await server_data_promise;\n\n\tconst load = node?.universal?.load;\n\n\tif (!load) {\n\t\treturn server_data_node?.data ?? null;\n\t}\n\n\tconst result = await record_span({\n\t\tname: 'sveltekit.load',\n\t\tattributes: {\n\t\t\t'sveltekit.load.node_id': node.universal_id || 'unknown',\n\t\t\t'sveltekit.load.node_type': get_node_type(node.universal_id),\n\t\t\t'sveltekit.load.environment': 'server',\n\t\t\t'http.route': event.route.id || 'unknown'\n\t\t},\n\t\tfn: async (current) => {\n\t\t\tconst traced_event = merge_tracing(event, current);\n\n\t\t\treturn await with_request_store({ event: traced_event, state }, () =>\n\t\t\t\tload.call(null, {\n\t\t\t\t\turl: event.url,\n\t\t\t\t\tparams: event.params,\n\t\t\t\t\tdata: server_data_node?.data ?? null,\n\t\t\t\t\troute: event.route,\n\t\t\t\t\tfetch: create_universal_fetch(event, state.prerendering, fetched, csr, resolve_opts),\n\t\t\t\t\tsetHeaders: event.setHeaders,\n\t\t\t\t\tdepends: noop,\n\t\t\t\t\tparent,\n\t\t\t\t\tuntrack: (fn) => fn(),\n\t\t\t\t\ttracing: traced_event.tracing\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\t});\n\n\tif (DEV) {\n\t\tvalidate_load_response(result, `in ${node.universal_id}`);\n\t}\n\n\treturn result ?? null;\n}\n\n/**\n * @param {Pick<import('@sveltejs/kit').RequestEvent, 'fetch' | 'url' | 'request' | 'route'>} event\n * @param {import('types').PrerenderOptions | undefined} prerendering\n * @param {import('./types.js').Fetched[]} fetched\n * @param {boolean} csr\n * @param {Pick<Required<import('@sveltejs/kit/hooks').ResolveOptions>, 'filterSerializedResponseHeaders'>} resolve_opts\n * @returns {typeof fetch}\n */\nexport function create_universal_fetch(event, prerendering, fetched, csr, resolve_opts) {\n\t/**\n\t * @param {URL | RequestInfo} input\n\t * @param {RequestInit} [init]\n\t */\n\tconst universal_fetch = async (input, init) => {\n\t\tconst cloned_body = input instanceof Request && input.body ? input.clone().body : null;\n\n\t\tconst cloned_headers =\n\t\t\tinput instanceof Request && [...input.headers].length\n\t\t\t\t? new Headers(input.headers)\n\t\t\t\t: init?.headers;\n\n\t\tlet response = await event.fetch(input, init);\n\n\t\tconst url = new URL(input instanceof Request ? input.url : input, event.url);\n\t\tconst same_origin = url.origin === event.url.origin;\n\n\t\t/** @type {import('types').PrerenderDependency} */\n\t\tlet dependency;\n\n\t\tif (same_origin) {\n\t\t\tif (prerendering) {\n\t\t\t\tdependency = { response, body: null };\n\t\t\t\tprerendering.dependencies.set(url.pathname, dependency);\n\t\t\t}\n\t\t} else if (url.protocol === 'https:' || url.protocol === 'http:') {\n\t\t\t// simulate CORS errors and \"no access to body in no-cors mode\" server-side for consistency with client-side behaviour\n\t\t\tconst mode = input instanceof Request ? input.mode : (init?.mode ?? 'cors');\n\t\t\tif (mode === 'no-cors') {\n\t\t\t\tresponse = new Response('', {\n\t\t\t\t\tstatus: response.status,\n\t\t\t\t\tstatusText: response.statusText,\n\t\t\t\t\theaders: response.headers\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tconst acao = response.headers.get('access-control-allow-origin');\n\t\t\t\tif (!acao || (acao !== event.url.origin && acao !== '*')) {\n\t\t\t\t\te.load_fetch_cors({ reason: acao ? 'Incorrect' : 'No' });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/** @type {ReadableStream<Uint8Array>} */\n\t\tlet teed_body;\n\n\t\tconst proxy = new Proxy(response, {\n\t\t\tget(response, key, receiver) {\n\t\t\t\t/**\n\t\t\t\t * @param {string | undefined} body\n\t\t\t\t * @param {boolean} is_b64\n\t\t\t\t */\n\t\t\t\tasync function push_fetched(body, is_b64) {\n\t\t\t\t\tconst status_number = Number(response.status);\n\t\t\t\t\tif (isNaN(status_number)) {\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t`response.status is not a number. value: \"${\n\t\t\t\t\t\t\t\tresponse.status\n\t\t\t\t\t\t\t}\" type: ${typeof response.status}`\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst request_body =\n\t\t\t\t\t\tinput instanceof Request && cloned_body\n\t\t\t\t\t\t\t? await new Response(cloned_body).text()\n\t\t\t\t\t\t\t: init?.body;\n\n\t\t\t\t\tif (\n\t\t\t\t\t\trequest_body &&\n\t\t\t\t\t\ttypeof request_body !== 'string' &&\n\t\t\t\t\t\t!ArrayBuffer.isView(request_body)\n\t\t\t\t\t) {\n\t\t\t\t\t\t// requests whose body can't be hashed aren't serialized — the browser repeats the fetch\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tfetched.push({\n\t\t\t\t\t\turl: fetch_cache_url(url, event.url),\n\t\t\t\t\t\tmethod: event.request.method,\n\t\t\t\t\t\trequest_body: /** @type {string | ArrayBufferView | null | undefined} */ (request_body),\n\t\t\t\t\t\trequest_headers: cloned_headers,\n\t\t\t\t\t\tresponse_body: body,\n\t\t\t\t\t\tresponse,\n\t\t\t\t\t\tis_b64\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (key === 'body') {\n\t\t\t\t\tif (response.body === null) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (teed_body) {\n\t\t\t\t\t\treturn teed_body;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst [a, b] = response.body.tee();\n\n\t\t\t\t\tvoid (async () => {\n\t\t\t\t\t\tconst result = new Uint8Array(await new Response(a).arrayBuffer());\n\n\t\t\t\t\t\tif (dependency) {\n\t\t\t\t\t\t\tdependency.body = new Uint8Array(result);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvoid push_fetched(base64_encode(result), true);\n\t\t\t\t\t})().catch(noop); // prevent unhandled rejection potentially crashing the process\n\n\t\t\t\t\treturn (teed_body = b);\n\t\t\t\t}\n\n\t\t\t\tif (key === 'arrayBuffer') {\n\t\t\t\t\treturn async () => {\n\t\t\t\t\t\tconst buffer = await response.arrayBuffer();\n\n\t\t\t\t\t\tconst bytes = new Uint8Array(buffer);\n\n\t\t\t\t\t\tif (dependency) {\n\t\t\t\t\t\t\tdependency.body = bytes;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (buffer instanceof ArrayBuffer) {\n\t\t\t\t\t\t\tawait push_fetched(base64_encode(bytes), true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn buffer;\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tasync function text() {\n\t\t\t\t\tconst body = await response.text();\n\n\t\t\t\t\tif (body === '' && NULL_BODY_STATUS.includes(response.status)) {\n\t\t\t\t\t\tawait push_fetched(undefined, false);\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!body || typeof body === 'string') {\n\t\t\t\t\t\tawait push_fetched(body, false);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (dependency) {\n\t\t\t\t\t\tdependency.body = body;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn body;\n\t\t\t\t}\n\n\t\t\t\tif (key === 'text') {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\n\t\t\t\tif (key === 'json') {\n\t\t\t\t\treturn async () => {\n\t\t\t\t\t\tconst body = await text();\n\t\t\t\t\t\treturn body ? JSON.parse(body) : undefined;\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tconst value = Reflect.get(response, key, response);\n\n\t\t\t\tif (value instanceof Function) {\n\t\t\t\t\t// On Node v24+, the Response object has a private element #state – we\n\t\t\t\t\t// need to bind this function to the response in order to allow it to\n\t\t\t\t\t// access this private element. Defining the name and length ensure it\n\t\t\t\t\t// is identical to the original function when introspected.\n\t\t\t\t\treturn Object.defineProperties(\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * @this {any}\n\t\t\t\t\t\t */\n\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\treturn Reflect.apply(value, this === receiver ? response : this, arguments);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: { value: value.name },\n\t\t\t\t\t\t\tlength: { value: value.length }\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn value;\n\t\t\t}\n\t\t});\n\n\t\tif (csr) {\n\t\t\t// ensure that excluded headers can't be read\n\t\t\tconst get = response.headers.get;\n\t\t\tresponse.headers.get = (key) => {\n\t\t\t\tconst lower = key.toLowerCase();\n\t\t\t\tconst value = get.call(response.headers, lower);\n\t\t\t\tif (value && !lower.startsWith('x-sveltekit-')) {\n\t\t\t\t\tconst included = resolve_opts.filterSerializedResponseHeaders(lower, value);\n\t\t\t\t\tif (!included) {\n\t\t\t\t\t\te.load_response_header_not_serialized({\n\t\t\t\t\t\t\tname: lower,\n\t\t\t\t\t\t\tid: /** @type {string} */ (event.route.id)\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn value;\n\t\t\t};\n\n\t\t\tconst get_set_cookie = response.headers.getSetCookie;\n\t\t\tresponse.headers.getSetCookie = () => {\n\t\t\t\tconst values = get_set_cookie.call(response.headers);\n\t\t\t\tfor (const value of values) {\n\t\t\t\t\tconst included = resolve_opts.filterSerializedResponseHeaders('set-cookie', value);\n\t\t\t\t\tif (!included) {\n\t\t\t\t\t\te.load_response_header_not_serialized({\n\t\t\t\t\t\t\tname: 'set-cookie',\n\t\t\t\t\t\t\tid: /** @type {string} */ (event.route.id)\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn values;\n\t\t\t};\n\t\t}\n\n\t\treturn proxy;\n\t};\n\n\t// Don't make this function `async`! Otherwise, the user has to `catch` promises they use for streaming responses or else\n\t// it will be an unhandled rejection. Instead, we add a `.catch(noop)` ourselves below to this from happening.\n\treturn (input, init) => {\n\t\t// See docs in fetch.js for why we need to do this\n\t\tconst response = universal_fetch(input, init);\n\t\tresponse.catch(noop);\n\t\treturn response;\n\t};\n}\n","/**\n * Hash using djb2\n * @param {import('types').StrictBody[]} values\n */\nexport function hash(...values) {\n\tlet hash = 5381;\n\n\tfor (const value of values) {\n\t\tif (typeof value === 'string') {\n\t\t\tlet i = value.length;\n\t\t\twhile (i) hash = (hash * 33) ^ value.charCodeAt(--i);\n\t\t} else if (ArrayBuffer.isView(value)) {\n\t\t\tconst buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);\n\t\t\tlet i = buffer.length;\n\t\t\twhile (i) hash = (hash * 33) ^ buffer[--i];\n\t\t} else {\n\t\t\tthrow new TypeError('value must be a string or TypedArray');\n\t\t}\n\t}\n\n\treturn (hash >>> 0).toString(36);\n}\n\n/**\n * Hash of the headers and body a `fetch` was called with. The server-side serializer and the\n * client-side cache lookup must produce identical values for cached responses to be found.\n * @param {HeadersInit | undefined} headers\n * @param {import('types').StrictBody | null | undefined} body\n */\nexport function hash_request(headers, body) {\n\t/** @type {import('types').StrictBody[]} */\n\tconst values = [];\n\n\tif (headers) {\n\t\tvalues.push([...new Headers(headers)].join(','));\n\t}\n\n\tif (body) {\n\t\tvalues.push(body);\n\t}\n\n\treturn hash(...values);\n}\n","export const s = JSON.stringify;\n","import { s } from './misc.js';\n\n/**\n * When inside a double-quoted attribute value, only `&` and `\"` hold special meaning.\n * @see https://html.spec.whatwg.org/multipage/parsing.html#attribute-value-(double-quoted)-state\n * @type {Record<string, string>}\n */\nconst escape_html_attr_dict = {\n\t'&': '&amp;',\n\t'\"': '&quot;'\n\t// Svelte also escapes < because the escape function could be called inside a `noscript` there\n\t// https://github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c\n\t// However, that doesn't apply in SvelteKit\n};\n\n/**\n * @type {Record<string, string>}\n */\nconst escape_html_dict = {\n\t'&': '&amp;',\n\t'<': '&lt;'\n};\n\n// `\\p{Surrogate}` only matches unpaired surrogates with the `u` flag (a pair is one code point)\n/** @param {Record<string, string>} dict */\nconst escape_regex = (dict) => new RegExp(`[${Object.keys(dict).join('')}]|\\\\p{Surrogate}`, 'gu');\n\nconst escape_html_attr_regex = escape_regex(escape_html_attr_dict);\nconst escape_html_regex = escape_regex(escape_html_dict);\n\n/**\n * Escapes unpaired surrogates (which are allowed in js strings but invalid in HTML) and\n * escapes characters that are special.\n *\n * @param {string} str\n * @param {boolean} [is_attr]\n * @returns {string} escaped string\n * @example const html = `<tag data-value=\"${escape_html('value', true)}\">...</tag>`;\n */\nexport function escape_html(str, is_attr) {\n\tconst dict = is_attr ? escape_html_attr_dict : escape_html_dict;\n\tconst escaped_str = str.replace(\n\t\tis_attr ? escape_html_attr_regex : escape_html_regex,\n\t\t(match) => dict[match] ?? `&#${match.charCodeAt(0)};`\n\t);\n\n\treturn escaped_str;\n}\n\n/** @typedef {{ placeholder: string, replacement: string }} Replacement */\n\n/**\n * Escapes backslashes, backticks, and dollar signs so that the string can be\n * safely used as part of a template literal.\n * @param {string} str\n * @param {Replacement[]} replacements Placeholders to replace after escaping.\n * \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t This is necessary when the string contains\n * \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t placeholders that we want to preserve, such as `${assets}`\n * @returns {string} escaped string\n */\nexport function escape_for_interpolation(str, replacements) {\n\tlet escaped = s(str).slice(1, -1).replaceAll('`', '\\\\`').replaceAll('$', '\\\\$');\n\tfor (const { placeholder, replacement } of replacements) {\n\t\tescaped = escaped.replaceAll(placeholder, replacement);\n\t}\n\treturn escaped;\n}\n","import { escape_html } from '../../../utils/escape.js';\nimport { hash_request } from '../../../utils/hash.js';\n\n/**\n * Inside a script element, only `</script` and `<!--` hold special meaning to the HTML parser.\n *\n * The first closes the script element, so everything after is treated as raw HTML.\n * The second disables further parsing until `-->`, so the script element might be unexpectedly\n * kept open up until an unrelated HTML comment in the page.\n *\n * U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR are escaped for the sake of pre-2018\n * browsers.\n *\n * @see tests for unsafe parsing examples.\n * @see https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements\n * @see https://html.spec.whatwg.org/multipage/syntax.html#cdata-rcdata-restrictions\n * @see https://html.spec.whatwg.org/multipage/parsing.html#script-data-state\n * @see https://html.spec.whatwg.org/multipage/parsing.html#script-data-double-escaped-state\n * @see https://github.com/tc39/proposal-json-superset\n * @type {Record<string, string>}\n */\nconst replacements = {\n\t'<': '\\\\u003C',\n\t'\\u2028': '\\\\u2028',\n\t'\\u2029': '\\\\u2029'\n};\n\nconst pattern = new RegExp(`[${Object.keys(replacements).join('')}]`, 'g');\n\n/**\n * Generates a raw HTML string containing a safe script element carrying data and associated attributes.\n *\n * It escapes all the special characters needed to guarantee the element is unbroken, but care must\n * be taken to ensure it is inserted in the document at an acceptable position for a script element,\n * and that the resulting string isn't further modified.\n *\n * @param {import('./types.js').Fetched} fetched\n * @param {(name: string, value: string) => boolean} filter\n * @param {boolean} [prerendering]\n * @returns {string} The raw HTML of a script element carrying the JSON payload.\n * @example const html = serialize_data('/data.json', null, { foo: 'bar' });\n */\nexport function serialize_data(fetched, filter, prerendering = false) {\n\t/** @type {Record<string, string>} */\n\tconst headers = {};\n\n\tlet cache_control = null;\n\tlet age = null;\n\tlet varyAny = false;\n\n\tfor (const [key, value] of fetched.response.headers) {\n\t\tif (filter(key, value)) {\n\t\t\theaders[key] = value;\n\t\t}\n\n\t\tif (key === 'cache-control') cache_control = value;\n\t\telse if (key === 'age') age = value;\n\t\telse if (key === 'vary' && value.trim() === '*') varyAny = true;\n\t}\n\n\tconst payload = {\n\t\tstatus: fetched.response.status,\n\t\tstatusText: fetched.response.statusText,\n\t\theaders,\n\t\tbody: fetched.response_body\n\t};\n\n\tconst safe_payload = JSON.stringify(payload).replace(pattern, (match) => replacements[match]);\n\n\tconst attrs = [\n\t\t'type=\"application/json\"',\n\t\t'data-sveltekit-fetched',\n\t\t`data-url=\"${escape_html(fetched.url, true)}\"`\n\t];\n\n\tif (fetched.is_b64) {\n\t\tattrs.push('data-b64');\n\t}\n\n\tif (fetched.request_headers || fetched.request_body) {\n\t\tattrs.push(`data-hash=\"${hash_request(fetched.request_headers, fetched.request_body)}\"`);\n\t}\n\n\t// Compute the time the response should be cached, taking into account max-age and age.\n\t// Do not cache at all if a `Vary: *` header is present, as this indicates that the\n\t// cache is likely to get busted.\n\tif (!prerendering && fetched.method === 'GET' && cache_control && !varyAny) {\n\t\tconst match = /s-maxage=(\\d+)/g.exec(cache_control) ?? /max-age=(\\d+)/g.exec(cache_control);\n\t\tif (match) {\n\t\t\tconst ttl = +match[1] - +(age ?? '0');\n\t\t\tattrs.push(`data-ttl=\"${ttl}\"`);\n\t\t}\n\t}\n\n\treturn `<script ${attrs.join(' ')}>${safe_payload}</script>`;\n}\n","import { escape_html } from '../../../utils/escape.js';\nimport { base64_encode, text_encoder } from '../../utils.js';\nimport * as e from '../../../messages/server-errors.js';\n\nconst array = new Uint8Array(16);\n\nfunction generate_nonce() {\n\tcrypto.getRandomValues(array);\n\treturn base64_encode(array);\n}\n\n/** @param {string} content */\nasync function sha256(content) {\n\tconst digest = await crypto.subtle.digest('SHA-256', text_encoder.encode(content));\n\treturn base64_encode(new Uint8Array(digest));\n}\n\n/** @typedef {`nonce-${string}` | `sha256-${string}`} CspSource */\n\nconst quoted = new Set([\n\t'self',\n\t'unsafe-eval',\n\t'unsafe-hashes',\n\t'unsafe-inline',\n\t'none',\n\t'strict-dynamic',\n\t'report-sample',\n\t'wasm-unsafe-eval',\n\t'script'\n]);\n\nconst crypto_pattern = /^(nonce|sha\\d\\d\\d)-/;\n\n// CSP and CSP Report Only are extremely similar with a few caveats\n// the easiest/DRYest way to express this is with some private encapsulation\nclass BaseProvider {\n\t/** @type {boolean} */\n\t#use_hashes;\n\n\t/** @type {boolean} */\n\tscript_needs_csp;\n\n\t/** @type {boolean} */\n\t#script_src_needs_csp;\n\n\t/** @type {boolean} */\n\t#script_src_elem_needs_csp;\n\n\t/** @type {boolean} */\n\tstyle_needs_csp;\n\n\t/** @type {boolean} */\n\t#style_src_needs_csp;\n\n\t/** @type {boolean} */\n\t#style_src_attr_needs_csp;\n\n\t/** @type {boolean} */\n\t#style_src_elem_needs_csp;\n\n\t/** @type {import('types').CspDirectives} */\n\t#directives;\n\n\t/** @type {Set<import('types').Csp.Source>} */\n\t#script_src = new Set();\n\n\t/** @type {Set<import('types').Csp.Source>} */\n\t#script_src_elem = new Set();\n\n\t/** @type {Set<import('types').Csp.Source>} */\n\t#style_src = new Set();\n\n\t/** @type {Set<import('types').Csp.Source>} */\n\t#style_src_attr = new Set();\n\n\t/** @type {Set<import('types').Csp.Source>} */\n\t#style_src_elem = new Set();\n\n\t/** @type {boolean} */\n\tscript_needs_nonce;\n\n\t/** @type {boolean} */\n\tstyle_needs_nonce;\n\n\t/** @type {boolean} */\n\tscript_needs_hash;\n\n\t/**\n\t * @param {boolean} use_hashes\n\t * @param {import('types').CspDirectives} directives\n\t */\n\tconstructor(use_hashes, directives) {\n\t\tthis.#use_hashes = use_hashes;\n\t\tthis.#directives = __SVELTEKIT_DEV__ ? { ...directives } : directives; // clone in dev so we can safely mutate\n\n\t\tconst d = this.#directives;\n\n\t\tconst effective_script_src = d['script-src'] || d['default-src'];\n\t\tconst script_src_elem = d['script-src-elem'];\n\t\tconst effective_style_src = d['style-src'] || d['default-src'];\n\t\tconst style_src_attr = d['style-src-attr'];\n\t\tconst style_src_elem = d['style-src-elem'];\n\n\t\tif (__SVELTEKIT_DEV__) {\n\t\t\t// remove strict-dynamic in dev...\n\t\t\t// TODO reinstate this if we can figure out how to make strict-dynamic work\n\t\t\t// if (d['default-src']) {\n\t\t\t// \td['default-src'] = d['default-src'].filter((name) => name !== 'strict-dynamic');\n\t\t\t// \tif (d['default-src'].length === 0) delete d['default-src'];\n\t\t\t// }\n\n\t\t\t// if (d['script-src']) {\n\t\t\t// \td['script-src'] = d['script-src'].filter((name) => name !== 'strict-dynamic');\n\t\t\t// \tif (d['script-src'].length === 0) delete d['script-src'];\n\t\t\t// }\n\n\t\t\t// ...and add unsafe-inline so we can inject <style> elements\n\t\t\t// Note that 'unsafe-inline' is ignored if either a hash or nonce value is present in the source list, so we remove those during dev when injecting unsafe-inline\n\t\t\t/**\n\t\t\t * @template {'style-src' | 'style-src-attr' | 'style-src-elem'} K\n\t\t\t * @param {K} key\n\t\t\t * @param {import('types').CspDirectives[K]} directive\n\t\t\t */\n\t\t\tconst add_unsafe_inline = (key, directive) => {\n\t\t\t\tif (directive && !directive.includes('unsafe-inline')) {\n\t\t\t\t\td[key] = /** @type {import('types').CspDirectives[K]} */ ([\n\t\t\t\t\t\t...directive.filter(\n\t\t\t\t\t\t\t(value) => !(value.startsWith('sha256-') || value.startsWith('nonce-'))\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'unsafe-inline'\n\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tadd_unsafe_inline('style-src', effective_style_src);\n\t\t\tadd_unsafe_inline('style-src-attr', style_src_attr);\n\t\t\tadd_unsafe_inline('style-src-elem', style_src_elem);\n\t\t}\n\n\t\t/** @param {(import('types').Csp.Source | import('types').Csp.ActionSource)[] | undefined} directive */\n\t\tconst style_needs_csp = (directive) =>\n\t\t\t!!directive && !directive.some((value) => value === 'unsafe-inline');\n\n\t\t/** @param {(import('types').Csp.Source | import('types').Csp.ActionSource)[] | undefined} directive */\n\t\tconst script_needs_csp = (directive) =>\n\t\t\t!!directive &&\n\t\t\t(!directive.some((value) => value === 'unsafe-inline') ||\n\t\t\t\tdirective.some((value) => value === 'strict-dynamic'));\n\n\t\tthis.#script_src_needs_csp = script_needs_csp(effective_script_src);\n\t\tthis.#script_src_elem_needs_csp = script_needs_csp(script_src_elem);\n\t\tthis.#style_src_needs_csp = style_needs_csp(effective_style_src);\n\t\tthis.#style_src_attr_needs_csp = style_needs_csp(style_src_attr);\n\t\tthis.#style_src_elem_needs_csp = style_needs_csp(style_src_elem);\n\n\t\tthis.script_needs_csp = this.#script_src_needs_csp || this.#script_src_elem_needs_csp;\n\t\tthis.style_needs_csp =\n\t\t\t!__SVELTEKIT_DEV__ &&\n\t\t\t(this.#style_src_needs_csp ||\n\t\t\t\tthis.#style_src_attr_needs_csp ||\n\t\t\t\tthis.#style_src_elem_needs_csp);\n\n\t\tthis.script_needs_nonce = this.script_needs_csp && !this.#use_hashes;\n\t\tthis.style_needs_nonce = this.style_needs_csp && !this.#use_hashes;\n\t\tthis.script_needs_hash = this.script_needs_csp && this.#use_hashes;\n\t}\n\n\t/** @param {CspSource} source */\n\tadd_script(source) {\n\t\tif (this.#script_src_needs_csp) {\n\t\t\tthis.#script_src.add(source);\n\t\t}\n\n\t\tif (this.#script_src_elem_needs_csp) {\n\t\t\tthis.#script_src_elem.add(source);\n\t\t}\n\t}\n\n\t/** @param {CspSource} source */\n\tadd_style(source) {\n\t\tif (!this.style_needs_csp) return;\n\n\t\tif (this.#style_src_needs_csp) {\n\t\t\tthis.#style_src.add(source);\n\t\t}\n\n\t\tif (this.#style_src_attr_needs_csp) {\n\t\t\tthis.#style_src_attr.add(source);\n\t\t}\n\n\t\tif (this.#style_src_elem_needs_csp) {\n\t\t\t// this is the sha256 hash for the string \"/* empty */\"\n\t\t\t// adding it so that svelte does not break csp\n\t\t\t// see https://github.com/sveltejs/svelte/pull/7800\n\t\t\tconst sha256_empty_comment_hash = 'sha256-9OlNO0DNEeaVzHL4RZwCLsBHA8WBQ8toBp/4F5XV2nc=';\n\t\t\tconst d = this.#directives;\n\n\t\t\tif (\n\t\t\t\td['style-src-elem'] &&\n\t\t\t\t!d['style-src-elem'].includes(sha256_empty_comment_hash) &&\n\t\t\t\t!this.#style_src_elem.has(sha256_empty_comment_hash)\n\t\t\t) {\n\t\t\t\tthis.#style_src_elem.add(sha256_empty_comment_hash);\n\t\t\t}\n\n\t\t\tif (source !== sha256_empty_comment_hash) {\n\t\t\t\tthis.#style_src_elem.add(source);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @param {boolean} [is_meta]\n\t */\n\tget_header(is_meta = false) {\n\t\tconst header = [];\n\n\t\t// due to browser inconsistencies, we can't append sources to default-src\n\t\t// (specifically, Firefox appears to not ignore nonce-{nonce} directives\n\t\t// on default-src), so we ensure that script-src and style-src exist\n\n\t\tconst directives = { ...this.#directives };\n\n\t\t/**\n\t\t * @template {'style-src' | 'style-src-attr' | 'style-src-elem' | 'script-src' | 'script-src-elem'} K\n\t\t * @param {K} key\n\t\t * @param {Set<import('types').Csp.Source>} sources\n\t\t * @param {import('types').CspDirectives[K]} [base]\n\t\t */\n\t\tconst merge_sources = (key, sources, base) => {\n\t\t\tif (sources.size > 0) {\n\t\t\t\tdirectives[key] = /** @type {import('types').CspDirectives[K]} */ ([\n\t\t\t\t\t...(base || []),\n\t\t\t\t\t...sources\n\t\t\t\t]);\n\t\t\t}\n\t\t};\n\n\t\tmerge_sources(\n\t\t\t'style-src',\n\t\t\tthis.#style_src,\n\t\t\tdirectives['style-src'] || directives['default-src']\n\t\t);\n\t\tmerge_sources('style-src-attr', this.#style_src_attr, directives['style-src-attr']);\n\t\tmerge_sources('style-src-elem', this.#style_src_elem, directives['style-src-elem']);\n\t\tmerge_sources(\n\t\t\t'script-src',\n\t\t\tthis.#script_src,\n\t\t\tdirectives['script-src'] || directives['default-src']\n\t\t);\n\t\tmerge_sources('script-src-elem', this.#script_src_elem, directives['script-src-elem']);\n\n\t\tfor (const key in directives) {\n\t\t\tif (is_meta && (key === 'frame-ancestors' || key === 'report-uri' || key === 'sandbox')) {\n\t\t\t\t// these values cannot be used with a <meta> tag\n\t\t\t\t// TODO warn?\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// @ts-expect-error gimme a break typescript, `key` is obviously a member of internal_directives\n\t\t\tconst value = /** @type {string[] | true} */ (directives[key]);\n\n\t\t\tif (!value) continue;\n\n\t\t\tconst directive = [key];\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (const source of value) {\n\t\t\t\t\tdirective.push(\n\t\t\t\t\t\tquoted.has(source) || crypto_pattern.test(source) ? `'${source}'` : source\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\theader.push(directive.join(' '));\n\t\t}\n\n\t\treturn header.join('; ');\n\t}\n}\n\nclass CspProvider extends BaseProvider {\n\tget_meta() {\n\t\tconst content = this.get_header(true);\n\n\t\tif (!content) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn `<meta http-equiv=\"content-security-policy\" content=\"${escape_html(content, true)}\">`;\n\t}\n}\n\nclass CspReportOnlyProvider extends BaseProvider {\n\t/**\n\t * @param {boolean} use_hashes\n\t * @param {import('types').CspDirectives} directives\n\t */\n\tconstructor(use_hashes, directives) {\n\t\tsuper(use_hashes, directives);\n\n\t\t// If we're generating content-security-policy-report-only,\n\t\t// if there are any directives, we need a report-uri or report-to (or both)\n\t\t// else it's just an expensive noop.\n\t\tif (\n\t\t\tObject.values(directives).some((v) => !!v) &&\n\t\t\t!directives['report-to']?.length &&\n\t\t\t!directives['report-uri']?.length\n\t\t) {\n\t\t\te.csp_report_only_missing_report();\n\t\t}\n\t}\n}\n\nexport class Csp {\n\t/** @readonly */\n\tnonce = generate_nonce();\n\n\t/** @type {CspProvider} */\n\tcsp_provider;\n\n\t/** @type {CspReportOnlyProvider} */\n\treport_only_provider;\n\n\t/** @type {boolean} */\n\t#use_hashes;\n\n\t/**\n\t * @param {import('./types.js').CspConfig} config\n\t * @param {import('./types.js').CspOpts} opts\n\t */\n\tconstructor({ mode, directives, reportOnly }, { prerender }) {\n\t\tthis.#use_hashes = mode === 'hash' || (mode === 'auto' && prerender);\n\t\tthis.csp_provider = new CspProvider(this.#use_hashes, directives);\n\t\tthis.report_only_provider = new CspReportOnlyProvider(this.#use_hashes, reportOnly);\n\t}\n\n\t/**\n\t * @param {string} content\n\t * @returns {Promise<CspSource>}\n\t */\n\tasync #get_source(content) {\n\t\treturn this.#use_hashes ? `sha256-${await sha256(content)}` : `nonce-${this.nonce}`;\n\t}\n\n\tget script_needs_hash() {\n\t\treturn this.csp_provider.script_needs_hash || this.report_only_provider.script_needs_hash;\n\t}\n\n\tget script_needs_nonce() {\n\t\treturn this.csp_provider.script_needs_nonce || this.report_only_provider.script_needs_nonce;\n\t}\n\n\tget style_needs_nonce() {\n\t\treturn this.csp_provider.style_needs_nonce || this.report_only_provider.style_needs_nonce;\n\t}\n\n\t/** @param {string} content */\n\tasync add_script(content) {\n\t\tif (!this.csp_provider.script_needs_csp && !this.report_only_provider.script_needs_csp) return;\n\n\t\tconst source = await this.#get_source(content);\n\t\tif (this.csp_provider.script_needs_csp) this.csp_provider.add_script(source);\n\t\tif (this.report_only_provider.script_needs_csp) this.report_only_provider.add_script(source);\n\t}\n\n\t/** @param {`sha256-${string}`[]} hashes */\n\tadd_script_hashes(hashes) {\n\t\tfor (const hash of hashes) {\n\t\t\tthis.csp_provider.add_script(hash);\n\t\t\tthis.report_only_provider.add_script(hash);\n\t\t}\n\t}\n\n\t/** @param {string} content */\n\tasync add_style(content) {\n\t\tif (!this.csp_provider.style_needs_csp && !this.report_only_provider.style_needs_csp) return;\n\n\t\tconst source = await this.#get_source(content);\n\t\tthis.csp_provider.add_style(source);\n\t\tthis.report_only_provider.add_style(source);\n\t}\n}\n","/** @import { ParamValue } from '@sveltejs/kit/params' */\n/** @import { SSRManifest } from 'types' */\nimport { base, assets } from '#app/paths';\nimport { relative } from '$app/paths/internal/server';\nimport { text } from '@sveltejs/kit';\nimport * as devalue from 'devalue';\nimport { s } from '../../../utils/misc.js';\nimport { find_route } from '../../../utils/routing.js';\nimport { SVELTE_KIT_ASSETS } from '../../../constants.js';\nimport { manifest } from '../internal.js';\n\n/**\n * @param {import('types').SSRClientRoute} route\n * @param {URL} url\n * @param {NonNullable<SSRManifest['client']>} client\n * @returns {string}\n */\nexport function generate_route_object(route, url, client) {\n\tconst { errors, layouts, leaf } = route;\n\tconst paths = resolve_paths(url.pathname);\n\n\tconst nodes = [...errors, ...layouts.map((l) => l?.[1]), leaf[1]]\n\t\t.filter((n) => typeof n === 'number')\n\t\t.map((n) => `'${n}': () => ${create_client_import(client.nodes?.[n], paths)}`)\n\t\t.join(',\\n\\t\\t');\n\n\t// stringified version of\n\t/* @type {import('types').CSRRouteServer} */\n\treturn [\n\t\t`{\\n\\tid: ${s(route.id)}`,\n\t\t`errors: ${s(route.errors)}`,\n\t\t`layouts: ${s(route.layouts)}`,\n\t\t`leaf: ${s(route.leaf)}`,\n\t\t`nodes: {\\n\\t\\t${nodes}\\n\\t}\\n}`\n\t].join(',\\n\\t');\n}\n\n/**\n * The `base` and `assets` prefixes for client paths in a document at `pathname`. With\n * `paths.relative`, they're relative to that document so the app also works when served\n * from IPFS, the internet archive, or behind a proxy.\n * @param {string} pathname\n */\nexport function resolve_paths(pathname) {\n\tif (!relative) return { base, assets };\n\n\tconst segments = pathname.slice(base.length).split('/').slice(2);\n\tconst relative_base = segments.map(() => '..').join('/') || '.';\n\n\treturn {\n\t\tbase: relative_base,\n\t\t// same-origin assets are relative too, except for the placeholder used by `vite preview`\n\t\tassets: !assets || (assets[0] === '/' && assets !== SVELTE_KIT_ASSETS) ? relative_base : assets\n\t};\n}\n\n/**\n * @param {string} path a root-absolute dev path (e.g. `/@fs/...`) or a prod path relative to `assets`\n * @param {ReturnType<typeof resolve_paths>} paths\n */\nexport function client_path(path, { base, assets }) {\n\treturn path[0] === '/' ? base + path : `${assets}/${path}`;\n}\n\n/**\n * @param {string | undefined} import_path\n * @param {ReturnType<typeof resolve_paths>} paths\n */\nfunction create_client_import(import_path, paths) {\n\treturn import_path ? `import('${client_path(import_path, paths)}')` : 'Promise.resolve({})';\n}\n\n/**\n * @param {string} resolved_path\n * @param {URL} url\n * @returns {Promise<Response>}\n */\nexport async function resolve_route(resolved_path, url) {\n\tif (!manifest.client?.routes) {\n\t\treturn text('Server-side route resolution disabled', { status: 400 });\n\t}\n\n\ttry {\n\t\tconst matchers = await manifest.matchers();\n\t\tconst result = find_route(resolved_path, manifest.client.routes, matchers);\n\n\t\treturn create_server_routing_response(\n\t\t\tresult?.route ?? null,\n\t\t\tresult?.params ?? {},\n\t\t\turl,\n\t\t\tmanifest.client\n\t\t).response;\n\t} catch {\n\t\treturn text('Error resolving route', { status: 500 });\n\t}\n}\n\n/**\n * Resolve a route-ID resolution request (`/_app/routes/<id>/__route.js`) to a\n * JS module containing the route's node loaders. Params are always `{}` since\n * this endpoint exists to support `preloadCode(routeId)`, which doesn't need them.\n *\n * The module has one of three shapes, which the client uses to tell three cases apart:\n *\n * - `export const route = {...}` — a page route, with loaders to import\n * - `export const endpoint_only = true` — a real route with no `+page`, so there is\n * nothing to preload, but the client can cache that fact and stop asking\n * - an empty module — no such route\n *\n * @param {string} route_id\n * @param {URL} url\n * @returns {Response}\n */\nexport function resolve_route_by_id(route_id, url) {\n\tif (!manifest.client?.routes) {\n\t\treturn text('Server-side route resolution disabled', { status: 400 });\n\t}\n\n\ttry {\n\t\tconst route = manifest.client.routes.find((r) => r.id === route_id);\n\n\t\tif (route) {\n\t\t\treturn create_server_routing_response(route, null, url, manifest.client).response;\n\t\t}\n\n\t\t// `client.routes` only contains routes with a `+page`, so a miss above doesn't mean the\n\t\t// route doesn't exist — it might be a `+server.js`-only route. `_.routes` includes those\n\t\t// (with `page: null`), so we can distinguish \"exists but has no code\" from \"unknown\".\n\t\tif (manifest.routes.some((r) => r.id === route_id && !r.page)) {\n\t\t\treturn text('export const endpoint_only = true;', { headers: js_headers() });\n\t\t}\n\n\t\treturn create_server_routing_response(null, null, url, manifest.client).response;\n\t} catch {\n\t\treturn text('Error resolving route', { status: 500 });\n\t}\n}\n\nfunction js_headers() {\n\treturn new Headers({\n\t\t'content-type': 'application/javascript; charset=utf-8'\n\t});\n}\n\n/**\n * @param {import('types').SSRClientRoute | null} route\n * @param {Partial<Record<string, ParamValue>> | null} params\n * @param {URL} url\n * @param {NonNullable<SSRManifest['client']>} client\n * @returns {{response: Response, body: string}}\n */\nexport function create_server_routing_response(route, params, url, client) {\n\tconst headers = js_headers();\n\tlet body = '';\n\n\tif (route) {\n\t\tconst csr_route = generate_route_object(route, url, client);\n\t\tbody = `${create_css_import(route, url, client)}export const route = ${csr_route};`;\n\n\t\tif (params !== null) {\n\t\t\tbody += `\\nexport const params = ${devalue.uneval(params)}`;\n\t\t}\n\t}\n\n\treturn { response: text(body, { headers }), body };\n}\n\n/**\n * This function generates the client-side import for the CSS files that are\n * associated with the current route. Vite takes care of that when using\n * client-side route resolution, but for server-side resolution it does\n * not know about the CSS files automatically.\n *\n * @param {import('types').SSRClientRoute} route\n * @param {URL} url\n * @param {NonNullable<SSRManifest['client']>} client\n * @returns {string}\n */\nfunction create_css_import(route, url, client) {\n\tconst { errors, layouts, leaf } = route;\n\tconst paths = resolve_paths(url.pathname);\n\n\tlet css = '';\n\n\tfor (const node of [...errors, ...layouts.map((l) => l?.[1]), leaf[1]]) {\n\t\tif (typeof node !== 'number') continue;\n\t\tconst node_css = client.css?.[node];\n\t\tfor (const css_path of node_css ?? []) {\n\t\t\tcss += `'${client_path(css_path, paths)}',`;\n\t\t}\n\t}\n\n\tif (!css) return '';\n\n\treturn `${create_client_import(client.start, paths)}.then(x => x.load_css([${css}]));\\n`;\n}\n","import { noop, disallow_on_server } from '../../../utils/functions.js';\n\nexport const afterNavigate = noop;\nexport const beforeNavigate = noop;\nexport const disableScrollHandling = disallow_on_server('disableScrollHandling', '()');\nexport const goto = disallow_on_server('goto');\nexport const invalidate = disallow_on_server('invalidate');\nexport const invalidateAll = disallow_on_server('invalidateAll', '()');\nexport const onNavigate = noop;\nexport const refreshAll = disallow_on_server('refreshAll', '()');\nexport const preloadCode = disallow_on_server('preloadCode');\nexport const preloadData = disallow_on_server('preloadData');\nexport const pushState = disallow_on_server('pushState');\nexport const replaceState = disallow_on_server('replaceState');\nexport const snapshot = noop;\n","<script lang=\"ts\">\n\timport { afterNavigate } from '$app/navigation';\n\timport type { Props, RenderNode } from '../props.svelte.js';\n\n\tconst { page, components, onerror, tree, form, error }: Props = $props();\n\n\tlet mounted = $state(false);\n\tlet navigated = $state(false);\n\tlet title = $state('');\n\n\tafterNavigate(() => {\n\t\tif (mounted) {\n\t\t\tnavigated = true;\n\t\t\ttitle = document.title || 'untitled page';\n\t\t} else {\n\t\t\tmounted = true;\n\t\t}\n\t});\n</script>\n\n{#snippet node(n: RenderNode, depth: number)}\n\t{const Component = $derived(n.component)}\n\t{const Error = $derived(n.error)}\n\t{const data = $derived(n.data)}\n\n\t{#snippet failed(error: unknown)}\n\t\t<Error {error} />\n\t{/snippet}\n\n\t<svelte:boundary failed={Error ? failed : undefined} onerror={Error ? onerror : undefined}>\n\t\t{#if n.child}\n\t\t\t<!-- svelte-ignore binding_property_non_reactive -->\n\t\t\t<Component bind:this={components[depth]} {data} {form} params={page.params}>\n\t\t\t\t{@render node(n.child, depth + 1)}\n\t\t\t</Component>\n\t\t{:else}\n\t\t\t<!-- svelte-ignore binding_property_non_reactive -->\n\t\t\t<Component bind:this={components[depth]} {data} {form} params={page.params} {error} />\n\t\t{/if}\n\t</svelte:boundary>\n{/snippet}\n\n{@render node(tree, 0)}\n\n{#if mounted}\n\t<div\n\t\tid=\"svelte-announcer\"\n\t\taria-live=\"assertive\"\n\t\taria-atomic=\"true\"\n\t\tstyle=\"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px\"\n\t>\n\t\t{#if navigated}\n\t\t\t{title}\n\t\t{/if}\n\t</div>\n{/if}\n","/** @import { Component } from 'svelte'; */\n/** @import { Page } from '$app/state'; */\n\nimport { noop } from '../utils/functions.js';\n\nexport class Props {\n\t/** @type {Page} */\n\tpage;\n\n\t/**\n\t * An array of the `+layout.svelte` and `+page.svelte` component instances\n\t * that currently live on the page — used for capturing and restoring snapshots.\n\t * It's updated/manipulated through `bind:this` in `Root.svelte`.\n\t * @type {Array<Record<string, any>>}\n\t * @deprecated only used for `export const snapshot` — TODO 4.0 get rid\n\t */\n\tcomponents = [];\n\n\t/** @type {any} */\n\tform;\n\n\t/** @type {App.Error | undefined} */\n\terror;\n\n\t/** @type {RenderNode} */\n\ttree;\n\n\t/** @type {(error: unknown, reset: () => void) => void} */\n\tonerror;\n\n\t/**\n\t * @param {{\n\t * page: Page;\n\t * tree: RenderNode;\n\t * form: any;\n\t * error: App.Error | undefined;\n\t * onerror?: (error: unknown, reset: () => void) => void;\n\t * }} props\n\t */\n\tconstructor({ page, tree, form, error, onerror = noop }) {\n\t\tthis.page = page;\n\t\tthis.tree = tree;\n\t\tthis.onerror = onerror;\n\n\t\tthis.form = $state.raw(form);\n\t\tthis.error = $state.raw(error);\n\t}\n}\n\nexport class RenderNode {\n\t/** @type {Component} */\n\tcomponent;\n\n\t/** @type {Component | undefined} */\n\terror;\n\n\t/** @type {Record<string, any>} */\n\tdata = $state.raw({});\n\n\t/** @type {RenderNode | undefined} */\n\tchild = $state.raw();\n\n\t/**\n\t *\n\t * @param {Component} component\n\t * @param {Component | undefined} error\n\t */\n\tconstructor(component, error) {\n\t\tthis.component = component;\n\t\tthis.error = error;\n\t}\n}\n","/** @import { Component } from 'svelte'; */\n/** @import { SyncRenderOutput } from 'svelte/server' */\nimport * as devalue from 'devalue';\nimport { DEV } from 'esm-env';\nimport { isRedirect, text } from '@sveltejs/kit';\nimport * as paths from '#app/paths';\nimport { relative } from '$app/paths/internal/server';\nimport { hash } from '../../../utils/hash.js';\nimport { escape_html } from '../../../utils/escape.js';\nimport { serialize_data } from './serialize_data.js';\nimport { s } from '../../../utils/misc.js';\nimport { Csp } from './csp.js';\nimport { uneval_action_response } from './actions.js';\nimport { SCHEME } from '../../../utils/url.js';\nimport {\n\tclient_path,\n\tcreate_server_routing_response,\n\tgenerate_route_object,\n\tresolve_paths\n} from './server_routing.js';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\troute_id_resolution_pathname\n} from '../../pathname.js';\nimport { try_get_request_store, with_request_store } from '@sveltejs/kit/internal/server';\nimport { stream_text } from '../../utils.js';\nimport { count_non_ssi_comments } from '../utils.js';\nimport { handle_error_and_jsonify } from '../errors.js';\nimport * as env from '<sveltekit:generated>/env/config.js';\nimport { collect_remote_data } from '../remote-functions.js';\nimport Root from '../../components/root.svelte';\nimport { render } from 'svelte/server';\nimport { Props, RenderNode } from '../../props.svelte.js';\nimport { has_custom_transporters, uneval } from '#app/internal/transport';\nimport { manifest } from '../internal.js';\nimport { options } from '<sveltekit:generated>/server.js';\nimport * as e from '../../../messages/server-errors.js';\nimport * as w from '../../../messages/server-warnings.js';\n\n// TODO rename this function/module\n\n/**\n * Creates the HTML response.\n * @param {{\n * branch: Array<import('./types.js').Loaded>;\n * fetched: Array<import('./types.js').Fetched>;\n * page_config: { ssr: boolean; csr: boolean };\n * status: number;\n * error: App.Error | null;\n * event: import('@sveltejs/kit').RequestEvent;\n * state: import('types').RequestState;\n * resolve_opts: import('types').RequiredResolveOptions;\n * action_result?: import('types').ServerActionResult;\n * data_serializer: import('./types.js').ServerDataSerializer;\n * error_components?: Array<import('svelte').Component | undefined>\n * }} opts\n */\nexport async function render_response({\n\tbranch,\n\tfetched,\n\tpage_config,\n\tstatus,\n\terror = null,\n\tevent,\n\tstate,\n\tresolve_opts,\n\taction_result,\n\tdata_serializer,\n\terror_components\n}) {\n\tif (state.prerendering || state.prerender_default === true) {\n\t\tif (options.csp.mode === 'nonce') {\n\t\t\te.prerender_nonce();\n\t\t}\n\n\t\tif (options.app_template_contains_nonce) {\n\t\t\te.prerender_template_nonce({ tag: '%sveltekit.nonce%' });\n\t\t}\n\t}\n\n\tconst client = manifest.client;\n\n\tconst modulepreloads = new Set(client?.imports);\n\tconst stylesheets = new Set(client?.stylesheets);\n\n\t/** @type {Map<string, import('types').FontDependency>} */\n\tconst fonts = new Map(client?.fonts.map((font) => [font.file, font]));\n\n\t/**\n\t * The value of the Link header that is added to the response when not prerendering\n\t * @type {Set<string>}\n\t */\n\tconst link_headers = new Set();\n\n\t/** @type {Map<string, string>} */\n\t// TODO if we add a client entry point one day, we will need to include inline_styles with the entry, otherwise stylesheets will be linked even if they are below inlineStyleThreshold\n\tconst inline_styles = new Map();\n\n\t/** @type {Omit<SyncRenderOutput, 'html'>} */\n\tlet rendered;\n\n\tconst form_value =\n\t\taction_result?.type === 'success' || action_result?.type === 'failure'\n\t\t\t? (action_result.data ?? null)\n\t\t\t: null;\n\n\t/** @type {string} */\n\tlet base = paths.base;\n\n\t/** @type {string} */\n\tlet assets = paths.assets;\n\n\t/**\n\t * An expression that will evaluate in the client to determine the resolved base path.\n\t * We use a relative path when possible to support IPFS, the internet archive, etc.\n\t */\n\tlet base_expression = s(paths.base);\n\n\tconst csp = new Csp(options.csp, {\n\t\tprerender: !!(state.prerendering || state.prerender_default === true)\n\t});\n\n\t// if appropriate, use relative paths for greater portability\n\tif (relative) {\n\t\tif (!state.prerendering?.fallback) {\n\t\t\t// the relative path depth must reflect the URL the browser is actually at, which\n\t\t\t// for a data request includes the `__data.json` suffix that was stripped during routing\n\t\t\tconst pathname = event.isDataRequest\n\t\t\t\t? add_data_suffix(event.url.pathname)\n\t\t\t\t: event.url.pathname;\n\t\t\t({ base, assets } = resolve_paths(pathname));\n\n\t\t\t// resolve e.g. '../..' against current location, then remove trailing slash\n\t\t\tbase_expression = `new URL(${s(base)}, location).pathname.slice(0, -1)`;\n\t\t} else if (__SVELTEKIT_HASH_ROUTING__) {\n\t\t\t// we have to assume that we're in the right place\n\t\t\tbase_expression = \"new URL('.', location).pathname.slice(0, -1)\";\n\t\t}\n\t}\n\n\tif (page_config.ssr) {\n\t\tconst page = {\n\t\t\terror,\n\t\t\tparams: /** @type {Record<string, any>} */ (event.params),\n\t\t\troute: event.route,\n\t\t\tstatus,\n\t\t\turl: event.url,\n\t\t\tdata: {},\n\t\t\tform: form_value,\n\t\t\tshallow: null,\n\t\t\tstate: {}\n\t\t};\n\n\t\tconst props = new Props({\n\t\t\tpage,\n\t\t\ttree: new RenderNode(\n\t\t\t\t// TODO tidy up\n\t\t\t\t/** @type {Component} */ (await branch[0].node.component?.()),\n\t\t\t\tundefined\n\t\t\t),\n\t\t\tform: form_value,\n\t\t\terror: error ?? undefined\n\t\t});\n\n\t\tlet current_node = props.tree;\n\t\tlet data = props.page.data;\n\n\t\tfor (let i = 0; i < branch.length; i += 1) {\n\t\t\tconst node = branch[i];\n\n\t\t\tdata = { ...data, ...node.data };\n\n\t\t\tcurrent_node.data = data;\n\n\t\t\tif (i < branch.length - 1) {\n\t\t\t\tcurrent_node = current_node.child = new RenderNode(\n\t\t\t\t\t// TODO tidy up\n\t\t\t\t\t/** @type {Component} */ (await branch[i + 1].node.component?.()),\n\t\t\t\t\terror_components?.[i + 1]\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tprops.page.data = data;\n\n\t\tconst render_state = { ...state, is_in_render: true };\n\n\t\tconst render_opts = {\n\t\t\tcontext: new Map([\n\t\t\t\t[\n\t\t\t\t\t'__request__',\n\t\t\t\t\t{\n\t\t\t\t\t\tpage: props.page\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t]),\n\t\t\tcsp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash },\n\t\t\ttransformError: error_components\n\t\t\t\t? /** @param {unknown} e */ (e) => {\n\t\t\t\t\t\tif (isRedirect(e)) {\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst handled = handle_error_and_jsonify(event, render_state, e);\n\n\t\t\t\t\t\t// TODO 4.0 make this an async function and await `handled`\n\t\t\t\t\t\tif (handled instanceof Promise) {\n\t\t\t\t\t\t\treturn handled.then((e) => {\n\t\t\t\t\t\t\t\terror = e;\n\t\t\t\t\t\t\t\tprops.page.error = error;\n\t\t\t\t\t\t\t\tprops.page.status = status = error.status;\n\t\t\t\t\t\t\t\treturn error;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\terror = handled;\n\t\t\t\t\t\tprops.page.error = error;\n\t\t\t\t\t\tprops.page.status = status = error.status;\n\n\t\t\t\t\t\treturn error;\n\t\t\t\t\t}\n\t\t\t\t: undefined\n\t\t};\n\n\t\tconst fetch = globalThis.fetch;\n\n\t\ttry {\n\t\t\tif (DEV) {\n\t\t\t\tlet warned = false;\n\t\t\t\tglobalThis.fetch = (info, init) => {\n\t\t\t\t\tif (typeof info === 'string' && !SCHEME.test(info)) {\n\t\t\t\t\t\te.ssr_fetch_relative_url({ url: info });\n\t\t\t\t\t} else if (!warned && !try_get_request_store()?.state.is_in_remote_function) {\n\t\t\t\t\t\tw.ssr_fetch_eager();\n\t\t\t\t\t\twarned = true;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn fetch(info, init);\n\t\t\t\t};\n\t\t\t}\n\n\t\t\trendered = await with_request_store({ event, state: render_state }, async () => {\n\t\t\t\treturn render(Root, { ...render_opts, props });\n\t\t\t});\n\n\t\t\tif (rendered.hashes) {\n\t\t\t\tcsp.add_script_hashes(rendered.hashes.script);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (DEV) {\n\t\t\t\tglobalThis.fetch = fetch;\n\t\t\t}\n\t\t}\n\t} else {\n\t\trendered = { head: '', body: '', hashes: { script: [] } };\n\t}\n\n\tfor (const { node } of branch) {\n\t\tfor (const url of node.imports) modulepreloads.add(url);\n\t\tfor (const url of node.stylesheets) stylesheets.add(url);\n\t\tfor (const font of node.fonts) fonts.set(font.file, font);\n\n\t\tif (node.inline_styles && !client?.inline) {\n\t\t\tObject.entries(await node.inline_styles()).forEach(([filename, css]) => {\n\t\t\t\tif (typeof css === 'string') {\n\t\t\t\t\tinline_styles.set(filename, css);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tinline_styles.set(filename, css(`${assets}/${paths.app_dir}/immutable/assets`, assets));\n\t\t\t});\n\t\t}\n\t}\n\n\tconst head = new Head(rendered.head);\n\tlet body = rendered.body;\n\n\t/** @param {string} path */\n\tconst prefixed = (path) => client_path(path, { base, assets });\n\n\tconst style = client?.inline\n\t\t? client.inline?.style\n\t\t: Array.from(inline_styles.values()).join('\\n');\n\n\tif (style) {\n\t\t// We always inline all styles to avoid FOUC during development.\n\t\t// Once that's accomplished, we find and remove the style node using the\n\t\t// `data-sveltekit` attribute once CSR kicks in\n\t\tconst attributes = __SVELTEKIT_DEV__ ? ['data-sveltekit'] : [];\n\t\tif (csp.style_needs_nonce) attributes.push(`nonce=\"${csp.nonce}\"`);\n\t\tawait csp.add_style(style);\n\t\thead.add_style(style, attributes);\n\t}\n\n\t/**\n\t * see the `output.linkHeaderPreload` option for details on why we have multiple options here\n\t * @param {string} path\n\t * @param {string[]} attributes\n\t */\n\tconst add_preload = (path, attributes) => {\n\t\tif (\n\t\t\t__SVELTEKIT_LINK_HEADER_PRELOAD__ &&\n\t\t\t!(state.prerendering || state.prerender_default === true)\n\t\t) {\n\t\t\tlink_headers.add(`<${encodeURI(path)}>; ${attributes.join('; ')}; nopush`);\n\t\t} else {\n\t\t\thead.add_link_tag(path, attributes);\n\t\t}\n\t};\n\n\tfor (const dep of stylesheets) {\n\t\tconst path = prefixed(dep);\n\n\t\tconst attributes = ['rel=\"stylesheet\"'];\n\n\t\tif (inline_styles.has(dep)) {\n\t\t\t// don't load stylesheets that are already inlined\n\t\t\t// include them in disabled state so that Vite can detect them and doesn't try to add them\n\t\t\tattributes.push('disabled', 'media=\"(max-width: 0)\"');\n\t\t} else {\n\t\t\tif (__SVELTEKIT_LINK_HEADER_PRELOAD__ && resolve_opts.preload({ type: 'css', path })) {\n\t\t\t\tlink_headers.add(`<${encodeURI(path)}>; rel=\"preload\"; as=\"style\"; nopush`);\n\t\t\t}\n\t\t}\n\n\t\thead.add_stylesheet(path, attributes);\n\t}\n\n\tfor (const { file, filename } of fonts.values()) {\n\t\tconst path = prefixed(file);\n\n\t\tif (resolve_opts.preload({ type: 'font', path, filename })) {\n\t\t\tconst ext = file.slice(file.lastIndexOf('.') + 1);\n\n\t\t\tadd_preload(path, ['rel=\"preload\"', 'as=\"font\"', `type=\"font/${ext}\"`, 'crossorigin']);\n\t\t}\n\t}\n\n\tconst global = __SVELTEKIT_GLOBAL_NAME__;\n\tconst { data, chunks } = data_serializer.get_data(csp);\n\n\tif (page_config.ssr && page_config.csr) {\n\t\tbody += `\\n\\t\\t\\t${fetched\n\t\t\t.map((item) =>\n\t\t\t\tserialize_data(\n\t\t\t\t\titem,\n\t\t\t\t\tresolve_opts.filterSerializedResponseHeaders,\n\t\t\t\t\t!!(state.prerendering || state.prerender_default === true)\n\t\t\t\t)\n\t\t\t)\n\t\t\t.join('\\n\\t\\t\\t')}`;\n\t}\n\n\tif (page_config.csr && client) {\n\t\tconst route = client.routes?.find((r) => r.id === event.route.id) ?? null;\n\n\t\t// when serving a prerendered page in an app that uses runtime public env vars, we must\n\t\t// import the env.js module so that it evaluates before any user code can evaluate.\n\t\t// TODO revert to using top-level await once https://bugs.webkit.org/show_bug.cgi?id=242740 is fixed\n\t\t// https://github.com/sveltejs/kit/pull/11601\n\t\tconst load_env_eagerly =\n\t\t\tclient.uses_env_dynamic_public && (state.prerendering || state.prerender_default === true);\n\n\t\tif (load_env_eagerly) {\n\t\t\tmodulepreloads.add(`${paths.app_dir}/env.js`);\n\t\t}\n\n\t\tif (!client.inline) {\n\t\t\tfor (const dep of modulepreloads) {\n\t\t\t\tconst path = prefixed(dep);\n\n\t\t\t\tif (resolve_opts.preload({ type: 'js', path })) {\n\t\t\t\t\tadd_preload(path, ['rel=\"modulepreload\"']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// prerender a `/path/to/page/__route.js` module\n\t\tif (client.routes && state.prerendering && !state.prerendering.fallback) {\n\t\t\tconst pathname = add_resolution_suffix(event.url.pathname);\n\n\t\t\tstate.prerendering.dependencies.set(\n\t\t\t\tpathname,\n\t\t\t\tcreate_server_routing_response(route, event.params, new URL(pathname, event.url), client)\n\t\t\t);\n\n\t\t\t// Prerender a route-ID-keyed `/_app/routes/<id>/__route.js` module alongside the\n\t\t\t// pathname-keyed one above, so that `preloadCode(id)` can resolve a route ID without\n\t\t\t// hitting the server.\n\t\t\tif (route && !state.prerendering.resolved_route_ids.has(route.id)) {\n\t\t\t\tstate.prerendering.resolved_route_ids.add(route.id);\n\n\t\t\t\tconst id_pathname = paths.base + route_id_resolution_pathname(route.id);\n\n\t\t\t\tstate.prerendering.dependencies.set(\n\t\t\t\t\tid_pathname,\n\t\t\t\t\tcreate_server_routing_response(route, null, new URL(id_pathname, event.url), client)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tconst blocks = [];\n\n\t\tconst properties = [`base: ${base_expression}`, `version: ${s(__SVELTEKIT_APP_VERSION__)}`];\n\n\t\tif (paths.assets) {\n\t\t\tproperties.push(`assets: ${s(paths.assets)}`);\n\t\t}\n\n\t\tif (client.uses_env_dynamic_public) {\n\t\t\tproperties.push(`env: ${load_env_eagerly ? 'null' : devalue.uneval(env.rendered_env)}`);\n\t\t}\n\n\t\tif (chunks) {\n\t\t\tblocks.push('const deferred = new Map();');\n\n\t\t\tproperties.push(`defer: (id) => new Promise((fulfil, reject) => {\n\t\t\t\t\t\t\tdeferred.set(id, { fulfil, reject });\n\t\t\t\t\t\t})`);\n\n\t\t\tlet app_declaration = '';\n\n\t\t\tif (has_custom_transporters) {\n\t\t\t\tif (client.inline) {\n\t\t\t\t\tapp_declaration = `const app = ${global}.app.app;`;\n\t\t\t\t} else if (client.app) {\n\t\t\t\t\tapp_declaration = `const kit = await import(${s(prefixed(client.start))});\n\t\t\t\t\t\t\tkit.init(${global});\n\t\t\t\t\t\t\tconst app = await import(${s(prefixed(client.app))});`;\n\t\t\t\t} else {\n\t\t\t\t\tapp_declaration = `const { app } = await import(${s(prefixed(client.start))});`;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst prelude = app_declaration\n\t\t\t\t? `${app_declaration}\n\t\t\t\t\t\t\tconst [data, error] = fn(app);`\n\t\t\t\t: `const [data, error] = fn();`;\n\n\t\t\t// When resolving, the id might not yet be available due to the data\n\t\t\t// be evaluated upon init of kit, so we use a timeout to retry\n\t\t\tproperties.push(`resolve: async (id, fn) => {\n\t\t\t\t\t\t\t${prelude}\n\n\t\t\t\t\t\t\tconst try_to_resolve = () => {\n\t\t\t\t\t\t\t\tif (!deferred.has(id)) {\n\t\t\t\t\t\t\t\t\tsetTimeout(try_to_resolve, 0);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tconst { fulfil, reject } = deferred.get(id);\n\t\t\t\t\t\t\t\tdeferred.delete(id);\n\t\t\t\t\t\t\t\tif (error) reject(error);\n\t\t\t\t\t\t\t\telse fulfil(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry_to_resolve();\n\t\t\t\t\t\t}`);\n\t\t}\n\n\t\t// create this before declaring `data`, which may contain references to `${global}`\n\t\tblocks.push(`${global} = {\n\t\t\t\t\t\t${properties.join(',\\n\\t\\t\\t\\t\\t\\t')}\n\t\t\t\t\t};`);\n\n\t\tconst args = ['element'];\n\n\t\tblocks.push('const element = document.currentScript.parentElement;');\n\n\t\tif (page_config.ssr) {\n\t\t\tconst serialized = { form: 'null', error: 'null' };\n\n\t\t\tif (form_value) {\n\t\t\t\tserialized.form = uneval_action_response(\n\t\t\t\t\tform_value,\n\t\t\t\t\t/** @type {string} */ (event.route.id)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (error) {\n\t\t\t\tserialized.error = devalue.uneval(error);\n\t\t\t}\n\n\t\t\tconst hydrate = [\n\t\t\t\t`node_ids: [${branch.map(({ node }) => node.index).join(', ')}]`,\n\t\t\t\t`data: ${data}`,\n\t\t\t\t`form: ${serialized.form}`,\n\t\t\t\t`error: ${serialized.error}`\n\t\t\t];\n\n\t\t\tif (status !== 200 && !error) {\n\t\t\t\thydrate.push(`status: ${status}`);\n\t\t\t}\n\n\t\t\tif (client.routes) {\n\t\t\t\tif (route) {\n\t\t\t\t\tconst stringified = generate_route_object(route, event.url, client).replaceAll(\n\t\t\t\t\t\t'\\n',\n\t\t\t\t\t\t'\\n\\t\\t\\t\\t\\t\\t\\t'\n\t\t\t\t\t); // make output after it's put together with the rest more readable\n\t\t\t\t\thydrate.push(`params: ${devalue.uneval(event.params)}`, `server_route: ${stringified}`);\n\t\t\t\t}\n\t\t\t} else if (__SVELTEKIT_EMBEDDED__) {\n\t\t\t\thydrate.push(`params: ${devalue.uneval(event.params)}`, `route: ${s(event.route)}`);\n\t\t\t}\n\n\t\t\tconst indent = '\\t'.repeat(load_env_eagerly ? 7 : 6);\n\t\t\targs.push(`{\\n${indent}\\t${hydrate.join(`,\\n${indent}\\t`)}\\n${indent}}`);\n\t\t}\n\n\t\tconst remote_data = await collect_remote_data({}, event, state);\n\n\t\tconst serialized_data =\n\t\t\tObject.keys(remote_data).length > 0\n\t\t\t\t? `${global}.data = ${uneval(remote_data)};\\n\\n\\t\\t\\t\\t\\t\\t`\n\t\t\t\t: '';\n\n\t\t// `client.app` is a proxy for `bundleStrategy === 'split'`\n\t\tconst boot = client.inline\n\t\t\t? `${client.inline.script}\n\n\t\t\t\t\t${serialized_data}${global}.app.start(${args.join(', ')});`\n\t\t\t: client.app\n\t\t\t\t? `import(${s(prefixed(client.start))}).then(async (kit) => {\n\t\t\t\t\t\tkit.init(${global});\n\t\t\t\t\t\tconst app = await import(${s(prefixed(client.app))});\n\t\t\t\t\t\t${serialized_data}kit.start(app, ${args.join(', ')});\n\t\t\t\t\t});`\n\t\t\t\t: `import(${s(prefixed(client.start))}).then((app) => {\n\t\t\t\t\t\t${serialized_data}app.start(${args.join(', ')})\n\t\t\t\t\t});`;\n\n\t\tif (load_env_eagerly) {\n\t\t\tblocks.push(`import(${s(`${base}/${paths.app_dir}/env.js`)}).then(({ env }) => {\n\t\t\t\t\t\t${global}.env = env;\n\n\t\t\t\t\t\t${boot.replace(/\\n/g, '\\n\\t')}\n\t\t\t\t\t});`);\n\t\t} else {\n\t\t\tblocks.push(boot);\n\t\t}\n\n\t\tif (__SVELTEKIT_SERVICE_WORKER__) {\n\t\t\tlet opts = \", { type: 'module' }\";\n\t\t\tif (options.service_worker_options != null) {\n\t\t\t\tconst service_worker_options = { ...options.service_worker_options, type: 'module' };\n\t\t\t\topts = `, ${s(service_worker_options)}`;\n\t\t\t}\n\n\t\t\t// we use an anonymous function instead of an arrow function to support\n\t\t\t// older browsers (https://github.com/sveltejs/kit/pull/5417)\n\t\t\tblocks.push(`if ('serviceWorker' in navigator) {\n\t\t\t\t\t\tconst script_url = '${prefixed('service-worker.js')}';\n\t\t\t\t\t\tconst policy = globalThis?.window?.trustedTypes?.createPolicy(\n\t\t\t\t\t\t\t'sveltekit-trusted-url',\n\t\t\t\t\t\t\t{ createScriptURL(url) { return url; } }\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst sanitised = policy?.createScriptURL(script_url) ?? script_url;\n\t\t\t\t\t\taddEventListener('load', function () {\n\t\t\t\t\t\t\tnavigator.serviceWorker.register(sanitised${opts});\n\t\t\t\t\t\t});\n\t\t\t\t\t}`);\n\t\t}\n\n\t\tconst init_app = `\n\t\t\t\t{\n\t\t\t\t\t${blocks.join('\\n\\n\\t\\t\\t\\t\\t')}\n\t\t\t\t}\n\t\t\t`;\n\t\tawait csp.add_script(init_app);\n\n\t\tbody += `\\n\\t\\t\\t<script${\n\t\t\tcsp.script_needs_nonce ? ` nonce=\"${csp.nonce}\"` : ''\n\t\t}>${init_app}</script>\\n\\t\\t`;\n\t}\n\n\tconst headers = new Headers({\n\t\t'x-sveltekit-page': 'true',\n\t\t'content-type': 'text/html'\n\t});\n\n\tif (state.prerendering || state.prerender_default === true) {\n\t\t// TODO read headers set with setHeaders and convert into http-equiv where possible\n\t\tconst csp_headers = csp.csp_provider.get_meta();\n\t\tif (csp_headers) {\n\t\t\thead.add_http_equiv(csp_headers);\n\t\t}\n\n\t\tif (state.prerendering?.cache) {\n\t\t\thead.add_http_equiv(\n\t\t\t\t`<meta http-equiv=\"cache-control\" content=\"${escape_html(state.prerendering.cache, true)}\">`\n\t\t\t);\n\t\t}\n\t} else {\n\t\tconst csp_header = csp.csp_provider.get_header();\n\t\tif (csp_header) {\n\t\t\theaders.set('content-security-policy', csp_header);\n\t\t}\n\t\tconst report_only_header = csp.report_only_provider.get_header();\n\t\tif (report_only_header) {\n\t\t\theaders.set('content-security-policy-report-only', report_only_header);\n\t\t}\n\n\t\tif (__SVELTEKIT_LINK_HEADER_PRELOAD__ && link_headers.size) {\n\t\t\theaders.set('link', Array.from(link_headers).join(', '));\n\t\t}\n\t}\n\n\tconst html = options.templates.app({\n\t\thead: head.build(),\n\t\tbody,\n\t\tassets,\n\t\tnonce: /** @type {string} */ (csp.nonce),\n\t\tenv: env.explicit_public_env\n\t});\n\n\t// TODO flush chunks as early as we can\n\tconst transformed =\n\t\t(await resolve_opts.transformPageChunk({\n\t\t\thtml,\n\t\t\tdone: true\n\t\t})) || '';\n\n\tif (!chunks) {\n\t\theaders.set('etag', `\"${hash(transformed)}\"`);\n\t}\n\n\tif (DEV) {\n\t\tif (page_config.csr) {\n\t\t\tif (count_non_ssi_comments(transformed) < count_non_ssi_comments(html)) {\n\t\t\t\tw.transform_page_chunk_comments();\n\t\t\t}\n\t\t} else {\n\t\t\tif (chunks) {\n\t\t\t\tw.streaming_without_csr();\n\t\t\t}\n\t\t}\n\t}\n\n\treturn chunks\n\t\t? new Response(stream_text(transformed + '\\n', chunks), { status, headers })\n\t\t: text(transformed, { status, headers });\n}\n\nclass Head {\n\t#rendered;\n\t/** @type {string[]} */\n\t#http_equiv = [];\n\t/** @type {string[]} */\n\t#link_tags = [];\n\t/** @type {string[]} */\n\t#style_tags = [];\n\t/** @type {string[]} */\n\t#stylesheet_links = [];\n\n\t/**\n\t * @param {string} rendered\n\t */\n\tconstructor(rendered) {\n\t\tthis.#rendered = rendered;\n\t}\n\n\tbuild() {\n\t\treturn [\n\t\t\t...this.#http_equiv,\n\t\t\t...this.#link_tags,\n\t\t\tthis.#rendered,\n\t\t\t...this.#style_tags,\n\t\t\t...this.#stylesheet_links\n\t\t].join('\\n\\t\\t');\n\t}\n\n\t/**\n\t * @param {string} style\n\t * @param {string[]} attributes\n\t */\n\tadd_style(style, attributes) {\n\t\tthis.#style_tags.push(\n\t\t\t`<style${attributes.length ? ' ' + attributes.join(' ') : ''}>${style}</style>`\n\t\t);\n\t}\n\n\t/**\n\t * @param {string} href\n\t * @param {string[]} attributes\n\t */\n\tadd_stylesheet(href, attributes) {\n\t\tthis.#stylesheet_links.push(`<link href=\"${href}\" ${attributes.join(' ')}>`);\n\t}\n\n\t/**\n\t * @param {string} href\n\t * @param {string[]} attributes\n\t */\n\tadd_link_tag(href, attributes) {\n\t\tthis.#link_tags.push(`<link href=\"${href}\" ${attributes.join(' ')}>`);\n\t}\n\n\t/** @param {string} tag */\n\tadd_http_equiv(tag) {\n\t\tthis.#http_equiv.push(tag);\n\t}\n}\n","/**\n * Joins a list as `a`, `a or b` or `a, b or c`, for use in diagnostics\n * @param {string[]} items\n */\nexport function join_or(items) {\n\treturn items.length > 1 ? `${items.slice(0, -1).join(', ')} or ${items.at(-1)}` : items[0];\n}\n\n/**\n * Formats a list with one indented `- item` per line, for use in diagnostics\n * @param {string[]} items\n */\nexport function bullet_list(items) {\n\treturn items.map((item) => ` - ${item}`).join('\\n');\n}\n","import * as e from '../messages/shared-errors.js';\nimport { join_or } from './format.js';\n\n/**\n * @param {Set<string>} expected\n */\nfunction validator(expected) {\n\t/**\n\t * @param {any} module\n\t * @param {string} [file]\n\t */\n\tfunction validate(module, file) {\n\t\tif (!module) return;\n\n\t\tfor (const key in module) {\n\t\t\tif (key[0] === '_' || expected.has(key)) continue; // key is valid in this module\n\n\t\t\tconst locations = valid_locations(key, file?.slice(file.lastIndexOf('.')));\n\n\t\t\tif (locations.length > 0) {\n\t\t\t\te.invalid_export_location({ key, locations: join_or(locations), file: file || undefined });\n\t\t\t}\n\n\t\t\te.invalid_export({\n\t\t\t\tkey,\n\t\t\t\texports: [...expected.values()].join(', '),\n\t\t\t\tfile: file || undefined\n\t\t\t});\n\t\t}\n\t}\n\n\treturn validate;\n}\n\n/**\n * Returns the route files in which `key` is a valid export\n * @param {string} key\n * @param {string} ext\n * @returns {string[]}\n */\nfunction valid_locations(key, ext = '.js') {\n\tconst locations = [];\n\n\tif (valid_layout_exports.has(key)) {\n\t\tlocations.push(`+layout${ext}`);\n\t}\n\n\tif (valid_page_exports.has(key)) {\n\t\tlocations.push(`+page${ext}`);\n\t}\n\n\tif (valid_layout_server_exports.has(key)) {\n\t\tlocations.push(`+layout.server${ext}`);\n\t}\n\n\tif (valid_page_server_exports.has(key)) {\n\t\tlocations.push(`+page.server${ext}`);\n\t}\n\n\tif (valid_server_exports.has(key)) {\n\t\tlocations.push(`+server${ext}`);\n\t}\n\n\treturn locations;\n}\n\nconst valid_layout_exports = new Set([\n\t'load',\n\t'prerender',\n\t'csr',\n\t'ssr',\n\t'trailingSlash',\n\t'config'\n]);\nconst valid_page_exports = new Set([...valid_layout_exports, 'entries']);\nconst valid_layout_server_exports = new Set([...valid_layout_exports]);\nconst valid_page_server_exports = new Set([...valid_layout_server_exports, 'actions', 'entries']);\nconst valid_server_exports = new Set([\n\t'GET',\n\t'POST',\n\t'PATCH',\n\t'PUT',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'QUERY',\n\t'fallback',\n\t'prerender',\n\t'trailingSlash',\n\t'config',\n\t'entries'\n]);\n\nexport const validate_layout_exports = validator(valid_layout_exports);\nexport const validate_page_exports = validator(valid_page_exports);\nexport const validate_layout_server_exports = validator(valid_layout_server_exports);\nexport const validate_page_server_exports = validator(valid_page_server_exports);\nexport const validate_server_exports = validator(valid_server_exports);\n","/** @import { UniversalNode, ServerNode } from 'types' */\nimport {\n\tvalidate_layout_exports,\n\tvalidate_layout_server_exports,\n\tvalidate_page_exports,\n\tvalidate_page_server_exports\n} from './exports.js';\n\nexport class PageNodes {\n\t/** All layout nodes and the page node, if any */\n\tdata;\n\n\t/**\n\t * @param {Array<import('types').SSRNode | undefined>} nodes\n\t */\n\tconstructor(nodes) {\n\t\tthis.data = nodes;\n\t}\n\n\tlayouts() {\n\t\treturn this.data.slice(0, -1);\n\t}\n\n\tpage() {\n\t\treturn this.data.at(-1);\n\t}\n\n\tvalidate() {\n\t\tfor (const layout of this.layouts()) {\n\t\t\tif (layout) {\n\t\t\t\tvalidate_layout_server_exports(layout.server, /** @type {string} */ (layout.server_id));\n\t\t\t\tvalidate_layout_exports(layout.universal, /** @type {string} */ (layout.universal_id));\n\t\t\t}\n\t\t}\n\n\t\tconst page = this.page();\n\t\tif (page) {\n\t\t\tvalidate_page_server_exports(page.server, /** @type {string} */ (page.server_id));\n\t\t\tvalidate_page_exports(page.universal, /** @type {string} */ (page.universal_id));\n\t\t}\n\t}\n\n\t/**\n\t * @template {'prerender' | 'ssr' | 'csr' | 'trailingSlash'} Option\n\t * @param {Option} option\n\t * @returns {(UniversalNode | ServerNode)[Option] | undefined}\n\t */\n\t#get_option(option) {\n\t\t/** @typedef {(UniversalNode | ServerNode)[Option]} Value */\n\n\t\treturn this.data.reduce((value, node) => {\n\t\t\treturn node?.universal?.[option] ?? node?.server?.[option] ?? value;\n\t\t}, /** @type {Value | undefined} */ (undefined));\n\t}\n\n\tcsr() {\n\t\treturn this.#get_option('csr') ?? true;\n\t}\n\n\tssr() {\n\t\treturn this.#get_option('ssr') ?? true;\n\t}\n\n\tprerender() {\n\t\treturn this.#get_option('prerender') ?? false;\n\t}\n\n\ttrailing_slash() {\n\t\treturn this.#get_option('trailingSlash') ?? 'never';\n\t}\n\n\tget_config() {\n\t\t/** @type {Record<string, any>} */\n\t\tlet current = {};\n\n\t\tfor (const node of this.data) {\n\t\t\tif (!node?.universal?.config && !node?.server?.config) continue;\n\n\t\t\tcurrent = {\n\t\t\t\t...current,\n\t\t\t\t...node?.server?.config,\n\t\t\t\t...node?.universal?.config\n\t\t\t};\n\t\t}\n\n\t\treturn Object.keys(current).length ? current : undefined;\n\t}\n\n\tshould_prerender_data() {\n\t\treturn this.data.some(\n\t\t\t// prerender in case of trailingSlash because the client retrieves that value from the server\n\t\t\t(node) => node?.server?.load || node?.server?.trailingSlash !== undefined\n\t\t);\n\t}\n}\n","import { text } from '@sveltejs/kit';\nimport { Redirect } from '@sveltejs/kit/internal';\nimport { render_response } from './render.js';\nimport { load_data, load_server_data } from './load_data.js';\nimport { redirect_response } from '../utils.js';\nimport { negotiate } from '../../../utils/http.js';\nimport { handle_error_and_jsonify } from '../errors.js';\nimport { PageNodes } from '../../../utils/page_nodes.js';\nimport { server_data_serializer } from './data_serializer.js';\nimport { manifest } from '../internal.js';\nimport { options } from '<sveltekit:generated>/server.js';\nimport { escape_html } from '../../../utils/escape.js';\n\n/**\n * @typedef {import('./types.js').Loaded} Loaded\n */\n\n/**\n * @param {{\n * event: import('@sveltejs/kit').RequestEvent;\n * state: import('types').RequestState;\n * error: unknown;\n * resolve_opts: import('types').RequiredResolveOptions;\n * }} opts\n */\nexport async function respond_with_error({ event, state, error, resolve_opts }) {\n\t// reroute to the fallback page to prevent an infinite chain of requests.\n\tif (event.request.headers.get('x-sveltekit-error')) {\n\t\tconst transformed = await handle_error_and_jsonify(event, state, error);\n\t\treturn static_error_page(transformed.status, transformed.message);\n\t}\n\n\t/** @type {import('./types.js').Fetched[]} */\n\tconst fetched = [];\n\ttry {\n\t\tconst branch = [];\n\t\tconst default_layout = await manifest.nodes[0](); // 0 is always the root layout\n\t\tconst nodes = new PageNodes([default_layout]);\n\t\tconst ssr = nodes.ssr();\n\t\tconst csr = nodes.csr();\n\t\tconst data_serializer = server_data_serializer(event, state);\n\t\t// Do this here first in case the awaits below before rendering themselves error\n\t\tconst transformed = await handle_error_and_jsonify(event, state, error);\n\n\t\tif (ssr) {\n\t\t\tstate.error = true;\n\n\t\t\tconst server_data_promise = load_server_data({\n\t\t\t\tevent,\n\t\t\t\tstate,\n\t\t\t\tnode: default_layout,\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/require-await\n\t\t\t\tparent: async () => ({})\n\t\t\t});\n\n\t\t\tconst server_data = await server_data_promise;\n\t\t\tdata_serializer.add_node(0, server_data);\n\n\t\t\tconst data = await load_data({\n\t\t\t\tevent,\n\t\t\t\tstate,\n\t\t\t\tfetched,\n\t\t\t\tnode: default_layout,\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/require-await\n\t\t\t\tparent: async () => ({}),\n\t\t\t\tresolve_opts,\n\t\t\t\tserver_data_promise,\n\t\t\t\tcsr\n\t\t\t});\n\n\t\t\tbranch.push(\n\t\t\t\t{\n\t\t\t\t\tnode: default_layout,\n\t\t\t\t\tserver_data,\n\t\t\t\t\tdata\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnode: await manifest.nodes[1](), // 1 is always the root error\n\t\t\t\t\tdata: null,\n\t\t\t\t\tserver_data: null\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\treturn await render_response({\n\t\t\tpage_config: {\n\t\t\t\tssr,\n\t\t\t\tcsr\n\t\t\t},\n\t\t\tstatus: transformed.status,\n\t\t\terror: transformed,\n\t\t\tbranch,\n\t\t\terror_components: [],\n\t\t\tfetched,\n\t\t\tevent,\n\t\t\tstate,\n\t\t\tresolve_opts,\n\t\t\tdata_serializer\n\t\t});\n\t} catch (e) {\n\t\t// Edge case: If route is a 404 and the user redirects to somewhere from the root layout,\n\t\t// we end up here.\n\t\tif (e instanceof Redirect) {\n\t\t\treturn redirect_response(e.status, e.location);\n\t\t}\n\n\t\tconst transformed = await handle_error_and_jsonify(event, state, e);\n\n\t\treturn static_error_page(transformed.status, transformed.message);\n\t}\n}\n\n/**\n * Return as a response that renders the error.html\n *\n * @param {number} status\n * @param {string} message\n */\nexport function static_error_page(status, message) {\n\tlet page = options.templates.error({ status, message: escape_html(message) });\n\n\tif (__SVELTEKIT_DEV__) {\n\t\t// inject Vite HMR client, for easier debugging\n\t\tpage = page.replace('</head>', '<script type=\"module\" src=\"/@vite/client\"></script></head>');\n\t}\n\n\treturn text(page, {\n\t\theaders: { 'content-type': 'text/html; charset=utf-8' },\n\t\tstatus\n\t});\n}\n\n/**\n * @param {import('@sveltejs/kit').RequestEvent} event\n * @param {import('types').RequestState} state\n * @param {unknown} error\n */\nexport async function handle_fatal_error(event, state, error) {\n\tconst body = await handle_error_and_jsonify(event, state, error);\n\tconst status = body.status;\n\n\t// sec-fetch-dest would be nicer, but non-browser clients and plain HTTP hosts don't send it\n\tconst type = negotiate(event.request.headers.get('accept') || 'text/html', [\n\t\t'application/json',\n\t\t'text/html'\n\t]);\n\n\tif (event.isDataRequest || type === 'application/json') {\n\t\treturn Response.json(body, {\n\t\t\tstatus\n\t\t});\n\t}\n\n\treturn static_error_page(status, body.message);\n}\n","/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { PageNodeIndexes, RequestState, RequiredResolveOptions, ServerDataNode, SSRNode } from 'types' */\nimport { text } from '@sveltejs/kit';\nimport { Redirect } from '@sveltejs/kit/internal';\nimport { compact } from '../../../utils/array.js';\nimport { get_status, normalize_error } from '../../../utils/error.js';\nimport { noop } from '../../../utils/functions.js';\nimport { add_data_suffix } from '../../pathname.js';\nimport { build_error_chain, nearest_error_pages } from '../../error-chain.js';\nimport { redirect_response } from '../utils.js';\nimport { manifest } from '../internal.js';\nimport { handle_error_and_jsonify } from '../errors.js';\nimport {\n\thandle_action_json_request,\n\thandle_action_request,\n\tis_action_json_request,\n\tis_action_request\n} from './actions.js';\nimport { server_data_serializer, server_data_serializer_json } from './data_serializer.js';\nimport { load_data, load_server_data } from './load_data.js';\nimport { render_response } from './render.js';\nimport { DEV } from 'esm-env';\nimport { get_remote_action, handle_remote_form_post } from '../remote-functions.js';\nimport { PageNodes } from '../../../utils/page_nodes.js';\nimport { static_error_page, respond_with_error } from './respond_with_error.js';\nimport * as e from '../../../messages/server-errors.js';\nimport * as w from '../../../messages/server-warnings.js';\n\n/**\n * The maximum request depth permitted before assuming we're stuck in an infinite loop\n */\nconst MAX_DEPTH = 10;\n\n/**\n * @param {RequestEvent} event\n * @param {RequestState} state\n * @param {PageNodeIndexes} page\n * @param {import('../../../utils/page_nodes.js').PageNodes} nodes\n * @param {RequiredResolveOptions} resolve_opts\n * @returns {Promise<Response>}\n */\nexport async function render_page(event, state, page, nodes, resolve_opts) {\n\tif (state.depth > MAX_DEPTH) {\n\t\t// infinite request cycle detected\n\t\treturn text(`Not found: ${event.url.pathname}`, {\n\t\t\tstatus: 404 // TODO in some cases this should be 500. not sure how to differentiate\n\t\t});\n\t}\n\n\tif (is_action_json_request(event)) {\n\t\tconst node = await manifest.nodes[page.leaf]();\n\t\treturn handle_action_json_request(event, state, node?.server);\n\t}\n\n\ttry {\n\t\tconst leaf_node = /** @type {SSRNode} */ (nodes.page());\n\n\t\tlet status = 200;\n\n\t\t/** @type {import('types').ServerActionResult | undefined} */\n\t\tlet action_result = undefined;\n\n\t\tif (is_action_request(event)) {\n\t\t\tconst remote_id = get_remote_action(event.url);\n\t\t\tif (remote_id) {\n\t\t\t\taction_result = await handle_remote_form_post(event, state, remote_id);\n\t\t\t} else {\n\t\t\t\t// for action requests, first call handler in +page.server.js\n\t\t\t\t// (this also determines status code)\n\t\t\t\taction_result = await handle_action_request(event, state, leaf_node.server);\n\t\t\t}\n\n\t\t\tif (action_result?.type === 'redirect') {\n\t\t\t\treturn redirect_response(action_result.status, action_result.location);\n\t\t\t}\n\t\t\tif (action_result?.type === 'error') {\n\t\t\t\tstatus = get_status(action_result.error);\n\t\t\t}\n\t\t\tif (action_result?.type === 'failure') {\n\t\t\t\tstatus = action_result.status;\n\t\t\t}\n\t\t}\n\n\t\t// it's crucial that we do this before returning the non-SSR response, otherwise\n\t\t// SvelteKit will erroneously believe that the path has been prerendered,\n\t\t// causing functions to be omitted from the manifest generated later\n\t\tconst should_prerender = nodes.prerender();\n\t\tif (should_prerender) {\n\t\t\tconst mod = leaf_node.server;\n\t\t\tif (mod?.actions) {\n\t\t\t\te.prerender_actions();\n\t\t\t}\n\t\t} else if (state.prerendering) {\n\t\t\t// if the page isn't marked as prerenderable, then bail out at this point\n\t\t\treturn new Response(undefined, {\n\t\t\t\tstatus: 204\n\t\t\t});\n\t\t}\n\n\t\t// if we fetch any endpoints while loading data for this page, they should\n\t\t// inherit the prerender option of the page\n\t\tstate.prerender_default = should_prerender;\n\n\t\tconst should_prerender_data = nodes.should_prerender_data();\n\t\tconst data_pathname = add_data_suffix(event.url.pathname);\n\n\t\t/** @type {import('./types.js').Fetched[]} */\n\t\tconst fetched = [];\n\n\t\tconst ssr = nodes.ssr();\n\t\tconst csr = nodes.csr();\n\n\t\t// renders an empty 'shell' page if SSR is turned off and if there is\n\t\t// no server data to prerender. As a result, the load functions and rendering\n\t\t// only occur client-side.\n\t\tif (\n\t\t\tssr === false &&\n\t\t\t!((state.prerendering || state.prerender_default === true) && should_prerender_data)\n\t\t) {\n\t\t\t// if the user makes a request through a non-enhanced form, the returned value is lost\n\t\t\t// because there is no SSR or client-side handling of the response\n\t\t\tif (DEV && action_result && !event.request.headers.has('x-sveltekit-action')) {\n\t\t\t\tif (action_result.type === 'error') {\n\t\t\t\t\tw.form_action_error_without_ssr();\n\t\t\t\t} else if (action_result.data) {\n\t\t\t\t\t/// case: lost data\n\t\t\t\t\tw.form_action_data_without_ssr();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn await render_response({\n\t\t\t\t// provide nodes without running load functions so that the styles and\n\t\t\t\t// fonts are linked in the head before CSR takes over\n\t\t\t\tbranch: compact(nodes.data).map((node) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tdata: null,\n\t\t\t\t\t\tserver_data: null\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t\tfetched,\n\t\t\t\tpage_config: {\n\t\t\t\t\tssr: false,\n\t\t\t\t\tcsr\n\t\t\t\t},\n\t\t\t\tstatus,\n\t\t\t\terror: null,\n\t\t\t\tevent,\n\t\t\t\tstate,\n\t\t\t\tresolve_opts,\n\t\t\t\tdata_serializer: server_data_serializer(event, state)\n\t\t\t});\n\t\t}\n\n\t\t/** @type {Array<import('./types.js').Loaded | null>} */\n\t\tconst branch = [];\n\n\t\t/** @type {Error | null} */\n\t\tlet load_error = null;\n\n\t\tconst data_serializer = server_data_serializer(event, state);\n\t\tconst data_serializer_json =\n\t\t\t(state.prerendering || state.prerender_default === true) && should_prerender_data\n\t\t\t\t? server_data_serializer_json(event, state)\n\t\t\t\t: null;\n\n\t\t/** @type {Array<Promise<ServerDataNode | null>>} */\n\t\tconst server_promises = nodes.data.map((node, i) => {\n\t\t\tif (load_error) {\n\t\t\t\t// if an error happens immediately, don't bother with the rest of the nodes\n\t\t\t\tthrow load_error;\n\t\t\t}\n\n\t\t\treturn Promise.resolve().then(async () => {\n\t\t\t\ttry {\n\t\t\t\t\tif (node === leaf_node && action_result?.type === 'error') {\n\t\t\t\t\t\t// we wait until here to throw the error so that we can use\n\t\t\t\t\t\t// any nested +error.svelte components that were defined\n\t\t\t\t\t\tthrow action_result.error;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst server_data = await load_server_data({\n\t\t\t\t\t\tevent,\n\t\t\t\t\t\tstate,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tparent: async () => {\n\t\t\t\t\t\t\t/** @type {Record<string, any>} */\n\t\t\t\t\t\t\tconst data = {};\n\t\t\t\t\t\t\tfor (let j = 0; j < i; j += 1) {\n\t\t\t\t\t\t\t\tconst parent = await server_promises[j];\n\t\t\t\t\t\t\t\tif (parent) Object.assign(data, parent.data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn data;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tif (node) {\n\t\t\t\t\t\tdata_serializer.add_node(i, server_data);\n\t\t\t\t\t}\n\n\t\t\t\t\tdata_serializer_json?.add_node(i, server_data);\n\n\t\t\t\t\treturn server_data;\n\t\t\t\t} catch (e) {\n\t\t\t\t\tload_error = /** @type {Error} */ (e);\n\t\t\t\t\tthrow load_error;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\t/** @type {Array<Promise<Record<string, any> | null>>} */\n\t\tconst load_promises = nodes.data.map((node, i) => {\n\t\t\tif (load_error) throw load_error;\n\t\t\treturn Promise.resolve().then(async () => {\n\t\t\t\ttry {\n\t\t\t\t\treturn await load_data({\n\t\t\t\t\t\tevent,\n\t\t\t\t\t\tstate,\n\t\t\t\t\t\tfetched,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tparent: async () => {\n\t\t\t\t\t\t\tconst data = {};\n\t\t\t\t\t\t\tfor (let j = 0; j < i; j += 1) {\n\t\t\t\t\t\t\t\tObject.assign(data, await load_promises[j]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn data;\n\t\t\t\t\t\t},\n\t\t\t\t\t\tresolve_opts,\n\t\t\t\t\t\tserver_data_promise: server_promises[i],\n\t\t\t\t\t\tcsr\n\t\t\t\t\t});\n\t\t\t\t} catch (e) {\n\t\t\t\t\tload_error = /** @type {Error} */ (e);\n\t\t\t\t\tthrow load_error;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\t// if we don't do this, rejections will be unhandled\n\t\tfor (const p of server_promises) p.catch(noop);\n\t\tfor (const p of load_promises) p.catch(noop);\n\n\t\tfor (let i = 0; i < nodes.data.length; i += 1) {\n\t\t\tconst node = nodes.data[i];\n\n\t\t\tif (node) {\n\t\t\t\ttry {\n\t\t\t\t\tconst server_data = await server_promises[i];\n\t\t\t\t\tconst data = await load_promises[i];\n\n\t\t\t\t\tbranch.push({ node, server_data, data });\n\t\t\t\t} catch (e) {\n\t\t\t\t\tconst err = normalize_error(e);\n\n\t\t\t\t\tif (err instanceof Redirect) {\n\t\t\t\t\t\tif (state.prerendering && should_prerender_data) {\n\t\t\t\t\t\t\tconst body = JSON.stringify({\n\t\t\t\t\t\t\t\ttype: 'redirect',\n\t\t\t\t\t\t\t\tstatus: err.status,\n\t\t\t\t\t\t\t\tlocation: err.location\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tstate.prerendering.dependencies.set(data_pathname, {\n\t\t\t\t\t\t\t\tresponse: text(body),\n\t\t\t\t\t\t\t\tbody\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn redirect_response(err.status, err.location);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst error = await handle_error_and_jsonify(event, state, err);\n\t\t\t\t\tconst status = error.status;\n\n\t\t\t\t\tfor (const { error: index, idx } of nearest_error_pages(i, branch, page.errors)) {\n\t\t\t\t\t\tconst node = await manifest.nodes[index]();\n\n\t\t\t\t\t\tdata_serializer.set_max_nodes(idx);\n\n\t\t\t\t\t\tconst layouts = compact(branch.slice(0, idx));\n\t\t\t\t\t\tconst nodes = new PageNodes(layouts.map((layout) => layout.node));\n\t\t\t\t\t\tconst error_branch = layouts.concat({\n\t\t\t\t\t\t\tnode,\n\t\t\t\t\t\t\tdata: null,\n\t\t\t\t\t\t\tserver_data: null\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn await render_response({\n\t\t\t\t\t\t\tevent,\n\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\tresolve_opts,\n\t\t\t\t\t\t\tpage_config: {\n\t\t\t\t\t\t\t\tssr: nodes.ssr(),\n\t\t\t\t\t\t\t\tcsr: nodes.csr()\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tstatus,\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t\terror_components: await load_error_components(ssr, error_branch, page),\n\t\t\t\t\t\t\tbranch: error_branch,\n\t\t\t\t\t\t\tfetched,\n\t\t\t\t\t\t\tdata_serializer\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// if we're still here, it means the error happened in the root layout,\n\t\t\t\t\t// which means we have to fall back to error.html\n\t\t\t\t\treturn static_error_page(status, error.message);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// push an empty slot so we can rewind past gaps to the\n\t\t\t\t// layout that corresponds with an +error.svelte page\n\t\t\t\tbranch.push(null);\n\t\t\t}\n\t\t}\n\n\t\tif (state.prerendering && data_serializer_json) {\n\t\t\t// ndjson format\n\t\t\tlet { data, chunks } = data_serializer_json.get_data();\n\n\t\t\tif (chunks) {\n\t\t\t\tfor await (const chunk of chunks) {\n\t\t\t\t\tdata += chunk;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstate.prerendering.dependencies.set(data_pathname, {\n\t\t\t\tresponse: text(data),\n\t\t\t\tbody: data\n\t\t\t});\n\t\t}\n\n\t\treturn await render_response({\n\t\t\tevent,\n\t\t\tstate,\n\t\t\tresolve_opts,\n\t\t\tpage_config: {\n\t\t\t\tcsr,\n\t\t\t\tssr\n\t\t\t},\n\t\t\tstatus,\n\t\t\terror: null,\n\t\t\tbranch: compact(branch),\n\t\t\taction_result,\n\t\t\tfetched,\n\t\t\tdata_serializer: !ssr ? server_data_serializer(event, state) : data_serializer,\n\t\t\terror_components: await load_error_components(ssr, branch, page)\n\t\t});\n\t} catch (e) {\n\t\t// a remote function could have thrown a redirect during render\n\t\tif (e instanceof Redirect) {\n\t\t\treturn redirect_response(e.status, e.location);\n\t\t}\n\n\t\t// if we end up here, it means the data loaded successfully\n\t\t// but the page failed to render, or that a prerendering error occurred\n\t\treturn await respond_with_error({\n\t\t\tevent,\n\t\t\tstate,\n\t\t\terror: e,\n\t\t\tresolve_opts\n\t\t});\n\t}\n}\n\n/**\n * @param {boolean} ssr\n * @param {Array<import('./types.js').Loaded | null>} branch\n * @param {PageNodeIndexes} page\n */\nfunction load_error_components(ssr, branch, page) {\n\tif (!ssr) return undefined;\n\n\treturn build_error_chain(branch, page.errors, (idx) =>\n\t\tmanifest.nodes[idx]?.().then((e) => e.component?.())\n\t);\n}\n","import { is_form_content_type } from '../../utils/http.js';\n\nconst mutating_form_methods = new Set(['POST', 'PUT', 'PATCH', 'DELETE']);\n\n/**\n * The origin SvelteKit treats as \"self\" when validating the `Origin` header on\n * cross-site requests.\n *\n * By default (`paths.origin` is `undefined`), SvelteKit derives the origin\n * from `request.url` (which is set by the adapter, and ultimately by the\n * platform). When `paths.origin` is configured — for example so that a preview\n * deployment whose URL isn't known at build time, or an app behind a reverse\n * proxy, can declare a canonical origin — that value takes precedence.\n *\n * @param {string | undefined} paths_origin the configured `kit.paths.origin`\n * @param {string} url_origin the origin derived from `request.url`\n * @returns {string}\n */\nexport function get_self_origin(paths_origin, url_origin) {\n\treturn paths_origin || url_origin;\n}\n\n/**\n * Determines whether a non-remote request should be rejected as a cross-site\n * request forgery (CSRF). Used by `respond.js` to gate form `POST`/`PUT`/\n * `PATCH`/`DELETE` requests whose `Origin` header doesn't match the app's\n * self-origin (and isn't in `trusted_origins`).\n *\n * @param {{\n * request: Request;\n * request_origin: string | null;\n * self_origin: string;\n * trusted_origins: string[];\n * }} input\n * @returns {boolean}\n */\nexport function is_csrf_forbidden({ request, request_origin, self_origin, trusted_origins }) {\n\treturn (\n\t\t(!request.headers.get('content-type') || is_form_content_type(request)) &&\n\t\tmutating_form_methods.has(request.method) &&\n\t\trequest_origin !== self_origin &&\n\t\t(!request_origin || !trusted_origins.includes(request_origin))\n\t);\n}\n\n/**\n * Determines whether a remote-function request should be rejected as cross-site.\n *\n * Unlike form submissions, remote functions accept any content type (e.g.\n * `application/json`), so the check is solely on the request method and origin:\n * a non-`GET` request is forbidden when its `Origin` header doesn't match the\n * app's self-origin. Unlike `is_csrf_forbidden`, entries in `trusted_origins`\n * are *not* honoured — remote function endpoints are an implementation detail,\n * not a public API, so cross-origin calls are forbidden regardless.\n *\n * @param {{\n * request: Request;\n * request_origin: string | null;\n * self_origin: string;\n * }} input\n * @returns {boolean}\n */\nexport function is_remote_forbidden({ request, request_origin, self_origin }) {\n\treturn request.method !== 'GET' && request_origin !== self_origin;\n}\n","import { text } from '@sveltejs/kit';\nimport { Redirect } from '@sveltejs/kit/internal';\nimport { normalize_error } from '../../../utils/error.js';\nimport { once } from '../../../utils/functions.js';\nimport { server_data_serializer_json } from '../page/data_serializer.js';\nimport { load_server_data } from '../page/load_data.js';\nimport { handle_error_and_jsonify } from '../errors.js';\nimport { normalize_path } from '../../../utils/url.js';\nimport { stream_text } from '../../utils.js';\nimport { with_version_header } from '../utils.js';\nimport { manifest } from '../internal.js';\n\n/**\n * @param {import('@sveltejs/kit').RequestEvent} event\n * @param {import('types').RequestState} state\n * @param {{ page: Pick<import('types').PageNodeIndexes, 'layouts' | 'leaf'> | null }} route\n * @param {boolean[] | undefined} invalidated_data_nodes\n * @param {import('types').TrailingSlash} trailing_slash\n * @returns {Promise<Response>}\n */\nexport async function render_data(event, state, route, invalidated_data_nodes, trailing_slash) {\n\tif (!route.page) {\n\t\t// requesting /__data.json should fail for a +server.js\n\t\treturn with_version_header(new Response(undefined, { status: 404 }));\n\t}\n\n\ttry {\n\t\tconst node_ids = [...route.page.layouts, route.page.leaf];\n\t\tconst invalidated = invalidated_data_nodes ?? node_ids.map(() => true);\n\n\t\tlet aborted = false;\n\n\t\tconst url = new URL(event.url);\n\t\turl.pathname = normalize_path(url.pathname, trailing_slash);\n\n\t\tconst new_event = { ...event, url };\n\n\t\tconst functions = node_ids.map((n, i) => {\n\t\t\treturn once(async () => {\n\t\t\t\ttry {\n\t\t\t\t\tif (aborted) {\n\t\t\t\t\t\treturn /** @type {import('types').ServerDataSkippedNode} */ ({\n\t\t\t\t\t\t\ttype: 'skip'\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// == because it could be undefined (in dev) or null (in build, because of JSON.stringify)\n\t\t\t\t\tconst node = n == undefined ? n : await manifest.nodes[n]();\n\t\t\t\t\t// load this. for the child, return as is. for the final result, stream things\n\t\t\t\t\treturn load_server_data({\n\t\t\t\t\t\tevent: new_event,\n\t\t\t\t\t\tstate,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tparent: async () => {\n\t\t\t\t\t\t\t/** @type {Record<string, any>} */\n\t\t\t\t\t\t\tconst data = {};\n\t\t\t\t\t\t\tfor (let j = 0; j < i; j += 1) {\n\t\t\t\t\t\t\t\tconst parent = /** @type {import('types').ServerDataNode | null} */ (\n\t\t\t\t\t\t\t\t\tawait functions[j]()\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\tif (parent) {\n\t\t\t\t\t\t\t\t\tObject.assign(data, parent.data);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn data;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} catch (e) {\n\t\t\t\t\taborted = true;\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst promises = functions.map(async (fn, i) => {\n\t\t\tif (!invalidated[i]) {\n\t\t\t\treturn /** @type {import('types').ServerDataSkippedNode} */ ({\n\t\t\t\t\ttype: 'skip'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn fn();\n\t\t});\n\n\t\tconst data_serializer = server_data_serializer_json(event, state);\n\t\tawait Promise.all(\n\t\t\tpromises.map(async (p, i) => {\n\t\t\t\tconst node = await p.catch(async (error) => {\n\t\t\t\t\tif (error instanceof Redirect) {\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst transformed = await handle_error_and_jsonify(event, state, error);\n\n\t\t\t\t\treturn /** @type {import('types').ServerErrorNode} */ ({\n\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\terror: transformed\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\tdata_serializer.add_node(i, node);\n\t\t\t})\n\t\t);\n\t\tconst { data, chunks } = data_serializer.get_data();\n\n\t\tif (!chunks) {\n\t\t\t// use a normal JSON response where possible, so we get `content-length`\n\t\t\t// and can use browser JSON devtools for easier inspecting\n\t\t\treturn json_response(data);\n\t\t}\n\n\t\treturn with_version_header(\n\t\t\tnew Response(stream_text(data, chunks), {\n\t\t\t\theaders: {\n\t\t\t\t\t// we use a proprietary content type to prevent buffering.\n\t\t\t\t\t// the `text` prefix makes it inspectable\n\t\t\t\t\t'content-type': 'text/sveltekit-data',\n\t\t\t\t\t'cache-control': 'private, no-store'\n\t\t\t\t}\n\t\t\t})\n\t\t);\n\t} catch (e) {\n\t\tconst error = normalize_error(e);\n\n\t\tif (error instanceof Redirect) {\n\t\t\treturn redirect_json_response(error);\n\t\t} else {\n\t\t\tconst transformed = await handle_error_and_jsonify(event, state, error);\n\t\t\treturn json_response(transformed, transformed.status);\n\t\t}\n\t}\n}\n\n/**\n * @param {Record<string, any> | string} json\n * @param {number} [status]\n */\nfunction json_response(json, status = 200) {\n\treturn with_version_header(\n\t\ttext(typeof json === 'string' ? json : JSON.stringify(json), {\n\t\t\tstatus,\n\t\t\theaders: {\n\t\t\t\t'content-type': 'application/json',\n\t\t\t\t'cache-control': 'private, no-store'\n\t\t\t}\n\t\t})\n\t);\n}\n\n/**\n * @param {Redirect} redirect\n */\nexport function redirect_json_response(redirect) {\n\treturn json_response(\n\t\t/** @type {import('types').ServerRedirectNode} */ ({\n\t\t\ttype: 'redirect',\n\t\t\tstatus: redirect.status,\n\t\t\tlocation: redirect.location\n\t\t})\n\t);\n}\n","/**\n * RegExp to match cookie-name in RFC 6265 sec 4.1.1\n * This refers out to the obsoleted definition of token in RFC 2616 sec 2.2\n * which has been replaced by the token definition in RFC 7230 appendix B.\n *\n * cookie-name = token\n * token = 1*tchar\n * tchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" /\n * \"*\" / \"+\" / \"-\" / \".\" / \"^\" / \"_\" /\n * \"`\" / \"|\" / \"~\" / DIGIT / ALPHA\n *\n * Note: Allowing more characters - https://github.com/jshttp/cookie/issues/191\n * Allow same range as cookie value, except `=`, which delimits end of name.\n */\nconst cookieNameRegExp = /^[\\u0021-\\u003A\\u003C\\u003E-\\u007E]+$/;\n/**\n * RegExp to match cookie-value in RFC 6265 sec 4.1.1\n *\n * cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )\n * cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n * ; US-ASCII characters excluding CTLs,\n * ; whitespace DQUOTE, comma, semicolon,\n * ; and backslash\n *\n * Allowing more characters: https://github.com/jshttp/cookie/issues/191\n * Comma, backslash, and DQUOTE are not part of the parsing algorithm.\n */\nconst cookieValueRegExp = /^[\\u0021-\\u003A\\u003C-\\u007E]*$/;\n/**\n * RegExp to match domain-value in RFC 6265 sec 4.1.1\n *\n * domain-value = <subdomain>\n * ; defined in [RFC1034], Section 3.5, as\n * ; enhanced by [RFC1123], Section 2.1\n * <subdomain> = <label> | <subdomain> \".\" <label>\n * <label> = <let-dig> [ [ <ldh-str> ] <let-dig> ]\n * Labels must be 63 characters or less.\n * 'let-dig' not 'letter' in the first char, per RFC1123\n * <ldh-str> = <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n * <let-dig-hyp> = <let-dig> | \"-\"\n * <let-dig> = <letter> | <digit>\n * <letter> = any one of the 52 alphabetic characters A through Z in\n * upper case and a through z in lower case\n * <digit> = any one of the ten digits 0 through 9\n *\n * Keep support for leading dot: https://github.com/jshttp/cookie/issues/173\n *\n * > (Note that a leading %x2E (\".\"), if present, is ignored even though that\n * character is not permitted, but a trailing %x2E (\".\"), if present, will\n * cause the user agent to ignore the attribute.)\n */\nconst domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;\n/**\n * RegExp to match path-value in RFC 6265 sec 4.1.1\n *\n * path-value = <any CHAR except CTLs or \";\">\n * CHAR = %x01-7F\n * ; defined in RFC 5234 appendix B.1\n */\nconst pathValueRegExp = /^[\\u0020-\\u003A\\u003D-\\u007E]*$/;\n/**\n * RegExp to match max-age-value in RFC 6265 sec 5.6.2\n */\nconst maxAgeRegExp = /^-?\\d+$/;\n/**\n * RegExp to match RFC 6265 cookie-octet values (without % to preserve roundtrip) that need no URL encoding.\n */\nconst cookieOctetRegExp = /^[!#$&'()*+\\-.\\/0-9:<=>?@A-Z[\\]\\^_`a-z{|}~]*$/;\nconst NullObject = /* @__PURE__ */ (() => {\n const C = function () { };\n C.prototype = Object.create(null);\n return C;\n})();\n/**\n * Parse a `Cookie` header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n */\nexport function parseCookie(str, options) {\n const obj = new NullObject();\n const len = str.length;\n // RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='.\n if (len < 2)\n return obj;\n const dec = options?.decode || decode;\n let index = 0;\n do {\n const eqIdx = eqIndex(str, index, len);\n if (eqIdx === len)\n break; // No more cookie pairs.\n const endIdx = endIndex(str, index, len);\n if (eqIdx > endIdx) {\n // backtrack on prior semicolon\n index = str.lastIndexOf(\";\", eqIdx - 1) + 1;\n continue;\n }\n const key = valueSlice(str, index, eqIdx);\n // only assign once\n if (obj[key] === undefined) {\n obj[key] = dec(valueSlice(str, eqIdx + 1, endIdx));\n }\n index = endIdx + 1;\n } while (index < len);\n return obj;\n}\n/**\n * Stringifies an object into an HTTP `Cookie` header.\n */\nexport function stringifyCookie(cookie, options) {\n const enc = options?.encode || defaultEncode;\n const keys = Object.keys(cookie);\n let str = \"\";\n for (let i = 0; i < keys.length; i++) {\n const name = keys[i];\n const val = cookie[name];\n if (val === undefined)\n continue;\n if (!cookieNameRegExp.test(name)) {\n throw new TypeError(`cookie name is invalid: ${name}`);\n }\n const value = enc(val);\n if (!cookieValueRegExp.test(value)) {\n throw new TypeError(`cookie val is invalid: ${val}`);\n }\n if (str)\n str += \"; \";\n str += name + \"=\" + value;\n }\n return str;\n}\n/**\n * Serialize data into a cookie header.\n *\n * Serialize a name value pair into a cookie string suitable for\n * http headers. An optional options object specifies cookie parameters.\n *\n * stringifySetCookie({ name: 'foo', value: 'bar', httpOnly: true })\n * => \"foo=bar; HttpOnly\"\n */\nexport function stringifySetCookie(cookie, options) {\n const enc = options?.encode || defaultEncode;\n if (!cookieNameRegExp.test(cookie.name)) {\n throw new TypeError(`argument name is invalid: ${cookie.name}`);\n }\n const value = cookie.value == null ? \"\" : enc(cookie.value);\n if (!cookieValueRegExp.test(value)) {\n throw new TypeError(`argument val is invalid: ${cookie.value}`);\n }\n let str = cookie.name + \"=\" + value;\n if (cookie.maxAge !== undefined) {\n if (!Number.isInteger(cookie.maxAge)) {\n throw new TypeError(`option maxAge is invalid: ${cookie.maxAge}`);\n }\n str += \"; Max-Age=\" + cookie.maxAge;\n }\n if (cookie.domain) {\n if (!domainValueRegExp.test(cookie.domain)) {\n throw new TypeError(`option domain is invalid: ${cookie.domain}`);\n }\n str += \"; Domain=\" + cookie.domain;\n }\n if (cookie.path) {\n if (!pathValueRegExp.test(cookie.path)) {\n throw new TypeError(`option path is invalid: ${cookie.path}`);\n }\n str += \"; Path=\" + cookie.path;\n }\n if (cookie.expires) {\n if (!Number.isFinite(cookie.expires.valueOf())) {\n throw new TypeError(`option expires is invalid: ${cookie.expires}`);\n }\n str += \"; Expires=\" + cookie.expires.toUTCString();\n }\n if (cookie.httpOnly) {\n str += \"; HttpOnly\";\n }\n if (cookie.secure) {\n str += \"; Secure\";\n }\n if (cookie.partitioned) {\n str += \"; Partitioned\";\n }\n if (cookie.priority) {\n const priority = typeof cookie.priority === \"string\"\n ? cookie.priority.toLowerCase()\n : undefined;\n switch (priority) {\n case \"low\":\n str += \"; Priority=Low\";\n break;\n case \"medium\":\n str += \"; Priority=Medium\";\n break;\n case \"high\":\n str += \"; Priority=High\";\n break;\n default:\n throw new TypeError(`option priority is invalid: ${cookie.priority}`);\n }\n }\n if (cookie.sameSite) {\n const sameSite = typeof cookie.sameSite === \"string\"\n ? cookie.sameSite.toLowerCase()\n : cookie.sameSite;\n switch (sameSite) {\n case true:\n case \"strict\":\n str += \"; SameSite=Strict\";\n break;\n case \"lax\":\n str += \"; SameSite=Lax\";\n break;\n case \"none\":\n str += \"; SameSite=None\";\n break;\n default:\n throw new TypeError(`option sameSite is invalid: ${cookie.sameSite}`);\n }\n }\n return str;\n}\n/**\n * Deserialize a `Set-Cookie` header into an object.\n *\n * parseSetCookie('foo=bar; HttpOnly')\n * => { name: 'foo', value: 'bar', httpOnly: true }\n */\nexport function parseSetCookie(str, options) {\n const dec = options?.decode || decode;\n const len = str.length;\n const endIdx = endIndex(str, 0, len);\n let eqIdx = eqIndex(str, 0, len);\n const setCookie = eqIdx < endIdx\n ? {\n name: valueSlice(str, 0, eqIdx),\n value: dec(valueSlice(str, eqIdx + 1, endIdx)),\n }\n : { name: \"\", value: dec(valueSlice(str, 0, endIdx)) };\n let index = endIdx + 1;\n while (index < len) {\n const endIdx = endIndex(str, index, len);\n if (eqIdx < index)\n eqIdx = eqIndex(str, index, len);\n const attr = eqIdx < endIdx\n ? valueSlice(str, index, eqIdx)\n : valueSlice(str, index, endIdx);\n const val = eqIdx < endIdx ? valueSlice(str, eqIdx + 1, endIdx) : undefined;\n switch (attr.toLowerCase()) {\n case \"httponly\":\n setCookie.httpOnly = true;\n break;\n case \"secure\":\n setCookie.secure = true;\n break;\n case \"partitioned\":\n setCookie.partitioned = true;\n break;\n case \"domain\":\n setCookie.domain = val;\n break;\n case \"path\":\n setCookie.path = val;\n break;\n case \"max-age\":\n if (val && maxAgeRegExp.test(val))\n setCookie.maxAge = Number(val);\n break;\n case \"expires\":\n if (!val)\n break;\n const date = new Date(val);\n if (Number.isFinite(date.valueOf()))\n setCookie.expires = date;\n break;\n case \"priority\":\n if (!val)\n break;\n const priority = val.toLowerCase();\n if (priority === \"low\" ||\n priority === \"medium\" ||\n priority === \"high\") {\n setCookie.priority = priority;\n }\n break;\n case \"samesite\":\n if (!val)\n break;\n const sameSite = val.toLowerCase();\n if (sameSite === \"lax\" ||\n sameSite === \"strict\" ||\n sameSite === \"none\") {\n setCookie.sameSite = sameSite;\n }\n break;\n }\n index = endIdx + 1;\n }\n return setCookie;\n}\n/**\n * Find the next `;` character, or return `len`.\n */\nfunction endIndex(str, min, len) {\n const index = str.indexOf(\";\", min);\n return index === -1 ? len : index;\n}\n/**\n * Find the next `=` character, or return `len`.\n */\nfunction eqIndex(str, min, len) {\n const index = str.indexOf(\"=\", min);\n return index === -1 ? len : index;\n}\n/**\n * Slice out a value between startPod to max.\n */\nfunction valueSlice(str, min, max) {\n if (min === max)\n return \"\";\n let start = min;\n let end = max;\n do {\n const code = str.charCodeAt(start);\n if (code !== 32 /* */ && code !== 9 /* \\t */)\n break;\n } while (++start < end);\n while (end > start) {\n const code = str.charCodeAt(end - 1);\n if (code !== 32 /* */ && code !== 9 /* \\t */)\n break;\n end--;\n }\n return str.slice(start, end);\n}\n/**\n * URL-decode string value. Optimized to skip native call when no %.\n */\nfunction decode(str) {\n if (str.indexOf(\"%\") === -1)\n return str;\n try {\n return decodeURIComponent(str);\n }\n catch (e) {\n return str;\n }\n}\n/**\n * URL-encode string value. Optimized to skip native call for roundtrip-safe cookie-octet values.\n */\nfunction defaultEncode(str) {\n return cookieOctetRegExp.test(str) ? str : encodeURIComponent(str);\n}\n//# sourceMappingURL=index.js.map","import { parseCookie, parseSetCookie, stringifySetCookie } from 'cookie';\nimport { DEV } from 'esm-env';\nimport { normalize_path, resolve } from '../../utils/url.js';\nimport { add_data_suffix } from '../pathname.js';\nimport { text_encoder } from '../utils.js';\nimport * as e from '../../messages/server-errors.js';\nimport * as w from '../../messages/server-warnings.js';\n\n/**\n * Tracks all cookies set during dev mode so we can emit warnings\n * when we detect that there's likely cookie misusage due to wrong paths\n *\n * @type {Record<string, Set<string>>} */\nconst cookie_paths = {};\n\n/**\n * Cookies whose name and value combined are larger than this size are\n * discarded by browsers. This is the limit codified for the name/value pair\n * in RFC 6265bis: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-20#section-5.6-7.5.1\n */\nconst MAX_COOKIE_SIZE = 4096;\n\n/**\n * Generates a unique key for a cookie based on its domain, path, and name in\n * the format: `<domain>/<path>?<name>`.\n * If domain is undefined, it will be omitted.\n * For example: `/?name`, `example.com/foo?name`.\n *\n * @param {string | undefined} domain\n * @param {string} path\n * @param {string} name\n * @returns {string}\n */\nfunction generate_cookie_key(domain, path, name) {\n\treturn `${domain || ''}${path}?${encodeURIComponent(name)}`;\n}\n\n/**\n * @param {Request} request\n * @param {URL} url\n */\nexport function get_cookies(request, url) {\n\tconst header = request.headers.get('cookie') ?? '';\n\tconst initial_cookies = /** @type {Record<string, string>} */ (\n\t\tparseCookie(header, { decode: (value) => value })\n\t);\n\n\t/** @type {ReturnType<typeof parseCookie> | undefined} */\n\tlet default_cookies;\n\n\t/**\n\t * The header never changes during the request, so the default-decode parse is cached\n\t * @param {import('cookie').ParseOptions} [opts]\n\t */\n\tfunction parse_header(opts) {\n\t\treturn opts?.decode ? parseCookie(header, opts) : (default_cookies ??= parseCookie(header));\n\t}\n\n\t/** @param {import('./page/types.js').Cookie} cookie */\n\tfunction matches_url(cookie) {\n\t\treturn (\n\t\t\tdomain_matches(url.hostname, cookie.options.domain) &&\n\t\t\tpath_matches(url.pathname, cookie.options.path)\n\t\t);\n\t}\n\n\t/** @type {string | undefined} */\n\tlet normalized_url;\n\n\t/** @type {Map<string, import('./page/types.js').Cookie>} */\n\tconst new_cookies = new Map();\n\n\t/** @type {Omit<import('cookie').SetCookie, 'name' | 'value'>} */\n\tconst defaults = {\n\t\thttpOnly: true,\n\t\tpath: '/',\n\t\tsameSite: 'lax',\n\t\tsecure: !__SVELTEKIT_DEV__ && !(url.hostname === 'localhost' && url.protocol === 'http:')\n\t};\n\n\t/** @type {import('@sveltejs/kit').Cookies} */\n\tconst cookies = {\n\t\t// The JSDoc param annotations appearing below for get, set and delete\n\t\t// are necessary to expose the `cookie` library types to\n\t\t// typescript users. `@type {import('@sveltejs/kit').Cookies}` above is not\n\t\t// sufficient to do so.\n\n\t\tget(name, opts) {\n\t\t\t// Look for the most specific matching cookie from new_cookies\n\t\t\t/** @type {import('./page/types.js').Cookie | undefined} */\n\t\t\tlet best_match;\n\t\t\tfor (const c of new_cookies.values()) {\n\t\t\t\tif (\n\t\t\t\t\tc.name === name &&\n\t\t\t\t\tmatches_url(c) &&\n\t\t\t\t\t(!best_match || c.options.path.length > best_match.options.path.length)\n\t\t\t\t) {\n\t\t\t\t\tbest_match = c;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (best_match) {\n\t\t\t\treturn best_match.options.maxAge === 0 ? undefined : best_match.value;\n\t\t\t}\n\n\t\t\tconst cookie = parse_header(opts)[name]; // the decoded string or undefined\n\n\t\t\t// in development, if the cookie was set during this session with `cookies.set`,\n\t\t\t// but at a different path, warn the user. (ignore cookies from request headers,\n\t\t\t// since we don't know which path they were set at)\n\t\t\tif (DEV && !cookie) {\n\t\t\t\tconst paths = Array.from(cookie_paths[name] ?? []).filter((path) => {\n\t\t\t\t\t// we only care about paths that are _more_ specific than the current path\n\t\t\t\t\treturn path_matches(path, url.pathname) && path !== url.pathname;\n\t\t\t\t});\n\n\t\t\t\tif (paths.length > 0) {\n\t\t\t\t\tw.cookie_path_mismatch({ name, pathname: url.pathname, paths: conjoin([...paths]) });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn cookie;\n\t\t},\n\n\t\tgetAll(opts) {\n\t\t\t// copy, so the cached parse isn't mutated below\n\t\t\tconst cookies = { ...parse_header(opts) };\n\n\t\t\t// Group cookies by name and find the most specific one for each name\n\t\t\tconst lookup = new Map();\n\n\t\t\tfor (const c of new_cookies.values()) {\n\t\t\t\tif (matches_url(c)) {\n\t\t\t\t\tconst existing = lookup.get(c.name);\n\n\t\t\t\t\t// If no existing cookie or this one has a more specific (longer) path, use this one\n\t\t\t\t\tif (!existing || c.options.path.length > existing.options.path.length) {\n\t\t\t\t\t\tlookup.set(c.name, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add the most specific cookies to the result\n\t\t\tfor (const c of lookup.values()) {\n\t\t\t\t// tombstones (deleted cookies) shadow request-header cookies,\n\t\t\t\t// mirroring the behavior of `get()`\n\t\t\t\tif (c.options.maxAge === 0) {\n\t\t\t\t\tdelete cookies[c.name];\n\t\t\t\t} else {\n\t\t\t\t\tcookies[c.name] = c.value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn /** @type {Array<{ name: string; value: string }>} */ (\n\t\t\t\tObject.entries(cookies)\n\t\t\t\t\t.filter(([, value]) => value != null)\n\t\t\t\t\t.map(([name, value]) => ({ name, value }))\n\t\t\t);\n\t\t},\n\n\t\tset(name, value, options) {\n\t\t\tset_internal(name, value, { ...defaults, ...options });\n\t\t},\n\n\t\tdelete(name, options) {\n\t\t\tcookies.set(name, '', { ...options, maxAge: 0 });\n\t\t},\n\n\t\tparse: parseSetCookie,\n\n\t\tserialize(name, value, { encode, ...options } = {}) {\n\t\t\tlet path = options.path ?? '/';\n\n\t\t\tif (!options.domain || options.domain === url.hostname) {\n\t\t\t\tif (!normalized_url) {\n\t\t\t\t\te.cookies_serialize_before_route();\n\t\t\t\t}\n\t\t\t\tpath = resolve(normalized_url, path);\n\t\t\t}\n\n\t\t\treturn stringifySetCookie({ name, value, ...defaults, ...options, path }, { encode });\n\t\t}\n\t};\n\n\t/**\n\t * @param {URL} destination\n\t * @param {string | null} header\n\t */\n\tfunction get_cookie_header(destination, header) {\n\t\t/** @type {Record<string, string>} */\n\t\tconst combined_cookies = {\n\t\t\t// cookies sent by the user agent have lowest precedence\n\t\t\t...initial_cookies\n\t\t};\n\n\t\t// cookies previous set during this event with cookies.set have higher precedence\n\t\tfor (const cookie of new_cookies.values()) {\n\t\t\tif (!domain_matches(destination.hostname, cookie.options.domain)) continue;\n\t\t\tif (!path_matches(destination.pathname, cookie.options.path)) continue;\n\n\t\t\tconst encoder = cookie.options.encode || encodeURIComponent;\n\t\t\tcombined_cookies[cookie.name] = encoder(cookie.value);\n\t\t}\n\n\t\t// explicit header has highest precedence\n\t\tif (header) {\n\t\t\tconst parsed = /** @type {Record<string, string>} */ (\n\t\t\t\tparseCookie(header, { decode: (value) => value })\n\t\t\t);\n\t\t\tfor (const name in parsed) {\n\t\t\t\tcombined_cookies[name] = parsed[name];\n\t\t\t}\n\t\t}\n\n\t\treturn Object.entries(combined_cookies)\n\t\t\t.map(([name, value]) => `${name}=${value}`)\n\t\t\t.join('; ');\n\t}\n\n\t/** @type {Array<() => void>} */\n\tconst internal_queue = [];\n\n\t/**\n\t * @param {string} name\n\t * @param {string} value\n\t * @param {import('cookie').SerializeOptions} options\n\t */\n\tfunction set_internal(name, value, options) {\n\t\tif (!normalized_url) {\n\t\t\tinternal_queue.push(() => set_internal(name, value, options));\n\t\t\treturn;\n\t\t}\n\n\t\tlet path = options.path ?? '/';\n\n\t\tif (!options.domain || options.domain === url.hostname) {\n\t\t\tpath = resolve(normalized_url, path);\n\t\t}\n\n\t\t// Generate unique key for cookie storage\n\t\tconst cookie_key = generate_cookie_key(options.domain, path, name);\n\t\tconst cookie = { name, value, options: { ...options, path } };\n\t\tnew_cookies.set(cookie_key, cookie);\n\n\t\tif (DEV) {\n\t\t\tconst size =\n\t\t\t\t// only the name/value pair counts towards MAX_COOKIE_SIZE, not the other attributes\n\t\t\t\ttext_encoder.encode(name).byteLength +\n\t\t\t\ttext_encoder.encode((options.encode ?? encodeURIComponent)(value)).byteLength;\n\n\t\t\tif (size > MAX_COOKIE_SIZE) {\n\t\t\t\te.cookie_too_large({ name });\n\t\t\t}\n\n\t\t\tcookie_paths[name] ??= new Set();\n\n\t\t\tif (!value) {\n\t\t\t\tcookie_paths[name].delete(path);\n\t\t\t} else {\n\t\t\t\tcookie_paths[name].add(path);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @param {import('types').TrailingSlash} trailing_slash\n\t */\n\tfunction set_trailing_slash(trailing_slash) {\n\t\tnormalized_url = normalize_path(url.pathname, trailing_slash);\n\t\tinternal_queue.forEach((fn) => fn());\n\t}\n\n\treturn { cookies, new_cookies, get_cookie_header, set_internal, set_trailing_slash };\n}\n\n/**\n * @param {string} hostname\n * @param {string} [constraint]\n */\nexport function domain_matches(hostname, constraint) {\n\tif (!constraint) return true;\n\n\tconst normalized = constraint[0] === '.' ? constraint.slice(1) : constraint;\n\n\tif (hostname === normalized) return true;\n\treturn hostname.endsWith('.' + normalized);\n}\n\n/**\n * @param {string} path\n * @param {string} [constraint]\n */\nexport function path_matches(path, constraint) {\n\tif (!constraint) return true;\n\n\tconst normalized = constraint.endsWith('/') ? constraint.slice(0, -1) : constraint;\n\n\tif (path === normalized) return true;\n\treturn path.startsWith(normalized + '/');\n}\n\n/**\n * @param {Headers} headers\n * @param {MapIterator<import('./page/types.js').Cookie>} cookies\n */\nexport function add_cookies_to_headers(headers, cookies) {\n\tfor (const new_cookie of cookies) {\n\t\tconst {\n\t\t\tname,\n\t\t\tvalue,\n\t\t\toptions: { encode, ...options }\n\t\t} = new_cookie;\n\t\theaders.append('set-cookie', stringifySetCookie({ name, value, ...options }, { encode }));\n\n\t\t// special case — for routes ending with .html, the route data lives in a sibling\n\t\t// `.html__data.json` file rather than a child `/__data.json` file, which means\n\t\t// we need to duplicate the cookie\n\t\tif (options.path.endsWith('.html')) {\n\t\t\tconst path = add_data_suffix(options.path);\n\t\t\theaders.append(\n\t\t\t\t'set-cookie',\n\t\t\t\tstringifySetCookie({ name, value, ...options, path }, { encode })\n\t\t\t);\n\t\t}\n\t}\n}\n\n/**\n * @param {string[]} array\n */\nfunction conjoin(array) {\n\tif (array.length <= 2) return array.join(' and ');\n\treturn `${array.slice(0, -1).join(', ')} and ${array.at(-1)}`;\n}\n","/** @import { InternalRequestOptions, RequestState } from 'types' */\n\n/** Per-request caches and context flags — never carried into a fork. */\nfunction transient_fields() {\n\treturn {\n\t\tremote: {\n\t\t\tdata: null,\n\t\t\texplicit: null,\n\t\t\timplicit: null,\n\t\t\tforms: null,\n\t\t\trequested: null,\n\t\t\tignored: null,\n\t\t\tbatches: null,\n\t\t\tlive_iterators: null\n\t\t},\n\t\tis_in_remote_function: false,\n\t\tis_in_remote_form_or_command: false,\n\t\tis_in_remote_query: false,\n\t\tis_in_remote_prerender: false,\n\t\tis_in_render: false\n\t};\n}\n\n/**\n * @param {InternalRequestOptions} options\n * @returns {RequestState}\n */\nexport function create_request_state(options) {\n\t// every field is initialized up front so the object shape stays stable\n\treturn {\n\t\tgetClientAddress: options.getClientAddress,\n\t\tplatform: options.platform,\n\t\tread: options.read,\n\t\tbefore_handle: options.before_handle,\n\t\temulator: options.emulator,\n\t\tprerendering: options.prerendering,\n\t\tprerender_default: undefined,\n\t\terror: false,\n\t\tdepth: 0,\n\t\trerouted_url: null,\n\t\t...transient_fields()\n\t};\n}\n\n/**\n * @param {RequestState} state\n * @returns {RequestState}\n */\nexport function fork_state_for_subrequest(state) {\n\treturn {\n\t\t...state,\n\t\t...transient_fields(),\n\t\tdepth: state.depth + 1\n\t};\n}\n","import { parseSetCookie } from 'cookie';\nimport { noop } from '../../utils/functions.js';\nimport { respond } from './respond.js';\nimport * as paths from '#app/paths';\nimport { hooks, manifest, read_implementation } from './internal.js';\nimport { has_prerendered_path } from './utils.js';\nimport { fork_state_for_subrequest } from './state.js';\n\n/**\n * @param {{\n * event: import('@sveltejs/kit').RequestEvent;\n * state: import('types').RequestState;\n * get_cookie_header: (url: URL, header: string | null) => string;\n * set_internal: (name: string, value: string, opts: import('./page/types.js').Cookie['options']) => void;\n * }} opts\n * @returns {typeof fetch}\n */\nexport function create_fetch({ event, state, get_cookie_header, set_internal }) {\n\t/**\n\t * @type {typeof fetch}\n\t */\n\tconst server_fetch = async (info, init) => {\n\t\tconst original_request = normalize_fetch_input(info, init, event.url);\n\n\t\t// some runtimes (e.g. Cloudflare) error if you access `request.mode`,\n\t\t// annoyingly, so we need to read the value from the `init` object instead\n\t\tlet mode = (info instanceof Request ? info.mode : init?.mode) ?? 'cors';\n\t\tlet credentials =\n\t\t\t(info instanceof Request ? info.credentials : init?.credentials) ?? 'same-origin';\n\n\t\treturn hooks.handleFetch({\n\t\t\tevent,\n\t\t\trequest: original_request,\n\t\t\tfetch: async (info, init) => {\n\t\t\t\tconst request = normalize_fetch_input(info, init, event.url);\n\n\t\t\t\tconst url = new URL(request.url);\n\n\t\t\t\tif (!request.headers.has('origin')) {\n\t\t\t\t\trequest.headers.set('origin', event.url.origin);\n\t\t\t\t}\n\n\t\t\t\tif (info !== original_request) {\n\t\t\t\t\tmode = (info instanceof Request ? info.mode : init?.mode) ?? 'cors';\n\t\t\t\t\tcredentials =\n\t\t\t\t\t\t(info instanceof Request ? info.credentials : init?.credentials) ?? 'same-origin';\n\t\t\t\t}\n\n\t\t\t\t// Remove Origin, according to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin#description\n\t\t\t\tif (\n\t\t\t\t\t(request.method === 'GET' || request.method === 'HEAD') &&\n\t\t\t\t\t((mode === 'no-cors' && url.origin !== event.url.origin) ||\n\t\t\t\t\t\turl.origin === event.url.origin)\n\t\t\t\t) {\n\t\t\t\t\trequest.headers.delete('origin');\n\t\t\t\t}\n\n\t\t\t\tconst decoded = decodeURIComponent(url.pathname);\n\n\t\t\t\tif (\n\t\t\t\t\turl.origin !== event.url.origin ||\n\t\t\t\t\t(paths.base && decoded !== paths.base && !decoded.startsWith(`${paths.base}/`))\n\t\t\t\t) {\n\t\t\t\t\t// Allow cookie passthrough for \"credentials: same-origin\" and \"credentials: include\"\n\t\t\t\t\t// if SvelteKit is serving my.domain.com:\n\t\t\t\t\t// - domain.com WILL NOT receive cookies\n\t\t\t\t\t// - my.domain.com WILL receive cookies\n\t\t\t\t\t// - api.domain.dom WILL NOT receive cookies\n\t\t\t\t\t// - sub.my.domain.com WILL receive cookies\n\t\t\t\t\t// ports do not affect the resolution\n\t\t\t\t\t// leading dot prevents mydomain.com matching domain.com\n\t\t\t\t\t// Do not forward other cookies for \"credentials: include\" because we don't know\n\t\t\t\t\t// which cookie belongs to which domain (browser does not pass this info)\n\t\t\t\t\tif (`.${url.hostname}`.endsWith(`.${event.url.hostname}`) && credentials !== 'omit') {\n\t\t\t\t\t\tconst cookie = get_cookie_header(url, request.headers.get('cookie'));\n\t\t\t\t\t\tif (cookie) request.headers.set('cookie', cookie);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn fetch(request);\n\t\t\t\t}\n\n\t\t\t\t// handle fetch requests for static assets. e.g. prebaked data, etc.\n\t\t\t\t// we need to support everything the browser's fetch supports\n\t\t\t\tconst filename = (\n\t\t\t\t\tdecoded.startsWith(paths.assets) ? decoded.slice(paths.assets.length) : decoded\n\t\t\t\t).slice(1);\n\t\t\t\tconst filename_html = `${filename}/index.html`; // path may also match path/index.html\n\n\t\t\t\tconst is_asset = manifest.assets.has(filename) || filename in manifest.server_assets;\n\t\t\t\tconst is_asset_html =\n\t\t\t\t\tmanifest.assets.has(filename_html) || filename_html in manifest.server_assets;\n\n\t\t\t\tif (is_asset || is_asset_html) {\n\t\t\t\t\tconst file = is_asset ? filename : filename_html;\n\n\t\t\t\t\tif (state.read) {\n\t\t\t\t\t\tconst type = is_asset\n\t\t\t\t\t\t\t? manifest.mime_types[filename.slice(filename.lastIndexOf('.'))]\n\t\t\t\t\t\t\t: 'text/html';\n\n\t\t\t\t\t\treturn new Response(state.read(file), {\n\t\t\t\t\t\t\theaders: type ? { 'content-type': type } : {}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else if (read_implementation && file in manifest.server_assets) {\n\t\t\t\t\t\tconst length = manifest.server_assets[file];\n\t\t\t\t\t\tconst type = manifest.mime_types[file.slice(file.lastIndexOf('.'))];\n\n\t\t\t\t\t\treturn new Response(read_implementation(file), {\n\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t'Content-Length': '' + length,\n\t\t\t\t\t\t\t\t'Content-Type': type\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// A spoofed request origin must not be able to redirect us to an internal resource.\n\t\t\t\t\treturn await fetch(request, { redirect: 'manual' });\n\t\t\t\t}\n\n\t\t\t\tif (has_prerendered_path(decoded)) {\n\t\t\t\t\t// The path of something prerendered could match a different route\n\t\t\t\t\t// that is still in the manifest, leading to the wrong route being loaded.\n\t\t\t\t\t// We therefore bail early here. The prerendered logic is different for\n\t\t\t\t\t// each adapter, (except maybe for prerendered redirects)\n\t\t\t\t\t// so we need to make an actual HTTP request.\n\t\t\t\t\treturn await fetch(request, { redirect: 'manual' });\n\t\t\t\t}\n\n\t\t\t\tif (credentials !== 'omit') {\n\t\t\t\t\tconst cookie = get_cookie_header(url, request.headers.get('cookie'));\n\t\t\t\t\tif (cookie) {\n\t\t\t\t\t\trequest.headers.set('cookie', cookie);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst authorization = event.request.headers.get('authorization');\n\t\t\t\t\tif (authorization && !request.headers.has('authorization')) {\n\t\t\t\t\t\trequest.headers.set('authorization', authorization);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!request.headers.has('accept')) {\n\t\t\t\t\trequest.headers.set('accept', '*/*');\n\t\t\t\t}\n\n\t\t\t\tconst accept_language = event.request.headers.get('accept-language');\n\t\t\t\tif (accept_language && !request.headers.has('accept-language')) {\n\t\t\t\t\trequest.headers.set('accept-language', accept_language);\n\t\t\t\t}\n\n\t\t\t\tconst response = await internal_fetch(request, state);\n\n\t\t\t\tfor (const str of response.headers.getSetCookie()) {\n\t\t\t\t\tconst { name, value, ...cookie_options } = parseSetCookie(str, { decode: (v) => v });\n\n\t\t\t\t\tconst path =\n\t\t\t\t\t\tcookie_options.path ?? (url.pathname.split('/').slice(0, -1).join('/') || '/');\n\n\t\t\t\t\t// sameSite is string, something more specific is required - type cast is safe\n\t\t\t\t\tset_internal(name, /** @type {string} */ (value), {\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\tencode: (value) => value,\n\t\t\t\t\t\t.../** @type {import('cookie').SerializeOptions} */ (cookie_options)\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\treturn response;\n\t\t\t}\n\t\t});\n\t};\n\n\t// Don't make this function `async`! Otherwise, the user has to `catch` promises they use for streaming responses or else\n\t// it will be an unhandled rejection. Instead, we add a `.catch(noop)` ourselves below to prevent this from happening.\n\treturn (input, init) => {\n\t\t// See docs in fetch.js for why we need to do this\n\t\tconst response = server_fetch(input, init);\n\t\tresponse.catch(noop);\n\t\treturn response;\n\t};\n}\n\n/**\n * @param {RequestInfo | URL} info\n * @param {RequestInit | undefined} init\n * @param {URL} url\n */\nfunction normalize_fetch_input(info, init, url) {\n\tif (info instanceof Request) {\n\t\treturn info;\n\t}\n\n\treturn new Request(typeof info === 'string' ? new URL(info, url) : info, init);\n}\n\n/**\n * @param {Request} request\n * @param {import('types').RequestState} state\n * @returns {Promise<Response>}\n */\nasync function internal_fetch(request, state) {\n\tif (request.signal?.aborted) {\n\t\tthrow new DOMException('The operation was aborted.', 'AbortError');\n\t}\n\n\tconst subrequest_state = fork_state_for_subrequest(state);\n\n\tif (!request.signal) {\n\t\treturn await respond(request, subrequest_state);\n\t}\n\n\tlet remove_abort_listener = noop;\n\t/** @type {Promise<never>} */\n\tconst abort_promise = new Promise((_, reject) => {\n\t\tconst on_abort = () => {\n\t\t\treject(new DOMException('The operation was aborted.', 'AbortError'));\n\t\t};\n\t\trequest.signal.addEventListener('abort', on_abort, { once: true });\n\t\tremove_abort_listener = () => request.signal.removeEventListener('abort', on_abort);\n\t});\n\n\treturn Promise.race([respond(request, subrequest_state), abort_promise]).finally(\n\t\tremove_abort_listener\n\t);\n}\n","import * as devalue from 'devalue';\nimport { rendered_env } from '<sveltekit:generated>/env/config.js';\n\n/** @type {string} */\nlet payload;\n\n/** @type {string} */\nlet etag;\n\n/** @type {Headers} */\nlet headers;\n\n/**\n * @param {Request} request\n * @returns {Response}\n */\nexport function get_public_env(request) {\n\tconst env = rendered_env;\n\n\tpayload ??= devalue.uneval(env);\n\tetag ??= `W/${Date.now()}`;\n\theaders ??= new Headers({\n\t\t'content-type': 'application/javascript; charset=utf-8',\n\t\tetag\n\t});\n\n\tif (request.headers.get('if-none-match') === etag) {\n\t\treturn new Response(undefined, { status: 304, headers });\n\t}\n\n\treturn new Response(`export const env=${payload}`, { headers });\n}\n","import * as w from '../../messages/server-warnings.js';\n\n/** @type {Set<string>} */\nconst VALID_CACHE_CONTROL_DIRECTIVES = new Set([\n\t'max-age',\n\t'public',\n\t'private',\n\t'no-cache',\n\t'no-store',\n\t'must-revalidate',\n\t'proxy-revalidate',\n\t's-maxage',\n\t'immutable',\n\t'stale-while-revalidate',\n\t'stale-if-error',\n\t'no-transform',\n\t'only-if-cached',\n\t'max-stale',\n\t'min-fresh'\n]);\n\nconst CONTENT_TYPE_PATTERN =\n\t/^(application|audio|example|font|haptics|image|message|model|multipart|text|video|x-[a-z]+)\\/[-+.\\w]+$/i;\n\n/** @type {Record<string, (value: string) => void>} */\nconst HEADER_VALIDATORS = {\n\t'cache-control': (value) => {\n\t\tconst parts = value.split(',').map((part) => part.trim());\n\t\tif (parts.some((part) => !part)) {\n\t\t\tw.cache_control_empty_directive({ value });\n\t\t\treturn;\n\t\t}\n\n\t\tconst directives = parts.map((part) => part.split('=')[0].toLowerCase());\n\t\tconst invalid = directives.find((directive) => !VALID_CACHE_CONTROL_DIRECTIVES.has(directive));\n\t\tif (invalid) {\n\t\t\tw.cache_control_invalid_directive({\n\t\t\t\tdirective: invalid,\n\t\t\t\tdirectives: [...VALID_CACHE_CONTROL_DIRECTIVES].join(', '),\n\t\t\t\tvalue\n\t\t\t});\n\t\t}\n\t},\n\n\t'content-type': (value) => {\n\t\tconst type = value.split(';')[0].trim();\n\t\tif (!CONTENT_TYPE_PATTERN.test(type)) {\n\t\t\tw.content_type_invalid({ type, value });\n\t\t}\n\t}\n};\n\n/**\n * Warns about header values that browsers and CDNs are likely to ignore or misinterpret\n * @param {Record<string, string>} headers\n */\nexport function validateHeaders(headers) {\n\tfor (const [key, value] of Object.entries(headers)) {\n\t\tHEADER_VALIDATORS[key.toLowerCase()]?.(value);\n\t}\n}\n","/** @import { SSRNode } from 'types' */\nimport { DEV } from 'esm-env';\nimport { text } from '@sveltejs/kit';\nimport { Redirect, SvelteKitError } from '@sveltejs/kit/internal';\nimport {\n\tmerge_tracing,\n\totel,\n\trecord_span,\n\twith_request_store\n} from '@sveltejs/kit/internal/server';\nimport { base, app_dir } from '#app/paths';\nimport { is_endpoint_request, render_endpoint } from './endpoint.js';\nimport { render_page } from './page/index.js';\nimport { render_response } from './page/render.js';\nimport { get_self_origin, is_csrf_forbidden, is_remote_forbidden } from './csrf.js';\nimport { has_prerendered_path, method_not_allowed, redirect_response } from './utils.js';\nimport {\n\tdecode_pathname,\n\tdisable_search,\n\tnormalize_path,\n\trelative_pathname\n} from '../../utils/url.js';\nimport { find_route } from '../../utils/routing.js';\nimport { redirect_json_response, render_data } from './data/index.js';\nimport { add_cookies_to_headers, get_cookies } from './cookie.js';\nimport { create_fetch } from './fetch.js';\nimport { PageNodes } from '../../utils/page_nodes.js';\nimport { validate_server_exports } from '../../utils/exports.js';\nimport { action_json_redirect, is_action_json_request } from './page/actions.js';\nimport { INVALIDATED_PARAM, TRAILING_SLASH_PARAM } from '../shared.js';\nimport { get_public_env } from './env_module.js';\nimport { resolve_route, resolve_route_by_id } from './page/server_routing.js';\nimport { validateHeaders } from './validate-headers.js';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\textract_route_id,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tis_route_id_resolution_path,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../pathname.js';\nimport { server_data_serializer } from './page/data_serializer.js';\nimport { get_remote_id, handle_remote_call } from './remote-functions.js';\nimport { hooks, manifest } from './internal.js';\nimport { options } from '<sveltekit:generated>/server.js';\nimport { respond_with_error, handle_fatal_error } from './page/respond_with_error.js';\nimport * as e from '../../messages/server-errors.js';\n\n/** @type {import('types').RequiredResolveOptions['transformPageChunk']} */\nconst default_transform = ({ html }) => html;\n\n/** @type {import('types').RequiredResolveOptions['filterSerializedResponseHeaders']} */\nconst default_filter = () => false;\n\n/** @type {import('types').RequiredResolveOptions['preload']} */\nconst default_preload = ({ type }) => type === 'js' || type === 'css';\n\n// `Sec-Fetch-Dest` values for subresource requests that can never render an HTML error page\n// https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-Fetch-Dest\nconst non_html_fetch_destinations = new Set([\n\t'audio',\n\t'audioworklet',\n\t'font',\n\t'image',\n\t'json',\n\t'manifest',\n\t'paintworklet',\n\t'report',\n\t'script',\n\t'serviceworker',\n\t'sharedworker',\n\t'style',\n\t'track',\n\t'video',\n\t'webidentity',\n\t'worker',\n\t'xslt'\n]);\n\nconst page_methods = new Set(['GET', 'HEAD', 'POST']);\n\nconst allowed_page_methods = new Set(['GET', 'HEAD', 'OPTIONS']);\n\nexport const respond = propagate_context(internal_respond);\n\n/**\n * @param {Request} request\n * @param {import('types').RequestState} state\n * @returns {Promise<Response>}\n */\nexport async function internal_respond(request, state) {\n\t/** URL but stripped from the potential `/__data.json` suffix and its search param */\n\tconst url = new URL(request.url);\n\n\tconst is_route_resolution_request = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst remote_id = get_remote_id(url);\n\n\tif (!__SVELTEKIT_DEV__) {\n\t\tconst request_origin = request.headers.get('origin');\n\t\tconst self_origin = get_self_origin(__SVELTEKIT_PATHS_ORIGIN__, url.origin);\n\n\t\tif (remote_id) {\n\t\t\tif (\n\t\t\t\tis_remote_forbidden({\n\t\t\t\t\trequest,\n\t\t\t\t\trequest_origin,\n\t\t\t\t\tself_origin\n\t\t\t\t})\n\t\t\t) {\n\t\t\t\tconst message = 'Cross-site remote requests are forbidden';\n\t\t\t\treturn Response.json({ message }, { status: 403 });\n\t\t\t}\n\t\t} else if (__SVELTEKIT_CSRF_CHECK_ORIGIN__) {\n\t\t\tconst forbidden = is_csrf_forbidden({\n\t\t\t\trequest,\n\t\t\t\trequest_origin,\n\t\t\t\tself_origin,\n\t\t\t\ttrusted_origins: options.csrf_trusted_origins\n\t\t\t});\n\n\t\t\tif (forbidden) {\n\t\t\t\tconst message = `Cross-site ${request.method} form submissions are forbidden`;\n\t\t\t\tconst opts = { status: 403 };\n\n\t\t\t\tif (request.headers.get('accept') === 'application/json') {\n\t\t\t\t\treturn Response.json({ message }, opts);\n\t\t\t\t}\n\n\t\t\t\treturn text(message, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (__SVELTEKIT_HASH_ROUTING__ && url.pathname !== base + '/' && url.pathname !== '/[fallback]') {\n\t\treturn text('Not found', { status: 404 });\n\t}\n\n\t/** @type {boolean[] | undefined} */\n\tlet invalidated_data_nodes;\n\n\tlet skip_route_resolution = false;\n\n\t/** Whether this is a `/${app_dir}/routes/<route_id>/__route.js` request, used by `preloadCode` */\n\tlet is_route_id_resolution_request = false;\n\n\tif (is_route_resolution_request) {\n\t\t/**\n\t\t * If the request is for a route resolution, first modify the URL, then continue as normal\n\t\t * for path resolution, then return the route object as a JS file.\n\t\t */\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t\tis_route_id_resolution_request = is_route_id_resolution_path(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname =\n\t\t\tstrip_data_suffix(url.pathname) +\n\t\t\t\t(url.searchParams.get(TRAILING_SLASH_PARAM) === '1' ? '/' : '') || '/';\n\t\turl.searchParams.delete(TRAILING_SLASH_PARAM);\n\t\tinvalidated_data_nodes = url.searchParams\n\t\t\t.get(INVALIDATED_PARAM)\n\t\t\t?.split('')\n\t\t\t.map((node) => node === '1');\n\t\turl.searchParams.delete(INVALIDATED_PARAM);\n\t} else if (remote_id) {\n\t\t// query clients don't send these headers, leaving `event.url` as the endpoint URL\n\t\tconst pathname = request.headers.get('x-sveltekit-pathname');\n\n\t\tif (pathname === null) {\n\t\t\tskip_route_resolution = true;\n\t\t} else {\n\t\t\turl.pathname = pathname;\n\t\t\turl.search = request.headers.get('x-sveltekit-search') ?? '';\n\t\t}\n\t}\n\n\tfor (const key of url.searchParams.keys()) {\n\t\tif (key.startsWith('x-sveltekit-')) {\n\t\t\treturn text(`Cannot use reserved query parameter \"${key}\"`, { status: 400 });\n\t\t}\n\t}\n\n\t/** @type {Record<string, string>} */\n\tconst headers = {};\n\n\tconst { cookies, new_cookies, get_cookie_header, set_internal, set_trailing_slash } = get_cookies(\n\t\trequest,\n\t\turl\n\t);\n\n\t/** @type {import('@sveltejs/kit').RequestEvent} */\n\tconst event = {\n\t\tcookies,\n\t\t// @ts-expect-error `fetch` needs to be created after the `event` itself\n\t\tfetch: null,\n\t\tgetClientAddress:\n\t\t\tstate.getClientAddress ||\n\t\t\t(() => {\n\t\t\t\te.client_address_unsupported({ adapter: __SVELTEKIT_ADAPTER_NAME__ });\n\t\t\t}),\n\t\tlocals: {},\n\t\tparams: {},\n\t\tplatform: state.emulator?.platform\n\t\t\t? await state.emulator.platform({\n\t\t\t\t\tconfig: {},\n\t\t\t\t\tprerender: !!state.prerendering?.fallback\n\t\t\t\t})\n\t\t\t: state.platform,\n\t\trequest,\n\t\troute: { id: null },\n\t\tsetHeaders: (new_headers) => {\n\t\t\tif (DEV) {\n\t\t\t\tvalidateHeaders(new_headers);\n\t\t\t}\n\n\t\t\tfor (const key in new_headers) {\n\t\t\t\tconst lower = key.toLowerCase();\n\t\t\t\tconst value = new_headers[key];\n\n\t\t\t\tif (lower === 'set-cookie') {\n\t\t\t\t\te.set_headers_cookie();\n\t\t\t\t} else if (lower in headers) {\n\t\t\t\t\t// appendHeaders-style for Server-Timing https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Server-Timing\n\t\t\t\t\tif (lower === 'server-timing') {\n\t\t\t\t\t\theaders[lower] += ', ' + value;\n\t\t\t\t\t} else {\n\t\t\t\t\t\te.header_already_set({ name: key });\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\theaders[lower] = value;\n\n\t\t\t\t\tif (state.prerendering && lower === 'cache-control') {\n\t\t\t\t\t\tstate.prerendering.cache = /** @type {string} */ (value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\turl,\n\t\tisDataRequest: is_data_request,\n\t\tisSubRequest: state.depth > 0,\n\t\tisRemoteRequest: !!remote_id\n\t};\n\n\t// @ts-expect-error this has to be assigned lazily\n\tevent.fetch = create_fetch({\n\t\tevent,\n\t\tstate,\n\t\tget_cookie_header,\n\t\tset_internal\n\t});\n\n\t/** @type {string | null} */\n\tlet resolved_path = url.pathname;\n\n\t// `reroute` hooks receive pathnames, so they must not run for route-ID resolution requests\n\tif (!remote_id && !is_route_id_resolution_request) {\n\t\tconst prerendering_reroute_state = state.prerendering?.inside_reroute;\n\t\ttry {\n\t\t\t// For the duration or a reroute, disable the prerendering state as reroute could call API endpoints\n\t\t\t// which would end up in the wrong logic path if not disabled.\n\t\t\tif (state.prerendering) state.prerendering.inside_reroute = true;\n\n\t\t\t// reroute could alter the given URL, so we pass a copy\n\t\t\tresolved_path =\n\t\t\t\t(await hooks.reroute({ url: new URL(url), fetch: event.fetch })) ?? url.pathname;\n\n\t\t\tif (!manifest.routes.length && resolved_path !== url.pathname) {\n\t\t\t\tstate.rerouted_url = denormalise_url({\n\t\t\t\t\trequest_url: request.url,\n\t\t\t\t\tresolved_path,\n\t\t\t\t\tis_data_request,\n\t\t\t\t\tis_route_resolution_request\n\t\t\t\t}).toString();\n\t\t\t}\n\t\t} catch {\n\t\t\treturn text('Internal Server Error', {\n\t\t\t\tstatus: 500\n\t\t\t});\n\t\t} finally {\n\t\t\tif (state.prerendering) state.prerendering.inside_reroute = prerendering_reroute_state;\n\t\t}\n\t}\n\n\t/** @type {import('types').RequiredResolveOptions} */\n\tlet resolve_opts = {\n\t\ttransformPageChunk: default_transform,\n\t\tfilterSerializedResponseHeaders: default_filter,\n\t\tpreload: default_preload\n\t};\n\n\t/** @type {import('types').TrailingSlash} */\n\tlet trailing_slash = 'never';\n\n\t/** @type {PageNodes | undefined} */\n\tlet page_nodes;\n\n\ttry {\n\t\tresolved_path = decode_pathname(resolved_path);\n\t} catch {\n\t\tresolved_path = null;\n\t\treturn await handle();\n\t}\n\n\t// try to serve the rerouted prerendered resource if it exists\n\tif (\n\t\t// the resolved path has been decoded so it should be compared to the decoded url pathname\n\t\tresolved_path !== decode_pathname(url.pathname) &&\n\t\t!state.prerendering?.fallback &&\n\t\thas_prerendered_path(resolved_path)\n\t) {\n\t\tconst url = denormalise_url({\n\t\t\trequest_url: request.url,\n\t\t\tresolved_path,\n\t\t\tis_data_request,\n\t\t\tis_route_resolution_request\n\t\t});\n\n\t\ttry {\n\t\t\t// A spoofed request origin must not be able to redirect us to an internal resource.\n\t\t\tconst response = await fetch(new Request(url, request), { redirect: 'manual' });\n\n\t\t\t// `fetch` automatically decodes the body, so we need to delete the related headers to not break the response\n\t\t\t// Also see https://github.com/sveltejs/kit/issues/12197 for more info (we should fix this more generally at some point)\n\t\t\tconst headers = new Headers(response.headers);\n\t\t\tif (headers.has('content-encoding')) {\n\t\t\t\theaders.delete('content-encoding');\n\t\t\t\theaders.delete('content-length');\n\t\t\t}\n\n\t\t\treturn new Response(response.body, {\n\t\t\t\theaders,\n\t\t\t\tstatus: response.status,\n\t\t\t\tstatusText: response.statusText\n\t\t\t});\n\t\t} catch (error) {\n\t\t\treturn await handle_fatal_error(event, state, error);\n\t\t}\n\t}\n\n\t/** @type {import('types').SSRRoute | null} */\n\tlet route = null;\n\n\tif (base && !state.prerendering?.fallback) {\n\t\tif (!resolved_path.startsWith(base)) {\n\t\t\treturn text('Not found', { status: 404 });\n\t\t}\n\t\tresolved_path = resolved_path.slice(base.length) || '/';\n\t}\n\n\tif (is_route_resolution_request) {\n\t\tif (is_route_id_resolution_request) {\n\t\t\treturn resolve_route_by_id(extract_route_id(resolved_path), new URL(request.url));\n\t\t}\n\n\t\treturn resolve_route(resolved_path, new URL(request.url));\n\t}\n\n\tif (resolved_path === `/${app_dir}/env.js`) {\n\t\treturn get_public_env(request);\n\t}\n\n\tif (!remote_id && resolved_path.startsWith(`/${app_dir}`)) {\n\t\t// Ensure that 404'd static assets are not cached - some adapters might apply caching by default\n\t\tconst headers = new Headers();\n\t\theaders.set('cache-control', 'public, max-age=0, must-revalidate');\n\t\treturn text('Not found', { status: 404, headers });\n\t}\n\n\tif (!state.prerendering?.fallback && !skip_route_resolution) {\n\t\ttry {\n\t\t\tconst matchers = await manifest.matchers();\n\t\t\tconst result = find_route(resolved_path, manifest.routes, matchers);\n\n\t\t\tif (result) {\n\t\t\t\troute = result.route;\n\t\t\t\t// @ts-expect-error this has to be assigned lazily\n\t\t\t\tevent.route = { id: route.id };\n\t\t\t\t// @ts-expect-error this has to be assigned lazily\n\t\t\t\tevent.params = result.params;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\treturn await handle_fatal_error(event, state, e);\n\t\t}\n\t}\n\n\ttry {\n\t\tpage_nodes = route?.page ? new PageNodes(await load_page_nodes(route.page)) : undefined;\n\n\t\t// determine whether we need to redirect to add/remove a trailing slash\n\t\tif (route && !remote_id) {\n\t\t\t// if `paths.base === '/a/b/c`, then the root route is `/a/b/c/`,\n\t\t\t// regardless of the `trailingSlash` route option\n\t\t\tif (url.pathname === base || url.pathname === base + '/') {\n\t\t\t\ttrailing_slash = 'always';\n\t\t\t} else if (page_nodes) {\n\t\t\t\tif (DEV) {\n\t\t\t\t\tpage_nodes.validate();\n\t\t\t\t}\n\t\t\t\ttrailing_slash = page_nodes.trailing_slash();\n\t\t\t} else if (route.endpoint) {\n\t\t\t\tconst node = await route.endpoint();\n\t\t\t\ttrailing_slash = node.trailingSlash ?? 'never';\n\t\t\t\tif (DEV) {\n\t\t\t\t\tvalidate_server_exports(node, /** @type {string} */ (route.endpoint_id));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!is_data_request) {\n\t\t\t\tconst normalized = normalize_path(url.pathname, trailing_slash);\n\n\t\t\t\tif (normalized !== url.pathname && !state.prerendering?.fallback) {\n\t\t\t\t\treturn new Response(undefined, {\n\t\t\t\t\t\tstatus: 308,\n\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t'x-sveltekit-normalize': '1',\n\t\t\t\t\t\t\t// relative so (possibly invisible) path prefixes are preserved\n\t\t\t\t\t\t\tlocation:\n\t\t\t\t\t\t\t\trelative_pathname(url.pathname, normalized) + (url.search === '?' ? '' : url.search)\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (state.before_handle || state.emulator?.platform) {\n\t\t\t\tlet config = {};\n\n\t\t\t\t/** @type {import('types').PrerenderOption} */\n\t\t\t\tlet prerender = false;\n\n\t\t\t\tif (route.endpoint) {\n\t\t\t\t\tconst node = await route.endpoint();\n\t\t\t\t\tconfig = node.config ?? config;\n\t\t\t\t\tprerender = node.prerender ?? prerender;\n\t\t\t\t} else if (page_nodes) {\n\t\t\t\t\tconfig = page_nodes.get_config() ?? config;\n\t\t\t\t\tprerender = state.prerender_default = page_nodes.prerender();\n\t\t\t\t}\n\n\t\t\t\tif (state.emulator?.platform) {\n\t\t\t\t\t// @ts-expect-error this has to be assigned lazily\n\t\t\t\t\tevent.platform = await state.emulator.platform({ config, prerender });\n\t\t\t\t}\n\n\t\t\t\tif (state.before_handle) {\n\t\t\t\t\treturn await state.before_handle(event, config, prerender, handle);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn await handle();\n\t} catch (e) {\n\t\tif (e instanceof Redirect) {\n\t\t\ttry {\n\t\t\t\tconst response =\n\t\t\t\t\tis_data_request || remote_id\n\t\t\t\t\t\t? redirect_json_response(e)\n\t\t\t\t\t\t: route?.page && is_action_json_request(event)\n\t\t\t\t\t\t\t? action_json_redirect(e)\n\t\t\t\t\t\t\t: redirect_response(e.status, e.location);\n\t\t\t\tadd_cookies_to_headers(response.headers, new_cookies.values());\n\t\t\t\treturn response;\n\t\t\t} catch (err) {\n\t\t\t\treturn await handle_fatal_error(event, state, err);\n\t\t\t}\n\t\t}\n\t\treturn await handle_fatal_error(event, state, e);\n\t}\n\n\tasync function handle() {\n\t\tset_trailing_slash(trailing_slash);\n\n\t\tif (state.prerendering && !state.prerendering.fallback && !state.prerendering.inside_reroute) {\n\t\t\tdisable_search(url);\n\t\t}\n\n\t\tconst response = await record_span({\n\t\t\tname: 'sveltekit.handle.root',\n\t\t\tattributes: {\n\t\t\t\t'http.route': event.route.id || 'unknown',\n\t\t\t\t'http.method': event.request.method,\n\t\t\t\t'http.url': event.url.href,\n\t\t\t\t'sveltekit.is_data_request': is_data_request,\n\t\t\t\t'sveltekit.is_sub_request': event.isSubRequest\n\t\t\t},\n\t\t\tfn: async (root_span) => {\n\t\t\t\tconst traced_event = {\n\t\t\t\t\t...event,\n\t\t\t\t\ttracing: {\n\t\t\t\t\t\tenabled: __SVELTEKIT_SERVER_TRACING_ENABLED__,\n\t\t\t\t\t\troot: root_span,\n\t\t\t\t\t\tcurrent: root_span\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\treturn await with_request_store({ event: traced_event, state }, () =>\n\t\t\t\t\thooks.handle({\n\t\t\t\t\t\tevent: traced_event,\n\t\t\t\t\t\tresolve: (event, opts) => {\n\t\t\t\t\t\t\treturn record_span({\n\t\t\t\t\t\t\t\tname: 'sveltekit.resolve',\n\t\t\t\t\t\t\t\tattributes: {\n\t\t\t\t\t\t\t\t\t'http.route': event.route.id || 'unknown'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfn: (resolve_span) => {\n\t\t\t\t\t\t\t\t\t// counter-intuitively, we need to clear the event, so that it's not\n\t\t\t\t\t\t\t\t\t// e.g. accessible when loading modules needed to handle the request\n\t\t\t\t\t\t\t\t\treturn with_request_store(null, () =>\n\t\t\t\t\t\t\t\t\t\tresolve(merge_tracing(event, resolve_span), page_nodes, opts).then(\n\t\t\t\t\t\t\t\t\t\t\t(response) => {\n\t\t\t\t\t\t\t\t\t\t\t\t// add headers/cookies here, rather than inside `resolve`, so that we\n\t\t\t\t\t\t\t\t\t\t\t\t// can do it once for all responses instead of once per `return`\n\t\t\t\t\t\t\t\t\t\t\t\tfor (const key in headers) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst value = headers[key];\n\t\t\t\t\t\t\t\t\t\t\t\t\tresponse.headers.set(key, /** @type {string} */ (value));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tadd_cookies_to_headers(response.headers, new_cookies.values());\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (state.prerendering && event.route.id !== null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tresponse.headers.set('x-sveltekit-routeid', encodeURI(event.route.id));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tresolve_span.setAttributes({\n\t\t\t\t\t\t\t\t\t\t\t\t\t'http.response.status_code': response.status,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'http.response.body.size':\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tresponse.headers.get('content-length') || 'unknown'\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\t\treturn response;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\n\t\t// respond with 304 if etag matches\n\t\tif (response.status === 200 && response.headers.has('etag')) {\n\t\t\tlet if_none_match_value = request.headers.get('if-none-match');\n\n\t\t\t// ignore W/ prefix https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match#directives\n\t\t\tif (if_none_match_value?.startsWith('W/\"')) {\n\t\t\t\tif_none_match_value = if_none_match_value.substring(2);\n\t\t\t}\n\n\t\t\tconst etag = /** @type {string} */ (response.headers.get('etag'));\n\n\t\t\tif (if_none_match_value === etag) {\n\t\t\t\tconst headers = new Headers({ etag });\n\n\t\t\t\t// https://datatracker.ietf.org/doc/html/rfc7232#section-4.1\n\t\t\t\tfor (const key of ['cache-control', 'content-location', 'date', 'expires', 'vary']) {\n\t\t\t\t\tconst value = response.headers.get(key);\n\t\t\t\t\tif (value) headers.set(key, value);\n\t\t\t\t}\n\n\t\t\t\tfor (const cookie of response.headers.getSetCookie()) {\n\t\t\t\t\theaders.append('set-cookie', cookie);\n\t\t\t\t}\n\n\t\t\t\treturn new Response(undefined, {\n\t\t\t\t\tstatus: 304,\n\t\t\t\t\theaders\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t// Edge case: If user does `return Response(30x)` in handle hook while processing a data request,\n\t\t// we need to transform the redirect response to a corresponding JSON response.\n\t\tif (is_data_request && response.status >= 300 && response.status <= 308) {\n\t\t\tconst location = response.headers.get('location');\n\t\t\tif (location) {\n\t\t\t\treturn redirect_json_response(new Redirect(/** @type {any} */ (response.status), location));\n\t\t\t}\n\t\t}\n\n\t\treturn response;\n\t}\n\n\t/**\n\t * @param {import('@sveltejs/kit').RequestEvent} event\n\t * @param {PageNodes | undefined} page_nodes\n\t * @param {import('@sveltejs/kit/hooks').ResolveOptions} [opts]\n\t */\n\tasync function resolve(event, page_nodes, opts) {\n\t\ttry {\n\t\t\tif (opts) {\n\t\t\t\tresolve_opts = {\n\t\t\t\t\ttransformPageChunk: opts.transformPageChunk || default_transform,\n\t\t\t\t\tfilterSerializedResponseHeaders: opts.filterSerializedResponseHeaders || default_filter,\n\t\t\t\t\tpreload: opts.preload || default_preload\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (resolved_path === null) {\n\t\t\t\treturn await respond_with_error({\n\t\t\t\t\tevent,\n\t\t\t\t\tstate,\n\t\t\t\t\terror: new SvelteKitError(\n\t\t\t\t\t\t400,\n\t\t\t\t\t\t'Malformed URI',\n\t\t\t\t\t\t`Failed to decode URI: ${event.url.pathname}`\n\t\t\t\t\t),\n\t\t\t\t\tresolve_opts\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (__SVELTEKIT_HASH_ROUTING__ || state.prerendering?.fallback) {\n\t\t\t\treturn await render_response({\n\t\t\t\t\tevent,\n\t\t\t\t\tstate,\n\t\t\t\t\tpage_config: { ssr: false, csr: true },\n\t\t\t\t\tstatus: 200,\n\t\t\t\t\terror: null,\n\t\t\t\t\tbranch: [\n\t\t\t\t\t\t// include the root layout because it applies to every page\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnode: /** @type {SSRNode} */ (await manifest.nodes[0]()),\n\t\t\t\t\t\t\tdata: null,\n\t\t\t\t\t\t\tserver_data: null\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tfetched: [],\n\t\t\t\t\tresolve_opts,\n\t\t\t\t\tdata_serializer: server_data_serializer(event, state)\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (remote_id) {\n\t\t\t\treturn await handle_remote_call(event, state, remote_id);\n\t\t\t}\n\n\t\t\tif (route) {\n\t\t\t\tconst method = /** @type {import('types').HttpMethod} */ (event.request.method);\n\n\t\t\t\t/** @type {Response} */\n\t\t\t\tlet response;\n\n\t\t\t\tif (is_data_request) {\n\t\t\t\t\tresponse = await render_data(event, state, route, invalidated_data_nodes, trailing_slash);\n\t\t\t\t} else {\n\t\t\t\t\tlet endpoint;\n\t\t\t\t\tif (\n\t\t\t\t\t\troute.endpoint &&\n\t\t\t\t\t\t(!route.page || (!state.prerendering && is_endpoint_request(event)))\n\t\t\t\t\t) {\n\t\t\t\t\t\tendpoint = await route.endpoint();\n\n\t\t\t\t\t\t// Prefer rendering the page if the endpoint can't handle this GET, HEAD, or POST request\n\t\t\t\t\t\tif (route.page && (method === 'GET' || method === 'HEAD' || method === 'POST')) {\n\t\t\t\t\t\t\tconst endpoint_can_handle =\n\t\t\t\t\t\t\t\tmethod === 'POST'\n\t\t\t\t\t\t\t\t\t? !!(endpoint.POST || endpoint.fallback)\n\t\t\t\t\t\t\t\t\t: !!(endpoint.GET || endpoint.fallback || (method === 'HEAD' && endpoint.HEAD));\n\t\t\t\t\t\t\tif (!endpoint_can_handle) {\n\t\t\t\t\t\t\t\tendpoint = undefined;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (endpoint) {\n\t\t\t\t\t\tresponse = await render_endpoint(event, state, endpoint);\n\t\t\t\t\t} else if (route.page) {\n\t\t\t\t\t\tif (!page_nodes) {\n\t\t\t\t\t\t\tthrow new Error('page_nodes not found. This should never happen');\n\t\t\t\t\t\t} else if (page_methods.has(method)) {\n\t\t\t\t\t\t\tresponse = await render_page(event, state, route.page, page_nodes, resolve_opts);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconst allowed_methods = new Set(allowed_page_methods);\n\t\t\t\t\t\t\tconst node = await manifest.nodes[route.page.leaf]();\n\t\t\t\t\t\t\tif (node?.server?.actions) {\n\t\t\t\t\t\t\t\tallowed_methods.add('POST');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (method === 'OPTIONS') {\n\t\t\t\t\t\t\t\t// This will deny CORS preflight requests implicitly because we don't\n\t\t\t\t\t\t\t\t// add the required CORS headers to the response.\n\t\t\t\t\t\t\t\tresponse = new Response(null, {\n\t\t\t\t\t\t\t\t\tstatus: 204,\n\t\t\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t\t\tallow: Array.from(allowed_methods.values()).join(', ')\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst mod = [...allowed_methods].reduce((acc, curr) => {\n\t\t\t\t\t\t\t\t\tacc[curr] = true;\n\t\t\t\t\t\t\t\t\treturn acc;\n\t\t\t\t\t\t\t\t}, /** @type {Record<string, any>} */ ({}));\n\t\t\t\t\t\t\t\tresponse = method_not_allowed(mod, method);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// a route will always have a page or an endpoint, but TypeScript doesn't know that\n\t\t\t\t\t\tthrow new Error('Route is neither page nor endpoint. This should never happen');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If the route contains a page and an endpoint, we need to add a\n\t\t\t\t// `Vary: Accept` header to the response because of browser caching\n\t\t\t\tif (\n\t\t\t\t\t(request.method === 'GET' || request.method === 'HEAD') &&\n\t\t\t\t\troute.page &&\n\t\t\t\t\troute.endpoint\n\t\t\t\t) {\n\t\t\t\t\tconst vary = response.headers\n\t\t\t\t\t\t.get('vary')\n\t\t\t\t\t\t?.split(',')\n\t\t\t\t\t\t?.map((v) => v.trim().toLowerCase());\n\t\t\t\t\tif (!(vary?.includes('accept') || vary?.includes('*'))) {\n\t\t\t\t\t\t// the returned response might have immutable headers,\n\t\t\t\t\t\t// so we have to clone them before trying to mutate them\n\t\t\t\t\t\tresponse = new Response(response.body, {\n\t\t\t\t\t\t\tstatus: response.status,\n\t\t\t\t\t\t\tstatusText: response.statusText,\n\t\t\t\t\t\t\theaders: new Headers(response.headers)\n\t\t\t\t\t\t});\n\t\t\t\t\t\tresponse.headers.append('Vary', 'Accept');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn response;\n\t\t\t}\n\n\t\t\tif (state.error && event.isSubRequest) {\n\t\t\t\t// avoid overwriting the headers. This could be a same origin fetch request\n\t\t\t\t// to an external service from the root layout while rendering an error page\n\t\t\t\tconst headers = new Headers(request.headers);\n\t\t\t\theaders.set('x-sveltekit-error', 'true');\n\t\t\t\treturn await fetch(request, { headers, redirect: 'manual' });\n\t\t\t}\n\n\t\t\tif (state.error) {\n\t\t\t\treturn text('Internal Server Error', {\n\t\t\t\t\tstatus: 500\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// if this request came direct from the user, rather than\n\t\t\t// via our own `fetch`, render a 404 page\n\t\t\tif (state.depth === 0) {\n\t\t\t\t// Error-page data requests only invalidate the root layout.\n\t\t\t\tif (\n\t\t\t\t\t!state.prerendering &&\n\t\t\t\t\tis_data_request &&\n\t\t\t\t\tinvalidated_data_nodes?.length === 1 &&\n\t\t\t\t\tinvalidated_data_nodes[0]\n\t\t\t\t) {\n\t\t\t\t\treturn await render_data(\n\t\t\t\t\t\tevent,\n\t\t\t\t\t\tstate,\n\t\t\t\t\t\t{ page: { layouts: [], leaf: 0 } },\n\t\t\t\t\t\tinvalidated_data_nodes,\n\t\t\t\t\t\t// there is no route to take a trailing slash option from, and the\n\t\t\t\t\t\t// SSR'd error page sees the pathname as-is\n\t\t\t\t\t\t'ignore'\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tif (non_html_fetch_destinations.has(event.request.headers.get('sec-fetch-dest') ?? '')) {\n\t\t\t\t\treturn text('Not Found', {\n\t\t\t\t\t\tstatus: 404,\n\t\t\t\t\t\theaders: { vary: 'Sec-Fetch-Dest' }\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\treturn await respond_with_error({\n\t\t\t\t\tevent,\n\t\t\t\t\tstate,\n\t\t\t\t\terror: new SvelteKitError(404, 'Not Found', `Not found: ${event.url.pathname}`),\n\t\t\t\t\tresolve_opts\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (state.prerendering) {\n\t\t\t\treturn text('not found', { status: 404 });\n\t\t\t}\n\n\t\t\t// we can't load the endpoint from our own manifest,\n\t\t\t// so we need to make an actual HTTP request\n\t\t\tconst response = await fetch(request, { redirect: 'manual' });\n\n\t\t\t// clone the response so that headers are mutable (https://github.com/sveltejs/kit/issues/13857)\n\t\t\treturn new Response(response.body, response);\n\t\t} catch (e) {\n\t\t\t// TODO if `e` is instead named `error`, some fucked up Vite transformation happens\n\t\t\t// and I don't even know how to describe it. need to investigate at some point\n\n\t\t\t// HttpError from endpoint can end up here - TODO should it be handled there instead?\n\t\t\treturn await handle_fatal_error(event, state, e);\n\t\t} finally {\n\t\t\tevent.cookies.set = () => {\n\t\t\t\te.cookies_set_after_response();\n\t\t\t};\n\n\t\t\t// @ts-expect-error this has to be assigned lazily\n\t\t\tevent.setHeaders = () => {\n\t\t\t\te.set_headers_after_response();\n\t\t\t};\n\t\t}\n\t}\n}\n\n/**\n * @param {import('types').PageNodeIndexes} page\n */\nexport function load_page_nodes(page) {\n\treturn Promise.all([\n\t\t// we use == here rather than === because [undefined] serializes as \"[null]\"\n\t\t...page.layouts.map((n) => (n == undefined ? n : manifest.nodes[n]())),\n\t\tmanifest.nodes[page.leaf]()\n\t]);\n}\n\n/**\n * It's likely that, in a distributed system, there are spans starting outside the SvelteKit server -- eg.\n * started on the frontend client, or in a service that calls the SvelteKit server. There are standardized\n * ways to represent this context in HTTP headers, so we can extract that context and run our tracing inside of it\n * so that when our traces are exported, they are associated with the correct parent context.\n * @param {typeof internal_respond} fn\n * @returns {typeof internal_respond}\n */\nfunction propagate_context(fn) {\n\treturn async (req, ...rest) => {\n\t\tif (otel === null) {\n\t\t\treturn fn(req, ...rest);\n\t\t}\n\n\t\tconst { propagation, context } = await otel;\n\t\tconst c = propagation.extract(context.active(), Object.fromEntries(req.headers));\n\t\treturn context.with(c, async () => {\n\t\t\treturn await fn(req, ...rest);\n\t\t});\n\t};\n}\n\n/**\n * @param {object} opts\n * @param {string} opts.request_url - The original request URL\n * @param {string} opts.resolved_path - The resolved pathname\n * @param {boolean} opts.is_data_request - Whether the request is a data request\n * @param {boolean} opts.is_route_resolution_request -\n * @returns {URL}\n */\nfunction denormalise_url({\n\trequest_url,\n\tresolved_path,\n\tis_data_request,\n\tis_route_resolution_request\n}) {\n\tconst url = new URL(request_url);\n\turl.pathname = is_data_request\n\t\t? add_data_suffix(resolved_path)\n\t\t: is_route_resolution_request\n\t\t\t? add_resolution_suffix(resolved_path)\n\t\t\t: resolved_path;\n\treturn url;\n}\n","import { noop } from '../../utils/functions.js';\nimport { IN_WEBCONTAINER, REROUTED_URL_HEADER } from '../../constants.js';\nimport { respond as handle } from './respond.js';\nimport { create_request_state } from './state.js';\nimport { get_hooks } from '<sveltekit:generated>/server.js';\nimport { set_hooks, fix_stack_trace } from './internal.js';\nimport { init_tracing } from '@sveltejs/kit/internal/server';\nimport { DEV } from 'esm-env';\nimport { init_transport } from '#app/internal/transport';\nimport { capture_error } from '../../messages/internal/server.js';\nimport * as e from '../../messages/server-errors.js';\n\n/** @type {Promise<any>} */\nlet init_promise;\n\n/**\n * Responses that were created with our monkey-patched `fetch`, which may need\n * to have their `content-encoding` and `content-length` headers removed\n * if returned directly (i.e. `fetch` is being used to proxy a request)\n * @type {WeakMap<Response, Error>}\n */\nconst decoded_responses = new WeakMap();\n\nif (DEV) {\n\tconst fetch = globalThis.fetch;\n\n\t/**\n\t * @param {RequestInfo | URL} info\n\t * @param {RequestInit} [init]\n\t */\n\tglobalThis.fetch = async (info, init) => {\n\t\tconst response = await fetch(info, init);\n\t\tconst encoding = response.headers.get('content-encoding');\n\n\t\tif (encoding) {\n\t\t\tdecoded_responses.set(\n\t\t\t\tresponse,\n\t\t\t\tcapture_error(() => e.fetch_response_decoded({ encoding }))\n\t\t\t);\n\t\t}\n\n\t\treturn response;\n\t};\n}\n\n/**\n * Loads the user's hooks, once, however many times an adapter calls it\n */\nexport async function init() {\n\tif (__SVELTEKIT_SERVER_TRACING_ENABLED__) init_tracing(import('@opentelemetry/api'));\n\n\tawait (init_promise ??= (async () => {\n\t\ttry {\n\t\t\tconst module = await get_hooks();\n\n\t\t\tset_hooks({\n\t\t\t\thandle: module.handle || (({ event, resolve }) => resolve(event)),\n\t\t\t\thandleError:\n\t\t\t\t\tmodule.handleError ||\n\t\t\t\t\t(({ kind, error, issues }) => {\n\t\t\t\t\t\tif (kind === 'validation') {\n\t\t\t\t\t\t\tconsole.error('Remote function schema validation failed:', issues);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (kind !== 'unknown') {\n\t\t\t\t\t\t\t// don't log stack traces for 404s etc, it's all internal gubbins\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlet e = error;\n\t\t\t\t\t\twhile (e instanceof Error) {\n\t\t\t\t\t\t\tif (e.stack) {\n\t\t\t\t\t\t\t\tconsole.error(e.stack);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te = e.cause;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (e) {\n\t\t\t\t\t\t\tconsole.error(String(e));\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\thandleFetch: module.handleFetch || (({ request, fetch }) => fetch(request)),\n\t\t\t\treroute: module.reroute || noop\n\t\t\t});\n\n\t\t\tinit_transport(module.transport ?? {});\n\n\t\t\tif (module.init) {\n\t\t\t\tawait module.init();\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tif (__SVELTEKIT_DEV__) {\n\t\t\t\tset_hooks({\n\t\t\t\t\thandle: () => {\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t},\n\t\t\t\t\thandleError: ({ error }) => console.error(error),\n\t\t\t\t\thandleFetch: ({ request, fetch }) => fetch(request),\n\t\t\t\t\treroute: noop\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t})());\n}\n\n/**\n * @param {Request} request\n * @param {import('types').InternalRequestOptions} options\n */\nasync function respond_to(request, options) {\n\tconst request_state = create_request_state(options);\n\n\tconst response = await handle(request, request_state);\n\n\tif (DEV) {\n\t\tconst error = decoded_responses.get(response);\n\t\tif (error) console.error(fix_stack_trace(error));\n\t}\n\n\tif (request_state.rerouted_url) {\n\t\tresponse.headers.set(REROUTED_URL_HEADER, request_state.rerouted_url);\n\t}\n\n\t// the HTTP layer discards HEAD response bodies, but nothing does when the server is called directly\n\tif (request.method === 'HEAD' && response.body !== null) {\n\t\tresponse.body.cancel().catch(noop);\n\t\treturn new Response(null, response);\n\t}\n\n\treturn response;\n}\n\n/**\n * AsyncLocalStorage does not work in webcontainers, so there `sync_store` is never reset\n * (see `src/exports/internal/server/event.js`) and requests are handled one at a time\n * @param {typeof respond_to} fn\n */\nfunction serialise(fn) {\n\t/** @type {Promise<void> | null} */\n\tlet current = null;\n\n\t/** @type {typeof respond_to} */\n\treturn async (...args) => {\n\t\tconst { promise, resolve } = /** @type {PromiseWithResolvers<void>} */ (\n\t\t\tPromise.withResolvers()\n\t\t);\n\n\t\tconst previous = current;\n\t\tcurrent = promise;\n\n\t\tawait previous;\n\t\treturn fn(...args).finally(resolve);\n\t};\n}\n\nexport const respond = IN_WEBCONTAINER ? serialise(respond_to) : respond_to;\n\nexport { set_env } from '<sveltekit:generated>/env/config.js';\n"],"ignoreList":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"mappings":";;;;;;;;;AAAA,IAAA,0BAAgB,EAAE,QAAQ,cAAc,0FAA+F,UAAU,8rCAA+6C,SAAS,kDAAyD,UAAU;;;ACG5oD,IAAa,UAAU;CACtB,6BAA6B;CAC7B,KAAK;EAAC,QAAO;EAAO,cAAa;GAAC,6BAA4B;GAAM,2BAA0B;EAAK;EAAE,cAAa;GAAC,6BAA4B;GAAM,2BAA0B;EAAK;CAAC;CACrL,sBAAsB,CAAC;CACvB,wBAAwB,KAAA;CACxB,WAAW;EACV,MAAM,EAAE,MAAM,MAAM,QAAQ,OA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