screenreader-speech-capture 0.1.0 → 0.3.0

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 (206) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -0
  3. package/dist/cli.mjs +15 -5
  4. package/dist/ui/adapter-node.js +4 -4
  5. package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css +1 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css.br +0 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css.gz +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css +1 -0
  9. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.br +0 -0
  10. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.gz +0 -0
  11. package/dist/ui/client/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
  12. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
  13. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
  14. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
  15. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
  16. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
  17. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
  18. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
  19. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
  20. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
  21. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
  22. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
  23. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
  24. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
  25. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
  26. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
  27. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
  28. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
  29. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
  30. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
  31. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
  32. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
  33. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
  34. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
  35. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
  36. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
  37. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
  38. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
  39. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
  40. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
  41. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
  42. package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js +1 -0
  43. package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.br +1 -0
  44. package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js +3 -0
  46. package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js +37 -0
  49. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.br +0 -0
  50. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.gz +0 -0
  51. package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js +1 -0
  52. package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.br +2 -0
  53. package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.gz +0 -0
  54. package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js +1 -0
  55. package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.br +0 -0
  56. package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.gz +0 -0
  57. package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js +3 -0
  58. package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.br +0 -0
  59. package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.gz +0 -0
  60. package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js +2 -0
  61. package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.br +0 -0
  62. package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.gz +0 -0
  63. package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js +2 -0
  64. package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.br +0 -0
  65. package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.gz +0 -0
  66. package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js +1 -0
  67. package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.br +0 -0
  68. package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.gz +0 -0
  69. package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js +1 -0
  70. package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.br +0 -0
  71. package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.gz +0 -0
  72. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js +224 -0
  73. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.br +0 -0
  74. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.gz +0 -0
  75. package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js +1 -0
  76. package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.br +0 -0
  77. package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.gz +0 -0
  78. package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js +1 -0
  79. package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.br +0 -0
  80. package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.gz +0 -0
  81. package/dist/ui/client/ui/_app/version.json +1 -0
  82. package/dist/ui/client/ui/_app/version.json.br +0 -0
  83. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  84. package/dist/ui/server/.vite/manifest.json +269 -4
  85. package/dist/ui/server/_app/immutable/assets/_layout.CeDGT9MW.css +1 -0
  86. package/dist/ui/server/_app/immutable/assets/_page.DJfIfRJB.css +1 -0
  87. package/dist/ui/server/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
  88. package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
  89. package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
  90. package/dist/ui/server/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
  91. package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
  92. package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
  93. package/dist/ui/server/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
  94. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
  95. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
  96. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
  97. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
  98. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
  99. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
  100. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
  101. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
  102. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
  103. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
  104. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
  105. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
  106. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
  107. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
  108. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
  109. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
  110. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
  111. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
  112. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
  113. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
  114. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
  115. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
  116. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
  117. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
  118. package/dist/ui/server/chunks/bridge-api.js +61 -0
  119. package/dist/ui/server/chunks/bridge-api.js.map +1 -0
  120. package/dist/ui/server/chunks/composition.js +232 -0
  121. package/dist/ui/server/chunks/composition.js.map +1 -0
  122. package/dist/ui/server/chunks/exports.js +69 -1
  123. package/dist/ui/server/chunks/exports.js.map +1 -1
  124. package/dist/ui/server/chunks/instance.js +20 -26
  125. package/dist/ui/server/chunks/instance.js.map +1 -1
  126. package/dist/ui/server/chunks/internal.js +102 -7
  127. package/dist/ui/server/chunks/internal.js.map +1 -1
  128. package/dist/ui/server/chunks/navigation.js +15 -0
  129. package/dist/ui/server/chunks/navigation.js.map +1 -0
  130. package/dist/ui/server/chunks/server2.js +30 -1
  131. package/dist/ui/server/chunks/server2.js.map +1 -1
  132. package/dist/ui/server/chunks/src.js +968 -0
  133. package/dist/ui/server/chunks/src.js.map +1 -0
  134. package/dist/ui/server/chunks/state.js +38 -0
  135. package/dist/ui/server/chunks/state.js.map +1 -0
  136. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +18 -0
  137. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -0
  138. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js +10 -0
  139. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js.map +1 -0
  140. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +10 -0
  141. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -0
  142. package/dist/ui/server/entries/fallbacks/error.svelte.js +2 -35
  143. package/dist/ui/server/entries/fallbacks/error.svelte.js.map +1 -1
  144. package/dist/ui/server/entries/pages/_layout.server.ts.js +5 -980
  145. package/dist/ui/server/entries/pages/_layout.server.ts.js.map +1 -1
  146. package/dist/ui/server/entries/pages/_layout.svelte.js +194 -7
  147. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  148. package/dist/ui/server/entries/pages/_page.server.ts.js +18 -0
  149. package/dist/ui/server/entries/pages/_page.server.ts.js.map +1 -0
  150. package/dist/ui/server/entries/pages/_page.svelte.js +213 -2
  151. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  152. package/dist/ui/server/entries/pages/settings/_page.svelte.js +8 -0
  153. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -0
  154. package/dist/ui/server/entries/pages/setup/_page.svelte.js +8 -0
  155. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -0
  156. package/dist/ui/server/index.js +2 -2
  157. package/dist/ui/server/manifest-full.js +40 -3
  158. package/dist/ui/server/manifest.js +40 -3
  159. package/dist/ui/server/nodes/0.js +3 -3
  160. package/dist/ui/server/nodes/1.js +1 -1
  161. package/dist/ui/server/nodes/2.js +5 -3
  162. package/dist/ui/server/nodes/3.js +8 -0
  163. package/dist/ui/server/nodes/4.js +8 -0
  164. package/dist/ui/server/remote-entry.js +3 -3
  165. package/dist/ui/server/remote-entry.js.map +1 -1
  166. package/dist/ui/server/server.js +40 -3
  167. package/package.json +2 -2
  168. package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js +0 -3
  169. package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js.br +0 -0
  170. package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js.gz +0 -0
  171. package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js +0 -2
  172. package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js.br +0 -0
  173. package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js.gz +0 -0
  174. package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js +0 -1
  175. package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js.br +0 -0
  176. package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js.gz +0 -0
  177. package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js +0 -2
  178. package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js.br +0 -0
  179. package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js.gz +0 -0
  180. package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js +0 -2
  181. package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js.br +0 -0
  182. package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js.gz +0 -0
  183. package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js +0 -1
  184. package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js.br +0 -0
  185. package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js.gz +0 -0
  186. package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js +0 -1
  187. package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js.br +0 -0
  188. package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js.gz +0 -0
  189. package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js +0 -1
  190. package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js.br +0 -0
  191. package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js.gz +0 -0
  192. package/dist/ui/client/_app/version.json +0 -1
  193. package/dist/ui/client/_app/version.json.br +0 -0
  194. package/dist/ui/client/_app/version.json.gz +0 -0
  195. /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js +0 -0
  196. /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js.br +0 -0
  197. /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js.gz +0 -0
  198. /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js +0 -0
  199. /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js.br +0 -0
  200. /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js.gz +0 -0
  201. /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js +0 -0
  202. /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js.br +0 -0
  203. /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js.gz +0 -0
  204. /package/dist/ui/client/{robots.txt → ui/robots.txt} +0 -0
  205. /package/dist/ui/client/{robots.txt.br → ui/robots.txt.br} +0 -0
  206. /package/dist/ui/client/{robots.txt.gz → ui/robots.txt.gz} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","names":["e.url_hash_unavailable","server_errors.url_search_unavailable_prerender"],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/messages/internal/shared.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/constants.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/internal/server/event.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/internal/server/index.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/messages/shared-errors.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/utils/url.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/messages/shared-warnings.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["/**\n * Whether shared errors include their full text on the server even though `DEV` is false. This is\n * enabled while the app is being built (analysed or prerendered)\n */\nexport let verbose = false;\n\nexport function enable_verbose_errors() {\n\tverbose = true;\n}\n\n/**\n * @typedef {{ element?: Element }} ClientWarningOptions\n * - `element`: logged after the warning, so that it can be inspected in the browser's devtools\n */\n\n/** `console.warn` styles for the code and text of shared runtime warnings, as in Svelte */\nexport const bold = 'font-weight: bold';\nexport const normal = 'font-weight: normal';\n\n/**\n * Throws the full diagnostic. Generated helpers throw their URL-only production error inline, so\n * bundlers can remove both this call and the message text from production browser builds\n * @param {string} code\n * @param {string} message\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, caller) {\n\tconst error = new Error(`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`);\n\terror.name = 'SvelteKit error';\n\n\t// not available in every browser, in which case the stack also includes these two frames\n\tError.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError`) rather than throwing it. Unlike `capture_error` in `./server.js`, this can be\n * bundled for browsers, so the thrown error only contains the URL in production\n * @param {() => never} fn A function that calls a generated `client-errors` or `shared-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/**\n * A fake asset path used in `vite dev` and `vite preview`, so that we can\n * serve local assets while verifying that requests are correctly prefixed\n */\nexport const SVELTE_KIT_ASSETS = '/_svelte_kit_assets';\n\nexport const GENERATED_COMMENT = '// this file is generated — do not edit it';\n\nexport const ENDPOINT_METHODS = [\n\t'GET',\n\t'POST',\n\t'PUT',\n\t'PATCH',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'QUERY'\n];\n\nexport const MUTATIVE_METHODS = ['POST', 'PUT', 'PATCH', 'DELETE'];\n\n/** methods whose responses depend on the request body, so they can never be prerendered */\nexport const BODY_DEPENDENT_METHODS = [...MUTATIVE_METHODS, 'QUERY'];\n\nexport const PAGE_METHODS = ['GET', 'POST', 'HEAD'];\n\nexport const SRC_ROOT = import.meta.dirname;\n\n// eslint-disable-next-line n/prefer-global/process\nexport const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;\n\n/**\n * If an an adapter deploys a catch-all serverless function, the rerouted URL\n * is stored in this header.\n */\nexport const REROUTED_URL_HEADER = 'x-sveltekit-rerouted-url';\n","/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { RequestStore } from 'types' */\n/** @import { AsyncLocalStorage } from 'node:async_hooks' */\nimport { IN_WEBCONTAINER } from '../../../constants.js';\nimport * as e from '../../../messages/server-errors.js';\n\n/** @type {RequestStore | null} */\nlet sync_store = null;\n\n/** @type {AsyncLocalStorage<RequestStore | null> | null} */\nlet als;\n\nimport('node:async_hooks')\n\t.then((hooks) => (als = new hooks.AsyncLocalStorage()))\n\t.catch(() => {\n\t\t// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.\n\t\t// this isn't behind `supports` because it's basically just StackBlitz (i.e.\n\t\t// in-browser usage) that doesn't support it AFAICT\n\t});\n\n/**\n * Returns the current `RequestEvent`. Can be used inside server hooks, server `load` functions, actions, and endpoints (and functions called by them).\n *\n * In environments without [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage), this must be called synchronously (i.e. not after an `await`).\n * @since 2.20.0\n *\n * @returns {RequestEvent}\n */\nexport function getRequestEvent() {\n\tconst event = try_get_request_store()?.event;\n\n\tif (!event) {\n\t\tif (als) e.request_event_unavailable();\n\t\te.request_event_after_await();\n\t}\n\n\treturn event;\n}\n\nexport function get_request_store() {\n\tconst result = try_get_request_store();\n\tif (!result) {\n\t\tif (als) throw new Error('Could not get the request store. This is an internal error.');\n\t\te.request_store_after_await();\n\t}\n\treturn result;\n}\n\nexport function try_get_request_store() {\n\treturn sync_store ?? als?.getStore() ?? null;\n}\n\n/**\n * @template T\n * @param {RequestStore | null} store\n * @param {() => T} fn\n */\nexport function with_request_store(store, fn) {\n\ttry {\n\t\tsync_store = store;\n\t\treturn als ? als.run(store, fn) : fn();\n\t} finally {\n\t\t// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`\n\t\t// and handle only one request at a time in `src/runtime/server/index.js`.\n\t\tif (!IN_WEBCONTAINER) {\n\t\t\tsync_store = null;\n\t\t}\n\t}\n}\n","/** @import { Span } from '@opentelemetry/api' */\nimport { try_get_request_store } from './event.js';\n\nexport function get_origin() {\n\t// `request.url` rather than `event.url`, which throws inside queries\n\tconst request = try_get_request_store()?.event.request;\n\treturn request && new URL(request.url).origin;\n}\n\n/**\n * @template {{ tracing: { enabled: boolean, root: Span, current: Span } }} T\n * @param {T} event_like\n * @param {Span} current\n * @returns {T}\n */\nexport function merge_tracing(event_like, current) {\n\treturn {\n\t\t...event_like,\n\t\ttracing: {\n\t\t\t...event_like.tracing,\n\t\t\tcurrent\n\t\t}\n\t};\n}\n\nexport {\n\twith_request_store,\n\tgetRequestEvent,\n\tget_request_store,\n\ttry_get_request_store\n} from './event.js';\n\nexport { init_remote_functions } from './remote-functions.js';\n\nexport { init_tracing, otel, record_span } from './telemetry.js';\n\nexport * from '../shared.js';\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { BROWSER, DEV } from 'esm-env';\nimport { throw_error, verbose } from './internal/shared.js';\n\n/**\n * `$app/stores` has been removed in favour of `$app/state`\n * @param {void} _values\n * @returns {never}\n */\nexport function app_stores_removed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('app_stores_removed', `\\`$app/stores\\` has been removed in favour of \\`$app/state\\``, app_stores_removed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/app_stores_removed');\n}\n\n/**\n * Invalid array key `%key%`\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_array_conflict(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_array_conflict', `Invalid array key \\`${_values.key}\\``, form_field_array_conflict);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_array_conflict');\n}\n\n/**\n * Form cannot contain duplicated keys — `%name%` has %count% values\n * @param {{ \"name\": string; \"count\": string }} _values\n * @returns {never}\n */\nexport function form_field_duplicate(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_duplicate', `Form cannot contain duplicated keys — \\`${_values.name}\\` has ${_values.count} values`, form_field_duplicate);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_duplicate');\n}\n\n/**\n * Invalid key `%key%`: This key is not allowed to prevent prototype pollution.\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_forbidden_key(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_forbidden_key', `Invalid key \\`${_values.key}\\`: This key is not allowed to prevent prototype pollution.`, form_field_forbidden_key);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_forbidden_key');\n}\n\n/**\n * Invalid field name `%name%`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_invalid_name(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_invalid_name', `Invalid field name \\`${_values.name}\\`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields`, form_field_invalid_name);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_invalid_name');\n}\n\n/**\n * Form contained a field that wasn't created with `form.fields.as(...)`: `%name%`\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_unbound(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_unbound', `Form contained a field that wasn't created with \\`form.fields.as(...)\\`: \\`${_values.name}\\``, form_field_unbound);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_unbound');\n}\n\n/**\n * %type% inputs must have a value\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function form_input_missing_value(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_input_missing_value', `${_values.type} inputs must have a value`, form_input_missing_value);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_input_missing_value');\n}\n\n/**\n * HTTP error status codes must be between 400 and 599 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_error_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_error_status', `HTTP error status codes must be between 400 and 599 — ${_values.status} is invalid`, invalid_error_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_error_status');\n}\n\n/**\n * Invalid export `%key%` (valid exports are %exports%, or anything with a `'_'` prefix)\n * @param {{ \"key\": string; \"exports\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)` : `Invalid export \\`${_values.key}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)`), invalid_export);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export');\n}\n\n/**\n * Invalid export `%key%` (`%key%` is a valid export in %locations%)\n * @param {{ \"key\": string; \"locations\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export_location(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export_location', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})` : `Invalid export \\`${_values.key}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})`), invalid_export_location);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export_location');\n}\n\n/**\n * Redirect status codes must be between 300 and 308 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_redirect_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_redirect_status', `Redirect status codes must be between 300 and 308 — ${_values.status} is invalid`, invalid_redirect_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_redirect_status');\n}\n\n/**\n * a `load` function %location% returned %type%, but must return a plain object at the top level (i.e. `return {...}`)\n * @param {{ \"location\": string; \"type\": string }} _values\n * @returns {never}\n */\nexport function load_invalid_response(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('load_invalid_response', `a \\`load\\` function ${_values.location} returned ${_values.type}, but must return a plain object at the top level (i.e. \\`return {...}\\`)`, load_invalid_response);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/load_invalid_response');\n}\n\n/**\n * Cannot use `match(...)` inside a service worker, as it depends on the SvelteKit client instance\n * @param {void} _values\n * @returns {never}\n */\nexport function match_in_service_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('match_in_service_worker', `Cannot use \\`match(...)\\` inside a service worker, as it depends on the SvelteKit client instance`, match_in_service_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/match_in_service_worker');\n}\n\n/**\n * Invalid param definition\n * @param {void} _values\n * @returns {never}\n */\nexport function param_definition_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_definition_invalid', `Invalid param definition`, param_definition_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_definition_invalid');\n}\n\n/**\n * Async param matchers are not supported\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_async(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_async', `Async param matchers are not supported`, param_matcher_async);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_async');\n}\n\n/**\n * Param matcher must return a string, number, boolean, or bigint\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_result_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_result_invalid', `Param matcher must return a string, number, boolean, or bigint`, param_matcher_result_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_result_invalid');\n}\n\n/**\n * Cannot redirect to `%location%` with `{ external: true }`. The `javascript:` and `data:` protocols must be explicitly listed in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_javascript(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_javascript', `Cannot redirect to \\`${_values.location}\\` with \\`{ external: true }\\`. The \\`javascript:\\` and \\`data:\\` protocols must be explicitly listed in the \\`external\\` allowlist`, redirect_external_javascript);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_javascript');\n}\n\n/**\n * Cannot redirect to external URL `%location%`. To redirect to an external URL, pass `{ external: true }` or an allowlist of permitted origins as the third argument to `redirect`\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_allowed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_allowed', `Cannot redirect to external URL \\`${_values.location}\\`. To redirect to an external URL, pass \\`{ external: true }\\` or an allowlist of permitted origins as the third argument to \\`redirect\\``, redirect_external_not_allowed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_allowed');\n}\n\n/**\n * Cannot redirect to `%location%`: URL origin is not included in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_in_allowlist(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_in_allowlist', `Cannot redirect to \\`${_values.location}\\`: URL origin is not included in the \\`external\\` allowlist`, redirect_external_not_in_allowlist);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_in_allowlist');\n}\n\n/**\n * `redirect` `options.external` must be `true` or an array of allowed origins\n * @param {void} _values\n * @returns {never}\n */\nexport function redirect_external_option_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_option_invalid', `\\`redirect\\` \\`options.external\\` must be \\`true\\` or an array of allowed origins`, redirect_external_option_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_option_invalid');\n}\n\n/**\n * %type% are not valid remote function arguments\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function remote_argument_unsupported(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('remote_argument_unsupported', `${_values.type} are not valid remote function arguments`, remote_argument_unsupported);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/remote_argument_unsupported');\n}\n\n/**\n * Missing params for dynamic route ID `%id%`\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_params_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_params_missing', `Missing params for dynamic route ID \\`${_values.id}\\``, resolve_params_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_params_missing');\n}\n\n/**\n * Cannot use `resolve(...)` with an absolute or protocol-relative URL (got \"%id%\")\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_url_input(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_url_input', `Cannot use \\`resolve(...)\\` with an absolute or protocol-relative URL (got \"${_values.id}\")`, resolve_url_input);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_url_input');\n}\n\n/**\n * Missing parameter `%name%` in route `%id%`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_missing', `Missing parameter \\`${_values.name}\\` in route \\`${_values.id}\\``, route_param_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_missing');\n}\n\n/**\n * Parameter `%name%` in route `%id%` cannot start or end with a slash — this would cause an invalid route like `foo/bar`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_slash(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_slash', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` cannot start or end with a slash — this would cause an invalid route like \\`foo/bar\\``, route_param_slash);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_slash');\n}\n\n/**\n * Parameter `%name%` in route `%id%` must be a string, number, boolean, or bigint\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_value_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_value_invalid', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` must be a string, number, boolean, or bigint`, route_param_value_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_value_invalid');\n}\n\n/**\n * Page options are ignored when `router.type === 'hash'` (`%source%` has %options%)\n * @param {{ \"source\": string; \"options\": string }} _values\n * @returns {never}\n */\nexport function router_hash_page_options(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('router_hash_page_options', `Page options are ignored when \\`router.type === 'hash'\\` (\\`${_values.source}\\` has ${_values.options})`, router_hash_page_options);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/router_hash_page_options');\n}\n\n/**\n * The `$app/service-worker` module can only be imported into a service worker\n * @param {void} _values\n * @returns {never}\n */\nexport function service_worker_module_outside_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('service_worker_module_outside_worker', `The \\`$app/service-worker\\` module can only be imported into a service worker`, service_worker_module_outside_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/service_worker_module_outside_worker');\n}\n\n/**\n * Cannot access `event.url.hash`. Consider using `page.url.hash` inside a component instead\n * @param {void} _values\n * @returns {never}\n */\nexport function url_hash_unavailable(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('url_hash_unavailable', `Cannot access \\`event.url.hash\\`. Consider using \\`page.url.hash\\` inside a component instead`, url_hash_unavailable);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/url_hash_unavailable');\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport * as e from '../messages/shared-errors.js';\nimport * as server_errors from '../messages/server-errors.js';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]*:/i;\n\n/**\n * Whether the string starts with a scheme (`https:`) or authority (`//example.com`)\n * @param {string} str\n */\nexport function has_scheme_or_authority(str) {\n\treturn SCHEME.test(str) || str.startsWith('//');\n}\n\nconst internal = new URL('a://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nexport function relative_pathname(from, to) {\n\tconst segment = to.replace(/\\/$/, '').split('/').at(-1);\n\n\t// The prefix prevents a colon in the segment from being interpreted as a URL scheme.\n\treturn from.endsWith('/') ? `../${segment}` : `./${segment}/`;\n}\n\n/**\n * @param {string} location\n * @param {string} allowed\n */\nexport function matches_external_allowlist_entry(location, allowed) {\n\tif (location === allowed) return true;\n\n\t// TODO replace the try/catch with `URL.parse` when browser support allows (Chrome 126, Firefox 126, Safari 18)\n\ttry {\n\t\tconst allow = new URL(allowed);\n\t\tconst loc = new URL(location, allow);\n\n\t\t// this is stricter than `loc.origin === allow.origin`, which can fail in `blob:` cases\n\t\treturn loc.protocol === allow.protocol && loc.host === allow.host;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/** @type {string} */ param, /** @type {string[]} */ ...rest) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param, ...rest);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t * @type {(keyof URL)[]}\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\treturn e.url_hash_unavailable();\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\treturn server_errors.url_search_unavailable_prerender({ property });\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\nimport { bold, normal } from './internal/shared.js';\n\n/**\n * `$app/environment` is deprecated, use `$app/env` instead\n * @param {void} _values\n */\nexport function app_environment_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'app_environment_deprecated'}\\n%c${`\\`$app/environment\\` is deprecated, use \\`$app/env\\` instead`}\\nhttps://svelte.dev/e/kit/${'app_environment_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/app_environment_deprecated');\n\t}\n}\n\n/**\n * `asset('%path%')` should now be `asset('%fixed%')`\n * @param {{ \"path\": string; \"fixed\": string }} _values\n */\nexport function asset_leading_slash(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'asset_leading_slash'}\\n%c${`\\`asset('${_values.path}')\\` should now be \\`asset('${_values.fixed}')\\``}\\nhttps://svelte.dev/e/kit/${'asset_leading_slash'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/asset_leading_slash');\n\t}\n}\n\n/**\n * `%route%`: Calling `depends('%dependency%')` will throw an error in Firefox because `%scheme%` is a special URI scheme\n * @param {{ \"route\": string; \"dependency\": string; \"scheme\": string }} _values\n */\nexport function depends_special_scheme(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'depends_special_scheme'}\\n%c${`\\`${_values.route}\\`: Calling \\`depends('${_values.dependency}')\\` will throw an error in Firefox because \\`${_values.scheme}\\` is a special URI scheme`}\\nhttps://svelte.dev/e/kit/${'depends_special_scheme'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/depends_special_scheme');\n\t}\n}\n\n/**\n * `%module%` is deprecated, use `%replacement%` instead\n * @param {{ \"module\": string; \"replacement\": string }} _values\n */\nexport function env_module_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'env_module_deprecated'}\\n%c${`\\`${_values.module}\\` is deprecated, use \\`${_values.replacement}\\` instead`}\\nhttps://svelte.dev/e/kit/${'env_module_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/env_module_deprecated');\n\t}\n}\n\n/**\n * Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {void} _values\n */\nexport function error_body_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'error_body_deprecated'}\\n%c${`Passing an \\`App.Error\\` body as the second argument is deprecated — pass the \\`message\\` as the second argument, and any additional properties as the third`}\\nhttps://svelte.dev/e/kit/${'error_body_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/error_body_deprecated');\n\t}\n}\n\n/**\n * The properties of `form.fields` are virtual, so operators like `in` and `Object.keys` are meaningless. If you need the current value of a form field, use `form.fields.x.value()`\n * @param {void} _values\n */\nexport function form_fields_enumerated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'form_fields_enumerated'}\\n%c${`The properties of \\`form.fields\\` are virtual, so operators like \\`in\\` and \\`Object.keys\\` are meaningless. If you need the current value of a form field, use \\`form.fields.x.value()\\``}\\nhttps://svelte.dev/e/kit/${'form_fields_enumerated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/form_fields_enumerated');\n\t}\n}\n\n/**\n * The `message` property of `handleError` is deprecated. Use `error.message` for expected and framework errors, or `'Internal Error'` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_message_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_message_deprecated'}\\n%c${`The \\`message\\` property of \\`handleError\\` is deprecated. Use \\`error.message\\` for expected and framework errors, or \\`'Internal Error'\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_message_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_message_deprecated');\n\t}\n}\n\n/**\n * The `status` property of `handleError` is deprecated. Use `error.status` for expected and framework errors, or `500` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_status_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_status_deprecated'}\\n%c${`The \\`status\\` property of \\`handleError\\` is deprecated. Use \\`error.status\\` for expected and framework errors, or \\`500\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_status_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_status_deprecated');\n\t}\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/shared.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../pathname.js';\nimport { validate_redirect_location } from './url.js';\nimport * as e from '../messages/shared-errors.js';\nimport * as w from '../messages/shared-warnings.js';\n\nconst text_encoder = new TextEncoder();\n\nexport { VERSION } from '../version.js';\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} [message] The error message.\n * @overload\n * @param {{ status: number; message: string } extends App.Error ? number : never} status\n * @param {{ status: number; message: string } extends App.Error ? string : never} [message]\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} message The error message.\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties Additional properties of the App.Error type.\n * @overload\n * @param {number} status\n * @param {string} message\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @deprecated Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {any} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {any} [message] A string, or (deprecated) a partial App.Error object\n * @param {any} [properties] Additional properties of the App.Error type when passing a string message.\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, message, properties) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\te.invalid_error_status({ status: String(status) });\n\t}\n\n\tif (message !== undefined && typeof message !== 'string') {\n\t\tif (DEV) {\n\t\t\tw.error_body_deprecated();\n\t\t}\n\n\t\t({ message, ...properties } = message);\n\t}\n\n\tthrow new HttpError({ ...properties, status, message: message ?? `Error: ${status}` });\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (import('./public.js').HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @param {{ external?: boolean | string[] }} [options] To redirect to an external URL, you must pass `{ external: true }` to allow any external URL except `javascript:` URLs, or `{ external: [...] }` with an allowlist of permitted origins.\n * @throws {import('./public.js').Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid, the location cannot be used as a header value, or the location is an external URL without permission.\n * @return {never}\n */\nexport function redirect(status, location, options) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\te.invalid_redirect_status({ status: String(status) });\n\t}\n\n\tconst href = location.toString();\n\tvalidate_redirect_location(href, options);\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\thref\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n * @deprecated use `Response.json`\n */\nexport function json(data, init) {\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n * @deprecated use `new Response`\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '#lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is a validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ValidationError}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;;;;;;AAIA,IAAW,UAAU;AAErB,SAAgB,wBAAwB;CACvC,UAAU;AACX;;;;;;AAQA,IAAa,OAAO;AACpB,IAAa,SAAS;;;;;;;;;AAUtB,SAAgB,YAAY,MAAM,SAAS,QAAQ;CAClD,MAAM,wBAAQ,IAAI,MAAM,GAAG,KAAK,IAAI,QAAQ,6BAA6B,MAAM;CAC/E,MAAM,OAAO;CAGb,MAAM,oBAAoB,OAAO,MAAM;CAEvC,MAAM;AACP;;;;;;AC/BA,IAAa,oBAAoB;AAIjC,IAAa,mBAAmB;CAC/B;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;;;;AAoDA,SAAgB,WAAW,GAAG;CAC7B,OAAO,aAAa;AACrB;;;;;;;AAmCA,SAAgB,KAAK,MAAM,MAAM;CAChC,MAAM,UAAU,IAAI,QAAQ,MAAM,OAAO;CACzC,IAAI,CAAC,QAAQ,IAAI,gBAAgB,GAAG;EACnC,MAAM,UAAU,aAAa,OAAO,IAAI;EACxC,QAAQ,IAAI,kBAAkB,QAAQ,WAAW,SAAS,CAAC;EAC3D,OAAO,IAAI,SAAS,SAAS;GAC5B,GAAG;GACH;EACD,CAAC;CACF;CAEA,OAAO,IAAI,SAAS,MAAM;EACzB,GAAG;EACH;CACD,CAAC;AACF"}
1
+ {"version":3,"file":"exports.js","names":["e.url_hash_unavailable","server_errors.url_search_unavailable_prerender"],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/messages/internal/shared.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/constants.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/internal/server/event.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/internal/server/index.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/messages/shared-errors.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/utils/url.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/messages/shared-warnings.js","../../../../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["/**\n * Whether shared errors include their full text on the server even though `DEV` is false. This is\n * enabled while the app is being built (analysed or prerendered)\n */\nexport let verbose = false;\n\nexport function enable_verbose_errors() {\n\tverbose = true;\n}\n\n/**\n * @typedef {{ element?: Element }} ClientWarningOptions\n * - `element`: logged after the warning, so that it can be inspected in the browser's devtools\n */\n\n/** `console.warn` styles for the code and text of shared runtime warnings, as in Svelte */\nexport const bold = 'font-weight: bold';\nexport const normal = 'font-weight: normal';\n\n/**\n * Throws the full diagnostic. Generated helpers throw their URL-only production error inline, so\n * bundlers can remove both this call and the message text from production browser builds\n * @param {string} code\n * @param {string} message\n * @param {Function} caller The generated helper, which is omitted from the stack along with this function\n * @returns {never}\n */\nexport function throw_error(code, message, caller) {\n\tconst error = new Error(`${code}\\n${message}\\nhttps://svelte.dev/e/kit/${code}`);\n\terror.name = 'SvelteKit error';\n\n\t// not available in every browser, in which case the stack also includes these two frames\n\tError.captureStackTrace?.(error, caller);\n\n\tthrow error;\n}\n\n/**\n * Returns the error thrown by `fn`, for the few places that pass an error on (for example to\n * `handleError`) rather than throwing it. Unlike `capture_error` in `./server.js`, this can be\n * bundled for browsers, so the thrown error only contains the URL in production\n * @param {() => never} fn A function that calls a generated `client-errors` or `shared-errors` helper\n * @returns {Error}\n */\nexport function capture_error(fn) {\n\ttry {\n\t\tfn();\n\t} catch (error) {\n\t\treturn /** @type {Error} */ (error);\n\t}\n}\n","/**\n * A fake asset path used in `vite dev` and `vite preview`, so that we can\n * serve local assets while verifying that requests are correctly prefixed\n */\nexport const SVELTE_KIT_ASSETS = '/_svelte_kit_assets';\n\nexport const GENERATED_COMMENT = '// this file is generated — do not edit it';\n\nexport const ENDPOINT_METHODS = [\n\t'GET',\n\t'POST',\n\t'PUT',\n\t'PATCH',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'QUERY'\n];\n\nexport const MUTATIVE_METHODS = ['POST', 'PUT', 'PATCH', 'DELETE'];\n\n/** methods whose responses depend on the request body, so they can never be prerendered */\nexport const BODY_DEPENDENT_METHODS = [...MUTATIVE_METHODS, 'QUERY'];\n\nexport const PAGE_METHODS = ['GET', 'POST', 'HEAD'];\n\nexport const SRC_ROOT = import.meta.dirname;\n\n// eslint-disable-next-line n/prefer-global/process\nexport const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;\n\n/**\n * If an an adapter deploys a catch-all serverless function, the rerouted URL\n * is stored in this header.\n */\nexport const REROUTED_URL_HEADER = 'x-sveltekit-rerouted-url';\n","/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { RequestStore } from 'types' */\n/** @import { AsyncLocalStorage } from 'node:async_hooks' */\nimport { IN_WEBCONTAINER } from '../../../constants.js';\nimport * as e from '../../../messages/server-errors.js';\n\n/** @type {RequestStore | null} */\nlet sync_store = null;\n\n/** @type {AsyncLocalStorage<RequestStore | null> | null} */\nlet als;\n\nimport('node:async_hooks')\n\t.then((hooks) => (als = new hooks.AsyncLocalStorage()))\n\t.catch(() => {\n\t\t// can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.\n\t\t// this isn't behind `supports` because it's basically just StackBlitz (i.e.\n\t\t// in-browser usage) that doesn't support it AFAICT\n\t});\n\n/**\n * Returns the current `RequestEvent`. Can be used inside server hooks, server `load` functions, actions, and endpoints (and functions called by them).\n *\n * In environments without [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage), this must be called synchronously (i.e. not after an `await`).\n * @since 2.20.0\n *\n * @returns {RequestEvent}\n */\nexport function getRequestEvent() {\n\tconst event = try_get_request_store()?.event;\n\n\tif (!event) {\n\t\tif (als) e.request_event_unavailable();\n\t\te.request_event_after_await();\n\t}\n\n\treturn event;\n}\n\nexport function get_request_store() {\n\tconst result = try_get_request_store();\n\tif (!result) {\n\t\tif (als) throw new Error('Could not get the request store. This is an internal error.');\n\t\te.request_store_after_await();\n\t}\n\treturn result;\n}\n\nexport function try_get_request_store() {\n\treturn sync_store ?? als?.getStore() ?? null;\n}\n\n/**\n * @template T\n * @param {RequestStore | null} store\n * @param {() => T} fn\n */\nexport function with_request_store(store, fn) {\n\ttry {\n\t\tsync_store = store;\n\t\treturn als ? als.run(store, fn) : fn();\n\t} finally {\n\t\t// Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`\n\t\t// and handle only one request at a time in `src/runtime/server/index.js`.\n\t\tif (!IN_WEBCONTAINER) {\n\t\t\tsync_store = null;\n\t\t}\n\t}\n}\n","/** @import { Span } from '@opentelemetry/api' */\nimport { try_get_request_store } from './event.js';\n\nexport function get_origin() {\n\t// `request.url` rather than `event.url`, which throws inside queries\n\tconst request = try_get_request_store()?.event.request;\n\treturn request && new URL(request.url).origin;\n}\n\n/**\n * @template {{ tracing: { enabled: boolean, root: Span, current: Span } }} T\n * @param {T} event_like\n * @param {Span} current\n * @returns {T}\n */\nexport function merge_tracing(event_like, current) {\n\treturn {\n\t\t...event_like,\n\t\ttracing: {\n\t\t\t...event_like.tracing,\n\t\t\tcurrent\n\t\t}\n\t};\n}\n\nexport {\n\twith_request_store,\n\tgetRequestEvent,\n\tget_request_store,\n\ttry_get_request_store\n} from './event.js';\n\nexport { init_remote_functions } from './remote-functions.js';\n\nexport { init_tracing, otel, record_span } from './telemetry.js';\n\nexport * from '../shared.js';\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { BROWSER, DEV } from 'esm-env';\nimport { throw_error, verbose } from './internal/shared.js';\n\n/**\n * `$app/stores` has been removed in favour of `$app/state`\n * @param {void} _values\n * @returns {never}\n */\nexport function app_stores_removed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('app_stores_removed', `\\`$app/stores\\` has been removed in favour of \\`$app/state\\``, app_stores_removed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/app_stores_removed');\n}\n\n/**\n * Invalid array key `%key%`\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_array_conflict(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_array_conflict', `Invalid array key \\`${_values.key}\\``, form_field_array_conflict);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_array_conflict');\n}\n\n/**\n * Form cannot contain duplicated keys — `%name%` has %count% values\n * @param {{ \"name\": string; \"count\": string }} _values\n * @returns {never}\n */\nexport function form_field_duplicate(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_duplicate', `Form cannot contain duplicated keys — \\`${_values.name}\\` has ${_values.count} values`, form_field_duplicate);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_duplicate');\n}\n\n/**\n * Invalid key `%key%`: This key is not allowed to prevent prototype pollution.\n * @param {{ \"key\": string }} _values\n * @returns {never}\n */\nexport function form_field_forbidden_key(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_forbidden_key', `Invalid key \\`${_values.key}\\`: This key is not allowed to prevent prototype pollution.`, form_field_forbidden_key);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_forbidden_key');\n}\n\n/**\n * Invalid field name `%name%`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_invalid_name(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_invalid_name', `Invalid field name \\`${_values.name}\\`: field names are written in JS object notation, so keys that would need quoting are not supported. See https://svelte.dev/docs/kit/remote-functions#form-Fields`, form_field_invalid_name);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_invalid_name');\n}\n\n/**\n * Form contained a field that wasn't created with `form.fields.as(...)`: `%name%`\n * @param {{ \"name\": string }} _values\n * @returns {never}\n */\nexport function form_field_unbound(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_field_unbound', `Form contained a field that wasn't created with \\`form.fields.as(...)\\`: \\`${_values.name}\\``, form_field_unbound);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_field_unbound');\n}\n\n/**\n * %type% inputs must have a value\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function form_input_missing_value(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('form_input_missing_value', `${_values.type} inputs must have a value`, form_input_missing_value);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/form_input_missing_value');\n}\n\n/**\n * HTTP error status codes must be between 400 and 599 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_error_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_error_status', `HTTP error status codes must be between 400 and 599 — ${_values.status} is invalid`, invalid_error_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_error_status');\n}\n\n/**\n * Invalid export `%key%` (valid exports are %exports%, or anything with a `'_'` prefix)\n * @param {{ \"key\": string; \"exports\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)` : `Invalid export \\`${_values.key}\\` (valid exports are ${_values.exports}, or anything with a \\`'_'\\` prefix)`), invalid_export);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export');\n}\n\n/**\n * Invalid export `%key%` (`%key%` is a valid export in %locations%)\n * @param {{ \"key\": string; \"locations\": string; \"file\"?: string }} _values\n * @returns {never}\n */\nexport function invalid_export_location(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_export_location', (_values?.file !== undefined ? `Invalid export \\`${_values.key}\\` in \\`${_values.file}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})` : `Invalid export \\`${_values.key}\\` (\\`${_values.key}\\` is a valid export in ${_values.locations})`), invalid_export_location);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_export_location');\n}\n\n/**\n * Redirect status codes must be between 300 and 308 — %status% is invalid\n * @param {{ \"status\": string }} _values\n * @returns {never}\n */\nexport function invalid_redirect_status(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('invalid_redirect_status', `Redirect status codes must be between 300 and 308 — ${_values.status} is invalid`, invalid_redirect_status);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/invalid_redirect_status');\n}\n\n/**\n * a `load` function %location% returned %type%, but must return a plain object at the top level (i.e. `return {...}`)\n * @param {{ \"location\": string; \"type\": string }} _values\n * @returns {never}\n */\nexport function load_invalid_response(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('load_invalid_response', `a \\`load\\` function ${_values.location} returned ${_values.type}, but must return a plain object at the top level (i.e. \\`return {...}\\`)`, load_invalid_response);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/load_invalid_response');\n}\n\n/**\n * Cannot use `match(...)` inside a service worker, as it depends on the SvelteKit client instance\n * @param {void} _values\n * @returns {never}\n */\nexport function match_in_service_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('match_in_service_worker', `Cannot use \\`match(...)\\` inside a service worker, as it depends on the SvelteKit client instance`, match_in_service_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/match_in_service_worker');\n}\n\n/**\n * Invalid param definition\n * @param {void} _values\n * @returns {never}\n */\nexport function param_definition_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_definition_invalid', `Invalid param definition`, param_definition_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_definition_invalid');\n}\n\n/**\n * Async param matchers are not supported\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_async(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_async', `Async param matchers are not supported`, param_matcher_async);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_async');\n}\n\n/**\n * Param matcher must return a string, number, boolean, or bigint\n * @param {void} _values\n * @returns {never}\n */\nexport function param_matcher_result_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('param_matcher_result_invalid', `Param matcher must return a string, number, boolean, or bigint`, param_matcher_result_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/param_matcher_result_invalid');\n}\n\n/**\n * Cannot redirect to `%location%` with `{ external: true }`. The `javascript:` and `data:` protocols must be explicitly listed in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_javascript(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_javascript', `Cannot redirect to \\`${_values.location}\\` with \\`{ external: true }\\`. The \\`javascript:\\` and \\`data:\\` protocols must be explicitly listed in the \\`external\\` allowlist`, redirect_external_javascript);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_javascript');\n}\n\n/**\n * Cannot redirect to external URL `%location%`. To redirect to an external URL, pass `{ external: true }` or an allowlist of permitted origins as the third argument to `redirect`\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_allowed(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_allowed', `Cannot redirect to external URL \\`${_values.location}\\`. To redirect to an external URL, pass \\`{ external: true }\\` or an allowlist of permitted origins as the third argument to \\`redirect\\``, redirect_external_not_allowed);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_allowed');\n}\n\n/**\n * Cannot redirect to `%location%`: URL origin is not included in the `external` allowlist\n * @param {{ \"location\": string }} _values\n * @returns {never}\n */\nexport function redirect_external_not_in_allowlist(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_not_in_allowlist', `Cannot redirect to \\`${_values.location}\\`: URL origin is not included in the \\`external\\` allowlist`, redirect_external_not_in_allowlist);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_not_in_allowlist');\n}\n\n/**\n * `redirect` `options.external` must be `true` or an array of allowed origins\n * @param {void} _values\n * @returns {never}\n */\nexport function redirect_external_option_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('redirect_external_option_invalid', `\\`redirect\\` \\`options.external\\` must be \\`true\\` or an array of allowed origins`, redirect_external_option_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/redirect_external_option_invalid');\n}\n\n/**\n * %type% are not valid remote function arguments\n * @param {{ \"type\": string }} _values\n * @returns {never}\n */\nexport function remote_argument_unsupported(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('remote_argument_unsupported', `${_values.type} are not valid remote function arguments`, remote_argument_unsupported);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/remote_argument_unsupported');\n}\n\n/**\n * Missing params for dynamic route ID `%id%`\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_params_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_params_missing', `Missing params for dynamic route ID \\`${_values.id}\\``, resolve_params_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_params_missing');\n}\n\n/**\n * Cannot use `resolve(...)` with an absolute or protocol-relative URL (got \"%id%\")\n * @param {{ \"id\": string }} _values\n * @returns {never}\n */\nexport function resolve_url_input(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('resolve_url_input', `Cannot use \\`resolve(...)\\` with an absolute or protocol-relative URL (got \"${_values.id}\")`, resolve_url_input);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/resolve_url_input');\n}\n\n/**\n * Missing parameter `%name%` in route `%id%`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_missing(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_missing', `Missing parameter \\`${_values.name}\\` in route \\`${_values.id}\\``, route_param_missing);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_missing');\n}\n\n/**\n * Parameter `%name%` in route `%id%` cannot start or end with a slash — this would cause an invalid route like `foo/bar`\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_slash(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_slash', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` cannot start or end with a slash — this would cause an invalid route like \\`foo/bar\\``, route_param_slash);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_slash');\n}\n\n/**\n * Parameter `%name%` in route `%id%` must be a string, number, boolean, or bigint\n * @param {{ \"name\": string; \"id\": string }} _values\n * @returns {never}\n */\nexport function route_param_value_invalid(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('route_param_value_invalid', `Parameter \\`${_values.name}\\` in route \\`${_values.id}\\` must be a string, number, boolean, or bigint`, route_param_value_invalid);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/route_param_value_invalid');\n}\n\n/**\n * Page options are ignored when `router.type === 'hash'` (`%source%` has %options%)\n * @param {{ \"source\": string; \"options\": string }} _values\n * @returns {never}\n */\nexport function router_hash_page_options(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('router_hash_page_options', `Page options are ignored when \\`router.type === 'hash'\\` (\\`${_values.source}\\` has ${_values.options})`, router_hash_page_options);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/router_hash_page_options');\n}\n\n/**\n * The `$app/service-worker` module can only be imported into a service worker\n * @param {void} _values\n * @returns {never}\n */\nexport function service_worker_module_outside_worker(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('service_worker_module_outside_worker', `The \\`$app/service-worker\\` module can only be imported into a service worker`, service_worker_module_outside_worker);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/service_worker_module_outside_worker');\n}\n\n/**\n * Cannot access `event.url.hash`. Consider using `page.url.hash` inside a component instead\n * @param {void} _values\n * @returns {never}\n */\nexport function url_hash_unavailable(_values) {\n\tif (DEV || (!BROWSER && verbose)) {\n\t\tthrow_error('url_hash_unavailable', `Cannot access \\`event.url.hash\\`. Consider using \\`page.url.hash\\` inside a component instead`, url_hash_unavailable);\n\t}\n\n\tthrow new Error('https://svelte.dev/e/kit/url_hash_unavailable');\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport * as e from '../messages/shared-errors.js';\nimport * as server_errors from '../messages/server-errors.js';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]*:/i;\n\n/**\n * Whether the string starts with a scheme (`https:`) or authority (`//example.com`)\n * @param {string} str\n */\nexport function has_scheme_or_authority(str) {\n\treturn SCHEME.test(str) || str.startsWith('//');\n}\n\nconst internal = new URL('a://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * Relative reference from `from` to `to`, which must differ only by a trailing slash\n * @param {string} from\n * @param {string} to\n * @returns {string}\n */\nexport function relative_pathname(from, to) {\n\tconst segment = to.replace(/\\/$/, '').split('/').at(-1);\n\n\t// The prefix prevents a colon in the segment from being interpreted as a URL scheme.\n\treturn from.endsWith('/') ? `../${segment}` : `./${segment}/`;\n}\n\n/**\n * @param {string} location\n * @param {string} allowed\n */\nexport function matches_external_allowlist_entry(location, allowed) {\n\tif (location === allowed) return true;\n\n\t// TODO replace the try/catch with `URL.parse` when browser support allows (Chrome 126, Firefox 126, Safari 18)\n\ttry {\n\t\tconst allow = new URL(allowed);\n\t\tconst loc = new URL(location, allow);\n\n\t\t// this is stricter than `loc.origin === allow.origin`, which can fail in `blob:` cases\n\t\treturn loc.protocol === allow.protocol && loc.host === allow.host;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/** @type {string} */ param, /** @type {string[]} */ ...rest) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param, ...rest);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t * @type {(keyof URL)[]}\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\treturn e.url_hash_unavailable();\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\treturn server_errors.url_search_unavailable_prerender({ property });\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (_depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\nimport { bold, normal } from './internal/shared.js';\n\n/**\n * `$app/environment` is deprecated, use `$app/env` instead\n * @param {void} _values\n */\nexport function app_environment_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'app_environment_deprecated'}\\n%c${`\\`$app/environment\\` is deprecated, use \\`$app/env\\` instead`}\\nhttps://svelte.dev/e/kit/${'app_environment_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/app_environment_deprecated');\n\t}\n}\n\n/**\n * `asset('%path%')` should now be `asset('%fixed%')`\n * @param {{ \"path\": string; \"fixed\": string }} _values\n */\nexport function asset_leading_slash(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'asset_leading_slash'}\\n%c${`\\`asset('${_values.path}')\\` should now be \\`asset('${_values.fixed}')\\``}\\nhttps://svelte.dev/e/kit/${'asset_leading_slash'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/asset_leading_slash');\n\t}\n}\n\n/**\n * `%route%`: Calling `depends('%dependency%')` will throw an error in Firefox because `%scheme%` is a special URI scheme\n * @param {{ \"route\": string; \"dependency\": string; \"scheme\": string }} _values\n */\nexport function depends_special_scheme(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'depends_special_scheme'}\\n%c${`\\`${_values.route}\\`: Calling \\`depends('${_values.dependency}')\\` will throw an error in Firefox because \\`${_values.scheme}\\` is a special URI scheme`}\\nhttps://svelte.dev/e/kit/${'depends_special_scheme'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/depends_special_scheme');\n\t}\n}\n\n/**\n * `%module%` is deprecated, use `%replacement%` instead\n * @param {{ \"module\": string; \"replacement\": string }} _values\n */\nexport function env_module_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'env_module_deprecated'}\\n%c${`\\`${_values.module}\\` is deprecated, use \\`${_values.replacement}\\` instead`}\\nhttps://svelte.dev/e/kit/${'env_module_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/env_module_deprecated');\n\t}\n}\n\n/**\n * Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {void} _values\n */\nexport function error_body_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'error_body_deprecated'}\\n%c${`Passing an \\`App.Error\\` body as the second argument is deprecated — pass the \\`message\\` as the second argument, and any additional properties as the third`}\\nhttps://svelte.dev/e/kit/${'error_body_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/error_body_deprecated');\n\t}\n}\n\n/**\n * The properties of `form.fields` are virtual, so operators like `in` and `Object.keys` are meaningless. If you need the current value of a form field, use `form.fields.x.value()`\n * @param {void} _values\n */\nexport function form_fields_enumerated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'form_fields_enumerated'}\\n%c${`The properties of \\`form.fields\\` are virtual, so operators like \\`in\\` and \\`Object.keys\\` are meaningless. If you need the current value of a form field, use \\`form.fields.x.value()\\``}\\nhttps://svelte.dev/e/kit/${'form_fields_enumerated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/form_fields_enumerated');\n\t}\n}\n\n/**\n * The `message` property of `handleError` is deprecated. Use `error.message` for expected and framework errors, or `'Internal Error'` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_message_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_message_deprecated'}\\n%c${`The \\`message\\` property of \\`handleError\\` is deprecated. Use \\`error.message\\` for expected and framework errors, or \\`'Internal Error'\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_message_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_message_deprecated');\n\t}\n}\n\n/**\n * The `status` property of `handleError` is deprecated. Use `error.status` for expected and framework errors, or `500` for unexpected errors.\n * @param {void} _values\n */\nexport function handle_error_status_deprecated(_values) {\n\tif (DEV) {\n\t\tconsole.warn(\n\t\t\t`%c[sveltekit] ${'handle_error_status_deprecated'}\\n%c${`The \\`status\\` property of \\`handleError\\` is deprecated. Use \\`error.status\\` for expected and framework errors, or \\`500\\` for unexpected errors.`}\\nhttps://svelte.dev/e/kit/${'handle_error_status_deprecated'}`,\n\t\t\tbold,\n\t\t\tnormal\n\t\t);\n\t} else {\n\t\tconsole.warn('https://svelte.dev/e/kit/handle_error_status_deprecated');\n\t}\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/shared.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../pathname.js';\nimport { validate_redirect_location } from './url.js';\nimport * as e from '../messages/shared-errors.js';\nimport * as w from '../messages/shared-warnings.js';\n\nconst text_encoder = new TextEncoder();\n\nexport { VERSION } from '../version.js';\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} [message] The error message.\n * @overload\n * @param {{ status: number; message: string } extends App.Error ? number : never} status\n * @param {{ status: number; message: string } extends App.Error ? string : never} [message]\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {string} message The error message.\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties Additional properties of the App.Error type.\n * @overload\n * @param {number} status\n * @param {string} message\n * @param {keyof Omit<App.Error, 'status' | 'message'> extends never ? never : Omit<App.Error, 'status' | 'message'>} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @deprecated Passing an `App.Error` body as the second argument is deprecated — pass the `message` as the second argument, and any additional properties as the third\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {Omit<App.Error, 'status'> & { status?: App.Error['status'] }} properties\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response; the error will be passed to `handleError` as an _expected_ error.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {any} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {any} [message] A string, or (deprecated) a partial App.Error object\n * @param {any} [properties] Additional properties of the App.Error type when passing a string message.\n * @return {never}\n * @throws {import('./public.js').HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, message, properties) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\te.invalid_error_status({ status: String(status) });\n\t}\n\n\tif (message !== undefined && typeof message !== 'string') {\n\t\tif (DEV) {\n\t\t\tw.error_body_deprecated();\n\t\t}\n\n\t\t({ message, ...properties } = message);\n\t}\n\n\tthrow new HttpError({ ...properties, status, message: message ?? `Error: ${status}` });\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (import('./public.js').HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @param {{ external?: boolean | string[] }} [options] To redirect to an external URL, you must pass `{ external: true }` to allow any external URL except `javascript:` URLs, or `{ external: [...] }` with an allowlist of permitted origins.\n * @throws {import('./public.js').Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid, the location cannot be used as a header value, or the location is an external URL without permission.\n * @return {never}\n */\nexport function redirect(status, location, options) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\te.invalid_redirect_status({ status: String(status) });\n\t}\n\n\tconst href = location.toString();\n\tvalidate_redirect_location(href, options);\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\thref\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n * @deprecated use `Response.json`\n */\nexport function json(data, init) {\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n * @deprecated use `new Response`\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '#lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is a validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ValidationError}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;;;;;;AAIA,IAAW,UAAU;AAErB,SAAgB,wBAAwB;CACvC,UAAU;AACX;;;;;;AAQA,IAAa,OAAO;AACpB,IAAa,SAAS;;;;;;;;;AAUtB,SAAgB,YAAY,MAAM,SAAS,QAAQ;CAClD,MAAM,wBAAQ,IAAI,MAAM,GAAG,KAA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AC,QAAQ,IAAI,gBAAgB,GAChC,QAAQ,IAAI,kBAAkB,aAAa,OAAO,IAAI,CAAC,CAAC,WAAW,SAAS,CAAC;CAG9E,IAAI,CAAC,QAAQ,IAAI,cAAc,GAC9B,QAAQ,IAAI,gBAAgB,kBAAkB;CAG/C,OAAO,IAAI,SAAS,MAAM;EACzB,GAAG;EACH;CACD,CAAC;AACF;;;;;;;AAQA,SAAgB,KAAK,MAAM,MAAM;CAChC,MAAM,UAAU,IAAI,QAAQ,MAAM,OAAO;CACzC,IAAI,CAAC,QAAQ,IAAI,gBAAgB,GAAG;EACnC,MAAM,UAAU,aAAa,OAAO,IAAI;EACxC,QAAQ,IAAI,kBAAkB,QAAQ,WAAW,SAAS,CAAC;EAC3D,OAAO,IAAI,SAAS,SAAS;GAC5B,GAAG;GACH;EACD,CAAC;CACF;CAEA,OAAO,IAAI,SAAS,MAAM;EACzB,GAAG;EACH;CACD,CAAC;AACF"}
@@ -1,11 +1,12 @@
1
- import { n as noop, r as once, t as disallow_on_server } from "./functions.js";
2
- import { A as ENDPOINT_METHODS, N as PAGE_METHODS, O as with_request_store, P as REROUTED_URL_HEADER, T as merge_tracing, b as invalid_export_location, c as disable_search, d as relative_pathname, f as resolve, j as IN_WEBCONTAINER, k as BODY_DEPENDENT_METHODS, l as make_trackable, n as isRedirect, r as text, s as decode_pathname, u as normalize_path, y as invalid_export } from "./exports.js";
1
+ import { n as noop, r as once } from "./functions.js";
2
+ import { B as PAGE_METHODS, F as with_request_store, I as BODY_DEPENDENT_METHODS, L as ENDPOINT_METHODS, M as merge_tracing, R as IN_WEBCONTAINER, S as invalid_export_location, V as REROUTED_URL_HEADER, c as decode_pathname, d as make_trackable, f as normalize_path, i as text, l as disable_search, m as resolve, n as isRedirect, p as relative_pathname, x as invalid_export } from "./exports.js";
3
3
  import { a as SvelteKitError, i as Redirect } from "./shared.js";
4
- import { $ as has_custom_transporters, A as default_handle_error, C as has_prerendered_path, Ct as base64_encode, D as serialize_uses, E as redirect_response, G as TRAILING_SLASH_PARAM, H as get_status, O as throw_devalue_error, Ot as app_dir, Q as encoders, S as get_node_type, St as strip_resolution_suffix, T as method_not_allowed, Tt as text_encoder, U as normalize_error, W as INVALIDATED_PARAM, _ as handle_action_request, _t as add_data_suffix, a as set_hooks, at as negotiate, b as uneval_action_response, bt as has_resolution_suffix, d as get_remote_action, et as init_transport, f as get_remote_id, g as handle_action_json_request, gt as record_span, h as action_json_redirect, ht as otel, i as read_implementation, it as is_form_content_type, j as handle_error_and_jsonify, k as with_version_header, kt as assets, m as handle_remote_form_post, mt as find_route, n as hooks, p as handle_remote_call, pt as stringify, q as fetch_cache_url, r as manifest, rt as uneval, u as collect_remote_data, v as is_action_json_request, vt as add_resolution_suffix, w as is_prerendering, wt as stream_text, xt as strip_data_suffix, y as is_action_request, yt as has_data_suffix } from "./internal.js";
4
+ import { $ as has_custom_transporters, A as default_handle_error, At as assets, C as has_prerendered_path, Ct as strip_resolution_suffix, D as serialize_uses, E as redirect_response, Et as text_encoder, G as TRAILING_SLASH_PARAM, H as get_status, O as throw_devalue_error, Q as encoders, S as get_node_type, St as strip_data_suffix, T as method_not_allowed, Tt as stream_text, U as normalize_error, W as INVALIDATED_PARAM, _ as handle_action_request, _t as record_span, a as set_hooks, at as negotiate, b as uneval_action_response, bt as has_data_suffix, d as get_remote_action, et as init_transport, f as get_remote_id, g as handle_action_json_request, gt as otel, h as action_json_redirect, ht as find_route, i as read_implementation, it as is_form_content_type, j as handle_error_and_jsonify, k as with_version_header, kt as app_dir, m as handle_remote_form_post, n as hooks, p as handle_remote_call, pt as stringify, q as fetch_cache_url, r as manifest, rt as uneval, u as collect_remote_data, v as is_action_json_request, vt as add_data_suffix, w as is_prerendering, wt as base64_encode, xt as has_resolution_suffix, y as is_action_request, yt as add_resolution_suffix } from "./internal.js";
5
5
  import { t as uneval$1 } from "./uneval.js";
6
6
  import { C as prerender_endpoint_methods, E as prerender_template_nonce, K as set_headers_after_response, S as prerender_actions, T as prerender_nonce, Z as capture_error, _ as load_fetch_cors, b as load_promise_not_serializable, c as client_address_unsupported, d as cookies_set_after_response, f as csp_report_only_missing_report, g as header_already_set, p as endpoint_invalid_response, q as set_headers_cookie, u as cookies_serialize_before_route, w as prerender_endpoint_not_prerenderable, x as load_response_header_not_serialized } from "./server-errors.js";
7
7
  import { i as set_env, n as explicit_public_env, r as rendered_env } from "./config.js";
8
- import { o as escape_html$1, r as render, t as derived } from "./server2.js";
8
+ import { f as escape_html$1, o as render, r as derived } from "./server2.js";
9
+ import { t as afterNavigate } from "./navigation.js";
9
10
  // .svelte-kit/generated/build/shared/error-template.js
10
11
  var error_template_default = ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <title>" + message + "</title>\n\n <style>\n body {\n --bg: white;\n --fg: #222;\n --divider: #ccc;\n background: var(--bg);\n color: var(--fg);\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Open Sans',\n 'Helvetica Neue',\n sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n margin: 0;\n }\n\n .error {\n display: flex;\n align-items: center;\n max-width: 32rem;\n margin: 0 1rem;\n }\n\n .status {\n font-weight: 200;\n font-size: 3rem;\n line-height: 1;\n position: relative;\n top: -0.05rem;\n }\n\n .message {\n border-left: 1px solid var(--divider);\n padding: 0 0 0 1rem;\n margin: 0 0 0 1rem;\n min-height: 2.5rem;\n display: flex;\n align-items: center;\n }\n\n .message h1 {\n font-weight: 400;\n font-size: 1em;\n margin: 0;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n --bg: #222;\n --fg: #ddd;\n --divider: #666;\n }\n }\n </style>\n </head>\n <body>\n <div class=\"error\">\n <span class=\"status\">" + status + "</span>\n <div class=\"message\">\n <h1>" + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n";
11
12
  // .svelte-kit/generated/build/server.js
@@ -25,7 +26,7 @@ var options = {
25
26
  csrf_trusted_origins: [],
26
27
  service_worker_options: void 0,
27
28
  templates: {
28
- app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <meta name=\"text-scale\" content=\"scale\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
29
+ app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\" data-theme=\"light\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <meta name=\"text-scale\" content=\"scale\" />\n <title>Speech Capture</title>\n <script>\n // Apply the saved theme before the first paint (no flash). Light is the default.\n try {\n document.documentElement.dataset.theme =\n localStorage.getItem('sr-theme') === 'dark' ? 'dark' : 'light';\n } catch {}\n <\/script>\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
29
30
  error: error_template_default
30
31
  }
31
32
  };
@@ -147,7 +148,7 @@ function route_id_resolution_pathname(route_id) {
147
148
  * @returns {boolean}
148
149
  */
149
150
  function is_route_id_resolution_path(pathname) {
150
- const prefix = `/${app_dir}${ROUTES_PREFIX}`;
151
+ const prefix = `/ui/${app_dir}${ROUTES_PREFIX}`;
151
152
  return pathname === prefix || pathname.startsWith(prefix + "/");
152
153
  }
153
154
  /**
@@ -250,7 +251,7 @@ function server_data_serializer(event, state) {
250
251
  let promise_id = 1;
251
252
  let max_nodes = -1;
252
253
  const iterator = create_async_iterator();
253
- const global = "__sveltekit_1mn81zl";
254
+ const global = "__sveltekit_1aedlp0";
254
255
  /** @param {number} index */
255
256
  function get_replacer(index) {
256
257
  /** @param {any} thing */
@@ -1063,7 +1064,7 @@ function generate_route_object(route, url, client) {
1063
1064
  * @param {string} pathname
1064
1065
  */
1065
1066
  function resolve_paths(pathname) {
1066
- const relative_base = pathname.slice(0).split("/").slice(2).map(() => "..").join("/") || ".";
1067
+ const relative_base = pathname.slice(3).split("/").slice(2).map(() => "..").join("/") || ".";
1067
1068
  return {
1068
1069
  base: relative_base,
1069
1070
  assets: !assets || assets[0] === "/" && assets !== "/_svelte_kit_assets" ? relative_base : assets
@@ -1175,17 +1176,6 @@ function create_css_import(route, url, client) {
1175
1176
  if (!css) return "";
1176
1177
  return `${create_client_import(client.start, paths)}.then(x => x.load_css([${css}]));\n`;
1177
1178
  }
1178
- // ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/runtime/app/navigation/server.js
1179
- var afterNavigate = noop;
1180
- disallow_on_server("disableScrollHandling", "()");
1181
- disallow_on_server("goto");
1182
- disallow_on_server("invalidate");
1183
- disallow_on_server("invalidateAll", "()");
1184
- disallow_on_server("refreshAll", "()");
1185
- disallow_on_server("preloadCode");
1186
- disallow_on_server("preloadData");
1187
- disallow_on_server("pushState");
1188
- disallow_on_server("replaceState");
1189
1179
  // ../../node_modules/.pnpm/@sveltejs+kit@3.2.0_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.3_@typescript-eslint_ccfe35d88efff66f949c986fae0769d3/node_modules/@sveltejs/kit/src/runtime/components/root.svelte
1190
1180
  function Root($$renderer, $$props) {
1191
1181
  $$renderer.component(($$renderer) => {
@@ -1355,14 +1345,14 @@ async function render_response({ branch, fetched, page_config, status, error = n
1355
1345
  let rendered;
1356
1346
  const form_value = action_result?.type === "success" || action_result?.type === "failure" ? action_result.data ?? null : null;
1357
1347
  /** @type {string} */
1358
- let base = "";
1348
+ let base = "/ui";
1359
1349
  /** @type {string} */
1360
1350
  let assets$1 = assets;
1361
1351
  /**
1362
1352
  * An expression that will evaluate in the client to determine the resolved base path.
1363
1353
  * We use a relative path when possible to support IPFS, the internet archive, etc.
1364
1354
  */
1365
- let base_expression = s("");
1355
+ let base_expression = s("/ui");
1366
1356
  const csp = new Csp(options.csp, { prerender: is_prerendering(state) });
1367
1357
  if (!state.prerendering?.fallback) {
1368
1358
  ({base, assets: assets$1} = resolve_paths(event.url.pathname));
@@ -1490,7 +1480,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
1490
1480
  "crossorigin"
1491
1481
  ]);
1492
1482
  }
1493
- const global = "__sveltekit_1mn81zl";
1483
+ const global = "__sveltekit_1aedlp0";
1494
1484
  const { data, chunks } = data_serializer.get_data(csp);
1495
1485
  if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, is_prerendering(state))).join("\n ")}`;
1496
1486
  if (page_config.csr && client) {
@@ -1509,12 +1499,12 @@ async function render_response({ branch, fetched, page_config, status, error = n
1509
1499
  state.prerendering.dependencies.set(pathname, create_server_routing_response(route, event.params, new URL(pathname, event.url), client));
1510
1500
  if (route && !state.prerendering.resolved_route_ids.has(route.id)) {
1511
1501
  state.prerendering.resolved_route_ids.add(route.id);
1512
- const id_pathname = "" + route_id_resolution_pathname(route.id);
1502
+ const id_pathname = "/ui" + route_id_resolution_pathname(route.id);
1513
1503
  state.prerendering.dependencies.set(id_pathname, create_server_routing_response(route, null, new URL(id_pathname, event.url), client));
1514
1504
  }
1515
1505
  }
1516
1506
  const blocks = [];
1517
- const properties = [`base: ${base_expression}`, `version: ${s("1794756716856")}`];
1507
+ const properties = [`base: ${base_expression}`, `version: ${s("1795200976212")}`];
1518
1508
  if (assets) properties.push(`assets: ${s(assets)}`);
1519
1509
  if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : uneval$1(rendered_env)}`);
1520
1510
  if (chunks) {
@@ -2888,7 +2878,7 @@ function create_fetch({ event, state, get_cookie_header, set_internal }) {
2888
2878
  }
2889
2879
  if ((request.method === "GET" || request.method === "HEAD") && (mode === "no-cors" && url.origin !== event.url.origin || url.origin === event.url.origin)) request.headers.delete("origin");
2890
2880
  const decoded = decodeURIComponent(url.pathname);
2891
- if (url.origin !== event.url.origin || "") {
2881
+ if (url.origin !== event.url.origin || decoded !== "/ui" && !decoded.startsWith(`/ui/`)) {
2892
2882
  if (`.${url.hostname}`.endsWith(`.${event.url.hostname}`) && credentials !== "omit") {
2893
2883
  const cookie = get_cookie_header(url, request.headers.get("cookie"));
2894
2884
  if (cookie) request.headers.set("cookie", cookie);
@@ -3201,6 +3191,10 @@ async function internal_respond(request, state) {
3201
3191
  }
3202
3192
  /** @type {import('types').SSRRoute | null} */
3203
3193
  let route = null;
3194
+ if (!state.prerendering?.fallback) {
3195
+ if (!resolved_path.startsWith("/ui")) return text("Not found", { status: 404 });
3196
+ resolved_path = resolved_path.slice(3) || "/";
3197
+ }
3204
3198
  if (is_route_resolution_request) {
3205
3199
  if (is_route_id_resolution_request) return resolve_route_by_id(extract_route_id(resolved_path), new URL(request.url));
3206
3200
  return resolve_route(resolved_path, new URL(request.url));
@@ -3228,7 +3222,7 @@ async function internal_respond(request, state) {
3228
3222
  try {
3229
3223
  page_nodes = route?.page ? new PageNodes(await load_page_nodes(route.page)) : void 0;
3230
3224
  if (route && !remote_id) {
3231
- if (url.pathname === "" || url.pathname === "/") trailing_slash = "always";
3225
+ if (url.pathname === "/ui" || url.pathname === "/ui/") trailing_slash = "always";
3232
3226
  else if (page_nodes) trailing_slash = page_nodes.trailing_slash();
3233
3227
  else if (route.endpoint) trailing_slash = (await route.endpoint()).trailingSlash ?? "never";
3234
3228
  if (!is_data_request) {